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EACtBxgB,EAAE4gB,GAAoBzC,QAAQ,QAClC,I","sources":["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/templates.js","webpack://app_custom_lilly_pulitzer/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/util.js","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/./cartridges/app_custom_lilly_pulitzer/cartridge/client/default/js/returnsPage.js"],"sourcesContent":["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","/**\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'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\">×</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","// 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); }","'use strict';\n\nimport { queryFirst, queryAll, hasClass, remove } from './domUtil';\nconst { returnsPageTemplates } = require('./templates');\nconst $body = $('body');\n\n/**\n * Injects an error message into the provided Return Form\n * @param {Element} form - Specific Return form to inject the error messaging\n * @param {string} message - Error message to display\n */\nfunction injectFormError(form, message) {\n const errorHtml = returnsPageTemplates.errorMessage(message || returnsPageTemplates.defaultError);\n const errorContainer = queryFirst('.form-error-container', form);\n errorContainer.innerHTML = errorHtml;\n}\n\n/**\n * Clears the form error messages for both the return form and the gift return forms\n */\nfunction clearFormErrors() {\n const errorAlerts = queryAll('.return-form-container .custom-error-alert');\n remove(errorAlerts);\n}\n\n$body.on('click', '.open-gift-return-form, .open-return-form', (e) => {\n const { target } = e;\n if (hasClass(target, 'open-gift-return-form')) {\n queryFirst('.js-gift-return-select').click();\n } else {\n queryFirst('.js-return-select').click();\n }\n});\n\n// Clear form error messages when switching between forms\n$body.on('click', '.return-nav-tabs a:not(\".active\")', () => {\n clearFormErrors();\n});\n\n// Clear form error messages when focusing on a form input\n$body.on('focus', '.return-form input, .gift-return-form input', () => {\n clearFormErrors();\n});\n\n$('.return-form, .gift-return-form').submit(async e => {\n e.preventDefault();\n const form = e.target;\n const formData = new FormData(form);\n const url = form.action;\n clearFormErrors();\n $body.spinner().start();\n try {\n const response = await fetch(url, {\n method: 'POST',\n body: formData\n });\n const data = await response.json();\n $body.spinner().stop();\n if (data.success && data.redirectURL) {\n window.location.href = data.redirectURL;\n } else {\n injectFormError(form, data.errorMessage);\n }\n } catch (ex) {\n $body.spinner().stop();\n injectFormError(form);\n }\n});\n\n/* Once the page has loaded, check for \"orderNumber\", \"zipCode\", and \"isGift\" in the URL query\nand auto-submit the form if they are present */\n$(document).ready(() => {\n const { search: urlParams } = window.location;\n if (!urlParams) return;\n const listParams = new URLSearchParams(urlParams);\n const orderNumber = listParams.get('orderNumber');\n const zipCode = listParams.get('zipCode');\n const isGift = listParams.get('isGift');\n if (orderNumber && zipCode) {\n let returnFormNumber;\n let returnFormZip;\n let submitReturnButton;\n if (isGift === 'true') {\n const giftTab = queryFirst('.js-gift-return-select');\n $(giftTab).trigger('click');\n returnFormNumber = queryFirst('#gift-return-form-number');\n returnFormZip = queryFirst('#gift-return-form-zip');\n submitReturnButton = queryFirst('.gift-return-form .lookup-return-btn');\n } else {\n returnFormNumber = queryFirst('#return-form-number');\n returnFormZip = queryFirst('#return-form-zip');\n submitReturnButton = queryFirst('.return-form .lookup-return-btn');\n }\n returnFormNumber.value = orderNumber;\n returnFormZip.value = zipCode;\n $(submitReturnButton).trigger('click');\n }\n});\n"],"names":["module","exports","breakpoints","xs","sm","md","lg","xl","PREFERRED_STORE_ID","EMPTY_STRING","ONE_SIZE_ID","window","lillyUtils","constants","ONE_SIZE","ONE_SIZE_LABEL","resources","CHANGED_CLASS","FILLED_CLASS","ACTIVE_CLASS","HIDDEN_CLASS","INVALID_CLASS","INVISIBLE_CLASS","NO_SCROLL_CLASS","SELECTED_CLASS","SHOW_CLASS","SHOW_ALL_CLASS","NOT_AVAILABLE_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","PLAYED_CLASS","MUTED_CLASS","UNMUTED_CLASS","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","test","navigator","userAgent","require","queryFirst","selector","parent","arguments","length","undefined","document","querySelector","loadScript","source","isAsync","Promise","resolve","script","createElement","src","async","onload","body","append","loadInput","referrerID","formElement","input","setAttribute","appendChild","queryAll","slice","call","querySelectorAll","getStyles","element","styles","getComputedStyle","_len","rules","Array","_key","map","rule","remove","el","isArray","NodeList","i","n","node","parentElement","removeChild","attr","val","removeAttribute","addClass","_len2","_key2","classList","add","removeClass","_len3","_key3","toggleClass","_len4","_key4","toggle","hasClass","_len5","classes","_key5","every","className","contains","hasAnyClass","_len6","_key6","some","throttle","callback","limit","waitCallback","isThrottling","_len7","args","_key7","returnValue","apply","_this","setTimeout","debounce","minimumDelay","options","condition","unrestrictedCallback","timer","_len8","_key8","clearTimeout","toArray","_len9","_key9","reduce","results","arg","concat","target","newTarget","array","makeArray","outerHeight","offsetHeight","parseInt","marginTop","marginBottom","isInViewportCheck","scroll","scrollY","pageYOffset","boundsTop","getBoundingClientRect","top","numberOfViewportToCheck","dataset","nextViewportLazyLoad","viewport","innerHeight","bounds","clientHeight","isInViewport","rect","bottom","right","left","innerWidth","documentElement","clientWidth","scrollTo","y","duration","$","getLastElementInRow","nextElementSibling","offsetTop","scrollHeight","sibling","previousElementSibling","updateUrlQueryParam","fragment","queryParamsElement","permaLink","hash","URL","location","href","newUrl","value","split","history","pushState","path","getCharacterCount","waitForElement","scope","timeout","reject","elements","observer","MutationObserver","mutations","self","disconnect","observe","childList","subtree","bind","eventTypes","eventCondition","bindEngine","once","type","trim","useJQuery","String","toLowerCase","targetSelectors","handler","e","extraData","Element","jQuery","Event","data","targetElement","result","closest","$element","forEach","eventType","off","removeEventListener","on","addEventListener","getProductInfoFromDataAttr","container","productInfo","parsedProductInfo","JSON","parse","getSalesPrice","priceEl","pop","getProductData","getNestedValue","containerData","monetatePid","viewType","isQuickview","productInventory","pid","wishlistId","masterId","masterid","productName","productSize","swatchName","attrValue","colorCode","productSet","productBadge","variationGroupId","originalPrice","productPrice","isPreorder","productId","find","id","indexOf","colorEl","swatchButton","attrDisplayvalue","textContent","tileEl","productData","standardPrice","price","groupId","productNameEl","productSizeEl","valueId","originalPriceEl","this","productInfoData","variants","Object","keys","variant","formattedPrice","productColor","matchesBreakpoint","breakpoint","matchMedia","matches","getCSRFToken","token","renderFragment","html","template","innerHTML","content","getCookieMap","cookie","keyValue","key","decodeURIComponent","setCookie","minutes","date","Date","setTime","getTime","toGMTString","validateDate","monthSelector","getElementById","dateSelector","message","m","d","mlength","isSelectModified","labelOption","Option","text","option","toString","selected","changeEvent","dispatchEvent","isVisible","HTMLElement","offsetParent","style","display","visibility","overflowY","height","maxHeight","toFormData","obj","includeUndefined","formData","FormData","slideUp","elem","easing","staticHeight","getPropertyValue","setProperty","getISProductContainer","srcElement","ISProductContainer","getISProductData","evgItemId","getElementsByTagName","setAdjustedSalesPrice","vgIDs","tealiumPrices","searchResultsContainer","len","adjustedPrice","quickView","quickViewModal","addToWishlist","addToWishlistModal","cart","errorMessage","cartAvailabilityMessageOOS","url","promo","shippingMethod","checkoutNormalShipping","checkoutDiscountShipping","checkout","discountPrice","swatchNameTemplate","swatchNameHtml","emptySwatchTemplate","addressSuggestions","suggestionTextTemplate","suggestionsTemplate","approachingDiscounts","nonCouponBasedAdjustmentTemplate","videoTemplate","loop","videoUrl","imgUrl","classNames","autoplay","muted","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","entries","suggestionContainer","containerClass","contactUsTemplate","signupError","msg","defaultSignupError","browserWarningTemplate","shippingPreferenceTemplates","shippingPreferences","ispuRadioLabel","ispuRadioValue","shipToRadioLabel","shipToRadioValue","changeStoreLabel","preferISPU","storeDetail","storeId","name","address1","stateCode","postalCode","productDetail","selectStyleMessageTmpl","availabilityMessageTmpl","availabilityMessageOOS","availabilityMessagePreorder","ispuSelectStyleMessageTmpl","ispuAvailabilityMessageTmpl","ispuLowStockMessageTmpl","promotionMessageTmpl","calloutMsg","details","dialogTemplate","buttons","primary","link","modalContentHeading","modalContentBody","now","slideOut","buttonSpace","Math","floor","button","join","errorTextTemplate","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","_ref","title","sliderPaginationTemplate","currentClass","totalClass","searchHistoryTemplate","searchHistoryStorage","baseUrl","clearButtonText","list","searchTerm","productTilePriceContent","priceMainHtml","priceVariationHtml","videoInnerContent","poster","tokenize","string","values","leftToken","rightToken","operators","replace","RegExp","_","code","toKebabCase","hashValue","stringify","sort","startsWith","endsWith","substr","digit","charCodeAt","toDatasetKey","charAt","toUpperCase","formatMessage","tokens","item","keyString","replaceValues","filter","o","initOnce","flag","appendToUrl","params","encodeURIComponent","getJSON","onSuccess","onError","ajax","dataType","success","error","geolocate","successCallback","mixin","errorCallback","geolocation","assign","getCurrentPosition","response","coords","latitude","longitude","maximumAge","setItemInLocalStorage","localStorage","setItem","getItemFromLocalStorage","getItem","removeItemFromLocalStorage","removeItem","formatPhoneNumber","hyphen","formatValue","numbers","char","l","event","preventDefault","errorMessageElmParent","parentNode","patternMismatch","isMobile","mobileAgentHash","idx","stickyScrollPosition","items","$window","ticking","detailStickyScroll","itemHeight","windowHeight","newTop","onScroll","requestAnimationFrame","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","$body","one","trigger","_objectSpread","modal","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","__esModule","a","definition","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","injectFormError","form","errorHtml","clearFormErrors","errorAlerts","click","submit","action","spinner","start","fetch","method","json","stop","redirectURL","ex","ready","listParams","orderNumber","zipCode","isGift","returnFormNumber","returnFormZip","submitReturnButton","giftTab"],"sourceRoot":""}