{
  "version": 3,
  "sources": ["/cdn/shop/t/211/assets/component-product-form.js?section_id=helper-cart"],
  "sourcesContent": ["if ( typeof ProductVariants !== 'function' ) {\n\n\tconst __krownSafeNavigate = (url) => {\n\t\tif (!url) return;\n\t\ttry {\n\t\t\tif (window.top === window.self) {\n\t\t\t\twindow.location.assign(url);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t// Ignore sandboxed frame navigation attempts.\n\t\t}\n\t};\n\n\tclass ProductVariants extends HTMLElement {\n\n\t\tconstructor() {\n\t\t\tsuper();\n\n\t\t\tthis._cachedOptions = new Map(); // Map for cached options with LRU eviction\n\t\t\tthis._loadingOptions = new Set(); // Options currently being loaded\n\t\t\tthis._debounceTimers = {}; // Debounce timers for mouseover events\n\t\t\tthis._prefetchedUrls = new Set(); // Set to keep track of prefetched URLs\n\t\t\tthis.observer = null; // IntersectionObserver instance\n\t\t\tthis.CACHE_LIMIT = 100; // Cache limit\n\n\t\t\tthis.init();\n\n\t\t}\n\n\t\tinit() {\n\n\t\t\tif ( this.hasAttribute('data-enable-skeleton' ) ) {\n\t\t\t\tconst skeleton = this.closest('.has-skeleton').querySelector('[data-js-product-item-skeleton]');\n\t\t\t\tthis.skeletonElements = [...skeleton.querySelector('.product-item__text').children];\n\t\t\t\tthis.skeletonSettings = JSON.parse(skeleton.querySelector('[data-product-skeleton-settings]').textContent);\n\t\t\t}\n\n\t\t\tthis._event = new Event('VARIANT_CHANGE');\n\n\t\t\tthis.productPage = this.closest('[data-js-product-component]');\n\n\t\t\tthis.productForm = document.querySelector(`#product-form-${this.dataset.id}`);\n\t\t\tif ( this.productForm ) {\n\t\t\t\tthis.productQty = this.productForm.querySelector('[data-js-product-quantity]');\n\t\t\t\tthis.addToCart = this.productForm.querySelector('[data-js-product-add-to-cart]');\n\t\t\t\tthis.addToCartText = this.productForm.querySelector('[data-js-product-add-to-cart-text]');\n\t\t\t}\n\n\t\t\tthis.addEventListener('change', this.onOptionChange.bind(this));\n\t\t\tlet initVariantChange = false;\n\n\t\t\tif ( this.hasAttribute('data-variant-required' ) ) {\n\t\t\t\tthis.variantRequired = true;\n\t\t\t\tthis.noVariantSelectedYet = true;\n\t\t\t\tthis.fauxVariant = JSON.parse(this.querySelector('[data-js-variant-data]').textContent);\n\t\t\t\tif ( document.location.search.includes('variant') && this.hasAttribute('data-main-product-page-variants') ) {\n\t\t\t\t\tconst initVariant = parseInt(new URLSearchParams(document.location.search).get('variant'));\n\t\t\t\t\tif ( initVariant ) {\n\t\t\t\t\t\tthis.updateCurrentVariant();\n\t\t\t\t\t\tthis.variantRequired = false;\n\t\t\t\t\t\tthis.noVariantSelectedYet = false;\n\t\t\t\t\t\tinitVariantChange = true;\n\t\t\t\t\t\tthis.classList.add('variant-selected');\n\t\t\t\t\t\tthis.productPage.classList.add('variant-selected');\n\t\t\t\t\t\tthis.querySelectorAll('[data-option-value-id][data-selected]').forEach(elm=>{\n\t\t\t\t\t\t\telm.tagName === 'OPTION' ? elm.setAttribute('selected', 'selected') : elm.setAttribute('checked', 'checked');\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tif ( this.getAttribute('data-unavailable-variants') !== 'hide' ) {\n\t\t\t\t\t\tthis.querySelectorAll('[disabled]').forEach(elm=>{\n\t\t\t\t\t\t\tif ( ! elm.hasAttribute('data-disabled') ) {\n\t\t\t\t\t\t\t\telm.removeAttribute('disabled')\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.querySelectorAll('.disabled').forEach(elm=>{\n\t\t\t\t\t\t\telm.classList.remove('disabled')\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.querySelectorAll('[data-silent-selected]').forEach(elm=>{\n\t\t\t\t\t\tif ( elm.dataset.productUrl == this.dataset.url ) {\n\t\t\t\t\t\t\telm.removeAttribute('data-silent-selected');\n\t\t\t\t\t\t\telm.tagName === 'OPTION' ? elm.setAttribute('selected', 'selected') : elm.setAttribute('checked', 'checked');\n\t\t\t\t\t\t\tif ( parseInt(this.dataset.variants) == 1 ) {\n\t\t\t\t\t\t\t\tthis.variantRequired = false;\n\t\t\t\t\t\t\t\tthis.noVariantSelectedYet = false;\n\t\t\t\t\t\t\t\tthis.classList.add('variant-selected');\n\t\t\t\t\t\t\t\tthis.productPage.classList.add('variant-selected');\n\t\t\t\t\t\t\t\tinitVariantChange = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.checkIfSelectedVariant();\n\t\t\t\t\t\t\tthis.updateCurrentVariant();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tconst combination = [];\n\t\t\t\t\tthis.querySelectorAll('[data-option-value-id][data-selected]').forEach(elm=>{\n\t\t\t\t\t\tcombination.push(elm.dataset.optionValueId);\n\t\t\t\t\t});\n\t\t\t\t\tthis.debounceOptionLoad(combination.join(',').replace(/,/g, '-'), 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.variantRequired = false;\n\t\t\t\tthis.noVariantSelectedYet = false;\n\t\t\t\tthis.classList.add('variant-selected');\n\t\t\t\tthis.productPage.classList.add('variant-selected');\n\t\t\t\tthis.updateCurrentVariant();\n\t\t\t}\n\n\t\t\tthis.productStock = document.querySelector(`#product-${this.dataset.id} [data-js-variant-quantity]`);\n\t\t\tthis.productStockProgress = document.querySelector(`#product-${this.dataset.id} [data-js-variant-quantity-progress]`);\n\t\t\tif ( this.productStock && document.querySelector(`#product-${this.dataset.id} [data-js-variant-quantity-data]`) ) {\n\t\t\t\tthis.updateStock(JSON.parse(document.querySelector(`#product-${this.dataset.id} [data-js-variant-quantity-data]`).getAttribute('data-inventory')));\n\t\t\t}\n\n\t\t\tif ( initVariantChange ) {\n\t\t\t\tconst combination = [];\n\t\t\t\tthis.querySelectorAll('[data-option-value-id][data-selected]').forEach(elm => {\n\t\t\t\t\tcombination.push(elm.dataset.optionValueId);\n\t\t\t\t});\n\t\t\t\tthis.fetchProductUpdates(combination.join(',').replace(/,/g, '-'), this.renderProductUpdates.bind(this), false, true);\n\t\t\t}\n\n\t\t\t// preloading of option values\n\n\t\t\tnew IntersectionObserver((entries) => {\n\t\t\t\tentries.forEach((entry) => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tconst combinations = this.getPossibleCombinations();\n\t\t\t\t\t\tcombinations.forEach((combination) => {\n\t\t\t\t\t\t\tthis.debounceOptionLoad(combination.join(',').replace(/,/g, '-'));\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.querySelectorAll('[data-product-url]').forEach(elm=>{\n\t\t\t\t\t\t\tthis.prefetchPage(elm.dataset.productUrl);\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}, {\n\t\t\t\trootMargin: '0px',\n\t\t\t\tthreshold: 0.1,\n\t\t\t}).observe(this);\n\n\t\t\tnew MutationObserver(() => {\n\t\t\t\tconst combinations = this.getPossibleCombinations();\n\t\t\t\tcombinations.forEach((combination) => {\n\t\t\t\t\tthis.debounceOptionLoad(combination.join(',').replace(/,/g, '-'));\n\t\t\t\t});\n\t\t\t\tthis.querySelectorAll('[data-product-url]').forEach(elm=>{\n\t\t\t\t\tthis.prefetchPage(elm.dataset.productUrl);\n\t\t\t\t})\n\t\t\t}).observe(this.querySelector('[data-js-variant-data]'), {\n\t\t\t\tattributes: false, childList: true, subtree: false\n\t\t\t});\n\n\t\t\tthis.addEventListeners();\n\n\t\t}\n\n\t\taddEventListeners() {\n\n\t\t\tthis.querySelectorAll('[data-option-value-id]').forEach((elm) => {\n\t\t\t\t\n\t\t\t\telm.addEventListener('mouseover', (e) => {\n\t\t\t\t\te.stopPropagation();\n\t\t\t\t\tif ( ! e.target.hasAttribute('data-selected') && ! e.target.hasAttribute('data-product-url') ) {\n\t\t\t\t\t\tconst combination = this.getSpecificCombinations(e.target, e.target.closest('[data-js-product-variant-container]'));\n\t\t\t\t\t\tthis.debounceOptionLoad(combination.join(',').replace(/,/g, '-'), 1);\n\t\t\t\t\t} else if ( e.target.hasAttribute('data-custom-product-url' ) ) {\n\t\t\t\t\t\tthis.debounceOptionLoad(combination.join(',').replace(/,/g, '-'), 1, e.target.getAttribute('data-custom-product-url'));\n\t\t\t\t\t}\t\n\t\t\t\t});\n\t\n\t\t\t\telm.addEventListener('touchstart', e => {\n\t\t\t\t\te.stopPropagation(); \n\t\t\t\t\tif ( ! e.target.hasAttribute('data-selected') && ! e.target.hasAttribute('data-product-url') ) {\n\t\t\t\t\t\tconst combination = this.getSpecificCombinations(e.target, e.target.closest('[data-js-product-variant-container]'));\n\t\t\t\t\t\tthis.debounceOptionLoad(combination.join(',').replace(/,/g, '-'), 1);\n\t\t\t\t\t} else if ( e.target.hasAttribute('data-custom-product-url' ) ) {\n\t\t\t\t\t\tthis.debounceOptionLoad(combination.join(',').replace(/,/g, '-'), 1, e.target.getAttribute('data-custom-product-url'));\n\t\t\t\t\t}\t\n\t\t\t\t}, { passive:true });\n\t\t\t});\n\n\t\t}\n\n\t\tdebounceOptionLoad(optionValuesHash, delay = 20) {\n\t\t\t// Debounce function to prevent multiple quick fetches\n\t\t\tif (this._debounceTimers[optionValuesHash]) {\n\t\t\t\tclearTimeout(this._debounceTimers[optionValuesHash]);\n\t\t\t}\n\t\t\tthis._debounceTimers[optionValuesHash] = setTimeout(() => {\n\t\t\t\tif (!this._cachedOptions.has(optionValuesHash) && !this._loadingOptions.has(optionValuesHash)) {\n\t\t\t\t\tthis.preloadOption(optionValuesHash);\n\t\t\t\t}\n\t\t\t}, delay);\n\t\t}\n\n\t\tpreloadOption(optionValuesHash) {\n\t\t\t// Preload a single option\n\t\t\tthis._loadingOptions.add(optionValuesHash);\n\t\t\tthis.fetchProductUpdates(optionValuesHash, (html) => {\n\t\t\t\tthis.cacheProductUpdates(html, optionValuesHash);\n\t\t\t\tthis._loadingOptions.delete(optionValuesHash);\n\t\t\t});\n\t\t}\n\t\n\t\tprefetchPage(url) {\n\t\t\t// Prefetch the page using a link element\n\t\t\tif ( ! this._prefetchedUrls.has(url) && url !== window.location.pathname ) {\n\t\t\t\tconst link = document.createElement('link');\n\t\t\t\tlink.rel = 'prefetch';\n\t\t\t\tlink.href = url;\n\t\t\t\tdocument.head.appendChild(link);\n\t\t\t\tthis._prefetchedUrls.add(url);\n\t\t\t}\n\t\t}\n\n\t\tgetSelectedOptionHash(){ \n\t\t\treturn [...this.querySelectorAll('select[data-js-product-variant-container], input:checked')]\n\t\t\t\t.map(el => el.dataset.optionValueId || el.selectedOptions[0]?.dataset.optionValueId)\n\t\t\t\t.filter(value => value !== undefined)\n\t\t\t\t.join(',').replace(/,/g, '-');\n\t\t}\n\n\t\tgetPossibleCombinations() {\n\t\n\t\t\tconst currentSelections = [];\n\t\t\tconst options = [];\n\t\n\t\t\tthis.querySelectorAll('[data-js-product-variant-container]').forEach(row => {\n\t\t\t\tconst rowOptions = [];\n\t\t\t\tlet currentSelection = null;\n\n\t\t\t\trow.querySelectorAll('[data-option-value-id]').forEach(option => {\n\t\t\t\t\trowOptions.push(option.getAttribute('data-option-value-id'));\n\t\t\t\t\tif (option.hasAttribute('data-selected')) {\n\t\t\t\t\t\tcurrentSelection = option.getAttribute('data-option-value-id');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\n\t\t\t\tif (currentSelection === null) {\n\t\t\t\t\t//console.error('No selected option found in one of the rows');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\n\t\t\t\toptions.push(rowOptions);\n\t\t\t\tcurrentSelections.push(currentSelection);\n\t\t\t});\n\t\t\n\t\t\tfunction generatePossibleCombinations(currentSelections, options) {\n\t\t\t\tconst possibleCombinations = [];\n\t\t\n\t\t\t\tfor (let i = 0; i < currentSelections.length; i++) {\n\t\t\t\t\tconst newCombination = [...currentSelections];\n\t\t\t\t\toptions[i].forEach((option) => {\n\t\t\t\t\t\tif ( option !== currentSelections[i] && ! this.querySelector(`[data-option-value-id=\"${option}\"]`).hasAttribute('data-product-url') ) {\n\t\t\t\t\t\t\tnewCombination[i] = option;\n\t\t\t\t\t\t\tpossibleCombinations.push([...newCombination]);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn possibleCombinations;\n\t\t\t}\n\t\t\n\t\t\treturn generatePossibleCombinations.call(this, currentSelections, options);\n\t\t}\n\n\t\tgetSpecificCombinations(hoveredOption, hoveredRow) {\n\t\t\tconst newCombination = [];\n\t\t\tthis.querySelectorAll('[data-js-product-variant-container]').forEach(row => {\n\t\t\t\tif ( row === hoveredRow ) {\n\t\t\t\t\tnewCombination.push(hoveredOption.dataset.optionValueId);\n\t\t\t\t} else {\n\t\t\t\t\tnewCombination.push(row.querySelector('[data-selected]').dataset.optionValueId);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn newCombination;\n\t\t}\n\n\t\tasync fetchProductUpdates(optionValuesHash, callback, checkHash = false, force = false, priority = 'auto') {\n\t\t\t// turn from hash to no hash\n\t\t\t// Fetch product updates\n\t\t\ttry {\n\t\t\t\tconst response = await fetch(`${this.dataset.url}${this.dataset.url.includes('?') ? '&' : '?'}section_id=${this.dataset.helperId}&option_values=${optionValuesHash.replace(/-/g, ',')}`, {prioirty: priority});\n\t\t\t\tconst responseText = await response.text();\n\t\t\t\tconst html = new DOMParser().parseFromString(responseText, 'text/html');\n\t\t\t\tif ( optionValuesHash === this.currentOptionValueHash || checkHash === false || force ) {\n\t\t\t\t\tcallback(html, optionValuesHash);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(`Error fetching options ${optionValuesHash}:`, error);\n\t\t\t\tthis._loadingOptions.delete(optionValuesHash);\n\t\t\t}\n\t\t}\n\n\t\tasync fetchAndReloadProductItem(url, productItem) {\n\n\t\t\tproductItem.classList.add('loading');\n\n\t\t\ttry {\n\n\t\t\t\tconst response = await fetch(`${url}${url.includes('?') ? '&' : '?'}section_id=helper-product-item`);\t\n\t\t\t\tlet responseText = await response.text();\n\t\t\t\tconst responseId = `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;\n\t\t\t\tresponseText = responseText.replaceAll(/UNIQUE_ID/g, responseId);\n\n\t\t\t\tconst html = new DOMParser().parseFromString(responseText, 'text/html');\n\t\t\t\tKROWN.productItemUpdateHelper(productItem, responseId, html, {elements: this.skeletonElements, settings: this.skeletonSettings});\n\t\t\t\tproductItem.classList.remove('loading');\n\n\t\t\t\tproductItem.dispatchEvent(new Event('reload', { bubbles: true }));\n\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(`Error`, error); \n\t\t\t\tproductItem.classList.remove('loading');\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\tasync fetchAndReloadProductPage(url, productPage) {\n\n\t\t\tproductPage.classList.add('loading');\n\n\t\t\ttry {\n\t\t\t\tconst response = await fetch(`${url}${url.includes('?') ? '&' : '?'}view=quick-view`);\t\n\t\t\t\tlet responseText = await response.text();\n\t\t\t\tconst quickViewHTML = new DOMParser().parseFromString(responseText, 'text/html').querySelector('#product-quick-view');\n\t\t\t\tproductPage.innerHTML = quickViewHTML.innerHTML;\n\t\t\t\tproductPage.classList.remove('loading');\n\t\t\t\tproductPage.dispatchEvent(new Event('reload', { bubbles: true }));\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(`Error`, error); \n\t\t\t\tproductPage.classList.remove('loading');\n\t\t\t}\n\t\t}\n\n\t\tcacheProductUpdates(html, optionValuesHash) {\n\t\t\t// Cache the fetched HTML with LRU eviction\n\t\t\tif (this._cachedOptions.size >= this.CACHE_LIMIT) {\n\t\t\t\t// Remove the oldest item (first entry in the Map)\n\t\t\t\tconst oldestKey = this._cachedOptions.keys().next().value;\n\t\t\t\tthis._cachedOptions.delete(oldestKey);\n\t\t\t}\n\t\n\t\t\t// Add the new item\n\t\t\tthis._cachedOptions.set(optionValuesHash, html);\n\t\t\t// Ensure the most recently accessed item is moved to the end of the Map\n\t\t\tthis._updateCacheOrder(optionValuesHash);\n\t\t}\n\n\t\t_updateCacheOrder(optionValuesHash) {\n\t\t\t// Move the accessed item to the end to mark it as recently used\n\t\t\tconst value = this._cachedOptions.get(optionValuesHash);\n\t\t\tthis._cachedOptions.delete(optionValuesHash);\n\t\t\tthis._cachedOptions.set(optionValuesHash, value);\n\t\t}\n\n\n\t\tonOptionChange(e) {\n\t\t\tconst variant = e.target;\n\t\t\tconst targetUrl = variant instanceof HTMLSelectElement ? variant.selectedOptions[0].dataset.productUrl : variant.dataset.productUrl;\n\t\t\tconst variantId = variant instanceof HTMLSelectElement ? variant.selectedOptions[0].dataset.variantId : variant.dataset.variantId\n\t\t\tconst optionValuesHash = this.getSelectedOptionHash();\n\t\t\tthis.currentOptionValueHash = optionValuesHash;\n\t\t\tthis.addEventListeners();\n\n\t\t\tif ( targetUrl !== '' && targetUrl !== undefined && targetUrl !== this.dataset.url ) {\n\t\t\t\tif ( variant.hasAttribute('data-product-custom-url') || ( variant instanceof HTMLSelectElement && variant.selectedOptions[0].hasAttribute('data-product-custom-url') ) ) {\n\t\t\t\t\tif ( variant.dataset.productCustomUrl == 'product' ) {\n\t\t\t\t\t\tthis.fetchAndReloadProductItem(targetUrl, variant.closest('[data-js-product-item]'));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.fetchAndReloadProductPage(targetUrl, variant.closest('[data-js-product-page]'));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t__krownSafeNavigate(targetUrl);\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tif ( this.variantRequired && this.noVariantSelectedYet ) {\n\t\t\t\t\tthis.checkIfSelectedVariant();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( this.noVariantSelectedYet == false ) {\n\t\t\t\t\tif (this._cachedOptions.has(optionValuesHash)) {\n\t\t\t\t\t\t// Use cached content if available\n\t\t\t\t\t\tthis.renderProductUpdates(this._cachedOptions.get(optionValuesHash));\n\t\t\t\t\t\tthis._updateCacheOrder(optionValuesHash);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Fetch updates if not cached\n\t\t\t\t\t\tthis.fetchProductUpdates(optionValuesHash, this.renderProductUpdates.bind(this), true, false, 'high');\n\t\t\t\t\t}\n\t\t\t\t\tthis.updateURL(variantId);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\trenderProductUpdates(html) {\n\n\t\t\t// update variant specific blocks\n\t\t\thtml.querySelectorAll('[data-update-block]').forEach(elm=>{\n\t\t\t\tif ( ! elm.hasAttribute('data-update-block-inner') ) {\n\t\t\t\t\tthis.productPage.querySelector(`[data-update-block=\"${elm.dataset.updateBlock}\"]`).innerHTML = elm.innerHTML;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// update product id (selected variant)\n\t\t\tthis.productPage.querySelectorAll('input[name=\"id\"]').forEach(elm=>{\n\t\t\t\tif ( elm.closest('[data-js-product-component]') === this.productPage ) {\n\t\t\t\t\telm.value = html.querySelector('input[name=\"id\"]').value;\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t// update current variant and available options\n\t\t\tthis.updateCurrentVariant();\n\t\t\tthis.updateOptions(html.querySelectorAll('[data-main-product-variants] [data-option-value-id]'));\n\n\t\t\t// handle stock related updates\n\t\t\tif ( this.productStock && html.querySelector('[data-js-variant-quantity-data]' ) ) {\n\t\t\t\tthis.updateStock(JSON.parse(html.querySelector('[data-js-variant-quantity-data]').getAttribute('data-inventory')));\n\t\t\t}\n\t\t\tthis.updateOutOfStockVariants();\n\t\t\tthis.updateBuyButtons();\n\t\t\n\t\t\tthis.dispatchEvent(this._event);\n\n\t\t}\n\n\t\tupdateOptions(optionsData) {\n\n\t\t\toptionsData.forEach(option => {\n\t\t\t\t\n\t\t\t\tconst optionElm = this.querySelector(`[data-option-value-id=\"${option.dataset.optionValueId}\"]`);\n\n\t\t\t\toptionElm.setAttribute('data-available', option.dataset.available);\n\t\t\t\toptionElm.setAttribute('data-variant-id', option.dataset.variantId);\n\t\t\t\tif ( option.hasAttribute('data-product-url') != '' ) {\n\t\t\t\t\toptionElm.setAttribute('data-product-url', option.dataset.productUrl);\n\t\t\t\t} else {\n\t\t\t\t\toptionElm.removeAttribute('data-product-url');\n\t\t\t\t}\n\t\t\t\tif ( option.hasAttribute('data-selected') ) {\n\t\t\t\t\toptionElm.setAttribute('data-selected', '');\n\t\t\t\t\toptionElm.setAttribute(`${optionElm instanceof HTMLOptionElement ? 'selected' : 'checked'}`, '');\n\t\t\t\t} else {\n\t\t\t\t\toptionElm.removeAttribute('data-selected');\n\t\t\t\t\toptionElm.removeAttribute(`${optionElm instanceof HTMLOptionElement ? 'selected' : 'checked'}`, '');\n\t\t\t\t}\n\n\t\t\t\tif ( this.dataset.unavailableVariants != 'show' && option.dataset.available == 'false' && ! ( optionElm.hasAttribute('data-product-url') ) ) {\n\t\t\t\t\toptionElm.setAttribute('disabled', 'disabled');\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! optionElm.hasAttribute('data-disabled') ) {\n\t\t\t\t\t\toptionElm.removeAttribute('disabled');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( option.dataset.available == 'true' ) {\n\t\t\t\t\tif ( ! (optionElm instanceof HTMLOptionElement) ) {\n\t\t\t\t\t\toptionElm.classList.remove('disabled');\n\t\t\t\t\t\toptionElm.closest('.product-variant__item').classList.remove('disabled');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! (optionElm.hasAttribute('data-product-url') ) ) {\n\t\t\t\t\t\tif ( ! (optionElm instanceof HTMLOptionElement) ) {\n\t\t\t\t\t\t\toptionElm.classList.add('disabled');\n\t\t\t\t\t\t\toptionElm.closest('.product-variant__item').classList.add('disabled');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t}\n\n\t\tupdateBuyButtons(){\n\t\t\tif ( this.productForm ) {\n\t\t\t\tif ( ! this.currentVariant || ! this.currentVariant.available ) {\n\t\t\t\t\tif ( this.productQty ) this.productQty.style.display = 'none';\n\t\t\t\t\tthis.addToCart.classList.add('disabled');\n\t\t\t\t\tthis.productForm.classList.add('disabled-cart');\n\t\t\t\t\tthis.addToCartText.textContent = KROWN.settings.locales.products_sold_out_variant;\n\t\t\t\t} else {\n\t\t\t\t\tif ( this.productQty ) this.productQty.style.display = '';\n\t\t\t\t\tthis.addToCart.classList.remove('disabled');\n\t\t\t\t\tthis.productForm.classList.remove('disabled-cart');\n\t\t\t\t\tthis.addToCartText.textContent = this.hasAttribute('data-show-bundle-wording') ? KROWN.settings.locales.products_add_to_bundle_button : this.addToCartText.hasAttribute('data-show-preorder-wording') ? KROWN.settings.locales.products_preorder_button : KROWN.settings.locales.products_add_to_cart_button;\n\t\t\t\t}\n\t\t\t\tif ( ! this.currentVariant ) {\n\t\t\t\t\tthis.productForm.classList.add('unavailable-variant');\n\t\t\t\t\tthis.addToCartText.textContent = (this.variantRequired && this.noVariantSelectedYet) ? KROWN.settings.locales.products_variant_required : KROWN.settings.locales.products_unavailable_variant;\n\t\t\t\t} else {\n\t\t\t\t\tthis.productForm.classList.remove('unavailable-variant');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tupdateCurrentVariant(){\n\t\t\tthis.currentVariant = JSON.parse(this.querySelector('[data-js-variant-data]').textContent);\n\t\t\tif ( this.currentVariant == null ) {\n\t\t\t\tthis.currentVariant = false;\n\t\t\t}\n\t\t}\n\n\t\tupdateStock(productStockData){\n\n\t\t\tif ( this.productStock ) {\n\n\t\t\t\tif ( ! this.currentVariant) {\n\t\t\t\t\tif ( this.productStock ) {\n\t\t\t\t\t\tthis.productStock.innerHTML = '';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\n\t\t\t\t\tif ( this.productStock && productStockData[0] ) {\n\n\t\t\t\t\t\tlet currentVariant = productStockData[0];\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.productStock.innerHTML = '';\n\n\t\t\t\t\t\tif ( currentVariant ) {\n\n\t\t\t\t\t\t\tif ( currentVariant.quantity <= 0 ) {\n\t\t\t\t\t\t\t\tif ( currentVariant.inventory == 'continue' ) {\n\t\t\t\t\t\t\t\t\tthis.productStock.innerHTML = KROWN.settings.locales.products_preorder;\n\t\t\t\t\t\t\t\t\tthis.productStock.setAttribute('data-stock', 'pre-order');\n\t\t\t\t\t\t\t\t} else if ( currentVariant.inventory == 'deny' ) {\n\t\t\t\t\t\t\t\t\tthis.productStock.innerHTML = KROWN.settings.locales.products_no_products;\n\t\t\t\t\t\t\t\t\tthis.productStock.setAttribute('data-stock', 'out-of-stock');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( currentVariant.quantity == '1' ) {\n\t\t\t\t\t\t\t\tthis.productStock.innerHTML = KROWN.settings.locales.products_one_product;\n\t\t\t\t\t\t\t\tthis.productStock.setAttribute('data-stock', 'one-item-stock');\n\t\t\t\t\t\t\t} else if ( currentVariant.quantity <= parseInt(this.productStock.dataset.lowStock) ) {\n\t\t\t\t\t\t\t\tthis.productStock.innerHTML = KROWN.settings.locales.products_few_products.replace('{{ count }}', currentVariant.quantity);\n\t\t\t\t\t\t\t\tthis.productStock.setAttribute('data-stock', 'little-stock');\n\t\t\t\t\t\t\t} else if ( currentVariant.unavailable ) {\n\t\t\t\t\t\t\t\tthis.productStock.innerHTML = KROWN.settings.locales.products_no_products;\n\t\t\t\t\t\t\t\tthis.productStock.setAttribute('data-stock', 'out-of-stock');\n\t\t\t\t\t\t\t} else if ( currentVariant.quantity > parseInt(this.productStock.dataset.lowStock) && this.productStock.dataset.type == \"always\" ) {\n\t\t\t\t\t\t\t\tthis.productStock.innerHTML = KROWN.settings.locales.products_many_products.replace('{{ count }}', currentVariant.quantity);\n\t\t\t\t\t\t\t\tthis.productStock.setAttribute('data-stock', 'in-stock');\n\t\t\t\t\t\t\t} else if ( ! currentVariant.quantity && this.productStock.dataset.type == \"always\" )  {\n\t\t\t\t\t\t\t\tthis.productStock.innerHTML = KROWN.settings.locales.products_enough_products;\n\t\t\t\t\t\t\t\tthis.productStock.setAttribute('data-stock', 'in-stock');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ( this.productStockProgress ) {\n\t\t\t\t\t\t\t\tlet progressQty = 0;\n\t\t\t\t\t\t\t\tif ( currentVariant.quantity <= 0 && currentVariant.inventory == 'continue' || typeof currentVariant.quantity === 'undefined' ) {\n\t\t\t\t\t\t\t\t\tprogressQty = parseInt(this.productStock.dataset.highStock);\n\t\t\t\t\t\t\t\t} else if ( currentVariant.quantity > 0 ) {\n\t\t\t\t\t\t\t\t\tprogressQty = currentVariant.quantity;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ( progressQty >= parseInt(this.productStock.dataset.highStock)  ) {\n\t\t\t\t\t\t\t\t\tthis.productStockProgress.style.width = `100%`;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.productStockProgress.style.width = `${100 * progressQty / parseInt(this.productStock.dataset.highStock)}%`;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tupdateOutOfStockVariants() {\n\n\t\t\t// Check if all the variants in a group are disabled, show an \"out of stock\" message\n\n\t\t\tthis.querySelectorAll('[data-js-product-variant]').forEach(variant=>{\n\t\t\t\tlet allDisabled = true;\n\t\t\t\tvariant.classList.remove('product-variant--all-disabled');\n\t\t\t\tvariant.querySelector('.product-variant__out-of-stock')?.classList.add('hide');\n\t\t\t\tvariant.querySelector('.product-variant__out-of-stock')?.setAttribute('aria-hidden', 'true');\n\t\t\t\tvariant.querySelectorAll('.product-variant-value').forEach(variantInput=>{\n\t\t\t\t\tif ( ! ( variantInput.hasAttribute('disabled') || variantInput.classList.contains('disabled') ) ) {\n\t\t\t\t\t\tallDisabled = false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif ( allDisabled ) {\n\t\t\t\t\tvariant.classList.add('product-variant--all-disabled');\n\t\t\t\t\tvariant.querySelector('.product-variant__out-of-stock')?.classList.remove('hide');\n\t\t\t\t\tvariant.querySelector('.product-variant__out-of-stock')?.removeAttribute('aria-hidden');\n\t\t\t\t}\t\n\t\t\t});\n\n\t\t}\n\n\t\tupdateURL(variantId = '') {\n\t\t\tif (!this.hasAttribute('data-no-history') && variantId !== '') {\n\t\t\t\twindow.history.replaceState({}, '', `${this.dataset.url}?variant=${variantId}`);\n\t\t\t}\n\t\t}\n\n\t\tcheckIfSelectedVariant(){\n\n\t\t\tthis.options = [];\n\t\t\tthis.querySelectorAll('[data-js-product-variant-container]').forEach(elm=>{\n\t\t\t\tif ( elm.dataset.jsProductVariantContainer == 'radio' ) {\n\t\t\t\t\telm.querySelectorAll('.product-variant__input').forEach(el=>{\n\t\t\t\t\t\tif ( el.checked ) {\n\t\t\t\t\t\t\tthis.options.push(el.value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! ( this.variantRequired && elm.selectedIndex == 0 ) ) {\n\t\t\t\t\t\tthis.options.push(elm.value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tif ( this.variantRequired && this.noVariantSelectedYet && this.options.length >= parseInt(this.dataset.variants) ) {\n\t\t\t\tthis.noVariantSelectedYet = false;\n\t\t\t\tthis.classList.add('variant-selected');\n\t\t\t\tthis.productPage.classList.add('variant-selected');\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\n  if ( typeof customElements.get('product-variants') == 'undefined' ) {\n\t\tcustomElements.define('product-variants', ProductVariants);\n\t}\n\n}\n\n/* ---\n\tProduct Form\n--- */\n\nif ( typeof ProductForm !== 'function' ) {\n\n\tclass ProductForm extends HTMLElement {\n\t\tconstructor() {\n\t\t\tsuper();   \n\t\t\tthis.init();\n\t\t}\n\n\t\tinit(){\n\t\t\tthis.productPage = this.closest('[data-js-product-component]');\n\t\t\tthis.cartType = this.hasAttribute('data-ajax-cart') ? ( KROWN.settings.cart_action == 'popup' ? 'popup' : 'ajax' ) : 'page';\n\t\t\tif ( ! document.body.classList.contains('template-cart') || this.hasAttribute('data-force-form' ) ) {\n\t\t\t\tthis.form = this.querySelector('form');\n\t\t\t\tthis.form.addEventListener('submit', this.onSubmitHandler.bind(this));\n\t\t\t\tthis.ADD_TO_CART = new Event('add-to-cart');\n\t\t\t}\n\t\t\tif ( document.body.classList.contains('touchevents') ) {\n\t\t\t\tconst submitButton = this.querySelector('[type=\"submit\"]');\n\t\t\t\tif ( submitButton ) {\n\t\t\t\t\tsubmitButton.addEventListener('touchend', e=>{\n\t\t\t\t\t\t//submitButton.click();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tonSubmitHandler(e) {\t\n\n\t\t\te.preventDefault();\n\t\t\t\n\t\t\tconst submitButton = this.querySelector('[type=\"submit\"]');\n\n\t\t\tsubmitButton.classList.add('working');\n\n\t\t\tconst body = this._serializeForm(this.form);\n\t\t\tlet alert = '';\n\n\t\t\tlet customPropertiesRequired = false;\n\n\t\t\tif ( this.productPage ) {\n\t\t\t\tthis.productPage.querySelectorAll('[data-js-custom-property]').forEach(elm=>{\n\t\t\t\t\tif ( elm.querySelector('[required]') ) {\n\n\t\t\t\t\t\tif ( elm.classList.contains('product-variants--text' ) ) {\n\t\t\t\t\t\t\tconst txtInputElm = elm.querySelector('input') || elm.querySelector('textarea');\n\t\t\t\t\t\t\tif ( txtInputElm.value == '' ) {\n\t\t\t\t\t\t\t\tcustomPropertiesRequired = true;\n\t\t\t\t\t\t\t\ttxtInputElm.focus();\n\t\t\t\t\t\t\t\telm.querySelector('.product-variant__required').style.display = 'block';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ( elm.classList.contains('product-variants--select' ) ) {\n\t\t\t\t\t\t\tif ( elm.querySelector('select').value == '' ) {\n\t\t\t\t\t\t\t\tcustomPropertiesRequired = true;\n\t\t\t\t\t\t\t\telm.querySelector('select').focus();\n\t\t\t\t\t\t\t\telm.querySelector('.product-variant__required').style.display = 'block';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if ( elm.classList.contains('product-variants--checkbox' ) ) {\n\t\t\t\t\t\t\tif ( ! elm.querySelector('input:checked') ) {\n\t\t\t\t\t\t\t\tcustomPropertiesRequired = true;\n\t\t\t\t\t\t\t\telm.querySelector('input').focus();\n\t\t\t\t\t\t\t\telm.querySelector('.product-variant__required').style.display = 'block';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telm.addEventListener('click', ()=>{\n\t\t\t\t\t\t\telm.querySelector('.product-variant__required').style.display = 'none';\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif ( customPropertiesRequired ) {\n\t\t\t\tsubmitButton.classList.remove('working');\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif ( ! customPropertiesRequired ) {\n\n\t\t\t\tfetch(`${KROWN.settings.routes.cart_add_url}.js`, {\n\t\t\t\t\tbody,\n\t\t\t\t\theaders: {\n\t\t\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded',\n\t\t\t\t\t\t'X-Requested-With': 'XMLHttpRequest'\n\t\t\t\t\t},\n\t\t\t\t\tmethod: 'POST'\n\t\t\t\t})\n\t\t\t\t\t.then(response => response.json())\n\t\t\t\t\t.then(response => {\n\t\t\t\t\t\tif ( response.status == 422 ) {\n\t\t\t\t\t\t\t// wrong stock logic alert\n\t\t\t\t\t\t\talert = document.createElement('span');\n\t\t\t\t\t\t\talert.className = 'alert alert--error';\n\t\t\t\t\t\t\tif ( typeof response.description === 'string' ) {\n\t\t\t\t\t\t\t\talert.innerHTML = response.description;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\talert.innerHTML = response.message;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( this.cartType == 'page' || this.cartType == 'popup' ) {\n\t\t\t\t\t\t\t\tif ( document.getElementById('product-page-form-error-cart-alert') ) {\n\t\t\t\t\t\t\t\t\tdocument.getElementById('product-page-form-error-cart-alert').remove();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\talert.style.marginTop = '1em';\n\t\t\t\t\t\t\t\talert.style.marginBottom = '0';\n\t\t\t\t\t\t\t\talert.id = 'product-page-form-error-cart-alert';\n\t\t\t\t\t\t\t\tthis.form.parentElement.append(alert);\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn fetch('?section_id=helper-cart');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( this.cartType == 'page' ) {\n\t\t\t\t\t\t\t\t__krownSafeNavigate(KROWN.settings.routes.cart_url);\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t} else if ( this.cartType == 'popup' ) {\n\t\t\t\t\t\t\t\treturn fetch(`${this.dataset.productUrl}?variant=${this.querySelector('input[name=\"id\"]').value}&section_id=helper-cart-popup`);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn fetch('?section_id=helper-cart');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.then(response => response.text())\n\t\t\t\t\t.then(text => {\n\n\t\t\t\t\t\tconst sectionInnerHTML = new DOMParser().parseFromString(text, 'text/html');\n\n\t\t\t\t\t\tif ( this.cartType == 'ajax' ) {\n\t\t\t\t\t\t\tconst cartFormSource =\n\t\t\t\t\t\t\t\tsectionInnerHTML.getElementById('AjaxCartFormPage') ||\n\t\t\t\t\t\t\t\tsectionInnerHTML.getElementById('AjaxCartForm');\n\t\t\t\t\t\t\tif (cartFormSource) {\n\t\t\t\t\t\t\t\tconst cartFormInnerHTML = cartFormSource.innerHTML;\n\t\t\t\t\t\t\t\tconst isCartPage = document.body.classList.contains('template-cart');\n\t\t\t\t\t\t\t\tif (isCartPage) {\n\t\t\t\t\t\t\t\t\tconst pageEl = document.getElementById('AjaxCartFormPage');\n\t\t\t\t\t\t\t\t\tif (pageEl) {\n\t\t\t\t\t\t\t\t\t\tpageEl.innerHTML = cartFormInnerHTML;\n\t\t\t\t\t\t\t\t\t\tif (typeof pageEl.ajaxifyCartItems === 'function') {\n\t\t\t\t\t\t\t\t\t\t\tpageEl.ajaxifyCartItems();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tdocument.querySelectorAll('cart-form#AjaxCartForm').forEach((cartItems) => {\n\t\t\t\t\t\t\t\t\t\tcartItems.innerHTML = cartFormInnerHTML;\n\t\t\t\t\t\t\t\t\t\tif (typeof cartItems.ajaxifyCartItems === 'function') {\n\t\t\t\t\t\t\t\t\t\t\tcartItems.ajaxifyCartItems();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ( alert != '' ) {\n\t\t\t\t\t\t\t\t\tconst targetForm =\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById('AjaxCartFormPage') ||\n\t\t\t\t\t\t\t\t\t\tdocument.getElementById('AjaxCartForm');\n\t\t\t\t\t\t\t\t\tif (targetForm && targetForm.querySelector('form')) {\n\t\t\t\t\t\t\t\t\t\ttargetForm.querySelector('form').prepend(alert);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst subSource = sectionInnerHTML.getElementById('AjaxCartSubtotal');\n\t\t\t\t\t\t\tif (subSource) {\n\t\t\t\t\t\t\t\tconst cartSubtotalInnerHTML = subSource.innerHTML;\n\t\t\t\t\t\t\t\tdocument.querySelectorAll('#AjaxCartSubtotal').forEach((el) => {\n\t\t\t\t\t\t\t\t\tel.innerHTML = cartSubtotalInnerHTML;\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tconst popupMount = document.querySelector('[data-js-site-cart-popup-content]');\n\t\t\t\t\t\t\tconst popupSection =\n\t\t\t\t\t\t\t\tsectionInnerHTML.querySelector('.shopify-section') ||\n\t\t\t\t\t\t\t\tsectionInnerHTML.querySelector('[id^=\"shopify-section\"]');\n\t\t\t\t\t\t\tif ( popupMount && popupSection ) {\n\t\t\t\t\t\t\t\tpopupMount.innerHTML = popupSection.innerHTML;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst cartSidebar = document.getElementById('site-cart-sidebar');\n\t\t\t\t\t\t\tif ( cartSidebar && typeof cartSidebar.show === 'function' ) {\n\t\t\t\t\t\t\t\tcartSidebar.show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst helperHeaderCount = sectionInnerHTML.querySelector('[data-header-cart-count]');\n\t\t\t\t\t\tconst helperHeaderTotal = sectionInnerHTML.querySelector('[data-header-cart-total]');\n\t\t\t\t\t\tif (helperHeaderCount) {\n\t\t\t\t\t\t\tdocument.querySelectorAll('[data-header-cart-count]').forEach(elm=>{\n\t\t\t\t\t\t\t\telm.textContent = helperHeaderCount.textContent;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if (sectionInnerHTML.querySelector('[data-cart-count]')) {\n\t\t\t\t\t\t\tdocument.querySelectorAll('[data-header-cart-count]').forEach(elm=>{\n\t\t\t\t\t\t\t\telm.textContent = sectionInnerHTML.querySelector('[data-cart-count]').textContent;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (helperHeaderTotal) {\n\t\t\t\t\t\t\tdocument.querySelectorAll('[data-header-cart-total]').forEach(elm=>{\n\t\t\t\t\t\t\t\telm.textContent = helperHeaderTotal.textContent;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if (sectionInnerHTML.querySelector('[data-cart-total]')) {\n\t\t\t\t\t\t\tdocument.querySelectorAll('[data-header-cart-total]').forEach(elm=>{\n\t\t\t\t\t\t\t\telm.textContent = sectionInnerHTML.querySelector('[data-cart-total]').textContent;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.dispatchEvent(this.ADD_TO_CART);\n\n\t\t\t\t\t\t// a11y\n\t\t\t\t\t\tif ( document.getElementById('screen-reader-info') ) {\n\t\t\t\t\t\t\tdocument.getElementById('screen-reader-info').innerText = `${KROWN.settings.locales.cart_announcement}`;\n\t\t\t\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\t\t\t\tdocument.getElementById('screen-reader-info').innerText = '';\n\t\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t})\n\t\t\t\t\t.catch(e => {\n\t\t\t\t\t\tconsole.log(e);\n\t\t\t\t\t})\n\t\t\t\t\t.finally(() => {\n\t\t\t\t\t\tsubmitButton.classList.remove('working');\n\t\t\t\t\t});\n\n\t\t\t}\n\t\t}\n\n\t\t_serializeForm(form) {\n\t\t\tlet arr = [];\n\t\t\tArray.prototype.slice.call(form.elements).forEach(function(field) {\n\t\t\t\tif (\n\t\t\t\t\t!field.name ||\n\t\t\t\t\tfield.disabled ||\n\t\t\t\t\t['file', 'reset', 'submit', 'button'].indexOf(field.type) > -1\n\t\t\t\t)\n\t\t\t\t\treturn;\n\t\t\t\tif (field.type === 'select-multiple') {\n\t\t\t\t\tArray.prototype.slice.call(field.options).forEach(function(option) {\n\t\t\t\t\t\tif (!option.selected) return;\n\t\t\t\t\t\tarr.push(\n\t\t\t\t\t\t\tencodeURIComponent(field.name) +\n\t\t\t\t\t\t\t\t'=' +\n\t\t\t\t\t\t\t\tencodeURIComponent(option.value)\n\t\t\t\t\t\t);\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (['checkbox', 'radio'].indexOf(field.type) > -1 && !field.checked)\n\t\t\t\t\treturn;\n\t\t\t\tarr.push(\n\t\t\t\t\tencodeURIComponent(field.name) + '=' + encodeURIComponent(field.value)\n\t\t\t\t);\n\t\t\t});\n\t\t\treturn arr.join('&');\n\t\t}\n\n\t}\n\n  if ( typeof customElements.get('product-form') == 'undefined' ) {\n\t\tcustomElements.define('product-form', ProductForm);\n\t}\n\n}\n\n/* ---\n\tProduct Recommendations\n--- */\n\nif ( typeof ProductRecommendations !== 'function' ) {\n\tclass ProductRecommendations extends HTMLElement {\n\n\t\tconstructor() {\n\n\t\t\tsuper();  \n      \n      const SUCCESS = new Event('product-recommendations-loaded');\n      const FAIL = new Event('product-recommendations-error');\n\n      const handleIntersection = (entries, observer) => {\n\n        if (!entries[0].isIntersecting) return;\n        observer.unobserve(this);\n\n        fetch(this.dataset.url)\n          .then(response => response.text())\n          .then(text => {\n            const innerHTML = new DOMParser()\n                .parseFromString(text, 'text/html')\n                .querySelector('product-recommendations');\n\n\t\t\t\t\t\t\t\tif ( innerHTML && innerHTML.querySelectorAll('[data-js-product-item]').length > 0 ) {\n              this.innerHTML = innerHTML.innerHTML;\n              this.querySelectorAll('form').forEach(elm=>{\n                if (elm.querySelector('template')) {\n                  elm.append(elm.querySelector('template').content.cloneNode(true));\n                }\n              });\n              this.dispatchEvent(SUCCESS);\n            } else {\n\t\t\t\t\t\t\tthis.dispatchEvent(FAIL);\n\t\t\t\t\t\t}\n          })\n          .catch(e => {\n\t\t\t\t\t\tthis.dispatchEvent(FAIL);\n          });\n      }\n\n\t\t\tnew IntersectionObserver(handleIntersection.bind(this), {rootMargin: `0px 0px 400px 0px`}).observe(this);\n\n\t\t}\n\n\t}\n\t\n  if ( typeof customElements.get('product-recommendations') == 'undefined' ) {\n\t\tcustomElements.define('product-recommendations', ProductRecommendations);\n\t}\n\n}\n\n/* ---\n\tGift card recipent\n--- */\n\nif ( typeof GiftCardRecipient !== 'function' ) {\n\n\tclass GiftCardRecipient extends HTMLElement {\n\n\t\tconstructor() {\n\n\t\t\tsuper();\n\n\t\t\tconst properties = Array.from(this.querySelectorAll('[name*=\"properties\"]'));\n\t\t\tconst checkboxPropertyName = 'properties[__shopify_send_gift_card_to_recipient]';\n\n\t\t\tthis.recipientCheckbox = properties.find(input => input.name === checkboxPropertyName);\n\t\t\tthis.recipientOtherProperties = properties.filter(input => input.name !== checkboxPropertyName);\n\t\t\tthis.recipientFieldsContainer = this.querySelector('.gift-card-recipient__fields');\n\n\t\t\tif ( this.recipientCheckbox ) {\n\t\t\t\tthis.recipientCheckbox.addEventListener('change', this.synchronizeProperties.bind(this));\n\t\t\t}\n\t\t\tthis.synchronizeProperties();\n\n\t\t}\n\n\t\tsynchronizeProperties() {\n\t\t\tthis.recipientOtherProperties.forEach(property => property.disabled = !this.recipientCheckbox.checked);\n\t\t\tthis.recipientFieldsContainer.classList.toggle('hide', !this.recipientCheckbox.checked);\n\t\t}\n\n\t}\n\n  if ( typeof customElements.get('gift-card-recipient') == 'undefined' ) {\n\t\tcustomElements.define('gift-card-recipient', GiftCardRecipient);\n\t}\n\n}\n\n/* ---\n\tSticky Add to Cart\n--- */\n\nif ( typeof StickyAddToCart !== 'function' ) {\n\tclass StickyAddToCart extends HTMLElement {\n\t\t\n\t\tconstructor() {\n\n\t\t\tsuper();  \n\n\t\t\tconst productPage = document.getElementById(this.dataset.id);\n\t\t\tthis.hasAttribute('data-append-to') ? document.querySelector(this.dataset.appendTo).appendChild(this) : document.body.appendChild(this);\n\t\t\t\n\t\t\tconst productButton = productPage.querySelector('[data-js-product-add-to-cart]');\n\t\t\tconst stickyBar = this;\n\t\t\t\n\t\t\tfunction toggleStickyBarOnScroll() {\n\t\t\t\tconst rect = productButton.getBoundingClientRect();\n\t\t\t\tconst isInViewport = (\n\t\t\t\t\t\trect.top >= 0 &&\n\t\t\t\t\t\trect.left >= 0 &&\n\t\t\t\t\t\t( rect.bottom - 80 ) <= (window.innerHeight || document.documentElement.clientHeight) &&\n\t\t\t\t\t\trect.right <= (window.innerWidth || document.documentElement.clientWidth)\n\t\t\t\t);\n\t\t\t\tconst isMobile = window.innerWidth < 728;\n\n\t\t\t\tif ( ( ! isMobile && rect.top < 0 ) || ( isMobile && ! isInViewport ) ) {\n\t\t\t\t\tstickyBar.classList.add('visible');\n\t\t\t\t} else {\n\t\t\t\t\tstickyBar.classList.remove('visible');\n\t\t\t\t}\n\t\t\t}\n\t\t\twindow.addEventListener('scroll', toggleStickyBarOnScroll);\n\t\t\ttoggleStickyBarOnScroll();\n\n\t\t\tif ( this.hasAttribute('data-single') ) {\n\n\t\t\t\tconst stickyButton = this.querySelector('button[data-js-atc]');\n\t\t\t\tconst productPage = document.querySelector(`#${this.dataset.id}`);\n\n\t\t\t\tstickyButton.addEventListener('click', ()=>{\n\t\t\t\t\tproductButton.click();\n\t\t\t\t\tstickyButton.classList.add('working');\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tnew MutationObserver(()=>{\n\t\t\t\t\tif ( productButton.classList.contains('working') ) {\n\t\t\t\t\t\tstickyButton.classList.add('working');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstickyButton.classList.remove('working');\n\t\t\t\t\t}\n\t\t\t\t}).observe(productButton, {\n\t\t\t\t\tattributes: true, childList: false, subtree: false\n\t\t\t\t})\n\n\t\t\t\tif ( productPage.classList.contains('variant-selected') ) {\n\t\t\t\t\tthis.classList.add('variant-selected');\n\t\t\t\t} else {\n\t\t\t\t\tnew MutationObserver(()=>{\n\t\t\t\t\t\tif ( productPage.classList.contains('variant-selected') ) {\n\t\t\t\t\t\t\tthis.classList.add('variant-selected');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.classList.remove('variant-selected');\n\t\t\t\t\t\t}\n\t\t\t\t\t}).observe(productPage, {\n\t\t\t\t\t\tattributes: true, childList: false, subtree: false\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t// when there are multiple variants\n\n\t\t\t\tif ( this.hasAttribute('data-single-with-options') ) {\n\t\t\t\t\tconst stickyPrice = this.querySelector('[data-js-atc-price]');\n\t\t\t\t\tconst productPrice = document.querySelector(`#${this.dataset.id} [data-update-block=\"price-sticky-main\"]`);\n\t\t\t\t\tif ( stickyPrice !== null && productPrice !== null ) {\n\t\t\t\t\t\tstickyPrice.innerHTML = productPrice.innerHTML;\n\t\t\t\t\t\tnew MutationObserver(()=>{\n\t\t\t\t\t\t\tstickyPrice.innerHTML = productPrice.innerHTML;\n\t\t\t\t\t\t}).observe(productPrice, {\n\t\t\t\t\t\t\tattributes: false, childList: true, subtree: false\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} \n\n\t\t\tthis.querySelector('button[data-js-choose]')?.addEventListener('click', ()=>{\n\t\t\t\tproductPage.querySelector('product-variants').scrollIntoView({behavior: \"smooth\", block: \"center\"});\n\t\t\t});\n\n\t\t}\n\n\t}\n\n  if ( typeof customElements.get('sticky-add-to-cart') == 'undefined' ) {\n\t\tcustomElements.define('sticky-add-to-cart', StickyAddToCart);\n\t}\n\n}\n\n/* ---\n\tPickup Availability Widget\n--- */\n\nif ( typeof PickupAvailabilityWidget !== 'function' ) {\n\tclass PickupAvailabilityWidget extends HTMLElement {\n\n\t\tconstructor(){\n\t\t\tsuper();\n\n\t\t\tif ( this.querySelector('template') ) {\n\n\t\t\t\tconst pickupSidebar = this.querySelector('template').content.firstElementChild.cloneNode(true);\n\t\t\t\tpickupSidebar.id = `site-availability-sidebar-${this.dataset.id}`;\n\t\t\t\tdocument.body.append(pickupSidebar);\n\n\t\t\t\tconst openSidebarButton = this.querySelector('.pickup-availability-widget__more');\n\t\t\t\topenSidebarButton.setAttribute('aria-controls', pickupSidebar.id);\n\t\t\t\topenSidebarButton.setAttribute('aria-expanded', 'false');\n\t\t\t\tthis.querySelector('[data-js-open-site-availability-sidebar]').addEventListener('keydown', e=>{\n\t\t\t\t\tif ( e.keyCode == window.KEYCODES.RETURN ) {\n\t\t\t\t\t\twindow.lastFocusedElm = this.querySelector('[data-js-open-site-availability-sidebar]');\n\t\t\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\t\t\tpickupSidebar.querySelector('[data-js-close]').focus();\n\t\t\t\t\t\t}, 50);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.querySelector('[data-js-open-site-availability-sidebar]').addEventListener('click', e=>{\n\t\t\t\t\tpickupSidebar.show();\n\t\t\t\t});\n\n\t\t\t\tconst observer = new MutationObserver(()=>{\n\t\t\t\t\tpickupSidebar.remove();\n\t\t\t\t\tobserver.disconnect();\n\t\t\t\t});\n\t\t\t\tobserver.observe(this.parentElement, {\n\t\t\t\t\tattributes: false, childList: true, subtree: false\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\tthis.querySelectorAll('.pickup-availability-widget__location-view').forEach(elm=>{\n\t\t\t\telm.addEventListener('click', ()=>{\n\t\t\t\t\tdocument.getElementById(`${elm.getAttribute('aria-controls')}`)?.classList.toggle('opened');\n\t\t\t\t\telm.setAttribute('aria-selected', elm.getAttribute('aria-selected') == \"true\" ? \"false\" : \"true\");\n\t\t\t\t})\n\t\t\t})\n\n\t\t}\n\n\t}\n\n  if ( typeof customElements.get('pickup-availability-widget') == 'undefined' ) {\n\t\tcustomElements.define('pickup-availability-widget', PickupAvailabilityWidget);\n\t}\n\n}"],
  "mappings": "AAAA,GAAK,OAAO,iBAAoB,WAAa,CAE5C,MAAMA,qBAAuB,KAAQ,CACpC,GAAK,IACL,GAAI,CACC,OAAO,MAAQ,OAAO,MACzB,OAAO,SAAS,OAAO,GAAG,CAE5B,MAAY,CAEZ,CACD,EAEA,MAAMC,yBAAwB,WAAY,CAEzC,aAAc,CACb,MAAM,EAEN,KAAK,eAAiB,IAAI,IAC1B,KAAK,gBAAkB,IAAI,IAC3B,KAAK,gBAAkB,CAAC,EACxB,KAAK,gBAAkB,IAAI,IAC3B,KAAK,SAAW,KAChB,KAAK,YAAc,IAEnB,KAAK,KAAK,CAEX,CAEA,MAAO,CAEN,GAAK,KAAK,aAAa,sBAAuB,EAAI,CACjD,MAAM,SAAW,KAAK,QAAQ,eAAe,EAAE,cAAc,iCAAiC,EAC9F,KAAK,iBAAmB,CAAC,GAAG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AChF,kBAAkB,aAAa,gBAAiB,cAAc,EAAE,EAChE,kBAAkB,aAAa,gBAAiB,OAAO,EACvD,KAAK,cAAc,0CAA0C,EAAE,iBAAiB,UAAW,GAAG,CACxF,EAAE,SAAW,OAAO,SAAS,SACjC,OAAO,eAAiB,KAAK,cAAc,0CAA0C,EACrF,WAAW,IAAI,CACd,cAAc,cAAc,iBAAiB,EAAE,MAAM,CACtD,EAAG,EAAE,EAEP,CAAC,EACD,KAAK,cAAc,0CAA0C,EAAE,iBAAiB,QAAS,GAAG,CAC3F,cAAc,KAAK,CACpB,CAAC,EAED,MAAM,SAAW,IAAI,iBAAiB,IAAI,CACzC,cAAc,OAAO,EACrB,SAAS,WAAW,CACrB,CAAC,EACD,SAAS,QAAQ,KAAK,cAAe,CACpC,WAAY,GAAO,UAAW,GAAM,QAAS,EAC9C,CAAC,CAEF,CAEA,KAAK,iBAAiB,4CAA4C,EAAE,QAAQ,KAAK,CAChF,IAAI,iBAAiB,QAAS,IAAI,CACjC,SAAS,eAAe,GAAG,IAAI,aAAa,eAAe,CAAC,EAAE,GAAG,UAAU,OAAO,QAAQ,EAC1F,IAAI,aAAa,gBAAiB,IAAI,aAAa,eAAe,GAAK,OAAS,QAAU,MAAM,CACjG,CAAC,CACF,CAAC,CAEF,CAED,CAEM,OAAO,eAAe,IAAI,4BAA4B,EAAK,KAChE,eAAe,OAAO,6BAA8BA,yBAAwB,CAG9E",
  "names": ["__krownSafeNavigate", "ProductVariants", "combination", "currentSelections", "options", "ProductForm", "e", "ProductRecommendations", "GiftCardRecipient", "StickyAddToCart", "productPage", "PickupAvailabilityWidget"]
}
