1window.Eurus.loadedScript.has("product-sibling.js")||(window.Eurus.loadedScript.add("product-sibling.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xProductSibling",(sectionId,isProductPage,redirect,updateUrl=!0)=>({cachedResults:[],updateProductInfo(url){if(redirect){window.location.href=url;return}const link=isProductPage?`${url}`:`${url}?section_id=${sectionId}&page=25000`;if(this.cachedResults[link]){const html=this.cachedResults[link];this._handleSwapProduct(html)}else fetch(link).then(response=>response.text()).then(responseText=>{const html=new DOMParser().parseFromString(responseText,"text/html");this._updateTitle(html),this._handleSwapProduct(html),this._updateFbtContainer(html),this.cachedResults[link]=html});this._updateURL(url)},changeSelectOption(event){const targetUrl=event.target.selectedOptions[0].dataset.productUrl;this.updateProductInfo(targetUrl)},_updateURL(url){!isProductPage||!updateUrl||window.history.replaceState({},"",`${url}`)},_updateTitle(html){if(!isProductPage)return;document.querySelector("head title").textContent=html.querySelector(".product-title").textContent;const destination=document.getElementById("breadcrumbs--"+sectionId),source=html.getElementById("breadcrumbs--"+sectionId);source&&destination&&(destination.innerHTML=source.innerHTML)},_updateFbtContainer(html){if(!isProductPage)return;const destination=document.getElementById("popup-fbt-"+sectionId),source=html.getElementById("popup-fbt-"+sectionId);source&&destination&&(destination.outerHTML=source.outerHTML)},_handleSwapProduct(html){const destination=isProductPage?document.querySelector(".main-product"):document.querySelector(".x-product-"+sectionId),source=isProductPage?html.querySelector(".main-product"):html.querySelector(".x-product-"+sectionId);source&&destination&&(isProductPage||(destination.id=source.id),destination.innerHTML=source.innerHTML)}}))})})); 2//# sourceMappingURL=/cdn/shop/t/163/assets/product-sibling.js.map?v=104750776145122839761783972669
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.