{"version":3,"file":"CloseForm.iO2A5nwi.mjs","names":["React.useRef"],"sources":["https:/framerusercontent.com/modules/gS66mHveoNwpvbOMw8w9/YDsFaVWeUKNWQjv9OfBI/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_033083O6aSwaK7fxf6ubVL\",contactUs:\"form_032xKVfUd8GBjbevfXLyc6\",scheduleDemo:\"form_03307THdul4Ie0vQhsPUz2\",shiftingFinopsLeft:\"form_0330FVyPO96APkaIxkVYO8\",shiftLeftRoi:\"form_0330q54CmSX5AxJ8uFnwHB\",popoverEbook:\"form_0335FXEnnM5bJClX33Nicz\",popoverWpBeyondDashboards:\"form_0335LL0Z0Cs9YxsH3xySU4\",popoverWpRoi:\"form_0335LckfReAS4OZXzQwAUU\",FinOpsX2026Dinner:\"form_0338Aw6LVSEcXYkqzcD4kb\",agentWaitlist:\"form_033H84jjlDf9GVnOuW2QXo\",aiWaitlist:\"form_034GoBk7wx79B5xOjvKLtU\"};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\",\"/agent-waitlist\",\"/ai-waitlist\"],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\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CloseForm.map"],"mappings":"kLAGG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,mBAAmB,YAAU,KAAK,EAAY,EAAIA,EAAa,IAAI,EAAsjB,OAApjB,MAAoB,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAO,EAAM,IAAU,EAAM,iBAAiB,EAAI,QAAQ,UAAU,GAAG,IAAM,EAAK,SAAS,cAAc,YAAY,EAAkK,GAAhK,EAAK,aAAa,KAAK,CAAM,EAAE,EAAI,QAAQ,YAAY,CAAI,EAAwG,CAAvF,SAAS,cAAc,2DAAwE,EAAE,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,8CAA8C,EAAO,KAAK,SAAS,EAAO,YAAY,YAAY,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,CAAM,CAAE,CAAC,EAAE,CAAC,CAAO,CAAC,EAAsB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,WAAS,CAAC,CAAC,CAAE,qBAHltB,IAA4B,IAAoD,EAAO,EAAM,CAAC,iBAAiB,8BAA8B,UAAU,8BAA8B,aAAa,8BAA8B,mBAAmB,8BAA8B,aAAa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