PageSourceSearch

https://www.straitmusic.com/cdn/shop/t/17/assets/product-variant-listener.js?v=92739623799991911711757441286

js straitmusic.com collected 2026-09-24 12:23:13 UTC 1,210 bytes, 2 lines download raw bytes

1const{Core,Events}=Global,{$isEmpty,$replaceContent}=Global.Utils;customElements.define("product-variant-listener",class extends Core{propTypes={emptyable:Boolean,"variant-selector":Boolean};isMetaHidden=!1;render(){this.prop("emptyable")&&(this.$meta=this.closest("[data-meta-block]"),this._setMetaHidden()),this.sub(Events.VARIANT_UPDATE,this._onVariantUpdate)}_onVariantUpdate({targets}){try{$replaceContent(this,targets[this.id],!0),(this.prop("emptyable")||this.isMetaHidden)&&this._setMetaHidden(),this.dispatchEvent(new CustomEvent("update",{bubbles:!0}))}catch{console.log(`Can't find ${targets[this.id]} in update `)}}_setMetaHidden(state){this.isMetaHidden=state===void 0?$isEmpty(this):state,this.$meta.toggleAttribute("hidden",this.isMetaHidden)}}),customElements.define("product-variant-selector",class extends Core{render(){this.$({change:this._onVariantChange})}_onVariantChange(e){this.pub(Events.VARIANT_CHANGE,{optionValueId:e.target.dataset.optionValueId,optionIndex:e.target.dataset.optionIndex,variantId:e.target.dataset.variantId,imagePosition:e.target.dataset.imagePosition})}});
2//# sourceMappingURL=/cdn/shop/t/17/assets/product-variant-listener.js.map?v=92739623799991911711757441286

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.