{"version":3,"file":"HubSpotTokenForm.BReaEffQ.mjs","names":["useState","useRef","_Fragment","useState","_Fragment","__esmMin","init_npm_react_18_3_1","window","init_ssg_sandbox_shims","Ha","ce","init_jsx_runtime","init_npm_react_dom_18_3_1","c","_e","de","addPropertyControls","ControlType","init_framer_CKT6jEEQ","FormGreeting","region","setRegion","displayRegion","setDisplayRegion","portalNode","setPortalNode","animKey","setAnimKey","attachedRef","attach","container","HS_FORM_CONTAINER","regInput","REGION_FIELD","regionFieldset","greetingDiv","poll","timer","k","greetings","REGION_GREETINGS","l","fadeIn","init_Hello_Text","HubSpotTokenField","status","setStatus","attempt","setAttempt","loader","setLoader","show","LOADER_DELAY","slow","LOADER_SLOW","style","FIELD_NAME","cancelled","updateErrorMessage","element","label","existingError","observer","mutations","mutation","node","el","errorList","failTimer","FORM_TIMEOUT","loadScript","TAGIFY_SRC","showPlainWebsitesField","HUBSPOT_SRC","waitFor","PORTAL_ID","FORM_ID","formSource","sourceInput","form","initWebsiteIcon","websiteInput","wrapper","icon","getDomain","withProto","val","debounce","updateIcon","domain","tagifyStart","initTagify","input","v","i","isWeb","tagData","iconHtml","hasGeneralForm","loaderStyle","loaderKeyframes","spinnerStyle","loaderTextStyle","fallbackStyle","fallbackTitleStyle","fallbackTextStyle","fallbackEmail","fallbackLinkStyle","fallbackActionsStyle","fallbackButtonStyle","a","fallbackSecondaryStyle","init_HubSpotTokenForm","id","s","src","resolve","reject","start","check","condition","timeout","interval"],"sources":["https:/framerusercontent.com/modules/SVlc7Kx4nIrFbPwehGlf/N12x0byPDfSKFGRDQ9mn/Hello_Text.js","https:/framerusercontent.com/modules/wQFdNSlh4qvvpEkRiL7c/MPBANKKVP6J2QyxjNodW/HubSpotTokenForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{createPortal}from\"react-dom\";const REGION_GREETINGS={latam_region:[\"Hola\",\"Oi\"],apac_region:[\"Ni hao\",\"Konnichiwa\",\"안녕하세요\",\"Namaste\",\"Xin ch\\xe0o\"],emea_region:[\"Hallo\",\"Bonjour\",\"Ciao\",\"Hej\",\"Shalom\",\"Marhaba\"]};const REGION_FIELD=\"0-2/region\";const HS_FORM_CONTAINER=\"#hs-form-container\";const fadeIn=`\n    @keyframes greetingFadeIn {\n        from { opacity: 0; transform: translateY(-4px); }\n        to   { opacity: 1; transform: translateY(0); }\n    }\n`;export default function FormGreeting(){const[region,setRegion]=useState(\"\");const[displayRegion,setDisplayRegion]=useState(\"\");const[portalNode,setPortalNode]=useState(null);const[animKey,setAnimKey]=useState(0);const attachedRef=useRef(false);useEffect(()=>{const attach=()=>{const container=document.querySelector(HS_FORM_CONTAINER);if(!container)return;const regInput=container.querySelector(`select[name=\"${REGION_FIELD}\"]`);const regionFieldset=regInput?.closest(\"fieldset\");if(!regInput||!regionFieldset)return;if(attachedRef.current)return;attachedRef.current=true;const greetingDiv=document.createElement(\"div\");regionFieldset.insertAdjacentElement(\"afterend\",greetingDiv);regInput.addEventListener(\"change\",()=>setRegion(regInput.value));setRegion(regInput.value);setPortalNode(greetingDiv);};const poll=setInterval(()=>{if(!attachedRef.current)attach();else clearInterval(poll);},500);return()=>clearInterval(poll);},[]);// Fade out, swap text, fade in\nuseEffect(()=>{if(region===displayRegion)return;setDisplayRegion(\"\");const timer=setTimeout(()=>{setDisplayRegion(region);setAnimKey(k=>k+1);},200);return()=>clearTimeout(timer);},[region]);const greetings=displayRegion?REGION_GREETINGS[displayRegion]:null;if(!portalNode)return null;return /*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:fadeIn}),/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:\"25px\",fontFamily:\"inherit\",minHeight:greetings?\"24px\":0,transition:\"min-height 0.2s ease\"},children:greetings&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:\"14px\",lineHeight:1.6,color:\"#1E293B\",opacity:0,animation:\"greetingFadeIn 0.3s ease forwards\"},children:greetings.join(\" / \")},animKey)})]}),portalNode);}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormGreeting\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hello_Text.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ← ADD\nconst PORTAL_ID=\"43918619\";const FORM_ID=\"59274b43-9756-4e42-839d-420bbf1457e8\";const FIELD_NAME=\"list_of_websites\";// Pinned so a new Tagify release can't change the form unannounced\nconst TAGIFY_SRC=\"https://cdn.jsdelivr.net/npm/@yaireo/tagify@4.39.0\";const HUBSPOT_SRC=\"https://js.hsforms.net/forms/embed/v2.js\";// How long to wait for the form before showing the fallback\nconst FORM_TIMEOUT=15e3;// The loader only appears if the form is slow, so fast loads don't flash it\nconst LOADER_DELAY=500;const LOADER_SLOW=6e3;// Rejects if the script is blocked (ad blocker, firewall) or fails to load.\n// A failed script tag is removed so \"Try again\" can load it afresh.\nconst loadScript=(src,id)=>{if(typeof document===\"undefined\")return Promise.resolve();if(document.getElementById(id))return Promise.resolve();return new Promise((resolve,reject)=>{const s=document.createElement(\"script\");s.id=id;s.src=src;s.onload=()=>resolve();s.onerror=()=>{s.remove();reject(new Error(`Failed to load ${src}`));};document.body.appendChild(s);});};const waitFor=(condition,interval=100,timeout=1e4)=>new Promise((resolve,reject)=>{const start=Date.now();const check=()=>{if(condition())return resolve();if(Date.now()-start>timeout)return reject(\"waitFor timeout\");setTimeout(check,interval);};check();});// If Tagify never loads, un-hide the websites field as a plain text box.\n// A stylesheet rule survives HubSpot re-rendering the field.\nconst showPlainWebsitesField=()=>{if(document.getElementById(\"hs-websites-fallback\"))return;const style=document.createElement(\"style\");style.id=\"hs-websites-fallback\";style.innerHTML=`\n    #hs-form-container textarea[name=\"${FIELD_NAME}\"] { display: block !important; width: 100%; min-height: 100px; padding: 16px 18px; border: none; border-radius: 12px; outline: #dddddd 1px solid; background: #F3F4F6; font-size: 16px; line-height: 1.6; color: #1A202C; box-sizing: border-box; resize: vertical; }\n`;document.head.appendChild(style);};export default function HubSpotTokenField({formSource=\"\",fallbackEmail=\"\"}){// ← ADD prop\nconst[status,setStatus]=useState(\"loading\");const[attempt,setAttempt]=useState(0);const[loader,setLoader]=useState(\"hidden\");// Show the loader after a short delay, and reassure if it takes longer\nuseEffect(()=>{if(status!==\"loading\"){setLoader(\"hidden\");return;}const show=setTimeout(()=>setLoader(\"loading\"),LOADER_DELAY);const slow=setTimeout(()=>setLoader(\"slow\"),LOADER_SLOW);return()=>{clearTimeout(show);clearTimeout(slow);};},[status,attempt]);useEffect(()=>{setStatus(\"loading\");// ── Styles ────────────────────────────────────────────────────────────\nif(!document.getElementById(\"hs-master-styles\")){const style=document.createElement(\"style\");style.id=\"hs-master-styles\";style.innerHTML=`\n    #hs-form-container textarea[name=\"${FIELD_NAME}\"] { display: none; }\n    input.hs-button.primary.large { margin-bottom: 50px;}\n    .hs-form-field { margin-bottom: 20px; }\n    fieldset.form-columns-1, fieldset.form-columns-2 { max-width: none !important; }\n    .hs-form-field { font-family: \"Satoshi\", \"Satoshi Placeholder\", sans-serif; font-weight: 500; }\n    fieldset.form-columns-1 .hs-input { width: 100%; }\n    .hs-form-field > label { display: block; font-size: 16px; font-family: \"Satoshi\", \"Satoshi Placeholder\", sans-serif; font-weight: 600; color: #1A202C; margin-bottom: 8px; letter-spacing: -0.01em; }\n    legend.hs-field-desc { font-size: 15px; padding-bottom: 8px; line-height: 1.5; padding-inline: 0; }\n    .hs-input { background: #F3F4F6; }\n    .hs-input:not([name=\"list_of_websites\"]):not(.hs-fieldtype-intl-phone):not(.tagify) { height: 56px; border: none; border-radius: 12px; padding: 18px; font-size: 16px; color: #1A202C; box-sizing: border-box; outline: #dddddd 1px solid; }\n    .hs-input:not([name=\"list_of_websites\"]):not(.hs-fieldtype-intl-phone):not(.tagify):not([type=\"tel\"]) { width: 100%; }\n    .hs-input:not([name=\"${FIELD_NAME}\"]):focus { background: rgb(245, 248, 250); box-shadow: none; }\n    .hs-input.hs-fieldtype-intl-phone { width: 100% !important; }\n    .hs-input:not([name=\"${FIELD_NAME}\"])::placeholder { color: #9CA3AF; }\n    textarea.hs-input:not([name=\"${FIELD_NAME}\"]) { height: auto; min-height: 140px; padding: 16px 18px; line-height: 1.6; resize: vertical; }\n    .hs-fieldtype-intl-phone.hs-input select { font-size: 14px; }\n    select.hs-input:not([name=\"${FIELD_NAME}\"]) { appearance: none; background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E\"); background-repeat: no-repeat; background-position: right 18px center; background-color: #F3F4F6; cursor: pointer; }\n    input.hs-input.invalid.error { background: #FEF2F2; box-shadow: inset 0 0 0 1.5px #EF4444; border: none; transition: background 1s; }\n    ul.hs-error-msgs { list-style: none; padding: 0; margin: 6px 0 0; }\n    .hs-error-msg { font-size: 14px; font-weight: 500; color: #EF4444; display: block; animation: errorSlideIn 1s ease-out forwards !important; }\n    @keyframes errorSlideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }\n    .hs-fieldtype-checkbox ul.inputs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 8px 0; }\n    ul.inputs-list li { margin: 0; }\n    /* Visually hidden but still reachable by keyboard and screen readers */\n    ul.inputs-list input[type=\"checkbox\"] { position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; margin: 0; pointer-events: none; }\n    label.hs-form-checkbox-display { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 10px 8px; width: 100%; padding: 18px; background: #F3F4F6; outline: #dddddd 1px solid; border-radius: 12px; cursor: pointer; box-sizing: border-box; transition: border-color 0.15s, background 0.15s; height: 100%; }\n    label.hs-form-checkbox-display:focus-within { box-shadow: 0 0 0 3px rgba(0, 158, 220, 0.45); }\n    /* Heading on the first row with the check beside it, description below */\n    label.hs-form-checkbox-display::before { grid-column: 1; grid-row: 1; }\n    label.hs-form-checkbox-display > span { grid-column: 1 / -1; grid-row: 2; }\n    label.hs-form-checkbox-display:has(input:checked)::after { content: \"✓\"; grid-column: 2; grid-row: 1; justify-self: start; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #009EDC; color: #FFFFFF; font-size: 13px; font-weight: 800; line-height: 1; }\n    /* Selected marker that doesn't rely on :has(), for older browsers */\n    ul.inputs-list input[type=\"checkbox\"]:checked + span { color: #0077A8; }\n    @supports not selector(:has(a)) {\n        ul.inputs-list input[type=\"checkbox\"]:checked + span::after { content: \" ✓\"; font-weight: 800; color: #009EDC; }\n    }\n    label.hs-form-checkbox-display:hover { border-color: #9CA3AF; }\n    label.hs-form-checkbox-display span { font-size: 15px; font-weight: 700; color: #1A202C; line-height: 1.4; }\n    label.hs-form-checkbox-display:not(:has(input:checked)):hover { background-color: #e5e7eb !important; transform: translateY(-1px); }\n    label.hs-form-checkbox-display:has(input:checked) { background-color: #c4eeff !important; border-color: #c4eeff !important; outline: #009edc 1px solid !important; transform: none !important; }\n    ul.inputs-list li:nth-child(1) label.hs-form-checkbox-display::before { content: \"Advertise\"; font-size: 18px; }\n    ul.inputs-list li:nth-child(2) label.hs-form-checkbox-display::before { content: \"Monetize\"; font-size: 18px; }\n    label.hs-form-checkbox-display:has(input:checked)::before { filter: grayscale(1) brightness(2); }\n    .tagify { display: flex !important; flex-wrap: wrap !important; width: 100% !important; min-height: 56px !important; background: #F3F4F6 !important; border-radius: 12px !important; padding: 6px 10px !important; box-sizing: border-box !important; outline: #dddddd 1px solid; cursor: text !important; transition: background 0.15s !important; }\n    .tagify:focus-within { background: #EAECEF !important; }\n    .tagify__input { flex-grow: 1 !important; min-width: 140px !important; margin: 3px !important; padding: 4px !important; line-height: 1.5 !important; color: #1A202C !important; align-self: center !important; font-size: 16px; font-weight: 500; }\n    .tagify__input::before { color: #9CA3AF !important; }\n    .tagify__tag { display: inline-flex !important; align-items: center !important; background: #FFFFFF !important; border: 0.5px solid #E5E7EB !important; border-radius: 6px !important; margin: 3px !important; }\n    .tagify__tag > div { display: flex !important; align-items: center !important; gap: 6px !important; padding: 4px 10px !important; font-size: 13px !important; color: #1E293B !important; height: 30px; }\n    .tagify__input:empty::before { content: attr(data-placeholder); color: #888; display: inline-block; pointer-events: none; }\n    .type-badge { font-size: 10px !important; font-weight: 700 !important; padding: 2px 5px !important; border-radius: 3px !important; background: #E5E7EB !important; color: #6B7280 !important; letter-spacing: 0.03em !important; }\n    .tag-icon img { border-radius: 2px !important; display: block !important; }\n    .hs-button { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 56px !important; background: #1A202C !important; color: #FFFFFF !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: -0.01em !important; border: none !important; border-radius: 12px !important; cursor: pointer !important; margin-top: 8px !important; transition: opacity 0.15s !important; }\n    .hs-button:hover { opacity: 0.85 !important; }\n    .hs-button:active { transform: scale(0.99) !important; }\n    @media (max-width: 500px) {\n        ul.inputs-list.multi-container { grid-template-columns: 1fr !important; display: grid !important; }\n        ul.inputs-list.multi-container li { width: 100% !important; max-width: none !important; }\n        .hs-input.hs-fieldtype-intl-phone select.hs-input, .hs-input.hs-fieldtype-intl-phone input.hs-input:not([type=\"hidden\"]) { width: 100% !important; display: block !important; margin-bottom: 10px; }\n    }\n`;document.head.appendChild(style);}let cancelled=false;// ── Error message enhancer ────────────────────────────────────────────\nconst TARGET_TEXT=\"Please enter a different email address.\";const APPEND_HTML=\" If you're a consumer looking for customer support, please email support@revu.co for help.\";const updateErrorMessage=element=>{element.querySelectorAll(\"label.hs-error-msg\").forEach(label=>{if(label.textContent?.includes(TARGET_TEXT)&&!label.innerHTML.includes(\"href=\")){label.innerHTML+=APPEND_HTML;}});};const existingError=document.querySelector(\"ul.hs-error-msgs\");if(existingError)updateErrorMessage(existingError);const observer=new MutationObserver(mutations=>{mutations.forEach(mutation=>{mutation.addedNodes.forEach(node=>{if(node.nodeType===Node.ELEMENT_NODE){const el=node;if(el.matches(\"ul.hs-error-msgs\")){updateErrorMessage(el);}else{const errorList=el.querySelector(\"ul.hs-error-msgs\");if(errorList)updateErrorMessage(errorList);}}});});});observer.observe(document.body,{childList:true,subtree:true});// ── HubSpot form init ─────────────────────────────────────────────────\n// Show the fallback if the form isn't ready in time, whatever the cause\nconst failTimer=setTimeout(()=>{if(!cancelled)setStatus(\"failed\");},FORM_TIMEOUT);const init=async()=>{const container=document.getElementById(\"hs-form-container\");if(container)container.innerHTML=\"\";// Tagify only styles the websites field, so don't wait for it\nloadScript(TAGIFY_SRC,\"tagify-js\").catch(showPlainWebsitesField);await loadScript(HUBSPOT_SRC,\"hs-forms-js\");await waitFor(()=>!!window.hbspt?.forms);if(cancelled)return;window.hbspt.forms.create({region:\"na1\",portalId:PORTAL_ID,formId:FORM_ID,target:\"#hs-form-container\",...formSource?{hiddenFieldValues:{form_source:formSource}}:{},onFormReady:form=>{clearTimeout(failTimer);if(!cancelled)setStatus(\"ready\");// ── form_source injection ─────────────────────────────────  ← ADD\nif(formSource){// ← ADD\nconst sourceInput=form.querySelector(// ← ADD\n'[name=\"form_source\"]'// ← ADD\n)// ← ADD\n;if(sourceInput){// ← ADD\nsourceInput.value=formSource// ← ADD\n;sourceInput.dispatchEvent(new Event(\"input\",{bubbles:true}))// ← ADD\n;sourceInput.dispatchEvent(new Event(\"change\",{bubbles:true}))// ← ADD\n;}// ← ADD\n}// ← ADD\n// ── Primary website favicon ───────────────────────────────\nconst initWebsiteIcon=()=>{const websiteInput=form.querySelector('[name=\"0-2/website\"]');if(!websiteInput){setTimeout(initWebsiteIcon,150);return;}const wrapper=document.createElement(\"div\");wrapper.style.cssText=\"position:relative;display:flex;align-items:center;\";websiteInput.parentNode.insertBefore(wrapper,websiteInput);wrapper.appendChild(websiteInput);const icon=document.createElement(\"img\");icon.style.cssText=`position:absolute;left:14px;width:25px;height:25px;border-radius:3px;display:none;pointer-events:none;`;wrapper.appendChild(icon);const getDomain=val=>{try{const withProto=/^https?:\\/\\//i.test(val)?val:`https://${val}`;return new URL(withProto).hostname.replace(/^www\\./,\"\");}catch{return null;}};let debounce;const updateIcon=val=>{clearTimeout(debounce);debounce=setTimeout(()=>{const domain=getDomain(val.trim());if(domain&&domain.includes(\".\")){icon.src=`https://www.google.com/s2/favicons?sz=64&domain=${domain}`;icon.style.display=\"block\";websiteInput.style.setProperty(\"padding-left\",\"50px\",\"important\");}else{icon.style.display=\"none\";websiteInput.style.removeProperty(\"padding-left\");}},300);};websiteInput.addEventListener(\"input\",e=>updateIcon(e.target.value));if(websiteInput.value)updateIcon(websiteInput.value);};initWebsiteIcon();// ── Tagify ────────────────────────────────────────────────\n// Give up after 10s and show the plain field instead\nconst tagifyStart=Date.now();const initTagify=()=>{const input=form.querySelector(`[name=\"${FIELD_NAME}\"]`);if(input&&window.Tagify&&!input.classList.contains(\"tagify-enabled\")){input.classList.add(\"tagify-enabled\");input.removeAttribute(\"readonly\");new window.Tagify(input,{delimiters:\",\",keepInvalidTags:true,originalInputValueFormat:v=>v.map(i=>i.value).join(\", \"),templates:{tag(tagData){const urlRegex=/^((https?:\\/\\/)?(www\\.)?([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,})(\\/.*)?$/;const isWeb=urlRegex.test(tagData.value);const domain=tagData.value.replace(/^(https?:\\/\\/)?(www\\.)?/,\"\").split(\"/\")[0];const iconHtml=isWeb?`<div class=\"tag-icon\" style=\"display:flex;align-items:center;flex-shrink:0;width:16px;height:16px;overflow:hidden;\"><img src=\"https://www.google.com/s2/favicons?sz=64&domain=${domain}\" width=\"16\" height=\"16\" style=\"width:16px;height:16px;min-width:16px;max-width:16px;display:block;border-radius:3px;\"></div>`:\"\";return`<tag title=\"${tagData.value}\" class=\"tagify__tag\" style=\"display:inline-flex;align-items:center;background:#F1F5F9;border:1px solid #E2E8F0;border-radius:6px;margin:4px;padding:0;max-width:fit-content;\">\n                                                    <x class=\"tagify__tag__removeBtn\"></x>\n                                                    <div style=\"display:flex;align-items:center;gap:8px;padding:4px 10px;line-height:1;\">\n                                                        <span class=\"type-badge\" style=\"font-size:10px;font-weight:800;padding:2px 6px;border-radius:4px;background:#CBD5E1;color:#475569;white-space:nowrap;\">${isWeb?\"WEB\":\"APP\"}</span>\n                                                        ${iconHtml}\n                                                        <span class=\"tagify__tag-text\" style=\"font-size:16px;font-weight:500;color:#1E293B;white-space:nowrap;\">${tagData.value}</span>\n                                                    </div>\n                                                </tag>`;}}});}else if(!window.Tagify){if(Date.now()-tagifyStart<1e4){setTimeout(initTagify,100);}else{showPlainWebsitesField();}}};initTagify();}});};init().catch(()=>{clearTimeout(failTimer);if(!cancelled)setStatus(\"failed\");});return()=>{cancelled=true;clearTimeout(failTimer);observer.disconnect();};},[formSource,attempt])// ← ADD formSource to deps\n;// On /contact, offer the general form, which needs no outside scripts\nconst hasGeneralForm=typeof document!==\"undefined\"&&!!document.getElementById(\"contact-details\");return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",position:\"relative\"},children:[status===\"loading\"&&loader!==\"hidden\"&&/*#__PURE__*/_jsxs(\"div\",{role:\"status\",\"aria-live\":\"polite\",style:loaderStyle,children:[/*#__PURE__*/_jsx(\"style\",{children:loaderKeyframes}),/*#__PURE__*/_jsx(\"span\",{className:\"hs-loader-spinner\",style:spinnerStyle,\"aria-hidden\":true}),/*#__PURE__*/_jsx(\"p\",{style:loaderTextStyle,children:loader===\"slow\"?\"Still loading. This can take a moment on slower connections.\":\"Loading the form…\"})]}),status===\"failed\"&&/*#__PURE__*/_jsxs(\"div\",{role:\"alert\",style:fallbackStyle,children:[/*#__PURE__*/_jsx(\"p\",{style:fallbackTitleStyle,children:\"The form didn’t load.\"}),/*#__PURE__*/_jsxs(\"p\",{style:fallbackTextStyle,children:[\"This can happen with ad blockers or strict network settings.\",fallbackEmail&&/*#__PURE__*/_jsxs(_Fragment,{children:[\" \",\"You can also email us at\",\" \",/*#__PURE__*/_jsx(\"a\",{href:`mailto:${fallbackEmail}`,style:fallbackLinkStyle,children:fallbackEmail}),\".\"]})]}),/*#__PURE__*/_jsxs(\"div\",{style:fallbackActionsStyle,children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",style:fallbackButtonStyle,onClick:()=>setAttempt(a=>a+1),children:\"Try again\"}),hasGeneralForm&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",style:fallbackSecondaryStyle,onClick:()=>window.dispatchEvent(new CustomEvent(\"revu:contact-option\",{detail:\"other\"})),children:\"Use the general form\"})]})]}),/*#__PURE__*/_jsx(\"div\",{id:\"hs-form-container\",style:{width:\"100%\",minHeight:status===\"loading\"?\"800px\":undefined,display:status===\"failed\"?\"none\":undefined},onWheel:e=>e.stopPropagation()})]});}const loaderKeyframes=`\n    @keyframes hsLoaderSpin { to { transform: rotate(360deg); } }\n    @keyframes hsLoaderIn { from { opacity: 0; } to { opacity: 1; } }\n    @media (prefers-reduced-motion: reduce) {\n        .hs-loader-spinner { animation-duration: 2.4s !important; }\n    }\n`;const loaderStyle={position:\"absolute\",top:0,left:0,right:0,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:14,padding:\"64px 24px\",textAlign:\"center\",fontFamily:'\"Satoshi\", \"Satoshi Placeholder\", sans-serif',animation:\"hsLoaderIn 0.3s ease both\"};const spinnerStyle={width:32,height:32,borderRadius:\"50%\",border:\"3px solid #E2E8F0\",borderTopColor:\"#009EDC\",boxSizing:\"border-box\",animation:\"hsLoaderSpin 0.8s linear infinite\"};const loaderTextStyle={margin:0,maxWidth:320,fontSize:16,lineHeight:1.5,color:\"#4A5568\"};const fallbackStyle={padding:24,borderRadius:12,background:\"#F3F4F6\",fontFamily:'\"Satoshi\", \"Satoshi Placeholder\", sans-serif',color:\"#1A202C\"};const fallbackTitleStyle={margin:0,fontSize:18,fontWeight:700};const fallbackTextStyle={margin:\"8px 0 0\",fontSize:16,lineHeight:1.5,color:\"#4A5568\"};const fallbackLinkStyle={color:\"#009EDC\",fontWeight:600};const fallbackActionsStyle={display:\"flex\",flexWrap:\"wrap\",gap:12,marginTop:16};const fallbackButtonStyle={height:48,padding:\"0 20px\",border:\"none\",borderRadius:12,background:\"#1A202C\",color:\"#FFFFFF\",fontFamily:\"inherit\",fontSize:16,fontWeight:700,cursor:\"pointer\"};const fallbackSecondaryStyle={...fallbackButtonStyle,background:\"#FFFFFF\",color:\"#1A202C\",boxShadow:\"inset 0 0 0 1px #D1D5DB\"};// ── Framer property controls ──────────────────────────────────────────────  ← ADD\naddPropertyControls(HubSpotTokenField,{// ← ADD\nformSource:{// ← ADD\ntype:ControlType.String,title:\"Form Source\",defaultValue:\"\",placeholder:\"e.g. advertiser-signup\"},fallbackEmail:{type:ControlType.String,title:\"Fallback Email\",defaultValue:\"\",placeholder:\"Shown if the form fails to load\"}})// ← ADD\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HubSpotTokenField\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HubSpotTokenForm.map"],"mappings":"A,8NAKE,SAAwBmB,GAAc,CAAC,GAAK,CAACC,EAAOC,GAAWrB,EAAS,EAAE,EAAO,CAACsB,EAAcC,GAAkBvB,EAAS,EAAE,EAAO,CAACwB,EAAWC,GAAezB,EAAS,IAAI,EAAO,CAAC0B,EAAQC,GAAY3B,EAAS,CAAC,EAAQ4B,EAAY3B,EAAO,EAAK,EAAES,MAAc,CAAC,IAAMmB,MAAW,CAAC,IAAMC,EAAU,SAAS,cAAcC,CAAiB,EAAE,GAAG,CAACD,EAAU,OAAO,IAAME,EAASF,EAAU,cAAc,gBA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