PageSourceSearch

https://wetforher.com/cdn/shop/t/358/assets/shopify.js?v=183587192862422511161749788087

js wetforher.com collected 2026-09-25 23:34:13 UTC 3,807 bytes, 2 lines download raw bytes

1typeof window.Shopify>"u"&&(window.Shopify={}),Shopify.bind=function(fn,scope){return function(){return fn.apply(scope,arguments)}},Shopify.setSelectorByValue=function(selector,value){for(var i=0,count=selector.options.length;i<count;i++){var option=selector.options[i];if(value==option.value||value==option.innerHTML)return selector.selectedIndex=i,i}},Shopify.addListener=function(target,eventName,callback){target.addEventListener?target.addEventListener(eventName,callback,!1):target.attachEvent("on"+eventName,callback)},Shopify.postLink=function(path,options){options=options||{};var method=options.method||"post",params=options.parameters||{},form=document.createElement("form");form.setAttribute("method",method),form.setAttribute("action",path);for(var key in params){var 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||!this.provinceEl)&&(Shopify.addListener(this.countryEl,"change",Shopify.bind(this.countryHandler,this)),this.initCountry(),this.initProvince())},Shopify.CountryProvinceSelector.prototype={initCountry:function(){var value=this.countryEl.getAttribute("data-default");Shopify.setSelectorByValue(this.countryEl,value),this.countryHandler()},initProvince:function(){var value=this.provinceEl.getAttribute("data-default");value&&this.provinceEl.options.length>0&&Shopify.setSelectorByValue(this.provinceEl,value)},countryHandler:function(e){var opt=this.countryEl.options[this.countryEl.selectedIndex],raw=opt.getAttribute("data-provinces"),provinces=JSON.parse(raw);if(this.clearOptions(this.provinceEl),provinces&&provinces.length==0)this.provinceContainer.style.display="none";else{for(var i=0;i<provinces.length;i++){var opt=document.createElement("option");opt.value=provinces[i][0],opt.innerHTML=provinces[i][1],this.provinceEl.appendChild(opt)}this.provinceContainer.style.display=""}},clearOptions:function(selector){for(;selector.firstChild;)selector.removeChild(selector.firstChild)},setOptions:function(selector,values){for(var i=0,count=values.length;i<values.length;i++){var opt=document.createElement("option");opt.value=values[i],opt.innerHTML=values[i],selector.appendChild(opt)}}};export const reRenderShopifySections=(response,selector="[data-rerender]")=>Object.keys(response.sections).forEach(key=>{const updatedNodes=new DOMParser().parseFromString(response.sections[key],"text/html").querySelectorAll(selector);document.querySelector(`[id^="shopify-section-"][id*="${key}"]`).querySelectorAll(selector).forEach((node,index)=>{node.replaceWith(updatedNodes[index])})}),getImageWithSize=(src="",size=1e3)=>(""+src).replace(/([.](?:jpe?g|png))/,`_${size}x$1`),getProductImage=(name="",value="",images,featured=!1,fallback=!1)=>{const key=`${name}-${(value||"").replace(/[/ ]/g,"-")}`.toLowerCase(),image=(images||[]).find(({src})=>~src.indexOf(key)&&~src.indexOf(featured?"pos-1":"pos-2"));return image?getImageWithSize(image,featured?1200:600):getImageWithSize(fallback,600)},decodeIDproduct=id=>decodeURIComponent(escape(window.atob(id))).split("gid://shopify/Product/")[1],encodeIDproduct=id=>window.btoa("gid://shopify/Product/"+id),decodeIDproductVariant=id=>decodeURIComponent(escape(window.atob(id))).split("gid://shopify/ProductVariant/")[1];
2//# sourceMappingURL=/cdn/shop/t/358/assets/shopify.js.map?v=183587192862422511161749788087

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.