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,EACdP,QAAQ,EACRC,SAAU,SACVO,UAAU,EACVN,YAAa,CACX,IAAK,CAIH,EAEF,IAAK,CACHF,QAAQ,OAOhB/B,EAAW/D,GAAG,OAAQ,CAACuG,EAAUC,KAC/BrC,IACA,MAAMsC,EAAoB1C,EAAWc,WAAWhE,OAAO6F,MAAMF,GACvDG,EAAyB,MAAjBF,OAAiB,EAAjBA,EAAmB1B,MAAMtR,cAAc,SACjDkT,IAAUA,EAAMC,QAClBD,EAAME,UAKV9C,EAAW/D,GAAG,QAAS,CAACuG,EAAUC,EAAWM,KAC3C3C,IACA,MAAM4C,EAAoBhD,EAAWc,WAAWhE,OAAO6F,MAAMI,GACvDH,EAAyB,MAAjBI,OAAiB,EAAjBA,EAAmBhC,MAAMtR,cAAc,SAChD,MAALkT,GAAAA,EAAOK,OAAOC,MAAMtP,QAAQC,QAK1BoM,GACFD,EAAWmD,KAAKlD,GAGlBD,EAAWH,MAAM,CACf5E,wBAAuBA,IAIzB,MAAMhQ,EAAQ,IAAI+F,YAAoB,+BAAgC,CACpEF,OAAQ,CAAEoK,OAAQ8E,KAEpBpP,cAAc3F,GAEVgV,GACFA,EAAUJ,QAIZ,MAAMuD,EAAkBzB,EAAa5P,QAAQqR,gBACvCC,EAA6D,SAA1C1B,EAAa5P,QAAQsR,iBAC1CD,GAAmBC,GACrBxC,EAAqBuC,EAEzB,EA/KEE,GACG5B,KAAK,KACJlB,MAED0C,MAAMtP,QAAQC,MAEjB1E,iBAAiB,SAAUqR,GAKPlW,SAASoF,cAA2B,eAC5CP,iBAAiB,kBAAmB0C,EAClD","sources":["webpack://lange/webpack/bootstrap","webpack://lange/webpack/runtime/define property getters","webpack://lange/webpack/runtime/ensure chunk","webpack://lange/webpack/runtime/get javascript chunk filename","webpack://lange/webpack/runtime/get mini-css chunk filename","webpack://lange/webpack/runtime/hasOwnProperty shorthand","webpack://lange/webpack/runtime/load script","webpack://lange/webpack/runtime/publicPath","webpack://lange/webpack/runtime/jsonp chunk loading","webpack://lange/./scripts/sections/product-details/paired-product/index.ts","webpack://lange/./scripts/sections/product-details/findation-widget-button/index.ts","webpack://lange/./scripts/sections/product-details/findation-widget-button/index.html","webpack://lange/./scripts/sections/product-details/product-details/index.ts","webpack://lange/./scripts/sections/product-details/product-variant-selector/index.ts","webpack://lange/./scripts/sections/product-details/sticky-cta/index.ts","webpack://lange/./scripts/sections/product-details/sticky-cta/index.scss","webpack://lange/./scripts/sections/product-details/sets-subproduct/index.ts","webpack://lange/./scripts/sections/product-details/product-description/index.ts","webpack://lange/./scripts/sections/product-details/product-detail-countdown-timer/index.ts","webpack://lange/./scripts/sections/product-details/zoomable-image/index.ts","webpack://lange/./scripts/lib/splide-slidebar-extension.ts","webpack://lange/./scripts/sections/product-details/product-gallery.ts","webpack://lange/./scripts/lib/webpack-path.ts"],"sourcesContent":["// The module cache\nlet __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tlet cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tlet module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter/value functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tif(Array.isArray(definition)) {\n\t\tvar i = 0;\n\t\twhile(i < definition.length) {\n\t\t\tvar key = definition[i++];\n\t\t\tvar binding = definition[i++];\n\t\t\tif(!__webpack_require__.o(exports, key)) {\n\t\t\t\tif(binding === 0) {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, value: definition[i++] });\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: binding });\n\t\t\t\t}\n\t\t\t} else if(binding === 0) { i++; }\n\t\t}\n\t} else {\n\t\tfor(var key in definition) {\n\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t\t}\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \"-\" + \"2d5466ec02b4471f0a5d\" + \".min.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","let inProgress = {};\nlet dataWebpackPrefix = \"lange:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tlet script, needAttach;\n\tif(key !== undefined) {\n\t\tlet scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tlet s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tlet onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tlet doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tlet timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nlet installedChunks = {\n\t\"product-details-section\": 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tlet installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tlet promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tlet url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tlet error = new Error();\n\t\t\t\t\tlet loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tlet errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tlet realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\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__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nlet webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tlet chunkIds = data[0];\n\tlet moreModules = data[1];\n\tlet runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nlet chunkLoadingGlobal = self[\"webpackChunklange\"] = self[\"webpackChunklange\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","import { CustomElement } from '@integrabeauty/custom-elements';\nimport html from './index.html';\nimport styles from './index.scss';\n\n/**\n * A paired product component that displays simplified product card in the product details on PDP.\n * It accepts promo link URL and label as data attributes and renders the promo link accordingly.\n */\nclass PairedProduct extends HTMLElement implements CustomElement {\n  public connectedCallback() {\n    this.initializeShadowRoot();\n  }\n\n  private initializeShadowRoot() {\n    if (!this.shadowRoot) {\n      this.attachShadow({ mode: 'open' });\n      this.shadowRoot.innerHTML = `<style>${styles}</style>${html}`;\n    }\n  }\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'paired-product': PairedProduct;\n  }\n}\n\nif (!customElements.get('paired-product')) {\n  customElements.define('paired-product', PairedProduct);\n}\n","import type { CustomElement } from '@integrabeauty/custom-elements';\nimport html from './index.html';\n\n/**\n * Hosts the Findation shade-finder widget and wires up its callbacks to the Ofir event system.\n */\nclass FindationWidgetButton extends HTMLElement implements CustomElement {\n  private shouldOpenModal = false;\n\n  private onWidgetEmbeddedBound = this.onWidgetEmbedded.bind(this);\n  private onDOMContentLoadedBound = this.onDOMContentLoaded.bind(this);\n  private onWidgetOpenedBound = this.onWidgetOpened.bind(this);\n  private onWidgetClosedBound = this.onWidgetClosed.bind(this);\n  private onAdClickedBound = this.onAdClicked.bind(this);\n\n  public connectedCallback() {\n    this.initializeShadowRoot();\n    window.Findation = window.Findation || <Window['Findation']>{};\n\n    addEventListener('message', onMessage);\n    addEventListener('ofir-ad-clicked', this.onAdClickedBound);\n\n    if (document.readyState === 'complete' || document.readyState === 'interactive') {\n      setTimeout(this.onDOMContentLoadedBound);\n    } else {\n      addEventListener('DOMContentLoaded', this.onDOMContentLoadedBound);\n    }\n\n    // Replay any queued `ofir-ad-clicked` events that fired before this element connected.\n    for (const event of window.ofir.queue) {\n      if (event?.type === 'ofir-ad-clicked') {\n        this.onAdClickedBound(<WindowEventMap['ofir-ad-clicked']>event);\n      }\n    }\n  }\n\n  public disconnectedCallback() {\n    removeEventListener('DOMContentLoaded', this.onDOMContentLoadedBound);\n    removeEventListener('message', onMessage);\n    removeEventListener('ofir-ad-clicked', this.onAdClickedBound);\n\n    const button = this.querySelector('button');\n    button.removeEventListener('click', onButtonClicked);\n  }\n\n  private initializeShadowRoot() {\n    if (!this.shadowRoot) {\n      this.attachShadow({ mode: 'open' });\n      this.shadowRoot.innerHTML = html;\n    }\n  }\n\n  private onDOMContentLoaded(_event: Event) {\n    if (!this.isConnected) {\n      return;\n    }\n\n    this.render();\n\n    window.Findation.widgetEmbedded = this.onWidgetEmbeddedBound;\n    window.Findation.widgetDidOpen = this.onWidgetOpenedBound;\n    window.Findation.widgetDidClose = this.onWidgetClosedBound;\n    window.Findation.onSearchComplete = onSearchCompleted;\n\n    addEventListener('message', onMessage);\n  }\n\n  /**\n   * We must use slot and an element in light DOM for the widget's button to render correctly,\n   * because their script can't handle it if it's rendered in the shadow DOM.\n   */\n  private render() {\n    // The Findation scripts create an iframe above the given element, so we need to render a\n    // placeholder element in the light DOM and pass it to their init function.\n    const placeholder = document.createElement('div');\n    placeholder.id = 'findation-widget-button';\n    placeholder.style.display = 'none';\n    this.appendChild(placeholder);\n\n    window.Findation.init(placeholder,\n      'cc9d02b6b78746ede9bb4fa953cd8921090f36330c2cda6f35ece9adf925', {});\n\n    const button = this.querySelector('button');\n    button.addEventListener('click', onButtonClicked);\n  }\n\n  private onWidgetEmbedded(iframe: HTMLIFrameElement) {\n    // we don't want to display the original Findation button iframe, since we have our own custom\n    // button in the page that opens the widget, so we hide it.\n    iframe.style.display = 'none';\n\n    // Slotted content is hidden by default to avoid showing it before the widget is ready. Now that\n    // the widget is embedded, we can show the slotted content (custom button). It should be done in\n    // 2 steps: first hiding the original iframe, then showing the slotted content with the button\n    // to prevent the original Findation button iframe from briefly flashing on the screen before\n    // being hidden.\n    const slot = this.shadowRoot.querySelector('slot');\n    slot.hidden = false;\n\n    const event = new Event('ofir-findation-widget-embedded', { cancelable: true });\n    dispatchEvent(event);\n\n    if (this.shouldOpenModal) {\n      window.postMessage('overlayOpen');\n    }\n  }\n\n  private onAdClicked(event: WindowEventMap['ofir-ad-clicked']) {\n    if (event.detail.findationModal) {\n      this.shouldOpenModal = true;\n    }\n  }\n\n  /**\n   * Triggers each time the widget is opened.\n   */\n  private onWidgetOpened() {\n    const button = this.querySelector('button');\n    button.setAttribute('aria-expanded', 'true');\n\n    const event = new Event('ofir-findation-widget-did-open', { cancelable: true });\n    dispatchEvent(event);\n  }\n\n  /**\n   * Triggers each time the widget is closed\n   */\n  private onWidgetClosed() {\n    const button = this.querySelector('button');\n    button.setAttribute('aria-expanded', 'false');\n\n    const event = new Event('ofir-findation-widget-did-close', { cancelable: true });\n    dispatchEvent(event);\n  }\n}\n\n/**\n * Handle our custom button click and trigger the widget to open by posting a message that the\n * widget listens to. There's also a function Findation.openWidget() in their script that can be\n * used to open the widget, but we used this message-based approach, so I'm not sure if it's safe to\n * replace with the direct function call.\n */\nfunction onButtonClicked(_event: Event) {\n  window.postMessage('overlayOpen');\n}\n\n/**\n * Handle the search completion event from the Findation widget\n */\nfunction onSearchCompleted(data: FindationSearchResponse) {\n  const event = new CustomEvent('ofir-findation-search-complete', {\n    cancelable: true,\n    detail: data\n  }\n  );\n  dispatchEvent(event);\n\n  if (data.matchSuccess) {\n    window.Findation.iframe.contentWindow.postMessage(\n      {\n        event: 'onSearchComplete',\n        id: data.externalId\n      },\n      window.Findation.iframe.src\n    );\n  }\n}\n\n/**\n * Handle messages from the Findation widget. We only need to handle a message when the search is\n * completed, a match is found, and the user clicks the \"Shop Now\" button in the widget, in which\n * case we redirect the user to the same page with the recommended variant ID as a search parameter,\n * so the page can load with the recommended variant selected.\n */\nfunction onMessage(event: MessageEvent) {\n  if (event.data?.event === 'ofir-findation-shop-now' && event.data?.id) {\n    location.href = `${location.origin}${location.pathname}?variant=${event.data?.id}`;\n  }\n}\n\n/**\n * Represents a shade returned from the Findation widget, the user entered in the widget before\n * completing the search\n */\ntype Shade = {\n  /**\n   * A brand name of the shade, it's not necessarily our brand name.\n   */\n  brandName: string;\n\n  /**\n   * A product name of the shade, it's not necessarily one of our product names.\n   */\n  productName: string;\n\n  /**\n   * A shade name, it's not necessarily one of our product shades.\n   */\n  shadeName: string;\n};\n\n/**\n * Represents the data returned from the Findation widget when a search is completed.\n */\ntype FindationSearchResponse = {\n  /**\n   * The number of shades the user entered in the widget before completing the search\n   */\n  countShadesEntered: number;\n\n  /**\n   * The name of the event that triggered the search. We do see only \"onSearchCompleted\" but not\n   * sure if there are other possible events.\n   */\n  eventName: string;\n\n  /**\n   * A product variant ID of the recommended shade\n   */\n  externalId: string;\n\n  /**\n   * Whether the search was successful in finding a recommended shade for the user based on the\n   * shades they entered.\n   */\n  matchSuccess: boolean;\n\n  /**\n   * A product variant name of the recommended shade\n   */\n  recommendedShade: string;\n\n  /**\n   * An array of the shades the user entered in the widget before completing the search\n   */\n  shadesEntered: Shade[];\n};\n\ntype FindationSearchResponseEvent = CustomEvent<FindationSearchResponse>;\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'findation-widget-button': FindationWidgetButton;\n  }\n\n  interface WindowEventMap {\n    'notify-me-modal-close-requested': Event;\n    'ofir-findation-search-complete': FindationSearchResponseEvent;\n  }\n\n  interface Window {\n    Findation: {\n      iframe: HTMLIFrameElement;\n      init(element: HTMLElement, apiKey: string, options: Record<string, any>): void;\n      onSearchComplete(data: FindationSearchResponse): void;\n      widgetDidClose(): void;\n      widgetDidOpen(): void;\n      widgetEmbedded(iframe: HTMLIFrameElement): void;\n    };\n  }\n}\n\nif (!customElements.get('findation-widget-button')) {\n  customElements.define('findation-widget-button', FindationWidgetButton);\n}\n","// Module\nvar code = \"<slot hidden></slot>\";\n// Exports\nexport default code;","import { CustomElement } from '@integrabeauty/custom-elements';\n\n/**\n * A custom element that manages logic related to displaying product details on PDP.\n */\nclass ProductDetails extends HTMLElement implements CustomElement {\n  declare readonly dataset: {\n    /**\n     * Whether the product is a bundle, boolean value represented as a string\n     */\n    isBundle: 'false' | 'true';\n  };\n\n  private onVariantChangedBound = this.onVariantChanged.bind(this);\n\n  public connectedCallback() {\n    this.addEventListener('variant-changed', this.onVariantChangedBound);\n  }\n\n  public disconnectedCallback() {\n    this.removeEventListener('variant-changed', this.onVariantChangedBound);\n  }\n\n  private onVariantChanged(event: WindowEventMap['variant-changed']) {\n    const { variant } = event.detail;\n\n    // If the product is a bundle, we don't want to update the price and compare at price on variant\n    // change. In the case of a bundle, the variant-changed event is emitted by a variant selector\n    // component of each subproduct, so the price and compare at price in the event detail are\n    // related to the subproduct variant, not the main product variant. At the moment, we don't need\n    // to support price change on bundle products.\n    if (this.dataset.isBundle !== 'true') {\n      this.updatePrice(variant.price);\n      this.updateCompareAtPrice(variant.compareAtPrice, variant.compareAtPriceModalContent);\n    }\n\n    this.updateTopBadge(variant.topBadge, variant.topBadgeStyle);\n    this.updateProductDescription(variant.categoryDescription);\n  }\n\n  private updatePrice(price: number) {\n    const priceElement = this.querySelector('.price__final');\n    const previousValue = priceElement.textContent || '';\n    priceElement.textContent =\n      previousValue.replace(/\\d+/g, (price / 100).toFixed(0));\n  }\n\n  private updateCompareAtPrice(price: string, modalContent: string) {\n    const compareAtPrice = this.querySelector('.price__compare-at');\n    compareAtPrice.textContent = price || '';\n\n    // create a compare at price info button if needed\n    if (modalContent) {\n      const compareAtPriceInfo = document.createElement('compare-at-price-info');\n      compareAtPriceInfo.dataset.content = modalContent;\n      compareAtPrice.appendChild(compareAtPriceInfo);\n    }\n  }\n\n  private updateTopBadge(value: string, style: string) {\n    type ProductTopBadge = HTMLElementTagNameMap['product-top-badge'];\n    const topBadge = this.querySelector<ProductTopBadge>('product-top-badge');\n    if (!topBadge) {\n      return;\n    }\n\n    topBadge.dataset.value = value;\n    topBadge.dataset.style = style;\n  }\n\n  /**\n   * Updates the product description element with the provided description. This should cover the\n   * variant category alternative description feature. When a variant is selected that belongs to a\n   * category with an alternative description, this description will be shown instead of the main\n   * product description. If there's no alternative description, the description parameter will be\n   * null, and the original product description will be shown. The original product description is\n   * stored in the product-description element's data attribute.\n   */\n  private updateProductDescription(description: string | null) {\n    const descriptionElement = this.querySelector('product-description');\n    if (!descriptionElement) {\n      return;\n    }\n\n    if (description) {\n      descriptionElement.dataset.productDescription = description;\n    } else {\n      const description = descriptionElement.dataset.originalDescription;\n      descriptionElement.dataset.productDescription = description;\n    }\n  }\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'product-details': ProductDetails;\n  }\n}\n\nif (!customElements.get('product-details')) {\n  customElements.define('product-details', ProductDetails);\n}\n","import type { CustomElement } from '@integrabeauty/custom-elements';\nimport html from './index.html';\nimport styles from './index.scss';\n\n/**\n * A custom element that manages displaying the selected variant's details and the functionality for\n * the dropdown variant selector on PDP.\n */\nexport class ProductVariantSelector extends HTMLElement implements CustomElement {\n  declare readonly dataset: {\n    /**\n     * Boolean represented as string indicates whether the URL should be updated or not.\n     *\n     * Controls whether this component is allowed to update the url with a new variant parameter\n     * when a new variant is selected. For Lange this happens all the time, but for other brands\n     * where we eventually plan to share this code, this is not always true. For example, on one of\n     * our other brands you can change the selected variant on certain collection pages.\n     *\n     * This is not an observed attribute. We only set this in the connected callback during init and\n     * do not update its value again later. We do not expect it to ever change.\n     */\n    shouldUpdateUrl: 'false' | 'true';\n  };\n\n  private onVariantChangedBound = this.onVariantChanged.bind(this);\n  private onShowOptionsClickedBound = this.onShowOptionsClicked.bind(this);\n\n  public connectedCallback() {\n    this.initializeShadowRoot();\n    this.render();\n  }\n\n  private render() {\n    const button = this.shadowRoot.querySelector('.show-options');\n    button.addEventListener('click', this.onShowOptionsClickedBound);\n\n    for (const event of product_variant_selector_event_queue) {\n      if (isVariantChangedEvent(event)) {\n        try {\n          this.onVariantChangedBound(event);\n        } catch (error) {\n          console.warn(error);\n        }\n      }\n    }\n\n    this.addEventListener('variant-changed', this.onVariantChangedBound);\n\n    this.shadowRoot.host.classList.remove('hidden');\n  }\n\n  public disconnectedCallback() {\n    const button = this.shadowRoot.querySelector('.show-options');\n    button.removeEventListener('click', this.onShowOptionsClickedBound);\n\n    this.removeEventListener('variant-changed', this.onVariantChangedBound);\n  }\n\n  private initializeShadowRoot() {\n    if (!this.shadowRoot) {\n      this.attachShadow({ mode: 'open' });\n      this.shadowRoot.innerHTML = `<style>${styles}</style>${html}`;\n    }\n  }\n\n  private onShowOptionsClicked() {\n    const button = this.shadowRoot.querySelector('.show-options');\n    const optionsContainer = this.shadowRoot.querySelector('slot[name=\"variant-selector\"]');\n    const isExpanded = button?.getAttribute('aria-expanded') === 'true';\n\n    if (isExpanded) {\n      button.setAttribute('aria-expanded', 'false');\n      optionsContainer.classList.add('collapsed');\n      optionsContainer.classList.remove('expanded');\n    } else {\n      button.setAttribute('aria-expanded', 'true');\n      optionsContainer.classList.add('expanded');\n      optionsContainer.classList.remove('collapsed');\n    }\n  }\n\n  private onVariantChanged(event: WindowEventMap['variant-changed']) {\n    const variantId = event.detail.variant.id;\n\n    this.updateVariantTitle(event.detail.variant.option);\n    this.updateColorSwatch(event.detail.variant.color);\n\n    if (this.dataset.shouldUpdateUrl === 'true') {\n      updateUrl(variantId.toString());\n    }\n  }\n\n  /**\n   * Updates the selected variant title in the dropdown button on mobile.\n   */\n  private updateVariantTitle(selectedOption: string) {\n    const dropdownText =\n      this.shadowRoot.querySelector<HTMLElement>('.selected-variant');\n\n    dropdownText.textContent = selectedOption;\n    dropdownText.setAttribute('aria-label', `Selected variant: ${selectedOption}`);\n  }\n\n  /**\n   * Updates the color title in the dropdown button on mobile.\n   */\n  private updateColorSwatch(color: string) {\n    const swatch = this.shadowRoot.querySelector<HTMLElement>('.swatch');\n\n    if (color) {\n      swatch.style.backgroundColor = color;\n      swatch.classList.remove('hidden');\n    } else {\n      swatch.style.backgroundColor = null;\n      swatch.classList.add('hidden');\n    }\n  }\n}\n\nfunction updateUrl(variantId: string) {\n  const url = new URL(location.href);\n  const variantSearchParam = url.searchParams.get('variant');\n  if (variantSearchParam === variantId) {\n    // When the page loads, there might be a \"variant\" search parameter. If it matches the currently\n    // selected variant ID, don’t do anything.\n    return;\n  }\n\n  url.searchParams.set('variant', variantId.toString());\n  window.history.replaceState({}, '', url);\n\n  const historyEvent = new Event('history-change', { cancelable: true });\n  dispatchEvent(historyEvent);\n}\n\nfunction isVariantChangedEvent(value: any): value is WindowEventMap['variant-changed'] {\n  return value?.type === 'variant-changed';\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'product-variant-selector': ProductVariantSelector;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/naming-convention\n  var product_variant_selector_event_queue: Event[];\n  // eslint-disable-next-line @typescript-eslint/naming-convention\n  var product_variant_selector_event_listener: (event: Event) => void;\n}\n\nif (!customElements.get('product-variant-selector')) {\n  customElements.define('product-variant-selector', ProductVariantSelector);\n}\n","import type { CustomElement } from '@integrabeauty/custom-elements';\nimport styles from './index.scss';\n\n/**\n * A sticky call-to-action component on PDP that becomes fixed at the bottom of the viewport on\n * mobile devices.\n */\nclass StickyCTA extends HTMLElement implements CustomElement {\n  private mediaQuery = window.matchMedia('(max-width: 767px)');\n  private matchesMediaQuery = false;\n\n  private onVariantChangedBound = this.onVariantChanged.bind(this);\n  private onDOMContentLoadedBound = this.onDOMContentLoaded.bind(this);\n  private updateElementsBasedOnViewportBound = this.updateElementsBasedOnViewport.bind(this);\n\n  public connectedCallback() {\n    const styleElement = document.createElement('style');\n    styleElement.textContent = styles;\n    this.append(styleElement);\n    this.addEventListener('variant-changed', this.onVariantChangedBound);\n\n    if (document.readyState === 'complete' || document.readyState === 'interactive') {\n      setTimeout(this.onDOMContentLoadedBound);\n    } else {\n      addEventListener('DOMContentLoaded', this.onDOMContentLoadedBound);\n    }\n  }\n\n  public disconnectedCallback() {\n    this.removeEventListener('variant-changed', this.onVariantChangedBound);\n    this.mediaQuery.removeEventListener('change', this.updateElementsBasedOnViewportBound);\n    removeEventListener('DOMContentLoaded', this.onDOMContentLoadedBound);\n  }\n\n  private onDOMContentLoaded(_event: Event) {\n    this.mediaQuery.addEventListener('change', this.updateElementsBasedOnViewportBound);\n    this.updateElementsBasedOnViewport();\n    this.removeEventListener('DOMContentLoaded', this.onDOMContentLoadedBound);\n  }\n\n  private updateElementsBasedOnViewport() {\n    if (this.mediaQuery.matches === this.matchesMediaQuery) {\n      return;\n    }\n\n    this.matchesMediaQuery = this.mediaQuery.matches;\n    if (this.matchesMediaQuery) {\n      document.querySelector<HTMLElement>('#shopify-section-footer').style.paddingBottom =\n        this.offsetHeight + 'px';\n    } else {\n      document.querySelector<HTMLElement>('#shopify-section-footer').style.paddingBottom =\n        '';\n    }\n  }\n\n  private onVariantChanged(event: WindowEventMap['variant-changed']) {\n    const discountMessage = this.querySelector('discount-message');\n    if (!discountMessage) {\n      return;\n    }\n\n    discountMessage.dataset.message = event.detail.variant.discountMessage;\n  }\n}\n\nif (!customElements.get('sticky-cta')) {\n  customElements.define('sticky-cta', StickyCTA);\n}\n","export default \"sticky-cta{display:flex;flex-wrap:wrap;width:100%;gap:16px}@media only screen and (min-width:768px){sticky-cta{max-width:670px;flex-direction:column}}@media(max-width:767px){sticky-cta{display:flex;align-items:flex-end;column-gap:8px;position:fixed;z-index:50;bottom:0;left:0;border-top:1px solid #0003;background-color:#fff;padding:16px}#shopify-section-footer{padding-bottom:100px}}@media(min-width:768px){sticky-cta{align-items:flex-end}}@media(min-width:992px){sticky-cta{align-items:flex-start}}sticky-cta .product-v2__backorder{width:100%;display:block;text-align:center;font-size:.75rem;color:#616161;margin-bottom:-8px}@media only screen and (min-width:768px){sticky-cta .product-v2__backorder{font-size:.875rem;margin-bottom:0}}.product-v2__actions{width:100%}findation-widget-button .cta{margin-top:16px;border-color:#e6e7e8}@media only screen and (min-width:768px){findation-widget-button .cta{margin-top:32px}}sticky-cta product-variant-selector,sticky-cta product-variant-selector~.product-v2__actions{width:calc(50% - 4px)}@media only screen and (min-width:768px){sticky-cta product-variant-selector,sticky-cta product-variant-selector~.product-v2__actions{width:100%}}\";","import { CustomElement } from '@integrabeauty/custom-elements';\nimport html from './index.html';\nimport styles from './index.scss';\n\n/**\n * Custom element that renders a set's subproduct and handles image updates based on the selected\n * variant.\n */\nclass SetsSubproduct extends HTMLElement implements CustomElement {\n  private onVariantChangedBound = this.onVariantChanged.bind(this);\n\n  public connectedCallback() {\n    this.initializeShadowRoot();\n    this.addEventListener('variant-changed', this.onVariantChangedBound);\n  }\n\n  public disconnectedCallback() {\n    this.removeEventListener('variant-changed', this.onVariantChangedBound);\n  }\n\n  private initializeShadowRoot() {\n    if (!this.shadowRoot) {\n      this.attachShadow({ mode: 'open' });\n      this.shadowRoot.innerHTML = `<style>${styles}</style>${html}`;\n    }\n  }\n\n  private onVariantChanged(event: WindowEventMap['variant-changed']) {\n    const imageSrc = event.detail.variant.image;\n    const image = this.querySelector('img[slot=\"image\"]');\n    image.setAttribute('src', imageSrc);\n  }\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'sets-subproduct': SetsSubproduct;\n  }\n}\n\nif (!customElements.get('sets-subproduct')) {\n  customElements.define('sets-subproduct', SetsSubproduct);\n}\n","import type { CustomElement } from '@integrabeauty/custom-elements';\nimport html from './index.html';\nimport styles from './index.scss';\n\n/**\n * This component renders a product description. If in mobile view and the description visually\n * spans more than two lines, it will be truncated with an option to expand the view.\n */\nclass ProductDescription extends HTMLElement implements CustomElement {\n  public static get observedAttributes() {\n    return [\n      'data-product-description'\n    ];\n  }\n\n  declare readonly dataset: {\n    /**\n     * The original description of a product. Used to reset the description if needed. It's a\n     * possible case when variant categories are used and one of the categories misses a\n     * description, so the original product description should be restored. Also, it's technically\n     * possible that there are be variants without categories among other variants with categories.\n     * We don't expect this to happen, but just in case.\n     */\n    originalDescription: string;\n\n    /**\n     * The description of a product. Can be updated dynamically when the variant changes.\n     */\n    productDescription: string;\n  };\n\n  private onClickReadMoreBound = this.onClickReadMore.bind(this);\n\n  public connectedCallback() {\n    this.initializeShadowRoot();\n\n    const readMore = this.shadowRoot.querySelector('.read-more');\n    readMore.addEventListener('click', this.onClickReadMoreBound);\n\n    this.render();\n  }\n\n  public disconnectedCallback() {\n    const readMore = this.shadowRoot.querySelector('.read-more');\n    readMore.removeEventListener('click', this.onClickReadMoreBound);\n  }\n\n  private initializeShadowRoot() {\n    if (!this.shadowRoot) {\n      this.attachShadow({ mode: 'open' });\n      this.shadowRoot.innerHTML = `<style>${styles}</style>${html}`;\n    }\n  }\n\n  public attributeChangedCallback(_name: string, oldValue: string, newValue: string) {\n    this.initializeShadowRoot();\n\n    if (this.isConnected && newValue !== oldValue) {\n      this.render();\n    }\n  }\n\n  private render() {\n    const description = this.shadowRoot.querySelector<HTMLElement>('.description');\n    description.innerHTML = this.dataset.productDescription;\n  }\n\n  private onClickReadMore(event: Event) {\n    event.preventDefault();\n\n    const host = <HTMLElement>this.shadowRoot.host;\n    const readMore = this.shadowRoot.querySelector<HTMLElement>('.read-more');\n    const readMoreLabel = readMore.querySelector('span');\n\n    if (host.dataset.expanded === 'true') {\n      host.removeAttribute('data-expanded');\n      readMore.setAttribute('aria-expanded', 'false');\n      readMoreLabel.textContent = 'Read More';\n    } else {\n      host.setAttribute('data-expanded', 'true');\n      readMore.setAttribute('aria-expanded', 'true');\n      readMoreLabel.textContent = 'Read Less';\n    }\n  }\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'product-description': ProductDescription;\n  }\n}\n\nif (!customElements.get('product-description')) {\n  customElements.define('product-description', ProductDescription);\n}\n","import type { CustomElement } from '@integrabeauty/custom-elements';\nimport html from './index.html';\nimport styles from './index.scss';\n\n/**\n * Renders product related countdown timer. It is used in a product template context.\n */\nclass ProductDetailCountdownTimer extends HTMLElement implements CustomElement {\n  public static get observedAttributes() {\n    return [\n      'data-end-time',\n      'data-start-time'\n    ];\n  }\n\n  declare readonly dataset: {\n    /**\n     * Stop time as unix epoch time.\n     *\n     * @see https://www.epochconverter.com\n     */\n    endTime: string;\n\n    /**\n     * Start time as unix epoch time.\n     *\n     * @see https://www.epochconverter.com\n     */\n    startTime: string;\n  };\n\n  private endTime?: number;\n  private startTime?: number;\n  private timer?: ReturnType<typeof setInterval>;\n  private timeRemainingElement?: HTMLElement;\n\n  public connectedCallback() {\n    this.initializeShadowRoot();\n\n    this.timeRemainingElement = this.shadowRoot.querySelector<HTMLElement>('.time-remaining');\n\n    this.hide();\n    this.render();\n  }\n\n  public attributeChangedCallback(name: string, oldValue: string, newValue: string) {\n    this.initializeShadowRoot();\n\n    if (!this.isConnected || newValue === oldValue) {\n      return;\n    }\n\n    switch (name) {\n      case 'data-start-time':\n        this.startTime = parseInt(newValue, 10) * 1000;\n        break;\n      case 'data-end-time':\n        this.endTime = parseInt(newValue, 10) * 1000;\n        break;\n    }\n\n    this.render();\n  }\n\n  private initializeShadowRoot() {\n    if (!this.shadowRoot) {\n      this.attachShadow({ mode: 'open' });\n      this.shadowRoot.innerHTML = `<style>${styles}</style>${html}`;\n    }\n  }\n\n  private render() {\n    if (!this.startTime || !this.endTime) {\n      return;\n    }\n\n    const nowTime = Date.now();\n\n    if (nowTime < this.startTime) {\n      return;\n    }\n\n    if (nowTime >= this.endTime) {\n      return;\n    }\n\n    this.show();\n    clearInterval(this.timer);\n    this.timer = setInterval(this.renderTime.bind(this), 100);\n  }\n\n  private renderTime() {\n    const nowTime = Date.now();\n    if (this.endTime - nowTime < 0) {\n      this.hide();\n      clearInterval(this.timer);\n      return;\n    }\n\n    const remaining = getTimeRemaining(this.endTime, nowTime);\n    const daysRemaining = remaining.days > 0 ?\n      `${remaining.days} ${remaining.days === 1 ? 'day' : 'days'}` :\n      '';\n    const timeRemaining = formatTime(remaining.hours, remaining.minutes, remaining.seconds);\n\n    this.timeRemainingElement.textContent = `${daysRemaining} ${timeRemaining}`;\n  }\n\n  /**\n   * Hide the whole component.\n   */\n  private hide() {\n    this.style.display = 'none';\n  }\n\n  /**\n   * Show the whole component.\n   */\n  private show() {\n    this.style.display = null;\n  }\n}\n\nfunction formatTime(hours: number, minutes: number, seconds: number) {\n  const h = hours.toString();\n  const m = minutes.toString();\n  const s = seconds.toString();\n  return `${h}h ${m}m ${s}s`;\n}\n\nfunction getTimeRemaining(endingMs: number, currentMs: number) {\n  let timeRemainingSeconds = (endingMs - currentMs) / 1000;\n\n  const days = Math.floor(timeRemainingSeconds / 86400);\n  timeRemainingSeconds -= days * 86400;\n\n  const hours = Math.floor(timeRemainingSeconds / 3600) % 24;\n  timeRemainingSeconds -= hours * 3600;\n\n  const minutes = Math.floor(timeRemainingSeconds / 60) % 60;\n  timeRemainingSeconds -= minutes * 60;\n\n  const seconds = Math.floor(timeRemainingSeconds % 60);\n\n  return {\n    days,\n    hours,\n    minutes,\n    seconds\n  };\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'product-detail-countdown-timer': ProductDetailCountdownTimer;\n  }\n}\n\nif (!customElements.get('product-detail-countdown-timer')) {\n  customElements.define('product-detail-countdown-timer', ProductDetailCountdownTimer);\n}\n","import { CustomElement } from '@integrabeauty/custom-elements';\nimport html from './index.html';\nimport styles from './index.scss';\n\n/**\n * A custom element that displays a zoomable image when clicked.\n *\n * It should only be used on devices that support hover and have a minimum width of 768px. We don't\n * need this feature on mobile devices as users can pinch to zoom.\n */\nclass ZoomableImage extends HTMLElement implements CustomElement {\n  declare readonly dataset: {\n    /**\n     * The scale coefficient of the zoomable image, number represented as a string, e.g. \"1.5\"\n     * Defaults to \"2\" if not set or invalid.\n     */\n    scale: string;\n\n    /**\n     * The URL of the large zoomable image.\n     */\n    zoomableImage: string;\n  };\n\n  private onClickedBound = this.onClicked.bind(this);\n  private onMouseEnterBound = this.onMouseEnter.bind(this);\n  private onMouseLeaveBound = this.onMouseLeave.bind(this);\n  private onMouseMoveBound = this.onMouseMove.bind(this);\n  private onMediaQueryChangeBound = this.onMediaQueryChange.bind(this);\n\n  private animationFrameId: number | null = null;\n  private isPreloaded = false;\n  private state: 'zoomedIn' | 'zoomedOut' = 'zoomedOut';\n  private imageContainer: HTMLDivElement | null = null;\n  private mediaQuery = matchMedia('(hover: hover) and (min-width: 768px)');\n\n  public connectedCallback() {\n    this.initializeShadowRoot();\n    if (this.mediaQuery.matches) {\n      this.addEventListeners();\n    }\n\n    this.mediaQuery.addEventListener('change', this.onMediaQueryChangeBound);\n  }\n\n  public disconnectedCallback() {\n    this.removeEventListeners();\n  }\n\n  private initializeShadowRoot() {\n    if (!this.shadowRoot) {\n      this.attachShadow({ mode: 'open' });\n      this.shadowRoot.innerHTML = `<style>${styles}</style>${html}`;\n    }\n  }\n\n  private addEventListeners() {\n    this.addEventListener('click', this.onClickedBound);\n    this.addEventListener('mouseenter', this.onMouseEnterBound);\n    this.addEventListener('mouseleave', this.onMouseLeaveBound);\n    this.addEventListener('mousemove', this.onMouseMoveBound);\n  }\n\n  private removeEventListeners() {\n    this.removeEventListener('click', this.onClickedBound);\n    this.removeEventListener('mouseenter', this.onMouseEnterBound);\n    this.removeEventListener('mouseleave', this.onMouseLeaveBound);\n  }\n\n  private onMediaQueryChange(event: MediaQueryListEvent) {\n    if (event.matches) {\n      this.addEventListeners();\n    } else {\n      this.removeEventListeners();\n      if (this.state === 'zoomedIn') {\n        this.hideImage();\n      }\n    }\n  }\n\n  private onClicked(_event: Event) {\n    if (this.state === 'zoomedOut') {\n      this.showImage();\n    } else if (this.state === 'zoomedIn') {\n      this.hideImage();\n    }\n  }\n\n  /**\n   * Preload the zoomable image on mouse enter. It improves user experience by reducing the delay\n   * when the user clicks to zoom in and sees the large image.\n   */\n  private onMouseEnter(_event: Event) {\n    // preload only once\n    if (this.isPreloaded) {\n      return;\n    }\n\n    preloadImage(this.dataset.zoomableImage);\n    this.removeEventListener('mouseenter', this.onMouseEnter);\n  }\n\n  private onMouseLeave(_event: Event) {\n    if (this.state === 'zoomedIn') {\n      this.hideImage();\n    }\n  }\n\n  private onMouseMove(event: MouseEvent) {\n    if (!this.imageContainer) {\n      return;\n    }\n\n    if (this.animationFrameId) {\n      cancelAnimationFrame(this.animationFrameId);\n    }\n\n    this.animationFrameId = requestAnimationFrame(() => {\n      // it's possible that the imageContainer is null when the animation frame is executed\n      if (!this.imageContainer) {\n        return;\n      }\n\n      const translateX = (event.offsetX * 100) / this.offsetWidth;\n      const translateY = (event.offsetY * 100) / this.offsetHeight;\n      this.imageContainer.style.backgroundPosition =\n        `${translateX.toFixed(2)}% ${translateY.toFixed(2)}%`;\n    });\n  }\n\n  private showImage() {\n    this.state = 'zoomedIn';\n\n    if (!this.dataset.zoomableImage) {\n      return;\n    }\n\n    const div = document.createElement('div');\n    div.style.backgroundImage = `url(${this.dataset.zoomableImage})`;\n\n    // default to 2 if not a valid number\n    const scale = parseFloat(this.dataset.scale) || 2;\n    div.style.backgroundSize = `${scale * 100}%`;\n\n    this.shadowRoot.appendChild(div);\n    this.imageContainer = div;\n  }\n\n  private hideImage() {\n    this.state = 'zoomedOut';\n\n    const imageContainer = this.shadowRoot.querySelector('div');\n    if (imageContainer) {\n      this.shadowRoot.removeChild(imageContainer);\n    }\n\n    this.imageContainer = null;\n  }\n}\n\nfunction preloadImage(src: string) {\n  const img = new Image();\n  img.src = src;\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'zoomable-image': ZoomableImage;\n  }\n}\n\nif (!customElements.get('zoomable-image')) {\n  customElements.define('zoomable-image', ZoomableImage);\n}\n","import type { Splide, Components, Options } from '@splidejs/splide';\n\n/**\n * Extension to add a custom slidebar to the Splide slider for visualizing and controlling the slide\n * position.\n *\n * If you want to render a sidebar in a specific place in the HTML, add the sidebar's markup\n * directly to your template. If no markup is provided, the sidebar will be automatically created\n * and inserted right before the closing tag of the Splide root element.\n *\n * This library was copy-paged from Lange.\n *\n * @param splide The main Splide instance\n * @param components Splide components\n * @param options Splide options object, containing customization options\n *\n * @see https://splidejs.com/components/\n * @see https://splidejs.com/guides/options/\n * @see https://splidejs.com/guides/extension/\n */\nexport function splideSlidebarExtension(splide: Splide, components: Components, options: Options) {\n  /**\n   * Root slidebar element\n   */\n  let slidebar: HTMLElement;\n\n  /**\n   * Indicates whether the sidebar markup is already present in the HTML or not.\n   */\n  let hasSlidebarMarkup = false;\n\n  /**\n   * Slide bar handle element\n   */\n  let handle: HTMLElement;\n\n  /**\n   * Slidebar current position\n   */\n  let position = 0;\n\n  /**\n   * Maximum allowable position value for the slidebar handle\n   */\n  let maxPosition: number;\n\n  /**\n   * Maximum allowable position value for the Splide's track. Store the value to not calculate all\n   * the time when the slider is dragged.\n   */\n  let maxTrackPosition: number;\n\n  /**\n   * Previous x-coordinate of the touch, needed to calculate the touch movement distance.\n   */\n  let previousTouchX = 0;\n\n  /**\n   * Mounts the extension, setting up the slidebar and initializing event listeners. Splide call\n   * this method automatically when the slider is ready.\n   *\n   * @see https://splidejs.com/guides/extension/\n   */\n  function mount() {\n    slidebar = components.Elements.root.querySelector('.splide__slider');\n    handle = components.Elements.root.querySelector('.splide__slider-handle');\n\n    if (slidebar && handle) {\n      hasSlidebarMarkup = true;\n    } else {\n      renderSlidebar();\n    }\n\n    slidebar.classList.add('hidden');\n\n    splide.on('ready', onSplideReady);\n    splide.on('updated', onSplideOptionsUpdated);\n    splide.on('overflow', onSplideOverflowed);\n  }\n\n  /**\n   * Enables the slidebar functionality, adding the necessary event listeners.\n   */\n  function enable() {\n    if (!hasSlidebarMarkup) {\n      components.Elements.root.appendChild(slidebar);\n    }\n\n    slidebar.classList.remove('hidden');\n\n    // Without this delay, the first page of the carousel is not clickable. There’s an issue with\n    // calling the components.Controller.go() method immediately when the extension is mounted.\n    setTimeout(onSplideResized);\n\n    if (!splide.is('fade')) {\n      splide.on('dragging.slidebar', onSplideDragging);\n    }\n\n    splide.on('move.slidebar', onSplideMoveStarted);\n    splide.on('resized.slidebar', onSplideResized);\n    handle.addEventListener('mousedown', onMousedown);\n    handle.addEventListener('touchstart', onTouchstart, { passive: true });\n    handle.addEventListener('transitionend', onTransitionend);\n    slidebar.addEventListener('click', onSlidebarClicked);\n  }\n\n  /**\n   * Disables the slidebar functionality, removing the event listeners and slidebar element.\n   */\n  function disable() {\n    slidebar.classList.add('hidden');\n\n    splide.off('move.slidebar');\n    splide.off('resized.slidebar');\n    splide.off('dragging.slidebar');\n    handle.removeEventListener('mousedown', onMousedown);\n    handle.removeEventListener('touchstart', onTouchstart);\n    handle.removeEventListener('transitionend', onTransitionend);\n    slidebar.removeEventListener('click', onSlidebarClicked);\n  }\n\n  /**\n   * Creates elements, calculates, and sets the handle width based on the number of slides, but does\n   * not append the element to the DOM.\n   */\n  function renderSlidebar() {\n    slidebar = document.createElement('div');\n    slidebar.classList.add('splide__slider');\n\n    handle = document.createElement('div');\n    handle.classList.add('splide__slider-handle');\n\n    handle.style.width = calculateHandleWidth();\n\n    slidebar.appendChild(handle);\n  }\n\n  /**\n   * Calculates the width of the handle.\n   *\n   * The function works depending upon the 'mode' the Splide is in. If it's in 'fade' mode, the\n   * width is calculated based on the proportion of 'perPage' option to the total number of slides,\n   * scaled to fit a percentage scale (0-100).\n   *\n   * For other modes, the handle width is determined by the ratio of list size to slider size, also\n   * expressed as a percentage.\n   *\n   * @returns The calculated width of the handle.\n   */\n  function calculateHandleWidth() {\n    let handleWidth;\n    if (splide.is('fade')) {\n      handleWidth = (options.perPage / components.Slides.getLength()) * 100;\n    } else {\n      handleWidth = (components.Layout.listSize() / components.Layout.sliderSize()) * 100;\n    }\n\n    return `${handleWidth}%`;\n  }\n\n  /**\n   * Calculates maximum values for the slidebar and track, ensuring they stay in sync.\n   */\n  function recalculateSlidebarAndTrackPosition() {\n    maxPosition = slidebar.offsetWidth - handle.offsetWidth;\n    maxTrackPosition = components.Layout.sliderSize() - components.Layout.listSize();\n\n    components.Controller.go(splide.index, true);\n  }\n\n  /**\n   * Processes and restricts handle movement within the slidebar bounds.\n   *\n   * @param toPosition Desired new position of the handle.\n   */\n  function processHandleMove(toPosition: number) {\n    const newPosition = getHandlePositionWithinBounds(toPosition);\n\n    // avoid position update if handle position hasn't changed.\n    if (position === newPosition) {\n      return;\n    }\n\n    position = getHandlePositionWithinBounds(toPosition);\n\n    if (!splide.is('fade')) {\n      const newSplidePosition = getCalculatedTrackPosition(position);\n      components.Move.translate(newSplidePosition);\n    }\n\n    // it ensures the DOM updates are synchronized with the browser's refresh rate, avoiding\n    // unnecessary reflows and keeping animations smooth\n    requestAnimationFrame(() => {\n      handle.style.transform = `translateX(${position}px)`;\n    });\n  }\n\n  /**\n   * Adjusts and returns the intended position of the handle within the boundaries of a slider.\n   * Checks whether the new position is within the range [0, maxPosition]. If the intended position\n   * is less than 0, it will be set to 0. If it's larger than maxPosition, it will be set to\n   * maxPosition. If it's the same as the current position, it will return this value without\n   * changes.\n   *\n   * @param toPosition - The intended new position.\n   * @returns newPosition - The adjusted position within the range [0, maxPosition].\n   */\n  function getHandlePositionWithinBounds(toPosition: number) {\n    let newPosition = toPosition;\n    if (newPosition <= 0) {\n      newPosition = 0;\n    } else if (newPosition >= maxPosition) {\n      newPosition = maxPosition;\n    }\n\n    return newPosition;\n  }\n\n  /**\n   * Aligns the track position based on the current position of the handle.\n   */\n  function alignTrackPosition() {\n    let index: number;\n\n    if (splide.is('fade')) {\n      index = Math.round(position / (maxPosition / components.Slides.getLength()));\n    } else {\n      const currentSplidePosition = components.Move.getPosition();\n      index = components.Move.toIndex(currentSplidePosition);\n    }\n\n    components.Controller.go(index, true);\n  }\n\n  function onSplideOptionsUpdated(_options: Options) {\n    toggleSlidebar();\n  }\n\n  function onSplideReady() {\n    toggleSlidebar();\n  }\n\n  function toggleSlidebar() {\n    // We need to both check isEnough() and isOverflow(). Depending on the Splide options or due to\n    // some Splide bugs, solely relying on one of these methods has led to issues.\n    if (options.slidebar && components.Slides.isEnough() && components.Layout.isOverflow()) {\n      enable();\n    } else {\n      disable();\n    }\n  }\n\n  function onMousedown() {\n    addEventListener('mousemove', onMousemove);\n    addEventListener('mouseup', onMouseup);\n  }\n\n  function onMouseup() {\n    // TODO: \"mouseup\" event is fired on touch devices right after \"touchend\". Need to investigate,\n    // if we can replace mouse and touch events with \"pointerdown\" and \"pointerup\" events.\n\n    alignTrackPosition();\n\n    removeEventListener('mousemove', onMousemove);\n    removeEventListener('mouseup', onMouseup);\n  }\n\n  function onMousemove(event: MouseEvent) {\n    const newPosition = position + event.movementX;\n    processHandleMove(newPosition);\n  }\n\n  function onTouchstart(event: TouchEvent) {\n    const touch = event.touches[0];\n    previousTouchX = touch.clientX;\n\n    addEventListener('touchmove', onTouchmove);\n    addEventListener('touchend', onTouchend);\n  }\n\n  function onTouchend(_event: TouchEvent) {\n    previousTouchX = 0;\n\n    alignTrackPosition();\n\n    removeEventListener('touchmove', onTouchmove);\n    removeEventListener('touchend', onTouchend);\n  }\n\n  function onTouchmove(event: TouchEvent) {\n    const touch = event.touches[0];\n    const movementX = touch.clientX - previousTouchX;\n    const newPosition = position + movementX;\n    previousTouchX = touch.clientX;\n\n    processHandleMove(newPosition);\n  }\n\n  /**\n   * Resets handle transition style once transition ends\n   */\n  function onTransitionend() {\n    handle.style.transition = '';\n  }\n\n  function onSlidebarClicked(event: MouseEvent) {\n    if (event.target !== event.currentTarget) {\n      return;\n    }\n\n    const newSlidebarPosition = event.offsetX - handle.offsetWidth / 2;\n    let index: number;\n\n    if (splide.is('fade')) {\n      index = Math.round(newSlidebarPosition / (maxPosition / components.Slides.getLength()));\n    } else {\n      const newTrackPosition = getCalculatedTrackPosition(newSlidebarPosition);\n      index = components.Move.toIndex(newTrackPosition);\n    }\n\n    components.Controller.go(index, true);\n  }\n\n  function onSplideResized() {\n    handle.style.width = calculateHandleWidth();\n\n    recalculateSlidebarAndTrackPosition();\n  }\n\n  function onSplideOverflowed(isOverflow: boolean) {\n    if (isOverflow) {\n      enable();\n    } else {\n      disable();\n    }\n  }\n\n  /**\n   * Sets the handle position based on the active slide's position.\n   *\n   * @param index Active Slide index.\n   */\n  function onSplideMoveStarted(index: number) {\n    let newSlidebarPosition;\n    if (splide.is('fade')) {\n      newSlidebarPosition = (options.perPage / (components.Slides.getLength() - 1)) * maxPosition *\n        index;\n    } else {\n      const newTrackPosition = components.Move.toPosition(index);\n      newSlidebarPosition = getCalculatedSlidebarPosition(newTrackPosition);\n    }\n\n    position = getHandlePositionWithinBounds(newSlidebarPosition);\n    handle.style.transform = `translateX(${position}px)`;\n    handle.style.transition = 'transform 400ms cubic-bezier(0.25, 1, 0.5, 1)';\n  }\n\n  function onSplideDragging() {\n    const newPosition = getCalculatedSlidebarPosition();\n    position = getHandlePositionWithinBounds(newPosition);\n    handle.style.transform = `translateX(${position}px)`;\n  }\n\n  /**\n   * Calculates the handle's position based on the current track position.\n   *\n   * @param trackPosition Optional track position for calculation. If not provided the value from\n   *   the Move component is taken. We don't need to pass a new track position if this function used\n   *   to get the slidebar position when the slider is dragged, but it's necessary if used when the\n   *   slider is moved to a certain slide because the position at the end of moving should be taken\n   *   instead of the current Splide's track position.\n   */\n  function getCalculatedSlidebarPosition(trackPosition?: number) {\n    // Use the max track position for the last reachable slide index rather than computing from\n    // layout dimensions. The arithmetic below doesn't work if the last slide is reached. It's good\n    // enough for the slide position in the middle of the slider but causes the slidebar handle to\n    // never fully reach the end.\n    const endIndex = components.Controller.getEnd();\n    const currentIndex = components.Controller.getIndex();\n    if (endIndex === currentIndex) {\n      return maxPosition;\n    }\n\n    const currentTrackPosition = -1 * (trackPosition ?? components.Move.getPosition());\n    const ratio = currentTrackPosition / maxTrackPosition;\n    const newSlideBarPosition = ratio * maxPosition;\n    return newSlideBarPosition;\n  }\n\n  /**\n   * Calculates the track's position based on the handle's position.\n   *\n   * @param slidebarPosition Position of the slidebar handle.\n   */\n  function getCalculatedTrackPosition(slidebarPosition: number) {\n    const ratio = slidebarPosition / maxPosition;\n    const newTrackPosition = -1 * ratio * maxTrackPosition;\n    return newTrackPosition;\n  }\n\n  /**\n   * Cleans up the slidebar when Splide is destroyed. Splide calls this automatically when a\n   * breakpoint sets `destroy: true` (e.g. when all slides fit on screen). Without this handler the\n   * slidebar would remain visible after Splide tears down.\n   */\n  function destroy() {\n    disable();\n  }\n\n  return {\n    mount,\n    destroy\n  };\n}\n","import '../../lib/webpack-path.js';\nimport type Splide from '@splidejs/splide';\nimport { splideSlidebarExtension } from '../../lib/splide-slidebar-extension.js';\n\nlet productId: number;\nlet mainSplide: Splide;\nlet navSplide: Splide;\nlet mainImages: HTMLElement;\nlet navImages: HTMLElement;\n\nfunction showAndFadeOutCountIndicator() {\n  const elems = document.querySelectorAll('.splide__count-indicator');\n  if (elems.length === 0) {\n    return;\n  }\n\n  for (const elem of elems) {\n    elem.classList.remove('fade-out');\n  }\n\n  setTimeout(() => {\n    for (const elem of elems) {\n      elem.classList.add('fade-out');\n    }\n  }, 1000);\n}\n\nfunction recalculateCarousel() {\n  const gallery = document.getElementById('product-image-gallery');\n  if (!gallery) {\n    return;\n  }\n\n  gallery.style.cssText = '';\n}\n\nfunction onDOMContentLoaded() {\n  const mainCarousel = document.querySelector('.splide--product-gallery-main-carousel');\n  if (!mainCarousel) {\n    return;\n  }\n\n  const gallery = document.querySelector<HTMLElement>('#product-image-gallery');\n  productId = parseInt(gallery.dataset.productId, 10);\n  if (!productId) {\n    return;\n  }\n\n  initCarousel()\n    .then(() => {\n      recalculateCarousel();\n    })\n    .catch(console.warn);\n\n  addEventListener('resize', recalculateCarousel);\n\n  // Listen only to events from the PDP variant selector. It prevents collisions between a product\n  // card with the same product on the page, e.g. in the predictive search or recommended products,\n  // and the product details.\n  const productPage = document.querySelector<HTMLElement>('.product-v2');\n  productPage.addEventListener('variant-changed', onVariantChanged);\n}\n\nfunction onVariantChanged(event: WindowEventMap['variant-changed']) {\n  const detail = event.detail;\n\n  // We need this check for the bundles. Currently, on the PDP of a bundle product, we have multiple\n  // variant selectors for each subproduct, and each of them emits the `variant-changed` event with\n  // the detail.product_id related NOT to the main product. So we need to make sure that we update\n  // the carousel only when the event is emitted by the variant selector of the main product. It\n  // happens on a regular PDP or on a bundle PDP when there's only one variant selector related to\n  // the main product.\n  if (detail.variant.product_id !== productId) {\n    return;\n  }\n\n  updateCarouselImages(detail.variant.id.toString());\n}\n\nfunction updateCarouselImages(variantId: string) {\n  // Update images per variant on main carousel\n  mainSplide.Components.Slides.remove(item => item.slide.dataset.variantId);\n  let index = 0;\n  const variantMainImages =\n    mainImages.querySelectorAll(`[data-variant-id=\"${variantId}\"]`);\n  for (const slide of variantMainImages) {\n    const newSlide = <HTMLElement>(slide.cloneNode(true));\n    mainSplide.Components.Slides.add(newSlide, index++);\n  }\n\n  const singleImage = variantMainImages.length <= 1;\n  const mainSliderFooter = mainSplide.Components.Elements.root.querySelector('.splide__footer');\n  if (singleImage) {\n    mainSliderFooter.classList.add('hidden');\n  } else {\n    mainSliderFooter.classList.remove('hidden');\n  }\n\n  // Update images per variant on nav carousel\n  if (navSplide) {\n    if (singleImage) {\n      navSplide.Components.Elements.root.classList.add('hidden');\n    } else {\n      navSplide.Components.Elements.root.classList.remove('hidden');\n    }\n\n    navSplide.Components.Slides.remove(item => item.slide.dataset.variantId);\n    let index = 0;\n    const variantNavImages =\n      navImages.querySelectorAll(`[data-variant-id=\"${variantId}\"]`);\n    for (const slide of variantNavImages) {\n      const newSlide = <HTMLElement>(slide.cloneNode(true));\n      navSplide.Components.Slides.add(newSlide, index++);\n    }\n  }\n\n  // Scroll to first slide\n  mainSplide.go(0);\n}\n\nasync function initCarousel() {\n  const { Splide } = await import('@splidejs/splide');\n  const mainCarousel =\n    document.querySelector<HTMLElement>('.splide--product-gallery-main-carousel');\n\n  // Cache main carousel markup\n  mainImages = document.createElement('div');\n  mainImages.innerHTML = mainCarousel.innerHTML;\n\n  // Init main carousel\n  mainSplide = new Splide(mainCarousel, {\n    type: 'fade',\n    perPage: 1,\n    perMove: 1,\n    rewind: true,\n    pagination: false,\n    arrows: true,\n    lazyLoad: 'nearby',\n    mediaQuery: 'min',\n    slidebar: true,\n    breakpoints: {\n      768: {\n        arrows: false,\n        slidebar: false\n      }\n    }\n  });\n\n  const navCarousel = document.querySelector('.splide--product-gallery-nav-carousel');\n  if (navCarousel) {\n    // Cache nav carousel markup\n    navImages = document.createElement('div');\n    navImages.innerHTML = navCarousel.innerHTML;\n\n    navSplide = new Splide(<HTMLElement>navCarousel, {\n      fixedWidth: 85,\n      fixedHeight: 85,\n      gap: 12,\n      perMove: 1,\n      rewind: true,\n      pagination: false,\n      isNavigation: true,\n      arrows: true,\n      lazyLoad: 'nearby',\n      keyboard: true,\n      breakpoints: {\n        767: {\n          // SPLIDE BUG regarding `destroy: true`\n          // @see https://github.com/Splidejs/splide/issues/1268\n          // I reported this bug, but temporarily we are leveraging CSS to hide the nav carousel so\n          // it doesn't break syncing after resize. destroy: true\n        },\n        768: {\n          arrows: false\n        }\n      }\n    });\n  }\n\n  // Pause video when slide is not active\n  mainSplide.on('move', (newIndex, prevIndex) => {\n    showAndFadeOutCountIndicator();\n    const oldSlideContainer = mainSplide.Components.Slides.getAt(prevIndex);\n    const video = oldSlideContainer?.slide.querySelector('video');\n    if (video && !video.paused) {\n      video.pause();\n    }\n  });\n\n  // Start to play video when slide became active\n  mainSplide.on('moved', (newIndex, prevIndex, destIndex) => {\n    showAndFadeOutCountIndicator();\n    const newSlideContainer = mainSplide.Components.Slides.getAt(destIndex);\n    const video = newSlideContainer?.slide.querySelector('video');\n    video?.play().catch(console.warn);\n  });\n\n  // Mount carousels Order specific per\n  // @see https://splidejs.com/guides/apis/#sync\n  if (navSplide) {\n    mainSplide.sync(navSplide);\n  }\n\n  mainSplide.mount({\n    splideSlidebarExtension\n  });\n\n  type Detail = WindowEventMap['product-carousel-initialized']['detail'];\n  const event = new CustomEvent<Detail>('product-carousel-initialized', {\n    detail: { splide: mainSplide }\n  });\n  dispatchEvent(event);\n\n  if (navSplide) {\n    navSplide.mount();\n  }\n\n  // Update carousel according to the selected variant if applicable\n  const selectedVariant = mainCarousel.dataset.selectedVariant;\n  const hasVariantImages = mainCarousel.dataset.hasVariantImages === 'true';\n  if (selectedVariant && hasVariantImages) {\n    updateCarouselImages(selectedVariant);\n  }\n}\n\n/**\n * Occurs when a product image gallery is initialized on a PDP page.\n */\ntype ProductCarouselInitializedEvent = CustomEvent<{\n  splide: Splide;\n}>;\n\ndeclare global {\n  interface WindowEventMap {\n    'product-carousel-initialized': ProductCarouselInitializedEvent;\n  }\n}\n\naddEventListener('DOMContentLoaded', onDOMContentLoaded);\n","export {};\n\n// See webpack.md for help. This MUST be included in any module that performs dynamic imports.\n\ndeclare global {\n  /**\n   * This is a global that is defined in a liquid snippet to point to the Shopify asset path.\n   * Webpack compilation is transpiled to point the variable to the global. Because Webpack\n   * compilation involves raw string replacement, this variable has to actually exist. Because we do\n   * not know the public path at compile time this is basically a hack that allows to define the\n   * public path at runtime. This public path is needed for webpack to perform its dynamic module\n   * loading, e.g. to support dynamic imports.\n   */\n  // eslint-disable-next-line @typescript-eslint/naming-convention\n  var __webpack_public_path__: string;\n}\n\n__webpack_public_path__ = window.__webpack_public_path__;\n"],"names":["__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","d","definition","Array","isArray","i","length","key","binding","o","Object","defineProperty","enumerable","value","get","f","e","chunkId","Promise","all","keys","reduce","promises","u","miniCssF","obj","prop","prototype","hasOwnProperty","call","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","s","getAttribute","createElement","charset","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","timeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","p","installedChunks","j","installedChunkData","promise","resolve","reject","error","Error","loadingEnded","errorType","realSrc","message","name","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","id","chunkLoadingGlobal","self","PairedProduct","HTMLElement","connectedCallback","this","initializeShadowRoot","shadowRoot","attachShadow","mode","innerHTML","customElements","define","FindationWidgetButton","shouldOpenModal","onWidgetEmbeddedBound","onWidgetEmbedded","onDOMContentLoadedBound","onDOMContentLoaded","onWidgetOpenedBound","onWidgetOpened","onWidgetClosedBound","onWidgetClosed","onAdClickedBound","onAdClicked","window","Findation","addEventListener","onMessage","readyState","ofir","queue","disconnectedCallback","removeEventListener","querySelector","onButtonClicked","_event","isConnected","render","widgetEmbedded","widgetDidOpen","widgetDidClose","onSearchComplete","onSearchCompleted","placeholder","style","display","init","iframe","hidden","Event","cancelable","dispatchEvent","postMessage","detail","findationModal","CustomEvent","matchSuccess","contentWindow","externalId","_event$data","_event$data2","_event$data3","location","href","origin","pathname","ProductDetails","onVariantChangedBound","onVariantChanged","variant","dataset","isBundle","updatePrice","price","updateCompareAtPrice","compareAtPrice","compareAtPriceModalContent","updateTopBadge","topBadge","topBadgeStyle","updateProductDescription","categoryDescription","priceElement","previousValue","textContent","replace","toFixed","modalContent","compareAtPriceInfo","content","description","descriptionElement","productDescription","originalDescription","ProductVariantSelector","onShowOptionsClickedBound","onShowOptionsClicked","product_variant_selector_event_queue","isVariantChangedEvent","console","warn","host","classList","remove","button","optionsContainer","add","variantId","updateVariantTitle","option","updateColorSwatch","color","shouldUpdateUrl","URL","searchParams","set","toString","history","replaceState","historyEvent","updateUrl","selectedOption","dropdownText","swatch","backgroundColor","StickyCTA","mediaQuery","matchMedia","matchesMediaQuery","updateElementsBasedOnViewportBound","updateElementsBasedOnViewport","styleElement","append","matches","paddingBottom","offsetHeight","discountMessage","SetsSubproduct","imageSrc","image","ProductDescription","observedAttributes","onClickReadMoreBound","onClickReadMore","attributeChangedCallback","_name","oldValue","newValue","preventDefault","readMore","readMoreLabel","expanded","removeAttribute","ProductDetailCountdownTimer","endTime","startTime","timer","timeRemainingElement","hide","parseInt","nowTime","Date","now","show","clearInterval","setInterval","renderTime","remaining","endingMs","currentMs","timeRemainingSeconds","days","Math","floor","hours","minutes","seconds","getTimeRemaining","daysRemaining","timeRemaining","h","formatTime","ZoomableImage","onClickedBound","onClicked","onMouseEnterBound","onMouseEnter","onMouseLeaveBound","onMouseLeave","onMouseMoveBound","onMouseMove","onMediaQueryChangeBound","onMediaQueryChange","animationFrameId","isPreloaded","state","imageContainer","addEventListeners","removeEventListeners","hideImage","showImage","zoomableImage","Image","cancelAnimationFrame","requestAnimationFrame","translateX","offsetX","offsetWidth","translateY","offsetY","backgroundPosition","div","backgroundImage","scale","parseFloat","backgroundSize","splideSlidebarExtension","splide","components","options","slidebar","handle","maxPosition","maxTrackPosition","hasSlidebarMarkup","position","previousTouchX","enable","Elements","root","onSplideResized","is","on","onSplideDragging","onSplideMoveStarted","onMousedown","onTouchstart","passive","onTransitionend","onSlidebarClicked","disable","off","calculateHandleWidth","handleWidth","perPage","Slides","getLength","Layout","listSize","sliderSize","processHandleMove","toPosition","newPosition","getHandlePositionWithinBounds","newSplidePosition","getCalculatedTrackPosition","Move","translate","transform","alignTrackPosition","index","round","currentSplidePosition","getPosition","toIndex","Controller","go","onSplideOptionsUpdated","_options","toggleSlidebar","onSplideReady","isEnough","isOverflow","onMousemove","onMouseup","movementX","touch","touches","clientX","onTouchmove","onTouchend","transition","currentTarget","newSlidebarPosition","newTrackPosition","width","onSplideOverflowed","getCalculatedSlidebarPosition","trackPosition","getEnd","getIndex","slidebarPosition","mount","destroy","productId","mainSplide","navSplide","mainImages","navImages","showAndFadeOutCountIndicator","elems","querySelectorAll","elem","recalculateCarousel","gallery","getElementById","cssText","product_id","updateCarouselImages","Components","item","slide","variantMainImages","newSlide","cloneNode","singleImage","mainSliderFooter","variantNavImages","__webpack_public_path__","async","Splide","then","mainCarousel","perMove","rewind","pagination","arrows","lazyLoad","breakpoints","navCarousel","fixedWidth","fixedHeight","gap","isNavigation","keyboard","newIndex","prevIndex","oldSlideContainer","getAt","video","paused","pause","destIndex","newSlideContainer","play","catch","sync","selectedVariant","hasVariantImages","initCarousel"],"sourceRoot":""}