1Shopify.setSelectorByValue=function(selector,value){for(let i=0,count=selector.options.length;i<count;i++){const option=selector.options[i];if(value==option.value||value==option.innerHTML)return selector.selectedIndex=i,i}},Shopify.postLink=function(path,options){options=options||{};const method=options.method||"post",params=options.parameters||{},form=document.createElement("form");form.setAttribute("method",method),form.setAttribute("action",path);for(const key in params){const hiddenField=document.createElement("input");hiddenField.setAttribute("type","hidden"),hiddenField.setAttribute("name",key),hiddenField.setAttribute("value",params[key]),form.appendChild(hiddenField)}document.body.appendChild(form),form.submit(),document.body.removeChild(form)},Shopify.CountryProvinceSelector=function(country_domid,province_domid,options){this.countryEl=document.getElementById(country_domid),this.provinceEl=document.getElementById(province_domid),this.provinceContainer=document.getElementById(options.hideElement||province_domid),this.countryEl.addEventListener("change",this.countryHandler.bind(this)),this.initCountry(),this.initProvince()},Shopify.CountryProvinceSelector.prototype={initCountry:function(){const value=this.countryEl.getAttribute("data-default");Shopify.setSelectorByValue(this.countryEl,value),this.countryHandler()},initProvince:function(){const value=this.provinceEl.getAttribute("data-default");value&&this.provinceEl.options.length>0&&Shopify.setSelectorByValue(this.provinceEl,value)},countryHandler:function(e){const raw=this.countryEl.options[this.countryEl.selectedIndex].getAttribute("data-provinces"),provinces=JSON.parse(raw);this.clearOptions(this.provinceEl),provinces&&provinces.length==0?this.provinceContainer.style.display="none":(this.setOptions(this.provinceEl,provinces),this.provinceContainer.style.display="")},clearOptions:function(selector){for(;selector.firstChild;)selector.removeChild(selector.firstChild)},setOptions:function(selector,values){for(let i=0,count=values.length;i<values.length;i++){const opt=document.createElement("option");opt.value=values[i][0],opt.innerHTML=values[i][1],selector.appendChild(opt)}}}; 2//# sourceMappingURL=/cdn/shop/t/5/assets/shopify_common.js.map?v=92248468633507543441710842174
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.