PageSourceSearch

https://savilerowco.com/cdn/shop/t/377/assets/component-ProductBundleItem.min.js

js savilerowco.com collected 2026-09-25 20:32:42 UTC 4,468 bytes, 18 lines download raw bytes

1// !!!! - DO NOT MODIFY - !!!!
2// THIS FILE IS DEPLOYED AUTOMATICALLY BY MATTv2.
3//
4//  Deployment info:
5//    Updated at:     2024-10-24T12:26:12+00:00
6//    Cause:          Manual deployment.
7//    Deployment ID:  184610
8//    Project:        557
9//    Environment:    5377 - master
10//    MD5:            bee45527f2fc05ce3ed345279f82c2a3
11//    Signature:      eyJpdiI6IkVLTXhlV2lsQzM5OG9SeWZjVnJXTHc9PSIsInZhbHVlIjoib1ZteG1cL3hWK1laSzJ5UFwvdUhFdUhodzQyZ1JvZEhGWTM5Y0lCbVhDSGRVZmtlSTYzQUNuTDdNSUU3SlFGWGRMY0JXR0FTb1hhelEySnNJQ0NTcFYreWNMRSt5NllEaFwvUUpYTndEZlZYOTZNZHVmOTNvdDZ2NXM5b0VZeXJ4dnl1NDNNbVFlZ3hkcXgwT0d6UDZtV2RCTU03TUwxcXNySWg4UU9OVXJsSU41WUpKb05xZnVuS0wwU25rS0R6Y1Y2M0pydzN1TWZIQWNJRml5bVwvOHBQYVpJSFU4R1RsNURZMlhvTjdUNkl0RTBZeEFjc1lpTmUxczcrZUtiUldUbWxkSkVkd2FZXC9VcnN3NWVTZEk3S1RcL0VXY00zOUVkNlJFeG1WSTJRXC9yVFJWbVViSkhiTjVUdTFZZlpXVFRUK05raFU0Y2p4T0hBNVhYbm43dzFHMGtqcVVmVXh1dURZSzhuT0VwWVNpaldxVzljaktRNjFmY2ZPdmwzQTJUUmRRRTQrSlAyT1FybGMzalRoTTZYWmxBMm0rY2dyN3BVN3dCNlU2SXFJdXhEN289IiwibWFjIjoiOWQ5M2ExMTA4ZjIzMDRiOThjNTU0MDA4OTUxMzk4NzZiYWFiMmEyZGM2OGM2MDViOTU3ZDE5ZDY5OTc2ODc2YiJ9
12var i=Object.defineProperty;var o=(r,e)=>i(r,"name",{value:e,configurable:!0});import"./component-ProductOptionPicker.min.js";import{ThemeComponent as s}from"./theme.min.js";import"./component-ProductButtonOption.min.js";import"./vendor.min.js";import"./component-ProductDropdownOption.min.js";import"./component-FakeDropdown.min.js";import"./component-QuantitySelector.min.js";class t extends s{constructor(){super(...arguments),this.selectedVariant=null,this.addonProducts=[]}init(){this.listenForQuantityChange(),this.listenForVariantChange(),this.updateQuantitySelectorVisibility()}updateQuantitySelectorVisibility(){this.addonProducts.length>0?this.options.quantitySelect.classList.add("visually-hidden"):this.options.quantitySelect.classList.remove("visually-hidden")}listenForQuantityChange(){this.$subscribe(this.options.quantitySelect.onChange,e=>{this.quantity=e,e>1?(this.productCustomiserAlert.classList.add("is-active"),setTimeout(()=>{this.quantity>1&&this.productCustomiser.classList.add("is-hidden")},500)):setTimeout(()=>{this.productCustomiser.classList.remove("is-hidden"),this.productCustomiserAlert.classList.remove("is-active")},500)})}listenForVariantChange(){this.options&&(this.$subscribe(this.options.onSelectedVariantChange,e=>{this.selectedVariant=e,e!==null&&(e.available?(this.variantError.innerText="",this.variantError.style.display="none"):(this.variantError.innerText="Out of stock for the selected option.",this.variantError.style.display="block"))}),this.disableDefaultVariant||(this.selectedVariant=this.options.selectedVariant))}}o(t,"ProductBundleItem");const p={Boolean,Number};t.prototype.$name="ProductBundleItem";t.prototype.$info=JSON.parse('{"name":"ProductBundleItem","meta":{"isLegacy":false,"selector":"product-bundle-item"},"props":[{"attr":"disable-default-variant","default":"false","reflectAttr":false,"propertyKey":"disableDefaultVariant","propertyType":"Boolean","propertyTypeName":"Boolean","propertyTsTypeName":"boolean"},{"attr":"quantity","reflectAttr":false,"propertyKey":"quantity","propertyType":"Number","propertyTypeName":"Number","propertyTsTypeName":"number"}],"refs":[{"selector":"[data-ref=\\"options\\"]","required":true,"propertyKey":"options","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"ProductOptionPicker"},{"selector":"[data-ref=\\"variantError\\"]","required":true,"propertyKey":"variantError","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"HTMLSpanElement"},{"selector":"[data-ref=\\"productCustomiser\\"]","required":false,"propertyKey":"productCustomiser","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"HTMLElement"},{"selector":"[data-ref=\\"productCustomiserAlert\\"]","required":false,"propertyKey":"productCustomiserAlert","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"HTMLElement"}]}');t.prototype.$info.component=t;for(const r of t.prototype.$info.props)r.propertyType=p[r.propertyType];window.componentService.registerComponent("Product/ProductBundleItem.ts",{ProductBundleItem:t},void 0);
13
14;(() => {
15    const style = document.createElement('style');
16    style.innerHTML = "/* component-ProductBundleItem.css */\n.product-bundle-item{position:relative}.product-bundle-item__title span{color:var(--color-error);display:none}\n";
17    document.body.appendChild(style);
18})();

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.