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,QAAS,8DAA+Ds1E,IAIjFtoE,GAAMhN,GAAG,OAAQ,kDAAkD,SAAUzgB,GACzEq1F,IAA+B9vF,EAAEvF,EAAE0L,QAAQka,KAC/C,IAGA+vE,GAAmB/zE,iBAAiB,QAASy0E,GACjD,G,WCrZAmC,GAAiB32F,EAAQ,MAE7B0D,EAAE2B,UAAUuxF,OAAM,WACdD,GAAeE,IACfF,GAAeG,IAEfC,GAAAA,EAAe5lE,eAAcrxB,EAAAA,EAAAA,YAAW,aAC5C,G","sources":["webpack://app_custom_lilly_pulitzer/../link_googleanalytics/cartridges/link_googleanalytics/cartridge/client/default/js/util/analytics-util.js","webpack://app_custom_lilly_pulitzer/../link_googleanalytics/cartridges/link_googleanalytics/cartridge/client/default/js/util/constants.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/checkout/formErrors.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/clientSideValidation.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/carousel.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/etmc.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/shippingPreference/constants.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/shippingPreference/shippingPreferenceHelper.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/swiperCarousel.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/video.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/constants.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/domUtil.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/popover.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/product/helper.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/productTiles/productTileConstants.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/productTiles/utils/gridDensity.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/templates.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/util.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/wishlist/helper.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/wishlist/wishlistItemsMgr.js","webpack://app_custom_lilly_pulitzer/../storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/checkout/formErrors.js","webpack://app_custom_lilly_pulitzer/../storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/focus.js","webpack://app_custom_lilly_pulitzer/../storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/formValidation.js","webpack://app_custom_lilly_pulitzer/../storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/scrollAnimate.js","webpack://app_custom_lilly_pulitzer/../storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/util.js","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/shared/create-element-if-not-defined.mjs","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/modules/navigation.mjs","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/shared/classes-to-selector.mjs","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/modules/pagination.mjs","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/modules/scrollbar.mjs","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/shared/ssr-window.esm.mjs","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/shared/utils.mjs","webpack://app_custom_lilly_pulitzer/../node_modules/.pnpm/swiper@11.1.3/node_modules/swiper/shared/swiper-core.mjs","webpack://app_custom_lilly_pulitzer/webpack/bootstrap","webpack://app_custom_lilly_pulitzer/webpack/runtime/compat get default export","webpack://app_custom_lilly_pulitzer/webpack/runtime/define property getters","webpack://app_custom_lilly_pulitzer/webpack/runtime/hasOwnProperty shorthand","webpack://app_custom_lilly_pulitzer/webpack/runtime/make namespace object","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/product/base.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/alertDialog.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/utils/cache.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/utils/ajaxData.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/productTiles/utils/productTileData.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/components/notifyMe.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/wishlist/wishlist.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/giftCard/giftCard.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/wishlist.js"],"sourcesContent":["'use strict';\n\nconst { bind, queryAll, queryFirst, hasClass } = require('lilly/domUtil');\nconst { toDatasetKey, hashValue } = require('lilly/util');\nconst { VIEW_PROMO, SELECT_PROMO, SELECT_ITEM, VIEW_ITEM_LIST, ADD_TO_CART, P_PRODUCT_LIST_KEY, P_PROMO_NAME_KEY, P_PROMO_CREATIVE_NAME } = require('./constants');\n\n// Persisted Data Constants\nconst PERSISTED_DATA_NAME = 'utag_persisted';\nconst STORAGE_EXP_TIME = 30 * 60 * 1000; // 30 minutes\n\nconst gaInitKeyPrefix = 'ga-init';\nconst gaRetriggerFlag = 'gaRetrigger';\nconst gaFieldPipe = '|';\nconst customEventPattern = /\\W/;\n\n// Bindings registry\nif (!window.gaBindings) window.gaBindings = {};\nconst { gaBindings } = window;\n\n// A list of properties that, when set by the user, should be updated in the UDO.\n// More easily put, anything that you want an up-to-date value for, which would be\n// sent with ANY event type, should be in this list.\nconst UDOProperties = [\n    'logged_in_status',\n    'page_type',\n    'page_category',\n    'page_subcategory',\n    'product_id',\n    'product_name',\n    'product_color',\n    'product_category',\n    'product_variant',\n    'product_quantity',\n    'product_price',\n    'product_size',\n    'product_sku',\n    'product_original_price',\n    'variant_group',\n    'product_is_preorder',\n    'affiliation',\n    'product_badge'\n];\n\n// A list of properties that should be preserved as arrays, not converted to piped strings.\nconst UDOArrays = [\n    'product_id',\n    'product_name',\n    'product_color',\n    'product_category',\n    'product_variant',\n    'product_quantity',\n    'product_price',\n    'product_size',\n    'product_sku',\n    'product_original_price',\n    'promo_id',\n    'promo_name',\n    'promo_creative',\n    'promo_position',\n    'product_is_preorder',\n    'affiliation',\n    'product_list_id',\n    'product_list_name',\n    'product_list_price',\n    'product_list_position',\n    'product_list_original_price',\n    'product_badge',\n    'product_list_category',\n    'product_list_sku'\n];\n\n// A list of GA4 events (event_name) which should include promotional information if available.\n// begin_checkout and purchase also need this information, but are handled in the events themselves\nconst promoSensitiveEvents = [VIEW_PROMO, SELECT_PROMO, ADD_TO_CART];\n// a list of GA4 events (event_name) which should include product_list information if available\n// begin_checkout and purchase also need this information, but are handled in the events themselves\nconst productListSensitiveEvents = [VIEW_ITEM_LIST, SELECT_ITEM, ADD_TO_CART];\n\n/**\n *  Normalizes analytics data to ensure consistency.\n *  @param {*} fields - Analytics data\n *  @returns {string} - Normalized analytics value\n *  @example normalize(['a','b','c'], 1,2,3, 'x','y','z') // a|b|c|1|2|3|x|y|z\n */\nconst normalize = (...fields) =>\n    fields\n        .map(field => {\n            if (!Array.isArray(field)) field = [field];\n\n            return field\n                .reduce((result, item) => {\n                    if (String(item) === '[object Object]') {\n                        result = result.concat(Object.values(item));\n                    } else if (Array.isArray(item)) {\n                        result = result.concat(normalize(item));\n                    } else {\n                        result.push(item);\n                    }\n\n                    return result;\n                }, [])\n                .map(text => (typeof text === 'undefined' ? '' : String(text).toLowerCase().trim()))\n                .join(gaFieldPipe);\n        })\n        .join(gaFieldPipe);\n\n/**\n *  Normalizes analytics data to ensure consistency.\n *  @param {*} field - Analytics data\n *  @returns {Array} - Normalized analytics array of values\n *  @example normalizeArray(['A','b','C', true, false, ['X', 'Y', 3], 0]) // [\"a\", \"b\", \"c\", \"true\", \"false\", \"x|y|3\", \"0\"]\n */\nconst normalizeArray = field => {\n    if (!Array.isArray(field)) field = [field];\n\n    return field.map(value => normalize(value));\n};\n\n/**\n * Normalizes a value to a string or an array based on UDOArrays\n * @param {string} key The key whose value is being normalized\n * @param {*} value The value to be normalized\n * @returns {string|Array} Normalized array or string value\n */\nconst smartNormalize = (key, value) => (UDOArrays.includes(key) ? normalizeArray(value) : normalize(value));\n\n/**\n *  Normalizes an analytics payload to ensure consistency, preserving UDO properties as arrays.\n *  @param {Object} payload - Analytics data object\n *  @returns {Object} - Normalized analytics object\n *  @example normalizePayload({ event_category: \"SOME CATEGORY\", event_action: \"SOME ACTION\", event_label: undefined }) // { event_category: \"some category\", event_action: \"some action\", event_label: \"\" }\n */\nconst normalizePayload = payload =>\n    Object.entries(payload).reduce((result, [key, value]) => {\n        result[key] = smartNormalize(key, value);\n\n        return result;\n    }, {});\n\n/**\n *  Retrieves contextual data about the page.\n *  @param {element} srcElement - The element that triggered the event\n *  @param {Object} [options={}] - options object from bindGA\n *  @returns {Object} - Plain object keyed with custom dimensions\n */\nconst getPageContext = (srcElement, options = {}) => {\n    const { utag_data: uData = {} } = window;\n    let sectionSrcElement = srcElement;\n    const dialog = srcElement.closest && srcElement.closest('.modal');\n\n    // Dialogs should provide context into what triggered them\n    if (dialog) {\n        sectionSrcElement = $(dialog).data('srcElement') || srcElement;\n\n        if (sectionSrcElement instanceof jQuery) {\n            sectionSrcElement = sectionSrcElement[0] || srcElement;\n        }\n    }\n\n    // Try to determine the page section & subsection\n    let pageSection = 'content';\n    let pageSubsection = '';\n\n    if (sectionSrcElement && srcElement) {\n        if (sectionSrcElement.closest) {\n            // Section\n            if (sectionSrcElement.closest('#minicart')) {\n                pageSection = 'mini tote drawer';\n            } else if (sectionSrcElement.closest('.recently-viewed')) {\n                pageSection = 'recently viewed';\n            } else if (sectionSrcElement.closest('.style-component-container')) {\n                pageSection = 'pdp style component';\n            } else if (sectionSrcElement.closest('.product-recommendations.ways-to-wear')) {\n                pageSection = 'ways to wear';\n            } else if (sectionSrcElement.closest('.recommendations.related-products')) {\n                pageSection = 'related products';\n            } else if (sectionSrcElement.closest('.shop-the-print')) {\n                pageSection = 'shop the print';\n            } else if (sectionSrcElement.closest('.full-suggestions')) {\n                pageSection = 'search recommendations';\n            } else if (sectionSrcElement.closest('.shop-the-print-tiles')) {\n                pageSection = 'shop the print';\n            } else if (sectionSrcElement.closest('.product-recommendations')) {\n                pageSection = 'product recommendations';\n            } else if (sectionSrcElement.closest('.shop-by-style')) {\n                pageSection = 'clp filter product carousel';\n            } else if (sectionSrcElement.closest('.category-landing-page .product-recommendations')) {\n                pageSection = 'clp top product carousel';\n            } else if (sectionSrcElement.closest('.refinement-bar') || sectionSrcElement.closest('.subcategory-refinement-bar')) {\n                pageSection = 'filters';\n            } else if (sectionSrcElement.closest('.main-nav')) {\n                pageSection = 'main navigation';\n            } else if (sectionSrcElement.closest('.product-grid-container')) {\n                pageSection = 'product grid';\n            } else if (sectionSrcElement.closest('.product-detail')) {\n                pageSection = 'product details';\n            } else if (sectionSrcElement.closest('.main-header')) {\n                pageSection = 'header';\n            } else if (sectionSrcElement.closest('footer')) {\n                pageSection = 'footer';\n            }\n        }\n\n        if (srcElement.closest) {\n            // Subsection\n            if (srcElement.closest('.quick-view-dialog')) {\n                pageSubsection = 'quickview dialog';\n            } else if (srcElement.closest('.quickview-container')) {\n                pageSubsection = 'quickview inline';\n            } else if (srcElement.closest('.wishlist-details-tab')) {\n                pageSubsection = 'wishlist';\n            }\n\n            // page_subsection for cart nav/SFL\n            const isCartPage = queryFirst('.cart-page');\n            const cartNav = srcElement.closest('.cart-nav');\n            const removeDialog = srcElement.closest('.remove-product-dialog'); // remove dialog is not within cart-nav\n            if (isCartPage) {\n                if (cartNav || removeDialog) {\n                    const selectedTab = queryFirst('.sfl-tabs-selected');\n                    pageSubsection = hasClass(selectedTab, 'save-for-later-tab') ? 'saved for later' : 'my tote';\n                } else {\n                    // sfl disabled\n                    pageSubsection = 'my tote';\n                }\n            }\n        }\n    }\n\n    let uaAttributes = {\n        // Defaults only - these should be set at the bind level or in data attributes\n        event_label: '',\n        event_category: '',\n        event_action: ''\n    };\n\n    // Remove UA defaults if the omitUADefaults option is true\n    if (options.omitUADefaults) {\n        uaAttributes = {};\n    }\n\n    return {\n        page_section: pageSection,\n        page_subsection: pageSubsection,\n\n        // Set in Tealium TagHelper\n        caching_enabled: uData.caching_enabled,\n        logged_in_status: uData.user_loggedin_status,\n        affiliation: uData.affiliation,\n        loyalty_status: uData.loyalty_status,\n        loyalty_program_member: uData.loyalty_program_member,\n        page_name: document.title,\n        page_type: uData.page_type,\n        page_category: uData.page_category,\n        page_subcategory: uData.page_subcategory,\n\n        product_category: uData.product_category,\n        product_color: uData.product_color,\n        product_id: uData.product_id,\n        product_original_price: uData.product_original_price,\n        product_name: uData.product_name,\n        product_price: uData.product_price,\n        product_quantity: uData.product_quantity && uData.product_quantity.length ? uData.product_quantity : [1],\n        product_size: uData.product_size,\n        product_variant: uData.product_variant,\n        product_badge: uData.product_badge,\n\n        ...uaAttributes\n    };\n};\n\n/**\n * Retrieves the requested data from the persisted data in Local Storage\n * @param {string|undefined} key - the key to pull -- otherwise the entire object will be returned.\n * @returns {string|Object|undefined} the value corresponding to the supplied key (if available), the entire object (if no key was given) or undefined (if no suitable value was found)\n */\nfunction getStoredDataLayerInfo(key) {\n    const { localStorage } = window;\n    const dataStr = localStorage.getItem(PERSISTED_DATA_NAME);\n    if (!dataStr) return undefined;\n\n    let data;\n    try {\n        data = JSON.parse(dataStr);\n    } catch (e) {\n        console.error(e);\n        localStorage.removeItem(PERSISTED_DATA_NAME);\n        return undefined;\n    }\n\n    // if there is no key, return the full data object.\n    if (typeof key === 'undefined') return data;\n\n    // if the key does not exist in the data, return undefined\n    if (!(key in data)) return undefined;\n\n    // check if the data is still valid\n    const { value, timestamp } = data[key];\n    const validUntil = timestamp + STORAGE_EXP_TIME;\n\n    // if the data has expired, delete it, save back to local storage, and return undefined.\n    if (validUntil < Date.now()) {\n        delete data[key];\n        localStorage.setItem(PERSISTED_DATA_NAME, JSON.stringify(data));\n        return undefined;\n    }\n\n    return value;\n}\n\n/**\n * Persists the given data to Local Storage\n * @param {string} key - the key for this item\n * @param {string} value - the value for this item\n */\nfunction setStoredDataLayerInfo(key, value) {\n    const { localStorage } = window;\n    const data = getStoredDataLayerInfo() || {};\n    data[key] = {\n        value,\n        timestamp: Date.now()\n    };\n\n    localStorage.setItem(PERSISTED_DATA_NAME, JSON.stringify(data));\n}\n\n/**\n * Stores any data that should be persisted from the payload in Local Storage\n * @param {Object} payload - The payload sent to Tealium\n */\nfunction storePersistentData(payload) {\n    const { event_name: eventName, category_id: productList, promo_name: promoName, promo_creative: promoCreative } = payload;\n\n    if (promoName && !Array.isArray(promoName)) {\n        console.warn(`promo_name for event ${eventName} is not an array!`);\n    }\n\n    if (eventName === VIEW_ITEM_LIST && productList) setStoredDataLayerInfo(P_PRODUCT_LIST_KEY, productList);\n    if (eventName === SELECT_PROMO && promoName) setStoredDataLayerInfo(P_PROMO_NAME_KEY, promoName);\n    if (eventName === SELECT_PROMO && promoCreative) setStoredDataLayerInfo(P_PROMO_CREATIVE_NAME, promoCreative);\n}\n\n/**\n * Sends an event to GA\n * @param {Object} data - The data to send (usually contains an event_category, event_action, and event_label)\n * @param {string} eventType - The type of event to send (e.g. link, view, etc)\n * @returns {Promise} a Promise\n */\nfunction sendEventGA(data, eventType = 'link') {\n    return new Promise((resolve, reject) => {\n        const { utag } = window;\n\n        if (utag && typeof utag[eventType] === 'function') {\n            utag[eventType](data, () => {\n                resolve();\n            });\n        } else {\n            reject(new Error(`utag is missing or utag.${eventType} does not exist`));\n        }\n    });\n}\n\n/**\n * Sends a GA event with context and normalized payload options\n * @param {Object} data - the baseline payload to send\n * @param {HTMLElement} [contextElem] - The element to reference for context (typically the element with which the user interacted). Default: first container in main-content.\n * @param {string} [eventType='link'] - The type of event to send (e.g. link, view, etc)\n * @param {boolean} [normalizeData=true] - whether to run the payload through the normalization function\n * @returns {Promise} a promise\n */\nfunction sendEventGAWithContext(data, contextElem = queryFirst('#main-content > .container'), eventType = 'link', normalizeData = true) {\n    // omit UA defaults by default -- we shouldn't be using any UA properties anymore\n    const pageContext = getPageContext(contextElem, { omitUADefaults: true });\n\n    // merge context and data, data gets precedence\n    let payload = Object.assign({}, pageContext, data);\n\n    if (normalizeData) {\n        payload = normalizePayload(payload);\n    }\n\n    return sendEventGA(payload, eventType);\n}\n\n/**\n * Checks if the event was triggered via jQuery.\n *\n * jQuery-triggered events usually have the `originalEvent` property,\n * which stores the native browser event. This function checks for that\n * property to determine if the event was likely dispatched by jQuery.\n *\n * @param {Event} e - The event object to check.\n * @returns {boolean} - Returns `true` if the event was triggered by jQuery, otherwise `false`.\n *\n * @example\n * document.addEventListener('click', function(e) {\n *   if (isJQueryEvent(e)) {\n *     console.log('Event triggered by jQuery');\n *   } else {\n *     console.log('Event triggered by native JS or user interaction');\n *   }\n * });\n */\nfunction isJQueryEvent(e) {\n    return !!e.originalEvent || e instanceof jQuery.Event;\n}\n\n/**\n * Dispatches a new event based on the provided existing event.\n *\n * The new event will inherit the type, bubbling, cancelability, and other properties\n * from the original event. If the original event is a CustomEvent, its `detail` property\n * will also be copied to the new event.\n * \n * @param {Event} e - The original event to base the new event on.\n * @param {HTMLElement} target - Original Element where event was triggered.\n * @throws {TypeError} If the event target is not valid or the event cannot be dispatched.\n * \n * @example\n * document.querySelector('form').addEventListener('submit', function(e) {\n *   dispatchBasedOnExistingEvent(e);\n * });\n */\nfunction dispatchBasedOnExistingEvent(e, target) {\n    if (isJQueryEvent(e)) {\n        $(target).trigger(e.type);\n\n        return;\n    }\n\n    // Create a new event based on the type of the existing event\n    const newEvent = new e.constructor(e.type, {\n        bubbles: e.bubbles,\n        cancelable: e.cancelable,\n        composed: e.composed\n    });\n\n    // If the event has additional properties, we pass them (for CustomEvent)\n    if (e instanceof CustomEvent) {\n        newEvent.detail = e.detail; // transfer detail from the original CustomEvent\n    }\n\n    // dispatch a new event on the same element\n    e.target.dispatchEvent(newEvent);\n}\n\n/**\n * Sets up a middleware GA handler for an element\n * @param {Element} elements - The element to bind to\n * @param {Object|function} data - The data to send to GA or a callback that returns the data to send\n * @param {Object} [options={}] - Additional options to configure the event binding\n * @param {Object} [options.bindOptions={}] - Options passed to the bind method as its options parameter\n * @param {function} [options.callback] - Callback to run after the event is triggered and data is sent to GA\n * @param {string} [options.eventType='click'] - The type of event to listen for (E.g. click, change, etc)\n * @param {function} [options.eventCondition] - A function that runs when the event is triggered, but before the data is sent to GA. Returning false will abort sending data to GA.\n * @param {boolean} [options.isCustomEvent=false] - Whether the event is custom. Event types containing non-word characters are flagged custom. Custom events are bound using jQuery.\n * @param {boolean} [options.normalize=true] - Whether the data payload should be normalized.\n * @param {boolean} [options.retriggerEvent=true] - Whether to retrigger the original event, after sending data to GA. Usually you don't want to retrigger custom events.\n * @param {boolean} [options.usesContext=true] - Whether to mix page context in with the data payload.\n * @param {boolean} [options.usesDataset=true] - Whether to pull event category, action and label from from the element's dataset.\n * @param {boolean} [options.updatesUDO=true] - Whether the Universal Data Object should be updated with any applicable values from the data payload after it is sent to GA.\n * @param {boolean} [options.omitUADefaults=false] - Whether UA/360 attributes should be omitted when adding default values to this event. If false, event label, action, and category will be added.\n */\nfunction bindGA(elements, data, options = {}) {\n    const {\n        bindOptions = {},\n        callback,\n        eventType = 'click',\n        eventCondition,\n        isCustomEvent = false,\n        normalize: usesNormalize = true,\n        retriggerEvent = true,\n        usesContext = true,\n        usesDataset = true,\n        updatesUDO = true,\n        gaEventType = 'link',\n        omitUADefaults = false\n    } = options;\n\n    const { utag_data: uData } = window;\n\n    let nodeList = elements;\n\n    // Convert NodeList to array\n    if (elements instanceof NodeList) {\n        nodeList = [].slice.call(elements, 0);\n    } else if (!Array.isArray(elements)) {\n        nodeList = [elements];\n    }\n\n    // Default once to false (GA will filter duplicates per Shelly)\n    if (typeof bindOptions.once !== 'boolean') {\n        bindOptions.once = false;\n    }\n\n    if (typeof bindOptions.eventCondition !== 'function') {\n        bindOptions.eventCondition = eventCondition;\n    }\n\n    // Custom events are bound with jQuery\n    if (isCustomEvent || customEventPattern.test(eventType)) {\n        bindOptions.bindEngine = 'jQuery';\n    }\n\n    const initFlag = [gaInitKeyPrefix, eventType, toDatasetKey(bindOptions.targetSelectors || 'root'), hashValue(data)].join('-');\n\n    nodeList.forEach(element => {\n        const binding = gaBindings[initFlag];\n        const isRebind = binding && binding.includes(element);\n\n        if (element && !isRebind) {\n            // Register this binding to the element\n            if (!binding) gaBindings[initFlag] = [];\n\n            gaBindings[initFlag].push(element);\n\n            bind(\n                element,\n                eventType,\n                (e, target) => {\n                    // Don't retrigger if we're holding down a modifier key, since we cannot retrigger using modifiers without user interaction\n                    const willRetrigger = retriggerEvent && !e.ctrlKey && !e.shiftKey;\n\n                    // Ignore clicks triggered by bindGA\n                    if (e.gaRetriggered || (target.dataset && target.dataset[gaRetriggerFlag] === initFlag)) {\n                        e.gaRetriggered = true;\n\n                        if (target.dataset) {\n                            delete target.dataset[gaRetriggerFlag];\n                        }\n\n                        return;\n                    }\n\n                    const tagPayload = {};\n\n                    // Pull the payload from the target element dataset\n                    if (usesDataset && target.dataset) {\n                        const { eventCategory, eventAction, eventLabel } = target.dataset;\n\n                        tagPayload.event_category = eventCategory;\n                        tagPayload.event_action = eventAction;\n                        tagPayload.event_label = eventLabel;\n                    }\n\n                    // Get the bindGA payload\n                    const bindPayload = typeof data === 'function' ? data(element, target, e, tagPayload) : data;\n\n                    // Trigger was aborted by callback\n                    if (bindPayload === false) {\n                        return;\n                    }\n\n                    // if event is promo or product list sensitive, add that data to tagPayload\n                    const { event_name: eventName } = bindPayload;\n                    if (eventName) {\n                        if (promoSensitiveEvents.includes(eventName)) {\n                            const promoName = getStoredDataLayerInfo(P_PROMO_NAME_KEY);\n                            if (promoName) Object.assign(tagPayload, { promo_name: promoName });\n                        }\n\n                        if (productListSensitiveEvents.includes(eventName)) {\n                            const productListName = getStoredDataLayerInfo(P_PRODUCT_LIST_KEY);\n                            if (productListName) Object.assign(tagPayload, { product_list: productListName, product_list_category: [productListName] });\n                        }\n                        if (promoSensitiveEvents.includes(eventName)) {\n                            const promoCreativeName = getStoredDataLayerInfo(P_PROMO_CREATIVE_NAME);\n                            if (promoCreativeName) Object.assign(tagPayload, { promo_creative: promoCreativeName });\n                        }\n                    }\n\n                    // Merge payloads (bindGA data takes priority)\n                    let payload = Object.assign({}, tagPayload, bindPayload);\n\n                    // Stop everything until we re-trigger\n                    if (willRetrigger) {\n                        e.preventDefault();\n                        e.stopPropagation();\n                    }\n\n                    // Common page context\n                    const pageContext = getPageContext(target, options);\n\n                    if (usesContext) {\n                        payload = Object.assign({}, pageContext, payload);\n                    }\n\n                    // Remove product data from promo events - PT-11362\n                    if ([VIEW_PROMO, SELECT_PROMO].includes(eventName)) {\n                        payload = Object.fromEntries(Object.entries(payload).filter(([key]) => !/^product_/.test(key)));\n                    }\n\n                    // Preserved UDO Properties\n                    // Any properties beginning with double underscore (__) will be sent with the payload,\n                    // but will be reverted in the UDO after sending\n                    const preservedUDOProperties = Object.keys(payload).reduce((result, key) => {\n                        if (key.substring(0, 2) !== '__') return result;\n\n                        const property = key.slice(2);\n                        payload[property] = payload[key];\n                        delete payload[key];\n                        result[property] = uData[property];\n                        return result;\n                    }, {});\n\n                    // Do we have any lazy UDO updates?\n                    const lazyUDOProperties = Object.keys(payload).reduce((result, key) => {\n                        if (key.charAt(0) !== '_') return result;\n\n                        const property = key.slice(1);\n                        payload[property] = payload[key];\n                        result.push(property);\n                        delete payload[key];\n\n                        return result;\n                    }, []);\n\n                    // Normalize all values\n                    if (usesNormalize) {\n                        payload = normalizePayload(payload);\n                    }\n\n                    // If this updates the UDO, store the updates.\n                    // The UDO will be updated after the payload is sent.\n                    const UDOUpdates = updatesUDO\n                        ? Object.keys(payload).reduce((result, key) => {\n                            // UDO properties only\n                            if (!UDOProperties.includes(key)) return result;\n\n                            // Store the updated value\n                            result[key] = payload[key];\n\n                            // For lazy properties, send the old UDO value in the payload. We'll update after.\n                            if (lazyUDOProperties.includes(key)) {\n                                payload[key] = usesNormalize ? smartNormalize(key, uData[key]) : uData[key];\n                            }\n\n                            return result;\n                        }, {})\n                        : {};\n\n                    storePersistentData(payload);\n\n                    sendEventGA(payload, gaEventType).finally(() => {\n                        if (typeof callback === 'function') callback(element, target, e);\n\n                        if (willRetrigger) {\n                            target.dataset[gaRetriggerFlag] = initFlag;\n\n                            // Without a teeny tiny timeout our click gets trapped\n                            setTimeout(() => {\n                                dispatchBasedOnExistingEvent(e, target);\n                            }, 0);\n                        }\n\n                        // Update Tealium UDO\n                        // This can only happen if we're updating the MAIN product,\n                        // not another product on the same page (E.g. quickview, recommendations, etc)\n                        if (updatesUDO && pageContext.page_section === 'product details') {\n                            // Product sets need to be updated based on index\n                            if (pageContext.page_type === 'product set') {\n                                const productSetItem = target.closest('.product-set-item');\n                                const productSetItems = queryAll('.product-set-item', target.closest('.product-set-detail'));\n                                const productSetIndex = productSetItems.indexOf(productSetItem);\n\n                                if (productSetIndex !== -1) {\n                                    Object.keys(UDOUpdates).forEach(key => {\n                                        const value = UDOUpdates[key];\n\n                                        if (UDOArrays.includes(key)) {\n                                            if (!uData[key]) uData[key] = new Array(productSetItems.length).fill('');\n                                            if (!Array.isArray(uData[key])) uData[key] = String(uData[key]).split(gaFieldPipe);\n\n                                            if (~String(value).indexOf(gaFieldPipe)) {\n                                                uData[key][productSetIndex] = String(value).split(gaFieldPipe)[productSetIndex] || '';\n                                            } else {\n                                                uData[key][productSetIndex] = normalize(value);\n                                            }\n                                        } else {\n                                            uData[key] = value;\n                                        }\n                                    });\n                                }\n                            } else {\n                                Object.keys(UDOUpdates).forEach(key => {\n                                    const value = UDOUpdates[key];\n\n                                    uData[key] = Array.isArray(value) ? value : [value];\n                                });\n                            }\n                        }\n\n                        // Restore preserved UDO property values\n                        if (Object.keys(preservedUDOProperties).length) {\n                            Object.assign(uData, preservedUDOProperties);\n                        }\n                    });\n                },\n                bindOptions\n            );\n        } else if (isRebind) {\n            console.warn('WARNING: Attempted duplicate', eventType, 'binding on', element);\n        }\n    });\n}\n\n/**\n * Gets the text node content of an element\n * @param {HTMLElement} elem - The element whose text node content will be returned\n * @returns {String} The content of the text node or empty string if no text node is found\n */\nfunction getText(elem) {\n    const textNode = [...elem.childNodes].find(child => child.nodeType === Node.TEXT_NODE);\n    return (textNode && textNode.textContent.trim().replace(/\\s+/g, ' ')) || '';\n}\n\nmodule.exports = {\n    bindGA,\n    sendEventGA,\n    sendEventGAWithContext,\n    getPageContext,\n    normalize,\n    normalizePayload,\n    delimiter: gaFieldPipe,\n    getText,\n    storePersistentData,\n    getStoredDataLayerInfo\n};\n","module.exports = {\n    // Asset Ids\n    EXCLUSIVE_EXPERIENCES_TOOLTIP_CID: 'loyalty-dashboard-exclusive-experiences-tool-tip',\n    REWARDS_TOOLTIP_CID: 'loyalty-dashboard-rewards-tool-tip',\n    OFFERS_TOOLTIP_CID: 'loyalty-dashboard-offers-tool-tip',\n    BENEFITS_TOOLTIP_CID: 'loyalty-dashboard-benefits-tool-tip',\n    TELL_A_FRIEND_TOOLTIP_CID: 'loyalty-dashboard-tell-a-friend-tool-tip',\n    STYLE_QUIZ_TOOLTIP_CID: 'loyalty-dashboard-style-quiz-tool-tip',\n    MEMBERSHIP_FAQ_TOOLTIP_CID: 'loyalty-dashboard-faq-tool-tip',\n\n    // Selectors\n    TOOL_TIP_CONTENT: '.tool-tip-content',\n    LOYALTY_TOOLTIP_ICON: '.loyalty-tooltip-icon',\n    ANALYTIC_EVENT_CLASS: '.analytic-event-class',\n    BENEFIT_MODAL_CLOSE_ICON: '.benefit-detail-modal .close',\n    BENEFIT_DETAIL_MODAL: '.benefit-detail-dialog',\n    BENEFIT_SWATCH_THUMBNAIL_MODAL: '.img-wallpaper',\n    BENEFIT_SWATCH_TITLE: '.title-text',\n    DOWNLOAD_SWATCH_CTA: '.download-cta',\n    GO_TO_ACCOUNT_CTA: '.go-to-my-account-btn',\n    BENEFIT_SWATCH_TAB: '.tab-pane.active',\n    REFER_FRIEND_CTA: '.loyalty-referral-drawer-link',\n    REFER_FRIEND_CTA_LINK: '.referral-cta-link',\n    REFER_FRIEND_TEXT_FIELD: '.referral-link',\n    STYLE_QUIZ_PENDING_QUIZ: '.finished-quiz',\n    MEMBERSHIP_LOYALTY_EXPAND_COLLAPSE_CTA: '.membership-loyalty-expand-collapse',\n    MEMBERSHIP_LOYALTY_EXPAND_COLLAPSE_ALL_CTA: '.membership-loyalty-expand-all',\n    MEMBERSHIP_FAQ_TERMS_AND_CONDITION_LINK: '.loyalty-terms-and-conditions .faq-link',\n    EXCLUSIVE_ARROW_RIGHT: '.exclusive-carousel .chevron-right',\n    EXCLUSIVE_ARROW_LEFT: '.exclusive-carousel .chevron-left',\n    EXCLUSIVE_PIP: '.exclusive-carousel .pip-content',\n    ARROW_CLICKS: 'arrow clicks',\n    EXCLUSIVE_PIP_ACTION: 'pip',\n    MODULE_CHANGE: 'module change',\n    ARROW_NEXT: 'next',\n    ARROW_PREVIOUS: 'previous',\n    EXCLUSIVE_VIEWALL: '.exclusive-dashboard-section .view-all-label',\n    EXCLUSIVE_EXPERIENCE_CTA: '.cta-styling',\n    EXCLUSIVE_RIGHT_SECTION: '.exclusive-right-section',\n    EXCLUSIVE_CONTENT_SLOTS_CLICK: 'content slots click',\n    EXCLUSIVE_SELECT_CONTENT: 'select_content',\n    EXCLUSIVE_EXPERIENCE_NAME: 'exclusive experience name',\n    EXCLUSIVE_CLICK_TO_VIEWALL: 'click to view all',\n    EXCLUSIVE_VIEWALL_EXCLUSIVE_EXPERIENCES: 'view all exclusive experiences',\n    EXCLUSIVE_TOOLTIP: '.exclusive-dashboard-section .custom-info-icon',\n    REFER_FRIEND_TOOLTIP: '.refer-dashboard-section .custom-info-icon',\n    EXCLUSIVE_OPEN_TOOLTIP: 'open tooltip',\n    HOW_TO_EARN_LINK: '.loyalty-how-to-earn-drawer-link',\n    VIEW_POINT_ACTIVITY_CTA: '.view-point-activity-cta',\n    REWARD_START_SHOPPING: '.reward-start-shopping',\n    REWARD_VIEW_CODE_CTA: '.view-code-cta',\n    VOUCHER_MODAL_CLOSE_CTA: '.loyalty-reward-in-store-dialog .close',\n    OFFER_FLIP_CARD_CTA: '.flip-card-front',\n    VIEW_COPY_CODE_CTA: '.view-copy-code-cta',\n    OFFER_DETAIL_CLOSE: '.offer-detail-modal .close',\n    BONUS_POINTS_DAY: 'Bonus points day',\n    EARLY_ACCESS: 'Early Access: New Fall Arrivals',\n    LOYALTY_PROGRAM_MODAL: '#loyalty-program-modal .close',\n    LOYALTY_ACCOUNT_CARD: '.loyalty-card-dropdown-cta',\n    VIEW_LOYALTY_DASHBOARD: '.view-dashboard',\n    LOYALTY_DRAWER_LINK: '.loyalty-program-drawer-link',\n    LOYALTY_OPT_IN_CHECKBOX: '.add-to-loyalty-program-checkbox',\n    ORDER_CONFIRM_GUEST_ELEMENT: '.order-confirm-loyalty-guest-content',\n    CREATE_ACCOUNT_ORDER_CONFIRM: '.create-loyalty-account-btn',\n    LOYALTY_NEXT_BUTTON: '.loyalty-welcome-cta',\n    CLOSE_WELCOME_MODAL: '.loyalty-welcome-dialog .close-enrollnow-model',\n    CLOSE_ENROLL_NOW_MODAL: '.loyalty-enrollnow-dialog .close-enrollnow-model',\n    ENROLL_LOYALTY_CTA: '.ga-loyalty-enroll-cta',\n    GUEST_LOYALTY_ENROLL: '.guest-create-and-enroll',\n    STYLE_QUIZ_START_CTA: '.style-quiz-start-cta',\n    STYLE_QUIZ_GO_TO_DASHBOARD: '.style-quiz-go-to-dashboard',\n    SWATCH_SELECTION_WRAPPER: '.js-swatch-selection-wrapper .swatch-container',\n    NEXT_QUESTION_CTA: '.loyalty-next-question-cta',\n    PREVIOUS_QUESTION_CTA: '.loyalty-previous-question-cta',\n    SUBMIT_QUIZ_CTA: '.loyalty-submit-quiz-cta',\n    SKIP_THIS_QUESTION_CTA: '.loyalty-skip-question-cta',\n    FINISH_LATER_CTA: '.loyalty-finish-later-cta',\n    START_SHOPPING_CTA: '.style-quiz-start-shopping-cta',\n    CONTENT_SLOT_SELECTORS: [\n        '.content-module',\n        '.promo-asset',\n        '.promo-default',\n        '.product-recommendations.ways-to-wear',\n        '.curalate-content',\n        '.product-detail .shop-the-print',\n        '.style-component-container',\n        '.sfl-empty',\n        '.homepage .recommendations .product-listing',\n        '.is-recommendation-carousel',\n        '.blog-posts-item',\n        '.product-highlight-asset'\n    ],\n\n    // GA Event category, label, action, page name strings\n    LOYALTY_BENEFIT_LABEL: 'loyalty benefits',\n    LOYALTY_ANNUAL_GIFT_ID: 'annual-member-gift',\n    ANNUAL_GIFT_LABEL: 'Annual Member',\n    LOYALTY_BIRTHDAY_TREAT_LABEL: 'birthday treat',\n    LOYALTY_DIGITAL_WALLPAPER_LABEL: 'digital wallpaper',\n    MODAL_CLOSE_LABEL: 'close',\n    MODAL_VOUCHER_CLOSE_LABEL: 'close modal',\n    MODAL_SELECTED_LABEL: 'select',\n    MODAL_DOWNLOAD_LABEL: 'download',\n    CLICK_EVENT_ACTION: 'click',\n    SHARE_EVENT_ACTION: 'share link',\n    LOYALTY_DASHBOARD_LABEL: 'loyalty dashboard',\n    LOYALTY_BENEFIT_TOOLTIP_LABEL: 'benefits tooltip',\n    BENEFIT_LABEL: 'benefits',\n    LOYALTY_EXCLUSIVE_EXPERIENCE_TOOLTIP_LABEL: 'exclusive experiences tooltip',\n    LOYALTY_EXCLUSIVE_EXPERIENCE_LABEL: 'exclusive experiences',\n    LOYALTY_MEMBERSHIP_FAQ_TOOLTIP_LABEL: 'membership faq tooltip',\n    TOOLTIP_LABEL: 'tooltip',\n    OPEN_TOOLTIP_LABEL: 'open tooltip',\n    CLOSE_TOOLTIP_LABEL: 'close tooltip',\n    STYLE_QUIZ_TOOLTIP_LABEL: 'style quiz tooltip',\n    STYLE_QUIZ_PAGE_SECTION: 'style quiz',\n    LOYALTY_REFER_A_FRIEND_SECTION: 'content or footer',\n    LOYALTY_MEMBERSHIP_FAQ_SECTION: 'membership faq',\n    LOYALTY_MODAL_PAGE_SUBSECTION: 'web pop up',\n    LOYALTY_REFER_A_FRIEND_LABEL_SECTION: 'refer a friend',\n    LOYALTY_REFER_A_FRIEND_TOOLTIP: 'refer a friend tooltip',\n    LOYALTY_EVENT_LABEL: 'finish your quiz',\n    MEMBERSHIP_FAQ_EXPAND_COLLAPSE_ACTION: 'expand question or collapse question',\n    MEMBERSHIP_FAQ_EXPAND_COLLAPSE_ALL_ACTION: 'expand all',\n    MEMBERSHIP_FAQ_TERMS_AND_CONDITION_LABEL: 'loyalty t&c link',\n    REWARDS_TOOLTIP_LABEL: 'rewards tooltip',\n    REWARDS_PAGE_SECTION_LABEL: 'rewards',\n    EVENT_CLICK_LINK_ACTION: 'click link',\n    REWARDS_HOW_TO_EARN_EVENT_LABEL: 'how to earn',\n    REWARDS_VIEW_POINT_ACTIVITY_LABEL: 'view points activity',\n    REWARDS_START_SHOPPING_LABEL: 'start shopping',\n    REWARDS_VIEW_CODE_ACTION: 'click to view',\n    REWARDS_VIEW_CODE_LABEL: 'reward vouchers code',\n    REWARDS_VOUCHER_MODAL: 'voucher modal',\n    REWARDS_VOUCHER_LABEL: 'voucher',\n    REWARDS_VOUCHER_PAGE_SECTION: 'modal',\n    OFFER_TOOLTIP_LABEL: 'offers tooltip',\n    OFFER_PAGE_SECTION: 'offers',\n    TAP_TO_REVEAL_ACTION: 'tap to reveal',\n    VIEW_AND_OFFER_CODE_CTA: 'view and copy offer code',\n    OFFER_CLOSE_EVENT_LABEL: 'offer modal',\n    LOYALTY_PROGRAM_LABEL: 'loyalty',\n    LOYALTY_PROGRAM_ACTION: 'initiate enrollment',\n    LOYALTY_PROGRAM_SUCCESS_ENROLL: 'successful enrollment',\n    ENROLL_LOYALTY: 'start enroll',\n    LOYALTY_DASHBOARD_ACTION: 'dashboard',\n    OPEN_LABEL: 'open',\n    MY_ACCOUNT_NAME: 'my account',\n    ACCOUNT_PAGE_TYPE: 'account',\n    MY_ACCOUNT_TAB: 'account tab',\n    LOYALTY_PROGRAM_DETAILS: 'program details',\n    LOYALTY_OPT_IN_ACTION: 'opt-in',\n    LOYALTY_OPT_IN_CHECKBOX_SELECT_ACTION: 'select',\n    LOYALTY_OPT_IN_CHECKBOX_DESELECT_ACTION: 'deselect',\n    ACCOUNT_SIGN_IN_CATEGORY: 'account sign in',\n    CREATE_AN_ACCOUNT_ACTION: 'create an account',\n    SUBMIT_LOYALTY_OPT_IN: 'submit|opt-in loyalty:true',\n    SUBMIT_LOYALTY_NOT_OPT_IN: 'submit|opt-in loyalty:false',\n    LOYALTY_PROGRAM_WELCOME: 'welcome',\n    LOYALTY_PROGRAM_ENROLLMENT: 'enrollment',\n    LOYALTY_PROGRAM_ENROLL_SUCCESS: 'enroll:success',\n    LOYALTY_STYLE_QUIZ_LABEL: 'loyalty style quiz',\n    LOYALTY_STYLE_QUIZ_GET_STARTED_ACTION: 'get started',\n    LOYALTY_STYLE_QUIZ_GO_TO_DASHBOARD: 'go to dashboard',\n    LOYALTY_STYLE_QUIZ_PAGE_NAME: 'style quiz|cover',\n    LOYALTY_STYLE_QUIZ_QUESTION: 'style quiz|q',\n    OPTION_SELECTED: 'select',\n    OPTION_DESELECTED: 'deselect',\n    STYLE_QUIZ_NEXT_CTA: 'next',\n    STYLE_QUIZ_PREVIOUS_CTA: 'previous',\n    STYLE_QUIZ_SUBMIT_CTA: 'submit',\n    STYLE_QUIZ_SKIP_THIS_QUESTION_CTA: 'skip',\n    STYLE_QUIZ_FINISH_LATER: 'finish later',\n    START_SHOPPING: 'start shopping',\n    STYLE_QUIZ_THANK_YOU_PAGE: 'style quiz|thank you',\n    PDP_SELECTIONS: 'pdp selections',\n    PDP_INTERACTION: 'pdp_interaction',\n    CHANGE_STORE: 'change store',\n    VIEW_PROMO: 'view_promotion',\n    SELECT_PROMO: 'select_promotion',\n    VIEW_ITEM_LIST: 'view_item_list',\n    VIEW_ITEM: 'view_item',\n    SELECT_ITEM: 'select_item',\n    SIGN_IN_OR_CREATE_ACCOUNT_ACTION: 'sign in or create account',\n    START_LABEL: 'start',\n    PDP_PAGE_NAME: 'pdp',\n    PRODUCT_PAGE_TYPE: 'product',\n    CREATE_ACCOUNT_ACTION: 'create account',\n    SUBMIT_EVENT_LABEL: 'submit or success or failure',\n    JOIN_CLUB_LILLY_EVENT: 'join club lilly',\n    INITIATE_ACTION: 'initiate',\n    LOYALTY_ENROLLMENT_CATEGORY: 'loyalty enrollment',\n    ACCOUNT_DASHBOARD_PAGE: 'account dashboard',\n    GET_DIRECTIONS: 'get directions',\n    STORE_INTERACTION: 'store_interaction',\n    ADD_TO_CART: 'add_to_cart',\n    REMOVE_FROM_CART: 'remove_from_cart',\n\n    LOYALTY_VIEW_VOUCHER_CODE_LABEL: 'view voucher code',\n    REWARDS_POINT_ACTIVITY_LABEL: 'points activity',\n    REWARDS_SHOP_TAB_LABEL: 'shop tab',\n\n    SHARED_WISHLIST_CREATE_ACCOUNT_CATEGORY: 'account sign in',\n    SHARED_WISHLIST_CREATE_ACCOUNT_ACTION: 'sign in or create account',\n    SHARED_WISHLIST_CREATE_ACCOUNT_LABEL: 'start',\n    SHARED_WISHLIST_PAGE_SUBSECTION: 'wishlist',\n    SHARED_WISHLIST_NON_LOYALTY_CATEGORY: 'loyalty enrollment',\n    SHARED_WISHLIST_NON_LOYALTY_ACTION: 'initiate',\n    SHARED_WISHLIST_NON_LOYALTY_LABEL: 'join club lilly',\n    LOYALTY_ENROLL_MODAL_INTERACTION_TYPE: 'loyalty enroll modal',\n    SIGN_IN_OR_SIGN_UP_ENROLL_MODAL: 'sign in/up to enroll modal',\n    LOYALTY_ENROLLMENT_EVENT_NAME: 'loyalty_enrollment',\n    LOYALTY_VOUCHERS_EVENT_NAME: 'loyalty_dashboard_vouchers',\n    BOLT_INTERACTION: 'bolt_interaction',\n    LOYALTY_DASHBOARD_REWARDS_EVENT_NAME: 'loyalty_dashboard_rewards',\n    BOLT_MODAL_PROCEED: 'otp:proceed',\n    BOLT_MODAL_CLOSE: 'otp:close',\n    LOYALTY_REWARDS_EVENT_NAME: 'loyalty_rewards',\n    BOLT_SIGN_OUT: 'otp:sign out',\n    NEWSLETTER_SIGNUP_COMPLETE: 'newsletter_signup_complete',\n    NEWSLETTER_SIGNUP_FAILURE: 'newsletter_signup_failure',\n    P_PRODUCT_LIST_KEY: 'product_list',\n    P_PROMO_NAME_KEY: 'promo_name',\n    P_PROMO_CREATIVE_NAME: 'promo_creative'\n};\n","// OOTB Code\n'use strict';\n\nconst scrollAnimate = require('base/components/scrollAnimate');\nconst baseFormErrors = require('base/checkout/formErrors');\n\n\n/**\n * Display error messages and highlight form fields with errors.\n * @param {string} parentSelector - the form which contains the fields\n * @param {Object} fieldErrors - the fields with errors\n */\nbaseFormErrors.loadFormErrors =  function(parentSelector, fieldErrors) { // eslint-disable-line\n    // Display error messages and highlight form fields with errors.\n    $.each(fieldErrors, function (attr) {\n        $('*[name=' + attr + ']', parentSelector)\n            .addClass('is-invalid')\n            .siblings('.invalid-feedback')\n            .html(fieldErrors[attr]);\n    });\n    // Animate to top of form that has errors\n    scrollAnimate($(parentSelector).find('.is-invalid:first'));\n};\n\n/**\n * Clear the form errors.\n * @param {string} parentSelector - the parent form selector.\n */\nbaseFormErrors.clearPreviousErrors = function(parentSelector) {\n    $(parentSelector).find('.form-control.is-invalid').removeClass('is-invalid');\n    $('.error-message').hide();\n};\n\nmodule.exports = baseFormErrors;\n","'use strict';\nconst { queryFirst, addClass, queryAll, isInViewport, removeClass, hasClass, scrollTo } = require('./domUtil');\nconst { INVALID_CLASS, HIDDEN_CLASS } = require('./constants');\nconst { errorTextTemplate } = require('./templates');\nconst formHelpers = require('./checkout/formErrors');\nconst checkoutContainerEl = document.getElementById('checkout-main');\nconst checkoutContainer = queryFirst('.data-checkout-stage');\nconst showClass = 'show';\n\n/**\n * Function to scroll to th first invalid input if it is not in view port\n * @param {HTMLElement} formEl - Form to be validated\n */\nfunction scrollToError(formEl) {\n    const headerEl = queryFirst('.main-header');\n    const headerHeight = headerEl ? headerEl.offsetHeight : 0;\n    const invalidEl = $(formEl).find('.is-invalid').first();\n    const $modalBodyEl = invalidEl.closest('.modal-body, .sheet-body-content');\n\n    if (invalidEl[0]) {\n        if ($modalBodyEl.hasClass('sheet-body-content')) {\n            invalidEl[0].scrollIntoView({ behavior: 'smooth' });\n        } else if (!isInViewport(invalidEl[0])) {\n            const scrollOffset = invalidEl.offset().top - headerHeight;\n            const newCCSection = invalidEl.closest('.credit-card-selection-new');\n            const nearestElm = $modalBodyEl.length ? $modalBodyEl : newCCSection;\n            if (nearestElm.length) {\n                nearestElm.scrollTo(scrollOffset);\n            } else {\n                scrollTo(scrollOffset);\n            }\n        }\n    }\n}\n\n/**\n * Validate whole form. Requires `this` to be set to form object\n * @param {jQuery.event} event - Event to be canceled if form is invalid.\n * @returns {boolean} - Flag to indicate if form is valid\n */\nfunction validateForm(event) {\n    var valid = true;\n    if (checkoutContainer) {\n        const billingForm = queryFirst('.billing-address-form', checkoutContainer);\n        if (this === billingForm) {\n            return valid;\n        }\n    }\n    if (this.checkValidity && !this.checkValidity()) {\n        // safari\n        valid = false;\n        if (event) {\n            event.preventDefault();\n            event.stopPropagation();\n            event.stopImmediatePropagation();\n        }\n        scrollToError(this);\n        $(this)\n            .find('input, select')\n            .each(function () {\n                if (!this.validity.valid) {\n                    $(this).trigger('invalid', this.validity);\n                }\n            });\n    }\n    return valid;\n}\n\n/**\n * Remove all validation. Should be called every time before revalidating form\n * @param {element} form - Form to be cleared\n * @returns {void}\n */\nfunction clearForm(form) {\n    $(form).find('.form-control.is-invalid').removeClass(INVALID_CLASS);\n    $(form).parents('.sheet-page').removeClass(INVALID_CLASS);\n}\n\n// LP custom changes start\n/**\n * Enable or disable button based on form validity status\n * @param {Object} button - button to be enabled or disabled\n * @param {Object} formElement - form to be validated\n */\nfunction enableOrDisableButton(button, formElement) {\n    button.disabled = formElement.checkValidity && !formElement.checkValidity();\n    clearForm(formElement);\n}\n// LP custom changes end\n\n/**\n * function returns validation message basedd on fields invalid state\n * @returns {string} Validation message\n */\nfunction getValidationMessage() {\n    let { validationMessage } = this;\n    const $this = $(this);\n    const patternMismatchValue = $this.data('pattern-mismatch');\n    const rangeErrorValue = $this.data('range-error');\n    const missingErrorValue = $this.data('missing-error');\n    const badInputErrorValue = $this.data('bad-input-error');\n    const stepMismatchErrorValue = $this.data('step-mismatch-error');\n    const typeMismatchErrorValue = $this.data('type-mismatch-error');\n    const { patternMismatch, rangeOverflow, rangeUnderflow, tooLong, tooShort, valueMissing, badInput, stepMismatch, typeMismatch } = this.validity;\n\n    addClass(this, INVALID_CLASS);\n    if (patternMismatch && patternMismatchValue) {\n        validationMessage = patternMismatchValue;\n    } else if ((rangeOverflow || rangeUnderflow) && rangeErrorValue) {\n        validationMessage = rangeErrorValue;\n    } else if ((tooLong || tooShort) && rangeErrorValue) {\n        validationMessage = rangeErrorValue;\n    } else if (valueMissing && missingErrorValue) {\n        validationMessage = missingErrorValue;\n    } else if (badInput && badInputErrorValue) {\n        validationMessage = badInputErrorValue;\n    } else if (stepMismatch && stepMismatchErrorValue) {\n        validationMessage = stepMismatchErrorValue;\n    } else if (typeMismatch && typeMismatchErrorValue) {\n        validationMessage = typeMismatchErrorValue;\n    }\n\n    return validationMessage;\n}\n\n/**\n * Displays invalid forms error messages\n * @param {jQuery.event} e - Form invalid event object\n */\nfunction onFormInvalidHandler(e) {\n    e.preventDefault();\n    this.setCustomValidity('');\n    if (!this.validity.valid) {\n        $('.btn-show-details').trigger('click');\n        $(this).parents('.form-group, .input-group').find('.invalid-feedback').text(getValidationMessage.apply(this));\n        if (!checkoutContainerEl) {\n            scrollToError(this.form);\n        }\n    }\n}\n\n/**\n * Form submission event handler\n * @param {jQuery.event} e - Form submit event object\n * @returns {boolean} true if the form is valid\n */\nfunction onFormSubmit(e) {\n    return validateForm.call(this, e);\n}\n\n/**\n * Function to update payment fields validation\n * @param {boolean} isRequired - describs payment fields required or not\n */\nfunction updatePaymentValidation(isRequired) {\n    queryFirst('input[name=\"dwfrm_billing_creditCardFields_cardNumber\"]', checkoutContainerEl).required = isRequired;\n    queryFirst('input[name=\"dwfrm_billing_creditCardFields_cardType\"]', checkoutContainerEl).required = isRequired;\n    queryFirst('input[name=\"dwfrm_billing_creditCardFields_securityCode\"]', checkoutContainerEl).required = isRequired;\n    document.getElementById('expirationMonth').required = isRequired;\n    document.getElementById('expirationYear').required = isRequired;\n}\n\n/**\n * Function to check if the password and confirm password matches in form\n * @param {string} passwordFieldId - ID of the password form field\n * @param {boolean} isPasswordMatched - describes if password matched\n * @param {boolean} isValidForm - describes if the form is valid\n * @return {Object} - updated form validity and password match\n */\nfunction checkPasswordMatch(passwordFieldId, isPasswordMatched, isValidForm, $this) {\n    const newPasswordValue = queryFirst(passwordFieldId).value;\n    const confirmPasswordValue = $this.value;\n    let isPasswordMatches = isPasswordMatched;\n    let isValidForms = isValidForm;\n    if (confirmPasswordValue && newPasswordValue && confirmPasswordValue !== newPasswordValue) {\n        isPasswordMatches = false;\n        isValidForms = false;\n    }\n    return { isPasswordMatches, isValidForms };\n}\n\n/**\n * Runs validation on all INPUT elements within the specified containing element.\n * @param {element} container - The containing element to validate all inputs within\n */\nfunction validateInputs(container) {\n    if (!container) return;\n\n    container.querySelectorAll('input').forEach(element => element.checkValidity());\n}\n\nmodule.exports = {\n    invalid: function () {\n        $('form input, form textarea, form select').on('invalid', onFormInvalidHandler);\n    },\n\n    ajaxFormInvalid: function (formElSelector) {\n        if (!formElSelector) return;\n        $(`${formElSelector} input, ${formElSelector} textarea, ${formElSelector} select`).on('invalid', onFormInvalidHandler);\n    },\n\n    submit: function () {\n        $('form').on('submit', onFormSubmit);\n    },\n\n    ajaxFormSubmit: function (formElSelector) {\n        if (!formElSelector) return;\n        $(`${formElSelector}`).on('submit', onFormSubmit);\n    },\n\n    sheetFormSubmit: () => {\n        $('.sheet-page button[type=\"submit\"].enable-button-onvalidate, .sheet-page .enable-form-validate input[type=\"submit\"]').on('click', e => {\n            const { target } = e;\n            const sheetContainer = target?.closest('.sheet-page');\n            const sheetForm = queryFirst('form', sheetContainer);\n            if (sheetForm) {\n                $(sheetForm)\n                    .find('input, textarea, select')\n                    .one('invalid', () => {\n                        addClass(sheetContainer, INVALID_CLASS);\n                    });\n            }\n        });\n    },\n\n    validateCheckoutForm: function () {\n        // LP custom changes start\n        if (checkoutContainer) {\n            const guestCustomerForm = queryFirst('.guest-form', checkoutContainer);\n            const registeredCustomerForm = queryFirst('.registered-form', checkoutContainer);\n            const shippingForm = queryFirst('.shipping-form', checkoutContainer);\n            const billingForm = queryFirst('.billing-address-form', checkoutContainer);\n            const submitShippingBtn = queryFirst('.submit-shipping', checkoutContainer);\n            const billingAddress = queryFirst('.billing-address', billingForm);\n            const reauthForm = queryFirst('.reauth-payment-form', checkoutContainer);\n\n            if (submitShippingBtn !== null) {\n                submitShippingBtn.disabled = false;\n            }\n            // LP custom changes end\n\n            $('.guest-form, .registered-form, .shipping-form, .billing-address-form')\n                .find('input, textarea')\n                .on('blur', function () {\n                    if (this.validity.valid) {\n                        removeClass(this, INVALID_CLASS);\n                    } else {\n                        $(this).parents('.form-group, .input-group').find('.invalid-feedback').text(getValidationMessage.apply(this));\n                    }\n                });\n            $('.shipping-form, .billing-address-form')\n                .find('select, input[type=\"radio\"], input[type=\"checkbox\"]')\n                .on('change', function () {\n                    if (this.validity.valid) {\n                        removeClass(this, INVALID_CLASS);\n                    } else {\n                        $(this).parents('.form-group').find('.invalid-feedback').text(getValidationMessage.apply(this));\n                    }\n                });\n            if (!reauthForm) {\n                const submitCustomerBtn = queryFirst('.submit-customer', checkoutContainer);\n                const submitCustomerLoginBtn = queryFirst('.submit-customer-login', checkoutContainer);\n                if (submitCustomerBtn) {\n                    submitCustomerBtn.addEventListener('click', function (event) {\n                        if (guestCustomerForm.checkValidity && !guestCustomerForm.checkValidity()) {\n                            event.stopPropagation();\n                            scrollToError(guestCustomerForm);\n                        }\n                    });\n                }\n                if (submitCustomerLoginBtn) {\n                    submitCustomerLoginBtn.addEventListener('click', function (event) {\n                        if (registeredCustomerForm.checkValidity && !registeredCustomerForm.checkValidity()) {\n                            event.stopPropagation();\n                            scrollToError(registeredCustomerForm);\n                        }\n                    });\n                }\n\n                shippingForm.addEventListener('submit', function (event) {\n                    event.preventDefault();\n                    setTimeout(function () {\n                        submitShippingBtn.click();\n                    }, 0);\n                });\n\n                submitShippingBtn.addEventListener('click', function (event) {\n                    const shippingForm = queryFirst('.shipping-form');\n                    const errorElement = queryFirst('.error-message');\n                    const { shippingError } = this.dataset;\n                    const { addressMode } = shippingForm.dataset;\n                    const { customerType } = checkoutContainer.dataset;\n                    const giftCheckbox = queryFirst('.custom-control-input.gift');\n                    const giftMessageContainer = queryFirst('.gift-message', shippingForm);\n                    const giftMessageEl = document.getElementById('giftMessage');\n\n                    removeClass(errorElement, showClass);\n\n                    if (customerType === 'registered') {\n                        if (addressMode === 'new' || addressMode === 'details') {\n                            if (shippingForm.checkValidity && !shippingForm.checkValidity()) {\n                                event.stopPropagation();\n                                errorElement.innerHTML = errorTextTemplate(shippingError);\n                                addClass(errorElement, showClass);\n                                scrollTo(0);\n                            }\n                        } else if (giftMessageEl && !giftMessageEl.validity.valid) {\n                            addClass(giftMessageEl, INVALID_CLASS);\n                            event.stopPropagation();\n                        } else {\n                            removeClass(giftMessageEl, INVALID_CLASS);\n                        }\n                    } else if (shippingForm.checkValidity && !shippingForm.checkValidity()) {\n                        event.stopPropagation();\n                        errorElement.innerHTML = errorTextTemplate(shippingError);\n                        addClass(errorElement, showClass);\n                        scrollTo(0);\n                    }\n                    if (giftCheckbox?.checked && !giftMessageEl?.required) {\n                        giftMessageEl.required = true;\n                        giftMessageEl.checkValidity();\n                        removeClass(giftMessageContainer, HIDDEN_CLASS);\n                        event.stopPropagation();\n                    }\n                });\n\n                const submitPaymentBtn = queryFirst('.submit-payment', checkoutContainer);\n\n                submitPaymentBtn.addEventListener('click', function (event) {\n                    event.preventDefault();\n                    const { customerType } = checkoutContainer.dataset;\n                    const isPaymentDisabled = hasClass(queryFirst('.payment-information'), 'disabled-section');\n                    const isCreditTabActive = hasClass(queryFirst('.credit-card-tab', checkoutContainer), 'active');\n                    const isBoltTabActive = hasClass(queryFirst('.bolt-tab', checkoutContainer), 'active');\n                    const isNewPayment = $('.payment-information').data('is-new-payment');\n                    const isRequired = !isPaymentDisabled && (isCreditTabActive || isBoltTabActive);\n                    const checkIsBoltEnabledEl = queryFirst('.check-is-bolt-enabled');\n                    const isBoltEnabled = (checkIsBoltEnabledEl && checkIsBoltEnabledEl.value === 'true') || false;\n                    const savedPaymentCvv = queryFirst('.saved-payment-security-code');\n\n                    updatePaymentValidation(isRequired);\n                    let isCardExpired = false;\n                    if (isBoltEnabled && isBoltTabActive) {\n                        updatePaymentValidation(isRequired && isNewPayment);\n                        if (!isPaymentDisabled && isNewPayment) {\n                            const creditCardExpirationMonthEl = queryFirst('#expirationMonth');\n                            const creditCardExpirationYearEl = queryFirst('#expirationYear');\n                            const { cardExpiredError } = creditCardExpirationMonthEl.dataset;\n                            const boltCardExpireMonth = creditCardExpirationMonthEl.value;\n                            const boltCardExpireYear = creditCardExpirationYearEl.value;\n                            const today = new Date();\n                            const expDate = new Date();\n                            expDate.setFullYear(boltCardExpireYear, boltCardExpireMonth, 0);\n                            if (boltCardExpireYear && boltCardExpireMonth && expDate < today) {\n                                const boltExpiredCardError = { dwfrm_billing_creditCardFields_expirationMonth: cardExpiredError, dwfrm_billing_creditCardFields_expirationYear: cardExpiredError };\n                                formHelpers.loadFormErrors('.payment-form', boltExpiredCardError);\n                                isCardExpired = true;\n                            }\n                        }\n\n                        // In case of LP reg user having saved cards and payment method is Bolt Pay\n                        // then CVV should not be a required field for LP saved cards\n                        if (savedPaymentCvv) {\n                            savedPaymentCvv.required = false;\n                        }\n                    } else if (customerType === 'registered') {\n                        if (savedPaymentCvv) {\n                            savedPaymentCvv.required = isRequired && !isNewPayment;\n                        }\n                        updatePaymentValidation(isRequired && isNewPayment);\n                    }\n                    if ((billingForm.checkValidity && !billingForm.checkValidity()) || isCardExpired) {\n                        scrollToError(billingForm);\n                        event.stopPropagation();\n                    }\n                });\n\n                billingForm.addEventListener('submit', function (event) {\n                    event.preventDefault();\n                    setTimeout(function () {\n                        // if the payment button is hidden, it's because CC is not active\n                        // and therefore we shouldn't click it\n                        if (!hasClass(submitPaymentBtn, HIDDEN_CLASS)) {\n                            submitPaymentBtn.click();\n                        }\n                    }, 0);\n                });\n\n                queryFirst('#billingAddressSelector').addEventListener('change', () => {\n                    if (checkoutContainer.dataset.checkoutStage === 'payment') {\n                        clearForm(billingAddress.closest('form'));\n                        validateInputs(billingAddress);\n                    }\n                });\n\n                const addressLinks = queryAll('.billing-address-block .address-links a');\n\n                addressLinks.forEach(link => {\n                    link.addEventListener('click', () => {\n                        clearForm(billingAddress.closest('form'));\n                    });\n                });\n\n                if (checkoutContainer.dataset.checkoutStage === 'payment') {\n                    $(() => {\n                        validateInputs(billingAddress);\n                    });\n                }\n            } else {\n                const submitReauthBtn = queryFirst('.submit-payment-button', checkoutContainer);\n                submitReauthBtn.addEventListener('click', function (event) {\n                    event.preventDefault();\n                    $.spinner().start();\n                    submitReauthBtn.disabled = true;\n                    updatePaymentValidation(true);\n                    if (billingForm.checkValidity && !billingForm.checkValidity()) {\n                        scrollToError(billingForm);\n                        submitReauthBtn.disabled = false;\n                        $.spinner().stop();\n                        event.stopPropagation();\n                    } else {\n                        billingForm.submit();\n                    }\n                });\n            }\n        }\n    },\n\n    enableFormSubmitButton: function () {\n        const formElements = queryAll('.enable-form-validate');\n        const selectorContainer = $('.valid-password-info li');\n        const notMatchedClass = 'pwd-criteria-not-matched';\n        const matchedClass = 'pwd-criteria-matched';\n        formElements.forEach(form => {\n            const button = queryFirst('.enable-button-onvalidate', form);\n            if (form && button) {\n                const $form = $(form);\n                const callback = function () {\n                    const isConfirmPassword = this.id === 'newPasswordConfirm';\n                    const isNewPassword = this.id === 'newPassword';\n                    const isConfirmRegistrationPassword = this.id === 'registration-form-password-confirm';\n                    const isRegistrationPassword = this.id === 'registration-form-password';\n                    const isPromoCodeField = this.id === 'couponCode';\n                    let isPasswordMatched = true;\n                    let isValidForm = true;\n\n                    if (isConfirmPassword || isConfirmRegistrationPassword) {\n                        const passwordFieldId = isConfirmPassword ? '#newPassword' : '#registration-form-password';\n                        const confirmPasswordMatches = checkPasswordMatch(passwordFieldId, isPasswordMatched, isValidForm, this);\n                        isPasswordMatched = confirmPasswordMatches.isPasswordMatches;\n                        isValidForm = confirmPasswordMatches.isValidForms;\n                    }\n\n                    if (isPromoCodeField) {\n                        const isCurrentlyInvalid = hasClass(this, 'is-invalid');\n                        const hasExistingError = queryFirst('.coupon-error-message', this.closest('.form-group'))?.textContent !== '';\n                        const fieldHasValue = this.value !== '';\n                        isValidForm = fieldHasValue || !(isCurrentlyInvalid && hasExistingError);\n                    }\n\n                    if (this.validity.valid && isValidForm) {\n                        removeClass(this, INVALID_CLASS);\n                        if (isNewPassword || isRegistrationPassword) {\n                            selectorContainer.removeClass(notMatchedClass);\n                            selectorContainer.addClass(matchedClass);\n                        }\n                        // No invalid fields left. Remove the error messaging from the sheet button\n                        const sheetPage = this.closest('.sheet-page');\n                        if (sheetPage && !queryFirst(`.${INVALID_CLASS}`, form)) {\n                            removeClass(sheetPage, INVALID_CLASS);\n                        }\n                    } else {\n                        const $this = $(this);\n                        const thisValue = $this.val() || '';\n                        if ($form.hasClass('change-password-form') && (isNewPassword || isRegistrationPassword)) {\n                            selectorContainer.each(function (i) {\n                                const item = selectorContainer[i];\n                                const regexPattern = item.dataset.regexpattern;\n                                const regexValue = new RegExp(regexPattern);\n                                if (regexValue.test(thisValue)) {\n                                    removeClass(item, notMatchedClass);\n                                    addClass(item, matchedClass);\n                                } else {\n                                    removeClass(item, matchedClass);\n                                    addClass(item, notMatchedClass);\n                                }\n                            });\n                            if (thisValue) {\n                                removeClass(this, 'is-invalid');\n                                $this.parents('.form-group').find('.invalid-feedback').text('');\n                            } else {\n                                $this.parents('.form-group').find('.invalid-feedback').text(getValidationMessage.apply(this));\n                            }\n                        } else if (!isPasswordMatched) {\n                            $this.parents('.form-group').find('.invalid-feedback').text(this.dataset.mismatchError);\n                            addClass(this, INVALID_CLASS);\n                        } else if (isPromoCodeField) {\n                            // do nothing -- error state is handled in cart.js\n                        } else {\n                            $this.parents('.form-group').find('.invalid-feedback').text(getValidationMessage.apply(this));\n                        }\n                    }\n                };\n                $form.find('input, textarea').on('blur', callback);\n                $form.find('#newPassword, #registration-form-password').on('keyup', callback);\n                $form.find('select, input[type=\"radio\"], input[type=\"checkbox\"]').on('change', callback);\n                $form.on('change', '.g-recaptcha-response', callback);\n            }\n        });\n    },\n    buttonClick: function () {\n        $('form button[type=\"submit\"], form input[type=\"submit\"]').on('click', function () {\n            // clear all errors when trying to submit the form\n            if (!$('.reauth-payment-form').length) {\n                clearForm(this.closest('form'));\n            }\n        });\n    },\n\n    functions: {\n        validateForm: function (form, event) {\n            validateForm.call($(form), event || null);\n        },\n        validateInputs,\n        clearForm,\n        enableOrDisableButton\n    }\n};\n","'use strict';\n\nconst { queryFirst, queryAll, addClass, removeClass, hasClass, debounce } = require('../domUtil');\n\nconst SCROLLABLE_CONTENT_SELECTOR = queryAll('.scrollable-content');\nconst LEFT_ARROW_SELECTOR = '.scroll-left-arrow';\nconst RIGHT_ARROW_SELECTOR = '.scroll-right-arrow';\n\nfunction initSpecificCarousel(scrollableContainerEl) {\n    const parentEl = scrollableContainerEl.parentElement;\n\n    // Attaching events on Left arrow click\n    const leftArrowEl = queryFirst(LEFT_ARROW_SELECTOR, parentEl);\n    if (leftArrowEl) {\n        leftArrowEl.addEventListener('click', () => {\n            scrollableContainerEl.scrollTo({\n                left: Math.max(0, scrollableContainerEl.scrollLeft - scrollableContainerEl.offsetWidth),\n                behavior: 'smooth'\n            });\n        });\n    }\n\n    // Attaching events on Right arrow click\n    const rightArrowEl = queryFirst(RIGHT_ARROW_SELECTOR, parentEl);\n    if (rightArrowEl) {\n        rightArrowEl.addEventListener('click', () => {\n            scrollableContainerEl.scrollTo({\n                left: Math.min(scrollableContainerEl.scrollWidth, scrollableContainerEl.scrollLeft + scrollableContainerEl.offsetWidth),\n                behavior: 'smooth'\n            });\n        });\n    }\n\n    // Show/hide arrows\n    if (scrollableContainerEl.scrollWidth <= scrollableContainerEl.offsetWidth) {\n        addClass([leftArrowEl, rightArrowEl], 'hide');\n    } else {\n        removeClass([leftArrowEl, rightArrowEl], 'hide');\n    }\n}\n\nmodule.exports = {\n    initCarousel: function() {\n        SCROLLABLE_CONTENT_SELECTOR.forEach(scrollableContainerEl => {\n            initSpecificCarousel(scrollableContainerEl);\n        });\n    },\n    initSpecificCarousel: initSpecificCarousel\n};\n","/* global _etmc */\n'use strict';\n\nconst hasEtmc = typeof _etmc !== 'undefined';\n\n/**\n * Send trackCart event to SFMC\n * @param {Object} data data to send to SFMC\n */\nexport function trackCart(data) {\n    if (hasEtmc && 'trackCart' in _etmc) {\n        _etmc.trackCart(data);\n    }\n}\n\n/**\n * Send trackPageView event to SFMC\n * @param {Object} data data to send to SFMC\n */\nexport function trackPageView(data) {\n    if (hasEtmc && 'trackPageView' in _etmc) {\n        _etmc.trackPageView(data);\n    }\n}\n\n/**\n * Send trackWishlist event to SFMC\n * @param {Object} data data to send to SFMC\n */\nexport function trackWishlist(data) {\n    if (hasEtmc && 'trackWishlist' in _etmc) {\n        _etmc.trackWishlist(data);\n    }\n}\n\n/**\n * Send setUserInfo event to SFMC\n * @param {Object} data data to send to SFMC\n */\nexport function setUserInfo(data) {\n    if (hasEtmc && 'setUserInfo' in _etmc) {\n        _etmc.setUserInfo(data);\n    }\n}\n","// Classnames\nconst DISABLED_CLASS = 'disabled-section';\nconst SPU_HIDDEN_CLASS = 'disabled-section';\nconst NOT_AVAILABLE_CLASS = 'not-available';\nconst ISPU_STORE_NAME_CLASS = 'store-name';\nconst ISPU_SERVICE_ERROR_ATTR_NAME = 'data-ispu-service-down';\nconst ISPU_SERVICE_BLOCKED = 'service-blocked';\nconst PRE_ORDER_CLASS = 'pre-order';\nconst SHIP_TO_LOW_INVENTORY_CLASS = 'ship-to-low-inventory';\nconst CHECKOUT_HIDDEN_CLASS = 'checkout-hidden';\n\n// Container selectors\nconst PRODUCT_DETAIL_CONTAINER_SELECTOR = '.product-detail';\nconst PDP_CONTAINER_SELECTOR = '.pdp-container';\nconst SET_CONTAINER_SELECTOR = '.product-set-item';\nconst SHIPPING_PREFERENCES_CONTAINER_SELECTOR = '.shipping-preferences';\nconst STORE_DETAIL_CONTAINER_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .store-detail-container';\n\n// Radio buttons classes\nconst PREFERENCE_SELECTOR = 'input[name=\"shipping-preference\"]:checked';\nconst ISPU_PREFERENCE_CONTAINER_SELECTOR = '.ispu-preference-container';\nconst ISPU_PREFERENCE_CONTENT_SELECTOR = ISPU_PREFERENCE_CONTAINER_SELECTOR + ' .content';\nconst SHIPPING_PREFERENCE_RADIO_BUTTON_SELECTOR = 'input[name=shipping-preference]';\nconst ISPU_RADIO_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .preference-ispu';\nconst SHIP_TO_ADDRESS_RADIO_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .preference-ship-to-address';\nconst SHIP_TO_ADDRESS_CONTENT_SELECTOR = '.ship-to-address-preference-container .content';\nconst RADIO_BUTTON_LABEL_SELECTOR = '.form-check-label';\n\n// Radio button values\nconst SHIPPING_PREFERENCE_KEY = 'SHIPPING_PREFERENCE';\nconst ISPU_RADIO_VALUE = 'ISPU';\nconst SHIP_TO_RADIO_VALUE = 'SHIP_TO_ADDRESS';\nconst BOLT_PAY = 'BOLT_PAY';\n\n// Change Store link\nconst CHANGE_STORE_LINK_SELECTOR = '.change-store-link';\nconst AVAILABILITY_CHANGE_STORE_LINK_SELECTOR = '.availability-change-store-link';\n\n// Store name and store address section\nconst STORE_DETAIL_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .store-detail';\n\n// Inventory and service messages\nconst STORE_SERVICE_INFO_MESSAGE_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .service-info-message';\nconst STORE_AVAILABILITY_MESSAGE_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .inventory-message';\n\nconst ISPU_INFO_MESSAGE_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .ispu-info-message';\nconst SHIP_TO_INFO_MESSAGE_SELECTOR = SHIPPING_PREFERENCES_CONTAINER_SELECTOR + ' .ship-to-info-message';\n\nconst ISPU_SELECT_STYLE_MESSAGE_SELECTOR = ISPU_PREFERENCE_CONTAINER_SELECTOR + ' .select-size-info-msg';\n\n//Availability Message Element\nconst AVAILABILITY_MSG_SELECTOR = '.product-availability .availability-message-text';\n//Inventory Message Element of ISPU\nconst INVENTORY_MSG_SELECTOR = '.inventory-message .availability-message-text';\n//Low Stock Message Element of ISPU\nconst LOW_STOCK_ISPU_SELECTOR = '.pickup-in-store-content .ispu-low-stock-msg';\n//Regular Expression for Valid WishList Name\nconst WISHLIST_NAME_REGEX = /^[ A-Za-z0-9\\]\\.()[{},;:\"'?!\\u2026\\u2018\\u2019\\u201B\\u201C\\u201D\\u2014\\u2013-]*$/;\n//Regular Expression for Valid Postal Code for Loyalty\nconst LOYALTY_POSTAL_CODE_REGEX = /^\\d{5}$/;\n\nconst TRACKER_FUNCTIONAL_COOKIE = 'C0003';\nconst MY_ACCOUNT = 'myAccount';\nconst ORDER_CONFIRMATION = 'orderConfirmation';\n\nmodule.exports = {\n    DISABLED_CLASS,\n    SPU_HIDDEN_CLASS,\n    NOT_AVAILABLE_CLASS,\n    ISPU_STORE_NAME_CLASS,\n    PRE_ORDER_CLASS,\n    SHIP_TO_LOW_INVENTORY_CLASS,\n    ISPU_SERVICE_ERROR_ATTR_NAME,\n    ISPU_SERVICE_BLOCKED,\n    CHECKOUT_HIDDEN_CLASS,\n\n    PRODUCT_DETAIL_CONTAINER_SELECTOR,\n    SET_CONTAINER_SELECTOR,\n    PDP_CONTAINER_SELECTOR,\n    SHIPPING_PREFERENCES_CONTAINER_SELECTOR,\n    STORE_DETAIL_CONTAINER_SELECTOR,\n\n    PREFERENCE_SELECTOR,\n    ISPU_PREFERENCE_CONTAINER_SELECTOR,\n    ISPU_PREFERENCE_CONTENT_SELECTOR,\n    SHIP_TO_ADDRESS_CONTENT_SELECTOR,\n    SHIPPING_PREFERENCE_RADIO_BUTTON_SELECTOR,\n    ISPU_RADIO_SELECTOR,\n    SHIP_TO_ADDRESS_RADIO_SELECTOR,\n    RADIO_BUTTON_LABEL_SELECTOR,\n    SHIPPING_PREFERENCE_KEY,\n    ISPU_RADIO_VALUE,\n    SHIP_TO_RADIO_VALUE,\n    BOLT_PAY,\n\n    CHANGE_STORE_LINK_SELECTOR,\n    AVAILABILITY_CHANGE_STORE_LINK_SELECTOR,\n    STORE_DETAIL_SELECTOR,\n    STORE_SERVICE_INFO_MESSAGE_SELECTOR,\n    STORE_AVAILABILITY_MESSAGE_SELECTOR,\n    ISPU_INFO_MESSAGE_SELECTOR,\n    SHIP_TO_INFO_MESSAGE_SELECTOR,\n    ISPU_SELECT_STYLE_MESSAGE_SELECTOR,\n    AVAILABILITY_MSG_SELECTOR,\n    INVENTORY_MSG_SELECTOR,\n    LOW_STOCK_ISPU_SELECTOR,\n    WISHLIST_NAME_REGEX,\n    TRACKER_FUNCTIONAL_COOKIE,\n    LOYALTY_POSTAL_CODE_REGEX,\n    MY_ACCOUNT,\n    ORDER_CONFIRMATION\n};\n","'use strict';\n\nconst { queryFirst, addClass, removeClass, hasClass } = require('../../domUtil');\nconst { getItemFromLocalStorage, getNestedValue } = require('../../util');\nconst {\n    PREFERENCE_SELECTOR, ISPU_STORE_NAME_CLASS, SHIPPING_PREFERENCES_CONTAINER_SELECTOR,\n    ISPU_RADIO_SELECTOR, SHIP_TO_ADDRESS_RADIO_SELECTOR, CHANGE_STORE_LINK_SELECTOR,\n    ISPU_PREFERENCE_CONTENT_SELECTOR, SHIP_TO_ADDRESS_CONTENT_SELECTOR, DISABLED_CLASS,\n    SHIPPING_PREFERENCE_KEY, SHIP_TO_RADIO_VALUE, RADIO_BUTTON_LABEL_SELECTOR, SHIP_TO_LOW_INVENTORY_CLASS,\n    STORE_AVAILABILITY_MESSAGE_SELECTOR, INVENTORY_MSG_SELECTOR, ISPU_RADIO_VALUE, AVAILABILITY_MSG_SELECTOR, LOW_STOCK_ISPU_SELECTOR\n} = require('./constants');\nconst { HIDDEN_CLASS } = require('../../constants')\n\n/**\n * Function to get shipping preferences container within product container\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getChangeStoreLinkEl(productContainerEl) {\n    return queryFirst(CHANGE_STORE_LINK_SELECTOR, productContainerEl);\n}\n\n/**\n * Function to get shipping preferences container within product container\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getShippingPreferencesContainerEl(productContainerEl) {\n    return queryFirst(SHIPPING_PREFERENCES_CONTAINER_SELECTOR, productContainerEl);\n}\n\n/**\n * Function to get ISPU radio button within product container\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getISPUradioButtonEl(productContainerEl) {\n    return queryFirst(ISPU_RADIO_SELECTOR, productContainerEl);\n}\n\n/**\n * Function to get Ship To section's content within product container\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getShipToAddressContentEl(productContainerEl) {\n    return queryFirst(SHIP_TO_ADDRESS_CONTENT_SELECTOR, productContainerEl);\n}\n\n/**\n * Function to get ship to address radio button within product container\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getShipToAddressradioButtonEl(productContainerEl) {\n    return queryFirst(SHIP_TO_ADDRESS_RADIO_SELECTOR, productContainerEl);\n}\n\n/**\n * Function to get ISPU content radio button within product container\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getISPUPreferenceContentEl(productContainerEl) {\n    return queryFirst(ISPU_PREFERENCE_CONTENT_SELECTOR, productContainerEl);\n}\n\n/**\n * Function to get selected radio button preference within product container\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getSelectedPreferenceEl(productContainerEl) {\n    return queryFirst(PREFERENCE_SELECTOR, productContainerEl);\n}\n\n/**\n * Function to get add a ISPU required class to make ISPU - ADD TO CART work\n * @param {HTMLElement} productContainerEl - Product container Element\n * @param {HTMLElement?} storeNameEl - optional store name element\n */\nfunction addStoreNameClass(productContainerEl, storeNameEl) {\n    storeNameEl = storeNameEl || queryFirst('.store-detail .name', productContainerEl);\n    if (storeNameEl) {\n        addClass(storeNameEl, ISPU_STORE_NAME_CLASS);\n    }\n}\n\n/**\n * Function to get remove a ISPU required class to make SHIP TO - ADD TO CART work\n * @param {HTMLElement} productContainerEl - Product container Element\n * @param {HTMLElement?} storeNameEl - optional store name element\n */\nfunction removeStoreNameClass(productContainerEl, storeNameEl) {\n    storeNameEl = storeNameEl || queryFirst('.store-detail .name', productContainerEl);\n    if (storeNameEl) {\n        removeClass(storeNameEl, ISPU_STORE_NAME_CLASS);\n    }\n}\n\n/**\n * Function to check if a size is selected or not\n * @param {HTMLElement} productContainerEl - Product container Element\n * @returns {Object} returns the target as a DOM node\n */\nfunction getSelectedSizeEl(productContainerEl) {\n    return queryFirst('.size-btn.selected', productContainerEl);\n}\n\n/**\n * Function to update Visibility Of Low Inventory Msg for ISPU and Ship To an address\n * @param {HTMLElement} productContainerEl - Product container Element\n * @param {string} variationId - Selected Variant ID\n */\nfunction updateVisibilityOfLowInventoryMsg(productContainerEl, variationId) {\n    const ispuLowStockEl = queryFirst(LOW_STOCK_ISPU_SELECTOR);\n    const availabilityElement = queryFirst(AVAILABILITY_MSG_SELECTOR);\n    const ispuLowInventory = queryFirst(STORE_AVAILABILITY_MESSAGE_SELECTOR);\n    const ispuLowInventoryMsg = queryFirst(INVENTORY_MSG_SELECTOR);\n    const ispuRadioButtonEl = getISPUradioButtonEl(productContainerEl);\n    // If ISPU enabled, setting the message only after ispu inventory is created\n    // one of the radio button is selected\n    if (ispuRadioButtonEl && window.ispuProductInventory) {\n        if (ispuRadioButtonEl.checked || (variationId && window.ispuProductInventory?.variants[variationId]?.lowStockAvailabilityMessage)) {\n            addClass(availabilityElement, HIDDEN_CLASS);\n            if (ispuLowInventoryMsg) {\n                removeClass([ispuLowInventory, ispuLowStockEl], HIDDEN_CLASS);\n            } else {\n                addClass(ispuLowStockEl, HIDDEN_CLASS);\n            }\n        }\n        else {\n            addClass([ispuLowInventory, ispuLowStockEl], HIDDEN_CLASS);\n            removeClass(availabilityElement, HIDDEN_CLASS);\n        }\n    }\n}\n/**\n * Function to select ISPU radio button\n * @param {HTMLElement} productContainerEl - Product container Element\n * @param {HTMLElement} ispuRadioButtonEl - ISPU radio button element\n * @param {boolean} enableISPUSection - flag to remove fade out style to ispu section's content\n */\nfunction selectISPURadioButton(productContainerEl, ispuRadioButtonEl, enableISPUSection) {\n    ispuRadioButtonEl = ispuRadioButtonEl || getISPUradioButtonEl(productContainerEl);\n    if (!ispuRadioButtonEl) return;\n\n    ispuRadioButtonEl.disabled = false;\n    removeClass(queryFirst(RADIO_BUTTON_LABEL_SELECTOR, ispuRadioButtonEl.parentElement), DISABLED_CLASS);\n\n    ispuRadioButtonEl.checked = true;\n\n    addStoreNameClass(productContainerEl);\n\n    if (enableISPUSection) {\n        const ispuContentEl = getISPUPreferenceContentEl(productContainerEl);\n        removeClass(ispuContentEl, DISABLED_CLASS);\n    }\n}\n\n/**\n * Function to disable & deselect Ship To radio button\n * @param {HTMLElement} productContainerEl - Product container Element\n * @param {HTMLElement} ispuRadioButtonEl - ISPU radio button element\n * @param {boolean} disableISPUSection - flag to add fade out style ispu section's content\n */\nfunction disableISPURadioButton(productContainerEl, ispuRadioButtonEl, disableISPUSection) {\n    ispuRadioButtonEl = ispuRadioButtonEl || getISPUradioButtonEl(productContainerEl);\n    if (!ispuRadioButtonEl) return;\n\n    ispuRadioButtonEl.disabled = true;\n    addClass(queryFirst(RADIO_BUTTON_LABEL_SELECTOR, ispuRadioButtonEl.parentElement), DISABLED_CLASS);\n\n    ispuRadioButtonEl.checked = false;\n\n    removeStoreNameClass(productContainerEl);\n\n    if (disableISPUSection) {\n        const ispuContentEl = getISPUPreferenceContentEl(productContainerEl);\n        addClass(ispuContentEl, DISABLED_CLASS);\n    }\n}\n\n/**\n * Function to select Ship To radio button\n * @param {HTMLElement} productContainerEl - Product container Element\n * @param {HTMLElement} shipToRadioButtonEl - Ship to address radio button element\n * @param {boolean} enableShipToContent - flag to add fade out style shipTo section's content\n */\nfunction selectShipToRadioButton(productContainerEl, shipToRadioButtonEl, enableShipToContent) {\n    shipToRadioButtonEl = shipToRadioButtonEl || getShipToAddressradioButtonEl(productContainerEl);\n    if (!shipToRadioButtonEl) return;\n\n    shipToRadioButtonEl.disabled = false;\n    removeClass(queryFirst(RADIO_BUTTON_LABEL_SELECTOR, shipToRadioButtonEl.parentElement), DISABLED_CLASS);\n\n    shipToRadioButtonEl.checked = true;\n\n    removeStoreNameClass(productContainerEl);\n\n    if (enableShipToContent) {\n        const shipToContentEl = getShipToAddressContentEl(productContainerEl);\n        removeClass(shipToContentEl, DISABLED_CLASS);\n    }\n}\n\n/**\n * Function to disable & deselect Ship To radio button\n * @param {HTMLElement} productContainerEl - Product container Element\n * @param {HTMLElement} shipToRadioButtonEl - Ship to address radio button element\n * @param {boolean} disableShipToContent - flag to remove fade out style from shipTo section's content\n */\nfunction disableShipToRadioButton(productContainerEl, shipToRadioButtonEl, disableShipToContent) {\n    shipToRadioButtonEl = shipToRadioButtonEl || getISPUradioButtonEl(productContainerEl);\n    if (!shipToRadioButtonEl) return;\n\n    shipToRadioButtonEl.disabled = true;\n    addClass(queryFirst(RADIO_BUTTON_LABEL_SELECTOR, shipToRadioButtonEl.parentElement), DISABLED_CLASS);\n\n    shipToRadioButtonEl.checked = false;\n\n    if (disableShipToContent) {\n        const shipToContentEl = getShipToAddressContentEl(productContainerEl);\n        addClass(shipToContentEl, DISABLED_CLASS);\n    }\n}\n\n/**\n * Function to get preferred shipping preference\n * @returns {string} - Preferred shipping preference value\n */\nfunction getPreferedShippingPreference() {\n    let shippingPreferenceValue = getItemFromLocalStorage(SHIPPING_PREFERENCE_KEY);\n    if (!shippingPreferenceValue) {\n        const shippingPreferencesConfig = getNestedValue(window, 'lillyUtils.shippingPreferencesConfig') || {};\n        const { activeStoreFilter } = shippingPreferencesConfig;\n        shippingPreferenceValue = activeStoreFilter ? ISPU_RADIO_VALUE : SHIP_TO_RADIO_VALUE;\n    }\n    return shippingPreferenceValue;\n}\n\nmodule.exports = {\n    getChangeStoreLinkEl,\n    getSelectedPreferenceEl,\n    getShippingPreferencesContainerEl,\n    getISPUradioButtonEl,\n    getShipToAddressradioButtonEl,\n    getShipToAddressContentEl,\n    getISPUPreferenceContentEl,\n    getSelectedSizeEl,\n    addStoreNameClass,\n    removeStoreNameClass,\n    selectISPURadioButton,\n    disableISPURadioButton,\n    selectShipToRadioButton,\n    disableShipToRadioButton,\n    getPreferedShippingPreference,\n    updateVisibilityOfLowInventoryMsg\n};\n","// DEMO Simple HTML markup for SWIPER carousel\n// Carousels inits on slot-loaded event for all slot carousels\n// !! Please note that if two carousels are used - one inside the other -\n// then the navigation block for the outer carousel should be placed above the block with slides.\n// For manual initialization use initCarousels($parentElement: );\n// < !--Slider config container-- >\n// <div class=\"js-carousel-wrapper\" data-carousel-context=\"recommendations\">\n\n//     < !--Slider main container-- >\n//     <div class=\"js-swiper swiper\">\n//         <!-- If we need navigation buttons -->\n//         <div class=\"js-swiper-button-prev swiper-button m-prev\"></div>\n//         <div class=\"js-swiper-button-next swiper-button m-next\"></div>\n//         <!-- Additional required wrapper -->\n//         <div class=\"swiper-wrapper\">\n//             <!-- Slides -->\n//             <div class=\"swiper-slide\">Slide 1</div>\n//             <div class=\"swiper-slide\">Slide 2</div>\n//             <div class=\"swiper-slide\">Slide 3</div>\n//             ...\n//         </div>\n//         <div class=\"swiper-bottom\">\n//             <!-- If we need scrollbar -->\n//             <div class=\"js-swiper-scrollbar swiper-scrollbar\"></div>\n//             <!-- If we need pagination -->\n//             <div class=\"js-swiper-pagination swiper-pagination\"></div>\n//         </div>\n//     </div>\n// </div>\nimport Swiper from 'swiper';\nimport { Navigation, Scrollbar, Pagination } from 'swiper/modules';\n\nimport { queryFirst, queryAll, addClass, removeClass, hasClass, matchesBreakpoint } from '../domUtil';\n\nimport { isHighGridDensity, isMediumGridDensity } from '../productTiles/utils/gridDensity';\nimport { SELECTOR_PRODUCT_TILE, SELECTOR_PRODUCT_GRID, SELECTOR_TILE_IMAGE_CAROUSEL_IMAGE } from '../productTiles/productTileConstants';\n\nimport { sliderPaginationTemplate } from '../templates';\n\nconst CLASS_CAROUSEL_IGNORED = 'm-no-slider';\nconst CLASS_LAZY_SLIDER = 'swiper-lazy-image';\nconst CLASS_CAROUSEL_INITIALIZED = 'swiper-initialized';\nconst CLASS_CAROUSEL_WRAPPER = 'js-carousel-wrapper';\nconst CLASS_SELECTOR_CAROUSEL = 'js-swiper';\nconst CLASS_CAROUSEL_BTN_NEXT = 'js-swiper-button-next';\nconst CLASS_CAROUSEL_BTN_PREV = 'js-swiper-button-prev';\nconst CLASS_CAROUSEL_SCROLLBAR = 'js-swiper-scrollbar';\nconst CLASS_CAROUSEL_OUTER_SCROLLBAR = '.js-swiper-scrollbar-outer';\nconst SELECTOR_CLASS_SELECTOR_CAROUSEL = `.${CLASS_SELECTOR_CAROUSEL}`;\nconst SELECTOR_CAROUSEL_WRAPPER = `.${CLASS_CAROUSEL_WRAPPER}`;\nconst SELECTOR_CAROUSEL_BTN_PREV = `.${CLASS_CAROUSEL_BTN_PREV}`;\nconst SELECTOR_CAROUSEL_BTN_NEXT = `.${CLASS_CAROUSEL_BTN_NEXT}`;\nconst SELECTOR_CAROUSEL_SCROLLBAR = `.${CLASS_CAROUSEL_SCROLLBAR}`;\nconst CONTEXT_STANDARD = 'feature-standard';\nconst CONTEXT_EMPHASIZED = 'feature-emphasized';\nconst CONTEXT_PERSONALIZED = 'feature-personalized';\n\nconst $body = $('body');\n\nlet observer;\n/**\n * Returns carousel context\n * @param {HTMLElement} carouselWrapper corousel wraper element\n * @returns {string} returns carousel context (default, recommendations)\n */\nfunction getContext(carouselWrapper) {\n    const context = carouselWrapper?.dataset?.carouselContext;\n    if (!context) {\n        return 'default';\n    }\n    return context;\n}\n\n/**\n * Initializes the carousel and updates visibility for elements\n * @param {HTMLElement} carouselEl - the container element for the carousel\n */\nfunction initCarouselElementDomLoaded(carouselEl) {\n    if (isHighGridDensity()) {\n        removeClass(carouselEl, CLASS_CAROUSEL_INITIALIZED, CLASS_SELECTOR_CAROUSEL);\n        addClass(carouselEl, CLASS_CAROUSEL_IGNORED);\n        removeClass(queryFirst('.swiper-lazy-image', carouselEl), CLASS_LAZY_SLIDER);\n\n        return;\n    }\n\n    const carouselWrapper = carouselEl.closest(SELECTOR_CAROUSEL_WRAPPER);\n    const context = getContext(carouselWrapper);\n\n    const navigationConfig = {\n        nextEl: queryFirst(SELECTOR_CAROUSEL_BTN_NEXT, carouselWrapper),\n        prevEl: queryFirst(SELECTOR_CAROUSEL_BTN_PREV, carouselWrapper)\n    };\n\n    const customPadding = function (swiper) {\n        if (matchesBreakpoint('md') && !matchesBreakpoint('lg')) {\n            swiper.params.slidesOffsetBefore = swiper.width / 15;\n            swiper.params.slidesOffsetAfter = swiper.width / 15;\n        }\n    };\n\n    let swiperConfig = {\n        modules: [Navigation, Scrollbar],\n        simulateTouch: false,\n        slidesPerView: 'auto',\n        navigation: navigationConfig,\n        roundLengths: true,\n        spaceBetween: 1,\n        scrollbar: {\n            el: queryFirst(SELECTOR_CAROUSEL_SCROLLBAR, carouselWrapper)\n        },\n        on: {\n            slideNextTransitionStart: (swiper) => {\n                const { slidesPerView } = swiper.params;\n                const { activeIndex } = swiper;\n                const slideNumber = (Number.isFinite(activeIndex) ? activeIndex : 0) + (Number.isFinite(slidesPerView) ? Math.ceil(swiper.params.slidesPerView) : swiper.slidesPerViewDynamic()) - 1;\n                let slide = swiper.slides[slideNumber];\n                let img = queryFirst('.swiper-lazy-image', slide);\n                removeClass(img, 'swiper-lazy-image');\n            },\n            slidePrevTransitionStart: () => {\n                let img = queryFirst('.swiper-slide-active .swiper-lazy-image');\n                removeClass(img, 'swiper-lazy-image');\n            },\n            afterInit: (swiper) => {\n                const viewImages = Number.isFinite(swiper.params.slidesPerView) ? Math.ceil(swiper.params.slidesPerView) : swiper.slidesPerViewDynamic();\n                for (let i = 0; i < viewImages; i++) {\n                    let slide = swiper.slides[i];\n                    if (slide) {\n                        let img = queryFirst('.swiper-lazy-image', slide);\n                        removeClass(img, 'swiper-lazy-image');\n                    }\n                }\n            }\n        }\n    };\n\n    switch (context) {\n        case CONTEXT_STANDARD:\n        case CONTEXT_EMPHASIZED:\n        case CONTEXT_PERSONALIZED:\n            swiperConfig = {\n                ...swiperConfig,\n                slidesPerView: context === CONTEXT_EMPHASIZED ? 1.5 : 2,\n                slidesPerGroup: 1,\n                spaceBetween: 4,\n                scrollbar: {\n                    el: queryFirst(CLASS_CAROUSEL_OUTER_SCROLLBAR, carouselWrapper)\n                },\n                breakpoints: {\n                    768: {\n                        slidesPerView: context === CONTEXT_STANDARD ? 3 : 2.5,\n                        slidesPerGroup: 2\n                    },\n                    1025: {\n                        slidesPerView: context === CONTEXT_STANDARD ? 5 : 3,\n                        slidesPerGroup: context === CONTEXT_STANDARD ? 5 : 3,\n                        draggable: false\n                    }\n                }\n            };\n            break;\n\n        case 'filters':\n            swiperConfig = {\n                ...swiperConfig,\n                slidesPerView: 1.65,\n                centerInsufficientSlides: true,\n                breakpoints: {\n                    768: { slidesPerView: 'auto', draggable: false }\n                }\n            };\n            break;\n\n        case 'ugc':\n            swiperConfig = {\n                ...swiperConfig,\n                slidesPerView: 1.5,\n                watchSlidesProgress: true,\n                slideFullyVisibleClass: 'ugc-visible',\n                on: {\n                    transitionStart: function () {\n                        this.slides.forEach(slide => {\n                            if (hasClass(slide, 'ugc-visible')) {\n                                return;\n                            }\n                            queryFirst('.video', slide)?.pause();\n                        });\n                    },\n\n                    transitionEnd: function () {\n                        this.slides.forEach(slide => {\n                            if (hasClass(slide, 'ugc-visible')) {\n                                queryFirst('.video', slide)?.play();\n                            }\n                        });\n                    }\n                },\n                breakpoints: {\n                    768: { slidesPerView: 5 }\n                }\n            };\n            break;\n\n        case 'recently-viewed':\n            swiperConfig = {\n                ...swiperConfig,\n                simulateTouch: true,\n                slidesPerView: 3.3,\n                spaceBetween: 4,\n                scrollbar: {\n                    el: queryFirst(CLASS_CAROUSEL_OUTER_SCROLLBAR, carouselWrapper)\n                },\n                breakpoints: {\n                    768: { slidesPerView: 8, scrollbar: false, enabled: false },\n                    1025: { slidesPerView: 10, draggable: false }\n                }\n            };\n            break;\n\n        case 'shop-by-print':\n            swiperConfig = {\n                ...swiperConfig,\n                slidesPerView: 1.8,\n                spaceBetween: 32,\n                watchSlidesProgress: true,\n                slideVisibleClass: 'spb-visible',\n                breakpoints: {\n                    768: { slidesPerView: 3.4 },\n                    1025: { slidesPerView: 5, slidesPerGroup: 5, draggable: false }\n                }\n            };\n            break;\n\n        case 'shoppable-media':\n            swiperConfig = {\n                ...swiperConfig,\n                slidesPerView: 1,\n                breakpoints: {\n                    768: { enabled: true, slidesPerView: 2 },\n                    1025: { enabled: false }\n                },\n                on: {\n                    beforeResize(swiper) {\n                        swiper.slideTo(0);\n                    }\n                }\n            };\n            break;\n\n        case 'store-events':\n            swiperConfig = {\n                ...swiperConfig,\n                modules: [Navigation, Scrollbar],\n                spaceBetween: 10,\n                centerInsufficientSlides: true,\n                scrollbar: {\n                    el: queryFirst(CLASS_CAROUSEL_OUTER_SCROLLBAR, carouselWrapper)\n                }\n            };\n            break;\n\n        case 'loyalty-offers':\n            swiperConfig = {\n                ...swiperConfig,\n                modules: [Navigation, Scrollbar],\n                spaceBetween: 4,\n                slidesPerView: 1.65,\n                slidesOffsetBefore: 20,\n                slidesOffsetAfter: 20,\n                scrollbar: {\n                    el: queryFirst(CLASS_CAROUSEL_OUTER_SCROLLBAR, carouselWrapper)\n                },\n                breakpoints: {\n                    768: { enabled: true, slidesPerView: 2.5 },\n                    1025: { enabled: true, slidesPerView: 4, slidesPerGroup: 4, slidesOffsetBefore: 0, slidesOffsetAfter: 0 }\n                },\n                on: {\n                    beforeResize(swiper) {\n                        swiper.slideTo(0);\n                    },\n                    init: customPadding,\n                    resize: customPadding\n                }\n            };\n            break;\n\n        case 'loyalty-benefits':\n            swiperConfig = {\n                ...swiperConfig,\n                modules: [Scrollbar],\n                spaceBetween: 4,\n                slidesPerView: 1.54,\n                slidesOffsetBefore: 20,\n                slidesOffsetAfter: 20,\n                scrollbar: {\n                    el: queryFirst(CLASS_CAROUSEL_OUTER_SCROLLBAR, carouselWrapper)\n                },\n                breakpoints: {\n                    768: { enabled: true, slidesPerView: 2.67, slidesOffsetBefore: 0, slidesOffsetAfter: 0 },\n                    1025: { enabled: false, slidesPerView: 5, slidesOffsetBefore: 0, slidesOffsetAfter: 0 }\n                },\n                on: {\n                    beforeResize(swiper) {\n                        swiper.slideTo(0);\n                    }\n                }\n            };\n            break;\n\n        case 'auto':\n            swiperConfig = {\n                ...swiperConfig,\n                modules: [Navigation, Scrollbar, Pagination],\n                loop: true,\n                centerInsufficientSlides: true,\n                touchReleaseOnEdges: true,\n                nested: true,\n                pagination: {\n                    el: queryFirst('.js-swiper-pagination', carouselWrapper),\n                    type: 'fraction',\n                    renderFraction: sliderPaginationTemplate\n                }\n            };\n            break;\n\n        default:\n            swiperConfig = {\n                ...swiperConfig,\n                slidesPerView: 1,\n                loop: true,\n                centerInsufficientSlides: true\n            };\n            break;\n    }\n\n    // save carousel to element for future access\n    carouselEl.carousel = new Swiper(carouselEl, swiperConfig);\n\n    ['slideChange', 'slideChangeTransitionStart'].forEach(eventName => {\n        carouselEl.carousel.on(eventName, swiper => {\n            $(carouselEl).trigger(`swiper.${eventName}`, [carouselEl, swiper]);\n        });\n    });\n}\n\n/**\n * Custom hover image toggle\n * @param {HTMLElement} tile element\n */\nfunction customHoverTile(tile) {\n    const hoverSupported = window.matchMedia('(hover: hover)').matches;\n\n    if (!hoverSupported) {\n        return;\n    }\n\n    const carouselEl = queryFirst(SELECTOR_CLASS_SELECTOR_CAROUSEL, tile);\n    const swiperInstance = carouselEl?.carousel;\n\n    if (!swiperInstance) {\n        return;\n    }\n    swiperInstance.slideToLoop(1, 0);\n}\n\n/**\n * Reset first image on mouse leave\n * @param {HTMLElement} tile element\n */\nfunction customResetTile(tile) {\n    const carouselEl = queryFirst(SELECTOR_CLASS_SELECTOR_CAROUSEL, tile);\n    const swiperInstance = carouselEl?.carousel;\n\n    if (!swiperInstance) {\n        return;\n    }\n    swiperInstance.slideToLoop(0, 0);\n}\n\n/**\n * Init carousels in a specific container\n * @param {HTMLElement} carouselEl - the container element for the carousel\n */\nfunction initCarouselElement(carouselEl) {\n    if (!carouselEl || hasClass(carouselEl, CLASS_CAROUSEL_INITIALIZED) || hasClass(carouselEl, CLASS_CAROUSEL_IGNORED)) {\n        return;\n    }\n\n    if (document.readyState === 'loading') {\n        document.addEventListener('DOMContentLoaded', () => initCarouselElementDomLoaded(carouselEl));\n    } else {\n        initCarouselElementDomLoaded(carouselEl);\n    }\n    addClass(carouselEl, CLASS_CAROUSEL_INITIALIZED);\n}\n\n/**\n * Callback for intersection observer - determines whether or not to initialize product tiles\n * @param {HTMLElement[]} productTiles list of observered product tiles\n */\nfunction onIntersection(productTiles) {\n    productTiles.forEach(async (media) => {\n        // Is the media in viewport?\n        if (media.intersectionRatio > 0) {\n            const { target: productTileEl } = media;\n            await initCarouselElement(productTileEl);\n            observer.unobserve(productTileEl);\n        }\n    });\n}\n\n/**\n * Init carousels in single specific container\n * @param {HTMLElement} containerEl container element\n */\nfunction initCarouselsInSingleContainer(containerEl) {\n    const carousels = queryAll(SELECTOR_CLASS_SELECTOR_CAROUSEL, containerEl);\n\n    if (!observer && window.IntersectionObserver) {\n        observer = new IntersectionObserver(onIntersection, {\n            // If the image gets within 200px of the top/bottom of the viewport, start the init slider.\n            rootMargin: '200px 0px',\n            threshold: 0.01\n        });\n    }\n\n    if (!observer) return;\n\n    carousels.forEach(productTileEl => {\n        observer.observe(productTileEl);\n    });\n}\n\n/**\n * Attach events listners\n */\nfunction attachEventsListenersOnce() {\n    /*\n     Need to split lazy-loading triggering logic for correct handling swipe and controls clicks\n     it needed because specific behavior on when swiper with loop: true + low density 2 slides per tile\n    */\n    const initCarouselsAfterFrame = () => {\n        // eslint-disable-next-line no-use-before-define\n        initCarousels(queryAll(SELECTOR_PRODUCT_GRID));\n    };\n\n    $body.on('search:updateProducts', function () {\n        // eslint-disable-next-line no-use-before-define\n        initCarousels(queryAll(SELECTOR_PRODUCT_GRID));\n    });\n\n    $body.on('search:showMore', () => {\n        requestAnimationFrame(initCarouselsAfterFrame);\n    });\n\n    $body.on('search:densityChange', () => {\n        requestAnimationFrame(initCarouselsAfterFrame);\n    });\n\n    $body.on('swatchChangeEventCustom', (e, data) => {\n        const { el } = data;\n        if (!el) {\n            return;\n        }\n\n        const pTileEl = el.closest(SELECTOR_PRODUCT_TILE);\n        const carouselEl = queryFirst(SELECTOR_CLASS_SELECTOR_CAROUSEL, pTileEl);\n\n        if (carouselEl && carouselEl.carousel) {\n            carouselEl.carousel.update();\n        }\n    });\n\n    $body.on('product:tile:initialize', SELECTOR_PRODUCT_TILE, e => {\n        e.preventDefault();\n        const productTileEl = e.currentTarget;\n        const { isTileCarouselInitialized } = productTileEl.dataset;\n\n        if (isTileCarouselInitialized) {\n            return;\n        }\n        productTileEl.dataset.isTileCarouselInitialized = true;\n\n        if (isMediumGridDensity()) {\n            const tileImages = queryAll('.tile-image', productTileEl);\n\n            productTileEl.addEventListener('mouseenter', () => customHoverTile(productTileEl));\n            productTileEl.addEventListener('mouseleave', () => customResetTile(productTileEl));\n\n            if (tileImages.length > 1) {\n                const secTileImageEl = tileImages[1];\n                removeClass(secTileImageEl, CLASS_LAZY_SLIDER);\n            }\n        }\n    });\n\n    document.addEventListener('slot-loaded', function (e) {\n        const { target } = e;\n        if (target.classList.contains('js-slot')) {\n            // eslint-disable-next-line no-use-before-define\n            initCarousels(target);\n        }\n    });\n}\n\n/**\n * Code to process some funcions only once even multiple includes\n */\nconst initOnce = (() => {\n    let initialized = false;\n\n    return () => {\n        if (!initialized) {\n            initialized = true;\n            attachEventsListenersOnce();\n        }\n    };\n})();\n\n/**\n * Init carousels in specific container(s)\n * @param {HTMLElement[] | HTMLElement} containerEl element or array of elements\n */\nfunction initCarousels(containerEl) {\n    initOnce();\n\n    (Array.isArray(containerEl) ? containerEl : [containerEl]).forEach(initCarouselsInSingleContainer);\n}\n\n/**\n * destroy carousels in specific container\n * @param {HTMLElement[] | HTMLElement} containerEl element or array of elements\n */\nfunction destroySwiper(containerEl) {\n    containerEl?.carousel?.destroy(true, true);\n}\n\nexport default {\n    initCarousels,\n    initCarouselElement,\n    destroySwiper,\n    CLASS_CAROUSEL_INITIALIZED,\n    SELECTOR_CAROUSEL_WRAPPER,\n    SELECTOR_CLASS_SELECTOR_CAROUSEL\n};\n","'use strict';\n\nimport { matchesBreakpoint, queryFirst, queryAll, addClass, removeClass, hasClass } from '../domUtil';\nimport { HIDDEN_CLASS, PLAYED_CLASS, MUTED_CLASS, UNMUTED_CLASS } from '../constants';\nconst mainVideoClass = 'video-component-main';\nconst mobileVideoClass = 'video-component-mobile';\nconst videoComponents = queryAll('.video-component');\n\n/**\n * @param {Element} videoComponent represents a video component\n * @returns {Element} existing video mainVideo or mobileVideo\n */\nfunction hasVideos(videoComponent) {\n    const mainVideo = queryFirst(`.${mainVideoClass}`, videoComponent);\n    const mobileVideo = queryFirst(`.${mobileVideoClass}`, videoComponent);\n    return mainVideo || mobileVideo;\n}\n\n/**\n * @param {Element} videoComponent represents a video component\n */\nfunction initVideos(videoComponent) {\n    if (hasClass(videoComponent, 'initialized')) return;\n\n    addClass(videoComponent, 'initialized');\n    const mainVideo = queryFirst(`.${mainVideoClass}`, videoComponent);\n    const mobileVideo = queryFirst(`.${mobileVideoClass}`, videoComponent);\n    const playButton = queryFirst('.play-video', videoComponent);\n    const muteButton = queryFirst('.mute-video', videoComponent);\n    const captionVideoElement = queryFirst('.caption-video', videoComponent);\n    const allVideos = [mainVideo, mobileVideo].filter(Boolean);\n\n    let touchStart;\n    let touchEnd;\n    const scrollThreshold = 2;\n\n    /**\n     * Changes the state of video and the play button depending on whether or not the video is play/pause.\n     * @param {HTMLElement} video Element representing  a video component\n     */\n    function togglePlay(video) {\n        if (video.paused) {\n            video.play();\n            addClass(playButton, PLAYED_CLASS);\n        } else {\n            video.pause();\n            removeClass(playButton, PLAYED_CLASS);\n        }\n    }\n\n    /**\n     * Changes the state of the mute button depending on whether or not the video is off/on.\n     * @param {HTMLElement} video Element representing  a video component\n     */\n    function toggleMute(video) {\n        video.muted = !video.muted;\n        if (video.muted) {\n            removeClass(muteButton, UNMUTED_CLASS);\n            addClass(muteButton, MUTED_CLASS);\n        } else {\n            removeClass(muteButton, MUTED_CLASS);\n            addClass(muteButton, UNMUTED_CLASS);\n        }\n    }\n\n    /**\n     * Shows or hides the caption button depending on whether or not a video caption is off/on.\n     * @param {Array} allVideos Array containing all video elements within a video component (mobile and desktop)\n     * @param {HTMLElement} captionButton Element representing the caption button icon for a video component\n     */\n    function toggleCaption(allVideos, captionButton) {\n        const captionOnIcon = queryFirst('.svg-video-caption-on', captionButton);\n        const captionOffIcon = queryFirst('.svg-video-caption-off', captionButton);\n\n        // Find the currently visible video (either mobile or desktop)\n        const visibleVideo = allVideos.find(video => video.offsetParent !== null);\n\n        if (visibleVideo?.textTracks?.length) {\n            const track = visibleVideo.textTracks[0];\n\n            // Check if cues are not null\n            if (track.cues && track.cues.length > 0) {\n                const videoCaptionIsOn = track.mode === 'showing';\n\n                if (videoCaptionIsOn) {\n                    track.mode = 'hidden';\n                    addClass(captionOnIcon, HIDDEN_CLASS);\n                    removeClass(captionOffIcon, HIDDEN_CLASS);\n                } else {\n                    track.mode = 'showing';\n                    removeClass(captionOnIcon, HIDDEN_CLASS);\n                    addClass(captionOffIcon, HIDDEN_CLASS);\n                }\n            } else {\n                // If cues are null or empty, hide the caption button\n                addClass(captionButton, HIDDEN_CLASS);\n            }\n        } else {\n            // Hide caption button if no text tracks\n            addClass(captionButton, HIDDEN_CLASS);\n        }\n    }\n\n    /**\n     * @returns {Element} active video\n     */\n    function getActiveVideo() {\n        return matchesBreakpoint('lg') ? mainVideo : mobileVideo || mainVideo;\n    }\n\n    playButton?.addEventListener('click', function () {\n        const activeVideo = getActiveVideo();\n        togglePlay(activeVideo);\n    });\n\n    muteButton?.addEventListener('click', function () {\n        const activeVideo = getActiveVideo();\n        toggleMute(activeVideo);\n    });\n\n    if (captionVideoElement) {\n        captionVideoElement.addEventListener('click', () => {\n            const visibleVideo = allVideos.find(video => video.offsetParent !== null);\n            if (visibleVideo?.textTracks?.length) {\n                const track = visibleVideo.textTracks[0];\n                track.mode = track.mode === 'hidden' ? 'showing' : 'hidden';\n                toggleCaption([visibleVideo], captionVideoElement);\n            }\n        });\n\n        toggleCaption(allVideos, captionVideoElement);\n    }\n\n    /**\n     * @param {Element} video touch event handling\n     */\n    function handleVideoTouch(video) {\n        video.addEventListener('touchstart', e => {\n            touchStart = e.touches[0].clientY;\n        });\n\n        video.addEventListener('touchend', e => {\n            touchEnd = e.changedTouches[0].clientY;\n\n            if (Math.abs(touchEnd - touchStart) < scrollThreshold) {\n                togglePlay(video);\n            }\n        });\n    }\n\n    [mainVideo, mobileVideo].forEach(video => {\n        if (video) {\n            handleVideoTouch(video);\n\n            video.addEventListener('play', () => {\n                addClass(playButton, PLAYED_CLASS);\n            });\n\n            video.addEventListener('pause', () => {\n                removeClass(playButton, PLAYED_CLASS);\n            });\n\n            video.addEventListener('ended', () => {\n                removeClass(playButton, PLAYED_CLASS);\n            });\n        }\n    });\n\n    const activeVideo = getActiveVideo();\n\n    if (activeVideo?.paused) {\n        removeClass(playButton, PLAYED_CLASS);\n    } else {\n        addClass(playButton, PLAYED_CLASS);\n    }\n\n    if (activeVideo?.muted) {\n        addClass(muteButton, MUTED_CLASS);\n        removeClass(muteButton, UNMUTED_CLASS);\n    } else {\n        addClass(muteButton, UNMUTED_CLASS);\n        removeClass(muteButton, MUTED_CLASS);\n    }\n\n    /**\n     * Synchronization of video behavior when the screen is rotated\n     */\n    function syncVideoState() {\n        const activeVideo = getActiveVideo();\n        const inactiveVideo = activeVideo === mainVideo ? mobileVideo : mainVideo;\n\n        if (inactiveVideo) {\n            const wasPlaying = !inactiveVideo.paused;\n            inactiveVideo.pause();\n            inactiveVideo.muted = true;\n\n            if (wasPlaying) {\n                activeVideo.play();\n                addClass(playButton, PLAYED_CLASS);\n            } else {\n                activeVideo.pause();\n                removeClass(playButton, PLAYED_CLASS);\n            }\n        }\n\n        if (activeVideo) {\n            activeVideo.muted = muteButton?.classList.contains(MUTED_CLASS);\n        }\n    }\n\n    let currentOrientation = window.innerWidth > window.innerHeight ? 'landscape' : 'portrait';\n\n    window.addEventListener('resize', () => {\n        let newOrientation = window.innerWidth > window.innerHeight ? 'landscape' : 'portrait';\n\n        if (newOrientation !== currentOrientation) {\n            currentOrientation = newOrientation;\n            syncVideoState();\n        }\n    });\n\n    syncVideoState();\n}\n\nvideoComponents.forEach(videoComponent => {\n    if (hasVideos(videoComponent)) {\n        initVideos(videoComponent);\n    }\n});\n\nexport default {\n    initVideos\n};\n","module.exports = {\n    breakpoints: {\n        xs: 0,\n        sm: 576,\n        md: 768,\n        lg: 1024,\n        xl: 1362\n    },\n\n    // Stores\n    PREFERRED_STORE_ID: 'PREFERRED_STORE_ID',\n\n    // Constant values\n    EMPTY_STRING: '',\n    ONE_SIZE_ID: window?.lillyUtils?.constants?.ONE_SIZE || '1 SZ',\n    ONE_SIZE_LABEL: window?.lillyUtils?.resources?.ONE_SIZE || 'One size',\n\n    // Forms\n    CHANGED_CLASS: 'm-changed',\n    FILLED_CLASS: 'm-filled',\n\n    // DOM Class\n    ACTIVE_CLASS: 'active',\n    HIDDEN_CLASS: 'd-none',\n    INVALID_CLASS: 'is-invalid',\n    INVISIBLE_CLASS: 'invisible',\n    NO_SCROLL_CLASS: 'no-scroll',\n    SELECTED_CLASS: 'selected',\n    SHOW_CLASS: 'show',\n    SHOW_ALL_CLASS: 'show-all',\n    NOT_AVAILABLE_CLASS: 'not-available',\n    D_FLEX: 'd-flex',\n    DISPLAY_CLASS: 'd-block',\n    INACTIVE_CLASS: 'inactive',\n    MENU_OPENED: 'm-menu-opened',\n    LOADED_CLASS: 'loaded',\n    SCROLLED_CLASS: 'scrolled',\n\n    // Product status\n    PREORDER_STATUS: 'PREORDER',\n    BACKORDER_STATUS: 'BACKORDER',\n    IN_STOCK_STATUS: 'IN_STOCK',\n    NOT_AVAILABLE_STATUS: 'NOT_AVAILABLE',\n\n    // Custom DOM events\n\n    // Control keys\n\n    // Event KeyCodes\n    KEYCODE_TAB: 9,\n    KEYCODE_ESCAPE: 27,\n    KEYCODE_UP: 38,\n    KEYCODE_DOWN: 40,\n    KEYCODE_ENTER: 13,\n    EVENT_KEY_ENTER: 'Enter',\n    EVENT_KEY_TAB: 'Tab',\n\n    // Video constants\n    PLAYED_CLASS: 'played',\n    MUTED_CLASS: 'muted',\n    UNMUTED_CLASS: 'unmuted',\n    WAS_PLAYING_CLASS: 'resize-paused',\n    TIMEOUT_100: 100,\n\n    // Search types\n    SEARCH_TYPE: 'searchType',\n    SEARCH_SUBMIT: 'search submit',\n    SEARCH_SUGGESTIONS: 'search suggestions',\n    POPULAR_SEARCHES: 'popular searches',\n    SEARCH_HISTORY: 'SEARCH_HISTORY',\n\n    // Refinement Types\n    REFINEMENT_TYPE_CATEGORY: 'category',\n    // Animation constants\n    ANIM_TIME_INSTANT: 0,\n    ANIM_TIME_QUICK_1: 150,\n    ANIM_TIME_QUICK_2: 300,\n    ANIM_TIME_STANDARD_1: 600,\n    ANIM_TIME_STANDARD_2: 1200,\n    ANIM_TIME_STANDARD_3: 2000,\n    ANIM_TIME_STANDARD_4: 3000,\n    TIMEOUT_1000: 1000,\n    ANIM_EASE_LINEAR: 'cubic-bezier(0, 0, 1, 1)',\n    ANIM_EASE_IN: 'cubic-bezier(0.9, 0, 0.7, 1)',\n    ANIM_EASE_OUT: 'cubic-bezier(0.3, 0, 0.1, 1)',\n    ANIM_EASE_IN_OUT: 'cubic-bezier(0.3, 0, 0.7, 1)',\n    EMAIL_REGEX: /^(?=^.{6,80}$)(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]*[a-zA-Z0-9]+\\.)+[a-zA-Z]{2,}))$/,\n    PHONE_NUMBER_REGEX: /^\\+?1?\\s*\\(?([2-9][0-8][0-9])\\)?[\\-\\. ]?([2-9][0-9]{2})[\\-\\. ]?([0-9]{4})(\\s*x[0-9]+)?$/,\n\n    IS_SAFARI: /^((?!chrome|android).)*safari/i.test(navigator.userAgent)\n};\n","/**\n * DOM utilities to use native browser capabilities and avoid dependencies.\n *\n * @module dom.dom-util\n * @version 1.0.0\n * @since Sept 26 2019\n *\n * @typedef {Object} ProductData\n * @property {string} colorCode - The product color code (E.g. 002)\n * @property {string} masterId - The product master ID (E.g. 003168)\n * @property {string} originalPrice - The product original price (E.g. 148.00)\n * @property {string} productColor - The product color name (E.g. Onyx)\n * @property {string} productId - The product SKU (E.g. 889069580469)\n * @property {string} productName - The product name (E.g. Keegan Lace Top)\n * @property {string} productPrice - The product sale price (E.g. 98.00)\n * @property {string} productSize - The product size (E.g. M)\n * @property {string} variationGroupId - The product variation group ID (E.g. 003168-onyx)\n * @property {string} productBadge - The product is of Early Access or not (E.g. Early Access)\n */\n\nconst { breakpoints, ANIM_TIME_STANDARD_1, ANIM_EASE_IN_OUT } = require('./constants');\n\n/**\n * Native querySelector to find first element in the dom with given selector\n *\n * @param  {string | Object} selector Target selector element.\n * @param  {string | Object} parent  Parent element, if it not provided\n * fallback to document.\n * @return {Object} returns the target as a DOM node\n */\nconst queryFirst = (exports.queryFirst = (selector, parent = document) => {\n    if (!parent) return null;\n    return parent.querySelector(selector);\n});\n/**\n * loadScript to asynchronously load a script tag in DOM\n *\n * @param  {string} source Script tag src value\n * @param {boolean} isAsync Set script to async true or false\n */\nexports.loadScript = (source, isAsync = false) => {\n    return new Promise(resolve => {\n        const script = document.createElement('script');\n        script.src = source;\n        script.async = isAsync;\n        script.onload = () => {\n            resolve();\n        };\n        document.body.append(script);\n    });\n};\n/**\n * loadInput to load an input tag in DOM\n *\n * @param  {string} referrerID Referrer ID value\n * @param {Array} formElement Form element\n */\nexports.loadInput = (referrerID, formElement) => {\n    const input = document.createElement('input');\n    input.setAttribute('type', 'hidden');\n    input.setAttribute('name', 'referrerID');\n    input.setAttribute('class', 'referrerID');\n    input.setAttribute('value', referrerID);\n    formElement.appendChild(input);\n};\n/**\n * Native querySelectorAll to find all the dom element with given selector.\n *\n * @param  {string | Object} selector Target selector element.\n * @param  {string | Object} parent Parent element, if it not provided\n * fallback to document.\n * @return {nodeList | Array} Returns the target as a DOM node.\n */\nconst queryAll = (exports.queryAll = (selector, parent = document) => {\n    if (!parent) return null;\n    return [].slice.call(parent.querySelectorAll(selector), 0);\n});\n\n/**\n * Returns the value(s) for the specified CSS rule(s), or all computed styles if no rule is specified\n *\n * @param  {Element} element Target element\n * @param  {string} rule CSS rule name (E.g. padding-top)\n * @return {string | Array | Object} Returns a string value, array of values, or styles object\n */\nconst getStyles = (exports.getStyles = (element, ...rules) => {\n    const styles = getComputedStyle(element);\n\n    if (!rules.length) {\n        return styles;\n    } else if (rules.length === 1) {\n        return styles[rules[0]];\n    }\n    return rules.map(rule => styles[rule]);\n});\n\n/**\n * Remove DOM element\n *\n * @param  {string | Object} el Target element.\n */\nexports.remove = el => {\n    if (!el) return;\n    if (Array.isArray(el) || el instanceof NodeList) {\n        for (let i = 0, n = el.length; i < n; i++) {\n            const node = el[i];\n            if (node) node.parentElement.removeChild(node);\n        }\n    } else {\n        el.parentElement.removeChild(el);\n    }\n};\n\n/**\n * Set attribute to single or multiple elements\n *\n * @param  {string | Object} el Target  element.\n * @param  {string} attr attribute that need to be added.\n * @param  {string | boolean} val value that need to be set for an attribute.\n */\nexports.setAttribute = (el, attr, val) => {\n    if (!el) return;\n    if (Array.isArray(el) || el instanceof NodeList) {\n        for (let i = 0, n = el.length; i < n; i++) {\n            const node = el[i];\n            if (node) node.setAttribute(attr, val);\n        }\n    } else {\n        el.setAttribute(attr, val);\n    }\n};\n\n/**\n * Remove attribute to single or multiple elements\n *\n * @param  {string | Object} el Target  element.\n * @param  {string} attr attribute that need to be removed.\n */\nexports.removeAttribute = (el, attr) => {\n    if (!el) return;\n    if (Array.isArray(el) || el instanceof NodeList) {\n        for (let i = 0, n = el.length; i < n; i++) {\n            const node = el[i];\n            if (node) node.removeAttribute(attr);\n        }\n    } else {\n        el.removeAttribute(attr);\n    }\n};\n\n/**\n * Adds class or classes to the classList of particular element.\n *\n * @param  {string | Object} el Target  element.\n * @param  {string | Array} val class name or class names as list of arguments.\n */\nexports.addClass = (el, ...val) => {\n    if (!el) return;\n    if (Array.isArray(el) || el instanceof NodeList) {\n        for (let i = 0, n = el.length; i < n; i++) {\n            const node = el[i];\n            if (node) node.classList.add(...val);\n        }\n    } else {\n        el.classList.add(...val);\n    }\n};\n\n/**\n * Removes class or classes from the classList of particular element.\n *\n * @param  {string | Object} el Target  element.\n * @param  {string | Array} val class name or class names as list of arguments.\n */\nexports.removeClass = (el, ...val) => {\n    if (!el) return;\n    if (Array.isArray(el) || el instanceof NodeList) {\n        for (let i = 0, n = el.length; i < n; i++) {\n            const node = el[i];\n            if (node) node.classList.remove(...val);\n        }\n    } else {\n        el.classList.remove(...val);\n    }\n};\n\n/**\n * Toggles class or classes to the classList of particular element.\n *\n * @param  {string | Object} el Target  element.\n * @param  {string | Array} val class name or class names as list of arguments.\n */\nexports.toggleClass = (el, ...val) => {\n    if (!el) return;\n    if (Array.isArray(el) || el instanceof NodeList) {\n        for (let i = 0, n = el.length; i < n; i++) {\n            const node = el[i];\n            if (node) node.classList.toggle(...val);\n        }\n    } else {\n        el.classList.toggle(...val);\n    }\n};\n\n/**\n * Looks for availability of class or classes in the classList of particular element.\n *\n * @param  {string | Object} el Target  element.\n * @param  {string | Array} val class name or class names as list of arguments.\n * @return {boolean} Returns availability of class in the target element.\n */\nexports.hasClass = (el, ...classes) => {\n    if (!el) return false;\n\n    const { classList } = el;\n\n    return !!classList && classes.every(className => classList.contains(className));\n};\n\n/**\n * Looks for availability of any one of multiple classes in the classList of particular element.\n *\n * @param  {string | Object} el Target  element.\n * @param  {string | Array} val class name or class names as list of arguments.\n * @return {boolean} Returns availability of class in the target element.\n */\nexports.hasAnyClass = (el, ...classes) => {\n    if (!el) return false;\n\n    const { classList } = el;\n\n    return !!classList && classes.some(className => classList.contains(className));\n};\n\n/**\n * Throttle util to prevent repeatative callbacks\n *\n * @param  {function} callback Callback function.\n * @param  {number} limit Timeout upon which throttle callback need to be called.\n * fallback to document.\n * @param  {function} waitCallback The callback to fire while the function is being throttled.\n * @return {function} Throttle closure function.\n */\nexports.throttle = (callback, limit = 250, waitCallback = function () {}) => {\n    let isThrottling = false;\n\n    return (...args) => {\n        if (isThrottling) return waitCallback(...args);\n\n        const returnValue = callback.apply(this, args);\n        isThrottling = true;\n\n        setTimeout(() => {\n            isThrottling = false;\n        }, limit);\n\n        return returnValue;\n    };\n};\n\n/**\n * Throttle util to prevent repeatative callbacks\n *\n * @param {function} callback - Callback function.\n * @param {number} minimumDelay - Delay upon which debounce callback need to be called.\n * @param {object} [options] - Additional options to control debouncing behavior\n * @param {function} [options.condition] - A function that will cause debouncing to be ignored for one cycle if it returns true\n * @param {function} [options.callback] - A function that will run without restriction, each time the debounced method is called\n * @return {function} Debounce closure function.\n */\nexports.debounce = (callback, minimumDelay = 250, options = {}) => {\n    const { condition, callback: unrestrictedCallback } = options;\n    let timer;\n\n    return (...args) => {\n        clearTimeout(timer);\n\n        if (typeof unrestrictedCallback === 'function') unrestrictedCallback(...args);\n\n        if (typeof condition === 'function' && condition(...args)) {\n            callback(...args);\n        } else {\n            timer = setTimeout(() => {\n                callback(...args);\n            }, minimumDelay);\n        }\n    };\n};\n\nexports.toArray = (...args) => {\n    const makeArray = target => {\n        let newTarget;\n        if (!Array.isArray(target)) {\n            const array = [].slice.call(target);\n            newTarget = array.length ? array : [target];\n        }\n        return newTarget;\n    };\n    return args.reduce((results, arg) => {\n        return results.concat(makeArray(arg));\n    }, []);\n};\n\n/**\n * Height util to get outer height of element including margins\n *\n * @param  {string | Object} el target element\n * @return  {number} height of element\n */\nexports.outerHeight = el => {\n    if (!el) return -1;\n    const styles = getStyles(el);\n\n    return el.offsetHeight + parseInt(styles.marginTop, 10) + parseInt(styles.marginBottom, 10);\n};\n\n/**\n * Determine if an element is in the viewport\n * (c) 2017 Chris Ferdinandi, MIT License, https://gomakethings.com\n * @param  {Node} el The element\n * @return {boolean} Returns true if element is in the viewport\n */\nexports.isInViewportCheck = el => {\n    const scroll = window.scrollY || window.pageYOffset;\n    const boundsTop = el.getBoundingClientRect().top + scroll;\n\n    const numberOfViewportToCheck = el.dataset.nextViewportLazyLoad ? 2 : 1;\n\n    const viewport = {\n        top: scroll,\n        bottom: scroll + window.innerHeight * numberOfViewportToCheck\n    };\n\n    const bounds = {\n        top: boundsTop,\n        bottom: boundsTop + el.clientHeight\n    };\n\n    return (bounds.bottom >= viewport.top && bounds.bottom <= viewport.bottom) || (bounds.top <= viewport.bottom && bounds.top >= viewport.top);\n};\n\n/**\n * Determine if an element is in the viewport\n * (c) 2017 Chris Ferdinandi, MIT License, https://gomakethings.com\n * @param  {Node} el The element\n * @return {boolean} Returns true if element is in the viewport\n */\nexports.isInViewport = el => {\n    var rect = el.getBoundingClientRect();\n\n    return rect.bottom > 0 && rect.right > 0 && rect.left < (window.innerWidth || document.documentElement.clientWidth) && rect.top < (window.innerHeight || document.documentElement.clientHeight);\n};\n\n/**\n * Animates scrolling the page to the specified Y coordinate\n * @param {number} y - The Y coordinate to scroll to\n * @param {number} duration - The duration of the animation in milliseconds\n * @param {function} callback - The callback to run when the animation is complete\n * @returns {JQuery} jquery object\n */\nexports.scrollTo = (y, duration = 600, callback = function () {}) => $('html, body').scrollTo(y, duration, callback);\n\n/**\n * Finds the last element sibling on the same line as the specified element\n * @param {Element} element - The element to reference when looking for siblings\n * @returns {Element} - returns last element in the row\n */\nexports.getLastElementInRow = element => {\n    if (!element.nextElementSibling) return element;\n\n    const bottom = element.offsetTop + element.scrollHeight;\n    let sibling;\n\n    while ((sibling = element.nextElementSibling)) {\n        if (sibling.offsetTop >= bottom) return sibling.previousElementSibling;\n        element = sibling;\n    }\n\n    return element;\n};\n\n/**\n * Update url with query parameter to handle remember placement\n *\n * @param {DocumentFragment} fragment - A DocumentFragment object\n * @return {undefined}\n */\nexports.updateUrlQueryParam = fragment => {\n    const queryParamsElement = queryFirst('.append-params', fragment);\n    const permaLink = queryFirst('.permalink', fragment);\n    const url = new URL(window.location.href);\n    const hash = url.hash; // Save the current hash\n\n    let newUrl;\n\n    if (permaLink) {\n        newUrl = permaLink.value;\n    } else if (queryParamsElement) {\n        const baseUrl = window.location.href.split('?')[0];\n        newUrl = baseUrl + '?' + queryParamsElement.value;\n    }\n\n    // Append the hash if it exists\n    if (hash) {\n        newUrl += hash;\n    }\n\n    // Update the history state if newUrl is calculated\n    if (newUrl) {\n        window.history.pushState({ path: newUrl }, '', newUrl);\n    }\n};\n\n/**\n * This method returns character count\n * @param {HTMLElement} element - current element for which count has to be calculated\n * @return {number} character count\n */\nexports.getCharacterCount = function (element) {\n    if (!element) {\n        return 0;\n    }\n    return element.value.length;\n};\n\n/**\n *  Waits for a specified element to exist.\n *  @param {string} selector - The selector to match\n *  @param {element} scope - The containing element to search within (default: document)\n *  @param {number} timeout - How long (in milliseconds) to wait before rejecting the promise\n *  @returns a Promise containing all matched elements\n */\nexports.waitForElement = (selector, scope = document, timeout = 0) =>\n    new Promise((resolve, reject) => {\n        const elements = queryAll(selector, scope);\n\n        if (elements.length) return resolve(elements);\n\n        const observer = new MutationObserver((mutations, self) => {\n            const elements = queryAll(selector, scope);\n\n            if (elements.length) {\n                self.disconnect();\n                resolve(elements);\n            }\n        });\n\n        observer.observe(scope, { childList: true, subtree: true });\n\n        if (timeout) {\n            setTimeout(() => {\n                observer.disconnect();\n                reject('Timed out');\n            }, timeout);\n        }\n    });\n\n/**\n *  Binds an event listener to a callback using native methods and selector matching.\n *  @param {element} element - The element to attach the listener to\n *  @param {string|array} eventTypes - The type of events to listen for\n *  @param {function} callback - The method to run when the event is fired\n *  @param {object} [options={}] - Additional options to configure the event binding\n *  @param {function} [options.eventCondition] - A function that returns a boolean indicating whether to proceed with the callback when the event is triggered\n *  @param {string} [options.bindEngine='native'] - The engine to use when binding the event (native or jQuery)\n *  @param {boolean} [options.once=false] - Whether to fire the event callback only once and then unbind\n */\nexports.bind = (element, eventTypes, callback, options = {}) => {\n    const { eventCondition, bindEngine = 'native', once = false } = options;\n\n    if (!Array.isArray(eventTypes)) eventTypes = eventTypes.split(',').map(type => type.trim());\n\n    const useJQuery = String(bindEngine).toLowerCase() === 'jquery';\n    let { targetSelectors = [] } = options;\n\n    if (typeof targetSelectors === 'string') {\n        targetSelectors = [targetSelectors];\n    }\n\n    const handler = (e, extraData) => {\n        let { target } = e;\n\n        if (extraData instanceof Element || extraData === document) {\n            target = extraData;\n        } else if (extraData instanceof jQuery.Event) {\n            target = extraData.target;\n        } else {\n            e.data = extraData;\n        }\n\n        let targetElement = target;\n\n        if (Array.isArray(targetSelectors) && targetSelectors.length) {\n            // If an array of selectors is provided, store a reference to the closest element that is matched\n            targetElement = targetSelectors.reduce((result, selector) => {\n                if (result) return result;\n                const node = target.closest(selector);\n                if (node) result = { node, selector };\n                return result;\n            }, false);\n        }\n\n        // We need a target element as context or we don't execute our callback\n        if (!targetElement) return;\n\n        const { node, selector } = targetElement;\n\n        // Only execute the callback if the eventCondition allows\n        if (typeof eventCondition === 'function' && !eventCondition(e, node || targetElement)) {\n            return;\n        }\n\n        if (once) {\n            if (useJQuery) {\n                const $element = $(element);\n\n                eventTypes.forEach(eventType => {\n                    $element.off(eventType, handler);\n                });\n            } else {\n                eventTypes.forEach(eventType => {\n                    element.removeEventListener(eventType, handler, true);\n                });\n            }\n        }\n\n        if (node && selector) {\n            callback(e, node, selector);\n        } else {\n            callback(e, targetElement);\n        }\n    };\n\n    if (useJQuery) {\n        const $element = $(element);\n\n        eventTypes.forEach(eventType => {\n            $element.on(eventType, handler);\n        });\n    } else {\n        eventTypes.forEach(eventType => {\n            element.addEventListener(eventType, handler, true);\n        });\n    }\n};\n\n/**\n * get parsed productInfo object from data attribute\n * @param {HTMLElement} container - current product-tile element\n * @return {Object|boolean} parsed object\n */\nexports.getProductInfoFromDataAttr = function (container) {\n    const productInfo = container?.dataset?.productInfo;\n    if (!productInfo) return false;\n\n    let parsedProductInfo;\n    try {\n        parsedProductInfo = JSON.parse(productInfo);\n    } catch {\n        return false;\n    }\n\n    return parsedProductInfo;\n};\n\n/**\n * get adjusted final sale price\n * @param {HTMLElement} container - container that has price\n * @returns {string} - string value price\n */\nexports.getSalesPrice = container => {\n    if (!container) return '';\n\n    const priceEl = queryFirst('.price-section .sales .ssSalesPrice', container);\n    return priceEl && ((priceEl && priceEl.value) || '').split('$').pop();\n};\n\n/**\n * Function to get product data\n * @param {HTMLElement} element - Product container element or srcElement\n * @returns {ProductData} - Product data\n */\nexports.getProductData = element => {\n    const { getNestedValue } = require('./util');\n    const PREORDER_STATUS = 'PREORDER';\n\n    element = element.closest('.color-attribute, .product-tile-swatch, .tile-img-link, .add-to-cart, .account-login-btn, .create-account-btn') || element;\n\n    const container = element.closest('.product, .product-detail') || element.closest('.product-info') || element.closest('.cart-product-line-item') || element;\n    const { dataset } = element;\n    const { dataset: containerData } = container;\n    const { monetatePid, viewType } = containerData;\n    const isQuickview = !!container.closest('.product-quickview');\n\n    let { productInfo, productInventory } = window;\n\n    // Update the product data where possible\n    let pid = containerData.wishlistId || containerData.pid || dataset.pid;\n    let masterId = dataset.masterid || containerData.masterid || containerData.masterId;\n    let productName = dataset.productName || containerData.productName;\n    let productSize = dataset.productSize || containerData.productSize;\n    let swatchName = dataset.swatchName || containerData.swatchName;\n    let { attrValue: colorCode, productSet } = dataset;\n    const { productBadge } = dataset;\n\n    let variationGroupId;\n    let originalPrice;\n    let productPrice;\n    let isPreorder;\n\n    let productId =\n        [dataset.productId, containerData.productId, pid].find(id => {\n            if (id && ~id.indexOf('-')) {\n                if (!variationGroupId) variationGroupId = id;\n\n                return false;\n            }\n\n            return id;\n        }) || '';\n\n    // We need the color code, which is only available on the swatch\n    if (!swatchName || !element.closest('.color-attribute, .product-tile-swatch')) {\n        const colorEl = queryFirst('.color-attribute .swatch-circle.selected, .product-tile-swatch.selected', container) || queryFirst('.selected-swatch-name', container) || queryFirst('.tile-img-link', container);\n        const swatchButton = colorEl && colorEl.closest('.color-attribute');\n\n        swatchName = (colorEl && (colorEl.dataset.attrDisplayvalue || colorEl.dataset.swatchName || colorEl.textContent.trim())) || '';\n        colorCode = (colorEl && colorEl.dataset.attrValue) || '';\n        variationGroupId = variationGroupId || (swatchButton && swatchButton.dataset.productId) || '';\n    }\n\n    // Use the PID if the productId is missing or set to master\n    if (!productId || (productId.length <= 6 && pid)) productId = pid;\n\n    // We need the master ID to look up the product\n    if (!masterId && monetatePid) {\n        masterId = monetatePid.split('-')[0] || '';\n    }\n\n    if (!masterId) {\n        if (pid && (~pid.indexOf('-') || pid.length <= 6)) {\n            masterId = pid.split('-')[0];\n        } else if (productId && ~productId.indexOf('-')) {\n            masterId = productId.split('-')[0];\n        } else {\n            const tileEl = element.closest('.product-tile');\n            masterId = ((tileEl && tileEl.dataset.monetatePid) || '').split('-')[0];\n        }\n    }\n\n    // QuickView productInfo\n    if (isQuickview) {\n        productInfo = getNestedValue(window, 'quickviewProductInfo.productInfo');\n        productInventory = getNestedValue(window, 'quickviewProductInfo.productInventory');\n    }\n\n    // Now we can check the productInfo\n    if (productInfo && masterId && colorCode) {\n        let productData;\n        if (isQuickview) {\n            productData = getNestedValue(productInfo, 'variants.{0}', colorCode);\n        } else {\n            productData = getNestedValue(productInfo, '{0}.variants.{1}', masterId, colorCode);\n        }\n\n        if (productData) {\n            originalPrice = productData.standardPrice + '.00';\n            productPrice = productData.price + '.00';\n            variationGroupId = productData.groupId;\n            isPreorder = productData.isPreorder;\n        }\n    }\n\n    if (!productName) {\n        const productNameEl = queryFirst('.product-name, .line-item-name', container);\n        productName = (productNameEl && productNameEl.textContent.trim()) || '';\n    }\n\n    if (!productSize) {\n        const productSizeEl = queryFirst('.size-btn.selected, .wishlist-item-attribute-size .wishlist-detail-value', container);\n        productSize = (productSizeEl && (productSizeEl.dataset.valueId || productSizeEl.textContent.trim())) || '';\n    }\n\n    if (productSize && pid && viewType !== 'product-tile') {\n        isPreorder = getNestedValue(productInventory?.[masterId], 'variants[{0}].availabilityStatus', pid) === PREORDER_STATUS;\n    }\n\n    if (!originalPrice) {\n        const originalPriceEl = queryFirst('.price-section .ssPrice', container);\n        originalPrice = ((originalPriceEl && originalPriceEl.value) || '').split('$').pop();\n    }\n\n    if (originalPrice && !~originalPrice.indexOf('.')) {\n        originalPrice += '.00';\n    }\n\n    // get sales price\n    if (!productPrice) productPrice = this.getSalesPrice(container) || '';\n\n    // get last adjusted price (after all promotions) from data-product-info\n    if (!productPrice) {\n        const productInfoData = this.getProductInfoFromDataAttr(queryFirst('.js-product-tile', container));\n        const variants = productInfoData && getNestedValue(productInfoData, '{0}.variants', masterId);\n        if (variants) {\n            const colorCode = Object.keys(variants).find(variant => variants[variant].groupId === pid);\n            const formattedPrice = colorCode && variants[colorCode]?.formattedPrice;\n            if (formattedPrice) productPrice = formattedPrice.split('$').pop();\n        }\n    }\n\n    if (productPrice && !~productPrice.indexOf('.')) {\n        productPrice += '.00';\n    }\n\n    if (!swatchName) {\n        swatchName = dataset.swatchName || '';\n    }\n\n    // Sanity check\n    if (masterId && masterId.length > 6) masterId = '';\n    if (productId && (~productId.indexOf('-') || productId.length <= 6)) productId = '';\n    if (variationGroupId && !~variationGroupId.indexOf('-')) variationGroupId = '';\n    if (productSet === 'null') productSet = ''; // not all PLP tiles have data-product-set\n\n    return {\n        colorCode,\n        masterId,\n        originalPrice,\n        productColor: swatchName,\n        productId,\n        productName,\n        productPrice,\n        productSize,\n        variationGroupId,\n        isPreorder,\n        productBadge,\n        productSet\n    };\n};\n\n/**\n * Check whether the device matches the specified breakpoint at a minimum (i.e. min-width)\n * @param {string} breakpoint - The breakpoint to match against (xs; sm; md; lg; xl)\n * @returns {boolean} - Whether the device matches the breakpoint\n */\nexports.matchesBreakpoint = breakpoint => breakpoint in breakpoints && window.matchMedia(`(min-width: ${breakpoints[breakpoint]}px)`).matches;\n\nexports.getCSRFToken = (scope = document.body) => {\n    const token = scope.querySelector('.csrf-token');\n    return (token && token.value) || '';\n};\n\n/**\n * Renders a string into a template and returns the DOM Fragment.\n * @param {string} html - the html content.\n * @returns {DocumentFragment} - The input string as a document fragment\n */\nexports.renderFragment = html => {\n    const template = document.createElement('template');\n    template.innerHTML = html;\n    return template.content;\n};\n\n/**\n * Gets all accessible cookies and creates a plain key/value object\n * @returns {Object} Plain object containing cookie names and values\n */\nexports.getCookieMap = () =>\n    document.cookie.split(';').reduce((result, keyValue) => {\n        const [key, value] = keyValue.trim().split('=');\n        result[key] = decodeURIComponent(value);\n        return result;\n    }, {});\n\n/**\n * Sets a cookie\n * @param {string} key - the name of the cookie\n * @param {string} value - the value of the cookie\n * @param {number} [minutes] - how long until the cookie expires in minutes\n */\nexports.setCookie = (key, value, minutes) => {\n    let date;\n    if (minutes) {\n        date = new Date();\n        date.setTime(date.getTime() + minutes * 60 * 1000);\n    }\n\n    document.cookie = `${key}=${value}${date ? `; expires=${date.toGMTString()}` : ''}; path=/`;\n};\n\n/**\n * Validating the date as per month\n */\nexports.validateDate = () => {\n    const monthSelector = document.getElementById('birthdaymonth');\n    const dateSelector = document.getElementById('birthdaydate');\n\n    if (monthSelector && dateSelector) {\n        const { message } = dateSelector.dataset;\n        /**\n         * Validating date\n         */\n        function validateDateOption() {\n            const m = monthSelector.value;\n            const d = dateSelector.value;\n            const mlength = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][m];\n            dateSelector.length = 0;\n            let isSelectModified = true;\n            const labelOption = new Option();\n            labelOption.text = message;\n            labelOption.value = '';\n            dateSelector.add(labelOption);\n            for (let i = 1; i <= mlength; i++) {\n                const option = new Option();\n                option.value = i;\n                option.text = i;\n                if (i.toString() === d) {\n                    option.selected = true;\n                    isSelectModified = false;\n                }\n                dateSelector.add(option);\n            }\n            if (isSelectModified) {\n                const changeEvent = new Event('change');\n                dateSelector.dispatchEvent(changeEvent);\n            }\n        }\n        monthSelector.addEventListener('change', validateDateOption);\n    }\n};\n\n/**\n * Returns whether an element's content is visible to the user\n * Note that this differs from existing implementations like JQuery :visible -- this will return false\n * for elements which are visibility: hidden or which are overflow hidden with 0 height.\n * @param {HTMLElement} element - The element whose visibility to check\n * @returns {boolean} true if the element is visible, false otherwise.\n */\nexports.isVisible = function (element) {\n    if (!(element instanceof HTMLElement)) return false;\n\n    // Check if the element is hidden using more performant methods first\n    // We can't check for d-none here because we use conventions like \"d-none d-md-block\" on the site.\n    if (exports.hasClass(element, 'invisible') || element.offsetParent === null) return false;\n\n    const style = window.getComputedStyle(element);\n    return !(style.display === 'none' || style.visibility === 'hidden' || (style.overflowY === 'hidden' && (style.height === '0px' || style.maxHeight === '0px')));\n};\n\n/**\n * Converts a basic object to FormData\n * @param {Object} obj - the object to convert to FormData\n * @param {boolean} [includeUndefined=false] - include undefined values in the result\n * @returns {FormData} FormData representation of the object\n */\nexports.toFormData = (obj, includeUndefined = false) =>\n    Object.keys(obj).reduce((formData, key) => {\n        const value = obj[key];\n        if (typeof value !== 'undefined' || includeUndefined) formData.append(key, value);\n        return formData;\n    }, new FormData());\n\n/**\n * Slides an element up to hide it\n * @param {HTMLElement} elem - the element to animate\n * @param {number} duration - the duration of the animation in milliseconds\n * @param {string} easing - the easing function to use for the animation\n * @returns {Promise} - a promise which will resolve when the animation duration has elapsed\n */\nexports.slideUp = (elem, duration = ANIM_TIME_STANDARD_1, easing = ANIM_EASE_IN_OUT) => {\n    if (elem) {\n        const { addClass } = this;\n        const staticHeight = getComputedStyle(elem).getPropertyValue('height');\n        elem.style.setProperty('--anim-static-height', staticHeight);\n        elem.style.setProperty('--slide-up-duration', `${duration}ms`);\n        elem.style.setProperty('--slide-up-ease', easing);\n        addClass(elem, 'animate');\n\n        // small delay is needed to process the new height added by the animate class before animating\n        setTimeout(() => {\n            addClass(elem, 'animate-slide-up');\n        }, 10);\n    }\n\n    return new Promise(resolve => {\n        setTimeout(() => {\n            resolve();\n        }, duration);\n    });\n};\n\n/**\n * determines if it is recommendation ptoduct from Interaction Studio in mini-cart\n * @param {HTMLElement} srcElement - 'add to cart' button element\n * @returns {HTMLElement|undefined} - IS product container\n */\nexports.getISProductContainer = srcElement => {\n    const ISProductContainer = srcElement && srcElement.closest('.mini-cart-container #evg-minicart-recs');\n    return ISProductContainer && ISProductContainer.contains(srcElement) && ISProductContainer;\n};\n\n/**\n * get product data from Interaction Studio container\n * @param {HTMLElement} container - IS product container\n * @returns {Object} - IS product data\n */\nexports.getISProductData = container => {\n    const { dataset } = queryFirst('.tile-img-link', container);\n    const { evgItemId, productName, productSize, masterid } = dataset;\n\n    return {\n        productName: productName,\n        productId: evgItemId,\n        productSize,\n        masterId: masterid,\n        productColor: queryFirst('.evg-product-color', container)?.getElementsByTagName('div')[1]?.textContent,\n        productPrice: this.getSalesPrice(container)\n    };\n};\n\n/**\n * set adjusted sale price to tealiumPrices array\n * @param {Object} vgIDs - variation groups IDs array\n * @param {Object} tealiumPrices - tealium prices array\n * @returns {Object|boolean} - array with adjusted prices\n */\nexports.setAdjustedSalesPrice = (vgIDs, tealiumPrices) => {\n    if (!vgIDs || !tealiumPrices || vgIDs.length !== tealiumPrices.length) return false;\n\n    const searchResultsContainer = queryFirst('.search-results.container');\n    if (!searchResultsContainer) return false;\n\n    for (let i = 0, len = vgIDs.length; i < len; i++) {\n        const container = searchResultsContainer.querySelector('.js-product-tile-container:has([data-product-id=\"' + vgIDs[i] + '\"])');\n        const adjustedPrice = container && this.getSalesPrice(container);\n        if (adjustedPrice && adjustedPrice !== tealiumPrices[i]) tealiumPrices[i] = adjustedPrice;\n    }\n\n    return tealiumPrices;\n};\n\nexports.getStyles = getStyles;\nexports.queryAll = queryAll;\n","'use strict';\n\n/**\n * Helper module for initialization popover elements\n *\n * @module popover\n */\n\nconst { queryFirst, queryAll, hasClass } = require('./domUtil');\n\nconst phInfoPopover = queryFirst('.ph-number-info-popover .content-asset');\nconst fpoInfoPopover = queryFirst('.fpo-info-popover .content-asset');\nconst checkoutBenefitsInfoPopover = queryFirst('.checkout-benefits-info .checkout-benefits-info-content');\nconst cvvInfoPopover = queryFirst('.cvv-info-popover .cvv-info-popover-content');\nconst giftCardInfoPopover = queryFirst('.gift-card-number-info-popover .content-asset');\nconst deliveryFeeInfoPopover = queryFirst('.delivery-fee-info-popover .content-asset');\nconst boltSignoutMessage = queryFirst('.bolt-logout-button .bolt-sign-out');\nconst earlyAccessMessage = queryFirst('.loyalty-early-access-lock-container .early-access-container-tooltip');\nconst giftReturnNumberInfoPopover = queryFirst('.gift-return-order-no-popover .content-asset');\nconst keepUserSignedInPopover = queryFirst('.remember-me .keep-user-signed-in');\nconst keepUserSignedInContainer = queryFirst('.remember-me .logged-in-user-notification');\nconst earlyAccessLockedSelector = '.loyalty-early-access-locked';\nconst pdpChatWrapper = queryFirst('.pdp-chat');\nconst pdpChatPopover = queryFirst('.js-toggle-chat-popover');\nconst pdpChatContainer = queryFirst('.pdp-chat-container');\nconst keepUserSignedInPopoverCheckoutPage = queryFirst('.existing-customer-sheet .keep-user-signed-in');\n\n// default popover options on hover\nconst POPOVER_HOVER_BOTTOM = {\n    trigger: 'hover',\n    placement: 'bottom',\n    html: true\n};\n\nconst initPopover = (selector, container, ...options) => {\n    const popoverOptions = Object.assign({}, POPOVER_HOVER_BOTTOM, ...options);\n    $(selector, container || document.body).popover(popoverOptions);\n};\n\n// default popover option on click\nconst POPOVER_CLICK_BOTTOM = {\n    trigger: 'click',\n    placement: 'bottom',\n    html: true\n};\n\n/*\n * Handle clicks outside of popover in order to close it\n */\nconst initPopoverClose = container => {\n    // since it can be called dynamically, first we get rid of old events\n    $('[data-toggle=\"popover\"]', container || document.body)\n        .off('shown.bs.popover')\n        .on('shown.bs.popover', function (e) {\n            const { target } = e;\n            $(document).one('click', function (clickEvent) {\n                const clicked = clickEvent.target;\n                if (clicked !== target && clicked.parentElement !== target && $('.popover.show').length) {\n                    $(target).trigger('click');\n                }\n            });\n        });\n};\n\n/*\n * Assign custom close event on custom selector\n */\nconst initPopoverCloseSelector = container => {\n    $('[data-close-popover-selector]', container || document.body).on('click', function () {\n        const tooltipSelector = $(this).data('close-popover-selector');\n        $(tooltipSelector).popover('hide');\n    });\n};\n\n/**\n * Initializing popover for promotions on a page\n */\nconst initPopoverPromotions = () => {\n    queryAll('.promotions-info').forEach(button => {\n        const popoverContent = queryFirst('.promotions-info-popover .promotions-info-popover-content', button.parentElement);\n\n        $(button).popover({\n            trigger: 'click',\n            placement: 'bottom',\n            html: true,\n            content: popoverContent\n        });\n    });\n};\n\n/**\n * Initializing popover for strike hearts on a page\n */\nconst initPopoverWishList = () => {\n    queryAll('.strike-wish-list').forEach(button => {\n        const popoverContent = button.dataset.content;\n        $(button).popover({\n            placement: 'bottom',\n            trigger: 'hover click',\n            html: true,\n            content: popoverContent\n        });\n    });\n};\n\n/**\n * Early access locked message popover\n */\nconst initPopoverEarlyAccessLocked = container => {\n    const earlyAccessMessage = queryFirst('.loyalty-early-access-lock-container .early-access-container-tooltip');\n\n    if (hasClass(queryFirst(earlyAccessLockedSelector), 'has-early-access-container')) {\n        initPopover(earlyAccessLockedSelector, container, {\n            content: earlyAccessMessage\n        });\n    }\n};\n\nconst initPopoverAllLocal = container => {\n    const birthdayInfoPopover = queryFirst('.birthday-info-popover .content-asset');\n\n    initPopover('.ph-number-info', container, {\n        content: phInfoPopover\n    });\n\n    const popoverIcons = queryAll('.loyalty-tooltip-icon');\n    popoverIcons.forEach(tooltipIcon => {\n        const popContent = queryFirst('.loyalty-tooltip-popover', tooltipIcon.parentElement);\n        initPopover(tooltipIcon, container, {\n            content: popContent,\n            placement: 'bottom'\n        });\n    });\n\n    initPopover('.birthday-info', container, {\n        content: birthdayInfoPopover,\n        customClass: 'birthday-popover'\n    });\n\n    initPopover('.fpo-info', container, {\n        content: fpoInfoPopover\n    });\n\n    initPopover('.checkout-benefits-info', container, {\n        container: '.new-customers',\n        offset: '160 0',\n        content: checkoutBenefitsInfoPopover\n    });\n\n    initPopover('.cvv-info', container, {\n        content: cvvInfoPopover\n    });\n\n    initPopover('.gift-return-order-no', container, POPOVER_CLICK_BOTTOM, {\n        content: giftReturnNumberInfoPopover\n    });\n\n    initPopover('.gift-card-number-info', container, {\n        content: giftCardInfoPopover\n    });\n\n    initPopover('.delivery-fee-info', container, {\n        content: deliveryFeeInfoPopover\n    });\n\n    initPopover('.bolt-logout-button-container', container, POPOVER_CLICK_BOTTOM, {\n        content: boltSignoutMessage\n    });\n\n    initPopoverPromotions();\n    initPopoverWishList();\n\n    if (hasClass(queryFirst(earlyAccessLockedSelector), 'has-early-access-container')) {\n        initPopover(earlyAccessLockedSelector, container, {\n            content: earlyAccessMessage\n        });\n    }\n\n    initPopover(keepUserSignedInPopover, container, POPOVER_CLICK_BOTTOM, {\n        content: keepUserSignedInContainer\n    });\n\n    initPopover(keepUserSignedInPopoverCheckoutPage, container, {\n        content: keepUserSignedInContainer\n    });\n\n    initPopover(pdpChatPopover, container, POPOVER_CLICK_BOTTOM, {\n        html: true,\n        container: pdpChatWrapper,\n        placement: 'bottom',\n        content: pdpChatContainer\n    });\n\n    initPopoverClose(container);\n    initPopoverCloseSelector(container);\n};\n\n/**\n * Attach search related events\n */\nfunction attachSearchEvents() {\n    const body = $(document.body); // Використовуємо jQuery для вибору body\n\n    body.on('search:updateProducts', () => {\n        initPopoverAllLocal();\n    });\n\n    body.on('search:showMore', () => {\n        initPopoverAllLocal();\n    });\n\n    body.on('search:densityChange', () => {\n        initPopoverAllLocal();\n    });\n\n    document.addEventListener('slot-loaded', e => {\n        const { target } = e;\n        initPopoverAllLocal(target);\n    });\n\n    body.on('sheet:injectForm', () => {\n        initPopoverAllLocal();\n    });\n}\n\n/**\n * All of usual popover elements on site\n * TODO: Ideally refactor to something dynamical, when it appear in DOM - initialize it\n */\nconst initPopoverAll = () => {\n    attachSearchEvents();\n    initPopoverAllLocal();\n};\n\nmodule.exports.POPOVER_HOVER_BOTTOM = POPOVER_HOVER_BOTTOM;\n// export the initialization function for places where popover may be initialized dynamically\nmodule.exports.initPopoverClose = initPopoverClose;\nmodule.exports.initPopoverCloseSelector = initPopoverCloseSelector;\n// export function for single initialization of popover\nmodule.exports.initPopover = initPopover;\nmodule.exports.initPopoverPromotions = initPopoverPromotions;\nmodule.exports.initPopoverEarlyAccessLocked = initPopoverEarlyAccessLocked;\nmodule.exports.initPopoverAll = initPopoverAll;\nmodule.exports.initPopoverWishList = initPopoverWishList;\n","'use strict';\n\nimport { queryFirst, addClass, queryAll } from '../domUtil';\nimport { getNestedValue } from '../util';\nimport { productDetail } from '../templates';\nimport { getStoredDataLayerInfo } from 'analytics/util/analytics-util';\nimport { P_PRODUCT_LIST_KEY, P_PROMO_NAME_KEY, P_PROMO_CREATIVE_NAME } from 'analytics/util/constants';\n\nconst { selectStyleMessageTmpl, ispuSelectStyleMessageTmpl } = productDetail;\n\n/**\n * Function to check if shipping preferences view is enabled or not\n * @returns { boolean } - returns isEnabled flag value\n */\nfunction isShippingPreferencesViewEnabled() {\n    return getNestedValue(window, 'lillyUtils.shippingPreferencesConfig.isEnabled') || false;\n}\n\n/**\n * Function to toggle select color or size info\n * @param {HTMLElement} productContainer - current product element\n */\nfunction toggleSelectSizeInfo(productContainer) {\n    const selectedSizeEl = queryFirst('.size-btn.selected', productContainer);\n    const addProductErrorEl = queryFirst('.js-add-product-errors', productContainer);\n    if (addProductErrorEl) {\n        if (!selectedSizeEl) {\n            addProductErrorEl.innerHTML = selectStyleMessageTmpl(addProductErrorEl.dataset.selectStylesMessage);\n            addClass(queryFirst('.pdp-attribute-name', productContainer), 'm-error');\n        }\n    }\n\n    if (isShippingPreferencesViewEnabled()) {\n        const ispuAvailabilityMessageEl = queryFirst('.ispu-preference-container .select-size-info-msg', productContainer);\n        if (ispuAvailabilityMessageEl) {\n            const messages = getNestedValue(window, 'lillyUtils.shippingPreferencesConfig.messages') || {};\n            const { selectStylesMessage } = messages;\n            if (!selectedSizeEl && selectStylesMessage) {\n                ispuAvailabilityMessageEl.innerHTML = ispuSelectStyleMessageTmpl(selectStylesMessage);\n            }\n        }\n    }\n}\n/**\n * Helper method to check if product is on early access or not\n * @param {Object|String} earlyAccess - product | early access date\n * @return {Boolean} true, if early access product or false for not\n */\nfunction isEarlyAccessElement(earlyAccess) {\n    let isEarlyAccessItem = false;\n    const earlyAccessDate = (earlyAccess && earlyAccess.earlyAccessUntilDate) || earlyAccess;\n    if (earlyAccessDate && earlyAccessDate !== 'false') {\n        if (new Date(earlyAccessDate).getTime() > new Date().getTime()) {\n            isEarlyAccessItem = true;\n        }\n    }\n    return isEarlyAccessItem;\n}\n\n/**\n * enable/disable addAllToTote button for the shopTheLook\n * @param {HTMLElement} container - shopThelook container\n */\nfunction enableAddAllToToteButton(container) {\n    if (!container) return;\n\n    const addAllToCartButton = queryFirst('.js-add-to-cart-global', container);\n    if (queryAll('.js-set-item', container).length === queryAll('.size-btn.selected', container).length) {\n        addAllToCartButton.removeAttribute('disabled');\n        addAllToCartButton.innerHTML = addAllToCartButton.dataset.addAllLabel;\n    } else {\n        addAllToCartButton.setAttribute('disabled', true);\n        addAllToCartButton.innerHTML = addAllToCartButton.dataset.selectSizeLabel;\n    }\n}\n\n/**\n * Get analytics data to be associated with a product line item when adding to cart\n * @returns {Object} analytics data\n */\nfunction getAddToCartAnalyticsData() {\n    const promoName = getStoredDataLayerInfo(P_PROMO_NAME_KEY);\n    const promoCreativeName = getStoredDataLayerInfo(P_PROMO_CREATIVE_NAME);\n    const listName = getStoredDataLayerInfo(P_PRODUCT_LIST_KEY);\n    const data = {};\n\n    if (promoName && Array.isArray(promoName)) data.utagPromoName = promoName[0]; // promo_name should always be an array, but we don't want to store it that way on the BE\n    if (promoCreativeName && Array.isArray(promoCreativeName)) data.utagPromoCreativeName = promoCreativeName[0];\n    if (listName) data.utagListName = listName;\n\n    return data;\n}\n\nexport { toggleSelectSizeInfo, isEarlyAccessElement, isShippingPreferencesViewEnabled, enableAddAllToToteButton, getAddToCartAnalyticsData };\n","// css class constants\nexport const CLASS_PRODUCT_TILE = 'js-product-tile';\nexport const CLASS_PRODUCT_TILE_INIT_EVENT_ATTACHED = 'js-init-event-attached';\nexport const CLASS_PRODUCT_TILE_LINK = 'js-product-tile-link';\nexport const CLASS_PRODUCT_TILE_CONTAINER = 'js-product-tile-container';\nexport const CLASS_SIZE_SELECTED = 'selected';\nexport const CLASS_SWATCH_SELECTED = CLASS_SIZE_SELECTED;\nexport const CLASS_SIZE_SELECTED_ASSISTIVE_TEXT = 'js-selected-assistive-text';\nexport const CLASS_SIZE_LIST = 'js-size-list';\nexport const CLASS_ADD_TO_CART_BTN = 'js-tile-add-to-cart';\nexport const CLASS_TILE_SWATCH = 'js-tile-swatch';\nexport const CLASS_TILE_SWATCH_NOT_AVAILABLE = 'not-available';\nexport const CLASS_TILE_SIZE_SELECTOR = 'js-size-selector';\nexport const CLASS_TILE_SIZE_BTN = 'size-btn';\nexport const CLASS_NOTIFY_ME_BTN = 'js-product-tile-notify-me-btn';\nexport const CLASS_AVAILABILITY_MSG = 'js-availability-msg';\nexport const CLASS_AVAILABILITY_MSG_TEXT = 'js-availability-msg-text';\nexport const CLASS_EARLY_ACCESS_WRAPPER = 'js-early-access-wrapper';\nexport const CLASS_EARLY_ACCESS_CTA_SIGN_IN = 'js-early-access-sign-in-cta';\nexport const CLASS_EARLY_ACCESS_CTA_SIGN_UP = 'js-early-access-sign-up-cta';\nexport const CLASS_NOTIFY_ME_DIALOG_WRAPPER = 'js-notify-me-dialog-wrapper';\nexport const CLASS_NOTIFY_ME_DIALOG_PID_INPUT = 'js-notify-sku';\nexport const CLASS_NOTIFY_ME_DIALOG_CONTAINER = 'js-notify-me-container';\nexport const CLASS_TILE_IMAGE_CAROUSEL_IMAGE = 'lazy-image';\nexport const CLASS_PRODUCT_GRID = 'js-product-grid';\nexport const CLASS_BADGE_HIDE = 'hide';\nexport const CLASS_BADGE_SHOW = 'show';\nexport const CLASS_SOLDOUT_MSG = 'js-soldout-msg';\nexport const CLASS_TILE_PRICE_WRAPPER = 'js-tile-price-wrapper';\n\n// global selectors\nexport const SELECTOR_PRODUCT_TILE = `.${CLASS_PRODUCT_TILE}`;\nexport const SELECTOR_PRODUCT_TILE_CONTAINER = `.${CLASS_PRODUCT_TILE_CONTAINER}`;\nexport const SELECTOR_PRODUCT_TILE_INIT_EVENT_NOT_ATTACHED = `.${CLASS_PRODUCT_TILE}:not([data-is-initialized])`;\nexport const SELECTOR_PRODUCT_TILE_LINK = `.${CLASS_PRODUCT_TILE_LINK}`;\nexport const SELECTOR_ADD_TO_CART_BTN = `.${CLASS_ADD_TO_CART_BTN}`;\n\nexport const SELECTOR_TILE_SWATCH = `.${CLASS_TILE_SWATCH}`;\nexport const SELECTOR_TILE_SWATCH_SELECTED = `${SELECTOR_TILE_SWATCH}.${CLASS_SIZE_SELECTED}`;\nexport const SELECTOR_SIZE_SELECTED_ASSISTIVE_TEXT = `.${CLASS_SIZE_SELECTED_ASSISTIVE_TEXT}`;\nexport const SELECTOR_SIZE_SELECTOR = `.${CLASS_TILE_SIZE_SELECTOR}`;\nexport const SELECTOR_SIZE_BTN = `.${CLASS_TILE_SIZE_BTN}`;\nexport const SELECTOR_SIZE_BTN_SELECTED = `.${CLASS_TILE_SIZE_BTN}.${CLASS_SIZE_SELECTED}`;\nexport const SELECTOR_SIZE_LIST = `.${CLASS_SIZE_LIST}`;\nexport const SELECTOR_SIZE_BTN_IN_TILE = `${SELECTOR_PRODUCT_TILE} ${SELECTOR_SIZE_BTN}`;\nexport const SELECTOR_NOTIFY_ME_BTN = `.${CLASS_NOTIFY_ME_BTN}`;\nexport const SELECTOR_AVAILABILITY_MSG = `.${CLASS_AVAILABILITY_MSG}`;\nexport const SELECTOR_AVAILABILITY_MSG_TEXT = `.${CLASS_AVAILABILITY_MSG} .${CLASS_AVAILABILITY_MSG_TEXT}`;\n\nexport const SELECTOR_EARLY_ACCESS_WRAPPER = `.${CLASS_EARLY_ACCESS_WRAPPER}`;\nexport const SELECTOR_EARLY_ACCESS_CTA_SIGN_IN = `${SELECTOR_EARLY_ACCESS_WRAPPER} .${CLASS_EARLY_ACCESS_CTA_SIGN_IN}`;\nexport const SELECTOR_EARLY_ACCESS_CTA_SIGN_UP = `${SELECTOR_EARLY_ACCESS_WRAPPER} .${CLASS_EARLY_ACCESS_CTA_SIGN_UP}`;\n\nexport const SELECTOR_NOTIFY_ME_DIALOG_PID_INPUT = `.${CLASS_NOTIFY_ME_DIALOG_WRAPPER} .${CLASS_NOTIFY_ME_DIALOG_PID_INPUT}`;\nexport const SELECTOR_NOTIFY_ME_DIALOG_CONTAINER = `.${CLASS_NOTIFY_ME_DIALOG_WRAPPER} .${CLASS_NOTIFY_ME_DIALOG_CONTAINER}`;\nexport const SELECTOR_NOTIFY_ME_DIALOG_FORM = 'form';\nexport const SELECTOR_TILE_IMAGE_CAROUSEL_IMAGE = `.${CLASS_TILE_IMAGE_CAROUSEL_IMAGE}`;\nexport const SELECTOR_PRODUCT_GRID = `.${CLASS_PRODUCT_GRID}`;\nexport const SELECTOR_SOLDOUT_MSG = `.${CLASS_SOLDOUT_MSG}`;\nexport const SELECTOR_TILE_PRICE_WRAPPER = `.${CLASS_TILE_PRICE_WRAPPER}`;\n","import { getCookieMap } from '../../domUtil';\nconst SELECTOR_PRODUCT_GRID = '.js-product-grid';\n\n/**\n * Get density value from cookies\n * @returns {null|string} cookie density value\n */\nexport function getCookieDensityValue() {\n    const cookieMap = getCookieMap();\n    if ('density' in cookieMap) {\n        return cookieMap.density;\n    }\n    return 'medium'; // if empty in cookie return default;\n}\n\n/**\n * Check is low density grid\n * @param {HTMLElement} productTileEl product Tile element\n * @returns {boolean} returns true if low density grid\n */\nexport function isLowGridDensity() {\n    if (!document.querySelector(SELECTOR_PRODUCT_GRID)) {\n        return false;\n    }\n    return getCookieDensityValue() === 'low';\n}\n\n/**\n * Check is medium density grid\n * @param {HTMLElement} productTileEl product Tile element\n * @returns {boolean} returns true if low density grid\n */\nexport function isMediumGridDensity() {\n    if (!document.querySelector(SELECTOR_PRODUCT_GRID)) {\n        return false;\n    }\n    return getCookieDensityValue() === 'medium';\n}\n\n/**\n * Check is high density grid\n * @param {HTMLElement} productTileEl product Tile element\n * @returns {boolean} returns true if low density grid\n */\nexport function isHighGridDensity() {\n    if (!document.querySelector(SELECTOR_PRODUCT_GRID)) {\n        return false;\n    }\n    return getCookieDensityValue() === 'high';\n}\n","/**\n * HTML Templates for use in client-side rendering.\n *\n * @module dom.templates\n * @version 1.0.0\n */\n\n'use strict';\n\n/**\n * QuickView Templates\n */\nexports.quickView = {\n    container: '<div class=\"quickview-container col-12 hidden-md-down\"></div>',\n    quickViewModal: `\n        <div class=\"modal fade\" id=\"quickViewModal\" role=\"dialog\" tabindex=\"-1\">\n            <span class=\"enter-message sr-only\"></span>\n            <div class=\"modal-dialog modal-dialog-centered quick-view-dialog\">\n                <div class=\"modal-content\">\n                    <div class=\"modal-body\"></div>\n                </div>\n            </div>\n        </div>\n    `\n};\n\n/**\n * Get All Wishlist Collection Templates\n */\nexports.addToWishlist = {\n    container: '<div class=\"addToWishlist-container col-12 hidden-md-down\"></div>',\n    addToWishlistModal: `\n    <div class=\"modal fade add-product-to-wishlist-dialog\" id=\"addToWishlistModal\" tabindex=\"-1\" role=\"dialog\">\n            <span class=\"enter-message sr-only\"></span>\n            <div class=\"modal-dialog\">\n                <div class=\"modal-content\">\n                    <div class=\"generic-confirmation-header\">\n                        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n                            <svg role=\"img\" aria-describedby=\"add-to-wishlist-cross-title add-to-wishlist-cross-desc\" class=\"icon svg-icon svg-logo-dims\" width=\"16.0\" height=\"16.0\">\n                                <title id=\"add-to-wishlist-cross-title\">Close dialog</title>\n                                <desc id=\"add-to-wishlist-cross-desc\">Cross mark icon to close this dialog</desc>\n                                <use xlink:href=\"#cross\" role=\"img\"></use>\n                            </svg>\n                        </button>\n                    </div>\n                    <div class=\"modal-body\"></div>\n                </div>\n            </div>\n    </div>\n    <isinclude template=\"wishlist/components/createWishlist\" />\n\n    `\n};\n\n/**\n * Cart error message template\n */\nexports.cart = {\n    errorMessage: '<div class=\"cart-error-message\">{0}</div>',\n    cartAvailabilityMessageOOS: (message, url) => `\n        <li><p class=\"availability-message-text\" role=\"alert\">${message}\n            <a href=\"${url}\" class=\"similar-styles-category-link icon-link\">Browse Similar Styles</a></p>\n        </li>\n    `\n};\n\n/**\n * Cart & Checkout promo template\n */\nexports.promo = {\n    shippingMethod: `\n        <div class=\"cart-totals-line shipping-item\">\n            <div class=\"shipping-item-name\">\n                {0}:\n                <span class=\"shipping-method-name\">{1}</span>\n            </div>\n            <div class=\"shipping-total-cost\">{2}</div>\n            <div class=\"shipping-arrival\">\n                <span class=\"shipping-arrival-time\">{3}</span>\n            </div>\n        </div>`,\n    checkoutNormalShipping: '<span class=\"text-right pricing shipping-method-price\">{0}</span>',\n    checkoutDiscountShipping: `\n        <del class=\"text-right pricing shipping-method-price\">{0}</del>\n        <span>{1}</span>\n    `\n};\n\n/**\n * Checkout template\n */\nexports.checkout = {\n    discountPrice: '<del class=\"shipping-cost\">{0}</del><span>{1}</span>'\n};\n\n/**\n * Selected swatch name template\n */\nexports.swatchNameTemplate = {\n    swatchNameHtml: '<p class=\"selected-swatch-name\">Color: {0}</p>'\n};\n\nexports.emptySwatchTemplate = '<span class=\"swatches-empty\">{0}</span>';\n\n/*\n * Address Suggestions template\n */\nexports.addressSuggestions = {\n    suggestionTextTemplate: '<p class=\"address-suggestion-text\"></p>',\n    suggestionsTemplate: `\n        <div id=\"address-suggestions-template\">\n            <div class=\"form-check custom-radio\">\n            <input type=\"radio\" class=\"form-check-input\" id=\"addressSuggestion\" name=\"addressSuggestion\">\n            <label class=\"form-check-label shipping-address-option\" for=\"addressSuggestion\">\n                <span class=\"address-suggestion\"></span>\n            </label>\n            </div>\n        </div>`\n};\n\n/*\n * Approaching Discounts template\n */\nexports.approachingDiscounts = {\n    nonCouponBasedAdjustmentTemplate: `<div class=\"cart-totals-line price-container promo-container\">\n            <div class=\"price-text\">{0}</div>\n            <div class=\"price-value\">{1}</div>\n            <div class=\"promo-description\">{2}</div>\n        </div>`\n};\n\n/**\n * Video Template\n * @param  {Object} options video setting values\n * @return {html} video html template\n */\nexports.videoTemplate = (options = {}) => {\n    // Note: I don't believe this template is used anywhere anymore\n    const { loop = '', videoUrl = '', imgUrl = '', classNames = '', autoplay = false, muted = true, controls = false, icontitle = '', icondesc = '' } = options;\n\n    return `\n        <div class=\"video-component ${classNames}\">\n            <video class=\"video\" playsinline ${autoplay ? 'autoplay' : ''} ${loop ? 'loop' : ''}  ${muted ? 'muted' : ''} poster=\"${imgUrl} ${controls ? 'controls' : ''}>\n                <source src=\"${videoUrl}\" type=\"video/mp4\" />\n            </video>\n            <button class=\"play-video\">\n                <svg role=\"img\" class=\"icon svg-icon svg-video-play\" width=\"16\" height=\"16\" aria-labelledby=\"title\" aria-describedby=\"desc\">\n                    <title>${icontitle}</title>\n                    <desc>${icondesc}</desc>\n                    <use xlink:href=\"#play\" role=\"img\"></use>\n                </svg>\n            </button>\n        </div>\n    `;\n};\n\n/**\n * Image Template\n * @param  {string} imgUrl value\n * @param  {string} altText value\n * @param  {string} classNames value\n * @return {html} video html template\n */\nexports.imageTemplate = (imgUrl, altText, classNames) => {\n    return `\n        <div class=\"image-component ${classNames}\">\n            <img class=\"w-100\" src=\"${imgUrl}\" alt=\"${altText}\"/>\n        </div>\n    `;\n};\n\n/**\n * Size option template\n * @param  {string} url - Size variant url\n * @param  {string} value - Size value\n * @return {html} size option html template\n */\nexports.sizeOptionTemplate = (url, value) => {\n    return `<option value=\"${url}\" data-attr-value=\"${value}\">${value}</option>`;\n};\n\n/**\n * Function to rerender size button element\n * @param {Object} variantData - variant details\n * @param {string} ariaLabel - aria label\n * @param {string} ariaDescribedby - aria described by\n * @param {string} selectedText - selected text\n * @param {string} oosMessage - out of the stock text\n * @param {number} length - length of sizes\n * @return {html} size button html template\n */\nexports.sizeButtonTemplate = (variantData, ariaLabel, ariaDescribedby, selectedText, oosMessage, length) => {\n    const { selected, forceOutOfStock, inStock, value, url, sizeId } = variantData;\n    return `<li class=\"size-list js-size-list ${length === 1 ? 'd-none' : ''}\">\n                <button class=\"btn size-btn ${selected ? 'selected' : ''} ${!inStock || forceOutOfStock ? 'not-available' : ''}\" title=\"${ariaLabel}\" data-attr-url=\"${url || ''}\"\n                data-attr-value=\"${value}\" data-value-id=\"${value}\" aria-label=\"${ariaLabel}\" aria-describedby=\"${ariaDescribedby}\" data-variation-id=\"${sizeId}\"><span>${value}</span></button>\n                <span id=\"${ariaDescribedby}\" class=\"sr-only selected-assistive-text\" data-selected-text=\"${selectedText}\" data-out-of-stock=\"${oosMessage}\">${selected ? selectedText : ''} ${!inStock || forceOutOfStock ? oosMessage : ''}</span>\n            </li>`;\n};\n\n/**\n * Function to render empty wishlist markup for guest user\n * @param {string} emptyWishlistMessage - empty wishlist message\n * @return {html} wishlist html template\n */\nexports.guestEmptyWishlistTemplate = (emptyWishlistMessage, emptyWishlistContentAssetBody) => {\n    return `<div class=\"col-12 col-md-6 empty-wishlist\">\n                <div class=\"empty-list-user-section\">\n                    <p class=\"non-logged-user-message\">${emptyWishlistMessage}</p>\n                    ${emptyWishlistContentAssetBody}\n                </div>\n            </div>`;\n};\n\n/**\n * Function to render empty wishlist markup for guest user\n * @param {string} emptySFLMessage - empty SFL message\n * @param {string} continueShopURL - continue shopping URL\n * @param {string} continueShopMsg - continue shopping message\n * @param {string} signInMsg - sign In message\n * @param {string} signInSFLURL - sign in URL\n * @return {html} SFL html template\n */\nexports.emptySFL = (emptySFLMessage, continueShopURL, continueShopMsg, signInMsg, signInSFLURL) => {\n    return `<div class=\"sfl-cart-products\">\n                <div class=\"container cart-empty sfl-empty\">\n                    <div class=\"row\">\n                        <div class=\"col-12 text-center\">\n                            <p class=\"sfl-empty-msg empty-message\">${emptySFLMessage}</p>\n                            <a href=\"${signInSFLURL}\"\n                                class=\"btn btn-block button-secondary account-login-btn enable-button-onvalidate sfl-login-btn col-md-6\">${signInMsg}\n                            </a>\n                            <a href=\"${continueShopURL}\" class=\"d-inline-block tertiary-link continue-shop-link\" role=\"link\">${continueShopMsg}</a></div>\n                        </div>\n                    </div>\n                </div>\n            </div>`;\n};\n\n/**\n * GWP Site Templates\n */\nexports.gwpSizeTemplate = {\n    singleSize: '<span class=\"selected-size\">{0}</span>',\n    multiSize: `\n        <ul class=\"size-list\">\n            <span class=\"sr-only selected-assistive-text\"></span>\n            {1}\n        </ul>\n    `,\n    multiDefaultSizeOption: '',\n    multiSizeOption: '<li class=\"size-option\"><button title=\"Select Size: {1}\" class=\"btn size-btn {4} {2}\" data-attr-url=\"{0}\" data-attr-value=\"{1}\" data-value-id=\"{1}\" {5}><span>{3}</span></button></li>'\n};\n\n/**\n * Address autocomplete templates\n */\nexports.autoComplete = {\n    suggestionLink: (suggestion, addressLine, secondaryEntryAddressLine) => `\n        <a href=\"javascript:void(0);\"\n            class=\"autocomplete-suggestion list-group-item\"\n            data-address-one=\"${suggestion.street_line}\"\n            data-address-two=\"${suggestion.secondary || ''}\"\n            data-state=\"${suggestion.state}\"\n            data-city=\"${suggestion.city}\"\n            data-zipcode=\"${suggestion.zipcode}\"\n            data-has-secondary-entries=\"${suggestion.entries > 1}\"\n            data-secondary-entry-search-value=\"${secondaryEntryAddressLine}\"\n        >${addressLine}</a>\n    `,\n    suggestionContainer: containerClass => `<div class=\"autocomplete-suggestions list-group ${containerClass || ''}\"></div>`\n};\n\nexports.contactUsTemplate = {\n    signupError: msg => `<div class=\"custom-error-alert\" role=\"alert\">${msg}</div>`,\n    defaultSignupError: `<div class=\"custom-error-alert\" role=\"alert\">We're sorry, an unexpected error occurred. Please try again.</div>` // eslint-disable-line quotes\n};\n\nexports.browserWarningTemplate = `\n    We're sorry, this browser is no longer supported.<br/>\n    Please update your browser for a smoother, more secure shopping experience. We recommend downloading the latest version of\n    <a href=\"https://www.google.com/chrome/browser/desktop/index.html\" target=\"_blank\" rel=\"nofollow\">Google Chrome</a>,\n    <a href=\"https://www.microsoft.com/en-us/edge\" target=\"_blank\" rel=\"nofollow\">Microsoft Edge</a> or\n    <a href=\"https://www.mozilla.org/en-US/firefox/desktop/\" target=\"_blank\" rel=\"nofollow\">Mozilla Firefox</a>.\n`;\n\n/*\n * Shipping preference radio buttons\n */\nexports.shippingPreferenceTemplates = {\n    shippingPreferences: (ispuRadioLabel, ispuRadioValue, shipToRadioLabel, shipToRadioValue, changeStoreLabel, preferISPU = false) => `\n        <div class=\"form-check custom-radio preference-container ispu-preference-container\">\n            <input id=\"preference-ispu\" name=\"shipping-preference\" type=\"radio\" class=\"form-check-input shipping-preference preference-ispu\" ${preferISPU ? 'checked' : ''} value=\"${ispuRadioValue}\">\n            <label class=\"form-check-label\" for=\"preference-ispu\">\n                <svg role=\"img\" aria-describedby=\"store-title store-desc\" class=\"icon svg-icon\" width=\"21.0\" height=\"16.0\">\n                    <title id=\"store-title\">Pick Up in Store</title>\n                    <desc id=\"store-desc\">Pick Up in Store icon</desc>\n                    <use xlink:href=\"#store\" role=\"img\"></use>\n                </svg>\n                ${ispuRadioLabel}\n            </label>\n            <button class=\"btn-link tertiary-link change-store-link\">${changeStoreLabel}</button>\n            <div class=\"content\">\n                <div class=\"select-size-info-msg\"></div>\n                <div class=\"ispu-info-message\"></div>\n                <div class=\"message-wrapper\">\n                    <div class=\"inventory-message\"></div>\n                    <div class=\"ispu-delivery-estimation-message\"></div>\n                </div>\n                <div class=\"service-info-message\"></div>\n                <div class=\"store-detail-container\"></div>\n            </div>\n        </div>\n        <div class=\"form-check custom-radio preference-container ship-to-address-preference-container\">\n            <input id=\"preference-ship-to-address\" name=\"shipping-preference\" type=\"radio\" class=\"form-check-input shipping-preference preference-ship-to-address\" value=\"${shipToRadioValue}\" ${!preferISPU ? 'checked' : ''}>\n            <label class=\"form-check-label\" for=\"preference-ship-to-address\">\n                <svg role=\"img\" aria-describedby=\"shipping-title shipping-desc\" class=\"icon svg-icon\" width=\"21.0\" height=\"16.0\">\n                    <title id=\"shipping-title\">Ship to an Address</title>\n                    <desc id=\"shipping-desc\">Ship to an Address icon</desc>\n                    <use xlink:href=\"#shipping\" role=\"img\"></use>\n                </svg>\n                ${shipToRadioLabel}\n            </label>\n            <div class=\"content\">\n                <div class=\"narvar-edd-info\"></div>\n                <div class=\"ship-to-info-message\"></div>\n            </div>\n        </div>\n    `,\n    storeDetail: (storeId, name, address1, city, stateCode, postalCode) => `\n        <div class=\"store-detail\">\n            <div class=\"name\" data-store-id=\"${storeId}\">${name}</div>\n            <div class=\"address\">\n                <div class=\"address-line-1\">${address1}<span class=\"comma-separate\">,</span>\n                    <span class=\"city-state-postalcode\"> ${city}<span class=\"city-comma-separate\">,</span> ${stateCode} ${postalCode}</span>\n                </div>\n            </div>\n        </div>\n    `\n};\n\n/*\n * Product detail page - messaging templates\n */\nexports.productDetail = {\n    selectStyleMessageTmpl: message => `<li><p class=\"availability-message-text select-size-info\" role=\"alert\">${message}</p></li>`,\n    availabilityMessageTmpl: message => `<li><p class=\"availability-message-text\" role=\"alert\">${message}</p></li>`,\n    availabilityMessageOOS: (message, flexibleMessageLink = '') => `\n        <li><p class=\"availability-message-text\" role=\"alert\">${message}\n            ${flexibleMessageLink}</p>\n        </li>\n    `,\n    availabilityMessagePreorder: message => `\n        <div class=\"availability-message-text-preorder\" role=\"alert\">\n            <p class=\"message\">${message}</p>\n        </div>\n\n    `,\n    ispuSelectStyleMessageTmpl: message => `<p class=\"availability-message-text\" role=\"alert\">${message}</p>`,\n    ispuAvailabilityMessageTmpl: message => `<p class=\"availability-message-text\" role=\"alert\">${message}</p>`,\n    ispuLowStockMessageTmpl: message => `<li><p class=\"ispu-availability-message-text\" role=\"alert\">${message}</p></li>`,\n    promotionMessageTmpl: (calloutMsg, details) =>\n        `\n        <div class=\"js-promo-details-link promo-block-link\">\n            <div class=\"promotion promo-block-item\">\n                <span class=\"promotion-header promo-block-generic\">\n                    ${calloutMsg}\n                </span>\n                ` +\n        (details\n            ? `\n                    <svg class=\"promo-block-chevron-right\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <use xlink:href=\"#chevron-right-small\"></use>\n                    </svg>\n                    <div class=\"js-promo-details d-none\">${details}</div>`\n            : '') +\n        `</div>\n        </div>`\n};\n\nexports.dialogTemplate = options => {\n    const { buttons = [{ text: 'OK', primary: true, link: '' }], className = '', modalContentHeading = '', modalContentBody = '', id = 'dialog-' + Date.now(), slideOut = false } = options;\n\n    const buttonSpace = Math.floor(12 / buttons.length);\n\n    return `\n        <div class=\"modal fade ${slideOut ? 'lp-slideout-modal' : 'generic-modal-dialog'} ${className}\" id=\"${id}\" tabindex=\"-1\" role=\"dialog\">\n            <div class=\"modal-dialog\" role=\"document\">\n                <div class=\"modal-content${slideOut ? ' lp-scrollbar' : ''}\">\n                    <div class=\"${slideOut ? 'modal-header' : 'generic-confirmation-header'}\">\n                        ${slideOut && modalContentHeading ? `<h4>${modalContentHeading}</h4>` : ''}\n                        <button type=\"button\" class=\"close close-current-modal\" data-dismiss=\"modal\" aria-label=\"Close\">\n                            <svg role=\"img\" aria-describedby=\"${id}-cross-title ${id}-cross-desc\" class=\"icon svg-icon svg-logo-dims\" width=\"16.0\" height=\"16.0\">\n                                <title id=\"${id}-cross-title\">Close dialog</title>\n                                <desc id=\"${id}-cross-desc\">Cross mark icon to close this dialog</desc>\n                                <use xlink:href=\"#cross\" role=\"img\"></use>\n                            </svg>\n                        </button>\n                    </div>\n                    ${!slideOut && modalContentHeading ? `<p class=\"modal-body generic-confirmation-body-heading\">${modalContentHeading}</p>` : ''}\n                    <div class=\"modal-body generic-confirmation-body-body${slideOut ? ' veiled' : ''}\">${modalContentBody}</div>\n                    <div class=\"row\">\n                        ${buttons\n                            .map(\n                                button => `\n                            <div class=\"col-${buttonSpace}\">\n                            ${\n                                button.link\n                                    ? `<a href=\"${button.link}\" class=\"btn btn-block button-${button.primary ? 'primary' : 'secondary'}\">${button.text}</a>`\n                                    : `<button type=\"button\" class=\"btn btn-block button-${button.primary ? 'primary' : 'secondary'}\" data-dismiss=\"modal\">${button.text}</button>`\n                            }\n                            </div>`\n                            )\n                            .join('')}\n                    </div>\n                </div>\n            </div>\n        </div>\n    `;\n};\n\nexports.errorTextTemplate = errorMessage => `<div class=\"container\"><p class=\"error-message-text\">${errorMessage}</p></div>`;\n\nexports.oneTrust = {\n    privacyDialogCookieBanner: `\n        <div class=\"onetrust-dialog-cookie-banner\">\n            <div class=\"onetrust-dialog-cookie-banner-text\">\n                You can opt out of 3rd party cookies by clicking <button class=\"cookie-preferences\">Cookie Preferences</button>.\n            </div>\n        </div>\n    `\n};\nexports.loyalty = {\n    carouselBadge: '<div class=\"js-loyalty-badge pdp-loyalty-badge product-tile-badge hide\"><span class=\"js-loyalty-badge-text product-tile-badge-text\">{0}</span></div>'\n};\n\nexports.styliticsTemplates = {\n    shopTheModelBadge: '<p class=\"stylitics-badge-text\">As seen above</p>'\n};\n\nexports.returnsPageTemplates = {\n    defaultError: 'We&#39;re sorry, an unexpected error occurred. Please try again.',\n    errorMessage: message => `<div class=\"custom-error-alert\" role=\"alert\">${message}</div>`\n};\n\nexports.cyberSource = {\n    secureAcceptanceTag: paymentType => `<span>Secure Acceptance ${paymentType}</span>`,\n    boltPayPaymentTag: (paymentType, paymentLastFour, expMonth, expYear) => `\n                        <div class=\"credit-card-type\"><span>${paymentType}\n                        </span></div><div class=\"credit-card-number\"><span>${paymentLastFour}</span></div>\n                        <div class=\"credit-card-expiration-date\"><span>${expMonth}/${expYear}</span></div>`,\n    paypalPaymentTag: (paypalMethod, paypalAmount) => `<span>${paypalMethod}</span><div><span>${paypalAmount}</span></div>`,\n    creditCardPaymentTag: (cardType, creditCardType, maskedCardNumber, cardEndIn, cardExpMonth, cardExpYear) => `<div class=\"credit-card-type\"><span>${cardType} ${creditCardType}</span></div><div class=\"credit-card-number\">\n                                ${maskedCardNumber}</div><div class=\"credit-card-expiration-date\"><span>${cardEndIn} ${cardExpMonth}/${cardExpYear}</span></div>`\n};\n\nexports.checkoutErrorTemplate = {\n    checkoutErrorMsg: errorMsg => `<div class=\"alert alert-danger alert-dismissible valid-cart-error fade show\" role=\"alert\">\n                                            <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">\n                                                <span aria-hidden=\"true\">&times;</span>\n                                            </button>${errorMsg}\n                                        </div>`\n};\n\nexports.minitoteError = message => `<p class=\"cart-error-message\">${message}</p>`;\n\nexports.addToCartAlert = (messageType, message) => `<div class=\"alert ${messageType} add-to-basket-alert text-center\" role=\"alert\">${message}</div>`;\n\nexports.productTileSlide = (el, index) => `<div class=\"swiper-slide js-swiper-slide\" role=\"option\">\n    <img src=\"${el.url}\" srcset=\"${el.srcset}\" class=\"tile-image\" alt='${el.alt} ${index > 0 ? ` image${index}` : ''}' itemprop=\"image\" />\n</div>`;\n\nexports.noImageIcon = `<svg role=\"img\" aria-label=\"Image not available\" class=\"icon svg-icon icon\" width=\"63\" height=\"86\">\n    <use xlink:href=\"#no-image\"></use>\n</svg>`;\n\nexports.productTileSlidePicture = (el, index, imageType) => {\n    const breakpoints = {\n        sm: '(max-width: 767px)',\n        md: '(max-width: 1024px)',\n        lg: '(min-width: 1025px)'\n    };\n    const sourceTags = Object.entries(el.sources)\n        .map(([key, srcset]) => {\n            return `<source srcset=\"${srcset}\" media=\"${breakpoints[key]}\">`;\n        })\n        .join('');\n    return `<div class=\"swiper-slide js-swiper-slide\" role=\"option\">\n        <picture\n            class=\"d-block img-fluid w-100\">\n            ${sourceTags}\n            <img\n            loading=\"lazy\"\n            src=\"${el.url}\"\n            alt=\"${el.alt} image number ${index + 1}\"\n            title=\"${el.title}\"\n            data-image=\"${imageType}\"\n            itemprop=\"image\"/>\n        </picture>\n    </div>`;\n};\n\nexports.sliderPaginationTemplate = (currentClass, totalClass) => `<span class=\"${currentClass}\"></span> of <span class=\"${totalClass}\"></span>`;\n\n/**\n * get recent search history list\n * @param {Object} searchHistoryStorage - search history array\n * @param {string} baseUrl - base Search-Show url\n * @param {string} clearButtonText - clear all button text\n * @return {string} SFL html template\n */\nexports.searchHistoryTemplate = (searchHistoryStorage, baseUrl, clearButtonText) => {\n    let list = '';\n    for (let i = 0, len = searchHistoryStorage.length; i < len; i++) {\n        const searchTerm = searchHistoryStorage[i];\n        const url = baseUrl + '?q=' + searchTerm;\n        list += `<div class=\"suggestions-section-items js-recent-search-item\">\n                    <div class=\"item term\">\n                    <svg role=\"img\" class=\"icon svg-icon svg-logo-dims\" width=\"12\" height=\"12\">\n                        <use xlink:href=\"#search\"></use>\n                    </svg>\n                        <a class=\"link js-recent-link\" href=\"${url}\">${searchTerm}</a>\n                    </div>\n                    <button type=\"button\" class=\"remove-recent-search js-remove-recent-search\">\n                        <svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.0001 13.8097L18.4697 20.2794L19.5304 19.2188L13.0607 12.7491L19.5304 6.27941L18.4697 5.21875L12.0001 11.6884L5.53039 5.21875L4.46973 6.27941L10.9394 12.7491L4.46973 19.2188L5.53039 20.2794L12.0001 13.8097Z\" fill=\"black\"/>\n                        </svg>\n                    </button>\n                </div>`;\n    }\n\n    if (clearButtonText) list += `<button type=\"button\" class=\"remove-all-recent js-remove-all-recent\">${clearButtonText}</button>`;\n\n    return list;\n};\n\nexports.productTilePriceContent = (priceMainHtml, priceVariationHtml) => {\n    return `<div class=\"price-variation\">${priceVariationHtml}</div><div class=\"price-main\">${priceMainHtml}</div>`;\n};\n\nexports.videoInnerContent = (poster, videoUrl) => {\n    return `<div class=\"video-component video-PDP\">\n                <video class=\"video lazy-video video-component-main\"\n                    poster=\"${poster}\"\n                    playsinline\n                    controlslist=\"nodownload\"\n                >\n                    <source data-src=\"${videoUrl}\"\n                        type=\"video/mp4\"\n                    >\n                </video>\n                <div class=\"video-controls\">\n                    <button class=\"mute-video unmuted\">\n                        <svg role=\"img\" aria-label=\"mute\" class=\"icon svg-icon svg-video-mute\" width=\"16.0\" height=\"16.0\">\n                            <use xlink:href=\"#mute\"></use>\n                        </svg>\n                        <svg role=\"img\" aria-label=\"unmute\" class=\"icon svg-icon svg-video-unmute\" width=\"16.0\" height=\"16.0\">\n                            <use xlink:href=\"#unmute\"></use>\n                        </svg>\n                    </button>\n                    <button type=\"button\" class=\"play-video\">\n                        <svg role=\"img\" aria-label=\"Play\" class=\"icon svg-icon svg-video-play\" width=\"16.0\" height=\"16.0\">\n                        <use xlink:href=\"#play\"></use>\n                        </svg>\n                        <svg role=\"img\" aria-label=\"Pause\" class=\"icon svg-icon svg-video-pause\" width=\"16.0\" height=\"16.0\">\n                        <use xlink:href=\"#pause\"></use>\n                        </svg>\n                    </button>\n                </div>\n            </div>\n            `;\n};\n","const { removeClass, queryFirst, addClass, hasClass } = require('./domUtil');\n\n/**\n * Tokenize strings\n *\n * @param  {string | Object} string Resource message that need to be tokenized\n * @param  {string | Object} values Values that need to be replaced.\n * @param  {string | Object} leftToken Left token type with default as {{\n * @param  {string | Object} rightToken Right token type with defaulat as }}\n * @return  {string} Updated string.\n */\nexports.tokenize = (string, values, leftToken = '{{', rightToken = '}}') => {\n    if (typeof values !== 'object') return string;\n    const operators = /([{}+.\\-!?[\\]])/g;\n    return string.replace(new RegExp(leftToken.replace(operators, '\\\\$1') + '[\\\\r\\\\n\\\\s\\\\t]*([\\\\s\\\\S]+?)[\\\\r\\\\n\\\\s\\\\t]*' + rightToken.replace(operators, '\\\\$1'), 'igm'), (_, code) => {\n        return values[code] || '';\n    });\n};\n\n/**\n *  Transforms all text to a kebab-case string.\n *  @param {string} text - The text to transform\n *  @returns {string} - The transformed string value\n *  @example toKebabCase('.suggestions-related-products', ['.product-tile', '.link']) // suggestions-related-products-product-tile-link\n */\nconst toKebabCase = (exports.toKebabCase = (...values) =>\n    values\n        .map(value => {\n            if (!Array.isArray(value)) value = [value];\n            return value.map(text => (typeof text === 'undefined' ? '' : String(text).toLowerCase().replace(/\\W/g, '-').trim())).join('-');\n        })\n        .join('-')\n        .replace(/-+/g, '-')\n        .replace(/^-+|-+$/g, ''));\n\n/**\n *  Transforms any input into a hash value.\n *  @param {*} input - The input to transform\n *  @returns {string} - The transformed string hash value\n *  @example hashValue(function(a){ return a++; }) // 66756e6374696f6e2861297b2072657475726e20612b2b3b207d\n */\nexports.hashValue = input => {\n    let value = JSON.stringify(String(input));\n\n    if (value === '\"[object Object]\"') {\n        // Sort the object first so hashes match despite key order\n        value = JSON.stringify(\n            Object.keys(input)\n                .sort()\n                .reduce((result, key) => {\n                    result[key] = input[key];\n                    return result;\n                }, {})\n        );\n    }\n\n    if (value.startsWith('\"') && value.endsWith('\"')) {\n        value = value.substr(1, value.length - 2);\n    }\n\n    return value\n        .split('')\n        .map(digit => digit.charCodeAt(0).toString(16))\n        .join('');\n};\n\n/**\n *  Transforms all text to a valid dataset key.\n *  @param {string} text - The text to transform\n *  @returns {string} - The transformed string value\n *  @example toDatasetKey('.suggestions-related-products', ['.product-tile', '.link']) // suggestionsRelatedProductsProductTileLink\n */\nexports.toDatasetKey = (...values) =>\n    toKebabCase(...values)\n        .split('-')\n        .map((text, index) => (index === 0 ? text : text.charAt(0).toUpperCase() + text.substr(1)))\n        .join('');\n\n/**\n * Format dynamic resource messages.\n *\n * @param  {string | Object} string Resource message that need to be tokenized\n * @param  {string | Object} tokens Tokens that need to be replaced.\n * @return  {string} Updated string.\n */\nexports.formatMessage = (string, ...tokens) => {\n    return this.tokenize(\n        string,\n        tokens.reduce((result, item, index) => {\n            result[index] = item;\n            return result;\n        }, {}),\n        '{',\n        '}'\n    );\n};\n\n/**\n * Safely gets nested object properties. Returns the value if found, undefined if not found.\n * @param {*} obj The parent object in which the property exists\n * @param {*} keyString String denoting where in the parent object your target property should exist\n * @param  {...any} replaceValues Values in the keyString to replace -- reference in the keyString with a number encapsulated in {} (e.g. {0}, {1}, etc)\n * @return {Object} returns nested object properties\n */\nexports.getNestedValue = function (obj, keyString, ...replaceValues) {\n    const keys = keyString.split(/\\[|\\]|\\./).filter(el => el !== '');\n\n    return keys.reduce((o, i) => (o || {})[/\\{\\d+\\}/.test(i) ? replaceValues[i.split(/\\{|\\}/)[1]] : i], obj);\n};\n\n/**\n * Ensures an event handler is only bound to an element once\n * @param {HTMLElement} element The element to bind the event to\n * @param {string} eventType The type of event\n * @param {function} handler The handler to execute when the event occurs, or the immediate callback if not defined\n * @param {string} initFlag The name of the flag to use for init\n */\nexports.initOnce = (element, eventType = '', handler, initFlag = '') => {\n    const flag = 'init' + initFlag + eventType.toLowerCase();\n\n    if (!element || element.dataset[flag]) return;\n\n    element.dataset[flag] = true;\n    if (eventType) {\n        element.addEventListener(eventType, handler);\n    } else {\n        handler();\n    }\n};\n\n/**\n * appends params to a url\n * @param {string} url - Original url\n * @param {Object} params - Parameters to append\n * @returns {string} result url with appended parameters\n */\nexports.appendToUrl = (url, params) => {\n    let newUrl = url;\n    newUrl +=\n        (newUrl.indexOf('?') !== -1 ? '&' : '?') +\n        Object.keys(params)\n            .map(key => key + '=' + encodeURIComponent(params[key]))\n            .join('&');\n\n    return newUrl;\n};\n\n/**\n * This method performs an ajax call\n * @param {string} url endpoint url\n * @param {string} type ajax method type\n * @param {Object} data data for an ajax call\n * @param {function} onSuccess success call back function\n * @param {function} onError error call back function\n * @return {function} returns ajax function\n */\nexports.getJSON = (url, type, data = {}, onSuccess = function () {}, onError = function () {}) => {\n    return $.ajax({\n        url,\n        type,\n        dataType: 'json',\n        data,\n        success: onSuccess,\n        error: onError\n    });\n};\n\n/**\n * This method renders geo location\n * @param {function} successCallback Success callback function\n * @param {Object} mixin additional parameters\n * @param {function} errorCallback Error callback function\n */\nexports.geolocate = (successCallback, mixin = {}, errorCallback) => {\n    if (!navigator.geolocation) return;\n    const data = Object.assign({}, mixin);\n    const successHandler = response => {\n        const { coords } = response;\n        if (coords) {\n            const { latitude, longitude } = coords;\n            data.latitude = latitude;\n            data.longitude = longitude;\n        }\n\n        if (successCallback) {\n            successCallback(data);\n        }\n    };\n    const errorHandler = error => {\n        if (errorCallback) {\n            errorCallback(data);\n        }\n    };\n    navigator.geolocation.getCurrentPosition(successHandler, errorHandler, {\n        maximumAge: 0\n    });\n};\n\n/**\n * This method stores data in key-value pair into browser's localStorage\n * @param {string} key Identifier to be stored\n * @param {string | Object} value Value to be stored\n */\nexports.setItemInLocalStorage = function (key, value) {\n    if (!window.localStorage || !key) {\n        return;\n    }\n\n    localStorage.setItem(key, JSON.stringify(value));\n};\n\n/**\n * This method stores data into browser's localStorage\n * @param {string} key Identifier for retrieving the value\n * @return {string | Object | boolean} returns parsed value\n */\nexports.getItemFromLocalStorage = function (key) {\n    if (!window.localStorage || !key) {\n        return false;\n    }\n\n    const value = localStorage.getItem(key);\n\n    if (!value) {\n        return false;\n    }\n\n    return JSON.parse(value);\n};\n\n/**\n * This method removes data from browser's localStorage\n * @param {string} key Identifier\n */\nexports.removeItemFromLocalStorage = function (key) {\n    if (!window.localStorage || !key) {\n        return;\n    }\n\n    localStorage.removeItem(key);\n};\n\n/**\n * This method formats phone number\n * @param {HTMLElement} element - current element for which formatting should be one\n */\nexports.formatPhoneNumber = function (element, hyphen = true) {\n    function formatValue(numbers) {\n        const char = { 0: '(', 3: ') ', 6: hyphen ? '-' : ' ' };\n        element.value = '';\n        for (let i = 0, l = numbers.length; i < l; i++) {\n            element.value += (char[i] || '') + numbers[i];\n        }\n    }\n    if (!element) {\n        return;\n    }\n    element.addEventListener('keypress', function () {\n        const numbers = element.value.replace(/\\D/g, '');\n        formatValue(numbers, hyphen);\n    });\n    element.addEventListener('paste', function (event) {\n        event.preventDefault();\n        addClass(this, 'is-invalid');\n        if (hasClass(event.target, 'is-invalid')) {\n            const errorMessageElmParent = event.target.parentNode;\n            const errorMessageElm = queryFirst('.invalid-feedback', errorMessageElmParent);\n            errorMessageElm.textContent = event.target.dataset.patternMismatch;\n        }\n    });\n    element.addEventListener('input', function () {\n        const numbers = element.value.replace(/\\D/g, '');\n        formatValue(numbers, hyphen);\n    });\n};\n\n/**\n * @function\n * @desc Determines if the device that is being used is mobile\n * @returns {Boolean}\n */\nexports.isMobile = function () {\n    const mobileAgentHash = ['mobile', 'tablet', 'phone', 'ipad', 'ipod', 'android', 'blackberry', 'windows ce', 'opera mini', 'palm'];\n    let idx = 0;\n    let isMobile = false;\n    const userAgent = navigator.userAgent.toLowerCase();\n\n    while (mobileAgentHash[idx] && !isMobile) {\n        isMobile = userAgent.indexOf(mobileAgentHash[idx]) >= 0;\n        idx++;\n    }\n    return isMobile;\n};\n\n/**\n * @function\n * @desc Fixes position sticky scrolling behavior for elements with greater height than widnow height. Ensures content is scrollable above the fold\n * @param {Array} items - items to set scroll height position\n */\nexports.stickyScrollPosition = items => {\n    const $window = $(window);\n    const handleStickyPositionOnScroll = item => {\n        let ticking = false;\n        const detailStickyScroll = () => {\n            ticking = false;\n            const itemHeight = item.getBoundingClientRect().height;\n            const windowHeight = window.innerHeight;\n            const newTop = itemHeight - windowHeight + 95;\n\n            if (itemHeight > windowHeight - 95) {\n                item.style.top = `${-newTop}px`;\n            } else {\n                item.style.top = '100px';\n            }\n        };\n        const requestTick = () => {\n            if (!ticking) {\n                requestAnimationFrame(detailStickyScroll);\n            }\n            ticking = true;\n        };\n        const onScroll = () => {\n            requestTick(item);\n        };\n        $window.scroll(onScroll);\n    };\n\n    items.forEach(item => {\n        handleStickyPositionOnScroll(item);\n    });\n};\n\n/**\n * Determines whether the user is browsing with an old/unsupported browser.\n * @returns {boolean} True if the browser is old/unsupported.\n */\nexports.isUnsupportedBrowser = () => {\n    const { userAgent } = navigator;\n    const sitePrefs = document.getElementById('site-prefs');\n\n    if (!sitePrefs) return false;\n\n    let unsupportedBrowserTypes;\n\n    if (sitePrefs.dataset) {\n        ({ unsupportedBrowserTypes } = sitePrefs.dataset);\n    } else {\n        // For old IE\n        unsupportedBrowserTypes = sitePrefs.getAttribute('data-unsupported-browser-types');\n    }\n\n    return JSON.parse(unsupportedBrowserTypes).some(function (uaFragment) {\n        return ~userAgent.indexOf(uaFragment);\n    });\n};\n\n/**\n * Get remaining time object for given time string\n * @param {string} endtime - remaining time string comes as parameter\n * @return {Object} remainTimeObject - Date Object with day, hours, minutes, Sec\n */\nexports.getTimeRemaining = endtime => {\n    const total = Date.parse(endtime) - Date.now();\n    const seconds = Math.floor((total / 1000) % 60).toString();\n    const minutes = Math.floor((total / 1000 / 60) % 60).toString();\n    const hours = Math.floor((total / (1000 * 60 * 60)) % 24).toString();\n    const days = Math.floor(total / (1000 * 60 * 60 * 24));\n\n    return {\n        total,\n        days,\n        hours,\n        minutes,\n        seconds\n    };\n};\n\n/**\n * Checks if an email value is in the correct format for Bolt.\n * Note that this does not meet LP's standards for email validation\n * @param {string} email - email string to check if valid\n * @returns {boolean} Whether email is valid\n */\nexports.validateEmailBolt = email => /^[\\w.%+-]+@[\\w.-]+\\.[\\w]{2,6}$/.test(email);\n\n/**\n * set/change parameter value in the url\n * @param {string} url - Original url\n * @param {string} paramToChange - changed parameter\n * @param {string} newValue - new value\n * @param {boolean} isPartOfParamName - determine if paramToChange is a part of parameter name\n * @returns {string} result url with changed parameter value OR original url\n */\nexports.setUrlParamValue = (url, paramToChange, newValue, isPartOfParamName) => {\n    if (!url || !paramToChange || !newValue) return url;\n\n    const urlObj = new URL(url, location.origin);\n    const urlParams = new URLSearchParams(urlObj.search);\n\n    if (isPartOfParamName) {\n        const foundParam = urlParams.keys().find(key => key.indexOf(paramToChange) !== -1);\n        if (foundParam) paramToChange = foundParam;\n    }\n\n    urlParams.set(paramToChange, newValue);\n    return `${urlObj.origin}${urlObj.pathname}?${urlParams}`;\n};\n\n/**\n * remove parameter from url\n * @param {string} paramName parameter name\n * @return {undefined} undefined, if there is no param\n */\nexports.removeParamFromUrl = function (paramName) {\n    const params = new URLSearchParams(window.location.search);\n    if (!params.has(paramName)) return;\n\n    params.delete(paramName);\n    const newUrl = params.toString() ? `?${params.toString()}` : window.location.pathname;\n    window.history.replaceState({}, '', newUrl);\n};\n\n/**\n * reload a page, if it is 'webview' template in the mobile app (webview/webviewtemplate.isml)\n * @param {string} querySelector element selector\n * @param {HTMLElement} viewAll View All button element\n * @param {boolean|number} stepCondition - Condition to determine if sheet should be rendered\n * @return {boolean} returns false if it is not mobile session\n */\nexports.reloadPageForMobile = function (querySelector, viewAll, stepCondition) {\n    if (!queryFirst('.mobile-session')) return false;\n\n    const className = 'viewallbtnclass';\n    const params = new URLSearchParams(window.location.search);\n    if (viewAll && stepCondition) {\n        params.set(className, querySelector);\n        window.location.href = window.location.pathname + '?' + params.toString();\n    } else {\n        this.removeParamFromUrl(className);\n        window.location.reload();\n    }\n\n    return true;\n};\n\n/**\n * Handles rendering of a sheet based on specific conditions and selector\n * @param {string} querySelector - CSS selector to find the view all element\n * @param {boolean|number} stepCondition - Condition to determine if sheet should be rendered\n * @return {undefined} undefined, if it is mobile session\n */\nexports.handleSheetRendering = (querySelector, stepCondition) => {\n    removeClass(queryFirst('#profile-page'), 'loaded');\n    const viewAll = queryFirst(querySelector);\n    const $body = $('body');\n\n    if (this.reloadPageForMobile(querySelector, viewAll, stepCondition)) return;\n\n    if (viewAll && stepCondition) {\n        const { href, type } = viewAll.dataset;\n        $('#profile-page').one('sectionLoaded', () => {\n            $body.trigger('sheet:rerender', {\n                url: href,\n                ...(type ? { type } : {}) // Optional type spread\n            });\n        });\n    } else {\n        $('#js-fl-pd-sheet').modal('hide');\n    }\n};\n","'use strict';\nconst { HIDDEN_CLASS } = require('../constants');\nconst { removeClass, queryFirst, addClass, queryAll } = require('../domUtil');\n\n/**\n * Show strike heart\n * @param {Element} productContainer product container with hearts\n */\nfunction showStrikeHearts(productContainer) {\n    const strikeWishList = queryAll('.wishlist-strike', productContainer);\n    const addWishList = queryAll('.wishlist-add-update', productContainer);\n    strikeWishList.forEach(item => {\n        removeClass(item, HIDDEN_CLASS);\n    });\n    addWishList.forEach(item => {\n        addClass(item, HIDDEN_CLASS);\n    });\n}\n\n/**\n * Hide strike heart\n * @param {Element} productContainer product container with hearts\n */\nfunction hideStrikeHearts(productContainer) {\n    const strikeWishList = queryAll('.wishlist-strike', productContainer);\n    const addWishList = queryAll('.wishlist-add-update', productContainer);\n    strikeWishList.forEach(item => {\n        addClass(item, HIDDEN_CLASS);\n    });\n    addWishList.forEach(item => {\n        removeClass(item, HIDDEN_CLASS);\n    });\n}\n\n/**\n * Update wishlists data attribute to theirs product ID\n * @param {string} id product ID string\n * @param  {string | Object} container  Parent element, if it not provided\n */\nfunction setWishlistProductId(id, container = document.body) {\n    if (id) {\n        const wishlistBtn = queryFirst('.wishlist-add-update button', container);\n        const wishlistStrikeBtn = queryFirst('.wishlist-strike button', container);\n\n        if (wishlistBtn) wishlistBtn.dataset.productId = id;\n        if (wishlistStrikeBtn) wishlistStrikeBtn.dataset.productId = id;\n    }\n}\nmodule.exports = {\n    hideStrikeHearts: hideStrikeHearts,\n    showStrikeHearts: showStrikeHearts,\n    setWishlistProductId: setWishlistProductId\n};\n","const { queryFirst, getCookieMap } = require('../domUtil');\nconst { getItemFromLocalStorage, setItemInLocalStorage, removeItemFromLocalStorage } = require('lilly/util');\n\nclass WishlistItemsMgr {\n    static instance;\n\n    loadWishlistItemsPromise;\n\n    /**\n     * @description Returns instance of WishlistItemsMgr\n     * @returns {WishlistItemsMgr} Instance of WishlistItemsMgr\n     */\n    static getInstance() {\n        if (WishlistItemsMgr.instance) {\n            return WishlistItemsMgr.instance;\n        }\n\n        WishlistItemsMgr.instance = new WishlistItemsMgr();\n\n        return WishlistItemsMgr.instance;\n    }\n\n    /**\n     * @description Check if product is in wish list\n     * @param {string|number} productId Target product id\n     * @param {string} listId Optional list id if added check product only in this WL\n     * @returns {Promise<boolean>} Result\n     */\n    isItemInWishlist(productId, listId) {\n        return this.getWishlistItems()\n            .then((response) => {\n                let result = false;\n\n                if (!response) {\n                    return Promise.resolve(result);\n                }\n\n                const items = response.wishlistItems;\n                if (listId) {\n                    const list = items.find(list => list.UUID === listId);\n                    result = list ? list.items.includes(productId) : false;\n                } else {\n                    result = items.some(list => list.items.includes(productId));\n                }\n\n                return Promise.resolve(result);\n            });\n    }\n\n    /**\n     * @description Checks if wish list contains items\n     * @returns {Promise<boolean>} Indicates if items in the wish list\n     */\n    isItemsInWishList() {\n        return this.getWishlistItems()\n            .then(result => Promise.resolve(result?.wishlistItems?.length > 0));\n    }\n\n    /**\n     * @description Do call to get items in the wish list from the server\n     * @param {string} url URL to get items in the wish list\n     * @returns {Promise} Fetching result promise\n     */\n    async loadWishListItems(url) {\n        return await fetch(url)\n            .then((result) => {\n                if (!result.ok) {\n                    throw new Error(`HTTP error! status: ${result.status}`);\n                }\n                return result.json();\n            }).then(data => {\n                this.saveWishListItems(data.wishlistItems);\n                return Promise.resolve(data);\n            })\n            .catch(error => {\n                return error;\n            });\n    }\n\n    /**\n     * @description Set wish list items to the local storage\n     * @param {Array} wishlistItems Object contains items in the wish list\n     */\n    saveWishListItems(wishlistItems) {\n        const { sid } = getCookieMap();\n        setItemInLocalStorage('currentSid', sid);\n        setItemInLocalStorage('wishlistItems', wishlistItems || []);\n    }\n\n    /**\n     * @description Update local storage with new items in the wish list\n     * @param {Array} wishlistItems Object contains items in the wish list\n     */\n    updateWishlistItems(wishlistItems) {\n        removeItemFromLocalStorage('wishlistItems');\n        this.saveWishListItems(wishlistItems);\n    }\n\n    /**\n     * @description Returns fetching result promise\n     * @returns {Promise} Promise result\n     */\n    getWishlistItems() {\n        return new Promise((resolve) => {\n            const url = queryFirst('#wishlist-settings')?.dataset?.wishlistItemsLink || null;\n\n            if (!url) {\n                return resolve(null);\n            }\n            const { sid } = getCookieMap();\n            const items = getItemFromLocalStorage('wishlistItems' || 'null');\n            const isSameSession = getItemFromLocalStorage('currentSid') === sid;\n\n            if (items && isSameSession) {\n                return resolve({ wishlistItems: items });\n            }\n\n            if (this.loadWishlistItemsPromise) {\n                return resolve(this.loadWishlistItemsPromise);\n            }\n\n            this.loadWishlistItemsPromise = this.loadWishListItems(url);\n            return resolve(this.loadWishlistItemsPromise);\n        });\n    }\n}\n\nWishlistItemsMgr.instance = undefined;\n\nexport default WishlistItemsMgr;\n","'use strict';\n\nvar scrollAnimate = require('../components/scrollAnimate');\n\n/**\n * Display error messages and highlight form fields with errors.\n * @param {string} parentSelector - the form which contains the fields\n * @param {Object} fieldErrors - the fields with errors\n */\nfunction loadFormErrors(parentSelector, fieldErrors) { // eslint-disable-line\n    // Display error messages and highlight form fields with errors.\n    $.each(fieldErrors, function (attr) {\n        $('*[name=' + attr + ']', parentSelector)\n            .addClass('is-invalid')\n            .siblings('.invalid-feedback')\n            .html(fieldErrors[attr]);\n    });\n    // Animate to top of form that has errors\n    scrollAnimate($(parentSelector));\n}\n\n/**\n * Clear the form errors.\n * @param {string} parentSelector - the parent form selector.\n */\nfunction clearPreviousErrors(parentSelector) {\n    $(parentSelector).find('.form-control.is-invalid').removeClass('is-invalid');\n    $('.error-message').hide();\n}\n\nmodule.exports = {\n    loadFormErrors: loadFormErrors,\n    clearPreviousErrors: clearPreviousErrors\n};\n","'use strict';\n\nmodule.exports = {\n    setTabNextFocus: function (focusParams) {\n        var KEYCODE_TAB = 9;\n        var isTabPressed = (focusParams.event.key === 'Tab' || focusParams.event.keyCode === KEYCODE_TAB);\n\n        if (!isTabPressed) {\n            return;\n        }\n\n        var firstFocusableEl = $(focusParams.containerSelector + ' ' + focusParams.firstElementSelector);\n        var lastFocusableEl = $(focusParams.containerSelector + ' ' + focusParams.lastElementSelector);\n\n        if ($(focusParams.containerSelector + ' ' + focusParams.lastElementSelector).is(':disabled')) {\n            lastFocusableEl = $(focusParams.containerSelector + ' ' + focusParams.nextToLastElementSelector);\n            if ($('.product-quickview.product-set').length > 0) {\n                var linkElements = $(focusParams.containerSelector + ' a#fa-link.share-icons');\n                lastFocusableEl = linkElements[linkElements.length - 1];\n            }\n        }\n\n        if (focusParams.event.shiftKey) /* shift + tab */ {\n            if ($(':focus').is(firstFocusableEl)) {\n                lastFocusableEl.focus();\n                focusParams.event.preventDefault();\n            }\n        } else /* tab */ {\n            if ($(':focus').is(lastFocusableEl)) { // eslint-disable-line\n                firstFocusableEl.focus();\n                focusParams.event.preventDefault();\n            }\n        }\n    }\n};\n","'use strict';\n\n/**\n * Remove all validation. Should be called every time before revalidating form\n * @param {element} form - Form to be cleared\n * @returns {void}\n */\nfunction clearFormErrors(form) {\n    $(form).find('.form-control.is-invalid').removeClass('is-invalid');\n}\n\nmodule.exports = function (formElement, payload) {\n    // clear form validation first\n    clearFormErrors(formElement);\n    $('.alert', formElement).remove();\n\n    if (typeof payload === 'object' && payload.fields) {\n        Object.keys(payload.fields).forEach(function (key) {\n            if (payload.fields[key]) {\n                var feedbackElement = $(formElement).find('[name=\"' + key + '\"]')\n                    .parent()\n                    .children('.invalid-feedback');\n\n                if (feedbackElement.length > 0) {\n                    if (Array.isArray(payload[key])) {\n                        feedbackElement.html(payload.fields[key].join('<br/>'));\n                    } else {\n                        feedbackElement.html(payload.fields[key]);\n                    }\n                    feedbackElement.siblings('.form-control').addClass('is-invalid');\n                }\n            }\n        });\n    }\n    if (payload && payload.error) {\n        var form = $(formElement).prop('tagName') === 'FORM'\n            ? $(formElement)\n            : $(formElement).parents('form');\n\n        form.prepend('<div class=\"alert alert-danger\" role=\"alert\">'\n            + payload.error.join('<br/>') + '</div>');\n    }\n};\n","'use strict';\n\nmodule.exports = function (element) {\n    var position = element && element.length ? element.offset().top : 0;\n    $('html, body').animate({\n        scrollTop: position\n    }, 500);\n    if (!element) {\n        $('.logo-home').focus();\n    }\n};\n","'use strict';\n\nmodule.exports = function (include) {\n    if (typeof include === 'function') {\n        include();\n    } else if (typeof include === 'object') {\n        Object.keys(include).forEach(function (key) {\n            if (typeof include[key] === 'function') {\n                include[key]();\n            }\n        });\n    }\n};\n","import { e as elementChildren, c as createElement } from './utils.mjs';\n\nfunction createElementIfNotDefined(swiper, originalParams, params, checkProps) {\n  if (swiper.params.createElements) {\n    Object.keys(checkProps).forEach(key => {\n      if (!params[key] && params.auto === true) {\n        let element = elementChildren(swiper.el, `.${checkProps[key]}`)[0];\n        if (!element) {\n          element = createElement('div', checkProps[key]);\n          element.className = checkProps[key];\n          swiper.el.append(element);\n        }\n        params[key] = element;\n        originalParams[key] = element;\n      }\n    });\n  }\n  return params;\n}\n\nexport { createElementIfNotDefined as c };\n","import { c as createElementIfNotDefined } from '../shared/create-element-if-not-defined.mjs';\nimport { m as makeElementsArray } from '../shared/utils.mjs';\n\nfunction Navigation(_ref) {\n  let {\n    swiper,\n    extendParams,\n    on,\n    emit\n  } = _ref;\n  extendParams({\n    navigation: {\n      nextEl: null,\n      prevEl: null,\n      hideOnClick: false,\n      disabledClass: 'swiper-button-disabled',\n      hiddenClass: 'swiper-button-hidden',\n      lockClass: 'swiper-button-lock',\n      navigationDisabledClass: 'swiper-navigation-disabled'\n    }\n  });\n  swiper.navigation = {\n    nextEl: null,\n    prevEl: null\n  };\n  function getEl(el) {\n    let res;\n    if (el && typeof el === 'string' && swiper.isElement) {\n      res = swiper.el.querySelector(el);\n      if (res) return res;\n    }\n    if (el) {\n      if (typeof el === 'string') res = [...document.querySelectorAll(el)];\n      if (swiper.params.uniqueNavElements && typeof el === 'string' && res && res.length > 1 && swiper.el.querySelectorAll(el).length === 1) {\n        res = swiper.el.querySelector(el);\n      } else if (res && res.length === 1) {\n        res = res[0];\n      }\n    }\n    if (el && !res) return el;\n    // if (Array.isArray(res) && res.length === 1) res = res[0];\n    return res;\n  }\n  function toggleEl(el, disabled) {\n    const params = swiper.params.navigation;\n    el = makeElementsArray(el);\n    el.forEach(subEl => {\n      if (subEl) {\n        subEl.classList[disabled ? 'add' : 'remove'](...params.disabledClass.split(' '));\n        if (subEl.tagName === 'BUTTON') subEl.disabled = disabled;\n        if (swiper.params.watchOverflow && swiper.enabled) {\n          subEl.classList[swiper.isLocked ? 'add' : 'remove'](params.lockClass);\n        }\n      }\n    });\n  }\n  function update() {\n    // Update Navigation Buttons\n    const {\n      nextEl,\n      prevEl\n    } = swiper.navigation;\n    if (swiper.params.loop) {\n      toggleEl(prevEl, false);\n      toggleEl(nextEl, false);\n      return;\n    }\n    toggleEl(prevEl, swiper.isBeginning && !swiper.params.rewind);\n    toggleEl(nextEl, swiper.isEnd && !swiper.params.rewind);\n  }\n  function onPrevClick(e) {\n    e.preventDefault();\n    if (swiper.isBeginning && !swiper.params.loop && !swiper.params.rewind) return;\n    swiper.slidePrev();\n    emit('navigationPrev');\n  }\n  function onNextClick(e) {\n    e.preventDefault();\n    if (swiper.isEnd && !swiper.params.loop && !swiper.params.rewind) return;\n    swiper.slideNext();\n    emit('navigationNext');\n  }\n  function init() {\n    const params = swiper.params.navigation;\n    swiper.params.navigation = createElementIfNotDefined(swiper, swiper.originalParams.navigation, swiper.params.navigation, {\n      nextEl: 'swiper-button-next',\n      prevEl: 'swiper-button-prev'\n    });\n    if (!(params.nextEl || params.prevEl)) return;\n    let nextEl = getEl(params.nextEl);\n    let prevEl = getEl(params.prevEl);\n    Object.assign(swiper.navigation, {\n      nextEl,\n      prevEl\n    });\n    nextEl = makeElementsArray(nextEl);\n    prevEl = makeElementsArray(prevEl);\n    const initButton = (el, dir) => {\n      if (el) {\n        el.addEventListener('click', dir === 'next' ? onNextClick : onPrevClick);\n      }\n      if (!swiper.enabled && el) {\n        el.classList.add(...params.lockClass.split(' '));\n      }\n    };\n    nextEl.forEach(el => initButton(el, 'next'));\n    prevEl.forEach(el => initButton(el, 'prev'));\n  }\n  function destroy() {\n    let {\n      nextEl,\n      prevEl\n    } = swiper.navigation;\n    nextEl = makeElementsArray(nextEl);\n    prevEl = makeElementsArray(prevEl);\n    const destroyButton = (el, dir) => {\n      el.removeEventListener('click', dir === 'next' ? onNextClick : onPrevClick);\n      el.classList.remove(...swiper.params.navigation.disabledClass.split(' '));\n    };\n    nextEl.forEach(el => destroyButton(el, 'next'));\n    prevEl.forEach(el => destroyButton(el, 'prev'));\n  }\n  on('init', () => {\n    if (swiper.params.navigation.enabled === false) {\n      // eslint-disable-next-line\n      disable();\n    } else {\n      init();\n      update();\n    }\n  });\n  on('toEdge fromEdge lock unlock', () => {\n    update();\n  });\n  on('destroy', () => {\n    destroy();\n  });\n  on('enable disable', () => {\n    let {\n      nextEl,\n      prevEl\n    } = swiper.navigation;\n    nextEl = makeElementsArray(nextEl);\n    prevEl = makeElementsArray(prevEl);\n    if (swiper.enabled) {\n      update();\n      return;\n    }\n    [...nextEl, ...prevEl].filter(el => !!el).forEach(el => el.classList.add(swiper.params.navigation.lockClass));\n  });\n  on('click', (_s, e) => {\n    let {\n      nextEl,\n      prevEl\n    } = swiper.navigation;\n    nextEl = makeElementsArray(nextEl);\n    prevEl = makeElementsArray(prevEl);\n    const targetEl = e.target;\n    if (swiper.params.navigation.hideOnClick && !prevEl.includes(targetEl) && !nextEl.includes(targetEl)) {\n      if (swiper.pagination && swiper.params.pagination && swiper.params.pagination.clickable && (swiper.pagination.el === targetEl || swiper.pagination.el.contains(targetEl))) return;\n      let isHidden;\n      if (nextEl.length) {\n        isHidden = nextEl[0].classList.contains(swiper.params.navigation.hiddenClass);\n      } else if (prevEl.length) {\n        isHidden = prevEl[0].classList.contains(swiper.params.navigation.hiddenClass);\n      }\n      if (isHidden === true) {\n        emit('navigationShow');\n      } else {\n        emit('navigationHide');\n      }\n      [...nextEl, ...prevEl].filter(el => !!el).forEach(el => el.classList.toggle(swiper.params.navigation.hiddenClass));\n    }\n  });\n  const enable = () => {\n    swiper.el.classList.remove(...swiper.params.navigation.navigationDisabledClass.split(' '));\n    init();\n    update();\n  };\n  const disable = () => {\n    swiper.el.classList.add(...swiper.params.navigation.navigationDisabledClass.split(' '));\n    destroy();\n  };\n  Object.assign(swiper.navigation, {\n    enable,\n    disable,\n    update,\n    init,\n    destroy\n  });\n}\n\nexport { Navigation as default };\n","function classesToSelector(classes) {\n  if (classes === void 0) {\n    classes = '';\n  }\n  return `.${classes.trim().replace(/([\\.:!+\\/])/g, '\\\\$1') // eslint-disable-line\n  .replace(/ /g, '.')}`;\n}\n\nexport { classesToSelector as c };\n","import { c as classesToSelector } from '../shared/classes-to-selector.mjs';\nimport { c as createElementIfNotDefined } from '../shared/create-element-if-not-defined.mjs';\nimport { m as makeElementsArray, f as elementOuterSize, h as elementIndex, a as elementParents } from '../shared/utils.mjs';\n\nfunction Pagination(_ref) {\n  let {\n    swiper,\n    extendParams,\n    on,\n    emit\n  } = _ref;\n  const pfx = 'swiper-pagination';\n  extendParams({\n    pagination: {\n      el: null,\n      bulletElement: 'span',\n      clickable: false,\n      hideOnClick: false,\n      renderBullet: null,\n      renderProgressbar: null,\n      renderFraction: null,\n      renderCustom: null,\n      progressbarOpposite: false,\n      type: 'bullets',\n      // 'bullets' or 'progressbar' or 'fraction' or 'custom'\n      dynamicBullets: false,\n      dynamicMainBullets: 1,\n      formatFractionCurrent: number => number,\n      formatFractionTotal: number => number,\n      bulletClass: `${pfx}-bullet`,\n      bulletActiveClass: `${pfx}-bullet-active`,\n      modifierClass: `${pfx}-`,\n      currentClass: `${pfx}-current`,\n      totalClass: `${pfx}-total`,\n      hiddenClass: `${pfx}-hidden`,\n      progressbarFillClass: `${pfx}-progressbar-fill`,\n      progressbarOppositeClass: `${pfx}-progressbar-opposite`,\n      clickableClass: `${pfx}-clickable`,\n      lockClass: `${pfx}-lock`,\n      horizontalClass: `${pfx}-horizontal`,\n      verticalClass: `${pfx}-vertical`,\n      paginationDisabledClass: `${pfx}-disabled`\n    }\n  });\n  swiper.pagination = {\n    el: null,\n    bullets: []\n  };\n  let bulletSize;\n  let dynamicBulletIndex = 0;\n  function isPaginationDisabled() {\n    return !swiper.params.pagination.el || !swiper.pagination.el || Array.isArray(swiper.pagination.el) && swiper.pagination.el.length === 0;\n  }\n  function setSideBullets(bulletEl, position) {\n    const {\n      bulletActiveClass\n    } = swiper.params.pagination;\n    if (!bulletEl) return;\n    bulletEl = bulletEl[`${position === 'prev' ? 'previous' : 'next'}ElementSibling`];\n    if (bulletEl) {\n      bulletEl.classList.add(`${bulletActiveClass}-${position}`);\n      bulletEl = bulletEl[`${position === 'prev' ? 'previous' : 'next'}ElementSibling`];\n      if (bulletEl) {\n        bulletEl.classList.add(`${bulletActiveClass}-${position}-${position}`);\n      }\n    }\n  }\n  function onBulletClick(e) {\n    const bulletEl = e.target.closest(classesToSelector(swiper.params.pagination.bulletClass));\n    if (!bulletEl) {\n      return;\n    }\n    e.preventDefault();\n    const index = elementIndex(bulletEl) * swiper.params.slidesPerGroup;\n    if (swiper.params.loop) {\n      if (swiper.realIndex === index) return;\n      swiper.slideToLoop(index);\n    } else {\n      swiper.slideTo(index);\n    }\n  }\n  function update() {\n    // Render || Update Pagination bullets/items\n    const rtl = swiper.rtl;\n    const params = swiper.params.pagination;\n    if (isPaginationDisabled()) return;\n    let el = swiper.pagination.el;\n    el = makeElementsArray(el);\n    // Current/Total\n    let current;\n    let previousIndex;\n    const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\n    const total = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n    if (swiper.params.loop) {\n      previousIndex = swiper.previousRealIndex || 0;\n      current = swiper.params.slidesPerGroup > 1 ? Math.floor(swiper.realIndex / swiper.params.slidesPerGroup) : swiper.realIndex;\n    } else if (typeof swiper.snapIndex !== 'undefined') {\n      current = swiper.snapIndex;\n      previousIndex = swiper.previousSnapIndex;\n    } else {\n      previousIndex = swiper.previousIndex || 0;\n      current = swiper.activeIndex || 0;\n    }\n    // Types\n    if (params.type === 'bullets' && swiper.pagination.bullets && swiper.pagination.bullets.length > 0) {\n      const bullets = swiper.pagination.bullets;\n      let firstIndex;\n      let lastIndex;\n      let midIndex;\n      if (params.dynamicBullets) {\n        bulletSize = elementOuterSize(bullets[0], swiper.isHorizontal() ? 'width' : 'height', true);\n        el.forEach(subEl => {\n          subEl.style[swiper.isHorizontal() ? 'width' : 'height'] = `${bulletSize * (params.dynamicMainBullets + 4)}px`;\n        });\n        if (params.dynamicMainBullets > 1 && previousIndex !== undefined) {\n          dynamicBulletIndex += current - (previousIndex || 0);\n          if (dynamicBulletIndex > params.dynamicMainBullets - 1) {\n            dynamicBulletIndex = params.dynamicMainBullets - 1;\n          } else if (dynamicBulletIndex < 0) {\n            dynamicBulletIndex = 0;\n          }\n        }\n        firstIndex = Math.max(current - dynamicBulletIndex, 0);\n        lastIndex = firstIndex + (Math.min(bullets.length, params.dynamicMainBullets) - 1);\n        midIndex = (lastIndex + firstIndex) / 2;\n      }\n      bullets.forEach(bulletEl => {\n        const classesToRemove = [...['', '-next', '-next-next', '-prev', '-prev-prev', '-main'].map(suffix => `${params.bulletActiveClass}${suffix}`)].map(s => typeof s === 'string' && s.includes(' ') ? s.split(' ') : s).flat();\n        bulletEl.classList.remove(...classesToRemove);\n      });\n      if (el.length > 1) {\n        bullets.forEach(bullet => {\n          const bulletIndex = elementIndex(bullet);\n          if (bulletIndex === current) {\n            bullet.classList.add(...params.bulletActiveClass.split(' '));\n          } else if (swiper.isElement) {\n            bullet.setAttribute('part', 'bullet');\n          }\n          if (params.dynamicBullets) {\n            if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) {\n              bullet.classList.add(...`${params.bulletActiveClass}-main`.split(' '));\n            }\n            if (bulletIndex === firstIndex) {\n              setSideBullets(bullet, 'prev');\n            }\n            if (bulletIndex === lastIndex) {\n              setSideBullets(bullet, 'next');\n            }\n          }\n        });\n      } else {\n        const bullet = bullets[current];\n        if (bullet) {\n          bullet.classList.add(...params.bulletActiveClass.split(' '));\n        }\n        if (swiper.isElement) {\n          bullets.forEach((bulletEl, bulletIndex) => {\n            bulletEl.setAttribute('part', bulletIndex === current ? 'bullet-active' : 'bullet');\n          });\n        }\n        if (params.dynamicBullets) {\n          const firstDisplayedBullet = bullets[firstIndex];\n          const lastDisplayedBullet = bullets[lastIndex];\n          for (let i = firstIndex; i <= lastIndex; i += 1) {\n            if (bullets[i]) {\n              bullets[i].classList.add(...`${params.bulletActiveClass}-main`.split(' '));\n            }\n          }\n          setSideBullets(firstDisplayedBullet, 'prev');\n          setSideBullets(lastDisplayedBullet, 'next');\n        }\n      }\n      if (params.dynamicBullets) {\n        const dynamicBulletsLength = Math.min(bullets.length, params.dynamicMainBullets + 4);\n        const bulletsOffset = (bulletSize * dynamicBulletsLength - bulletSize) / 2 - midIndex * bulletSize;\n        const offsetProp = rtl ? 'right' : 'left';\n        bullets.forEach(bullet => {\n          bullet.style[swiper.isHorizontal() ? offsetProp : 'top'] = `${bulletsOffset}px`;\n        });\n      }\n    }\n    el.forEach((subEl, subElIndex) => {\n      if (params.type === 'fraction') {\n        subEl.querySelectorAll(classesToSelector(params.currentClass)).forEach(fractionEl => {\n          fractionEl.textContent = params.formatFractionCurrent(current + 1);\n        });\n        subEl.querySelectorAll(classesToSelector(params.totalClass)).forEach(totalEl => {\n          totalEl.textContent = params.formatFractionTotal(total);\n        });\n      }\n      if (params.type === 'progressbar') {\n        let progressbarDirection;\n        if (params.progressbarOpposite) {\n          progressbarDirection = swiper.isHorizontal() ? 'vertical' : 'horizontal';\n        } else {\n          progressbarDirection = swiper.isHorizontal() ? 'horizontal' : 'vertical';\n        }\n        const scale = (current + 1) / total;\n        let scaleX = 1;\n        let scaleY = 1;\n        if (progressbarDirection === 'horizontal') {\n          scaleX = scale;\n        } else {\n          scaleY = scale;\n        }\n        subEl.querySelectorAll(classesToSelector(params.progressbarFillClass)).forEach(progressEl => {\n          progressEl.style.transform = `translate3d(0,0,0) scaleX(${scaleX}) scaleY(${scaleY})`;\n          progressEl.style.transitionDuration = `${swiper.params.speed}ms`;\n        });\n      }\n      if (params.type === 'custom' && params.renderCustom) {\n        subEl.innerHTML = params.renderCustom(swiper, current + 1, total);\n        if (subElIndex === 0) emit('paginationRender', subEl);\n      } else {\n        if (subElIndex === 0) emit('paginationRender', subEl);\n        emit('paginationUpdate', subEl);\n      }\n      if (swiper.params.watchOverflow && swiper.enabled) {\n        subEl.classList[swiper.isLocked ? 'add' : 'remove'](params.lockClass);\n      }\n    });\n  }\n  function render() {\n    // Render Container\n    const params = swiper.params.pagination;\n    if (isPaginationDisabled()) return;\n    const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.grid && swiper.params.grid.rows > 1 ? swiper.slides.length / Math.ceil(swiper.params.grid.rows) : swiper.slides.length;\n    let el = swiper.pagination.el;\n    el = makeElementsArray(el);\n    let paginationHTML = '';\n    if (params.type === 'bullets') {\n      let numberOfBullets = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n      if (swiper.params.freeMode && swiper.params.freeMode.enabled && numberOfBullets > slidesLength) {\n        numberOfBullets = slidesLength;\n      }\n      for (let i = 0; i < numberOfBullets; i += 1) {\n        if (params.renderBullet) {\n          paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);\n        } else {\n          // prettier-ignore\n          paginationHTML += `<${params.bulletElement} ${swiper.isElement ? 'part=\"bullet\"' : ''} class=\"${params.bulletClass}\"></${params.bulletElement}>`;\n        }\n      }\n    }\n    if (params.type === 'fraction') {\n      if (params.renderFraction) {\n        paginationHTML = params.renderFraction.call(swiper, params.currentClass, params.totalClass);\n      } else {\n        paginationHTML = `<span class=\"${params.currentClass}\"></span>` + ' / ' + `<span class=\"${params.totalClass}\"></span>`;\n      }\n    }\n    if (params.type === 'progressbar') {\n      if (params.renderProgressbar) {\n        paginationHTML = params.renderProgressbar.call(swiper, params.progressbarFillClass);\n      } else {\n        paginationHTML = `<span class=\"${params.progressbarFillClass}\"></span>`;\n      }\n    }\n    swiper.pagination.bullets = [];\n    el.forEach(subEl => {\n      if (params.type !== 'custom') {\n        subEl.innerHTML = paginationHTML || '';\n      }\n      if (params.type === 'bullets') {\n        swiper.pagination.bullets.push(...subEl.querySelectorAll(classesToSelector(params.bulletClass)));\n      }\n    });\n    if (params.type !== 'custom') {\n      emit('paginationRender', el[0]);\n    }\n  }\n  function init() {\n    swiper.params.pagination = createElementIfNotDefined(swiper, swiper.originalParams.pagination, swiper.params.pagination, {\n      el: 'swiper-pagination'\n    });\n    const params = swiper.params.pagination;\n    if (!params.el) return;\n    let el;\n    if (typeof params.el === 'string' && swiper.isElement) {\n      el = swiper.el.querySelector(params.el);\n    }\n    if (!el && typeof params.el === 'string') {\n      el = [...document.querySelectorAll(params.el)];\n    }\n    if (!el) {\n      el = params.el;\n    }\n    if (!el || el.length === 0) return;\n    if (swiper.params.uniqueNavElements && typeof params.el === 'string' && Array.isArray(el) && el.length > 1) {\n      el = [...swiper.el.querySelectorAll(params.el)];\n      // check if it belongs to another nested Swiper\n      if (el.length > 1) {\n        el = el.filter(subEl => {\n          if (elementParents(subEl, '.swiper')[0] !== swiper.el) return false;\n          return true;\n        })[0];\n      }\n    }\n    if (Array.isArray(el) && el.length === 1) el = el[0];\n    Object.assign(swiper.pagination, {\n      el\n    });\n    el = makeElementsArray(el);\n    el.forEach(subEl => {\n      if (params.type === 'bullets' && params.clickable) {\n        subEl.classList.add(...(params.clickableClass || '').split(' '));\n      }\n      subEl.classList.add(params.modifierClass + params.type);\n      subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n      if (params.type === 'bullets' && params.dynamicBullets) {\n        subEl.classList.add(`${params.modifierClass}${params.type}-dynamic`);\n        dynamicBulletIndex = 0;\n        if (params.dynamicMainBullets < 1) {\n          params.dynamicMainBullets = 1;\n        }\n      }\n      if (params.type === 'progressbar' && params.progressbarOpposite) {\n        subEl.classList.add(params.progressbarOppositeClass);\n      }\n      if (params.clickable) {\n        subEl.addEventListener('click', onBulletClick);\n      }\n      if (!swiper.enabled) {\n        subEl.classList.add(params.lockClass);\n      }\n    });\n  }\n  function destroy() {\n    const params = swiper.params.pagination;\n    if (isPaginationDisabled()) return;\n    let el = swiper.pagination.el;\n    if (el) {\n      el = makeElementsArray(el);\n      el.forEach(subEl => {\n        subEl.classList.remove(params.hiddenClass);\n        subEl.classList.remove(params.modifierClass + params.type);\n        subEl.classList.remove(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n        if (params.clickable) {\n          subEl.classList.remove(...(params.clickableClass || '').split(' '));\n          subEl.removeEventListener('click', onBulletClick);\n        }\n      });\n    }\n    if (swiper.pagination.bullets) swiper.pagination.bullets.forEach(subEl => subEl.classList.remove(...params.bulletActiveClass.split(' ')));\n  }\n  on('changeDirection', () => {\n    if (!swiper.pagination || !swiper.pagination.el) return;\n    const params = swiper.params.pagination;\n    let {\n      el\n    } = swiper.pagination;\n    el = makeElementsArray(el);\n    el.forEach(subEl => {\n      subEl.classList.remove(params.horizontalClass, params.verticalClass);\n      subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n    });\n  });\n  on('init', () => {\n    if (swiper.params.pagination.enabled === false) {\n      // eslint-disable-next-line\n      disable();\n    } else {\n      init();\n      render();\n      update();\n    }\n  });\n  on('activeIndexChange', () => {\n    if (typeof swiper.snapIndex === 'undefined') {\n      update();\n    }\n  });\n  on('snapIndexChange', () => {\n    update();\n  });\n  on('snapGridLengthChange', () => {\n    render();\n    update();\n  });\n  on('destroy', () => {\n    destroy();\n  });\n  on('enable disable', () => {\n    let {\n      el\n    } = swiper.pagination;\n    if (el) {\n      el = makeElementsArray(el);\n      el.forEach(subEl => subEl.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.pagination.lockClass));\n    }\n  });\n  on('lock unlock', () => {\n    update();\n  });\n  on('click', (_s, e) => {\n    const targetEl = e.target;\n    const el = makeElementsArray(swiper.pagination.el);\n    if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && el && el.length > 0 && !targetEl.classList.contains(swiper.params.pagination.bulletClass)) {\n      if (swiper.navigation && (swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl || swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl)) return;\n      const isHidden = el[0].classList.contains(swiper.params.pagination.hiddenClass);\n      if (isHidden === true) {\n        emit('paginationShow');\n      } else {\n        emit('paginationHide');\n      }\n      el.forEach(subEl => subEl.classList.toggle(swiper.params.pagination.hiddenClass));\n    }\n  });\n  const enable = () => {\n    swiper.el.classList.remove(swiper.params.pagination.paginationDisabledClass);\n    let {\n      el\n    } = swiper.pagination;\n    if (el) {\n      el = makeElementsArray(el);\n      el.forEach(subEl => subEl.classList.remove(swiper.params.pagination.paginationDisabledClass));\n    }\n    init();\n    render();\n    update();\n  };\n  const disable = () => {\n    swiper.el.classList.add(swiper.params.pagination.paginationDisabledClass);\n    let {\n      el\n    } = swiper.pagination;\n    if (el) {\n      el = makeElementsArray(el);\n      el.forEach(subEl => subEl.classList.add(swiper.params.pagination.paginationDisabledClass));\n    }\n    destroy();\n  };\n  Object.assign(swiper.pagination, {\n    enable,\n    disable,\n    render,\n    update,\n    init,\n    destroy\n  });\n}\n\nexport { Pagination as default };\n","import { g as getDocument } from '../shared/ssr-window.esm.mjs';\nimport { m as makeElementsArray, i as classesToTokens, c as createElement, n as nextTick, b as elementOffset } from '../shared/utils.mjs';\nimport { c as createElementIfNotDefined } from '../shared/create-element-if-not-defined.mjs';\nimport { c as classesToSelector } from '../shared/classes-to-selector.mjs';\n\nfunction Scrollbar(_ref) {\n  let {\n    swiper,\n    extendParams,\n    on,\n    emit\n  } = _ref;\n  const document = getDocument();\n  let isTouched = false;\n  let timeout = null;\n  let dragTimeout = null;\n  let dragStartPos;\n  let dragSize;\n  let trackSize;\n  let divider;\n  extendParams({\n    scrollbar: {\n      el: null,\n      dragSize: 'auto',\n      hide: false,\n      draggable: false,\n      snapOnRelease: true,\n      lockClass: 'swiper-scrollbar-lock',\n      dragClass: 'swiper-scrollbar-drag',\n      scrollbarDisabledClass: 'swiper-scrollbar-disabled',\n      horizontalClass: `swiper-scrollbar-horizontal`,\n      verticalClass: `swiper-scrollbar-vertical`\n    }\n  });\n  swiper.scrollbar = {\n    el: null,\n    dragEl: null\n  };\n  function setTranslate() {\n    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n    const {\n      scrollbar,\n      rtlTranslate: rtl\n    } = swiper;\n    const {\n      dragEl,\n      el\n    } = scrollbar;\n    const params = swiper.params.scrollbar;\n    const progress = swiper.params.loop ? swiper.progressLoop : swiper.progress;\n    let newSize = dragSize;\n    let newPos = (trackSize - dragSize) * progress;\n    if (rtl) {\n      newPos = -newPos;\n      if (newPos > 0) {\n        newSize = dragSize - newPos;\n        newPos = 0;\n      } else if (-newPos + dragSize > trackSize) {\n        newSize = trackSize + newPos;\n      }\n    } else if (newPos < 0) {\n      newSize = dragSize + newPos;\n      newPos = 0;\n    } else if (newPos + dragSize > trackSize) {\n      newSize = trackSize - newPos;\n    }\n    if (swiper.isHorizontal()) {\n      dragEl.style.transform = `translate3d(${newPos}px, 0, 0)`;\n      dragEl.style.width = `${newSize}px`;\n    } else {\n      dragEl.style.transform = `translate3d(0px, ${newPos}px, 0)`;\n      dragEl.style.height = `${newSize}px`;\n    }\n    if (params.hide) {\n      clearTimeout(timeout);\n      el.style.opacity = 1;\n      timeout = setTimeout(() => {\n        el.style.opacity = 0;\n        el.style.transitionDuration = '400ms';\n      }, 1000);\n    }\n  }\n  function setTransition(duration) {\n    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n    swiper.scrollbar.dragEl.style.transitionDuration = `${duration}ms`;\n  }\n  function updateSize() {\n    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n    const {\n      scrollbar\n    } = swiper;\n    const {\n      dragEl,\n      el\n    } = scrollbar;\n    dragEl.style.width = '';\n    dragEl.style.height = '';\n    trackSize = swiper.isHorizontal() ? el.offsetWidth : el.offsetHeight;\n    divider = swiper.size / (swiper.virtualSize + swiper.params.slidesOffsetBefore - (swiper.params.centeredSlides ? swiper.snapGrid[0] : 0));\n    if (swiper.params.scrollbar.dragSize === 'auto') {\n      dragSize = trackSize * divider;\n    } else {\n      dragSize = parseInt(swiper.params.scrollbar.dragSize, 10);\n    }\n    if (swiper.isHorizontal()) {\n      dragEl.style.width = `${dragSize}px`;\n    } else {\n      dragEl.style.height = `${dragSize}px`;\n    }\n    if (divider >= 1) {\n      el.style.display = 'none';\n    } else {\n      el.style.display = '';\n    }\n    if (swiper.params.scrollbar.hide) {\n      el.style.opacity = 0;\n    }\n    if (swiper.params.watchOverflow && swiper.enabled) {\n      scrollbar.el.classList[swiper.isLocked ? 'add' : 'remove'](swiper.params.scrollbar.lockClass);\n    }\n  }\n  function getPointerPosition(e) {\n    return swiper.isHorizontal() ? e.clientX : e.clientY;\n  }\n  function setDragPosition(e) {\n    const {\n      scrollbar,\n      rtlTranslate: rtl\n    } = swiper;\n    const {\n      el\n    } = scrollbar;\n    let positionRatio;\n    positionRatio = (getPointerPosition(e) - elementOffset(el)[swiper.isHorizontal() ? 'left' : 'top'] - (dragStartPos !== null ? dragStartPos : dragSize / 2)) / (trackSize - dragSize);\n    positionRatio = Math.max(Math.min(positionRatio, 1), 0);\n    if (rtl) {\n      positionRatio = 1 - positionRatio;\n    }\n    const position = swiper.minTranslate() + (swiper.maxTranslate() - swiper.minTranslate()) * positionRatio;\n    swiper.updateProgress(position);\n    swiper.setTranslate(position);\n    swiper.updateActiveIndex();\n    swiper.updateSlidesClasses();\n  }\n  function onDragStart(e) {\n    const params = swiper.params.scrollbar;\n    const {\n      scrollbar,\n      wrapperEl\n    } = swiper;\n    const {\n      el,\n      dragEl\n    } = scrollbar;\n    isTouched = true;\n    dragStartPos = e.target === dragEl ? getPointerPosition(e) - e.target.getBoundingClientRect()[swiper.isHorizontal() ? 'left' : 'top'] : null;\n    e.preventDefault();\n    e.stopPropagation();\n    wrapperEl.style.transitionDuration = '100ms';\n    dragEl.style.transitionDuration = '100ms';\n    setDragPosition(e);\n    clearTimeout(dragTimeout);\n    el.style.transitionDuration = '0ms';\n    if (params.hide) {\n      el.style.opacity = 1;\n    }\n    if (swiper.params.cssMode) {\n      swiper.wrapperEl.style['scroll-snap-type'] = 'none';\n    }\n    emit('scrollbarDragStart', e);\n  }\n  function onDragMove(e) {\n    const {\n      scrollbar,\n      wrapperEl\n    } = swiper;\n    const {\n      el,\n      dragEl\n    } = scrollbar;\n    if (!isTouched) return;\n    if (e.preventDefault && e.cancelable) e.preventDefault();else e.returnValue = false;\n    setDragPosition(e);\n    wrapperEl.style.transitionDuration = '0ms';\n    el.style.transitionDuration = '0ms';\n    dragEl.style.transitionDuration = '0ms';\n    emit('scrollbarDragMove', e);\n  }\n  function onDragEnd(e) {\n    const params = swiper.params.scrollbar;\n    const {\n      scrollbar,\n      wrapperEl\n    } = swiper;\n    const {\n      el\n    } = scrollbar;\n    if (!isTouched) return;\n    isTouched = false;\n    if (swiper.params.cssMode) {\n      swiper.wrapperEl.style['scroll-snap-type'] = '';\n      wrapperEl.style.transitionDuration = '';\n    }\n    if (params.hide) {\n      clearTimeout(dragTimeout);\n      dragTimeout = nextTick(() => {\n        el.style.opacity = 0;\n        el.style.transitionDuration = '400ms';\n      }, 1000);\n    }\n    emit('scrollbarDragEnd', e);\n    if (params.snapOnRelease) {\n      swiper.slideToClosest();\n    }\n  }\n  function events(method) {\n    const {\n      scrollbar,\n      params\n    } = swiper;\n    const el = scrollbar.el;\n    if (!el) return;\n    const target = el;\n    const activeListener = params.passiveListeners ? {\n      passive: false,\n      capture: false\n    } : false;\n    const passiveListener = params.passiveListeners ? {\n      passive: true,\n      capture: false\n    } : false;\n    if (!target) return;\n    const eventMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';\n    target[eventMethod]('pointerdown', onDragStart, activeListener);\n    document[eventMethod]('pointermove', onDragMove, activeListener);\n    document[eventMethod]('pointerup', onDragEnd, passiveListener);\n  }\n  function enableDraggable() {\n    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n    events('on');\n  }\n  function disableDraggable() {\n    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;\n    events('off');\n  }\n  function init() {\n    const {\n      scrollbar,\n      el: swiperEl\n    } = swiper;\n    swiper.params.scrollbar = createElementIfNotDefined(swiper, swiper.originalParams.scrollbar, swiper.params.scrollbar, {\n      el: 'swiper-scrollbar'\n    });\n    const params = swiper.params.scrollbar;\n    if (!params.el) return;\n    let el;\n    if (typeof params.el === 'string' && swiper.isElement) {\n      el = swiper.el.querySelector(params.el);\n    }\n    if (!el && typeof params.el === 'string') {\n      el = document.querySelectorAll(params.el);\n      if (!el.length) return;\n    } else if (!el) {\n      el = params.el;\n    }\n    if (swiper.params.uniqueNavElements && typeof params.el === 'string' && el.length > 1 && swiperEl.querySelectorAll(params.el).length === 1) {\n      el = swiperEl.querySelector(params.el);\n    }\n    if (el.length > 0) el = el[0];\n    el.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n    let dragEl;\n    if (el) {\n      dragEl = el.querySelector(classesToSelector(swiper.params.scrollbar.dragClass));\n      if (!dragEl) {\n        dragEl = createElement('div', swiper.params.scrollbar.dragClass);\n        el.append(dragEl);\n      }\n    }\n    Object.assign(scrollbar, {\n      el,\n      dragEl\n    });\n    if (params.draggable) {\n      enableDraggable();\n    }\n    if (el) {\n      el.classList[swiper.enabled ? 'remove' : 'add'](...classesToTokens(swiper.params.scrollbar.lockClass));\n    }\n  }\n  function destroy() {\n    const params = swiper.params.scrollbar;\n    const el = swiper.scrollbar.el;\n    if (el) {\n      el.classList.remove(...classesToTokens(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass));\n    }\n    disableDraggable();\n  }\n  on('changeDirection', () => {\n    if (!swiper.scrollbar || !swiper.scrollbar.el) return;\n    const params = swiper.params.scrollbar;\n    let {\n      el\n    } = swiper.scrollbar;\n    el = makeElementsArray(el);\n    el.forEach(subEl => {\n      subEl.classList.remove(params.horizontalClass, params.verticalClass);\n      subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n    });\n  });\n  on('init', () => {\n    if (swiper.params.scrollbar.enabled === false) {\n      // eslint-disable-next-line\n      disable();\n    } else {\n      init();\n      updateSize();\n      setTranslate();\n    }\n  });\n  on('update resize observerUpdate lock unlock changeDirection', () => {\n    updateSize();\n  });\n  on('setTranslate', () => {\n    setTranslate();\n  });\n  on('setTransition', (_s, duration) => {\n    setTransition(duration);\n  });\n  on('enable disable', () => {\n    const {\n      el\n    } = swiper.scrollbar;\n    if (el) {\n      el.classList[swiper.enabled ? 'remove' : 'add'](...classesToTokens(swiper.params.scrollbar.lockClass));\n    }\n  });\n  on('destroy', () => {\n    destroy();\n  });\n  const enable = () => {\n    swiper.el.classList.remove(...classesToTokens(swiper.params.scrollbar.scrollbarDisabledClass));\n    if (swiper.scrollbar.el) {\n      swiper.scrollbar.el.classList.remove(...classesToTokens(swiper.params.scrollbar.scrollbarDisabledClass));\n    }\n    init();\n    updateSize();\n    setTranslate();\n  };\n  const disable = () => {\n    swiper.el.classList.add(...classesToTokens(swiper.params.scrollbar.scrollbarDisabledClass));\n    if (swiper.scrollbar.el) {\n      swiper.scrollbar.el.classList.add(...classesToTokens(swiper.params.scrollbar.scrollbarDisabledClass));\n    }\n    destroy();\n  };\n  Object.assign(swiper.scrollbar, {\n    enable,\n    disable,\n    updateSize,\n    setTranslate,\n    init,\n    destroy\n  });\n}\n\nexport { Scrollbar as default };\n","/**\n * SSR Window 4.0.2\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2021, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: December 13, 2021\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n  return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n  if (target === void 0) {\n    target = {};\n  }\n  if (src === void 0) {\n    src = {};\n  }\n  Object.keys(src).forEach(key => {\n    if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n      extend(target[key], src[key]);\n    }\n  });\n}\nconst ssrDocument = {\n  body: {},\n  addEventListener() {},\n  removeEventListener() {},\n  activeElement: {\n    blur() {},\n    nodeName: ''\n  },\n  querySelector() {\n    return null;\n  },\n  querySelectorAll() {\n    return [];\n  },\n  getElementById() {\n    return null;\n  },\n  createEvent() {\n    return {\n      initEvent() {}\n    };\n  },\n  createElement() {\n    return {\n      children: [],\n      childNodes: [],\n      style: {},\n      setAttribute() {},\n      getElementsByTagName() {\n        return [];\n      }\n    };\n  },\n  createElementNS() {\n    return {};\n  },\n  importNode() {\n    return null;\n  },\n  location: {\n    hash: '',\n    host: '',\n    hostname: '',\n    href: '',\n    origin: '',\n    pathname: '',\n    protocol: '',\n    search: ''\n  }\n};\nfunction getDocument() {\n  const doc = typeof document !== 'undefined' ? document : {};\n  extend(doc, ssrDocument);\n  return doc;\n}\nconst ssrWindow = {\n  document: ssrDocument,\n  navigator: {\n    userAgent: ''\n  },\n  location: {\n    hash: '',\n    host: '',\n    hostname: '',\n    href: '',\n    origin: '',\n    pathname: '',\n    protocol: '',\n    search: ''\n  },\n  history: {\n    replaceState() {},\n    pushState() {},\n    go() {},\n    back() {}\n  },\n  CustomEvent: function CustomEvent() {\n    return this;\n  },\n  addEventListener() {},\n  removeEventListener() {},\n  getComputedStyle() {\n    return {\n      getPropertyValue() {\n        return '';\n      }\n    };\n  },\n  Image() {},\n  Date() {},\n  screen: {},\n  setTimeout() {},\n  clearTimeout() {},\n  matchMedia() {\n    return {};\n  },\n  requestAnimationFrame(callback) {\n    if (typeof setTimeout === 'undefined') {\n      callback();\n      return null;\n    }\n    return setTimeout(callback, 0);\n  },\n  cancelAnimationFrame(id) {\n    if (typeof setTimeout === 'undefined') {\n      return;\n    }\n    clearTimeout(id);\n  }\n};\nfunction getWindow() {\n  const win = typeof window !== 'undefined' ? window : {};\n  extend(win, ssrWindow);\n  return win;\n}\n\nexport { getWindow as a, getDocument as g };\n","import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\n\nfunction classesToTokens(classes) {\n  if (classes === void 0) {\n    classes = '';\n  }\n  return classes.trim().split(' ').filter(c => !!c.trim());\n}\n\nfunction deleteProps(obj) {\n  const object = obj;\n  Object.keys(object).forEach(key => {\n    try {\n      object[key] = null;\n    } catch (e) {\n      // no getter for object\n    }\n    try {\n      delete object[key];\n    } catch (e) {\n      // something got wrong\n    }\n  });\n}\nfunction nextTick(callback, delay) {\n  if (delay === void 0) {\n    delay = 0;\n  }\n  return setTimeout(callback, delay);\n}\nfunction now() {\n  return Date.now();\n}\nfunction getComputedStyle(el) {\n  const window = getWindow();\n  let style;\n  if (window.getComputedStyle) {\n    style = window.getComputedStyle(el, null);\n  }\n  if (!style && el.currentStyle) {\n    style = el.currentStyle;\n  }\n  if (!style) {\n    style = el.style;\n  }\n  return style;\n}\nfunction getTranslate(el, axis) {\n  if (axis === void 0) {\n    axis = 'x';\n  }\n  const window = getWindow();\n  let matrix;\n  let curTransform;\n  let transformMatrix;\n  const curStyle = getComputedStyle(el);\n  if (window.WebKitCSSMatrix) {\n    curTransform = curStyle.transform || curStyle.webkitTransform;\n    if (curTransform.split(',').length > 6) {\n      curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');\n    }\n    // Some old versions of Webkit choke when 'none' is passed; pass\n    // empty string instead in this case\n    transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\n  } else {\n    transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\n    matrix = transformMatrix.toString().split(',');\n  }\n  if (axis === 'x') {\n    // Latest Chrome and webkits Fix\n    if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n    // Crazy IE10 Matrix\n    else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n    // Normal Browsers\n    else curTransform = parseFloat(matrix[4]);\n  }\n  if (axis === 'y') {\n    // Latest Chrome and webkits Fix\n    if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n    // Crazy IE10 Matrix\n    else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n    // Normal Browsers\n    else curTransform = parseFloat(matrix[5]);\n  }\n  return curTransform || 0;\n}\nfunction isObject(o) {\n  return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\nfunction isNode(node) {\n  // eslint-disable-next-line\n  if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {\n    return node instanceof HTMLElement;\n  }\n  return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction extend() {\n  const to = Object(arguments.length <= 0 ? undefined : arguments[0]);\n  const noExtend = ['__proto__', 'constructor', 'prototype'];\n  for (let i = 1; i < arguments.length; i += 1) {\n    const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];\n    if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {\n      const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);\n      for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\n        const nextKey = keysArray[nextIndex];\n        const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n        if (desc !== undefined && desc.enumerable) {\n          if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n            if (nextSource[nextKey].__swiper__) {\n              to[nextKey] = nextSource[nextKey];\n            } else {\n              extend(to[nextKey], nextSource[nextKey]);\n            }\n          } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n            to[nextKey] = {};\n            if (nextSource[nextKey].__swiper__) {\n              to[nextKey] = nextSource[nextKey];\n            } else {\n              extend(to[nextKey], nextSource[nextKey]);\n            }\n          } else {\n            to[nextKey] = nextSource[nextKey];\n          }\n        }\n      }\n    }\n  }\n  return to;\n}\nfunction setCSSProperty(el, varName, varValue) {\n  el.style.setProperty(varName, varValue);\n}\nfunction animateCSSModeScroll(_ref) {\n  let {\n    swiper,\n    targetPosition,\n    side\n  } = _ref;\n  const window = getWindow();\n  const startPosition = -swiper.translate;\n  let startTime = null;\n  let time;\n  const duration = swiper.params.speed;\n  swiper.wrapperEl.style.scrollSnapType = 'none';\n  window.cancelAnimationFrame(swiper.cssModeFrameID);\n  const dir = targetPosition > startPosition ? 'next' : 'prev';\n  const isOutOfBound = (current, target) => {\n    return dir === 'next' && current >= target || dir === 'prev' && current <= target;\n  };\n  const animate = () => {\n    time = new Date().getTime();\n    if (startTime === null) {\n      startTime = time;\n    }\n    const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n    const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n    let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n    if (isOutOfBound(currentPosition, targetPosition)) {\n      currentPosition = targetPosition;\n    }\n    swiper.wrapperEl.scrollTo({\n      [side]: currentPosition\n    });\n    if (isOutOfBound(currentPosition, targetPosition)) {\n      swiper.wrapperEl.style.overflow = 'hidden';\n      swiper.wrapperEl.style.scrollSnapType = '';\n      setTimeout(() => {\n        swiper.wrapperEl.style.overflow = '';\n        swiper.wrapperEl.scrollTo({\n          [side]: currentPosition\n        });\n      });\n      window.cancelAnimationFrame(swiper.cssModeFrameID);\n      return;\n    }\n    swiper.cssModeFrameID = window.requestAnimationFrame(animate);\n  };\n  animate();\n}\nfunction getSlideTransformEl(slideEl) {\n  return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;\n}\nfunction elementChildren(element, selector) {\n  if (selector === void 0) {\n    selector = '';\n  }\n  return [...element.children].filter(el => el.matches(selector));\n}\nfunction showWarning(text) {\n  try {\n    console.warn(text);\n    return;\n  } catch (err) {\n    // err\n  }\n}\nfunction createElement(tag, classes) {\n  if (classes === void 0) {\n    classes = [];\n  }\n  const el = document.createElement(tag);\n  el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));\n  return el;\n}\nfunction elementOffset(el) {\n  const window = getWindow();\n  const document = getDocument();\n  const box = el.getBoundingClientRect();\n  const body = document.body;\n  const clientTop = el.clientTop || body.clientTop || 0;\n  const clientLeft = el.clientLeft || body.clientLeft || 0;\n  const scrollTop = el === window ? window.scrollY : el.scrollTop;\n  const scrollLeft = el === window ? window.scrollX : el.scrollLeft;\n  return {\n    top: box.top + scrollTop - clientTop,\n    left: box.left + scrollLeft - clientLeft\n  };\n}\nfunction elementPrevAll(el, selector) {\n  const prevEls = [];\n  while (el.previousElementSibling) {\n    const prev = el.previousElementSibling; // eslint-disable-line\n    if (selector) {\n      if (prev.matches(selector)) prevEls.push(prev);\n    } else prevEls.push(prev);\n    el = prev;\n  }\n  return prevEls;\n}\nfunction elementNextAll(el, selector) {\n  const nextEls = [];\n  while (el.nextElementSibling) {\n    const next = el.nextElementSibling; // eslint-disable-line\n    if (selector) {\n      if (next.matches(selector)) nextEls.push(next);\n    } else nextEls.push(next);\n    el = next;\n  }\n  return nextEls;\n}\nfunction elementStyle(el, prop) {\n  const window = getWindow();\n  return window.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction elementIndex(el) {\n  let child = el;\n  let i;\n  if (child) {\n    i = 0;\n    // eslint-disable-next-line\n    while ((child = child.previousSibling) !== null) {\n      if (child.nodeType === 1) i += 1;\n    }\n    return i;\n  }\n  return undefined;\n}\nfunction elementParents(el, selector) {\n  const parents = []; // eslint-disable-line\n  let parent = el.parentElement; // eslint-disable-line\n  while (parent) {\n    if (selector) {\n      if (parent.matches(selector)) parents.push(parent);\n    } else {\n      parents.push(parent);\n    }\n    parent = parent.parentElement;\n  }\n  return parents;\n}\nfunction elementTransitionEnd(el, callback) {\n  function fireCallBack(e) {\n    if (e.target !== el) return;\n    callback.call(el, e);\n    el.removeEventListener('transitionend', fireCallBack);\n  }\n  if (callback) {\n    el.addEventListener('transitionend', fireCallBack);\n  }\n}\nfunction elementOuterSize(el, size, includeMargins) {\n  const window = getWindow();\n  if (includeMargins) {\n    return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));\n  }\n  return el.offsetWidth;\n}\nfunction makeElementsArray(el) {\n  return (Array.isArray(el) ? el : [el]).filter(e => !!e);\n}\n\nexport { elementParents as a, elementOffset as b, createElement as c, now as d, elementChildren as e, elementOuterSize as f, getSlideTransformEl as g, elementIndex as h, classesToTokens as i, getTranslate as j, elementTransitionEnd as k, isObject as l, makeElementsArray as m, nextTick as n, elementStyle as o, elementNextAll as p, elementPrevAll as q, animateCSSModeScroll as r, setCSSProperty as s, showWarning as t, extend as u, deleteProps as v };\n","import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\nimport { a as elementParents, o as elementStyle, e as elementChildren, s as setCSSProperty, f as elementOuterSize, p as elementNextAll, q as elementPrevAll, j as getTranslate, r as animateCSSModeScroll, n as nextTick, t as showWarning, c as createElement, d as now, u as extend, h as elementIndex, v as deleteProps } from './utils.mjs';\n\nlet support;\nfunction calcSupport() {\n  const window = getWindow();\n  const document = getDocument();\n  return {\n    smoothScroll: document.documentElement && document.documentElement.style && 'scrollBehavior' in document.documentElement.style,\n    touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch)\n  };\n}\nfunction getSupport() {\n  if (!support) {\n    support = calcSupport();\n  }\n  return support;\n}\n\nlet deviceCached;\nfunction calcDevice(_temp) {\n  let {\n    userAgent\n  } = _temp === void 0 ? {} : _temp;\n  const support = getSupport();\n  const window = getWindow();\n  const platform = window.navigator.platform;\n  const ua = userAgent || window.navigator.userAgent;\n  const device = {\n    ios: false,\n    android: false\n  };\n  const screenWidth = window.screen.width;\n  const screenHeight = window.screen.height;\n  const android = ua.match(/(Android);?[\\s\\/]+([\\d.]+)?/); // eslint-disable-line\n  let ipad = ua.match(/(iPad).*OS\\s([\\d_]+)/);\n  const ipod = ua.match(/(iPod)(.*OS\\s([\\d_]+))?/);\n  const iphone = !ipad && ua.match(/(iPhone\\sOS|iOS)\\s([\\d_]+)/);\n  const windows = platform === 'Win32';\n  let macos = platform === 'MacIntel';\n\n  // iPadOs 13 fix\n  const iPadScreens = ['1024x1366', '1366x1024', '834x1194', '1194x834', '834x1112', '1112x834', '768x1024', '1024x768', '820x1180', '1180x820', '810x1080', '1080x810'];\n  if (!ipad && macos && support.touch && iPadScreens.indexOf(`${screenWidth}x${screenHeight}`) >= 0) {\n    ipad = ua.match(/(Version)\\/([\\d.]+)/);\n    if (!ipad) ipad = [0, 1, '13_0_0'];\n    macos = false;\n  }\n\n  // Android\n  if (android && !windows) {\n    device.os = 'android';\n    device.android = true;\n  }\n  if (ipad || iphone || ipod) {\n    device.os = 'ios';\n    device.ios = true;\n  }\n\n  // Export object\n  return device;\n}\nfunction getDevice(overrides) {\n  if (overrides === void 0) {\n    overrides = {};\n  }\n  if (!deviceCached) {\n    deviceCached = calcDevice(overrides);\n  }\n  return deviceCached;\n}\n\nlet browser;\nfunction calcBrowser() {\n  const window = getWindow();\n  const device = getDevice();\n  let needPerspectiveFix = false;\n  function isSafari() {\n    const ua = window.navigator.userAgent.toLowerCase();\n    return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0;\n  }\n  if (isSafari()) {\n    const ua = String(window.navigator.userAgent);\n    if (ua.includes('Version/')) {\n      const [major, minor] = ua.split('Version/')[1].split(' ')[0].split('.').map(num => Number(num));\n      needPerspectiveFix = major < 16 || major === 16 && minor < 2;\n    }\n  }\n  const isWebView = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent);\n  const isSafariBrowser = isSafari();\n  const need3dFix = isSafariBrowser || isWebView && device.ios;\n  return {\n    isSafari: needPerspectiveFix || isSafariBrowser,\n    needPerspectiveFix,\n    need3dFix,\n    isWebView\n  };\n}\nfunction getBrowser() {\n  if (!browser) {\n    browser = calcBrowser();\n  }\n  return browser;\n}\n\nfunction Resize(_ref) {\n  let {\n    swiper,\n    on,\n    emit\n  } = _ref;\n  const window = getWindow();\n  let observer = null;\n  let animationFrame = null;\n  const resizeHandler = () => {\n    if (!swiper || swiper.destroyed || !swiper.initialized) return;\n    emit('beforeResize');\n    emit('resize');\n  };\n  const createObserver = () => {\n    if (!swiper || swiper.destroyed || !swiper.initialized) return;\n    observer = new ResizeObserver(entries => {\n      animationFrame = window.requestAnimationFrame(() => {\n        const {\n          width,\n          height\n        } = swiper;\n        let newWidth = width;\n        let newHeight = height;\n        entries.forEach(_ref2 => {\n          let {\n            contentBoxSize,\n            contentRect,\n            target\n          } = _ref2;\n          if (target && target !== swiper.el) return;\n          newWidth = contentRect ? contentRect.width : (contentBoxSize[0] || contentBoxSize).inlineSize;\n          newHeight = contentRect ? contentRect.height : (contentBoxSize[0] || contentBoxSize).blockSize;\n        });\n        if (newWidth !== width || newHeight !== height) {\n          resizeHandler();\n        }\n      });\n    });\n    observer.observe(swiper.el);\n  };\n  const removeObserver = () => {\n    if (animationFrame) {\n      window.cancelAnimationFrame(animationFrame);\n    }\n    if (observer && observer.unobserve && swiper.el) {\n      observer.unobserve(swiper.el);\n      observer = null;\n    }\n  };\n  const orientationChangeHandler = () => {\n    if (!swiper || swiper.destroyed || !swiper.initialized) return;\n    emit('orientationchange');\n  };\n  on('init', () => {\n    if (swiper.params.resizeObserver && typeof window.ResizeObserver !== 'undefined') {\n      createObserver();\n      return;\n    }\n    window.addEventListener('resize', resizeHandler);\n    window.addEventListener('orientationchange', orientationChangeHandler);\n  });\n  on('destroy', () => {\n    removeObserver();\n    window.removeEventListener('resize', resizeHandler);\n    window.removeEventListener('orientationchange', orientationChangeHandler);\n  });\n}\n\nfunction Observer(_ref) {\n  let {\n    swiper,\n    extendParams,\n    on,\n    emit\n  } = _ref;\n  const observers = [];\n  const window = getWindow();\n  const attach = function (target, options) {\n    if (options === void 0) {\n      options = {};\n    }\n    const ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;\n    const observer = new ObserverFunc(mutations => {\n      // The observerUpdate event should only be triggered\n      // once despite the number of mutations.  Additional\n      // triggers are redundant and are very costly\n      if (swiper.__preventObserver__) return;\n      if (mutations.length === 1) {\n        emit('observerUpdate', mutations[0]);\n        return;\n      }\n      const observerUpdate = function observerUpdate() {\n        emit('observerUpdate', mutations[0]);\n      };\n      if (window.requestAnimationFrame) {\n        window.requestAnimationFrame(observerUpdate);\n      } else {\n        window.setTimeout(observerUpdate, 0);\n      }\n    });\n    observer.observe(target, {\n      attributes: typeof options.attributes === 'undefined' ? true : options.attributes,\n      childList: typeof options.childList === 'undefined' ? true : options.childList,\n      characterData: typeof options.characterData === 'undefined' ? true : options.characterData\n    });\n    observers.push(observer);\n  };\n  const init = () => {\n    if (!swiper.params.observer) return;\n    if (swiper.params.observeParents) {\n      const containerParents = elementParents(swiper.hostEl);\n      for (let i = 0; i < containerParents.length; i += 1) {\n        attach(containerParents[i]);\n      }\n    }\n    // Observe container\n    attach(swiper.hostEl, {\n      childList: swiper.params.observeSlideChildren\n    });\n\n    // Observe wrapper\n    attach(swiper.wrapperEl, {\n      attributes: false\n    });\n  };\n  const destroy = () => {\n    observers.forEach(observer => {\n      observer.disconnect();\n    });\n    observers.splice(0, observers.length);\n  };\n  extendParams({\n    observer: false,\n    observeParents: false,\n    observeSlideChildren: false\n  });\n  on('init', init);\n  on('destroy', destroy);\n}\n\n/* eslint-disable no-underscore-dangle */\n\nvar eventsEmitter = {\n  on(events, handler, priority) {\n    const self = this;\n    if (!self.eventsListeners || self.destroyed) return self;\n    if (typeof handler !== 'function') return self;\n    const method = priority ? 'unshift' : 'push';\n    events.split(' ').forEach(event => {\n      if (!self.eventsListeners[event]) self.eventsListeners[event] = [];\n      self.eventsListeners[event][method](handler);\n    });\n    return self;\n  },\n  once(events, handler, priority) {\n    const self = this;\n    if (!self.eventsListeners || self.destroyed) return self;\n    if (typeof handler !== 'function') return self;\n    function onceHandler() {\n      self.off(events, onceHandler);\n      if (onceHandler.__emitterProxy) {\n        delete onceHandler.__emitterProxy;\n      }\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      handler.apply(self, args);\n    }\n    onceHandler.__emitterProxy = handler;\n    return self.on(events, onceHandler, priority);\n  },\n  onAny(handler, priority) {\n    const self = this;\n    if (!self.eventsListeners || self.destroyed) return self;\n    if (typeof handler !== 'function') return self;\n    const method = priority ? 'unshift' : 'push';\n    if (self.eventsAnyListeners.indexOf(handler) < 0) {\n      self.eventsAnyListeners[method](handler);\n    }\n    return self;\n  },\n  offAny(handler) {\n    const self = this;\n    if (!self.eventsListeners || self.destroyed) return self;\n    if (!self.eventsAnyListeners) return self;\n    const index = self.eventsAnyListeners.indexOf(handler);\n    if (index >= 0) {\n      self.eventsAnyListeners.splice(index, 1);\n    }\n    return self;\n  },\n  off(events, handler) {\n    const self = this;\n    if (!self.eventsListeners || self.destroyed) return self;\n    if (!self.eventsListeners) return self;\n    events.split(' ').forEach(event => {\n      if (typeof handler === 'undefined') {\n        self.eventsListeners[event] = [];\n      } else if (self.eventsListeners[event]) {\n        self.eventsListeners[event].forEach((eventHandler, index) => {\n          if (eventHandler === handler || eventHandler.__emitterProxy && eventHandler.__emitterProxy === handler) {\n            self.eventsListeners[event].splice(index, 1);\n          }\n        });\n      }\n    });\n    return self;\n  },\n  emit() {\n    const self = this;\n    if (!self.eventsListeners || self.destroyed) return self;\n    if (!self.eventsListeners) return self;\n    let events;\n    let data;\n    let context;\n    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      args[_key2] = arguments[_key2];\n    }\n    if (typeof args[0] === 'string' || Array.isArray(args[0])) {\n      events = args[0];\n      data = args.slice(1, args.length);\n      context = self;\n    } else {\n      events = args[0].events;\n      data = args[0].data;\n      context = args[0].context || self;\n    }\n    data.unshift(context);\n    const eventsArray = Array.isArray(events) ? events : events.split(' ');\n    eventsArray.forEach(event => {\n      if (self.eventsAnyListeners && self.eventsAnyListeners.length) {\n        self.eventsAnyListeners.forEach(eventHandler => {\n          eventHandler.apply(context, [event, ...data]);\n        });\n      }\n      if (self.eventsListeners && self.eventsListeners[event]) {\n        self.eventsListeners[event].forEach(eventHandler => {\n          eventHandler.apply(context, data);\n        });\n      }\n    });\n    return self;\n  }\n};\n\nfunction updateSize() {\n  const swiper = this;\n  let width;\n  let height;\n  const el = swiper.el;\n  if (typeof swiper.params.width !== 'undefined' && swiper.params.width !== null) {\n    width = swiper.params.width;\n  } else {\n    width = el.clientWidth;\n  }\n  if (typeof swiper.params.height !== 'undefined' && swiper.params.height !== null) {\n    height = swiper.params.height;\n  } else {\n    height = el.clientHeight;\n  }\n  if (width === 0 && swiper.isHorizontal() || height === 0 && swiper.isVertical()) {\n    return;\n  }\n\n  // Subtract paddings\n  width = width - parseInt(elementStyle(el, 'padding-left') || 0, 10) - parseInt(elementStyle(el, 'padding-right') || 0, 10);\n  height = height - parseInt(elementStyle(el, 'padding-top') || 0, 10) - parseInt(elementStyle(el, 'padding-bottom') || 0, 10);\n  if (Number.isNaN(width)) width = 0;\n  if (Number.isNaN(height)) height = 0;\n  Object.assign(swiper, {\n    width,\n    height,\n    size: swiper.isHorizontal() ? width : height\n  });\n}\n\nfunction updateSlides() {\n  const swiper = this;\n  function getDirectionPropertyValue(node, label) {\n    return parseFloat(node.getPropertyValue(swiper.getDirectionLabel(label)) || 0);\n  }\n  const params = swiper.params;\n  const {\n    wrapperEl,\n    slidesEl,\n    size: swiperSize,\n    rtlTranslate: rtl,\n    wrongRTL\n  } = swiper;\n  const isVirtual = swiper.virtual && params.virtual.enabled;\n  const previousSlidesLength = isVirtual ? swiper.virtual.slides.length : swiper.slides.length;\n  const slides = elementChildren(slidesEl, `.${swiper.params.slideClass}, swiper-slide`);\n  const slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;\n  let snapGrid = [];\n  const slidesGrid = [];\n  const slidesSizesGrid = [];\n  let offsetBefore = params.slidesOffsetBefore;\n  if (typeof offsetBefore === 'function') {\n    offsetBefore = params.slidesOffsetBefore.call(swiper);\n  }\n  let offsetAfter = params.slidesOffsetAfter;\n  if (typeof offsetAfter === 'function') {\n    offsetAfter = params.slidesOffsetAfter.call(swiper);\n  }\n  const previousSnapGridLength = swiper.snapGrid.length;\n  const previousSlidesGridLength = swiper.slidesGrid.length;\n  let spaceBetween = params.spaceBetween;\n  let slidePosition = -offsetBefore;\n  let prevSlideSize = 0;\n  let index = 0;\n  if (typeof swiperSize === 'undefined') {\n    return;\n  }\n  if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {\n    spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiperSize;\n  } else if (typeof spaceBetween === 'string') {\n    spaceBetween = parseFloat(spaceBetween);\n  }\n  swiper.virtualSize = -spaceBetween;\n\n  // reset margins\n  slides.forEach(slideEl => {\n    if (rtl) {\n      slideEl.style.marginLeft = '';\n    } else {\n      slideEl.style.marginRight = '';\n    }\n    slideEl.style.marginBottom = '';\n    slideEl.style.marginTop = '';\n  });\n\n  // reset cssMode offsets\n  if (params.centeredSlides && params.cssMode) {\n    setCSSProperty(wrapperEl, '--swiper-centered-offset-before', '');\n    setCSSProperty(wrapperEl, '--swiper-centered-offset-after', '');\n  }\n  const gridEnabled = params.grid && params.grid.rows > 1 && swiper.grid;\n  if (gridEnabled) {\n    swiper.grid.initSlides(slides);\n  } else if (swiper.grid) {\n    swiper.grid.unsetSlides();\n  }\n\n  // Calc slides\n  let slideSize;\n  const shouldResetSlideSize = params.slidesPerView === 'auto' && params.breakpoints && Object.keys(params.breakpoints).filter(key => {\n    return typeof params.breakpoints[key].slidesPerView !== 'undefined';\n  }).length > 0;\n  for (let i = 0; i < slidesLength; i += 1) {\n    slideSize = 0;\n    let slide;\n    if (slides[i]) slide = slides[i];\n    if (gridEnabled) {\n      swiper.grid.updateSlide(i, slide, slides);\n    }\n    if (slides[i] && elementStyle(slide, 'display') === 'none') continue; // eslint-disable-line\n\n    if (params.slidesPerView === 'auto') {\n      if (shouldResetSlideSize) {\n        slides[i].style[swiper.getDirectionLabel('width')] = ``;\n      }\n      const slideStyles = getComputedStyle(slide);\n      const currentTransform = slide.style.transform;\n      const currentWebKitTransform = slide.style.webkitTransform;\n      if (currentTransform) {\n        slide.style.transform = 'none';\n      }\n      if (currentWebKitTransform) {\n        slide.style.webkitTransform = 'none';\n      }\n      if (params.roundLengths) {\n        slideSize = swiper.isHorizontal() ? elementOuterSize(slide, 'width', true) : elementOuterSize(slide, 'height', true);\n      } else {\n        // eslint-disable-next-line\n        const width = getDirectionPropertyValue(slideStyles, 'width');\n        const paddingLeft = getDirectionPropertyValue(slideStyles, 'padding-left');\n        const paddingRight = getDirectionPropertyValue(slideStyles, 'padding-right');\n        const marginLeft = getDirectionPropertyValue(slideStyles, 'margin-left');\n        const marginRight = getDirectionPropertyValue(slideStyles, 'margin-right');\n        const boxSizing = slideStyles.getPropertyValue('box-sizing');\n        if (boxSizing && boxSizing === 'border-box') {\n          slideSize = width + marginLeft + marginRight;\n        } else {\n          const {\n            clientWidth,\n            offsetWidth\n          } = slide;\n          slideSize = width + paddingLeft + paddingRight + marginLeft + marginRight + (offsetWidth - clientWidth);\n        }\n      }\n      if (currentTransform) {\n        slide.style.transform = currentTransform;\n      }\n      if (currentWebKitTransform) {\n        slide.style.webkitTransform = currentWebKitTransform;\n      }\n      if (params.roundLengths) slideSize = Math.floor(slideSize);\n    } else {\n      slideSize = (swiperSize - (params.slidesPerView - 1) * spaceBetween) / params.slidesPerView;\n      if (params.roundLengths) slideSize = Math.floor(slideSize);\n      if (slides[i]) {\n        slides[i].style[swiper.getDirectionLabel('width')] = `${slideSize}px`;\n      }\n    }\n    if (slides[i]) {\n      slides[i].swiperSlideSize = slideSize;\n    }\n    slidesSizesGrid.push(slideSize);\n    if (params.centeredSlides) {\n      slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;\n      if (prevSlideSize === 0 && i !== 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;\n      if (i === 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;\n      if (Math.abs(slidePosition) < 1 / 1000) slidePosition = 0;\n      if (params.roundLengths) slidePosition = Math.floor(slidePosition);\n      if (index % params.slidesPerGroup === 0) snapGrid.push(slidePosition);\n      slidesGrid.push(slidePosition);\n    } else {\n      if (params.roundLengths) slidePosition = Math.floor(slidePosition);\n      if ((index - Math.min(swiper.params.slidesPerGroupSkip, index)) % swiper.params.slidesPerGroup === 0) snapGrid.push(slidePosition);\n      slidesGrid.push(slidePosition);\n      slidePosition = slidePosition + slideSize + spaceBetween;\n    }\n    swiper.virtualSize += slideSize + spaceBetween;\n    prevSlideSize = slideSize;\n    index += 1;\n  }\n  swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;\n  if (rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {\n    wrapperEl.style.width = `${swiper.virtualSize + spaceBetween}px`;\n  }\n  if (params.setWrapperSize) {\n    wrapperEl.style[swiper.getDirectionLabel('width')] = `${swiper.virtualSize + spaceBetween}px`;\n  }\n  if (gridEnabled) {\n    swiper.grid.updateWrapperSize(slideSize, snapGrid);\n  }\n\n  // Remove last grid elements depending on width\n  if (!params.centeredSlides) {\n    const newSlidesGrid = [];\n    for (let i = 0; i < snapGrid.length; i += 1) {\n      let slidesGridItem = snapGrid[i];\n      if (params.roundLengths) slidesGridItem = Math.floor(slidesGridItem);\n      if (snapGrid[i] <= swiper.virtualSize - swiperSize) {\n        newSlidesGrid.push(slidesGridItem);\n      }\n    }\n    snapGrid = newSlidesGrid;\n    if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {\n      snapGrid.push(swiper.virtualSize - swiperSize);\n    }\n  }\n  if (isVirtual && params.loop) {\n    const size = slidesSizesGrid[0] + spaceBetween;\n    if (params.slidesPerGroup > 1) {\n      const groups = Math.ceil((swiper.virtual.slidesBefore + swiper.virtual.slidesAfter) / params.slidesPerGroup);\n      const groupSize = size * params.slidesPerGroup;\n      for (let i = 0; i < groups; i += 1) {\n        snapGrid.push(snapGrid[snapGrid.length - 1] + groupSize);\n      }\n    }\n    for (let i = 0; i < swiper.virtual.slidesBefore + swiper.virtual.slidesAfter; i += 1) {\n      if (params.slidesPerGroup === 1) {\n        snapGrid.push(snapGrid[snapGrid.length - 1] + size);\n      }\n      slidesGrid.push(slidesGrid[slidesGrid.length - 1] + size);\n      swiper.virtualSize += size;\n    }\n  }\n  if (snapGrid.length === 0) snapGrid = [0];\n  if (spaceBetween !== 0) {\n    const key = swiper.isHorizontal() && rtl ? 'marginLeft' : swiper.getDirectionLabel('marginRight');\n    slides.filter((_, slideIndex) => {\n      if (!params.cssMode || params.loop) return true;\n      if (slideIndex === slides.length - 1) {\n        return false;\n      }\n      return true;\n    }).forEach(slideEl => {\n      slideEl.style[key] = `${spaceBetween}px`;\n    });\n  }\n  if (params.centeredSlides && params.centeredSlidesBounds) {\n    let allSlidesSize = 0;\n    slidesSizesGrid.forEach(slideSizeValue => {\n      allSlidesSize += slideSizeValue + (spaceBetween || 0);\n    });\n    allSlidesSize -= spaceBetween;\n    const maxSnap = allSlidesSize - swiperSize;\n    snapGrid = snapGrid.map(snap => {\n      if (snap <= 0) return -offsetBefore;\n      if (snap > maxSnap) return maxSnap + offsetAfter;\n      return snap;\n    });\n  }\n  if (params.centerInsufficientSlides) {\n    let allSlidesSize = 0;\n    slidesSizesGrid.forEach(slideSizeValue => {\n      allSlidesSize += slideSizeValue + (spaceBetween || 0);\n    });\n    allSlidesSize -= spaceBetween;\n    const offsetSize = (params.slidesOffsetBefore || 0) + (params.slidesOffsetAfter || 0);\n    if (allSlidesSize + offsetSize < swiperSize) {\n      const allSlidesOffset = (swiperSize - allSlidesSize - offsetSize) / 2;\n      snapGrid.forEach((snap, snapIndex) => {\n        snapGrid[snapIndex] = snap - allSlidesOffset;\n      });\n      slidesGrid.forEach((snap, snapIndex) => {\n        slidesGrid[snapIndex] = snap + allSlidesOffset;\n      });\n    }\n  }\n  Object.assign(swiper, {\n    slides,\n    snapGrid,\n    slidesGrid,\n    slidesSizesGrid\n  });\n  if (params.centeredSlides && params.cssMode && !params.centeredSlidesBounds) {\n    setCSSProperty(wrapperEl, '--swiper-centered-offset-before', `${-snapGrid[0]}px`);\n    setCSSProperty(wrapperEl, '--swiper-centered-offset-after', `${swiper.size / 2 - slidesSizesGrid[slidesSizesGrid.length - 1] / 2}px`);\n    const addToSnapGrid = -swiper.snapGrid[0];\n    const addToSlidesGrid = -swiper.slidesGrid[0];\n    swiper.snapGrid = swiper.snapGrid.map(v => v + addToSnapGrid);\n    swiper.slidesGrid = swiper.slidesGrid.map(v => v + addToSlidesGrid);\n  }\n  if (slidesLength !== previousSlidesLength) {\n    swiper.emit('slidesLengthChange');\n  }\n  if (snapGrid.length !== previousSnapGridLength) {\n    if (swiper.params.watchOverflow) swiper.checkOverflow();\n    swiper.emit('snapGridLengthChange');\n  }\n  if (slidesGrid.length !== previousSlidesGridLength) {\n    swiper.emit('slidesGridLengthChange');\n  }\n  if (params.watchSlidesProgress) {\n    swiper.updateSlidesOffset();\n  }\n  swiper.emit('slidesUpdated');\n  if (!isVirtual && !params.cssMode && (params.effect === 'slide' || params.effect === 'fade')) {\n    const backFaceHiddenClass = `${params.containerModifierClass}backface-hidden`;\n    const hasClassBackfaceClassAdded = swiper.el.classList.contains(backFaceHiddenClass);\n    if (slidesLength <= params.maxBackfaceHiddenSlides) {\n      if (!hasClassBackfaceClassAdded) swiper.el.classList.add(backFaceHiddenClass);\n    } else if (hasClassBackfaceClassAdded) {\n      swiper.el.classList.remove(backFaceHiddenClass);\n    }\n  }\n}\n\nfunction updateAutoHeight(speed) {\n  const swiper = this;\n  const activeSlides = [];\n  const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n  let newHeight = 0;\n  let i;\n  if (typeof speed === 'number') {\n    swiper.setTransition(speed);\n  } else if (speed === true) {\n    swiper.setTransition(swiper.params.speed);\n  }\n  const getSlideByIndex = index => {\n    if (isVirtual) {\n      return swiper.slides[swiper.getSlideIndexByData(index)];\n    }\n    return swiper.slides[index];\n  };\n  // Find slides currently in view\n  if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {\n    if (swiper.params.centeredSlides) {\n      (swiper.visibleSlides || []).forEach(slide => {\n        activeSlides.push(slide);\n      });\n    } else {\n      for (i = 0; i < Math.ceil(swiper.params.slidesPerView); i += 1) {\n        const index = swiper.activeIndex + i;\n        if (index > swiper.slides.length && !isVirtual) break;\n        activeSlides.push(getSlideByIndex(index));\n      }\n    }\n  } else {\n    activeSlides.push(getSlideByIndex(swiper.activeIndex));\n  }\n\n  // Find new height from highest slide in view\n  for (i = 0; i < activeSlides.length; i += 1) {\n    if (typeof activeSlides[i] !== 'undefined') {\n      const height = activeSlides[i].offsetHeight;\n      newHeight = height > newHeight ? height : newHeight;\n    }\n  }\n\n  // Update Height\n  if (newHeight || newHeight === 0) swiper.wrapperEl.style.height = `${newHeight}px`;\n}\n\nfunction updateSlidesOffset() {\n  const swiper = this;\n  const slides = swiper.slides;\n  // eslint-disable-next-line\n  const minusOffset = swiper.isElement ? swiper.isHorizontal() ? swiper.wrapperEl.offsetLeft : swiper.wrapperEl.offsetTop : 0;\n  for (let i = 0; i < slides.length; i += 1) {\n    slides[i].swiperSlideOffset = (swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop) - minusOffset - swiper.cssOverflowAdjustment();\n  }\n}\n\nconst toggleSlideClasses$1 = (slideEl, condition, className) => {\n  if (condition && !slideEl.classList.contains(className)) {\n    slideEl.classList.add(className);\n  } else if (!condition && slideEl.classList.contains(className)) {\n    slideEl.classList.remove(className);\n  }\n};\nfunction updateSlidesProgress(translate) {\n  if (translate === void 0) {\n    translate = this && this.translate || 0;\n  }\n  const swiper = this;\n  const params = swiper.params;\n  const {\n    slides,\n    rtlTranslate: rtl,\n    snapGrid\n  } = swiper;\n  if (slides.length === 0) return;\n  if (typeof slides[0].swiperSlideOffset === 'undefined') swiper.updateSlidesOffset();\n  let offsetCenter = -translate;\n  if (rtl) offsetCenter = translate;\n  swiper.visibleSlidesIndexes = [];\n  swiper.visibleSlides = [];\n  let spaceBetween = params.spaceBetween;\n  if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {\n    spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiper.size;\n  } else if (typeof spaceBetween === 'string') {\n    spaceBetween = parseFloat(spaceBetween);\n  }\n  for (let i = 0; i < slides.length; i += 1) {\n    const slide = slides[i];\n    let slideOffset = slide.swiperSlideOffset;\n    if (params.cssMode && params.centeredSlides) {\n      slideOffset -= slides[0].swiperSlideOffset;\n    }\n    const slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);\n    const originalSlideProgress = (offsetCenter - snapGrid[0] + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);\n    const slideBefore = -(offsetCenter - slideOffset);\n    const slideAfter = slideBefore + swiper.slidesSizesGrid[i];\n    const isFullyVisible = slideBefore >= 0 && slideBefore <= swiper.size - swiper.slidesSizesGrid[i];\n    const isVisible = slideBefore >= 0 && slideBefore < swiper.size - 1 || slideAfter > 1 && slideAfter <= swiper.size || slideBefore <= 0 && slideAfter >= swiper.size;\n    if (isVisible) {\n      swiper.visibleSlides.push(slide);\n      swiper.visibleSlidesIndexes.push(i);\n    }\n    toggleSlideClasses$1(slide, isVisible, params.slideVisibleClass);\n    toggleSlideClasses$1(slide, isFullyVisible, params.slideFullyVisibleClass);\n    slide.progress = rtl ? -slideProgress : slideProgress;\n    slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;\n  }\n}\n\nfunction updateProgress(translate) {\n  const swiper = this;\n  if (typeof translate === 'undefined') {\n    const multiplier = swiper.rtlTranslate ? -1 : 1;\n    // eslint-disable-next-line\n    translate = swiper && swiper.translate && swiper.translate * multiplier || 0;\n  }\n  const params = swiper.params;\n  const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n  let {\n    progress,\n    isBeginning,\n    isEnd,\n    progressLoop\n  } = swiper;\n  const wasBeginning = isBeginning;\n  const wasEnd = isEnd;\n  if (translatesDiff === 0) {\n    progress = 0;\n    isBeginning = true;\n    isEnd = true;\n  } else {\n    progress = (translate - swiper.minTranslate()) / translatesDiff;\n    const isBeginningRounded = Math.abs(translate - swiper.minTranslate()) < 1;\n    const isEndRounded = Math.abs(translate - swiper.maxTranslate()) < 1;\n    isBeginning = isBeginningRounded || progress <= 0;\n    isEnd = isEndRounded || progress >= 1;\n    if (isBeginningRounded) progress = 0;\n    if (isEndRounded) progress = 1;\n  }\n  if (params.loop) {\n    const firstSlideIndex = swiper.getSlideIndexByData(0);\n    const lastSlideIndex = swiper.getSlideIndexByData(swiper.slides.length - 1);\n    const firstSlideTranslate = swiper.slidesGrid[firstSlideIndex];\n    const lastSlideTranslate = swiper.slidesGrid[lastSlideIndex];\n    const translateMax = swiper.slidesGrid[swiper.slidesGrid.length - 1];\n    const translateAbs = Math.abs(translate);\n    if (translateAbs >= firstSlideTranslate) {\n      progressLoop = (translateAbs - firstSlideTranslate) / translateMax;\n    } else {\n      progressLoop = (translateAbs + translateMax - lastSlideTranslate) / translateMax;\n    }\n    if (progressLoop > 1) progressLoop -= 1;\n  }\n  Object.assign(swiper, {\n    progress,\n    progressLoop,\n    isBeginning,\n    isEnd\n  });\n  if (params.watchSlidesProgress || params.centeredSlides && params.autoHeight) swiper.updateSlidesProgress(translate);\n  if (isBeginning && !wasBeginning) {\n    swiper.emit('reachBeginning toEdge');\n  }\n  if (isEnd && !wasEnd) {\n    swiper.emit('reachEnd toEdge');\n  }\n  if (wasBeginning && !isBeginning || wasEnd && !isEnd) {\n    swiper.emit('fromEdge');\n  }\n  swiper.emit('progress', progress);\n}\n\nconst toggleSlideClasses = (slideEl, condition, className) => {\n  if (condition && !slideEl.classList.contains(className)) {\n    slideEl.classList.add(className);\n  } else if (!condition && slideEl.classList.contains(className)) {\n    slideEl.classList.remove(className);\n  }\n};\nfunction updateSlidesClasses() {\n  const swiper = this;\n  const {\n    slides,\n    params,\n    slidesEl,\n    activeIndex\n  } = swiper;\n  const isVirtual = swiper.virtual && params.virtual.enabled;\n  const gridEnabled = swiper.grid && params.grid && params.grid.rows > 1;\n  const getFilteredSlide = selector => {\n    return elementChildren(slidesEl, `.${params.slideClass}${selector}, swiper-slide${selector}`)[0];\n  };\n  let activeSlide;\n  let prevSlide;\n  let nextSlide;\n  if (isVirtual) {\n    if (params.loop) {\n      let slideIndex = activeIndex - swiper.virtual.slidesBefore;\n      if (slideIndex < 0) slideIndex = swiper.virtual.slides.length + slideIndex;\n      if (slideIndex >= swiper.virtual.slides.length) slideIndex -= swiper.virtual.slides.length;\n      activeSlide = getFilteredSlide(`[data-swiper-slide-index=\"${slideIndex}\"]`);\n    } else {\n      activeSlide = getFilteredSlide(`[data-swiper-slide-index=\"${activeIndex}\"]`);\n    }\n  } else {\n    if (gridEnabled) {\n      activeSlide = slides.filter(slideEl => slideEl.column === activeIndex)[0];\n      nextSlide = slides.filter(slideEl => slideEl.column === activeIndex + 1)[0];\n      prevSlide = slides.filter(slideEl => slideEl.column === activeIndex - 1)[0];\n    } else {\n      activeSlide = slides[activeIndex];\n    }\n  }\n  if (activeSlide) {\n    if (!gridEnabled) {\n      // Next Slide\n      nextSlide = elementNextAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];\n      if (params.loop && !nextSlide) {\n        nextSlide = slides[0];\n      }\n\n      // Prev Slide\n      prevSlide = elementPrevAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];\n      if (params.loop && !prevSlide === 0) {\n        prevSlide = slides[slides.length - 1];\n      }\n    }\n  }\n  slides.forEach(slideEl => {\n    toggleSlideClasses(slideEl, slideEl === activeSlide, params.slideActiveClass);\n    toggleSlideClasses(slideEl, slideEl === nextSlide, params.slideNextClass);\n    toggleSlideClasses(slideEl, slideEl === prevSlide, params.slidePrevClass);\n  });\n  swiper.emitSlidesClasses();\n}\n\nconst processLazyPreloader = (swiper, imageEl) => {\n  if (!swiper || swiper.destroyed || !swiper.params) return;\n  const slideSelector = () => swiper.isElement ? `swiper-slide` : `.${swiper.params.slideClass}`;\n  const slideEl = imageEl.closest(slideSelector());\n  if (slideEl) {\n    let lazyEl = slideEl.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n    if (!lazyEl && swiper.isElement) {\n      if (slideEl.shadowRoot) {\n        lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n      } else {\n        // init later\n        requestAnimationFrame(() => {\n          if (slideEl.shadowRoot) {\n            lazyEl = slideEl.shadowRoot.querySelector(`.${swiper.params.lazyPreloaderClass}`);\n            if (lazyEl) lazyEl.remove();\n          }\n        });\n      }\n    }\n    if (lazyEl) lazyEl.remove();\n  }\n};\nconst unlazy = (swiper, index) => {\n  if (!swiper.slides[index]) return;\n  const imageEl = swiper.slides[index].querySelector('[loading=\"lazy\"]');\n  if (imageEl) imageEl.removeAttribute('loading');\n};\nconst preload = swiper => {\n  if (!swiper || swiper.destroyed || !swiper.params) return;\n  let amount = swiper.params.lazyPreloadPrevNext;\n  const len = swiper.slides.length;\n  if (!len || !amount || amount < 0) return;\n  amount = Math.min(amount, len);\n  const slidesPerView = swiper.params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(swiper.params.slidesPerView);\n  const activeIndex = swiper.activeIndex;\n  if (swiper.params.grid && swiper.params.grid.rows > 1) {\n    const activeColumn = activeIndex;\n    const preloadColumns = [activeColumn - amount];\n    preloadColumns.push(...Array.from({\n      length: amount\n    }).map((_, i) => {\n      return activeColumn + slidesPerView + i;\n    }));\n    swiper.slides.forEach((slideEl, i) => {\n      if (preloadColumns.includes(slideEl.column)) unlazy(swiper, i);\n    });\n    return;\n  }\n  const slideIndexLastInView = activeIndex + slidesPerView - 1;\n  if (swiper.params.rewind || swiper.params.loop) {\n    for (let i = activeIndex - amount; i <= slideIndexLastInView + amount; i += 1) {\n      const realIndex = (i % len + len) % len;\n      if (realIndex < activeIndex || realIndex > slideIndexLastInView) unlazy(swiper, realIndex);\n    }\n  } else {\n    for (let i = Math.max(activeIndex - amount, 0); i <= Math.min(slideIndexLastInView + amount, len - 1); i += 1) {\n      if (i !== activeIndex && (i > slideIndexLastInView || i < activeIndex)) {\n        unlazy(swiper, i);\n      }\n    }\n  }\n};\n\nfunction getActiveIndexByTranslate(swiper) {\n  const {\n    slidesGrid,\n    params\n  } = swiper;\n  const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n  let activeIndex;\n  for (let i = 0; i < slidesGrid.length; i += 1) {\n    if (typeof slidesGrid[i + 1] !== 'undefined') {\n      if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1] - (slidesGrid[i + 1] - slidesGrid[i]) / 2) {\n        activeIndex = i;\n      } else if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1]) {\n        activeIndex = i + 1;\n      }\n    } else if (translate >= slidesGrid[i]) {\n      activeIndex = i;\n    }\n  }\n  // Normalize slideIndex\n  if (params.normalizeSlideIndex) {\n    if (activeIndex < 0 || typeof activeIndex === 'undefined') activeIndex = 0;\n  }\n  return activeIndex;\n}\nfunction updateActiveIndex(newActiveIndex) {\n  const swiper = this;\n  const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n  const {\n    snapGrid,\n    params,\n    activeIndex: previousIndex,\n    realIndex: previousRealIndex,\n    snapIndex: previousSnapIndex\n  } = swiper;\n  let activeIndex = newActiveIndex;\n  let snapIndex;\n  const getVirtualRealIndex = aIndex => {\n    let realIndex = aIndex - swiper.virtual.slidesBefore;\n    if (realIndex < 0) {\n      realIndex = swiper.virtual.slides.length + realIndex;\n    }\n    if (realIndex >= swiper.virtual.slides.length) {\n      realIndex -= swiper.virtual.slides.length;\n    }\n    return realIndex;\n  };\n  if (typeof activeIndex === 'undefined') {\n    activeIndex = getActiveIndexByTranslate(swiper);\n  }\n  if (snapGrid.indexOf(translate) >= 0) {\n    snapIndex = snapGrid.indexOf(translate);\n  } else {\n    const skip = Math.min(params.slidesPerGroupSkip, activeIndex);\n    snapIndex = skip + Math.floor((activeIndex - skip) / params.slidesPerGroup);\n  }\n  if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;\n  if (activeIndex === previousIndex && !swiper.params.loop) {\n    if (snapIndex !== previousSnapIndex) {\n      swiper.snapIndex = snapIndex;\n      swiper.emit('snapIndexChange');\n    }\n    return;\n  }\n  if (activeIndex === previousIndex && swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) {\n    swiper.realIndex = getVirtualRealIndex(activeIndex);\n    return;\n  }\n  const gridEnabled = swiper.grid && params.grid && params.grid.rows > 1;\n\n  // Get real index\n  let realIndex;\n  if (swiper.virtual && params.virtual.enabled && params.loop) {\n    realIndex = getVirtualRealIndex(activeIndex);\n  } else if (gridEnabled) {\n    const firstSlideInColumn = swiper.slides.filter(slideEl => slideEl.column === activeIndex)[0];\n    let activeSlideIndex = parseInt(firstSlideInColumn.getAttribute('data-swiper-slide-index'), 10);\n    if (Number.isNaN(activeSlideIndex)) {\n      activeSlideIndex = Math.max(swiper.slides.indexOf(firstSlideInColumn), 0);\n    }\n    realIndex = Math.floor(activeSlideIndex / params.grid.rows);\n  } else if (swiper.slides[activeIndex]) {\n    const slideIndex = swiper.slides[activeIndex].getAttribute('data-swiper-slide-index');\n    if (slideIndex) {\n      realIndex = parseInt(slideIndex, 10);\n    } else {\n      realIndex = activeIndex;\n    }\n  } else {\n    realIndex = activeIndex;\n  }\n  Object.assign(swiper, {\n    previousSnapIndex,\n    snapIndex,\n    previousRealIndex,\n    realIndex,\n    previousIndex,\n    activeIndex\n  });\n  if (swiper.initialized) {\n    preload(swiper);\n  }\n  swiper.emit('activeIndexChange');\n  swiper.emit('snapIndexChange');\n  if (swiper.initialized || swiper.params.runCallbacksOnInit) {\n    if (previousRealIndex !== realIndex) {\n      swiper.emit('realIndexChange');\n    }\n    swiper.emit('slideChange');\n  }\n}\n\nfunction updateClickedSlide(el, path) {\n  const swiper = this;\n  const params = swiper.params;\n  let slide = el.closest(`.${params.slideClass}, swiper-slide`);\n  if (!slide && swiper.isElement && path && path.length > 1 && path.includes(el)) {\n    [...path.slice(path.indexOf(el) + 1, path.length)].forEach(pathEl => {\n      if (!slide && pathEl.matches && pathEl.matches(`.${params.slideClass}, swiper-slide`)) {\n        slide = pathEl;\n      }\n    });\n  }\n  let slideFound = false;\n  let slideIndex;\n  if (slide) {\n    for (let i = 0; i < swiper.slides.length; i += 1) {\n      if (swiper.slides[i] === slide) {\n        slideFound = true;\n        slideIndex = i;\n        break;\n      }\n    }\n  }\n  if (slide && slideFound) {\n    swiper.clickedSlide = slide;\n    if (swiper.virtual && swiper.params.virtual.enabled) {\n      swiper.clickedIndex = parseInt(slide.getAttribute('data-swiper-slide-index'), 10);\n    } else {\n      swiper.clickedIndex = slideIndex;\n    }\n  } else {\n    swiper.clickedSlide = undefined;\n    swiper.clickedIndex = undefined;\n    return;\n  }\n  if (params.slideToClickedSlide && swiper.clickedIndex !== undefined && swiper.clickedIndex !== swiper.activeIndex) {\n    swiper.slideToClickedSlide();\n  }\n}\n\nvar update = {\n  updateSize,\n  updateSlides,\n  updateAutoHeight,\n  updateSlidesOffset,\n  updateSlidesProgress,\n  updateProgress,\n  updateSlidesClasses,\n  updateActiveIndex,\n  updateClickedSlide\n};\n\nfunction getSwiperTranslate(axis) {\n  if (axis === void 0) {\n    axis = this.isHorizontal() ? 'x' : 'y';\n  }\n  const swiper = this;\n  const {\n    params,\n    rtlTranslate: rtl,\n    translate,\n    wrapperEl\n  } = swiper;\n  if (params.virtualTranslate) {\n    return rtl ? -translate : translate;\n  }\n  if (params.cssMode) {\n    return translate;\n  }\n  let currentTranslate = getTranslate(wrapperEl, axis);\n  currentTranslate += swiper.cssOverflowAdjustment();\n  if (rtl) currentTranslate = -currentTranslate;\n  return currentTranslate || 0;\n}\n\nfunction setTranslate(translate, byController) {\n  const swiper = this;\n  const {\n    rtlTranslate: rtl,\n    params,\n    wrapperEl,\n    progress\n  } = swiper;\n  let x = 0;\n  let y = 0;\n  const z = 0;\n  if (swiper.isHorizontal()) {\n    x = rtl ? -translate : translate;\n  } else {\n    y = translate;\n  }\n  if (params.roundLengths) {\n    x = Math.floor(x);\n    y = Math.floor(y);\n  }\n  swiper.previousTranslate = swiper.translate;\n  swiper.translate = swiper.isHorizontal() ? x : y;\n  if (params.cssMode) {\n    wrapperEl[swiper.isHorizontal() ? 'scrollLeft' : 'scrollTop'] = swiper.isHorizontal() ? -x : -y;\n  } else if (!params.virtualTranslate) {\n    if (swiper.isHorizontal()) {\n      x -= swiper.cssOverflowAdjustment();\n    } else {\n      y -= swiper.cssOverflowAdjustment();\n    }\n    wrapperEl.style.transform = `translate3d(${x}px, ${y}px, ${z}px)`;\n  }\n\n  // Check if we need to update progress\n  let newProgress;\n  const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n  if (translatesDiff === 0) {\n    newProgress = 0;\n  } else {\n    newProgress = (translate - swiper.minTranslate()) / translatesDiff;\n  }\n  if (newProgress !== progress) {\n    swiper.updateProgress(translate);\n  }\n  swiper.emit('setTranslate', swiper.translate, byController);\n}\n\nfunction minTranslate() {\n  return -this.snapGrid[0];\n}\n\nfunction maxTranslate() {\n  return -this.snapGrid[this.snapGrid.length - 1];\n}\n\nfunction translateTo(translate, speed, runCallbacks, translateBounds, internal) {\n  if (translate === void 0) {\n    translate = 0;\n  }\n  if (speed === void 0) {\n    speed = this.params.speed;\n  }\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  if (translateBounds === void 0) {\n    translateBounds = true;\n  }\n  const swiper = this;\n  const {\n    params,\n    wrapperEl\n  } = swiper;\n  if (swiper.animating && params.preventInteractionOnTransition) {\n    return false;\n  }\n  const minTranslate = swiper.minTranslate();\n  const maxTranslate = swiper.maxTranslate();\n  let newTranslate;\n  if (translateBounds && translate > minTranslate) newTranslate = minTranslate;else if (translateBounds && translate < maxTranslate) newTranslate = maxTranslate;else newTranslate = translate;\n\n  // Update progress\n  swiper.updateProgress(newTranslate);\n  if (params.cssMode) {\n    const isH = swiper.isHorizontal();\n    if (speed === 0) {\n      wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = -newTranslate;\n    } else {\n      if (!swiper.support.smoothScroll) {\n        animateCSSModeScroll({\n          swiper,\n          targetPosition: -newTranslate,\n          side: isH ? 'left' : 'top'\n        });\n        return true;\n      }\n      wrapperEl.scrollTo({\n        [isH ? 'left' : 'top']: -newTranslate,\n        behavior: 'smooth'\n      });\n    }\n    return true;\n  }\n  if (speed === 0) {\n    swiper.setTransition(0);\n    swiper.setTranslate(newTranslate);\n    if (runCallbacks) {\n      swiper.emit('beforeTransitionStart', speed, internal);\n      swiper.emit('transitionEnd');\n    }\n  } else {\n    swiper.setTransition(speed);\n    swiper.setTranslate(newTranslate);\n    if (runCallbacks) {\n      swiper.emit('beforeTransitionStart', speed, internal);\n      swiper.emit('transitionStart');\n    }\n    if (!swiper.animating) {\n      swiper.animating = true;\n      if (!swiper.onTranslateToWrapperTransitionEnd) {\n        swiper.onTranslateToWrapperTransitionEnd = function transitionEnd(e) {\n          if (!swiper || swiper.destroyed) return;\n          if (e.target !== this) return;\n          swiper.wrapperEl.removeEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);\n          swiper.onTranslateToWrapperTransitionEnd = null;\n          delete swiper.onTranslateToWrapperTransitionEnd;\n          swiper.animating = false;\n          if (runCallbacks) {\n            swiper.emit('transitionEnd');\n          }\n        };\n      }\n      swiper.wrapperEl.addEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);\n    }\n  }\n  return true;\n}\n\nvar translate = {\n  getTranslate: getSwiperTranslate,\n  setTranslate,\n  minTranslate,\n  maxTranslate,\n  translateTo\n};\n\nfunction setTransition(duration, byController) {\n  const swiper = this;\n  if (!swiper.params.cssMode) {\n    swiper.wrapperEl.style.transitionDuration = `${duration}ms`;\n    swiper.wrapperEl.style.transitionDelay = duration === 0 ? `0ms` : '';\n  }\n  swiper.emit('setTransition', duration, byController);\n}\n\nfunction transitionEmit(_ref) {\n  let {\n    swiper,\n    runCallbacks,\n    direction,\n    step\n  } = _ref;\n  const {\n    activeIndex,\n    previousIndex\n  } = swiper;\n  let dir = direction;\n  if (!dir) {\n    if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';\n  }\n  swiper.emit(`transition${step}`);\n  if (runCallbacks && activeIndex !== previousIndex) {\n    if (dir === 'reset') {\n      swiper.emit(`slideResetTransition${step}`);\n      return;\n    }\n    swiper.emit(`slideChangeTransition${step}`);\n    if (dir === 'next') {\n      swiper.emit(`slideNextTransition${step}`);\n    } else {\n      swiper.emit(`slidePrevTransition${step}`);\n    }\n  }\n}\n\nfunction transitionStart(runCallbacks, direction) {\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  const swiper = this;\n  const {\n    params\n  } = swiper;\n  if (params.cssMode) return;\n  if (params.autoHeight) {\n    swiper.updateAutoHeight();\n  }\n  transitionEmit({\n    swiper,\n    runCallbacks,\n    direction,\n    step: 'Start'\n  });\n}\n\nfunction transitionEnd(runCallbacks, direction) {\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  const swiper = this;\n  const {\n    params\n  } = swiper;\n  swiper.animating = false;\n  if (params.cssMode) return;\n  swiper.setTransition(0);\n  transitionEmit({\n    swiper,\n    runCallbacks,\n    direction,\n    step: 'End'\n  });\n}\n\nvar transition = {\n  setTransition,\n  transitionStart,\n  transitionEnd\n};\n\nfunction slideTo(index, speed, runCallbacks, internal, initial) {\n  if (index === void 0) {\n    index = 0;\n  }\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  if (typeof index === 'string') {\n    index = parseInt(index, 10);\n  }\n  const swiper = this;\n  let slideIndex = index;\n  if (slideIndex < 0) slideIndex = 0;\n  const {\n    params,\n    snapGrid,\n    slidesGrid,\n    previousIndex,\n    activeIndex,\n    rtlTranslate: rtl,\n    wrapperEl,\n    enabled\n  } = swiper;\n  if (!enabled && !internal && !initial || swiper.destroyed || swiper.animating && params.preventInteractionOnTransition) {\n    return false;\n  }\n  if (typeof speed === 'undefined') {\n    speed = swiper.params.speed;\n  }\n  const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);\n  let snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);\n  if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;\n  const translate = -snapGrid[snapIndex];\n  // Normalize slideIndex\n  if (params.normalizeSlideIndex) {\n    for (let i = 0; i < slidesGrid.length; i += 1) {\n      const normalizedTranslate = -Math.floor(translate * 100);\n      const normalizedGrid = Math.floor(slidesGrid[i] * 100);\n      const normalizedGridNext = Math.floor(slidesGrid[i + 1] * 100);\n      if (typeof slidesGrid[i + 1] !== 'undefined') {\n        if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext - (normalizedGridNext - normalizedGrid) / 2) {\n          slideIndex = i;\n        } else if (normalizedTranslate >= normalizedGrid && normalizedTranslate < normalizedGridNext) {\n          slideIndex = i + 1;\n        }\n      } else if (normalizedTranslate >= normalizedGrid) {\n        slideIndex = i;\n      }\n    }\n  }\n  // Directions locks\n  if (swiper.initialized && slideIndex !== activeIndex) {\n    if (!swiper.allowSlideNext && (rtl ? translate > swiper.translate && translate > swiper.minTranslate() : translate < swiper.translate && translate < swiper.minTranslate())) {\n      return false;\n    }\n    if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {\n      if ((activeIndex || 0) !== slideIndex) {\n        return false;\n      }\n    }\n  }\n  if (slideIndex !== (previousIndex || 0) && runCallbacks) {\n    swiper.emit('beforeSlideChangeStart');\n  }\n\n  // Update progress\n  swiper.updateProgress(translate);\n  let direction;\n  if (slideIndex > activeIndex) direction = 'next';else if (slideIndex < activeIndex) direction = 'prev';else direction = 'reset';\n\n  // Update Index\n  if (rtl && -translate === swiper.translate || !rtl && translate === swiper.translate) {\n    swiper.updateActiveIndex(slideIndex);\n    // Update Height\n    if (params.autoHeight) {\n      swiper.updateAutoHeight();\n    }\n    swiper.updateSlidesClasses();\n    if (params.effect !== 'slide') {\n      swiper.setTranslate(translate);\n    }\n    if (direction !== 'reset') {\n      swiper.transitionStart(runCallbacks, direction);\n      swiper.transitionEnd(runCallbacks, direction);\n    }\n    return false;\n  }\n  if (params.cssMode) {\n    const isH = swiper.isHorizontal();\n    const t = rtl ? translate : -translate;\n    if (speed === 0) {\n      const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n      if (isVirtual) {\n        swiper.wrapperEl.style.scrollSnapType = 'none';\n        swiper._immediateVirtual = true;\n      }\n      if (isVirtual && !swiper._cssModeVirtualInitialSet && swiper.params.initialSlide > 0) {\n        swiper._cssModeVirtualInitialSet = true;\n        requestAnimationFrame(() => {\n          wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;\n        });\n      } else {\n        wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;\n      }\n      if (isVirtual) {\n        requestAnimationFrame(() => {\n          swiper.wrapperEl.style.scrollSnapType = '';\n          swiper._immediateVirtual = false;\n        });\n      }\n    } else {\n      if (!swiper.support.smoothScroll) {\n        animateCSSModeScroll({\n          swiper,\n          targetPosition: t,\n          side: isH ? 'left' : 'top'\n        });\n        return true;\n      }\n      wrapperEl.scrollTo({\n        [isH ? 'left' : 'top']: t,\n        behavior: 'smooth'\n      });\n    }\n    return true;\n  }\n  swiper.setTransition(speed);\n  swiper.setTranslate(translate);\n  swiper.updateActiveIndex(slideIndex);\n  swiper.updateSlidesClasses();\n  swiper.emit('beforeTransitionStart', speed, internal);\n  swiper.transitionStart(runCallbacks, direction);\n  if (speed === 0) {\n    swiper.transitionEnd(runCallbacks, direction);\n  } else if (!swiper.animating) {\n    swiper.animating = true;\n    if (!swiper.onSlideToWrapperTransitionEnd) {\n      swiper.onSlideToWrapperTransitionEnd = function transitionEnd(e) {\n        if (!swiper || swiper.destroyed) return;\n        if (e.target !== this) return;\n        swiper.wrapperEl.removeEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);\n        swiper.onSlideToWrapperTransitionEnd = null;\n        delete swiper.onSlideToWrapperTransitionEnd;\n        swiper.transitionEnd(runCallbacks, direction);\n      };\n    }\n    swiper.wrapperEl.addEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);\n  }\n  return true;\n}\n\nfunction slideToLoop(index, speed, runCallbacks, internal) {\n  if (index === void 0) {\n    index = 0;\n  }\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  if (typeof index === 'string') {\n    const indexAsNumber = parseInt(index, 10);\n    index = indexAsNumber;\n  }\n  const swiper = this;\n  if (swiper.destroyed) return;\n  if (typeof speed === 'undefined') {\n    speed = swiper.params.speed;\n  }\n  const gridEnabled = swiper.grid && swiper.params.grid && swiper.params.grid.rows > 1;\n  let newIndex = index;\n  if (swiper.params.loop) {\n    if (swiper.virtual && swiper.params.virtual.enabled) {\n      // eslint-disable-next-line\n      newIndex = newIndex + swiper.virtual.slidesBefore;\n    } else {\n      let targetSlideIndex;\n      if (gridEnabled) {\n        const slideIndex = newIndex * swiper.params.grid.rows;\n        targetSlideIndex = swiper.slides.filter(slideEl => slideEl.getAttribute('data-swiper-slide-index') * 1 === slideIndex)[0].column;\n      } else {\n        targetSlideIndex = swiper.getSlideIndexByData(newIndex);\n      }\n      const cols = gridEnabled ? Math.ceil(swiper.slides.length / swiper.params.grid.rows) : swiper.slides.length;\n      const {\n        centeredSlides\n      } = swiper.params;\n      let slidesPerView = swiper.params.slidesPerView;\n      if (slidesPerView === 'auto') {\n        slidesPerView = swiper.slidesPerViewDynamic();\n      } else {\n        slidesPerView = Math.ceil(parseFloat(swiper.params.slidesPerView, 10));\n        if (centeredSlides && slidesPerView % 2 === 0) {\n          slidesPerView = slidesPerView + 1;\n        }\n      }\n      let needLoopFix = cols - targetSlideIndex < slidesPerView;\n      if (centeredSlides) {\n        needLoopFix = needLoopFix || targetSlideIndex < Math.ceil(slidesPerView / 2);\n      }\n      if (internal && centeredSlides && swiper.params.slidesPerView !== 'auto' && !gridEnabled) {\n        needLoopFix = false;\n      }\n      if (needLoopFix) {\n        const direction = centeredSlides ? targetSlideIndex < swiper.activeIndex ? 'prev' : 'next' : targetSlideIndex - swiper.activeIndex - 1 < swiper.params.slidesPerView ? 'next' : 'prev';\n        swiper.loopFix({\n          direction,\n          slideTo: true,\n          activeSlideIndex: direction === 'next' ? targetSlideIndex + 1 : targetSlideIndex - cols + 1,\n          slideRealIndex: direction === 'next' ? swiper.realIndex : undefined\n        });\n      }\n      if (gridEnabled) {\n        const slideIndex = newIndex * swiper.params.grid.rows;\n        newIndex = swiper.slides.filter(slideEl => slideEl.getAttribute('data-swiper-slide-index') * 1 === slideIndex)[0].column;\n      } else {\n        newIndex = swiper.getSlideIndexByData(newIndex);\n      }\n    }\n  }\n  requestAnimationFrame(() => {\n    swiper.slideTo(newIndex, speed, runCallbacks, internal);\n  });\n  return swiper;\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slideNext(speed, runCallbacks, internal) {\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  const swiper = this;\n  const {\n    enabled,\n    params,\n    animating\n  } = swiper;\n  if (!enabled || swiper.destroyed) return swiper;\n  if (typeof speed === 'undefined') {\n    speed = swiper.params.speed;\n  }\n  let perGroup = params.slidesPerGroup;\n  if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {\n    perGroup = Math.max(swiper.slidesPerViewDynamic('current', true), 1);\n  }\n  const increment = swiper.activeIndex < params.slidesPerGroupSkip ? 1 : perGroup;\n  const isVirtual = swiper.virtual && params.virtual.enabled;\n  if (params.loop) {\n    if (animating && !isVirtual && params.loopPreventsSliding) return false;\n    swiper.loopFix({\n      direction: 'next'\n    });\n    // eslint-disable-next-line\n    swiper._clientLeft = swiper.wrapperEl.clientLeft;\n    if (swiper.activeIndex === swiper.slides.length - 1 && params.cssMode) {\n      requestAnimationFrame(() => {\n        swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);\n      });\n      return true;\n    }\n  }\n  if (params.rewind && swiper.isEnd) {\n    return swiper.slideTo(0, speed, runCallbacks, internal);\n  }\n  return swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slidePrev(speed, runCallbacks, internal) {\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  const swiper = this;\n  const {\n    params,\n    snapGrid,\n    slidesGrid,\n    rtlTranslate,\n    enabled,\n    animating\n  } = swiper;\n  if (!enabled || swiper.destroyed) return swiper;\n  if (typeof speed === 'undefined') {\n    speed = swiper.params.speed;\n  }\n  const isVirtual = swiper.virtual && params.virtual.enabled;\n  if (params.loop) {\n    if (animating && !isVirtual && params.loopPreventsSliding) return false;\n    swiper.loopFix({\n      direction: 'prev'\n    });\n    // eslint-disable-next-line\n    swiper._clientLeft = swiper.wrapperEl.clientLeft;\n  }\n  const translate = rtlTranslate ? swiper.translate : -swiper.translate;\n  function normalize(val) {\n    if (val < 0) return -Math.floor(Math.abs(val));\n    return Math.floor(val);\n  }\n  const normalizedTranslate = normalize(translate);\n  const normalizedSnapGrid = snapGrid.map(val => normalize(val));\n  let prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];\n  if (typeof prevSnap === 'undefined' && params.cssMode) {\n    let prevSnapIndex;\n    snapGrid.forEach((snap, snapIndex) => {\n      if (normalizedTranslate >= snap) {\n        // prevSnap = snap;\n        prevSnapIndex = snapIndex;\n      }\n    });\n    if (typeof prevSnapIndex !== 'undefined') {\n      prevSnap = snapGrid[prevSnapIndex > 0 ? prevSnapIndex - 1 : prevSnapIndex];\n    }\n  }\n  let prevIndex = 0;\n  if (typeof prevSnap !== 'undefined') {\n    prevIndex = slidesGrid.indexOf(prevSnap);\n    if (prevIndex < 0) prevIndex = swiper.activeIndex - 1;\n    if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {\n      prevIndex = prevIndex - swiper.slidesPerViewDynamic('previous', true) + 1;\n      prevIndex = Math.max(prevIndex, 0);\n    }\n  }\n  if (params.rewind && swiper.isBeginning) {\n    const lastIndex = swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;\n    return swiper.slideTo(lastIndex, speed, runCallbacks, internal);\n  } else if (params.loop && swiper.activeIndex === 0 && params.cssMode) {\n    requestAnimationFrame(() => {\n      swiper.slideTo(prevIndex, speed, runCallbacks, internal);\n    });\n    return true;\n  }\n  return swiper.slideTo(prevIndex, speed, runCallbacks, internal);\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slideReset(speed, runCallbacks, internal) {\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  const swiper = this;\n  if (swiper.destroyed) return;\n  if (typeof speed === 'undefined') {\n    speed = swiper.params.speed;\n  }\n  return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);\n}\n\n/* eslint no-unused-vars: \"off\" */\nfunction slideToClosest(speed, runCallbacks, internal, threshold) {\n  if (runCallbacks === void 0) {\n    runCallbacks = true;\n  }\n  if (threshold === void 0) {\n    threshold = 0.5;\n  }\n  const swiper = this;\n  if (swiper.destroyed) return;\n  if (typeof speed === 'undefined') {\n    speed = swiper.params.speed;\n  }\n  let index = swiper.activeIndex;\n  const skip = Math.min(swiper.params.slidesPerGroupSkip, index);\n  const snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);\n  const translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\n  if (translate >= swiper.snapGrid[snapIndex]) {\n    // The current translate is on or after the current snap index, so the choice\n    // is between the current index and the one after it.\n    const currentSnap = swiper.snapGrid[snapIndex];\n    const nextSnap = swiper.snapGrid[snapIndex + 1];\n    if (translate - currentSnap > (nextSnap - currentSnap) * threshold) {\n      index += swiper.params.slidesPerGroup;\n    }\n  } else {\n    // The current translate is before the current snap index, so the choice\n    // is between the current index and the one before it.\n    const prevSnap = swiper.snapGrid[snapIndex - 1];\n    const currentSnap = swiper.snapGrid[snapIndex];\n    if (translate - prevSnap <= (currentSnap - prevSnap) * threshold) {\n      index -= swiper.params.slidesPerGroup;\n    }\n  }\n  index = Math.max(index, 0);\n  index = Math.min(index, swiper.slidesGrid.length - 1);\n  return swiper.slideTo(index, speed, runCallbacks, internal);\n}\n\nfunction slideToClickedSlide() {\n  const swiper = this;\n  if (swiper.destroyed) return;\n  const {\n    params,\n    slidesEl\n  } = swiper;\n  const slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;\n  let slideToIndex = swiper.clickedIndex;\n  let realIndex;\n  const slideSelector = swiper.isElement ? `swiper-slide` : `.${params.slideClass}`;\n  if (params.loop) {\n    if (swiper.animating) return;\n    realIndex = parseInt(swiper.clickedSlide.getAttribute('data-swiper-slide-index'), 10);\n    if (params.centeredSlides) {\n      if (slideToIndex < swiper.loopedSlides - slidesPerView / 2 || slideToIndex > swiper.slides.length - swiper.loopedSlides + slidesPerView / 2) {\n        swiper.loopFix();\n        slideToIndex = swiper.getSlideIndex(elementChildren(slidesEl, `${slideSelector}[data-swiper-slide-index=\"${realIndex}\"]`)[0]);\n        nextTick(() => {\n          swiper.slideTo(slideToIndex);\n        });\n      } else {\n        swiper.slideTo(slideToIndex);\n      }\n    } else if (slideToIndex > swiper.slides.length - slidesPerView) {\n      swiper.loopFix();\n      slideToIndex = swiper.getSlideIndex(elementChildren(slidesEl, `${slideSelector}[data-swiper-slide-index=\"${realIndex}\"]`)[0]);\n      nextTick(() => {\n        swiper.slideTo(slideToIndex);\n      });\n    } else {\n      swiper.slideTo(slideToIndex);\n    }\n  } else {\n    swiper.slideTo(slideToIndex);\n  }\n}\n\nvar slide = {\n  slideTo,\n  slideToLoop,\n  slideNext,\n  slidePrev,\n  slideReset,\n  slideToClosest,\n  slideToClickedSlide\n};\n\nfunction loopCreate(slideRealIndex) {\n  const swiper = this;\n  const {\n    params,\n    slidesEl\n  } = swiper;\n  if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;\n  const initSlides = () => {\n    const slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);\n    slides.forEach((el, index) => {\n      el.setAttribute('data-swiper-slide-index', index);\n    });\n  };\n  const gridEnabled = swiper.grid && params.grid && params.grid.rows > 1;\n  const slidesPerGroup = params.slidesPerGroup * (gridEnabled ? params.grid.rows : 1);\n  const shouldFillGroup = swiper.slides.length % slidesPerGroup !== 0;\n  const shouldFillGrid = gridEnabled && swiper.slides.length % params.grid.rows !== 0;\n  const addBlankSlides = amountOfSlides => {\n    for (let i = 0; i < amountOfSlides; i += 1) {\n      const slideEl = swiper.isElement ? createElement('swiper-slide', [params.slideBlankClass]) : createElement('div', [params.slideClass, params.slideBlankClass]);\n      swiper.slidesEl.append(slideEl);\n    }\n  };\n  if (shouldFillGroup) {\n    if (params.loopAddBlankSlides) {\n      const slidesToAdd = slidesPerGroup - swiper.slides.length % slidesPerGroup;\n      addBlankSlides(slidesToAdd);\n      swiper.recalcSlides();\n      swiper.updateSlides();\n    } else {\n      showWarning('Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)');\n    }\n    initSlides();\n  } else if (shouldFillGrid) {\n    if (params.loopAddBlankSlides) {\n      const slidesToAdd = params.grid.rows - swiper.slides.length % params.grid.rows;\n      addBlankSlides(slidesToAdd);\n      swiper.recalcSlides();\n      swiper.updateSlides();\n    } else {\n      showWarning('Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)');\n    }\n    initSlides();\n  } else {\n    initSlides();\n  }\n  swiper.loopFix({\n    slideRealIndex,\n    direction: params.centeredSlides ? undefined : 'next'\n  });\n}\n\nfunction loopFix(_temp) {\n  let {\n    slideRealIndex,\n    slideTo = true,\n    direction,\n    setTranslate,\n    activeSlideIndex,\n    byController,\n    byMousewheel\n  } = _temp === void 0 ? {} : _temp;\n  const swiper = this;\n  if (!swiper.params.loop) return;\n  swiper.emit('beforeLoopFix');\n  const {\n    slides,\n    allowSlidePrev,\n    allowSlideNext,\n    slidesEl,\n    params\n  } = swiper;\n  const {\n    centeredSlides\n  } = params;\n  swiper.allowSlidePrev = true;\n  swiper.allowSlideNext = true;\n  if (swiper.virtual && params.virtual.enabled) {\n    if (slideTo) {\n      if (!params.centeredSlides && swiper.snapIndex === 0) {\n        swiper.slideTo(swiper.virtual.slides.length, 0, false, true);\n      } else if (params.centeredSlides && swiper.snapIndex < params.slidesPerView) {\n        swiper.slideTo(swiper.virtual.slides.length + swiper.snapIndex, 0, false, true);\n      } else if (swiper.snapIndex === swiper.snapGrid.length - 1) {\n        swiper.slideTo(swiper.virtual.slidesBefore, 0, false, true);\n      }\n    }\n    swiper.allowSlidePrev = allowSlidePrev;\n    swiper.allowSlideNext = allowSlideNext;\n    swiper.emit('loopFix');\n    return;\n  }\n  let slidesPerView = params.slidesPerView;\n  if (slidesPerView === 'auto') {\n    slidesPerView = swiper.slidesPerViewDynamic();\n  } else {\n    slidesPerView = Math.ceil(parseFloat(params.slidesPerView, 10));\n    if (centeredSlides && slidesPerView % 2 === 0) {\n      slidesPerView = slidesPerView + 1;\n    }\n  }\n  const slidesPerGroup = params.slidesPerGroupAuto ? slidesPerView : params.slidesPerGroup;\n  let loopedSlides = slidesPerGroup;\n  if (loopedSlides % slidesPerGroup !== 0) {\n    loopedSlides += slidesPerGroup - loopedSlides % slidesPerGroup;\n  }\n  loopedSlides += params.loopAdditionalSlides;\n  swiper.loopedSlides = loopedSlides;\n  const gridEnabled = swiper.grid && params.grid && params.grid.rows > 1;\n  if (slides.length < slidesPerView + loopedSlides) {\n    showWarning('Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters');\n  } else if (gridEnabled && params.grid.fill === 'row') {\n    showWarning('Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`');\n  }\n  const prependSlidesIndexes = [];\n  const appendSlidesIndexes = [];\n  let activeIndex = swiper.activeIndex;\n  if (typeof activeSlideIndex === 'undefined') {\n    activeSlideIndex = swiper.getSlideIndex(slides.filter(el => el.classList.contains(params.slideActiveClass))[0]);\n  } else {\n    activeIndex = activeSlideIndex;\n  }\n  const isNext = direction === 'next' || !direction;\n  const isPrev = direction === 'prev' || !direction;\n  let slidesPrepended = 0;\n  let slidesAppended = 0;\n  const cols = gridEnabled ? Math.ceil(slides.length / params.grid.rows) : slides.length;\n  const activeColIndex = gridEnabled ? slides[activeSlideIndex].column : activeSlideIndex;\n  const activeColIndexWithShift = activeColIndex + (centeredSlides && typeof setTranslate === 'undefined' ? -slidesPerView / 2 + 0.5 : 0);\n  // prepend last slides before start\n  if (activeColIndexWithShift < loopedSlides) {\n    slidesPrepended = Math.max(loopedSlides - activeColIndexWithShift, slidesPerGroup);\n    for (let i = 0; i < loopedSlides - activeColIndexWithShift; i += 1) {\n      const index = i - Math.floor(i / cols) * cols;\n      if (gridEnabled) {\n        const colIndexToPrepend = cols - index - 1;\n        for (let i = slides.length - 1; i >= 0; i -= 1) {\n          if (slides[i].column === colIndexToPrepend) prependSlidesIndexes.push(i);\n        }\n        // slides.forEach((slide, slideIndex) => {\n        //   if (slide.column === colIndexToPrepend) prependSlidesIndexes.push(slideIndex);\n        // });\n      } else {\n        prependSlidesIndexes.push(cols - index - 1);\n      }\n    }\n  } else if (activeColIndexWithShift + slidesPerView > cols - loopedSlides) {\n    slidesAppended = Math.max(activeColIndexWithShift - (cols - loopedSlides * 2), slidesPerGroup);\n    for (let i = 0; i < slidesAppended; i += 1) {\n      const index = i - Math.floor(i / cols) * cols;\n      if (gridEnabled) {\n        slides.forEach((slide, slideIndex) => {\n          if (slide.column === index) appendSlidesIndexes.push(slideIndex);\n        });\n      } else {\n        appendSlidesIndexes.push(index);\n      }\n    }\n  }\n  swiper.__preventObserver__ = true;\n  requestAnimationFrame(() => {\n    swiper.__preventObserver__ = false;\n  });\n  if (isPrev) {\n    prependSlidesIndexes.forEach(index => {\n      slides[index].swiperLoopMoveDOM = true;\n      slidesEl.prepend(slides[index]);\n      slides[index].swiperLoopMoveDOM = false;\n    });\n  }\n  if (isNext) {\n    appendSlidesIndexes.forEach(index => {\n      slides[index].swiperLoopMoveDOM = true;\n      slidesEl.append(slides[index]);\n      slides[index].swiperLoopMoveDOM = false;\n    });\n  }\n  swiper.recalcSlides();\n  if (params.slidesPerView === 'auto') {\n    swiper.updateSlides();\n  } else if (gridEnabled && (prependSlidesIndexes.length > 0 && isPrev || appendSlidesIndexes.length > 0 && isNext)) {\n    swiper.slides.forEach((slide, slideIndex) => {\n      swiper.grid.updateSlide(slideIndex, slide, swiper.slides);\n    });\n  }\n  if (params.watchSlidesProgress) {\n    swiper.updateSlidesOffset();\n  }\n  if (slideTo) {\n    if (prependSlidesIndexes.length > 0 && isPrev) {\n      if (typeof slideRealIndex === 'undefined') {\n        const currentSlideTranslate = swiper.slidesGrid[activeIndex];\n        const newSlideTranslate = swiper.slidesGrid[activeIndex + slidesPrepended];\n        const diff = newSlideTranslate - currentSlideTranslate;\n        if (byMousewheel) {\n          swiper.setTranslate(swiper.translate - diff);\n        } else {\n          swiper.slideTo(activeIndex + Math.ceil(slidesPrepended), 0, false, true);\n          if (setTranslate) {\n            swiper.touchEventsData.startTranslate = swiper.touchEventsData.startTranslate - diff;\n            swiper.touchEventsData.currentTranslate = swiper.touchEventsData.currentTranslate - diff;\n          }\n        }\n      } else {\n        if (setTranslate) {\n          const shift = gridEnabled ? prependSlidesIndexes.length / params.grid.rows : prependSlidesIndexes.length;\n          swiper.slideTo(swiper.activeIndex + shift, 0, false, true);\n          swiper.touchEventsData.currentTranslate = swiper.translate;\n        }\n      }\n    } else if (appendSlidesIndexes.length > 0 && isNext) {\n      if (typeof slideRealIndex === 'undefined') {\n        const currentSlideTranslate = swiper.slidesGrid[activeIndex];\n        const newSlideTranslate = swiper.slidesGrid[activeIndex - slidesAppended];\n        const diff = newSlideTranslate - currentSlideTranslate;\n        if (byMousewheel) {\n          swiper.setTranslate(swiper.translate - diff);\n        } else {\n          swiper.slideTo(activeIndex - slidesAppended, 0, false, true);\n          if (setTranslate) {\n            swiper.touchEventsData.startTranslate = swiper.touchEventsData.startTranslate - diff;\n            swiper.touchEventsData.currentTranslate = swiper.touchEventsData.currentTranslate - diff;\n          }\n        }\n      } else {\n        const shift = gridEnabled ? appendSlidesIndexes.length / params.grid.rows : appendSlidesIndexes.length;\n        swiper.slideTo(swiper.activeIndex - shift, 0, false, true);\n      }\n    }\n  }\n  swiper.allowSlidePrev = allowSlidePrev;\n  swiper.allowSlideNext = allowSlideNext;\n  if (swiper.controller && swiper.controller.control && !byController) {\n    const loopParams = {\n      slideRealIndex,\n      direction,\n      setTranslate,\n      activeSlideIndex,\n      byController: true\n    };\n    if (Array.isArray(swiper.controller.control)) {\n      swiper.controller.control.forEach(c => {\n        if (!c.destroyed && c.params.loop) c.loopFix({\n          ...loopParams,\n          slideTo: c.params.slidesPerView === params.slidesPerView ? slideTo : false\n        });\n      });\n    } else if (swiper.controller.control instanceof swiper.constructor && swiper.controller.control.params.loop) {\n      swiper.controller.control.loopFix({\n        ...loopParams,\n        slideTo: swiper.controller.control.params.slidesPerView === params.slidesPerView ? slideTo : false\n      });\n    }\n  }\n  swiper.emit('loopFix');\n}\n\nfunction loopDestroy() {\n  const swiper = this;\n  const {\n    params,\n    slidesEl\n  } = swiper;\n  if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;\n  swiper.recalcSlides();\n  const newSlidesOrder = [];\n  swiper.slides.forEach(slideEl => {\n    const index = typeof slideEl.swiperSlideIndex === 'undefined' ? slideEl.getAttribute('data-swiper-slide-index') * 1 : slideEl.swiperSlideIndex;\n    newSlidesOrder[index] = slideEl;\n  });\n  swiper.slides.forEach(slideEl => {\n    slideEl.removeAttribute('data-swiper-slide-index');\n  });\n  newSlidesOrder.forEach(slideEl => {\n    slidesEl.append(slideEl);\n  });\n  swiper.recalcSlides();\n  swiper.slideTo(swiper.realIndex, 0);\n}\n\nvar loop = {\n  loopCreate,\n  loopFix,\n  loopDestroy\n};\n\nfunction setGrabCursor(moving) {\n  const swiper = this;\n  if (!swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;\n  const el = swiper.params.touchEventsTarget === 'container' ? swiper.el : swiper.wrapperEl;\n  if (swiper.isElement) {\n    swiper.__preventObserver__ = true;\n  }\n  el.style.cursor = 'move';\n  el.style.cursor = moving ? 'grabbing' : 'grab';\n  if (swiper.isElement) {\n    requestAnimationFrame(() => {\n      swiper.__preventObserver__ = false;\n    });\n  }\n}\n\nfunction unsetGrabCursor() {\n  const swiper = this;\n  if (swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) {\n    return;\n  }\n  if (swiper.isElement) {\n    swiper.__preventObserver__ = true;\n  }\n  swiper[swiper.params.touchEventsTarget === 'container' ? 'el' : 'wrapperEl'].style.cursor = '';\n  if (swiper.isElement) {\n    requestAnimationFrame(() => {\n      swiper.__preventObserver__ = false;\n    });\n  }\n}\n\nvar grabCursor = {\n  setGrabCursor,\n  unsetGrabCursor\n};\n\n// Modified from https://stackoverflow.com/questions/54520554/custom-element-getrootnode-closest-function-crossing-multiple-parent-shadowd\nfunction closestElement(selector, base) {\n  if (base === void 0) {\n    base = this;\n  }\n  function __closestFrom(el) {\n    if (!el || el === getDocument() || el === getWindow()) return null;\n    if (el.assignedSlot) el = el.assignedSlot;\n    const found = el.closest(selector);\n    if (!found && !el.getRootNode) {\n      return null;\n    }\n    return found || __closestFrom(el.getRootNode().host);\n  }\n  return __closestFrom(base);\n}\nfunction preventEdgeSwipe(swiper, event, startX) {\n  const window = getWindow();\n  const {\n    params\n  } = swiper;\n  const edgeSwipeDetection = params.edgeSwipeDetection;\n  const edgeSwipeThreshold = params.edgeSwipeThreshold;\n  if (edgeSwipeDetection && (startX <= edgeSwipeThreshold || startX >= window.innerWidth - edgeSwipeThreshold)) {\n    if (edgeSwipeDetection === 'prevent') {\n      event.preventDefault();\n      return true;\n    }\n    return false;\n  }\n  return true;\n}\nfunction onTouchStart(event) {\n  const swiper = this;\n  const document = getDocument();\n  let e = event;\n  if (e.originalEvent) e = e.originalEvent;\n  const data = swiper.touchEventsData;\n  if (e.type === 'pointerdown') {\n    if (data.pointerId !== null && data.pointerId !== e.pointerId) {\n      return;\n    }\n    data.pointerId = e.pointerId;\n  } else if (e.type === 'touchstart' && e.targetTouches.length === 1) {\n    data.touchId = e.targetTouches[0].identifier;\n  }\n  if (e.type === 'touchstart') {\n    // don't proceed touch event\n    preventEdgeSwipe(swiper, e, e.targetTouches[0].pageX);\n    return;\n  }\n  const {\n    params,\n    touches,\n    enabled\n  } = swiper;\n  if (!enabled) return;\n  if (!params.simulateTouch && e.pointerType === 'mouse') return;\n  if (swiper.animating && params.preventInteractionOnTransition) {\n    return;\n  }\n  if (!swiper.animating && params.cssMode && params.loop) {\n    swiper.loopFix();\n  }\n  let targetEl = e.target;\n  if (params.touchEventsTarget === 'wrapper') {\n    if (!swiper.wrapperEl.contains(targetEl)) return;\n  }\n  if ('which' in e && e.which === 3) return;\n  if ('button' in e && e.button > 0) return;\n  if (data.isTouched && data.isMoved) return;\n\n  // change target el for shadow root component\n  const swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== '';\n  // eslint-disable-next-line\n  const eventPath = e.composedPath ? e.composedPath() : e.path;\n  if (swipingClassHasValue && e.target && e.target.shadowRoot && eventPath) {\n    targetEl = eventPath[0];\n  }\n  const noSwipingSelector = params.noSwipingSelector ? params.noSwipingSelector : `.${params.noSwipingClass}`;\n  const isTargetShadow = !!(e.target && e.target.shadowRoot);\n\n  // use closestElement for shadow root element to get the actual closest for nested shadow root element\n  if (params.noSwiping && (isTargetShadow ? closestElement(noSwipingSelector, targetEl) : targetEl.closest(noSwipingSelector))) {\n    swiper.allowClick = true;\n    return;\n  }\n  if (params.swipeHandler) {\n    if (!targetEl.closest(params.swipeHandler)) return;\n  }\n  touches.currentX = e.pageX;\n  touches.currentY = e.pageY;\n  const startX = touches.currentX;\n  const startY = touches.currentY;\n\n  // Do NOT start if iOS edge swipe is detected. Otherwise iOS app cannot swipe-to-go-back anymore\n\n  if (!preventEdgeSwipe(swiper, e, startX)) {\n    return;\n  }\n  Object.assign(data, {\n    isTouched: true,\n    isMoved: false,\n    allowTouchCallbacks: true,\n    isScrolling: undefined,\n    startMoving: undefined\n  });\n  touches.startX = startX;\n  touches.startY = startY;\n  data.touchStartTime = now();\n  swiper.allowClick = true;\n  swiper.updateSize();\n  swiper.swipeDirection = undefined;\n  if (params.threshold > 0) data.allowThresholdMove = false;\n  let preventDefault = true;\n  if (targetEl.matches(data.focusableElements)) {\n    preventDefault = false;\n    if (targetEl.nodeName === 'SELECT') {\n      data.isTouched = false;\n    }\n  }\n  if (document.activeElement && document.activeElement.matches(data.focusableElements) && document.activeElement !== targetEl) {\n    document.activeElement.blur();\n  }\n  const shouldPreventDefault = preventDefault && swiper.allowTouchMove && params.touchStartPreventDefault;\n  if ((params.touchStartForcePreventDefault || shouldPreventDefault) && !targetEl.isContentEditable) {\n    e.preventDefault();\n  }\n  if (params.freeMode && params.freeMode.enabled && swiper.freeMode && swiper.animating && !params.cssMode) {\n    swiper.freeMode.onTouchStart();\n  }\n  swiper.emit('touchStart', e);\n}\n\nfunction onTouchMove(event) {\n  const document = getDocument();\n  const swiper = this;\n  const data = swiper.touchEventsData;\n  const {\n    params,\n    touches,\n    rtlTranslate: rtl,\n    enabled\n  } = swiper;\n  if (!enabled) return;\n  if (!params.simulateTouch && event.pointerType === 'mouse') return;\n  let e = event;\n  if (e.originalEvent) e = e.originalEvent;\n  if (e.type === 'pointermove') {\n    if (data.touchId !== null) return; // return from pointer if we use touch\n    const id = e.pointerId;\n    if (id !== data.pointerId) return;\n  }\n  let targetTouch;\n  if (e.type === 'touchmove') {\n    targetTouch = [...e.changedTouches].filter(t => t.identifier === data.touchId)[0];\n    if (!targetTouch || targetTouch.identifier !== data.touchId) return;\n  } else {\n    targetTouch = e;\n  }\n  if (!data.isTouched) {\n    if (data.startMoving && data.isScrolling) {\n      swiper.emit('touchMoveOpposite', e);\n    }\n    return;\n  }\n  const pageX = targetTouch.pageX;\n  const pageY = targetTouch.pageY;\n  if (e.preventedByNestedSwiper) {\n    touches.startX = pageX;\n    touches.startY = pageY;\n    return;\n  }\n  if (!swiper.allowTouchMove) {\n    if (!e.target.matches(data.focusableElements)) {\n      swiper.allowClick = false;\n    }\n    if (data.isTouched) {\n      Object.assign(touches, {\n        startX: pageX,\n        startY: pageY,\n        currentX: pageX,\n        currentY: pageY\n      });\n      data.touchStartTime = now();\n    }\n    return;\n  }\n  if (params.touchReleaseOnEdges && !params.loop) {\n    if (swiper.isVertical()) {\n      // Vertical\n      if (pageY < touches.startY && swiper.translate <= swiper.maxTranslate() || pageY > touches.startY && swiper.translate >= swiper.minTranslate()) {\n        data.isTouched = false;\n        data.isMoved = false;\n        return;\n      }\n    } else if (pageX < touches.startX && swiper.translate <= swiper.maxTranslate() || pageX > touches.startX && swiper.translate >= swiper.minTranslate()) {\n      return;\n    }\n  }\n  if (document.activeElement) {\n    if (e.target === document.activeElement && e.target.matches(data.focusableElements)) {\n      data.isMoved = true;\n      swiper.allowClick = false;\n      return;\n    }\n  }\n  if (data.allowTouchCallbacks) {\n    swiper.emit('touchMove', e);\n  }\n  touches.previousX = touches.currentX;\n  touches.previousY = touches.currentY;\n  touches.currentX = pageX;\n  touches.currentY = pageY;\n  const diffX = touches.currentX - touches.startX;\n  const diffY = touches.currentY - touches.startY;\n  if (swiper.params.threshold && Math.sqrt(diffX ** 2 + diffY ** 2) < swiper.params.threshold) return;\n  if (typeof data.isScrolling === 'undefined') {\n    let touchAngle;\n    if (swiper.isHorizontal() && touches.currentY === touches.startY || swiper.isVertical() && touches.currentX === touches.startX) {\n      data.isScrolling = false;\n    } else {\n      // eslint-disable-next-line\n      if (diffX * diffX + diffY * diffY >= 25) {\n        touchAngle = Math.atan2(Math.abs(diffY), Math.abs(diffX)) * 180 / Math.PI;\n        data.isScrolling = swiper.isHorizontal() ? touchAngle > params.touchAngle : 90 - touchAngle > params.touchAngle;\n      }\n    }\n  }\n  if (data.isScrolling) {\n    swiper.emit('touchMoveOpposite', e);\n  }\n  if (typeof data.startMoving === 'undefined') {\n    if (touches.currentX !== touches.startX || touches.currentY !== touches.startY) {\n      data.startMoving = true;\n    }\n  }\n  if (data.isScrolling || e.type === 'touchmove' && data.preventTouchMoveFromPointerMove) {\n    data.isTouched = false;\n    return;\n  }\n  if (!data.startMoving) {\n    return;\n  }\n  swiper.allowClick = false;\n  if (!params.cssMode && e.cancelable) {\n    e.preventDefault();\n  }\n  if (params.touchMoveStopPropagation && !params.nested) {\n    e.stopPropagation();\n  }\n  let diff = swiper.isHorizontal() ? diffX : diffY;\n  let touchesDiff = swiper.isHorizontal() ? touches.currentX - touches.previousX : touches.currentY - touches.previousY;\n  if (params.oneWayMovement) {\n    diff = Math.abs(diff) * (rtl ? 1 : -1);\n    touchesDiff = Math.abs(touchesDiff) * (rtl ? 1 : -1);\n  }\n  touches.diff = diff;\n  diff *= params.touchRatio;\n  if (rtl) {\n    diff = -diff;\n    touchesDiff = -touchesDiff;\n  }\n  const prevTouchesDirection = swiper.touchesDirection;\n  swiper.swipeDirection = diff > 0 ? 'prev' : 'next';\n  swiper.touchesDirection = touchesDiff > 0 ? 'prev' : 'next';\n  const isLoop = swiper.params.loop && !params.cssMode;\n  const allowLoopFix = swiper.touchesDirection === 'next' && swiper.allowSlideNext || swiper.touchesDirection === 'prev' && swiper.allowSlidePrev;\n  if (!data.isMoved) {\n    if (isLoop && allowLoopFix) {\n      swiper.loopFix({\n        direction: swiper.swipeDirection\n      });\n    }\n    data.startTranslate = swiper.getTranslate();\n    swiper.setTransition(0);\n    if (swiper.animating) {\n      const evt = new window.CustomEvent('transitionend', {\n        bubbles: true,\n        cancelable: true,\n        detail: {\n          bySwiperTouchMove: true\n        }\n      });\n      swiper.wrapperEl.dispatchEvent(evt);\n    }\n    data.allowMomentumBounce = false;\n    // Grab Cursor\n    if (params.grabCursor && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\n      swiper.setGrabCursor(true);\n    }\n    swiper.emit('sliderFirstMove', e);\n  }\n  let loopFixed;\n  new Date().getTime();\n  if (data.isMoved && data.allowThresholdMove && prevTouchesDirection !== swiper.touchesDirection && isLoop && allowLoopFix && Math.abs(diff) >= 1) {\n    Object.assign(touches, {\n      startX: pageX,\n      startY: pageY,\n      currentX: pageX,\n      currentY: pageY,\n      startTranslate: data.currentTranslate\n    });\n    data.loopSwapReset = true;\n    data.startTranslate = data.currentTranslate;\n    return;\n  }\n  swiper.emit('sliderMove', e);\n  data.isMoved = true;\n  data.currentTranslate = diff + data.startTranslate;\n  let disableParentSwiper = true;\n  let resistanceRatio = params.resistanceRatio;\n  if (params.touchReleaseOnEdges) {\n    resistanceRatio = 0;\n  }\n  if (diff > 0) {\n    if (isLoop && allowLoopFix && !loopFixed && data.allowThresholdMove && data.currentTranslate > (params.centeredSlides ? swiper.minTranslate() - swiper.slidesSizesGrid[swiper.activeIndex + 1] : swiper.minTranslate())) {\n      swiper.loopFix({\n        direction: 'prev',\n        setTranslate: true,\n        activeSlideIndex: 0\n      });\n    }\n    if (data.currentTranslate > swiper.minTranslate()) {\n      disableParentSwiper = false;\n      if (params.resistance) {\n        data.currentTranslate = swiper.minTranslate() - 1 + (-swiper.minTranslate() + data.startTranslate + diff) ** resistanceRatio;\n      }\n    }\n  } else if (diff < 0) {\n    if (isLoop && allowLoopFix && !loopFixed && data.allowThresholdMove && data.currentTranslate < (params.centeredSlides ? swiper.maxTranslate() + swiper.slidesSizesGrid[swiper.slidesSizesGrid.length - 1] : swiper.maxTranslate())) {\n      swiper.loopFix({\n        direction: 'next',\n        setTranslate: true,\n        activeSlideIndex: swiper.slides.length - (params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(parseFloat(params.slidesPerView, 10)))\n      });\n    }\n    if (data.currentTranslate < swiper.maxTranslate()) {\n      disableParentSwiper = false;\n      if (params.resistance) {\n        data.currentTranslate = swiper.maxTranslate() + 1 - (swiper.maxTranslate() - data.startTranslate - diff) ** resistanceRatio;\n      }\n    }\n  }\n  if (disableParentSwiper) {\n    e.preventedByNestedSwiper = true;\n  }\n\n  // Directions locks\n  if (!swiper.allowSlideNext && swiper.swipeDirection === 'next' && data.currentTranslate < data.startTranslate) {\n    data.currentTranslate = data.startTranslate;\n  }\n  if (!swiper.allowSlidePrev && swiper.swipeDirection === 'prev' && data.currentTranslate > data.startTranslate) {\n    data.currentTranslate = data.startTranslate;\n  }\n  if (!swiper.allowSlidePrev && !swiper.allowSlideNext) {\n    data.currentTranslate = data.startTranslate;\n  }\n\n  // Threshold\n  if (params.threshold > 0) {\n    if (Math.abs(diff) > params.threshold || data.allowThresholdMove) {\n      if (!data.allowThresholdMove) {\n        data.allowThresholdMove = true;\n        touches.startX = touches.currentX;\n        touches.startY = touches.currentY;\n        data.currentTranslate = data.startTranslate;\n        touches.diff = swiper.isHorizontal() ? touches.currentX - touches.startX : touches.currentY - touches.startY;\n        return;\n      }\n    } else {\n      data.currentTranslate = data.startTranslate;\n      return;\n    }\n  }\n  if (!params.followFinger || params.cssMode) return;\n\n  // Update active index in free mode\n  if (params.freeMode && params.freeMode.enabled && swiper.freeMode || params.watchSlidesProgress) {\n    swiper.updateActiveIndex();\n    swiper.updateSlidesClasses();\n  }\n  if (params.freeMode && params.freeMode.enabled && swiper.freeMode) {\n    swiper.freeMode.onTouchMove();\n  }\n  // Update progress\n  swiper.updateProgress(data.currentTranslate);\n  // Update translate\n  swiper.setTranslate(data.currentTranslate);\n}\n\nfunction onTouchEnd(event) {\n  const swiper = this;\n  const data = swiper.touchEventsData;\n  let e = event;\n  if (e.originalEvent) e = e.originalEvent;\n  let targetTouch;\n  const isTouchEvent = e.type === 'touchend' || e.type === 'touchcancel';\n  if (!isTouchEvent) {\n    if (data.touchId !== null) return; // return from pointer if we use touch\n    if (e.pointerId !== data.pointerId) return;\n    targetTouch = e;\n  } else {\n    targetTouch = [...e.changedTouches].filter(t => t.identifier === data.touchId)[0];\n    if (!targetTouch || targetTouch.identifier !== data.touchId) return;\n  }\n  if (['pointercancel', 'pointerout', 'pointerleave', 'contextmenu'].includes(e.type)) {\n    const proceed = ['pointercancel', 'contextmenu'].includes(e.type) && (swiper.browser.isSafari || swiper.browser.isWebView);\n    if (!proceed) {\n      return;\n    }\n  }\n  data.pointerId = null;\n  data.touchId = null;\n  const {\n    params,\n    touches,\n    rtlTranslate: rtl,\n    slidesGrid,\n    enabled\n  } = swiper;\n  if (!enabled) return;\n  if (!params.simulateTouch && e.pointerType === 'mouse') return;\n  if (data.allowTouchCallbacks) {\n    swiper.emit('touchEnd', e);\n  }\n  data.allowTouchCallbacks = false;\n  if (!data.isTouched) {\n    if (data.isMoved && params.grabCursor) {\n      swiper.setGrabCursor(false);\n    }\n    data.isMoved = false;\n    data.startMoving = false;\n    return;\n  }\n\n  // Return Grab Cursor\n  if (params.grabCursor && data.isMoved && data.isTouched && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\n    swiper.setGrabCursor(false);\n  }\n\n  // Time diff\n  const touchEndTime = now();\n  const timeDiff = touchEndTime - data.touchStartTime;\n\n  // Tap, doubleTap, Click\n  if (swiper.allowClick) {\n    const pathTree = e.path || e.composedPath && e.composedPath();\n    swiper.updateClickedSlide(pathTree && pathTree[0] || e.target, pathTree);\n    swiper.emit('tap click', e);\n    if (timeDiff < 300 && touchEndTime - data.lastClickTime < 300) {\n      swiper.emit('doubleTap doubleClick', e);\n    }\n  }\n  data.lastClickTime = now();\n  nextTick(() => {\n    if (!swiper.destroyed) swiper.allowClick = true;\n  });\n  if (!data.isTouched || !data.isMoved || !swiper.swipeDirection || touches.diff === 0 && !data.loopSwapReset || data.currentTranslate === data.startTranslate && !data.loopSwapReset) {\n    data.isTouched = false;\n    data.isMoved = false;\n    data.startMoving = false;\n    return;\n  }\n  data.isTouched = false;\n  data.isMoved = false;\n  data.startMoving = false;\n  let currentPos;\n  if (params.followFinger) {\n    currentPos = rtl ? swiper.translate : -swiper.translate;\n  } else {\n    currentPos = -data.currentTranslate;\n  }\n  if (params.cssMode) {\n    return;\n  }\n  if (params.freeMode && params.freeMode.enabled) {\n    swiper.freeMode.onTouchEnd({\n      currentPos\n    });\n    return;\n  }\n\n  // Find current slide\n  const swipeToLast = currentPos >= -swiper.maxTranslate() && !swiper.params.loop;\n  let stopIndex = 0;\n  let groupSize = swiper.slidesSizesGrid[0];\n  for (let i = 0; i < slidesGrid.length; i += i < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup) {\n    const increment = i < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;\n    if (typeof slidesGrid[i + increment] !== 'undefined') {\n      if (swipeToLast || currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + increment]) {\n        stopIndex = i;\n        groupSize = slidesGrid[i + increment] - slidesGrid[i];\n      }\n    } else if (swipeToLast || currentPos >= slidesGrid[i]) {\n      stopIndex = i;\n      groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];\n    }\n  }\n  let rewindFirstIndex = null;\n  let rewindLastIndex = null;\n  if (params.rewind) {\n    if (swiper.isBeginning) {\n      rewindLastIndex = params.virtual && params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;\n    } else if (swiper.isEnd) {\n      rewindFirstIndex = 0;\n    }\n  }\n  // Find current slide size\n  const ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;\n  const increment = stopIndex < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;\n  if (timeDiff > params.longSwipesMs) {\n    // Long touches\n    if (!params.longSwipes) {\n      swiper.slideTo(swiper.activeIndex);\n      return;\n    }\n    if (swiper.swipeDirection === 'next') {\n      if (ratio >= params.longSwipesRatio) swiper.slideTo(params.rewind && swiper.isEnd ? rewindFirstIndex : stopIndex + increment);else swiper.slideTo(stopIndex);\n    }\n    if (swiper.swipeDirection === 'prev') {\n      if (ratio > 1 - params.longSwipesRatio) {\n        swiper.slideTo(stopIndex + increment);\n      } else if (rewindLastIndex !== null && ratio < 0 && Math.abs(ratio) > params.longSwipesRatio) {\n        swiper.slideTo(rewindLastIndex);\n      } else {\n        swiper.slideTo(stopIndex);\n      }\n    }\n  } else {\n    // Short swipes\n    if (!params.shortSwipes) {\n      swiper.slideTo(swiper.activeIndex);\n      return;\n    }\n    const isNavButtonTarget = swiper.navigation && (e.target === swiper.navigation.nextEl || e.target === swiper.navigation.prevEl);\n    if (!isNavButtonTarget) {\n      if (swiper.swipeDirection === 'next') {\n        swiper.slideTo(rewindFirstIndex !== null ? rewindFirstIndex : stopIndex + increment);\n      }\n      if (swiper.swipeDirection === 'prev') {\n        swiper.slideTo(rewindLastIndex !== null ? rewindLastIndex : stopIndex);\n      }\n    } else if (e.target === swiper.navigation.nextEl) {\n      swiper.slideTo(stopIndex + increment);\n    } else {\n      swiper.slideTo(stopIndex);\n    }\n  }\n}\n\nfunction onResize() {\n  const swiper = this;\n  const {\n    params,\n    el\n  } = swiper;\n  if (el && el.offsetWidth === 0) return;\n\n  // Breakpoints\n  if (params.breakpoints) {\n    swiper.setBreakpoint();\n  }\n\n  // Save locks\n  const {\n    allowSlideNext,\n    allowSlidePrev,\n    snapGrid\n  } = swiper;\n  const isVirtual = swiper.virtual && swiper.params.virtual.enabled;\n\n  // Disable locks on resize\n  swiper.allowSlideNext = true;\n  swiper.allowSlidePrev = true;\n  swiper.updateSize();\n  swiper.updateSlides();\n  swiper.updateSlidesClasses();\n  const isVirtualLoop = isVirtual && params.loop;\n  if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !swiper.isBeginning && !swiper.params.centeredSlides && !isVirtualLoop) {\n    swiper.slideTo(swiper.slides.length - 1, 0, false, true);\n  } else {\n    if (swiper.params.loop && !isVirtual) {\n      swiper.slideToLoop(swiper.realIndex, 0, false, true);\n    } else {\n      swiper.slideTo(swiper.activeIndex, 0, false, true);\n    }\n  }\n  if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {\n    clearTimeout(swiper.autoplay.resizeTimeout);\n    swiper.autoplay.resizeTimeout = setTimeout(() => {\n      if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {\n        swiper.autoplay.resume();\n      }\n    }, 500);\n  }\n  // Return locks after resize\n  swiper.allowSlidePrev = allowSlidePrev;\n  swiper.allowSlideNext = allowSlideNext;\n  if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) {\n    swiper.checkOverflow();\n  }\n}\n\nfunction onClick(e) {\n  const swiper = this;\n  if (!swiper.enabled) return;\n  if (!swiper.allowClick) {\n    if (swiper.params.preventClicks) e.preventDefault();\n    if (swiper.params.preventClicksPropagation && swiper.animating) {\n      e.stopPropagation();\n      e.stopImmediatePropagation();\n    }\n  }\n}\n\nfunction onScroll() {\n  const swiper = this;\n  const {\n    wrapperEl,\n    rtlTranslate,\n    enabled\n  } = swiper;\n  if (!enabled) return;\n  swiper.previousTranslate = swiper.translate;\n  if (swiper.isHorizontal()) {\n    swiper.translate = -wrapperEl.scrollLeft;\n  } else {\n    swiper.translate = -wrapperEl.scrollTop;\n  }\n  // eslint-disable-next-line\n  if (swiper.translate === 0) swiper.translate = 0;\n  swiper.updateActiveIndex();\n  swiper.updateSlidesClasses();\n  let newProgress;\n  const translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\n  if (translatesDiff === 0) {\n    newProgress = 0;\n  } else {\n    newProgress = (swiper.translate - swiper.minTranslate()) / translatesDiff;\n  }\n  if (newProgress !== swiper.progress) {\n    swiper.updateProgress(rtlTranslate ? -swiper.translate : swiper.translate);\n  }\n  swiper.emit('setTranslate', swiper.translate, false);\n}\n\nfunction onLoad(e) {\n  const swiper = this;\n  processLazyPreloader(swiper, e.target);\n  if (swiper.params.cssMode || swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight) {\n    return;\n  }\n  swiper.update();\n}\n\nfunction onDocumentTouchStart() {\n  const swiper = this;\n  if (swiper.documentTouchHandlerProceeded) return;\n  swiper.documentTouchHandlerProceeded = true;\n  if (swiper.params.touchReleaseOnEdges) {\n    swiper.el.style.touchAction = 'auto';\n  }\n}\n\nconst events = (swiper, method) => {\n  const document = getDocument();\n  const {\n    params,\n    el,\n    wrapperEl,\n    device\n  } = swiper;\n  const capture = !!params.nested;\n  const domMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';\n  const swiperMethod = method;\n\n  // Touch Events\n  document[domMethod]('touchstart', swiper.onDocumentTouchStart, {\n    passive: false,\n    capture\n  });\n  el[domMethod]('touchstart', swiper.onTouchStart, {\n    passive: false\n  });\n  el[domMethod]('pointerdown', swiper.onTouchStart, {\n    passive: false\n  });\n  document[domMethod]('touchmove', swiper.onTouchMove, {\n    passive: false,\n    capture\n  });\n  document[domMethod]('pointermove', swiper.onTouchMove, {\n    passive: false,\n    capture\n  });\n  document[domMethod]('touchend', swiper.onTouchEnd, {\n    passive: true\n  });\n  document[domMethod]('pointerup', swiper.onTouchEnd, {\n    passive: true\n  });\n  document[domMethod]('pointercancel', swiper.onTouchEnd, {\n    passive: true\n  });\n  document[domMethod]('touchcancel', swiper.onTouchEnd, {\n    passive: true\n  });\n  document[domMethod]('pointerout', swiper.onTouchEnd, {\n    passive: true\n  });\n  document[domMethod]('pointerleave', swiper.onTouchEnd, {\n    passive: true\n  });\n  document[domMethod]('contextmenu', swiper.onTouchEnd, {\n    passive: true\n  });\n\n  // Prevent Links Clicks\n  if (params.preventClicks || params.preventClicksPropagation) {\n    el[domMethod]('click', swiper.onClick, true);\n  }\n  if (params.cssMode) {\n    wrapperEl[domMethod]('scroll', swiper.onScroll);\n  }\n\n  // Resize handler\n  if (params.updateOnWindowResize) {\n    swiper[swiperMethod](device.ios || device.android ? 'resize orientationchange observerUpdate' : 'resize observerUpdate', onResize, true);\n  } else {\n    swiper[swiperMethod]('observerUpdate', onResize, true);\n  }\n\n  // Images loader\n  el[domMethod]('load', swiper.onLoad, {\n    capture: true\n  });\n};\nfunction attachEvents() {\n  const swiper = this;\n  const {\n    params\n  } = swiper;\n  swiper.onTouchStart = onTouchStart.bind(swiper);\n  swiper.onTouchMove = onTouchMove.bind(swiper);\n  swiper.onTouchEnd = onTouchEnd.bind(swiper);\n  swiper.onDocumentTouchStart = onDocumentTouchStart.bind(swiper);\n  if (params.cssMode) {\n    swiper.onScroll = onScroll.bind(swiper);\n  }\n  swiper.onClick = onClick.bind(swiper);\n  swiper.onLoad = onLoad.bind(swiper);\n  events(swiper, 'on');\n}\nfunction detachEvents() {\n  const swiper = this;\n  events(swiper, 'off');\n}\nvar events$1 = {\n  attachEvents,\n  detachEvents\n};\n\nconst isGridEnabled = (swiper, params) => {\n  return swiper.grid && params.grid && params.grid.rows > 1;\n};\nfunction setBreakpoint() {\n  const swiper = this;\n  const {\n    realIndex,\n    initialized,\n    params,\n    el\n  } = swiper;\n  const breakpoints = params.breakpoints;\n  if (!breakpoints || breakpoints && Object.keys(breakpoints).length === 0) return;\n\n  // Get breakpoint for window width and update parameters\n  const breakpoint = swiper.getBreakpoint(breakpoints, swiper.params.breakpointsBase, swiper.el);\n  if (!breakpoint || swiper.currentBreakpoint === breakpoint) return;\n  const breakpointOnlyParams = breakpoint in breakpoints ? breakpoints[breakpoint] : undefined;\n  const breakpointParams = breakpointOnlyParams || swiper.originalParams;\n  const wasMultiRow = isGridEnabled(swiper, params);\n  const isMultiRow = isGridEnabled(swiper, breakpointParams);\n  const wasGrabCursor = swiper.params.grabCursor;\n  const isGrabCursor = breakpointParams.grabCursor;\n  const wasEnabled = params.enabled;\n  if (wasMultiRow && !isMultiRow) {\n    el.classList.remove(`${params.containerModifierClass}grid`, `${params.containerModifierClass}grid-column`);\n    swiper.emitContainerClasses();\n  } else if (!wasMultiRow && isMultiRow) {\n    el.classList.add(`${params.containerModifierClass}grid`);\n    if (breakpointParams.grid.fill && breakpointParams.grid.fill === 'column' || !breakpointParams.grid.fill && params.grid.fill === 'column') {\n      el.classList.add(`${params.containerModifierClass}grid-column`);\n    }\n    swiper.emitContainerClasses();\n  }\n  if (wasGrabCursor && !isGrabCursor) {\n    swiper.unsetGrabCursor();\n  } else if (!wasGrabCursor && isGrabCursor) {\n    swiper.setGrabCursor();\n  }\n\n  // Toggle navigation, pagination, scrollbar\n  ['navigation', 'pagination', 'scrollbar'].forEach(prop => {\n    if (typeof breakpointParams[prop] === 'undefined') return;\n    const wasModuleEnabled = params[prop] && params[prop].enabled;\n    const isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;\n    if (wasModuleEnabled && !isModuleEnabled) {\n      swiper[prop].disable();\n    }\n    if (!wasModuleEnabled && isModuleEnabled) {\n      swiper[prop].enable();\n    }\n  });\n  const directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;\n  const needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);\n  const wasLoop = params.loop;\n  if (directionChanged && initialized) {\n    swiper.changeDirection();\n  }\n  extend(swiper.params, breakpointParams);\n  const isEnabled = swiper.params.enabled;\n  const hasLoop = swiper.params.loop;\n  Object.assign(swiper, {\n    allowTouchMove: swiper.params.allowTouchMove,\n    allowSlideNext: swiper.params.allowSlideNext,\n    allowSlidePrev: swiper.params.allowSlidePrev\n  });\n  if (wasEnabled && !isEnabled) {\n    swiper.disable();\n  } else if (!wasEnabled && isEnabled) {\n    swiper.enable();\n  }\n  swiper.currentBreakpoint = breakpoint;\n  swiper.emit('_beforeBreakpoint', breakpointParams);\n  if (initialized) {\n    if (needsReLoop) {\n      swiper.loopDestroy();\n      swiper.loopCreate(realIndex);\n      swiper.updateSlides();\n    } else if (!wasLoop && hasLoop) {\n      swiper.loopCreate(realIndex);\n      swiper.updateSlides();\n    } else if (wasLoop && !hasLoop) {\n      swiper.loopDestroy();\n    }\n  }\n  swiper.emit('breakpoint', breakpointParams);\n}\n\nfunction getBreakpoint(breakpoints, base, containerEl) {\n  if (base === void 0) {\n    base = 'window';\n  }\n  if (!breakpoints || base === 'container' && !containerEl) return undefined;\n  let breakpoint = false;\n  const window = getWindow();\n  const currentHeight = base === 'window' ? window.innerHeight : containerEl.clientHeight;\n  const points = Object.keys(breakpoints).map(point => {\n    if (typeof point === 'string' && point.indexOf('@') === 0) {\n      const minRatio = parseFloat(point.substr(1));\n      const value = currentHeight * minRatio;\n      return {\n        value,\n        point\n      };\n    }\n    return {\n      value: point,\n      point\n    };\n  });\n  points.sort((a, b) => parseInt(a.value, 10) - parseInt(b.value, 10));\n  for (let i = 0; i < points.length; i += 1) {\n    const {\n      point,\n      value\n    } = points[i];\n    if (base === 'window') {\n      if (window.matchMedia(`(min-width: ${value}px)`).matches) {\n        breakpoint = point;\n      }\n    } else if (value <= containerEl.clientWidth) {\n      breakpoint = point;\n    }\n  }\n  return breakpoint || 'max';\n}\n\nvar breakpoints = {\n  setBreakpoint,\n  getBreakpoint\n};\n\nfunction prepareClasses(entries, prefix) {\n  const resultClasses = [];\n  entries.forEach(item => {\n    if (typeof item === 'object') {\n      Object.keys(item).forEach(classNames => {\n        if (item[classNames]) {\n          resultClasses.push(prefix + classNames);\n        }\n      });\n    } else if (typeof item === 'string') {\n      resultClasses.push(prefix + item);\n    }\n  });\n  return resultClasses;\n}\nfunction addClasses() {\n  const swiper = this;\n  const {\n    classNames,\n    params,\n    rtl,\n    el,\n    device\n  } = swiper;\n  // prettier-ignore\n  const suffixes = prepareClasses(['initialized', params.direction, {\n    'free-mode': swiper.params.freeMode && params.freeMode.enabled\n  }, {\n    'autoheight': params.autoHeight\n  }, {\n    'rtl': rtl\n  }, {\n    'grid': params.grid && params.grid.rows > 1\n  }, {\n    'grid-column': params.grid && params.grid.rows > 1 && params.grid.fill === 'column'\n  }, {\n    'android': device.android\n  }, {\n    'ios': device.ios\n  }, {\n    'css-mode': params.cssMode\n  }, {\n    'centered': params.cssMode && params.centeredSlides\n  }, {\n    'watch-progress': params.watchSlidesProgress\n  }], params.containerModifierClass);\n  classNames.push(...suffixes);\n  el.classList.add(...classNames);\n  swiper.emitContainerClasses();\n}\n\nfunction removeClasses() {\n  const swiper = this;\n  const {\n    el,\n    classNames\n  } = swiper;\n  el.classList.remove(...classNames);\n  swiper.emitContainerClasses();\n}\n\nvar classes = {\n  addClasses,\n  removeClasses\n};\n\nfunction checkOverflow() {\n  const swiper = this;\n  const {\n    isLocked: wasLocked,\n    params\n  } = swiper;\n  const {\n    slidesOffsetBefore\n  } = params;\n  if (slidesOffsetBefore) {\n    const lastSlideIndex = swiper.slides.length - 1;\n    const lastSlideRightEdge = swiper.slidesGrid[lastSlideIndex] + swiper.slidesSizesGrid[lastSlideIndex] + slidesOffsetBefore * 2;\n    swiper.isLocked = swiper.size > lastSlideRightEdge;\n  } else {\n    swiper.isLocked = swiper.snapGrid.length === 1;\n  }\n  if (params.allowSlideNext === true) {\n    swiper.allowSlideNext = !swiper.isLocked;\n  }\n  if (params.allowSlidePrev === true) {\n    swiper.allowSlidePrev = !swiper.isLocked;\n  }\n  if (wasLocked && wasLocked !== swiper.isLocked) {\n    swiper.isEnd = false;\n  }\n  if (wasLocked !== swiper.isLocked) {\n    swiper.emit(swiper.isLocked ? 'lock' : 'unlock');\n  }\n}\nvar checkOverflow$1 = {\n  checkOverflow\n};\n\nvar defaults = {\n  init: true,\n  direction: 'horizontal',\n  oneWayMovement: false,\n  swiperElementNodeName: 'SWIPER-CONTAINER',\n  touchEventsTarget: 'wrapper',\n  initialSlide: 0,\n  speed: 300,\n  cssMode: false,\n  updateOnWindowResize: true,\n  resizeObserver: true,\n  nested: false,\n  createElements: false,\n  eventsPrefix: 'swiper',\n  enabled: true,\n  focusableElements: 'input, select, option, textarea, button, video, label',\n  // Overrides\n  width: null,\n  height: null,\n  //\n  preventInteractionOnTransition: false,\n  // ssr\n  userAgent: null,\n  url: null,\n  // To support iOS's swipe-to-go-back gesture (when being used in-app).\n  edgeSwipeDetection: false,\n  edgeSwipeThreshold: 20,\n  // Autoheight\n  autoHeight: false,\n  // Set wrapper width\n  setWrapperSize: false,\n  // Virtual Translate\n  virtualTranslate: false,\n  // Effects\n  effect: 'slide',\n  // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'\n\n  // Breakpoints\n  breakpoints: undefined,\n  breakpointsBase: 'window',\n  // Slides grid\n  spaceBetween: 0,\n  slidesPerView: 1,\n  slidesPerGroup: 1,\n  slidesPerGroupSkip: 0,\n  slidesPerGroupAuto: false,\n  centeredSlides: false,\n  centeredSlidesBounds: false,\n  slidesOffsetBefore: 0,\n  // in px\n  slidesOffsetAfter: 0,\n  // in px\n  normalizeSlideIndex: true,\n  centerInsufficientSlides: false,\n  // Disable swiper and hide navigation when container not overflow\n  watchOverflow: true,\n  // Round length\n  roundLengths: false,\n  // Touches\n  touchRatio: 1,\n  touchAngle: 45,\n  simulateTouch: true,\n  shortSwipes: true,\n  longSwipes: true,\n  longSwipesRatio: 0.5,\n  longSwipesMs: 300,\n  followFinger: true,\n  allowTouchMove: true,\n  threshold: 5,\n  touchMoveStopPropagation: false,\n  touchStartPreventDefault: true,\n  touchStartForcePreventDefault: false,\n  touchReleaseOnEdges: false,\n  // Unique Navigation Elements\n  uniqueNavElements: true,\n  // Resistance\n  resistance: true,\n  resistanceRatio: 0.85,\n  // Progress\n  watchSlidesProgress: false,\n  // Cursor\n  grabCursor: false,\n  // Clicks\n  preventClicks: true,\n  preventClicksPropagation: true,\n  slideToClickedSlide: false,\n  // loop\n  loop: false,\n  loopAddBlankSlides: true,\n  loopAdditionalSlides: 0,\n  loopPreventsSliding: true,\n  // rewind\n  rewind: false,\n  // Swiping/no swiping\n  allowSlidePrev: true,\n  allowSlideNext: true,\n  swipeHandler: null,\n  // '.swipe-handler',\n  noSwiping: true,\n  noSwipingClass: 'swiper-no-swiping',\n  noSwipingSelector: null,\n  // Passive Listeners\n  passiveListeners: true,\n  maxBackfaceHiddenSlides: 10,\n  // NS\n  containerModifierClass: 'swiper-',\n  // NEW\n  slideClass: 'swiper-slide',\n  slideBlankClass: 'swiper-slide-blank',\n  slideActiveClass: 'swiper-slide-active',\n  slideVisibleClass: 'swiper-slide-visible',\n  slideFullyVisibleClass: 'swiper-slide-fully-visible',\n  slideNextClass: 'swiper-slide-next',\n  slidePrevClass: 'swiper-slide-prev',\n  wrapperClass: 'swiper-wrapper',\n  lazyPreloaderClass: 'swiper-lazy-preloader',\n  lazyPreloadPrevNext: 0,\n  // Callbacks\n  runCallbacksOnInit: true,\n  // Internals\n  _emitClasses: false\n};\n\nfunction moduleExtendParams(params, allModulesParams) {\n  return function extendParams(obj) {\n    if (obj === void 0) {\n      obj = {};\n    }\n    const moduleParamName = Object.keys(obj)[0];\n    const moduleParams = obj[moduleParamName];\n    if (typeof moduleParams !== 'object' || moduleParams === null) {\n      extend(allModulesParams, obj);\n      return;\n    }\n    if (params[moduleParamName] === true) {\n      params[moduleParamName] = {\n        enabled: true\n      };\n    }\n    if (moduleParamName === 'navigation' && params[moduleParamName] && params[moduleParamName].enabled && !params[moduleParamName].prevEl && !params[moduleParamName].nextEl) {\n      params[moduleParamName].auto = true;\n    }\n    if (['pagination', 'scrollbar'].indexOf(moduleParamName) >= 0 && params[moduleParamName] && params[moduleParamName].enabled && !params[moduleParamName].el) {\n      params[moduleParamName].auto = true;\n    }\n    if (!(moduleParamName in params && 'enabled' in moduleParams)) {\n      extend(allModulesParams, obj);\n      return;\n    }\n    if (typeof params[moduleParamName] === 'object' && !('enabled' in params[moduleParamName])) {\n      params[moduleParamName].enabled = true;\n    }\n    if (!params[moduleParamName]) params[moduleParamName] = {\n      enabled: false\n    };\n    extend(allModulesParams, obj);\n  };\n}\n\n/* eslint no-param-reassign: \"off\" */\nconst prototypes = {\n  eventsEmitter,\n  update,\n  translate,\n  transition,\n  slide,\n  loop,\n  grabCursor,\n  events: events$1,\n  breakpoints,\n  checkOverflow: checkOverflow$1,\n  classes\n};\nconst extendedDefaults = {};\nclass Swiper {\n  constructor() {\n    let el;\n    let params;\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    if (args.length === 1 && args[0].constructor && Object.prototype.toString.call(args[0]).slice(8, -1) === 'Object') {\n      params = args[0];\n    } else {\n      [el, params] = args;\n    }\n    if (!params) params = {};\n    params = extend({}, params);\n    if (el && !params.el) params.el = el;\n    const document = getDocument();\n    if (params.el && typeof params.el === 'string' && document.querySelectorAll(params.el).length > 1) {\n      const swipers = [];\n      document.querySelectorAll(params.el).forEach(containerEl => {\n        const newParams = extend({}, params, {\n          el: containerEl\n        });\n        swipers.push(new Swiper(newParams));\n      });\n      // eslint-disable-next-line no-constructor-return\n      return swipers;\n    }\n\n    // Swiper Instance\n    const swiper = this;\n    swiper.__swiper__ = true;\n    swiper.support = getSupport();\n    swiper.device = getDevice({\n      userAgent: params.userAgent\n    });\n    swiper.browser = getBrowser();\n    swiper.eventsListeners = {};\n    swiper.eventsAnyListeners = [];\n    swiper.modules = [...swiper.__modules__];\n    if (params.modules && Array.isArray(params.modules)) {\n      swiper.modules.push(...params.modules);\n    }\n    const allModulesParams = {};\n    swiper.modules.forEach(mod => {\n      mod({\n        params,\n        swiper,\n        extendParams: moduleExtendParams(params, allModulesParams),\n        on: swiper.on.bind(swiper),\n        once: swiper.once.bind(swiper),\n        off: swiper.off.bind(swiper),\n        emit: swiper.emit.bind(swiper)\n      });\n    });\n\n    // Extend defaults with modules params\n    const swiperParams = extend({}, defaults, allModulesParams);\n\n    // Extend defaults with passed params\n    swiper.params = extend({}, swiperParams, extendedDefaults, params);\n    swiper.originalParams = extend({}, swiper.params);\n    swiper.passedParams = extend({}, params);\n\n    // add event listeners\n    if (swiper.params && swiper.params.on) {\n      Object.keys(swiper.params.on).forEach(eventName => {\n        swiper.on(eventName, swiper.params.on[eventName]);\n      });\n    }\n    if (swiper.params && swiper.params.onAny) {\n      swiper.onAny(swiper.params.onAny);\n    }\n\n    // Extend Swiper\n    Object.assign(swiper, {\n      enabled: swiper.params.enabled,\n      el,\n      // Classes\n      classNames: [],\n      // Slides\n      slides: [],\n      slidesGrid: [],\n      snapGrid: [],\n      slidesSizesGrid: [],\n      // isDirection\n      isHorizontal() {\n        return swiper.params.direction === 'horizontal';\n      },\n      isVertical() {\n        return swiper.params.direction === 'vertical';\n      },\n      // Indexes\n      activeIndex: 0,\n      realIndex: 0,\n      //\n      isBeginning: true,\n      isEnd: false,\n      // Props\n      translate: 0,\n      previousTranslate: 0,\n      progress: 0,\n      velocity: 0,\n      animating: false,\n      cssOverflowAdjustment() {\n        // Returns 0 unless `translate` is > 2**23\n        // Should be subtracted from css values to prevent overflow\n        return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;\n      },\n      // Locks\n      allowSlideNext: swiper.params.allowSlideNext,\n      allowSlidePrev: swiper.params.allowSlidePrev,\n      // Touch Events\n      touchEventsData: {\n        isTouched: undefined,\n        isMoved: undefined,\n        allowTouchCallbacks: undefined,\n        touchStartTime: undefined,\n        isScrolling: undefined,\n        currentTranslate: undefined,\n        startTranslate: undefined,\n        allowThresholdMove: undefined,\n        // Form elements to match\n        focusableElements: swiper.params.focusableElements,\n        // Last click time\n        lastClickTime: 0,\n        clickTimeout: undefined,\n        // Velocities\n        velocities: [],\n        allowMomentumBounce: undefined,\n        startMoving: undefined,\n        pointerId: null,\n        touchId: null\n      },\n      // Clicks\n      allowClick: true,\n      // Touches\n      allowTouchMove: swiper.params.allowTouchMove,\n      touches: {\n        startX: 0,\n        startY: 0,\n        currentX: 0,\n        currentY: 0,\n        diff: 0\n      },\n      // Images\n      imagesToLoad: [],\n      imagesLoaded: 0\n    });\n    swiper.emit('_swiper');\n\n    // Init\n    if (swiper.params.init) {\n      swiper.init();\n    }\n\n    // Return app instance\n    // eslint-disable-next-line no-constructor-return\n    return swiper;\n  }\n  getDirectionLabel(property) {\n    if (this.isHorizontal()) {\n      return property;\n    }\n    // prettier-ignore\n    return {\n      'width': 'height',\n      'margin-top': 'margin-left',\n      'margin-bottom ': 'margin-right',\n      'margin-left': 'margin-top',\n      'margin-right': 'margin-bottom',\n      'padding-left': 'padding-top',\n      'padding-right': 'padding-bottom',\n      'marginRight': 'marginBottom'\n    }[property];\n  }\n  getSlideIndex(slideEl) {\n    const {\n      slidesEl,\n      params\n    } = this;\n    const slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);\n    const firstSlideIndex = elementIndex(slides[0]);\n    return elementIndex(slideEl) - firstSlideIndex;\n  }\n  getSlideIndexByData(index) {\n    return this.getSlideIndex(this.slides.filter(slideEl => slideEl.getAttribute('data-swiper-slide-index') * 1 === index)[0]);\n  }\n  recalcSlides() {\n    const swiper = this;\n    const {\n      slidesEl,\n      params\n    } = swiper;\n    swiper.slides = elementChildren(slidesEl, `.${params.slideClass}, swiper-slide`);\n  }\n  enable() {\n    const swiper = this;\n    if (swiper.enabled) return;\n    swiper.enabled = true;\n    if (swiper.params.grabCursor) {\n      swiper.setGrabCursor();\n    }\n    swiper.emit('enable');\n  }\n  disable() {\n    const swiper = this;\n    if (!swiper.enabled) return;\n    swiper.enabled = false;\n    if (swiper.params.grabCursor) {\n      swiper.unsetGrabCursor();\n    }\n    swiper.emit('disable');\n  }\n  setProgress(progress, speed) {\n    const swiper = this;\n    progress = Math.min(Math.max(progress, 0), 1);\n    const min = swiper.minTranslate();\n    const max = swiper.maxTranslate();\n    const current = (max - min) * progress + min;\n    swiper.translateTo(current, typeof speed === 'undefined' ? 0 : speed);\n    swiper.updateActiveIndex();\n    swiper.updateSlidesClasses();\n  }\n  emitContainerClasses() {\n    const swiper = this;\n    if (!swiper.params._emitClasses || !swiper.el) return;\n    const cls = swiper.el.className.split(' ').filter(className => {\n      return className.indexOf('swiper') === 0 || className.indexOf(swiper.params.containerModifierClass) === 0;\n    });\n    swiper.emit('_containerClasses', cls.join(' '));\n  }\n  getSlideClasses(slideEl) {\n    const swiper = this;\n    if (swiper.destroyed) return '';\n    return slideEl.className.split(' ').filter(className => {\n      return className.indexOf('swiper-slide') === 0 || className.indexOf(swiper.params.slideClass) === 0;\n    }).join(' ');\n  }\n  emitSlidesClasses() {\n    const swiper = this;\n    if (!swiper.params._emitClasses || !swiper.el) return;\n    const updates = [];\n    swiper.slides.forEach(slideEl => {\n      const classNames = swiper.getSlideClasses(slideEl);\n      updates.push({\n        slideEl,\n        classNames\n      });\n      swiper.emit('_slideClass', slideEl, classNames);\n    });\n    swiper.emit('_slideClasses', updates);\n  }\n  slidesPerViewDynamic(view, exact) {\n    if (view === void 0) {\n      view = 'current';\n    }\n    if (exact === void 0) {\n      exact = false;\n    }\n    const swiper = this;\n    const {\n      params,\n      slides,\n      slidesGrid,\n      slidesSizesGrid,\n      size: swiperSize,\n      activeIndex\n    } = swiper;\n    let spv = 1;\n    if (typeof params.slidesPerView === 'number') return params.slidesPerView;\n    if (params.centeredSlides) {\n      let slideSize = slides[activeIndex] ? Math.ceil(slides[activeIndex].swiperSlideSize) : 0;\n      let breakLoop;\n      for (let i = activeIndex + 1; i < slides.length; i += 1) {\n        if (slides[i] && !breakLoop) {\n          slideSize += Math.ceil(slides[i].swiperSlideSize);\n          spv += 1;\n          if (slideSize > swiperSize) breakLoop = true;\n        }\n      }\n      for (let i = activeIndex - 1; i >= 0; i -= 1) {\n        if (slides[i] && !breakLoop) {\n          slideSize += slides[i].swiperSlideSize;\n          spv += 1;\n          if (slideSize > swiperSize) breakLoop = true;\n        }\n      }\n    } else {\n      // eslint-disable-next-line\n      if (view === 'current') {\n        for (let i = activeIndex + 1; i < slides.length; i += 1) {\n          const slideInView = exact ? slidesGrid[i] + slidesSizesGrid[i] - slidesGrid[activeIndex] < swiperSize : slidesGrid[i] - slidesGrid[activeIndex] < swiperSize;\n          if (slideInView) {\n            spv += 1;\n          }\n        }\n      } else {\n        // previous\n        for (let i = activeIndex - 1; i >= 0; i -= 1) {\n          const slideInView = slidesGrid[activeIndex] - slidesGrid[i] < swiperSize;\n          if (slideInView) {\n            spv += 1;\n          }\n        }\n      }\n    }\n    return spv;\n  }\n  update() {\n    const swiper = this;\n    if (!swiper || swiper.destroyed) return;\n    const {\n      snapGrid,\n      params\n    } = swiper;\n    // Breakpoints\n    if (params.breakpoints) {\n      swiper.setBreakpoint();\n    }\n    [...swiper.el.querySelectorAll('[loading=\"lazy\"]')].forEach(imageEl => {\n      if (imageEl.complete) {\n        processLazyPreloader(swiper, imageEl);\n      }\n    });\n    swiper.updateSize();\n    swiper.updateSlides();\n    swiper.updateProgress();\n    swiper.updateSlidesClasses();\n    function setTranslate() {\n      const translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;\n      const newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());\n      swiper.setTranslate(newTranslate);\n      swiper.updateActiveIndex();\n      swiper.updateSlidesClasses();\n    }\n    let translated;\n    if (params.freeMode && params.freeMode.enabled && !params.cssMode) {\n      setTranslate();\n      if (params.autoHeight) {\n        swiper.updateAutoHeight();\n      }\n    } else {\n      if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !params.centeredSlides) {\n        const slides = swiper.virtual && params.virtual.enabled ? swiper.virtual.slides : swiper.slides;\n        translated = swiper.slideTo(slides.length - 1, 0, false, true);\n      } else {\n        translated = swiper.slideTo(swiper.activeIndex, 0, false, true);\n      }\n      if (!translated) {\n        setTranslate();\n      }\n    }\n    if (params.watchOverflow && snapGrid !== swiper.snapGrid) {\n      swiper.checkOverflow();\n    }\n    swiper.emit('update');\n  }\n  changeDirection(newDirection, needUpdate) {\n    if (needUpdate === void 0) {\n      needUpdate = true;\n    }\n    const swiper = this;\n    const currentDirection = swiper.params.direction;\n    if (!newDirection) {\n      // eslint-disable-next-line\n      newDirection = currentDirection === 'horizontal' ? 'vertical' : 'horizontal';\n    }\n    if (newDirection === currentDirection || newDirection !== 'horizontal' && newDirection !== 'vertical') {\n      return swiper;\n    }\n    swiper.el.classList.remove(`${swiper.params.containerModifierClass}${currentDirection}`);\n    swiper.el.classList.add(`${swiper.params.containerModifierClass}${newDirection}`);\n    swiper.emitContainerClasses();\n    swiper.params.direction = newDirection;\n    swiper.slides.forEach(slideEl => {\n      if (newDirection === 'vertical') {\n        slideEl.style.width = '';\n      } else {\n        slideEl.style.height = '';\n      }\n    });\n    swiper.emit('changeDirection');\n    if (needUpdate) swiper.update();\n    return swiper;\n  }\n  changeLanguageDirection(direction) {\n    const swiper = this;\n    if (swiper.rtl && direction === 'rtl' || !swiper.rtl && direction === 'ltr') return;\n    swiper.rtl = direction === 'rtl';\n    swiper.rtlTranslate = swiper.params.direction === 'horizontal' && swiper.rtl;\n    if (swiper.rtl) {\n      swiper.el.classList.add(`${swiper.params.containerModifierClass}rtl`);\n      swiper.el.dir = 'rtl';\n    } else {\n      swiper.el.classList.remove(`${swiper.params.containerModifierClass}rtl`);\n      swiper.el.dir = 'ltr';\n    }\n    swiper.update();\n  }\n  mount(element) {\n    const swiper = this;\n    if (swiper.mounted) return true;\n\n    // Find el\n    let el = element || swiper.params.el;\n    if (typeof el === 'string') {\n      el = document.querySelector(el);\n    }\n    if (!el) {\n      return false;\n    }\n    el.swiper = swiper;\n    if (el.parentNode && el.parentNode.host && el.parentNode.host.nodeName === swiper.params.swiperElementNodeName.toUpperCase()) {\n      swiper.isElement = true;\n    }\n    const getWrapperSelector = () => {\n      return `.${(swiper.params.wrapperClass || '').trim().split(' ').join('.')}`;\n    };\n    const getWrapper = () => {\n      if (el && el.shadowRoot && el.shadowRoot.querySelector) {\n        const res = el.shadowRoot.querySelector(getWrapperSelector());\n        // Children needs to return slot items\n        return res;\n      }\n      return elementChildren(el, getWrapperSelector())[0];\n    };\n    // Find Wrapper\n    let wrapperEl = getWrapper();\n    if (!wrapperEl && swiper.params.createElements) {\n      wrapperEl = createElement('div', swiper.params.wrapperClass);\n      el.append(wrapperEl);\n      elementChildren(el, `.${swiper.params.slideClass}`).forEach(slideEl => {\n        wrapperEl.append(slideEl);\n      });\n    }\n    Object.assign(swiper, {\n      el,\n      wrapperEl,\n      slidesEl: swiper.isElement && !el.parentNode.host.slideSlots ? el.parentNode.host : wrapperEl,\n      hostEl: swiper.isElement ? el.parentNode.host : el,\n      mounted: true,\n      // RTL\n      rtl: el.dir.toLowerCase() === 'rtl' || elementStyle(el, 'direction') === 'rtl',\n      rtlTranslate: swiper.params.direction === 'horizontal' && (el.dir.toLowerCase() === 'rtl' || elementStyle(el, 'direction') === 'rtl'),\n      wrongRTL: elementStyle(wrapperEl, 'display') === '-webkit-box'\n    });\n    return true;\n  }\n  init(el) {\n    const swiper = this;\n    if (swiper.initialized) return swiper;\n    const mounted = swiper.mount(el);\n    if (mounted === false) return swiper;\n    swiper.emit('beforeInit');\n\n    // Set breakpoint\n    if (swiper.params.breakpoints) {\n      swiper.setBreakpoint();\n    }\n\n    // Add Classes\n    swiper.addClasses();\n\n    // Update size\n    swiper.updateSize();\n\n    // Update slides\n    swiper.updateSlides();\n    if (swiper.params.watchOverflow) {\n      swiper.checkOverflow();\n    }\n\n    // Set Grab Cursor\n    if (swiper.params.grabCursor && swiper.enabled) {\n      swiper.setGrabCursor();\n    }\n\n    // Slide To Initial Slide\n    if (swiper.params.loop && swiper.virtual && swiper.params.virtual.enabled) {\n      swiper.slideTo(swiper.params.initialSlide + swiper.virtual.slidesBefore, 0, swiper.params.runCallbacksOnInit, false, true);\n    } else {\n      swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit, false, true);\n    }\n\n    // Create loop\n    if (swiper.params.loop) {\n      swiper.loopCreate();\n    }\n\n    // Attach events\n    swiper.attachEvents();\n    const lazyElements = [...swiper.el.querySelectorAll('[loading=\"lazy\"]')];\n    if (swiper.isElement) {\n      lazyElements.push(...swiper.hostEl.querySelectorAll('[loading=\"lazy\"]'));\n    }\n    lazyElements.forEach(imageEl => {\n      if (imageEl.complete) {\n        processLazyPreloader(swiper, imageEl);\n      } else {\n        imageEl.addEventListener('load', e => {\n          processLazyPreloader(swiper, e.target);\n        });\n      }\n    });\n    preload(swiper);\n\n    // Init Flag\n    swiper.initialized = true;\n    preload(swiper);\n\n    // Emit\n    swiper.emit('init');\n    swiper.emit('afterInit');\n    return swiper;\n  }\n  destroy(deleteInstance, cleanStyles) {\n    if (deleteInstance === void 0) {\n      deleteInstance = true;\n    }\n    if (cleanStyles === void 0) {\n      cleanStyles = true;\n    }\n    const swiper = this;\n    const {\n      params,\n      el,\n      wrapperEl,\n      slides\n    } = swiper;\n    if (typeof swiper.params === 'undefined' || swiper.destroyed) {\n      return null;\n    }\n    swiper.emit('beforeDestroy');\n\n    // Init Flag\n    swiper.initialized = false;\n\n    // Detach events\n    swiper.detachEvents();\n\n    // Destroy loop\n    if (params.loop) {\n      swiper.loopDestroy();\n    }\n\n    // Cleanup styles\n    if (cleanStyles) {\n      swiper.removeClasses();\n      el.removeAttribute('style');\n      wrapperEl.removeAttribute('style');\n      if (slides && slides.length) {\n        slides.forEach(slideEl => {\n          slideEl.classList.remove(params.slideVisibleClass, params.slideFullyVisibleClass, params.slideActiveClass, params.slideNextClass, params.slidePrevClass);\n          slideEl.removeAttribute('style');\n          slideEl.removeAttribute('data-swiper-slide-index');\n        });\n      }\n    }\n    swiper.emit('destroy');\n\n    // Detach emitter events\n    Object.keys(swiper.eventsListeners).forEach(eventName => {\n      swiper.off(eventName);\n    });\n    if (deleteInstance !== false) {\n      swiper.el.swiper = null;\n      deleteProps(swiper);\n    }\n    swiper.destroyed = true;\n    return null;\n  }\n  static extendDefaults(newDefaults) {\n    extend(extendedDefaults, newDefaults);\n  }\n  static get extendedDefaults() {\n    return extendedDefaults;\n  }\n  static get defaults() {\n    return defaults;\n  }\n  static installModule(mod) {\n    if (!Swiper.prototype.__modules__) Swiper.prototype.__modules__ = [];\n    const modules = Swiper.prototype.__modules__;\n    if (typeof mod === 'function' && modules.indexOf(mod) < 0) {\n      modules.push(mod);\n    }\n  }\n  static use(module) {\n    if (Array.isArray(module)) {\n      module.forEach(m => Swiper.installModule(m));\n      return Swiper;\n    }\n    Swiper.installModule(module);\n    return Swiper;\n  }\n}\nObject.keys(prototypes).forEach(prototypeGroup => {\n  Object.keys(prototypes[prototypeGroup]).forEach(protoMethod => {\n    Swiper.prototype[protoMethod] = prototypes[prototypeGroup][protoMethod];\n  });\n});\nSwiper.use([Resize, Observer]);\n\nexport { Swiper as S, defaults as d };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar 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\tvar 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].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","'use strict';\nconst focusHelper = require('base/components/focus');\nimport { addClass, hasClass, queryAll, queryFirst, remove, removeClass, renderFragment, toFormData, setAttribute } from '../domUtil';\nimport { formatMessage, getJSON, getNestedValue, tokenize, setUrlParamValue } from '../util';\nimport { getAddToCartAnalyticsData } from './helper';\nimport { setWishlistProductId, showStrikeHearts } from '../wishlist/helper';\nimport { EMPTY_STRING, NOT_AVAILABLE_STATUS, SELECTED_CLASS } from '../constants';\n\nconst { trackPageView } = require('../components/etmc');\nconst { toggleSelectSizeInfo, isEarlyAccessElement } = require('./helper');\nconst { swatchNameTemplate, sizeOptionTemplate, sizeButtonTemplate, gwpSizeTemplate, dialogTemplate, loyalty: loyaltyTemplates } = require('../templates');\nconst $body = $('body');\nconst gwpDialog = queryFirst('#chooseBonusProductModal');\nconst $gwpDialog = $(gwpDialog);\nconst hiddenClass = 'd-none';\nconst readyClass = 'ready-to-add';\nconst selectedProductClass = 'selected-product';\nconst notAvailable = 'not-available';\nconst { updateVisibilityOfLowInventoryMsg } = require('../components/shippingPreference/shippingPreferenceHelper');\nconst { PRODUCT_DETAIL_CONTAINER_SELECTOR } = require('../components/shippingPreference/constants');\nconst { HIDDEN_CLASS } = require('../constants');\nconst loyaltyProfile = getNestedValue(window, 'lillyUtils.profile') || {};\nconst { isLoyaltyProgramMember, isLoyaltyAuthenticated, isLoyaltyEnabled } = loyaltyProfile;\nconst { videoInnerContent } = require('lilly/templates');\nconst { initVideos } = require('../components/video').default;\n\nlet observer;\nlet isContentModulesFetched = false;\n\n/**\n * Retrieves the relevant pid value\n * @param {jquery} $el - DOM container for a given add to cart button\n * @return {string} - value to be used when adding product to cart\n */\nfunction getPidValue($el) {\n    var pid;\n\n    if ($('#quickViewModal').hasClass('show') && !$('.product-set').length) {\n        pid = $($el).closest('.modal-content').find('.product-quickview').attr('data-pid');\n    } else if ($('.quickview-container').length && !$('.product-set').length) {\n        pid = $($el).closest('.quickview-container').find('.product-quickview').attr('data-pid');\n    } else if ($('.product-set-detail').length || $('.product-set').length) {\n        pid = $($el).closest('.product-detail').find('.product-id').first().text();\n    } else if ($('.custom-set-detail-modal').length) {\n        $($el).closest('.custom-set-detail-modal').find('.product-id').first().text();\n    } else {\n        pid = $($el).closest('.product-detail').find('.product-id').first().text();\n    }\n\n    return pid;\n}\n\n/**\n * Retrieve contextual quantity selector\n * @param {jquery} $el - DOM container for the relevant quantity\n * @return {jquery} - quantity selector DOM container\n */\nfunction getQuantitySelector($el) {\n    return $el && $('.set-items').length ? $el.closest('.product-detail').find('.quantity-select') : $('.quantity-select');\n}\n\n/**\n * Retrieves the value associated with the Quantity pull-down menu\n * @param {jquery} $el - DOM container for the relevant quantity\n * @return {string} - value found in the quantity input\n */\nfunction getQuantitySelected($el) {\n    return getQuantitySelector($el).val();\n}\n\n/**\n * Process the attribute values for an attribute that has image swatches\n *\n * @param {Object} attr - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {Object[]} attr.values - Array of attribute value objects\n * @param {string} attr.values.value - Attribute coded value\n * @param {string} attr.values.url - URL to de/select an attribute value of the product\n * @param {boolean} attr.values.isSelectable - Flag as to whether an attribute value can be\n *     selected.  If there is no variant that corresponds to a specific combination of attribute\n *     values, an attribute may be disabled in the Product Detail Page\n * @param {jQuery} $productContainer - DOM container for a given product\n * @param {Object} msgs - object containing resource messages\n */\nfunction processSwatchValues(attr, $productContainer, msgs) {\n    var isChoiceOfBonusProducts = $productContainer.parents('.choose-bonus-product-dialog').length > 0;\n    attr.values.forEach(function (attrValue) {\n        var $attrValue = $productContainer.find('[data-attr=\"' + attr.id + '\"] [data-attr-value=\"' + attrValue.value + '\"]');\n        var $swatchButton = $attrValue.parent();\n\n        if (attrValue.selected) {\n            $attrValue.addClass('selected');\n            $attrValue.siblings('.selected-assistive-text').text(msgs.assistiveSelectedText);\n        } else {\n            $attrValue.removeClass('selected');\n            $attrValue.siblings('.selected-assistive-text').empty();\n        }\n\n        const { bonusVariationUrl, url } = attrValue;\n\n        if (isChoiceOfBonusProducts) {\n            if (bonusVariationUrl) {\n                $swatchButton.attr('data-url', bonusVariationUrl);\n            } else {\n                $swatchButton.removeAttr('data-url');\n            }\n        } else if (url) {\n            $swatchButton.attr('data-url', url);\n        } else {\n            $swatchButton.removeAttr('data-url');\n        }\n\n        // Disable if not selectable\n        $attrValue.removeClass('selectable unselectable');\n\n        $attrValue.addClass(attrValue.selectable ? 'selectable' : 'unselectable');\n    });\n}\n\n/**\n * Process attribute values associated with an attribute that does not have image swatches\n *\n * @param {Object} attr - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {Object[]} attr.values - Array of attribute value objects\n * @param {string} attr.values.value - Attribute coded value\n * @param {string} attr.values.url - URL to de/select an attribute value of the product\n * @param {boolean} attr.values.isSelectable - Flag as to whether an attribute value can be\n *     selected.  If there is no variant that corresponds to a specific combination of attribute\n *     values, an attribute may be disabled in the Product Detail Page\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction processNonSwatchValues(attr, $productContainer) {\n    if ($productContainer.hasClass('bonus-product-item')) {\n        const sizes = attr.values;\n        const sizeContainer = queryFirst('.selected-size-container', $productContainer[0]);\n        if (!sizes.length || !sizeContainer) {\n            return;\n        }\n\n        if (sizes.length === 1) {\n            sizeContainer.innerHTML = formatMessage(gwpSizeTemplate.singleSize, sizes[0].displayValue);\n        } else {\n            const loopStatus = sizeContainer.dataset.loopStatus;\n            const resetUrl = attr.resetUrl;\n            const selectLabel = sizeContainer.dataset.selectLabel;\n            const selectId = `bonus-size-${loopStatus.count || '1'}`;\n\n            let sizeOptions = formatMessage(gwpSizeTemplate.multiDefaultSizeOption, resetUrl, selectLabel);\n            sizeOptions += sizes\n                .map(function (size) {\n                    const selected = size.selected ? ' selected ' : '';\n                    const className = !size.inStock || size.forceOutOfStock ? notAvailable : '';\n                    return formatMessage(gwpSizeTemplate.multiSizeOption, size.url, size.value, selected, size.displayValue, className, className ? 'disabled' : '');\n                })\n                .join('');\n            sizeContainer.innerHTML = formatMessage(gwpSizeTemplate.multiSize, selectId, sizeOptions);\n        }\n    } else {\n        var $attr = '[data-attr=\"' + attr.id + '\"]';\n        const selectSizeEl = $productContainer.find('.select-size')[0];\n        let selectedValue = '';\n        if (selectSizeEl) {\n            $(selectSizeEl).find('option').not(':first').remove();\n            $(selectSizeEl).find('option:first').attr('value', attr.resetUrl);\n        }\n        attr.values.forEach(function (attrValue) {\n            if (selectSizeEl) {\n                const assistiveElement = queryFirst('.selected-assistive-text', selectSizeEl.closest('.size-list'));\n                assistiveElement.textContent = selectSizeEl.selectedOptions[0].dataset.attrValue;\n                if (!attrValue.isOffline) {\n                    selectSizeEl.innerHTML += sizeOptionTemplate(attrValue.url, attrValue.value);\n                }\n                if (attrValue.selected) {\n                    selectedValue = attrValue.value;\n                }\n            } else {\n                var $attrValue = $productContainer.find($attr + ' [data-attr-value=\"' + attrValue.value + '\"]');\n                const sizeListItemEl = $attrValue.closest('.size-list');\n                if (!attrValue.isOffline) {\n                    sizeListItemEl.removeClass(hiddenClass);\n                } else {\n                    sizeListItemEl.addClass(hiddenClass);\n                }\n                if ($attrValue.length > 0) {\n                    $attrValue.val(attrValue.url).attr('data-attr-url', attrValue.url).removeClass(notAvailable);\n                    const assistiveElement = queryFirst('.selected-assistive-text', $attrValue[0].closest('.size-list'));\n                    assistiveElement.textContent = '';\n                    const { selectedText, outOfStock } = assistiveElement.dataset;\n                    if (hasClass($attrValue[0], 'selected')) {\n                        assistiveElement.textContent += selectedText;\n                    }\n                    if (!attrValue.inStock || attrValue.forceOutOfStock) {\n                        $attrValue.addClass(notAvailable);\n                        assistiveElement.textContent += outOfStock;\n                    }\n                }\n            }\n        });\n        if (selectSizeEl && selectedValue) {\n            const optionEl = queryFirst('[data-attr-value=\"' + selectedValue + '\"]', selectSizeEl);\n            if (optionEl) {\n                optionEl.selected = true;\n            } else {\n                selectSizeEl.selectedIndex = 0;\n            }\n        }\n    }\n}\n\n/**\n * Routes the handling of attribute processing depending on whether the attribute has image\n *     swatches or not\n *\n * @param {Object} attrs - Attribute\n * @param {string} attr.id - Attribute ID\n * @param {jQuery} $productContainer - DOM element for a given product\n * @param {Object} msgs - object containing resource messages\n */\nfunction updateAttrs(attrs, $productContainer, msgs) {\n    // Currently, the only attribute type that has image swatches is Color.\n    var attrsWithSwatches = ['color'];\n\n    attrs.forEach(function (attr) {\n        if (attrsWithSwatches.indexOf(attr.id) > -1) {\n            processSwatchValues(attr, $productContainer, msgs);\n        } else {\n            processNonSwatchValues(attr, $productContainer);\n        }\n    });\n}\n\n/**\n * Updates the availability status in the Product Detail Page\n *\n * @param {Object} response - Ajax response object after an\n *                            attribute value has been [de]selected\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction updateAvailability(response, $productContainer) {\n    var availabilityValue = '';\n    var availabilityMessages = response.product.availability.messages;\n    const { isDirectlyPurchasable } = response.product;\n    const availabilityMsgEl = queryFirst('.availability-msg', $productContainer[0]);\n    if (isDirectlyPurchasable === false && availabilityMsgEl) {\n        availabilityValue = `<li><p class=\"availability-message-text\" role=\"alert\">${availabilityMsgEl.dataset.notPurchasable}</p></li>`;\n    } else if (response.product.readyToOrder) {\n        availabilityMessages.forEach(function (message) {\n            availabilityValue += `<li><p class=\"availability-message-text\" role=\"alert\">\n                ${message}\n                </p></li>`;\n        });\n    }\n\n    $($productContainer).trigger('product:updateAvailability', {\n        product: response.product,\n        $productContainer: $productContainer,\n        message: availabilityValue,\n        resources: response.resources\n    });\n}\n\n/**\n * Generates html for product attributes section\n *\n * @param {array} attributes - list of attributes\n * @return {string} - Compiled HTML\n */\nfunction getAttributesHtml(attributes) {\n    if (!attributes) {\n        return '';\n    }\n\n    var html = '';\n\n    attributes.forEach(function (attributeGroup) {\n        if (attributeGroup.ID === 'mainAttributes') {\n            attributeGroup.attributes.forEach(function (attribute) {\n                html += '<div class=\"attribute-values\">' + attribute.label + ': ' + attribute.value + '</div>';\n            });\n        }\n    });\n\n    return html;\n}\n\n/**\n * Updates DOM using post-option selection Ajax response\n *\n * @param {OptionSelectionResponse} options - Ajax response options from selecting a product option\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction updateOptions(options, $productContainer) {\n    options.forEach(function (option) {\n        var $optionEl = $productContainer.find('.product-option[data-option-id*=\"' + option.id + '\"]');\n        option.values.forEach(function (value) {\n            var valueEl = $optionEl.find('option[data-value-id*=\"' + value.id + '\"]');\n            valueEl.val(value.url);\n        });\n    });\n}\n\n/**\n * Handles the CTAs to be shown for Early Access Product\n * @param {jQuery} productContainer - DOM element for current product\n * @param {boolean} isEarlyAccessProduct - Is the product Early Access Product\n * @param {boolean} productContainerEarlyAccessIcon - Early access icon\n */\nfunction handleEarlyAccessCta(productContainer, isEarlyAccessProduct, productContainerEarlyAccessIcon) {\n    const earlyAccessLockIcon = productContainerEarlyAccessIcon || queryAll('.loyalty-early-access-lock-container', productContainer);\n    const earlyAccessWishlistIcon = productContainerEarlyAccessIcon ? queryAll('.pdp-wish-list', productContainerEarlyAccessIcon.parentElement) : queryAll('.pdp-wish-list', productContainer);\n    const earlyAccessCta = queryFirst('.loyalty-early-access-restricted', productContainer);\n    const addToCartCta = queryFirst('.add-to-cart', productContainer);\n    const earlyAccessPdpEl = queryFirst('.js-loyalty-badge', productContainer);\n    let elements;\n    if (isLoyaltyEnabled && earlyAccessCta) {\n        if (earlyAccessPdpEl) {\n            addClass([earlyAccessPdpEl], hiddenClass);\n        }\n        if (isEarlyAccessProduct) {\n            if (isLoyaltyProgramMember) {\n                addClass(earlyAccessLockIcon, HIDDEN_CLASS);\n                elements = earlyAccessWishlistIcon;\n                elements.push(addToCartCta);\n                removeClass(elements, HIDDEN_CLASS);\n            } else {\n                removeClass(earlyAccessLockIcon, HIDDEN_CLASS);\n                elements = earlyAccessWishlistIcon;\n                elements.push(addToCartCta);\n                addClass(elements, HIDDEN_CLASS);\n\n                const earlyAccessGuest = queryFirst('.early-access-guest', earlyAccessCta);\n                const earlyAccessRegistered = queryFirst('.early-access-registered', earlyAccessCta);\n                if (isLoyaltyAuthenticated) {\n                    addClass(earlyAccessGuest, HIDDEN_CLASS);\n                    removeClass(earlyAccessRegistered, HIDDEN_CLASS);\n                } else {\n                    removeClass(earlyAccessGuest, HIDDEN_CLASS);\n                    addClass(earlyAccessRegistered, HIDDEN_CLASS);\n                }\n            }\n            if (earlyAccessPdpEl) {\n                removeClass(earlyAccessPdpEl, HIDDEN_CLASS);\n            }\n        } else {\n            elements = earlyAccessWishlistIcon;\n            elements.push(addToCartCta);\n            removeClass(elements, HIDDEN_CLASS);\n            addClass(earlyAccessLockIcon, HIDDEN_CLASS);\n        }\n    }\n}\n/**\n * Dynamically creates Bootstrap carousel from response containing images\n * @param {Object[]} imgs - Array of product images, along with related information\n * @param {jQuery} $productContainer - DOM element for a given product\n * @param {boolean} isEarlyAccess - Check if the product is early access product\n * @param {string} productId - Id of the product, used for ID attribute construction\n * @param {string} videoUrl - Selected variant group video url\n */\nfunction createCarousel(imgs, $productContainer, isEarlyAccess, productId, videoUrl) {\n    const productContainerEl = $productContainer[0];\n    const carouselEls = queryAll('.js-swiper-main, .js-swiper-modal-thumbs, .js-swiper-modal-description, .js-swiper-modal', productContainerEl);\n    const mainCarousel = queryFirst('.js-swiper-main', productContainerEl);\n\n    carouselEls.forEach(carouselEl => {\n        const { imageType, cache } = carouselEl.dataset;\n        const { swiper } = carouselEl;\n        const slideEls = queryAll('.swiper-slide', carouselEl);\n        const count = imgs?.large.length || 0;\n        const galleryClasses = {\n            '0': 'm-no-images',\n            '1': 'm-single-image',\n            '2': 'm-no-controls'\n        };\n\n        removeClass(mainCarousel, 'm-no-images', 'm-single-image', 'm-no-controls');\n\n        if (count < 3) {\n            addClass(mainCarousel, galleryClasses[count]);\n        }\n\n        let cacheParam = `${cache === 'true' ? '&cache_img=true' : ''}`;\n        let slideTpl = '';\n        let slideInnerTpl = '';\n        let linkTagOpen = '';\n        let linkTagClose = '';\n        let src = '';\n\n        let updatedImages = imgs[imageType];\n        // Only in this case we need to make img obj with common structure\n        // PDP: { imageScene7: 'generidURL', srcset: '[{\"breakpoint\": \"2x\"}]' ...}\n        // PDPSet: { url: 'fullURL', srcset: 'prepairedSrcSet' ... }\n        if (imgs[imageType][0]?.imageScene7 !== undefined) {\n            updatedImages = normalizeImagesObject(imgs[imageType]);\n        }\n\n        slideEls.forEach(slideEl => {\n            slideEl.remove();\n        });\n\n        updatedImages.forEach((updatedImage, index) => {\n            if (hasClass(carouselEl, 'js-swiper-modal-description')) {\n                slideInnerTpl = updatedImage.title;\n            } else {\n                if (imageType === 'extralarge') {\n                    linkTagOpen = `<a data-toggle=\"modal\" href=\"#pdp-lightbox-modal-${productId}\" data-target=\"#pdp-lightbox-modal-${productId}\" data-index=\"${index}\">`;\n                    linkTagClose = `</a>`;\n                    src = `${updatedImage.url}${cacheParam}`;\n                } else if (imageType === 'extrasmall') {\n                    src = `${updatedImage.url}${cacheParam}`;\n                } else if (imageType === 'full') {\n                    const { image, preset } = carouselEl.dataset;\n                    src = `${updatedImage.url.replace(preset, image)}${cacheParam}`;\n                }\n\n                if (Object.keys(updatedImage.sources).length !== 0) {\n                    const sourceTags = Object.entries(updatedImage.sources)\n                        .map(([key, srcset]) => {\n                            return `<source srcset=\"${srcset}\" media=\"${updatedImage.breakpoints[key]}\">`;\n                        })\n                        .join('');\n\n                    slideInnerTpl = `<picture>\n                        ${sourceTags}\n                        <img\n                        loading=\"lazy\"\n                        src=\"${src || updatedImage.url}\"\n                        alt=\"${updatedImage.alt} image number ${index + 1}\"\n                        title=\"${updatedImage.title}\"\n                        itemprop=\"image\"/>\n                    </picture>`;\n                } else {\n                    slideInnerTpl = `<img\n                    srcset=\"${updatedImage.srcset}\"\n                    src=\"${src || updatedImage.url}\"\n                    class=\"d-block img-fluid w-100\"\n                    loading=\"lazy\"\n                    alt=\"${updatedImage.alt} image number ${index + 1}\"\n                    title=\"${updatedImage.title}\" itemprop=\"image\"\n                    />`;\n                }\n            }\n\n            slideTpl += `<div class=\"swiper-slide\">${linkTagOpen}${slideInnerTpl}${linkTagClose}</div>`;\n        });\n\n        queryFirst('.swiper-wrapper', carouselEl).innerHTML = slideTpl;\n\n        const baseVideoTemplate = queryFirst('.product-video-template');\n\n        if (videoUrl) {\n            baseVideoTemplate.innerHTML = '';\n            // eslint-disable-next-line require-jsdoc, no-inner-declarations\n            function addVideoComponent(container, poster, videoUrl) {\n                const videoWrapper = document.createElement('div');\n                videoWrapper.className = 'swiper-slide video-carousel-item';\n                videoWrapper.setAttribute('role', 'option');\n                videoWrapper.innerHTML = videoInnerContent(poster, videoUrl);\n\n                container.appendChild(videoWrapper);\n            }\n\n            addVideoComponent(baseVideoTemplate, imgs.large[0].imageScene7 + imgs.large[0].url, videoUrl);\n\n            const videoTemplate = baseVideoTemplate.cloneNode(true);\n            const templateVideoElement = queryFirst('.swiper-slide video', videoTemplate);\n            if (templateVideoElement) {\n                addClass(templateVideoElement, 'cloned-video');\n\n                if (hasClass(carouselEl, 'js-swiper-main')) {\n                    queryFirst('.swiper-wrapper', carouselEl).appendChild(queryFirst('.swiper-slide', videoTemplate));\n                    queryFirst('.swiper-slide video', carouselEl).load();\n                }\n            }\n\n            baseVideoTemplate.innerHTML = '';\n            initVideos(templateVideoElement.parentElement);\n        }\n\n        if (swiper) {\n            if (swiper.params.loop) {\n                swiper.loopCreate();\n            }\n            swiper.slideTo(0);\n            swiper.updateProgress();\n            swiper.updateSize();\n            swiper.updateSlides();\n            swiper.update();\n        }\n    });\n\n    const addToWishlistIconPdp = queryFirst('.pdp-wish-list', productContainerEl);\n    const earlyAccessPdpEl = queryFirst('.js-loyalty-badge', productContainerEl);\n    const addToCartButtonPdp = queryFirst('.pdp-container .add-to-cart', productContainerEl);\n    const pdpNonEarlyAccessLoginEl = queryFirst('.pdp-sign-in-create-account-section', productContainerEl);\n\n    if (pdpNonEarlyAccessLoginEl) {\n        const { isLoyaltyEnabled } = pdpNonEarlyAccessLoginEl.dataset;\n        if (isLoyaltyEnabled === 'true' && !isEarlyAccess) {\n            removeClass(pdpNonEarlyAccessLoginEl, hiddenClass);\n        } else {\n            addClass(pdpNonEarlyAccessLoginEl, hiddenClass);\n        }\n    }\n    if (addToCartButtonPdp) {\n        removeClass(addToCartButtonPdp, hiddenClass);\n    }\n    if (earlyAccessPdpEl) {\n        addClass([earlyAccessPdpEl], hiddenClass);\n    }\n    removeClass(addToWishlistIconPdp, hiddenClass);\n    if (isEarlyAccess) {\n        const loyaltyEarlyAccessLockContainer = queryFirst('.primary-images .loyalty-early-access-lock-container', productContainerEl);\n        if (loyaltyEarlyAccessLockContainer) {\n            addClass(loyaltyEarlyAccessLockContainer, hiddenClass);\n        }\n    }\n    handleEarlyAccessCta(productContainerEl, isEarlyAccess);\n\n    const firstImageElement = queryFirst('.swiper-wrapper .swiper-slide img.img-fluid', productContainerEl);\n    if (firstImageElement) {\n        firstImageElement.addEventListener('load', () => {\n            $body.trigger('product:imageLoad', {\n                container: productContainerEl\n            });\n        });\n    }\n}\n\n/**\n * Parses JSON from Ajax call made whenever an attribute value is [de]selected\n * @param {Object} response - response from Ajax call\n * @param {Object} response.product - Product object\n * @param {string} response.product.id - Product ID\n * @param {Object[]} response.product.variationAttributes - Product attributes\n * @param {Object[]} response.product.images - Product images\n * @param {boolean} response.product.hasRequiredAttrsSelected - Flag as to whether all required\n *     attributes have been selected.  Used partially to\n *     determine whether the Add to Cart button can be enabled\n * @param {jQuery} $productContainer - DOM element for a given product.\n */\nfunction handleVariantResponse(response, $productContainer) {\n    var isChoiceOfBonusProducts = $productContainer.parents('.choose-bonus-product-dialog').length > 0;\n    const { variationAttributes, productType, readyToOrder, bonusVariationAtrributes, isFinalSale, isDirectlyPurchasable, earlyAccess } = response.product;\n    const saleMessageEl = queryFirst('.on-sale-message', $productContainer[0]);\n    if (saleMessageEl) {\n        if (isFinalSale) {\n            removeClass(saleMessageEl, hiddenClass);\n        } else {\n            addClass(saleMessageEl, hiddenClass);\n        }\n    }\n\n    if (isChoiceOfBonusProducts) {\n        if (bonusVariationAtrributes) {\n            updateAttrs(bonusVariationAtrributes, $productContainer, response.resources);\n        }\n        if (productType === 'variant') {\n            $productContainer.data('ready-to-order', readyToOrder);\n        }\n    } else if (variationAttributes) {\n        updateAttrs(variationAttributes, $productContainer, response.resources);\n        if (isDirectlyPurchasable === false) {\n            const sizeElements = queryAll('.size-btn', $productContainer[0]);\n            addClass(sizeElements, notAvailable);\n        }\n    }\n\n    const productContainer = $productContainer[0];\n    if (isChoiceOfBonusProducts) {\n        // LP customization changes start\n        const { alt, url, srcset } = response.product.images.extrasmall[0] || {};\n        const productImageElement = queryFirst('.product-image', productContainer);\n        productImageElement.setAttribute('src', url);\n        productImageElement.setAttribute('srcset', srcset);\n        productImageElement.setAttribute('alt', alt);\n        // LP customization changes end\n    } else {\n        createCarousel(response.product.images, $productContainer, earlyAccess && earlyAccess.isEarlyAccessProduct, response.product.id);\n    }\n\n    // Updated logic here\n    const swatchNameElement = queryFirst('.selected-swatch-name', productContainer);\n    const selectedSwatch = queryFirst('.swatch-circle.selected', productContainer);\n    const selectedSwatchElement = queryFirst('.selected-swatch', productContainer);\n    let selectedSwatchName = '';\n\n    if (selectedSwatch) {\n        if (selectedSwatchElement) {\n            const { colorLabel } = selectedSwatchElement.dataset;\n            if (colorLabel) {\n                selectedSwatchName += colorLabel;\n            }\n        }\n\n        const { swatchName } = selectedSwatch.dataset;\n\n        selectedSwatchName += swatchName;\n    }\n\n    if (swatchNameElement) {\n        swatchNameElement.textContent = selectedSwatchName;\n    } else {\n        const swatchHtml = formatMessage(swatchNameTemplate.swatchNameHtml, selectedSwatchName);\n        if (selectedSwatchElement) {\n            selectedSwatchElement.innerHTML = swatchHtml;\n        }\n    }\n\n    // Update pricing\n    if (!isChoiceOfBonusProducts) {\n        let $priceSelector = $('.prices .price', $productContainer);\n        if (!$priceSelector.length) $priceSelector = $('.prices .price');\n        $priceSelector.replaceWith(response.product.price.html);\n    }\n\n    // Update promotions\n    const promotionElement = queryFirst('.promotions', productContainer);\n    if (promotionElement) {\n        promotionElement.innerHTML = response.product.promotionsHtml;\n    }\n\n    const promotionsPopover = queryFirst('.promotions-info-popover .promotions-info-popover-content');\n    $('.custom-set-detail').find('.promotions-info').popover({\n        trigger: 'click',\n        placement: 'bottom',\n        html: true,\n        content: promotionsPopover\n    });\n    $('[data-toggle=\"popover\"]')\n        .off('shown.bs.popover')\n        .on('shown.bs.popover', function (e) {\n            var target = e.target;\n            $(document).one('click', function (clickEvent) {\n                var clicked = clickEvent.target;\n                if (clicked !== target && clicked.parentElement !== target) {\n                    $(target).trigger('click');\n                }\n            });\n        });\n\n    updateAvailability(response, $productContainer);\n\n    if (isChoiceOfBonusProducts) {\n        var $selectButton = $productContainer.find('.select-bonus-product');\n        $selectButton.trigger('bonusproduct:updateSelectButton', {\n            product: response.product,\n            $productContainer: $productContainer\n        });\n    } else if ($productContainer.closest('#productSetModal').length > 0) {\n        // Enable \"Add to Cart\" button if all required attributes have been selected\n        $('button.add-to-cart-global, button.update-cart-product-global')\n            .trigger('product:updateAddToCart', {\n                product: response.product,\n                $productContainer: $productContainer\n            })\n            .trigger('product:statusUpdate', response.product);\n    }\n\n    // Update attributes\n    $productContainer.find('.main-attributes').empty().html(getAttributesHtml(response.product.attributes));\n}\n\n/**\n * Updates the quantity DOM elements post Ajax call\n * @param {UpdatedQuantity[]} quantities -\n * @param {jQuery} $productContainer - DOM container for a given product\n */\nfunction updateQuantities(quantities, $productContainer) {\n    if (!$productContainer.hasClass('.bonus-product-item')) {\n        var optionsHtml = quantities\n            .map(function (quantity) {\n                var selected = quantity.selected ? ' selected ' : '';\n                return '<option value=\"' + quantity.value + '\"  data-url=\"' + quantity.url + '\"' + selected + '>' + quantity.value + '</option>';\n            })\n            .join('');\n        getQuantitySelector($productContainer).empty().html(optionsHtml);\n    }\n}\n\n/**\n * updates the product view when a product attribute is selected or deselected or when\n *         changing quantity\n * @param {string} selectedValueUrl - the Url for the selected variation value\n * @param {jQuery} $productContainer - DOM element for current product\n * @param {Object} selectedSizeElement - DOM element for selected size button\n */\nasync function attributeSelect(selectedValueUrl, $productContainer, selectedSizeElement) {\n    if (selectedValueUrl) {\n        $body.trigger('product:beforeAttributeSelect', {\n            url: selectedValueUrl,\n            container: $productContainer\n        });\n\n        // Updated logic here\n        const $choiceOfBonusProductEl = $productContainer.closest('.choice-of-bonus-product');\n        if ($choiceOfBonusProductEl.length) {\n            $productContainer.spinner().start();\n        }\n\n        try {\n            const res = await fetch(selectedValueUrl);\n            if (!res.ok) throw new Error('response was not OK');\n            const data = await res.json();\n\n            handleVariantResponse(data, $productContainer);\n            updateOptions(data.product.options, $productContainer);\n            updateQuantities(data.product.quantities, $productContainer);\n            $body.trigger('product:afterAttributeSelect', {\n                data: data,\n                container: $productContainer,\n                selectedSizeElement\n            });\n            if ($choiceOfBonusProductEl.length) {\n                $choiceOfBonusProductEl.trigger('bonus:afterAttributeSelect');\n            }\n\n            $.spinner().stop();\n        } catch (err) {\n            console.error(`base error: ${err.message}`);\n            $.spinner().stop();\n        }\n    }\n}\n\n/**\n * add size parameter to the Product-Variation call if it is 'set-items' page\n * @param {string} selectedValueUrl - the Url for the selected variation value\n * @param {jQuery} $productContainer - DOM element for current product\n * @returns {string|boolean} url with size parameter\n */\nfunction addSizeParamForSetItems(selectedValueUrl, $productContainer) {\n    const selectedSizeElement = queryFirst('.js-set-items .size-btn.selected', $productContainer[0]);\n    if (!selectedSizeElement || !selectedValueUrl) return false;\n\n    const masterId = $productContainer[0]?.dataset.masterid;\n    const selectedSizeValue = selectedSizeElement?.dataset.attrValue;\n    if (!masterId || !selectedSizeValue) return false;\n\n    const isSizeExist = selectedValueUrl.indexOf('_size') !== -1;\n    const sizeParamName = isSizeExist ? '_size' : `dwvar_${masterId}_size`;\n    return setUrlParamValue(selectedValueUrl, sizeParamName, selectedSizeValue, isSizeExist);\n}\n\n/**\n * updates the product view when a product attribute is selected or deselected or when\n *         changing quantity\n * @param {string} selectedValueUrl - the Url for the selected variation value\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction selectColorAttribute(selectedValueUrl, $productContainer) {\n    if (selectedValueUrl) {\n        $body.trigger('product:beforeAttributeSelect', {\n            url: selectedValueUrl,\n            container: $productContainer\n        });\n\n        // Updated logic here\n        const $choiceOfBonusProductEl = $productContainer.closest('.choice-of-bonus-product');\n        if ($choiceOfBonusProductEl.length) {\n            $productContainer.spinner().start();\n        }\n\n        // add 'size' parameter if it is 'set-items' page\n        selectedValueUrl = addSizeParamForSetItems(selectedValueUrl, $productContainer) || selectedValueUrl;\n\n        getJSON(\n            selectedValueUrl,\n            'GET',\n            null,\n            data => {\n                const { options, quantities, uuid } = data.product;\n                handleVariantResponse(data, $productContainer);\n                updateOptions(options, $productContainer);\n                updateQuantities(quantities, $productContainer, uuid);\n                const selectedSizeElement = queryFirst('.size-btn.selected', $productContainer[0]);\n                $body.trigger('product:afterAttributeSelect', {\n                    data: data,\n                    container: $productContainer,\n                    selectedSizeElement\n                });\n                if ($choiceOfBonusProductEl.length) {\n                    const sizeEl = queryFirst('.select-size', $choiceOfBonusProductEl[0]);\n                    if (sizeEl) sizeEl.selectedIndex = 0;\n                    $choiceOfBonusProductEl.trigger('bonus:afterAttributeSelect');\n                }\n                const swatchContainer = queryFirst('.color-container', $productContainer[0]);\n                const assistiveElements = queryAll('.selected-assistive-text', swatchContainer);\n                const selectedSwatchElement = queryFirst('.swatch-circle.selected', $productContainer[0]);\n                const assistiveTextElement = queryFirst('.selected-assistive-text', selectedSwatchElement.closest('.color-list'));\n                assistiveElements.forEach(eachElement => {\n                    eachElement.textContent = '';\n                });\n                assistiveTextElement.textContent = assistiveTextElement.dataset.selectedText;\n            },\n            () => {\n                $.spinner().stop();\n            }\n        );\n    }\n}\n\n/**\n * Process attribute values associated with an attribute that does not have image swatches\n *\n * @param {Object} data - Shop the print data\n * @param {Object} productContainer - DOM container for a given product\n */\nfunction updateShopThePrint(data, productContainer) {\n    const shopThePrintElement = queryFirst('.shop-the-print', productContainer);\n    if (shopThePrintElement) {\n        if (data) {\n            shopThePrintElement.outerHTML = data;\n        } else {\n            shopThePrintElement.outerHTML = '<div class=\"shop-the-print\"></div>';\n        }\n    }\n}\n\n/**\n * Process attribute values associated with an attribute that does not have image swatches\n *\n * @param {int} price - product sale price\n * @param {int} standardPrice - product standard price\n * @param {Object} productContainer - DOM container for a given product\n * @param {int} percentOff - percent off value\n */\nfunction updateProductPrice(price, standardPrice, productContainer, percentOff) {\n    const priceTemplate = document.getElementById('price-template').cloneNode(true);\n    const priceSection = queryFirst('.prices .price', productContainer);\n    const buybarPriceSection = queryFirst('.pdp-buybar-price .price');\n    const priceContainer = queryFirst('.price-section', priceTemplate);\n    const strikeThroughContainer = queryFirst('.strike-through-section', priceContainer);\n    const priceElement = queryFirst('.strike-through-price', strikeThroughContainer);\n    const salesContainer = queryFirst('.sales', priceContainer);\n    const salesPriceElement = queryFirst('.price-value', salesContainer);\n    const percentOffContainer = percentOff && queryFirst('.percent-off', priceContainer);\n    let fixedPrice = price;\n    let fixedStandardPrice = standardPrice;\n\n    // Fix decimal places for non-whole-number prices\n    if (price % 1 !== 0) {\n        fixedPrice = price.toFixed(2);\n    }\n    if (standardPrice % 1 !== 0) {\n        fixedStandardPrice = standardPrice.toFixed(2);\n    }\n\n    removeClass(strikeThroughContainer, hiddenClass);\n    priceElement.textContent = `$${fixedStandardPrice}`;\n    salesPriceElement.textContent = `$${fixedPrice}`;\n    if (price === standardPrice) {\n        addClass(strikeThroughContainer, hiddenClass);\n    }\n\n    // add/change percent off value on PDP\n    const template = percentOffContainer && percentOffContainer.dataset.template;\n    if (percentOffContainer && percentOff && template) {\n        percentOffContainer.textContent = template.replace('{0}', percentOff);\n        removeClass(percentOffContainer.parentElement, hiddenClass);\n    } else if (percentOffContainer) {\n        addClass(percentOffContainer.parentElement, hiddenClass);\n    }\n\n    priceSection.innerHTML = priceTemplate.innerHTML;\n    buybarPriceSection.innerHTML = priceTemplate.innerHTML;\n}\n\n/**\n * Process attribute values associated with an attribute that does not have image swatches\n *\n * @param {Object} sizes - sizes object\n * @param {Object} productContainer - DOM container for a given product\n * @param {Object} variantsList - Variations list data\n */\nfunction updateSizeElements(sizes, productContainer, variantsList) {\n    const masterId = productContainer.dataset.masterid;\n    const isQuickView = hasClass(productContainer, 'cached-quick-view');\n    const { variants } = isQuickView ? window.quickviewProductInfo.productInventory : window.productInventory[masterId];\n    const sizeContainer = queryFirst('.size-container', productContainer);\n\n    if (!sizeContainer) return;\n\n    const { selectedText, outOfStock, label, describedby, attrValue } = sizeContainer.dataset;\n    let sizeButtonHtml = '';\n\n    variantsList.forEach((eachVariant, index) => {\n        const eachSize = sizes[eachVariant];\n        const sizeElement = queryFirst('[data-attr=\"size\"] [data-attr-value=\"' + eachVariant + '\"]', productContainer);\n        const sizeId = eachSize.ID;\n        const { forceOutOfStock } = eachSize;\n        const inventoryData = variants[sizeId];\n        const variantData = {\n            value: eachVariant,\n            forceOutOfStock,\n            selected: sizeElement ? hasClass(sizeElement, 'selected') : false,\n            inStock: inventoryData.availabilityStatus !== NOT_AVAILABLE_STATUS && !inventoryData.isBackOrder,\n            sizeId: sizeId\n        };\n        const ariaLabelValue = label + ' ' + attrValue + ' ' + eachVariant;\n        sizeButtonHtml += sizeButtonTemplate(variantData, ariaLabelValue, describedby + eachVariant + index, selectedText, outOfStock, variantsList.length);\n    });\n    remove(queryAll('.size-list', sizeContainer));\n    sizeButtonHtml += sizeContainer.innerHTML;\n    sizeContainer.innerHTML = sizeButtonHtml;\n}\n\n/**\n * Function to update Ways to wear content based on the response\n * @param {string} groupId - selected variation group id\n * @param {string} variationUrl - url to fetch the content\n * @param {HTMLElement} waysToWearContainer - container with recommendations\n */\nfunction updateContentModules(groupId, variationUrl, waysToWearContainer, entry) {\n    if (isContentModulesFetched || !entry.isIntersecting) {\n        return;\n    }\n\n    $(waysToWearContainer).spinner().start();\n    $.ajax({\n        url: variationUrl,\n        method: 'post',\n        data: {\n            variationGroup: groupId\n        }\n    })\n        .done(function (response) {\n            if (response) {\n                waysToWearContainer.innerHTML = response;\n            } else {\n                waysToWearContainer.innerHTML = '';\n            }\n            $body.trigger('search:updateProducts');\n        })\n        .always(function () {\n            $(waysToWearContainer).spinner().stop();\n            isContentModulesFetched = true;\n        });\n\n    destroyContentModulesIntersectionObserver(waysToWearContainer);\n}\n\n/**\n * Fetch Ways to Wear components only when user scroll near their position\n * @param {string} groupId - selected variation group id\n * @param {string} variationUrl - url to fetch the content\n */\nfunction dynamicallyFetchContentModules(groupId, variationUrl) {\n    const waysToWearContainer = queryFirst('.ways-to-wear');\n    if (!waysToWearContainer) {\n        return;\n    }\n\n    observer = new IntersectionObserver(([entry]) => updateContentModules(groupId, variationUrl, waysToWearContainer, entry), { rootMargin: '500px', threshold: 0 });\n    observer.observe(waysToWearContainer);\n}\n\n/**\n * Destroy Intersection Observer of Ways to Wear components since it needed only once\n * @param {HTMLElement} waysToWearContainer - container with recommendations\n */\nfunction destroyContentModulesIntersectionObserver(waysToWearContainer) {\n    if (observer instanceof IntersectionObserver) {\n        observer.unobserve(waysToWearContainer);\n        observer = null;\n    }\n}\n\n/**\n * updates image urls and presets by appending the scene7 url\n * @param {Object} images - images array to be updated\n * @returns {Object} - updated images array\n */\nfunction normalizeImagesObject(images) {\n    return images.map(imageObj => {\n        const srcsetPresets = JSON.parse(imageObj.srcset);\n        const mediaSources = JSON.parse(imageObj.sources);\n        const breakpoints = JSON.parse(imageObj.breakpoints);\n        let srcsetString = [];\n        let sources = {};\n\n        mediaSources.forEach(source => {\n            Object.keys(source).forEach(breakpointKey => {\n                if (!breakpoints[breakpointKey]) {\n                    return;\n                }\n                const resolutions = source[breakpointKey];\n                if (!resolutions || !Array.isArray(resolutions)) {\n                    return;\n                }\n                const sourceString = resolutions\n                    .map(resolution => {\n                        const [scale, value] = Object.entries(resolution)[0];\n                        return `${imageObj.imageScene7}?${value}${scale === '1x' ? '' : ` ${scale}`}`;\n                    })\n                    .join(', ');\n\n                sources[breakpointKey] = sourceString;\n            });\n        });\n\n        srcsetPresets.forEach(function (source) {\n            if (Object.prototype.hasOwnProperty.call(source, 'all')) {\n                source.all.forEach(function (item) {\n                    Object.entries(item).forEach(function ([scale, value]) {\n                        srcsetString.push(`${imageObj.imageScene7}?${value}${scale === '1x' ? '' : ` ${scale}`}`);\n                    });\n                });\n            }\n        });\n\n        return {\n            alt: imageObj.alt,\n            url: imageObj.imageScene7 + imageObj.url,\n            srcset: srcsetString.join(', '),\n            title: imageObj.title,\n            sources: sources,\n            breakpoints\n        };\n    });\n}\n\n/**\n * updates the product view when a product attribute is selected or deselected or when\n *         changing quantity\n * @param {Object} currentElement - selected color element\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction updateProductDetails(currentElement, $productContainer) {\n    const { promotionMessageTmpl } = require('../templates').productDetail;\n    const { initPopoverPromotions, initPopoverClose } = require('../popover');\n    const elementData = currentElement.dataset;\n    const variantGroupId = elementData.attrValue;\n    const productContainer = $productContainer[0];\n    const swatchNameElement = queryFirst('.selected-swatch-name', productContainer);\n    const swatchContainer = queryFirst('.color-container', productContainer);\n    const assistiveElements = queryAll('.selected-assistive-text', swatchContainer);\n    const assistiveTextElement = queryFirst('.selected-assistive-text', currentElement.closest('.color-list'));\n    const monogramBtn = queryFirst('.pdp-monogram-btn', productContainer);\n    const masterId = productContainer.dataset.masterid;\n    const productInfo = window.productInfo[masterId];\n    const { groupId, sizes, images, shopThePrint, price, standardPrice, percentOff, videoUrl, variantsList, mgFlag, mgLocs, hasWaysToWear, isFinalSale, isDirectlyPurchasable, earlyAccess, promotions } = productInfo.variants[variantGroupId];\n    productContainer.dataset.wishlistId = groupId;\n    setWishlistProductId(groupId, productContainer);\n    const colorElements = queryAll('.color-attribute .swatch-circle', productContainer);\n    const { attrDisplayvalue, customPageTitle, pageTitle, includeLillyColor, lillyColorName, customPageDescription, pageDescription } = elementData;\n    const titleElement = queryFirst('.meta-page-title');\n    const descriptionElement = queryFirst('.meta-page-description');\n    const waysToWearEl = queryFirst('.ways-to-wear', productContainer);\n    const variationGridUrl = waysToWearEl.dataset.variationGridUrl;\n    const earlyAccessBadgeTextEl = queryFirst('.js-loyalty-badge .js-loyalty-badge-text', productContainer);\n    const earlyAccessText = earlyAccessBadgeTextEl.textContent;\n    // update Marketing Analytics trackWishlist event\n    let marketingCloudPageAnalytics = [{ item: groupId }];\n    trackPageView(marketingCloudPageAnalytics);\n    // Updated logic here\n    if (swatchNameElement) {\n        const selectedSwatchElement = queryFirst('.selected-swatch', productContainer);\n        const colorlabel = selectedSwatchElement.dataset.colorLabel;\n        swatchNameElement.textContent = colorlabel + attrDisplayvalue;\n    } else {\n        const swatchHtml = formatMessage(swatchNameTemplate.swatchNameHtml, attrDisplayvalue);\n        queryFirst('.selected-swatch', productContainer).innerHTML = swatchHtml;\n    }\n\n    if (customPageTitle && titleElement) {\n        titleElement.textContent = customPageTitle;\n    } else if (pageTitle && titleElement) {\n        titleElement.textContent = pageTitle;\n    }\n    const longDescriptionElement = queryFirst('.long-description-container .long-description', productContainer);\n    if (longDescriptionElement) {\n        const { longDescription } = longDescriptionElement.dataset;\n        let description;\n        if (includeLillyColor !== 'false' && lillyColorName) {\n            description = tokenize(longDescription, { lillyColor: lillyColorName }, '{{', '}}');\n        } else {\n            description = tokenize(longDescription, { lillyColor: '' }, '<li>{{', '}}</li>');\n        }\n        longDescriptionElement.innerHTML = description;\n    }\n    if (customPageDescription && descriptionElement) {\n        descriptionElement.content = customPageDescription;\n    } else if (pageDescription && descriptionElement) {\n        descriptionElement.content = pageDescription;\n    }\n\n    removeClass(colorElements, 'selected');\n    addClass(queryFirst('.swatch-circle', currentElement), 'selected');\n    queryFirst('.product-id', productContainer).textContent = masterId;\n    setAttribute(queryFirst('.modal.js-pdp-lightbox-modal', productContainer), 'id', 'pdp-lightbox-modal-' + currentElement.dataset.attrValue);\n\n    assistiveElements.forEach(eachElement => {\n        eachElement.textContent = '';\n    });\n\n    assistiveTextElement.textContent = assistiveTextElement.dataset.selectedText;\n\n    if (mgFlag && mgLocs && mgLocs.length > 0) {\n        removeClass(monogramBtn, hiddenClass);\n    } else {\n        addClass(monogramBtn, hiddenClass);\n    }\n\n    if (hasWaysToWear) {\n        isContentModulesFetched = false;\n        dynamicallyFetchContentModules(groupId, variationGridUrl);\n    } else {\n        waysToWearEl.innerHTML = '';\n    }\n    updateSizeElements(sizes, productContainer, variantsList);\n\n    $body.trigger('product:updateStoreInventory', {\n        productContainer\n    });\n    if (!isDirectlyPurchasable) {\n        const sizeElements = queryAll('.size-btn', productContainer);\n        addClass(sizeElements, notAvailable);\n    }\n    updateShopThePrint(shopThePrint, productContainer);\n    updateProductPrice(price, standardPrice, productContainer, percentOff);\n\n    const productFinalSaleMessage = queryFirst('.on-sale-message', productContainer);\n    const productFreeReturnsMessage = queryFirst('.pdp-header-promo');\n    const percentOffContainer = percentOff && queryFirst('.percent-off', productContainer);\n\n    if (productFinalSaleMessage) {\n        if (isFinalSale) {\n            removeClass(productFinalSaleMessage, hiddenClass);\n            addClass(productFreeReturnsMessage, 'd-none');\n            if (percentOff) addClass(percentOffContainer.parentElement, hiddenClass);\n        } else {\n            addClass(productFinalSaleMessage, hiddenClass);\n            removeClass(productFreeReturnsMessage, 'd-none');\n        }\n    }\n\n    const ssSizeElement = queryFirst('.size-btn.selected', productContainer);\n\n    if (!ssSizeElement) {\n        $('.availability-msg', $productContainer).empty();\n        removeClass(queryFirst('.pdp-attribute-name', productContainer), 'm-error');\n        // update promotion messages display for selected color (size not selected yet here)\n        let promoBlockMsg = queryFirst('.promo-block-messages', productContainer);\n        if (promoBlockMsg) {\n            const promoWithSheet = queryFirst('.js-promotions-with-sheet', productContainer);\n            if (promoWithSheet) promoBlockMsg = promoWithSheet;\n            promoBlockMsg.innerHTML = promotions\n                ? promotions\n                      .filter(promotion => promotion.calloutMsg)\n                      .map((promotion, promotionIdx) => {\n                          return promotionMessageTmpl(promotion.calloutMsg, promoWithSheet ? promotion.detailsFromAsset : promotion.details, promotionIdx);\n                      })\n                      .join('')\n                : '';\n        }\n        // pick new promotion popover elements\n        initPopoverPromotions();\n        initPopoverClose();\n    }\n\n    const isEarlyAccessItem = isEarlyAccessElement(earlyAccess);\n\n    createCarousel(images, $productContainer, isEarlyAccessItem, variantGroupId, videoUrl);\n    $body.trigger('product:afterAttributeChange', {\n        container: $productContainer,\n        variantGroupId,\n        groupId\n    });\n    $body.trigger('product:handleImageZoom');\n    const wishlistButton = queryFirst('.add-to-wish-list', productContainer);\n    if (wishlistButton && hasClass(wishlistButton, 'added-to-wish-list')) {\n        removeClass(wishlistButton, 'added-to-wish-list');\n        wishlistButton.disabled = false;\n        const assistiveText = wishlistButton.getAttribute('data-assistive-text');\n        wishlistButton.setAttribute('aria-label', assistiveText);\n    }\n    // Updated logic here\n    const swatchParam = `?dwvar_${masterId}_color`;\n    const queryParams = location.search;\n    let UpdatedParams = `${swatchParam}=${variantGroupId}`;\n    if (queryParams) {\n        UpdatedParams = queryParams\n            .split('&')\n            .map(eachParam => {\n                if (eachParam.indexOf(swatchParam) > -1) {\n                    return `${swatchParam}=${variantGroupId}`;\n                }\n                return eachParam;\n            })\n            .join('&');\n    }\n    history.replaceState({ variantGroupId }, document.title, UpdatedParams);\n}\n\n/**\n * updates the quick view when a product attribute is selected or deselected or when\n *         changing quantity\n * @param {Object} currentElement - selected color element\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction updateQuickViewDetails(currentElement, $productContainer) {\n    const elementData = currentElement.dataset;\n    const variantGroupId = elementData.attrValue;\n    const productContainer = $productContainer[0];\n    const swatchNameElement = queryFirst('.selected-swatch-name', productContainer);\n    const swatchContainer = queryFirst('.color-container', productContainer);\n    const assistiveElements = queryAll('.selected-assistive-text', swatchContainer);\n    const assistiveTextElement = queryFirst('.selected-assistive-text', currentElement.closest('.color-list'));\n    const quickViewInfo = window.quickviewProductInfo;\n    const { productInfo } = quickViewInfo;\n    const { groupId, sizes, images, price, standardPrice, variantsList, isDirectlyPurchasable, pdpBreadCrumbs, earlyAccess } = productInfo.variants[variantGroupId];\n    productContainer.dataset.wishlistId = groupId;\n    setWishlistProductId(groupId, productContainer);\n    handleEarlyAccessCta(productContainer, earlyAccess && earlyAccess.isEarlyAccessProduct);\n    const colorElements = queryAll('.color-attribute .swatch-circle', productContainer);\n    const { attrDisplayvalue } = elementData;\n    // Updated logic here\n    if (swatchNameElement) {\n        swatchNameElement.textContent = attrDisplayvalue;\n    } else {\n        const swatchHtml = formatMessage(swatchNameTemplate.swatchNameHtml, attrDisplayvalue);\n        queryFirst('.selected-swatch', productContainer).innerHTML = swatchHtml;\n    }\n    removeClass(colorElements, 'selected');\n    addClass(queryFirst('.swatch-circle', currentElement), 'selected');\n\n    assistiveElements.forEach(eachElement => {\n        eachElement.textContent = '';\n    });\n\n    assistiveTextElement.textContent = assistiveTextElement.dataset.selectedText;\n\n    updateSizeElements(sizes, productContainer, variantsList);\n    if (!isDirectlyPurchasable) {\n        const sizeElements = queryAll('.size-btn', productContainer);\n        addClass(sizeElements, notAvailable);\n    }\n\n    updateProductPrice(price, standardPrice, productContainer);\n    const ssSizeElement = queryFirst('.size-btn.selected', productContainer);\n\n    if (!ssSizeElement) {\n        $('.availability-msg', $productContainer).empty();\n        removeClass(queryFirst('.pdp-attribute-name', productContainer), 'm-error');\n    }\n\n    const isEarlyAccessItem = isEarlyAccessElement(earlyAccess);\n    createCarousel(images, $productContainer, isEarlyAccessItem, variantGroupId);\n    $body.trigger('product:quickViewAttributeChange', {\n        container: $productContainer,\n        variantGroupId,\n        groupId,\n        productContainer,\n        monetateData: {\n            pdpBreadCrumbs\n        }\n    });\n}\n\n/**\n * Retrieves url to use when adding a product to the cart\n *\n * @return {string} - The provided URL to use when adding a product to the cart\n */\nfunction getAddToCartUrl() {\n    return $('.add-to-cart-url').val();\n}\n\n/**\n * Parses the html for a modal window\n * @param {string} html - representing the body and footer of the modal window\n *\n * @return {Object} - Object with properties body and footer.\n */\nfunction parseHtml(html) {\n    const $html = $('<div>').append($.parseHTML(html));\n\n    const body = $html.find('.choose-gwp-sheet-gift');\n    const selectedProducts = $html.find('.selected-products-container');\n    const footer = $html.find('.modal-footer');\n\n    return {\n        body,\n        footer,\n        selectedProducts\n    };\n}\n\n/**\n * Function to update GWP elements on swatch or size change\n */\nfunction updateGwpElements() {\n    $('.choice-of-bonus-product').on('bonus:afterAttributeSelect', function () {\n        const productDialog = queryFirst('.choose-bonus-product-dialog');\n        const accordionContainer = this.closest('.choose-gwp-sheet-gift', productDialog);\n        const bonusAccordionElements = queryAll('.choose-gwp-sheet-gift', productDialog);\n        const addToCart = queryFirst('.add-bonus-products', productDialog);\n        const sizeEl = queryFirst('.size-selection', this);\n        const selectedSize = queryFirst('.size-btn.selected', sizeEl);\n        const isOneSize = queryFirst('.selected-size', sizeEl);\n        const isSizeSelected = !!isOneSize || (sizeEl ? !!selectedSize : true);\n        const selectedSwatch = queryFirst('.color-attribute .swatch-circle.selected', this);\n        const isSelectedSizeUnavailable = hasClass(selectedSize, notAvailable);\n\n        if (isSelectedSizeUnavailable) {\n            addClass(sizeEl, notAvailable);\n        } else {\n            removeClass(sizeEl, notAvailable);\n        }\n\n        let isEnabled = true;\n        const maxItems = parseInt(accordionContainer.dataset.maxItems, 10);\n        const selectedItemsCount = queryAll('.select-bonus-product:checked', accordionContainer).length;\n\n        if (selectedItemsCount < maxItems) {\n            isEnabled = false;\n        }\n\n        if (isEnabled && isSizeSelected && !!selectedSwatch && !isSelectedSizeUnavailable) {\n            addClass(accordionContainer, readyClass);\n        } else {\n            isEnabled = false;\n            removeClass(accordionContainer, readyClass);\n        }\n\n        const validProducts = queryAll('.choose-gwp-sheet-gift.ready-to-add', productDialog);\n\n        addToCart.disabled = !isEnabled || hasClass(addToCart, notAvailable) || bonusAccordionElements.length !== validProducts.length;\n    });\n}\n\n/**\n * Retrieves url to use when adding a product to the cart\n *\n * @param {Object} data - data object used to fill in dynamic portions of the html\n */\nasync function chooseBonusProducts(data) {\n    const $spinner = $('.choose-bonus-product-dialog').spinner();\n    $spinner.start();\n\n    var bonusUrl;\n    if (data.bonusChoiceRuleBased) {\n        bonusUrl = data.showProductsUrlRuleBased;\n    } else {\n        bonusUrl = data.showProductsUrlListBased;\n    }\n\n    const { maxBonusItems, addToCartUrl, uuid, pliUUID, pageSize, showProductsUrlRuleBased, bonusChoiceRuleBased, bonusDiscountLineItems } = data;\n    $('.choose-bonus-product-dialog').attr({\n        'data-total-qty': maxBonusItems,\n        'data-addToCartUrl': addToCartUrl,\n        'data-UUID': uuid,\n        'data-pliUUID': pliUUID,\n        'data-pageStart': 0,\n        'data-pageSize': pageSize,\n        'data-moreURL': showProductsUrlRuleBased,\n        'data-bonusChoiceRuleBased': bonusChoiceRuleBased,\n        'data-bonus-items': JSON.stringify(bonusDiscountLineItems)\n    });\n\n    const sheetHeaderText = queryFirst('.choose-gwp-sheet-subtitle', gwpDialog);\n    if (sheetHeaderText) sheetHeaderText.textContent = data.labels.selectprods;\n\n    try {\n        const res = await fetch(bonusUrl);\n        if (!res.ok) throw new Error('response was not OK');\n        const data = await res.json();\n\n        const parsedHtml = parseHtml(data.renderedTemplate);\n        const enterMessage = queryFirst('.enter-message', gwpDialog);\n\n        if (enterMessage) enterMessage.textContent = data.enterDialogMessage;\n        $gwpDialog.find('.choose-gwp-sheet-select').html(parsedHtml.body);\n        $gwpDialog.find('.choose-gwp-sheet-footer-submit, .selected-products-container').remove();\n        $gwpDialog.find('.choose-gwp-sheet-footer').append(parsedHtml.footer.removeClass('modal-footer').addClass('choose-gwp-sheet-footer-submit'));\n        $(parsedHtml.selectedProducts).insertAfter($gwpDialog.find('.choose-gwp-sheet-subtitle'));\n        // LP custom changes start\n        const { selectedBonusProducts } = data;\n        if ((selectedBonusProducts || []).length) {\n            const modalDialog = queryFirst('.choose-bonus-product-dialog');\n            let selectedProductsCount = 0;\n            selectedBonusProducts.forEach(eachProductList => {\n                if (eachProductList.length) {\n                    const bonusAccordionContainer = queryFirst(`.choose-gwp-sheet-gift[data-uuid=\"${eachProductList[0].uuid}\"]`, modalDialog);\n                    const maxCount = parseInt(bonusAccordionContainer.dataset.maxItems, 10);\n                    const productListLength = eachProductList.length;\n                    if (maxCount === productListLength) {\n                        addClass(bonusAccordionContainer, 'selected');\n                        addClass(bonusAccordionContainer, readyClass);\n                    }\n                    const bonusItemCount = queryFirst('.bonus-item-count span', bonusAccordionContainer);\n                    if (bonusItemCount) bonusItemCount.textContent = productListLength;\n                    selectedProductsCount += productListLength;\n                    eachProductList.forEach(eachProduct => {\n                        const selectedProduct = queryFirst(`.choice-of-bonus-product[data-pid=\"${eachProduct.pid}\"][data-uuid=\"${eachProduct.uuid}\"]`);\n                        const selectBonusCheckbox = queryFirst('.select-bonus-product', selectedProduct);\n\n                        if (selectBonusCheckbox) {\n                            selectBonusCheckbox.checked = true;\n                        }\n\n                        addClass(selectedProduct, selectedProductClass);\n                    });\n                }\n            });\n            const addToCart = queryFirst('.add-bonus-products', modalDialog);\n            addToCart.disabled = maxBonusItems !== selectedProductsCount;\n        }\n\n        // Default all size dropdowns that aren't selected products\n        $('.bonus-product-item:not(.selected-product) .select-size').each(function () {\n            this.selectedIndex = 0;\n        });\n\n        updateGwpElements();\n        // LP custom changes end\n        $gwpDialog.modal('show');\n        $spinner().stop();\n    } catch (err) {\n        console.error(`choose gwp error: ${err.message}`);\n        $spinner.stop();\n    }\n}\n\n/**\n * Updates the Mini-Cart quantity value after the customer has pressed the \"Add to Cart\" button\n * @param {string} response - ajax response from clicking the add to cart button\n */\nfunction handlePostCartAdd(response) {\n    $('.minicart').trigger('count:update', response);\n    if (!response.error) {\n        return;\n    }\n\n    if (response.displayModal) {\n        let addToCartWarningDialog = queryFirst('#add-to-cart-warning-dialog');\n\n        if (!addToCartWarningDialog) {\n            const isOnCartPage = window.location.pathname === '/cart/';\n            const fragment = renderFragment(\n                dialogTemplate({\n                    buttons: isOnCartPage ? [{ text: 'OK', primary: true }] : [{ text: 'Close' }, { text: 'Review Tote', primary: true, link: response.redirectLink }],\n                    modalContentHeading: response.messageHeading,\n                    modalContentBody: isOnCartPage ? response.messageBodyOnCart : response.messageBodyOffCart,\n                    id: 'add-to-cart-warning-dialog'\n                })\n            );\n\n            document.body.appendChild(fragment);\n            addToCartWarningDialog = queryFirst('#add-to-cart-warning-dialog');\n        }\n\n        $(addToCartWarningDialog).modal('show');\n    } else {\n        var messageType = response.error ? 'alert-danger' : 'alert-success';\n        // show add to cart toast\n        $('.add-to-cart-messages').remove();\n        if ($('.add-to-cart-messages').length === 0) {\n            $('.main-header').append('<div class=\"add-to-cart-messages\"></div>');\n        }\n\n        $('.add-to-cart-messages').append('<div class=\"alert ' + messageType + ' add-to-basket-alert text-center\" role=\"alert\">' + response.message + '</div>');\n\n        setTimeout(function () {\n            $('.add-to-basket-alert').remove();\n        }, 5000);\n    }\n}\n\n/**\n * Retrieves the bundle product item ID's for the Controller to replace bundle master product\n * items with their selected variants\n *\n * @return {string[]} - List of selected bundle product item ID's\n */\nfunction getChildProducts() {\n    var childProducts = [];\n    $('.bundle-item').each(function () {\n        childProducts.push({\n            pid: $(this).find('.product-id').text(),\n            quantity: parseInt($(this).find('label.quantity').data('quantity'), 10)\n        });\n    });\n\n    return childProducts.length ? JSON.stringify(childProducts) : [];\n}\n\n/**\n * Retrieve product options\n *\n * @param {jQuery} $productContainer - DOM element for current product\n * @return {string} - Product options and their selected values\n */\nfunction getOptions($productContainer) {\n    var options = $productContainer\n        .find('.product-option')\n        .map(function () {\n            var $elOption = $(this).find('.options-select');\n            var urlValue = $elOption.val();\n            var selectedValueId = $elOption.find('option[value=\"' + urlValue + '\"]').data('value-id');\n            return {\n                optionId: $(this).data('option-id'),\n                selectedValueId: selectedValueId\n            };\n        })\n        .toArray();\n\n    return JSON.stringify(options);\n}\n\nexport default {\n    methods: {\n        editBonusProducts: function (data) {\n            chooseBonusProducts(data);\n        }\n    },\n    attributeSelect,\n    updateProductDetails,\n    updateImageDetails: normalizeImagesObject,\n    focusChooseBonusProductModal: function () {\n        $gwpDialog.on('shown.bs.modal', () => {\n            $gwpDialog.siblings().attr('aria-hidden', 'true');\n            $gwpDialog.attr('aria-hidden', 'false');\n            $gwpDialog.find('.close').trigger('focus');\n\n            const sheet = queryFirst('.choose-bonus-product-dialog', gwpDialog);\n            sheet?.setAttribute('aria-hidden', 'false');\n        });\n    },\n\n    onClosingChooseBonusProductModal: function () {\n        $gwpDialog.on('hidden.bs.modal', () => {\n            $gwpDialog.siblings().attr('aria-hidden', 'false');\n\n            const sheet = queryFirst('.choose-bonus-product-dialog', gwpDialog);\n            sheet?.setAttribute('aria-hidden', 'false');\n            removeClass(sheet, 'selected');\n        });\n    },\n\n    trapChooseBonusProductModalFocus: function () {\n        $body.on('keydown', '#chooseBonusProductModal', function (e) {\n            var focusParams = {\n                event: e,\n                containerSelector: '#chooseBonusProductModal',\n                firstElementSelector: '.close',\n                lastElementSelector: '.add-bonus-products'\n            };\n            focusHelper.setTabNextFocus(focusParams);\n        });\n    },\n\n    colorAttribute: function () {\n        $(document).on('click', '[data-attr=\"color\"] button.color-attribute', function (e) {\n            e.preventDefault();\n            const productDetailContainer = queryFirst(PRODUCT_DETAIL_CONTAINER_SELECTOR);\n\n            if ($(this).attr('disabled') || hasClass(queryFirst('.swatch-circle', this), 'selected')) {\n                return;\n            }\n            var $productContainer = $(this).closest('.set-items .product-detail, .choose-bonus-product-modal .product-detail, .gift-card-main, .product-quickview');\n            if ($productContainer.hasClass('cached-quick-view')) {\n                updateQuickViewDetails(this, $productContainer);\n            } else if (!$productContainer.length) {\n                $productContainer = $(this).closest('.product-detail');\n                updateProductDetails(this, $productContainer);\n            } else {\n                selectColorAttribute($(this).attr('data-url'), $productContainer);\n            }\n            $body.trigger('swatchChangeEvent', this);\n            $body.trigger('search:updateProducts');\n            updateVisibilityOfLowInventoryMsg(productDetailContainer);\n        });\n    },\n\n    renderSizeElements: function () {\n        const swatchEls = queryAll('.pdp-container:not(.gift-card-main) button.color-attribute .swatch-circle.selected, .product-set-item button.color-attribute .swatch-circle.selected');\n\n        swatchEls.forEach(swatchEl => {\n            if (swatchEl) {\n                const productContainer = swatchEl.closest('.pdp-container, .product-set-item');\n                const selectedSizeEl = queryFirst('.size-btn.selected', productContainer);\n\n                if (!selectedSizeEl) {\n                    const selectedSwtachBtn = swatchEl.parentElement;\n                    const variantGroupId = selectedSwtachBtn.dataset.attrValue;\n                    const masterId = productContainer.dataset.masterid;\n                    const productInfo = window.productInfo[masterId];\n                    const { sizes, variantsList, isDirectlyPurchasable, wishlistDisabled, isFinalSale } = productInfo.variants[variantGroupId];\n\n                    updateSizeElements(sizes, productContainer, variantsList);\n                    const sizeElements = queryAll('.size-btn', productContainer);\n                    if (!isDirectlyPurchasable) {\n                        addClass(sizeElements, notAvailable);\n                    }\n                    if (wishlistDisabled || !isDirectlyPurchasable || isFinalSale) {\n                        showStrikeHearts(productContainer);\n                    }\n\n                    // select size if it is 'one-size' product AND 'set-items' page\n                    if (sizeElements && sizeElements.length === 1 && hasClass(productContainer, 'js-product-set-item')) {\n                        sizeElements[0].click();\n                    }\n                }\n\n                let savedStoreId = getNestedValue(window, 'lillyUtils.shippingPreferencesConfig.storeId') || EMPTY_STRING;\n                let preferredStoreId = getNestedValue(window, 'lillyUtils.shippingPreferencesConfig.preferredStoreId') || EMPTY_STRING;\n                const storeId = savedStoreId && savedStoreId !== 'null' ? savedStoreId : preferredStoreId;\n\n                $body.trigger('product:updateStoreInventory', {\n                    productContainer: productContainer,\n                    storeId\n                });\n            }\n        });\n    },\n\n    selectAttribute: function () {\n        $(document).on('change', 'select[class*=\"select-\"], .options-select', function (e) {\n            if (!e.target.closest('.fp-root')) {\n                e.preventDefault();\n                var $productContainer = $(this).closest('.set-item');\n                if (!$productContainer.length) {\n                    $productContainer = $(this).closest('.product-detail');\n                }\n                attributeSelect(e.currentTarget.value, $productContainer);\n            }\n        });\n    },\n\n    availability: function () {\n        $(document).on('change', '.quantity-select', function (e) {\n            e.preventDefault();\n\n            var $productContainer = $(this).closest('.product-detail');\n            if (!$productContainer.length) {\n                $productContainer = $(this).closest('.modal-content').find('.product-quickview');\n            }\n\n            if ($('.bundle-items', $productContainer).length === 0) {\n                attributeSelect($(e.currentTarget).find('option:selected').data('url'), $productContainer);\n            }\n        });\n    },\n\n    addToCart: () => {\n        $(document).on('click', 'button.add-to-cart, button.add-to-cart-global', async e => {\n            // Elements\n            const { target } = e;\n            const $target = $(target);\n            const productContainer = target.closest('.product-detail');\n            const $productContainer = $(productContainer);\n            const storeLocatorContainer = queryFirst('.pickup-in-store-content', productContainer);\n            const ispuAddToCart = queryFirst('.add-to-cart', storeLocatorContainer);\n\n            if (ispuAddToCart) {\n                ispuAddToCart.disabled = true;\n            }\n\n            const pdpSetData = {};\n            let isPDPSet = false;\n\n            // PDP Set - add all to cart button\n            if (hasClass(target, 'add-to-cart-global')) {\n                isPDPSet = true;\n                const setPids = [];\n\n                const setModal = target.closest('.custom-set-detail-modal');\n                // all visible set products -- \"removed\" set products are not included (removed set products do not have the custom-set-product class)\n                const modalProducts = queryAll('.custom-set-items.set-items .custom-set-product', setModal);\n\n                // set products which have a selected size\n                const sizeSelectedProducts = modalProducts.filter(modalProduct => {\n                    toggleSelectSizeInfo(modalProduct);\n                    const sizeSelected = queryFirst('.size-btn.selected', modalProduct);\n\n                    if (sizeSelected) {\n                        // collect some data for the ATC call while we're looping anyway\n                        setPids.push({\n                            pid: queryFirst('.product-id', modalProduct)?.textContent,\n                            options: getOptions($(modalProduct))\n                        });\n                    }\n\n                    return !!sizeSelected;\n                });\n\n                // exit if not all sizes are selected\n                if (sizeSelectedProducts.length !== modalProducts.length) {\n                    return;\n                }\n\n                Object.assign(pdpSetData, {\n                    pidsObj: JSON.stringify(setPids)\n                });\n            } else {\n                // Not PDP Set -- Check if size is selected on single product PDP\n                toggleSelectSizeInfo(productContainer);\n                if (!queryFirst('.size-btn.selected', productContainer)) {\n                    return;\n                }\n            }\n\n            $body.trigger('product:beforeAddToCart', target);\n\n            const analyticsData = getAddToCartAnalyticsData();\n\n            const form = {\n                pid: getPidValue($target),\n                childProducts: getChildProducts(),\n                ...pdpSetData,\n                ...analyticsData\n            };\n\n            if (!$('.bundle-item').length) {\n                form.options = getOptions($productContainer);\n            }\n\n            $target.trigger('updateAddToCartFormData', form);\n\n            let addToCartUrl = getAddToCartUrl();\n\n            // it needs for cases when mincart has a recommendation block with empty value in the '.add-to-cart-url'\n            if (!addToCartUrl && hasClass(productContainer, 'is-stylitics-gallery')) {\n                let closestUrl = queryFirst('.add-to-cart-url', productContainer);\n                if (closestUrl && closestUrl.value) addToCartUrl = closestUrl.value;\n            }\n\n            if (addToCartUrl) {\n                try {\n                    const res = await fetch(addToCartUrl, {\n                        method: 'POST',\n                        body: toFormData(form)\n                    });\n\n                    if (!res.ok) throw new Error('Add to cart response was not OK');\n\n                    const resData = await res.json();\n\n                    if (isPDPSet) {\n                        $('#productSetModal').modal('hide');\n\n                        // hide shop the look popup after closing cart\n                        const shopTheLookModal = $('#productSetModal-' + $target.data('pid'));\n                        if (shopTheLookModal.length) shopTheLookModal.modal('hide');\n                    }\n\n                    if (ispuAddToCart) {\n                        ispuAddToCart.disabled = false;\n                        $productContainer.find('.sheet[id*=\"pick-up-in-store\"]').modal('hide');\n                    }\n\n                    handlePostCartAdd(resData);\n\n                    $.spinner().stop();\n                    $body.trigger('product:afterAddToCart', resData);\n\n                    // send analytics data (trackAddItemToCart) if it is Stylitics Gallery QuickView on PLP\n                    // and Stylitics Gallery Widget exists\n                    if (hasClass(productContainer, 'is-stylitics-gallery')) {\n                        $body.trigger('stylitics:gallery:addItem', {\n                            pid: form.pid,\n                            price: queryFirst('.price-section .sales .ssSalesPrice', productContainer)?.value\n                        });\n                    }\n                } catch (err) {\n                    $.spinner().stop();\n                    if (ispuAddToCart) {\n                        ispuAddToCart.disabled = false;\n                    }\n                    console.error('addToCart error:', err.message);\n                }\n            }\n        });\n    },\n    updateBonusSelection: function () {\n        $body.on('bonus:updateSelection', (event, data) => {\n            const { target } = data;\n            if (!target) return;\n\n            const accordionContainer = target.closest('.choose-gwp-sheet-gift');\n\n            // reset selection for the tier currently being updated\n            remove(queryFirst(`.selected-pid[data-uuid=\"${accordionContainer.dataset.uuid}\"]`));\n\n            const choiceOfBonusProduct = target.closest('.choice-of-bonus-product');\n            const $choiceOfBonusProduct = $(choiceOfBonusProduct);\n            const { pid, uuid } = choiceOfBonusProduct.dataset;\n            const maxPids = $('.choose-bonus-product-dialog').data('total-qty');\n            const submittedQty = 1;\n            let totalQty = 0;\n            $.each($('#chooseBonusProductModal .selected-bonus-products .selected-pid'), function () {\n                totalQty += $(this).data('qty');\n            });\n\n            const gwpCheckbox = hasClass(target, 'size-btn') || hasClass(target, 'js-color-attribute') ? queryFirst('.select-bonus-product', $choiceOfBonusProduct[0]) : target;\n            const { checked } = gwpCheckbox;\n            const productDialog = queryFirst('.choose-bonus-product-dialog');\n            const addToCart = queryFirst('.add-bonus-products', productDialog);\n            const selectedProductElement = queryFirst(`.selected-pid[data-pid=\"${pid}\"][data-uuid=\"${uuid}\"]`, productDialog);\n            let bonusAccordionElements = queryAll('.choose-gwp-sheet-gift', productDialog);\n            const bonusCountElement = queryFirst('.bonus-item-count span', accordionContainer);\n            const selectedCount = queryAll('.select-bonus-product:checked', accordionContainer).length;\n            const maxCount = parseInt(accordionContainer.dataset.maxItems, 10);\n            const sizeEl = queryFirst('.size-selection', choiceOfBonusProduct);\n            const isOneSize = queryFirst('.selected-size', sizeEl);\n            const selectedSizeBtn = queryFirst(`.size-btn.${SELECTED_CLASS}`, sizeEl);\n            const isSizeSelected = !!selectedSizeBtn || !!isOneSize;\n            let selectedSwatch = queryFirst('.color-attribute .swatch-circle.selected', choiceOfBonusProduct);\n\n            if (selectedCount < maxCount) {\n                removeClass(accordionContainer, 'selected');\n            } else {\n                addClass(accordionContainer, 'selected');\n            }\n            if (bonusCountElement) bonusCountElement.textContent = selectedCount;\n\n            let enableAddTocart = true;\n            const maxItems = parseInt(accordionContainer.dataset.maxItems, 10);\n            const selectedItemsCount = queryAll('.select-bonus-product:checked', accordionContainer).length;\n            if (selectedItemsCount < maxItems) {\n                enableAddTocart = false;\n            }\n            enableAddTocart = isSizeSelected && !!selectedSwatch && enableAddTocart;\n\n            if (enableAddTocart) {\n                addClass(accordionContainer, readyClass);\n            } else {\n                removeClass(accordionContainer, readyClass);\n            }\n\n            let validProducts = queryAll('.choose-gwp-sheet-gift.ready-to-add', productDialog);\n\n            if (!hasClass(addToCart, notAvailable)) {\n                addToCart.disabled = bonusAccordionElements.length !== validProducts.length;\n            }\n\n            if (checked) {\n                addClass(choiceOfBonusProduct, selectedProductClass);\n            } else {\n                removeClass(choiceOfBonusProduct, selectedProductClass);\n                if (selectedProductElement) {\n                    selectedProductElement.click();\n                }\n            }\n            if (selectedCount < maxCount) {\n                $(accordionContainer).find('.choice-of-bonus-product').find('.select-bonus-product, .color-attribute, select').removeAttr('tabindex');\n            } else {\n                $(accordionContainer).find('.choice-of-bonus-product:not(.selected-product)').find('.select-bonus-product, .color-attribute, select').attr('tabindex', -1);\n            }\n            if (!checked) {\n                return;\n            }\n\n            totalQty += submittedQty;\n            const optionID = $choiceOfBonusProduct.find('.product-option').data('option-id');\n            const valueId = $choiceOfBonusProduct.find('.options-select option:selected').data('valueId');\n            if (totalQty <= maxPids) {\n                if (isSizeSelected) {\n                    const selectedBonusProductHtml = `\n                        <div class=\"selected-pid row\" data-pid=\"${pid}\" data-uuid=\"${uuid}\" data-qty=\"${submittedQty}\" data-optionID=\"${optionID || ''}\" data-option-selected-value=\"${valueId || ''}\">\n                            <div class=\"col-sm-11 col-9 bonus-product-name\" >${$choiceOfBonusProduct.find('.product-name').html()}</div>\n                            <div class=\"col-1\"><i class=\"fa fa-times\" aria-hidden=\"true\"></i></div>\n                        </div>`;\n                    $('#chooseBonusProductModal .selected-bonus-products').append(selectedBonusProductHtml);\n                    $('.pre-cart-products').html(totalQty);\n                    $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n                }\n            } else {\n                $('.selected-bonus-products .bonus-summary').addClass('alert-danger');\n            }\n        });\n    },\n\n    selectBonusProduct: function () {\n        // Bonus product selection process:\n        // - user clicks on the product\n        // - this code checks the box and triggers the bonus:updateSelection custom event\n        //     - if it is a one-size product, a new HTML structure is appended into a hidden div (.selected-products-container) on the page containing information about the selected product\n        //     - if it is not a one-size product, that HTML structure is not added\n        //         - upon clicking a size, attributeSelect() is called which fires off an ajax request to get updated product information. The response is then used to\n        //           rewrite the size elements on the page.\n        //         - a PDP CUSTOM EVENT is triggered (product:afterAttributeSelect from detail.js). The main reason why this is needed is to update the data-pid value on\n        //           the .product-detail element on the page (updates to the SKU value corresponding to the selected size).\n        //         - the same bonus:updateSelection custom event is then called again, which now sees that a size has been selected. It reads from that updated\n        //           data-pid attribute and appends a new HTML structure into a hidden div (.selected-products-container) on the page\n        // - upon clicking the add to tote button in the select gwp sheet, the event listener will read the product information from the hidden div (.selected-products-container)\n        //   and fire off an ajax request to add the selected products to tote.\n        $body.on('click', '.select-bonus-product', function () {\n            $body.trigger('bonus:updateSelection', { target: this });\n        });\n\n        const bonusDrawer = document.getElementById('chooseBonusProductModal');\n\n        if (bonusDrawer) {\n            bonusDrawer.addEventListener('click', e => {\n                const { target } = e;\n                const isSize = hasClass(target, 'size-btn');\n                const isColor = hasClass(target, 'color-value') || hasClass(target, 'js-color-attribute');\n\n                if (hasClass(target, 'bonus-product-item')) {\n                    e.preventDefault();\n                    const NO_SIZE_ERROR_CLASS = 'no-sz';\n                    const targetCheckbox = queryFirst('.select-bonus-product', target);\n                    const parentTier = target.closest('.choose-gwp-sheet-gift');\n\n                    // reset errors for all gifts in this tier\n                    removeClass(queryAll('.bonus-product-item', parentTier), NO_SIZE_ERROR_CLASS);\n\n                    if (!targetCheckbox.checked) {\n                        const hasSizes = queryFirst('.size-btn', target);\n                        const selectedSize = queryFirst('.size-btn.selected', target);\n\n                        if (!hasSizes || selectedSize) {\n                            // unselect the checked checkbox as long as the user didn't click the already-checked option\n                            const accordion = target.closest('.choose-gwp-sheet-gift');\n                            const checkedBox = queryFirst('input:checked', accordion);\n                            if (checkedBox) {\n                                checkedBox.click();\n                            }\n                        } else {\n                            addClass(target, NO_SIZE_ERROR_CLASS);\n                            return;\n                        }\n                    }\n\n                    // toggle the checkbox for the clicked tile\n                    targetCheckbox.click();\n                } else if (isSize || isColor) {\n                    const wrapper = target.closest('.product-detail');\n                    const checkbox = queryFirst('.select-bonus-product', wrapper);\n                    const sheet = wrapper.closest('.choose-gwp-sheet');\n                    const sizeEl = queryFirst('.size-selection', wrapper);\n                    const isOneSize = queryFirst('.selected-size', sizeEl);\n                    const sizeBtns = queryAll('.size-btn', sizeEl);\n                    const colorBtn = isColor && (hasClass(target, 'color-value') ? target.closest('.js-color-attribute') : target);\n                    const attrUrl = isColor && isOneSize ? colorBtn.dataset.url : target.dataset.attrUrl;\n                    const { pid: prevId } = wrapper.dataset;\n\n                    if (isSize) {\n                        removeClass(sizeBtns, SELECTED_CLASS);\n                        addClass(target, SELECTED_CLASS);\n                    }\n\n                    if (checkbox && !checkbox.checked && (isSize || (isColor && isOneSize))) {\n                        wrapper.click();\n                    }\n\n                    remove(queryFirst(`.selected-pid[data-pid=\"${prevId}\"]`, sheet));\n\n                    attributeSelect(attrUrl, $(wrapper), isColor && isOneSize ? colorBtn : target);\n                }\n            });\n        }\n    },\n    removeBonusProduct: function () {\n        $(document).on('click', '.selected-pid', function () {\n            $(this).remove();\n            var $selected = $('#chooseBonusProductModal .selected-bonus-products .selected-pid');\n            var count = 0;\n            if ($selected.length) {\n                $selected.each(function () {\n                    count += parseInt($(this).data('qty'), 10);\n                });\n            }\n\n            $('.pre-cart-products').html(count);\n            $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n        });\n    },\n    enableBonusProductSelection: function () {\n        $body.on('bonusproduct:updateSelectButton', function (e, response) {\n            $('button.select-bonus-product', response.$productContainer).attr('disabled', !response.product.readyToOrder || !response.product.available);\n            var pid = response.product.id;\n            $('button.select-bonus-product', response.$productContainer).data('pid', pid);\n        });\n    },\n    showMoreBonusProducts: function () {\n        $(document).on('click', '.show-more-bonus-products', function () {\n            var url = $(this).data('url');\n            $('.modal-content').spinner().start();\n            $.ajax({\n                url: url,\n                method: 'GET',\n                success: function (html) {\n                    var parsedHtml = parseHtml(html);\n                    $('.modal-body').append(parsedHtml.body);\n                    $('.show-more-bonus-products:first').remove();\n                    $('.modal-content').spinner().stop();\n                },\n                error: function () {\n                    $('.modal-content').spinner().stop();\n                }\n            });\n        });\n    },\n    addBonusProductsToCart: function () {\n        $(document).on('click', '.add-bonus-products', function () {\n            var $readyToOrderBonusProducts = $('.choose-bonus-product-dialog .selected-pid');\n            var queryString = '?pids=';\n            var url = $('.choose-bonus-product-dialog').data('addtocarturl');\n            var pidsObject = {\n                bonusProducts: []\n            };\n\n            $.each($readyToOrderBonusProducts, function () {\n                var qtyOption = parseInt($(this).data('qty'), 10);\n                const pid = $(this).data('pid');\n                const uuid = $(this).data('uuid');\n                const productId = $(`.choice-of-bonus-product.selected-product[data-pid=\"${pid}\"][data-uuid=\"${uuid}\"]`).attr('data-pid');\n                var option = null;\n                if (qtyOption > 0) {\n                    if ($(this).data('optionid') && $(this).data('option-selected-value')) {\n                        option = {};\n                        option.optionId = $(this).data('optionid');\n                        option.productId = productId;\n                        option.selectedValueId = $(this).data('option-selected-value');\n                    }\n                    pidsObject.bonusProducts.push({\n                        uuid: uuid,\n                        pid: productId,\n                        qty: qtyOption,\n                        options: option ? [option] : []\n                    });\n                    pidsObject.totalQty = parseInt($('.pre-cart-products').html(), 10);\n                }\n            });\n            queryString += JSON.stringify(pidsObject);\n            queryString = queryString + '&bonusItems=' + JSON.stringify($('.choose-bonus-product-dialog').data('bonusItems'));\n            $.spinner().start();\n            $.ajax({\n                url: url + queryString,\n                method: 'POST',\n                success: function (data) {\n                    $.spinner().stop();\n                    if (data.error) {\n                        $('#chooseBonusProductModal').modal('hide');\n                        if ($('.add-to-cart-messages').length === 0) {\n                            $body.append('<div class=\"add-to-cart-messages\"></div>');\n                        }\n                        $('.add-to-cart-messages').append('<div class=\"alert alert-danger add-to-basket-alert text-center\" role=\"alert\">' + data.errorMessage + '</div>');\n                        setTimeout(function () {\n                            $('.add-to-basket-alert').remove();\n                        }, 3000);\n                    } else {\n                        $('.configure-bonus-product-attributes').html(data);\n                        $('.bonus-products-step2').removeClass('hidden-xl-down');\n                        $('#chooseBonusProductModal').modal('hide');\n                        $('.minicart-quantity').html(data.totalQty);\n                        if ($('.cart-page').length) {\n                            location.reload();\n                        }\n                    }\n                },\n                error: function () {\n                    $.spinner().stop();\n                }\n            });\n        });\n    },\n    revealRecommendations: function () {\n        const { initSpecificCarousel } = require('../components/carousel');\n        queryAll('.recommendations:not(.product-listing-header)').forEach(eachRecommendation => {\n            const titleEl = queryFirst('.title', eachRecommendation);\n            const productEl = queryFirst('.grid-tile', eachRecommendation);\n            const scrollableContent = queryFirst('.scrollable-content', eachRecommendation);\n\n            if (titleEl && !productEl) {\n                eachRecommendation.outerHTML = '';\n            } else if (titleEl && productEl) {\n                eachRecommendation.style.display = 'block';\n                if (scrollableContent) initSpecificCarousel(scrollableContent);\n            }\n        });\n    },\n    handleEarlyAccessPLPLockIcon: function () {\n        const earlyAccessPLPContainer = queryAll('.js-early-access-plp-container');\n        if (earlyAccessPLPContainer.length) {\n            earlyAccessPLPContainer.forEach(earlyAccessPlpIcon => {\n                const lockIconContainer = queryFirst('.loyalty-early-access-lock-container', earlyAccessPlpIcon);\n                const earlyAccessWishlistIcon = queryFirst('.product-tile .pdp-wish-list', earlyAccessPlpIcon);\n                const earlyAccessPLPBadge = queryFirst('.js-loyalty-badge', earlyAccessPlpIcon);\n                const { earlyAccessDate } = lockIconContainer.dataset;\n                const isEarlyAccessItem = isEarlyAccessElement(earlyAccessDate);\n                if (isLoyaltyProgramMember || !isEarlyAccessItem) {\n                    removeClass(earlyAccessWishlistIcon, HIDDEN_CLASS);\n                    addClass(lockIconContainer, HIDDEN_CLASS);\n                    if (!isEarlyAccessItem) {\n                        addClass(earlyAccessPLPBadge, HIDDEN_CLASS);\n                    }\n                } else {\n                    addClass(earlyAccessWishlistIcon, HIDDEN_CLASS);\n                    removeClass([lockIconContainer, earlyAccessPLPBadge], HIDDEN_CLASS);\n                }\n            });\n        }\n    },\n\n    getPidValue: getPidValue,\n    getQuantitySelected: getQuantitySelected,\n    handleEarlyAccessCta: handleEarlyAccessCta\n};\n","export class AlertDialog {\n    checkIcon = [\n        '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"13\" viewBox=\"0 0 12 13\" fill=\"none\">',\n        '<path d=\"M1 6.4646L4.5 9.9646L11 3.4646\" stroke=\"black\"/>',\n        '</svg>'\n    ].join('\\n');\n\n    /**\n     * Alert non-modal dialog used for showing messages to the user. Could be inserted\n     * in different elements on the page. So it could be styled and positioned differently.\n     * It has a timeout for auto-closing. Could be extened to use with Manager.\n     *\n     * @constructor\n     * @param {AlertConfig} alertConfig - The configuration object for setting up the alert dialog.\n     *\n     * @typedef {Object} CtaItem\n     * @property {string} text - The text displayed on the CTA button.\n     * @property {Function} callback - The function to be executed when the CTA button is clicked.\n     *\n     * @typedef {Object} AlertItem\n     * @property {string} text - The main text for the alert item.\n     * @property {string[]} customCSSClass - An array of CSS classes applied to the alert item.\n     * @property {Function} callback - A function executed when the alert item is clicked.\n     * @property {CtaItem[]} cta - An array of call-to-action buttons, each with a text and callback.\n     * @property {string} icon - HTML string representing an icon (e.g., an image) displayed with the alert item.\n     *\n     * @typedef {Object} AlertConfig\n     * @property {number} alertTimeout - Optional. The time of displaying the alert until closed automatically. Default: 2500\n     * @property {AlertItem[]} items - An array of alert items, each containing text, CSS classes, callback functions, CTAs, and an icon.\n     * @property {Element} focusAfterClose - The DOM element that should regain focus after the alert dialog is closed.\n     * @property {string[]} customCSSClass - An array of CSS classes applied to the alert dialog itself.\n     * @property {string} style - Inline styles applied to the alert dialog for positioning or additional styling.\n     * @property {boolean} remainOnScroll - Optional. Determines if alert keeps on showing when page is scrolled. Default: false\n     *\n     * @type {AlertConfig}\n     * @example\n     * const alertConfig = {\n     *    alertTimeout: 2500,\n     *    items: [\n     *              {\n     *                  text: 'Removed from Wishlist',\n     *                  customCSSClass: [''],\n     *                  callback: () => console.log('Alert clicked'),\n     *                  cta: [\n     *                          { text: 'OK', callback: () => console.log('OK clicked') },\n     *                          { text: 'Cancel', callback: () => console.log('Cancel clicked') }\n     *                        ],\n     *                  icon: '<img src=\"product.png\" alt=\"product-name\" width=60 height=75 />'\n     *              }\n     *    ],\n     *    focusAfterClose: document.querySelector('.header-button'),\n     *    customCSSClass: ['m-modifier'],\n     *    style: '',\n     *    remainOnScroll: false\n     *  };\n     *  new AlertDialog(alertConfig);\n     */\n    constructor(alertConfig) {\n        this.alertHost = document.body;\n        this.alertConfig = alertConfig;\n        this.alert = null;\n        this.timeout = null;\n        this.createAlert();\n        this.startTimer();\n    }\n\n    createAlert() {\n        if (!this.alertConfig) {\n            console.error('Alert not configured');\n            return;\n        }\n        const titleID = `alert-dialog-title-${this.generateRandomString()}`;\n        const alert = document.createElement('div');\n        alert.classList.add('alert-dialog');\n        alert.setAttribute('role', 'alertdialog');\n        alert.setAttribute('aria-modal', 'false');\n        alert.setAttribute('aria-labeled', titleID);\n        alert.setAttribute('tabindex', '-1');\n        alert.setAttribute('style', this.alertConfig.style);\n\n        if (this.alertConfig.customCSSClass?.length) {\n            this.alertConfig.customCSSClass.forEach(cssClass => alert.classList.add(cssClass));\n        }\n\n        const { icon } = this.alertConfig;\n        if (icon) {\n            const iconElement = document.createElement('div');\n            iconElement.classList.add('alert-dialog-icon');\n            if (icon === 'default') {\n                iconElement.innerHTML = this.checkIcon;\n            } else {\n                iconElement.innerHTML = icon;\n            }\n\n            alert.appendChild(iconElement);\n        }\n\n        if (this.alertConfig?.items) {\n            this.alertConfig.items.forEach(item => {\n                const alertInner = document.createElement('div');\n                alertInner.textContent = item.text;\n                alertInner.classList.add('alert-dialog-text');\n                if (item.customCSSClass?.length) {\n                    item.customCSSClass.forEach(cssClass => alertInner.classList.add(cssClass));\n                }\n\n                const { icon } = item;\n                if (icon) {\n                    const iconElement = document.createElement('div');\n                    iconElement.classList.add('alert-inner-icon');\n                    iconElement.appendChild(icon);\n                    alert.appendChild(iconElement);\n                }\n\n                alertInner.setAttribute('id', titleID);\n                alert.appendChild(alertInner);\n\n                if (item?.cta?.length) {\n                    const ctaContainer = document.createElement('div');\n                    ctaContainer.classList.add('alert-dialog-ctas');\n\n                    item.cta.forEach(cta => {\n                        const button = document.createElement('button');\n                        button.textContent = cta.text;\n                        button.setAttribute('type', 'button');\n                        if (typeof cta.callback === 'function') {\n                            button.addEventListener('click', e => {\n                                e.stopPropagation();\n                                cta.callback();\n                                this.closeAlert();\n                            });\n                        }\n                        ctaContainer.appendChild(button);\n                    });\n\n                    alert.appendChild(ctaContainer);\n                }\n                alertInner.addEventListener('click', () => {\n                    if (typeof item.callback === 'function') {\n                        item.callback();\n                    }\n                    this.closeAlert();\n                });\n            });\n        }\n\n        alert.addEventListener('mouseenter', () => this.pauseTimer());\n        alert.addEventListener('mouseleave', () => this.resumeTimer());\n        alert.addEventListener('focusout', () => this.resumeTimer());\n        alert.addEventListener('keydown', e => {\n            if (e.key === 'Escape') {\n                this.closeAlert();\n            }\n        });\n        // In design, we have this strange requirements to close the alert on scroll\n        window.addEventListener('scroll', (this.handleScroll = () => {\n            if (!this.alertConfig?.remainOnScroll) {\n                this.closeAlert();\n            }            \n        }));\n\n        this.alertHost.insertAdjacentElement('beforeend', alert); // FIFO\n        this.alert = alert;\n        this.alert.focus();\n        // We add this event listener to separate our focus from the user interaction\n        alert.addEventListener('focusin', () => this.pauseTimer());\n    }\n\n    startTimer() {\n        this.timeout = setTimeout(() => this.closeAlert(), this.alertConfig?.alertTimeout ?? 2500);\n    }\n\n    pauseTimer() {\n        clearTimeout(this.timeout);\n    }\n\n    resumeTimer() {\n        this.startTimer();\n    }\n\n    closeAlert() {\n        if (this.alert) {\n            window.removeEventListener('scroll', this.handleScroll); // need to collect listener manually to prevent leaks\n            if (this.alert.parentNode) {\n                this.alert.classList.add('m-onclose');\n                setTimeout(() => this.alert.parentNode.removeChild(this.alert), 150);\n            }\n        }\n        if (this.alertConfig.focusAfterClose instanceof HTMLElement) {\n            this.alertConfig.focusAfterClose.focus();\n        }\n    }\n\n    generateRandomString() {\n        return (Math.random() + 1).toString(36).substring(3);\n    }\n}\n","// eslint-disable-next-line wrap-iife\nconst pageCache = {};\n\nconst cronSingletons = {};\n\n/**\n * Cache factory that returns different types of cache storages based on provided options.\n * Supports 'page' (in-memory), 'localStorage', and 'sessionStorage' caches.\n *\n * @param {Object} [options={}] - Configuration options for cache.\n * @param {string} [options.type='page'] - The type of storage ('page', 'localStorage', 'sessionStorage').\n * @param {string} [options.keyPrefix=''] - Prefix to prepend to cache keys.\n * @param {number} [options.ttl=60] - Default Time-To-Live (TTL) in seconds for cached items.\n * @param {number} [options.cronInterval=30] - Interval (in seconds) for the cron job that cleans expired cache entries.\n * @param {number} [options.batchSize=100] - Number of keys processed in each cron job iteration.\n * @returns {Object} - Returns a cache storage object with `get`, `set`, `remove`, and `keys` methods.\n */\nexport default function factory(options = {}) {\n    const type = options.type || 'page';\n    const keyPrefix = options.keyPrefix || '';\n    const defaultTTL = options.ttl || 60;\n    const cronInterval = options.cronInterval || 30; // Default interval is 30 seconds\n    const batchSize = options.batchSize || 100; // Number of keys processed per batch\n\n    /**\n     * Adds a prefix to a cache key.\n     *\n     * @param {string} key - The original key to be prefixed.\n     * @returns {string} - Returns the key with the applied prefix.\n     */\n    function withPrefix(key) {\n        return keyPrefix + key;\n    }\n\n    const storages = {\n        page: {\n            get(key) {\n                const cacheItem = pageCache[withPrefix(key)];\n                if (!cacheItem) return null;\n\n                const now = new Date().getTime();\n                if (now > cacheItem.expiry) {\n                    delete pageCache[withPrefix(key)];\n                    return null;\n                }\n                return cacheItem.data;\n            },\n            set(key, data, ttl = defaultTTL) {\n                const now = new Date().getTime();\n                pageCache[withPrefix(key)] = {\n                    data,\n                    expiry: now + ttl * 1000 // Convert TTL to milliseconds\n                };\n            },\n            remove(key) {\n                delete pageCache[withPrefix(key)];\n            },\n            keys() {\n                return Object.keys(pageCache).filter(k => k.startsWith(keyPrefix));\n            }\n        },\n        localStorage: {\n            get(key) {\n                const cacheItem = JSON.parse(localStorage.getItem(withPrefix(key)));\n                if (!cacheItem) return null;\n\n                const now = new Date().getTime();\n                if (now > cacheItem.expiry) {\n                    localStorage.removeItem(withPrefix(key));\n                    return null;\n                }\n                return cacheItem.data;\n            },\n            set(key, data, ttl = defaultTTL) {\n                const now = new Date().getTime();\n                const cacheItem = {\n                    data,\n                    expiry: now + ttl * 1000 // Convert TTL to milliseconds\n                };\n                localStorage.setItem(withPrefix(key), JSON.stringify(cacheItem));\n            },\n            remove(key) {\n                localStorage.removeItem(withPrefix(key));\n            },\n            keys() {\n                return Object.keys(localStorage).filter(k => k.startsWith(keyPrefix));\n            }\n        },\n        sessionStorage: {\n            get(key) {\n                const cacheItem = JSON.parse(sessionStorage.getItem(withPrefix(key)));\n                if (!cacheItem) return null;\n\n                const now = new Date().getTime();\n                if (now > cacheItem.expiry) {\n                    sessionStorage.removeItem(withPrefix(key));\n                    return null;\n                }\n                return cacheItem.data;\n            },\n            set(key, data, ttl = defaultTTL) {\n                const now = new Date().getTime();\n                const cacheItem = {\n                    data,\n                    expiry: now + ttl * 1000 // Convert TTL to milliseconds\n                };\n                sessionStorage.setItem(withPrefix(key), JSON.stringify(cacheItem));\n            },\n            remove(key) {\n                sessionStorage.removeItem(withPrefix(key));\n            },\n            keys() {\n                return Object.keys(sessionStorage).filter(k => k.startsWith(keyPrefix));\n            }\n        }\n    };\n\n    const selectedStorage = storages[type];\n\n    /**\n     * Singleton function to start a cron job that cleans up expired cache items.\n     * Ensures that only one cron job runs per cache type.\n     *\n     * @param {string} type - The type of cache ('page', 'localStorage', 'sessionStorage').\n     * @param {Object} storage - The storage object for the specific cache type.\n     * @param {number} cronInterval - The interval (in seconds) between cron job executions.\n     * @param {number} batchSize - The number of cache keys processed per cron job iteration.\n     * @param {string} keyPrefix - The prefix for cache keys.\n     */\n    function startCronSingleton(type, storage, cronInterval, batchSize, keyPrefix) {\n        if (cronSingletons[type]) {\n            // If a cron job is already running for this type, do nothing\n            return;\n        }\n\n        // Mark the cron job as started for this cache type\n        cronSingletons[type] = true;\n\n        /**\n         * Function that cleans expired cache keys in batches.\n         * It processes `batchSize` keys per iteration to avoid performance issues.\n         */\n        function cleanExpiredKeys() {\n            const keys = storage.keys();\n            const now = new Date().getTime();\n            let keysProcessed = 0;\n\n            // Process a limited number of keys per cron cycle\n            for (let i = 0; i < keys.length && keysProcessed < batchSize; i++) {\n                const key = keys[i];\n                const cacheItem = JSON.parse(localStorage.getItem(key));\n\n                // Check if the cache item has expired and remove it if necessary\n                if (cacheItem && now > cacheItem.expiry) {\n                    storage.remove(key.replace(keyPrefix, ''));\n                    keysProcessed++;\n                }\n            }\n\n            // Schedule the next cron job execution\n            setTimeout(cleanExpiredKeys, cronInterval * 1000);\n        }\n\n        // Start the cron job with the defined interval\n        setTimeout(cleanExpiredKeys, cronInterval * 1000);\n    }\n\n    // Start the cron job for the selected cache type if not already started\n    startCronSingleton(type, selectedStorage, cronInterval, batchSize, keyPrefix);\n\n    return selectedStorage;\n}\n","import { queryFirst } from '../domUtil';\nconst SELECTOR_DATA_ELEMENT = '.js-ajax-data';\nlet renewCSRFCronAssigned = false;\n\n// 2700s = 45m\nconst renewCSRFCronInterval = 2700;\n\nimport cache from './cache';\n\nconst { get: getCustomerCache, set: setCustomerCache } = cache({\n    keyPrefix: 'customer-',\n    ttl: 30\n});\n\nconst { get: getProductInventoryCache, set: setProductInventoryCache } = cache({\n    keyPrefix: 'product-inventory-',\n    ttl: 180\n});\n\n/**\n * Get account data element\n *\n * @returns {null|HTMLElement} account data el\n */\nfunction getDataElement() {\n    return queryFirst(SELECTOR_DATA_ELEMENT);\n}\n\n/**\n * Singleton function to start a cron job renew csrf token\n *\n * @param {number} cronInterval - The interval (in seconds) between cron job executions.\n */\nfunction startCronSingleton(cronInterval) {\n    if (renewCSRFCronAssigned) {\n        return;\n    }\n\n    // Mark the cron job as started\n    renewCSRFCronAssigned = true;\n\n    /**\n     * Function that cleans expired cache keys in batches.\n     * It processes `batchSize` keys per iteration to avoid performance issues.\n     */\n    async function refreshTokenFunc() {\n        const dataEl = getDataElement();\n\n        const { csrfTokenName, csrfTokenValue, refreshToken } = dataEl.dataset;\n        const targetUrl = `${refreshToken}?${csrfTokenName}=${csrfTokenValue}`;\n        const response = await fetch(targetUrl);\n\n        if (!response.ok) {\n            return;\n        }\n\n        const { token } = await response.json();\n\n        dataEl.dataset.csrfTokenValue = token;\n\n        setTimeout(refreshTokenFunc, cronInterval * 1000);\n    }\n\n    // Start the cron job with the defined interval\n    setTimeout(refreshTokenFunc, cronInterval * 1000);\n}\n\n/**\n * Get Customer Data by URL\n * @async\n * @private\n * @param {string} customerDataUrl data base url\n * @param {string} csrfTokenName csrf Toke Name\n * @param {string} csrfTokenValue csrf Toke Value\n * @returns {Promise<Object>} Customer data object\n */\nasync function getCustomerDataAjaxResult(customerDataUrl, csrfTokenName, csrfTokenValue) {\n    let targetUrl = `${customerDataUrl}?${csrfTokenName}=${csrfTokenValue}`;\n\n    const result = {\n        isAuthenticated: false\n    };\n\n    const response = await fetch(targetUrl);\n\n    if (!response.ok) {\n        return result;\n    }\n    const { isAuthenticated, isLoyaltyMember } = await response.json();\n\n    result.isAuthenticated = isAuthenticated;\n    result.isLoyaltyMember = isLoyaltyMember;\n\n    return result;\n}\n\n/**\n * Get Customer Data\n * @async\n * @param {string} customerDataUrl data base url\n * @param {string} csrfTokenName csrf Toke Name\n * @param {string} csrfTokenValue csrf Toke Value\n * @returns {Promise<Object>} Customer data object\n */\nexport async function getCustomerData() {\n    const dataEl = getDataElement();\n\n    const cacheKey = 'data';\n    const { csrfTokenName, csrfTokenValue, customerDataUrl } = dataEl.dataset;\n\n    const cachedResult = getCustomerCache(cacheKey);\n    if (cachedResult) {\n        return cachedResult;\n    }\n\n    const result = await getCustomerDataAjaxResult(customerDataUrl, csrfTokenName, csrfTokenValue);\n    setCustomerCache(cacheKey, result);\n    return result;\n}\n\n/**\n * Get Product inventory\n *\n * @param {string} masterPid master product ID\n * @returns {null|Object} product info\n */\nexport async function getProductInventoryData(masterPid) {\n    let inventory = getProductInventoryCache(masterPid);\n\n    if (inventory) {\n        return inventory;\n    }\n\n    const dataEl = getDataElement();\n    if (!dataEl) {\n        return null;\n    }\n\n    const { csrfTokenName, csrfTokenValue, productInventoryUrl } = dataEl.dataset;\n\n    const targetUrl = `${productInventoryUrl}?pid=${masterPid}&${csrfTokenName}=${csrfTokenValue}`;\n    const response = await fetch(targetUrl);\n\n    if (!response.ok) {\n        return null;\n    }\n\n    const result = {};\n\n    const { variants } = await response.json();\n\n    result.variants = variants;\n\n    setProductInventoryCache(masterPid, result);\n\n    return result;\n}\n\nstartCronSingleton(renewCSRFCronInterval);\n","import { queryFirst } from '../../domUtil';\nimport { SELECTOR_SIZE_BTN_SELECTED } from '../productTileConstants';\n\n/**\n * Get Product info\n *\n * @param {HTMLElement} container tile container\n * @returns {Object} product info\n */\nexport function getProductInfo(container) {\n    const { masterId, productInfo: productInfoRaw, productType } = container.dataset;\n    let productInfo = null;\n    if (productType === 'set') {\n        return productInfo;\n    }\n\n    try {\n        productInfo = JSON.parse(productInfoRaw);\n    } catch (error) {\n        return null;\n    }\n\n    if (!productInfo || (!masterId) in productInfo) {\n        return null;\n    }\n\n    return productInfo[masterId].variants;\n}\n\n/**\n * Get Selected size data\n *\n * @param {HTMLElement} container tile container\n * @returns {Object} product info\n */\nexport function getSelectedSizeData(container) {\n    const selectedSizeBtn = queryFirst(SELECTOR_SIZE_BTN_SELECTED, container);\n\n    // Check if size is selected on single product PDP\n    if (!selectedSizeBtn) {\n        return null;\n    }\n\n    const selectedColorElement = queryFirst('.js-tile-swatch.selected', container);\n    if (!selectedColorElement) {\n        return null;\n    }\n\n    const selectedColorId = selectedColorElement.dataset.attrValue;\n    const productInfoVariants = getProductInfo(container);\n    const variantData = productInfoVariants[selectedColorId];\n    const selectedSizeValue = selectedSizeBtn.dataset.attrValue;\n    const selectedSizeData = variantData.sizes[selectedSizeValue];\n\n    return selectedSizeData;\n}\n\n/**\n * Get Selected Product ID\n *\n * @param {HTMLElement} container tile container\n * @returns {null|number} product ID\n */\nexport function getSelectedPid(container) {\n    const selectedSizeBtn = queryFirst(SELECTOR_SIZE_BTN_SELECTED, container);\n\n    // Check if size is selected on single product PDP\n    if (!selectedSizeBtn) {\n        return null;\n    }\n    const selectedSizeData = getSelectedSizeData(container);\n\n    return selectedSizeData.ID;\n}\n","'use strict';\n\nimport { queryFirst, addClass, removeClass } from '../domUtil';\nimport { HIDDEN_CLASS } from '../constants';\nimport { getJSON } from '../util';\n\nconst $body = $('body');\n\nexport default {\n    validateEmail: function () {\n        $body.on('blur', '.notify-email', e => {\n            const { target } = e;\n            const { value } = target;\n            const emailFormGroup = target.closest('.form-group');\n            const emailError = queryFirst('.email-error', emailFormGroup);\n            const { missingError, patternMismatch } = target.dataset;\n            const invalidClass = 'is-invalid';\n            if (!value) {\n                addClass(target, invalidClass);\n                emailError.textContent = missingError;\n            } else if (target.checkValidity && !target.checkValidity()) {\n                addClass(target, invalidClass);\n                emailError.textContent = patternMismatch;\n            } else {\n                removeClass(target, invalidClass);\n            }\n        });\n    },\n    notifyMeSubmit: function () {\n        $body.on('submit', '.js-notify-form', e => {\n            e.preventDefault();\n            const notifyForm = e.target;\n            const actionUrl = notifyForm.getAttribute('action');\n\n            const data = {\n                productID: queryFirst('.js-notify-sku', notifyForm).value,\n                email: queryFirst('.js-notify-email', notifyForm).value,\n                subscribe: queryFirst('.js-notify-checkbox', notifyForm).checked\n            };\n            const $notifyForm = $(notifyForm);\n            $notifyForm.spinner().start();\n            getJSON(actionUrl, 'POST', data, (data) => {\n                const confirmMessage = data.message;\n                const notifyContainer = notifyForm.closest('.js-notify-me-container');\n                addClass(notifyForm, HIDDEN_CLASS);\n                const successMessage = queryFirst('.js-notify-confirm-msg', notifyContainer);\n                successMessage.innerHTML = confirmMessage;\n                removeClass(queryFirst('.js-notify-confirm-block', notifyContainer), HIDDEN_CLASS);\n                removeClass(queryFirst('.footer-close-link', notifyContainer), HIDDEN_CLASS);\n                $notifyForm.spinner().stop();\n            }, () => {\n                $notifyForm.spinner().stop();\n            });\n        });\n    }\n};\n","/**\n * OOTBS SFRA JS code\n * Changed wishlist type toggle event\n * Copied selectSizeAttribute OOTB method\n */\n'use strict';\n\nconst { queryFirst, queryAll, addClass, removeClass, hasClass, toFormData, matchesBreakpoint, toggleClass, renderFragment, remove, scrollTo } = require('../domUtil');\nconst { getJSON, appendToUrl } = require('../util');\nconst { dialogTemplate, addToCartAlert } = require('../templates');\nconst { WISHLIST_NAME_REGEX } = require('../components/shippingPreference/constants');\nconst configElement = queryFirst('#wishlist-settings');\nconst WishlistItemsMgr = require('../wishlist/wishlistItemsMgr').default;\n\nimport base from '../product/base';\nimport { trackWishlist } from '../components/etmc';\nimport { AlertDialog } from '../components/alertDialog';\nimport { getCustomerData, getProductInventoryData } from '../utils/ajaxData';\nimport {\n    CLASS_SIZE_SELECTED,\n    SELECTOR_AVAILABILITY_MSG_TEXT,\n    SELECTOR_EARLY_ACCESS_CTA_SIGN_IN,\n    SELECTOR_EARLY_ACCESS_CTA_SIGN_UP,\n    SELECTOR_NOTIFY_ME_DIALOG_PID_INPUT,\n    SELECTOR_SIZE_BTN,\n    SELECTOR_SIZE_LIST,\n    SELECTOR_SIZE_SELECTED_ASSISTIVE_TEXT,\n    SELECTOR_SIZE_SELECTOR,\n    SELECTOR_SOLDOUT_MSG,\n    SELECTOR_TILE_PRICE_WRAPPER\n} from '../productTiles/productTileConstants';\nimport { IN_STOCK_STATUS as IN_STOCK, NOT_AVAILABLE_STATUS as NOT_AVAILABLE, PREORDER_STATUS as PREORDER, HIDDEN_CLASS, NOT_AVAILABLE_CLASS, INVALID_CLASS, ACTIVE_CLASS } from '../constants';\nimport { getProductInfo } from '../productTiles/utils/productTileData';\nimport notifyMe from '../components/notifyMe';\n\nconst focusHelper = require('base/components/focus');\nconst $body = $('body');\nconst mainPageContent = queryFirst('.page ');\n\n/**\n * Show allert message\n * @param {AlertConfig} alertConfig alert configuration\n * @returns {void}\n */\nfunction displayAlert(alertConfig) {\n    new AlertDialog(alertConfig);\n}\n\n/**\n * Return configuration for erro alerts\n * @returns { Object } allert configuration object\n */\nfunction getErrorAlertConfig() {\n    const msgContainer = queryFirst('.wishlistItemCards');\n    const msg = msgContainer?.dataset?.errorMsg || '';\n    return {\n        items: [\n            {\n                text: msg\n            }\n        ],\n        customCSSClass: ['alert-top']\n    };\n}\n\n/**\n *\n * @param {string} wishListCountMessage\n */\nfunction updateWishlistCountMessage(wishListCountMessage) {\n    const detailsItemCount = queryFirst('.wishlist-menu-bar-count');\n\n    if (wishListCountMessage && detailsItemCount) {\n        detailsItemCount.textContent = wishListCountMessage;\n    }\n}\n\n/**\n * Adds Product to wishlist\n * @param {string} pid - productId\n * @param {string} listId - wishlist ID\n * @param {string} customCreateTime - custom time creation for restored items\n */\nasync function addProductToWishlist(pid, listId, customCreateTime) {\n    const url = configElement?.dataset?.wishlistAdditemLink || '';\n\n    await fetch(url, {\n        method: 'POST',\n        body: toFormData({\n            pid: pid,\n            id: listId,\n            createTime: customCreateTime\n        })\n    })\n        .then(response => response.json())\n        .then(data => {\n            if (data.success) {\n                updateWishlistCountMessage(data.wishListCountMessage);\n\n                if (data.wishlistItems.find(i => i.UUID === listId).items.length) {\n                    removeClass(queryFirst('.js-share-wishlist'), HIDDEN_CLASS);\n                }\n                // update Marketing Analytics trackWishlist event\n                if (data.mcAnalyticsArray) {\n                    trackWishlist(data.mcAnalyticsArray);\n                }\n                const wishlistMgr = WishlistItemsMgr.getInstance();\n                wishlistMgr.updateWishlistItems(data.wishlistItems);\n            }\n\n            if (data.error) {\n                displayAlert(getErrorAlertConfig());\n            }\n        })\n        .catch(() => {\n            displayAlert(getErrorAlertConfig());\n        });\n}\n\n/**\n *\n * @param {*} shareTitle\n * @param {*} shareText\n * @param {*} shareUrl\n */\nfunction showShareDialogs(shareTitle, shareText, shareUrl) {\n    if (navigator.share !== undefined && !matchesBreakpoint('lg')) {\n        // if native share available use it\n        navigator.share({\n            title: shareTitle,\n            text: shareText,\n            url: shareUrl\n        });\n    } else {\n        // otherwise use share dialog\n        $('#share-wishlist').modal('show');\n    }\n}\n/**\n * Updates the Mini-Cart quantity value after the customer has pressed the \"Add to Cart\" button\n * @param {string} response - ajax response from clicking the add to cart button\n */\nfunction handlePostCartAdd(response) {\n    $('.minicart').trigger('count:update', response);\n    if (!response.error) {\n        return;\n    }\n    if (response.displayModal) {\n        let addToCartWarningDialog = queryFirst('#add-to-cart-warning-dialog');\n\n        if (!addToCartWarningDialog) {\n            const isOnCartPage = window.location.pathname === '/cart/';\n            const fragment = renderFragment(\n                dialogTemplate({\n                    buttons: isOnCartPage ? [{ text: 'OK', primary: true }] : [{ text: 'Close' }, { text: 'Review Tote', primary: true, link: response.redirectLink }],\n                    modalContentHeading: response.messageHeading,\n                    modalContentBody: isOnCartPage ? response.messageBodyOnCart : response.messageBodyOffCart,\n                    id: 'add-to-cart-warning-dialog'\n                })\n            );\n\n            document.body.appendChild(fragment);\n            addToCartWarningDialog = queryFirst('#add-to-cart-warning-dialog');\n        }\n\n        $(addToCartWarningDialog).modal('show');\n    } else {\n        const messageType = response.error ? 'alert-danger' : 'alert-success';\n        // show add to cart toast\n        remove(queryAll('.add-to-cart-messages'));\n\n        let addToCartMessages = queryFirst('.add-to-cart-messages');\n        if (!addToCartMessages) {\n            document.body.appendChild(renderFragment('<div class=\"add-to-cart-messages\"></div>'));\n            addToCartMessages = queryFirst('.add-to-cart-messages');\n        }\n\n        addToCartMessages.appendChild(renderFragment(addToCartAlert(messageType, response.message)));\n\n        setTimeout(() => {\n            remove(queryAll('.add-to-basket-alert'));\n        }, 5000);\n    }\n}\n\n/**\n *\n * @param {Object} container - product container html element\n * @param {boolean} [isSoldOut] isSoldOut flag\n */\nfunction updatePriceBlock(container, isSoldOut) {\n    const soldoutMsgEl = queryFirst(SELECTOR_SOLDOUT_MSG, container);\n    const tilePriceWrapperEl = queryFirst(SELECTOR_TILE_PRICE_WRAPPER, container);\n\n    toggleClass(soldoutMsgEl, HIDDEN_CLASS, !isSoldOut);\n    toggleClass(tilePriceWrapperEl, HIDDEN_CLASS, isSoldOut);\n}\n\n/**\n *\n * @param {Object} container - product container html element\n * @param {int} selectedColorValue - selected color id\n * @param {string} selectedSizeValue - Selected size value\n * @param {Object} [productInventory] Product inventory object\n */\nasync function updateCTAs(container, selectedColorValue, selectedSizeValue, productInventory) {\n    const addToCartButton = queryFirst('.js-add-to-cart', container) || queryFirst('#wishlists-add-to-cart .js-add-to-cart');\n    const notifyMeButton = queryFirst('.js-wishlist-notify-me.js-desktop-notify-me', container);\n    const availabilityMsg = queryFirst('js-wishlist-availability-msg', container);\n    const clubLillySignIn = queryFirst(SELECTOR_EARLY_ACCESS_CTA_SIGN_IN, container);\n    // join\n    const clubLillySignUp = queryFirst(SELECTOR_EARLY_ACCESS_CTA_SIGN_UP, container);\n    if (clubLillySignIn) {\n        addClass(clubLillySignIn, HIDDEN_CLASS);\n    }\n    if (clubLillySignUp) {\n        addClass(clubLillySignUp, HIDDEN_CLASS);\n    }\n\n    if (addToCartButton) {\n        addClass(addToCartButton, HIDDEN_CLASS);\n        removeClass(addToCartButton, 'valid-data');\n        addToCartButton.disabled = true;\n    }\n    addClass(notifyMeButton, HIDDEN_CLASS);\n    addClass(availabilityMsg, HIDDEN_CLASS);\n\n    const productInfoVariants = getProductInfo(container);\n    const product = productInfoVariants ? productInfoVariants[selectedColorValue] : null;\n\n    let customerData;\n    const isEarlyAccessProduct = product?.earlyAccess?.isEarlyAccessProduct;\n\n    if (isEarlyAccessProduct) {\n        customerData = await getCustomerData();\n\n        if (customerData.isAuthenticated) {\n            if (customerData.isLoyaltyMember) {\n                addToCartButton.disabled = !selectedSizeValue;\n                addClass(addToCartButton, 'valid-data');\n                removeClass(addToCartButton, HIDDEN_CLASS);\n            } else {\n                removeClass(clubLillySignUp, HIDDEN_CLASS);\n            }\n        } else {\n            removeClass(clubLillySignIn, HIDDEN_CLASS);\n        }\n    }\n\n    if (!addToCartButton) {\n        // if not add to cart, other also should be N/A\n        return;\n    }\n\n    if (!selectedSizeValue) {\n        if (!isEarlyAccessProduct) {\n            removeClass(addToCartButton, HIDDEN_CLASS);\n        }\n        return;\n    }\n\n    if (!product) {\n        return;\n    }\n    const { ID: pid, isNotifyMeEnabled, isDirectlyPurchasable, forceOutOfStock } = product.sizes[selectedSizeValue];\n\n    const { masterId } = container.dataset;\n\n    productInventory = productInventory || (await getProductInventoryData(masterId));\n\n    if (!productInventory?.variants?.[pid]) {\n        return;\n    }\n\n    const { message: availabilityMessage, availabilityStatus } = productInventory.variants[pid];\n\n    const isInStockAvailability = availabilityStatus === IN_STOCK;\n    const isNotAvailableAvailability = availabilityStatus === NOT_AVAILABLE;\n    const isPreorderAvailability = availabilityStatus === PREORDER;\n\n    if (!isEarlyAccessProduct) {\n        if (!isDirectlyPurchasable) {\n            addToCartButton.disabled = true;\n            removeClass(addToCartButton, 'valid-data');\n            addClass([notifyMeButton], HIDDEN_CLASS);\n        } else if (availabilityStatus !== NOT_AVAILABLE && !forceOutOfStock) {\n            addToCartButton.disabled = false;\n            removeClass([addToCartButton], HIDDEN_CLASS);\n            addClass(addToCartButton, 'valid-data');\n        } else {\n            addToCartButton.disabled = true;\n            removeClass(addToCartButton, 'valid-data');\n            if (isNotifyMeEnabled) {\n                removeClass([notifyMeButton], HIDDEN_CLASS);\n            } else {\n                removeClass([addToCartButton], HIDDEN_CLASS);\n                addClass([notifyMeButton], HIDDEN_CLASS);\n            }\n        }\n\n        toggleClass(availabilityMsg, HIDDEN_CLASS, !isPreorderAvailability);\n\n        if (isPreorderAvailability) {\n            const availabilityMsgText = queryFirst(SELECTOR_AVAILABILITY_MSG_TEXT, container);\n\n            availabilityMsgText.innerHTML = availabilityMessage;\n        }\n    }\n    updatePriceBlock(container, (isNotAvailableAvailability || isPreorderAvailability));\n}\n\n/**\n * Size Change handler\n * @param {*} container item container\n * @param {*} sizeEl size element\n * @param {*} selectedSizeValue selected size value\n */\nasync function onSizeChangeHandler(container, sizeEl, selectedSizeValue) {\n    const { masterId, colorId } = container.dataset;\n    const productInventory = await getProductInventoryData(masterId);\n\n    removeClass(queryAll(SELECTOR_SIZE_BTN, container), CLASS_SIZE_SELECTED);\n    addClass(sizeEl, CLASS_SIZE_SELECTED);\n    const sizeContainer = sizeEl.closest(SELECTOR_SIZE_SELECTOR);\n    const assistiveElements = queryAll(SELECTOR_SIZE_SELECTED_ASSISTIVE_TEXT, sizeContainer);\n    assistiveElements.forEach(eachElement => {\n        const { outOfStock } = eachElement.dataset;\n        if (eachElement.textContent.includes(outOfStock)) {\n            eachElement.textContent = outOfStock;\n        } else {\n            eachElement.textContent = '';\n        }\n    });\n\n    const isOOS = hasClass(sizeEl, NOT_AVAILABLE_CLASS);\n    const assistiveElementOfSelected = queryFirst(SELECTOR_SIZE_SELECTED_ASSISTIVE_TEXT, sizeEl.closest(SELECTOR_SIZE_LIST));\n    if (assistiveElementOfSelected) {\n        const { selectedText, outOfStock } = assistiveElementOfSelected.dataset;\n        assistiveElementOfSelected.textContent = selectedText;\n        if (isOOS) {\n            assistiveElementOfSelected.textContent += ' ' + outOfStock;\n        }\n    }\n\n    const { imgOosCls } = container.dataset;\n    const tileSlideImages = queryAll('.js-tile-slide-img', container);\n    container.dataset.pid = sizeEl.dataset.variationId;\n\n    toggleClass(tileSlideImages, imgOosCls, isOOS);\n\n    updateCTAs(container, colorId, selectedSizeValue, productInventory);\n}\n\n/**\n * Generates the modal window on the first call.\n *\n */\nfunction getModalHtmlElement() {\n    if ($('#editProductModal').length !== 0) {\n        $('#editProductModal').remove();\n    }\n    const htmlString =\n        '<!-- Modal -->' +\n        '<div class=\"modal fade\" id=\"editWishlistProductModal\" tabindex=\"-1\" role=\"dialog\">' +\n        '<span class=\"enter-message sr-only\" ></span>' +\n        '<div class=\"modal-dialog quick-view-dialog\">' +\n        '<!-- Modal content-->' +\n        '<div class=\"modal-content\">' +\n        '<div class=\"modal-header\">' +\n        '    <button type=\"button\" class=\"close pull-right\" data-dismiss=\"modal\">' +\n        '        <span aria-hidden=\"true\">&times;</span>' +\n        '        <span class=\"sr-only\"> </span>' +\n        '    </button>' +\n        '</div>' +\n        '<div class=\"modal-body\"></div>' +\n        '<div class=\"modal-footer\"></div>' +\n        '</div>' +\n        '</div>' +\n        '</div>';\n    $body.append(htmlString);\n}\n\n/**\n * Parses the html for a modal window\n * @param {string} html - representing the body and footer of the modal window\n *\n * @return {Object} - Object with properties body and footer.\n */\nfunction parseHtml(html) {\n    const $html = $('<div>').append($.parseHTML(html));\n\n    const body = $html.find('.product-quickview');\n    const footer = $html.find('.modal-footer').children();\n\n    return { body: body, footer: footer };\n}\n\n/**\n * replaces the content in the modal window for product variation to be edited.\n * @param {string} editProductUrl - url to be used to retrieve a new product model\n */\nfunction fillModalElement(editProductUrl) {\n    const $sheet = $('.sheet.show .sheet-dialog');\n    $sheet.spinner().start();\n\n    $.ajax({\n        url: editProductUrl,\n        method: 'GET',\n        dataType: 'json',\n        success: function (data) {\n            const parsedHtml = parseHtml(data.renderedTemplate);\n            $('#editWishlistProductModal .modal-body').empty();\n            $('#editWishlistProductModal .modal-body').html(parsedHtml.body);\n            $('#editWishlistProductModal .modal-footer').html(parsedHtml.footer);\n            $('#editWishlistProductModal .modal-header .close .sr-only').text(data.closeButtonText);\n            $('#editWishlistProductModal .enter-message').text(data.enterDialogMessage);\n            $('#editWishlistProductModal').modal('show');\n            $body.trigger('editwishlistproduct:ready');\n            $.spinner().stop();\n        },\n        error: function () {\n            $sheet.spinner().stop();\n        }\n    });\n}\n\n/**\n * show toast response\n * @param {Object} res - from the call to set the public status of a list or item in a list\n */\nfunction showResponseMsg(res) {\n    $.spinner().stop();\n    let status;\n\n    if (res.success) {\n        status = 'alert-success';\n    } else {\n        status = 'alert-danger';\n    }\n\n    if ($('.add-to-wishlist-messages').length === 0) {\n        $body.append('<div class=\"add-to-wishlist-messages \"></div>');\n    }\n\n    $('.add-to-wishlist-messages').append('<div class=\"add-to-wishlist-alert text-center ' + status + '\">' + res.msg + '</div>');\n\n    setTimeout(function () {\n        $('.add-to-wishlist-messages').remove();\n    }, 3000);\n}\n\n/**\n * renders the list up to a given page number\n * @param {number} pageNumber - current page number\n * @param {string} focusElementSelector - selector of the element to focus on\n * @param {HTMLElement} focusElement - element to focus on\n */\nasync function renderNewPageOfItems(pageNumber, focusElementSelector, focusElement) {\n    const { publicView, uuid, href } = queryFirst('.wishlistItemCardsData').dataset;\n    const scrollPosition = document.documentElement.scrollTop;\n    const isLoggedInState = !!queryFirst('.js-account-active');\n\n    await fetch(`${href}?pageNumber=${pageNumber}&publicView=${publicView}&id=${uuid}`, {\n        method: 'GET',\n        headers: {\n            'Content-Type': 'application/json'\n        }\n    })\n        .then(response => {\n            if (!response.ok) {\n                throw new Error('Network response was not ok');\n            }\n            return response.text();\n        })\n        .then(data => {\n            // Clear the wishlistItemCardsWrapper content\n            queryFirst('.wishlistItemCardsWrapper').innerHTML = '';\n\n            // Replace the wishlistItemCardsWrapper with the new HTML content\n            queryFirst('body .wishlistItemCardsWrapper').outerHTML = data;\n\n            if (isLoggedInState) {\n                addClass(queryFirst('body .wishlistItemCardsWrapper'), 'logged-in-state');\n            }\n\n            scrollTo(mainPageContent.offsetTop);\n\n            if (focusElementSelector) {\n                queryFirst(focusElementSelector).focus();\n            } else if (focusElement) {\n                focusElement.focus();\n            } else {\n                // Fallback to scroll position\n                document.documentElement.scrollTop = scrollPosition;\n            }\n\n            // Stop spinner\n            $.spinner().stop();\n        })\n        .catch(error => {\n            console.error('Error:', error);\n\n            // Stop spinner on failure\n            $.spinner().stop();\n        });\n}\n\n/**\n * Input validation\n * @param {HTMLInputElement} input input\n * @param {HTMLElement} invalidFeedback validation message\n */\nfunction validateInputCallback(input, invalidFeedback) {\n    const listNameTrimText = input && input.value && input.value.trim();\n    const { missingError, patternMismatch } = input.dataset;\n    if (!listNameTrimText) {\n        addClass(input, INVALID_CLASS);\n        invalidFeedback.textContent = missingError;\n    } else if (!WISHLIST_NAME_REGEX.test(listNameTrimText)) {\n        addClass(input, INVALID_CLASS);\n        invalidFeedback.textContent = patternMismatch;\n    } else {\n        removeClass(input, INVALID_CLASS);\n    }\n}\n\n/**\n * Handles creating wish list action\n */\nfunction handleCreateWishList() {\n    const createNewCollection = queryFirst('.create-list-collection');\n    const listNameInput = queryFirst('#list-name');\n    const invalidFeedback = queryFirst('.invalid-feedback', createNewCollection);\n    const sheetContainer = queryFirst('.wishlist-sheet');\n    const $sheet = $('#create-wishlist .sheet-dialog');\n    listNameInput.value = '';\n    removeClass(sheetContainer, INVALID_CLASS);\n    removeClass(listNameInput, INVALID_CLASS);\n    invalidFeedback.textContent = '';\n    listNameInput.addEventListener('blur', function (e) {\n        validateInputCallback(listNameInput, invalidFeedback);\n    });\n\n    $(queryFirst('.wishlist-sheet'))\n        .off('click')\n        .on('click', '.add-new-list', async function (e) {\n            e.preventDefault();\n            const createCollectionLink = configElement?.dataset?.createCollectionLink || '';\n            if (!createCollectionLink) {\n                return;\n            }\n            let listName = listNameInput.value && listNameInput.value.trim();\n\n            if (!listName || !WISHLIST_NAME_REGEX.test(listName)) {\n                addClass(sheetContainer, INVALID_CLASS);\n                return;\n            }\n\n            invalidFeedback.textContent = '';\n\n            removeClass(sheetContainer, INVALID_CLASS);\n            removeClass(listNameInput, INVALID_CLASS);\n            listName = listName.replace(/\\s\\s+/g, ' ');\n            $sheet.spinner().start();\n\n            const form = {\n                wishlistName: listName\n            };\n\n            await fetch(createCollectionLink, {\n                method: 'POST',\n                body: toFormData(form)\n            })\n                .then(response => response.json())\n                .then(data => {\n                    $sheet.spinner().stop();\n\n                    if (data.success) {\n                        const wishlistMgr = WishlistItemsMgr.getInstance();\n                        wishlistMgr.updateWishlistItems(data.wishlistItems);\n\n                        const wishlistShowLink = configElement?.dataset?.wishlistShowLink || '';\n                        if (wishlistShowLink) {\n                            const url = new URL(wishlistShowLink, window.location.origin);\n                            url.searchParams.set('id', data.wishListUUID);\n                            $('#create-wishlist').modal('hide');\n                            $.spinner().start();\n                            window.location.href = url.toString();\n                        }\n                    } else {\n                        invalidFeedback.textContent = data.msg;\n                        addClass(listNameInput, INVALID_CLASS);\n                    }\n                })\n                .catch(error => {\n                    console.error('Error:', error);\n                });\n        });\n}\n\n/**\n * Handles editing wish list action\n */\nfunction handleEditWishList() {\n    const editCollection = queryFirst('.edit-list-collection');\n    const listNameInput = queryFirst('#list-name', editCollection);\n    const sheetContainer = queryFirst('.wishlist-sheet');\n    const $sheet = $('.sheet.show .sheet-dialog');\n    const invalidFeedback = queryFirst('.invalid-feedback', editCollection);\n    removeClass(sheetContainer, INVALID_CLASS);\n    removeClass(listNameInput, INVALID_CLASS);\n    invalidFeedback.textContent = '';\n    listNameInput.addEventListener('blur', function (e) {\n        validateInputCallback(listNameInput, invalidFeedback);\n    });\n\n    $(queryFirst('.wishlist-sheet-edit')).on('click', '.js-edit-list', async function (e) {\n        e.preventDefault();\n        const editCollectionLink = configElement?.dataset?.editCollectionLink || '';\n        const { listId: id } = this.dataset;\n        if (!editCollectionLink || !id) {\n            return;\n        }\n        let listName = listNameInput.value && listNameInput.value.trim();\n\n        if (!listName || !WISHLIST_NAME_REGEX.test(listName)) {\n            addClass(sheetContainer, INVALID_CLASS);\n            return;\n        }\n        invalidFeedback.textContent = '';\n\n        removeClass(sheetContainer, INVALID_CLASS);\n        removeClass(listNameInput, INVALID_CLASS);\n        listName = listName.replace(/\\s\\s+/g, ' ');\n        $sheet.spinner().start();\n\n        const form = {\n            id,\n            wishlistName: listName\n        };\n        await fetch(editCollectionLink, {\n            method: 'POST',\n            body: toFormData(form)\n        })\n            .then(response => response.json())\n            .then(data => {\n                $sheet.spinner().stop();\n\n                if (data.success) {\n                    const wishlistMgr = WishlistItemsMgr.getInstance();\n                    wishlistMgr.updateWishlistItems(data.wishlistItems);\n                    $('#edit-wishlist').modal('hide');\n                    $.spinner().start();\n                    window.location.reload();\n                } else {\n                    invalidFeedback.textContent = data.msg;\n                    addClass(listNameInput, INVALID_CLASS);\n                }\n            })\n            .catch(error => {\n                $sheet.spinner().stop();\n                $('#edit-wishlist').modal('hide');\n                console.error('Error:', error);\n            });\n    });\n    $(queryFirst('.wishlist-sheet-edit')).on('click', '.js-remove-list', function (e) {\n        e.preventDefault();\n        addClass(queryFirst('.js-wishlist-edit-item'), HIDDEN_CLASS);\n        addClass(queryFirst('.js-edit-action'), HIDDEN_CLASS);\n        removeClass(queryFirst('.js-wishlist-remove-confirmation'), HIDDEN_CLASS);\n        removeClass(queryFirst('.js-wishlist-confirm-action'), HIDDEN_CLASS);\n    });\n    $(queryFirst('.wishlist-sheet-edit')).on('click', '.js-confirm-remove', async function (e) {\n        e.preventDefault();\n        const removeCollectionLink = configElement?.dataset?.removeCollectionLink || '';\n        const { listId: id } = this.dataset;\n        if (!removeCollectionLink || !id) {\n            return;\n        }\n        $sheet.spinner().start();\n\n        const form = {\n            id\n        };\n        await fetch(removeCollectionLink, {\n            method: 'POST',\n            body: toFormData(form)\n        })\n            .then(response => response.json())\n            .then(data => {\n                $sheet.spinner().stop();\n                if (data.success) {\n                    const loggedIn = queryFirst('.username');\n                    const dataset = configElement?.dataset;\n                    const showCollectionsLink = (loggedIn ? dataset?.wishlistsShowLoggedInLink : dataset?.wishlistsShowLink) || '';\n                    if (!showCollectionsLink) {\n                        return;\n                    }\n                    const wishlistMgr = WishlistItemsMgr.getInstance();\n                    wishlistMgr.updateWishlistItems(data.wishlistItems);\n                    const url = new URL(showCollectionsLink, window.location.origin);\n                    history.replaceState({}, '', url.toString());\n                    $('#edit-wishlist').modal('hide');\n                    $.spinner().start();\n                    window.location.reload();\n                } else {\n                    $('#edit-wishlist').modal('hide');\n                }\n            })\n            .catch(error => {\n                $('#edit-wishlist').modal('hide');\n                $sheet.spinner().stop();\n                console.error('Error:', error);\n            });\n    });\n    $(queryFirst('.wishlist-sheet-edit')).on('click', '.js-cancel-remove', function (e) {\n        $('#edit-wishlist').modal('hide');\n    });\n}\n\n/**\n * Toogle Size chart and select needed category\n * @param {Object} element - Size chart link element\n * @param {Object} prodSizeChart) - Size chart window element\n * @param {Object} productInfo - Product info element\n */\nfunction toogleActiveSizeChartTab(element, prodSizeChart, productInfo) {\n    const $lpSlideout = $('.lp-sizechart');\n    const $prodSizeChart = $(prodSizeChart);\n    const { defaulttext: defaultText } = element.dataset;\n    const { sizefamily: activeCategoryVal } = productInfo.dataset;\n    const $activeCategoryEl = $prodSizeChart.find(`a[href=\"#${activeCategoryVal}-size\"]`);\n    const $lpSizechartTitle = $prodSizeChart.find('.lp-sizechart-category-btn');\n    $lpSizechartTitle.focus();\n    $activeCategoryEl.tab('show');\n    $lpSizechartTitle.text($activeCategoryEl.text().length ? $activeCategoryEl.text() : defaultText);\n\n    prodSizeChart.animate([{ right: '-100px' }, { right: '0' }], {\n        duration: 500,\n        fill: 'forwards'\n    });\n\n    addClass(prodSizeChart, ACTIVE_CLASS);\n    $lpSlideout.toggleClass('lp-slideout-open');\n    $body.toggleClass('no-scroll size-chart-visible');\n}\n\nexport default {\n    /**\n     * Old event start need to verify if they still actual after redisign\n     */\n\n    viewProductViaEdit: function () {\n        $body.on('click', '.edit-add-to-wishlist .edit', function (e) {\n            e.preventDefault();\n\n            const editProductUrl = $(this).attr('href');\n            $(e.target).trigger('editwishlistproduct:show');\n            getModalHtmlElement();\n            fillModalElement(editProductUrl);\n        });\n    },\n\n    viewProductViaSelectAttribute: function () {\n        $body.on('click', '.select-attributes-btn', function (e) {\n            e.preventDefault();\n\n            const editProductUrl = $(this).data('get-product-url');\n            getModalHtmlElement();\n            fillModalElement(editProductUrl);\n        });\n    },\n\n    focusEditWishlistProductModal: function () {\n        $body.on('shown.bs.modal', '#editWishlistProductModal', function () {\n            $('#editWishlistProductModal').siblings().attr('aria-hidden', 'true');\n            $('#editWishlistProductModal .close').focus();\n        });\n    },\n\n    onClosingEditWishlistProductModal: function () {\n        $body.on('hidden.bs.modal', '#editWishlistProductModal', function () {\n            $('#editWishlistProductModal').remove();\n            $('.modal-backdrop').remove();\n            $body.removeClass('modal-open');\n\n            $('#editWishlistProductModal').siblings().attr('aria-hidden', 'false');\n        });\n    },\n\n    trapEditWishlistProductModalFocus: function () {\n        $body.on('keydown', '#editWishlistProductModal', function (e) {\n            const focusParams = {\n                event: e,\n                containerSelector: '#editWishlistProductModal',\n                firstElementSelector: '.close',\n                lastElementSelector: '.btn-update-wishlist-product',\n                nextToLastElementSelector: '.select-size'\n            };\n            focusHelper.setTabNextFocus(focusParams);\n        });\n    },\n\n    updateWishlistUpdateButton: function () {\n        $body.on('product:updateAddToCart', function (e, response) {\n            response.$productContainer.find('.btn-update-wishlist-product').attr('disabled', !response.product.readyToOrder || !response.product.available);\n        });\n    },\n\n    updateWishListItem: function () {\n        $body.on('click', '.btn-update-wishlist-product', function (e) {\n            e.preventDefault();\n\n            const updateButtonBlock = $(this).closest('.wishlist-item-update-button-block').find('.update-wishlist-url');\n            const updateProductUrl = updateButtonBlock.val();\n            const uuid = updateButtonBlock.data('uuid');\n\n            const form = {\n                uuid: uuid,\n                pid: base.getPidValue($(this))\n            };\n\n            $('#editWishlistProductModal').spinner().start();\n\n            $.ajax({\n                url: updateProductUrl,\n                type: 'post',\n                context: this,\n                data: form,\n                dataType: 'json',\n                success: function () {\n                    $.spinner().start();\n                    $('#editWishlistProductModal').spinner().stop();\n                    $('#editWishlistProductModal').remove();\n                    $('.modal-backdrop').remove();\n                    $body.removeClass('modal-open');\n                    const pageNumber = $('.wishlistItemCardsData').data('page-number') - 1;\n                    renderNewPageOfItems(pageNumber, '.product-info .edit-add-to-wishlist .edit:first');\n                },\n                error: function () {\n                    const msg = $('.btn-update-wishlist-product').data('error-msg');\n\n                    $('#editWishlistProductModal').spinner().stop();\n                    $('#editWishlistProductModal').remove();\n                    $('.modal-backdrop').remove();\n                    $body.removeClass('modal-open');\n\n                    if ($('.update-wishlist-messages').length === 0) {\n                        $body.append('<div class=\"update-wishlist-messages \"></div>');\n                    }\n\n                    $('.update-wishlist-messages').append('<div class=\"update-wishlist-alert text-center alert-danger\">' + msg + '</div>');\n\n                    setTimeout(function () {\n                        $('.update-wishlist-messages').remove();\n                    }, 5000);\n                }\n            });\n        });\n    },\n    /**\n     * Old event end need to verify if they still actual after redisign\n     */\n    handleWishlistsModalAction: function () {\n        $body.on('click', '.js-create-wishlist', function (e) {\n            $('#create-wishlist').modal('show');\n            handleCreateWishList(false);\n        });\n        $body.on('click', '.js-edit-wishlist', function (e) {\n            removeClass(queryFirst('.js-wishlist-edit-item'), HIDDEN_CLASS);\n            removeClass(queryFirst('.js-edit-action'), HIDDEN_CLASS);\n            addClass(queryFirst('.js-wishlist-remove-confirmation'), HIDDEN_CLASS);\n            addClass(queryFirst('.js-wishlist-confirm-action'), HIDDEN_CLASS);\n            $('#edit-wishlist').modal('show');\n            const { uuid, name: listName } = this.dataset;\n            handleEditWishList(listName, uuid);\n        });\n        $body.on('click', '.js-share-wishlist', async function (e) {\n            e.preventDefault();\n            e.stopPropagation();\n            const button = this;\n            const { shareUrl, shareTitle, shareText, sharePublic, listUuid } = button.dataset;\n\n            if (sharePublic !== 'true') {\n                const url = configElement?.dataset?.wishlistsTogglePublic || '';\n                if (!url) {\n                    return;\n                }\n                await fetch(url, {\n                    method: 'POST',\n                    body: toFormData({\n                        listID: listUuid\n                    })\n                })\n                    .then(response => response.json())\n                    .then(data => {\n                        if (!data.error) {\n                            button.dataset.sharePublic = 'true';\n                            showShareDialogs(shareTitle, shareText, shareUrl);\n                        }\n                    })\n                    .catch(error => {\n                        console.error('Error:', error);\n                    });\n            } else {\n                showShareDialogs(shareTitle, shareText, shareUrl);\n            }\n        });\n    },\n    copyShareLink: function () {\n        $('#share-wishlist').on('click', '.js-copy-link', () => {\n            const { value: copyShareLinkText } = queryFirst('.js-copy-text').dataset;\n\n            /* Copy the text */\n            navigator.clipboard.writeText(copyShareLinkText);\n            $('#share-wishlist').modal('hide');\n        });\n    },\n    titleDropDown: function () {\n        $body.on('click', '.js-collection-header', () => {\n            toggleClass(queryFirst('.js-wishlists-dropdown'), HIDDEN_CLASS);\n        });\n        // Handle click outside the dropdown and header\n        $body.on('click', e => {\n            const collectionHeader = queryFirst('.js-collection-header');\n            const dropdown = queryFirst('.js-wishlists-dropdown');\n\n            // Check if the click is outside the header and dropdown\n            if (dropdown && collectionHeader && !collectionHeader.contains(e.target) && !dropdown.contains(e.target)) {\n                // Add the hidden class if clicked outside\n                addClass(dropdown, HIDDEN_CLASS);\n            }\n        });\n    },\n    selectedList: function () {\n        $body.on('click', '.alert-dialog-text', function (e) {\n            $body.trigger('wishlist:viewselected');\n        });\n    },\n    removeFromWishlist: function () {\n        $body.on('click', '.js-remove-from-wishlist', async function (e) {\n            e.preventDefault();\n            const { target } = e;\n            const { url, uuid, listId, undoMessage, pid } = target.dataset;\n            const urlParams = { uuid: uuid, id: listId };\n            const actionUrl = appendToUrl(url, urlParams);\n\n            $.spinner().start();\n            await fetch(actionUrl, {\n                method: 'GET',\n                headers: {\n                    'Content-Type': 'application/json'\n                }\n            })\n                .then(response => {\n                    if (!response.ok) {\n                        throw new Error('Network response was not ok');\n                    }\n                    return response.json();\n                })\n                .then(async data => {\n                    if (data.success) {\n                        updateWishlistCountMessage(data.wishListCountMessage);\n\n                        if (!data.wishlistItems.find(i => i.UUID === listId).items.length) {\n                            addClass(queryFirst('.js-share-wishlist'), HIDDEN_CLASS);\n                        }\n\n                        // Update Marketing Cloud Analytics trackWishlist event\n                        trackWishlist(data.marketingCloudAnalyticsData);\n\n                        // Update the wishlist manager items\n                        const wishlistMgr = WishlistItemsMgr.getInstance();\n                        wishlistMgr.updateWishlistItems(data.wishlistItems);\n\n                        // Get the current page number and next item\n                        const pageNumber = (queryFirst('.wishlistItemCardsData')?.dataset?.pageNumber || 1) - 1;\n                        const itemToRemove = queryFirst(`#wishlist-card-${uuid}`);\n                        const nextItem = itemToRemove.nextElementSibling;\n\n                        // Render the new page of items\n                        await renderNewPageOfItems(pageNumber, null, nextItem);\n\n                        const alertConfig = {\n                            alertTimeout: 5000,\n                            items: [\n                                {\n                                    text: undoMessage,\n                                    cta: [\n                                        {\n                                            text: 'Undo',\n                                            callback: async () => {\n                                                await addProductToWishlist(pid, listId, data.itemCreateTime);\n                                                await renderNewPageOfItems(pageNumber, null, itemToRemove);\n                                            }\n                                        }\n                                    ],\n                                    icon: queryFirst('.tile-image img', itemToRemove)\n                                }\n                            ],\n                            customCSSClass: ['wishlist-alert-dialog-removed'],\n                            focusAfterClose: nextItem,\n                            remainOnScroll: true\n                        };\n\n                        displayAlert(alertConfig);\n                    } else {\n                        $.spinner().stop();\n                        displayAlert(getErrorAlertConfig());\n                    }\n                })\n                .catch(error => {\n                    // Handle network or response error\n                    // Handle error case: Show an alert with error message\n                    console.error('Error:', error);\n\n                    $.spinner().stop();\n\n                    displayAlert(getErrorAlertConfig());\n                });\n        });\n    },\n    selectSizeAttribute: function () {\n        $body.on('click', SELECTOR_SIZE_BTN, async function (e) {\n            e.preventDefault();\n            if (!hasClass(this, 'selected')) {\n                const el = e.currentTarget;\n                const productTile = el.closest('.product-info');\n                const { attrValue: selectedSizeValue } = el.dataset;\n\n                await onSizeChangeHandler(productTile, el, selectedSizeValue);\n            }\n        });\n    },\n    validateEmail: notifyMe.validateEmail,\n    notifyMeSubmit: notifyMe.notifyMeSubmit,\n    setNotifyMeProductDetails: function () {\n        const customerEmail = (document.getElementById('notifyEmail') || {}).value;\n        if (customerEmail) {\n            queryFirst('.notify-email').value = customerEmail;\n        }\n        $body.on('click', '.js-wishlist-notify-me', function (e) {\n            e.preventDefault();\n            const el = e.currentTarget;\n            const container = el.closest('.product-info');\n            const { colorId } = container.dataset;\n\n            const productInfoVariants = getProductInfo(container);\n            const product = productInfoVariants ? productInfoVariants[colorId] : null;\n            const selectedSizeValue = queryFirst('.size-btn.selected', container)?.dataset?.attrValue || queryFirst('.size-btn', this.parentElement)?.dataset?.attrValue;\n            const pid = product.sizes[selectedSizeValue].ID;\n\n            const pidInput = queryFirst(SELECTOR_NOTIFY_ME_DIALOG_PID_INPUT);\n            pidInput.value = pid;\n            $('#wishlists-add-to-cart').modal('hide');\n        });\n    },\n    addToCartFromWishlist: function () {\n        $body.on('click', '.js-add-to-cart.valid-data', function (e) {\n            $.spinner().start();\n\n            $body.trigger('product:beforeAddToCart', this);\n\n            const container = this.closest('.product-info') || queryFirst('.product-info', this.closest('.wishlist-sheet'));\n            const { colorId } = container.dataset;\n\n            const productInfoVariants = getProductInfo(container);\n            const product = productInfoVariants ? productInfoVariants[colorId] : null;\n            const selectedSizeValue = queryFirst('.size-btn.selected', container)?.dataset?.attrValue;\n            const pid = product.sizes[selectedSizeValue].ID;\n            const { url, uuid, wishlistId } = this.dataset;\n            const itemToRemove = queryFirst(`#wishlist-card-${uuid}`);\n\n            const form = {\n                pid,\n                wishlistUUID: uuid,\n                listID: wishlistId\n            };\n\n            if (this.dataset.option) {\n                form.options = JSON.stringify(this.dataset.option);\n            }\n\n            $(this).trigger('updateAddToCartFormData', form);\n            if (url) {\n                getJSON(\n                    url,\n                    'POST',\n                    form,\n                    async data => {\n                        if (itemToRemove) {\n                            const { removedWishListItem } = data;\n                            if (removedWishListItem) {\n                                const pageNumber = (queryFirst('.wishlistItemCardsData')?.dataset?.pageNumber || 1) - 1;\n\n                                const nextItem = itemToRemove.nextElementSibling;\n                                await renderNewPageOfItems(pageNumber, null, nextItem);\n                                updateWishlistCountMessage(data.wishListCountMessage);\n                            }\n                        }\n                        handlePostCartAdd(data);\n                        $body.trigger('product:afterAddToCart', data);\n                        $('#wishlists-add-to-cart').modal('hide');\n                        $.spinner().stop();\n                    },\n                    () => {\n                        $.spinner().stop();\n                    }\n                );\n            }\n        });\n        $body.on('click', '.js-add-to-cart', async function (e) {\n            if (!matchesBreakpoint('lg') && !hasClass(this, 'valid-data')) {\n                const wishlistCardContainer = this.closest('.wishlist-card-container');\n                const modalItemsContainer = queryFirst('.js-wishlist-item-container');\n                const container = this.closest('.product-info');\n                const { colorId, masterId } = container.dataset;\n\n                const productInfoVariants = getProductInfo(container);\n                const product = productInfoVariants ? productInfoVariants[colorId] : null;\n                const productInventory = await getProductInventoryData(masterId);\n                const sheetAddToTote = queryFirst('.js-sheet-add-tote');\n                modalItemsContainer.innerHTML = '';\n                sheetAddToTote.innerHTML = '';\n                const wishlistCloneContainer = wishlistCardContainer.cloneNode(true);\n                modalItemsContainer.innerHTML = wishlistCloneContainer.outerHTML;\n                const addToToteButtons = queryFirst('.add-to-cart-wishList', modalItemsContainer);\n\n                if (addToToteButtons) {\n                    sheetAddToTote.appendChild(addToToteButtons);\n                    queryFirst('.js-add-to-cart', addToToteButtons).disabled = true;\n                }\n                const notifyMeButton = queryFirst('.js-wishlist-notify-me', wishlistCardContainer);\n\n                queryAll(SELECTOR_SIZE_BTN, modalItemsContainer).forEach(btn => {\n                    const { valueId: selectedSizeValue } = btn.dataset;\n                    const { message: availabilityMessage, availabilityStatus, isLowInventory } = productInventory.variants[product.sizes[selectedSizeValue].ID];\n\n                    const isInStockAvailability = availabilityStatus === IN_STOCK;\n                    const isNotAvailableAvailability = availabilityStatus === NOT_AVAILABLE;\n                    if (!isInStockAvailability || isLowInventory) {\n                        const newSpan = document.createElement('span');\n                        newSpan.textContent = availabilityMessage;\n                        addClass(newSpan, 'js-sheet-availability-msg', 'wishlist-sheet-availability');\n                        if (isNotAvailableAvailability) {\n                            btn.disabled = true;\n                            addClass(newSpan, NOT_AVAILABLE_CLASS);\n                        }\n                        const btnWrapper = btn.parentElement;\n                        btnWrapper.appendChild(newSpan);\n\n                        if (isNotAvailableAvailability) {\n                            const notifyMeButtonClone = notifyMeButton.cloneNode(true);\n                            removeClass(notifyMeButtonClone, HIDDEN_CLASS);\n                            removeClass(notifyMeButtonClone, 'js-desktop-notify-me');\n                            btnWrapper.appendChild(notifyMeButtonClone);\n                        }\n                    }\n                });\n\n                $('#wishlists-add-to-cart').modal('show');\n            } else {\n                e.preventDefault();\n                return false;\n            }\n            return true;\n        });\n    },\n    moreWLItems: function () {\n        $body.on('click', '.more-wishlist-items', e => {\n            const { target } = e;\n            const { pageNumber } = target.dataset;\n            $.spinner().start();\n            renderNewPageOfItems(pageNumber);\n        });\n    },\n    sizeChart: function () {\n        const prodSizeChart = queryFirst('.size-chart-collapsible');\n        $('body').on('click', '.size-chart-link', async e => {\n            e.preventDefault();\n            const { target } = e;\n            const { href } = target.dataset;\n            const productWraper = queryFirst('.product-info', target.closest('#wishlists-add-to-cart'));\n            const { sizeChartId } = productWraper.dataset;\n            const urlParams = { cid: sizeChartId };\n            const actionUrl = appendToUrl(href, urlParams);\n\n            const $lpSlideout = $('.lp-sizechart');\n            const setStickyNav = queryFirst('.custom-set-detail-sticky-nav');\n            if (!prodSizeChart.childNodes.length) {\n                await fetch(actionUrl, {\n                    method: 'GET',\n                    headers: {\n                        'Content-Type': 'application/json'\n                    }\n                })\n                    .then(response => {\n                        if (!response.ok) {\n                            throw new Error('Error');\n                        }\n                        return response.json();\n                    })\n                    .then(data => {\n                        prodSizeChart.appendChild(renderFragment(data.content));\n                    })\n                    .catch(error => {\n                        console.error('There was a problem with the fetch operation:', error);\n                    })\n                    .finally(() => {\n                        toogleActiveSizeChartTab(target, prodSizeChart, productWraper);\n                    });\n            } else {\n                toogleActiveSizeChartTab(target, prodSizeChart, productWraper);\n            }\n            if (setStickyNav) {\n                addClass(setStickyNav, HIDDEN_CLASS);\n            }\n            $lpSlideout.trigger('shown.lp.sizeguide');\n        });\n\n        $('body').on('click touchstart', function (e) {\n            if (e.target.matches('#sizechart-close') || (e.target.matches('.size-chart-bg') && hasClass(prodSizeChart, ACTIVE_CLASS))) {\n                removeClass(prodSizeChart, ACTIVE_CLASS);\n                removeClass(queryFirst('.lp-slideout'), 'lp-slideout-open');\n                $body.removeClass('no-scroll size-chart-visible');\n                queryFirst('.size-chart-link').focus(); // set focus back to trigger element\n            }\n        });\n    }\n};\n","'use strict';\n\nconst { ACTIVE_CLASS, DISPLAY_CLASS } = require('../constants');\nimport { queryFirst, queryAll, removeClass, addClass, hasClass } from '../domUtil';\n\nconst formValidation = require('base/components/formValidation');\nconst { clearForm } = require('../clientSideValidation').functions;\nconst { guestEmptyWishlistTemplate } = require('../templates');\nconst $body = $('body');\n\nconst giftCardContainerSelector = '.gift-card-main ';\nconst selectedClass = 'selected';\nlet isCustomerClickedToTheInput;\n\n/**\n * Function that sets hidden input value\n * @param { string } value - Gift card amount\n * @param { HTMLElement } giftCardContainer - Gift card container element\n */\nfunction updateHiddenAmountField(value, giftCardContainer) {\n    const amountHiddenInput = queryFirst('.gift-card-amount', giftCardContainer);\n\n    if (amountHiddenInput) {\n        amountHiddenInput.value = value;\n    }\n}\n\n/**\n * Displays error message in case of invalid swatch state\n * @param { HTMLElement } giftCardContainer - Gift card container Element\n */\nfunction displaySwatchErrorMessage(giftCardContainer) {\n    const amountHiddenInput = queryFirst('.gift-card-amount', giftCardContainer);\n    const attributesEl = queryFirst('.attributes', giftCardContainer);\n\n    if (amountHiddenInput && attributesEl) {\n        addClass(amountHiddenInput, 'is-invalid');\n        amountHiddenInput.nextElementSibling.innerText = attributesEl.dataset.invalidSwatchError;\n    }\n}\n\n/**\n * Checks if a selected swatch is not selectable/unavailable one\n * @param { HTMLElement } giftCardContainer - Gift card container Element\n * @returns { boolean } - a flag that states if currently selected swatch is valid or not\n */\nfunction isInvalidSwatchSelected(giftCardContainer) {\n    const selectedColorAttributeEl = queryFirst('.color-attribute .color-value.selected', giftCardContainer);\n\n    if (selectedColorAttributeEl && hasClass(selectedColorAttributeEl, 'unselectable')) {\n        return true;\n    }\n    return false;\n}\n\n/**\n * Clears giftcard error message\n * @param { HTMLElement } giftCardContainer - Gift card container element\n */\nfunction clearAmountErrorMessage(giftCardContainer) {\n    const amountHiddenInput = queryFirst('.gift-card-amount', giftCardContainer);\n    const invalidFeedback = queryFirst('.gift-card-add-to-cart', giftCardContainer).nextElementSibling;\n\n    removeClass(invalidFeedback, DISPLAY_CLASS);\n\n    if (hasClass(amountHiddenInput, 'is-invalid')) {\n        removeClass(amountHiddenInput, 'is-invalid');\n    }\n}\n\n/**\n * Method is taken from OOTB\n * Function that runs after adding GC to cart\n * @param { Object } response - Response Object\n */\nfunction postAddToCart(response) {\n    $('.minicart').trigger('count:update', response);\n    if (!response.error) {\n        return;\n    }\n    var messageType = response.error ? 'alert-danger' : 'alert-success';\n    if ($('.add-to-cart-messages').length === 0) {\n        $('body').append('<div class=\"add-to-cart-messages\"></div>');\n    }\n\n    $('.add-to-cart-messages').append('<div class=\"alert ' + messageType + ' add-to-basket-alert text-center\" role=\"alert\">' + response.message + '</div>');\n\n    setTimeout(function () {\n        $('.add-to-basket-alert').remove();\n    }, 5000);\n}\n\n/**\n * Event handler that runs on denomination change\n * @param { jQuery.event } event - event Object\n */\nfunction amountSelectionHandler(event) {\n    event.preventDefault();\n\n    // set to false if the value was selected from amount list\n    isCustomerClickedToTheInput = false;\n\n    const { target } = event;\n    const { attrValue } = target.dataset;\n\n    const giftCardContainer = target.closest(giftCardContainerSelector);\n\n    queryAll('.pill', giftCardContainer).forEach(item => {\n        if (attrValue === item.dataset.attrValue) {\n            addClass(item, selectedClass);\n        } else {\n            removeClass(item, selectedClass);\n        }\n    });\n\n    const customAmountInput = queryFirst('.custom-amount .js-gift-card-purchase-amount', giftCardContainer);\n    const customAmountAccordion = queryFirst('.js-custom-amount', giftCardContainer);\n    if (customAmountInput && attrValue && parseInt(attrValue, 10)) {\n        removeClass(customAmountAccordion, ACTIVE_CLASS);\n        customAmountInput.setAttribute('disabled', true);\n\n        clearAmountErrorMessage(giftCardContainer);\n        updateHiddenAmountField(attrValue, giftCardContainer);\n    }\n\n    const wishlistProductCard = target.closest('.wishlist-card-item');\n    if (wishlistProductCard) {\n        const addToToteButton = queryFirst('.btn.gift-card-add-to-cart', wishlistProductCard);\n        removeClass(addToToteButton, 'disabled');\n    }\n}\n\n/**\n * Event handler that runs on denomination change on the cart page\n * @param { jQuery.event } event - event Object\n */\nfunction amountSelectionHandlerCart(event) {\n    event.preventDefault();\n    const { target } = event;\n    const { attrValue, displayValue } = target.dataset;\n\n    const giftCardContainer = target.closest('.cart-gift-card');\n    const selectedGiftCardAmountLabel = queryFirst('.quick-gift-card-menu-toggle span', giftCardContainer);\n    if (!giftCardContainer || !selectedGiftCardAmountLabel) return false;\n\n    queryAll('.quick-gift-card-menu-option', giftCardContainer).forEach(item => {\n        if (attrValue === item.dataset.attrValue) {\n            addClass(item, selectedClass);\n            item.setAttribute('aria-selected', 'true');\n            selectedGiftCardAmountLabel.textContent = displayValue;\n            updateHiddenAmountField(attrValue, giftCardContainer);\n        } else {\n            removeClass(item, selectedClass);\n            item.setAttribute('aria-selected', 'false');\n        }\n    });\n}\n\n/**\n * Event handler that runs on disabled custom input element\n * @param { jQuery.event } event - event Object\n */\nfunction amountInputEnableHandler(event) {\n    const inputOverlay = event.target;\n    const giftCardContainer = inputOverlay.closest(giftCardContainerSelector);\n    const inputAccordion = queryFirst('.js-custom-amount', giftCardContainer);\n    const customAmountInput = queryFirst('.custom-amount .js-gift-card-purchase-amount', giftCardContainer);\n\n    if (customAmountInput.hasAttribute('disabled')) {\n        customAmountInput.removeAttribute('disabled');\n    }\n\n    if (hasClass(inputAccordion, ACTIVE_CLASS)) {\n        customAmountInput.focus();\n    }\n\n    removeClass(customAmountInput, 'is-invalid');\n}\n\n/**\n * Event handler that runs on custom input element value changes\n * @param { jQuery.event } event - event Object\n */\nfunction amountInputHandler(event) {\n    const { target } = event;\n    const giftCardContainer = target.closest(giftCardContainerSelector);\n\n    const items = queryAll('.pill', giftCardContainer);\n    removeClass(items, selectedClass);\n\n    const { value } = target;\n    if (value && parseInt(value, 10)) {\n        items.forEach(item => item.setAttribute('disabled', true));\n    } else {\n        items.forEach(item => item.removeAttribute('disabled'));\n    }\n\n    clearAmountErrorMessage(giftCardContainer);\n    updateHiddenAmountField(value, giftCardContainer);\n    const wishlistProductCard = target.closest('.wishlist-card-item');\n    if (wishlistProductCard) {\n        const addToToteButton = queryFirst('.btn.gift-card-add-to-cart', wishlistProductCard);\n        const disabledClass = 'disabled';\n        value ? removeClass(addToToteButton, disabledClass) : addClass(addToToteButton, disabledClass);\n    }\n}\n\n/**\n * Remove invalid class from amount input and add active class\n * @param { jQuery.event } event - event Object\n */\nfunction amountInputActivated(event) {\n    const { target } = event;\n    const giftCardContainer = target.closest(giftCardContainerSelector);\n    const amountInput = queryFirst('.js-gift-card-amount', giftCardContainer);\n    const invalidFeedback = queryFirst('.gift-card-add-to-cart', giftCardContainer).nextElementSibling;\n\n    removeClass(amountInput, 'is-invalid');\n    addClass(amountInput, 'gift-card-amount-activated');\n    removeClass(invalidFeedback, DISPLAY_CLASS);\n}\n\n/**\n * return error without call to backend if the input was clicked by customer\n * and customer clicks 'Add to Tote' without adding any value to the input field\n * @param { Object } formEl - form element\n * @returns {boolean} true or false\n */\nfunction showEmptyFieldError(formEl) {\n    const inputField = formEl.find('.js-pgc-amount');\n    const inputName = inputField && inputField.attr('name');\n    const inputErrMsg = inputField && inputField.attr('data-empty-value-msg');\n    if (inputName && inputErrMsg) {\n        formValidation(formEl, { fields: { [inputName]: inputErrMsg } });\n        return true;\n    }\n    return false;\n}\n\n/**\n * @param { HTMLFormElement } formEl - form element\n * @returns {boolean} true or false, true means error should be displayed\n */\nfunction showDecimalFieldError(formEl) {\n    const amountHiddenInput = queryFirst('.js-pgc-amount', formEl);\n    const amountVisibleInput = queryFirst('.js-gift-card-purchase-amount ', formEl);\n    const customAmountAccordion = queryFirst('.js-custom-amount', formEl);\n\n    if (!amountHiddenInput || !amountVisibleInput) {\n        return false;\n    }\n\n    const value = parseFloat(amountHiddenInput.value);\n    if (value % 1 === 0) {\n        return false;\n    }\n\n    if (!value) {\n        const invalidFeedback = queryFirst('.gift-card-add-to-cart', formEl).nextElementSibling;\n        addClass(invalidFeedback, DISPLAY_CLASS);\n    } else {\n        addClass(amountHiddenInput, 'is-invalid');\n    }\n\n    // Open the accordion if the very first action was to press the Add to Tote button\n    if (customAmountAccordion && !queryFirst('.pill.selected', formEl)) {\n        addClass(customAmountAccordion, 'active');\n    }\n\n    amountHiddenInput.nextElementSibling.innerText = amountVisibleInput.dataset.badInputError;\n    return true;\n}\n\n/**\n * Handles Gift card add to cart functionality\n * @param { jQuery.event } event - Event Object\n */\nfunction addToCart(event) {\n    event.preventDefault();\n    const { target } = event;\n    const formEl = $(target);\n\n    // return error without call\n    if (isCustomerClickedToTheInput && showEmptyFieldError(formEl)) return;\n    if (showDecimalFieldError(target)) return;\n\n    const targetCloseToCartPage = target.closest('.cart-page');\n    const isQuickGiftCardAddToCart = queryFirst('.cart-gift-card');\n\n    if (targetCloseToCartPage && !isQuickGiftCardAddToCart) {\n        return;\n    }\n\n    // Display an error message when an unselectable swatch is selected on page load\n    const pGiftCardContainer = target.closest('.p-gift-card-main');\n    if (pGiftCardContainer && isInvalidSwatchSelected(pGiftCardContainer)) {\n        displaySwatchErrorMessage(pGiftCardContainer);\n        return;\n    }\n\n    const { actionUrl } = target.dataset;\n\n    if (actionUrl) {\n        const spinner = $.spinner();\n        spinner.start();\n        $.ajax({\n            url: actionUrl,\n            method: 'POST',\n            data: formEl.serialize(),\n            success: function (response) {\n                spinner.stop();\n                if (response.success) {\n                    const wishlistCardItem = target.closest('.wishlist-card-item');\n                    if (wishlistCardItem) {\n                        const wishlistId = queryFirst('.wishlist-id', target).value;\n                        const { removedWishListItem, wishListCountMessage, updatedWishListCount, itemsMsg, shopNewAsset } = response;\n                        const selectedListDiv = queryFirst('.wishlists-lists-' + wishlistId);\n                        const detailsTabItemCount = queryFirst('.header-items-count');\n                        const listItemCount = queryFirst('.list-items-count', selectedListDiv);\n                        if (removedWishListItem & (updatedWishListCount > 0)) {\n                            wishlistCardItem.remove();\n                            detailsTabItemCount.textContent = updatedWishListCount + ' items';\n                            listItemCount.textContent = updatedWishListCount + ' items';\n                        } else if (removedWishListItem) {\n                            const emptyWishlistMarkup = guestEmptyWishlistTemplate(wishListCountMessage, shopNewAsset);\n                            const wishlistCardItems = queryFirst('.wishlistItemCards');\n                            if (wishlistCardItems) {\n                                detailsTabItemCount.textContent = updatedWishListCount + ' ' + itemsMsg;\n                                listItemCount.textContent = updatedWishListCount + ' ' + itemsMsg;\n                                wishlistCardItems.outerHTML = emptyWishlistMarkup;\n                            }\n                        }\n                    }\n                    postAddToCart(response);\n                    formEl.find('.form-control.is-invalid').removeClass('is-invalid');\n                    $body.trigger('product:afterAddToCart', response);\n                    $body.trigger('cart:triggerUpdate', response.cart);\n                } else {\n                    formValidation(formEl, response);\n                }\n            },\n            error: function () {\n                spinner.stop();\n            }\n        });\n    }\n}\n\n/**\n * Function that sets PID on swatch selection\n * @param { jQuery.event } _event - Event object\n * @param { Object } response - Response object\n */\nfunction setPid(_event, response) {\n    const giftCardContainer = response.container[0];\n    if (!hasClass(giftCardContainer, 'gift-card-main')) {\n        return;\n    }\n\n    // Update hidden fields on swatch changes\n    const giftCardProductIdInputs = queryAll('.gift-card-pid', giftCardContainer);\n    if (giftCardProductIdInputs.length) {\n        const { id } = response.data.product;\n\n        giftCardProductIdInputs.forEach(giftCardProductIdInput => (giftCardProductIdInput.value = id));\n        giftCardContainer.dataset.wishlistId = id;\n    }\n\n    // Clear Form errors on swatch changes\n    if (hasClass(giftCardContainer, 'p-gift-card-main')) {\n        const pGiftCardForm = queryFirst('form', giftCardContainer);\n        if (pGiftCardForm) {\n            clearForm(pGiftCardForm);\n        }\n    }\n}\n\nexport default {\n    initializeEvents: function () {\n        const customAmountInput = queryFirst(`${giftCardContainerSelector} .custom-amount .js-gift-card-purchase-amount`);\n        const pGiftCardForm = queryFirst(giftCardContainerSelector + '.gift-card');\n        // Default Amount selection event\n        $body.on('click', giftCardContainerSelector + '.amount-selector .pill', amountSelectionHandler);\n\n        // Custom amount input field enabling event\n        $body.on('click', giftCardContainerSelector + '.input-hidden-overlay', amountInputEnableHandler);\n\n        // Custom amount input field enabling event\n        $body.on('click', giftCardContainerSelector + '.js-custom-amount', amountInputEnableHandler);\n\n        // Custom amount field value changes event\n        $body.on('keyup', giftCardContainerSelector + '.custom-amount .form-control', amountInputHandler);\n\n        // Gift card form submit event\n        $body.off('submit.gcSubmit').on('submit.gcSubmit', pGiftCardForm, addToCart);\n\n        // Show error under CTA if entered symbols in the field and Add To Tote clicked\n        customAmountInput?.addEventListener('invalid', () => showDecimalFieldError(pGiftCardForm));\n\n        // Gift card swatch selection - Product ID updation event\n        $body.on('product:afterAttributeSelect', setPid);\n\n        // Quick add gift card on cart page amount selection event\n        $body.on('click', '.quick-gift-card-menu-dropdown .quick-gift-card-menu-option', amountSelectionHandlerCart);\n\n        // add boolean value to the isCustomerClickedToTheInput if it it QuickView of the Phisical Gift Card\n        // and customer did not add any value to the input field .js-pgc-purchase-amount\n        $body.on('blur', '.js-pgc-quickview-form .js-pgc-purchase-amount', function (e) {\n            isCustomerClickedToTheInput = !$(e.target).val();\n        });\n\n        // Remove invalid class from amount input and add active class\n        customAmountInput?.addEventListener('click', amountInputActivated);\n    }\n};\n","/**\n * OOTB file\n*/\n'use strict';\nimport wishlist from './wishlist/wishlist';\nimport giftCardDetail from './giftCard/giftCard';\nimport { queryFirst } from './domUtil';\nimport SwiperCarousel from './components/swiperCarousel';\nvar processInclude = require('base/util');\n\n$(document).ready(function () {\n    processInclude(wishlist);\n    processInclude(giftCardDetail);\n\n    SwiperCarousel.initCarousels(queryFirst('#wishlist'));\n});\n"],"names":["ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_defineProperty","i","Symbol","toPrimitive","call","TypeError","String","_toPrimitive","_toPropertyKey","defineProperty","value","configurable","writable","bind","queryAll","queryFirst","hasClass","require","toDatasetKey","hashValue","VIEW_PROMO","SELECT_PROMO","SELECT_ITEM","VIEW_ITEM_LIST","ADD_TO_CART","P_PRODUCT_LIST_KEY","P_PROMO_NAME_KEY","P_PROMO_CREATIVE_NAME","PERSISTED_DATA_NAME","STORAGE_EXP_TIME","gaInitKeyPrefix","gaRetriggerFlag","gaFieldPipe","customEventPattern","window","gaBindings","UDOProperties","UDOArrays","promoSensitiveEvents","productListSensitiveEvents","normalize","_len","arguments","length","fields","Array","_key","map","field","isArray","reduce","result","item","concat","values","text","toLowerCase","trim","join","smartNormalize","key","includes","normalizePayload","payload","entries","_ref","getPageContext","srcElement","options","undefined","utag_data","uData","sectionSrcElement","dialog","closest","$","data","jQuery","pageSection","pageSubsection","isCartPage","cartNav","removeDialog","selectedTab","uaAttributes","event_label","event_category","event_action","omitUADefaults","forEach","getOwnPropertyDescriptors","defineProperties","_objectSpread","page_section","page_subsection","caching_enabled","logged_in_status","user_loggedin_status","affiliation","loyalty_status","loyalty_program_member","page_name","document","title","page_type","page_category","page_subcategory","product_category","product_color","product_id","product_original_price","product_name","product_price","product_quantity","product_size","product_variant","product_badge","getStoredDataLayerInfo","localStorage","dataStr","getItem","JSON","parse","console","error","removeItem","timestamp","Date","now","setItem","stringify","setStoredDataLayerInfo","storePersistentData","event_name","eventName","category_id","productList","promo_name","promoName","promo_creative","promoCreative","warn","sendEventGA","eventType","Promise","resolve","reject","utag","Error","module","exports","bindGA","elements","bindOptions","callback","eventCondition","isCustomEvent","usesNormalize","retriggerEvent","usesContext","usesDataset","updatesUDO","gaEventType","nodeList","NodeList","slice","once","test","bindEngine","initFlag","targetSelectors","element","binding","isRebind","target","willRetrigger","ctrlKey","shiftKey","gaRetriggered","dataset","tagPayload","eventCategory","eventAction","eventLabel","bindPayload","assign","productListName","product_list","product_list_category","promoCreativeName","preventDefault","stopPropagation","pageContext","fromEntries","_ref2","preservedUDOProperties","substring","property","lazyUDOProperties","charAt","UDOUpdates","finally","setTimeout","originalEvent","Event","isJQueryEvent","trigger","type","newEvent","constructor","bubbles","cancelable","composed","CustomEvent","detail","dispatchEvent","dispatchBasedOnExistingEvent","productSetItem","productSetItems","productSetIndex","indexOf","fill","split","sendEventGAWithContext","contextElem","normalizeData","delimiter","getText","elem","textNode","childNodes","find","child","nodeType","Node","TEXT_NODE","textContent","replace","EXCLUSIVE_EXPERIENCES_TOOLTIP_CID","REWARDS_TOOLTIP_CID","OFFERS_TOOLTIP_CID","BENEFITS_TOOLTIP_CID","TELL_A_FRIEND_TOOLTIP_CID","STYLE_QUIZ_TOOLTIP_CID","MEMBERSHIP_FAQ_TOOLTIP_CID","TOOL_TIP_CONTENT","LOYALTY_TOOLTIP_ICON","ANALYTIC_EVENT_CLASS","BENEFIT_MODAL_CLOSE_ICON","BENEFIT_DETAIL_MODAL","BENEFIT_SWATCH_THUMBNAIL_MODAL","BENEFIT_SWATCH_TITLE","DOWNLOAD_SWATCH_CTA","GO_TO_ACCOUNT_CTA","BENEFIT_SWATCH_TAB","REFER_FRIEND_CTA","REFER_FRIEND_CTA_LINK","REFER_FRIEND_TEXT_FIELD","STYLE_QUIZ_PENDING_QUIZ","MEMBERSHIP_LOYALTY_EXPAND_COLLAPSE_CTA","MEMBERSHIP_LOYALTY_EXPAND_COLLAPSE_ALL_CTA","MEMBERSHIP_FAQ_TERMS_AND_CONDITION_LINK","EXCLUSIVE_ARROW_RIGHT","EXCLUSIVE_ARROW_LEFT","EXCLUSIVE_PIP","ARROW_CLICKS","EXCLUSIVE_PIP_ACTION","MODULE_CHANGE","ARROW_NEXT","ARROW_PREVIOUS","EXCLUSIVE_VIEWALL","EXCLUSIVE_EXPERIENCE_CTA","EXCLUSIVE_RIGHT_SECTION","EXCLUSIVE_CONTENT_SLOTS_CLICK","EXCLUSIVE_SELECT_CONTENT","EXCLUSIVE_EXPERIENCE_NAME","EXCLUSIVE_CLICK_TO_VIEWALL","EXCLUSIVE_VIEWALL_EXCLUSIVE_EXPERIENCES","EXCLUSIVE_TOOLTIP","REFER_FRIEND_TOOLTIP","EXCLUSIVE_OPEN_TOOLTIP","HOW_TO_EARN_LINK","VIEW_POINT_ACTIVITY_CTA","REWARD_START_SHOPPING","REWARD_VIEW_CODE_CTA","VOUCHER_MODAL_CLOSE_CTA","OFFER_FLIP_CARD_CTA","VIEW_COPY_CODE_CTA","OFFER_DETAIL_CLOSE","BONUS_POINTS_DAY","EARLY_ACCESS","LOYALTY_PROGRAM_MODAL","LOYALTY_ACCOUNT_CARD","VIEW_LOYALTY_DASHBOARD","LOYALTY_DRAWER_LINK","LOYALTY_OPT_IN_CHECKBOX","ORDER_CONFIRM_GUEST_ELEMENT","CREATE_ACCOUNT_ORDER_CONFIRM","LOYALTY_NEXT_BUTTON","CLOSE_WELCOME_MODAL","CLOSE_ENROLL_NOW_MODAL","ENROLL_LOYALTY_CTA","GUEST_LOYALTY_ENROLL","STYLE_QUIZ_START_CTA","STYLE_QUIZ_GO_TO_DASHBOARD","SWATCH_SELECTION_WRAPPER","NEXT_QUESTION_CTA","PREVIOUS_QUESTION_CTA","SUBMIT_QUIZ_CTA","SKIP_THIS_QUESTION_CTA","FINISH_LATER_CTA","START_SHOPPING_CTA","CONTENT_SLOT_SELECTORS","LOYALTY_BENEFIT_LABEL","LOYALTY_ANNUAL_GIFT_ID","ANNUAL_GIFT_LABEL","LOYALTY_BIRTHDAY_TREAT_LABEL","LOYALTY_DIGITAL_WALLPAPER_LABEL","MODAL_CLOSE_LABEL","MODAL_VOUCHER_CLOSE_LABEL","MODAL_SELECTED_LABEL","MODAL_DOWNLOAD_LABEL","CLICK_EVENT_ACTION","SHARE_EVENT_ACTION","LOYALTY_DASHBOARD_LABEL","LOYALTY_BENEFIT_TOOLTIP_LABEL","BENEFIT_LABEL","LOYALTY_EXCLUSIVE_EXPERIENCE_TOOLTIP_LABEL","LOYALTY_EXCLUSIVE_EXPERIENCE_LABEL","LOYALTY_MEMBERSHIP_FAQ_TOOLTIP_LABEL","TOOLTIP_LABEL","OPEN_TOOLTIP_LABEL","CLOSE_TOOLTIP_LABEL","STYLE_QUIZ_TOOLTIP_LABEL","STYLE_QUIZ_PAGE_SECTION","LOYALTY_REFER_A_FRIEND_SECTION","LOYALTY_MEMBERSHIP_FAQ_SECTION","LOYALTY_MODAL_PAGE_SUBSECTION","LOYALTY_REFER_A_FRIEND_LABEL_SECTION","LOYALTY_REFER_A_FRIEND_TOOLTIP","LOYALTY_EVENT_LABEL","MEMBERSHIP_FAQ_EXPAND_COLLAPSE_ACTION","MEMBERSHIP_FAQ_EXPAND_COLLAPSE_ALL_ACTION","MEMBERSHIP_FAQ_TERMS_AND_CONDITION_LABEL","REWARDS_TOOLTIP_LABEL","REWARDS_PAGE_SECTION_LABEL","EVENT_CLICK_LINK_ACTION","REWARDS_HOW_TO_EARN_EVENT_LABEL","REWARDS_VIEW_POINT_ACTIVITY_LABEL","REWARDS_START_SHOPPING_LABEL","REWARDS_VIEW_CODE_ACTION","REWARDS_VIEW_CODE_LABEL","REWARDS_VOUCHER_MODAL","REWARDS_VOUCHER_LABEL","REWARDS_VOUCHER_PAGE_SECTION","OFFER_TOOLTIP_LABEL","OFFER_PAGE_SECTION","TAP_TO_REVEAL_ACTION","VIEW_AND_OFFER_CODE_CTA","OFFER_CLOSE_EVENT_LABEL","LOYALTY_PROGRAM_LABEL","LOYALTY_PROGRAM_ACTION","LOYALTY_PROGRAM_SUCCESS_ENROLL","ENROLL_LOYALTY","LOYALTY_DASHBOARD_ACTION","OPEN_LABEL","MY_ACCOUNT_NAME","ACCOUNT_PAGE_TYPE","MY_ACCOUNT_TAB","LOYALTY_PROGRAM_DETAILS","LOYALTY_OPT_IN_ACTION","LOYALTY_OPT_IN_CHECKBOX_SELECT_ACTION","LOYALTY_OPT_IN_CHECKBOX_DESELECT_ACTION","ACCOUNT_SIGN_IN_CATEGORY","CREATE_AN_ACCOUNT_ACTION","SUBMIT_LOYALTY_OPT_IN","SUBMIT_LOYALTY_NOT_OPT_IN","LOYALTY_PROGRAM_WELCOME","LOYALTY_PROGRAM_ENROLLMENT","LOYALTY_PROGRAM_ENROLL_SUCCESS","LOYALTY_STYLE_QUIZ_LABEL","LOYALTY_STYLE_QUIZ_GET_STARTED_ACTION","LOYALTY_STYLE_QUIZ_GO_TO_DASHBOARD","LOYALTY_STYLE_QUIZ_PAGE_NAME","LOYALTY_STYLE_QUIZ_QUESTION","OPTION_SELECTED","OPTION_DESELECTED","STYLE_QUIZ_NEXT_CTA","STYLE_QUIZ_PREVIOUS_CTA","STYLE_QUIZ_SUBMIT_CTA","STYLE_QUIZ_SKIP_THIS_QUESTION_CTA","STYLE_QUIZ_FINISH_LATER","START_SHOPPING","STYLE_QUIZ_THANK_YOU_PAGE","PDP_SELECTIONS","PDP_INTERACTION","CHANGE_STORE","VIEW_ITEM","SIGN_IN_OR_CREATE_ACCOUNT_ACTION","START_LABEL","PDP_PAGE_NAME","PRODUCT_PAGE_TYPE","CREATE_ACCOUNT_ACTION","SUBMIT_EVENT_LABEL","JOIN_CLUB_LILLY_EVENT","INITIATE_ACTION","LOYALTY_ENROLLMENT_CATEGORY","ACCOUNT_DASHBOARD_PAGE","GET_DIRECTIONS","STORE_INTERACTION","REMOVE_FROM_CART","LOYALTY_VIEW_VOUCHER_CODE_LABEL","REWARDS_POINT_ACTIVITY_LABEL","REWARDS_SHOP_TAB_LABEL","SHARED_WISHLIST_CREATE_ACCOUNT_CATEGORY","SHARED_WISHLIST_CREATE_ACCOUNT_ACTION","SHARED_WISHLIST_CREATE_ACCOUNT_LABEL","SHARED_WISHLIST_PAGE_SUBSECTION","SHARED_WISHLIST_NON_LOYALTY_CATEGORY","SHARED_WISHLIST_NON_LOYALTY_ACTION","SHARED_WISHLIST_NON_LOYALTY_LABEL","LOYALTY_ENROLL_MODAL_INTERACTION_TYPE","SIGN_IN_OR_SIGN_UP_ENROLL_MODAL","LOYALTY_ENROLLMENT_EVENT_NAME","LOYALTY_VOUCHERS_EVENT_NAME","BOLT_INTERACTION","LOYALTY_DASHBOARD_REWARDS_EVENT_NAME","BOLT_MODAL_PROCEED","BOLT_MODAL_CLOSE","LOYALTY_REWARDS_EVENT_NAME","BOLT_SIGN_OUT","NEWSLETTER_SIGNUP_COMPLETE","NEWSLETTER_SIGNUP_FAILURE","scrollAnimate","baseFormErrors","loadFormErrors","parentSelector","fieldErrors","each","attr","addClass","siblings","html","clearPreviousErrors","removeClass","hide","isInViewport","scrollTo","INVALID_CLASS","HIDDEN_CLASS","errorTextTemplate","formHelpers","checkoutContainerEl","getElementById","checkoutContainer","showClass","scrollToError","formEl","headerEl","headerHeight","offsetHeight","invalidEl","first","$modalBodyEl","scrollIntoView","behavior","scrollOffset","offset","top","newCCSection","nearestElm","validateForm","event","valid","this","checkValidity","stopImmediatePropagation","validity","clearForm","form","parents","getValidationMessage","validationMessage","$this","patternMismatchValue","rangeErrorValue","missingErrorValue","badInputErrorValue","stepMismatchErrorValue","typeMismatchErrorValue","patternMismatch","rangeOverflow","rangeUnderflow","tooLong","tooShort","valueMissing","badInput","stepMismatch","typeMismatch","onFormInvalidHandler","setCustomValidity","onFormSubmit","updatePaymentValidation","isRequired","required","validateInputs","container","querySelectorAll","invalid","on","ajaxFormInvalid","formElSelector","submit","ajaxFormSubmit","sheetFormSubmit","sheetContainer","sheetForm","one","validateCheckoutForm","guestCustomerForm","registeredCustomerForm","shippingForm","billingForm","submitShippingBtn","billingAddress","reauthForm","disabled","submitReauthBtn","addEventListener","spinner","start","stop","submitCustomerBtn","submitCustomerLoginBtn","click","errorElement","shippingError","addressMode","customerType","giftCheckbox","giftMessageContainer","giftMessageEl","innerHTML","checked","submitPaymentBtn","isPaymentDisabled","isCreditTabActive","isBoltTabActive","isNewPayment","checkIsBoltEnabledEl","isBoltEnabled","savedPaymentCvv","isCardExpired","creditCardExpirationMonthEl","creditCardExpirationYearEl","cardExpiredError","boltCardExpireMonth","boltCardExpireYear","today","expDate","setFullYear","boltExpiredCardError","dwfrm_billing_creditCardFields_expirationMonth","dwfrm_billing_creditCardFields_expirationYear","checkoutStage","link","enableFormSubmitButton","formElements","selectorContainer","notMatchedClass","matchedClass","button","$form","isConfirmPassword","id","isNewPassword","isConfirmRegistrationPassword","isRegistrationPassword","isPromoCodeField","isPasswordMatched","isValidForm","confirmPasswordMatches","passwordFieldId","newPasswordValue","confirmPasswordValue","isPasswordMatches","isValidForms","checkPasswordMatch","isCurrentlyInvalid","hasExistingError","sheetPage","thisValue","val","regexPattern","regexpattern","RegExp","mismatchError","buttonClick","functions","enableOrDisableButton","formElement","debounce","SCROLLABLE_CONTENT_SELECTOR","initSpecificCarousel","scrollableContainerEl","parentEl","parentElement","leftArrowEl","left","Math","max","scrollLeft","offsetWidth","rightArrowEl","min","scrollWidth","initCarousel","hasEtmc","_etmc","trackCart","trackPageView","trackWishlist","setUserInfo","SHIPPING_PREFERENCES_CONTAINER_SELECTOR","STORE_DETAIL_CONTAINER_SELECTOR","ISPU_PREFERENCE_CONTAINER_SELECTOR","ISPU_PREFERENCE_CONTENT_SELECTOR","ISPU_RADIO_SELECTOR","SHIP_TO_ADDRESS_RADIO_SELECTOR","STORE_DETAIL_SELECTOR","STORE_SERVICE_INFO_MESSAGE_SELECTOR","STORE_AVAILABILITY_MESSAGE_SELECTOR","ISPU_INFO_MESSAGE_SELECTOR","SHIP_TO_INFO_MESSAGE_SELECTOR","ISPU_SELECT_STYLE_MESSAGE_SELECTOR","DISABLED_CLASS","SPU_HIDDEN_CLASS","NOT_AVAILABLE_CLASS","ISPU_STORE_NAME_CLASS","PRE_ORDER_CLASS","SHIP_TO_LOW_INVENTORY_CLASS","ISPU_SERVICE_ERROR_ATTR_NAME","ISPU_SERVICE_BLOCKED","CHECKOUT_HIDDEN_CLASS","PRODUCT_DETAIL_CONTAINER_SELECTOR","SET_CONTAINER_SELECTOR","PDP_CONTAINER_SELECTOR","PREFERENCE_SELECTOR","SHIP_TO_ADDRESS_CONTENT_SELECTOR","SHIPPING_PREFERENCE_RADIO_BUTTON_SELECTOR","RADIO_BUTTON_LABEL_SELECTOR","SHIPPING_PREFERENCE_KEY","ISPU_RADIO_VALUE","SHIP_TO_RADIO_VALUE","BOLT_PAY","CHANGE_STORE_LINK_SELECTOR","AVAILABILITY_CHANGE_STORE_LINK_SELECTOR","AVAILABILITY_MSG_SELECTOR","INVENTORY_MSG_SELECTOR","LOW_STOCK_ISPU_SELECTOR","WISHLIST_NAME_REGEX","TRACKER_FUNCTIONAL_COOKIE","LOYALTY_POSTAL_CODE_REGEX","MY_ACCOUNT","ORDER_CONFIRMATION","getItemFromLocalStorage","getNestedValue","getISPUradioButtonEl","productContainerEl","getShipToAddressContentEl","getShipToAddressradioButtonEl","getISPUPreferenceContentEl","addStoreNameClass","storeNameEl","removeStoreNameClass","getChangeStoreLinkEl","getSelectedPreferenceEl","getShippingPreferencesContainerEl","getSelectedSizeEl","selectISPURadioButton","ispuRadioButtonEl","enableISPUSection","ispuContentEl","disableISPURadioButton","disableISPUSection","selectShipToRadioButton","shipToRadioButtonEl","enableShipToContent","shipToContentEl","disableShipToRadioButton","disableShipToContent","getPreferedShippingPreference","shippingPreferenceValue","shippingPreferencesConfig","activeStoreFilter","updateVisibilityOfLowInventoryMsg","variationId","ispuLowStockEl","availabilityElement","ispuLowInventory","ispuLowInventoryMsg","ispuProductInventory","variants","lowStockAvailabilityMessage","CLASS_CAROUSEL_IGNORED","CLASS_LAZY_SLIDER","CLASS_CAROUSEL_INITIALIZED","CLASS_SELECTOR_CAROUSEL","CLASS_CAROUSEL_OUTER_SCROLLBAR","SELECTOR_CLASS_SELECTOR_CAROUSEL","SELECTOR_CAROUSEL_WRAPPER","SELECTOR_CAROUSEL_BTN_PREV","SELECTOR_CAROUSEL_BTN_NEXT","SELECTOR_CAROUSEL_SCROLLBAR","CONTEXT_STANDARD","CONTEXT_EMPHASIZED","CONTEXT_PERSONALIZED","$body","observer","initCarouselElementDomLoaded","carouselEl","isHighGridDensity","carouselWrapper","context","carouselContext","getContext","navigationConfig","nextEl","prevEl","customPadding","swiper","matchesBreakpoint","params","slidesOffsetBefore","width","slidesOffsetAfter","swiperConfig","modules","Navigation","Scrollbar","simulateTouch","slidesPerView","navigation","roundLengths","spaceBetween","scrollbar","el","slideNextTransitionStart","activeIndex","slideNumber","Number","isFinite","ceil","slidesPerViewDynamic","slide","slides","img","slidePrevTransitionStart","afterInit","viewImages","slidesPerGroup","breakpoints","draggable","centerInsufficientSlides","watchSlidesProgress","slideFullyVisibleClass","transitionStart","pause","transitionEnd","play","enabled","slideVisibleClass","beforeResize","slideTo","init","resize","Pagination","loop","touchReleaseOnEdges","nested","pagination","renderFraction","sliderPaginationTemplate","carousel","Swiper","initCarouselElement","readyState","onIntersection","productTiles","async","media","intersectionRatio","productTileEl","unobserve","initCarouselsInSingleContainer","containerEl","carousels","IntersectionObserver","rootMargin","threshold","observe","initOnce","initialized","initCarouselsAfterFrame","initCarousels","SELECTOR_PRODUCT_GRID","requestAnimationFrame","pTileEl","SELECTOR_PRODUCT_TILE","update","currentTarget","isTileCarouselInitialized","isMediumGridDensity","tileImages","tile","matchMedia","matches","swiperInstance","slideToLoop","customHoverTile","customResetTile","secTileImageEl","classList","contains","attachEventsListenersOnce","destroySwiper","destroy","mainVideoClass","mobileVideoClass","initVideos","videoComponent","mainVideo","mobileVideo","playButton","muteButton","captionVideoElement","allVideos","Boolean","touchStart","touchEnd","togglePlay","video","paused","PLAYED_CLASS","toggleCaption","captionButton","captionOnIcon","captionOffIcon","visibleVideo","offsetParent","textTracks","track","cues","mode","getActiveVideo","muted","UNMUTED_CLASS","MUTED_CLASS","touches","clientY","changedTouches","abs","handleVideoTouch","activeVideo","syncVideoState","inactiveVideo","wasPlaying","currentOrientation","innerWidth","innerHeight","newOrientation","hasVideos","xs","sm","md","lg","xl","PREFERRED_STORE_ID","EMPTY_STRING","ONE_SIZE_ID","lillyUtils","constants","ONE_SIZE","ONE_SIZE_LABEL","resources","CHANGED_CLASS","FILLED_CLASS","ACTIVE_CLASS","INVISIBLE_CLASS","NO_SCROLL_CLASS","SELECTED_CLASS","SHOW_CLASS","SHOW_ALL_CLASS","D_FLEX","DISPLAY_CLASS","INACTIVE_CLASS","MENU_OPENED","LOADED_CLASS","SCROLLED_CLASS","PREORDER_STATUS","BACKORDER_STATUS","IN_STOCK_STATUS","NOT_AVAILABLE_STATUS","KEYCODE_TAB","KEYCODE_ESCAPE","KEYCODE_UP","KEYCODE_DOWN","KEYCODE_ENTER","EVENT_KEY_ENTER","EVENT_KEY_TAB","WAS_PLAYING_CLASS","TIMEOUT_100","SEARCH_TYPE","SEARCH_SUBMIT","SEARCH_SUGGESTIONS","POPULAR_SEARCHES","SEARCH_HISTORY","REFINEMENT_TYPE_CATEGORY","ANIM_TIME_INSTANT","ANIM_TIME_QUICK_1","ANIM_TIME_QUICK_2","ANIM_TIME_STANDARD_1","ANIM_TIME_STANDARD_2","ANIM_TIME_STANDARD_3","ANIM_TIME_STANDARD_4","TIMEOUT_1000","ANIM_EASE_LINEAR","ANIM_EASE_IN","ANIM_EASE_OUT","ANIM_EASE_IN_OUT","EMAIL_REGEX","PHONE_NUMBER_REGEX","IS_SAFARI","navigator","userAgent","selector","parent","querySelector","loadScript","source","isAsync","script","createElement","src","onload","body","append","loadInput","referrerID","input","setAttribute","appendChild","getStyles","styles","getComputedStyle","rules","rule","remove","n","node","removeChild","removeAttribute","_len2","_key2","add","_len3","_key3","toggleClass","_len4","_key4","toggle","_len5","classes","_key5","every","className","hasAnyClass","_len6","_key6","some","throttle","limit","waitCallback","isThrottling","_len7","args","_key7","returnValue","_this","minimumDelay","condition","unrestrictedCallback","timer","_len8","_key8","clearTimeout","toArray","_len9","_key9","results","arg","newTarget","array","makeArray","outerHeight","parseInt","marginTop","marginBottom","isInViewportCheck","scroll","scrollY","pageYOffset","boundsTop","getBoundingClientRect","numberOfViewportToCheck","nextViewportLazyLoad","viewport","bounds","clientHeight","rect","bottom","right","documentElement","clientWidth","y","duration","getLastElementInRow","nextElementSibling","offsetTop","scrollHeight","sibling","previousElementSibling","updateUrlQueryParam","fragment","queryParamsElement","permaLink","hash","URL","location","href","newUrl","history","pushState","path","getCharacterCount","waitForElement","scope","timeout","MutationObserver","mutations","self","disconnect","childList","subtree","eventTypes","useJQuery","handler","extraData","Element","targetElement","$element","off","removeEventListener","getProductInfoFromDataAttr","productInfo","parsedProductInfo","getSalesPrice","priceEl","pop","getProductData","containerData","monetatePid","viewType","isQuickview","productInventory","pid","wishlistId","masterId","masterid","productName","productSize","swatchName","attrValue","colorCode","productSet","productBadge","variationGroupId","originalPrice","productPrice","isPreorder","productId","colorEl","swatchButton","attrDisplayvalue","tileEl","productData","standardPrice","price","groupId","productNameEl","productSizeEl","valueId","originalPriceEl","productInfoData","variant","formattedPrice","productColor","breakpoint","getCSRFToken","token","renderFragment","template","content","getCookieMap","cookie","keyValue","decodeURIComponent","setCookie","minutes","date","setTime","getTime","toGMTString","validateDate","monthSelector","dateSelector","message","m","d","mlength","isSelectModified","labelOption","Option","option","toString","selected","changeEvent","isVisible","HTMLElement","style","display","visibility","overflowY","height","maxHeight","toFormData","obj","includeUndefined","formData","FormData","slideUp","easing","staticHeight","getPropertyValue","setProperty","getISProductContainer","ISProductContainer","getISProductData","evgItemId","getElementsByTagName","setAdjustedSalesPrice","vgIDs","tealiumPrices","searchResultsContainer","len","adjustedPrice","phInfoPopover","fpoInfoPopover","checkoutBenefitsInfoPopover","cvvInfoPopover","giftCardInfoPopover","deliveryFeeInfoPopover","boltSignoutMessage","earlyAccessMessage","giftReturnNumberInfoPopover","keepUserSignedInPopover","keepUserSignedInContainer","earlyAccessLockedSelector","pdpChatWrapper","pdpChatPopover","pdpChatContainer","keepUserSignedInPopoverCheckoutPage","POPOVER_HOVER_BOTTOM","placement","initPopover","popoverOptions","popover","POPOVER_CLICK_BOTTOM","initPopoverClose","clickEvent","clicked","initPopoverCloseSelector","tooltipSelector","initPopoverPromotions","popoverContent","initPopoverWishList","initPopoverAllLocal","birthdayInfoPopover","tooltipIcon","popContent","customClass","initPopoverEarlyAccessLocked","initPopoverAll","attachSearchEvents","selectStyleMessageTmpl","ispuSelectStyleMessageTmpl","productDetail","isShippingPreferencesViewEnabled","toggleSelectSizeInfo","productContainer","selectedSizeEl","addProductErrorEl","selectStylesMessage","ispuAvailabilityMessageEl","messages","isEarlyAccessElement","earlyAccess","isEarlyAccessItem","earlyAccessDate","earlyAccessUntilDate","enableAddAllToToteButton","addAllToCartButton","addAllLabel","selectSizeLabel","getAddToCartAnalyticsData","listName","utagPromoName","utagPromoCreativeName","utagListName","CLASS_SIZE_SELECTED","SELECTOR_SIZE_SELECTED_ASSISTIVE_TEXT","SELECTOR_SIZE_SELECTOR","SELECTOR_SIZE_BTN","SELECTOR_SIZE_LIST","SELECTOR_AVAILABILITY_MSG_TEXT","SELECTOR_EARLY_ACCESS_WRAPPER","SELECTOR_EARLY_ACCESS_CTA_SIGN_IN","SELECTOR_EARLY_ACCESS_CTA_SIGN_UP","SELECTOR_NOTIFY_ME_DIALOG_PID_INPUT","SELECTOR_SOLDOUT_MSG","SELECTOR_TILE_PRICE_WRAPPER","getCookieDensityValue","cookieMap","density","quickView","quickViewModal","addToWishlist","addToWishlistModal","cart","errorMessage","cartAvailabilityMessageOOS","url","promo","shippingMethod","checkoutNormalShipping","checkoutDiscountShipping","checkout","discountPrice","swatchNameTemplate","swatchNameHtml","emptySwatchTemplate","addressSuggestions","suggestionTextTemplate","suggestionsTemplate","approachingDiscounts","nonCouponBasedAdjustmentTemplate","videoTemplate","videoUrl","imgUrl","classNames","autoplay","controls","icontitle","icondesc","imageTemplate","altText","sizeOptionTemplate","sizeButtonTemplate","variantData","ariaLabel","ariaDescribedby","selectedText","oosMessage","forceOutOfStock","inStock","sizeId","guestEmptyWishlistTemplate","emptyWishlistMessage","emptyWishlistContentAssetBody","emptySFL","emptySFLMessage","continueShopURL","continueShopMsg","signInMsg","signInSFLURL","gwpSizeTemplate","singleSize","multiSize","multiDefaultSizeOption","multiSizeOption","autoComplete","suggestionLink","suggestion","addressLine","secondaryEntryAddressLine","street_line","secondary","state","city","zipcode","suggestionContainer","containerClass","contactUsTemplate","signupError","msg","defaultSignupError","browserWarningTemplate","shippingPreferenceTemplates","shippingPreferences","ispuRadioLabel","ispuRadioValue","shipToRadioLabel","shipToRadioValue","changeStoreLabel","preferISPU","storeDetail","storeId","name","address1","stateCode","postalCode","availabilityMessageTmpl","availabilityMessageOOS","availabilityMessagePreorder","ispuAvailabilityMessageTmpl","ispuLowStockMessageTmpl","promotionMessageTmpl","calloutMsg","details","dialogTemplate","buttons","primary","modalContentHeading","modalContentBody","slideOut","buttonSpace","floor","oneTrust","privacyDialogCookieBanner","loyalty","carouselBadge","styliticsTemplates","shopTheModelBadge","returnsPageTemplates","defaultError","cyberSource","secureAcceptanceTag","paymentType","boltPayPaymentTag","paymentLastFour","expMonth","expYear","paypalPaymentTag","paypalMethod","paypalAmount","creditCardPaymentTag","cardType","creditCardType","maskedCardNumber","cardEndIn","cardExpMonth","cardExpYear","checkoutErrorTemplate","checkoutErrorMsg","errorMsg","minitoteError","addToCartAlert","messageType","productTileSlide","index","srcset","alt","noImageIcon","productTileSlidePicture","imageType","sources","currentClass","totalClass","searchHistoryTemplate","searchHistoryStorage","baseUrl","clearButtonText","list","searchTerm","productTilePriceContent","priceMainHtml","priceVariationHtml","videoInnerContent","poster","tokenize","string","leftToken","rightToken","operators","_","code","toKebabCase","sort","startsWith","endsWith","substr","digit","charCodeAt","toUpperCase","formatMessage","tokens","keyString","replaceValues","flag","appendToUrl","encodeURIComponent","getJSON","onSuccess","onError","ajax","dataType","success","geolocate","successCallback","mixin","errorCallback","geolocation","getCurrentPosition","response","coords","latitude","longitude","maximumAge","setItemInLocalStorage","removeItemFromLocalStorage","formatPhoneNumber","hyphen","formatValue","numbers","char","l","errorMessageElmParent","parentNode","isMobile","mobileAgentHash","idx","stickyScrollPosition","items","$window","ticking","detailStickyScroll","itemHeight","windowHeight","newTop","onScroll","handleStickyPositionOnScroll","isUnsupportedBrowser","sitePrefs","unsupportedBrowserTypes","getAttribute","uaFragment","getTimeRemaining","endtime","total","seconds","hours","days","validateEmailBolt","email","setUrlParamValue","paramToChange","newValue","isPartOfParamName","urlObj","origin","urlParams","URLSearchParams","search","foundParam","set","pathname","removeParamFromUrl","paramName","has","delete","replaceState","reloadPageForMobile","viewAll","stepCondition","reload","handleSheetRendering","modal","hideStrikeHearts","strikeWishList","addWishList","showStrikeHearts","setWishlistProductId","wishlistBtn","wishlistStrikeBtn","WishlistItemsMgr","static","loadWishlistItemsPromise","getInstance","instance","isItemInWishlist","listId","getWishlistItems","then","wishlistItems","UUID","isItemsInWishList","loadWishListItems","fetch","ok","status","json","saveWishListItems","catch","sid","updateWishlistItems","wishlistItemsLink","isSameSession","setTabNextFocus","focusParams","keyCode","firstFocusableEl","containerSelector","firstElementSelector","lastFocusableEl","lastElementSelector","is","nextToLastElementSelector","linkElements","focus","feedbackElement","children","prop","prepend","position","animate","scrollTop","include","createElementIfNotDefined","originalParams","checkProps","createElements","auto","c","extendParams","emit","getEl","res","isElement","uniqueNavElements","toggleEl","subEl","disabledClass","tagName","watchOverflow","isLocked","lockClass","isBeginning","rewind","isEnd","onPrevClick","slidePrev","onNextClick","slideNext","initButton","dir","destroyButton","hideOnClick","hiddenClass","navigationDisabledClass","disable","_s","targetEl","clickable","isHidden","enable","pfx","bulletSize","bulletElement","renderBullet","renderProgressbar","renderCustom","progressbarOpposite","dynamicBullets","dynamicMainBullets","formatFractionCurrent","number","formatFractionTotal","bulletClass","bulletActiveClass","modifierClass","progressbarFillClass","progressbarOppositeClass","clickableClass","horizontalClass","verticalClass","paginationDisabledClass","bullets","dynamicBulletIndex","isPaginationDisabled","setSideBullets","bulletEl","onBulletClick","realIndex","rtl","current","previousIndex","slidesLength","virtual","snapGrid","previousRealIndex","snapIndex","previousSnapIndex","firstIndex","lastIndex","midIndex","isHorizontal","classesToRemove","suffix","s","flat","bullet","bulletIndex","firstDisplayedBullet","lastDisplayedBullet","dynamicBulletsLength","bulletsOffset","offsetProp","subElIndex","fractionEl","totalEl","progressbarDirection","scale","scaleX","scaleY","progressEl","transform","transitionDuration","speed","render","grid","rows","paginationHTML","numberOfBullets","freeMode","g","dragStartPos","dragSize","trackSize","divider","isTouched","dragTimeout","setTranslate","rtlTranslate","dragEl","progress","progressLoop","newSize","newPos","opacity","updateSize","size","virtualSize","centeredSlides","getPointerPosition","clientX","setDragPosition","positionRatio","minTranslate","maxTranslate","updateProgress","updateActiveIndex","updateSlidesClasses","onDragStart","wrapperEl","cssMode","onDragMove","onDragEnd","snapOnRelease","slideToClosest","events","method","activeListener","passiveListeners","passive","capture","passiveListener","eventMethod","swiperEl","dragClass","scrollbarDisabledClass","setTransition","isObject","extend","ssrDocument","activeElement","blur","nodeName","createEvent","initEvent","createElementNS","importNode","host","hostname","protocol","getDocument","doc","ssrWindow","go","back","Image","screen","cancelAnimationFrame","getWindow","win","classesToTokens","deleteProps","object","nextTick","delay","getTranslate","axis","matrix","curTransform","transformMatrix","curStyle","currentStyle","WebKitCSSMatrix","webkitTransform","a","MozTransform","OTransform","MsTransform","msTransform","m41","parseFloat","m42","prototype","to","noExtend","nextSource","keysArray","nextIndex","nextKey","desc","__swiper__","setCSSProperty","varName","varValue","animateCSSModeScroll","targetPosition","side","startPosition","translate","time","startTime","scrollSnapType","cssModeFrameID","isOutOfBound","easeProgress","cos","PI","currentPosition","overflow","elementChildren","showWarning","err","tag","elementOffset","box","clientTop","clientLeft","scrollX","elementPrevAll","prevEls","prev","elementNextAll","nextEls","next","elementStyle","elementIndex","previousSibling","elementParents","elementOuterSize","includeMargins","makeElementsArray","support","deviceCached","browser","getSupport","smoothScroll","touch","DocumentTouch","calcSupport","getDevice","overrides","_temp","platform","ua","device","ios","android","screenWidth","screenHeight","match","ipad","ipod","iphone","windows","macos","os","calcDevice","eventsEmitter","priority","eventsListeners","destroyed","onceHandler","__emitterProxy","onAny","eventsAnyListeners","offAny","splice","eventHandler","unshift","toggleSlideClasses$1","slideEl","toggleSlideClasses","processLazyPreloader","imageEl","slideClass","lazyEl","lazyPreloaderClass","shadowRoot","unlazy","preload","amount","lazyPreloadPrevNext","activeColumn","preloadColumns","from","column","slideIndexLastInView","isVertical","isNaN","updateSlides","getDirectionPropertyValue","label","getDirectionLabel","slidesEl","swiperSize","wrongRTL","isVirtual","previousSlidesLength","slidesGrid","slidesSizesGrid","offsetBefore","offsetAfter","previousSnapGridLength","previousSlidesGridLength","slidePosition","prevSlideSize","marginLeft","marginRight","gridEnabled","slideSize","initSlides","unsetSlides","shouldResetSlideSize","updateSlide","slideStyles","currentTransform","currentWebKitTransform","paddingLeft","paddingRight","boxSizing","swiperSlideSize","slidesPerGroupSkip","effect","setWrapperSize","updateWrapperSize","newSlidesGrid","slidesGridItem","groups","slidesBefore","slidesAfter","groupSize","slideIndex","centeredSlidesBounds","allSlidesSize","slideSizeValue","maxSnap","snap","offsetSize","allSlidesOffset","addToSnapGrid","addToSlidesGrid","v","checkOverflow","updateSlidesOffset","backFaceHiddenClass","containerModifierClass","hasClassBackfaceClassAdded","maxBackfaceHiddenSlides","updateAutoHeight","activeSlides","newHeight","getSlideByIndex","getSlideIndexByData","visibleSlides","minusOffset","offsetLeft","swiperSlideOffset","cssOverflowAdjustment","updateSlidesProgress","offsetCenter","visibleSlidesIndexes","slideOffset","slideProgress","originalSlideProgress","slideBefore","slideAfter","isFullyVisible","originalProgress","multiplier","translatesDiff","wasBeginning","wasEnd","isBeginningRounded","isEndRounded","firstSlideIndex","lastSlideIndex","firstSlideTranslate","lastSlideTranslate","translateMax","translateAbs","autoHeight","getFilteredSlide","activeSlide","prevSlide","nextSlide","slideActiveClass","slideNextClass","slidePrevClass","emitSlidesClasses","newActiveIndex","getVirtualRealIndex","aIndex","normalizeSlideIndex","getActiveIndexByTranslate","skip","firstSlideInColumn","activeSlideIndex","runCallbacksOnInit","updateClickedSlide","pathEl","slideFound","clickedSlide","clickedIndex","slideToClickedSlide","transitionEmit","runCallbacks","direction","step","internal","initial","animating","preventInteractionOnTransition","normalizedTranslate","normalizedGrid","normalizedGridNext","allowSlideNext","allowSlidePrev","isH","_immediateVirtual","_cssModeVirtualInitialSet","initialSlide","onSlideToWrapperTransitionEnd","newIndex","targetSlideIndex","cols","needLoopFix","loopFix","slideRealIndex","perGroup","slidesPerGroupAuto","increment","loopPreventsSliding","_clientLeft","normalizedSnapGrid","prevSnap","prevSnapIndex","prevIndex","slideReset","currentSnap","slideToIndex","slideSelector","loopedSlides","getSlideIndex","loopCreate","shouldFillGroup","shouldFillGrid","addBlankSlides","amountOfSlides","slideBlankClass","loopAddBlankSlides","recalcSlides","byController","byMousewheel","loopAdditionalSlides","prependSlidesIndexes","appendSlidesIndexes","isNext","isPrev","slidesPrepended","slidesAppended","activeColIndexWithShift","colIndexToPrepend","__preventObserver__","swiperLoopMoveDOM","currentSlideTranslate","diff","touchEventsData","startTranslate","currentTranslate","shift","controller","control","loopParams","loopDestroy","newSlidesOrder","swiperSlideIndex","preventEdgeSwipe","startX","edgeSwipeDetection","edgeSwipeThreshold","onTouchStart","pointerId","targetTouches","touchId","identifier","pageX","pointerType","touchEventsTarget","which","isMoved","swipingClassHasValue","noSwipingClass","eventPath","composedPath","noSwipingSelector","isTargetShadow","noSwiping","base","__closestFrom","assignedSlot","found","getRootNode","closestElement","allowClick","swipeHandler","currentX","currentY","pageY","startY","allowTouchCallbacks","isScrolling","startMoving","touchStartTime","swipeDirection","allowThresholdMove","focusableElements","shouldPreventDefault","allowTouchMove","touchStartPreventDefault","touchStartForcePreventDefault","isContentEditable","onTouchMove","targetTouch","preventedByNestedSwiper","previousX","previousY","diffX","diffY","sqrt","touchAngle","atan2","preventTouchMoveFromPointerMove","touchMoveStopPropagation","touchesDiff","oneWayMovement","touchRatio","prevTouchesDirection","touchesDirection","isLoop","allowLoopFix","evt","bySwiperTouchMove","allowMomentumBounce","grabCursor","setGrabCursor","loopSwapReset","disableParentSwiper","resistanceRatio","resistance","followFinger","onTouchEnd","isSafari","isWebView","touchEndTime","timeDiff","pathTree","lastClickTime","currentPos","swipeToLast","stopIndex","rewindFirstIndex","rewindLastIndex","ratio","longSwipesMs","longSwipes","longSwipesRatio","shortSwipes","onResize","setBreakpoint","isVirtualLoop","running","resizeTimeout","resume","onClick","preventClicks","preventClicksPropagation","newProgress","previousTranslate","onLoad","onDocumentTouchStart","documentTouchHandlerProceeded","touchAction","domMethod","swiperMethod","updateOnWindowResize","isGridEnabled","defaults","swiperElementNodeName","resizeObserver","eventsPrefix","virtualTranslate","breakpointsBase","wrapperClass","_emitClasses","moduleExtendParams","allModulesParams","moduleParamName","moduleParams","prototypes","x","translateTo","translateBounds","newTranslate","onTranslateToWrapperTransitionEnd","transition","transitionDelay","moving","cursor","unsetGrabCursor","attachEvents","detachEvents","getBreakpoint","currentBreakpoint","breakpointParams","wasMultiRow","isMultiRow","wasGrabCursor","isGrabCursor","wasEnabled","emitContainerClasses","wasModuleEnabled","isModuleEnabled","directionChanged","needsReLoop","wasLoop","changeDirection","isEnabled","hasLoop","currentHeight","points","point","minRatio","b","wasLocked","lastSlideRightEdge","addClasses","suffixes","prefix","resultClasses","prepareClasses","removeClasses","extendedDefaults","swipers","newParams","needPerspectiveFix","major","minor","num","isSafariBrowser","need3dFix","calcBrowser","__modules__","mod","swiperParams","passedParams","velocity","trunc","clickTimeout","velocities","imagesToLoad","imagesLoaded","setProgress","cls","getSlideClasses","updates","view","exact","spv","breakLoop","translateValue","translated","complete","newDirection","needUpdate","currentDirection","changeLanguageDirection","mount","mounted","getWrapperSelector","slideSlots","hostEl","lazyElements","deleteInstance","cleanStyles","extendDefaults","newDefaults","installModule","use","prototypeGroup","protoMethod","animationFrame","resizeHandler","orientationChangeHandler","ResizeObserver","newWidth","contentBoxSize","contentRect","inlineSize","blockSize","observers","attach","WebkitMutationObserver","observerUpdate","attributes","characterData","observeParents","observeSlideChildren","containerParents","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","__esModule","definition","get","hasOwnProperty","toStringTag","focusHelper","loyaltyTemplates","gwpDialog","$gwpDialog","readyClass","selectedProductClass","notAvailable","loyaltyProfile","isLoyaltyProgramMember","isLoyaltyAuthenticated","isLoyaltyEnabled","isContentModulesFetched","getPidValue","$el","getQuantitySelector","updateAttrs","attrs","$productContainer","msgs","attrsWithSwatches","isChoiceOfBonusProducts","$attrValue","$swatchButton","assistiveSelectedText","empty","bonusVariationUrl","removeAttr","selectable","processSwatchValues","sizes","sizeContainer","displayValue","loopStatus","resetUrl","selectLabel","selectId","count","sizeOptions","$attr","selectSizeEl","selectedValue","not","selectedOptions","isOffline","sizeListItemEl","assistiveElement","outOfStock","optionEl","selectedIndex","processNonSwatchValues","updateOptions","$optionEl","handleEarlyAccessCta","isEarlyAccessProduct","productContainerEarlyAccessIcon","earlyAccessLockIcon","earlyAccessWishlistIcon","earlyAccessCta","addToCartCta","earlyAccessPdpEl","earlyAccessGuest","earlyAccessRegistered","createCarousel","imgs","isEarlyAccess","carouselEls","mainCarousel","cache","slideEls","large","cacheParam","slideTpl","slideInnerTpl","linkTagOpen","linkTagClose","updatedImages","imageScene7","normalizeImagesObject","updatedImage","image","preset","sourceTags","baseVideoTemplate","addVideoComponent","videoWrapper","cloneNode","templateVideoElement","load","addToWishlistIconPdp","addToCartButtonPdp","pdpNonEarlyAccessLoginEl","loyaltyEarlyAccessLockContainer","firstImageElement","handleVariantResponse","variationAttributes","productType","readyToOrder","bonusVariationAtrributes","isFinalSale","isDirectlyPurchasable","product","saleMessageEl","sizeElements","images","extrasmall","productImageElement","swatchNameElement","selectedSwatch","selectedSwatchElement","selectedSwatchName","colorLabel","swatchHtml","$priceSelector","replaceWith","promotionElement","promotionsHtml","promotionsPopover","availabilityValue","availabilityMessages","availability","availabilityMsgEl","notPurchasable","updateAvailability","attributeGroup","ID","attribute","getAttributesHtml","updateQuantities","quantities","optionsHtml","quantity","attributeSelect","selectedValueUrl","selectedSizeElement","$choiceOfBonusProductEl","updateProductPrice","percentOff","priceTemplate","priceSection","buybarPriceSection","priceContainer","strikeThroughContainer","priceElement","salesContainer","salesPriceElement","percentOffContainer","fixedPrice","fixedStandardPrice","toFixed","updateSizeElements","variantsList","isQuickView","quickviewProductInfo","describedby","sizeButtonHtml","eachVariant","eachSize","sizeElement","inventoryData","availabilityStatus","isBackOrder","imageObj","srcsetPresets","mediaSources","srcsetString","breakpointKey","resolutions","sourceString","resolution","all","_ref3","updateProductDetails","currentElement","elementData","variantGroupId","swatchContainer","assistiveElements","assistiveTextElement","monogramBtn","shopThePrint","mgFlag","mgLocs","hasWaysToWear","promotions","colorElements","customPageTitle","pageTitle","includeLillyColor","lillyColorName","customPageDescription","pageDescription","titleElement","descriptionElement","waysToWearEl","variationGridUrl","colorlabel","longDescriptionElement","longDescription","description","lillyColor","eachElement","variationUrl","waysToWearContainer","entry","isIntersecting","variationGroup","done","always","destroyContentModulesIntersectionObserver","updateContentModules","dynamicallyFetchContentModules","shopThePrintElement","outerHTML","updateShopThePrint","productFinalSaleMessage","productFreeReturnsMessage","promoBlockMsg","promoWithSheet","promotion","promotionIdx","detailsFromAsset","wishlistButton","assistiveText","swatchParam","queryParams","UpdatedParams","eachParam","parseHtml","$html","parseHTML","selectedProducts","footer","getOptions","$elOption","urlValue","selectedValueId","optionId","methods","editBonusProducts","$spinner","bonusUrl","bonusChoiceRuleBased","showProductsUrlRuleBased","showProductsUrlListBased","maxBonusItems","addToCartUrl","uuid","pliUUID","pageSize","bonusDiscountLineItems","sheetHeaderText","labels","selectprods","parsedHtml","renderedTemplate","enterMessage","enterDialogMessage","insertAfter","selectedBonusProducts","modalDialog","selectedProductsCount","eachProductList","bonusAccordionContainer","maxCount","maxItems","productListLength","bonusItemCount","eachProduct","selectedProduct","selectBonusCheckbox","productDialog","accordionContainer","bonusAccordionElements","addToCart","sizeEl","selectedSize","isSizeSelected","isSelectedSizeUnavailable","validProducts","chooseBonusProducts","updateImageDetails","focusChooseBonusProductModal","sheet","onClosingChooseBonusProductModal","trapChooseBonusProductModalFocus","colorAttribute","productDetailContainer","quickViewInfo","pdpBreadCrumbs","monetateData","updateQuickViewDetails","selectedSizeValue","isSizeExist","sizeParamName","addSizeParamForSetItems","selectColorAttribute","renderSizeElements","swatchEl","wishlistDisabled","savedStoreId","preferredStoreId","selectAttribute","$target","storeLocatorContainer","ispuAddToCart","pdpSetData","isPDPSet","setPids","setModal","modalProducts","modalProduct","sizeSelected","pidsObj","analyticsData","childProducts","closestUrl","resData","shopTheLookModal","displayModal","addToCartWarningDialog","isOnCartPage","redirectLink","messageHeading","messageBodyOnCart","messageBodyOffCart","handlePostCartAdd","updateBonusSelection","choiceOfBonusProduct","$choiceOfBonusProduct","maxPids","totalQty","gwpCheckbox","selectedProductElement","bonusCountElement","selectedCount","isOneSize","enableAddTocart","optionID","selectedBonusProductHtml","selectBonusProduct","bonusDrawer","isSize","isColor","NO_SIZE_ERROR_CLASS","targetCheckbox","parentTier","hasSizes","accordion","checkedBox","wrapper","checkbox","sizeBtns","colorBtn","attrUrl","prevId","removeBonusProduct","$selected","enableBonusProductSelection","available","showMoreBonusProducts","addBonusProductsToCart","$readyToOrderBonusProducts","queryString","pidsObject","bonusProducts","qtyOption","qty","revealRecommendations","eachRecommendation","titleEl","productEl","scrollableContent","handleEarlyAccessPLPLockIcon","earlyAccessPLPContainer","earlyAccessPlpIcon","lockIconContainer","earlyAccessPLPBadge","getQuantitySelected","AlertDialog","checkIcon","alertConfig","alertHost","alert","createAlert","startTimer","titleID","generateRandomString","customCSSClass","cssClass","icon","iconElement","alertInner","cta","ctaContainer","closeAlert","pauseTimer","resumeTimer","handleScroll","remainOnScroll","insertAdjacentElement","alertTimeout","focusAfterClose","random","pageCache","cronSingletons","factory","keyPrefix","defaultTTL","ttl","cronInterval","batchSize","withPrefix","storages","page","cacheItem","expiry","k","sessionStorage","selectedStorage","storage","cleanExpiredKeys","keysProcessed","startCronSingleton","SELECTOR_DATA_ELEMENT","renewCSRFCronAssigned","getCustomerCache","setCustomerCache","getProductInventoryCache","setProductInventoryCache","getDataElement","getProductInventoryData","masterPid","inventory","dataEl","csrfTokenName","csrfTokenValue","productInventoryUrl","targetUrl","refreshTokenFunc","refreshToken","getProductInfo","productInfoRaw","validateEmail","emailFormGroup","emailError","missingError","invalidClass","notifyMeSubmit","notifyForm","actionUrl","productID","subscribe","$notifyForm","confirmMessage","notifyContainer","configElement","mainPageContent","displayAlert","getErrorAlertConfig","msgContainer","updateWishlistCountMessage","wishListCountMessage","detailsItemCount","showShareDialogs","shareTitle","shareText","shareUrl","share","updateCTAs","selectedColorValue","addToCartButton","notifyMeButton","availabilityMsg","clubLillySignIn","clubLillySignUp","productInfoVariants","customerData","cacheKey","customerDataUrl","cachedResult","isAuthenticated","isLoyaltyMember","getCustomerDataAjaxResult","getCustomerData","isNotifyMeEnabled","availabilityMessage","isNotAvailableAvailability","IN_STOCK","NOT_AVAILABLE","isPreorderAvailability","PREORDER","isSoldOut","soldoutMsgEl","tilePriceWrapperEl","updatePriceBlock","getModalHtmlElement","fillModalElement","editProductUrl","$sheet","closeButtonText","renderNewPageOfItems","pageNumber","focusElementSelector","focusElement","publicView","scrollPosition","isLoggedInState","headers","validateInputCallback","invalidFeedback","listNameTrimText","toogleActiveSizeChartTab","prodSizeChart","$lpSlideout","$prodSizeChart","defaulttext","defaultText","sizefamily","activeCategoryVal","$activeCategoryEl","$lpSizechartTitle","tab","viewProductViaEdit","viewProductViaSelectAttribute","focusEditWishlistProductModal","onClosingEditWishlistProductModal","trapEditWishlistProductModalFocus","updateWishlistUpdateButton","updateWishListItem","updateButtonBlock","updateProductUrl","handleWishlistsModalAction","createNewCollection","listNameInput","createCollectionLink","wishlistName","wishlistShowLink","searchParams","wishListUUID","handleCreateWishList","editCollection","editCollectionLink","removeCollectionLink","loggedIn","showCollectionsLink","wishlistsShowLoggedInLink","wishlistsShowLink","handleEditWishList","sharePublic","listUuid","wishlistsTogglePublic","listID","copyShareLink","copyShareLinkText","clipboard","writeText","titleDropDown","collectionHeader","dropdown","selectedList","removeFromWishlist","undoMessage","marketingCloudAnalyticsData","itemToRemove","nextItem","customCreateTime","wishlistAdditemLink","createTime","mcAnalyticsArray","addProductToWishlist","itemCreateTime","selectSizeAttribute","productTile","colorId","isOOS","assistiveElementOfSelected","imgOosCls","tileSlideImages","onSizeChangeHandler","notifyMe","setNotifyMeProductDetails","customerEmail","addToCartFromWishlist","wishlistUUID","removedWishListItem","addToCartMessages","wishlistCardContainer","modalItemsContainer","sheetAddToTote","wishlistCloneContainer","addToToteButtons","btn","isLowInventory","isInStockAvailability","newSpan","btnWrapper","notifyMeButtonClone","moreWLItems","sizeChart","productWraper","sizeChartId","cid","setStickyNav","formValidation","giftCardContainerSelector","selectedClass","isCustomerClickedToTheInput","updateHiddenAmountField","giftCardContainer","amountHiddenInput","clearAmountErrorMessage","amountSelectionHandler","customAmountInput","customAmountAccordion","wishlistProductCard","addToToteButton","amountSelectionHandlerCart","selectedGiftCardAmountLabel","amountInputEnableHandler","inputAccordion","hasAttribute","amountInputHandler","amountInputActivated","amountInput","showDecimalFieldError","amountVisibleInput","innerText","badInputError","inputField","inputName","inputErrMsg","showEmptyFieldError","targetCloseToCartPage","isQuickGiftCardAddToCart","pGiftCardContainer","selectedColorAttributeEl","isInvalidSwatchSelected","attributesEl","invalidSwatchError","displaySwatchErrorMessage","serialize","wishlistCardItem","updatedWishListCount","itemsMsg","shopNewAsset","selectedListDiv","detailsTabItemCount","listItemCount","emptyWishlistMarkup","wishlistCardItems","postAddToCart","setPid","_event","giftCardProductIdInputs","giftCardProductIdInput","pGiftCardForm","initializeEvents","processInclude","ready","wishlist","giftCardDetail","SwiperCarousel"],"sourceRoot":""}