{"version":3,"file":"ContactForm.CWeOA8yJ.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/2v1ZB2AK22qOK7HMRFS5/KNZMKLkTnnGpYbLsTrIE/ContactForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useTracking}from\"framer\";// ---------------------------------------------------------------------------\n// Form content. Edit labels, options, field names, rules and required flags here.\n// \"name\" is the key sent to the webhook.\n//\n// Optional per field:\n//   validate   rule from VALIDATORS (checked when the field has a value)\n//   sanitize   rule from SANITIZERS (removes characters as the user types)\n//   inputMode  keyboard shown on phones (\"tel\", \"decimal\", \"email\")\n//   maxLength  maximum number of characters\n// ---------------------------------------------------------------------------\nconst REGIONS=[\"Northland\",\"Auckland\",\"Waikato\",\"Bay of Plenty\",\"Manawatu\",\"Taranaki\",\"Wellington\",\"Hawke's Bay\",\"Nelson\",\"Tasman\",\"Marlborough\",\"West Coast\",\"Otago\",\"Canterbury\",\"Southland\"];const HEARD_ABOUT=[\"Referral\",\"Partner or supplier\",\"Existing relationship\",\"Social media\",\"Media or PR\",\"Event or presentation\",\"School or community connection\",\"Google search\",\"Saw a SUPA system\",\"Other\"];// Become a Hub: field names match the original Webflow form, so the Make scenario keeps the same keys\nconst HUB_FIELDS=[{kind:\"buttons\",name:\"Type\",label:\"Type\",options:[\"Business\",\"Farm\",\"School\",\"Marae\",\"Clubs\",\"Other\"],required:true},{kind:\"text\",name:\"Business Name\",label:\"School or Business name\",required:true,validate:\"text\",maxLength:120},{kind:\"text\",name:\"Building Address\",label:\"Building address\",required:true,validate:\"address\",maxLength:200},{kind:\"select\",name:\"Building-Region\",label:\"Building region\",options:REGIONS,required:true},{kind:\"text\",name:\"Building Roof Area\",label:\"Building roof area\",required:false,validate:\"positiveNumber\",sanitize:\"decimal\",inputMode:\"decimal\",maxLength:10},{kind:\"text\",name:\"Full name\",label:\"Full name\",required:true,validate:\"name\",sanitize:\"name\",maxLength:80},{kind:\"email\",name:\"Email\",label:\"Email\",required:true,validate:\"email\",sanitize:\"email\",inputMode:\"email\",maxLength:254},{kind:\"tel\",name:\"Phone\",label:\"Phone\",required:false,validate:\"phone\",sanitize:\"phone\",inputMode:\"tel\",maxLength:20},{kind:\"select\",name:\"Referrer\",label:\"How did you hear about us?\",options:HEARD_ABOUT,required:false},{kind:\"text\",name:\"Referral-Other\",label:\"Please specify\",required:false,validate:\"text\",maxLength:120,// Only shown when \"Other\" is picked in the Referrer select\nshowWhen:{field:\"Referrer\",equals:\"Other\"}},{kind:\"checkbox\",name:\"community_newsletter_opt_in\",checkboxLabel:\"Keep me in the loop with the SUPA community newsletter\"}];// Contact Us\n// Used only when the \"Subjects\" list in the panel is empty\nconst DEFAULT_SUBJECTS=[\"Account\",\"Billing\",\"Payments\",\"Outages & Faults\",\"Other\",\"Feedback\"];const CONTACT_FIELDS=[{kind:\"text\",name:\"Full name\",label:\"Full name\",required:true,validate:\"name\",sanitize:\"name\",maxLength:80},{kind:\"email\",name:\"Email\",label:\"Email\",required:true,validate:\"email\",sanitize:\"email\",inputMode:\"email\",maxLength:254},{kind:\"tel\",name:\"Phone\",label:\"Phone\",required:false,validate:\"phone\",sanitize:\"phone\",inputMode:\"tel\",maxLength:20},{kind:\"text\",name:\"Address\",label:\"Address\",required:false,validate:\"address\",maxLength:200},// Options come from the \"Subjects\" list in the Framer properties panel\n{kind:\"select\",name:\"Subject\",label:\"Subject\",placeholder:\"Please select\",optionsProp:\"subjectOptions\",required:true},{kind:\"textarea\",name:\"Message\",label:\"Message\",required:true,validate:\"message\",maxLength:2e3}];// \"formName\" is sent to the webhook as \"form\" so the scenario knows which form it was\nconst FORMS={hub:{formName:\"School Business Email Form\",defaultTrackingId:\"become-a-hub-submit\",defaultSuccessUrl:\"/become-a-hub/thank-you\",fields:HUB_FIELDS},contact:{formName:\"Contact Us\",defaultTrackingId:\"contact-us-submit\",defaultSuccessUrl:\"/contact-us/thank-you\",fields:CONTACT_FIELDS}};// ---------------------------------------------------------------------------\n// Validation\n// ---------------------------------------------------------------------------\nconst REQUIRED_MESSAGE=\"This field is required.\";// Letters (including accents and macrons), spaces, apostrophes, hyphens and dots\nconst NAME_PATTERN=RegExp(\"^[\\\\p{L}\\\\p{M}][\\\\p{L}\\\\p{M}\\\\s'’.\\\\-]*$\",\"u\");const EMAIL_PATTERN=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/;// Each rule returns an error message, or \"\" when the value is valid\nconst VALIDATORS={text:value=>value.length<2?\"Please enter at least 2 characters.\":\"\",address:value=>value.length<5?\"Please enter the full address.\":\"\",name:value=>{if(value.length<2)return\"Please enter at least 2 characters.\";if(!NAME_PATTERN.test(value))return\"Please use letters only.\";return\"\";},email:value=>EMAIL_PATTERN.test(value)?\"\":\"Please enter a valid email, like name@example.com.\",phone:value=>{const digits=value.replace(/\\D/g,\"\");if(digits.length<7)return\"Please enter a valid phone number.\";if(digits.length>15)return\"This phone number is too long.\";return\"\";},positiveNumber:value=>{const number=Number(value);if(!Number.isFinite(number)||number<=0)return\"Please enter a number greater than 0.\";return\"\";},message:value=>value.length<10?\"Please write a bit more (at least 10 characters).\":\"\"};// Each rule cleans the value as the user types\nconst SANITIZERS={// Digits and spaces, with an optional \"+\" at the start\nphone:value=>value.replace(/[^\\d+\\s]/g,\"\").replace(/(?!^)\\+/g,\"\"),// Digits and a single decimal point\ndecimal:value=>value.replace(/[^\\d.]/g,\"\").replace(/(\\..*)\\./g,\"$1\"),// No digits or symbols\nname:value=>value.replace(RegExp(\"[^\\\\p{L}\\\\p{M}\\\\s'’.\\\\-]\",\"gu\"),\"\"),// No spaces\nemail:value=>value.replace(/\\s/g,\"\")};function getMessage(field,value){if(!value)return field.required?REQUIRED_MESSAGE:\"\";const rule=VALIDATORS[field.validate];return rule?rule(value):\"\";}// ---------------------------------------------------------------------------\nconst ERROR_TEXT=\"Oops! Something went wrong while submitting the form.\";// Spam protection: hidden field that only bots fill in, plus a minimum fill time\nconst HONEYPOT_NAME=\"company_website\";const MIN_FILL_TIME_MS=3e3;const STYLES=`\n.cf { width: 100%; color: var(--cf-text); }\n.cf * { box-sizing: border-box; }\n.cf-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cf-gap); position: relative; }\n.cf-field { display: flex; flex-direction: column; gap: var(--cf-label-gap); min-width: 0; border: 0; padding: 0; margin: 0; }\n.cf-label { font-size: .875em; color: var(--cf-label); padding: 0; }\n.cf-input { font: inherit; color: var(--cf-text); background-color: var(--cf-field); border: 1px solid var(--cf-border); border-radius: var(--cf-radius); height: var(--cf-field-height); padding: 0 14px; margin: 0; line-height: normal; width: 100%; outline: none; appearance: none; -webkit-appearance: none; transition: border-color .15s ease, box-shadow .15s ease; }\n.cf-input:focus-visible { border-color: var(--cf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf-accent) 25%, transparent); }\n.cf-input[aria-invalid=\"true\"] { border-color: var(--cf-error); }\n.cf-input[aria-invalid=\"true\"]:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf-error) 20%, transparent); }\ntextarea.cf-input { height: auto; min-height: var(--cf-message-height); padding: 12px 14px; line-height: 1.5; resize: vertical; }\n.cf-required { color: var(--cf-accent); }\n.cf-field-error { font-size: .8125em; color: var(--cf-error); }\n.cf-counter { font-size: .75em; color: var(--cf-label); align-self: flex-end; }\n.cf-dd { position: relative; }\n.cf-dd-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }\n.cf-dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.cf-dd-button[data-placeholder=\"true\"] .cf-dd-value { color: var(--cf-label); }\n.cf-dd-chevron { flex: none; color: var(--cf-label); transition: transform .15s ease; }\n.cf-dd-button[aria-expanded=\"true\"] { border-color: var(--cf-accent); }\n.cf-dd-button[aria-expanded=\"true\"] .cf-dd-chevron { transform: rotate(180deg); }\n.cf-dd-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; background: var(--cf-field); border: 1px solid var(--cf-border); border-radius: var(--cf-radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }\n.cf-dd-option { padding: 10px 12px; border-radius: calc(var(--cf-radius) * .6); cursor: pointer; user-select: none; }\n.cf-dd-option[data-active=\"true\"] { background: color-mix(in srgb, var(--cf-accent) 10%, transparent); }\n.cf-dd-option[aria-selected=\"true\"] { background: var(--cf-accent); color: var(--cf-accent-text); }\n.cf-dd-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0; }\n.cf-options { display: flex; flex-wrap: wrap; gap: var(--cf-option-gap); }\n.cf-option { position: relative; cursor: pointer; }\n.cf-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }\n.cf-option span { display: flex; align-items: center; justify-content: center; height: var(--cf-option-height); padding: 0 16px; white-space: nowrap; background: var(--cf-field); border: 1px solid var(--cf-border); border-radius: var(--cf-button-radius); user-select: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }\n.cf-options[data-invalid=\"true\"] .cf-option span { border-color: var(--cf-error); }\n.cf-option input:checked + span { background: var(--cf-accent); color: var(--cf-accent-text); border-color: var(--cf-accent); }\n.cf-option input:focus-visible + span { outline: 2px solid var(--cf-accent); outline-offset: 2px; }\n.cf-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.4; }\n.cf-check input { flex: none; width: 18px; height: 18px; margin: 0.1em 0 0; accent-color: var(--cf-accent); cursor: pointer; }\n.cf-submit { font: inherit; font-weight: 600; justify-self: start; color: var(--cf-accent-text); background: var(--cf-accent); border: 0; border-radius: var(--cf-button-radius); padding: 14px 24px; cursor: pointer; transition: opacity .15s ease; }\n.cf-submit:hover { opacity: .9; }\n.cf-submit:disabled { opacity: .6; cursor: default; }\n.cf-submit:focus-visible { outline: 2px solid var(--cf-accent); outline-offset: 2px; }\n.cf-message { padding: 16px; border-radius: var(--cf-radius); }\n.cf-message p { margin: 0; }\n.cf-error { color: var(--cf-error); border: 1px solid currentColor; }\n.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }\n`;// Custom dropdown, styled with the form's own colors, with keyboard support\nfunction Dropdown({field,id,onValueChange,onBlur,invalid,describedBy}){const options=field.options;const listId=`${id}-list`;const[open,setOpen]=useState(false);const[value,setValue]=useState(\"\");const[active,setActive]=useState(-1);const rootRef=useRef(null);const buttonRef=useRef(null);// Close when clicking outside\nuseEffect(()=>{if(!open)return;const onPointerDown=event=>{if(rootRef.current&&!rootRef.current.contains(event.target))setOpen(false);};document.addEventListener(\"pointerdown\",onPointerDown);return()=>document.removeEventListener(\"pointerdown\",onPointerDown);},[open]);// Keep the highlighted option visible inside the list\nuseEffect(()=>{if(!open||active<0)return;document.getElementById(`${id}-option-${active}`)?.scrollIntoView({block:\"nearest\"});},[open,active,id]);function openList(){setActive(Math.max(options.indexOf(value),0));setOpen(true);}function selectOption(option){setValue(option);onValueChange(field.name,option);setOpen(false);buttonRef.current?.focus();}function handleKeyDown(event){const{key}=event;if(!open){if(key===\"ArrowDown\"||key===\"ArrowUp\"||key===\"Enter\"||key===\" \"){event.preventDefault();openList();}return;}if(key===\"Escape\"){event.preventDefault();setOpen(false);}else if(key===\"Tab\"){setOpen(false);}else if(key===\"ArrowDown\"){event.preventDefault();setActive(index=>Math.min(index+1,options.length-1));}else if(key===\"ArrowUp\"){event.preventDefault();setActive(index=>Math.max(index-1,0));}else if(key===\"Home\"){event.preventDefault();setActive(0);}else if(key===\"End\"){event.preventDefault();setActive(options.length-1);}else if(key===\"Enter\"||key===\" \"){event.preventDefault();if(active>=0)selectOption(options[active]);}else if(key.length===1){// Jump to the first option starting with the typed letter\nconst match=options.findIndex(option=>option.toLowerCase().startsWith(key.toLowerCase()));if(match>=0)setActive(match);}}return /*#__PURE__*/_jsxs(\"div\",{className:\"cf-dd\",ref:rootRef,children:[/*#__PURE__*/_jsxs(\"button\",{ref:buttonRef,type:\"button\",id:id,className:\"cf-input cf-dd-button\",role:\"combobox\",\"aria-haspopup\":\"listbox\",\"aria-expanded\":open,\"aria-controls\":listId,\"aria-activedescendant\":open&&active>=0?`${id}-option-${active}`:undefined,\"aria-required\":field.required||undefined,\"aria-invalid\":invalid||undefined,\"aria-describedby\":describedBy,\"data-placeholder\":value===\"\",onClick:()=>open?setOpen(false):openList(),onKeyDown:handleKeyDown,onBlur:()=>{if(!open)onBlur(field);},children:[/*#__PURE__*/_jsx(\"span\",{className:\"cf-dd-value\",children:value||field.placeholder||\"Select one...\"}),/*#__PURE__*/_jsx(\"svg\",{className:\"cf-dd-chevron\",width:\"12\",height:\"8\",viewBox:\"0 0 12 8\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1 1.5l5 5 5-5\"})})]}),/*#__PURE__*/_jsx(\"input\",{className:\"cf-dd-native\",type:\"text\",name:field.name,value:value,onChange:()=>{},tabIndex:-1,\"aria-hidden\":\"true\",autoComplete:\"off\",onFocus:()=>buttonRef.current?.focus()}),open&&/*#__PURE__*/_jsx(\"ul\",{className:\"cf-dd-list\",id:listId,role:\"listbox\",children:options.map((option,index)=>/*#__PURE__*/_jsx(\"li\",{id:`${id}-option-${index}`,className:\"cf-dd-option\",role:\"option\",\"aria-selected\":option===value,\"data-active\":index===active,onPointerEnter:()=>setActive(index),// Keep focus on the button so it doesn't blur before the click\n    onPointerDown:event=>event.preventDefault(),onClick:()=>selectOption(option),children:option},option))})]});}// Asterisk shown next to the label of required fields\nfunction RequiredMark(){return /*#__PURE__*/_jsx(\"span\",{className:\"cf-required\",\"aria-hidden\":\"true\",children:\" *\"});}function FieldError({id,message}){if(!message)return null;return /*#__PURE__*/_jsx(\"span\",{className:\"cf-field-error\",id:id,role:\"alert\",children:message});}function Field({field,buttonFont,error,onValueChange,onBlur,onInput}){const id=`cf-${field.name.replace(/\\s+/g,\"-\")}`;const errorId=`${id}-error`;const invalid=Boolean(error);const[length,setLength]=useState(0);function handleInput(event){const input=event.target;const sanitize=SANITIZERS[field.sanitize];if(sanitize){const clean=sanitize(input.value);if(clean!==input.value)input.value=clean;}setLength(input.value.length);onInput(field);}if(field.kind===\"buttons\"){return /*#__PURE__*/_jsxs(\"fieldset\",{className:\"cf-field\",\"aria-describedby\":invalid?errorId:undefined,children:[/*#__PURE__*/_jsxs(\"legend\",{className:\"cf-label\",style:{marginBottom:\"var(--cf-label-gap)\"},children:[field.label,field.required&&/*#__PURE__*/_jsx(RequiredMark,{})]}),/*#__PURE__*/_jsx(\"div\",{className:\"cf-options\",\"data-invalid\":invalid,children:field.options.map(option=>/*#__PURE__*/_jsxs(\"label\",{className:\"cf-option\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"radio\",name:field.name,value:option,onChange:()=>onValueChange(field.name,option)}),/*#__PURE__*/_jsx(\"span\",{style:buttonFont,children:option})]},option))}),/*#__PURE__*/_jsx(FieldError,{id:errorId,message:error})]});}if(field.kind===\"checkbox\"){return /*#__PURE__*/_jsxs(\"div\",{className:\"cf-field\",children:[field.label&&/*#__PURE__*/_jsx(\"span\",{className:\"cf-label\",children:field.label}),/*#__PURE__*/_jsxs(\"label\",{className:\"cf-check\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",name:field.name,value:\"true\"}),/*#__PURE__*/_jsx(\"span\",{children:field.checkboxLabel})]})]});}const label=/*#__PURE__*/_jsxs(\"label\",{className:\"cf-label\",htmlFor:id,children:[field.label,field.required&&/*#__PURE__*/_jsx(RequiredMark,{})]});if(field.kind===\"select\"){return /*#__PURE__*/_jsxs(\"div\",{className:\"cf-field\",children:[label,/*#__PURE__*/_jsx(Dropdown,{field:field,id:id,onValueChange:onValueChange,onBlur:onBlur,invalid:invalid,describedBy:invalid?errorId:undefined}),/*#__PURE__*/_jsx(FieldError,{id:errorId,message:error})]});}const sharedProps={className:\"cf-input\",id,name:field.name,maxLength:field.maxLength,inputMode:field.inputMode,\"aria-required\":field.required||undefined,\"aria-invalid\":invalid||undefined,\"aria-describedby\":invalid?errorId:undefined,onInput:handleInput,onBlur:()=>onBlur(field),// No browser or password-manager suggestions\nautoComplete:\"off\",\"data-1p-ignore\":\"true\",\"data-lpignore\":\"true\"};if(field.kind===\"textarea\"){return /*#__PURE__*/_jsxs(\"div\",{className:\"cf-field\",children:[label,/*#__PURE__*/_jsx(\"textarea\",{...sharedProps,rows:5}),/*#__PURE__*/_jsx(FieldError,{id:errorId,message:error}),field.maxLength&&/*#__PURE__*/_jsxs(\"span\",{className:\"cf-counter\",\"aria-hidden\":\"true\",children:[length,\"/\",field.maxLength]})]});}return /*#__PURE__*/_jsxs(\"div\",{className:\"cf-field\",children:[label,/*#__PURE__*/_jsx(\"input\",{...sharedProps,type:field.kind,autoCorrect:\"off\",spellCheck:false}),/*#__PURE__*/_jsx(FieldError,{id:errorId,message:error})]});}/**\n * \"Become a Hub\" or \"Contact Us\" form that posts to a webhook (for example Make).\n * Pick which one with the \"Form\" property.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ContactForm(props){const{formType,webhookUrl,successUrl,submitLabel,trackingId,font,buttonFont,accent,accentText,textColor,labelColor,fieldColor,borderColor,errorColor,radius,buttonRadius,fieldHeight,optionHeight,gap,labelGap,optionGap,messageHeight}=props;const formKey=FORMS[formType]?formType:\"hub\";const form=FORMS[formKey];// Fill dropdowns whose options are edited in the properties panel\nconst fields=form.fields.map(field=>{if(!field.optionsProp)return field;const options=(props[field.optionsProp]||[]).map(option=>String(option).trim()).filter(Boolean);return{...field,options:options.length?options:DEFAULT_SUBJECTS};});const watchedFields=fields.filter(field=>field.showWhen).map(field=>field.showWhen.field);const track=useTracking();const formRef=useRef(null);// idle | submitting | redirecting | error\nconst[status,setStatus]=useState(\"idle\");const busy=status===\"submitting\"||status===\"redirecting\";const mountedAt=useRef(Date.now());// Current values of the fields that control conditional fields\nconst[watched,setWatched]=useState({});const visibleFields=fields.filter(field=>!field.showWhen||watched[field.showWhen.field]===field.showWhen.equals);// Errors are shown once a field has been left, or after a submit attempt\nconst[errors,setErrors]=useState({});const[touched,setTouched]=useState({});function readValue(field){const element=formRef.current?.elements.namedItem(field.name);return String(element?.value??\"\").trim();}function setFieldError(field,value){setErrors(current=>({...current,[field.name]:getMessage(field,value)}));}function handleBlur(field){setTouched(current=>({...current,[field.name]:true}));setFieldError(field,readValue(field));}function handleInput(field){// Update the message live once it is visible, so it disappears as soon as the value is fixed\nif(touched[field.name])setFieldError(field,readValue(field));}function handleValueChange(name,value){if(watchedFields.includes(name)){setWatched(current=>({...current,[name]:value}));}const field=fields.find(item=>item.name===name);if(field){setTouched(current=>({...current,[name]:true}));setFieldError(field,value);}}function focusField(field){const element=formRef.current?.elements.namedItem(field.name);if(!element)return;// Radio groups come back as a list\nconst target=typeof element.focus===\"function\"?element:element[0];target?.focus();}async function handleSubmit(event){event.preventDefault();if(busy)return;// Validate every visible field and stop at the first problem\nconst nextErrors={};const nextTouched={};let firstInvalid=null;for(const field of visibleFields){if(field.kind===\"checkbox\")continue;const message=getMessage(field,readValue(field));nextErrors[field.name]=message;nextTouched[field.name]=true;if(message&&!firstInvalid)firstInvalid=field;}setErrors(nextErrors);setTouched(nextTouched);if(firstInvalid){focusField(firstInvalid);return;}const data=new FormData(event.currentTarget);// Bots: look busy, send nothing and don't open the thank-you page (keeps analytics clean)\nconst looksLikeBot=Boolean(data.get(HONEYPOT_NAME))||Date.now()-mountedAt.current<MIN_FILL_TIME_MS;if(looksLikeBot){setStatus(\"redirecting\");return;}if(!webhookUrl){setStatus(\"error\");return;}const payload=new URLSearchParams;payload.set(\"form\",form.formName);for(const field of fields){if(field.kind===\"checkbox\"){payload.set(field.name,data.get(field.name)?\"true\":\"false\");}else{payload.set(field.name,String(data.get(field.name)??\"\").trim());}}payload.set(\"page_url\",window.location.href);payload.set(\"submitted_at\",new Date().toISOString());setStatus(\"submitting\");try{const response=await fetch(webhookUrl,{method:\"POST\",body:payload});if(!response.ok)throw new Error(`Webhook responded with ${response.status}`);// The button keeps showing \"Sending...\" until the thank-you page opens\nsetStatus(\"redirecting\");track(trackingId||form.defaultTrackingId);// Go to the thank-you page. The short delay lets the Framer analytics event go out first.\nconst target=String(successUrl||form.defaultSuccessUrl).trim();setTimeout(()=>window.location.assign(target),300);}catch(error){console.error(\"ContactForm submission failed\",error);setStatus(\"error\");}}return /*#__PURE__*/_jsxs(\"div\",{className:\"cf\",style:{...font,\"--cf-accent\":accent,\"--cf-accent-text\":accentText,\"--cf-text\":textColor,\"--cf-label\":labelColor,\"--cf-field\":fieldColor,\"--cf-border\":borderColor,\"--cf-error\":errorColor,\"--cf-radius\":`${radius}px`,\"--cf-button-radius\":`${buttonRadius}px`,\"--cf-field-height\":`${fieldHeight}px`,\"--cf-option-height\":`${optionHeight}px`,\"--cf-gap\":`${gap}px`,\"--cf-label-gap\":`${labelGap}px`,\"--cf-option-gap\":`${optionGap}px`,\"--cf-message-height\":`${messageHeight}px`},children:[/*#__PURE__*/_jsx(\"style\",{children:STYLES}),/*#__PURE__*/_jsxs(\"form\",{className:\"cf-form\",ref:formRef,onSubmit:handleSubmit,autoComplete:\"off\",noValidate:true,children:[visibleFields.map(field=>/*#__PURE__*/_jsx(Field,{field:field,buttonFont:buttonFont,error:touched[field.name]?errors[field.name]:\"\",onValueChange:handleValueChange,onBlur:handleBlur,onInput:handleInput},field.name)),/*#__PURE__*/_jsx(\"div\",{className:\"cf-hp\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"label\",{children:[\"Leave this field empty\",/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:HONEYPOT_NAME,tabIndex:-1,autoComplete:\"off\"})]})}),/*#__PURE__*/_jsx(\"button\",{className:\"cf-submit\",type:\"submit\",style:buttonFont,disabled:busy,children:busy?\"Sending...\":submitLabel}),status===\"error\"&&/*#__PURE__*/_jsx(\"div\",{className:\"cf-message cf-error\",role:\"alert\",children:/*#__PURE__*/_jsx(\"p\",{children:ERROR_TEXT})})]},formKey)]});}ContactForm.defaultProps={formType:\"hub\",subjectOptions:DEFAULT_SUBJECTS,webhookUrl:\"\",successUrl:\"\",submitLabel:\"Submit\",trackingId:\"\",accent:\"#111111\",accentText:\"#FFFFFF\",textColor:\"#111111\",labelColor:\"#555555\",fieldColor:\"#FFFFFF\",borderColor:\"#DDDDDD\",errorColor:\"#C62828\",radius:8,buttonRadius:999,fieldHeight:48,optionHeight:40,gap:16,labelGap:6,optionGap:8,messageHeight:160};addPropertyControls(ContactForm,{formType:{type:ControlType.Enum,title:\"Form\",options:[\"hub\",\"contact\"],optionTitles:[\"Become a Hub\",\"Contact Us\"]},subjectOptions:{type:ControlType.Array,title:\"Subjects\",description:\"Options of the Subject dropdown. Add, remove or reorder them here.\",control:{type:ControlType.String,placeholder:\"Subject\"},defaultValue:DEFAULT_SUBJECTS,hidden:props=>props.formType!==\"contact\"},webhookUrl:{type:ControlType.String,title:\"Webhook URL\",placeholder:\"https://hook.make.com/...\"},successUrl:{type:ControlType.Link,title:\"Thank-you Page\",description:\"Page opened after a successful submit. Empty uses /become-a-hub/thank-you or /contact-us/thank-you.\"},submitLabel:{type:ControlType.String,title:\"Button\"},trackingId:{type:ControlType.TrackingId,title:\"Tracking\",placeholder:\"ID\",description:\"Empty uses become-a-hub-submit or contact-us-submit.\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\"},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",description:\"Used by the submit button and the option buttons.\"},accent:{type:ControlType.Color,title:\"Accent\"},accentText:{type:ControlType.Color,title:\"Accent Text\"},textColor:{type:ControlType.Color,title:\"Text\"},labelColor:{type:ControlType.Color,title:\"Labels\"},fieldColor:{type:ControlType.Color,title:\"Field Fill\"},borderColor:{type:ControlType.Color,title:\"Field Border\"},errorColor:{type:ControlType.Color,title:\"Error\"},radius:{type:ControlType.Number,title:\"Field Radius\",min:0,max:100,unit:\"px\"},buttonRadius:{type:ControlType.Number,title:\"Button Radius\",min:0,max:999,unit:\"px\"},fieldHeight:{type:ControlType.Number,title:\"Field Height\",min:24,max:100,unit:\"px\"},messageHeight:{type:ControlType.Number,title:\"Message Height\",description:\"Starting height of the message box (Contact Us).\",min:80,max:400,unit:\"px\",hidden:props=>props.formType!==\"contact\"},optionHeight:{type:ControlType.Number,title:\"Option Height\",min:24,max:100,unit:\"px\"},gap:{type:ControlType.Number,title:\"Field Gap\",description:\"Space between one field and the next.\",min:0,max:80,unit:\"px\"},labelGap:{type:ControlType.Number,title:\"Label Gap\",description:\"Space between a label and its input.\",min:0,max:40,unit:\"px\"},optionGap:{type:ControlType.Number,title:\"Option Gap\",description:\"Space between the option buttons.\",min:0,max:40,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ContactForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ContactForm.map"],"mappings":"qNA0BsC,SAAS,EAAW,EAAM,EAAM,CAAC,GAAG,CAAC,EAAM,OAAO,EAAM,SAAS,EAAiB,GAAG,IAAM,EAAK,EAAW,EAAM,UAAU,OAAO,EAAK,EAAK,CAAK,EAAE,EAAG,CA8C5L,SAAS,EAAS,CAAC,QAAM,KAAG,gBAAc,SAAO,UAAQ,eAAa,CAAC,IAAM,EAAQ,EAAM,QAAc,EAAO,GAAG,EAAG,OAAY,CAAC,EAAK,GAASA,EAAS,EAAK,EAAO,CAAC,EAAM,GAAUA,EAAS,EAAE,EAAO,CAAC,EAAO,GAAWA,EAAS,EAAE,EAAQ,EAAQC,EAAO,IAAI,EAAQ,EAAUA,EAAO,I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