PageSourceSearch

https://heidimerrick.com/cdn/shop/t/79/assets/pickup-availability.js?v=104509082797466554411790242586

js heidimerrick.com collected 2026-10-03 21:31:49 UTC 1,809 bytes, 1 lines download raw bytes

1!function(){"use strict";customElements.get("pickup-availability")||customElements.define("pickup-availability",class extends HTMLElement{constructor(){super(),this.hasAttribute("available")&&(this.errorHtml=this.querySelector("template").content.firstElementChild.cloneNode(!0),this.onClickRefreshList=this.onClickRefreshList.bind(this),this.fetchAvailability(this.dataset.variantId))}fetchAvailability(e){if(!e)return;let t=this.dataset.rootUrl;t.endsWith("/")||(t+="/");fetch(`${t}variants/${e}/?section_id=api-pickup-availability`).then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector(".shopify-section");this.renderPreview(t)})).catch((e=>{const t=this.querySelector("button");t&&t.removeEventListener("click",this.onClickRefreshList),this.renderError()}))}onClickRefreshList(){this.fetchAvailability(this.dataset.variantId)}update(e){e?.available?this.fetchAvailability(e.id):(this.removeAttribute("available"),this.innerHTML="")}renderError(){this.innerHTML="",this.appendChild(this.errorHtml),this.querySelector("button").addEventListener("click",this.onClickRefreshList)}renderPreview(e){const t=document.querySelector("pickup-availability-drawer");if(t&&t.remove(),!e.querySelector("pickup-availability-preview"))return this.innerHTML="",void this.removeAttribute("available");this.innerHTML=e.querySelector("pickup-availability-preview").outerHTML,this.setAttribute("available",""),document.body.appendChild(e.querySelector("pickup-availability-drawer"));this.dataset.productPageColorScheme.split(" ").forEach((e=>{document.querySelector("pickup-availability-drawer").classList.add(e)}));const i=this.querySelector("button");i&&i.addEventListener("click",(()=>{document.querySelector("pickup-availability-drawer popup-component").popupOpen()}))}})}();

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.