{"version":3,"file":"HSStyle.BdpToRaO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/YPTW8C5YO8tCcMlSyEHU/NUJraFQZI6GtQJrSUPM8/HSStyle.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useRef,useState}from\"react\";const HUBSPOT_FORM_STYLE=`\n                .hs-form {\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    color: #1B1B1B !important;\n                }\n\n                /* REMOVE TOP TITLE */\n                .hs-form h1,\n                .hs-form h2,\n                .hs-form h3,\n                .hs-form > .hs-richtext:first-of-type {\n                    display: none !important;\n                }\n\n                /* HIDE TOP HUBSPOT HEADER */\n                .hs-form > .hs-richtext:first-of-type {\n                    display: none !important;\n                }\n\n                /* FIELDSETS */\n                .hs-form fieldset {\n                    max-width: 100% !important;\n                    width: 100% !important;\n                    margin: 0 !important;\n                    padding: 0 !important;\n                    border: 0 !important;\n                }\n\n                /* TWO COLUMN LAYOUT */\n                .hs-form fieldset.form-columns-2 {\n                    display: flex !important;\n                    gap: 4px !important;\n                }\n\n                .hs-form fieldset.form-columns-2 .hs-form-field {\n                    width: 50% !important;\n                    float: none !important;\n                }\n\n                .hs-form fieldset.form-columns-1 .hs-form-field {\n                    width: 100% !important;\n                }\n\n                /* FIELD */\n                .hs-form .hs-form-field {\n                    margin-bottom: 12px !important;\n                }\n\n                /* LABEL */\n                .hs-form label {\n                    display: block !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 13px !important;\n                    font-weight: 400 !important;\n                    color: #1B1B1B !important;\n                    margin-bottom: 4px !important;\n                    line-height: 1.4 !important;\n                }\n\n                /* INPUTS */\n                .hs-form input,\n                .hs-form select,\n                .hs-form textarea {\n                    width: 100% !important;\n                    border-radius: 6px !important;\n                    border: 1px solid rgba(27, 27, 27, 0.1) !important;\n                    background: rgba(27, 27, 27, 0.02) !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 14px !important;\n                    font-weight: 400 !important;\n                    color: #999999 !important;\n                    outline: none !important;\n                    box-shadow: none !important;\n                    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;\n                    box-sizing: border-box !important;\n                }\n\n                .hs-form input,\n                .hs-form select {\n                    height: 40px !important;\n                    padding: 0 12px !important;\n                }\n\n                /* TEXTAREA */\n                .hs-form textarea {\n                    min-height: 100px !important;\n                    height: auto !important;\n                    padding: 10px 12px !important;\n                    resize: vertical !important;\n                    line-height: 1.4 !important;\n                }\n\n                /* FILE UPLOAD */\n                .hs-form input[type=\"file\"] {\n                    height: auto !important;\n                    min-height: 48px !important;\n                    padding: 10px 12px !important;\n                    border-radius: 6px !important;\n                    border: 1px dashed rgba(27, 27, 27, 0.16) !important;\n                    background: rgba(27, 27, 27, 0.02) !important;\n                    color: #1B1B1B !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 14px !important;\n                    font-weight: 400 !important;\n                    cursor: pointer !important;\n                }\n\n                .hs-form input[type=\"file\"]:hover {\n                    border-color: rgba(27, 27, 27, 0.28) !important;\n                    background: rgba(27, 27, 27, 0.035) !important;\n                }\n\n                .hs-form input[type=\"file\"]:focus {\n                    border-color: rgba(27, 27, 27, 0.32) !important;\n                    background: rgba(27, 27, 27, 0.04) !important;\n                }\n\n                .hs-form input[type=\"file\"]::file-selector-button {\n                    height: 28px !important;\n                    margin-right: 12px !important;\n                    padding: 0 12px !important;\n                    border: 1px solid rgba(27, 27, 27, 0.1) !important;\n                    border-radius: 4px !important;\n                    background: #FFFFFF !important;\n                    color: #1B1B1B !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 12px !important;\n                    font-weight: 500 !important;\n                    cursor: pointer !important;\n                }\n\n                .hs-form input[type=\"file\"]::file-selector-button:hover {\n                    background: rgba(27, 27, 27, 0.04) !important;\n                }\n\n                /* PLACEHOLDER */\n                .hs-form input::placeholder,\n                .hs-form textarea::placeholder {\n                    color: #999999 !important;\n                }\n\n                /* FOCUS */\n                .hs-form input:focus,\n                .hs-form select:focus,\n                .hs-form textarea:focus {\n                    color: #1B1B1B !important;\n                    border-color: rgba(27, 27, 27, 0.22) !important;\n                    background: rgba(27, 27, 27, 0.03) !important;\n                }\n\n                /* TYPED TEXT */\n                .hs-form input:not(:placeholder-shown),\n                .hs-form textarea:not(:placeholder-shown) {\n                    color: #1B1B1B !important;\n                }\n\n                /* PRIVACY / LEGAL TEXT */\n                .hs-richtext,\n                .legal-consent-container {\n                    font-size: 12px !important;\n                    line-height: 1.4 !important;\n                    color: rgba(27, 27, 27, 0.5) !important;\n                    margin-top: 0px !important;\n                    margin-bottom: 20px !important;\n                }\n\n                /* LINKS */\n                .hs-form a {\n                    color: #1B1B1B !important;\n                    text-decoration: none !important;\n                    border-bottom: 1px solid rgba(27, 27, 27, 0.3) !important;\n                }\n\n                .hs-form a:hover {\n                    border-bottom-color: #1B1B1B !important;\n                }\n\n                /* BUTTON WRAPPER */\n                .hs-submit,\n                .actions {\n                    width: 100% !important;\n                }\n\n                /* BUTTON */\n                .hs-button,\n                .hs-form input[type=\"submit\"] {\n                    width: 100% !important;\n                    height: 48px !important;\n                    border-radius: 6px !important;\n                    border: none !important;\n                    background: #1B1B1B !important;\n                    color: #FFFFFF !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 16px !important;\n                    font-weight: 500 !important;\n                    cursor: pointer !important;\n                    transition: background 0.2s ease !important;\n                }\n\n                .hs-form input[type=\"submit\"]:hover {\n                    background: #000000 !important;\n                }\n\n                /* ERROR STATES */\n                .hs-form .hs-error-msgs {\n                    list-style: none !important;\n                    margin: 6px 0 0 !important;\n                    padding: 0 !important;\n                }\n\n                .hs-form .hs-error-msgs li {\n                    list-style: none !important;\n                    margin: 0 !important;\n                    padding: 0 !important;\n                }\n\n                .hs-form .hs-error-msg {\n                    display: block !important;\n                    font-size: 12px !important;\n                    font-weight: 400 !important;\n                    line-height: 1.4 !important;\n                    color: #D92D20 !important;\n                    margin: 0 !important;\n                }\n\n                .hs-form .hs-input.invalid,\n                .hs-form input.error,\n                .hs-form textarea.error,\n                .hs-form select.error {\n                    border-color: rgba(217, 45, 32, 0.45) !important;\n                    background: rgba(217, 45, 32, 0.04) !important;\n                }\n\n                /* MOBILE */\n                @media (max-width: 640px) {\n                    .hs-form fieldset.form-columns-2 {\n                        flex-direction: column !important;\n                        gap: 0 !important;\n                    }\n\n                    .hs-form fieldset.form-columns-2 .hs-form-field {\n                        width: 100% !important;\n                    }\n                }\n            `;export function HubSpotFormStyle(Component){return props=>{useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=HUBSPOT_FORM_STYLE;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function HubSpotFormStyleLight(Component){return props=>{useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=`\n                .hs-form {\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    color: #1B1B1B !important;\n                }\n\n                /* REMOVE TOP TITLE */\n                .hs-form h1,\n                .hs-form h2,\n                .hs-form h3,\n                .hs-form > .hs-richtext:first-of-type {\n                    display: none !important;\n                }\n\n                /* HIDE TOP HUBSPOT HEADER */\n                .hs-form > .hs-richtext:first-of-type {\n                    display: none !important;\n                }\n\n                /* FIELDSETS */\n                .hs-form fieldset {\n                    max-width: 100% !important;\n                    width: 100% !important;\n                    margin: 0 !important;\n                    padding: 0 !important;\n                    border: 0 !important;\n                }\n\n                /* TWO COLUMN LAYOUT */\n                .hs-form fieldset.form-columns-2 {\n                    display: flex !important;\n                    gap: 4px !important;\n                }\n\n                .hs-form fieldset.form-columns-2 .hs-form-field {\n                    width: 50% !important;\n                    float: none !important;\n                }\n\n                .hs-form fieldset.form-columns-1 .hs-form-field {\n                    width: 100% !important;\n                }\n\n                /* FIELD */\n                .hs-form .hs-form-field {\n                    margin-bottom: 12px !important;\n                }\n\n                /* LABEL */\n                .hs-form label {\n                    display: block !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 13px !important;\n                    font-weight: 400 !important;\n                    color: #1B1B1B !important;\n                    margin-bottom: 4px !important;\n                    line-height: 1.4 !important;\n                }\n\n                /* INPUTS */\n                .hs-form input,\n                .hs-form select,\n                .hs-form textarea {\n                    width: 100% !important;\n                    border-radius: 6px !important;\n                    background: #FFF !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 14px !important;\n                    font-weight: 400 !important;\n                    color: #1B1B1B !important;\n                    outline: none !important;\n                    box-shadow: none !important;\n                    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;\n                    box-sizing: border-box !important;\n                }\n\n                .hs-form input,\n                .hs-form select {\n                    height: 40px !important;\n                    padding: 0 12px !important;\n                }\n\n                /* TEXTAREA */\n                .hs-form textarea {\n                    min-height: 100px !important;\n                    height: auto !important;\n                    padding: 10px 12px !important;\n                    resize: vertical !important;\n                    line-height: 1.4 !important;\n                }\n\n                /* FILE UPLOAD */\n                .hs-form input[type=\"file\"] {\n                    height: auto !important;\n                    min-height: 48px !important;\n                    padding: 10px 12px !important;\n                    border-radius: 6px !important;\n                    border: 1px dashed rgba(27, 27, 27, 0.16) !important;\n                    background: rgba(27, 27, 27, 0.02) !important;\n                    color: #1B1B1B !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 14px !important;\n                    font-weight: 400 !important;\n                    cursor: pointer !important;\n                }\n\n                .hs-form input[type=\"file\"]:hover {\n                    border-color: rgba(27, 27, 27, 0.28) !important;\n                    background: rgba(27, 27, 27, 0.035) !important;\n                }\n\n                .hs-form input[type=\"file\"]:focus {\n                    border-color: rgba(27, 27, 27, 0.32) !important;\n                    background: rgba(27, 27, 27, 0.04) !important;\n                }\n\n                .hs-form input[type=\"file\"]::file-selector-button {\n                    height: 28px !important;\n                    margin-right: 12px !important;\n                    padding: 0 12px !important;\n                    border: 1px solid rgba(27, 27, 27, 0.1) !important;\n                    border-radius: 4px !important;\n                    background: #FFFFFF !important;\n                    color: #1B1B1B !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 12px !important;\n                    font-weight: 500 !important;\n                    cursor: pointer !important;\n                }\n\n                .hs-form input[type=\"file\"]::file-selector-button:hover {\n                    background: rgba(27, 27, 27, 0.04) !important;\n                }\n\n                /* PLACEHOLDER */\n                .hs-form input::placeholder,\n                .hs-form textarea::placeholder {\n                    color: #999999 !important;\n                }\n\n                /* FOCUS */\n                .hs-form input:focus,\n                .hs-form select:focus,\n                .hs-form textarea:focus {\n                    color: #1B1B1B !important;\n                    background: #FFF !important;\n                }\n\n                /* TYPED TEXT */\n                .hs-form input:not(:placeholder-shown),\n                .hs-form textarea:not(:placeholder-shown) {\n                    color: #1B1B1B !important;\n                }\n\n                /* PRIVACY / LEGAL TEXT */\n                .hs-richtext,\n                .legal-consent-container {\n                    font-size: 12px !important;\n                    line-height: 1.4 !important;\n                    color: rgba(27, 27, 27, 0.5) !important;\n                    margin-top: 0px !important;\n                    margin-bottom: 20px !important;\n                }\n\n                /* LINKS */\n                .hs-form a {\n                    color: #1B1B1B !important;\n                    text-decoration: none !important;\n                    border-bottom: 1px solid rgba(27, 27, 27, 0.3) !important;\n                }\n\n                .hs-form a:hover {\n                    border-bottom-color: #1B1B1B !important;\n                }\n\n                /* BUTTON WRAPPER */\n                .hs-submit,\n                .actions {\n                    width: 100% !important;\n                }\n\n                /* BUTTON */\n                .hs-button,\n                .hs-form input[type=\"submit\"] {\n                    width: 100% !important;\n                    height: 40px !important;\n                    border-radius: 6px !important;\n                    border: none !important;\n                    background: #FFF !important;\n                    color: #1B1B1B !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    font-size: 16px !important;\n                    font-weight: 500 !important;\n                    cursor: pointer !important;\n                    transition: background 0.2s ease !important;\n                }\n\n                .hs-form input[type=\"submit\"]:hover {\n                    background: rgba(255, 255, 255, 0.8) !important;\n                }\n\n                /* ERROR STATES */\n                .hs-form .hs-error-msgs {\n                    list-style: none !important;\n                    margin: 6px 0 0 !important;\n                    padding: 0 !important;\n                }\n\n                .hs-form .hs-error-msgs li {\n                    list-style: none !important;\n                    margin: 0 !important;\n                    padding: 0 !important;\n                }\n\n                .hs-form .hs-error-msg {\n                    display: block !important;\n                    font-size: 12px !important;\n                    font-weight: 400 !important;\n                    line-height: 1.4 !important;\n                    color: #D92D20 !important;\n                    margin: 0 !important;\n                }\n\n                .hs-form .hs-input.invalid,\n                .hs-form input.error,\n                .hs-form textarea.error,\n                .hs-form select.error {\n                    background: rgba(255, 255, 255, 0.8) !important;\n                }\n\n                .hs_recaptcha {\n                    display: none !important;\n                }\n\n                /* MOBILE */\n                @media (max-width: 640px) {\n                    .hs-form fieldset.form-columns-2 {\n                        flex-direction: column !important;\n                        gap: 0 !important;\n                    }\n\n                    .hs-form fieldset.form-columns-2 .hs-form-field {\n                        width: 100% !important;\n                    }\n                }\n            `;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function HubSpotFormStyleWithSkeleton(Component){const Wrapped=/*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const scopeIdRef=useRef(`hs-scope-${Math.random().toString(36).slice(2,10)}`);const detachRef=useRef([]);const timeoutRef=useRef(null);const[showSkeleton,setShowSkeleton]=useState(true);const setRefs=useCallback(node=>{hostRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);const normalize=useCallback(value=>{return value.toLowerCase().replace(/[^a-z0-9]+/g,\" \").trim();},[]);const getFieldKey=useCallback(field=>{const label=field.querySelector(\"label\");const input=field.querySelector(\"input, select, textarea\");return normalize(`${label?.textContent||\"\"} ${input?.getAttribute(\"name\")||\"\"} ${input?.id||\"\"}`);},[normalize]);const isVisibleField=useCallback((field,doc)=>{const input=field.querySelector(\"input, select, textarea\");if(!input)return false;if(input instanceof HTMLInputElement&&input.type===\"hidden\")return false;const win=doc.defaultView;if(!win)return true;const computed=win.getComputedStyle(field);return computed.display!==\"none\"&&computed.visibility!==\"hidden\";},[]);const applyFieldLayout=useCallback((form,doc)=>{const scopeId=scopeIdRef.current;form.setAttribute(\"data-hs-form-scope\",scopeId);const allFields=Array.from(form.querySelectorAll(\".hs-form-field\"));const visibleFields=allFields.filter(field=>isVisibleField(field,doc));allFields.forEach(field=>{field.removeAttribute(\"data-hs-slot\");field.removeAttribute(\"data-hs-hidden\");const input=field.querySelector(\"input, select, textarea\");if(input instanceof HTMLInputElement&&input.type===\"hidden\"){field.setAttribute(\"data-hs-hidden\",\"true\");}});const emailField=visibleFields.find(field=>[\"work email\",\"email\",\"email address\"].some(token=>getFieldKey(field).includes(token)));const agentsField=visibleFields.find(field=>[\"number of agents\",\"number_of_agents\",\"numberofagents\",\"company size\"].some(token=>getFieldKey(field).includes(token)));if(emailField)emailField.setAttribute(\"data-hs-slot\",\"row1\");if(agentsField)agentsField.setAttribute(\"data-hs-slot\",\"row2\");let index=3;visibleFields.forEach(field=>{if(!field.getAttribute(\"data-hs-slot\")){field.setAttribute(\"data-hs-slot\",`row${index}`);index+=1;}});return visibleFields.length>0;},[getFieldKey,isVisibleField]);const mountScopedStyle=useCallback((doc,scopeId)=>{const style=doc.createElement(\"style\");style.setAttribute(\"data-hs-style-scope\",scopeId);style.innerHTML=`\n                [data-hs-form-scope=\"${scopeId}\"] {\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    color: #1B1B1B !important;\n                    background: #FFFFFF !important;\n                    display: flex !important;\n                    flex-direction: column !important;\n                    row-gap: 16px !important;\n                    padding-bottom: 24px !important;\n                }\n                [data-hs-form-scope=\"${scopeId}\"] .hs-form-field {\n                    width: 100% !important;\n                    margin: 0 !important;\n                    float: none !important;\n                }\n                [data-hs-form-scope=\"${scopeId}\"] .hs-form-field[data-hs-hidden=\"true\"] {\n                    display: none !important;\n                }\n                [data-hs-form-scope=\"${scopeId}\"] label {\n                    display: block !important;\n                    margin: 0 0 4px 0 !important;\n                    font-size: 14px !important;\n                    font-weight: 400 !important;\n                    line-height: 1.4 !important;\n                    color: #1B1B1B !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                }\n                [data-hs-form-scope=\"${scopeId}\"] input,\n                [data-hs-form-scope=\"${scopeId}\"] select,\n                [data-hs-form-scope=\"${scopeId}\"] textarea {\n                    width: 100% !important;\n                    height: 40px !important;\n                    min-height: 40px !important;\n                    padding: 0 12px !important;\n                    border-radius: 4px !important;\n                    border: 1px solid #E6E6E6 !important;\n                    background: #F7F7F7 !important;\n                    color: #1B1B1B !important;\n                    outline: none !important;\n                    box-shadow: none !important;\n                    box-sizing: border-box !important;\n                    font-size: 14px !important;\n                    font-weight: 400 !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                }\n                [data-hs-form-scope=\"${scopeId}\"] .hs-submit,\n                [data-hs-form-scope=\"${scopeId}\"] .actions {\n                    width: 100% !important;\n                    display: flex !important;\n                    justify-content: center !important;\n                }\n                [data-hs-form-scope=\"${scopeId}\"] .hs-button,\n                [data-hs-form-scope=\"${scopeId}\"] input[type=\"submit\"] {\n                    width: auto !important;\n                    min-width: 180px !important;\n                    max-width: 100% !important;\n                    padding: 0 24px !important;\n                    height: 48px !important;\n                    border: none !important;\n                    border-radius: 4px !important;\n                    background: #1B1B1B !important;\n                    color: #FFFFFF !important;\n                    font-size: 16px !important;\n                    font-weight: 500 !important;\n                    font-family: \"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif !important;\n                    cursor: pointer !important;\n                }\n                @media (max-width: 640px) {\n                    [data-hs-form-scope=\"${scopeId}\"] .hs-button,\n                    [data-hs-form-scope=\"${scopeId}\"] input[type=\"submit\"] {\n                        width: 100% !important;\n                    }\n                }\n            `;doc.head.appendChild(style);return()=>{if(style.parentNode)style.parentNode.removeChild(style);};},[]);const checkReadyInScope=useCallback((scope,doc)=>{const form=scope.querySelector(\"form.hs-form, .hs-form\");if(!form)return false;const hasVisibleFields=applyFieldLayout(form,doc);if(!hasVisibleFields)return false;const scopeId=scopeIdRef.current;const existingStyle=doc.head.querySelector(`style[data-hs-style-scope=\"${scopeId}\"]`);if(!existingStyle){const detach=mountScopedStyle(doc,scopeId);detachRef.current.push(detach);}return true;},[applyFieldLayout,mountScopedStyle]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const host=hostRef.current;if(!host)return;host.setAttribute(\"data-hs-instance-root\",scopeIdRef.current);const frameObservers=[];const frameLoadCleanups=[];const dismissSkeleton=()=>{startTransition(()=>{setShowSkeleton(false);});};const reset=()=>{detachRef.current.forEach(detach=>detach());detachRef.current=[];};const evaluate=()=>{let ready=checkReadyInScope(host,document);const frames=Array.from(host.querySelectorAll(\"iframe\"));if(!ready){for(const frame of frames){try{const frameDoc=frame.contentDocument;if(!frameDoc)continue;if(checkReadyInScope(frameDoc,frameDoc)){ready=true;break;}}catch(_error){// Cross-origin iframe, skip safely.\n}}}startTransition(()=>{setShowSkeleton(!ready);});};const connectFrameObservers=()=>{frameObservers.forEach(item=>item.disconnect());frameObservers.length=0;frameLoadCleanups.forEach(cleanup=>cleanup());frameLoadCleanups.length=0;const frames=Array.from(host.querySelectorAll(\"iframe\"));for(const frame of frames){const onLoad=()=>{evaluate();dismissSkeleton();};frame.addEventListener(\"load\",onLoad);frameLoadCleanups.push(()=>frame.removeEventListener(\"load\",onLoad));try{const frameDoc=frame.contentDocument;if(!frameDoc?.body)continue;const observer=new MutationObserver(()=>evaluate());observer.observe(frameDoc.body,{childList:true,subtree:true});frameObservers.push(observer);}catch(_error){// Cross-origin iframe, skip safely.\n}}};evaluate();connectFrameObservers();if(typeof window!==\"undefined\"){timeoutRef.current=window.setTimeout(()=>{dismissSkeleton();},5e3);}const observer=new MutationObserver(()=>{evaluate();connectFrameObservers();});observer.observe(host,{childList:true,subtree:true});return()=>{observer.disconnect();frameObservers.forEach(item=>item.disconnect());frameLoadCleanups.forEach(cleanup=>cleanup());if(timeoutRef.current!==null&&typeof window!==\"undefined\"){window.clearTimeout(timeoutRef.current);timeoutRef.current=null;}reset();};},[checkReadyInScope]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",background:\"#FFFFFF\"},children:[/*#__PURE__*/_jsx(Component,{ref:setRefs,...props}),showSkeleton?/*#__PURE__*/_jsxs(\"div\",{\"aria-live\":\"polite\",role:\"status\",\"aria-label\":\"Loading form\",style:{position:\"absolute\",top:0,left:0,right:0,background:\"#FFFFFF\",padding:\"0px\",paddingBottom:\"24px\",boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",pointerEvents:\"none\",fontFamily:'\"Instrument Sans\", -apple-system, BlinkMacSystemFont, sans-serif'},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                            @keyframes hsLocalShimmer {\n                                0% { background-position: 200% 0; }\n                                100% { background-position: -200% 0; }\n                            }\n                        `}),[\"Work Email\",\"Number of Agents\"].map(label=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"4px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{height:\"14px\",display:\"inline-flex\",alignItems:\"center\",width:\"44%\",color:\"#1B1B1B\",fontSize:\"13px\",fontWeight:400,lineHeight:\"14px\",whiteSpace:\"nowrap\"},children:[/*#__PURE__*/_jsx(\"span\",{children:label}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{color:\"#D92D20\",marginLeft:\"2px\",lineHeight:\"14px\"},children:\"*\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"40px\",borderRadius:\"4px\",border:\"1px solid #E6E6E6\",background:\"linear-gradient(90deg, #F4F4F4 0%, #FCFCFC 50%, #F4F4F4 100%)\",backgroundSize:\"200% 100%\",animation:\"hsLocalShimmer 1.6s linear infinite\"}})]},label)),/*#__PURE__*/_jsx(\"div\",{style:{width:\"180px\",maxWidth:\"100%\",height:\"48px\",borderRadius:\"4px\",background:\"linear-gradient(90deg, #1B1B1B 0%, #2A2A2A 50%, #1B1B1B 100%)\",backgroundSize:\"200% 100%\",animation:\"hsLocalShimmer 1.8s linear infinite\",margin:\"0 auto\"}})]}):null]});});Wrapped.displayName=\"HubSpotFormStyleWithSkeleton\";return Wrapped;}export function withHubSpotAgentThresholdConfirmation(Component){const Wrapped=/*#__PURE__*/forwardRef((props,ref)=>{const hostRef=useRef(null);const formRef=useRef(null);const detachRef=useRef([]);const[showConfirmation,setShowConfirmation]=useState(false);const setRefs=useCallback(node=>{hostRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&typeof ref===\"object\"){ref.current=node;}},[ref]);const parseAgentCount=useCallback(raw=>{const match=raw.replace(/,/g,\"\").match(/\\d+/);return match?Number(match[0]):Number.NaN;},[]);const updateFromField=useCallback(field=>{const value=field instanceof HTMLSelectElement?field.value||field.selectedOptions?.[0]?.text||\"\":field.value||\"\";const count=parseAgentCount(value);startTransition(()=>{setShowConfirmation(!Number.isNaN(count)&&count<50);});},[parseAgentCount]);const findAgentField=useCallback(scope=>{const labels=Array.from(scope.querySelectorAll(\"label\"));const exactLabel=labels.find(label=>label.textContent?.replace(/\\s+/g,\" \").trim()===\"Number of Agents\");const getLabelField=label=>{const forId=label.getAttribute(\"for\");if(forId){const linked=scope.querySelector(`#${CSS.escape(forId)}`);if(linked)return linked;}return label.querySelector(\"input, select, textarea\");};if(exactLabel){const field=getLabelField(exactLabel);if(field)return field;}const selectors=['input[name=\"number_of_agents\"], select[name=\"number_of_agents\"], textarea[name=\"number_of_agents\"]','input[name=\"numberofagents\"], select[name=\"numberofagents\"], textarea[name=\"numberofagents\"]','input[name=\"number-agents\"], select[name=\"number-agents\"], textarea[name=\"number-agents\"]','input[name=\"numberOfAgents\"], select[name=\"numberOfAgents\"], textarea[name=\"numberOfAgents\"]','input[id*=\"number_of_agents\"], select[id*=\"number_of_agents\"], textarea[id*=\"number_of_agents\"]','input[id*=\"numberofagents\"], select[id*=\"numberofagents\"], textarea[id*=\"numberofagents\"]','input[id*=\"number-agents\"], select[id*=\"number-agents\"], textarea[id*=\"number-agents\"]','input[id*=\"numberOfAgents\"], select[id*=\"numberOfAgents\"], textarea[id*=\"numberOfAgents\"]'];for(const selector of selectors){const field=scope.querySelector(selector);if(field){return field;}}return null;},[]);const bindInScope=useCallback(scope=>{const field=findAgentField(scope);if(!field)return false;const form=field.closest(\"form\")||scope.querySelector(\".hs-form\");formRef.current=form;updateFromField(field);const onChange=()=>updateFromField(field);field.addEventListener(\"change\",onChange);field.addEventListener(\"input\",onChange);detachRef.current.push(()=>{field.removeEventListener(\"change\",onChange);field.removeEventListener(\"input\",onChange);});return true;},[findAgentField,updateFromField]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const style=document.createElement(\"style\");style.innerHTML=HUBSPOT_FORM_STYLE;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const host=hostRef.current;if(!host)return;const frameObservers=[];const frameLoadCleanups=[];const resetBindings=()=>{detachRef.current.forEach(detach=>detach());detachRef.current=[];};const tryBind=()=>{resetBindings();const boundInHost=bindInScope(host);if(boundInHost)return;const frames=Array.from(host.querySelectorAll(\"iframe\"));for(const frame of frames){try{const frameDoc=frame.contentDocument;if(!frameDoc)continue;if(bindInScope(frameDoc)){return;}}catch(_error){// Cross-origin iframe; leave form unchanged.\n}}startTransition(()=>{setShowConfirmation(false);});};const connectFrameObservers=()=>{frameObservers.forEach(observer=>observer.disconnect());frameObservers.length=0;frameLoadCleanups.forEach(cleanup=>cleanup());frameLoadCleanups.length=0;const frames=Array.from(host.querySelectorAll(\"iframe\"));for(const frame of frames){const onLoad=()=>{tryBind();};frame.addEventListener(\"load\",onLoad);frameLoadCleanups.push(()=>frame.removeEventListener(\"load\",onLoad));try{const frameDoc=frame.contentDocument;if(!frameDoc?.body)continue;const frameObserver=new MutationObserver(()=>{tryBind();});frameObserver.observe(frameDoc.body,{childList:true,subtree:true});frameObservers.push(frameObserver);}catch(_error){// Cross-origin iframe; leave form unchanged.\n}}};tryBind();connectFrameObservers();const observer=new MutationObserver(()=>{tryBind();connectFrameObservers();});observer.observe(host,{childList:true,subtree:true});return()=>{observer.disconnect();frameObservers.forEach(item=>item.disconnect());frameLoadCleanups.forEach(cleanup=>cleanup());resetBindings();};},[bindInScope]);useEffect(()=>{const formElement=formRef.current;if(!formElement)return;if(showConfirmation){formElement.style.display=\"none\";}else{formElement.style.removeProperty(\"display\");}return()=>{formElement.style.removeProperty(\"display\");};},[showConfirmation]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(Component,{ref:setRefs,...props}),showConfirmation?/*#__PURE__*/_jsx(\"div\",{\"aria-live\":\"polite\",role:\"status\",style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",padding:\"16px\",boxSizing:\"border-box\",color:\"#1B1B1B\",fontFamily:'\"Instrument Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif',background:\"transparent\",opacity:1,transition:\"opacity 220ms ease\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:\"460px\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,marginBottom:\"8px\",fontSize:\"24px\",lineHeight:1.2,fontWeight:600},children:\"Thank you for your interest\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:\"15px\",lineHeight:1.5,color:\"#1B1B1B\"},children:\"We appreciate you reaching out. Our team will review your details and be in touch with the best next step.\"})]})}):null]});});Wrapped.displayName=\"withHubSpotAgentThresholdConfirmation\";return Wrapped;}\nexport const __FramerMetadata__ = {\"exports\":{\"withHubSpotAgentThresholdConfirmation\":{\"type\":\"reactHoc\",\"name\":\"withHubSpotAgentThresholdConfirmation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HubSpotFormStyle\":{\"type\":\"reactHoc\",\"name\":\"HubSpotFormStyle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HubSpotFormStyleWithSkeleton\":{\"type\":\"reactHoc\",\"name\":\"HubSpotFormStyleWithSkeleton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HubSpotFormStyleLight\":{\"type\":\"reactHoc\",\"name\":\"HubSpotFormStyleLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HSStyle.map"],"mappings":"yHAoPc,SAAgB,EAAiB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,EAAM,SAAS,cAAc,OAAO,EAAsE,MAApE,GAAM,UAAU,EAAmB,SAAS,KAAK,YAAY,CAAK,MAAY,CAAC,SAAS,KAAK,YAAY,CAAK,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,CAAC,SAAgB,EAAsB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,EAAM,SAAS,cAAc,OAAO,EAqPxX,MArP0X,GAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqP3a,SAAS,KAAK,YAAY,CAAK,MAAY,CAAC,SAAS,KAAK,YAAY,CAAK,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,uBAze5F,IAAoF,EAAO,EAAmB"}