{
  "version": 3,
  "sources": ["/cdn/shop/t/65/assets/variant-picker.js?ukbk_rev=20260621-subtext-toggle"],
  "sourcesContent": ["/* eslint-disable */\n\n/**\n * Dependencies:\n * - Custom select component\n *\n * Required translation strings:\n * - addToCart\n * - noStock\n * - noVariant\n * - onlyXLeft\n */\n\nif (!customElements.get('variant-picker')) {\n  class VariantPicker extends HTMLElement {\n    constructor() {\n      super();\n      this.section = this.closest('.js-product');\n      this.productForm = this.section.querySelector('.js-product-form-main');\n      this.optionSelectors = this.querySelectorAll('.option-selector');\n      this.data = this.getProductData();\n      this.variant = this.getSelectedVariant();\n      this.selectedOptions = this.getSelectedOptions();\n      this.preSelection = !this.variant && this.selectedOptions.find((o) => o === null) === null;\n\n      this.addEventListener('change', this.handleVariantChange.bind(this));\n\n      // Defer these to allow for quick-add modal to full initialize\n      setTimeout(() => {\n        this.updateAvailability();\n        this.updateAddToCartButton();\n        this.querySelectorAll('.option-selector[data-selector-type=\"listed\"] input:checked')\n          .forEach((optionEl) => VariantPicker.updateSelectedOptionHint(optionEl));\n      });\n    }\n\n    /**\n     * Handles 'change' events on the variant picker element.\n     * @param {object} evt - Event object.\n     */\n    handleVariantChange(evt) {\n      this.selectedOptions = this.getSelectedOptions();\n      this.variant = this.getSelectedVariant();\n      this.preSelection = !this.variant && this.selectedOptions.find((o) => o === null) === null;\n\n      if (this.variant) {\n        this.updateMedia();\n        this.updateUrl(evt);\n        this.updateVariantInput();\n      }\n\n      this.updateAddToCartButton();\n      this.updateAvailability();\n      this.updatePrice();\n      this.updateWeight();\n      this.updateBarcode();\n      this.updateBackorderText();\n      this.updatePickupAvailability();\n      this.updateSku();\n      this.updateMetafieldVisibility();\n      VariantPicker.updateLabelText(evt);\n      VariantPicker.updateSelectedOptionHint(evt.target, true);\n      VariantPicker.scrollSelectedOptionIntoView(evt.target);\n\n      if (!this.preSelection) {\n        this.dispatchEvent(new CustomEvent('on:variant:change', {\n          bubbles: true,\n          detail: {\n            form: this.productForm,\n            variant: this.variant,\n            product: this.data.product\n          }\n        }));\n      }\n    }\n\n    /**\n     * Shows/hides variant metafield elements on the page as necessary\n     */\n    updateMetafieldVisibility() {\n      document.querySelectorAll('[data-variant-metafield]').forEach((elem) => {\n        elem.classList.toggle('hidden', elem.dataset.variantMetafield !== this.variant?.id.toString());\n      });\n    }\n\n    /**\n     * Updates the \"Add to Cart\" button label and disabled state.\n     */\n    updateAddToCartButton() {\n      this.productForm = this.section.querySelector('.js-product-form-main');\n      if (!this.productForm) return;\n\n      this.addBtn = this.addBtn || this.productForm.querySelector('[name=\"add\"]');\n      const variantAvailable = this.variant && this.variant.available;\n\n      this.addBtn.disabled = !variantAvailable || this.preSelection;\n\n      if (this.preSelection) {\n        this.addBtn.textContent = theme.strings.noSelectedVariant;\n      } else {\n\n        const unavailableStr = this.variant ? theme.strings.noStock : theme.strings.noVariant;\n        this.addBtn.textContent = variantAvailable\n          ? this.addBtn.dataset.addToCartText\n          : unavailableStr;\n      }\n    }\n\n    /**\n     * Updates the availability status of an option.\n     * @param {Element} optionEl - Option element.\n     * @param {boolean} exists - Does this option lead to a variant that exists?\n     * @param {boolean} available - Does this option lead to a variant that is available to buy?\n     */\n    static updateOptionAvailability(optionEl, exists, available) {\n      const el = optionEl;\n      const unavailableText = exists ? theme.strings.noStock : theme.strings.noVariant;\n      el.classList.toggle('is-unavailable', !available);\n      el.classList.toggle('is-nonexistent', !exists);\n\n      if (optionEl.classList.contains('custom-select__option')) {\n        const em = el.querySelector('em');\n\n        if (em) {\n          em.hidden = available;\n        }\n\n        if (!available) {\n          if (em) {\n            em.textContent = unavailableText;\n          } else {\n            el.innerHTML = `${el.innerHTML} <em class=\"pointer-events-none\">${unavailableText}</em>`;\n          }\n        }\n      } else if (!available) {\n        el.nextElementSibling.title = unavailableText;\n      } else {\n        el.nextElementSibling.removeAttribute('title');\n      }\n    }\n\n    /**\n     * Updates the availability status in option selectors.\n     */\n    updateAvailability() {\n      if (this.dataset.showAvailability === 'false') return;\n      const { availabilityMethod } = this.dataset; // 'downward' or 'selection'\n      let currVariant = this.variant;\n\n      if (!this.variant) {\n        currVariant = { options: this.selectedOptions };\n      }\n\n      if (availabilityMethod === 'selection') {\n        // Flag all options as unavailable\n        this.querySelectorAll('.js-option').forEach((optionEl) => {\n          VariantPicker.updateOptionAvailability(optionEl, false, false);\n        });\n\n        // Flag selector options as available or sold out, depending on the variant availability\n        this.optionSelectors.forEach((selector, selectorIndex) => {\n          this.data.product.variants.forEach((variant) => {\n            let matchCount = 0;\n\n            variant.options.forEach((option, optionIndex) => {\n              if (option === currVariant.options[optionIndex] && optionIndex !== selectorIndex) {\n                matchCount += 1;\n              }\n            });\n\n            if (matchCount === currVariant.options.length - 1) {\n              const options = selector.querySelectorAll('.js-option');\n              const optionEl = Array.from(options).find((opt) => {\n                if (selector.dataset.selectorType === 'dropdown') {\n                  return opt.dataset.value === variant.options[selectorIndex];\n                }\n                return opt.value === variant.options[selectorIndex];\n              });\n\n              if (optionEl) {\n                VariantPicker.updateOptionAvailability(optionEl, true, variant.available);\n              }\n            }\n          });\n        });\n      } else {\n        this.optionSelectors.forEach((selector, selectorIndex) => {\n          const options = selector.querySelectorAll('.js-option:not([data-value=\"\"])');\n          options.forEach((option) => {\n            const optionValue = selector.dataset.selectorType === 'dropdown' ? option.dataset.value : option.value;\n            // any available variants with previous options and this one locked in?\n            let variantsExist = false;\n            let variantsAvailable = false;\n            this.data.product.variants.forEach((v) => {\n              let matches = 0;\n              for (let i = 0; i < selectorIndex; i += 1) {\n                if (v.options[i] === this.selectedOptions[i] || this.selectedOptions[i] === null) {\n                  matches += 1;\n                }\n              }\n              if (v.options[selectorIndex] === optionValue && matches === selectorIndex) {\n                variantsExist = true;\n                if (v.available) {\n                  variantsAvailable = true;\n                }\n              }\n            });\n            VariantPicker.updateOptionAvailability(option, variantsExist, variantsAvailable);\n          });\n        });\n      }\n    }\n\n    /**\n     * Updates the backorder text and visibility.\n     */\n    updateBackorderText() {\n      this.backorder = this.backorder || this.section.querySelector('.backorder');\n      if (!this.backorder) return;\n\n      let hideBackorder = true;\n\n      if (this.variant && this.variant.available) {\n        const { inventory } = this.data.formatted[this.variant.id];\n\n        if (this.variant.inventory_management && inventory === 'none') {\n          const backorderProdEl = this.backorder.querySelector('.backorder__product');\n          const prodTitleEl = this.section.querySelector('.product-title');\n          const variantTitle = this.variant.title.includes('Default')\n            ? ''\n            : ` - ${this.variant.title}`;\n\n          backorderProdEl.textContent = `${prodTitleEl.textContent}${variantTitle}`;\n          hideBackorder = false;\n        }\n      }\n\n      this.backorder.hidden = hideBackorder;\n    }\n\n    /**\n     * Updates the color option label text.\n     * @param {object} evt - Event object\n     */\n    static updateLabelText(evt) {\n      const selector = evt.target.closest('.option-selector');\n      if (selector.dataset.selectorType === 'dropdown') return;\n\n      const colorText = selector.querySelector('.js-color-text');\n      if (!colorText) return;\n\n      colorText.textContent = evt.target.nextElementSibling.querySelector('.js-value').textContent;\n    }\n\n    /**\n     * Updates the compact selected option hint used by mobile bundle cards.\n     * @param {Element} optionEl - The changed option input.\n     * @param {boolean} animate - Whether to run the mobile helper attention cue.\n     */\n    static updateSelectedOptionHint(optionEl, animate = false) {\n      const selector = optionEl?.closest?.('.option-selector');\n      if (!selector || selector.dataset.selectorType === 'dropdown') return;\n\n      const selected = selector.querySelector('input:checked');\n      const hint = selector.querySelector('.js-selected-option-text');\n      const helper = selector.querySelector('.js-selected-option-helper');\n      if (!selected) {\n        if (helper) {\n          helper.textContent = '';\n          helper.hidden = true;\n          helper.classList.remove('is-helper-highlighted');\n        }\n        return;\n      }\n\n      const label = selected.nextElementSibling?.matches?.('label')\n        ? selected.nextElementSibling\n        : selector.querySelector(`label[for=\"${selected.id}\"]`);\n      const displayValue = label?.dataset.optionDisplayValue\n        || label?.querySelector('.js-value')?.textContent\n        || selected.value;\n      const subtext = label?.dataset.optionSubtext\n        || label?.querySelector('.opt-label__subtext')?.textContent\n        || '';\n\n      if (hint) {\n        hint.textContent = displayValue.trim();\n      }\n\n      if (helper) {\n        const nextText = subtext.trim();\n        // Text lives in an inner span so the block can clamp text (overflow:hidden)\n        // while the block itself stays overflow:visible to show the speech-bubble tail.\n        let textEl = helper.querySelector('.js-helper-text');\n        if (!textEl) {\n          textEl = document.createElement('span');\n          textEl.className = 'opt-helper__text js-helper-text';\n          helper.prepend(textEl);\n        }\n        textEl.textContent = nextText;\n        helper.hidden = !nextText;\n        helper.classList.remove('is-helper-highlighted');\n\n        if (nextText) {\n          VariantPicker.positionHelperTail(selector);\n          window.requestAnimationFrame(() => VariantPicker.positionHelperTail(selector));\n        }\n\n        if (animate && nextText) {\n          void helper.offsetWidth;\n          helper.classList.add('is-helper-highlighted');\n        }\n      }\n    }\n\n    /**\n     * Positions the descriptor block's speech-bubble tail under the selected card (mobile).\n     * Keeps the tail pointing at the chosen card on selection, card-row scroll and resize.\n     * @param {Element} selector - The option selector element.\n     */\n    static positionHelperTail(selector) {\n      if (!selector) return;\n      const helper = selector.querySelector('.js-selected-option-helper');\n      const selected = selector.querySelector('input:checked');\n      if (!helper || helper.hidden || !selected) return;\n\n      const label = selected.nextElementSibling?.matches?.('label')\n        ? selected.nextElementSibling\n        : selector.querySelector(`label[for=\"${selected.id}\"]`);\n      if (!label) return;\n\n      const helperBox = helper.getBoundingClientRect();\n      const labelBox = label.getBoundingClientRect();\n      if (!helperBox.width || !labelBox.width) return;\n\n      let tailX = (labelBox.left + labelBox.width / 2) - helperBox.left;\n      tailX = Math.max(16, Math.min(helperBox.width - 16, tailX));\n      helper.style.setProperty('--helper-tail-x', `${Math.round(tailX)}px`);\n\n      const btns = selector.querySelector('.option-selector__btns');\n      if (btns && !btns.dataset.tailScrollBound) {\n        btns.dataset.tailScrollBound = '1';\n        btns.addEventListener('scroll', () => {\n          window.requestAnimationFrame(() => VariantPicker.positionHelperTail(selector));\n        }, { passive: true });\n      }\n      if (!window.__lpwHelperTailResizeBound) {\n        window.__lpwHelperTailResizeBound = true;\n        window.addEventListener('resize', () => {\n          document.querySelectorAll('.option-selector').forEach((sel) => {\n            window.requestAnimationFrame(() => VariantPicker.positionHelperTail(sel));\n          });\n        }, { passive: true });\n      }\n    }\n\n    /**\n     * Keeps mobile horizontal bundle cards visible after selection.\n     * @param {Element} optionEl - The changed option input.\n     */\n    static scrollSelectedOptionIntoView(optionEl) {\n      if (!optionEl || !window.matchMedia('(max-width: 768px)').matches) return;\n\n      const label = optionEl.nextElementSibling?.matches?.('label')\n        ? optionEl.nextElementSibling\n        : optionEl.closest('.option-selector')?.querySelector(`label[for=\"${optionEl.id}\"]`);\n      const scroller = label?.closest?.('.option-selector__btns');\n      if (!label || !scroller || scroller.scrollWidth <= scroller.clientWidth) return;\n\n      const scrollerRect = scroller.getBoundingClientRect();\n      const labelRect = label.getBoundingClientRect();\n      const padding = 10;\n      let delta = 0;\n\n      if (labelRect.left < scrollerRect.left + padding) {\n        delta = labelRect.left - scrollerRect.left - padding;\n      } else if (labelRect.right > scrollerRect.right - padding) {\n        delta = labelRect.right - scrollerRect.right + padding;\n      }\n\n      if (Math.abs(delta) < 1) return;\n      scroller.scrollBy({ left: delta, behavior: 'smooth' });\n    }\n\n    /**\n     * Updates the product media.\n     */\n    updateMedia() {\n      if (!this.variant.featured_media) return;\n\n      if (this.section.matches('quick-add-drawer')) {\n        this.section.updateMedia(this.variant.featured_media.id);\n      } else {\n        this.mediaGallery = this.mediaGallery || this.section.querySelector('media-gallery');\n        if (!this.mediaGallery) return;\n\n        const variantMedia = this.mediaGallery.querySelector(\n          `[data-media-id=\"${this.variant.featured_media.id}\"]`\n        );\n        this.mediaGallery.setActiveMedia(variantMedia, true, true);\n      }\n    }\n\n    /**\n     * Updates the pick up availability.\n     */\n    updatePickupAvailability() {\n      this.pickUpAvailability =\n        this.pickUpAvailability || this.section.querySelector('pickup-availability');\n      if (!this.pickUpAvailability) return;\n\n      if (this.variant && this.variant.available) {\n        this.pickUpAvailability.getAvailability(this.variant.id);\n      } else {\n        this.pickUpAvailability.removeAttribute('available');\n        this.pickUpAvailability.innerHTML = '';\n      }\n    }\n\n    /**\n     * Updates the price.\n     */\n    updatePrice() {\n      this.price = this.price || this.section.querySelector('.product-info__price > .price');\n      if (!this.price) return;\n\n      let { variant } = this;\n      if (this.preSelection) {\n        variant = this.data.product.variants[0];\n        for (let i = 1; i < this.data.product.variants.length; i += 1) {\n          if (this.data.product.variants[i].price < variant.price) variant = this.data.product.variants[i];\n        }\n      }\n\n      if (this.variant) {\n        const priceCurrentEl = this.price.querySelector('.price__current');\n        const priceWasEl = this.price.querySelector('.price__was');\n        const unitPriceEl = this.price.querySelector('.unit-price');\n\n        // Update current price and original price if on sale.\n        priceCurrentEl.innerHTML = this.data.formatted[this.variant.id].price;\n        if (priceWasEl)\n          priceWasEl.innerHTML = this.data.formatted[this.variant.id].compareAtPrice || '';\n\n        const { savings, compareAtPrice } = this.data.formatted[this.variant.id];\n        const saveEl = this.price.querySelector('.price__save');\n        const listEl = this.price.querySelector('.price__list');\n        if (saveEl && listEl) {\n          saveEl.hidden = listEl.hidden = !savings;\n          if (savings) {\n            const amountEl = saveEl.querySelector('.price__save-amount');\n            if (amountEl) amountEl.innerHTML = savings;\n            else saveEl.innerHTML = `Save ${savings}`;\n            listEl.querySelector('s').innerHTML = compareAtPrice;\n          }\n        }\n\n        // Update unit price, if specified.\n        if (this.variant.unit_price_measurement) {\n          const valueEl = this.price.querySelector('.unit-price__price');\n          const unitEl = this.price.querySelector('.unit-price__unit');\n          const value = this.variant.unit_price_measurement.reference_value;\n          const unit = this.variant.unit_price_measurement.reference_unit;\n\n          valueEl.innerHTML = this.data.formatted[this.variant.id].unitPrice;\n          unitEl.textContent = value === 1 ? unit : `${value} ${unit}`;\n        }\n\n        unitPriceEl.hidden = !this.variant.unit_price_measurement;\n        this.price.classList.toggle(\n          'price--on-sale',\n          this.variant.compare_at_price > this.variant.price\n        );\n        this.price.classList.toggle('price--sold-out', !this.variant.available && !this.preSelection);\n      }\n\n      this.price.querySelector('.price__default').hidden = !this.variant && !this.preSelection;\n      this.price.querySelector('.price__no-variant').hidden = this.variant || this.preSelection;\n      const from = this.price.querySelector('.price__from');\n      if (from) {\n        from.hidden = !this.preSelection;\n      }\n    }\n\n    /**\n     * Updates the weight.\n     */\n    updateWeight() {\n      this.weights = this.weights || this.section.querySelectorAll('.product-info__weight');\n      if (this.weights.length === 0) return;\n\n      const weightAvailable = this.variant && this.variant.weight > 0;\n      this.weights.forEach((weight) => {\n        weight.textContent = weightAvailable ? this.data.formatted[this.variant.id].weight : '';\n        weight.hidden = !weightAvailable;\n      });\n    }\n\n    /**\n     * Updates the Barcode.\n     */\n    updateBarcode() {\n      this.barcodes = this.barcodes || this.section.querySelectorAll('.product-info__barcode-value');\n      if (this.barcodes.length === 0) return;\n\n      const barcodeAvailable = this.variant && this.variant.barcode;\n      this.barcodes.forEach((barcode) => {\n        barcode.textContent = barcodeAvailable ? this.variant.barcode : '';\n        barcode.parentNode.hidden = !barcodeAvailable;\n      });\n    }\n\n    /**\n     * Updates the SKU.\n     */\n    updateSku() {\n      this.sku = this.sku || this.section.querySelector('.product-sku__value');\n      if (!this.sku) return;\n\n      const skuAvailable = this.variant && this.variant.sku;\n      this.sku.textContent = skuAvailable ? this.variant.sku : '';\n      this.sku.parentNode.hidden = !skuAvailable;\n    }\n\n    /**\n     * Updates the url with the selected variant id.\n     * @param {object} evt - Event object.\n     */\n    updateUrl(evt) {\n      if (!evt || evt.type !== 'change' || this.dataset.updateUrl === 'false') return;\n      window.history.replaceState({}, '', `${this.dataset.url}?variant=${this.variant.id}`);\n    }\n\n    /**\n     * Updates the value of the hidden [name=\"id\"] form inputs.\n     */\n    updateVariantInput() {\n      this.forms =\n        this.forms || this.section.querySelectorAll('.js-product-form-main, .js-instalments-form');\n\n      this.forms.forEach((form) => {\n        const input = form.querySelector('input[name=\"id\"]');\n        input.value = this.variant.id;\n        input.dispatchEvent(new Event('change', { bubbles: true }));\n      });\n    }\n\n    /**\n     * Gets the selected option element from each selector.\n     * @returns {Array}\n     */\n    getSelectedOptions() {\n      const selectedOptions = [];\n\n      this.optionSelectors.forEach((selector) => {\n        if (selector.dataset.selectorType === 'dropdown') {\n          const selectedText = selector.querySelector('.custom-select__btn').textContent.trim();\n          selectedOptions.push(selectedText === this.dataset.placeholderText ? null : selectedText);\n        } else {\n          const selected = selector.querySelector('input:checked');\n          selectedOptions.push(selected ? selected.value : null);\n        }\n      });\n\n      return selectedOptions;\n    }\n\n    /**\n     * Gets the product data.\n     * @returns {?object}\n     */\n    getProductData() {\n      const dataEl = this.querySelector('[type=\"application/json\"]');\n      return JSON.parse(dataEl.textContent);\n    }\n\n    /**\n     * Get selected variant data.\n     * @returns {?object} Variant object, or null if one is not selected.\n     */\n    getSelectedVariant() {\n      const selectedOptions = this.getSelectedOptions();\n      return this.data.product.variants.find(\n        (v) => v.options.every((val, index) => val === selectedOptions[index])\n      );\n    }\n  }\n\n  customElements.define('variant-picker', VariantPicker);\n\n  document.addEventListener('DOMContentLoaded', () => {\n    document.querySelectorAll('variant-picker .option-selector[data-selector-type=\"listed\"] input:checked')\n      .forEach((optionEl) => VariantPicker.updateSelectedOptionHint(optionEl));\n  });\n}\n"],
  "mappings": "AAaA,GAAI,CAAC,eAAe,IAAI,gBAAgB,EAAG,CACzC,MAAM,sBAAsB,WAAY,CACtC,aAAc,CACZ,MAAM,EACN,KAAK,QAAU,KAAK,QAAQ,aAAa,EACzC,KAAK,YAAc,KAAK,QAAQ,cAAc,uBAAuB,EACrE,KAAK,gBAAkB,KAAK,iBAAiB,kBAAkB,EAC/D,KAAK,KAAO,KAAK,eAAe,EAChC,KAAK,QAAU,KAAK,mBAAmB,EACvC,KAAK,gBAAkB,KAAK,mBAAmB,EAC/C,KAAK,aAAe,CAAC,KAAK,SAAW,KAAK,gBAAgB,KAAM,GAAM,IAAM,IAAI,IAAM,KAEtF,KAAK,iBAAiB,SAAU,KAAK,oBAAoB,KAAK,IAAI,CAAC,EAGnE,WAAW,IAAM,CACf,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,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