1window.addEventListener("DOMContentLoaded",()=>{var y,f;const e=document.querySelector("#checkout-phone"),l=document.querySelector("#checkout-country-code"),c=document.querySelector('[name="iso_code"]'),r=((y=c==null?void 0:c.getAttribute("content"))==null?void 0:y.toLowerCase())||"us";if(!e||!l||typeof window.intlTelInput!="function")return;const s=window.intlTelInput(l,{utilsScript:"https://cdn.jsdelivr.net/npm/[email protected]/build/js/utils.js",nationalMode:!1,separateDialCode:!0,excludeCountries:["eh"],initialCountry:r||"us"});function i(){return`+${s.getSelectedCountryData().dialCode}`}const o=(f=l.closest(".iti"))==null?void 0:f.querySelector(".iti__selected-flag, .iti__selected-country"),u=document.createElement("span");u.setAttribute("data-selected-dial-code",""),o&&!o.querySelector("[data-selected-dial-code]")&&o.insertBefore(u,o.querySelector(".iti__arrow"));function d(){const t=s.getSelectedCountryData(),n=i();u.textContent=n,o&&o.setAttribute("aria-label",`${t.name} country code ${n}`)}function v(){const t=i(),n=e.value.replace(/^\+\d+[\s-]?/,"").replace(/^\+/,"");e.value=n?`${t}${n}`:t}e.value?e.value=e.value.startsWith("+")?e.value:`+${e.value}`:v(),d();function p(t,n,C){const a=i();!e.value.startsWith(a)||e.value.startsWith(`${a}0`)||e.value.startsWith(`${a} 0`)||e.value.startsWith(`${a}-0`)?C.errors[n]=!0:delete C.errors[n]}e.addEventListener("blur",function(){const t=i();e.value.startsWith(t)||(e.value=`${t}${e.value.replace(/^\+/,"")}`)}),window.isValidPhone=p;function h(t){"+0123456789".includes(t.key)||t.preventDefault()}e.addEventListener("keypress",h),l.addEventListener("countrychange",function(){d(),v()})});
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.