{"version":3,"file":"ActiveCampaignForm.DeMeFgbK.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/sqBUWh6jvjBkNr3yLyop/diBL53M627XUhT0dsFgf/ActiveCampaignForm.js"],"sourcesContent":["// Embed ActiveCampaign Form 317\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ActiveCampaign Form 317 Embed\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ActiveCampaignForm({background,borderRadius,style}){const containerRef=useRef(null);const scriptLoaded=useRef(false);useEffect(()=>{if(typeof window===\"undefined\"||!containerRef.current)return;// Always inject script on mount to ensure form renders properly\nconst existingScript=document.querySelector('script[src=\"https://emolifenl.activehosted.com/f/embed.php?id=317\"]');if(existingScript){existingScript.remove();}const script=document.createElement(\"script\");script.src=\"https://emolifenl.activehosted.com/f/embed.php?id=317\";script.charset=\"utf-8\";script.async=true;// Clear and recreate the form div to ensure clean state\nconst formDiv=containerRef.current.querySelector(\"._form_317\");if(formDiv){formDiv.innerHTML=\"\";}containerRef.current.appendChild(script);scriptLoaded.current=true;return()=>{if(scriptLoaded.current){script.remove();}};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,width:\"100%\",height:\"100%\",minHeight:200,position:\"relative\",background:background,borderRadius:borderRadius,overflow:\"auto\",display:\"block\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"_form_317\",style:{width:\"100%\",minHeight:\"100%\"}})});}addPropertyControls(ActiveCampaignForm,{background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ActiveCampaignForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ActiveCampaignForm.map"],"mappings":"+LAMG,SAAwB,EAAmB,CAAC,aAAW,eAAa,SAAO,CAAC,IAAM,EAAaA,EAAO,IAAI,EAAQ,EAAaA,EAAO,EAAK,EAEmF,OAFjF,MAAc,CAAC,GAAU,IAAS,QAAa,CAAC,EAAa,QAAQ,OACrN,IAAM,EAAe,SAAS,cAAc,qEAAqE,EAAK,GAAgB,EAAe,OAAO,EAAG,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,wDAAwD,EAAO,QAAQ,QAAQ,EAAO,MAAM,GACpT,IAAM,EAAQ,EAAa,QAAQ,cAAc,YAAY,EAAuG,OAAlG,IAAS,EAAQ,UAAU,IAAI,EAAa,QAAQ,YAAY,CAAM,EAAE,EAAa,QAAQ,OAAe,CAAI,EAAa,SAAS,EAAO,OAAO,CAAG,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,UAAU,IAAI,SAAS,WAAsB,aAAwB,eAAa,SAAS,OAAO,QAAQ,OAAO,EAAE,SAAsB,EAAK,MAAM,CAAC,UAAU,YAAY,MAAM,CAAC,MAAM,OAAO,UAAU,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,qBAPxe,IAAoC,IAAoD,EAOiZ,EAAoB,EAAmB,CAAC,WAAW,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC"}