1customElements.get("pickup-availability")||customElements.define("pickup-availability",class extends HTMLElement{constructor(){if(super(),!this.hasAttribute("available"))return;const variantId=this.dataset.variantId;this.fetchAvailability(variantId)}fetchAvailability(variantId){let rootUrl=this.dataset.rootUrl;rootUrl.endsWith("/")||(rootUrl=rootUrl+"/");const variantSectionUrl=`${rootUrl}variants/${variantId}/?section_id=pickup-availability`;webvista.fetchHtml(variantSectionUrl).then(html=>{this.renderPreview(html)})}renderPreview(resourceDom){if(!resourceDom.querySelector(".pickup-availability-preview"))return this.renderError();const pickupDrawer=document.getElementById("Pickup-Availability-Drawer");pickupDrawer?pickupDrawer.querySelector(".drawer-content").innerHTML=resourceDom.querySelector("#Pickup-Availability-Drawer .drawer-content").innerHTML:document.body.appendChild(resourceDom.querySelector("#Pickup-Availability-Drawer")),this.innerHTML=resourceDom.querySelector(".pickup-availability-preview").outerHTML,this.setAttribute("available","")}renderError(){this.innerHTML="",this.removeAttribute("available")}}); 2//# sourceMappingURL=/cdn/shop/t/14/assets/pickup-availability.js.map?v=73086739844084093081783442328
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.