{"version":3,"file":"PhoneNumberInput.uldTfoPS.mjs","names":["useState","useRef","useRef","useState","useRef"],"sources":["https:/framerusercontent.com/modules/28d2a4VreVXZoJwmw7cr/Vg86jj0tNuGZH1MQXNBN/LogicBlock.js","https:/framerusercontent.com/modules/h5OT7hT5cvyqIK5epwmZ/WCmc8raNCsOzVBFt3xZ6/PrefillFormInputs.js","https:/framerusercontent.com/modules/IQzDFpniaD3AmKydBXP4/XKjnYoANszQ7Oc46rNeh/PhoneNumberInput.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/y3zt4fv5F2ZtnBW8nZvn/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===null||formInfo===void 0?void 0:formInfo.form;const formId=formInfo===null||formInfo===void 0?void 0:formInfo.formId;if(formId&&multiStepFormState[formId]){const getNextPage=()=>{for(const condition of conditions){var _form_querySelector;const value=(condition.type==\"radio\"?getRadioValue(form,condition.inputName):(_form_querySelector=form.querySelector(`[name=\"${condition.inputName}\"]`))===null||_form_querySelector===void 0?void 0:_form_querySelector.value)||\"\";const result=checkCondition(condition,value);if(result){return condition.pageName;}}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\":return value==\"on\"==condition.checkboxValue;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\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LogicBlock.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{createId,HiddenComponentLabel}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/y3zt4fv5F2ZtnBW8nZvn/FramerFormsShared.js\";import{useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight\n * @framerDisableUnlink\n */export default function PrefillFormInputs(props){const{inputs}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const id=props.id||createId();const ref=useRef(null);useEffect(()=>{const timer=setTimeout(()=>{var _ref_current;const urlSearchParams=new URLSearchParams(window.location.search);const urlParams={};// urlParams[\"slider\"] = 23\n// urlParams[\"country\"] = \"Brazil\"\n// urlParams[\"text\"] = \"Super duper text input\"\n// urlParams[\"imageSelect\"] = \"purple\"\n// urlParams[\"rating\"] = 3\nfor(const[key,value]of urlSearchParams.entries()){urlParams[key]=value;}const form=(_ref_current=ref.current)===null||_ref_current===void 0?void 0:_ref_current.closest(\"form\");if(!form){return;}for(let i=0;i<inputs.length;i++){const input=inputs[i];if(!input.inputName||!input.urlParameter){continue;}const value=urlParams[input.urlParameter];if(value){// const form\nconst inputElement=form.querySelector(`\n                    input[name=\"${input.inputName}\"]:not([data-framerforms-no-prefill]),\n                    select[name=\"${input.inputName}\"]:not([data-framerforms-no-prefill]),\n                    textarea[name=\"${input.inputName}\"]:not([data-framerforms-no-prefill])`);if(inputElement){if(inputElement.tagName==\"INPUT\"&&inputElement.getAttribute(\"type\")==\"hidden\"){if(inputElement.hasAttribute(\"data-framerforms-set-value-event\")){inputElement.dispatchEvent(new CustomEvent(\"framerFormsSetValue\",{bubbles:true,detail:value}));}}else{const elementType=inputElement.tagName==\"INPUT\"?window.HTMLInputElement:inputElement.tagName==\"TEXTAREA\"?window.HTMLTextAreaElement:inputElement.tagName==\"SELECT\"?window.HTMLSelectElement:null;if(elementType){const nativeInputValueSetter=Object.getOwnPropertyDescriptor(elementType.prototype,\"value\").set;nativeInputValueSetter.call(inputElement,value);inputElement.dispatchEvent(new Event(\"input\",{bubbles:true}));}else{inputElement.value=value;}}}}}},0);return()=>clearTimeout(timer);},[]);return /*#__PURE__*/_jsx(HiddenComponentLabel,{ref:ref,id:id,text:\"Pre-fill Form Inputs\",subtext:inputs.map(input=>input.inputName).join(\", \")});}PrefillFormInputs.displayName=\"Pre-fill Form Inputs\";addPropertyControls(PrefillFormInputs,{inputs:{type:ControlType.Array,description:\"Fill input values from URL parameters\",control:{type:ControlType.Object,controls:{inputName:{type:ControlType.String,defaultValue:\"\",placeholder:\"Input Name\",preventLocalization:true},urlParameter:{type:ControlType.String,title:\"URL Param\",placeholder:\"URL Parameter\",preventLocalization:true}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PrefillFormInputs\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"* @framerDisableUnlink\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrefillFormInputs.map","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{Border,createBackground,parsePadding,fillProp,borderProp,shadowsProp,createId,HiddenInput}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/y3zt4fv5F2ZtnBW8nZvn/FramerFormsShared.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerDisableUnlink\n */export default function PhoneNumberInput(props){const{countryCodeOptions,border,shadows}=props;const id=props.id||createId();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const hasCC=!!countryCodeOptions;const ccConnected=hasCC&&(countryCodeOptions===null||countryCodeOptions===void 0?void 0:countryCodeOptions.style)!==\"split\";const phoneFormat=props.format==\"custom\"?props.customFormat==\"\"?\"XXXXXXXXXX\":props.customFormat:props.format;const countryCodeFormat=hasCC?countryCodeOptions.format==\"custom\"?countryCodeOptions.customFormat==\"\"?\"X\":countryCodeOptions.customFormat:countryCodeOptions.format:\"\";const maxDigits=countXCharacters(phoneFormat);var _String;const defaultCountryCode=(_String=String(countryCodeOptions===null||countryCodeOptions===void 0?void 0:countryCodeOptions.defaultCountryCode))!==null&&_String!==void 0?_String:\"1\";const[countryCode,setCountryCode]=useState(defaultCountryCode);const[phoneNumber,setPhoneNumber]=useState(\"\");const[countryCodeFocused,setCountryCodeFocused]=useState(false);const[phoneNumberFocused,setPhoneNumberFocused]=useState(false);const[invalid,setInvalid]=useState(false);const countryCodeInputRef=useRef(null);const phoneNumberInputRef=useRef(null);const[pt,pr,pb,pl]=parsePadding(props.padding);const[tl,tr,br,bl]=parsePadding(props.radius);const[bwt,bwr,bwb,bwl]=parsePadding(border===null||border===void 0?void 0:border.width);useEffect(()=>{if(invalid){var _props_invalidEvent;(_props_invalidEvent=props.invalidEvent)===null||_props_invalidEvent===void 0?void 0:_props_invalidEvent.call(props);}},[invalid]);const isComplete=phoneNumber.length===maxDigits;function onPhoneNumberChange(event){const unformatted=unformatValue(event.target.value).substring(0,maxDigits);const formattedValue=formatPhoneNumber(phoneNumber,phoneFormat);if(!isLastCharacterANumber(formattedValue)&&event.target.value.length<formattedValue.length){setPhoneNumber(unformatted.slice(0,-1));}else{setPhoneNumber(unformatted);}}function onCountryCodeChange(event){const unformatted=unformatValue(event.target.value).substring(0,3);const formattedValue=formatCountryCode(countryCode,countryCodeFormat);if(!isLastCharacterANumber(formattedValue)&&event.target.value.length<formattedValue.length){setCountryCode(unformatted.slice(0,-1));}else{setCountryCode(unformatted);}}function onCountryCodeFocus(){var _props_focusEvent;setCountryCodeFocused(true);if(invalid){setInvalid(false);}const lastChar=countryCodeFormat.slice(-1);if(lastChar!=\"X\"&&lastChar!=\"x\"){const countryCodeInput=countryCodeInputRef.current;if(countryCodeInput){const formattedValue=formatCountryCode(countryCode,countryCodeFormat);const cursorPosition=Math.max(countryCodeFormat.lastIndexOf(\"X\"),countryCodeFormat.lastIndexOf(\"x\"))+countryCode.length;setTimeout(()=>countryCodeInput.setSelectionRange(cursorPosition,cursorPosition),5);}}(_props_focusEvent=props.focusEvent)===null||_props_focusEvent===void 0?void 0:_props_focusEvent.call(props);}function onPhoneNumberKeyDown(event){if(hasCC&&phoneNumber===\"\"){if(event.key===\"Backspace\"){var _countryCodeInputRef_current;(_countryCodeInputRef_current=countryCodeInputRef.current)===null||_countryCodeInputRef_current===void 0?void 0:_countryCodeInputRef_current.focus();}if(event.key===\"ArrowLeft\"){var _countryCodeInputRef_current1;(_countryCodeInputRef_current1=countryCodeInputRef.current)===null||_countryCodeInputRef_current1===void 0?void 0:_countryCodeInputRef_current1.focus();event.preventDefault();}}}function onCountryCodeKeyDown(event){if(hasCC){if(event.key===\"ArrowRight\"&&event.target.selectionStart===event.target.value.length){var _phoneNumberInputRef_current;(_phoneNumberInputRef_current=phoneNumberInputRef.current)===null||_phoneNumberInputRef_current===void 0?void 0:_phoneNumberInputRef_current.focus();event.preventDefault();}}}function onCountryCodeBlur(event){var _props_blurEvent;if(countryCode.length===0){setCountryCode(defaultCountryCode);}setCountryCodeFocused(false);(_props_blurEvent=props.blurEvent)===null||_props_blurEvent===void 0?void 0:_props_blurEvent.call(props);}function onPhoneNumberFocus(){var _props_focusEvent;setPhoneNumberFocused(true);(_props_focusEvent=props.focusEvent)===null||_props_focusEvent===void 0?void 0:_props_focusEvent.call(props);if(invalid){setInvalid(false);}}function onPhoneNumberBlur(){var _props_blurEvent;setPhoneNumberFocused(false);(_props_blurEvent=props.blurEvent)===null||_props_blurEvent===void 0?void 0:_props_blurEvent.call(props);}return /*#__PURE__*/_jsxs(\"div\",{\"data-framerforms\":true,id:id,style:{display:\"flex\",flexDirection:\"row\",gap:(countryCodeOptions===null||countryCodeOptions===void 0?void 0:countryCodeOptions.style)==\"split\"?countryCodeOptions.gap:0,...props.style},children:[/*#__PURE__*/_jsx(HiddenInput,{name:props.name,required:props.required||phoneNumber.length>0&&!isComplete,value:isComplete?hasCC?`+${countryCode} ${phoneNumber}`:phoneNumber:\"\",setInvalid:setInvalid}),hasCC&&/*#__PURE__*/_jsxs(motion.div,{animate:{...createBackground(props.fill,null,countryCodeFocused,invalid),boxShadow:invalid&&(shadows===null||shadows===void 0?void 0:shadows.invalid)||countryCodeFocused&&(shadows===null||shadows===void 0?void 0:shadows.focus)||(shadows===null||shadows===void 0?void 0:shadows.default)},style:{position:\"relative\",borderRadius:ccConnected?px(tl,0,0,bl):props.radius},initial:false,transition:props.transition,children:[/*#__PURE__*/_jsx(\"input\",{ref:countryCodeInputRef,value:formatCountryCode(isCanvas?countryCodeOptions.defaultCountryCode:countryCode,countryCodeFormat),onChange:onCountryCodeChange,onFocus:onCountryCodeFocus,onBlur:onCountryCodeBlur,onKeyDown:onCountryCodeKeyDown,placeholder:props.placeholder||replaceXWithNumbers(phoneFormat),style:{background:\"none\",border:\"none\",color:props.color,width:countryCodeOptions.width+pl,height:\"100%\",margin:0,display:\"block\",padding:px(pt,0,pb,pl),...props.font},\"data-framerforms-no-prefill\":true}),border&&/*#__PURE__*/_jsx(Border,{...border,borderColor:invalid&&(border===null||border===void 0?void 0:border.colorInvalid)||border.color,width:ccConnected?px(bwt,0,bwb,bwl):border.width,opacity:countryCodeFocused&&(border===null||border===void 0?void 0:border.colorFocus)?0:1,transition:props.transition}),(border===null||border===void 0?void 0:border.colorFocus)&&/*#__PURE__*/_jsx(Border,{...border,borderColor:border.colorFocus,width:border.width,opacity:countryCodeFocused?1:0,transition:props.transition})]}),/*#__PURE__*/_jsxs(motion.div,{animate:{...createBackground(props.fill,null,phoneNumberFocused,invalid),boxShadow:invalid&&(shadows===null||shadows===void 0?void 0:shadows.invalid)||phoneNumberFocused&&(shadows===null||shadows===void 0?void 0:shadows.focus)||(shadows===null||shadows===void 0?void 0:shadows.default)},style:{position:\"relative\",borderRadius:ccConnected?px(0,tr,br,0):props.radius,flex:1},initial:false,transition:props.transition,children:[/*#__PURE__*/_jsx(\"input\",{ref:phoneNumberInputRef,autoFocus:props.autoFocus,value:formatPhoneNumber(phoneNumber,phoneFormat),onChange:onPhoneNumberChange,onFocus:onPhoneNumberFocus,onBlur:onPhoneNumberBlur,onKeyDown:onPhoneNumberKeyDown,placeholder:props.placeholder||replaceXWithNumbers(phoneFormat),style:{background:\"none\",border:\"none\",color:props.color,margin:0,display:\"block\",padding:props.padding,width:\"100%\",height:\"100%\",textOverflow:\"ellipsis\",...props.font},\"data-framerforms-no-prefill\":true}),border&&/*#__PURE__*/_jsx(Border,{...border,borderColor:invalid&&(border===null||border===void 0?void 0:border.colorInvalid)||border.color,width:ccConnected?px(bwt,bwr,bwb,0):border.width,opacity:phoneNumberFocused&&(border===null||border===void 0?void 0:border.colorFocus)?0:1,transition:props.transition}),(border===null||border===void 0?void 0:border.colorFocus)&&/*#__PURE__*/_jsx(Border,{...border,borderColor:border.colorFocus,width:border.width,opacity:phoneNumberFocused?1:0,transition:props.transition})]}),(countryCodeOptions===null||countryCodeOptions===void 0?void 0:countryCodeOptions.style)==\"divider\"&&/*#__PURE__*/_jsx(motion.div,{animate:{opacity:(border===null||border===void 0?void 0:border.colorFocus)&&(countryCodeFocused||phoneNumberFocused)?0:1},style:{position:\"absolute\",width:countryCodeOptions.divider.width,left:countryCodeOptions.width+pl-Math.round(countryCodeOptions.divider.width/2),top:countryCodeOptions.divider.inset,bottom:countryCodeOptions.divider.inset,backgroundColor:countryCodeOptions.divider.color},initial:false,transition:props.transition}),/*#__PURE__*/_jsx(\"style\",{children:`\n            #${id} input::placeholder {\n                color: ${props.placeholderColor};\n            }\n            #${id} input:focus {\n                outline: none;\n            }`})]});}PhoneNumberInput.displayName=\"Phone Number Input\";addPropertyControls(PhoneNumberInput,{name:{type:ControlType.String,defaultValue:\"Phone Number\",preventLocalization:true},required:{type:ControlType.Boolean,defaultValue:false},autoFocus:{type:ControlType.Boolean,defaultValue:false,title:\"Auto-Focus\"},countryCodeOptions:{type:ControlType.Object,optional:true,defaultValue:{defaultCountryCode:1,format:\"+1\",width:40},title:\"Country Code\",controls:{defaultCountryCode:{title:\"Default\",type:ControlType.Number,min:0,max:999,step:1,defaultValue:1},format:{title:\"Format\",type:ControlType.Enum,defaultValue:\"+1\",options:[\"+X\",\"(X)\",\"(+X)\",\"X\",\"custom\"],optionTitles:[\"+1\",\"(1)\",\"(+1)\",\"1\",\"Custom Format\"]},customFormat:{title:\" \",type:ControlType.String,defaultValue:\"+X\",description:\"*X* -> country code\",preventLocalization:true,hidden:props=>props.format!==\"custom\"},width:{type:ControlType.Number,defaultValue:45,min:1,step:1},style:{type:ControlType.Enum,defaultValue:\"divider\",options:[\"connected\",\"divider\",\"split\"],optionTitles:[\"Connected\",\"Divider\",\"Split\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},divider:{type:ControlType.Object,hidden:props=>props.style!==\"divider\",controls:{color:{type:ControlType.Color,defaultValue:\"rgba(136, 136, 136, 0.15)\"},width:{type:ControlType.Number,defaultValue:1,min:1,step:1,displayStepper:true},inset:{type:ControlType.Number,defaultValue:8,min:0,step:1,displayStepper:true}}},gap:{type:ControlType.Number,defaultValue:8,min:0,step:1,hidden:props=>props.style!==\"split\"}}},format:{type:ControlType.Enum,defaultValue:\"(XXX) XXX - XXXX\",options:[\"(XXX) XXX - XXXX\",\"(XXX) XXX-XXXX\",\"XXX-XXX-XXXX\",\"XXX.XXX.XXXX\",\"XXX XXX XXXX\",\"XXXXXXXXXXX\",\"XX XXXX XXXX\",\"custom\"],optionTitles:[\"(123) 456 - 7890\",\"(123) 456-7890\",\"123-456-7890\",\"123.456.7890\",\"123 456 7890\",\"1234567890\",\"12 3456 7890\",\"Custom Format\"]},customFormat:{title:\" \",type:ControlType.String,defaultValue:\"(XXX) XXX - XXXX\",description:\"*X* -> phone number\",preventLocalization:true,hidden:props=>props.format!==\"custom\"},placeholder:{type:ControlType.String,defaultValue:\"\",placeholder:\"Auto\"},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.2}},color:{type:ControlType.Color,defaultValue:\"#999999\"},placeholderColor:{type:ControlType.Color,defaultValue:\"#999999\",title:\"Placeholder\"},fill:fillProp({invalid:true}),radius:{type:ControlType.BorderRadius,defaultValue:\"10px\"},padding:{type:ControlType.Padding,defaultValue:\"12px\"},border:borderProp({invalid:true}),shadows:shadowsProp(),transition:{type:ControlType.Transition,defaultValue:{type:false}},focusEvent:{type:ControlType.EventHandler,title:\"Focus\"},blurEvent:{type:ControlType.EventHandler,title:\"Blur\"},invalidEvent:{type:ControlType.EventHandler,title:\"Invalid\"}});function formatPhoneNumber(phoneNumber,format){if(!phoneNumber){return\"\";}let index=0// Tracks the position in the replacements string\n;let cutOffIndex=null// To determine where to slice the template after replacement\n;const result=format.replace(/[Xx]/g,(match,offset)=>{if(index<phoneNumber.length){return phoneNumber[index++];}else{if(phoneNumber.length<10&&cutOffIndex===null){// Set cut-off index at the first unmatched Xx after all replacements are used\ncutOffIndex=offset;}return\"\";}});// Slice the template to remove the part after the last valid replacement if necessary\nreturn cutOffIndex!==null?result.slice(0,cutOffIndex):result;}function replaceXWithNumbers(input){let count=1;return input.replace(/[Xx]/g,()=>{let number=count%10;if(number===0)number=0;count++;return number;});}function formatCountryCode(countryCode,format){return format.replace(/[Xx]/,countryCode);}function unformatValue(value){return value.replace(/\\D/g,\"\");}function isLastCharacterANumber(str){if(str.length===0)return false// Check if the string is empty\n;const lastChar=str[str.length-1]// Get the last character\n;return!isNaN(lastChar)&&!isNaN(parseFloat(lastChar))// Check if it's a numeric value\n;}const px=(a,b,c,d)=>`${a}px ${b}px ${c}px ${d}px`;function countXCharacters(str){// Convert the string to lowercase to count both 'X' and 'x'\nconst lowercaseStr=str.toLowerCase();// Use a regular expression to match 'x' characters\nconst xRegex=/x/g;// Use the match() method to find all occurrences of 'x'\nconst matches=lowercaseStr.match(xRegex);// Return the count of matches, or 0 if no matches found\nreturn matches?matches.length:0;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PhoneNumberInput\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PhoneNumberInput.map"],"mappings":"mYAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,aAAW,oBAAkB,EAAW,CAAC,EAAmB,GAAuB,GAAuB,CAAM,CAAC,EAAS,GAAaA,EAAS,KAAK,CAAO,EAAIC,EAAO,KAAK,CAAqzB,OAApzB,MAAc,CAAC,EAAY,EAAY,EAAI,QAAQ,CAAC,EAAG,CAAC,EAAI,CAAC,CAAC,MAAc,CAAC,IAAM,EAAK,GAAmD,KAAW,EAAO,GAAmD,OAAO,GAAG,GAAQ,EAAmB,GAAQ,CAAC,IAAM,MAAgB,CAAC,IAAI,IAAM,KAAa,EAAqT,GAAhC,EAAe,GAAnP,EAAU,MAAM,QAAQ,EAAc,EAAK,EAAU,UAAU,CAAsB,EAAK,cAAc,UAAU,EAAU,UAAU,IAAI,EAAkE,QAAQ,GAA+C,CAAY,OAAO,EAAU,SAAW,OAAO,EAAiB,UAAW,EAAsB,IAAO,EAAE,GAAQ,CAAC,GAAG,EAAK,GAAQ,aAAa,CAAC,GAAG,EAAK,GAAQ,aAAa,CAAC,cAAY,MAAI,CAAC,CAAC,CAAC,EAAE,GAAI,CAAC,EAAS,CAAC,CAAqB,EAAK,EAAqB,CAAC,KAAK,wBAAwB,QAAQ,EAAW,IAAI,GAAW,CAAC,IAAM,EAAK,EAAU,KAAW,EAAY,GAAM,WAAW,EAAU,cAAc,QAAQ,WAAW,EAAa,EAAU,GAAG,EAAK,cAAc,GAAO,EAAM,GAAM,OAAO,EAAU,eAAe,iBAAiB,GAAG,EAAW,EAAU,eAAe,CAAC,OAAO,EAAW,EAAU,aAAa,GAAG,EAAW,EAAU,UAAU,CAAC,OAAO,EAAU,GAAG,EAAK,QAAQ,CAAC,MAAM,GAA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