https://www.errante85.com/cdn/shop/t/4/assets/product-installments.js?v=6719288976384893221787598988
1import{StandardEvents}from"@shopify/events";class ProductInstallments extends HTMLElement{#handleProductSelect=event=>{!(event.target instanceof Element)||event.target.closest("product-card")||event.promise.then(({detail})=>{if(!detail?.html)return;const{html,newProduct}=detail;if(newProduct)this.dataset.productId=newProduct.id;else if(detail.productId&&detail.productId!==this.dataset.productId)return;const newElement=html.querySelector(`product-installments[data-block-id="${this.dataset.blockId}"]`);if(!newElement)return;const newAmount=newElement.querySelector("[data-installment-amount]"),currentAmount=this.querySelector("[data-installment-amount]");newAmount&¤tAmount&&(currentAmount.textContent=newAmount.textContent)}).catch(error=>{error?.name!=="AbortError"&&console.warn("[product-installments] Event promise rejected:",error)})};connectedCallback(){const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.addEventListener(StandardEvents.productSelect,this.#handleProductSelect)}disconnectedCallback(){const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.removeEventListener(StandardEvents.productSelect,this.#handleProductSelect)}}customElements.get("product-installments")||customElements.define("product-installments",ProductInstallments); 2//# sourceMappingURL=/cdn/shop/t/4/assets/product-installments.js.map?v=6719288976384893221787598988
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.