1const{Core,Events,Utils,Store}=Global,{$active,$toggleDisplay,$isHidden}=Utils,STORE_KEY="productsCompare";customElements.define("products-comparison-checkbox",class extends Core{propTypes={"product-url":String,"image-url":String};elements={$:["input"]};inited=!1;render(){this.sub(Events.PRODUCT_COMPARE_UPDATE,this._onUpdate,{global:!0}),this.$({change:this._onChange}),!this.inited&&this._requestUpdate()}_requestUpdate(){this.pub(Events.PRODUCT_COMPARE_UPDATE_REQUEST)}_onUpdate({comparingProductURLs,limitReached}){$isHidden(this)&&$toggleDisplay(this,!0),this.selected=comparingProductURLs.includes(this.prop("product-url")),this.disabled=!this.selected&&limitReached,this.inited=!0}_onChange({target}){this.disabled=!0,this.pub(Events.PRODUCT_COMPARE_CHANGE,{url:this.prop("product-url"),state:target.checked,onError:()=>{this.selected=!this.selected},after:()=>{this.disabled=!1}})}set disabled(state){this.$("input").disabled=state}set selected(state){this.$("input").checked=state}get selected(){return this.$("input").checked}}); 2//# sourceMappingURL=/cdn/shop/t/78/assets/products-comparison-checkbox.js.map?v=60260395572791152901774326708
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.