{"version":3,"file":"Search_Widget.DABP2vqB.mjs","names":[],"sources":["https:/framerusercontent.com/modules/iKMh6jaAAQ223scWpLDx/Snp3002dYsSN6OBgAW8R/Search_Widget.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls}from\"framer\";export function BnovoWidget(props){const widgetRef=React.useRef(null);React.useEffect(()=>{// 1. Create a script element pointing to the external Bnovo script\nconst script=document.createElement(\"script\");script.src=\"//widget.reservationsteps.ru/js/bnovo.js\";script.async=true;// 2. When the script loads, initialize the Bnovo widget\nscript.onload=()=>{// Make sure the global Bnovo_Widget is available\nif(typeof window.Bnovo_Widget!==\"undefined\"){window.Bnovo_Widget.init(function(){window.Bnovo_Widget.open(\"_bn_widget_\",{type:\"horizontal\",uid:\"d0dea705-8189-4ad0-b9ad-0cb74efa1774\",lang:\"ru\",currency:\"RUB\",width:\"100%\",width_mobile:\"300\",background:\"#ffffff\",background_mobile:\"#ffffff\",bg_alpha:\"100\",bg_alpha_mobile:\"100\",border_color_mobile:\"#C6CAD3\",padding:\"24\",padding_mobile:\"24\",border_radius:\"8\",button_font_size:\"14\",button_height:\"42\",font_type:\"inter\",title_color:\"#242742\",title_color_mobile:\"#242742\",title_size:\"22\",title_size_mobile:\"22\",inp_color:\"#242742\",inp_bordhover:\"#dedfe3\",inp_bordcolor:\"#BCBCBC\",inp_alpha:\"100\",btn_background:\"#B08353\",btn_background_over:\"#1850D2\",btn_textcolor:\"#FFFFFF\",btn_textover:\"#FFFFFF\",btn_bordcolor:\"#B08353\",btn_bordhover:\"#1850D2\",min_age:\"0\",max_age:\"17\",adults_default:\"1\",cancel_color:\"#FFFFFF\",url:\"https://www.glamping-abkhazia.ru/zabronirovat\",switch_mobiles_width:\"800\"});});}};// Append the script to the document body\ndocument.body.appendChild(script);// Cleanup if the component unmounts\nreturn()=>{// If you want to remove the script or do some cleanup, handle that here\nif(document.body.contains(script)){document.body.removeChild(script);}};},[]);// Return a simple container where the Bnovo widget will be mounted\nreturn /*#__PURE__*/_jsx(\"div\",{style:props.style,children:/*#__PURE__*/_jsx(\"div\",{id:\"_bn_widget_\",children:/*#__PURE__*/_jsx(\"a\",{href:\"https://bnovo.ru/\",id:\"_bnovo_link_\",target:\"_blank\",rel:\"noreferrer\",children:\"Bnovo\"})})});}// Optionally, add property controls to allow editing from the Framer UI\naddPropertyControls(BnovoWidget,{});\nexport const __FramerMetadata__ = {\"exports\":{\"BnovoWidget\":{\"type\":\"reactComponent\",\"name\":\"BnovoWidget\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Search_Widget.map"],"mappings":"iSAA+G,SAAgB,EAAY,EAAM,CAAC,IAAM,EAAU,EAAa,KAAK,CAOpL,MAPqL,GAAgB,IAAI,CACzM,IAAM,EAAO,SAAS,cAAc,SAAS,CAI7C,OAJ8C,EAAO,IAAI,2CAA2C,EAAO,OAAM,EACjH,EAAO,OAAO,IAAI,CAClB,AAAU,EAAO,uBAA4B,EAAO,aAAa,KAAK,UAAU,CAAC,EAAO,aAAa,KAAK,cAAc,CAAC,KAAK,aAAa,IAAI,uCAAuC,KAAK,KAAK,SAAS,MAAM,MAAM,OAAO,aAAa,MAAM,WAAW,UAAU,kBAAkB,UAAU,SAAS,MAAM,gBAAgB,MAAM,oBAAoB,UAAU,QAAQ,KAAK,eAAe,KAAK,cAAc,IAAI,iBAAiB,KAAK,cAAc,KAAK,UAAU,QAAQ,YAAY,UAAU,mBAAmB,UAAU,WAAW,KAAK,kBAAkB,KAAK,UAAU,UAAU,cAAc,UAAU,cAAc,UAAU,UAAU,MAAM,eAAe,UAAU,oBAAoB,UAAU,cAAc,UAAU,aAAa,UAAU,cAAc,UAAU,cAAc,UAAU,QAAQ,IAAI,QAAQ,KAAK,eAAe,IAAI,aAAa,UAAU,IAAI,gDAAgD,qBAAqB,KAAM,EAAC,AAAE,EAAC,AAAG,EAC96B,SAAS,K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