{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/uEuBUNawu1QzcFH7mTMa/gM3DUuYQpEduAzPNCGma/ActiveCampaignForm_1.js"],
  "sourcesContent": ["// ActiveCampaign form embed component\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ActiveCampaignForm(props){const{formId,subdomain}=props;const containerRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\"||!formId||!subdomain)return;// Create the form container div\nconst formDiv=document.createElement(\"div\");formDiv.className=`_form_${formId}`;// Clear any existing content and add the form div\nif(containerRef.current){containerRef.current.innerHTML=\"\";containerRef.current.appendChild(formDiv);}// Create and load the script\nconst script=document.createElement(\"script\");script.src=`https://${subdomain}.activehosted.com/f/embed.php?id=${formId}`;script.charset=\"utf-8\";script.async=true;// Add script to document head\ndocument.head.appendChild(script);// Cleanup function\nreturn()=>{if(document.head.contains(script)){document.head.removeChild(script);}};},[formId,subdomain]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",minHeight:\"400px\",position:\"relative\",...props.style}});}addPropertyControls(ActiveCampaignForm,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"225\",placeholder:\"Enter form ID (e.g., 225)\"},subdomain:{type:ControlType.String,title:\"Subdomain\",defaultValue:\"emolifenl\",placeholder:\"Enter subdomain (e.g., emolifenl)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ActiveCampaignForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ActiveCampaignForm_1.map"],
  "mappings": "+GAIkB,SAARA,EAAoCC,EAAM,CAAC,GAAK,CAAC,OAAAC,EAAO,UAAAC,CAAS,EAAEF,EAAYG,EAAaC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,GAAG,OAAOC,EAAS,KAAa,CAACL,GAAQ,CAACC,EAAU,OACtL,IAAMK,EAAQ,SAAS,cAAc,KAAK,EAAEA,EAAQ,UAAU,SAASN,CAAM,GAC1EE,EAAa,UAASA,EAAa,QAAQ,UAAU,GAAGA,EAAa,QAAQ,YAAYI,CAAO,GACnG,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAE,OAAAA,EAAO,IAAI,WAAWN,CAAS,oCAAoCD,CAAM,GAAGO,EAAO,QAAQ,QAAQA,EAAO,MAAM,GAC9J,SAAS,KAAK,YAAYA,CAAM,EAC1B,IAAI,CAAI,SAAS,KAAK,SAASA,CAAM,GAAG,SAAS,KAAK,YAAYA,CAAM,CAAG,CAAE,EAAE,CAACP,EAAOC,CAAS,CAAC,EAAsBO,EAAK,MAAM,CAAC,IAAIN,EAAa,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,SAAS,WAAW,GAAGH,EAAM,KAAK,CAAC,CAAC,CAAE,CAACU,EAAoBX,EAAmB,CAAC,OAAO,CAAC,KAAKY,EAAY,OAAO,MAAM,UAAU,aAAa,MAAM,YAAY,2BAA2B,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,YAAY,YAAY,mCAAmC,CAAC,CAAC",
  "names": ["ActiveCampaignForm", "props", "formId", "subdomain", "containerRef", "pe", "ue", "window", "formDiv", "script", "p", "addPropertyControls", "ControlType"]
}
