{"version":3,"file":"IClosedEmbed.BVZ_Nonp.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","init_jsx_runtime","ce","de","init_framer_BL70qLPA","useIsStaticRenderer","ControlType","addPropertyControls","IClosedEmbed","props","ref","isStatic","SCRIPT_SRC","s","script","eventUrl","placeholderColor","style","init_IClosedEmbed"],"sources":["https:/framerusercontent.com/modules/i2t5JCtS3cyYhhFvlQKQ/rFblXddIwtTF705fHgHq/IClosedEmbed.js"],"sourcesContent":["// User request: embed the iClosed inline booking widget (VSL Funnel event) on a /book page.\n// Renders the iClosed widget container and (re)loads iClosed's widget.js after mount,\n// so it also works after Framer client-side page navigations.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const SCRIPT_SRC=\"https://app.iclosed.io/assets/widget.js\";/**\n * iClosed Embed\n *\n * @framerIntrinsicWidth 900\n * @framerIntrinsicHeight 700\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function IClosedEmbed(props){const{eventUrl=\"https://app.iclosed.io/e/Frontline/vsl-funnel\",title=\"Book a call\",height=700,placeholderColor=\"#EEEEEE\",style}=props;const ref=useRef(null);const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;// Remove any previous copy so the script re-scans for the widget container\ndocument.querySelectorAll(`script[src=\"${SCRIPT_SRC}\"]`).forEach(s=>s.parentNode&&s.parentNode.removeChild(s));const script=document.createElement(\"script\");script.src=SCRIPT_SRC;script.async=true;script.type=\"text/javascript\";document.body.appendChild(script);},[eventUrl,isStatic]);if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height,background:placeholderColor,borderRadius:12,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:\"Inter, sans-serif\",fontSize:14,color:\"#666\",...style},children:\"iClosed booking calendar (renders on the live site)\"});}return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",...style},children:/*#__PURE__*/_jsx(\"div\",{ref:ref,className:\"iclosed-widget\",\"data-url\":eventUrl,title:title,style:{width:\"100%\",height}})});}addPropertyControls(IClosedEmbed,{eventUrl:{type:ControlType.String,title:\"Event URL\",defaultValue:\"https://app.iclosed.io/e/Frontline/vsl-funnel\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Book a call\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:700,min:400,max:1400,step:10,unit:\"px\"},placeholderColor:{type:ControlType.Color,title:\"Canvas Placeholder\",defaultValue:\"#EEEEEE\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IClosedEmbed\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"900\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"700\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IClosedEmbed.map"],"mappings":"A,uMAWG,SAAwBa,EAAa,EAAM,CAAC,GAAK,CAAC,WAAS,gDAAgD,QAAM,cAAc,SAAO,IAAI,mBAAiB,UAAU,SAAOC,EAAYC,EAAIf,EAAO,IAAI,EAAQgB,EAASN,EAAoB,EACoX,OADlXH,MAAc,CAAoB,GAAhBS,GAA0BZ,IAAS,QAAa,OAAO,SAAW,IAAY,OACjV,SAAS,iBAAiB,eAAea,EAAW,GAAG,CAAC,CAAC,QAAQ,GAAGC,EAAE,YAAYA,EAAE,WAAW,YAAYA,CAAC,CAAC,EAAE,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAIF,EAAW,EAAO,MAAM,GAAK,EAAO,KAAK,kBAAkB,SAAS,KAAK,YAAYE,CAAM,CAAE,EAAE,CA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