PageSourceSearch

https://mybusinessapp.co.za/_next/static/chunks/99db332f2627aab2.js

js mybusinessapp.co.za collected 2026-10-02 02:12:30 UTC 56,691 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,699374,(t,e,i)=>{var r;r=()=>(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,s={},n={Iti:()=>U,default:()=>K};for(var l in n)t(s,l,{get:n[l],enumerable:!0});var a=[];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"]])a.push({name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,
1nodeById:{},nationalPrefix:t[4]||null,normalisedName:"",initials:"",dialCodePlus:""});var o={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"Åland Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barthélemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"Côte d’Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Curaçao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"Réunion",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"São Tomé & Príncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe",selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"},u="iti__hide",d="iti__v-hide",h="iti__arrow--up",c="iti__globe",p="iti__flag",m="iti__country",g="iti__highlight",b="ArrowUp",y="ArrowDown",f
1="Enter",C="Escape",k=/\p{L}/u,w=/[^+0-9]/,_=/[^+0-9]/g,I=/^[a-zA-ZÀ-ÿа-яА-Я ]$/,v="polite",x="auto",N="aria-expanded",L="aria-label",D="aria-selected",S="aria-activedescendant",T="aria-controls",A="aria-hidden",P=t=>"u">typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(t).matches,j={allowPhonewords:!1,allowDropdown:!0,autoPlaceholder:v,containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:(()=>{if("u">typeof navigator&&"u">typeof window){let t=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=P("(max-width: 500px)"),i=P("(max-height: 600px)"),r=P("(pointer: coarse)");return t||e||r&&i}return!1})(),validationNumberTypes:["MOBILE"]},$=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),B=t=>Object.keys(t).filter(e=>!!t[e]).join(" "),E=(t,e,i)=>{let r=document.createElement(t);return e&&Object.entries(e).forEach(([t,e])=>r.setAttribute(t,e)),i&&i.appendChild(r),r},M=class{constructor(t,e,i){this.highlightedItem=null,this.selectedItem=null,t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.options=e,this.id=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.separateDialCode&&(this.originalPaddingLeft=this.telInput.style.paddingLeft)}generateMarkup(t){this.countries=t,this._prepareTelInput();let e=this._createWrapperAndInsert();this._maybeBuildCountryContainer(e),e.appendChild(this.telInput),this._maybeUpdateInputPaddingAndReveal(),this._maybeBuildHiddenInputs(e)}_prepareTelInput(){this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.form?.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off")}_createWrapperAndInsert(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:r}=this.options,s=E("div",{class:B({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!r,[i]:!!i})});return this.isRTL&&s.setAttribute("dir","ltr"),this.telInput.before(s),s}_maybeBuildCountryContainer(t){let{allowDropdown:e,separateDialCode:i,showFlags:r}=this.options;if(e||r||i){this.countryContainer=E("div",{class:`iti__country-container ${d}`},t),e?(this.selectedCountry=E("button",{type:"button",class:"iti__selected-country",[N]:"false",[L]:this.options.i18n.noCountrySelected,"aria-haspopup":"dialog",[T]:`iti-${this.id}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=E("div",{class:"iti__selected-country"},this.countryContainer);let r=E("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=E("div",{class:p},r),e&&(this.dropdownArrow=E("div",{class:"iti__arrow",[A]:"true"},r)),i&&(this.selectedDialCode=E("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this._buildDropdownContent()}}_buildDropdownContent(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:r,dropdownContainer:s,containerClass:n}=this.options;if(this.dropdownContent=E("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content ${u} ${t?"":"iti--flexible-dropdown-width"}`,role:"dialog","aria-modal":"true"}),this.isRTL&&this.dropdownContent.setAttribute("dir","rtl"),i&&this._buildSearchUI(),this.countryList=E("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox",[L]:r.countryListAriaLabel},this.dropdownContent),this._appendListItems(),i&&this.updateSearchResultsA11yText(),s){let t=B({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[n]:!!n});this.dropdown=E("div",{class:t}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}_buildSearchUI(){var t;let e,{i18n:i}=this.options,r=E("div",{class:"iti__search-input-wrapper"},this.dropdownContent);this.searchIcon=E("span",{class:"iti__search-icon",[A]:"true"},r),this.searchIcon.innerHTML=`
2  <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${A}="true">
3    <circle cx="11" cy="11" r="7" />
4    <line x1="21" y1="21" x2="16.65" y2="16.65" />
5  </svg>`,this.searchInput=E("input",{id:`iti-${this.id}__search-input`,type:"search",class:"iti__search-input",placeholder:i.searchPlaceholder,role:"combobox",[N]:"true",[L]:i.searchPlaceholder,[T]:`iti-${this.id}__country-listbox`,"aria-autocomplete":"list",autocomplete:"off"},r),this.searchClearButton=E("button",{type:"button",class:`iti__search-clear ${u}`,[L]:i.clearSearchAriaLabel,tabindex:"-1"},r),this.searchClearButton.innerHTML=(t=this.id,e=`iti-${t}-clear-mask`,`
6    <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${A}="true" focusable="false">
7      <mask id="${e}" maskUnits="userSpaceOnUse">
8        <rect width="16" height="16" fill="white" />
9        <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" />
10      </mask>
11      <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${e})" />
12    </svg>`),this.searchResultsA11yText=E("span",{class:"iti__a11y-text"},this.dropdownContent),this.searchNoResults=E("div",{class:`iti__no-results ${u}`,[A]:"true"},this.dropdownContent),this.searchNoResults.textContent=i.zeroSearchResults}_maybeUpdateInputPaddingAndReveal(){this.countryContainer&&(this.updateInputPadding(),this.countryContainer.classList.remove(d))}
12_maybeBuildHiddenInputs(t){let{hiddenInput:e}=this.options;if(e){let i=e(this.telInput.getAttribute("name")||"");if(i.phone){let e=this.telInput.form?.querySelector(`input[name="${i.phone}"]`);e?this.hiddenInput=e:(this.hiddenInput=E("input",{type:"hidden",name:i.phone}),t.appendChild(this.hiddenInput))}if(i.country){let e=this.telInput.form?.querySelector(`input[name="${i.country}"]`);e?this.hiddenInputCountry=e:(this.hiddenInputCountry=E("input",{type:"hidden",name:i.country}),t.appendChild(this.hiddenInputCountry))}}}_appendListItems(){let t=document.createDocumentFragment();for(let e=0;e<this.countries.length;e++){let i=this.countries[e],r=B({[m]:!0}),s=E("li",{id:`iti-${this.id}__item-${i.iso2}`,class:r,tabindex:"-1",role:"option",[D]:"false"});s.dataset.dialCode=i.dialCode,s.dataset.countryCode=i.iso2,i.nodeById[this.id]=s,this.options.showFlags&&E("div",{class:`${p} iti__${i.iso2}`},s),E("span",{class:"iti__country-name"},s).textContent=i.name;let n=E("span",{class:"iti__dial-code"},s);this.isRTL&&n.setAttribute("dir","ltr"),n.textContent=`+${i.dialCode}`,t.appendChild(s)}this.countryList.appendChild(t)}updateInputPadding(){if(this.selectedCountry){let t=this.options.separateDialCode?78:42,e=this.selectedCountry.offsetWidth||this._getHiddenSelectedCountryWidth()||t;this.telInput.style.paddingLeft=`${e+6}px`}}_getHiddenSelectedCountryWidth(){if(this.telInput.parentNode){let t;try{t=window.top.document.body}catch(e){t=document.body}let e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let r=this.selectedCountry.cloneNode(!0);i.appendChild(r);let s=r.offsetWidth;return t.removeChild(e),s}return 0}updateSearchResultsA11yText(){let t,{i18n:e}=this.options,i=this.countryList.childElementCount;t=0===i?e.zeroSearchResults:e.searchResultsText?e.searchResultsText(i):1===i?e.oneSearchResult:e.multipleSearchResults.replace("${count}",i.toString()),this.searchResultsA11yText.textContent=t}scrollTo(t){let e=this.countryList,i=document.documentElement.scrollTop,r=e.offsetHeight,s=e.getBoundingClientRect().top+i,n=t.offsetHeight,l=t.getBoundingClientRect().top+i,a=l-s+e.scrollTop;l<s?e.scrollTop=a:l+n>s+r&&(e.scrollTop=a-(r-n))}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(g),this.highlightedItem=t,this.highlightedItem&&(this.highlightedItem.classList.add(g),this.options.countrySearch)){let t=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(S,t)}e&&this.highlightedItem.focus()}updateSelectedItem(t){if(this.selectedItem&&this.selectedItem.dataset.countryCode!==t&&(this.selectedItem.setAttribute(D,"false"),this.selectedItem=null),t&&!this.selectedItem){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);e&&(e.setAttribute(D,"true"),this.selectedItem=e)}}filterCountries(t){this.countryList.innerHTML="";let e=!0;for(let i of t){let t=i.nodeById[this.id];t&&(this.countryList.appendChild(t),e&&(this.highlightListItem(t,!1),e=!1))}e?(this.highlightListItem(null,!1),this.searchNoResults&&this.searchNoResults.classList.remove(u)):this.searchNoResults&&this.searchNoResults.classList.add(u),this.countryList.scrollTop=0,this.updateSearchResultsA11yText()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.options.separateDialCode&&(this.telInput.style.paddingLeft=this.originalPaddingLeft);let t=this.telInput.parentNode;for(let e of(t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.selectedDialCode=null,this.dropdownArrow=null,this.dropdownContent=null,this.searchInput=null,this.searchIcon=null,this.searchClearButton=null,this.searchNoResults=null,this.searchResultsA11yText=null,this.countryList=null,this.dropdown=null,this.hiddenInput=null,this.hiddenInputCountry=null,this.highlightedItem=null,this.selectedItem=null,this.countries))delete e.nodeById[this.id];this.countries=null}},R=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],z=t=>{let e=t.replace(/\D/g,"");if(e.startsWith("1")&&e.length>=4){let t=e.substring(1,4);return R.includes(t)}return!1};for(let t of a)t.name=o[t.iso2];var F=0,V=new Set(a.map(t=>t.iso2)),U=class t{constructor(e,i={}){this.id=F++,this.options={...j,...i},((t,e)=>{t.useFullscreenPopup&&(t.fixDropdownWidth=!1),1===t.onlyCountries.length&&(t.initialCountry=t.onlyCountries[0]),t.separateDialCode&&(t.nationalMode=!1),!t.allowDropdown||t.showFlags||t.separateDialCode||(t.nationalMode=!1),t.useFullscreenPopup&&!t.dropdownContainer&&(t.dropdownContainer=document.body),t.i18n={...e,...t.i18n}})(this.options,o),this.ui=new M(e,this.options,this.id),this.isAndroid=t._getIsAndroid(),this.promise=this._createInitPromises(),this.countries=(t=>{let{onlyCountries:e,excludeCountries:i}=t;if(e.length){let t=e.map(t=>t.toLowerCase());return a.filter(e=>t.includes(e.iso2))}if(i.length){let t=i.map(t=>t.toLowerCase());return a.filter(e=>!t.includes(e.iso2))}return a})(this.options);const{dialCodes:r,dialCodeMaxLen:s,dialCodeToIso2Map:n}=(t=>{let e=new Set,i=0,r={},s=(t,e)=>{if(!t||!e)return;e.length>i&&(i=e.length),r.hasOwnProperty(e)||(r[e]=[]);let s=r[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)}
12if(s(i.iso2,i.dialCode),i.areaCodes){let t=r[i.dialCode][0];for(let e of i.areaCodes){for(let r=1;r<e.length;r++){let n=e.substring(0,r),l=i.dialCode+n;s(t,l),s(i.iso2,l)}s(i.iso2,i.dialCode+e)}}}return{dialCodes:e,dialCodeMaxLen:i,dialCodeToIso2Map:r}})(this.countries);this.dialCodes=r,this.dialCodeMaxLen=s,this.dialCodeToIso2Map=n,this.countryByIso2=new Map(this.countries.map(t=>[t.iso2,t])),this._init()}static _getIsAndroid(){return"u">typeof navigator&&/Android/i.test(navigator.userAgent)}_updateNumeralSet(t){/[\u0660-\u0669]/.test(t)?this.userNumeralSet="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.userNumeralSet="persian":this.userNumeralSet="ascii"}_mapAsciiToUserNumerals(t){if(this.userNumeralSet||this._updateNumeralSet(this.ui.telInput.value),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776;return t.replace(/[0-9]/g,t=>String.fromCharCode(e+Number(t)))}_normaliseNumerals(t){if(!t)return"";if(this._updateNumeralSet(t),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776,i="arabic-indic"===this.userNumeralSet?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,t=>String.fromCharCode(48+(t.charCodeAt(0)-e)))}_getTelInputValue(){let t=this.ui.telInput.value.trim();return this._normaliseNumerals(t)}_setTelInputValue(t){this.ui.telInput.value=this._mapAsciiToUserNumerals(t)}_createInitPromises(){return Promise.all([new Promise((t,e)=>{this.resolveAutoCountryPromise=t,this.rejectAutoCountryPromise=e}),new Promise((t,e)=>{this.resolveUtilsScriptPromise=t,this.rejectUtilsScriptPromise=e})])}_init(){this.selectedCountryData={},this.abortController=new AbortController,this._processCountryData(),this.ui.generateMarkup(this.countries),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){var t,e;for(let i of(((t,e)=>{for(let i of t){let t=i.iso2.toLowerCase();e.i18n[t]&&(i.name=e.i18n[t])}})(this.countries,this.options),t=this.countries,(e=this.options).countryOrder&&(e.countryOrder=e.countryOrder.map(t=>t.toLowerCase())),t.sort((t,i)=>{let{countryOrder:r}=e;if(r){let e=r.indexOf(t.iso2),s=r.indexOf(i.iso2),n=e>-1,l=s>-1;if(n||l)return n&&l?e-s:n?-1:1}return t.name.localeCompare(i.name)}),this.countries))i.normalisedName=$(i.name),i.initials=i.normalisedName.split(/[^a-z]/).map(t=>t[0]).join(""),i.dialCodePlus=`+${i.dialCode}`}_setInitialState(t=!1){let e=this.ui.telInput.getAttribute("value"),i=this._normaliseNumerals(e),r=this._getTelInputValue(),s=i&&i.startsWith("+")&&(!r||!r.startsWith("+"))?i:r,n=this._getDialCode(s),l=z(s),{initialCountry:a,geoIpLookup:o}=this.options,u=a===x&&o;if(n&&!l)this._updateCountryFromNumber(s);else if(!u||t){let t=a?a.toLowerCase():"";V.has(t)?this._setCountry(t):n&&l?this._setCountry("us"):this._setCountry("")}s&&this._updateValFromNumber(s)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.ui.hiddenInput||this.ui.hiddenInputCountry)&&this.ui.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){let t=()=>{this.ui.hiddenInput&&(this.ui.hiddenInput.value=this.getNumber()),this.ui.hiddenInputCountry&&(this.ui.hiddenInputCountry.value=this.selectedCountryData.iso2||"")};this.ui.telInput.form?.addEventListener("submit",t,{signal:this.abortController.signal})}_initDropdownListeners(){let t=this.abortController.signal,e=t=>{this.ui.dropdownContent.classList.contains(u)?this.ui.telInput.focus():t.preventDefault()},i=this.ui.telInput.closest("label");i&&i.addEventListener("click",e,{signal:t});let r=()=>{!this.ui.dropdownContent.classList.contains(u)||this.ui.telInput.disabled||this.ui.telInput.readOnly||this._openDropdown()};this.ui.selectedCountry.addEventListener("click",r,{signal:t});let s=t=>{this.ui.dropdownContent.classList.contains(u)&&[b,y," ",f].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._openDropdown()),"Tab"===t.key&&this._closeDropdown()};this.ui.countryContainer.addEventListener("keydown",s,{signal:t})}_initRequests(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;if(t&&!O.utils){let e=()=>{O.attachUtils(t)?.catch(()=>{})};O.documentReady()?e():window.addEventListener("load",()=>{e()},{signal:this.abortController.signal})}else this.resolveUtilsScriptPromise();e===x&&i&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}_loadAutoCountry(){O.autoCountry?this.handleAutoCountry():O.startedLoadingAutoCountry||(O.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();V.has(e)?(O.autoCountry=e,setTimeout(()=>W("handleAutoCountry"))):(this._setInitialState(!0),W("rejectAutoCountryPromise"))},()=>{this._setInitialState(!0),W("rejectAutoCountryPromise")}))}_openDropdownWithPlus(){this._openDropdown(),this.ui.searchInput.value="+",this._filterCountriesByQuery("")}_initTelInputListeners(){this._bindInputListener(),this._maybeBindKeydownListener(),this._maybeBindPasteListener()}_bindInputListener(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:r,countrySearch:s}=this.options,n=!1;
12k.test(this._getTelInputValue())&&(n=!0);let l=l=>{let a=this._getTelInputValue();if(this.isAndroid&&l?.data==="+"&&i&&r&&s){let t=this.ui.telInput.selectionStart||0,e=a.substring(0,t-1),i=a.substring(t);this._setTelInputValue(e+i),this._openDropdownWithPlus();return}this._updateCountryFromNumber(a)&&this._triggerCountryChange();let o=l?.data&&w.test(l.data),u=l?.inputType==="insertFromPaste"&&a;o||u&&!t?n=!0:w.test(a)||(n=!1);let d=l?.detail&&l.detail.isSetNumber,h="ascii"===this.userNumeralSet;if(e&&!n&&!d&&h){let t=this.ui.telInput.selectionStart||0,e=a.substring(0,t).replace(_,"").length,i=l?.inputType==="deleteContentForward",r=((t,e,i,r,s)=>{let n=i?i.formatNumberAsYouType(t,r.iso2):t,{dialCode:l}=r;return s&&"+"!==e.charAt(0)&&n.includes(`+${l}`)?(n.split(`+${l}`)[1]||"").trim():n})(this._getFullNumber(),a,O.utils,this.selectedCountryData,this.options.separateDialCode),s=((t,e,i,r)=>{if(0===i&&!r)return 0;let s=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&s++,s===t&&!r)return i+1;if(r&&s===t+1)return i}return e.length})(e,r,t,i);this._setTelInputValue(r),this.ui.telInput.setSelectionRange(s,s)}};this.ui.telInput.addEventListener("input",l,{signal:this.abortController.signal})}_maybeBindKeydownListener(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:r}=this.options;if(t||e){let s=s=>{if(s.key&&1===s.key.length&&!s.altKey&&!s.ctrlKey&&!s.metaKey){if(e&&i&&r&&"+"===s.key){s.preventDefault(),this._openDropdownWithPlus();return}if(t){let t=this._getTelInputValue(),i=!t.startsWith("+")&&0===this.ui.telInput.selectionStart&&"+"===s.key,r=this._normaliseNumerals(s.key),n=/^[0-9]$/.test(r),l=e?n:i||n,a=this.ui.telInput,o=a.selectionStart,u=a.selectionEnd,d=t.slice(0,o),h=t.slice(u),c=d+s.key+h,p=this._getFullNumber(c),m=O.utils.getCoreNumber(p,this.selectedCountryData.iso2),g=this.maxCoreNumberLength&&m.length>this.maxCoreNumberLength,b=this._getNewCountryFromNumber(p);l&&(!g||null!==b||i)||s.preventDefault()}}};this.ui.telInput.addEventListener("keydown",s,{signal:this.abortController.signal})}}_maybeBindPasteListener(){if(this.options.strictMode){let t=t=>{t.preventDefault();let e=this.ui.telInput,i=e.selectionStart,r=e.selectionEnd,s=this._getTelInputValue(),n=s.slice(0,i),l=s.slice(r),a=this.selectedCountryData.iso2,o=t.clipboardData.getData("text"),u=this._normaliseNumerals(o),d=0===i&&r>0,h=!s.startsWith("+")||d,c=u.replace(_,""),p=c.startsWith("+"),m=c.replace(/\+/g,""),g=p&&h?`+${m}`:m,b=n+g+l;if(b.length>5){let t=O.utils.getCoreNumber(b,a);for(;0===t.length&&b.length>0;)b=b.slice(0,-1),t=O.utils.getCoreNumber(b,a);if(!t)return;if(this.maxCoreNumberLength&&t.length>this.maxCoreNumberLength)if(e.selectionEnd!==s.length)return;else{let e=t.length-this.maxCoreNumberLength;b=b.slice(0,b.length-e)}}this._setTelInputValue(b);let y=i+g.length;e.setSelectionRange(y,y),e.dispatchEvent(new InputEvent("input",{bubbles:!0}))};this.ui.telInput.addEventListener("paste",t,{signal:this.abortController.signal})}}_cap(t){let e=Number(this.ui.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.ui.telInput.dispatchEvent(i)}_openDropdown(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(this.dropdownAbortController=new AbortController,t&&(this.ui.dropdownContent.style.width=`${this.ui.telInput.offsetWidth}px`),this.ui.dropdownContent.classList.remove(u),this.ui.selectedCountry.setAttribute(N,"true"),this._setDropdownPosition(),e){let t=this.ui.countryList.firstElementChild;t&&(this.ui.highlightListItem(t,!1),this.ui.countryList.scrollTop=0),this.ui.searchInput.focus()}this._bindDropdownListeners(),this.ui.dropdownArrow.classList.add(h),this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.ui.dropdown),!this.options.useFullscreenPopup){let t=this.ui.telInput.getBoundingClientRect(),e=this.ui.telInput.offsetHeight;if(this.options.dropdownContainer){this.ui.dropdown.style.top=`${t.top+e}px`,this.ui.dropdown.style.left=`${t.left}px`;let i=()=>this._closeDropdown();window.addEventListener("scroll",i,{signal:this.dropdownAbortController.signal})}}}_bindDropdownListeners(){let t=this.dropdownAbortController.signal;this._bindDropdownMouseoverListener(t),this._bindDropdownCountryClickListener(t),this._bindDropdownClickOffListener(t),this._bindDropdownKeydownListener(t),this.options.countrySearch&&this._bindDropdownSearchListeners(t)}_bindDropdownMouseoverListener(t){let e=t=>{let e=t.target?.closest(`.${m}`);e&&this.ui.highlightListItem(e,!1)};this.ui.countryList.addEventListener("mouseover",e,{signal:t})}_bindDropdownCountryClickListener(t){let e=t=>{let e=t.target?.closest(`.${m}`);e&&this._selectListItem(e)};this.ui.countryList.addEventListener("click",e,{signal:t})}_bindDropdownClickOffListener(t){let e=t=>{t.target.closest(`#iti-${this.id}__dropdown-content`)||this._closeDropdown()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}_bindDropdownKeydownListener(t){let e="",i=null,r=t=>{[b,y,f,C].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key===b||t.key===y?this._handleUpDownKey(t.key):t.key===f?this._handleEnterKey():t.key===C&&(this._closeDropdown(),this.ui.selectedCountry.focus())),!this.options.countrySearch&&I.test(t.key)&&(t.stopPropagation(),i&&clearTimeout(i),e+=t.key.toLowerCase(),this._searchForCountry(e),i=setTimeout(()=>{e=""},1e3))};document.addEventListener("keydown",r,{signal:t})}_bindDropdownSearchListeners(t){let e=()=>{let t=this.ui.searchInput.value.trim();this._filterCountriesByQuery(t),this.ui.searchInput.value?this.ui.searchClearButton.classList.remove(u):this.ui.searchClearButton.classList.add(u)},i=null;this.ui.searchInput.addEventListener("input",()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)},{signal:t});let r=()=>{this.ui.searchInput.value="",this.ui.searchInput.focus(),e()};this.ui.searchClearButton.addEventListener("click",r,{signal:t})}_searchForCountry(t){let e=((t,e)=>{let i=e.toLowerCase();for(let e of t)if(e.name.toLowerCase().startsWith(i))return e;return null})(this.countries,t);if(e){let t=e.nodeById[this.id];this.ui.highlightListItem(t,!1),this.ui.scrollTo(t)}}_filterCountriesByQuery(t){let e;e=""===t?this.countries:((t,e)=>{let i=$(e),r=[],s=[],n=[],l=[],a=[],o=[];for(let e of t)e.iso2===i?r.push(e):e.normalisedName.startsWith(i)?s.push(e):e.normalisedName.includes(i)?n.push(e):i===e.dialCode||i===e.dialCodePlus?l.push(e):e.dialCodePlus.includes(i)?a.push(e):e.initials.includes(i)&&o.push(e);let u=(t,e)=>t.priority-e.priority;return[...r.sort(u),...s.sort(u),...n.sort(u),...l.sort(u),...a.sort(u),...o.sort(u)]})(this.countries,t),this.ui.filterCountries(e)}_handleUpDownKey(t){let e=t===b?this.ui.highlightedItem?.previousElementSibling:this.ui.highlightedItem?.nextElementSibling;!e&&this.ui.countryList.childElementCount>1&&(e=t===b?this.ui.countryList.lastElementChild:this.ui.countryList.firstElementChild),e&&(this.ui.scrollTo(e),this.ui.highlightListItem(e,!1))}_handleEnterKey(){this.ui.highlightedItem&&this._selectListItem(this.ui.highlightedItem)}_updateValFromNumber(t){let e=t;if(this.options.formatOnDisplay&&O.utils&&this.selectedCountryData){let t=this.options.nationalMode||!e.startsWith("+")&&!this.options.separateDialCode,{NATIONAL:i,INTERNATIONAL:r}=O.utils.numberFormat;e=O.utils.formatNumber(e,this.selectedCountryData.iso2,t?i:r)}e=this._beforeSetNumber(e),this._setTelInputValue(e)}_updateCountryFromNumber(t){let e=this._getNewCountryFromNumber(t);return null!==e&&this._setCountry(e)}_ensureHasDialCode(t){let{dialCode:e,nationalPrefix:i}=this.selectedCountryData;if(t.startsWith("+")||!e)return t;let r=i&&t.startsWith(i)&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${r}`}_getNewCountryFromNumber(t){let e=t.indexOf("+"),i=e?t.substring(e):t,r=this.selectedCountryData.iso2,s=this.selectedCountryData.dialCode;i=this._ensureHasDialCode(i);let n=this._getDialCode(i,!0),l=i.replace(/\D/g,"");if(n){let t=n.replace(/\D/g,""),e=this.dialCodeToIso2Map[t];if(1===e.length)return e[0]===r?null:e[0];if(!r&&this.defaultCountry&&e.includes(this.defaultCountry))return this.defaultCountry;if("1"===s&&z(l))return null;let{areaCodes:i,priority:a}=this.selectedCountryData;if(i){for(let t of i.map(t=>`${s}${t}`))if(l.startsWith(t))return null}let o=i&&0!==a&&l.length>t.length,u=r&&e.includes(r)&&!o,d=r===e[0];if(!u&&!d)return e[0]}else if(i.startsWith("+")&&l.length){let t=this.selectedCountryData.dialCode||"";return t&&t.startsWith(l)?null:""}else if((!i||"+"===i)&&!r)return this.defaultCountry;return null}_setCountry(t){let{separateDialCode:e,showFlags:i,i18n:r,allowDropdown:s}=this.options,n=this.selectedCountryData.iso2||"";if(s&&this.ui.updateSelectedItem(t),this.selectedCountryData=t?this.countryByIso2.get(t):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.ui.selectedCountry){let e,s,n=t&&i?`${p} iti__${t}`:`${p} ${c}`;if(t){let{name:t,dialCode:i}=this.selectedCountryData;s=t,e=r.selectedCountryAriaLabel.replace("${countryName}",t).replace("${dialCode}",`+${i}`)}else s=r.noCountrySelected,e=r.noCountrySelected;this.ui.selectedCountryInner.className=n,this.ui.selectedCountry.setAttribute("title",s),this.ui.selectedCountry.setAttribute(L,e)}if(e){let t=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.ui.selectedDialCode.textContent=t,this.ui.updateInputPadding()}return this._updatePlaceholder(),this._updateMaxLength(),n!==t}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,validationNumberTypes:i}=this.options,{iso2:r}=this.selectedCountryData;if(t&&O.utils)if(r){let t=O.utils.numberType[e],s=O.utils.getExampleNumber(r,!1,t,!0),n=s;for(;O.utils.isPossibleNumber(s,r,i);)n=s,s+="0";let l=O.utils.getCoreNumber(n,r);this.maxCoreNumberLength=l.length,"by"===r&&(this.maxCoreNumberLength=l.length+1)}else this.maxCoreNumberLength=null}_updatePlaceholder(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:r}=this.options,s="aggressive"===t||!this.ui.hadInitialPlaceholder&&t===v;if(O.utils&&s){let t=O.utils.numberType[e],s=this.selectedCountryData.iso2?O.utils.getExampleNumber(this.selectedCountryData.iso2,i,t):"";s=this._beforeSetNumber(s),"function"==typeof r&&(s=r(s,this.selectedCountryData)),this.ui.telInput.setAttribute("placeholder",s)}}_selectListItem(t){let e=t.dataset.countryCode,i=this._setCountry(e);this._closeDropdown();let r=t.dataset.dialCode;if(this._updateDialCode(r),this.options.formatOnDisplay){let t=this._getTelInputValue();
12this._updateValFromNumber(t)}this.ui.telInput.focus(),i&&this._triggerCountryChange()}_closeDropdown(){this.ui.dropdownContent.classList.contains(u)||(this.ui.dropdownContent.classList.add(u),this.ui.selectedCountry.setAttribute(N,"false"),this.options.countrySearch&&(this.ui.searchInput.removeAttribute(S),this.ui.highlightedItem&&(this.ui.highlightedItem.classList.remove(g),this.ui.highlightedItem=null)),this.ui.dropdownArrow.classList.remove(h),this.dropdownAbortController.abort(),this.dropdownAbortController=null,this.options.dropdownContainer&&this.ui.dropdown.remove(),this._trigger("close:countrydropdown"))}_updateDialCode(t){let e,i=this._getTelInputValue(),r=`+${t}`;if(i.startsWith("+")){let t=this._getDialCode(i);e=t?i.replace(t,r):r,this._setTelInputValue(e)}}_getDialCode(t,e){let i="";if(t.startsWith("+")){let r="",s=!1;for(let n=0;n<t.length;n++){let l=t.charAt(n);if(/[0-9]/.test(l)){if(r+=l,!this.dialCodeToIso2Map[r])break;if(this.dialCodes.has(r)){if(i=t.substring(0,n+1),s=!0,!e)break}else e&&s&&(i=t.substring(0,n+1));if(r.length===this.dialCodeMaxLen)break}}}return i}_getFullNumber(t){let e=t?this._normaliseNumerals(t):this._getTelInputValue(),{dialCode:i}=this.selectedCountryData,r=e.replace(/\D/g,"");return(this.options.separateDialCode&&!e.startsWith("+")&&i&&r?`+${i}`:"")+e}_beforeSetNumber(t){let e=this._getDialCode(t),i=((t,e,i,r)=>{let s=t;if(i&&e){let t=" "===s[(e=`+${r.dialCode}`).length]||"-"===s[e.length]?e.length+1:e.length;s=s.substring(t)}return s})(t,e,this.options.separateDialCode,this.selectedCountryData);return this._cap(i)}_triggerCountryChange(){this._trigger("countrychange")}handleAutoCountry(){this.options.initialCountry===x&&O.autoCountry&&(this.defaultCountry=O.autoCountry,this.selectedCountryData.iso2||this.ui.selectedCountryInner.classList.contains(c)||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}handleUtils(){if(O.utils){let t=this._getTelInputValue();t&&this._updateValFromNumber(t),this.selectedCountryData.iso2&&(this._updatePlaceholder(),this._updateMaxLength())}this.resolveUtilsScriptPromise()}destroy(){this.ui.telInput&&(this.options.allowDropdown&&this._closeDropdown(),this.abortController.abort(),this.abortController=null,this.ui.destroy(),O.instances instanceof Map?O.instances.delete(this.id):delete O.instances[this.id])}getExtension(){return O.utils?O.utils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}getNumber(t){if(O.utils){let{iso2:e}=this.selectedCountryData,i=this._getFullNumber(),r=O.utils.formatNumber(i,e,t);return this._mapAsciiToUserNumerals(r)}return""}getNumberType(){return O.utils?O.utils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(O.utils){let{iso2:t}=this.selectedCountryData;return O.utils.getValidationError(this._getFullNumber(),t)}return -99}isValidNumber(){let{dialCode:t,iso2:e}=this.selectedCountryData;if("44"===t&&O.utils){let t=this._getFullNumber(),i=O.utils.getCoreNumber(t,e);if("7"===i[0]&&10!==i.length)return!1}return this._validateNumber(!1)}isValidNumberPrecise(){return this._validateNumber(!0)}_utilsIsPossibleNumber(t){return O.utils?O.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}_validateNumber(t){if(!O.utils)return null;if(!this.selectedCountryData.iso2)return!1;let e=e=>t?this._utilsIsValidNumber(e):this._utilsIsPossibleNumber(e),i=this._getFullNumber(),r=i.search(k);if(r>-1&&!this.options.allowPhonewords){let t=e(i.substring(0,r)),s=e(i);return t&&s}return e(i)}_utilsIsValidNumber(t){return O.utils?O.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!V.has(e))throw Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;if(t&&e!==i||!t&&i){if(this._setCountry(e),this._updateDialCode(this.selectedCountryData.dialCode),this.options.formatOnDisplay){let t=this._getTelInputValue();this._updateValFromNumber(t)}this._triggerCountryChange()}}setNumber(t){let e=this._normaliseNumerals(t),i=this._updateCountryFromNumber(e);
12this._updateValFromNumber(e),i&&this._triggerCountryChange(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},W=(t,...e)=>{Object.values(O.instances).forEach(i=>{let r=i[t];"function"==typeof r&&r.apply(i,e)})},O=Object.assign((t,e)=>{let i=new U(t,e);return O.instances[i.id]=i,t.iti=i,i},{defaults:j,documentReady:()=>"complete"===document.readyState,getCountryData:()=>a,getInstance:t=>{let e=t.dataset.intlTelInputId;return e?O.instances[e]:null},instances:{},attachUtils:t=>{if(!O.utils&&!O.startedLoadingUtilsScript){let e;if("function"!=typeof t)return Promise.reject(TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof t}`));try{e=Promise.resolve(t())}catch(t){return Promise.reject(t)}return O.startedLoadingUtilsScript=!0,e.then(t=>{let e=t?.default;if(!e||"object"!=typeof e)throw TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return O.utils=e,W("handleUtils"),!0}).catch(t=>{throw W("rejectUtilsScriptPromise",t),t})}return null},startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.15.1"}),K=O;return((s,n,l,a)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let l of i(n))r.call(s,l)||void 0===l||t(s,l,{get:()=>n[l],enumerable:!(a=e(n,l))||a.enumerable});return s})(t({},"__esModule",{value:!0}),s)})().default,e.exports?e.exports=r():window.intlTelInput=r()},206824,659038,t=>{"use strict";t.i(247167);var e=t.i(843476),i=t.i(225913),r=t.i(651648);t.i(751931);var s=t.i(473244),n=t.i(271645),l=t.i(699374),a=t.i(581949);let o=t=>{let e=String(t??"").trim().replace(/[\s\-()./]/g,"");return e?e.startsWith("+")?e:e.startsWith("00")?`+${e.slice(2)}`:/^\d+$/.test(e)?e.startsWith("27")&&11===e.length?`+${e}`:e.startsWith("0")&&10===e.length?`+27${e.slice(1)}`:e:e:""};t.s(["toE164ZA",0,o],659038);var u=t.i(951467),d=t.i(427217);let h=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim()),c=(0,i.cva)(["block px-2 py-1.5 w-full rounded border focus-within:border-transparent border-light-outline dark:border-dark-outline","outline-offset-2","text-size-body-lg leading-body-lg font-body-lg sm:text-size-body-md sm:leading-body-md sm:font-body-md","disabled:cursor-not-allowed bg-light-surface autofill:bg-light-surface dark:bg-dark-surface dark:autofill:bg-dark-surface disabled:bg-light-disabled disabled:text-light-on-disabled","dark:disabled:outline-dark-disabled dark:disabled:bg-dark-disabled dark:disabled:text-dark-on-disabled"],{variants:{disabledCheckboxStyle:{true:"",false:["h-5 w-5 min-w-5 min-h-5 border-2 rounded-md transition","border-light-outline bg-light-surface dark:border-dark-outline dark:bg-dark-surface","focus:ring-light-primary dark:focus:ring-dark-primary","disabled:cursor-not-allowed disabled:bg-light-disabled disabled:border-light-disabled disabled:text-light-on-disabled","dark:disabled:bg-dark-disabled dark:disabled:border-dark-disabled dark:disabled:text-dark-on-disabled"]},disabledLeadingStyle:{true:"",false:"rounded-l-none"},disabledTrailingStyle:{true:"",false:"rounded-r-none"},status:{normal:"outline-light-primary text-light-on-surface ring-light-outline placeholder:text-light-on-surface/50 focus:ring-light-primary dark:outline-dark-primary dark:text-dark-on-surface dark:ring-dark-outline  dark:placeholder:text-dark-on-surface/50 dark:focus:ring-dark-primary",error:"outline-light-error text-light-error ring-light-error  placeholder:text-light-error/50 focus:ring-light-error  dark:outline-dark-error dark:text-dark-error dark:ring-dark-error  dark:placeholder:text-dark-error/50 dark:focus:ring-dark-error"}}}),p=(0,i.cva)(["relative flex w-full items-start gap-3 rounded-lg border p-4 transition","border-light-outline bg-light-surface hover:bg-light-surface-container-low","dark:border-dark-outline dark:bg-dark-surface dark:hover:bg-dark-surface-container-low","focus-within:outline-2 focus-within:outline-offset-2","focus-within:outline-light-primary dark:focus-within:outline-dark-primary","data-[checked=true]:border-light-primary data-[checked=true]:bg-light-primary/5","dark:data-[checked=true]:border-dark-primary dark:data-[checked=true]:bg-dark-primary/10","data-[disabled=true]:cursor-not-allowed data-[disabled=true]:border-light-disabled data-[disabled=true]:bg-light-disabled/60","dark:data-[disabled=true]:border-dark-disabled dark:data-[disabled=true]:bg-dark-disabled/60"]);t.s(["Input",0,({as:i,type:m,id:g,label:b,name:y,value:f,disabledCheckboxStyle:C,disabledLeadingStyle:k,disabledTrailingStyle:w,error:_,disabled:I=!1,helperText:v,leading:x,trailing:N,setError:L,onChange:D,onBlur:S,onKeyDown:T,onPaste:A,containerClassName:P,className:j,indeterminate:$,chips:B,onChipsChange:E,chipsPlaceholder:M,validateChip:R,checkboxVariant:z="default",placeholder:F,ref:V,...U})=>{let W=i??"input",O=(0,n.useRef)(null),K=(0,n.useRef)(null),q=(0,n.useRef)(null),G=(0,n.useRef)(null),[H,J]=(0,n.use
12State)(""),[Z,Q]=(0,n.useState)(!!(U.checked??U.defaultChecked)),Y="tel"===m,X="checkbox"===m,tt=void 0!==B&&void 0!==E,te=tt&&"textarea"===i,ti=!!x,tr=X&&"card"===z,ts=X&&!tr,tn=Z||!!$;g=g??y;let tl=_?"error":"normal",ta=_?`${g}-error`:"",to=v?`${g}-helper`:"",tu=b?`${g}-label`:"",td=[to,ta].filter(Boolean).join(" ")||void 0,th=X?"ring-0":"px-2 py-1",tc=_?`${ti?"pr-10":"pl-10"} ring-0 outline-light-error outline-offset-2 block w-full border-0 text-light-error placeholder:text-light-error/50 sm:text-sm sm:leading-6`:`${ti?"rounded-l-md":"rounded-r-md"} ring-0 outline-light-primary outline-offset-2 block w-full border-0 sm:text-sm sm:leading-6 bg-light-outline/30 dark:bg-dark-outline/30`,tp=t=>{t.checkValidity()?L&&L(null):"Please match the format requested."===t.validationMessage&&"password"===m?L&&L("Please match the new password."):L&&L(t.validationMessage)},tm=t=>{tp(t.currentTarget),S&&S(t)},tg=t=>{tp(t.currentTarget),D&&D(t)},tb=t=>{Q(t.currentTarget.checked),tg(t)},ty=t=>{Y&&(O.current=t),X&&(q.current=t),"function"==typeof V?V(t):V&&(V.current=t)},tf="email"===m?h:()=>!0,tC=R||tf,tk=t=>{let e=t.trim();return!!e&&!!E&&!!B&&(B.some(t=>t.toLowerCase()===e.toLowerCase())?(J(""),!1):!!tC(e)&&(E([...B,e]),J(""),!0))},tw=t=>{if(!E||!B||I)return;let e=[...B];e.splice(t,1),E(e)},t_=t=>{if(te&&"Enter"===t.key&&t.shiftKey){T&&T(t);return}"Enter"===t.key||"Tab"===t.key||","===t.key?(t.preventDefault(),tk(H)):"Backspace"===t.key&&""===H&&B&&B.length>0&&tw(B.length-1),T&&T(t)},tI=t=>{H.trim()&&tk(H),S&&S(t)},tv=t=>{t.preventDefault();let e=t.clipboardData.getData("text"),i=te?/[,;\n]+/:/[,;\n\s]+/,r=e.split(i).filter(Boolean);if(r.length>0&&E&&B){let t=[...B];r.forEach(e=>{let i=e.trim();i&&!t.some(t=>t.toLowerCase()===i.toLowerCase())&&tC(i)&&t.push(i)}),E(t),J("")}A&&A(t)},tx=t=>{J(t.target.value),D&&D(t)};return((0,n.useEffect)(()=>{if(!Y||!O.current)return;let e=(0,l.default)(O.current,{countryOrder:["za","us","gb"],initialCountry:"auto",useFullscreenPopup:!1,geoIpLookup:function(t){a.default.get("https://ipinfo.io/json?token=f30ba431cb030e").then(e=>{t(e?.data?.country||"za")}).catch(()=>t("za"))},loadUtils:()=>t.A(114573)});return K.current=e,()=>{e.destroy(),K.current=null}},[Y]),(0,n.useEffect)(()=>{q.current&&"checkbox"===m&&(q.current.indeterminate=!!$)},[$,m]),(0,n.useEffect)(()=>{X&&"boolean"==typeof U.checked&&Q(U.checked)},[X,U.checked]),tr)?(0,e.jsxs)("div",{className:(0,r.cn)("w-full space-y-2",P),children:[(0,e.jsxs)("label",{htmlFor:g,"data-checked":tn?"true":"false","data-disabled":I?"true":"false",className:(0,r.cn)(p(),j),children:[(0,e.jsxs)("div",{className:"relative mt-0.5 flex items-center justify-center",children:[(0,e.jsx)(W,{ref:ty,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",type:m,id:g,name:y,value:f,checked:U.checked,disabled:I,onInput:void 0,onChange:tb,onBlur:tm,"aria-invalid":"error"===tl,"aria-labelledby":tu||void 0,"aria-describedby":td,...U}),(0,e.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("flex h-5 w-5 min-h-5 min-w-5 items-center justify-center rounded-md border-2 transition",tn?"border-light-primary bg-light-primary dark:border-dark-primary dark:bg-dark-primary":"border-light-outline bg-light-surface dark:border-dark-outline dark:bg-dark-surface",I?"border-light-disabled bg-light-disabled text-light-on-disabled dark:border-dark-disabled dark:bg-dark-disabled dark:text-dark-on-disabled":void 0),children:(0,e.jsx)("svg",{className:(0,r.cn)("pointer-events-none h-3 w-3",tn?"scale-100 opacity-100 text-light-on-
12primary dark:text-dark-on-primary":"scale-95 opacity-0"),viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:$?(0,e.jsx)("rect",{x:"5",y:"9",width:"10",height:"2",rx:"1",fill:"currentColor"}):(0,e.jsx)("polyline",{points:"5 10 9 14 15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[b&&(0,e.jsx)(s.Text,{as:"span",variant:"label",id:tu||void 0,className:"block text-light-on-surface dark:text-dark-on-surface",children:b}),v&&(0,e.jsx)(s.Text,{as:"span",variant:"label",className:"mt-1 block text-light-on-surface-variant dark:text-dark-on-surface-variant",id:to||void 0,children:v})]})]}),"error"===tl&&_&&(0,e.jsx)("p",{className:"text-sm text-light-error dark:text-dark-error",id:ta,children:_})]}):(0,e.jsxs)("div",{className:(0,r.cn)(`w-full ${ts?"flex flex-row-reverse justify-end gap-2 items-start":""}`,P),children:[(0,e.jsxs)("div",{children:[b&&(0,e.jsx)(s.Text,{as:"label",variant:"label",htmlFor:g,className:`block ${ts?"mb-0":"mb-2"}`,children:b}),v&&ts&&(0,e.jsx)(s.Text,{as:"p",variant:"label",className:"mt-1 mb-2 wrap-break-word",id:to||void 0,children:(0,e.jsx)("span",{className:"text-light-on-surface-variant dark:text-dark-on-surface-variant",children:v})})]}),(0,e.jsxs)("div",{className:"flex shadow-sm rounded-md",children:[x&&(0,e.jsx)("span",{className:`${th} ${tc}`,children:x}),(0,e.jsxs)("div",{className:(0,r.cn)("w-full flex relative",X?"items-center":void 0),children:[X?(0,e.jsxs)("div",{className:"relative flex items-center",children:[(0,e.jsx)(W,{ref:ty,className:(0,r.cn)(c({status:tl,disabledCheckboxStyle:!1,disabledLeadingStyle:k??!x,disabledTrailingStyle:w??!N}),j),type:m,id:g,name:y,value:f,checked:U.checked,disabled:I,onInput:void 0,onChange:tb,onBlur:tm,"aria-invalid":"error"===tl,"aria-describedby":td,style:{position:"absolute",opacity:0,width:"100%",height:"100%",cursor:"pointer",margin:0},...U}),(0,e.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("flex items-center justify-center transition w-5 h-5 min-w-5 min-h-5 border-2 rounded-md",tn?"border-light-primary bg-light-primary dark:border-dark-primary dark:bg-dark-primary":"border-light-outline bg-light-surface dark:border-dark-outline dark:bg-dark-surface","group-data-checked:border-light-primary group-data-checked:bg-light-primary dark:group-data-checked:border-dark-primary dark:group-data-checked:bg-dark-primary",I?"border-light-disabled bg-light-disabled text-light-on-disabled dark:border-dark-disabled dark:bg-dark-disabled dark:text-dark-on-disabled":"","transition"),children:(0,e.jsx)("svg",{className:(0,r.cn)("pointer-events-none","w-3 h-3",tn?"opacity-100 scale-100 text-light-on-
12primary dark:text-dark-on-primary":"opacity-0 scale-95"),viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:$?(0,e.jsx)("rect",{x:"5",y:"9",width:"10",height:"2",rx:"1",fill:"currentColor"}):(0,e.jsx)("polyline",{points:"5 10 9 14 15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}):tt?(0,e.jsxs)("div",{className:(0,r.cn)("flex flex-wrap gap-2 p-2 min-h-10.5 w-full rounded border cursor-text","border-light-outline dark:border-dark-outline","bg-light-surface dark:bg-dark-surface",I&&"cursor-not-allowed bg-light-disabled dark:bg-dark-disabled","error"===tl&&"border-light-error dark:border-dark-error","focus-within:ring-2 focus-within:ring-light-primary dark:focus-within:ring-dark-primary focus-within:border-transparent",j),onClick:()=>G.current?.focus(),children:[B&&B.map((t,i)=>(0,e.jsxs)("span",{className:(0,r.cn)("inline-flex items-center gap-1 px-1.5 py-0 rounded text-sm leading-5","bg-light-primary/10 text-light-primary dark:bg-dark-primary/20 dark:text-dark-primary",I&&"opacity-50"),children:[(0,e.jsx)("span",{className:"max-w-50 truncate",children:t}),!I&&(0,e.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),tw(i)},className:(0,r.cn)("shrink-0 rounded-full transition-colors","hover:bg-light-primary/20 dark:hover:bg-dark-primary/30","focus:outline-none focus:ring-1 focus:ring-light-primary dark:focus:ring-dark-primary"),"aria-label":`Remove ${t}`,children:(0,e.jsx)(d.XMarkIcon,{className:"h-3 w-3"})})]},`${t}-${i}`)),te?(0,e.jsx)("textarea",{...U,ref:t=>{G.current=t,"function"==typeof V?V(t):V&&(V.current=t)},id:g,name:y,rows:U.rows??2,value:H,onChange:tx,onKeyDown:t_,onBlur:tI,onPaste:tv,disabled:I,placeholder:B&&0===B.length?M||F||"Type a phrase and press Enter (Shift+Enter for newline)":"",className:(0,r.cn)("flex-1 min-w-30 resize-y border-0 p-0 text-sm leading-5 focus:ring-0 focus:outline-none","bg-transparent text-light-on-surface dark:text-dark-on-surface","placeholder:text-light-on-surface/50 dark:placeholder:text-dark-on-surface/50",I&&"cursor-not-allowed"),"aria-invalid":"error"===tl,"aria-describedby":td}):(0,e.jsx)("input",{...U,ref:t=>{G.current=t,"function"==typeof V?V(t):V&&(V.current=t)},type:"email"===m?"email":"text",id:g,name:y,value:H,onChange:tx,onKeyDown:t_,onBlur:tI,onPaste:tv,disabled:I,placeholder:B&&0===B.length?M||F||"Type and press Enter":"",className:(0,r.cn)("flex-1 min-w-30 border-0 p-0 text-sm focus:ring-0 focus:outline-none","bg-transparent text-light-on-surface dark:text-dark-on-surface","placeholder:text-light-on-surface/50 dark:placeholder:text-dark-on-surface/50",I&&"cursor-not-allowed"),"aria-invalid":"error"===tl,"aria-describedby":td})]}):(0,e.jsx)(W,{ref:t=>{Y&&(O.current=t),"function"==typeof V?V(t):V&&(V.current=t)},className:(0,r.cn)(c({status:tl,disabledCheckboxStyle:C??"checkbox"!==m,disabledLeadingStyle:k??!x,disabledTrailingStyle:w??!N}),j),type:m,id:g,name:y,value:f,disabled:I,onInput:t=>{let e,i,r;return Y?(i=(e=t.currentTarget).value,r=K.current,void(e.value=o(r?.getNumber()||i),tg({...t,target:e,currentTarget:e}))):null},onChange:t=>Y?null:tg(t),onBlur:tm,onKeyDown:T,onPaste:A,placeholder:F,"aria-invalid":"error"===tl,"aria-describedby":td,...U}),"error"===tl&&(0,e.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-4",children:(0,e.jsx)(u.ExclamationCircleIcon,{className:"h-5 w-5 text-light-error dark:text-dark-error","aria-hidden":"true"})})]}),N&&(0,e.jsx)("span",{className:`${th} ${tc}`,children:N})]}),v&&!X&&(0,e.jsx)(s.Text,{as:"p",variant:"label",className:"mt-2 wrap-break-word",id:to||void 0,children:(0,e.jsx)("span",{className:"text-light-outline dark:text-dark-outline",children:v})}),"error"===tl&&_&&(0,e.jsx)("p",{className:"mt-2 text-sm text-light-error dark:text-dark-error",id:ta,children:_})]})}],206824)}]);

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.