{"version":3,"file":"HubspotForm.BhSEOSn6.mjs","names":["useRef","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/wr3AJ8ec2lO1f1ai9axp/BOBqTUi6NlsMvwWkSBQ1/HubspotForm.js"],"sourcesContent":["// Hubspot Form component with custom styling\n// Allows users to embed Hubspot forms with Portal ID and Form ID\n// Styled to match Framer design system with dark theme\n// Uses slots for button states: default, loading, success, error, disabled\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,startTransition,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function HubspotForm(props){const{portalId,formId,backgroundColor,fieldBackgroundColor,textColor,buttonBackgroundColor,buttonTextColor,borderRadius,padding,gap,labelFont,inputFont,buttonFont,errorColor,errorFont,linkColor,linkFont,disclaimerFont,disclaimerColor,checkboxFont,checkboxColor,defaultButton,loadingButton,successButton,errorButton,disabledButton,resetAfterSeconds}=props;const containerRef=useRef(null);const[isScriptLoaded,setIsScriptLoaded]=useState(false);const[error,setError]=useState(null);const[formState,setFormState]=useState(\"default\");const[formReady,setFormReady]=useState(false);const observerRef=useRef(null);const timeoutRef=useRef(null);const pollIntervalRef=useRef(null);const resetTimeoutRef=useRef(null);useEffect(()=>{if(typeof window===\"undefined\")return;const scriptId=\"hubspot-forms-script\";let script=document.getElementById(scriptId);if(!script){script=document.createElement(\"script\");script.id=scriptId;script.src=\"https://js.hsforms.net/forms/v2.js\";script.charset=\"utf-8\";script.type=\"text/javascript\";script.async=true;document.body.appendChild(script);script.onload=()=>{startTransition(()=>setIsScriptLoaded(true));};script.onerror=()=>{startTransition(()=>setError(\"Failed to load HubSpot forms script\"));};}else if(window.hbspt&&window.hbspt.forms){startTransition(()=>setIsScriptLoaded(true));}},[]);useEffect(()=>{if(!isScriptLoaded||!containerRef.current||typeof window===\"undefined\")return;if(!portalId||!formId)return;let scheduleReset;let createForm;scheduleReset=()=>{if(resetAfterSeconds>0){// Clear any existing reset timeout\nif(resetTimeoutRef.current){clearTimeout(resetTimeoutRef.current);}// Schedule form reset\nresetTimeoutRef.current=window.setTimeout(()=>{// Reload the form by clearing and recreating it\nif(containerRef.current){const formContainer=containerRef.current.querySelector(`#hubspot-form-${portalId}-${formId}`);if(formContainer){formContainer.innerHTML=\"\";}}startTransition(()=>{setFormState(\"default\");setFormReady(false);});// Recreate the form\ncreateForm();},resetAfterSeconds*1e3);}};createForm=()=>{if(!window.hbspt||!window.hbspt.forms)return;try{window.hbspt.forms.create({portalId:portalId,formId:formId,target:`#hubspot-form-${portalId}-${formId}`,css:\"\",onFormReady:()=>{// Form is ready - hide default submit button\nconst formElement=containerRef.current?.querySelector(\"form.hs-form\");if(formElement){const submitDiv=formElement.querySelector(\".hs-submit\");if(submitDiv){const defaultSubmitButton=submitDiv.querySelector('input[type=\"submit\"]');if(defaultSubmitButton){defaultSubmitButton.style.display=\"none\";}}}startTransition(()=>{setFormState(\"default\");setFormReady(true);});},onFormSubmit:()=>{// User clicked submit - set loading state\nstartTransition(()=>setFormState(\"loading\"));// Clear any existing timeout or polling\nif(timeoutRef.current){clearTimeout(timeoutRef.current);}if(pollIntervalRef.current){clearInterval(pollIntervalRef.current);}// Poll for success indicators every 200ms\npollIntervalRef.current=window.setInterval(()=>{if(!containerRef.current){if(pollIntervalRef.current){clearInterval(pollIntervalRef.current);pollIntervalRef.current=null;}return;}const formElement=containerRef.current.querySelector(\"form.hs-form\");// Check multiple success indicators\n// 1. Success message with content\nconst successMessage=containerRef.current.querySelector(\".submitted-message\");if(successMessage&&successMessage.textContent&&successMessage.textContent.trim().length>0){if(pollIntervalRef.current){clearInterval(pollIntervalRef.current);pollIntervalRef.current=null;}if(timeoutRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=null;}startTransition(()=>setFormState(\"success\"));scheduleReset();return;}// 2. Form is hidden (HubSpot hides form on success)\nif(formElement&&formElement.style.display===\"none\"){if(pollIntervalRef.current){clearInterval(pollIntervalRef.current);pollIntervalRef.current=null;}if(timeoutRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=null;}startTransition(()=>setFormState(\"success\"));scheduleReset();return;}// 3. Form fields are removed (another success indicator)\nconst hsFormFields=containerRef.current.querySelector(\".hs-form-field\");if(!hsFormFields&&formElement){if(pollIntervalRef.current){clearInterval(pollIntervalRef.current);pollIntervalRef.current=null;}if(timeoutRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=null;}startTransition(()=>setFormState(\"success\"));scheduleReset();return;}},200);},onFormSubmitted:()=>{// Clear all timeouts and intervals since we got the callback\nif(timeoutRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=null;}if(pollIntervalRef.current){clearInterval(pollIntervalRef.current);pollIntervalRef.current=null;}// This fires when HubSpot successfully processes the form\nstartTransition(()=>setFormState(\"success\"));scheduleReset();}});startTransition(()=>setError(null));// Set up MutationObserver as fallback to detect success/error messages\nif(containerRef.current){observerRef.current=new MutationObserver(mutations=>{for(const mutation of mutations){if(mutation.type===\"childList\"){// Check for success message\nconst successMessage=containerRef.current?.querySelector(\".submitted-message\");if(successMessage){if(timeoutRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=null;}startTransition(()=>setFormState(\"success\"));scheduleReset();return;}// Check for error messages\nconst errorMessages=containerRef.current?.querySelectorAll(\".hs-error-msg, .hs-error-msgs\");if(errorMessages&&errorMessages.length>0){// Don't set error state for validation errors, keep loading\n// Only the timeout or onFormSubmitted should change from loading\n}}}});observerRef.current.observe(containerRef.current,{childList:true,subtree:true});}}catch(err){startTransition(()=>{setError(\"Failed to create form. Check Portal ID and Form ID.\");setFormState(\"error\");});}};let tries=0;const interval=setInterval(()=>{tries++;if(window.hbspt&&window.hbspt.forms){clearInterval(interval);createForm();}if(tries>50){clearInterval(interval);startTransition(()=>{setError(\"HubSpot forms failed to initialize\");setFormState(\"error\");});}},50);return()=>{clearInterval(interval);// Clean up MutationObserver\nif(observerRef.current){observerRef.current.disconnect();observerRef.current=null;}// Clean up timeout\nif(timeoutRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=null;}// Clean up polling interval\nif(pollIntervalRef.current){clearInterval(pollIntervalRef.current);pollIntervalRef.current=null;}// Clean up reset timeout\nif(resetTimeoutRef.current){clearTimeout(resetTimeoutRef.current);resetTimeoutRef.current=null;}};},[isScriptLoaded,portalId,formId,resetAfterSeconds]);const formattedTextColor=textColor.startsWith(\"rgba\")?textColor:`rgba(${parseInt(textColor.slice(1,3),16)}, ${parseInt(textColor.slice(3,5),16)}, ${parseInt(textColor.slice(5,7),16)}, 0.92)`;const mutedColor=textColor.startsWith(\"rgba\")?textColor.replace(/[\\d.]+\\)$/g,\"0.72)\"):`rgba(${parseInt(textColor.slice(1,3),16)}, ${parseInt(textColor.slice(3,5),16)}, ${parseInt(textColor.slice(5,7),16)}, 0.72)`;const placeholderColor=textColor.startsWith(\"rgba\")?textColor.replace(/[\\d.]+\\)$/g,\"0.35)\"):`rgba(${parseInt(textColor.slice(1,3),16)}, ${parseInt(textColor.slice(3,5),16)}, ${parseInt(textColor.slice(5,7),16)}, 0.35)`;const borderColor=textColor.startsWith(\"rgba\")?textColor.replace(/[\\d.]+\\)$/g,\"0.25)\"):`rgba(${parseInt(textColor.slice(1,3),16)}, ${parseInt(textColor.slice(3,5),16)}, ${parseInt(textColor.slice(5,7),16)}, 0.25)`;const focusBorderColor=textColor.startsWith(\"rgba\")?textColor.replace(/[\\d.]+\\)$/g,\"0.45)\"):`rgba(${parseInt(textColor.slice(1,3),16)}, ${parseInt(textColor.slice(3,5),16)}, ${parseInt(textColor.slice(5,7),16)}, 0.45)`;const handleButtonClick=()=>{if(formState===\"success\"||formState===\"disabled\")return;const formElement=containerRef.current?.querySelector(\"form.hs-form\");if(formElement){const submitButton=formElement.querySelector('input[type=\"submit\"]');if(submitButton){submitButton.click();}}};const renderButton=()=>{// Check if any slots are connected\nconst hasSlots=defaultButton||loadingButton||successButton||errorButton||disabledButton;if(!hasSlots){// No slots connected, show default button for all states\nswitch(formState){case\"loading\":return /*#__PURE__*/_jsx(DefaultButton,{text:\"Submitting...\",disabled:true});case\"success\":return /*#__PURE__*/_jsx(DefaultButton,{text:\"Thank you\",disabled:true});case\"error\":return /*#__PURE__*/_jsx(DefaultButton,{text:\"Something went wrong\",disabled:true});case\"disabled\":return /*#__PURE__*/_jsx(DefaultButton,{text:\"Request demo\",disabled:true});default:return /*#__PURE__*/_jsx(DefaultButton,{text:\"Request demo\"});}}// Slots are connected, show appropriate slot\nswitch(formState){case\"loading\":return loadingButton||defaultButton||/*#__PURE__*/_jsx(DefaultButton,{text:\"Submitting...\",disabled:true});case\"success\":return successButton||defaultButton||/*#__PURE__*/_jsx(DefaultButton,{text:\"Thank you\",disabled:true});case\"error\":return errorButton||defaultButton||/*#__PURE__*/_jsx(DefaultButton,{text:\"Something went wrong\",disabled:true});case\"disabled\":return disabledButton||defaultButton||/*#__PURE__*/_jsx(DefaultButton,{text:\"Request demo\",disabled:true});default:return defaultButton||/*#__PURE__*/_jsx(DefaultButton,{text:\"Request demo\"});}};return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",backgroundColor:backgroundColor,padding:`${padding}px`,boxSizing:\"border-box\",overflow:\"auto\",fontFamily:\"inherit\",...props.style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n          .hubspot-form-container {\n            --bg: ${backgroundColor};\n            --field-bg: ${fieldBackgroundColor};\n            --field-border: ${borderColor};\n            --text: ${formattedTextColor};\n            --muted: ${mutedColor};\n            --placeholder: ${placeholderColor};\n            --error: #ff5a5f;\n            --focus-border: ${focusBorderColor};\n            --button-bg: ${buttonBackgroundColor};\n            --button-text: ${buttonTextColor};\n            --border-radius: ${borderRadius}px;\n            --gap: ${gap}px;\n          }\n\n          .hubspot-form-container :where(form.hs-form) {\n            margin: 0;\n          }\n\n          .hubspot-form-container :where(.hs-form-field > label, label.hs-form-field-label) {\n            display: block;\n            margin: 0 0 10px 0;\n            color: var(--text);\n            font-size: ${labelFont?.fontSize||\"14px\"};\n            font-weight: ${labelFont?.fontWeight||600};\n            font-family: ${labelFont?.fontFamily||\"inherit\"};\n            font-style: ${labelFont?.fontStyle||\"normal\"};\n            line-height: ${labelFont?.lineHeight||\"1.2\"};\n            letter-spacing: ${labelFont?.letterSpacing||\"-0.01em\"};\n            text-align: ${labelFont?.textAlign||\"left\"};\n          }\n\n          .hubspot-form-container :where(.hs-form-required) {\n            color: var(--muted);\n            margin-left: 6px;\n            font-weight: 700;\n          }\n\n          .hubspot-form-container :where(.hs-form-field) {\n            margin: 0 0 var(--gap) 0;\n          }\n\n          .hubspot-form-container :where(input[type=\"text\"], input[type=\"email\"], input[type=\"tel\"], input[type=\"number\"], select, textarea) {\n            width: 100% !important;\n            box-sizing: border-box !important;\n            background: var(--field-bg) !important;\n            color: var(--text) !important;\n            border: 1px solid var(--field-border) !important;\n            border-radius: var(--border-radius) !important;\n            outline: none !important;\n            padding: 12px 14px !important;\n            font-size: ${inputFont?.fontSize||\"16px\"} !important;\n            font-weight: ${inputFont?.fontWeight||400} !important;\n            font-family: ${inputFont?.fontFamily||\"inherit\"} !important;\n            font-style: ${inputFont?.fontStyle||\"normal\"} !important;\n            line-height: ${inputFont?.lineHeight||\"1.2\"} !important;\n            letter-spacing: ${inputFont?.letterSpacing||\"0em\"} !important;\n            text-align: ${inputFont?.textAlign||\"left\"} !important;\n            box-shadow: none !important;\n            -webkit-appearance: none;\n            appearance: none;\n          }\n\n          .hubspot-form-container :where(input[type=\"text\"], input[type=\"email\"], input[type=\"tel\"], input[type=\"number\"], select) {\n            height: 46px !important;\n          }\n\n          .hubspot-form-container :where(textarea) {\n            min-height: 130px !important;\n            resize: vertical;\n          }\n\n          .hubspot-form-container :where(input::placeholder, textarea::placeholder) {\n            color: var(--placeholder) !important;\n          }\n\n          .hubspot-form-container :where(input:focus, textarea:focus, select:focus) {\n            border-color: var(--focus-border) !important;\n          }\n\n          .hubspot-form-container :where(.hs-error-msgs, .hs-error-msg) {\n            margin: 8px 0 0 0;\n            padding: 0;\n            list-style: none;\n            color: ${errorColor};\n            font-size: ${errorFont?.fontSize||\"12px\"};\n            font-weight: ${errorFont?.fontWeight||400};\n            font-family: ${errorFont?.fontFamily||\"inherit\"};\n            font-style: ${errorFont?.fontStyle||\"normal\"};\n            line-height: ${errorFont?.lineHeight||\"1.3\"};\n            letter-spacing: ${errorFont?.letterSpacing||\"0em\"};\n            text-align: ${errorFont?.textAlign||\"left\"};\n          }\n\n          .hubspot-form-container :where(.input) {\n            margin-right: 0 !important;\n          }\n\n          .hubspot-form-container :where(.hs-submit) {\n            margin-top: var(--gap);\n            position: relative;\n            display: none !important;\n          }\n\n          .hubspot-form-container :where(input[type=\"submit\"], .hs-button) {\n            width: 100% !important;\n            display: block !important;\n            background: var(--button-bg) !important;\n            color: var(--button-text) !important;\n            border: 1px solid var(--field-border) !important;\n            padding: 14px 16px !important;\n            border-radius: var(--border-radius) !important;\n            font-size: ${buttonFont?.fontSize||\"14px\"} !important;\n            font-weight: ${buttonFont?.fontWeight||500} !important;\n            font-family: ${buttonFont?.fontFamily||\"inherit\"} !important;\n            font-style: ${buttonFont?.fontStyle||\"normal\"} !important;\n            letter-spacing: ${buttonFont?.letterSpacing||\"-0.01em\"};\n            cursor: pointer;\n            transition: transform .08s ease, opacity .15s ease;\n          }\n\n          .hubspot-form-container :where(input[type=\"submit\"]:hover, .hs-button:hover) {\n            opacity: .92;\n          }\n\n          .hubspot-form-container :where(input[type=\"submit\"]:active, .hs-button:active) {\n            transform: translateY(1px);\n          }\n\n          .hubspot-form-container :where(.hs-richtext, .legal-consent-container, .hs-form-booleancheckbox) {\n            color: var(--muted);\n            font-size: 12px;\n            line-height: 1.4;\n          }\n\n          .hubspot-form-container :where(a) {\n            color: ${linkColor};\n            font-size: ${linkFont?.fontSize||\"12px\"};\n            font-weight: ${linkFont?.fontWeight||400};\n            font-family: ${linkFont?.fontFamily||\"inherit\"};\n            font-style: ${linkFont?.fontStyle||\"normal\"};\n            line-height: ${linkFont?.lineHeight||\"1.4\"};\n            letter-spacing: ${linkFont?.letterSpacing||\"0em\"};\n            text-decoration: underline;\n          }\n\n          .hubspot-form-container :where(.hs-richtext p, .legal-consent-container p) {\n            color: ${disclaimerColor};\n            font-size: ${disclaimerFont?.fontSize||\"12px\"};\n            font-weight: ${disclaimerFont?.fontWeight||400};\n            font-family: ${disclaimerFont?.fontFamily||\"inherit\"};\n            font-style: ${disclaimerFont?.fontStyle||\"normal\"};\n            line-height: ${disclaimerFont?.lineHeight||\"1.4\"};\n            letter-spacing: ${disclaimerFont?.letterSpacing||\"0em\"};\n          }\n\n          .hubspot-form-container :where(.hs-form-booleancheckbox label, .hs-form-booleancheckbox span) {\n            color: ${checkboxColor};\n            font-size: ${checkboxFont?.fontSize||\"12px\"};\n            font-weight: ${checkboxFont?.fontWeight||400};\n            font-family: ${checkboxFont?.fontFamily||\"inherit\"};\n            font-style: ${checkboxFont?.fontStyle||\"normal\"};\n            line-height: ${checkboxFont?.lineHeight||\"1.4\"};\n            letter-spacing: ${checkboxFont?.letterSpacing||\"0em\"};\n          }\n\n          .hubspot-form-container :where(.hs-form .hs-form-field .hs-form-field) {\n            width: 100% !important;\n            float: none !important;\n          }\n\n          .custom-button-wrapper {\n            margin-top: var(--gap);\n            width: 100%;\n            min-height: 48px;\n            display: flex;\n            cursor: pointer;\n          }\n\n          .custom-button-wrapper > * {\n            width: 100%;\n            flex: 1;\n          }\n        `}),error&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"#ff5a5f\",fontSize:\"14px\",padding:\"10px\",backgroundColor:\"rgba(255, 90, 95, 0.1)\",borderRadius:`${borderRadius}px`,marginBottom:\"10px\"},children:error}),!portalId||!formId?/*#__PURE__*/_jsx(\"div\",{style:{color:mutedColor,fontSize:\"14px\",textAlign:\"center\",padding:\"20px\"},children:\"Please enter Portal ID and Form ID in the component properties\"}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{className:\"hubspot-form-container\",id:`hubspot-form-${portalId}-${formId}`}),formReady&&/*#__PURE__*/_jsx(\"div\",{className:\"custom-button-wrapper\",onClick:handleButtonClick,children:renderButton()})]})]});}// Default button component for fallback\nfunction DefaultButton({text,disabled=false}){return /*#__PURE__*/_jsx(\"button\",{type:\"button\",disabled:disabled,style:{width:\"100%\",padding:\"14px 16px\",backgroundColor:\"#F5F5F5\",color:\"#0B0B0B\",border:\"1px solid rgba(255,255,255,.25)\",borderRadius:\"0px\",fontSize:\"14px\",fontWeight:500,letterSpacing:\"-0.01em\",cursor:disabled?\"not-allowed\":\"pointer\",opacity:disabled?.6:1},children:text});}addPropertyControls(HubspotForm,{portalId:{type:ControlType.String,title:\"Portal ID\",defaultValue:\"\",placeholder:\"Enter your HubSpot Portal ID\"},formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"\",placeholder:\"Enter your HubSpot Form ID\"},defaultButton:{type:ControlType.Slot,title:\"Default Button\"},loadingButton:{type:ControlType.Slot,title:\"Loading Button\"},successButton:{type:ControlType.Slot,title:\"Success Button\"},errorButton:{type:ControlType.Slot,title:\"Error Button\"},disabledButton:{type:ControlType.Slot,title:\"Disabled Button\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},fieldBackgroundColor:{type:ControlType.Color,title:\"Field Background\",defaultValue:\"#333333\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},buttonBackgroundColor:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#F5F5F5\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#0B0B0B\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:20,step:1,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:20,min:0,max:60,step:1,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:22,min:0,max:60,step:1,unit:\"px\"},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},inputFont:{type:ControlType.Font,title:\"Input Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.2em\"}},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},errorColor:{type:ControlType.Color,title:\"Error Color\",defaultValue:\"#ff5a5f\"},errorFont:{type:ControlType.Font,title:\"Error Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.3em\"}},linkColor:{type:ControlType.Color,title:\"Link Color\",defaultValue:\"#0099FF\"},linkFont:{type:ControlType.Font,title:\"Link Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"}},disclaimerColor:{type:ControlType.Color,title:\"Disclaimer Color\",defaultValue:\"#FFFFFF\"},disclaimerFont:{type:ControlType.Font,title:\"Disclaimer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"}},checkboxColor:{type:ControlType.Color,title:\"Checkbox Color\",defaultValue:\"#FFFFFF\"},checkboxFont:{type:ControlType.Font,title:\"Checkbox Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"}},resetAfterSeconds:{type:ControlType.Number,title:\"Reset After\",defaultValue:0,min:0,max:60,step:1,unit:\"s\",displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HubspotForm\",\"slots\":[\"defaultButton\",\"loadingButton\",\"successButton\",\"errorButton\",\"disabledButton\"],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HubspotForm.map"],"mappings":"sNAOG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,WAAS,SAAO,kBAAgB,uBAAqB,YAAU,wBAAsB,kBAAgB,eAAa,UAAQ,MAAI,YAAU,YAAU,aAAW,aAAW,YAAU,YAAU,WAAS,iBAAe,kBAAgB,eAAa,gBAAc,gBAAc,gBAAc,gBAAc,cAAY,iBAAe,qBAAmB,EAAY,EAAaA,EAAO,KAAK,CAAM,CAAC,EAAe,GAAmBC,EAAS,GAAM,CAAM,CAAC,EAAM,GAAUA,EAAS,KAAK,CAAM,CAAC,EAAU,GAAcA,EAAS,UAAU,CAAM,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAO,EAAYD,EAAO,KAAK,CAAO,EAAWA,EAAO,KAAK,CAAO,EAAgBA,EAAO,KAAK,CAAO,EAAgBA,EAAO,KAAK,CAAC,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAS,uBAA2B,EAAO,SAAS,eAAe,EAAS,CAAK,EAAkY,EAAO,OAAO,EAAO,MAAM,OAAO,MAAoB,EAAkB,GAAK,CAAC,EAAxc,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,GAAG,EAAS,EAAO,IAAI,qCAAqC,EAAO,QAAQ,QAAQ,EAAO,KAAK,kBAAkB,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,CAAC,EAAO,WAAW,CAAC,MAAoB,EAAkB,GAAK,CAAC,EAAG,EAAO,YAAY,CAAC,MAAoB,EAAS,sCAAsC,CAAC,IA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