{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Ro51wI2tEwqIgvhmrd6S/965bhFB5EAjPOCdLSlXT/Form_Hubspot.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function HubSpotForm(props){const{portalId,formId,region}=props;const formRef=useRef(null);useEffect(()=>{// Clear any existing form inside the container\nif(formRef.current){formRef.current.innerHTML=\"\";}// Load the HubSpot script dynamically\nconst script=document.createElement(\"script\");script.src=\"https://js.hsforms.net/forms/embed/v2.js\";script.async=true;script.onload=()=>{if(window.hbspt){window.hbspt.forms.create({portalId,formId,region,target:`#hubspot-form-${formId}`});}};document.body.appendChild(script);return()=>{// Cleanup: Remove script to prevent duplicates\nscript.remove();};},[portalId,formId,region]);return /*#__PURE__*/_jsx(\"div\",{id:`hubspot-form-${formId}`,ref:formRef,style:formContainerStyle});}// **Framer Property Controls**\naddPropertyControls(HubSpotForm,{portalId:{title:\"Portal ID\",type:ControlType.String,defaultValue:\"45694123\"},formId:{title:\"Form ID\",type:ControlType.String,defaultValue:\"d8754ba8-32dd-4ee8-bc81-5bc3e3001674\"},region:{title:\"Region\",type:ControlType.String,defaultValue:\"na1\"}});// **Styles**\nconst formContainerStyle={width:\"100%\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HubSpotForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Form_Hubspot.map"],
  "mappings": "gHAGkB,SAARA,EAA6BC,EAAM,CAAC,GAAK,CAAC,SAAAC,EAAS,OAAAC,EAAO,OAAAC,CAAM,EAAEH,EAAYI,EAAQC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CACxHF,EAAQ,UAASA,EAAQ,QAAQ,UAAU,IAC9C,IAAMG,EAAO,SAAS,cAAc,QAAQ,EAAE,OAAAA,EAAO,IAAI,2CAA2CA,EAAO,MAAM,GAAKA,EAAO,OAAO,IAAI,CAAIC,EAAO,OAAOA,EAAO,MAAM,MAAM,OAAO,CAAC,SAAAP,EAAS,OAAAC,EAAO,OAAAC,EAAO,OAAO,iBAAiBD,CAAM,EAAE,CAAC,CAAG,EAAE,SAAS,KAAK,YAAYK,CAAM,EAAQ,IAAI,CAC9RA,EAAO,OAAO,CAAE,CAAE,EAAE,CAACN,EAASC,EAAOC,CAAM,CAAC,EAAsBM,EAAK,MAAM,CAAC,GAAG,gBAAgBP,CAAM,GAAG,IAAIE,EAAQ,MAAMM,CAAkB,CAAC,CAAE,CACjJC,EAAoBZ,EAAY,CAAC,SAAS,CAAC,MAAM,YAAY,KAAKa,EAAY,OAAO,aAAa,UAAU,EAAE,OAAO,CAAC,MAAM,UAAU,KAAKA,EAAY,OAAO,aAAa,sCAAsC,EAAE,OAAO,CAAC,MAAM,SAAS,KAAKA,EAAY,OAAO,aAAa,KAAK,CAAC,CAAC,EACtR,IAAMF,EAAmB,CAAC,MAAM,MAAM",
  "names": ["HubSpotForm", "props", "portalId", "formId", "region", "formRef", "pe", "ue", "script", "window", "p", "formContainerStyle", "addPropertyControls", "ControlType"]
}
