1import{EVENTS,subscribe}from"ia-util-pubsub";export class IaCartBlock extends HTMLElement{connectedCallback(){this.unsubscribers?.forEach(off=>off()),this.unsubscribers=[subscribe(EVENTS.cartChanged,event=>this.cartChanged(event))],this.iaBound||(this.iaBound=!0,this.bind()),queueMicrotask(()=>this.waitForApi())}disconnectedCallback(){this.unsubscribers?.forEach(off=>off()),this.unsubscribers=null,clearTimeout(this.apiTimer)}listen(eventName,handler){this.unsubscribers?.push(subscribe(eventName,handler))}get api(){return window.iaCartAPI}waitForApi(tries=10){if(this.api)return this.apiReady();tries<=0||(this.apiTimer=setTimeout(()=>this.waitForApi(tries-1),100))}bind(){}apiReady(){}cartChanged(){}} 2//# sourceMappingURL=/cdn/shop/t/568/assets/ia-cart-block.js.map?v=42445141136551416221789065722
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.