1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,403586,t=>{t.v({error:"PhoneInput-module__bnv96q__error",flagFallback:"PhoneInput-module__bnv96q__flagFallback",input:"PhoneInput-module__bnv96q__input",label:"PhoneInput-module__bnv96q__label",wrapper:"PhoneInput-module__bnv96q__wrapper"})},948191,t=>{"use strict";var e=t.i(291157),i=[];for(let t of[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]])i.push({name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,
1nationalPrefix:t[4]||null});var l=new Set(i.map(t=>t.iso2)),s=t=>l.has(t),r="input",n="strict:reject",o="iti__hide",a="iti__v-hide",u="iti__arrow--up",h="iti__flag",d="iti__loading",c="iti__country",p="iti__highlight",y="iti__strict-reject-animation",m="ArrowUp",g="ArrowDown",C="Enter",f="Escape",b=/\p{L}/u,E=/[^+0-9]/,v=/[^+0-9]/g,I=/^[a-zA-ZÃ-ÿа-ÑÐ-Я ]$/,S={AGGRESSIVE:"AGGRESSIVE",POLITE:"POLITE",OFF:"OFF"},L=["OFF","DROPDOWN","FULLSCREEN","AUTO"],w=["FIXED_LINE","MOBILE","FIXED_LINE_OR_MOBILE","TOLL_FREE","PREMIUM_RATE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL","UNKNOWN"],A=t=>Object.fromEntries(t.map(t=>[t,t])),N=A(["E164","INTERNATIONAL","NATIONAL","RFC3966"]),x=A(w),_=A(["IS_POSSIBLE","INVALID_COUNTRY_CODE","TOO_SHORT","TOO_LONG","IS_POSSIBLE_LOCAL_ONLY","INVALID_LENGTH"]),T=A(L),k="iso2",O="dialCode",F="intlTelInputId",D="aria-expanded",P="aria-label",R="aria-selected",$="aria-activedescendant",j="aria-controls",M="aria-hidden",V={selectedCountryAriaLabel:"Change country for phone number, currently selected ${countryName} (${dialCode})",noCountrySelected:"Select country for phone number",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",searchEmptyState:"No results found",searchSummaryAria:t=>0===t?"No results found":1===t?"1 result found":`${t} results found`},W=t=>"u">typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(t).matches,U=()=>W("(max-width: 500px)"),B={countrySelectorMode:T.AUTO,allowedNumberTypes:[x.MOBILE,x.FIXED_LINE],allowNumberExtensions:!1,allowPhonewords:!1,containerClass:"",countryNameLocale:"en",countryNameOverrides:{},countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownAlwaysOpen:!1,dropdownParent:null,excludeCountries:null,matchDropdownWidth:!0,formatAsYouType:!0,hiddenInputs:null,uiTranslations:{},initialCountry:"",initialCountryLookup:null,loadUtils:null,numberDisplayFormat:N.INTERNATIONAL,onlyCountries:null,placeholderNumberPolicy:S.POLITE,placeholderNumberType:x.MOBILE,searchInputClass:"",separateDialCode:!0,strictRejectAnimation:!0,showFlags:!0,strictMode:!0},z=t=>!!t&&"object"==typeof t&&!Array.isArray(t),H=t=>"function"==typeof t,q=t=>!!t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.tagName&&"function"==typeof t.appendChild,K=new Set(Object.values(S)),G=t=>{console.warn(`[intl-tel-input] ${t}`)},Y=(t,e,i)=>{G(`Option '${t}' must be ${e}; got ${JSON.stringify(i)}. Ignoring.`)},J=(t,e)=>{let i="an array of iso2 country code strings";if(!Array.isArray(e))return Y(t,i,e),!1;let l=[];for(let r of e){if("string"!=typeof r)return Y(t,i,e),!1;s(r.toLowerCase())?l.push(r):G(`Invalid iso2 code in '${t}': '${r}'. Skipping.`)}return l},Q=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),X=t=>Object.keys(t).filter(e=>!!t[e]).join(" "),Z=(t,e,i)=>{let l=document.createElement(t);return e&&Object.entries(e).forEach(([t,e])=>l.setAttribute(t,e)),i&&i.appendChild(l),l},tt=([t,e,i])=>{let l=document.createElementNS("http://www.w3.org/2000/svg",t);if(e)for(let t in e)l.setAttribute(t,String(e[t]));if(i)for(let t of i)l.appendChild(tt(t));return l},te=()=>tt(["svg",{width:256,height:256,viewBox:"0 0 512 512",class:"iti__globe-svg"},[["path",{d:"M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"}],["path",{d:"m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"}]]]),ti=t=>Q(t).replace(/[^\p{L}]+/gu," ").trim(),tl=class t{#t;static toAscii(t){return t?t.replace(/[Ù -Ù©]/g,t=>String.fromCharCode(48+(t.charCodeAt(0)-1632))).replace(/[Û°-Û¹]/g,t=>String.fromCharCode(48+(t.charCodeAt(0)-1776))):""}constructor(t){t&&this.#e(t)}#e(t){/[Ù -Ù©]/.test(t)?this.#t="arabic-indic":/[Û°-Û¹]/.test(t)?this.#t="persian":this.#t="ascii"}denormalise(t){if(!this.#t||"ascii"===this.#t)return t;let e="arabic-indic"===this.#t?1632:1776;return t.replace(/[0-9]/g,t=>String.fromCharCode(e+Number(t)))}normalise(e){return e?(this.#e(e),"ascii"===this.#t)?e:t.toAscii(e):""}isAscii(){return!this.#t||"ascii"===this.#t}},ts="u">typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("anchor-name: --x"),tr=class{#i;#l;#s;#r="";#n;#o;#a=null;#u;#h=!1;#d;#c;#p;#y;#m;#g;#C;#f;#b;#E;#v;#I;#S;#L;#w;#A=null;#N=null;#x=new Map;#_=null;#T;telInputEl;hadInitialPlaceholder;constructor(t,e,i){t.dataset[F]=i.toString(),this.telInputEl=t,this.#i=e,this.#l=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.#s=!!this.telInputEl.closest("[dir=rtl]"),this.#r=this.telInputEl.style.paddingLeft}static validateInput(t){let e=t?.tagName;if(!(t&&"object"==typeof t&&"INPUT"===e&&"function"==typeof t.setAttribute)){let e=Object.prototype.toString.call(t);throw TypeError(`The first argument must be an HTMLInputElement, not ${e}`)}}buildMarkup(t,e){this.#n=t,this.#o=e,this.telInputEl.classList.add("iti__tel-input"),this.telInputEl.hasAttribute("type")||this.telInputEl.setAttribute("type","tel"),this.telInputEl.hasAttribute("autocomplete")||this.telInputEl.setAttribute("autocomplete","tel"),this.telInputEl.hasAttribute("inputmode")||this.telInputEl.setAttribute("inputmode","tel");let i=this.#k();this.#O(i),i.appendChild(this.telInputEl),this.#F(),this.#D(),this.#P(i),this.ensureDropdownWidthSet()}#k(){let{countrySelectorMode:t,showFlags:e,containerClass:i}=this.#i,l=Z("div",{class:X({iti:!0,"iti--input-container":!0,"iti--has-country-selector":t!==T.OFF,"iti--show-flags":e,"iti--inline-country-selector":t!==T.FULLSCREEN,[i]:!!i})});return this.#s&&l.setAttribute("dir","ltr"),this.telInputEl.before(l),l}
1#O(t){let{countrySelectorMode:e,separateDialCode:i,showFlags:l}=this.#i,s=e!==T.OFF;if(!s&&!l&&!i)return;this.#d=Z("div",{class:`iti__country-container ${a}`},t),s?(this.#c=Z("button",{type:"button",class:"iti__selected-country",[D]:"false",[P]:this.#i.uiTranslations.noCountrySelected,"aria-haspopup":"dialog",[j]:`iti-${this.#l}__country-selector`},this.#d),this.telInputEl.disabled&&this.#c.setAttribute("disabled","true")):this.#c=Z("div",{class:"iti__selected-country"},this.#d);let r=Z("div",{class:"iti__selected-country-primary"},this.#c);this.#p=Z("div",{class:h},r),s&&(this.#m=Z("div",{class:"iti__arrow",[M]:"true"},r)),i&&(this.#y=Z("div",{class:"iti__selected-dial-code"},this.#c)),s&&this.#R()}ensureDropdownWidthSet(){let{matchDropdownWidth:t,countrySelectorMode:e}=this.#i;if(e===T.OFF||!t||this.#g.style.width)return;let i=this.telInputEl.offsetWidth;i>0&&(this.#g.style.width=`${i}px`)}#R(){let{matchDropdownWidth:t,countrySelectorMode:e,countrySearch:i,uiTranslations:l,containerClass:s}=this.#i,r=e===T.FULLSCREEN,n=this.#$();if(this.#g=Z("div",{id:`iti-${this.#l}__country-selector`,class:`iti__country-selector ${o} ${t?"":"iti--flexible-dropdown-width"}`,role:"dialog","aria-modal":"true"}),this.#s&&this.#g.setAttribute("dir","rtl"),i&&this.#j(),this.#E=Z("ul",{class:"iti__country-list",id:`iti-${this.#l}__country-listbox`,role:"listbox",[P]:l.countryListAriaLabel},this.#g),this.#M(),i&&this.#V(),n){let t=X({iti:!0,"iti--detached-country-selector":!0,"iti--fullscreen-popup":r,"iti--inline-country-selector":!r,[s]:!!s});this.#w=Z("div",{class:t}),this.#w.appendChild(this.#g)}else this.#d.appendChild(this.#g)}#$(){let{countrySelectorMode:t,dropdownParent:e}=this.#i;return t===T.FULLSCREEN?document.body:t===T.DROPDOWN?e:null}#j(){var t;let e,{uiTranslations:i,searchInputClass:l}=this.#i,s=Z("div",{class:"iti__search-input-wrapper"},this.#g);this.#C=Z("span",{class:"iti__search-icon",[M]:"true"},s),this.#C.appendChild(tt(["svg",{class:"iti__search-icon-svg",width:14,height:14,viewBox:"0 0 24 24",focusable:"false",[M]:"true"},[["circle",{cx:11,cy:11,r:7}],["line",{x1:21,y1:21,x2:16.65,y2:16.65}]]])),this.#f=Z("input",{id:`iti-${this.#l}__search-input`,type:"search",class:`iti__search-input ${l}`,placeholder:i.searchPlaceholder,role:"combobox",[D]:"true",[P]:i.searchPlaceholder,[j]:`iti-${this.#l}__country-listbox`,"aria-autocomplete":"list",autocomplete:"off"},s),this.#b=Z("button",{type:"button",class:`iti__search-clear ${o}`,[P]:i.clearSearchAriaLabel,tabindex:"-1"},s),this.#b.appendChild((t=this.#l,tt(["svg",{class:"iti__search-clear-svg",width:12,height:12,viewBox:"0 0 16 16",[M]:"true",focusable:"false"},[["mask",{id:e=`iti-${t}-clear-mask`,maskUnits:"userSpaceOnUse"},[["rect",{width:16,height:16,fill:"white"}],["path",{d:"M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8",stroke:"black","stroke-linecap":"round",class:"iti__search-clear-x"}]]],["circle",{cx:8,cy:8,r:8,class:"iti__search-clear-bg",mask:`url(#${e})`}]]]))),this.#L=Z("span",{class:"iti__a11y-text"},this.#g),this.#S=Z("div",{class:`iti__no-results ${o}`,[M]:"true"},this.#g),this.#S.textContent=i.searchEmptyState??null}#F(){this.#d&&(this.#W(),this.#d.classList.remove(a))}#P(t){let{hiddenInputs:e}=this.#i;if(!e)return;let i=e(this.telInputEl.getAttribute("name")||"");if(i.phone){let e=this.telInputEl.form?.querySelector(`input[name="${i.phone}"]`);e?this.#v=e:(this.#v=Z("input",{type:"hidden",name:i.phone}),t.appendChild(this.#v))}if(i.country){let e=this.telInputEl.form?.querySelector(`input[name="${i.country}"]`);e?this.#I=e:(this.#I=Z("input",{type:"hidden",name:i.country}),t.appendChild(this.#I))}}#M(){let t=document.createDocumentFragment();for(let e=0;e<this.#n.length;e++){let i=this.#n[e],l=X({[c]:!0}),s=Z("li",{id:`iti-${this.#l}__item-${i.iso2}`,class:l,tabindex:"-1",role:"option",[R]:"false"});s.dataset[O]=i.dialCode,s.dataset[k]=i.iso2,this.#x.set(i.iso2,s),this.#i.showFlags&&Z("div",{class:`${h} iti__${i.iso2}`},s);let r=Z("span",{class:"iti__country-name"},s);r.textContent=`${i.name} `;let n=Z("span",{class:"iti__dial-code"},r);this.#s&&n.setAttribute("dir","ltr"),n.textContent=`(+${i.dialCode})`,t.appendChild(s)}this.#E.appendChild(t)}
1#W(){if(this.#c){let t=this.#i.separateDialCode?78:42,e=this.#c.offsetWidth||this.#U()||t;this.telInputEl.style.paddingLeft=`${e+6}px`}}#D(){this.#c&&"u">typeof ResizeObserver&&(this.#T=new ResizeObserver(()=>{this.#c?.offsetWidth&&this.#W()}),this.#T.observe(this.#c))}#U(){if(!this.telInputEl.parentNode)return 0;let t=document.body,e=this.telInputEl.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.#d.cloneNode();e.appendChild(i);let l=this.#c.cloneNode(!0);i.appendChild(l);let s=l.offsetWidth;return t.removeChild(e),s}#B(){if(void 0!==this.#u)return;let{countrySearch:t,matchDropdownWidth:e}=this.#i,{height:i,width:l}=this.#z();this.#u=i,t&&(this.#g.style.height=`${i}px`,!e&&l>0&&(this.#g.style.width=`${l}px`))}#z(){let t=document.body,e=this.#g,i=e.parentNode,l=e.nextSibling;e.classList.remove(o);let s=Z("div",{class:"iti iti--inline-country-selector"});s.appendChild(e),s.style.visibility="hidden",t.appendChild(s);let r=e.offsetHeight,n=e.offsetWidth;return t.removeChild(s),e.classList.add(o),i&&i.insertBefore(e,l),{height:r>0?r:200,width:n}}#V(){let{uiTranslations:t}=this.#i,e=this.#E.childElementCount;this.#L.textContent=t.searchSummaryAria(e)}#H(t){let e;if(""===t)e=this.#n;else{let i=tl.toAscii(t);e=((t,e,i)=>{let l=Q(i),s=ti(i),r=""!==l&&""===s,n=[],o=[],a=[],u=[],h=[],d=[],c=[];for(let i of t){let t=e.get(i.iso2);i.iso2===l?n.push(i):!r&&t.normalisedName.startsWith(s)?o.push(i):!r&&t.normalisedName.includes(s)?a.push(i):l===i.dialCode||l===t.dialCodePlus?u.push(i):t.dialCodePlus.includes(l)?h.push(i):t.initials.includes(l)&&d.push(i)}let p=s.split(" ").filter(Boolean);if(p.length>1&&0===n.length&&0===o.length&&0===a.length){let i=new Set([...u.map(t=>t.iso2),...h.map(t=>t.iso2),...d.map(t=>t.iso2)]);for(let l of t){if(i.has(l.iso2))continue;let t=e.get(l.iso2);p.some(e=>t.words.some(t=>t.startsWith(e)))&&c.push(l)}}let y=(t,e)=>t.priority-e.priority;return[...n,...o,...a,...u.sort(y),...h.sort(y),...d,...c]})(this.#n,this.#o,i)}this.#q(e)}prefillSearchWithPlus(){this.#f.value="+",this.#f.focus(),this.#H("")}#K(){let t=this.#f.value.trim();this.#H(t),this.#f.value?this.#b.classList.remove(o):this.#b.classList.add(o)}#G(){this.#a&&clearTimeout(this.#a),this.#a=setTimeout(()=>{this.#K(),this.#a=null},100)}#Y(){this.#f.value="",this.#f.focus(),this.#K()}#J(t){let e=this.#E,i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),s=l.top-i.top+e.scrollTop;l.top<i.top?e.scrollTop=s:l.bottom>i.bottom&&(e.scrollTop=s-i.height+l.height)}#Q(t,e=!0){if(this.#N?.classList.remove(p),t){if(t.classList.add(p),this.#i.countrySearch){let e=t.getAttribute("id")||"";this.#f.setAttribute($,e)}e&&this.#J(t),this.#N=t}else this.#N=null}bindHiddenInputSubmitListener(t,e,i){let l=this.telInputEl.form;l&&(this.#v||this.#I)&&l.addEventListener("submit",()=>{this.#v&&(this.#v.value=e()),this.#I&&(this.#I.value=i())},{signal:t})}bindAllInitialCountrySelectorListeners(t,e,i){let l=this.telInputEl.closest("label");l&&l.addEventListener("click",t=>{this.isCountrySelectorOpen()?t.preventDefault():this.telInputEl.focus()},{signal:t}),this.#c.addEventListener("click",()=>{this.isCountrySelectorOpen()||this.telInputEl.disabled||this.telInputEl.readOnly||e()},{signal:t}),this.#d.addEventListener("keydown",t=>{!this.isCountrySelectorOpen()&&[m,g," ",C].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),e()),"Tab"===t.key&&i()},{signal:t})}openCountrySelector(t,e){let{countrySearch:i,dropdownAlwaysOpen:l}=this.#i;if(this.#_=new AbortController,this.#i.countrySelectorMode!==T.FULLSCREEN&&this.#B(),this.ensureDropdownWidthSet(),this.#w)this.#X();else{let t=this.#Z(),e=this.telInputEl.offsetHeight+3;t?this.#g.style.top=`${e}px`:this.#g.style.bottom=`${e}px`}this.#g.classList.remove(o),this.#c.setAttribute(D,"true");let s=this.#A??this.#E.firstElementChild;s&&this.#Q(s),i&&!l&&this.#f.focus(),this.#i.countrySelectorMode===T.FULLSCREEN&&this.#w&&window.visualViewport&&window.visualViewport.addEventListener("resize",()=>{this.#tt(),this.#N&&this.#J(this.#N)},{signal:this.#_.signal}),this.#m.classList.add(u),this.#te(t,e)}#te(t,e){let i=this.#_.signal;this.#ti(i),this.#tl(i,t),this.#i.dropdownAlwaysOpen||this.#ts(i,e),this.#tr(i,t,e),this.#i.countrySearch&&this.#tn(i),this.#i.countrySelectorMode===T.DROPDOWN&&this.#i.dropdownParent&&!ts&&document.addEventListener("scroll",e,{signal:i,capture:!0,passive:!0})}#ti(t){this.#E.addEventListener("mouseover",t=>{let e=t.target?.closest(`.${c}`);e&&this.#Q(e,!1)},{signal:t})}#tl(t,e){this.#E.addEventListener("click",t=>{let i=t.target?.closest(`.${c}`);i&&e(i)},{signal:t})}#ts(t,e){setTimeout(()=>{document.documentElement.addEventListener("click",t=>{this.#g.contains(t.target)||e()},{signal:t})},0)}#tr(t,e,i){let l="",s=null,r=t=>{[m,g,C,f].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key===m||t.key===g?this.#to(t.key):t.key!==C||t.isComposing?t.key===f&&(i(),this.#c.focus()):e(this.#N)),!this.#i.countrySearch&&I.test(t.key)&&(t.stopPropagation(),s&&clearTimeout(s),l+=t.key.toLowerCase(),this.#ta(l),s=setTimeout(()=>{l=""},1e3))};this.#c?.addEventListener("keydown",r,{signal:t}),this.#g?.addEventListener("keydown",r,{signal:t})}#tn(t){this.#f.addEventListener("input",()=>this.#G(),{signal:t}),this.#b.addEventListener("click",()=>this.#Y(),{signal:t})}#ta(t){let e=((t,e,i)=>{let l=ti(i);for(let i of t){let{normalisedName:t}=e.get(i.iso2);if(t.startsWith(l))return i}return null})(this.#n,this.#o,t);if(e){let t=this.#x.get(e.iso2);this.#Q(t)}}#to(t){let e=t===m?this.#N?.previousElementSibling:this.#N?.nextElementSibling;!e&&this.#E.childElementCount>1&&(e=t===m?this.#E.lastElementChild:this.#E.firstElementChild),e&&this.#Q(e)}#tu(t){if(this.#A&&this.#A.dataset[k]!==t&&(this.#A.setAttribute(R,"false"),this.#A.querySelector(".iti__country-check")?.remove(),this.#A=null),t&&!this.#A){let e=this.#E.querySelector(`[data-iso2="${t}"]`);e&&(e.setAttribute(R,"true"),Z("span",{class:"iti__country-check",[M]:"true"},e).appendChild(tt(["svg",{class:"iti__country-check-svg",width:14,height:14,viewBox:"0 0 16 16",fill:"currentColor",focusable:"false",[M]:"true"},[["path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}]]])),this.#A=e,this.#i.dropdownAlwaysOpen&&this.#Q(e))}}#q(t){this.#E.replaceChildren();let e=!0;for(let i of t){let t=this.#x.get(i.iso2);t&&(this.#E.appendChild(t),e&&(this.#Q(t,!1),e=!1))}e?(this.#Q(null),this.#S&&this.#S.classList.remove(o)):this.#S&&this.#S.classList.add(o),this.#E.scrollTop=0,this.#V()}closeCountrySelector(){let{countrySearch:t}=this.#i;this.#_.abort(),this.#_=null,this.#g.classList.add(o),this.#c.setAttribute(D,"false"),t&&(this.#f.removeAttribute($),this.#f.value="",this.#K(),this.#N&&(this.#N.classList.remove(p),this.#N=null)),this.#m.classList.remove(u),this.#w?(this.#w.remove(),this.#w.style.top="",this.#w.style.bottom="",this.#w.style.paddingLeft="",this.#w.style.paddingRight=""):(this.#g.style.top="",this.#g.style.bottom="")}#Z(){if(this.#i.dropdownAlwaysOpen)return!0;let t=this.telInputEl.getBoundingClientRect(),e=t.top,i=window.innerHeight-t.bottom;return i>=this.#u||i>=e}#X(){let t=this.#i.countrySelectorMode===T.FULLSCREEN,e=this.#$();if(t){if(window.innerWidth>=500){let t=this.telInputEl.getBoundingClientRect();this.#w.style.paddingLeft=`${t.left}px`,this.#w.style.paddingRight=`${window.innerWidth-t.right}px`}}else this.#th();if(!t&&!ts){let t=this.telInputEl.getBoundingClientRect();this.#w.style.left=`${t.left}px`,this.#Z()?this.#w.style.top=`${t.bottom+3}px`:(this.#w.style.top="unset",this.#w.style.bottom=`${window.innerHeight-t.top+3}px`)}e.appendChild(this.#w)}#th(){if(this.#h)return;this.#h=!0;let t=`--iti-anchor-${this.#l}`,e=getComputedStyle(this.telInputEl).anchorName;this.telInputEl.style.anchorName=e&&"none"!==e?`${e}, ${t}`:t,this.#w.style.positionAnchor=t}
1#tt(){let t=window.visualViewport;if(!t||!this.#w)return;let e=window.innerHeight-t.height;this.#w.style.bottom=`${e}px`}isCountrySelectorOpen(){return!this.#g.classList.contains(o)}setLoading(t){this.#p.classList.toggle(d,t)}playStrictRejectAnimation(){if(!this.#i.strictRejectAnimation)return;let t=this.telInputEl.parentElement;t&&(t.classList.remove(y),t.offsetWidth,t.classList.add(y),t.addEventListener("animationend",()=>t.classList.remove(y),{once:!0}))}isLoading(){return this.#p.classList.contains(d)}setDisabled(t){this.telInputEl.disabled=t,this.#c&&(t?this.#c.setAttribute("disabled","true"):this.#c.removeAttribute("disabled"))}setReadonly(t){this.telInputEl.readOnly=t,this.#c&&(t?this.#c.setAttribute("disabled","true"):this.#c.removeAttribute("disabled"))}setSelectedCountry(t){let{countrySelectorMode:e,showFlags:i,separateDialCode:l,uiTranslations:s}=this.#i,r=t?.name,n=t?.dialCode,o=t?.iso2??"";if(e!==T.OFF&&this.#tu(o),this.#c){let t,e,l=o&&i?`${h} iti__${o}`:`${h} iti__globe`,a=null;o?(e=r,t=s.selectedCountryAriaLabel.replace("${countryName}",r).replace("${dialCode}",`+${n}`),i||(a=te())):(e=s.noCountrySelected,t=s.noCountrySelected,a=te()),this.#p.className=l,this.#c.setAttribute("title",e),this.#c.setAttribute(P,t),a?this.#p.replaceChildren(a):this.#p.replaceChildren()}if(l){let t=n?`+${n}`:"";this.#y.textContent=t,this.#W()}}destroy(){this.telInputEl.iti=void 0,delete this.telInputEl.dataset[F],this.#T?.disconnect(),this.telInputEl.style.paddingLeft=this.#r;let t=this.telInputEl.parentNode;t&&(t.before(this.telInputEl),t.remove()),this.#x.clear()}},tn=new Set(["800","808","870","881","882","883","888","979"]),to=t=>{let e=t.replace(/\D/g,"").slice(0,3);return t.startsWith("+")&&tn.has(e)},ta=(t,e,i,l)=>{if(!i||!e)return t;let s=`+${l.dialCode}`,r=" "===t[s.length]||"-"===t[s.length]?s.length+1:s.length;return t.substring(r)},tu=new Set(["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"]),th=t=>{let e=t.replace(/\D/g,"");if(e.startsWith("1")&&e.length>=4){let t=e.substring(1,4);return tu.has(t)}return!1},td=0,tc=t=>{if(!tg.utils)throw Error(`intlTelInput.utils is required for ${t}(). See: https://intl-tel-input.com/docs/utils`)},tp=()=>{let t,e;return{promise:new Promise((i,l)=>{t=i,e=l}),resolve:t,reject:e}},ty=class t{id;promise;#td;#i;#tc;#n;#tp;#ty;#tm;#tg;#o;#tC=null;#tf=null;#tb;#tE=!0;#tv;#tI;#tS=!1;#tL=null;#tw;#tA;constructor(t,e={}){this.id=td++,tr.validateInput(t);const l=(t=>{if(void 0===t)return{};if(!z(t))return G(`The second argument must be an options object; got ${JSON.stringify(t)}. Using defaults.`),{};let e={};for(let[i,l]of Object.entries(t)){if(!Object.hasOwn(B,i)){G(`Unknown option '${i}'. Ignoring.`);continue}switch(i){case"allowNumberExtensions":case"allowPhonewords":case"countrySearch":case"dropdownAlwaysOpen":case"matchDropdownWidth":case"formatAsYouType":case"showFlags":case"separateDialCode":case"strictMode":case"strictRejectAnimation":if("boolean"!=typeof l){Y(i,"a boolean",l);break}e[i]=l;break;case"countrySelectorMode":if("string"!=typeof l||!L.includes(l)){Y("countrySelectorMode",`one of ${L.map(t=>`"${t}"`).join(", ")}`,l);break}e[i]=l;break;case"numberDisplayFormat":if("string"!=typeof l||l===N.RFC3966||l!==N.E164&&l!==N.INTERNATIONAL&&l!==N.NATIONAL){Y("numberDisplayFormat",'one of "E164", "INTERNATIONAL", "NATIONAL"',l);break}e[i]=l;break;case"placeholderNumberPolicy":if("string"!=typeof l||!K.has(l)){let t=Array.from(K).join(", ");Y("placeholderNumberPolicy",`one of ${t}`,l);break}e[i]=l;break;case"containerClass":case"searchInputClass":case"countryNameLocale":if("string"!=typeof l){Y(i,"a string",l);break}e[i]=l;break;case"countryOrder":if(null===l)e[i]=l;else{let t=J(i,l);!1!==t&&(e[i]=t)}break;case"customPlaceholder":case"hiddenInputs":case"initialCountryLookup":case"loadUtils":if(null!==l&&!H(l)){Y(i,"a function or null",l);break}e[i]=l;break;case"dropdownParent":if(null!==l&&!q(l)){Y("dropdownParent","an HTMLElement or null",l);break}e[i]=l;break;case"excludeCountries":case"onlyCountries":if(null===l)e[i]=l;else{let t=J(i,l);!1!==t&&(e[i]=t)}break;case"uiTranslations":if(l&&!z(l)){Y("uiTranslations","an object",l);break}e[i]=l;break;case"countryNameOverrides":if(l&&!z(l)){Y("countryNameOverrides","an object",l);break}e[i]=l;break;case"initialCountry":{if("string"!=typeof l){Y("initialCountry","a string",l);break}let t=l.toLowerCase();if(t&&!s(t)){Y("initialCountry","a valid iso2 country code",l);break}e[i]=l;break}case"placeholderNumberType":if("string"!=typeof l||!w.includes(l)){let t=w.join(", ");Y("placeholderNumberType",`one of ${t}`,l);break}e[i]=l;break;case"allowedNumberTypes":if(null!==l){if(!Array.isArray(l)){Y("allowedNumberTypes","an array of number types or null",l);break}let t=!0;for(let e of l)if("string"!=typeof e||!w.includes(e)){let i=w.join(", ");Y("allowedNumberTypes",`an array of valid number types (${i})`,e),t=!1;break}t&&(e[i]=l)}else e[i]=null}}return e})(e);this.#i={...B,...l},(t=>{t.initialCountry&&(t.initialCountry=t.initialCountry.toLowerCase()),t.onlyCountries?.length&&(t.onlyCountries=t.onlyCountries.map(t=>t.toLowerCase())),t.excludeCountries?.length&&(t.excludeCountries=t.excludeCountries.map(t=>t.toLowerCase())),t.countryOrder&&(t.countryOrder=t.countryOrder.map(t=>t.toLowerCase()))})(this.#i),(t=>{t.countrySelectorMode===T.AUTO&&(t.countrySelectorMode=(()=>
1{if("u">typeof navigator&&"u">typeof window){let t=W("(max-height: 600px)"),e=W("(pointer: coarse)");if(U()||e&&t)return T.FULLSCREEN}return T.DROPDOWN})()),t.dropdownAlwaysOpen&&(t.countrySelectorMode=T.DROPDOWN),t.countrySelectorMode===T.FULLSCREEN?t.matchDropdownWidth=!1:U()&&(t.matchDropdownWidth=!0),t.onlyCountries?.length===1&&(t.initialCountry=t.onlyCountries[0]),t.separateDialCode&&t.numberDisplayFormat===N.NATIONAL&&(t.numberDisplayFormat=N.INTERNATIONAL),t.countrySelectorMode===T.OFF||t.showFlags||t.separateDialCode||t.numberDisplayFormat!==N.NATIONAL||(t.numberDisplayFormat=N.INTERNATIONAL),t.uiTranslations={...V,...t.uiTranslations}})(this.#i),this.#td=new tr(t,this.#i,this.id),this.#tc="u">typeof navigator&&/Android/i.test(navigator.userAgent),this.#tI=new tl(t.value),this.promise=this.#tN(this.#i),this.#n=(t=>{let{onlyCountries:e,excludeCountries:l}=t;return e?.length?i.filter(t=>e.includes(t.iso2)):l?.length?i.filter(t=>!l.includes(t.iso2)):[...i]})(this.#i);const{dialCodes:r,dialCodeMaxLength:n,dialCodeToIso2Map:o}=(t=>{let e=new Set,i=0,l={},s=(t,e)=>{if(!t||!e)return;e.length>i&&(i=e.length),Object.hasOwn(l,e)||(l[e]=[]);let s=l[e];s.includes(t)||s.push(t)};for(let i of[...t].sort((t,e)=>t.priority-e.priority)){e.has(i.dialCode)||e.add(i.dialCode);for(let t=1;t<i.dialCode.length;t++){let e=i.dialCode.substring(0,t);s(i.iso2,e)}if(s(i.iso2,i.dialCode),i.areaCodes){let t=l[i.dialCode][0];for(let e of i.areaCodes){for(let l=1;l<e.length;l++){let r=e.substring(0,l),n=i.dialCode+r;s(t,n),s(i.iso2,n)}s(i.iso2,i.dialCode+e)}}}return{dialCodes:e,dialCodeMaxLength:i,dialCodeToIso2Map:l}})(this.#n);this.#tm=r,this.#tp=n,this.#ty=o,this.#tg=new Map(this.#n.map(t=>[t.iso2,t])),this.#tx()}#t_(){let t=this.#td.telInputEl.value.trim();return this.#tI.normalise(t)}#tT(t){this.#td.telInputEl.value=this.#tI.denormalise(t)}#tN(t){let{initialCountry:e,initialCountryLookup:i,loadUtils:l}=t,s=!!l&&!tg.utils;return!e&&i&&(this.#tw=tp()),s&&(this.#tA=tp()),Promise.all([this.#tw?.promise,this.#tA?.promise]).then(()=>{})}#tx(){this.#tv=new AbortController,this.#tk(),this.#td.buildMarkup(this.#n,this.#o),this.#tO(),this.#tF(),this.#tD(),this.#i.dropdownAlwaysOpen&&this.openCountrySelector()}#tk(){((t,e)=>{let i,{countryNameLocale:l,countryNameOverrides:s,uiTranslations:r}=e,n=r?.countryNames;try{i="u">typeof Intl&&"function"==typeof Intl.DisplayNames?new Intl.DisplayNames(l,{type:"region"}):null}catch(t){console.error(t),i=null}for(let e of t)e.name=s[e.iso2]||n?.[e.iso2]||i?.of(e.iso2.toUpperCase())||""})(this.#n,this.#i),((t,e)=>{let{countryOrder:i}=e;t.sort((t,e)=>{if(i){let l=i.indexOf(t.iso2),s=i.indexOf(e.iso2),r=l>-1,n=s>-1;if(r||n)return r&&n?l-s:r?-1:1}return t.name.localeCompare(e.name)})})(this.#n,this.#i),this.#o=(t=>{let e=new Map;for(let i of t){let t=ti(i.name),l=t.split(" ").filter(Boolean),s=l.map(t=>t[0]||"").join("");e.set(i.iso2,{normalisedName:t,words:l,initials:s,dialCodePlus:`+${i.dialCode}`})}return e})(this.#n)}#tO(t=!1){let e=this.#td.telInputEl.getAttribute("value"),i=this.#tI.normalise(e??""),l=this.#t_(),r=i&&i.startsWith("+")&&(!l||!l.startsWith("+"))?i:l,n=this.#tP(r),o=th(r),{initialCountry:a,initialCountryLookup:u}=this.#i,h=!a&&!!u,d=h&&tg.autoCountry?tg.autoCountry:a,c=h&&!t&&!tg.autoCountry,p=s(d);n?o?p?this.#tR(d):c||this.#tR("us"):(p&&this.#tR(d),this.#t$(r)):p?this.#tR(d):c||this.#tR(""),r&&this.#tj(r)}#tF(){this.#tM(),this.#i.countrySelectorMode!==T.OFF&&this.#td.bindAllInitialCountrySelectorListeners(this.#tv.signal,()=>this.openCountrySelector(),()=>this.#tV()),this.#td.bindHiddenInputSubmitListener(this.#tv.signal,()=>this.getNumber(),()=>this.#tC?.iso2||"")}#tD(){if(this.#tA){let{loadUtils:t}=this.#i,e=()=>{tg.attachUtils(t).catch(()=>{})};tg.documentReady()?e():window.addEventListener("load",e,{signal:this.#tv.signal})}this.#tw&&(this.#tC?this.#tw.resolve():this.#tW())}async #tW(){if(tg.autoCountry)return void this.#tU();if(this.#td.setLoading(!0),!tg.startedLoadingAutoCountry&&(tg.startedLoadingAutoCountry=!0,"function"==typeof this.#i.initialCountryLookup)){let e;try{let i=await Promise.race([this.#i.initialCountryLookup(),new Promise((t,i)=>{e=setTimeout(()=>i(Error("intl-tel-input: initialCountryLookup timed out after 10s")),1e4)})]),l="string"==typeof i?i.toLowerCase():"";if(!s(l)){tg.startedLoadingAutoCountry=!1,t.forEachInstance("handleAutoCountryFailure");return}tg.autoCountry=l,setTimeout(()=>t.forEachInstance("handleAutoCountryLoaded"))}catch{tg.startedLoadingAutoCountry=!1,t.forEachInstance("handleAutoCountryFailure")}finally{void 0!==e&&clearTimeout(e)}}}#tB(){this.openCountrySelector(),this.#td.prefillSearchWithPlus()}#tz(t){let e=this.#td.telInputEl.selectionStart||0,i=t.substring(0,e-1),l=t.substring(e);return this.#tT(i+l),e-1}#tM(){this.#tH(),this.#tq(),this.#tK()}#tG(t){this.#tz(t),this.#tB()}#tY(t,e){let i=this.#tz(t);this.#td.telInputEl.setSelectionRange(i,i),this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"key",rejectedInput
1:e,reason:"invalid"})}#tQ(t,e){var i,l,s,r;let n,o,a=this.#td.telInputEl.selectionStart||0,u=t.substring(0,a).replace(v,"").length,h=(i=this.#tX(),l=tg.utils,s=this.#tC,r=this.#i.separateDialCode,n=l?l.formatNumberAsYouType(i,s?.iso2):i,o=s?.dialCode,r&&"+"!==t.charAt(0)&&n.includes(`+${o}`)?(n.split(`+${o}`)[1]||"").trim():n),d=((t,e,i,l)=>{if(0===i&&!l)return 0;let s=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&s++,s===t&&!l)return i+1;if(l&&s===t+1)return i}return e.length})(u,h,a,e);this.#tT(h),this.#td.telInputEl.setSelectionRange(d,d)}#tZ(t){if(t.startsWith("+")&&this.#tC&&this.#tP(t)){let e=ta(t,!0,!0,this.#tC);this.#tT(e)}}#tH(){this.#tS=b.test(this.#t_()),this.#td.telInputEl.addEventListener("input",this.#t0,{signal:this.#tv.signal})}#t0=t=>{let{strictMode:e,formatAsYouType:i,separateDialCode:l,countrySelectorMode:s,countrySearch:n}=this.#i,o=t?.detail;if(o?.isCountryChange)return;let a=this.#t_(),u=t?.inputType==="insertFromPaste",h=e&&u;if(this.#tc&&!u&&t?.data==="+"&&l&&s!==T.OFF&&n)return void this.#tG(a);if(this.#tc&&!u&&e&&(t?.data===" "||t?.data==="-"||t?.data==="."))return void this.#tY(a,t.data);if(h){if(this.#t1())return;a=this.#t_()}this.#t$(a)&&(this.#t2(),this.#tJ(r,{isCountryChange:!0}));let d=!h&&t?.data&&E.test(t.data),c=u&&a&&!e;d||c?this.#tS=!0:E.test(a)||(this.#tS=!1),i&&!this.#tS&&!o?.isSetNumber&&this.#tI.isAscii()&&this.#tQ(a,t?.inputType==="deleteContentForward"),l&&this.#tZ(a)};#tq(){let{strictMode:t,separateDialCode:e}=this.#i;(t||e)&&this.#td.telInputEl.addEventListener("keydown",this.#t6,{signal:this.#tv.signal})}#t6=t=>{let{strictMode:e,separateDialCode:i,countrySelectorMode:l,countrySearch:s}=this.#i;if(!t.key||1!==t.key.length||t.altKey||t.ctrlKey||t.metaKey)return;if(i&&l!==T.OFF&&s&&"+"===t.key){t.preventDefault(),this.#tB();return}if(!e)return;let r=this.#t_(),o=!r.startsWith("+")&&0===this.#td.telInputEl.selectionStart&&"+"===t.key,a=this.#tI.normalise(t.key),u=/^[0-9]$/.test(a),h=i?u:o||u,d=this.#td.telInputEl,c=d.selectionStart,p=d.selectionEnd,y=r.slice(0,c??void 0),m=r.slice(p??void 0),g=this.#t8(y+a+m),C=!1;tg.utils&&this.#tf&&(C=tg.utils.getCoreNumber(g,this.#tC?.iso2).length>this.#tf);let f=this.#t4(g);h&&(!C||null!==f||o)||(this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"key",rejectedInput:t.key,reason:h?"max-length":"invalid"}),t.preventDefault())};#tK(){this.#i.strictMode&&this.#td.telInputEl.addEventListener("paste",this.#t3,{signal:this.#tv.signal})}#t3=t=>{let e=this.#td.telInputEl,i=this.#t_();this.#tL={pastedRaw:t.clipboardData?.getData("text")??"",value:i,selectionStart:e.selectionStart??i.length,selectionEnd:e.selectionEnd??i.length}};#t1(){let t=this.#td.telInputEl,e=this.#tL;if(this.#tL=null,!e)return!1;let i=e.pastedRaw,l=e.value,s=e.selectionStart,r=e.selectionEnd,o=l.slice(0,s),a=l.slice(r),u=this.#tC?.iso2,h=this.#tI.normalise(i),d=0===s&&r>0,c=!l.startsWith("+")||d,p=h.replace(v,""),y=p.startsWith("+"),m=p.replace(/\+/g,""),g=y&&c?`+${m}
1`:m,C=o+g+a,f=g!==h?"invalid":null;if(C.length>30)return this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:"max-length"}),this.#t5(e),!0;if(C.length>5&&tg.utils){let t=tg.utils.getCoreNumber(C,u);for(;0===t.length&&C.length>0;)C=C.slice(0,-1),t=tg.utils.getCoreNumber(C,u);if(!t)return this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:"max-length"}),this.#t5(e),!0;if(this.#tf&&t.length>this.#tf)if(r!==l.length)return this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:"max-length"}),this.#t5(e),!0;else{let e=t.length-this.#tf;C=C.slice(0,C.length-e),f="max-length"}}this.#tT(C);let b=s+g.length;return t.setSelectionRange(b,b),f&&(h.length>0&&0===g.length&&this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:f})),!1}#t5(t){this.#tT(t.value),this.#td.telInputEl.setSelectionRange(t.selectionStart,t.selectionEnd)}#t9(t){let e=Number(this.#td.telInputEl.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}#tJ(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.#td.telInputEl.dispatchEvent(i)}openCountrySelector(){this.#td.isCountrySelectorOpen()||(this.#td.openCountrySelector(t=>this.#t7(t),()=>this.#tV()),this.#tJ("open:countryselector"))}#tj(t){let{numberDisplayFormat:e,separateDialCode:i}=this.#i,l=t;if(tg.utils&&this.#tC){let s,r=to(t),n=!l.startsWith("+")&&!i;s=e===N.NATIONAL&&!r||n?N.NATIONAL:e!==N.E164||r?N.INTERNATIONAL:N.E164,l=tg.utils.formatNumber(l,this.#tC?.iso2,s)}l=this.#et(l),this.#tT(l)}#t$(t){let e=this.#t4(t);return null!==e&&this.#tR(e)}#ee(t){let e=this.#tC?.dialCode,i=this.#tC?.nationalPrefix;if(t.startsWith("+")||!e)return t;let l=i&&t.startsWith(i)&&!this.#i.separateDialCode?t.substring(1):t;return`+${e}${l}`}#t4(t){let e=t.indexOf("+"),i=e>0?t.substring(e):t,l=this.#tC?.iso2;i=this.#ee(i);let s=this.#tP(i,!0),r=i.replace(/\D/g,"");if(s){let t=s.replace(/\D/g,""),e=this.#ty[t];return 1===e.length?e[0]===l?null:e[0]:this.#ei(e,t,r)}if(i.startsWith("+")&&r.length){let t=this.#tC?.dialCode||"";return t&&t.startsWith(r)?null:""}return i&&"+"!==i||l||!this.#tb?null:this.#tb}#ei(t,e,i){let l=this.#tC?.iso2,s=this.#tC?.dialCode;if(!l&&this.#tb&&t.includes(this.#tb))return this.#tb;if("1"===s&&th(i))return null;let r=this.#tC?.areaCodes,n=this.#tC?.priority;if(r){for(let t of r.map(t=>`${s}${t}`))if(i.startsWith(t))return null}let o=r&&0!==n&&i.length>e.length,a=l&&t.includes(l)&&!o,u=l===t[0];return a||u?null:t[0]}#tR(t){let e=this.#tC?.iso2||"";return this.#tC=t?this.#tg.get(t):null,this.#tC&&(this.#tb=this.#tC.iso2),this.#td.setSelectedCountry(this.#tC),this.#el(),this.#es(),e!==t}#es(){let{strictMode:t,placeholderNumberType:e,allowedNumberTypes:i}=this.#i;if(!t||!tg.utils)return;let l=this.#tC?.iso2;if(!l){this.#tf=null;return}let s=tg.utils.getExampleNumber(l,e,N.E164),r=s;for(;tg.utils.isValidNumber(s,l,i);)r=s,s+="0";let n=tg.utils.getCoreNumber(r,l);this.#tf=n.length,"by"===l&&(this.#tf=n.length+1)}#el(){let{placeholderNumberPolicy:t,placeholderNumberType:e,numberDisplayFormat:i,customPlaceholder:l}=this.#i,s=t===S.AGGRESSIVE||!this.#td.hadInitialPlaceholder&&t===S.POLITE;if(!tg.utils||!s)return;let r=this.#tC?tg.utils.getExampleNumber(this.#tC.iso2,e,i):"";r=this.#et(r),"function"==typeof l&&(r=l(r,this.#tC)),this.#td.telInputEl.setAttribute("placeholder",r)}#t7(t){if(!t)return;let e=t.dataset[k],i=this.#tR(e);this.#tV();let l=t.dataset[O];this.#er(l);let s=this.#t_();this.#tj(s),this.#td.telInputEl.focus(),i&&(this.#t2(),this.#tJ(r,{isCountryChange:!0}))}closeCountrySelector(){this.#tV()}#tV(t){this.#td.isCountrySelectorOpen()&&(!this.#i.dropdownAlwaysOpen||t)&&(this.#td.closeCountrySelector(),this.#tJ("close:countryselector"))}#er(t){let e,i=this.#t_();if(!i.startsWith("+"))return;let l=`+${t}`,s=this.#tP(i);e=s?i.replace(s,l):l,this.#tT(e)}#tP(t,e){if(!t.startsWith("+"))return"";let i="",l="",s=!1;for(let r=0;r<t.length;r++){let n=t.charAt(r);if(/[0-9]/.test(n)){if(l+=n,!this.#ty[l])break;if(this.#tm.has(l)){if(i=t.substring(0,r+1),s=!0,!e)break}else e&&s&&(i=t.substring(0,r+1));if(l.length===this.#tp)break}}return i}#t8(t){let e=this.#tC?.dialCode,i=t.replace(/\D/g,"");return(this.#i.separateDialCode&&!t.startsWith("+")&&e&&i?`+${e}`:"")+t}#tX(){let t=this.#t_();return this.#t8(t)}#et(t){let e=!!this.#tP(t),i=ta(t,e,this.#i.separateDialCode,this.#tC);return this.#t9(i)}#t2(){this.#tJ("countrychange",this.#tC??null)}#tU(){if(!this.#tw||!tg.autoCountry)return;
1if(!this.#tE)return void this.#tw.resolve();let t=document.activeElement===this.#td.telInputEl,e=!!this.#t_();this.#td.isLoading()&&!(t&&e)?this.setSelectedCountry(tg.autoCountry):this.#tb=tg.autoCountry,this.#td.setLoading(!1),this.#tw.resolve()}#en(){this.#tE&&(this.#tO(!0),this.#td.setLoading(!1)),this.#tw?.reject()}#eo(){if(!this.#tE||!tg.utils)return void this.#tA?.resolve();let t=this.#t_(),e=document.activeElement===this.#td.telInputEl;t&&!e&&this.#tj(t),this.#tC&&(this.#el(),this.#es()),this.#tA?.resolve()}#ea(t){this.#tE,this.#tA?.reject(t)}destroy(){this.#tE&&(this.#tE=!1,this.#i.countrySelectorMode!==T.OFF&&this.#tV(!0),this.#tv.abort(),this.#td.destroy(),tg.instances.delete(String(this.id)))}isActive(){return this.#tE}getExtension(){return this.#tE?(tc("getExtension"),tg.utils.getExtension(this.#tX(),this.#tC?.iso2)):""}getNumber(t){if(!this.#tE)return"";tc("getNumber");let e=this.#tC?.iso2,i=this.#tX(),l=tg.utils.formatNumber(i,e,t);return this.#tI.denormalise(l)}getNumberType(){return this.#tE?(tc("getNumberType"),tg.utils.getNumberType(this.#tX(),this.#tC?.iso2)):null}getSelectedCountry(){return this.#tC??null}getValidationError(){if(!this.#tE)return null;tc("getValidationError");let t=this.#tC?.iso2;return tg.utils.getValidationError(this.#tX(),t)}isValidNumber(){if(!this.#tE)return null;tc("isValidNumber");let t=this.#tC?.dialCode,e=this.#tC?.iso2,i=this.#tX(),l=tg.utils.getCoreNumber(i,e);if(l){if("44"===t&&"7"===l[0]&&10!==l.length)return!1;if(!b.test(i)&&t){let e=(i.startsWith("+")?i.slice(1+t.length):i).replace(/\D/g,"").length;if(l.length>e)return!1}}return this.#eu("possible")}isValidNumberPrecise(){return this.#tE?(tc("isValidNumberPrecise"),this.#eu("precise")):null}#eu(t){let{allowNumberExtensions:e,allowPhonewords:i,allowedNumberTypes:l}=this.#i,s=this.#tC?.iso2,r=this.#tX();return(!!this.#tC||!!to(r))&&!!("precise"===t?tg.utils.isValidNumberPrecise:tg.utils.isValidNumber)(r,s,l)&&(!b.test(r)||(tg.utils.getExtension(r,s)?e:i))}setSelectedCountry(t){if(!this.#tE)return;let e=t?.toLowerCase();if(!s(e))throw Error(`Invalid iso2 code: '${e}'`);let i=this.#tC?.iso2;if(!(t&&e!==i||!t&&i))return;this.#tR(e),this.#er(this.#tC?.dialCode||"");let l=this.#t_();this.#tj(l),this.#t2(),this.#tJ(r,{isCountryChange:!0})}setNumber(t){if(!this.#tE)return;let e=this.#tI.normalise(t),i=this.#t$(e);this.#tj(e),i&&this.#t2(),this.#tJ(r,{isSetNumber:!0})}setPlaceholderNumberType(t){this.#tE&&(this.#i.placeholderNumberType=t,this.#el())}setDisabled(t){this.#tE&&this.#td.setDisabled(t)}setReadonly(t){this.#tE&&this.#td.setReadonly(t)}static forEachInstance(e,...i){let l=[...tg.instances.values()],s=i[0];l.forEach(i=>{if(i instanceof t)switch(e){case"handleUtilsLoaded":i.#eo();break;case"handleUtilsFailure":i.#ea(s);break;case"handleAutoCountryLoaded":i.#tU();break;case"handleAutoCountryFailure":i.#en()}})}},tm=async t=>{if(tg.utils||tg.startedLoadingUtils)return null;if("function"!=typeof t)throw TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utils module, not ${typeof t}`);tg.startedLoadingUtils=!0;try{let e=await t(),i=e?.default;if(!i||"object"!=typeof i)throw TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return tg.utils=i,ty.forEachInstance("handleUtilsLoaded"),!0}catch(t){throw ty.forEachInstance("handleUtilsFailure",t),t}},tg=Object.assign((t,e)=>{let i=new ty(t,e);return tg.instances.set(String(i.id),i),t.iti=i,i},{defaults:B,documentReady:()=>"complete"===document.readyState,getAllCountries:()=>i,getInstance:t=>{let e=t.dataset[F];return e?tg.instances.get(e)??null:null},instances:new Map,attachUtils:tm,startedLoadingUtils:!1,startedLoadingAutoCountry:!1,version:"29.1.2",NUMBER_FORMAT:N,NUMBER_TYPE:x,VALIDATION_ERROR:_,PLACEHOLDER_POLICY:S,COUNTRY_SELECTOR_MODE:T});let tC={selectedCountryAriaLabel:"Land der Telefonnummer ändern, ausgewählt ${countryName} (${dialCode})",noCountrySelected:"Land der Telefonnummer auswählen",countryListAriaLabel:"Liste der Länder",searchPlaceholder:"Suchen",clearSearchAriaLabel:"Suche löschen",searchEmptyState:"Keine Suchergebnisse",searchSummaryAria:t=>
10===t?"Keine Suchergebnisse":1===t?"1 Suchergebnis":`${t} Suchergebnisse`},tf={selectedCountryAriaLabel:"Change country for phone number, currently selected ${countryName} (${dialCode})",noCountrySelected:"Select country for phone number",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",searchEmptyState:"No results found",searchSummaryAria:t=>0===t?"No results found":1===t?"1 result found":`${t} results found`};var tb=t.i(110982);let tE=` 2 :where(.iti__a11y-text) { 3 position: absolute; 4 width: 1px; 5 height: 1px; 6 overflow: hidden; 7 clip: rect(1px, 1px, 1px, 1px); 8 clip-path: inset(50%); 9 white-space: nowrap; 10 } 11 12 :where(.iti__hide) { 13 display: none !important; 14 } 15 16 :where(.iti__v-hide) { 17 visibility: hidden !important; 18 } 19 20 :where([data-maxmove-phone-input]) :where(.iti), 21 :where([data-maxmove-phone-input]) :where(.iti) * { 22 box-sizing: border-box; 23 } 24 25 :where([data-maxmove-phone-input]) :where(.iti__country-container) { 26 position: absolute; 27 top: 0; 28 bottom: 0; 29 left: 0; 30 padding: 1px; 31 } 32 33 :where([data-maxmove-phone-input]) :where(.iti__selected-country) { 34 position: relative; 35 z-index: 1; 36 display: flex; 37 align-items: center; 38 height: 100%; 39 margin: 0; 40 padding: 0; 41 border: 0; 42 border-radius: 0; 43 background: none; 44 color: inherit; 45 font: inherit; 46 } 47 48 :where([data-maxmove-phone-input]) :where(.iti__selected-country-primary) { 49 display: flex; 50 align-items: center; 51 height: 100%; 52 padding: 0 7px 0 10px; 53 } 54 55 :where([data-maxmove-phone-input]) :where(.iti__country-selector) { 56 position: absolute; 57 z-index: 2; 58 left: 0; 59 width: 100%; 60 max-width: calc(100vw - 32px); 61 max-height: 240px; 62 overflow: hidden; 63 border: 1px solid var(--iti-border-color, #cccccc); 64 border-radius: 10px; 65 background: var(--iti-country-selector-bg, #ffffff); 66 box-shadow: 0 8px 24px rgb(25 35 56 / 8%); 67 color: var(--phone-text-color, #192338); 68 font-family: inherit; 69 } 70 71 :where([data-maxmove-phone-input]) :where(.iti__search-input-wrapper) { 72 position: relative; 73 display: flex; 74 align-items: center; 75 border-bottom: 1px solid var(--iti-border-color, #cccccc); 76 } 77 78 :where([data-maxmove-phone-input]) :where(.iti__search-input) { 79 width: 100%; 80 padding: 8px 40px; 81 border: 0; 82 border-radius: 10px 10px 0 0; 83 background: #ffffff; 84 color: inherit; 85 font: inherit; 86 } 87 88 :where([data-maxmove-phone-input]) :where(.iti__search-input:focus) { 89 outline: none; 90 } 91 92 :where([data-maxmove-phone-input]) :where(.iti__search-icon) { 93 position: absolute; 94 left: 10px; 95 display: flex; 96 pointer-events: none; 97 } 98 99 :where([data-maxmove-phone-input]) :where(.iti__search-icon-svg) { 100 display: block; 101 width: 17px; 102 height: 17px; 103 } 104 105 :where([data-maxmove-phone-input]) :where(.iti__search-clear) { 106 position: absolute; 107 right: 5px; 108 display: flex; 109 align-items: center; 110 justify-content: center; 111 padding: 5px; 112 border: 0; 113 background: transparent; 114 } 115 116 :where([data-maxmove-phone-input]) :where(.iti__search-clear-svg) { 117 display: block; 118 width: 15px; 119 height: 15px; 120 } 121 122 :where([data-maxmove-phone-input]) :where(.iti__country-list) { 123 max-height: 185px; 124 margin: 0; 125 padding: 0; 126 overflow-y: auto; 127 list-style: none; 128 cursor: pointer; 129 } 130 131 :where([data-maxmove-phone-input]) :where(.iti__country) { 132 display: flex; 133 align-items: center; 134 padding: 8px 10px; 135 outline: none; 136 } 137 138 :where([data-maxmove-phone-input]) :where(.iti__country-name) { 139 flex-grow: 1; 140 } 141 142 :where([data-maxmove-phone-input]) :where(.iti__country-check) { 143 display: flex; 144 align-items: center; 145 margin-left: 10px; 146 } 147 148 :where([data-maxmove-phone-input]) :where(.iti__country-check-svg) { 149 display: block; 150 width: 15px; 151 height: 15px; 152 } 153 154 :where([data-maxmove-phone-input]) :where(.iti__no-results) { 155 padding: 30px 0; 156 text-align: center; 157 } 158 159 :where(.iti--fullscreen-popup.iti--detached-country-selector) { 160 position: fixed; 161 z-index: 1060; 162 inset: 0; 163 display: flex; 164 flex-direction: column; 165 justify-content: flex-start; 166 padding: 30px; 167 background: rgb(0 0 0 / 50%); 168 } 169 170 :where(.iti--fullscreen-popup) :where(.iti__country-selector) { 171 position: relative; 172 display: flex; 173 flex-direction: column; 174 max-height: 100%; 175 overflow: hidden; 176 border-radius: 10px; 177 background: var(--iti-country-selector-bg, #ffffff); 178 } 179 180 :where(.iti--fullscreen-popup) :where(.iti__country-list) { 181 min-height: 0; 182 margin: 0; 183 padding: 0; 184 overflow-y: auto; 185 list-style: none; 186 } 187`,tv="de",tI=["de","at","ch","nl","be","lu","fr","cz","pl","dk"];var tS=t.i(403586);let tL=new Map(tg.getAllCountries().map(t=>[t.iso2,t.iso2])),tw=t=>{let e=t?.toLowerCase().replace(/[^a-z]/g,"")??"";return tL.get(e)??tL.get(tv)??"de"};
187t.s(["PhoneInput",0,({label:i,value:l,onChange:s,onValueChange:r,className:n="",id:o="phoneNumber",type:a="tel",size:u="lg",variant:h="outline",onInternationalNumberChange:d,onValidityChange:c,locale:p="en",defaultCountry:y=tv,preferredCountries:m=tI,onlyCountries:g,allowedNumberTypes:C,allowCountrySelection:f=!0,errorText:b,placeholder:E,"aria-describedby":v,"aria-invalid":I,...S})=>{let L=(0,tb.useRef)(null),w=(0,tb.useRef)(null),A=(0,tb.useRef)(null),N=(0,tb.useRef)(d),x=(0,tb.useRef)(c),[_,T]=(0,tb.useState)(!1),[k,O]=(0,tb.useState)(!1),[F,D]=(0,tb.useState)(()=>tw(y)),P=m.join(","),R=g?.join(",")??"",$=C?.join(",")??"",j=p.toLowerCase().startsWith("de")?"de":"en",M="de"===j?tC:tf,V=`${o}-error`,W=[v,b?V:void 0].filter(Boolean).join(" "),U=!!b||!0===I||"true"===I,B="lg"===u?62:58,z={"--phone-label-rest-top":`${B/2-11.700000000000001}px`,"--phone-label-float-top":"6px","--phone-label-rest-size":"18px","--phone-label-float-size":"12px",..."filled"===h&&{"--phone-bg":"#e8e8e8","--phone-radius":"16px","--phone-border-color":"transparent","--phone-divider-color":"#d0d0d0"}};(0,tb.useEffect)(()=>{N.current=d},[d]),(0,tb.useEffect)(()=>{x.current=c},[c]);let H=()=>{if(!w.current)return;let t=tw(w.current.getSelectedCountry()?.iso2||y);D(t);let e=L.current?.closest(".iti")?.querySelector(".iti__flag");e instanceof HTMLElement&&Array.from(e.classList).some(t=>t.startsWith("iti__")&&"iti__flag"!==t)||w.current.setSelectedCountry(t),tg.utils&&(N.current?.(w.current.getNumber()??""),x.current?.(w.current.isValidNumber()??!1))},q=()=>{var e,l;let s;if(!L.current||w.current&&L.current.closest(".iti"))return;A.current?.();let r=tg(L.current,{initialCountry:tw(y),countryNameLocale:j,countryOrder:m.map(tw),...g?{onlyCountries:g.map(tw)}:{},...C?{allowedNumberTypes:[...C]}:{},countrySelectorMode:f?"AUTO":"OFF",placeholderNumberPolicy:"OFF",separateDialCode:!1,uiTranslations:M,loadUtils:()=>t.A(224714)});w.current=r;let n=L.current.closest(".iti");n instanceof HTMLElement&&(n.style.width="100%",n.style.display="block",n.style.position="relative"),e=L.current,l=M.countryListAriaLabel??i,!(s=e.closest(".iti")?.querySelector('[role="dialog"]'))||s.getAttribute("aria-label")||s.getAttribute("aria-labelledby")||s.setAttribute("aria-label",l),r.promise.then(()=>{H()});let o=L.current,a=()=>{H()};o?.addEventListener("countrychange",a),A.current=()=>{o?.removeEventListener("countrychange",a),r.destroy(),w.current===r&&(w.current=null)}};(0,tb.useEffect)(()=>(q(),()=>{A.current?.(),A.current=null}),[f,$,y,R,j,P]);let K=()=>{L.current&&O(L.current.value.length>0),H()};return(0,tb.useEffect)(()=>{w.current&&l!==L.current?.value&&(w.current.setNumber(l),O(l.length>0)),H()},[l]),(0,tb.useEffect)(()=>{let t=()=>{!L.current||w.current&&L.current.closest(".iti")||q(),requestAnimationFrame(K)},e=()=>{"visible"===document.visibilityState&&t()};return window.addEventListener("pageshow",t),window.addEventListener("focus",t),document.addEventListener("visibilitychange",e),t(),()=>{window.removeEventListener("pageshow",t),window.removeEventListener("focus",t),document.removeEventListener("visibilitychange",e)}},[l]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("style",{"data-maxmove-iti-fallback":"",dangerouslySetInnerHTML:{__html:` 188 ${tE} 189 .${tS.default.wrapper} .iti { 190 width: 100% !important; 191 display: block !important; 192 position: relative !important; 193 } 194 .${tS.default.wrapper} .iti input.iti__tel-input { 195 width: 100% !important; 196 height: ${B}px !important; 197 padding: 24px 12px 4px 56px !important; 198 border: 2px solid var(--phone-border-color, #E8EAEC) !important; 199 border-radius: var(--phone-radius, 10px) !important; 200 font-size: 18px !important; 201 line-height: 1.2 !important; 202 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif !important; 203 background: var(--phone-bg, #ffffff) !important; 204 transition: border-color 120ms ease, box-shadow 120ms ease !important; 205 } 206 .${tS.default.wrapper} .iti input.iti__tel-input:focus { 207 outline: none !important; 208 border-color: #192338 !important; 209 } 210 .${tS.default.wrapper}[data-invalid='true'] .iti input.iti__tel-input { 211 border-color: #dc2626 !important; 212 } 213 .${tS.default.wrapper} .iti__selected-country { 214 padding-left: 12px !important; 215 height: ${B}px !important; 216 position: relative !important; 217 } 218 .${tS.default.wrapper} .iti__arrow { 219 display: none !important; 220 } 221 `}}),(0,e.jsxs)("div",{className:tS.default.wrapper,"data-maxmove-phone-input":"","data-focused":_?"true":void 0,"data-has-value":k?"true":void 0,"data-invalid":U?"true":void 0,style:z,children:[(0,e.jsx)("span",{className:tS.default.flagFallback,"aria-hidden":"true",children:(0,e.jsx)("span",{className:`iti__flag iti__${F}`})}
221),(0,e.jsx)("input",{ref:L,id:o,type:a,value:l,onChange:t=>{O(t.target.value.length>0),s(t),r?.(t.target.value),H()},onFocus:()=>{T(!0),K()},onBlur:()=>{let t=L.current;if(t&&t.value!==l)if(r)r(t.value);else{let e=t.ownerDocument.createEvent("Event");e.initEvent("input",!0,!1),t.dispatchEvent(e)}T(!1),K()},className:n,placeholder:E??" ","aria-describedby":W||void 0,"aria-invalid":U||void 0,...S}),(0,e.jsx)("label",{htmlFor:o,className:tS.default.label,children:i}),b?(0,e.jsx)("p",{id:V,className:tS.default.error,role:"alert",children:b}):null]})]})}],948191)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.