{"version":3,"file":"HubSpotFormtest.BirCWV9Y.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/bDb4jNL8jlULOCrYvFxW/XJ59I5WHqiXYeatbyXLn/HubSpotFormtest.js"],"sourcesContent":["// HubSpot form component that redirects to a thank-you page on submit\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * HubSpot Form with thank-you page redirect\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 500\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function HubSpotForm(props){const{portalId,formId,region,redirectUrl,textColor,buttonColor,buttonTextColor,buttonBorderRadius,inputBorderColor,inputBackgroundColor,inputBorderRadius,inputFocusColor,buttonHoverBackground,buttonHoverTextColor,buttonTextTransform,buttonPlacement,buttonWidthDesktop,buttonWidthTablet,buttonWidthMobile,inputPadding,buttonPadding,linkColor,linkHoverColor,font,buttonFont,labelSize,labelColor,labelLetterSpacing,footerTextSize,footerTextColor,disclaimerGap,footerMarginBottom,selectPlaceholderColor,selectPlaceholderSize,selectPlaceholderTransform,inlineLayout,inlinePlaceholder}=props;const formRef=useRef(null);// Guards against the redirect firing more than once (HubSpot can fire\n// `onFormSubmitted` twice in some configurations).\nconst redirectedRef=useRef(false);const[isLoaded,setIsLoaded]=useState(false);const[error,setError]=useState(null);useEffect(()=>{if(typeof window===\"undefined\")return;if(!portalId||!formId){startTransition(()=>setError(\"Please provide Portal ID and Form ID\"));return;}const script=document.createElement(\"script\");script.src=\"https://js.hsforms.net/forms/v2.js\";script.async=true;script.charset=\"utf-8\";script.onload=()=>{if(window.hbspt&&formRef.current){try{window.hbspt.forms.create({region:region,portalId:portalId,formId:formId,target:`#hubspot-form-${formId}`,onFormReady:()=>{startTransition(()=>setIsLoaded(true));applyCustomStyles();initSelectColorListeners();// Inject placeholder for inline layout — HubSpot\n// strips placeholders from text fields by default,\n// so set it client-side.\nif(inlineLayout&&inlinePlaceholder&&formRef.current){const input=formRef.current.querySelector('input[type=\"email\"], input[type=\"text\"]');if(input)input.placeholder=inlinePlaceholder;}}});}catch(err){startTransition(()=>setError(\"Failed to load form. Check your Portal ID and Form ID.\"));}}};script.onerror=()=>{startTransition(()=>setError(\"Failed to load HubSpot script\"));};document.body.appendChild(script);// Listen for HubSpot's postMessage events. The HubSpot v2 embed\n// sends the form id under both `formId` and (in some versions) `id`.\n//\n// HubSpot fires TWO events per submission:\n//   1. `onFormSubmit`     — on click, BEFORE the network POST\n//   2. `onFormSubmitted`  — after the network POST succeeds\n//\n// We redirect ONLY on `onFormSubmitted`. This guarantees HubSpot's\n// network request has actually completed before we navigate away —\n// redirecting on the earlier `onFormSubmit` event would abort the\n// POST on slow connections and silently lose the submission.\n//\n// The thank-you page (e.g. /demo-thank-you) is responsible for\n// conversion tracking — LinkedIn Insight Tag, etc. A successful\n// landing on that page IS the conversion signal, which is more\n// reliable than firing a pixel from inside this component.\nconst handleHubSpotMessage=event=>{if(!event.data||typeof event.data!==\"object\"||event.data.type!==\"hsFormCallback\"){return;}// Diagnostic: log every HubSpot callback event we receive, so\n// we can see exactly what's coming through and why it's being\n// accepted or filtered out. Remove once redirect is confirmed.\nconsole.log(\"[HubSpotForm] hsFormCallback received:\",{eventName:event.data.eventName,messageFormId:event.data.formId??event.data.id,ourFormId:formId,match:!(event.data.formId??event.data.id)||(event.data.formId??event.data.id)===formId,redirectUrl:redirectUrl});// Accept the message if either id field matches, OR if neither\n// is present (some HubSpot versions omit the id entirely).\nconst messageFormId=event.data.formId??event.data.id;if(messageFormId&&messageFormId!==formId){console.log(\"[HubSpotForm] event ignored — form id mismatch:\",messageFormId,\"!==\",formId);return;}if(event.data.eventName===\"onFormSubmitted\"){if(redirectedRef.current)return;redirectedRef.current=true;console.log(\"[HubSpotForm] onFormSubmitted — HubSpot network call complete\");if(!redirectUrl){console.warn(\"[HubSpotForm] No redirect URL configured — staying on page. Set a Redirect URL in the component properties.\");return;}// Resolve the redirect target. We want this to work whether\n// the user passes a relative path (\"/demo-thank-you\") or a\n// full URL (\"https://site.com/demo-thank-you\").\n//\n// Important: when this component runs inside an iframe\n// (Framer canvas/preview, or any embed), `window.location`\n// refers to the iframe, not the top page. We navigate the\n// TOP window so the whole page goes to the thank-you page,\n// and resolve relative URLs against the top window's origin\n// so \"/demo-thank-you\" doesn't resolve against the iframe's\n// sandbox domain.\nlet target=redirectUrl.trim();try{const topWin=window.top||window;const isAbsolute=/^https?:\\/\\//i.test(target);if(!isAbsolute){// Build an absolute URL against the top origin.\nconst origin=topWin.location.origin;target=origin+(target.startsWith(\"/\")?target:\"/\"+target);}console.log(\"[HubSpotForm] redirecting to:\",target);topWin.location.href=target;}catch(err){// Cross-origin restriction reading window.top.location\n// (e.g. inside the Framer canvas). Fall back to the\n// current window — works fine on the real published\n// site, which is the only place the redirect matters.\nconsole.warn(\"[HubSpotForm] Couldn't access top window (likely the Framer canvas/preview). Falling back to current window. This should work correctly on the published site.\",err);window.location.href=redirectUrl;}}};window.addEventListener(\"message\",handleHubSpotMessage);return()=>{if(document.body.contains(script)){document.body.removeChild(script);}window.removeEventListener(\"message\",handleHubSpotMessage);};},[portalId,formId,region,redirectUrl]);useEffect(()=>{if(isLoaded){applyCustomStyles();}},[isLoaded,textColor,buttonColor,buttonTextColor,buttonBorderRadius,inputBorderColor,inputBackgroundColor,inputBorderRadius,inputFocusColor,buttonHoverBackground,buttonHoverTextColor,buttonTextTransform,buttonPlacement,buttonWidthDesktop,buttonWidthTablet,buttonWidthMobile,inputPadding,buttonPadding,linkColor,linkHoverColor,font,buttonFont,labelSize,labelColor,labelLetterSpacing,footerTextSize,footerTextColor,disclaimerGap,footerMarginBottom,selectPlaceholderColor,selectPlaceholderSize,selectPlaceholderTransform,inlineLayout,inlinePlaceholder]);// Keep placeholder in sync if the prop changes after the form mounts.\nuseEffect(()=>{if(!isLoaded||!formRef.current)return;if(inlineLayout&&inlinePlaceholder){const input=formRef.current.querySelector('input[type=\"email\"], input[type=\"text\"]');if(input)input.placeholder=inlinePlaceholder;}},[isLoaded,inlineLayout,inlinePlaceholder]);const initSelectColorListeners=()=>{if(!formRef.current)return;const selects=formRef.current.querySelectorAll(\"select\");selects.forEach(select=>{const updateSelectColor=()=>{if(select.value&&select.value!==\"\"){select.classList.add(\"has-value\");}else{select.classList.remove(\"has-value\");}};updateSelectColor();select.addEventListener(\"change\",updateSelectColor);});};const applyCustomStyles=()=>{if(!formRef.current)return;// Style tag lives in document.head, NOT inside the form. After a\n// successful submission HubSpot replaces the form HTML with a\n// .submitted-message div — any style tag inside the form goes with\n// it, leaving the success message unstyled. Putting the style in\n// <head> means it persists across the form → success swap.\nconst styleId=`hs-custom-styles-${formId}`;const existing=document.getElementById(styleId);if(existing)existing.remove();const styleElement=document.createElement(\"style\");styleElement.id=styleId;styleElement.setAttribute(\"data-hs-custom\",\"true\");styleElement.textContent=`\n            #hubspot-form-${formId} .hs-form {\n                font-family: ${font.fontFamily||\"'Inter', sans-serif\"};\n                font-size: ${font.fontSize||\"14px\"};\n                font-weight: ${font.fontWeight||\"400\"};\n                line-height: ${font.lineHeight||\"normal\"};\n                letter-spacing: ${font.letterSpacing||\"-0.42px\"};\n                color: ${textColor};\n                width: 100%;\n                margin-bottom: 0 !important;\n            }\n            \n            #hubspot-form-${formId} .hs-form label:not(.hs-error-msg) {\n                color: ${labelColor};\n                font-family: ${font.fontFamily||\"'Inter', sans-serif\"};\n                font-size: ${labelSize};\n                font-weight: 400;\n                letter-spacing: ${labelLetterSpacing};\n                line-height: normal;\n                margin-bottom: 15px;\n                display: block;\n            }\n            \n            #hubspot-form-${formId} .hs-form .hs-form-field > label {\n                margin-bottom: 15px;\n            }\n\n            #hubspot-form-${formId} .hs-form input[type=\"text\"],\n            #hubspot-form-${formId} .hs-form input[type=\"email\"],\n            #hubspot-form-${formId} .hs-form input[type=\"tel\"],\n            #hubspot-form-${formId} .hs-form input[type=\"number\"],\n            #hubspot-form-${formId} .hs-form input[type=\"password\"],\n            #hubspot-form-${formId} .hs-form input[type=\"url\"],\n            #hubspot-form-${formId} .hs-form input[type=\"date\"],\n            #hubspot-form-${formId} .hs-form textarea,\n            #hubspot-form-${formId} .hs-form select {\n                width: 100%;\n                padding: ${inputPadding};\n                border: 1px solid ${inputBorderColor};\n                border-radius: ${inputBorderRadius}px;\n                background-color: ${inputBackgroundColor};\n                color: ${textColor};\n                font-family: ${font.fontFamily||\"'Inter', sans-serif\"};\n                font-size: ${font.fontSize||\"14px\"};\n                box-sizing: border-box;\n                transition: border-color 0.2s;\n                height: 48px;\n            }\n\n            #hubspot-form-${formId} .hs-form textarea {\n                min-height: 48px;\n                height: auto;\n            }\n\n            #hubspot-form-${formId} .hs-form select {\n                color: ${selectPlaceholderColor};\n                font-size: ${selectPlaceholderSize};\n                font-weight: 400;\n                letter-spacing: -0.36px;\n                text-transform: ${selectPlaceholderTransform};\n                line-height: normal;\n                padding: 0 48px 0 16px;\n                width: 100% !important;\n                appearance: none;\n                -webkit-appearance: none;\n                -moz-appearance: none;\n                background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23bebebe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E\");\n                background-repeat: no-repeat;\n                background-position: right 16px center;\n                background-size: 24px;\n            }\n\n            #hubspot-form-${formId} .hs-form select.has-value {\n                color: #F1F1F1;\n            }\n\n            #hubspot-form-${formId} .hs-form select option {\n                text-transform: none;\n            }\n            \n            #hubspot-form-${formId} .hs-form input:focus,\n            #hubspot-form-${formId} .hs-form textarea:focus,\n            #hubspot-form-${formId} .hs-form select:focus {\n                outline: none;\n                border: 1px solid ${inputFocusColor};\n            }\n\n            #hubspot-form-${formId} .hs-form input::placeholder,\n            #hubspot-form-${formId} .hs-form textarea::placeholder {\n                color: transparent;\n            }\n            \n            #hubspot-form-${formId} .hs-form .hs-submit {\n                text-align: ${buttonPlacement};\n                margin-top: 12px;\n            }\n            \n            #hubspot-form-${formId} .hs-form .hs-button {\n                background-color: ${buttonColor};\n                color: ${buttonTextColor};\n                border: none;\n                border-radius: ${buttonBorderRadius}px;\n                padding: ${buttonPadding};\n                font-family: 'Inter', sans-serif;\n                font-size: 14px;\n                font-weight: 400;\n                font-style: normal;\n                letter-spacing: -0.03em;\n                line-height: 100%;\n                text-align: center;\n                text-transform: ${buttonTextTransform};\n                cursor: pointer;\n                transition: background-color 0.2s, color 0.2s;\n                height: 48px;\n                width: ${buttonWidthMobile===\"full\"?\"100%\":\"auto\"};\n            }\n            \n            @media (min-width: 768px) {\n                #hubspot-form-${formId} .hs-form .hs-button {\n                    width: ${buttonWidthTablet===\"full\"?\"100%\":\"auto\"};\n                }\n            }\n            \n            @media (min-width: 1024px) {\n                #hubspot-form-${formId} .hs-form .hs-button {\n                    width: ${buttonWidthDesktop===\"full\"?\"100%\":\"auto\"};\n                }\n            }\n            \n            #hubspot-form-${formId} .hs-form .hs-button:hover {\n                background-color: ${buttonHoverBackground};\n                color: ${buttonHoverTextColor};\n            }\n            \n            #hubspot-form-${formId} .hs-form .hs-error-msgs {\n                list-style: none;\n                padding: 0;\n                margin: 4px 0 0 0;\n            }\n            \n            #hubspot-form-${formId} .hs-form .hs-error-msg {\n                color: #ff5588;\n                font-size: 12px;\n            }\n            \n            #hubspot-form-${formId} .hs-form .hs-form-field {\n                margin-bottom: ${props.rowGap??20}px;\n            }\n\n            #hubspot-form-${formId} .hs-form .hs-form-field .input {\n                margin-top: auto;\n                width: 100%;\n            }\n\n            #hubspot-form-${formId} .hs-form fieldset {\n                max-width: none !important;\n                display: flex !important;\n                flex-direction: row !important;\n                column-gap: ${props.columnGap??24}px !important;\n                row-gap: ${props.rowGap??20}px !important;\n            }\n\n            @media (max-width: 810px) {\n                #hubspot-form-${formId} .hs-form fieldset {\n                    flex-direction: column !important;\n                    row-gap: 0px !important;\n                }\n            }\n\n            #hubspot-form-${formId} .hs-form fieldset > div {\n                padding: 0 !important;\n                margin-right: 0 !important;\n                margin-left: 0 !important;\n                width: 100%;\n            }\n\n            #hubspot-form-${formId} .hs-form .hs-dependent-field {\n                width: 100%;\n            }\n\n            #hubspot-form-${formId} .hs-form fieldset .hs-form-field {\n                flex: 1 0 0;\n                padding: 0 !important;\n                margin-right: 0 !important;\n                margin-left: 0 !important;\n                width: 100%;\n            }\n\n            #hubspot-form-${formId} .hs-form .hs-richtext {\n                color: ${footerTextColor};\n                margin-bottom: ${footerMarginBottom}px !important;\n            }\n            \n            #hubspot-form-${formId} .hs-form a {\n                color: ${linkColor};\n                text-decoration: underline;\n                transition: color 0.2s;\n            }\n            \n            #hubspot-form-${formId} .hs-form a:hover {\n                color: ${linkHoverColor};\n            }\n\n            #hubspot-form-${formId} .hs-form .legal-consent-container {\n                margin-top: ${disclaimerGap}px !important;\n            }\n\n            #hubspot-form-${formId} .hs-form .legal-consent-container .hs-richtext {\n                color: ${footerTextColor} !important;\n                font-family: 'Inter', sans-serif;\n                font-size: ${footerTextSize};\n                font-weight: 400;\n                font-style: normal;\n                letter-spacing: -0.03em;\n                line-height: 120%;\n                margin-bottom: ${footerMarginBottom}px !important;\n            }\n\n            #hubspot-form-${formId} .hs-form .legal-consent-container .hs-richtext p {\n                color: ${footerTextColor} !important;\n                font-family: 'Inter', sans-serif;\n                font-size: ${footerTextSize};\n                font-weight: 400;\n                font-style: normal;\n                letter-spacing: -0.03em;\n                line-height: 120%;\n                margin-bottom: ${footerMarginBottom}px !important;\n            }\n\n            #hubspot-form-${formId} .hs-form .legal-consent-container .hs-richtext a,\n            #hubspot-form-${formId} .hs-form .legal-consent-container .hs-richtext a strong {\n                color: ${linkColor} !important;\n                font-weight: inherit !important;\n                text-decoration: underline;\n                text-decoration-style: solid;\n                text-underline-offset: 0;\n                text-decoration-thickness: from-font;\n            }\n\n            #hubspot-form-${formId} {\n                margin-bottom: ${footerMarginBottom}px;\n            }\n\n            /* Success message — shown after a successful submission when no\n               redirect URL is set. HubSpot swaps the form HTML for a\n               .submitted-message div. Without these resets, page-level\n               heading/strong styles bleed through. */\n            #hubspot-form-${formId} .submitted-message {\n                color: ${textColor};\n                font-family: ${font.fontFamily||\"'Inter', sans-serif\"};\n                font-size: ${font.fontSize||\"14px\"};\n                font-weight: 400;\n                letter-spacing: ${font.letterSpacing||\"-0.42px\"};\n                line-height: normal;\n                padding: 0;\n                text-align: left;\n            }\n            #hubspot-form-${formId} .submitted-message p,\n            #hubspot-form-${formId} .submitted-message h1,\n            #hubspot-form-${formId} .submitted-message h2,\n            #hubspot-form-${formId} .submitted-message h3,\n            #hubspot-form-${formId} .submitted-message strong {\n                margin: 0;\n                padding: 0;\n                color: ${textColor};\n                font-family: ${font.fontFamily||\"'Inter', sans-serif\"};\n                font-size: ${font.fontSize||\"14px\"};\n                font-weight: 400;\n                letter-spacing: ${font.letterSpacing||\"-0.42px\"};\n                line-height: normal;\n            }\n\n            ${inlineLayout?`\n            /* Inline layout: button to the right of the input */\n            #hubspot-form-${formId} .hs-form {\n                display: flex !important;\n                flex-direction: row !important;\n                align-items: flex-start !important;\n                flex-wrap: wrap !important;\n                gap: 8px;\n            }\n            #hubspot-form-${formId} .hs-form .hs-form-field {\n                flex: 1 1 auto !important;\n                margin-bottom: 0 !important;\n                min-width: 0;\n                order: 1;\n            }\n            #hubspot-form-${formId} .hs-form .hs-submit {\n                flex: 0 0 auto !important;\n                margin-top: 0 !important;\n                text-align: left !important;\n                order: 2;\n            }\n            #hubspot-form-${formId} .hs-form .hs-button {\n                width: auto !important;\n            }\n            /* Legal/richtext go below the input row */\n            #hubspot-form-${formId} .hs-form .legal-consent-container,\n            #hubspot-form-${formId} .hs-form .hs-richtext {\n                flex-basis: 100% !important;\n                order: 3;\n                margin-top: ${disclaimerGap}px !important;\n            }\n            /* Hide labels — inline forms rely on placeholder text */\n            #hubspot-form-${formId} .hs-form label:not(.hs-error-msg) {\n                display: none !important;\n            }\n            #hubspot-form-${formId} .hs-form input::placeholder,\n            #hubspot-form-${formId} .hs-form textarea::placeholder {\n                color: ${selectPlaceholderColor} !important;\n            }\n            /* Stack on narrow screens */\n            @media (max-width: 600px) {\n                #hubspot-form-${formId} .hs-form {\n                    flex-direction: column !important;\n                }\n                #hubspot-form-${formId} .hs-form .hs-form-field,\n                #hubspot-form-${formId} .hs-form .hs-submit,\n                #hubspot-form-${formId} .hs-form .hs-button {\n                    width: 100% !important;\n                }\n            }\n            `:\"\"}\n        `;document.head.appendChild(styleElement);};// Clean up the style tag when the component unmounts.\nuseEffect(()=>{return()=>{const styleId=`hs-custom-styles-${formId}`;const existing=document.getElementById(styleId);if(existing)existing.remove();};},[formId]);return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",width:\"100%\",minHeight:\"100%\",overflow:\"visible\",boxSizing:\"border-box\"},children:error?/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,...font,textAlign:\"center\",padding:20},children:error}):/*#__PURE__*/_jsx(\"div\",{ref:formRef,id:`hubspot-form-${formId}`,style:{display:\"block\"}})});}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\"},region:{type:ControlType.Enum,title:\"Region\",options:[\"na1\",\"eu1\",\"ap1\"],optionTitles:[\"North America\",\"Europe\",\"Asia Pacific\"],defaultValue:\"na1\"},redirectUrl:{type:ControlType.String,title:\"Redirect URL\",defaultValue:\"\",placeholder:\"/demo-thank-you\",description:\"Page to redirect to after a successful submission (e.g. /demo-thank-you). Put conversion tracking — LinkedIn Insight Tag, etc. — on that page. Leave empty to stay on the current page.\"},inlineLayout:{type:ControlType.Boolean,title:\"Inline Layout\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Place button to the right of the input. Best for single-field email subscribe forms. Hides labels and shows placeholder text instead.\"},inlinePlaceholder:{type:ControlType.String,title:\"Inline Placeholder\",defaultValue:\"Enter your email\",placeholder:\"Enter your email\",description:\"Placeholder text shown inside the input when Inline Layout is on.\",hidden:props=>!props.inlineLayout},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#F1F1F1\"},labelSize:{type:ControlType.String,title:\"Label Size\",defaultValue:\"14px\"},labelColor:{type:ControlType.Color,title:\"Label Color\",defaultValue:\"#F1F1F1\"},labelLetterSpacing:{type:ControlType.String,title:\"Label Spacing\",defaultValue:\"-0.42px\"},inputBackgroundColor:{type:ControlType.Color,title:\"Input Background\",defaultValue:\"#383838\"},inputBorderColor:{type:ControlType.Color,title:\"Input Border\",defaultValue:\"transparent\"},inputBorderRadius:{type:ControlType.Number,title:\"Input Radius\",defaultValue:4,min:0,max:32,step:1,unit:\"px\"},inputPadding:{type:ControlType.String,title:\"Input Padding\",defaultValue:\"10px 16px\"},inputFocusColor:{type:ControlType.Color,title:\"Input Focus\",defaultValue:\"#1E90FF\"},selectPlaceholderColor:{type:ControlType.Color,title:\"Select Placeholder\",defaultValue:\"#BEBEBE\"},selectPlaceholderSize:{type:ControlType.String,title:\"Select Text Size\",defaultValue:\"12px\"},selectPlaceholderTransform:{type:ControlType.Enum,title:\"Select Transform\",options:[\"none\",\"uppercase\",\"lowercase\",\"capitalize\"],optionTitles:[\"None\",\"Uppercase\",\"Lowercase\",\"Capitalize\"],defaultValue:\"uppercase\"},footerTextSize:{type:ControlType.String,title:\"Footer Text Size\",defaultValue:\"12px\"},footerTextColor:{type:ControlType.Color,title:\"Footer Text Color\",defaultValue:\"#BEBEBE\"},disclaimerGap:{type:ControlType.Number,title:\"Disclaimer Gap\",defaultValue:16,min:0,max:64,step:1,unit:\"px\"},footerMarginBottom:{type:ControlType.Number,title:\"Footer Margin Bottom\",defaultValue:16,min:0,max:64,step:1,unit:\"px\"},linkColor:{type:ControlType.Color,title:\"Link Color\",defaultValue:\"#BEBEBE\"},linkHoverColor:{type:ControlType.Color,title:\"Link Hover Color\",defaultValue:\"#F1F1F1\"},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#1E90FF\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#1D1D1D\"},buttonBorderRadius:{type:ControlType.Number,title:\"Button Radius\",defaultValue:4,min:0,max:32,step:1,unit:\"px\"},buttonHoverBackground:{type:ControlType.Color,title:\"Button Hover BG\",defaultValue:\"#1a7de0\"},buttonHoverTextColor:{type:ControlType.Color,title:\"Button Hover Text\",defaultValue:\"#1D1D1D\"},buttonTextTransform:{type:ControlType.Enum,title:\"Button Transform\",options:[\"none\",\"uppercase\",\"lowercase\",\"capitalize\"],optionTitles:[\"None\",\"Uppercase\",\"Lowercase\",\"Capitalize\"],defaultValue:\"none\"},buttonPadding:{type:ControlType.String,title:\"Button Padding\",defaultValue:\"16px 32px\"},buttonPlacement:{type:ControlType.Enum,title:\"Button Placement\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"right\",displaySegmentedControl:true},buttonWidthDesktop:{type:ControlType.Enum,title:\"Width (Desktop)\",options:[\"auto\",\"full\"],optionTitles:[\"Auto\",\"Full\"],defaultValue:\"auto\",displaySegmentedControl:true},buttonWidthTablet:{type:ControlType.Enum,title:\"Width (Tablet)\",options:[\"auto\",\"full\"],optionTitles:[\"Auto\",\"Full\"],defaultValue:\"auto\",displaySegmentedControl:true},buttonWidthMobile:{type:ControlType.Enum,title:\"Width (Mobile)\",options:[\"auto\",\"full\"],optionTitles:[\"Auto\",\"Full\"],defaultValue:\"full\",displaySegmentedControl:true},font:{type:ControlType.Font,title:\"Text Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"-0.42px\",lineHeight:\"normal\"}},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}},rowGap:{type:ControlType.Number,title:\"Row Gap\",defaultValue:20,min:0,max:64,step:1,unit:\"px\"},columnGap:{type:ControlType.Number,title:\"Column Gap\",defaultValue:24,min:0,max:64,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HubSpotForm\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"500\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HubSpotFormtest.map"],"mappings":"8MASG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,WAAS,SAAO,SAAO,cAAY,YAAU,cAAY,kBAAgB,qBAAmB,mBAAiB,uBAAqB,oBAAkB,kBAAgB,wBAAsB,uBAAqB,sBAAoB,kBAAgB,qBAAmB,oBAAkB,oBAAkB,eAAa,gBAAc,YAAU,iBAAe,OAAK,aAAW,YAAU,aAAW,qBAAmB,iBAAe,kBAAgB,gBAAc,qBAAmB,yBAAuB,wBAAsB,6BAA2B,eAAa,qBAAmB,EAAY,EAAQA,EAAO,IAAI,EAE3oB,EAAcA,EAAO,EAAK,EAAO,CAAC,EAAS,GAAaC,EAAS,EAAK,EAAO,CAAC,EAAM,GAAUA,EAAS,IAAI,EAAE,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,GAAG,CAAC,GAAU,CAAC,EAAO,CAAC,MAAoB,EAAS,sCAAsC,CAAC,EAAE,MAAO,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,qCAAqC,EAAO,MAAM,GAAK,EAAO,QAAQ,QAAQ,EAAO,WAAW,CAAC,GAAG,EAAO,OAAO,EAAQ,QAAS,GAAG,CA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