1// !!!! - DO NOT MODIFY - !!!! 2// THIS FILE IS DEPLOYED AUTOMATICALLY BY MATTv2. 3// 4// Deployment info: 5// Updated at: 2025-03-27T12:26:11+00:00 6// Cause: Manual deployment. 7// Deployment ID: 187244 8// Project: 591 9// Environment: 7046 - release/2025-03-27/r1 10// MD5: db65a37bc381aa6b70d2f14ebe440d91 11// Signature: eyJpdiI6IjJJMlNkVERGbUNrc09keTh3RndtTlE9PSIsInZhbHVlIjoiVlA1SWdCc3hyRXhqSXJDQnozMjhyazRMd2pkWmtuZGl3VnJDcDF5K3pLUjA1Yll3SU54YzZGVlhPMURxZ0ZNbFhvZ1JrQ3lIK3JyajRFSk1VUmtqWkJudzBmODJ2QkNhWnNVemV6QytDTndsaWpFV29zXC9UWUlsUlwvZTdQeHlHZDArXC9BZTZQam5qT00zZEl6Q1VnNURpVlZ1dXJPbnVhbUxFUHN0VGx1MTJGRGNHNUlHQjU4N1lWQ3lUU1dvVUpSNzVEZitOMTRGWExUUEZPQU8xVDU4SVptRWs5aWs5TzA4c0E5RytMOXpxNFVCcmI2WnJGZSszNzhTV1p4UzhscDUxXC93b2E1VVh1emRkMXJpUk9qYVBwZGRHanhrQmhjZEZsVlwvaE5ESVlBaDFHWlpKWFZGeUdTTTQ2SnVyZ2Q3bE9ubUJOYXhENnRhS1BRdDc4TndXXC9HdFMza3lFSCtTdjNnbHRpNWtkWDhFbzYxRDZ4RlJPUjlqTWJUUWpRNGZjXC91UTdFc21aTGE4UGhTZkVvWWlwYmdEOTFcL3lLejJlNXVJc0NXS2drWU5Qa05ubUZxZkh2QXI2WkNQa1wveF
11pCQSIsIm1hYyI6ImQ1ZWY1ZjZmYWVmNzgxODdlMjc2ZWM1YzQ1M2MxZDYxNzE1ZDllYzYzODlkNWNkNzU5YjUzNWU5NmU5NTM4YmMifQ== 12var a=Object.defineProperty;var s=(o,t)=>a(o,"name",{value:t,configurable:!0});import{ProductButtonOption as c}from"./component-ProductButtonOption.min.js";import{ProductDropdownOption as h}from"./component-ProductDropdownOption.min.js";import{ThemeComponent as d,ManualOptionSelector as l}from"./theme.min.js";import{dist as u}from"./vendor.min.js";import"./component-ProductOptionPicker.min.js";import"./component-FakeDropdown.min.js";class e extends d{constructor(){super(...arguments),this.selector=null,this._onSelectedVariantChange=new u.SimpleEventDispatcher,this.variantInventoryData=this.variantInventory,this.updateButtonDropdownStyles=t=>{t instanceof c?(t.updateButtonStyles(),t.updateSelectedValueText()):t instanceof h&&(t.updateOptionLabels(),t.updateDropdownSelected())},this.handleOptionChange=()=>{this.updateButtonDropdownStyles(this.option1),this.updateButtonDropdownStyles(this.option2),this.updateButtonDropdownStyles(this.option3)}}get selectedVariant(){var r,i;const t=[this.option1.selected,((r=this.option2)==null?void 0:r.selected)||null,((i=this.option3)==null?void 0:i.selected)||null];return this.product.variants.filter(p=>p.option1==t[0]&&p.option2==t[1]&&p.option3==t[2])[0]||null}get onSelectedVariantChange(){return this._onSelectedVariantChange.asEvent()}init(){this.selector=new l(this.product),this.$subscribe(this.option1.onChange,()=>{this._onSelectedVariantChange.dispatch(this.selectedVariant),this.renderOptions()}),this.option2&&this.$subscribe(this.option2.onChange,()=>{this._onSelectedVariantChange.dispatch(this.selectedVariant),this.renderOptions()}),this.option3&&this.$subscribe(this.option3.onChange,()=>{this._onSelectedVariantChange.dispatch(this.selectedVariant),this.renderOptions()}),this.renderOptions()}renderOptions(){var t,n,r,i;this.selector&&(this.selector.select(this.option1.selected,((t=this.option2)==null?void 0:t.selected)||null,((n=this.option3)==null?void 0:n.selected)||null),this.option1.updateBasedOnSelector(this.selector),(r=this.option2)==null||r.updateBasedOnSelector(this.selector),(i=this.option3)==null||i.updateBasedOnSelector(this.selector),this.$subscribe(this.option1.onChange,this.handleOptionChange),this.option2&&this.$subscribe(this.option2.onChange,this.handleOptionChange),this.option3&&this.$subscribe(this.option3.onChange,this.handleOptionChange))}}s(e,"ProductOptionPicker");const y={Object};e.prototype.$name="ProductOptionPicker";e.prototype.$info=JSON.parse('{"name":"ProductOptionPicker","meta":{"isLegacy":false,"selector":"product-option-picker"},"props":[{"attr":"product","reflectAttr":false,"propertyKey":"product","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"Shopify.Liquid.Product"},{"attr":"variant-inventory","reflectAttr":false,"propertyKey":"variantInventory","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"VariantInventory"}],"refs":[{"selector":"[data-ref=\\"option1\\"]","required":true,"propertyKey":"option1","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"ProductButtonOption | ProductDropdownOption"},{"selector":"[data-ref=\\"option2\\"]","required":false,"propertyKey":"option2","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"ProductButtonOption | ProductDropdownOption"},{"selector":"[data-ref=\\"option3\\"]","required":false,"propertyKey":"option3","propertyType":"Object","propertyTypeName":"Object","propertyTsTypeName":"ProductButtonOption | ProductDropdownOption"}]}');e.prototype.$info.component=e;for(const o of e.prototype.$info.props)o.propertyType=y[o.propertyType];window.componentService.registerComponent("Product/ProductOptionPicker.ts",{ProductOptionPicker:e},void 0); 13 14;(() => { 15 const style = document.createElement('style'); 16 style.innerHTML = "/* component-ProductOptionPicker.css */\n.product-option-picker{display:-webkit-box;display:-ms-flexbox;display:flex}\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.