PageSourceSearch

https://imannoor.com/cdn/shop/t/9/assets/pickup-availability.js?v=126742418882860250341773061166

js imannoor.com collected 2026-09-24 13:02:37 UTC 2,080 bytes, 2 lines download raw bytes

1if(!customElements.get("availability-content")){class PickupAvailability extends HTMLElement{constructor(){super(),this.hasAttribute("available")&&(this.fetchAvailability(this.dataset.variantId),this.focusElement=null,document.addEventListener("keydown",this.handleKeyDown.bind(this)),this.closeDrawer())}fetchAvailability(variantId){const variantSectionUrl=`${this.dataset.rootUrl}variants/${variantId}/?section_id=pickup-availability`;fetch(variantSectionUrl).then(response=>response.text()).then(text=>{const sectionInnerHTML=new DOMParser().parseFromString(text,"text/html").querySelector(".shopify-section");this.renderPreview(sectionInnerHTML)})}renderPreview(sectionInnerHTML){if(!sectionInnerHTML.querySelector("availability-content")){this.removeAttribute("available"),this.innerHTML="";return}this.innerHTML=sectionInnerHTML.innerHTML,this.setAttribute("available",""),this.drawer=this.querySelector("availability-drawer");const drawerTrigger=this.querySelector("[data-drawer-main-head]");drawerTrigger&&drawerTrigger.addEventListener("click",this.openDrawer.bind(this)),this.closeDrawer()}openDrawer(event){event.preventDefault();const drawer=this.drawer;drawer&&(drawer.classList.add("is-visible"),document.querySelector("body").classList.add("overflow-hidden"),setTimeout(()=>{this.focusElement=event.target,drawer&&typeof trapFocusElements=="function"&&trapFocusElements(drawer)},300))}closeDrawer(){const drawer=this.drawer;drawer&&drawer.querySelectorAll("[data-drawer-close]").forEach(el=>{el.addEventListener("click",event=>{event.preventDefault(),this._closeDrawer(drawer),this.focusElement&&this.focusElement.focus(),this.focusElement=null})})}_closeDrawer(drawer){drawer.classList.remove("is-visible"),document.querySelector("body").classList.remove("overflow-hidden")}handleKeyDown(event){event.key==="Escape"&&this.drawer?.classList.contains("is-visible")&&this._closeDrawer(this.drawer)}}customElements.define("availability-content",PickupAvailability)}
2//# sourceMappingURL=/cdn/shop/t/9/assets/pickup-availability.js.map?v=126742418882860250341773061166

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.