1const i=class extends HTMLElement{connectedCallback(){var t;const e=this.querySelector("script");e&&(this.inventories=JSON.parse(e.innerHTML),(t=document.getElementById(this.getAttribute("form-id")))==null||t.addEventListener("variant:changed",this._onVariantChanged.bind(this)))}_onVariantChanged(t){var e;(e=this.querySelector("span"))==null||e.remove(),t.detail.variant&&this.inventories[t.detail.variant.id]!==""?(this.hidden=!1,this.insertAdjacentHTML("afterbegin",this.inventories[t.detail.variant.id])):this.hidden=!0}};window.customElements.get("product-inventory")||window.customElements.define("product-inventory",i);
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.