{"version":3,"file":"MultiStepForm.C6Pc4RZb.mjs","names":["useState","useRef","useState","useRef","Image","useState","useRef","useState","useRef","__esmMin","ce","window","init_ssg_sandbox_shims","c","init_jsx_runtime","init_npm_react_18_3_1","p","de","_e","motion","init_framer_motion_DhsWWWsN","addPropertyControls","withCSS","RenderTarget","Image$1","ControlType","init_framer_BWFVvmND","useMultiStepFormStore","init_FramerFormsShared","HiddenComponentLabel","Icon","borderProp","getFormInfo","HiddenInput","fillProp","createBackground","Border","isAncestor","useInstanceId","parsePadding","countryEmojis","dropdownProp","init_Countries","init_DropdownUtilities","init_CountryDropdown","getSharedStyleControls","countries","CountryDropdown","LogicBlock","props","multiStepFormState","setMultiStepFormState","formInfo","setFormInfo","ref","form","formId","getNextPage","condition","conditions","value","getRadioValue","checkbox","result","checkCondition","defaultCondition","prev","type","labelFormat","labelFormats","formatDate","number","date","isChecked","expectedChecked","dateString","month","day","year","radios","radioName","i","init_LogicBlock","ButtonsInput","id","isCanvas","multiSelect","clickAction","setValue","invalid","setInvalid","nextPageQueued","setNextPageQueued","setFormId","state","newFormId","onSetValueEvent","event","valueSeparator","imageStyle","imageOptions","rows","options","option","selected","layout","layoutProps","color","textOptions","boxShadow","shadows","borderColor","border","onClick","v","items","init_ButtonsInput","shadowsProp","CountryInput","focused","setFocused","dropdownOpen","setDropdownOpen","searchQuery","setSearchQuery","selectedCountry","setSelectedCountry","dropdownRef","searchInputRef","inputRef","pt","pr","pb","pl","filteredCountries","searchLower","country","index","handleClickOutside","target","isOutsideDropdown","isOutsideInput","onFocus","onBlur","relatedTarget","onInputClick","onCountrySelect","getDisplayText","countryIndex","icon","init_CountryInput","init_FramerFormsShared_XPyb","resolveThankYouPage","redirects","pages","history","pageName","match","r","MultiStepFormComponent","stateRef","pageVideosRef","isFirstRenderRef","initialized","setInitialized","pageHistory","previousPage","nextPage","page","newPage","logicConfigs","pageElement","logic","nextPageName","nextPageIndex","getChildIndexByDataFramerName","isFormValid","prevState","isPageAnEndPage","setPageHistoryLength","newLength","pageElements","videos","video","pauseVideo","unmountFunction","onEnterPress","currentInput","previousElement","foundPage","newElement","currentPage","stopEvent","inputs","getInputsOnPage","currentIndex","onFormSubmit","thankYouUrl","origFetch","response","input","init","err","submitButton","SUBMIT_BUTTON_HIDDEN_ATTRIBUTE","pageIndex","pageVideos","scrollToTop","top","windowScrollTop","autoFocusInputOnPage","fireAnalyticsEvent","OPTIMIZATION_CLASS_NAME","element","invalidInputs","isVisible","children","parentElement","name","isEndPage","endPageMode","step","customEndPages","analytics","params","el","autofocusElements","visibleElements","style","MultiStepForm","init_MultiStepForm"],"sources":["https:/framerusercontent.com/modules/28d2a4VreVXZoJwmw7cr/wNzU5xgfua3GnSeRuH6g/LogicBlock.js","https:/framerusercontent.com/modules/asydHDts5g0SLLYx4UPp/FrCeOGSkznKQy3QJkcOg/ButtonsInput.js","https:/framerusercontent.com/modules/txadBxzyc8xVP8tgxh1j/1tF1GrgTyNspcfcSvkWo/CountryInput.js","https:/framer.com/m/FramerFormsShared-XPyb.js@hMz2wp3CWZkNwPJFGPgQ","https:/framerusercontent.com/modules/czZyIhTlZLZeyX9hae06/3G5agtT1MkKD39EOO6nY/MultiStepForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{HiddenComponentLabel,useMultiStepFormStore,getFormInfo}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/hMz2wp3CWZkNwPJFGPgQ/FramerFormsShared.js\";const labelFormats={isSet:\"Name\",isNotSet:\"Not Name\",equals:\"Name = Value\",doesNotEqual:\"Name ≠ Value\",startsWith:\"Name starts with Value\",doesNotStartWith:\"Name does not start with Value\",endsWith:\"Name ends with Value\",doesNotEndWith:\"Name does not end with Value\",contains:\"Name contains Value\",doesNotContain:\"Name does not contain Value\",greaterThan:\"Name > Value\",lessThan:\"Name < Value\",greaterThanOrEqualTo:\"Name ≥ Value\",lessThanOrEqualTo:\"Name ≤ Value\",isBefore:\"Name is before Value\",isAfter:\"Name is after Value\",isBetweenDates:\"Name is between Value\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function LogicBlock(props){const{conditions,defaultCondition}=props;const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const[formInfo,setFormInfo]=useState(null);const ref=useRef(null);useEffect(()=>{setFormInfo(getFormInfo(ref.current));},[ref]);useEffect(()=>{const form=formInfo?.form;const formId=formInfo?.formId;if(formId&&multiStepFormState[formId]){const getNextPage=()=>{for(const condition of conditions){let value=\"\";if(condition.type==\"radio\"){value=getRadioValue(form,condition.inputName)||\"\";}else if(condition.type==\"checkbox\"){const checkbox=form.querySelector(`[name=\"${condition.inputName}\"]`);if(checkbox){// For checkboxes, check the .checked property, not .value\nvalue=checkbox.checked?\"checked\":\"unchecked\";}else{value=\"\";}}else{value=form.querySelector(`[name=\"${condition.inputName}\"]`)?.value||\"\";}console.log(`[LogicBlock] Condition check:`,{inputName:condition.inputName,type:condition.type,value:value,checkboxValue:condition.checkboxValue,pageName:condition.pageName});const result=checkCondition(condition,value);console.log(`[LogicBlock] Condition result:`,{inputName:condition.inputName,result:result,willGoTo:result?condition.pageName:null});if(result){console.log(`[LogicBlock] ✅ Matched condition, going to: ${condition.pageName}`);return condition.pageName;}}console.log(`[LogicBlock] ⚠️ No conditions matched, using default: ${defaultCondition.pageName||\"Next Page\"}`);return defaultCondition.pageName;};setMultiStepFormState(prev=>({[formId]:{...prev[formId],logicConfigs:[...prev[formId].logicConfigs,{getNextPage,ref}]}}));}},[formInfo]);return /*#__PURE__*/_jsx(HiddenComponentLabel,{text:\"Multi-Step Form Logic\",subtext:conditions.map(condition=>{const type=condition.type;const labelFormat=type==\"checkbox\"?condition.checkboxValue?\"isSet\":\"isNotSet\":labelFormats[condition[`${type}Condition`]]||\"\";let value=type==\"date\"?condition.dateCondition==\"isBetweenDates\"?`${formatDate(condition.dateValueStart)} and ${formatDate(condition.dateValueEnd)}`:formatDate(condition.dateValue):String(condition[`${type}Value`]);return`${labelFormat.replace(\"Name\",condition.inputName).replace(\"Value\",value)} → ${condition.pageName||\"[None]\"}`;}).join(\"\\n\")+`${conditions.length?\"\\n\":\"\"}Default: ${defaultCondition.pageName?defaultCondition.pageName:\"Next Page\"}`,ref:ref,\"data-framerforms-logic\":true});}LogicBlock.displayName=\"Form Logic Config\";addPropertyControls(LogicBlock,{conditions:{type:ControlType.Array,title:\"Conditions\",control:{type:ControlType.Object,controls:{inputName:{type:ControlType.String,defaultValue:\"\",placeholder:\"Input Name\",preventLocalization:true},type:{type:ControlType.Enum,defaultValue:\"text\",options:[\"text\",\"select\",\"radio\",\"number\",\"date\",\"checkbox\",\"fileUpload\"],optionTitles:[\"Text\",\"Select\",\"Radio\",\"Number\",\"Date\",\"Checkbox\",\"File Upload\"]},textCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Condition\",options:[\"isSet\",\"isNotSet\",\"equals\",\"doesNotEqual\",\"startsWith\",\"doesNotStartWith\",\"endsWith\",\"doesNotEndWith\",\"contains\",\"doesNotContain\"],optionTitles:[\"Is Set\",\"Is Not Set\",\"Equals\",\"Does Not Equal\",\"Starts With\",\"Does Not Start With\",\"Ends With\",\"Does Not End With\",\"Contains\",\"Does Not Contain\"],hidden:props=>props.type!==\"text\"},textValue:{type:ControlType.String,defaultValue:\"\",placeholder:\"Empty\",title:\"Value\",hidden:props=>props.type!==\"text\"||props.textCondition===\"isSet\"||props.textCondition===\"isNotSet\"},selectCondition:{type:ControlType.Enum,defaultValue:\"equals\",options:[\"isSet\",\"isNotSet\",\"equals\",\"doesNotEqual\"],optionTitles:[\"Is Set\",\"Is Not Set\",\"Equals\",\"Does Not Equal\"],title:\"Condition\",hidden:props=>props.type!==\"select\"},selectValue:{type:ControlType.String,defaultValue:\"\",placeholder:\"Empty\",title:\"Value\",preventLocalization:true,hidden:props=>props.type!==\"select\"||props.selectCondition===\"isSet\"||props.selectCondition===\"isNotSet\"},radioCondition:{type:ControlType.Enum,defaultValue:\"equals\",options:[\"equals\",\"doesNotEqual\"],optionTitles:[\"Equals\",\"Does Not Equal\"],title:\"Condition\",hidden:props=>props.type!==\"radio\"},radioValue:{type:ControlType.String,defaultValue:\"\",placeholder:\"Empty\",title:\"Value\",preventLocalization:true,hidden:props=>props.type!==\"radio\"},checkboxValue:{type:ControlType.Boolean,title:\"Checked\",hidden:props=>props.type!==\"checkbox\"},numberCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Condition\",options:[\"equals\",\"doesNotEqual\",\"greaterThan\",\"lessThan\",\"greaterThanOrEqualTo\",\"lessThanOrEqualTo\"],optionTitles:[\"Equals\",\"Does Not Equal\",\"Greater Than\",\"Less Than\",\"Greater Than or Equal To\",\"Less Than or Equal To\"],hidden:props=>props.type!==\"number\"},numberValue:{type:ControlType.Number,defaultValue:0,displayStepper:true,title:\"Value\",hidden:props=>props.type!==\"number\"},dateCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Condition\",options:[\"equals\",\"doesNotEqual\",\"isBefore\",\"isAfter\",\"isBetweenDates\"],optionTitles:[\"Equals\",\"Does Not Equal\",\"Is Before\",\"Is After\",\"Is Between Dates\"],hidden:props=>props.type!==\"date\"},dateValue:{type:ControlType.Date,title:\"Value\",hidden:props=>props.type!==\"date\"||props.dateCondition==\"isBetweenDates\"},dateValueStart:{type:ControlType.Date,title:\"Start\",hidden:props=>props.type!==\"date\"||props.dateCondition!==\"isBetweenDates\"},dateValueEnd:{type:ControlType.Date,title:\"End\",hidden:props=>props.type!==\"date\"||props.dateCondition!==\"isBetweenDates\"},fileUploadCondition:{type:ControlType.Enum,defaultValue:\"equals\",title:\"Has File\",options:[\"isSet\",\"isNotSet\"],optionTitles:[\"Yes\",\"No\"],displaySegmentedControl:true,hidden:props=>props.type!==\"fileUpload\"},pageName:{type:ControlType.String,defaultValue:\"\",placeholder:\"Page Name\",title:\"Go To\",preventLocalization:true}}}},defaultCondition:{type:ControlType.Object,title:\"Default\",controls:{pageName:{type:ControlType.String,defaultValue:\"\",placeholder:\"Page Name\",title:\"Go To\",description:\"If blank, goes to the next page\",preventLocalization:true}}}});function checkCondition(condition,value){switch(condition.type){case\"text\":switch(condition.textCondition){case\"isSet\":return value!==\"\";case\"isNotSet\":return value===\"\";case\"equals\":return value===condition.textValue;case\"doesNotEqual\":return value!==condition.textValue;case\"startsWith\":return value.startsWith(condition.textValue);case\"doesNotStartWith\":return!value.startsWith(condition.textValue);case\"endsWith\":return value.endsWith(condition.textValue);case\"doesNotEndWith\":return!value.endsWith(condition.textValue);case\"contains\":return value.includes(condition.textValue);case\"doesNotContain\":return!value.includes(condition.textValue);}break;case\"select\":switch(condition.selectCondition){case\"isSet\":return value!==\"\";case\"isNotSet\":return value===\"\";case\"equals\":return value===condition.selectValue;case\"doesNotEqual\":return value!==condition.selectValue;}break;case\"radio\":switch(condition.radioCondition){case\"equals\":return value===condition.radioValue;case\"doesNotEqual\":return value!==condition.radioValue;}break;case\"number\":const number=parseFloat(value);switch(condition.numberCondition){case\"equals\":return number===condition.numberValue;case\"doesNotEqual\":return number!==condition.numberValue;case\"greaterThan\":return number>condition.numberValue;case\"lessThan\":return number<condition.numberValue;case\"greaterThanOrEqualTo\":return number>=condition.numberValue;case\"lessThanOrEqualTo\":return number<=condition.numberValue;}break;case\"date\":const date=new Date(value);switch(condition.dateCondition){case\"equals\":return date===condition.dateValue;case\"doesNotEqual\":return date!==condition.dateValue;case\"isBefore\":return date<condition.dateValue;case\"isAfter\":return date>condition.dateValue;case\"isBetweenDates\":return date>=condition.dateValueStart&&date<=condition.dateValueEnd;}break;case\"checkbox\":// value will be \"checked\" or \"unchecked\" based on checkbox.checked\nconst isChecked=value===\"checked\";const expectedChecked=condition.checkboxValue===true;console.log(`[LogicBlock] Checkbox comparison:`,{value:value,isChecked:isChecked,expectedChecked:expectedChecked,conditionCheckboxValue:condition.checkboxValue,result:isChecked===expectedChecked});return isChecked===expectedChecked;case\"fileUpload\":switch(condition.fileUploadCondition){case\"isSet\":return value!=\"\";case\"isNotSet\":return value==\"\";}break;}return false;}function formatDate(dateString){if(!dateString){return\"mm/dd/yyyy\";}const date=dateString;let month=date.getMonth()+1// Months are zero-based\n;let day=date.getDate();let year=date.getFullYear();// Ensure month and day are two digits\nif(month<10)month=\"0\"+month;if(day<10)day=\"0\"+day;return`${month}/${day}/${year}`;}function getRadioValue(form,radioName){// Ensure the form exists\nif(!form){return null;}// Get the array of radio buttons by name\nvar radios=form.elements[radioName];// Ensure the radio buttons exist\nif(!radios){console.log(`Radio buttons with name \"${radioName}\" not found.`);return null;}// Iterate through the radio buttons to find the checked one\nfor(var i=0;i<radios.length;i++){if(radios[i].checked){return radios[i].value// Return the value of the checked radio button\n;}}// If no radio button is checked, return null\nreturn null;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogicBlock\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,Image}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{motion}from\"framer-motion\";import{Border,createBackground,fillProp,borderProp,shadowsProp,useInstanceId,HiddenInput,useMultiStepFormStore,getFormInfo}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/hMz2wp3CWZkNwPJFGPgQ/FramerFormsShared.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerDisableUnlink\n */export default function ButtonsInput(props){const{clickAction,options,textOptions,imageOptions,layout,border,shadows,valueSeparator}=props;const id=useInstanceId();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const multiSelect=clickAction===\"nextPage\"?false:props.multiSelect;const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const[value,setValue]=useState([]);const[invalid,setInvalid]=useState(false);const[nextPageQueued,setNextPageQueued]=useState(false);const[formId,setFormId]=useState(null);const ref=useRef(null);const state=multiStepFormState[formId];useEffect(()=>{const newFormId=getFormInfo(ref.current).formId;if(!multiStepFormState[newFormId]){setMultiStepFormState({});}setFormId(newFormId);},[]);useEffect(()=>{if(invalid){props.invalidEvent?.();}},[invalid]);useEffect(()=>{if(nextPageQueued){state?.nextPage?.();setNextPageQueued(false);}},[nextPageQueued]);function onSetValueEvent(event){setValue(multiSelect?event.detail.split(valueSeparator):[event.detail]);}const imageStyle={position:\"relative\",width:\"100%\",height:\"auto\",aspectRatio:imageOptions.aspectRatioMode==\"fixed\"?imageOptions.aspectRatio:undefined,borderRadius:imageOptions.radius,pointerEvents:\"none\",userSelect:\"none\",objectFit:\"cover\"};const rows=[];for(let i=0;i<options.length;i++){const option=options[i];const selected=multiSelect?value.includes(option.value):value.length===1&&value[0]===option.value;if(i%layout.columns==0){rows.push([]);}let layoutProps={};if(options.length%layout.columns==0||options.length-i>=layout.columns){layoutProps={flex:1};}else{layoutProps={flexBasis:`calc(${100/layout.columns}% - ${layout.gapH*(1-1/layout.columns)}px)`};}const color=invalid&&textOptions?.colorInvalid||(selected?textOptions?.colorOn:textOptions?.colorOff);const boxShadow=invalid&&shadows?.invalid||(selected?shadows?.on:shadows?.off);const borderColor=invalid&&border?.colorInvalid||(selected?border?.colorOn:border?.colorOff);const onClick=()=>{if(multiSelect){setValue(selected?value.filter(v=>v!==option.value):[...value,option.value]);}else{setValue(selected?[]:[option.value]);}setInvalid(false);if(clickAction==\"nextPage\"){setNextPageQueued(true);}};rows[rows.length-1].push(/*#__PURE__*/_jsxs(motion.button,{type:\"button\",onClick:onClick,onKeyDown:event=>{if(event.key===\"Enter\"){onClick();}},onFocus:()=>{props.focusEvent?.();if(invalid){setInvalid(false);}},onBlur:props.blurEvent,whileFocus:{...createBackground(props.fill,null,true,invalid),color:textOptions?.colorFocus||color,boxShadow:shadows?.focus||boxShadow,borderColor:border?.colorFocus||borderColor},animate:{...createBackground(props.fill,selected,false,invalid),color,boxShadow,borderColor},style:{position:\"relative\",display:\"flex\",flexDirection:textOptions?.location==\"bottom\"?\"column-reverse\":\"column\",gap:textOptions?.gap??0,padding:props.padding,borderRadius:props.radius,cursor:\"pointer\",overflow:\"hidden\",outline:\"none\",border:\"none\",backdropFilter:props.bgBlur?`blur(${props.bgBlur}px)`:undefined,...textOptions.font,...layoutProps},initial:false,transition:props.transition,children:[textOptions&&/*#__PURE__*/_jsx(\"span\",{style:{minHeight:\"1lh\",width:\"100%\"},children:option.title}),option.image&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",flex:1,display:\"flex\",alignItems:imageOptions.alignV},children:isCanvas?/*#__PURE__*/_jsx(\"img\",{src:option.image.src,alt:option.image.alt||option.title||option.value,style:imageStyle}):/*#__PURE__*/_jsx(Image,{className:`${id}-image`,background:{fit:\"fill\",...option.image,alt:option.image.alt||option.title||option.value},style:imageStyle})}),border&&/*#__PURE__*/_jsx(Border,{...border,transition:props.transition})]},option.value));}return /*#__PURE__*/_jsxs(\"div\",{\"data-framerforms\":true,\"data-framerforms-type\":\"buttons\",ref:ref,style:{display:\"flex\",flexDirection:\"column\",gap:layout.gapV,flex:1,userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",style:{display:\"none\"}}),/*#__PURE__*/_jsx(HiddenInput,{name:props.name,required:props.required,value:value.join(valueSeparator),setInvalid:setInvalid,onSetValueEvent:onSetValueEvent}),rows.map((items,index)=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"row\",gap:layout.gapH,width:\"100%\",alignItems:layout.height==\"fill\"?\"stretch\":layout.alignV,justifyContent:layout.alignH},children:items})),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`.${id}-image > div {\n                        position: relative !important;\n                        ${imageOptions.aspectRatioMode==\"fixed\"?\"height: 100%;\":\"\"}\n                    }`}})]});}ButtonsInput.displayName=\"Buttons Input\";addPropertyControls(ButtonsInput,{name:{type:ControlType.String,defaultValue:\"Buttons\",placeholder:\"Name\",preventLocalization:true},required:{type:ControlType.Boolean,defaultValue:false},clickAction:{type:ControlType.Enum,defaultValue:\"select\",options:[\"select\",\"nextPage\"],optionTitles:[\"Select\",\"Go To Next Page\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},multiSelect:{type:ControlType.Boolean,defaultValue:false,title:\"Multi-Select\",hidden:props=>props.clickAction!==\"select\"},valueSeparator:{type:ControlType.String,defaultValue:\", \",hidden:props=>!props.multiSelect||props.clickAction!==\"select\"},options:{type:ControlType.Array,defaultValue:[{value:\"Option1\",title:\"Option 1\"},{value:\"Option2\",title:\"Option 2\"},{value:\"Option3\",title:\"Option 3\"}],control:{type:ControlType.Object,controls:{value:{type:ControlType.String,defaultValue:\"\",preventLocalization:true},title:{type:ControlType.String,defaultValue:\"\"},image:{type:ControlType.ResponsiveImage}}}},layout:{type:ControlType.Object,controls:{columns:{type:ControlType.Number,defaultValue:3,min:1,step:1,displayStepper:true},height:{type:ControlType.Enum,defaultValue:\"fit\",options:[\"fit\",\"fill\"],optionTitles:[\"Fit\",\"Fill\"],displaySegmentedControl:true,hidden:props=>props.columns==1},alignH:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.columns==1},alignV:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],displaySegmentedControl:true,title:\" \",hidden:props=>props.columns==1||props.height==\"fill\"},gapH:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.columns==1},gapV:{type:ControlType.Number,defaultValue:10,min:0,step:1}}},textOptions:{type:ControlType.Object,optional:true,title:\"Text\",defaultValue:{location:\"top\",gap:10},controls:{location:{type:ControlType.Enum,defaultValue:\"top\",options:[\"top\",\"bottom\"],optionTitles:[\"Top\",\"Bottom\"],displaySegmentedControl:true},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:12,lineHeight:1,textAlign:\"center\"}},colorOn:{type:ControlType.Color,defaultValue:\"#0099FF\"},colorOff:{type:ControlType.Color,defaultValue:\"#999\"},colorFocus:{type:ControlType.Color,optional:true,title:\"Focus\"},colorInvalid:{type:ControlType.Color,optional:true,title:\"Invalid\"}}},imageOptions:{type:ControlType.Object,title:\"Images\",controls:{aspectRatioMode:{type:ControlType.Enum,defaultValue:\"auto\",options:[\"auto\",\"fixed\"],optionTitles:[\"Auto\",\"Fixed\"],displaySegmentedControl:true,title:\"Aspect Ratio\"},aspectRatio:{type:ControlType.String,defaultValue:\"1 / 1\",placeholder:\"Width / Height\",title:\" \",preventLocalization:true,hidden:props=>props.aspectRatioMode!=\"fixed\"},alignV:{type:ControlType.Enum,defaultValue:\"center\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],optionIcons:[\"align-top\",\"align-middle\",\"align-bottom\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.aspectRatioMode!=\"auto\"},radius:{type:ControlType.BorderRadius,defaultValue:\"0px\"}}},fill:fillProp({onOff:true,invalid:true}),radius:{type:ControlType.BorderRadius,defaultValue:\"10px\"},padding:{type:ControlType.Padding,defaultValue:\"10px\"},border:borderProp({onOff:true,invalid:true}),shadows:shadowsProp(),bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"},transition:{type:ControlType.Transition,defaultValue:{type:\"spring\",stiffness:1500,damping:70}},focusEvent:{type:ControlType.EventHandler,title:\"Focus\"},blurEvent:{type:ControlType.EventHandler,title:\"Blur\"},invalidEvent:{type:ControlType.EventHandler,title:\"Invalid\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ButtonsInput\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{motion}from\"framer-motion\";import{createBackground,Border,parsePadding,useInstanceId,Icon,HiddenInput}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/hMz2wp3CWZkNwPJFGPgQ/FramerFormsShared.js\";import{countries,countryEmojis}from\"https://framerusercontent.com/modules/1LECUrurTpenvfDn1ShM/nL9gmnXABjh04Nl8aaL8/Countries.js\";import{CountryDropdown}from\"https://framerusercontent.com/modules/SRHLnHriy9CtZfYf0KJF/l79PAJhiVgI4zvdb2YN1/CountryDropdown.js\";import{dropdownProp,getSharedStyleControls}from\"https://framerusercontent.com/modules/PwJ4k4IqmEWPlM2ZI4Eu/Ow3xyrL3YR7stkg8VL2K/DropdownUtilities.js\";// ============================================================================\n// MAIN COMPONENT\n// ============================================================================\n/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerDisableUnlink\n */export default function CountryInput(props){const{shadows,border,icon}=props;const id=useInstanceId();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[focused,setFocused]=useState(false);const[invalid,setInvalid]=useState(false);const[dropdownOpen,setDropdownOpen]=useState(false);const[searchQuery,setSearchQuery]=useState(\"\");const[selectedCountry,setSelectedCountry]=useState(props.defaultValue&&props.defaultValue!==\"none\"?props.defaultValue:\"\");// Update selectedCountry when defaultValue prop changes\nuseEffect(()=>{if(props.defaultValue&&props.defaultValue!==\"none\"){setSelectedCountry(props.defaultValue);}else{setSelectedCountry(\"\");}},[props.defaultValue]);const dropdownRef=useRef(null);const searchInputRef=useRef(null);const inputRef=useRef(null);const[pt,pr,pb,pl]=parsePadding(props.padding);// Filter countries based on search query\nconst filteredCountries=searchQuery?countries.filter((country,index)=>{const searchLower=searchQuery.toLowerCase();return country.toLowerCase().includes(searchLower)||props.flagEmojis&&(countryEmojis[index]+\" \"+country).toLowerCase().includes(searchLower);}):countries;// Close dropdown when clicking outside\nuseEffect(()=>{const handleClickOutside=event=>{const target=event.target;const isOutsideDropdown=dropdownRef.current&&!dropdownRef.current.contains(target);const isOutsideInput=inputRef.current&&!inputRef.current.contains(target);if(isOutsideDropdown&&isOutsideInput){setDropdownOpen(false);setSearchQuery(\"\");setFocused(false);}};if(dropdownOpen||focused){document.addEventListener(\"mousedown\",handleClickOutside);return()=>{document.removeEventListener(\"mousedown\",handleClickOutside);};}},[dropdownOpen,focused]);// Focus search input when dropdown opens\nuseEffect(()=>{if(dropdownOpen&&searchInputRef.current){setTimeout(()=>{searchInputRef.current?.focus();},100);}},[dropdownOpen]);function onFocus(){setFocused(true);setDropdownOpen(true);props.focusEvent?.();if(invalid){setInvalid(false);}}function onBlur(event){// Don't blur if clicking on dropdown\nconst relatedTarget=event.relatedTarget;if(dropdownRef.current?.contains(relatedTarget)||searchInputRef.current===relatedTarget){return;}if(!dropdownOpen){setFocused(false);setSearchQuery(\"\");props.blurEvent?.();}}function onInputClick(){setDropdownOpen(true);setFocused(true);props.focusEvent?.();if(invalid){setInvalid(false);}}function onCountrySelect(country){setSelectedCountry(country);setDropdownOpen(false);setSearchQuery(\"\");setFocused(false);inputRef.current?.blur();}const onInvalid=event=>{event.preventDefault();setInvalid(true);props.invalidEvent?.();};// Handle value restoration from FormPersistence\nfunction onSetValueEvent(event){const value=event.detail;if(!value||value===\"none\"){setSelectedCountry(\"\");return;}if(countries.includes(value)){setSelectedCountry(value);}}// Get display text for selected country\nconst getDisplayText=()=>{if(!selectedCountry||selectedCountry===\"none\"){return props.noneSelectedText||\"Select a country...\";}const countryIndex=countries.indexOf(selectedCountry);if(props.flagEmojis&&countryIndex>=0){return`${countryEmojis[countryIndex]} ${selectedCountry}`;}return selectedCountry;};return /*#__PURE__*/_jsxs(motion.div,{\"data-framerforms\":true,id:id,style:{position:\"relative\",borderRadius:props.radius},initial:false,transition:props.transition,children:[/*#__PURE__*/_jsx(HiddenInput,{name:props.name,required:props.required&&!selectedCountry,value:selectedCountry,setInvalid:setInvalid,onSetValueEvent:onSetValueEvent}),/*#__PURE__*/_jsx(CountryDropdown,{isOpen:dropdownOpen,dropdownRef:dropdownRef,searchInputRef:searchInputRef,searchQuery:searchQuery,onSearchChange:setSearchQuery,filteredCountries:filteredCountries,selectedCountry:selectedCountry,onCountrySelect:onCountrySelect,containerId:id,fill:props.fill,color:props.color,font:props.font,isCanvas:isCanvas,showDropdown:props.showDropdown,showFlags:props.flagEmojis,showDialCodes:false,pinnedCountries:props.pinnedCountries,dropdownStyle:props.dropdown,borderRadius:props.radius,padding:props.padding,placeholderColor:props.placeholderColor||props.color+\"80\",bgBlur:props.bgBlur}),/*#__PURE__*/_jsxs(motion.div,{ref:inputRef,onClick:onInputClick,onFocus:onFocus,onBlur:onBlur,tabIndex:0,animate:{...createBackground(props.fill,null,focused,invalid),boxShadow:invalid&&shadows?.invalid||focused&&shadows?.focus||shadows?.default},style:{position:\"relative\",borderRadius:props.radius,cursor:\"pointer\",backdropFilter:props.bgBlur?`blur(${props.bgBlur}px)`:undefined,...props.style},initial:false,transition:props.transition,children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",padding:icon?`${pt}px ${pr+icon.size+8}px ${pb}px ${pl}px`:props.padding,color:selectedCountry?props.color:props.placeholderColor||props.color+\"80\",textOverflow:\"ellipsis\",overflow:\"hidden\",whiteSpace:\"nowrap\",...props.font},children:getDisplayText()}),icon&&/*#__PURE__*/_jsx(Icon,{...icon,style:{position:\"absolute\",right:pr,top:\"50%\",transform:\"translateY(-50%)\",pointerEvents:\"none\"},defaultImage:`url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path d=\"M 3.5 6 L 8 10.5 L 12.5 6\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"rgb(153, 153, 153)\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg>')`}),/*#__PURE__*/_jsx(Border,{...props.border,borderColor:invalid&&border?.colorInvalid||focused&&border?.colorFocus||border?.color,transition:props.transition})]}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`#${id} [tabindex]:focus { outline: none; }`}})]});}CountryInput.displayName=\"Country Input\";addPropertyControls(CountryInput,{name:{type:ControlType.String,defaultValue:\"Country\"},showDropdown:{type:ControlType.Boolean,defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\",title:\"Dropdown\"},dropdown:dropdownProp(),required:{type:ControlType.Boolean,defaultValue:false},autoFocus:{type:ControlType.Boolean,defaultValue:false,title:\"Auto-Focus\"},pinnedCountries:{type:ControlType.Array,defaultValue:[],control:{type:ControlType.Enum,options:countries},title:\"Pinned\"},defaultValue:{type:ControlType.Enum,defaultValue:\"none\",options:[\"none\",...countries],optionTitles:[\"None\",...countries]},noneSelectedText:{title:\"Placeholder\",type:ControlType.String,defaultValue:\"Select a country...\",hidden:props=>props.defaultValue!==\"none\"},flagEmojis:{type:ControlType.Boolean,defaultValue:true},// Shared style controls - includes placeholderColor with default from SHARED_DEFAULTS\n// Component-specific controls (like noneSelectedText above) are defined separately\n// To override a default value, pass it as an option:\n// Example: color: \"#999999\" to override the default color\n// Example: placeholderColor: \"#666\" to override the default placeholder color\n// See DropdownUtilities.tsx SHARED_DEFAULTS for all available defaults\n...getSharedStyleControls({invalid:true})});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CountryInput\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","/*\n * FramerFormsShared\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/hMz2wp3CWZkNwPJFGPgQ/FramerFormsShared.js\"\n","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{useInstanceId,HiddenComponentLabel,useMultiStepFormStore,getFormInfo,isAncestor}from\"https://framer.com/m/FramerFormsShared-XPyb.js@hMz2wp3CWZkNwPJFGPgQ\";const OPTIMIZATION_CLASS_NAME=\"framerforms-multi-step-form\";const SUBMIT_BUTTON_HIDDEN_ATTRIBUTE=\"framerforms-submit-button-hidden\";/**\n * Walks the pageHistory backward and returns the redirect URL for the\n * first page whose data-framer-name matches a configured redirect rule.\n * Returns null when no rule matches (Framer's default behaviour applies).\n */function resolveThankYouPage(state,pages,redirects){if(!redirects?.length||!state?.pageHistory||!pages)return null;const history=state.pageHistory;for(let i=history.length-1;i>=0;i--){const pageEl=pages.children[history[i]];const pageName=pageEl?.getAttribute(\"data-framer-name\");const match=redirects.find(r=>r.pageName===pageName);if(match)return match.url;}return null;}// ─── Component ───────────────────────────────────────────────────────\n/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */function MultiStepFormComponent(props){const{scrollToTop}=props;const id=useInstanceId();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const[formInfo,setFormInfo]=useState(null);const stateRef=useRef(multiStepFormState[formInfo?.formId]);const ref=useRef(null);const pageVideosRef=useRef({});const isFirstRenderRef=useRef(true);const[initialized,setInitialized]=useState(false);const state=multiStepFormState[formInfo?.formId];const pageHistory=state?.pageHistory;useEffect(()=>{const formInfo=getFormInfo(ref.current);setFormInfo(formInfo);const{formId,form,pages}=formInfo;function previousPage(){const pageHistory=stateRef.current?.pageHistory;if(pageHistory?.length>1){setMultiStepFormState(prev=>({[formId]:{...prev[formId],pageHistory:prev[formId].pageHistory.slice(0,-1),isEndPage:false}}));}}function nextPage(){const state=stateRef.current;if(state){const page=state.pageHistory[state.pageHistory.length-1];const{logicConfigs}=state;let newPage=null;if(logicConfigs.length&&pages){const pageElement=pages.children?.[page];for(const logic of logicConfigs){if(isAncestor(pageElement,logic.ref.current)){const nextPageName=logic.getNextPage();if(nextPageName){const nextPageIndex=getChildIndexByDataFramerName(pages,nextPageName);if(nextPageIndex!==-1){newPage=nextPageIndex;}break;}}}}if(newPage===null&&page<state.totalPages-1){newPage=page+1;}const pageElement=pages.children[page];if(pageElement&&!isFormValid(pageElement)){newPage=null;}if(newPage){setMultiStepFormState(prev=>{const prevState=prev[formId];return{[formId]:{...prevState,pageHistory:[...prevState.pageHistory,newPage],isEndPage:isPageAnEndPage({pageIndex:newPage,state:prevState,pages,endPageMode:props.endPage,customEndPages:props.endPageCustom})}};});}}}function setPageHistoryLength(newLength){setMultiStepFormState(prev=>{const pageHistory=prev[formId]?.pageHistory??[];return{[formId]:{...prev[formId],pageHistory:newLength>=pageHistory.length?pageHistory:pageHistory.slice(0,newLength),isEndPage:isPageAnEndPage({pageIndex:pageHistory[newLength-1],state:prev[formId],pages,endPageMode:props.endPage,customEndPages:props.endPageCustom})}};});}if(formId&&pages){setMultiStepFormState({[formId]:{totalPages:pages.children.length,pageHistory:[0],logicConfigs:[],isEndPage:pages.children.length==1,previousPage,nextPage,setPageHistoryLength}});}if(pages){const pageElements=pages.children;for(let i=0;i<pageElements.length;i++){const videos=pageElements[i].querySelectorAll(\"video\");if(!pageVideosRef.current[i]){pageVideosRef.current[i]=[];}for(const video of videos){pageVideosRef.current[i].push(video);if(video.hasAttribute(\"autoplay\")&&i!==0){const pauseVideo=()=>{if(!video.paused){setTimeout(()=>{if(!video.paused){video.pause();}},100);}};if(!video.paused){pauseVideo();}else{video.addEventListener(\"play\",pauseVideo,{once:true});}}}}}let unmountFunction=null;if(form){// ─── Enter-key handler ───────────────────────────────\nfunction onEnterPress(event){if(event.key!==\"Enter\"||event.target.tagName===\"TEXTAREA\"){return;}const currentInput=event.target;let previousElement=currentInput;let foundPage=false;while(previousElement&&!foundPage){const newElement=previousElement.parentElement;if(newElement==pages){foundPage=true;break;}previousElement=newElement;}const currentPage=previousElement;let stopEvent=true;if(currentPage){const inputs=getInputsOnPage(currentPage);const currentIndex=inputs.indexOf(currentInput);if(currentIndex<inputs.length-1){inputs[currentIndex+1].focus();}else{const pageElements=Array.from(pages.children);const pageIndex=pageElements.indexOf(currentPage);if(pageIndex<pageElements.length-1){nextPage();}else{stopEvent=false;}}}if(stopEvent){event.preventDefault();event.stopPropagation();}}form.addEventListener(\"keydown\",onEnterPress,true);// ─── Conditional redirect submit handler ─────────────\n//\n// ALWAYS re-submits natively via requestSubmit() so that\n// Framer's internal pipeline handles Send To actions\n// (Sheet, Email, etc.). We only intercept to override\n// Framer's default redirect with a conditional one.\n//\nasync function onFormSubmit(event){// Only intercept when the user is on an end page\nif(!stateRef.current?.isEndPage)return;event.preventDefault();event.stopPropagation();try{// 1. Resolve conditional thank-you redirect\nconst thankYouUrl=resolveThankYouPage(stateRef.current,pages,props.thankYouRedirects);// 2. If a conditional redirect matched, temporarily\n//    intercept Framer's internal fetch so we can redirect\n//    after Send To actions complete but before Framer's\n//    default redirect fires.\nif(thankYouUrl){const origFetch=window.fetch.bind(window);window.fetch=async function(input,init){// Let Framer's POST go through normally\nconst response=await origFetch(input,init);// Restore immediately so no other calls are affected\nwindow.fetch=origFetch;// Redirect to the conditional thank-you page\nwindow.location.href=thankYouUrl;return response;};// Safety: restore original fetch if nothing fires\n// within 15 seconds (e.g. network timeout)\nsetTimeout(()=>{if(window.fetch!==origFetch){window.fetch=origFetch;}},15e3);}// 3. Re-submit natively — Framer handles Send To + redirect\nform.removeEventListener(\"submit\",onFormSubmit,true);form.requestSubmit();form.addEventListener(\"submit\",onFormSubmit,true);}catch(err){console.error(\"Form submission failed:\",err);}}form.addEventListener(\"submit\",onFormSubmit,true);unmountFunction=()=>{form.removeEventListener(\"keydown\",onEnterPress,true);form.removeEventListener(\"submit\",onFormSubmit,true);};}if(unmountFunction){return unmountFunction;}},[]);useEffect(()=>{stateRef.current=state;},[state]);useEffect(()=>{if(state&&(!isCanvas||ref.current?.closest('[data-framer-component-container=\"true\"]'))){const submitButton=formInfo.form?.querySelector('button[type=\"submit\"]')?.parentElement;if(submitButton){submitButton.setAttribute(SUBMIT_BUTTON_HIDDEN_ATTRIBUTE,state.isEndPage?\"false\":\"true\");}}},[state?.isEndPage]);useEffect(()=>{const pages=formInfo?.pages;if(pages&&pageHistory){// Enable/disable form inputs on pages that have not been visited\nif(state?.logicConfigs?.length||props.endPage==\"customPages\"){for(let i=0;i<pages.children.length;i++){if(pageHistory.includes(i)){const inputs=pages.children[i]?.querySelectorAll(`input[name][disabled=\"FramerForms\"], select[name][disabled=\"FramerForms\"], textarea[name][disabled=\"FramerForms\"]`);for(const input of inputs){input.removeAttribute(\"disabled\");}}else{const inputs=pages.children[i]?.querySelectorAll(\"input[name]:not([disabled]), select[name]:not([disabled]), textarea[name]:not([disabled])\");for(const input of inputs){input.setAttribute(\"disabled\",\"FramerForms\");}}}}// Play/pause videos on form pages\nconst currentPage=pageHistory[pageHistory.length-1];if(pageVideosRef.current){for(const pageIndex of Object.keys(pageVideosRef.current)){const pageVideos=pageVideosRef.current[pageIndex];for(const video of pageVideos){if(pageIndex==currentPage){if(video.hasAttribute(\"autoplay\")){video.play();}}else if(!video.paused){video.pause();}}}}// Scroll to top of form\nif(scrollToTop&&formInfo.form&&!isFirstRenderRef.current){const rect=formInfo.form.getBoundingClientRect();const top=rect.top-scrollToTop.offset;const topIsInView=top>=0&&top<=window.innerHeight;if(!topIsInView){const windowScrollTop=window.pageYOffset||document.documentElement.scrollTop;window.scrollTo({top:windowScrollTop+top,behavior:scrollToTop.scrollStyle});}}if(!isFirstRenderRef.current){autoFocusInputOnPage(pages.children[currentPage]);}isFirstRenderRef.current=false;}fireAnalyticsEvent(props.analytics,pageHistory,formInfo?.pages);},[pageHistory]);useEffect(()=>{setInitialized(true);},[]);return /*#__PURE__*/_jsxs(HiddenComponentLabel,{text:\"Multi-Step Form\",children:[/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 452 60\",width:\"121\",height:\"16\",style:{marginBottom:5},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M 58.178 27.448 L 58.178 0.912 L 33.172 0.912 C 14.852 0.912 0 15.76 0 34.08 L 0 59.086 L 58.178 59.086 L 58.178 27.46 C 58.172 44.93 44.008 59.09 26.538 59.09 L 26.538 27.45 L 58.178 27.45 Z\",fill:\"#473DFE\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M 452.004 36.088 C 452.004 43.208 446.328 47.872 437.336 47.872 C 428.342 47.872 422.57 43.112 421.946 35.464 L 431.132 35.464 C 431.228 38.734 433.392 40.802 437.142 40.802 C 440.268 40.802 442.336 39.6 442.336 37.436 C 442.336 35.944 440.846 34.838 438.826 34.454 L 432.526 33.252 C 426.996 32.192 423.34 28.972 423.34 23.392 C 423.34 16.948 429.016 12.426 436.758 12.426 C 444.982 12.426 450.898 17.14 451.426 24.594 L 442.24 24.594 C 442 21.468 439.884 19.448 436.854 19.448 C 434.162 19.448 432.526 20.892 432.526 22.768 C 432.526 24.306 434.064 25.22 435.892 25.556 L 442.578 26.856 C 448.734 28.056 452.004 31.086 452.004 36.088 Z M 395.384 47.39 L 387.978 27.48 L 387.978 47.39 L 379.754 47.39 L 379.754 12.86 L 390.478 12.86 L 399.184 36.28 L 407.84 12.86 L 418.566 12.86 L 418.566 47.39 L 410.342 47.39 L 410.342 27.24 L 402.886 47.39 Z M 355.758 47.39 L 346.668 47.39 L 346.668 12.86 L 360.808 12.86 C 370.138 12.86 375.476 17.044 375.476 24.402 C 375.476 28.826 372.83 32.482 368.166 34.454 L 376.63 47.39 L 365.81 47.39 L 358.74 35.896 L 355.758 35.896 Z M 355.758 20.362 L 355.758 28.394 L 360.422 28.394 C 364.462 28.394 366.338 27.144 366.338 24.402 C 366.338 21.662 364.462 20.362 360.422 20.362 Z M 325.08 48.112 C 315.124 48.112 307.286 40.562 307.286 30.076 C 307.286 19.592 315.124 12.138 325.08 12.138 C 335.084 12.138 342.922 19.592 342.922 30.078 C 342.922 40.562 335.084 48.112 325.08 48.112 Z M 325.08 39.984 C 330.514 39.984 333.544 35.512 333.544 30.076 C 333.544 24.642 330.514 20.266 325.08 20.266 C 319.646 20.266 316.616 24.642 316.616 30.078 C 316.616 35.512 319.646 39.984 325.08 39.984 Z M 291.034 47.39 L 281.946 47.39 L 281.946 12.86 L 305.462 12.86 L 305.462 20.748 L 291.034 20.748 L 291.034 27.144 L 303.106 27.144 L 303.106 35.032 L 291.034 35.032 L 291.034 47.392 Z M 257.946 47.39 L 248.856 47.39 L 248.856 12.86 L 262.994 12.86 C 272.326 12.86 277.664 17.044 277.664 24.402 C 277.664 28.826 275.018 32.482 270.354 34.454 L 278.818 47.39 L 267.996 47.39 L 260.926 35.896 L 257.946 35.896 Z M 257.946 20.362 L 257.946 28.394 L 262.61 28.394 C 266.65 28.394 268.526 27.144 268.526 24.402 C 268.526 21.662 266.65 20.362 262.61 20.362 Z M 244.616 39.504 L 244.616 47.392 L 220.184 47.392 L 220.184 12.86 L 244.278 12.86 L 244.278 20.748 L 229.274 20.748 L 229.274 25.7 L 242.884 25.7 L 242.884 33.588 L 229.274 33.588 L 229.274 39.504 Z M 191.216 47.39 L 183.81 27.48 L 183.81 47.39 L 175.586 47.39 L 175.586 12.86 L 186.31 12.86 L 195.016 36.28 L 203.672 12.86 L 214.398 12.86 L 214.398 47.39 L 206.174 47.39 L 206.174 27.24 L 198.718 47.39 L 191.218 47.39 Z M 163.08 47.39 L 160.966 40.994 L 148.846 40.994 L 146.682 47.39 L 137.496 47.39 L 150.288 12.86 L 160.244 12.86 L 172.892 47.39 L 163.082 47.39 Z M 155.002 22.864 L 151.298 33.828 L 158.61 33.828 L 155 22.864 Z M 116.574 47.39 L 107.484 47.39 L 107.484 12.86 L 121.624 12.86 C 130.954 12.86 136.292 17.044 136.292 24.402 C 136.292 28.826 133.648 32.482 128.982 34.454 L 137.446 47.39 L 126.626 47.39 L 119.556 35.896 L 116.574 35.896 Z M 116.574 20.362 L 116.574 28.394 L 121.24 28.394 C 125.28 28.394 127.154 27.144 127.154 24.402 C 127.154 21.662 125.278 20.362 121.24 20.362 Z M 89.214 47.39 L 80.126 47.39 L 80.126 12.86 L 103.64 12.86 L 103.64 20.748 L 89.212 20.748 L 89.212 27.144 L 101.284 27.144 L 101.284 35.032 L 89.212 35.032 L 89.212 47.392 Z\",fill:\"#999\"})]}),/*#__PURE__*/_jsxs(\"div\",{ref:ref,id:id,\"data-framerforms-multi-step-form\":true,className:!initialized&&!isCanvas?OPTIMIZATION_CLASS_NAME:\"\",style:{display:\"none\"},children:[initialized&&!isCanvas&&/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`form[framerforms-id=\"${formInfo?.formId}\"] > [data-framer-name=\"Pages\" i] > *:not(:nth-child(${pageHistory?pageHistory[pageHistory.length-1]+1:1})) { display: none; }`}}),isCanvas&&/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`[data-framer-component-container=\"true\"] form[framerforms-id=\"${formInfo?.formId}\"] > [data-framer-name=\"Pages\" i] > *:not(:first-child) { display: none; }`}})]})]});}const MultiStepForm=withCSS(MultiStepFormComponent,[`form:has(.${OPTIMIZATION_CLASS_NAME}) > [data-framer-name=\"Pages\" i] > *:not(:first-child) { display: none; }`,`form:has(.${OPTIMIZATION_CLASS_NAME}) div:has(> button[type=\"submit\"]) { display: none; }`,`[${SUBMIT_BUTTON_HIDDEN_ATTRIBUTE}=\"true\"] { display: none; }`],OPTIMIZATION_CLASS_NAME);export default MultiStepForm;MultiStepForm.displayName=\"Multi-Step Form\";addPropertyControls(MultiStepForm,{// ─── Conditional thank-you redirects ─────────────────────────────\nthankYouRedirects:{type:ControlType.Array,title:\"Thank You Redirects\",description:\"Redirect to a different thank-you page based on the form path the user took. Matched against data-framer-name of visited pages (last match in history wins).\",control:{type:ControlType.Object,controls:{pageName:{type:ControlType.String,title:\"Page Name\",placeholder:\"data-framer-name of trigger page\",preventLocalization:true},url:{type:ControlType.String,title:\"Redirect URL\",placeholder:\"https://example.com/thank-you-a\",preventLocalization:true}}}},// ─── Original controls ───────────────────────────────────────────\nendPage:{type:ControlType.Enum,defaultValue:\"lastPage\",options:[\"lastPage\",\"customPages\"],optionTitles:[\"Last Page\",\"Custom Pages\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},endPageCustom:{type:ControlType.Array,control:{type:ControlType.String,defaultValue:\"\",placeholder:\"Page Layer Name\",preventLocalization:true},title:\"Pages\",description:\"List of page names where the submit button is shown\",hidden:props=>props.endPage!==\"customPages\"},analytics:{type:ControlType.Object,optional:true,icon:\"interaction\",controls:{platform:{type:ControlType.Enum,options:[\"googleAnalytics\"],optionTitles:[\"Google Analytics 4\"]},googleAnalyticsEventName:{type:ControlType.String,placeholder:\"Event Name\",title:\"Event Name\",preventLocalization:true,hidden:props=>props.platform!==\"googleAnalytics\"},googleAnalyticsEventCategory:{type:ControlType.String,placeholder:\"Optional\",title:\"Category\",description:\"Make sure the Google Analytics 4 script is installed\",preventLocalization:true,hidden:props=>props.platform!==\"googleAnalytics\"}}},scrollToTop:{type:ControlType.Object,optional:true,title:\"Scroll to Top\",controls:{scrollStyle:{type:ControlType.Enum,defaultValue:\"smooth\",options:[\"smooth\",\"instant\"],optionTitles:[\"Smooth\",\"Instant\"],displaySegmentedControl:true,title:\"Scroll\"},offset:{type:ControlType.Number,defaultValue:32,step:1,description:\"When previous or next button is pressed, scroll to the top of the form with an offset\"}}}});//////////////////////////////////////////////////////////////\n/**\n * Validates all inputs within an element. Uses reportValidity() which shows validation UI.\n * Only validates visible inputs (inputs on hidden pages are skipped).\n */export function isFormValid(element){const inputs=element.querySelectorAll(\"input, select, textarea\");let invalidInputs=[];for(const input of inputs){if(isVisible(input)&&!input.reportValidity()){invalidInputs.push(input);}}return invalidInputs.length===0;}/**\n * Checks if all required fields on a page have values.\n * Works on hidden pages (doesn't rely on visibility).\n * Does NOT trigger validation UI.\n */export function hasRequiredFieldsFilled(element){const inputs=element.querySelectorAll(\"input[required], select[required], textarea[required]\");for(const input of inputs){if(input.disabled)continue;if(input.tabIndex===-1&&input.style.opacity===\"0\")continue;const value=input.value?.trim()??\"\";if(value===\"\"){return false;}}return true;}function isVisible(element){return element.offsetParent!==null||element instanceof HTMLInputElement&&element.type===\"hidden\";}function getChildIndexByDataFramerName(parentElement,name){const children=Array.from(parentElement.children);for(let i=0;i<children.length;i++){if(children[i].getAttribute(\"data-framer-name\")===name){return i;}}return-1;}function isPageAnEndPage({pageIndex,state,pages,endPageMode,customEndPages}){let isEndPage=false;if(endPageMode===\"customPages\"&&pages){const step=pages.children[pageIndex];if(customEndPages.includes(step.getAttribute(\"data-framer-name\"))){isEndPage=true;}}else{isEndPage=pageIndex==state.totalPages-1;}return isEndPage;}function fireAnalyticsEvent(analytics,pageHistory,pages){if(!analytics||!pageHistory||!pages){return;}switch(analytics.platform){case\"googleAnalytics\":if(typeof window!==\"undefined\"){if(typeof window.gtag!==\"undefined\"){const pageIndex=pageHistory[pageHistory.length-1];const page=pages?.children[pageIndex];const params={page_name:page?.getAttribute(\"data-framer-name\")||page?.getAttribute(\"name\")||`Page ${pageIndex+1}`};if(analytics.googleAnalyticsEventCategory){params.event_category=analytics.googleAnalyticsEventCategory;}window.gtag(\"event\",analytics.googleAnalyticsEventName,params);}else{console.error(\"Google Analytics gtag.js script is not installed.\");}}break;}}function getInputsOnPage(page){return Array.from(page.querySelectorAll('input:not([type=\"hidden\"]):not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]):not([data-framerforms-set-value-event]), textarea:not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]), select:not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]), button:not([disabled]):not([tabindex=\"-1\"])')).filter(el=>window.getComputedStyle(el).display!==\"none\");}function autoFocusInputOnPage(pageElement){if(!pageElement){return;}const autofocusElements=pageElement.querySelectorAll(\"input[autofocus], select[autofocus], textarea[autofocus]\");const elements=Array.from(autofocusElements);const visibleElements=elements.filter(el=>{const style=window.getComputedStyle(el);return style.display!==\"none\"&&style.visibility!==\"hidden\"&&!el.hidden&&!el.disabled&&el.offsetParent!==null;});if(visibleElements.length>0){visibleElements[0].focus();}}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MultiStepForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"isFormValid\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hasRequiredFieldsFilled\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MultiStepForm.map"],"mappings":"A,2gBAIG,SAAwBgD,EAAW,EAAM,CAAC,GAAK,CAAC,aAAW,oBAAkBC,EAAW,CAACC,EAAmBC,GAAuBxB,EAAsB,EAAO,CAACyB,EAASC,GAAarD,EAAS,IAAI,EAAQsD,EAAIrD,EAAO,IAAI,EACgqB,OAD9pBS,MAAc,CAAC2C,EAAYrB,EAAYsB,EAAI,OAAO,CAAC,CAAE,EAAE,CAACA,CAAG,CAAC,EAAE5C,MAAc,CAAC,IAAM6C,EAAKH,GAAU,KAAWI,EAAOJ,GAAU,OAAO,GAAGI,GAAQN,EAAmBM,GAAQ,CAAC,IAAMC,MAAgB,CAAC,IAAI,IAAMC,KAAaC,EAAW,CAAC,IAAIC,EAAM,GAAG,GAAGF,EAAU,MA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