PageSourceSearch

https://store.afikra.com/cdn/shop/t/3/assets/product-price.js?v=179333985604099329921782122108

js afikra.com collected 2026-09-24 09:21:06 UTC 1,970 bytes, 2 lines download raw bytes

1import"@theme/events";import{Component}from"@theme/component";import{StandardEvents}from"@shopify/events";class ProductPrice extends Component{connectedCallback(){super.connectedCallback();const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.addEventListener(StandardEvents.productSelect,this.#handleProductSelect)}disconnectedCallback(){super.disconnectedCallback();const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.removeEventListener(StandardEvents.productSelect,this.#handleProductSelect)}#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{priceContainer,volumePricingNote}=this.refs,newProductPrice=html.querySelector(`product-price[data-block-id="${this.dataset.blockId}"]`);if(!newProductPrice)return;const newPrice=newProductPrice.querySelector('[ref="priceContainer"]');newPrice&&priceContainer&&priceContainer.replaceWith(newPrice);const newNote=newProductPrice.querySelector('[ref="volumePricingNote"]');newNote?volumePricingNote?volumePricingNote.replaceWith(newNote):newPrice?.insertAdjacentElement("afterend",newNote.cloneNode(!0)):volumePricingNote?.remove();const installmentsInput=this.querySelector(`#product-form-installment-${this.dataset.blockId} input[name="id"]`);installmentsInput&&(installmentsInput.value=detail.resource?.id??"",installmentsInput.dispatchEvent(new Event("change",{bubbles:!0})))}).catch(error=>{error?.name!=="AbortError"&&console.warn("[product-price] Event promise rejected:",error)})}}customElements.get("product-price")||customElements.define("product-price",ProductPrice);
2//# sourceMappingURL=/cdn/shop/t/3/assets/product-price.js.map?v=179333985604099329921782122108

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.