1customElements.get("recommendation-by-history")||customElements.define("recommendation-by-history",class extends HTMLElement{constructor(){super(),this.section=this.dataset.section}disconnectedCallback(){this.abortFetch()}showContent(){if(this.newestProductId=this.getNewestProductId(),this.newestProductId==null)return this.toggleShow(!1);this.newestProductId!==this.preProductId&&(this.preProductId=this.newestProductId,this.url=this.constructUrl(),this.toggleShow(),this.url?this.fetchContent(this.url):this.toggleShow(!1))}getNewestProductId(){const recentlyViewedProductIds=webvista.retrieveData(RECENTLY_VIEWED_KEY)||[];return recentlyViewedProductIds.length===0?null:recentlyViewedProductIds.pop()}constructUrl(){let url=this.dataset.url;return url?`${url}&product_id=${this.newestProductId}`:null}fetchContent(url){this.fetchController&&this.fetchController.abort(),this.fetchController=new AbortController;const signal=this.fetchController.signal;webvista.fetchHtml(url,signal).then(html=>{const sourceRecommendationMain=html.querySelector(`#${this.id} .recommendation-main`);sourceRecommendationMain?(this.innerHTML=sourceRecommendationMain.outerHTML,webvista.initLazyImages(),webvista.initTooltips()):this.toggleShow(!1)}).catch(error=>{this.toggleShow(!1)})}toggleShow(show=!0){show&&(this.placeholderTemplate=this.placeholderTemplate||this.querySelector(`#Placeholder-Template-${this.section}`),this.replaceChildren(this.placeholderTemplate.content.cloneNode(!0))),this.setAttribute("aria-hidden",!show),this.classList.toggle("hide",!show)}abortFetch(){this.fetchController&&this.fetchController.abort()}}); 2//# sourceMappingURL=/cdn/shop/t/5/assets/recommendation-by-history.js.map?v=69297768885460861001761591354
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.