{"version":3,"file":"CloseForm.DWwDOMTP.mjs","names":["React.useRef"],"sources":["https:/framerusercontent.com/modules/gS66mHveoNwpvbOMw8w9/FbQgcr1kxZhMPWwqN8FK/CloseForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const FORMS={beyondDashboards:\"form_03307THdul4le0vQhsPUz2\",contactUs:\"form_032xKVfUd8GBjbevfXLyc6\",scheduleDemo:\"form_032xKVfUd8GBjbevfXLyc6\",shiftingFinopsLeft:\"form_0330q54CmSX5AxJ8uFnwHB\",shiftLeftRoi:\"form_0330q54CmSX5AxJ8uFnwHB\",popoverEbook:\"form_0335FXEnnM5bJClX33Nicz\",popoverWpBeyondDashboards:\"form_0335LL0Z0Cs9YxsH3xySU4\",popoverWpRoi:\"form_0335LckfReAS4OZXzQwAUU\"};const FORM_OPTIONS=Object.keys(FORMS);/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function CloseForm(props){const{formKey=\"beyondDashboards\",minHeight=500}=props;const ref=React.useRef(null);React.useEffect(()=>{if(!ref.current)return;const formId=FORMS[formKey]||FORMS.beyondDashboards;ref.current.innerHTML=\"\";const form=document.createElement(\"close-form\");form.setAttribute(\"id\",formId);ref.current.appendChild(form);const existing=document.querySelector('script[src=\"https://webforms.closeiocdn.com/webforms.js\"]');if(!existing){const script=document.createElement(\"script\");script.src=\"https://webforms.closeiocdn.com/webforms.js\";script.type=\"module\";script.crossOrigin=\"anonymous\";script.defer=true;document.body.appendChild(script);}},[formKey]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",minHeight}});}addPropertyControls(CloseForm,{formKey:{type:ControlType.Enum,title:\"Form\",options:FORM_OPTIONS,optionTitles:[\"/beyond-dashboards\",\"/contact-us\",\"/schedule-demo\",\"/shifting-finops-left\",\"/shift-left-return-on-investment\",\"Popover ebook\",\"Popover WP Beyond Dashboards\",\"Popover WP ROI\"],defaultValue:\"beyondDashboards\"},minHeight:{type:ControlType.Number,title:\"Min Height\",defaultValue:500,min:200,max:1200,step:50}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CloseForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CloseForm.map"],"mappings":"kLAGG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,mBAAmB,YAAU,KAAK,EAAY,EAAIA,EAAa,KAAK,CAAqjB,OAApjB,MAAoB,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAO,EAAM,IAAU,EAAM,iBAAiB,EAAI,QAAQ,UAAU,GAAG,IAAM,EAAK,SAAS,cAAc,aAAa,CAAiK,GAAhK,EAAK,aAAa,KAAK,EAAO,CAAC,EAAI,QAAQ,YAAY,EAAK,CAAuG,CAAvF,SAAS,cAAc,4DAA4D,CAAc,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,IAAI,8CAA8C,EAAO,KAAK,SAAS,EAAO,YAAY,YAAY,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,GAAI,CAAC,EAAQ,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,YAAU,CAAC,CAAC,sBAHhtB,IAA4B,IAAoD,CAAM,EAAM,CAAC,iBAAiB,8BAA8B,UAAU,8BAA8B,aAAa,8BAA8B,mBAAmB,8BAA8B,aAAa,8BAA8B,aAAa,8BAA8B,0BAA0B,8BAA8B,aAAa,8BAA8B,CAAO,EAAa,OAAO,KAAK,EAAM,CAGmO,EAAoB,EAAU,CAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,QAAQ,EAAa,aAAa,CAAC,qBAAqB,cAAc,iBAAiB,wBAAwB,mCAAmC,gBAAgB,+BAA+B,iBAAiB,CAAC,aAAa,mBAAmB,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,aAAa,IAAI,IAAI,IAAI,IAAI,KAAK,KAAK,GAAG,CAAC,CAAC"}