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SAAUA,EACVC,SAAUA,EACVC,OAAQA,EACRC,SAAUA,EACVC,QAASA,EACTC,SAAUA,EACVC,cAAeA,EACfS,WAAYC,EACZnlB,QAASA,EACTjd,WAAY8hC,EACZU,YAAaC,EACbtC,SAAUuC,EACVzC,MAAO0C,EACP8N,aAAcpN,GACd7hC,QAASA,GACToiC,QAASA,GACT7gC,QAASA,GACTwiC,MAAOA,GACPC,UAAWA,GACXC,MAAOA,GACPC,UAAWA,GACXxxB,KAAMA,GACN6wB,QAASA,GACT92B,OAAQA,GACR03B,MAAOA,GACPC,OAAQA,GACRj+B,UAAWA,GACXuL,QAASvL,GACT01B,OAAQA,GACR2I,UAAWA,GACX0K,OAAQ1K,GACRxmC,SAAUA,GACVqgC,OAAQA,GACRuG,MAAOA,GACPC,IAAKA,GACLj6B,IAAKA,GACL/K,IAAKA,GACLgmC,UAAWA,GACXV,SAAUA,GACV/D,SAAUA,EACV4E,KAAMA,GACNhB,OAAQD,GACRM,SAAUA,GACVY,WAAYA,GACZb,QAASA,GACT+J,QAAS/J,GACTc,MAAOA,GACP9pB,OAAQA,GACRoC,IAAKA,GACL2oB,OAAQL,GACRsI,SAAUrI,GACVC,iBAAkBA,GAClBS,SAAUA,GACVhjB,OAAQA,GACRujB,SAAUA,GACVE,MAAOA,GACPxC,SAAUA,GACV+C,QAASA,GACTppC,KAAMA,GACNiqC,QAASA,GACTC,QAASA,GACT9e,MAAOA,GACPmf,MAAOA,GACPC,SAAUA,GACVzkB,SAAUA,GACVwlB,KAAMA,GACNC,OAAQA,GACRE,QAASA,GACTjgC,MAAOA,GACPwgB,OAAQA,GACR2f,KAAMA,GACNC,QAASA,GACT/rB,UAAWA,GACXmsB,cAAeA,GACfC,YAAaA,GACb3nC,QAASA,GACTioC,YAAaA,GACb/uC,KAAMA,GACNuyC,OAAQvyC,GACRgvC,UAAWA,GACX9mC,KAAMA,GACNwH,QAASxH,GACTyK,IAAKA,GACL6/B,QAAS7/B,GACT+U,OAAQA,GACR+qB,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B,GAA0B,iBAAf6wG,WAAyB,OAAOA,WAC3C,IACC,OAAOz/H,MAAQ,IAAI8gC,SAAS,cAAb,EAChB,CAAE,MAAOjhC,GACR,GAAsB,iBAAX2C,OAAqB,OAAOA,MACxC,CACA,CAPuB,GCAxB28H,EAAoBO,IAAM,SAASjgI,GAGlC,OAFAA,EAAOulG,MAAQ,GACVvlG,EAAOoN,WAAUpN,EAAOoN,SAAW,IACjCpN,CACR,ECFAsB,EAAQ,MACRA,EAAQ","sources":["default/./app-base/plugin_wishlists/cartridges/plugin_wishlists/cartridge/client/default/js/product/wishlist.js","default/./app-base/sfcc-cartridge-improove-base/cartridges/bc_improove/cartridge/client/default/js/util/states.js","default/./app-base/sfcc-cartridge-improove-base/cartridges/bc_improove/cartridge/client/default/js/util/util.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/clientSideValidation.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/consentTracking.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/cookie.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/countrySelector.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/focus.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/footer.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/keyboardAccessibility.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/scrollAnimate.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/spinner.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/components/toolTip.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/product/base.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/product/quickView.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/thirdParty/bootstrap.js","default/./app-base/storefront-reference-architecture/cartridges/app_storefront_base/cartridge/client/default/js/util.js","default/./app-project/app_starnutrition/cartridge/client/default/js/featureFlag.js","default/./app-project/app_storefront/cartridge/client/default/js/cart/cart.js","default/./app-project/app_storefront/cartridge/client/default/js/cart/carticonwidget.js","default/./app-project/app_storefront/cartridge/client/default/js/cart/cartwidget.js","default/./app-project/app_storefront/cartridge/client/default/js/cart/miniCart.js","default/./app-project/app_storefront/cartridge/client/default/js/cart/util.js","default/./app-project/app_storefront/cartridge/client/default/js/components/collapsibleItem.js","default/./app-project/app_storefront/cartridge/client/default/js/components/dropdown.js","default/./app-project/app_storefront/cartridge/client/default/js/components/eventListeners.js","default/./app-project/app_storefront/cartridge/client/default/js/components/fold.js","default/./app-project/app_storefront/cartridge/client/default/js/components/footer.js","default/./app-project/app_storefront/cartridge/client/default/js/components/header.js","default/./app-project/app_storefront/cartridge/client/default/js/components/menu.js","default/./app-project/app_storefront/cartridge/client/default/js/components/messageBanner.js","default/./app-project/app_storefront/cartridge/client/default/js/components/scrollAnimate.js","default/./app-project/app_storefront/cartridge/client/default/js/components/search.js","default/./app-project/app_storefront/cartridge/client/default/js/components/tabs.js","default/./app-project/app_storefront/cartridge/client/default/js/components/widgets/blogcarousel.js","default/./app-project/app_storefront/cartridge/client/default/js/components/widgets/herobanner.js","default/./app-project/app_storefront/cartridge/client/default/js/index.js","default/./app-project/app_storefront/cartridge/client/default/js/product/base.js","default/./app-project/app_storefront/cartridge/client/default/js/product/klarna/instantShopping.js","default/./app-project/app_storefront/cartridge/client/default/js/product/quickView.js","default/./app-project/app_storefront/cartridge/client/default/js/product/wishlist.js","default/./app-project/app_storefront/cartridge/client/default/js/shared/analytics/voyado.js","default/./app-project/app_storefront/cartridge/client/default/js/shared/analytics/voyado/pageEvents.js","default/./app-project/app_storefront/cartridge/client/default/js/shared/featureFlag/provider.js","default/./app-project/app_storefront/cartridge/client/default/js/shared/featureFlagRegistrar.js","default/./app-project/app_storefront/cartridge/client/default/js/shared/voyadoAnalyticsLoader.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/dev-mode.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/dom.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/underscore.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/underscore/lib.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/underscore/objects.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/underscore/string.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/url.js","default/./app-project/bc_alpinejs/cartridge/client/default/js/shared/util/cookies-operation.js","default/./node_modules/bootstrap/js/src/alert.js","default/./node_modules/bootstrap/js/src/carousel.js","default/./node_modules/bootstrap/js/src/collapse.js","default/./node_modules/bootstrap/js/src/modal.js","default/./node_modules/bootstrap/js/src/scrollspy.js","default/./node_modules/bootstrap/js/src/tab.js","default/./node_modules/bootstrap/js/src/util.js","default/./node_modules/jquery/dist/jquery.js","default/./node_modules/lazysizes/lazysizes.js","default/./node_modules/lodash/lodash.js","default/./node_modules/slick-carousel/slick/slick.js","default/./node_modules/webfontloader/webfontloader.js","default/./node_modules/@babel/runtime/helpers/arrayLikeToArray.js","default/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","default/./node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js","default/./node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js","default/./node_modules/@babel/runtime/helpers/classCallCheck.js","default/./node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js","default/./node_modules/@babel/runtime/helpers/classPrivateFieldGet.js","default/./node_modules/@babel/runtime/helpers/classPrivateFieldSet.js","default/./node_modules/@babel/runtime/helpers/createClass.js","default/./node_modules/@babel/runtime/helpers/defineProperty.js","default/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","default/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","default/./node_modules/@babel/runtime/helpers/nonIterableRest.js","default/./node_modules/@babel/runtime/helpers/slicedToArray.js","default/./node_modules/@babel/runtime/helpers/toPrimitive.js","default/./node_modules/@babel/runtime/helpers/toPropertyKey.js","default/./node_modules/@babel/runtime/helpers/typeof.js","default/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","default/webpack/bootstrap","default/webpack/runtime/amd options","default/webpack/runtime/global","default/webpack/runtime/node module decorator","default/./app-project/app_starnutrition/cartridge/client/default/js/main.js"],"sourcesContent":["'use strict';\n\n\n/**\n * appends params to a url\n * @param {string} data - data returned from the server's ajax call\n * @param {Object} button - button that was clicked to add a product to the wishlist\n */\nfunction displayMessage(data, button) {\n $.spinner().stop();\n var status;\n if (data.success) {\n status = 'alert-success';\n } else {\n status = 'alert-danger';\n }\n\n if ($('.add-to-wishlist-messages').length === 0) {\n $('body').append(\n '
'\n );\n }\n $('.add-to-wishlist-messages')\n .append('
' + data.msg + '
');\n\n setTimeout(function () {\n $('.add-to-wishlist-messages').remove();\n button.removeAttr('disabled');\n }, 5000);\n}\n\nmodule.exports = {\n addToWishlist: function () {\n $('.add-to-wish-list').on('click', function (e) {\n e.preventDefault();\n var url = $(this).data('href');\n var button = $(this);\n var pid = $(this).closest('.product-detail').find('.product-id').html();\n var optionId = $(this).closest('.product-detail').find('.product-option').attr('data-option-id');\n var optionVal = $(this).closest('.product-detail').find('.options-select option:selected').attr('data-value-id');\n optionId = optionId || null;\n optionVal = optionVal || null;\n if (!url || !pid) {\n return;\n }\n\n $.spinner().start();\n $(this).attr('disabled', true);\n $.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n data: {\n pid: pid,\n optionId: optionId,\n optionVal: optionVal\n },\n success: function (data) {\n displayMessage(data, button);\n },\n error: function (err) {\n displayMessage(err, button);\n }\n });\n });\n }\n};\n","/**\n * Copyright (c) 2017 Improove\n *\n * This file is part of Improove_Lux.\n *\n * Improove_Lux is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * Improove_Lux is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Improove_Lux. If not, see .\n */\n\n/* jshint browser:true jquery:true */\n/* global confirm:true */\n\n\n'use strict';\n\nvar _ = require('lodash');\n\n/**\n * State\n *\n * @constructor\n * @param {string} id - ID of a state\n * @param {Object} $containerEl - triggered element\n * @param {Object} $triggerEls - triggering element\n * @param {Object} options - used for callbacks\n * @return {this} - this\n */\nvar State = function (id, $containerEl, $triggerEls, options) {\n this.id = id;\n this.$containerEl = $containerEl;\n this.$triggerEls = $triggerEls;\n this.options = _.defaults(options, this.options);\n if (this.$containerEl[0].getAttribute('aria-hidden')) {\n this.options.aria = true;\n }\n if (this.options.aria &&\n this.$containerEl[0].getAttribute('aria-hidden')\n ) {\n this.$containerEl[0].setAttribute('aria-hidden', 'true');\n }\n\n return this;\n};\n\nState.prototype = {\n\n /** @type {?String} */\n id: null,\n\n /** @type {?jQuery} */\n $containerEl: null,\n\n /** @type {?jQuery} */\n $triggerEls: null,\n\n /** @type {Object} */\n options: {\n\n /** @type {?Function} */\n onActivate: null,\n\n /** @type {?Function} */\n onDeactivate: null,\n\n /**\n * Should we push a state to the browser-history when this state\n * is enabled/disabled?\n *\n * @type {Boolean}\n */\n history: false,\n\n /**\n * Set aria-hidden attributes for state container\n *\n * @type {Boolean}\n */\n aria: true },\n\n /**\n * Excecute callback on State Activation\n *\n * @return {this} - this\n */\n onActivate: function () {\n if (_.isFunction(this.options.onActivate)) {\n this.options.onActivate.call(this);\n }\n\n return this;\n },\n\n /**\n * Execute callback on State Deactivation\n * @param {boolean} transitioning - are we transitioning to another state?\n * @return {this} - this\n */\n onDeactivate: function (transitioning) {\n if (_.isFunction(this.options.onDeactivate)) {\n this.options.onDeactivate.call(this, transitioning);\n }\n\n return this;\n } };\n\n/**\n * States is a singleton that handles the different layout states of the\n * app.\n *\n * @constructor\n * @return {this} - this\n */\nvar States = function () {\n this.$body = $('body');\n this.bindEvents();\n return this;\n};\n\nStates.prototype = {\n\n /** @type {jQuery} */\n $body: null,\n\n /** @type {String} */\n bodyClassPrefix: 'state--',\n\n /** @type {String} */\n eventNamePrefix: 'states:',\n\n /** @type {Object} */\n states: {},\n\n /** @type {?Object} - Currently Active State */\n activeState: null,\n\n /** @type {?Function} */\n _boundTemp: null,\n\n /**\n * Bind Events\n *\n * @return {this} - this\n */\n bindEvents: function () {\n $(window).on(\n 'hashchange popstate',\n this.activateFromHash.bind(this)\n );\n $(document).on('keyup', function (event) {\n if (event.keyCode === 27) {\n this.deactivateCurrent();\n }\n }.bind(this));\n return this;\n },\n\n\n /**\n * Activate from hash\n *\n * @return {this} - this\n */\n activateFromHash: function () {\n var hash = location.hash.slice(1);\n\n if (_.has(this.states, hash) &&\n (_.isNull(this.activeState) || this.activeState.id !== hash)) {\n this.activate(hash);\n } else if (_.isEmpty(hash) && !_.isNull(this.activeState)) {\n this.deactivate(this.activeState.id, false, true);\n }\n\n return this;\n },\n\n /**\n * Set location hash\n *\n * @param {string} id - id of a state\n * @param {boolean} push - should we push the state or not?\n * @return {this} - this\n */\n setHash: function (id, push) {\n var hash = location.hash.slice(1);\n var historyApi;\n\n if (hash !== id) {\n if (history.pushState) {\n if (push) {\n historyApi = history.pushState.bind(history);\n } else {\n historyApi = history.replaceState.bind(history);\n }\n historyApi(\n null,\n document.title,\n window.location.pathname + window.location.search +\n '#' + id\n );\n } else {\n location.hash = id;\n }\n }\n\n return this;\n },\n\n /**\n * Clear location hash\n *\n * @param {string} id - is of a state\n * @param {boolean} push - should we push the state or not?\n * @return {this} - this\n */\n clearHash: function (id, push) {\n var hash = location.hash.slice(1);\n var historyApi;\n\n if (hash === id) {\n if (history.pushState) {\n if (push) {\n historyApi = history.pushState.bind(history);\n } else {\n historyApi = history.replaceState.bind(history);\n }\n historyApi(\n null,\n document.title,\n window.location.pathname + window.location.search\n );\n } else {\n location.hash = '';\n }\n }\n\n return this;\n },\n\n /**\n * Add a new state.\n * Intended usage is within a component that requires a layout-state\n *\n * @example\n * define([\n * 'jquery',\n * 'improove/states'\n * ], function($, states) {\n * 'use strict';\n *\n * states.add('menu', $('.menu__container'), $('.menu__toggle'), {\n * onActivate: function() {\n * // callback for activate ...\n * },\n * onDeactivate: function() {\n * // callback for deactivate ...\n * }\n * });\n * });\n *\n * @param {string} id - id of a state\n * @param {jQuery} $containerEl - element that is being triggered in state\n * @param {jQuery} $triggerEls - the triggering element\n * @param {Object} options - used for callbacks\n * @param {?Function} options.onActivate - callback for state activation\n * @param {?Function} options.onDeactivate - callback for state deactivation\n * @return {this} - this\n */\n add: function (id, $containerEl, $triggerEls, options) {\n if (id && $containerEl.length) {\n this.states[id] = new State(id, $containerEl, $triggerEls, options);\n this.bindStateTriggers(this.states[id]);\n this.activateFromHash();\n }\n\n return this;\n },\n\n /**\n * @param {string} id - ID of state\n * @param {jQuery} $containerEl - element that is being triggered in state\n * @param {jQuery} $triggerEls - the triggering element\n * @return {this} - this\n */\n updateDOMReferences: function (id, $containerEl, $triggerEls) {\n if (id && $containerEl.length) {\n var state = this.states[id];\n state.$containerEl = $containerEl;\n state.$triggerEls = $triggerEls;\n this.bindStateTriggers(this.states[id]);\n this.activateFromHash();\n }\n\n return this;\n },\n\n /**\n * Bind state triggers for given state\n *\n * @param {Object} state - state object\n * @return {this} - this\n */\n bindStateTriggers: function (state) {\n if (!_.isNull(state.$triggerEls)) {\n state.$triggerEls.on('click', this.toggle.bind(this, state.id));\n }\n\n return this;\n },\n\n /**\n * Unbind state triggers for given state\n *\n * @param {Object} state - state object\n * @return {this} - this\n */\n unbindStateTriggers: function (state) {\n if (!_.isNull(state.$triggerEls)) {\n state.$triggerEls.off(\n 'click', this.toggle.bind(this, state.id));\n }\n\n return this;\n },\n\n /**\n * Remove a state by id\n *\n * @param {string} id - id of a state\n * @return {this} - this\n */\n remove: function (id) {\n if (_.has(this.states, id)) {\n this.unbindStateTriggers(this.states[id]);\n this.states = _.omit(this.states, id);\n }\n\n return this;\n },\n\n /**\n * Activate a state by id\n * @param {string} id - id of a state\n * @param {boolean} ignoreCallbacks - should state callbacks be ignored?\n * @return {this} - this\n */\n activate: function (id, ignoreCallbacks) {\n if (!_.isNull(this.activeState)) {\n this.deactivate(this.activeState.id, true, ignoreCallbacks);\n }\n if (_.has(this.states, id) && _.isNull(this.activeState)) {\n window.requestAnimationFrame(function () {\n this.$body[0].classList.add(this.bodyClassPrefix + id);\n }.bind(this));\n this.activeState = this.states[id];\n this.setHash(id, this.states[id].options.history);\n this.bindTemp(id);\n if (this.states[id].options.aria) {\n this.states[id].$containerEl[0].setAttribute(\n 'aria-hidden',\n 'false'\n );\n this.states[id].$triggerEls[0].setAttribute(\n 'aria-expanded',\n 'true'\n );\n }\n if (!ignoreCallbacks) {\n this.activeState.onActivate.call(this.states[id]);\n }\n $(document).trigger(this.eventNamePrefix + id + '-activated');\n }\n\n return this;\n },\n\n /**\n * Deactivate a state by id\n * @param {string} id - ID of a space\n * @param {boolean} transitioning - are we transitioning from state x to y?\n * @param {boolean} ignoreCallbacks - should state callbacks be ignored?\n * @return {this} - this\n */\n deactivate: function (id, transitioning, ignoreCallbacks) {\n if (_.has(this.states, id)) {\n window.requestAnimationFrame(function () {\n this.$body[0].classList.remove(this.bodyClassPrefix + id);\n }.bind(this));\n if (_.isEqual(this.activeState, this.states[id])) {\n this.activeState = null;\n }\n this.clearHash(id, this.states[id].options.history);\n this.unbindTemp();\n if (this.states[id].options.aria) {\n this.states[id].$containerEl[0].setAttribute(\n 'aria-hidden',\n 'true'\n );\n this.states[id].$triggerEls[0].setAttribute(\n 'aria-expanded',\n 'false'\n );\n }\n if (!ignoreCallbacks) {\n this.states[id].onDeactivate.call(\n this.states[id], transitioning\n );\n }\n $(document).trigger(this.eventNamePrefix + id + '-deactivated');\n }\n return this;\n },\n\n /**\n * Toggle a state by id\n * @param {string} id - ID of a state\n * @param {jQuery.Event} event - JQuery event\n * @return {this} - this\n */\n toggle: function (id, event) {\n event.stopPropagation(); // dont propagate to body click temp bind\n if (_.isEqual(this.activeState, this.states[id])) {\n this.deactivate(id);\n } else {\n this.activate(id);\n }\n return this;\n },\n\n /**\n * Deactivate currently active state\n * @param {boolean} ignoreCallbacks - ignore or not\n * @return {this} - this\n */\n deactivateCurrent: function (ignoreCallbacks) {\n if (!_.isNull(this.activeState)) {\n this.deactivate(this.activeState.id, false, ignoreCallbacks);\n }\n\n return this;\n },\n\n /**\n * Retrieve state by id\n * @param {string} id - ID of a state\n * @return {false|Object} - Returns false if no state is found\n */\n getStateById: function (id) {\n if (_.has(this.states, id)) {\n return this.states[id];\n }\n\n return false;\n },\n\n /**\n * Bind temp click observer\n * @param {string} id - ID of a state\n */\n bindTemp: function (id) {\n this.unbindTemp();\n this.boundTemp = this.bodyClick.bind(this, id);\n this.$body.on('click', this.boundTemp);\n },\n\n /**\n * Unbind temp click observer\n */\n unbindTemp: function () {\n if (_.isFunction(this.boundTemp)) {\n this.$body.off('click', this.boundTemp);\n }\n },\n\n /**\n * Close current state if click was outside container\n * @param {id} id - ID of a state\n * @param {jQuery} event - event object\n */\n bodyClick: function (id, event) {\n if (this.states[id] &&\n (!_.isEqual(this.states[id].$containerEl[0], event.target) &&\n !$.contains(this.states[id].$containerEl[0], event.target))\n ) {\n this.deactivate(id);\n this.unbindTemp();\n }\n } };\n\n/**\n * Create instance of States\n *\n * @type {States}\n */\nmodule.exports = new States();\n","'use strict';\n\nvar util = {\n /**\n * @function\n * @description\n * @param {string} el first Param\n * @param {string} offsetToTop second Param\n * @returns {string} string\n */\n elementInViewport: function (el, offsetToTop) {\n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n\n while (el.offsetParent) {\n var ele = el.offsetParent;\n top += ele.offsetTop;\n left += ele.offsetLeft;\n }\n\n if (typeof offsetToTop !== 'undefined') {\n top -= offsetToTop;\n }\n\n if (window.pageXOffset !== null) {\n return top < window.pageYOffset + window.innerHeight && left < window.pageXOffset + window.innerWidth && top + height > window.pageYOffset && left + width > window.pageXOffset;\n }\n\n if (document.compatMode === 'CSS1Compat') {\n return (\n top < window.document.documentElement.scrollTop + window.document.documentElement.clientHeight &&\n left < window.document.documentElement.scrollLeft + window.document.documentElement.clientWidth &&\n top + height > window.document.documentElement.scrollTop &&\n left + width > window.document.documentElement.scrollLeft\n );\n }\n return null;\n },\n\n /**\n * @function\n * @description Appends the parameter 'format=ajax' to a given path\n * @param {string} path the relative path\n * @return {string} path\n */\n ajaxUrl: function (path) {\n return this.appendParamToURL(path, 'format', 'ajax');\n },\n\n /**\n * @function\n * @description\n * @param {string} url firsts param\n * @return {string} url\n */\n toAbsoluteUrl: function (url) {\n let link;\n if (url.indexOf('http') !== 0 && url.charAt(0) !== '/') {\n link = '/' + url;\n }\n return link;\n },\n\n /**\n * @function\n * @description Scrolls a browser window to a given x point\n * @param {string} xLocation first param\n */\n scrollBrowser: function (xLocation) {\n $('html, body').animate({ scrollTop: xLocation }, 500);\n },\n\n isMobile: function () {\n var mobileAgentHash = ['mobile', 'tablet', 'phone', 'ipad', 'ipod', 'android', 'blackberry', 'windows ce', 'opera mini', 'palm'];\n var idx = 0;\n var isMobile = false;\n var 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 * Get Screen Size from media queries\n *\n * @return {string} return screen size\n */\n getScreenSize: function () {\n var screenSize = '';\n\n if ($('.screen-size-indicator').length > 0) {\n screenSize = window.getComputedStyle($('.screen-size-indicator')[0], ':before').getPropertyValue('content');\n screenSize = screenSize.replace(/\"/g, '');\n }\n\n return screenSize;\n }\n};\n\nmodule.exports = util;\n","'use strict';\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 (this.checkValidity && !this.checkValidity()) {\n // safari\n valid = false;\n if (event) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n }\n $(this).find('input, select').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('is-invalid');\n}\n\nmodule.exports = {\n invalid: function () {\n $('form input, form select').on('invalid', function (e) {\n e.preventDefault();\n this.setCustomValidity('');\n if (!this.validity.valid) {\n var validationMessage = this.validationMessage;\n $(this).addClass('is-invalid');\n if (this.validity.patternMismatch && $(this).data('pattern-mismatch')) {\n validationMessage = $(this).data('pattern-mismatch');\n }\n if ((this.validity.rangeOverflow || this.validity.rangeUnderflow)\n && $(this).data('range-error')) {\n validationMessage = $(this).data('range-error');\n }\n if ((this.validity.tooLong || this.validity.tooShort)\n && $(this).data('range-error')) {\n validationMessage = $(this).data('range-error');\n }\n if (this.validity.valueMissing && $(this).data('missing-error')) {\n validationMessage = $(this).data('missing-error');\n }\n $(this).parents('.form-group').find('.invalid-feedback')\n .text(validationMessage);\n }\n });\n },\n\n submit: function () {\n $('form').on('submit', function (e) {\n return validateForm.call(this, e);\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 clearForm($(this).parents('form'));\n });\n },\n\n functions: {\n validateForm: function (form, event) {\n validateForm.call($(form), event || null);\n },\n clearForm: clearForm\n }\n};\n","'use strict';\n\nvar focusHelper = require('../components/focus');\n\n/**\n * Renders a modal window that will track the users consenting to accepting site tracking policy\n */\nfunction showConsentModal() {\n if (!$('.tracking-consent').data('caonline')) {\n return;\n }\n\n var urlContent = $('.tracking-consent').data('url');\n var urlAccept = $('.tracking-consent').data('accept');\n var urlReject = $('.tracking-consent').data('reject');\n var textYes = $('.tracking-consent').data('accepttext');\n var textNo = $('.tracking-consent').data('rejecttext');\n var textHeader = $('.tracking-consent').data('heading');\n\n var htmlString = ''\n + '
'\n + '
'\n + ''\n + '
'\n + '
'\n + textHeader\n + '
'\n + '
'\n + '
'\n + '
'\n + ''\n + ''\n + '
'\n + '
'\n + '
'\n + '
'\n + '
';\n $.spinner().start();\n $('body').append(htmlString);\n\n $.ajax({\n url: urlContent,\n type: 'get',\n dataType: 'html',\n success: function (response) {\n $('.modal-body').html(response);\n $('#consent-tracking').modal('show');\n },\n error: function () {\n $('#consent-tracking').remove();\n }\n });\n\n $('#consent-tracking .button-wrapper button').click(function (e) {\n e.preventDefault();\n var url = $(this).data('url');\n $.ajax({\n url: url,\n type: 'get',\n dataType: 'json',\n success: function () {\n $('#consent-tracking').remove();\n $.spinner().stop();\n },\n error: function () {\n $('#consent-tracking').remove();\n $.spinner().stop();\n }\n });\n });\n}\n\nmodule.exports = function () {\n if ($('.consented').length === 0 && $('.tracking-consent').hasClass('api-true')) {\n showConsentModal();\n }\n\n if ($('.tracking-consent').hasClass('api-true')) {\n $('.tracking-consent').click(function () {\n showConsentModal();\n });\n }\n\n $('body').on('shown.bs.modal', '#consent-tracking', function () {\n $('#consent-tracking').siblings().attr('aria-hidden', 'true');\n $('#consent-tracking .close').focus();\n });\n\n $('body').on('hidden.bs.modal', '#consent-tracking', function () {\n $('#consent-tracking').siblings().attr('aria-hidden', 'false');\n });\n\n $('body').on('keydown', '#consent-tracking', function (e) {\n var focusParams = {\n event: e,\n containerSelector: '#consent-tracking',\n firstElementSelector: '.affirm',\n lastElementSelector: '.decline',\n nextToLastElementSelector: '.affirm'\n };\n focusHelper.setTabNextFocus(focusParams);\n });\n};\n","'use strict';\n\n/**\n * Get cookie value by cookie name from browser\n * @param {string} cookieName - name of the cookie\n * @returns {string} cookie value of the found cookie name\n */\nfunction getCookie(cookieName) {\n var name = cookieName + '=';\n var decodedCookie = decodeURIComponent(document.cookie);\n var cookieArray = decodedCookie.split(';');\n for (var i = 0; i < cookieArray.length; i++) {\n var cookieItem = cookieArray[i];\n while (cookieItem.charAt(0) === ' ') {\n cookieItem = cookieItem.substring(1);\n }\n if (cookieItem.indexOf(name) === 0) {\n return cookieItem.substring(name.length, cookieItem.length);\n }\n }\n return '';\n}\n\nmodule.exports = function () {\n if ($('.valid-cookie-warning').length > 0) {\n var previousSessionID = window.localStorage.getItem('previousSid');\n var currentSessionID = getCookie('sid');\n if (!previousSessionID && currentSessionID) {\n // When a user first time visit the home page,\n // set the previousSessionID to currentSessionID\n // and Show the cookie alert\n previousSessionID = currentSessionID;\n window.localStorage.setItem('previousSid', previousSessionID);\n $('.cookie-warning-messaging').show();\n } else if (previousSessionID && previousSessionID === currentSessionID) {\n // Hide the cookie alert if user is in the same session\n $('.cookie-warning-messaging').hide();\n } else {\n // Clear the previousSessionID from localStorage\n // when user session is changed or expired\n window.localStorage.removeItem('previousSid');\n }\n }\n};\n","'use strict';\n\nvar keyboardAccessibility = require('./keyboardAccessibility');\n\nmodule.exports = function () {\n $('.country-selector a').click(function (e) {\n e.preventDefault();\n var action = $('.page').data('action');\n var localeCode = $(this).data('locale');\n var localeCurrencyCode = $(this).data('currencycode');\n var queryString = $('.page').data('querystring');\n var url = $('.country-selector').data('url');\n\n $.ajax({\n url: url,\n type: 'get',\n dataType: 'json',\n data: {\n code: localeCode,\n queryString: queryString,\n CurrencyCode: localeCurrencyCode,\n action: action\n },\n success: function (response) {\n $.spinner().stop();\n if (response && response.redirectUrl) {\n window.location.href = response.redirectUrl;\n }\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n\n keyboardAccessibility('.navbar-header .country-selector',\n {\n 40: function ($countryOptions) { // down\n if ($(this).is(':focus')) {\n $countryOptions.first().focus();\n } else {\n $(':focus').next().focus();\n }\n },\n 38: function ($countryOptions) { // up\n if ($countryOptions.first().is(':focus') || $(this).is(':focus')) {\n $(this).focus();\n $(this).removeClass('show');\n } else {\n $(':focus').prev().focus();\n }\n },\n 27: function () { // escape\n $(this).focus();\n $(this).removeClass('show').children('.dropdown-menu').removeClass('show');\n },\n 9: function () { // tab\n $(this).removeClass('show').children('.dropdown-menu').removeClass('show');\n }\n },\n function () {\n if (!($(this).hasClass('show'))) {\n $(this).addClass('show');\n }\n return $(this).find('.dropdown-country-selector').children('a');\n }\n );\n\n $('.navbar-header .country-selector').on('focusin', function () {\n $(this).addClass('show').children('.dropdown-menu').addClass('show');\n });\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\nvar scrollAnimate = require('./scrollAnimate');\n\n/**\n * appends params to a url\n * @param {string} data - data returned from the server's ajax call\n * @param {Object} button - button that was clicked for email sign-up\n */\nfunction displayMessage(data, button) {\n $.spinner().stop();\n var status;\n if (data.success) {\n status = 'alert-success';\n } else {\n status = 'alert-danger';\n }\n\n if ($('.email-signup-message').length === 0) {\n $('body').append(\n '
'\n );\n }\n $('.email-signup-message')\n .append('
' + data.msg + '
');\n\n setTimeout(function () {\n $('.email-signup-message').remove();\n button.removeAttr('disabled');\n }, 3000);\n}\n\nmodule.exports = function () {\n $('.back-to-top').click(function () {\n scrollAnimate();\n });\n\n $('.subscribe-email').on('click', function (e) {\n e.preventDefault();\n var url = $(this).data('href');\n var button = $(this);\n var emailId = $('input[name=hpEmailSignUp]').val();\n $.spinner().start();\n $(this).attr('disabled', true);\n $.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n data: {\n emailId: emailId\n },\n success: function (data) {\n displayMessage(data, button);\n },\n error: function (err) {\n displayMessage(err, button);\n }\n });\n });\n};\n","'use strict';\n\nmodule.exports = function (selector, keyFunctions, preFunction) {\n $(selector).on('keydown', function (e) {\n var key = e.which;\n var supportedKeyCodes = [37, 38, 39, 40, 27];\n if (supportedKeyCodes.indexOf(key) >= 0) {\n e.preventDefault();\n }\n var returnedScope = preFunction.call(this);\n if (keyFunctions[key]) {\n keyFunctions[key].call(this, returnedScope);\n }\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\n/**\n * Show a spinner inside a given element\n * @param {element} $target - Element to block by the veil and spinner.\n * Pass body to block the whole page.\n */\nfunction addSpinner($target) {\n var $veil = $('
');\n $veil.append('
');\n if ($target.get(0).tagName === 'IMG') {\n $target.after($veil);\n $veil.css({ width: $target.width(), height: $target.height() });\n if ($target.parent().css('position') === 'static') {\n $target.parent().css('position', 'relative');\n }\n } else {\n $target.append($veil);\n if ($target.css('position') === 'static') {\n $target.parent().css('position', 'relative');\n $target.parent().addClass('veiled');\n }\n if ($target.get(0).tagName === 'BODY') {\n $veil.find('.spinner').css('position', 'fixed');\n }\n }\n $veil.click(function (e) {\n e.stopPropagation();\n });\n}\n\n/**\n * Remove existing spinner\n * @param {element} $veil - jQuery pointer to the veil element\n */\nfunction removeSpinner($veil) {\n if ($veil.parent().hasClass('veiled')) {\n $veil.parent().css('position', '');\n $veil.parent().removeClass('veiled');\n }\n $veil.off('click');\n $veil.remove();\n}\n\n// element level spinner:\n$.fn.spinner = function () {\n var $element = $(this);\n var Fn = function () {\n this.start = function () {\n if ($element.length) {\n addSpinner($element);\n }\n };\n this.stop = function () {\n if ($element.length) {\n var $veil = $('.veil');\n removeSpinner($veil);\n }\n };\n };\n return new Fn();\n};\n\n// page-level spinner:\n$.spinner = function () {\n var Fn = function () {\n this.start = function () {\n addSpinner($('body'));\n };\n this.stop = function () {\n removeSpinner($('.veil'));\n };\n };\n return new Fn();\n};\n","'use strict';\n\nmodule.exports = function () {\n $('.info-icon').on('mouseenter focusin', function () {\n $(this).find('.tooltip').removeClass('d-none');\n });\n\n $('.info-icon').on('mouseleave focusout', function () {\n $(this).find('.tooltip').addClass('d-none');\n });\n};\n","'use strict';\nvar focusHelper = require('../components/focus');\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').data('pid');\n } else if ($('.product-set-detail').length || $('.product-set').length) {\n pid = $($el).closest('.product-detail').find('.product-id').text();\n } else {\n pid = $('.product-detail:not(\".bundle-item\")').data('pid');\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 var quantitySelected;\n if ($el && $('.set-items').length) {\n quantitySelected = $($el).closest('.product-detail').find('.quantity-select');\n } else if ($el && $('.product-bundle').length) {\n var quantitySelectedModal = $($el).closest('.modal-footer').find('.quantity-select');\n var quantitySelectedPDP = $($el).closest('.bundle-footer').find('.quantity-select');\n if (quantitySelectedModal.val() === undefined) {\n quantitySelected = quantitySelectedPDP;\n } else {\n quantitySelected = quantitySelectedModal;\n }\n } else {\n quantitySelected = $('.quantity-select');\n }\n return quantitySelected;\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 attr.values.forEach(function (attrValue) {\n var $attrValue = $productContainer.find('[data-attr=\"' + attr.id + '\"] [data-attr-value=\"' +\n 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 if (attrValue.url) {\n $swatchButton.attr('data-url', attrValue.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 var $attr = '[data-attr=\"' + attr.id + '\"]';\n var $defaultOption = $productContainer.find($attr + ' .select-' + attr.id + ' option:first');\n $defaultOption.attr('value', attr.resetUrl);\n\n attr.values.forEach(function (attrValue) {\n var $attrValue = $productContainer\n .find($attr + ' [data-attr-value=\"' + attrValue.value + '\"]');\n $attrValue.attr('value', attrValue.url)\n .removeAttr('disabled');\n\n if (!attrValue.selectable) {\n $attrValue.attr('disabled', true);\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 if (!response.product.readyToOrder) {\n availabilityValue = '
  • ' + response.resources.info_selectforstock + '
  • ';\n } else {\n availabilityMessages.forEach(function (message) {\n availabilityValue += '
  • ' + message + '
  • ';\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 += '
    ' + attribute.label + ': '\n + attribute.value + '
    ';\n });\n }\n });\n\n return html;\n}\n\n/**\n * @typedef UpdatedOptionValue\n * @type Object\n * @property {string} id - Option value ID for look up\n * @property {string} url - Updated option value selection URL\n */\n\n/**\n * @typedef OptionSelectionResponse\n * @type Object\n * @property {string} priceHtml - Updated price HTML code\n * @property {Object} options - Updated Options\n * @property {string} options.id - Option ID\n * @property {UpdatedOptionValue[]} options.values - Option values\n */\n\n/**\n * Updates DOM using post-option selection Ajax response\n *\n * @param {OptionSelectionResponse} optionsHtml - Ajax response optionsHtml from selecting a product option\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction updateOptions(optionsHtml, $productContainer) {\n\t// Update options\n $productContainer.find('.product-options').empty().html(optionsHtml);\n}\n\n/**\n * Dynamically creates Bootstrap carousel from response containing images\n * @param {Object[]} imgs - Array of large product images,along with related information\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction createCarousel(imgs, $productContainer) {\n var carousel = $productContainer.find('.carousel');\n $(carousel).carousel('dispose');\n var carouselId = $(carousel).attr('id');\n $(carousel).empty().append('
      ' + $(carousel).data('prev') + '' + $(carousel).data('next') + '');\n for (var i = 0; i < imgs.length; i++) {\n $('
      \"'
      ').appendTo($(carousel).find('.carousel-inner'));\n $('
    1. ').appendTo($(carousel).find('.carousel-indicators'));\n }\n $($(carousel).find('.carousel-item')).first().addClass('active');\n $($(carousel).find('.carousel-indicators > li')).first().addClass('active');\n if (imgs.length === 1) {\n $($(carousel).find('.carousel-indicators, a[class^=\"carousel-control-\"]')).detach();\n }\n $(carousel).carousel();\n $($(carousel).find('.carousel-indicators')).attr('aria-hidden', true);\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 =\n $productContainer.parents('.choose-bonus-product-dialog').length > 0;\n var isVaraint;\n if (response.product.variationAttributes) {\n updateAttrs(response.product.variationAttributes, $productContainer, response.resources);\n isVaraint = response.product.productType === 'variant';\n if (isChoiceOfBonusProducts && isVaraint) {\n $productContainer.parent('.bonus-product-item')\n .data('pid', response.product.id);\n\n $productContainer.parent('.bonus-product-item')\n .data('ready-to-order', response.product.readyToOrder);\n }\n }\n\n // Update primary images\n var primaryImageUrls = response.product.images.large;\n createCarousel(primaryImageUrls, $productContainer);\n\n // Update pricing\n if (!isChoiceOfBonusProducts) {\n var $priceSelector = $('.prices .price', $productContainer).length\n ? $('.prices .price', $productContainer)\n : $('.prices .price');\n $priceSelector.replaceWith(response.product.price.html);\n }\n\n // Update promotions\n $productContainer.find('.promotions').empty().html(response.product.promotionsHtml);\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, $productContainer: $productContainer\n });\n } else {\n // Enable \"Add to Cart\" button if all required attributes have been selected\n $('button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global').trigger('product:updateAddToCart', {\n product: response.product, $productContainer: $productContainer\n }).trigger('product:statusUpdate', response.product);\n }\n\n // Update attributes\n $productContainer.find('.main-attributes').empty()\n .html(getAttributesHtml(response.product.attributes));\n}\n\n/**\n * @typespec UpdatedQuantity\n * @type Object\n * @property {boolean} selected - Whether the quantity has been selected\n * @property {string} value - The number of products to purchase\n * @property {string} url - Compiled URL that specifies variation attributes, product ID, options,\n * etc.\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.parent('.bonus-product-item').length <= 0) {\n var optionsHtml = quantities.map(function (quantity) {\n var selected = quantity.selected ? ' selected ' : '';\n return '';\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 */\nfunction attributeSelect(selectedValueUrl, $productContainer) {\n if (selectedValueUrl) {\n $('body').trigger('product:beforeAttributeSelect',\n { url: selectedValueUrl, container: $productContainer });\n\n $.ajax({\n url: selectedValueUrl,\n method: 'GET',\n success: function (data) {\n handleVariantResponse(data, $productContainer);\n updateOptions(data.product.optionsHtml, $productContainer);\n updateQuantities(data.product.quantities, $productContainer);\n $('body').trigger('product:afterAttributeSelect',\n { data: data, container: $productContainer });\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\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 var $html = $('
      ').append($.parseHTML(html));\n\n var body = $html.find('.choice-of-bonus-product');\n var footer = $html.find('.modal-footer').children();\n\n return { body: body, footer: footer };\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 */\nfunction chooseBonusProducts(data) {\n $('.modal-body').spinner().start();\n\n if ($('#chooseBonusProductModal').length !== 0) {\n $('#chooseBonusProductModal').remove();\n }\n var bonusUrl;\n if (data.bonusChoiceRuleBased) {\n bonusUrl = data.showProductsUrlRuleBased;\n } else {\n bonusUrl = data.showProductsUrlListBased;\n }\n\n var htmlString = ''\n + '
      '\n + ''\n + '
      '\n + ''\n + '
      '\n + '
      '\n + ' ' + data.labels.selectprods + ''\n + ' '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      ';\n $('body').append(htmlString);\n $('.modal-body').spinner().start();\n\n $.ajax({\n url: bonusUrl,\n method: 'GET',\n dataType: 'json',\n success: function (response) {\n var parsedHtml = parseHtml(response.renderedTemplate);\n $('#chooseBonusProductModal .modal-body').empty();\n $('#chooseBonusProductModal .enter-message').text(response.enterDialogMessage);\n $('#chooseBonusProductModal .modal-header .close .sr-only').text(response.closeButtonText);\n $('#chooseBonusProductModal .modal-body').html(parsedHtml.body);\n $('#chooseBonusProductModal .modal-footer').html(parsedHtml.footer);\n $('#chooseBonusProductModal').modal('show');\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\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 var messageType = response.error ? 'alert-danger' : 'alert-success';\n // show add to cart toast\n if (response.newBonusDiscountLineItem\n && Object.keys(response.newBonusDiscountLineItem).length !== 0) {\n chooseBonusProducts(response.newBonusDiscountLineItem);\n } else {\n if ($('.add-to-cart-messages').length === 0) {\n $('body').append(\n '
      '\n );\n }\n\n $('.add-to-cart-messages').append(\n '
      '\n + response.message\n + '
      '\n );\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 + '\"]')\n .data('value-id');\n return {\n optionId: $(this).data('option-id'),\n selectedValueId: selectedValueId\n };\n }).toArray();\n\n return JSON.stringify(options);\n}\n\n/**\n * Makes a call to the server to report the event of adding an item to the cart\n *\n * @param {string | boolean} url - a string representing the end point to hit so that the event can be recorded, or false\n */\nfunction miniCartReportingUrl(url) {\n if (url) {\n $.ajax({\n url: url,\n method: 'GET',\n success: function () {\n // reporting urls hit on the server\n },\n error: function () {\n // no reporting urls hit on the server\n }\n });\n }\n}\n\nmodule.exports = {\n attributeSelect: attributeSelect,\n methods: {\n editBonusProducts: function (data) {\n chooseBonusProducts(data);\n }\n },\n\n focusChooseBonusProductModal: function () {\n $('body').on('shown.bs.modal', '#chooseBonusProductModal', function () {\n $('#chooseBonusProductModal').siblings().attr('aria-hidden', 'true');\n $('#chooseBonusProductModal .close').focus();\n });\n },\n\n onClosingChooseBonusProductModal: function () {\n $('body').on('hidden.bs.modal', '#chooseBonusProductModal', function () {\n $('#chooseBonusProductModal').siblings().attr('aria-hidden', 'false');\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', function (e) {\n e.preventDefault();\n\n if ($(this).attr('disabled')) {\n return;\n }\n var $productContainer = $(this).closest('.set-item');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.product-detail');\n }\n\n attributeSelect($(this).attr('data-url'), $productContainer);\n });\n },\n\n selectAttribute: function () {\n $(document).on('change', 'select[class*=\"select-\"], .options-select', function (e) {\n e.preventDefault();\n\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 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'),\n $productContainer);\n }\n });\n },\n\n addToCart: function () {\n $(document).on('click', 'button.add-to-cart, button.add-to-cart-global', function () {\n var addToCartUrl;\n var pid;\n var pidsObj;\n var setPids;\n\n $('body').trigger('product:beforeAddToCart', this);\n\n if ($('.set-items').length && $(this).hasClass('add-to-cart-global')) {\n setPids = [];\n\n $('.product-detail').each(function () {\n if (!$(this).hasClass('product-set-detail')) {\n setPids.push({\n pid: $(this).find('.product-id').text(),\n qty: $(this).find('.quantity-select').val(),\n options: getOptions($(this))\n });\n }\n });\n pidsObj = JSON.stringify(setPids);\n }\n\n pid = getPidValue($(this));\n\n var $productContainer = $(this).closest('.product-detail');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.quick-view-dialog').find('.product-detail');\n }\n\n addToCartUrl = getAddToCartUrl();\n\n var form = {\n pid: pid,\n pidsObj: pidsObj,\n childProducts: getChildProducts(),\n quantity: getQuantitySelected($(this))\n };\n\n if (!$('.bundle-item').length) {\n form.options = getOptions($productContainer);\n }\n\n $(this).trigger('updateAddToCartFormData', form);\n if (addToCartUrl) {\n $.ajax({\n url: addToCartUrl,\n method: 'POST',\n data: form,\n success: function (data) {\n handlePostCartAdd(data);\n $('body').trigger('product:afterAddToCart', data);\n $.spinner().stop();\n miniCartReportingUrl(data.reportingURL);\n },\n error: function () {\n $.spinner().stop();\n }\n });\n }\n });\n },\n selectBonusProduct: function () {\n $(document).on('click', '.select-bonus-product', function () {\n var $choiceOfBonusProduct = $(this).parents('.choice-of-bonus-product');\n var pid = $(this).data('pid');\n var maxPids = $('.choose-bonus-product-dialog').data('total-qty');\n var submittedQty = parseInt($choiceOfBonusProduct.find('.bonus-quantity-select').val(), 10);\n var totalQty = 0;\n $.each($('#chooseBonusProductModal .selected-bonus-products .selected-pid'), function () {\n totalQty += $(this).data('qty');\n });\n totalQty += submittedQty;\n var optionID = $choiceOfBonusProduct.find('.product-option').data('option-id');\n var valueId = $choiceOfBonusProduct.find('.options-select option:selected').data('valueId');\n if (totalQty <= maxPids) {\n var selectedBonusProductHtml = ''\n + '
      '\n + '
      '\n + $choiceOfBonusProduct.find('.product-name').html()\n + '
      '\n + '
      '\n + '
      '\n ;\n $('#chooseBonusProductModal .selected-bonus-products').append(selectedBonusProductHtml);\n $('.pre-cart-products').html(totalQty);\n $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n } else {\n $('.selected-bonus-products .bonus-summary').addClass('alert-danger');\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',\n (!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 =\n parseInt($(this)\n .data('qty'), 10);\n\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 = $(this).data('pid');\n option.selectedValueId = $(this).data('option-selected-value');\n }\n pidsObject.bonusProducts.push({\n pid: $(this).data('pid'),\n qty: qtyOption,\n options: [option]\n });\n pidsObject.totalQty = parseInt($('.pre-cart-products').html(), 10);\n }\n });\n queryString += JSON.stringify(pidsObject);\n queryString = queryString + '&uuid=' + $('.choose-bonus-product-dialog').data('uuid');\n queryString = queryString + '&pliuuid=' + $('.choose-bonus-product-dialog').data('pliuuid');\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('
      ');\n }\n $('.add-to-cart-messages').append(\n '
      '\n + data.errorMessage + '
      '\n );\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\n if ($('.add-to-cart-messages').length === 0) {\n $('body').append('
      ');\n }\n $('.minicart-quantity').html(data.totalQty);\n $('.add-to-cart-messages').append(\n '
      '\n + data.msgSuccess + '
      '\n );\n setTimeout(function () {\n $('.add-to-basket-alert').remove();\n if ($('.cart-page').length) {\n location.reload();\n }\n }, 1500);\n }\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n },\n\n getPidValue: getPidValue,\n getQuantitySelected: getQuantitySelected,\n miniCartReportingUrl: miniCartReportingUrl\n};\n","'use strict';\nvar base = require('./base');\nvar focusHelper = require('../components/focus');\n\n/**\n * Generates the modal window on the first call.\n *\n */\nfunction getModalHtmlElement() {\n if ($('#quickViewModal').length !== 0) {\n $('#quickViewModal').remove();\n }\n var htmlString = ''\n + '
      '\n + ''\n + '
      '\n + ''\n + '
      '\n + '
      '\n + ' '\n + ' '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      ';\n $('body').append(htmlString);\n}\n\n/**\n * @typedef {Object} QuickViewHtml\n * @property {string} body - Main Quick View body\n * @property {string} footer - Quick View footer content\n */\n\n/**\n * Parse HTML code in Ajax response\n *\n * @param {string} html - Rendered HTML from quickview template\n * @return {QuickViewHtml} - QuickView content components\n */\nfunction parseHtml(html) {\n var $html = $('
      ').append($.parseHTML(html));\n\n var body = $html.find('.product-quickview');\n var footer = $html.find('.modal-footer').children();\n\n return { body: body, footer: footer };\n}\n\n/**\n * replaces the content in the modal window on for the selected product variation.\n * @param {string} selectedValueUrl - url to be used to retrieve a new product model\n */\nfunction fillModalElement(selectedValueUrl) {\n $('.modal-body').spinner().start();\n $.ajax({\n url: selectedValueUrl,\n method: 'GET',\n dataType: 'json',\n success: function (data) {\n var parsedHtml = parseHtml(data.renderedTemplate);\n\n $('.modal-body').empty();\n $('.modal-body').html(parsedHtml.body);\n $('.modal-footer').html(parsedHtml.footer);\n $('.full-pdp-link').text(data.quickViewFullDetailMsg);\n $('#quickViewModal .full-pdp-link').attr('href', data.productUrl);\n $('#quickViewModal .size-chart').attr('href', data.productUrl);\n $('#quickViewModal .modal-header .close .sr-only').text(data.closeButtonText);\n $('#quickViewModal .enter-message').text(data.enterDialogMessage);\n $('#quickViewModal').modal('show');\n $('body').trigger('quickview:ready');\n\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n}\n\nmodule.exports = {\n showQuickview: function () {\n $('body').on('click', '.quickview', function (e) {\n e.preventDefault();\n var selectedValueUrl = $(this).closest('a.quickview').attr('href');\n $(e.target).trigger('quickview:show');\n getModalHtmlElement();\n fillModalElement(selectedValueUrl);\n });\n },\n focusQuickview: function () {\n $('body').on('shown.bs.modal', '#quickViewModal', function () {\n $('#quickViewModal .close').focus();\n });\n },\n trapQuickviewFocus: function () {\n $('body').on('keydown', '#quickViewModal', function (e) {\n var focusParams = {\n event: e,\n containerSelector: '#quickViewModal',\n firstElementSelector: '.full-pdp-link',\n lastElementSelector: '.add-to-cart-global',\n nextToLastElementSelector: '.modal-footer .quantity-select'\n };\n focusHelper.setTabNextFocus(focusParams);\n });\n },\n availability: base.availability,\n addToCart: base.addToCart,\n showSpinner: function () {\n $('body').on('product:beforeAddToCart', function (e, data) {\n $(data).closest('.modal-content').spinner().start();\n });\n },\n hideDialog: function () {\n $('body').on('product:afterAddToCart', function () {\n $('#quickViewModal').modal('hide');\n });\n },\n beforeUpdateAttribute: function () {\n $('body').on('product:beforeAttributeSelect', function () {\n $('.modal.show .modal-content').spinner().start();\n });\n },\n updateAttribute: function () {\n $('body').on('product:afterAttributeSelect', function (e, response) {\n if ($('.modal.show .product-quickview>.bundle-items').length) {\n $('.modal.show').find(response.container).data('pid', response.data.product.id);\n $('.modal.show').find(response.container)\n .find('.product-id').text(response.data.product.id);\n } else if ($('.set-items').length) {\n response.container.find('.product-id').text(response.data.product.id);\n } else {\n $('.modal.show .product-quickview').data('pid', response.data.product.id);\n $('.modal.show .full-pdp-link')\n .attr('href', response.data.product.selectedProductUrl);\n }\n });\n },\n updateAddToCart: function () {\n $('body').on('product:updateAddToCart', function (e, response) {\n // update local add to cart (for sets)\n $('button.add-to-cart', response.$productContainer).attr('disabled',\n (!response.product.readyToOrder || !response.product.available));\n\n // update global add to cart (single products, bundles)\n var dialog = $(response.$productContainer)\n .closest('.quick-view-dialog');\n\n $('.add-to-cart-global', dialog).attr('disabled',\n !$('.global-availability', dialog).data('ready-to-order')\n || !$('.global-availability', dialog).data('available')\n );\n });\n },\n updateAvailability: function () {\n $('body').on('product:updateAvailability', function (e, response) {\n // bundle individual products\n $('.product-availability', response.$productContainer)\n .data('ready-to-order', response.product.readyToOrder)\n .data('available', response.product.available)\n .find('.availability-msg')\n .empty()\n .html(response.message);\n\n\n var dialog = $(response.$productContainer)\n .closest('.quick-view-dialog');\n\n if ($('.product-availability', dialog).length) {\n // bundle all products\n var allAvailable = $('.product-availability', dialog).toArray()\n .every(function (item) { return $(item).data('available'); });\n\n var allReady = $('.product-availability', dialog).toArray()\n .every(function (item) { return $(item).data('ready-to-order'); });\n\n $('.global-availability', dialog)\n .data('ready-to-order', allReady)\n .data('available', allAvailable);\n\n $('.global-availability .availability-msg', dialog).empty()\n .html(allReady ? response.message : response.resources.info_selectforstock);\n } else {\n // single product\n $('.global-availability', dialog)\n .data('ready-to-order', response.product.readyToOrder)\n .data('available', response.product.available)\n .find('.availability-msg')\n .empty()\n .html(response.message);\n }\n });\n }\n};\n","require('bootstrap/js/src/util.js');\nrequire('bootstrap/js/src/alert.js');\n// require('bootstrap/js/src/button.js');\nrequire('bootstrap/js/src/carousel.js');\nrequire('bootstrap/js/src/collapse.js');\n// require('bootstrap/js/src/dropdown.js');\nrequire('bootstrap/js/src/modal.js');\nrequire('bootstrap/js/src/scrollspy.js');\nrequire('bootstrap/js/src/tab.js');\n// require('bootstrap/js/src/tooltip.js');\n// require('bootstrap/js/src/popover.js');\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","'use strict';\n\nlet $ = window.$ || window.jQuery || require('jquery');\nconst WebFont = require('webfontloader');\n\ndocument.addEventListener('integration:feature-flag-provider', (event) => {\n event.detail.registrar.register({\n site: 'SN',\n 'analytics.gtm.active': true,\n 'voyado.tracker.active': false, // TODO Can be re-verified, but so far no Voyado code found on SN.\n 'cart.active': false, // Disables functionality for analytics (and other cart-related functionality).\n 'checkout.klarna.active': false,\n 'checkout.klarna.instantshopping.active': false,\n 'checkout.klarna.instantshopping.style.variation': '',\n 'checkout.klarna.instantshopping.style.type': '',\n 'customer.registration.enabled': false,\n 'customer.registration.registrationTabFlag': false,\n 'integration.gmf.active': false\n });\n\n event.detail.registrar.callback((modules) => {\n const WebFontConfig = {\n custom: {\n families: ['bodystore-icons'], // Why on SN are loaded bodystore icons?\n urls: [window.staticURL + 'css/fonts.css']\n },\n active: () => modules()\n };\n\n /**\n * Wait font to load before initialization of JS modules\n */\n $(document).ready(() => {\n WebFont && typeof WebFont.load === 'function' ? WebFont.load(WebFontConfig) : modules();\n });\n });\n});\n","'use strict';\n\nvar base = require('theme/js/product/base');\nvar focusHelper = require('theme/js/components/focus');\nimport _ from 'shared/js/underscore';\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 */\nfunction appendToUrl(url, params) {\n var newUrl = url;\n newUrl += (newUrl.indexOf('?') !== -1 ? '&' : '?') + Object.keys(params).map(function (key) {\n return key + '=' + encodeURIComponent(params[key]);\n }).join('&');\n\n return newUrl;\n}\n\n/**\n * re-renders the order totals and the number of items in the cart\n * @param {Object} message - Error message to display\n */\nfunction createErrorNotification(message) {\n var errorHtml = '
      ' +\n '' + message + '
      ';\n\n $('.cart-error').append(errorHtml);\n}\n\nfunction showCartBox(data) {\n $('.item-' + data.product.UUID).empty().append(data.product.renderedPromotions);\n if (data.product.price.sales.formatted) {\n $('.item-total-' + data.product.UUID).empty().append(data.product.price.sales.formatted);\n } else {\n $('.item-total-' + data.product.UUID).empty().append(data.product.price.list.formatted);\n }\n $('.cart-box-item-title').empty().append(data.product.productName);\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 var htmlString = ''\n + '
      '\n + ''\n + '
      '\n + ''\n + '
      '\n + '
      '\n + ' '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      '\n + '
      ';\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 var $html = $('
      ').append($.parseHTML(html));\n\n var body = $html.find('.product-quickview');\n var 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 $('.modal-body').spinner().start();\n $.ajax({\n url: editProductUrl,\n method: 'GET',\n dataType: 'json',\n success: function (data) {\n var parsedHtml = parseHtml(data.renderedTemplate);\n\n $('#editProductModal .modal-body').empty();\n $('#editProductModal .modal-body').html(parsedHtml.body);\n $('#editProductModal .modal-footer').html(parsedHtml.footer);\n $('#editProductModal .modal-header .close .sr-only').text(data.closeButtonText);\n $('#editProductModal .enter-message').text(data.enterDialogMessage);\n $('#editProductModal').modal('show');\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n}\n\nfunction hideCartItemsHeader() {\n $('.minicart-quantity').addClass('empty-cart');\n $('.minicart .icon-cart').addClass('empty-cart-trigger');\n $('.price-header').addClass('empty-cart');\n}\n\n/**\n * replace content of modal\n * @param {string} actionUrl - url to be used to remove product\n * @param {string} productID - pid\n * @param {string} productName - product name\n * @param {string} uuid - uuid\n */\nfunction confirmDelete(actionUrl, productID, productName, uuid, trackingClickEvent, trackingEventPayload) {\n var $deleteConfirmBtn = $('.cart-delete-confirmation-btn');\n var $productToRemoveSpan = $('.product-to-remove');\n\n $deleteConfirmBtn.data('pid', productID);\n $deleteConfirmBtn.data('action', actionUrl);\n $deleteConfirmBtn.data('uuid', uuid);\n $deleteConfirmBtn.attr('data-tracking-click-event', trackingClickEvent);\n $deleteConfirmBtn.attr('data-tracking-event-payload', JSON.stringify(trackingEventPayload));\n\n $productToRemoveSpan.empty().append(productName);\n}\n\nmodule.exports = function () {\n $('body').on('click', '.remove-product', function (e) {\n e.preventDefault();\n\n var actionUrl = $(this).data('action');\n var productID = $(this).data('pid');\n var productName = $(this).data('name');\n var uuid = $(this).data('uuid');\n var trackingClickEvent = $(this).data('trackingClickEventPlaceholder');\n var trackingEventPayload = $(this).data('trackingEventPayloadPlaceholder');\n confirmDelete(actionUrl, productID, productName, uuid, trackingClickEvent, trackingEventPayload);\n });\n\n $('body').on('change', '.quantity-select', function () {\n var parsedQuantity = parseInt($(this).val());\n if (parsedQuantity <= 1) {\n $(this).val(1);\n $(this).siblings('.decrease-quantity').addClass('icon--disabled');\n } else {\n $(this).val(parsedQuantity);\n if (parsedQuantity > 1) {\n $(this).siblings('.icon--disabled').removeClass('icon--disabled');\n }\n }\n });\n\n $('.optional-promo').click(function (e) {\n e.preventDefault();\n $('.promo-code-form').toggle();\n });\n\n $('body').on('click', '.cart-delete-confirmation-btn', function (e) {\n e.preventDefault();\n\n $('body > .modal-backdrop').remove();\n\n // doesn't allow removal of another product until first removal isn't finished\n $('i.remove-product').css('pointer-events', 'none');\n\n var pid = $(this).data('pid');\n var uuid = $(this).data('uuid') ? $(this).data('uuid') : $(`i[data-pid=\"${pid}\"]`)[0].dataset.uuid;\n\n var url = $(this).data('action');\n var urlParams = {\n pid: pid,\n uuid: uuid\n };\n url = appendToUrl(url, urlParams);\n\n $.ajax({\n url: url,\n type: 'get',\n context: this,\n dataType: 'json',\n })\n .done(function (data) {\n // doesn't allow removal of another product until first removal isn't finished\n $('i.remove-product').css('pointer-events', 'none');\n\n if (data.basketModel.items.length === 0) {\n hideCartItemsHeader();\n }\n $('body').trigger('cart:update', ['delete_item', data.basketModel]);\n\n document.dispatchEvent(\n new CustomEvent('Voyado-monitor-cart', {\n detail: {\n uuid: data.basketModel.basketUUID,\n items: data.basketModel.items,\n locale: data.locale\n }\n })\n );\n\n if ($(`.add-to-cart[data-pid=\"${pid}\"]`).hasClass('hide')) {\n $(`.remove-product[data-pid=\"${pid}\"]`).addClass('hide');\n $(`.add-to-cart[data-pid=\"${pid}\"]`).removeClass('hide');\n }\n\n // if donation isn't in the cart when the last product is removed\n if (data.basketModel.items.length == 0) {\n $('[data-donations-wrapper]').addClass('hide');\n }\n\n // FM hide third checkout step when some product is removed from the cart\n if ($('.payments-container-widget').length) {\n $('.payments-container-widget').hide();\n }\n\n if (data.emptyCart) {\n window.location.href = data.redirectUrl;\n }\n })\n .fail(function (err) {\n if (err.responseJSON.redirectUrl) {\n window.location.href = err.responseJSON.redirectUrl;\n } else {\n createErrorNotification(err.responseJSON.errorMessage);\n }\n });\n });\n\n $('body').on('click', '.quantity-form > .minicart-update-quantity', function (e) {\n e.preventDefault();\n var preSelectQty = $('.quantity-field').data('pre-select-qty');\n\n if ($('.page.checkout').length) {\n $.spinner().start();\n }\n\n var url = $(this).data('action');\n var urlParams = {\n pid: $(this).data('pid'),\n quantity: $(this).data('qty'),\n uuid: $(this).data('uuid')\n };\n url = appendToUrl(url, urlParams);\n\n $.ajax({\n url: url,\n type: 'get',\n context: this,\n dataType: 'json'\n })\n .done(function (data) {\n $('body').trigger('cart:update', ['update_quantity', data]);\n\n // Update mini-cart counter also by executing the target event with expected payload\n const cartItemsCount = _.get(data, ['numItems']);\n const cartItemsCountTitle = _.get(data, ['resources', 'minicartCountOfItems']);\n if (cartItemsCount !== null && cartItemsCountTitle) {\n $('.minicart').trigger('count:update', {\n quantityTotal: cartItemsCount,\n minicartCountOfItems: cartItemsCountTitle\n });\n }\n\n document.dispatchEvent(\n new CustomEvent('Voyado-monitor-cart', {\n detail: {\n uuid: data.basketUUID,\n items: data.items,\n locale: data.locale\n }\n })\n );\n\n // FM hide third checkout step on quantity change\n if ($('.payments-container-widget').length) {\n $('.payments-container-widget').hide();\n }\n })\n .fail(function (err) {\n $.spinner().stop();\n if (err.responseJSON && err.responseJSON.errorMessage) {\n window.MessagesMgr.error(err.responseJSON.errorMessage);\n }\n if (err.responseJSON && err.responseJSON.redirectUrl) {\n window.location.href = err.responseJSON.redirectUrl;\n } else {\n // Do not append at the top error message which is shown now as a toastr message.\n /*\n createErrorNotification(err.responseJSON.errorMessage);\n */\n $(this).val(parseInt(preSelectQty, 10));\n }\n });\n });\n\n $('body').on('click', '.discount-code-header', function (e) {\n e.preventDefault();\n $('.coupon-error').addClass('visually-hidden');\n $('.promo-code-form .form-control').removeClass('is-invalid');\n $('[data-discount-code-container]').addClass('active');\n });\n\n $('body').on('click', '.coupon-close-form', function (e) {\n e.preventDefault();\n $('[data-discount-code-container]').removeClass('active');\n });\n\n $('body').on('submit', '.promo-code-form', function (e) {\n e.preventDefault();\n\n $.spinner().start();\n\n var couponCodeVal = $('.coupon-code-field').val();\n var couponCode = couponCodeVal.trim();\n $('.coupon-code-field').val(couponCode);\n $('.coupon-missing-error').hide();\n $('.coupon-error-message').empty();\n if (!$('.coupon-code-field').val()) {\n $.spinner().stop();\n $('.promo-code-form .form-control').addClass('is-invalid');\n $('.promo-code-form .form-control').attr('aria-describedby', 'missingCouponCode');\n $('.coupon-error').removeClass('visually-hidden');\n $('.coupon-removed-error-message').hide();\n $('.coupon-missing-error').show();\n return false;\n }\n var $form = $('.promo-code-form');\n $('.promo-code-form .form-control').removeClass('is-invalid');\n $('.coupon-error-message').empty();\n $('.coupon-error').addClass('visually-hidden');\n\n $.ajax({\n url: $form.attr('action'),\n type: 'GET',\n dataType: 'json',\n data: $form.serialize(),\n }).done(function (data) {\n if (data.error) {\n $.spinner().stop();\n $('.coupon-error').removeClass('visually-hidden');\n $('.coupon-removed-error-message').hide();\n $('.promo-code-form .form-control').addClass('is-invalid');\n $('.promo-code-form .form-control').attr('aria-describedby', 'invalidCouponCode');\n $('.coupon-error-message').empty().append(data.errorMessage);\n } else {\n $('body').trigger('cart:update', ['add_coupon', data.basketModel]);\n // @TODO need to be figured out how to pass messages\n // if (data.rebalanceGiftCertificatePaymentsMsg !== '') {\n // $('[data-cart-calculation-error]').css('display', 'block');\n // $('.cart-calculation-error').empty().append(data.rebalanceGiftCertificatePaymentsMsg);\n // }\n }\n $.spinner().stop();\n $('.coupon-code-field').val('');\n\n // FM hide third checkout step when coupon is applied\n if ($('.payments-container-widget').length) {\n $('.payments-container-widget').hide();\n }\n }).fail(function (err) {\n $.spinner().stop();\n if (err.responseJSON.redirectUrl) {\n window.location.href = err.responseJSON.redirectUrl;\n } else {\n createErrorNotification(err.errorMessage);\n }\n });\n return false;\n });\n\n $('body').on('click', '.remove-coupon', function () {\n var couponCode = $(this).data('code');\n var uuid = $(this).data('uuid');\n var $deleteConfirmBtn = $('.delete-coupon-confirmation-btn');\n var $productToRemoveSpan = $('.coupon-to-remove');\n\n $deleteConfirmBtn.data('uuid', uuid);\n $deleteConfirmBtn.data('code', couponCode);\n\n $productToRemoveSpan.empty().append(couponCode);\n });\n\n $('body').on('click', '.delete-coupon-confirmation-btn', function (e) {\n e.preventDefault();\n\n $.spinner().start();\n\n var url = $(this).data('action');\n var urlParams = {\n code: $(this).data('code'),\n uuid: $(this).data('uuid')\n };\n url = appendToUrl(url, urlParams);\n $.ajax({\n url: url,\n type: 'get',\n dataType: 'json'\n }).done(function (data) {\n $('body').trigger('cart:update', ['delete_coupon', data]);\n\n // FM hide third checkout step when coupon is removed\n if ($('.payments-container-widget').length) {\n $('.payments-container-widget').hide();\n }\n }).fail(function (err) {\n $.spinner().stop();\n if (err.responseJSON.redirectUrl) {\n window.location.href = err.responseJSON.redirectUrl;\n } else {\n createErrorNotification(err.responseJSON.errorMessage);\n }\n });\n });\n\n $('body').on('click', '.cart-page .bonus-product-button', function () {\n $.spinner().start();\n $(this).addClass('launched-modal');\n $.ajax({\n url: $(this).data('url'),\n method: 'GET',\n dataType: 'json',\n success: function (data) {\n base.chooseBonusProducts(data);\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\n });\n });\n\n $('body').on('hidden.bs.modal', '#chooseBonusProductModal', function () {\n $('#chooseBonusProductModal').remove();\n $('.modal-backdrop').remove();\n $('body').removeClass('modal-open');\n\n if ($('.cart-page').length) {\n $('.launched-modal .btn-outline-primary').trigger('focus');\n $('.launched-modal').removeClass('launched-modal');\n } else {\n $('.product-detail .add-to-cart').focus();\n }\n });\n\n $('body').on('click', '.cart-page .product-edit .edit, .cart-page .bundle-edit .edit', function (e) {\n e.preventDefault();\n\n var editProductUrl = $(this).attr('href');\n getModalHtmlElement();\n fillModalElement(editProductUrl);\n });\n\n $('body').on('shown.bs.modal', '#editProductModal', function () {\n $('#editProductModal').siblings().attr('aria-hidden', 'true');\n $('#editProductModal .close').focus();\n });\n\n $('body').on('hidden.bs.modal', '#editProductModal', function () {\n $('#editProductModal').siblings().attr('aria-hidden', 'false');\n });\n\n $('body').on('keydown', '#editProductModal', function (e) {\n var focusParams = {\n event: e,\n containerSelector: '#editProductModal',\n firstElementSelector: '.close',\n lastElementSelector: '.update-cart-product-global',\n nextToLastElementSelector: '.modal-footer .quantity-select'\n };\n focusHelper.setTabNextFocus(focusParams);\n });\n\n $('body').on('product:updateAddToCart', function (e, response) {\n // update global add to cart (single products, bundles)\n var dialog = $(response.$productContainer).closest('.quick-view-dialog');\n\n $('.update-cart-product-global', dialog).attr(\n 'disabled',\n !$('.global-availability', dialog).data('ready-to-order') || !$('.global-availability', dialog).data('available')\n );\n\n showCartBox(response);\n });\n\n $('body').on('product:updateAvailability', function (e, response) {\n // bundle individual products\n $('.product-availability', response.$productContainer)\n .data('ready-to-order', response.product.readyToOrder)\n .data('available', response.product.available)\n .find('.availability-msg')\n .empty()\n .html(response.message);\n\n\n var dialog = $(response.$productContainer)\n .closest('.quick-view-dialog');\n\n if ($('.product-availability', dialog).length) {\n // bundle all products\n var allAvailable = $('.product-availability', dialog).toArray()\n .every(function (item) { return $(item).data('available'); });\n\n var allReady = $('.product-availability', dialog).toArray()\n .every(function (item) { return $(item).data('ready-to-order'); });\n\n $('.global-availability', dialog)\n .data('ready-to-order', allReady)\n .data('available', allAvailable);\n\n $('.global-availability .availability-msg', dialog).empty()\n .html(allReady ? response.message : response.resources.info_selectforstock);\n } else {\n // single product\n $('.global-availability', dialog)\n .data('ready-to-order', response.product.readyToOrder)\n .data('available', response.product.available)\n .find('.availability-msg')\n .empty()\n .html(response.message);\n }\n });\n\n $('body').on('product:afterAttributeSelect', function (e, response) {\n if ($('.modal.show .product-quickview .bundle-items').length) {\n $('.modal.show').find(response.container).data('pid', response.data.product.id);\n $('.modal.show').find(response.container).find('.product-id').text(response.data.product.id);\n } else {\n $('.modal.show .product-quickview').data('pid', response.data.product.id);\n }\n });\n\n $('body').on('click', '.update-cart-product-global', function (e) {\n e.preventDefault();\n\n var url = $(this).closest('.cart-and-ipay').find('.update-cart-url').val();\n var form = {\n uuid: $(this).closest('.cart-and-ipay').find('.update-cart-url').data('uuid'),\n pid: base.getPidValue($(this)),\n quantity: $(this).closest('.cart-and-ipay').find('.update-cart-url').data('selected-quantity')\n };\n\n if (url) {\n $.ajax({\n url: url,\n type: 'post',\n context: this,\n data: form,\n dataType: 'json',\n success: function (data) {\n $('body').trigger('cart:update', ['update_product_clobal', data.cartModel]);\n },\n error: function (err) {\n if (err.responseJSON.redirectUrl) {\n window.location.href = err.responseJSON.redirectUrl;\n } else {\n createErrorNotification(err.responseJSON.errorMessage);\n }\n }\n });\n }\n });\n\n function updateStorefront(quickview, newPrice, newQuantity) {\n $(quickview + '.promotion-box-tile').removeClass('active');\n $(quickview + '.prices-and-availability .price-sales').text(newPrice);\n $(quickview + '.detail-quantity.quantity-select').val(newQuantity);\n var minOrderQuantity = parseInt($('[data-qunatity-input]').data('min-quantity')) || 1;\n if (newQuantity != minOrderQuantity) {\n $(quickview + '.quantity-and-add-to-cart .decrease-quantity').removeClass('icon--disabled');\n } else {\n $(quickview + '.quantity-and-add-to-cart .decrease-quantity').addClass('icon--disabled');\n }\n }\n\n $('body').on('click', '.promotion-box-tile', function () {\n var productQuantityInput = $('[data-qunatity-input]');\n var minOrderQuantity = parseInt(productQuantityInput.data('min-quantity')) || 1;\n var stepOrderQuantity = parseInt(productQuantityInput.data('step-quantity')) || 1;\n\n var productQuantity = parseInt($(this).data('quantity'), 10);\n var productPrice = parseFloat($(this).parent().data('single-product-price'), 10);\n var percentagae = parseFloat($(this).data('percentage'), 10);\n var newPrice = productQuantity * (productPrice * (1 - percentagae / 100)).toFixed(2);\n\n var currency = $(this).data('currency');\n var formattedPrice = currency == '€' ? newPrice.toFixed(2) + ' ' + currency : Math.round(newPrice) + ' ' + currency\n\n var newQuantity = parseInt($(this).data('quantity'), 10);\n var quickviewOpen = $('.quickview-modal').hasClass('show');\n var quickview = '';\n\n if ((newQuantity - minOrderQuantity) % stepOrderQuantity > 0) {\n // If quantum qtys do not match step qty then ignore click\n return;\n }\n\n if (newQuantity < minOrderQuantity) {\n return;\n }\n\n if (quickviewOpen) {\n quickview = '.quickview-modal ';\n updateStorefront(quickview, formattedPrice, newQuantity);\n } else {\n updateStorefront(quickview, formattedPrice, newQuantity);\n }\n\n $(this).addClass('active');\n\n var parentElement = $(this).parents('.quantum');\n var parentSiblingElement = parentElement ? parentElement.siblings('.quantity-and-add-to-cart') : undefined;\n var trackingPayload = parentSiblingElement ? parentSiblingElement.find('button.add-to-cart')[0] : undefined;\n var trackingEventPayload = trackingPayload ? JSON.parse(trackingPayload.dataset.trackingEventPayload) : undefined;\n if (trackingEventPayload) {\n trackingEventPayload.add.products[0].quantity = newQuantity;\n trackingPayload.dataset.trackingEventPayload = JSON.stringify(trackingEventPayload);\n }\n });\n\n base.selectAttribute();\n // Attempt to fix double load of images in the quick view popup.\n // That code is triggered twice:\n // 1st time - when mini cart js logic is loaded there\n // 2d time - on quickView load. Since the 2d one is loaded on all pages - the next line is commented.\n // @see SFCC-1729\n // base.colorAttribute();\n base.removeBonusProduct();\n base.selectBonusProduct();\n base.enableBonusProductSelection();\n base.showMoreBonusProducts();\n base.addBonusProductsToCart();\n base.focusChooseBonusProductModal();\n base.trapChooseBonusProductModalFocus();\n base.onClosingChooseBonusProductModal();\n};\n","'use strict';\n\n// Refactored in a more OOP way to avoid issue of lost context (this|self) on importing within\n// other JS modules.\nlet CartIconWidget = function () {\n this.container = null;\n /**\n * Initiate widget\n * @param {string} context - storefront|checkout\n * @return {*}\n */\n this.init = function () {\n var self = this;\n // container(s)\n self.container = $('.header-cart-icon');\n\n $(self).trigger('self:initialize');\n\n return self;\n };\n this.update = function () {\n var self = this;\n\n self.render();\n $(self).trigger('self:update');\n\n return self;\n };\n this.render = function () {\n var self = this;\n\n var cartStorage = localStorage.getItem('cart') || '{}';\n var cartModel = JSON.parse(cartStorage);\n\n if (Object.keys(cartModel).length === 0 || cartModel.numItems === 0) {\n this.container.each(function (i, e) {\n $(e).find('#cartwidgeticon-info').addClass('empty-cart-trigger');\n $(e).find('.minicart-quantity').addClass('empty-cart');\n $(e).find('.minicart-quantity').html('');\n $(e).find('.price-header').addClass('empty-cart');\n $(e).find('.price-header').html('');\n });\n } else {\n // @see https://gymgrossisten.atlassian.net/browse/SFCC-1815 for details why is used\n // adjustedMerchandizeTotalGrossPrice instead of grandTotal\n let totalPrice = cartModel?.totals?.adjustedMerchandizeTotalGrossPrice\n ? cartModel.totals.adjustedMerchandizeTotalGrossPrice\n : 0;\n this.container.each(function (i, e) {\n $(e).find('#cartwidgeticon-info').removeClass('empty-cart-trigger');\n $(e).find('.minicart-quantity').removeClass('empty-cart');\n $(e).find('.minicart-quantity').html(cartModel.numItems);\n $(e).find('.price-header').removeClass('empty-cart');\n $(e).find('.price-header').html(totalPrice);\n });\n }\n\n $(self).trigger('self:render');\n\n return self;\n };\n this.registerCallback = function (ids, func) {\n var self = this;\n\n if (!Array.isArray(ids)) {\n ids = [ids];\n }\n\n ids.forEach(function (id) {\n switch (id) {\n case 'carticon:initialize':\n $(self).on('self:init', func);\n break;\n case 'carticon:update':\n $(self).on('self:update', func);\n break;\n case 'carticon:render':\n $(self).on('self:render', func);\n break;\n default:\n console.error('state not covered', id);\n }\n });\n\n return self;\n };\n};\n\nmodule.exports = new CartIconWidget();\n","'use strict';\n\nimport { getLogger } from 'shared/js/dev-mode';\nconst logger = getLogger();\n\nconst util = require('./util');\n\n// Refactored in a more OOP way to avoid issue of lost context (this|self) on importing within\n// other JS modules.\nlet CartWidget = function () {\n this.container = null;\n this.context = null;\n this.getCartModelURL = null;\n this.isDisengaged = false;\n this.isInitialized = false;\n this.isActive = false;\n this.data = false;\n this.htmlSnippet = null;\n this.pageSession = Math.floor(Math.random() * 1000000);\n this.basketMaxAge = null;\n this.ghostElem = null;\n this.fadeTime = 800;\n /**\n * Initiate widget\n * @param {string} context - storefront|checkout\n * @return {*}\n */\n this.init = function (context) {\n var self = this;\n // container\n self.container = $('#cartwidget');\n self.ghostElem = $('#cart-loader');\n self.cartEmptyRedirect = window.location.search.indexOf('cartEmpty') > -1;\n // settings\n self.context = context || 'checkout';\n self.basketMaxAge = Number.isInteger(self.container.data('basket-max-age')) ? self.container.data('basket-max-age') : 60 * 1000;\n // Initiating central urls\n self.getCartModelURL = self.container.data('get-cart-model');\n self.renderURL = self.context == 'storefront' ? self.container.data('get-render-minicart') : self.container.data('get-render-cart');\n self.pushCheckoutGTM = (context === 'checkout' && window.GTM_ENABLED && window.GTM_CONTAINER_ID !== 'null');\n\n if (self.container.length == 0) {\n self.isDisengaged = true;\n return self;\n }\n\n self.data = self.getCartModel();\n\n self.htmlSnippet = self.getSnippet();\n // console.log('cartwidget initiate context', context, self.renderURL, 'self.htmlSnippet', !!self.htmlSnippet);\n // Initiating listeners for the widget itself, ie these are not listeners to any\n // other widget or section of the DOM -- only wigdet internal updates.\n self.initListeners();\n\n return self;\n };\n this.update = function (forceRender) {\n var self = this;\n\n if (self.isDisengaged) {\n return self;\n }\n\n self.suspend();\n $.ajax({\n url: self.getCartModelURL,\n type: 'get',\n })\n .done((res) => {\n // console.log('update res', res.cartModel);\n // Only trigger re-render in case there is any update to the\n // cart model.\n // @TODO make more granular; certain cart changes\n // may not warrant re-render, or, could update single components.\n let isUpdated = self.storeCartModel(res.cartModel);\n if (isUpdated) {\n $(self).trigger('self:update', self.getCartModel());\n }\n if (isUpdated || forceRender) {\n return self.render();\n }\n })\n .fail((res) => {\n logger.error('update', res);\n })\n .always(() => {\n self.resume();\n });\n\n return self;\n };\n this.checkAndPushCheckoutGTM = function () {\n var self = this;\n if (self.pushCheckoutGTM) {\n document.dispatchEvent(\n new CustomEvent('GTM-push-checkout', {\n detail: {\n step: 1,\n productsElements: '.checkout-cart-container .product-summary-block .product-line-item ',\n currencyCode: $(document.querySelector('.container.wrapper')).data('currency')\n }\n })\n );\n }\n };\n this.render = function () {\n var self = this;\n\n if (self.isDisengaged) {\n return self;\n }\n\n let cartModel = self.getCartModel();\n\n if (!cartModel) {\n return self.update(true);\n }\n\n $(self).trigger('self:pre-render', cartModel);\n // A core concept of this widget is the possibility to load cart w/o\n // server requets on page load.\n // This code checks if this is the first time we request to render\n // the basket, in that case, if we actually already have a version stored\n // in the local storage, we will load that.\n if (!self.isInitialized && self.htmlSnippet) {\n // fade out ghost and fade in actual cart\n self.container.fadeOut(self.fadeTime / 2, function () {\n self.container.empty().html(self.htmlSnippet).fadeIn(self.fadeTime / 2);\n $(self).trigger('self:render', cartModel);\n self.checkAndPushCheckoutGTM();\n });\n } else {\n $.ajax({\n url: self.renderURL,\n data: {\n cartModel: JSON.stringify(cartModel),\n isCheckout: self.context == 'checkout'\n },\n type: 'post'\n })\n .done((htmlSnippet) => {\n self.container.fadeOut(self.fadeTime / 2, function () {\n self.container.empty().html(self.htmlSnippet).fadeIn(self.fadeTime / 2);\n $(self).trigger('self:render', cartModel);\n self.checkAndPushCheckoutGTM();\n });\n self.storeSnippet(htmlSnippet, cartModel);\n })\n .fail((res) => {\n logger.error('render', res);\n })\n .always(() => {\n self.resume();\n });\n }\n self.isInitialized = true;\n\n return self;\n };\n this.ghost = function () {\n var self = this;\n self.container.empty().html(self.ghostElem.html());\n\n return self;\n };\n this.resume = function () {\n // @TODO implement\n var self = this;\n self.isActive = true;\n };\n this.suspend = function () {\n // @TODO implement\n var self = this;\n self.isActive = false;\n };\n this.clearSnippets = function () {\n localStorage.removeItem('checkout_htmlSnippet');\n localStorage.removeItem('storefront_htmlSnippet');\n };\n this.storeCartModel = function (cartModel) {\n var self = this;\n cartModel = util.filterCartModelObject(cartModel);\n cartModel.sessionID = self.getSessionID();\n\n localStorage.setItem('lastUpdate', Date.now());\n\n if (!util.isEqual(self.getCartModel(), cartModel)) {\n self.emitChanges(self.getCartModel(), cartModel);\n self.data = cartModel;\n\n try {\n localStorage.setItem('cart', JSON.stringify(cartModel));\n } catch (e) {\n if (e.name === 'QuotaExceededError') {\n /* Clear save snippets in case quota error to not to render wrong cart information and save\n the cart model since it's the main data to keep in local storeage */\n self.clearSnippets();\n localStorage.setItem('cart', JSON.stringify(cartModel));\n }\n }\n\n return true;\n }\n return false;\n };\n this.getCartModel = function () {\n var self = this;\n\n if (self.isSessionDirty()) {\n return null;\n }\n\n if (self.data && self.data.hasOwnProperty('sessionID') && self.data.sessionID == self.getSessionID()) {\n if (!self.cartEmptyRedirect || (self.cartEmptyRedirect && self.data.items.length === 0)) {\n return self.data;\n }\n }\n\n try {\n let cartModelStorage = JSON.parse(localStorage.getItem('cart'));\n if (cartModelStorage && cartModelStorage.hasOwnProperty('sessionID') && cartModelStorage.sessionID == self.getSessionID()) {\n if (!self.cartEmptyRedirect || (self.cartEmptyRedirect && cartModelStorage.items.length === 0)) {\n return cartModelStorage;\n }\n }\n } catch (e) {\n logger.error('could not parse cart model storage', e);\n }\n\n if (self.cartEmptyRedirect) {\n self.cartEmptyRedirect = false;\n }\n\n return null;\n };\n this.storeSnippet = function (htmlSnippet, cartModel) {\n var self = this;\n var cartStorageItem = {\n time: Date.now(),\n htmlSnippet: htmlSnippet,\n signature: util.hash(JSON.stringify(cartModel))\n };\n\n var cartStorage = [];\n try {\n let storageItem = localStorage.getItem(self.context + '_htmlSnippet');\n cartStorage = util.isJSON(storageItem) ? JSON.parse(storageItem) : [];\n } catch (e) {\n logger.error('could no parse stored cartStorage array', e);\n }\n\n // Upsert cartStorage array\n var cartStorageIndex = cartStorage.findIndex((_cartStorageItem) => { return _cartStorageItem.signature == cartStorageItem.signature; });\n logger.log('found storage index', cartStorageIndex);\n if (cartStorageIndex !== -1) {\n cartStorage[cartStorageIndex] = cartStorageItem;\n } else {\n cartStorage.push(cartStorageItem);\n }\n\n // Remove too old carts\n cartStorage = cartStorage.filter((_cartStorageItem) => {\n return (Date.now() - _cartStorageItem.time) < self.basketMaxAge;\n });\n\n try {\n localStorage.setItem(self.context + '_htmlSnippet', JSON.stringify(cartStorage));\n } catch (e) {\n if (e.name === 'QuotaExceededError') {\n // Clear save snippets in case quota error to not to render wrong cart information\n self.clearSnippets();\n }\n }\n\n self.htmlSnippet = htmlSnippet;\n };\n this.getSnippet = function () {\n var self = this;\n // localStorage entries must be strings, hence the array string\n var cartStorage = localStorage.getItem(self.context + '_htmlSnippet') || '[]';\n var htmlSnippet = null;\n try {\n cartStorage = JSON.parse(cartStorage);\n // Filter out cart snippets that are wrong ID or too old\n var cartStorageItem = cartStorage.find((_cartStorageItem) => {\n let deltaTime = Date.now() - _cartStorageItem.time;\n return _cartStorageItem.signature == util.hash(JSON.stringify(self.data)) && // version is based on same cart model\n deltaTime < self.basketMaxAge; // version has not gone stale\n });\n htmlSnippet = cartStorageItem && cartStorageItem.htmlSnippet;\n } catch (e) {\n logger.error('could not parse cart storage', e);\n }\n\n return htmlSnippet;\n };\n this.getSessionID = function () {\n let cookieSessionID = util.getSessionID();\n return cookieSessionID == 'n/a' ? self.pageSession : cookieSessionID;\n };\n this.isSessionDirty = function () {\n var self = this;\n let lastUpdate = localStorage.getItem('lastUpdate');\n lastUpdate = lastUpdate ? parseInt(lastUpdate, 10) : 0;\n return (Date.now() - lastUpdate) >= self.basketMaxAge;\n };\n this.clearData = function () {\n ['storefront', 'checkout'].forEach(function (context) {\n localStorage.removeItem(context + '_htmlSnippet');\n });\n localStorage.removeItem('cart');\n };\n this.emitChanges = function (oldCartModel, newCartModel) {\n var self = this;\n\n // If either object does not exist there is not much reason to compare\n // changes between them\n if (!oldCartModel || !newCartModel) {\n return;\n }\n\n try {\n let modelDifferences = util.objectDifference(oldCartModel.totals, newCartModel.totals);\n\n if (modelDifferences.hasOwnProperty('grandTotal')) {\n $(self).trigger('self:update:total', newCartModel.totals);\n }\n if (modelDifferences.hasOwnProperty('subTotal')) {\n $(self).trigger('self:update:subtotal', newCartModel.totals.subTotal);\n }\n if (modelDifferences.hasOwnProperty('orderLevelDiscountTotal')) {\n $(self).trigger('self:update:orderleveldiscount', newCartModel.totals.subTotal);\n }\n } catch (e) {\n logger.error('[emitChanges] ', e, oldCartModel, newCartModel);\n }\n };\n this.initListeners = function () {\n var self = this;\n // Core concept of the cart widget:\n // cartModel is stored in the locale storage of the browser.\n // When there is an update in the local storage we analyze if there\n // to see if there is any differences, and if there is one we render\n // a new cart based on that.\n // WARNING: local storage listeners are NOT cross domain. However, on\n // all instance but Development and Production we will be one the same.\n // This means that events on GG will also be heard on the other sites\n // in the same browser.\n window.addEventListener('storage', function (event) {\n if (event.key != 'cart') {\n return;\n }\n\n let oldValueObject = util.isJSON(event.oldValue) ? JSON.parse(event.oldValue) : event.oldValue;\n let newValueObject = util.isJSON(event.newValue) ? JSON.parse(event.newValue) : event.newValue;\n\n if (!util.isCartModel(newValueObject) || util.isEqual(oldValueObject, newValueObject)) {\n return;\n }\n\n // Below code has been commented out since there is a problem\n // with the scenario where one update on one site also triggers\n // an update on all the others. In other words, this was originally\n // how it looke.\n // self.update();\n self.storeCartModel(newValueObject);\n $(self).trigger('self:update', self.getCartModel());\n self.render();\n }, false);\n\n // Periferral concept of the cart widget:\n // Since original cart script holds a lot of code for updating\n // many things about the basket this scrip will intially act as\n // bridge between it and communications with the new checkouts.\n // Eventually this concept is supposed to be replaced by a\n // more holistic solution.\n $('body').on('cart:update', function (event, topic, cartModel) {\n logger.log('heard cart:update event');\n\n if (self.cartEmptyRedirect) {\n self.cartEmptyRedirect = false;\n }\n\n if (!util.isCartModel(cartModel)) {\n logger.warn('cartModel could not be assertained');\n // From the event recieved we could not interpret cartModel arg\n // as an actually cartModel. But we know there has been an update\n // to the cart so we trigger a server side update.\n // This should not be necessary, but will probably be so frequently.\n self.update();\n } else {\n let isUpdated = self.storeCartModel(cartModel);\n if (isUpdated) {\n self.render();\n }\n }\n\n $.spinner().stop();\n\n switch (topic) {\n case 'delete_item':\n case 'delete_coupon':\n $(self).trigger('self:remove', [cartModel]);\n break;\n case 'update_quantity':\n case 'add_coupon':\n case 'update_product_clobal':\n case 'add_to_cart':\n $(self).trigger('self:add', [cartModel]);\n break;\n default:\n logger.error('Case not covered');\n }\n });\n };\n this.registerCallback = function (ids, func) {\n logger.log('register callback', ids, func);\n var self = this;\n\n if (self.isDisengaged) {\n return self;\n }\n\n if (!Array.isArray(ids)) {\n ids = [ids];\n }\n\n ids.forEach(function (id) {\n switch (id) {\n case 'cartwidget:initialize':\n $(self).on('self:init', func);\n break;\n case 'cartwidget:update':\n $(self).on('self:update', func);\n break;\n case 'cartwidget:render':\n $(self).on('self:render', func);\n break;\n case 'cartwidget:pre-render':\n $(self).on('self:pre-render', func);\n break;\n case 'cartwidget:add':\n $(self).on('self:add', func);\n break;\n case 'cartwidget:remove':\n $(self).on('self:remove', func);\n break;\n case 'cartwidget:update:subtotal':\n $(self).on('self:update:subtotal', func);\n break;\n case 'cartwidget:update:orderleveldiscount':\n $(self).on('self:update:orderleveldiscount', func);\n break;\n case 'cartwidget:update:total':\n $(self).on('self:update:total', func);\n break;\n default:\n logger.error('state not covered', id);\n }\n });\n };\n};\n\nmodule.exports = new CartWidget();\n","'use strict';\n\nvar cart = require('./cart');\n\nvar updateMiniCart = true;\n\nfunction closeMinicart() {\n $('.minicart .popover').removeClass('show');\n $('body').removeClass('overflow-hidden');\n $('.overlay-minicart').addClass('hide');\n}\n\nfunction clearSearchDropdown() {\n $('.suggestions').hide();\n $('body').removeClass('overflow-hidden body-fixed');\n $('.overlay-search').addClass('hide');\n $('.popular-search').addClass('hide');\n $('span.clear-search').addClass('hide');\n}\n\nmodule.exports = function () {\n cart();\n\n $('.minicart').on('count:update', function (event, count) {\n if (count && $.isNumeric(count.quantityTotal)) {\n $('.minicart .minicart-quantity').text(count.quantityTotal);\n $('.minicart .minicart-link').attr({\n 'aria-label': count.minicartCountOfItems,\n title: count.minicartCountOfItems\n });\n }\n });\n\n $('.empty-cart-trigger').on('click', function () {\n $('.empty-cart-box').show();\n setTimeout(function () {\n $('.empty-cart-box').hide();\n }, 3000);\n });\n\n $('.minicart').on('click', function () {\n clearSearchDropdown();\n\n var count = parseInt($('.minicart .minicart-quantity').text(), 10);\n if (count !== 0 && $('.minicart .popover.show').length === 0) {\n if (!updateMiniCart) {\n $('body').addClass('overflow-hidden');\n $('.minicart .popover').addClass('show');\n $('.overlay-minicart').removeClass('hide');\n return;\n }\n\n $('.overlay-minicart').removeClass('hide');\n $('body').addClass('overflow-hidden');\n $('.minicart .popover').addClass('show');\n }\n });\n\n $('body').on('click', '.close-minicart', function () {\n closeMinicart();\n });\n $('body').on('click', '.overlay-minicart', function () {\n closeMinicart();\n });\n $('body').on('change', '.minicart .quantity', function () {\n if ($(this).parents('.bonus-product-line-item').length && $('.cart-page').length) {\n location.reload();\n }\n });\n $('body').on('product:afterAddToCart', function (event, data) {\n $('body').trigger('cart:update', ['update_quantity', data.cart]);\n });\n $('body').on('cart:update', function () {\n updateMiniCart = true;\n });\n};\n","'use strict';\n\nimport { getLogger } from 'shared/js/dev-mode';\nconst logger = getLogger();\nimport _ from 'shared/js/underscore';\n\n/* eslint-disable no-bitwise */\n\nconst CART_MODEL_FIELDS = [\n 'actionUrls',\n 'approachingDiscounts',\n 'hasBonusProduct',\n 'items',\n 'numItems',\n 'numOfShipments',\n 'resources',\n 'shipments',\n 'totals',\n 'valid',\n // PLEDGE FIELDS - START\n // Pledge fields have to be added to the listing of allowed ones since\n // that data model is send to CartRenderer-RenderCart, where that value is used to\n // render pledge-specific templates' fragments.\n 'subTotalWithoutPledge',\n 'subTotalBasePriceBasedWithoutPledge',\n 'totalPledgeValue',\n 'totalPledgeValueExclTax',\n 'grandTotalWithPledge',\n 'grandTotalWithoutPledge',\n 'grandTotalWithPledgeRaw',\n 'grandTotalWithoutPledgeRaw',\n 'pledgeConfig'\n // PLEDGE FIELDS - END\n];\n\nconst CART_MODEL_TOTAL_FIELDS = [\n 'adjustedMerchandizeTotalGrossPrice',\n 'adjustedMerchandizeTotalGrossPriceRaw'\n];\n\n// const CART_MODEL_DATA_FIELDS = [\n// 'items',\n// 'shipments',\n// 'totalDiscount',\n// 'totals'\n// ];\n\nmodule.exports = {\n /**\n * Determines if a string could be parsed as a\n * JSON.\n * @param {string} str\n *\n * @return {boolean}\n */\n isJSON: function (str) {\n try {\n return JSON.parse(str) && !!str;\n } catch (e) {\n return false;\n }\n },\n\n /**\n * Determines if object is cartModel. So far, the definitions\n * of this is that all cartModel top-level-fields need to be present.\n *\n * @param {object} cartModel\n *\n * @return {boolean}\n */\n isCartModel: function (cartModel) {\n try {\n const cartHasAllProperties = CART_MODEL_FIELDS.every((key) => cartModel.hasOwnProperty(key));\n const totalsHaveAllProperties = CART_MODEL_TOTAL_FIELDS.every((key) => cartModel.totals.hasOwnProperty(key));\n return cartHasAllProperties && totalsHaveAllProperties;\n } catch (e) {\n return false;\n }\n },\n\n getCartSkeleton: function (cartModel) {\n let cartSkeleton = {};\n try {\n cartSkeleton = {\n items: cartModel.items.map(function (item) {\n return {\n UUID: item.UUID,\n quantity: item.quantity,\n priceTotal: item.priceTotal.rawPrice\n };\n }),\n totals: {\n orderLevelDiscountTotal: cartModel.totals.orderLevelDiscountTotal.value,\n productLevelDiscount: cartModel.totals.productLevelDiscount.value,\n grandTotal: this.getBasketGrandTotal(cartModel),\n subTotal: this.getBasketSubTotal(cartModel)\n }\n };\n } catch (e) {\n // errors are thrown in case cartModel does not exist. This is expected\n logger.error('getCartSkeleton', e);\n }\n\n return cartSkeleton;\n },\n\n /**\n * Filter out invasive data from, supposed, cartModel objects.\n *\n * @param {object} cartModel\n *\n * @return {object}\n */\n filterCartModelObject: function (cartModel) {\n return _.pick(cartModel, CART_MODEL_FIELDS);\n },\n\n /**\n * Get an object containing the differences between two objects.\n * Will return null in case no differences.\n *\n * (functions not accounted for)\n *\n * @param {object} objectA\n * @param {object} objectB\n * @param optional {string} key\n *\n * @return {object|false}\n */\n objectDifference: function (objectA, objectB, key) {\n var self = this;\n\n var res = {};\n // Get the object type\n var typeA = Object.prototype.toString.call(objectA);\n var typeB = Object.prototype.toString.call(objectB);\n\n if (typeA !== typeB) {\n if (!key) {\n // This state should only be possible on first input (as opposed\n // to recursive runs from inside this function) where two different\n // types of data has been supplied. eg. Object and Null\n return typeB == '[object Object]' ? objectB : true;\n }\n res[key] = objectB;\n } else if (typeA == '[object Object]') {\n // Inspecting for elements that might have been removed from\n // objectA\n Object.keys(objectA).forEach(function (_key) {\n if (Object.keys(objectB).indexOf(_key) === -1) {\n res[_key] = null;\n } else {\n var diff = self.objectDifference(objectA[_key], objectB[_key], _key);\n if (diff) {\n res[_key] = diff;\n }\n }\n });\n // Inspecting for elements that have been added to objectB\n Object.keys(objectB).forEach(function (_key) {\n if (Object.keys(objectA).indexOf(_key) === -1) {\n res[_key] = objectB[_key];\n }\n });\n } else if (typeA == '[object Array]') {\n // It's not really possible to say if there has been changes to\n // assuming that any change could cause the array to end up in\n // different order\n objectA.sort();\n objectB.sort();\n if (objectA.length !== objectB.length || JSON.stringify(objectA) != JSON.stringify(objectB)) {\n res[key] = objectB;\n }\n } else if (objectA != objectB) {\n res[key] = objectB;\n }\n\n return Object.keys(res).length > 0 ? res : false;\n },\n\n getCookieByName: function (name) {\n // After compilation it will be transformed to:\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) {\n return parts.pop().split(';').shift();\n }\n return 'n/a';\n },\n\n getSessionID: function () {\n return this.getCookieByName('sid');\n },\n\n isEqual: function (objectA, objectB) {\n var diff = this.objectDifference(objectA, objectB);\n logger.log('isEqual (objectDifference)', diff);\n return !this.objectDifference(objectA, objectB);\n },\n\n // https://gist.github.com/iperelivskiy/4110988\n hash: function (s) {\n /* Simple hash function. */\n var a = 1,\n c = 0,\n h,\n o;\n if (s) {\n a = 0;\n /* jshint plusplus:false bitwise:false*/\n for (h = s.length - 1; h >= 0; h--) {\n o = s.charCodeAt(h);\n a = (a << 6 & 268435455) + o + (o << 14);\n c = a & 266338304;\n a = c !== 0 ? a ^ c >> 21 : a;\n }\n }\n return String(a);\n },\n getBasketGrandTotal: function (cartModel) {\n try {\n return Math.round(parseFloat(cartModel.totals.grandRawTotal) * 100);\n } catch (e) {\n return 0;\n }\n },\n getBasketSubTotal: function (cartModel) {\n try {\n return cartModel.totals.subTotal;\n } catch (e) {\n return '0';\n }\n },\n};\n","'use strict';\n\nmodule.exports = function () {\n // Not more present in SFRA.\n $('body').on('click', '[data-collapsible-header]', function (e) {\n e.preventDefault();\n $(this)\n .closest('[data-collapsible]')\n .toggleClass('active');\n\n if ($(this).closest('[data-collapsible]').hasClass('active')) {\n var activeTitle = $(this).find('button').data('active');\n $(this).find('button').attr('title', activeTitle);\n } else {\n var notActiveTitle = $(this).find('button').data('notactive');\n $(this).find('button').attr('title', notActiveTitle);\n }\n });\n\n // SFRA 6x version.\n var sizes = ['xs', 'sm', 'md', 'lg', 'xl'];\n\n sizes.forEach(function (size) {\n var selector = '.collapsible-' + size + ' .title';\n $('body').on('click', selector, function (e) {\n e.preventDefault();\n $(this).parents('.collapsible-' + size).toggleClass('active');\n\n if ($(this).parents('.collapsible-' + size).hasClass('active')) {\n $(this).attr('aria-expanded', true);\n } else {\n $(this).attr('aria-expanded', false);\n }\n });\n });\n};\n","'use strict';\n\nmodule.exports = function () {\n $('body').on('click', '[data-dropdown-header]', function (e) {\n e.preventDefault();\n $(this).closest('[data-dropdown]').toggleClass('active');\n e.stopPropagation();\n });\n\n $(document).on('click', function (e) {\n if ($(e.target).is('[data-dropdown]') === false) {\n $('[data-dropdown]').removeClass('active');\n }\n });\n};\n","/* eslint-disable */\n\n'use strict';\n\nmodule.exports = function () {\n // Passive event listeners\n // const passive = {\n // passive: true\n // };\n //\n // function passiveHandler(event) {\n // event.preventDefault();\n // }\n\n // Atm the reason of those event listeners is unclear, commenting out.\n // document.addEventListener('touchstart', passiveHandler, passive);\n // document.addEventListener('touchmove', passiveHandler, passive);\n};\n\n","module.exports = function () {\n $('.unfold-link').click(function (e) {\n e.preventDefault();\n $(this).css('display', 'none');\n $(this).siblings('.fold-link').css('display', 'block');\n var unfoldableElements = $(this).parent().find('.unfoldable');\n unfoldableElements.removeClass('unfoldable');\n unfoldableElements.addClass('foldable');\n });\n\n $('.fold-link').click(function (e) {\n e.preventDefault();\n $(this).css('display', 'none');\n $(this).siblings('.unfold-link').css('display', 'block');\n var unfoldableElements = $(this).parent().find('.foldable');\n unfoldableElements.removeClass('foldable');\n unfoldableElements.addClass('unfoldable');\n });\n};\n","'use strict';\n\n// eslint-disable-next-line no-unused-vars\nvar base = require('base/components/footer');\n// eslint-disable-next-line no-unused-vars\nvar scrollAnimate = require('./scrollAnimate');\n\n/**\n * appends params to a url\n * @param {string} data - data returned from the server's ajax call\n * @param {Object} button - button that was clicked for email sign-up\n */\nfunction displayMessage(data, button) { // eslint-disable-line no-unused-vars\n $.spinner().stop();\n var status;\n if (data.success) {\n status = 'alert-success';\n } else {\n status = 'alert-danger';\n }\n\n if ($('.email-signup-message').length === 0) {\n $('body').append(\n ''\n );\n }\n $('.email-signup-message')\n .append('');\n\n setTimeout(function () {\n $('.email-signup-message').remove();\n button.removeAttr('disabled');\n }, 3000);\n}\n\nfunction validEmail(newsletterEmail) {\n // eslint-disable-next-line no-useless-escape\n var pattern = /^[a-zA-Z0-9]*([\\w+-]+\\.)*[\\w+-]+@[a-zA-Z0-9]([\\w-]+\\.)*[a-zA-Z]{2,6}$/;\n return pattern.test(String(newsletterEmail).toLowerCase());\n}\n\nmodule.exports = function () {\n // Not SFRA 6x script upgrade compatible.Selective changes applied.\n $('.newsletterForm').submit(function (e) {\n e.preventDefault();\n var form = $(this);\n var newsletterEmail = form.find('.newsletter-input');\n var newsletterEmailValue = newsletterEmail.val();\n var successMessage = form.find('.newsletter-message .newsletter-success-message');\n var errorMessage = form.find('.newsletter-error-message');\n var errorMessageText = '';\n\n var isValid = validEmail(newsletterEmailValue);\n\n if (!isValid) {\n errorMessageText = $(newsletterEmail).data('missing-error');\n newsletterEmail.val('');\n\n successMessage.addClass('hidden');\n $(errorMessage).text(errorMessageText);\n errorMessage.removeClass('hidden');\n return false;\n }\n\n grecaptcha.ready(function () { // eslint-disable-line\n grecaptcha.execute(form.attr('data-recaptcha-site-key'), { action: 'newsletter' }).then(function (token) { // eslint-disable-line\n $.ajax({\n url: form.attr('action'),\n method: 'POST',\n data: newsletterEmail.serialize() + '&token=' + token + '&action=newsletter',\n success: function (data) {\n if (data.alreadySubscribed) {\n successMessage.addClass('hidden');\n $(errorMessage).text(data.alreadySubscribedMessage);\n errorMessage.removeClass('hidden');\n newsletterEmail.val('');\n } else {\n errorMessage.addClass('hidden');\n successMessage.removeClass('hidden');\n newsletterEmail.val('');\n }\n\n return true;\n },\n error: function () {\n successMessage.addClass('hidden');\n errorMessageText = $(newsletterEmail).data('missing-error');\n $(errorMessage).text(errorMessageText);\n errorMessage.removeClass('hidden');\n newsletterEmail.val('');\n }\n });\n });\n });\n });\n\n\n $('.click-to-expand').on('click', function () {\n $(this).closest('tr').next().toggle();\n });\n};\n","'use strict';\n\nvar previousScroll = 0;\n\nmodule.exports = function () {\n // Grab the html of the \n // include and inject it into the .header-main (the scroll header)\n // This is to get around the below remote include that have been loading twice each page load:\n // \n // \n var iconsHtml = $('.header-top .header-menu-icons').html();\n $('.header-main .header-menu-icons').html(iconsHtml);\n\n $(window).on('scroll', function () {\n var currentScroll = $(this).scrollTop();\n if (currentScroll > previousScroll && $(window).scrollTop() > 200) {\n $('.header').addClass('scroll-down');\n\n if ($('.account-navigation-menu-wrapper').length > 0) {\n $('.account-navigation-menu-wrapper').addClass('scroll-down');\n $('.account-navigation').addClass('scroll-down');\n }\n } else {\n $('.header').removeClass('scroll-down');\n\n if ($('.account-navigation-menu-wrapper').length > 0) {\n $('.account-navigation-menu-wrapper').removeClass('scroll-down');\n $('.account-navigation').removeClass('scroll-down');\n }\n }\n\n if (currentScroll > 200) {\n $('.header').addClass('sticky');\n } else {\n $('.header').removeClass('sticky');\n }\n\n previousScroll = currentScroll;\n });\n};\n","'use strict';\n\n// Not SFRA 6x script upgrade compatible.Selective changes applied.\n\nvar states = require('improove/util/states');\nvar util = require('improove/util/util');\nvar ld = require('lodash');\n\nimport FeatureFlagRegistrar from 'shared/js/featureFlagRegistrar';\n\n/**\n * Open the level 2 menu and mark the active menu if we are in PLP.\n *\n * @returns {void}\n */\nfunction openCurrentCategory() {\n var currentCategoryPath = document.querySelector('.js_current-category-path');\n if (currentCategoryPath && currentCategoryPath.dataset.currentCategoryPath !== 'null') {\n var path = JSON.parse(currentCategoryPath.dataset.currentCategoryPath);\n var selector = path.reduce((result, item) => {\n return (result && (result + ', ')) + '.menu-level-1-item[data-category-id=\"' + item + '\"], .menu-level-2-item[data-category-id=\"' + item + '\"]';\n }, '');\n var items = document.querySelectorAll(selector);\n for (let i = 0; i < items.length; i++) {\n items[i].classList.add('selected');\n }\n var notSelected = document.querySelectorAll('.menu-level-1-item:not(.selected), .menu-level-2-item:not(.selected)');\n for (let i = 0; i < notSelected.length; i++) {\n notSelected[i].classList.add('not-selected');\n }\n }\n}\n\n// Reset Menu Method\nvar resetMenu = function () {\n var containers = $('.menu-level-2-container, .menu-level-3-container');\n containers.each(function (i, el) {\n if ($(el).hasClass('menu-active-container')) {\n $(el).removeClass('menu-active-container');\n }\n });\n $('.menu-level-1-container').removeClass('level-2-active level-3-active');\n $('.menu-back-action').removeClass('show-button');\n $('.menu-level-1-item').unbind('mouseenter');\n $('.menu-level-1-item').unbind('mouseleave');\n $('.menu-level-3-item').unbind('click');\n if (!FeatureFlagRegistrar.isSite('FM')) {\n $('.menu-level-1-item').unbind('click'); // #CDIFF #DONE FM does not have that line\n }\n $('.menu-level-2-item').unbind('click');\n $('.menu-back-action').unbind('click');\n $('.menu-parent-category').unbind('click');\n if (!FeatureFlagRegistrar.isSite('FM', 'BS')) {\n $('.menu-parent-category-se').unbind('click'); // BS, FM don't have that line\n }\n};\n\nvar menu = {};\nmenu.init = function init() {\n states.add('menu', $('.state-container--menu'), $('.menu-state-trigger'), {\n onActivate: function () {\n $('.menu-main-container').addClass('active');\n },\n onDeactivate: function () {\n $('.menu-main-container').removeClass('active');\n resetMenu();\n }\n });\n\n function loadMenu() {\n resetMenu();\n if (util.getScreenSize() === 'small' || util.getScreenSize() === 'medium') {\n // Go to Sub menu level 2\n if ($('body').hasClass('state--menu')) {\n $('.menu-main-container').addClass('active');\n }\n\n $('.menu-level-1-item').on('click', function (e) {\n if ($(this).find('div').hasClass('menu-level-2-container')) {\n e.preventDefault();\n $('.menu-level-1-container').addClass('level-2-active');\n $(this).find('.menu-level-2-container').addClass('menu-active-container');\n $('.menu-back-action').addClass('show-button');\n }\n });\n // Go to Sub menu Level 3\n $('.menu-level-2-item').on('click', function (e) {\n if ($(this).find('div').hasClass('menu-level-3-container')) {\n e.preventDefault();\n $('.menu-level-1-container').addClass('level-3-active');\n $(this).find('.menu-level-3-container').addClass('menu-active-container');\n $('#menu-state-container').scrollTop(0);\n } else {\n e.stopPropagation();\n }\n });\n\n // Stop Propagation level 3 and for campaign pages in menu list\n $('.menu-level-3-item, .menu-content-list').on('click', function (e) {\n e.stopPropagation();\n });\n\n // Button go back on Sub menu\n $('.menu-back-action').on('click', function () {\n let level1c = $('.menu-level-1-container');\n if (level1c.hasClass('level-3-active')) {\n level1c.removeClass('level-3-active');\n $('.menu-level-3-container').removeClass('menu-active-container');\n } else if (level1c.hasClass('level-2-active')) {\n level1c.removeClass('level-2-active');\n $('.menu-level-2-container').removeClass('menu-active-container');\n $('.menu-back-action').removeClass('show-button');\n }\n });\n\n // #CDIFF #DONE GG, PF has line instead:\n var selectorMenuParentCategory;\n if (FeatureFlagRegistrar.isSite('GG', 'PF')) {\n selectorMenuParentCategory = '.menu-parent-category, .menu-parent-category-se';\n } else {\n selectorMenuParentCategory = '.menu-parent-category';\n }\n $(selectorMenuParentCategory).on('click', function (event) {\n event.stopPropagation();\n });\n } else if (\n (FeatureFlagRegistrar.isSite('BS', 'SN') && util.getScreenSize() === 'large')\n || (FeatureFlagRegistrar.isSite('FM', 'GG', 'PF') && util.getScreenSize() !== 'small')\n ) { // #CDIFF #DONE FM, GG, PF have !== 'small' instead\n // Only for Desktop\n $('.menu-level-1-item')\n .on('mouseenter', function () {\n $('.menu-main-container').addClass('active');\n // FM, GG, PF has $(this).addClass('active');\n if (\n $(this)\n .find('div')\n .hasClass('menu-level-2-container')\n ) {\n $('.menu-level-1-container').addClass('level-2-active');\n $(this)\n .find('.menu-level-2-container')\n .addClass('menu-active-container');\n }\n })\n .on('mouseleave', function () {\n $('.menu-main-container').removeClass('active');\n // FM, GG, PF has: $(this).removeClass('active');\n $('.menu-level-1-container').removeClass('level-2-active');\n $(this)\n .find('.menu-level-2-container')\n .removeClass('menu-active-container');\n });\n }\n }\n\n $(window).on(\n 'resize',\n ld.debounce(function () {\n loadMenu();\n }, 200)\n );\n\n $(document).ready(function () {\n $('.header-hamburger-menu-icon').on('click', function () {\n loadMenu();\n openCurrentCategory();\n });\n });\n\n loadMenu();\n openCurrentCategory();\n};\n\nmodule.exports = menu;\n","'use strict';\n\nimport _ from 'shared/js/underscore';\nimport { loadAnalytics } from 'shared/js/voyadoAnalyticsLoader';\n\nconst util = require('improove/util/util');\nvar previousScreenSize = util.getScreenSize();\n\nfunction setCookie(key, value, expiresInDays) {\n var date = new Date();\n date.setTime(date.getTime() + (expiresInDays * 24 * 60 * 60 * 1000));\n document.cookie = key + '=' + value + ';path=/;expires=' + date.toUTCString();\n}\n\nfunction deleteCookie(name) {\n document.cookie = name + '=1;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n}\n\n// For the removal of the cookies that have different domain\nfunction eraseCookie(name) {\n var domain = window.location.hostname;\n domain = domain.substring(domain.indexOf('.'));\n document.cookie = name + '=1;domain=' + domain + ';path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n}\n\nfunction injectGTMScript() {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });\n var firstScript = document.getElementsByTagName('script')[0];\n var scriptElement = document.createElement('script');\n scriptElement.async = true;\n scriptElement.src = '//' + window.GTM_URL + '/gtm.js?id=' + window.GTM_CONTAINER_ID;\n firstScript.parentNode.insertBefore(scriptElement, firstScript);\n}\n\nfunction setInitialValues() {\n // Cookie Consent Settings Init\n var functionalityStorage = 'denied';\n var analyticsStorage = 'denied';\n var adStorage = 'denied';\n var adUserData = 'denied';\n var adPersonalization = 'denied';\n\n if ($('.cookie-message-banner').length === 0 || $('.cookie-message-banner').hasClass('hide')) {\n if (document.cookie.indexOf('set_functional_cookies=1') > 0) {\n functionalityStorage = 'granted';\n }\n\n if (document.cookie.indexOf('set_analytics_cookies=1') > 0) {\n analyticsStorage = 'granted';\n }\n\n if (document.cookie.indexOf('set_marketing_cookies=1') > 0) {\n adStorage = 'granted';\n adPersonalization = 'granted';\n adUserData = 'granted';\n }\n\n window.gtag('consent', 'update', {\n ad_storage: adStorage,\n ad_personalization: adPersonalization,\n ad_user_data: adUserData,\n analytics_storage: analyticsStorage,\n functionality_storage: functionalityStorage,\n // Docs suggest to have it at least 500 ms, increasing it to 1000 ms for the case of 1st time site visit.\n wait_for_update: 1000\n });\n }\n\n // Inject GTM script after defining the default and inital updated consent values\n if (window.GTM_ENABLED && window.GTM_CONTAINER_ID) {\n injectGTMScript();\n }\n}\n\nconst execute = function () {\n $(window).on(\n 'load resize',\n _.debounce(function () {\n var currentScreenSize = util.getScreenSize();\n if (previousScreenSize != currentScreenSize) {\n previousScreenSize = currentScreenSize;\n }\n }));\n\n $('[data-dynamic-message-banner] .close-banner-icon').click(function () {\n $('[data-dynamic-message-banner]').addClass('hide');\n const isAuthenticatedUser = $('#isAuthenticatedUser').length > 0;\n if (!isAuthenticatedUser) {\n setCookie('show_dynamic_message_banner', false, 1);\n } else {\n setCookie('show_dynamic_message_banner_logged', false, 1);\n }\n });\n\n /* BIG COOKIE BANNER */\n // #CDIFF PF <> FM <> GG - has 2d part of condition, is used PF version\n if (document.cookie.indexOf('set_necessary_cookies=1') < 0 && !$('.cookie-message-banner').hasClass('old-cookie-banner')) {\n $('.cookie-message-banner').removeClass('hide');\n $('.cookie-banner-overlay').removeClass('hide');\n }\n\n $('[data-view-cookie-details]').on('click', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $('.cookie-message-banner').addClass('hide');\n $('.cookie-details-wrapper').removeClass('hide');\n });\n\n $('[data-open-cookie-policy]').on('click', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $('.cookie-details-wrapper').addClass('hide');\n $('.cookie-message-banner').addClass('hide');\n $('.cookie-policy-wrapper').removeClass('hide');\n });\n\n $('[data-open-integritets-policy]').on('click', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $('.cookie-details-wrapper').addClass('hide');\n $('.cookie-message-banner').addClass('hide');\n $('.cookie-integrity-wrapper').removeClass('hide');\n });\n\n $('[data-return-to-banner]').on('click', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $('.cookie-message-banner').removeClass('hide');\n $('.cookie-details-wrapper').addClass('hide');\n $('.cookie-policy-wrapper').addClass('hide');\n $('.cookie-integrity-wrapper').addClass('hide');\n });\n\n $('.cookie-message-banner .save-cookie-button ').on('click', function () {\n setCookie('set_necessary_cookies', 1, 365);\n setCookie('set_functional_cookies', 1, 365);\n setCookie('set_analytics_cookies', 1, 365);\n setCookie('set_marketing_cookies', 1, 365);\n $('.cookie-message-banner').addClass('hide');\n $('.cookie-banner-overlay').addClass('hide');\n loadAnalytics();\n });\n\n $('[data-save-all-cookies]').on('click', function () {\n $('.cookie-checkbox').each(function () {\n if ($(this).is(':checked') !== true) {\n $(this).prop('checked', true);\n }\n });\n setCookie('set_necessary_cookies', 1, 365);\n setCookie('set_functional_cookies', 1, 365);\n setCookie('set_analytics_cookies', 1, 365);\n setCookie('set_marketing_cookies', 1, 365);\n $('.cookie-details-wrapper').addClass('hide');\n $('.cookie-banner-overlay').addClass('hide');\n });\n\n $('[data-deny-all-cookies], .cookie-message-banner .save-necessary-cookie-button').on('click', function () {\n $('.cookie-checkbox').each(function () {\n if ($(this).is(':checked') && $(this).is(':disabled') !== true) {\n $(this).prop('checked', false);\n }\n });\n setCookie('set_necessary_cookies', 1, 365);\n $('.cookie-message-banner').addClass('hide');\n $('.cookie-details-wrapper').addClass('hide');\n $('.cookie-banner-overlay').addClass('hide');\n });\n\n $('[data-save-cookies]').on('click', function () {\n setCookie('set_necessary_cookies', 1, 365);\n\n if ($('#cookie-checkbox-functional').is(':checked')) {\n setCookie('set_functional_cookies', 1, 365);\n }\n\n if ($('#cookie-checkbox-analytics').is(':checked')) {\n setCookie('set_analytics_cookies', 1, 365);\n }\n\n if ($('#cookie-checkbox-marketing').is(':checked')) {\n setCookie('set_marketing_cookies', 1, 365);\n }\n\n $('.cookie-details-wrapper').addClass('hide');\n $('.cookie-banner-overlay').addClass('hide');\n });\n\n $('[data-reset-cookies]').on('click', function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n setCookie('set_marketing_cookies', 1, 365);\n\n if (document.cookie.indexOf('set_necessary_cookies=1') >= 0) {\n deleteCookie('set_necessary_cookies');\n }\n\n if (document.cookie.indexOf('set_functional_cookies=1') >= 0) {\n deleteCookie('set_functional_cookies');\n }\n\n if (document.cookie.indexOf('set_analytics_cookies=1') >= 0) {\n deleteCookie('set_analytics_cookies');\n }\n\n if (document.cookie.indexOf('set_marketing_cookies=1') >= 0) {\n deleteCookie('set_marketing_cookies');\n }\n\n if (document.cookie.indexOf('sg_optin=1') >= 0) {\n eraseCookie('sg_optin');\n }\n\n $('.cookie-message-banner').addClass('hide');\n $('.cookie-details-wrapper').removeClass('hide');\n });\n\n if (document.cookie.indexOf('set_marketing_cookies=1') > 0) {\n $('#cookie-checkbox-marketing').prop('checked', true);\n }\n if (document.cookie.indexOf('set_functional_cookies=1') > 0) {\n $('#cookie-checkbox-functional').prop('checked', true);\n }\n if (document.cookie.indexOf('set_analytics_cookies=1') > 0) {\n $('#cookie-checkbox-analytics').prop('checked', true);\n }\n\n // Moved from the initial version of gtmConsent.isml\n $(document).ready(function () {\n setInitialValues();\n\n // Update Consent Settings On Cookie Settings Clicks\n $('.cookie-message-banner .save-cookie-button, [data-save-all-cookies]').on('click', function () {\n window.gtag('consent', 'update', {\n ad_storage: 'granted',\n ad_personalization: 'granted',\n ad_user_data: 'granted',\n analytics_storage: 'granted',\n functionality_storage: 'granted',\n });\n\n document.dispatchEvent(\n new CustomEvent('GTM-push-consent-update',\n {\n detail: {\n event: 'cookie_consent_update'\n }\n })\n );\n });\n\n $('[data-deny-all-cookies], .cookie-message-banner .save-necessary-cookie-button').on('click', function () {\n window.gtag('consent', 'update', {\n ad_storage: 'denied',\n ad_personalization: 'denied',\n ad_user_data: 'denied',\n analytics_storage: 'denied',\n functionality_storage: 'denied',\n });\n\n document.dispatchEvent(\n new CustomEvent('GTM-push-consent-update',\n {\n detail: {\n event: 'cookie_consent_update'\n }\n })\n );\n });\n\n $('[data-save-cookies]').on('click', function () {\n var analytics_storage = 'denied';\n var ad_storage = 'denied';\n var ad_personalization = 'denied';\n var ad_user_data = 'denied';\n var functionality_storage = 'denied';\n\n if ($('#cookie-checkbox-analytics').is(':checked')) {\n analytics_storage = 'granted';\n }\n\n if ($('#cookie-checkbox-marketing').is(':checked')) {\n ad_storage = 'granted';\n ad_personalization = 'granted';\n ad_user_data = 'granted';\n }\n\n if ($('#cookie-checkbox-functional').is(':checked')) {\n functionality_storage = 'granted';\n }\n\n window.gtag('consent', 'update', {\n ad_storage: ad_storage,\n ad_personalization: ad_personalization,\n ad_user_data: ad_user_data,\n analytics_storage: analytics_storage,\n functionality_storage: functionality_storage\n });\n\n document.dispatchEvent(\n new CustomEvent('GTM-push-consent-update',\n {\n detail: {\n event: 'cookie_consent_update'\n }\n })\n );\n });\n\n $('.cookie-message-banner button, .cookie-details-wrapper button').on('click', function () {\n $(document).trigger('cookie:update');\n });\n });\n};\n\nmodule.exports = (context) => {\n if (context === 'checkout') {\n setInitialValues();\n return;\n }\n execute();\n};\n","'use strict';\n\nmodule.exports = function (element) {\n // #CDIFF #TBD unknown why \"-400\", SFRA version does not have it\n var position = element && element.length ? element.offset().top - 400 : 0;\n $('html, body').animate({\n scrollTop: position\n }, 500);\n\n if (!element) {\n $('.logo-home').focus();\n }\n};\n","'use strict';\n\nimport _ from 'shared/js/underscore';\nvar states = require('improove/util/states');\nvar endpoint = $('.suggestions-wrapper').data('url');\nvar endpointEinstein = $('.suggestions-einstein-wrapper').data('url');\nvar minChars = 3;\nvar UP_KEY = 38;\nvar DOWN_KEY = 40;\nvar DIRECTION_DOWN = 1;\nvar DIRECTION_UP = -1;\n\n/**\n * Retrieves Suggestions element relative to scope\n *\n * @param {Object} scope - Search input field DOM element\n * @return {JQuery} - .suggestions-wrapper element\n */\nfunction getSuggestionsWrapper(scope) {\n // #CDIFF #DONE Custom version: return $(scope).parents('.header-site-search').find('.suggestions-wrapper');\n return $(scope).closest('.header-search-form').siblings('.suggestions-wrapper') || $(scope).siblings('.suggestions-wrapper');\n}\n\n/**\n * Retrieves Suggestions element relative to scope\n *\n * @param {Object} scope - Search input field DOM element\n * @return {JQuery} - .suggestions-einstein-wrapper element\n */\nfunction getEinsteinSuggestionsWrapper(scope) {\n return $(scope).parents('.header-site-search').find('.suggestions-einstein-wrapper');\n}\n\n/**\n * Determines whether DOM element is inside the .search-mobile class\n *\n * @param {Object} scope - DOM element, usually the input.search-field element\n * @return {boolean} - Whether DOM element is inside div.search-mobile\n */\nfunction isMobileSearch(scope) {\n return !!$(scope).closest('.search-mobile').length;\n}\n\n/**\n * Remove modal classes needed for mobile suggestions\n *\n */\nfunction clearModals() {\n $('body').removeClass('modal-open');\n $('header').siblings().attr('aria-hidden', 'false');\n $('.suggestions').removeClass('modal');\n}\n\n/**\n * Apply modal classes needed for mobile suggestions\n *\n * @param {Object} scope - Search input field DOM element\n */\nfunction applyModals(scope) {\n if (isMobileSearch(scope)) {\n $('body').addClass('modal-open');\n $('header').siblings().attr('aria-hidden', 'true');\n getSuggestionsWrapper(scope).find('.suggestions').addClass('modal');\n }\n}\n\n/**\n * Tear down Suggestions panel\n */\nfunction tearDownSuggestions() {\n // SFRA version:\n // $('input.search-field').val('');\n clearModals();\n $('.search-mobile .suggestions').unbind('scroll');\n $('.suggestions-wrapper').empty();\n}\n\n/**\n * Toggle search field icon from search to close and vice-versa\n *\n * @param {string} action - Action to toggle to\n */\nfunction toggleSuggestionsIcon(action) {\n var mobileSearchIcon = '.search-mobile button.'; // #TODO FF #CDIFF FM, PF have \".search-mobile span.\"\n var iconSearch = 'fa-search';\n var iconSearchClose = 'fa-close';\n\n if (action === 'close') {\n // #TODO FF #CDIFF .attr('type', 'button');\n $(mobileSearchIcon + iconSearch).removeClass(iconSearch).addClass(iconSearchClose).attr('type', 'button');\n } else {\n // #TODO FF #CDIFF .attr('type', 'submit');\n $(mobileSearchIcon + iconSearchClose).removeClass(iconSearchClose).addClass(iconSearch).attr('type', 'submit');\n }\n}\n\n/**\n * Determines whether the \"More Content Below\" icon should be displayed\n *\n * @param {Object} scope - DOM element, usually the input.search-field element\n */\nfunction handleMoreContentBelowIcon(scope) {\n if (($(scope).scrollTop() + $(scope).innerHeight()) >= $(scope)[0].scrollHeight) {\n $('.more-below').fadeOut();\n } else {\n $('.more-below').fadeIn();\n }\n}\n\n/**\n * Positions Suggestions panel on page\n *\n * @param {Object} scope - DOM element, usually the input.search-field element\n */\nfunction positionSuggestions(scope) {\n var outerHeight;\n var $scope;\n var $suggestions;\n var top;\n\n if (isMobileSearch(scope)) {\n $scope = $(scope);\n top = $scope.offset().top;\n outerHeight = $scope.outerHeight();\n $suggestions = getSuggestionsWrapper(scope).find('.suggestions');\n $suggestions.css('top', top + outerHeight);\n\n handleMoreContentBelowIcon(scope);\n\n // Unfortunately, we have to bind this dynamically, as the live scroll event was not\n // properly detecting dynamic suggestions element's scroll event\n $suggestions.scroll(function () {\n handleMoreContentBelowIcon(this);\n });\n }\n}\n\n/**\n * Process Ajax response for SearchServices-GetSuggestions\n *\n * @param {Object|string} response - Empty object literal if null response or string with rendered\n * suggestions template contents\n */\nfunction processResponse(response) {\n var $suggestionsWrapper = getSuggestionsWrapper(this).empty();\n\n $.spinner().stop();\n\n if (typeof (response) !== 'object') {\n $suggestionsWrapper.append(response).show();\n $(this).siblings('.reset-button').addClass('d-sm-block');\n positionSuggestions(this);\n\n if (isMobileSearch(this)) {\n toggleSuggestionsIcon('close');\n applyModals(this);\n }\n\n // Trigger screen reader by setting aria-describedby with the new suggestion message.\n var suggestionsList = $('.suggestions .item');\n if ($(suggestionsList).length) {\n $('input.search-field').attr('aria-describedby', 'search-result-count');\n } else {\n $('input.search-field').removeAttr('aria-describedby');\n }\n } else {\n $suggestionsWrapper.hide();\n $('.popular-search').removeClass('hide');\n }\n}\n\n/**\n * Process Ajax response for SearchServices-GetEinsteinSuggestions\n *\n * @param {Object|string} response - Empty object literal if null response or string with rendered\n * suggestions template contents\n */\nfunction processEinsteinResponse(response) {\n var $suggestionsEinsteinWrapper = getEinsteinSuggestionsWrapper('input.search-field').empty();\n\n if (!(typeof (response) === 'object')) {\n $suggestionsEinsteinWrapper.append(response).show();\n }\n}\n\n/**\n * Retrieve Einstein suggestions\n *\n * @param {Object} scope - Search field DOM element\n */\nfunction getEinsteinSuggestions() {\n $.ajax({\n url: endpointEinstein,\n method: 'GET',\n success: processEinsteinResponse,\n }).always(function () {\n $.spinner().stop();\n });\n}\n\n/**\n * Retrieve suggestions\n *\n * @param {Object} scope - Search field DOM element\n */\nfunction getSuggestions(scope) {\n if ($(scope).val().length >= minChars) {\n $.ajax({\n context: scope,\n url: endpoint + encodeURIComponent($(scope).val()),\n method: 'GET',\n success: processResponse\n });\n $('.popular-search').addClass('hide');\n $('span.clear-search').removeClass('hide');\n $('body').addClass('overflow-hidden body-fixed');\n } else {\n toggleSuggestionsIcon('search');\n $(scope).siblings('.reset-button').removeClass('d-sm-block');\n clearModals();\n getSuggestionsWrapper(scope).empty();\n getEinsteinSuggestions();\n $('.popular-search').removeClass('hide');\n $('span.clear-search').removeClass('hide');\n $('body').addClass('overflow-hidden body-fixed');\n }\n}\n\nfunction closeSearchDropdown() {\n $('input.search-field').blur(); // stop focusing input after click on clear search\n $('.suggestions').hide();\n $('.header').removeClass('remove-link-events');\n $('body').removeClass('overflow-hidden body-fixed');\n $('.overlay-search').addClass('hide');\n $('.popular-search').addClass('hide');\n toggleSuggestionsIcon('search');\n $('span.clear-search').addClass('hide');\n tearDownSuggestions();\n}\n\n/**\n * Handle Search Suggestion Keyboard Arrow Keys\n *\n * @param {Integer} direction takes positive or negative number constant, DIRECTION_UP (-1) or DIRECTION_DOWN (+1)\n */\nfunction handleArrow(direction) {\n // get all li elements in the suggestions list\n var suggestionsList = $('.suggestions .item');\n if (suggestionsList.filter('.selected').length === 0) {\n suggestionsList.first().addClass('selected');\n $('input.search-field').each(function () {\n $(this).attr('aria-activedescendant', suggestionsList.first()[0].id);\n });\n } else {\n suggestionsList.each(function (index) {\n var idx = index + direction;\n if ($(this).hasClass('selected')) {\n $(this).removeClass('selected');\n $(this).removeAttr('aria-selected');\n if (suggestionsList.eq(idx).length !== 0) {\n suggestionsList.eq(idx).addClass('selected');\n suggestionsList.eq(idx).attr('aria-selected', true);\n $(this).removeProp('aria-selected');\n $('input.search-field').each(function () {\n $(this).attr('aria-activedescendant', suggestionsList.eq(idx)[0].id);\n });\n } else {\n suggestionsList.first().addClass('selected');\n suggestionsList.first().attr('aria-selected', true);\n $('input.search-field').each(function () {\n $(this).attr('aria-activedescendant', suggestionsList.first()[0].id);\n });\n }\n return false;\n }\n return true;\n });\n }\n}\n\nmodule.exports = function () {\n $('form[name=\"simpleSearch\"]').submit(function (e) {\n var suggestionsList = $('.suggestions .item');\n if (suggestionsList.filter('.selected').length !== 0) {\n e.preventDefault();\n suggestionsList.filter('.selected').find('a')[0].click();\n }\n });\n\n $('input.search-field').each(function () {\n /**\n * Use debounce to avoid making an Ajax call on every single key press by waiting a few\n * hundred milliseconds before making the request. Without debounce, the user sees the\n * browser blink with every key press.\n */\n var debounceSuggestions = _.debounce(getSuggestions, 300);\n\n $(this).on('keyup focus', function (e) {\n // Capture Down/Up Arrow Key Events\n switch (e.which) {\n case DOWN_KEY:\n handleArrow(DIRECTION_DOWN);\n e.preventDefault(); // prevent moving the cursor\n break;\n case UP_KEY:\n handleArrow(DIRECTION_UP);\n e.preventDefault(); // prevent moving the cursor\n break;\n default:\n debounceSuggestions(this, e);\n }\n $('.overlay-search').removeClass('hide');\n $('.header').addClass('remove-link-events');\n $('.header-search-dropdown').addClass('opened');\n });\n });\n\n $('body').on('click', function (e) {\n if (!$('.suggestions').has(e.target).length && !$(e.target).hasClass('search-field') && $(e.target).hasClass('body.overflow-hidden.modal-open')) {\n $('.suggestions').hide();\n }\n });\n\n\n // #CDIFF #MONITOR SFRA6 has another logic for the next 2 functions\n $('body').on('click', 'span.clear-search', function (e) {\n e.preventDefault();\n $('.suggestions').hide();\n e.stopPropagation();\n tearDownSuggestions();\n closeSearchDropdown();\n $('.header-search-input').val('');\n });\n\n $('body').on('click', '.overlay-search', function () {\n closeSearchDropdown();\n });\n\n states.add('search', $('.state-container--search'), $('.search-state-trigger'), {\n onActivate: function () {\n setTimeout(function () {\n $('.search-field').focus();\n }, 50);\n }\n });\n\n $('.site-search .reset-button').on('click', function () {\n $(this).removeClass('d-sm-block');\n });\n};\n","'use strict';\n\nmodule.exports = function () {\n $('body').on('click', '[data-tab-header]', function (e) {\n e.preventDefault();\n\n if (!$(this).hasClass('active')) {\n // Remove class Active from other Tabs\n $('[data-tab-header]').removeClass('active');\n $('[data-tab-content]').removeClass('active');\n\n // Set Tab Header Item as Active\n $(this).addClass('active');\n\n // Set Tab Content Item as Active\n var clickedTab = $(this).data('tab-header');\n $('[data-tab-header=' + clickedTab + ']').addClass('active');\n $('[data-tab-content=' + clickedTab + ']').addClass('active');\n }\n });\n};\n","'use strict';\n\nmodule.exports = function () {\n $('.slick-blog-carousel').slick({\n infinite: true,\n slidesToShow: 3,\n slidesToScroll: 1,\n dots: true,\n arrows: false,\n responsive: [\n {\n breakpoint: 1024,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1\n }\n }\n ]\n });\n};\n","'use strict';\r\n\r\nmodule.exports = function () {\r\n $('[data-copy-to-clipboard]').click(function () {\r\n var clipboardValue = $(this).siblings('[data-clipboard]').val();\r\n var clipboardTextToCopy = $('[data-id=' + clipboardValue + ']');\r\n clipboardTextToCopy.focus();\r\n clipboardTextToCopy.select();\r\n document.execCommand('copy');\r\n $(this).parent().find('.copy-to-clipboard-message').show().delay(2000).fadeOut('fast');\r\n });\r\n};\r\n","let $ = window.$ || window.jQuery || require('jquery');\nwindow.$ = window.jQuery = $;\n\nimport CartWidget from 'theme/js/cart/cartwidget';\nimport CartIconWidget from 'theme/js/cart/carticonwidget';\n\nimport FeatureFlagProvider from 'shared/js/featureFlagRegistrar';\nimport { VOYADO_SCRIPT_LOADED } from 'shared/js/voyadoAnalyticsLoader';\n\nconst processInclude = require('theme/js/util');\n\n// Dependencies pre-inclusion.\nrequire('slick-carousel');\nrequire('lazysizes');\nrequire('theme/js/components/spinner');\nrequire('theme/js/thirdParty/bootstrap');\n\n// Dependencies inclusion on document-ready.\nconst modules = () => {\n processInclude(require('theme/js/components/eventListeners'));\n processInclude(require('theme/js/components/header'));\n processInclude(require('theme/js/components/menu'));\n processInclude(require('theme/js/components/cookie'));\n processInclude(require('theme/js/components/consentTracking'));\n processInclude(require('theme/js/components/footer'));\n processInclude(require('theme/js/components/collapsibleItem'));\n processInclude(require('theme/js/components/clientSideValidation'));\n processInclude(require('theme/js/components/countrySelector'));\n processInclude(require('theme/js/components/toolTip'));\n\n processInclude(require('theme/js/cart/miniCart')); // SFRA/wishlist cartridges - base/components/miniCart\n processInclude(require('theme/js/components/dropdown'));\n processInclude(require('theme/js/components/tabs'));\n processInclude(require('theme/js/components/search'));\n processInclude(require('theme/js/components/fold'));\n processInclude(require('theme/js/components/widgets/blogcarousel'));\n processInclude(require('theme/js/components/widgets/herobanner'));\n processInclude(require('theme/js/components/messageBanner'));\n processInclude(require('theme/js/product/wishlist'));\n processInclude(require('theme/js/product/quickView'));\n};\n\n// Initialize the miniCart widget.\nFeatureFlagProvider.callback((load) => {\n load();\n\n CartIconWidget.init();\n // Whenever CartWidget re-renders the CartIconWidget also re-renders\n CartWidget.registerCallback('cartwidget:pre-render', function () {\n CartIconWidget.render();\n });\n\n CartWidget.init('storefront').render();\n});\n\n// Check if cookies are accepted\nfunction getCookie(cookieName) {\n let cookie = {};\n document.cookie.split(';').forEach(function (el) {\n let [key, value] = el.split('=');\n cookie[key.trim()] = value;\n });\n return cookie[cookieName];\n}\n\n// Dixa function\n(function (w, d, s) {\n if (w._dixa_) return;\n w._dixa_ = {\n invoke: function (m, a) {\n w._dixa_.pendingCalls = w._dixa_.pendingCalls || [];\n w._dixa_.pendingCalls.push([m, a]);\n },\n };\n s = d.createElement('script');\n s.type = 'text/javascript';\n s.setAttribute('charset', 'utf-8');\n s.async = true;\n s.src = 'https://messenger.dixa.io/bootstrap.js';\n var before = d.getElementsByTagName('script')[0];\n before.parentNode.insertBefore(s, before);\n}(window, document));\n\n$(document).on('cookie:update', function () {\n var acceptedCookies = getCookie('set_functional_cookies');\n\n if (acceptedCookies && window.SitePreferences) {\n // Dixa script\n var enableDixaWidgetLocal = window.SitePreferences.ENABLE_DIXA_WIDGET_LOCAL;\n\n if (enableDixaWidgetLocal) {\n var dixaMessengerTokenObjLocal = window.SitePreferences.DIXA_MESSENGER_TOKEN_OBJ_LOCAL;\n var language = window.SitePreferences.LANGUAGE;\n\n _dixa_.invoke('init', { // <- init is called here\n messengerToken: dixaMessengerTokenObjLocal,\n position: 'bottomLeft',\n showWidgetCloseButton: true,\n language: language,\n });\n }\n\n // Voyado script\n var voyadoIsActive = window.SitePreferences.VOYADO_IS_ACTIVE;\n\n if (voyadoIsActive) {\n var voyadoScript = window.SitePreferences.VOYADO_SCRIPT;\n var voyadoTenant = window.SitePreferences.VOYADO_TENANT;\n\n (function (i, s, o, g, r, a, m) {\n i.VoyadoAnalyticsObject = r;\n i[r] = i[r] || function () {\n (i[r].q = i[r].q || []).push(arguments);\n };\n i[r].l = 1 * new Date();\n a = s.createElement(o);\n m = s.getElementsByTagName(o)[0];\n a.async = 1;\n a.src = g;\n m.parentNode.insertBefore(a, m);\n }(window, document, 'script', voyadoScript, 'va'));\n\n va('setTenant', voyadoTenant);\n\n document.dispatchEvent(\n new CustomEvent(VOYADO_SCRIPT_LOADED)\n );\n }\n }\n});\n\n// On document ready event trigger.\n$(document).ready(() => {\n let executedFlag = false;\n const loadModules = () => {\n if (!executedFlag) {\n executedFlag = true;\n modules();\n }\n };\n FeatureFlagProvider.getCallbacks().forEach(callback => callback(loadModules));\n loadModules(); // Load modules if that was not triggered earlier.\n\n if ($('.footer').attr('data-symplify-enabled') === 'true') {\n setTimeout(() => {\n // Call Symplify endpoint to extent Symplify cookie's expiration date\n $.ajax({\n url: $('.footer').attr('data-symplify-url'),\n method: 'POST'\n });\n }, '500');\n }\n\n $(document).trigger('cookie:update');\n\n // Images lazy load\n const mo = new MutationObserver(() => {\n if ($('img.lazy-loading').length) {\n const img = document.querySelectorAll('img.lazy-loading');\n const appearOptions = {\n threshold: 0\n };\n\n const io = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (!entry.isIntersecting) return;\n entry.target.src = entry.target.attributes['data-src'] ? entry.target.attributes['data-src'].value : entry.target.src;\n entry.target.classList.remove('lazy-loading');\n entry.target.classList.add('lazy-loaded');\n io.unobserve(entry.target);\n });\n }, appearOptions);\n\n img.forEach(el => {\n io.observe(el);\n });\n }\n });\n\n mo.observe(document.querySelector('body'), {\n childList: true,\n subtree: true\n });\n});\n","'use strict';\n\n// #SFRA_SYNCED\n// Selective SFRA updated. Script has differences #CDIFF BS <> GG <> PF <> SN <> FM\n// Current version is BS-based with delta sync from other site-specific versions.\n\nvar base = require('base/product/base');\nvar klarnaInstantShopping = require('theme/js/product/klarna/instantShopping');\nvar focusHelper = require('theme/js/components/focus');\n\nimport FeatureFlagProvider from 'shared/js/featureFlagRegistrar';\nimport { addQueryToUrl } from 'shared/js/url';\nimport { aggregateFlagsOnNode } from 'shared/js/dom';\nimport { VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION } from 'shared/js/voyadoAnalyticsLoader';\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').data('pid');\n } else if ($('.product-tile').length) {\n pid = $($el).closest('.product-tile-add-to-cart').find('.product-tile-buy').data('pid');\n } else if ($('.product-set-detail').length || $('.product-set').length) {\n pid = $($el).closest('.product-detail').find('.product-id').text();\n }\n\n if ($('.add-to-cart').parent().hasClass('donations-add-to-cart') && !pid && $el && $el.length) {\n pid = $el.data('pid');\n }\n\n\n if (!pid) {\n pid = $('.product-detail:not(\".bundle-item\")').data('pid');\n }\n\n return pid;\n}\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 var quantitySelected;\n if ($el && $('.set-items').length) {\n quantitySelected = $($el).closest('.product-detail').find('.quantity-select');\n } else if ($el && $('.product-bundle').length) {\n var quantitySelectedModal = $($el).closest('.modal-footer').find('.quantity-select');\n var quantitySelectedPDP = $($el).closest('.bundle-footer').find('.quantity-select');\n if (quantitySelectedModal.val() === undefined) {\n quantitySelected = quantitySelectedPDP;\n } else {\n quantitySelected = quantitySelectedModal;\n }\n } else {\n // There are 2x QTY fields at least on PDP (product details & mini-cart).\n // Firstly find the nearest QTY field, since could be incorrectly resolved QTY field\n // from mini-cart.\n quantitySelected = $($el).siblings('.quantity-select');\n if (!quantitySelected.length) {\n quantitySelected = $($el).closest('.product-detail').find('.quantity-select');\n }\n }\n return quantitySelected;\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 if ($el && $el.data('quantity')) {\n return parseInt($el.data('quantity'), 10);\n } else if (getQuantitySelector($el).val()) {\n return getQuantitySelector($el).val();\n }\n\n return 1;\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 var $html = $('
      ').append($.parseHTML(html));\n\n var body = $html.find('.choice-of-bonus-product');\n var footer = $html.find('.modal-footer').children();\n\n return { body: body, footer: footer };\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 attr.values.forEach(function (attrValue) {\n // master version: var $attrValue = $productContainer.find('.variation-dropdown [data-attr-value=\"' + attrValue.value + '\"]');\n var $attrValue = $productContainer.find('[data-attr=\"' + attr.id + '\"] [data-attr-value=\"' +\n attrValue.value + '\"]');\n\n var $swatchButton = $attrValue.parent();\n\n if (attrValue.selected) {\n $attrValue.addClass('selected');\n // master version: $productContainer.find('.variation-dropdown .dropdown-header .title .attr').text(attrValue.displayValue\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 if (attrValue.url) {\n $swatchButton.attr('data-url', attrValue.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 // Modified version of #SFRA v6 code #CDIFF incompatible #DONE\n // Is left for historical reference purpose & in case of usage for further SFRA upgrade(s).\n // It is not compatible with custom \"processNonSwatchValues\" implementation, which is preserved.\n // -- start --\n // var $attr = `.variation-span.${attr.id}-value`;\n // var $defaultOption = $productContainer.find(`.variation-dropdown.variation-${attr.displayName} ${$attr}`).first();\n // $defaultOption.attr('value', attr.resetUrl);\n //\n // attr.values.forEach(function (attrValue) {\n // var $attrValue = $productContainer\n // .find($attr + '[data-attr-value=\"' + attrValue.value + '\"]');\n // $attrValue.attr('value', attrValue.url)\n // .removeAttr('disabled');\n //\n // if (!attrValue.selectable) {\n // $attrValue.attr('disabled', true);\n // }\n // });\n // -- end --\n\n attr.values.forEach(function (attrValue) {\n var $attrValue = $productContainer.find('.variation-dropdown [data-attr-value=\"' +\n attrValue.value + '\"]');\n\n var $swatchButton = $attrValue.parent();\n\n if (attrValue.selected) {\n $attrValue.addClass('selected');\n $productContainer.find('.variation-dropdown .dropdown-header .title .attr').text(attrValue.displayValue);\n } else {\n $attrValue.removeClass('selected');\n }\n\n if (attrValue.url) {\n $swatchButton.attr('data-url', attrValue.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 * 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 availabilityStatus = response.product.availability.status;\n var availabilityMessage = response.product.availability.statusLabel;\n var availabilityCheckmark = '';\n\n if (FeatureFlagProvider.isSite('PF') || FeatureFlagProvider.isSite('BM')) {\n availabilityCheckmark = ' ';\n }\n\n switch (availabilityStatus) {\n case 'LOW STOCK':\n availabilityValue = '
      ' + availabilityMessage + '
      ';\n break;\n case 'IN STOCK':\n availabilityValue = '
      ' + availabilityCheckmark + availabilityMessage + '
      ';\n break;\n case 'OUT OF STOCK':\n availabilityValue = '
      ' + availabilityMessage + '
      ';\n break;\n default:\n break;\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 * 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 handleOutOfStock(response, $productContainer) {\n var quantityInput = $productContainer.find('.quantity-select');\n var addToCart = $productContainer.find('.add-to-cart');\n var notifyMe = $productContainer.find('.notify-me');\n var noInventory = $productContainer.find('.variation-dropdown .dropdown-header .title .no-inventory');\n var variationDropdownRectangle = $productContainer.find('.variation-dropdown-rectangle');\n\n if (response.product.availability.status == 'OUT OF STOCK') {\n addToCart.addClass('hide');\n notifyMe.removeClass('hide');\n noInventory.removeClass('hide');\n variationDropdownRectangle.addClass('greyed-out');\n quantityInput.val('-');\n quantityInput.disabled = true;\n quantityInput.siblings('.increase-quantity').addClass('icon--disabled');\n quantityInput.siblings('.decrease-quantity').addClass('icon--disabled');\n } else {\n addToCart.removeClass('hide');\n notifyMe.addClass('hide');\n noInventory.addClass('hide');\n variationDropdownRectangle.removeClass('greyed-out');\n quantityInput.val(1);\n quantityInput.disabled = false;\n quantityInput.siblings('.increase-quantity').removeClass('icon--disabled');\n quantityInput.siblings('.decrease-quantity').addClass('icon--disabled');\n }\n}\n\n/**\n * Generates html for promotions section\n *\n * @param {array} promotions - list of promotions\n * @return {string} - Compiled HTML\n */\n// SFRA 6 update - adjustments required.\nfunction getPromotionsHtml(product) { // eslint-disable-line no-unused-vars\n var html = '';\n if (product.custom.callOutMsgs && product.custom.callOutMsgs.length > 0) {\n for (var i = 0; i < product.custom.callOutMsgs.length; i++) {\n var calloutMsg = product.custom.callOutMsgs[i];\n\n switch (calloutMsg.type) {\n case 'topSeller':\n html += '
      ';\n html += '' + calloutMsg.callOut + '
      ';\n break;\n case 'newBadge':\n html += '
      ';\n html += '' + calloutMsg.callOut + '
      ';\n break;\n case 'customMsg':\n html += '
      ';\n html += '' + calloutMsg.callOut + '
      ';\n break;\n case 'voyadopromotion':\n html += '
      ';\n html += '' + calloutMsg.callOut + '
      ';\n break;\n case 'extra':\n html += `
      `;\n html += '' + calloutMsg.callOut + '
      ';\n break;\n default:\n html += '
      ' + calloutMsg.callOut +\n '
      ';\n break;\n }\n }\n }\n\n return html;\n}\n\n/**\n * Generates html for wishlist button\n *\n * @param {array} response - Ajax response object after an\n * attribute value has been [de]selected\n * @return {string} - Compiled HTML\n */\nfunction getWishListButtonHtml(response) {\n let html;\n if (response.isLoggedIn) {\n html = `
      `;\n }\n\n return html;\n}\n\n/**\n * Generates html for promotions section\n *\n * @param {array} promotions - list of promotions\n * @return {string} - Compiled HTML\n */\nfunction handlePromotionBoxOrDisclaimer(promotions, availability) {\n if (availability == 'OUT OF STOCK') {\n $('.product-outofstock-disclaimer').removeClass('hide');\n // #CDIFF #DONE\n // Across project are used two options - either .. or:\n // * version - next: $('.promotion-box').addClass('hidden');\n // SN version - next: $('.product-promotion-boxes').addClass('hide');\n if (FeatureFlagProvider.isSite('SN')) {\n $('.promotion-box').addClass('hidden');\n } else {\n $('.product-promotion-boxes').addClass('hide');\n }\n } else {\n $('.product-outofstock-disclaimer').addClass('hide');\n // Across project are used two options - either .. or:\n // SN, GG, FM version\n if (FeatureFlagProvider.isSite('SN')) {\n $('.product-promotion-boxes').removeClass('hide');\n } else {\n // Others - the next:\n $('.promotion-box').removeClass('hidden');\n }\n if (!promotions) {\n return '';\n }\n\n var html = '';\n\n promotions.forEach(function (promotion) {\n html += promotion.details;\n });\n\n var productDisclaimers = $('.product-disclaimers');\n var productDisclaimersDetails = $('.promotion-details');\n\n productDisclaimers.children('.product-promotion-boxes').remove();\n productDisclaimersDetails.find('.promotion-box').remove();\n productDisclaimersDetails.html(html);\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 += '
      ' + attribute.label + ': '\n + attribute.value + '
      ';\n });\n }\n });\n\n return html;\n}\n\n/**\n * @typedef UpdatedOptionValue\n * @type Object\n * @property {string} id - Option value ID for look up\n * @property {string} url - Updated option value selection URL\n */\n\n/**\n * @typedef OptionSelectionResponse\n * @type Object\n * @property {string} priceHtml - Updated price HTML code\n * @property {Object} options - Updated Options\n * @property {string} options.id - Option ID\n * @property {UpdatedOptionValue[]} options.values - Option values\n */\n\n/**\n * Updates DOM using post-option selection Ajax response\n *\n * @param {OptionSelectionResponse} optionsHtml - Ajax response optionsHtml from selecting a product option\n * @param {jQuery} $productContainer - DOM element for current product\n */\nfunction updateOptions(optionsHtml, $productContainer) {\n // Update options\n $productContainer.find('.product-options').empty().html(optionsHtml);\n}\n\n/**\n * Dynamically creates Bootstrap carousel from response containing images\n * @param {Object[]} imgs - Array of large product images,along with related information\n * @param {jQuery} $productContainer - DOM element for a given product\n */\nfunction createCarousel(imgs, $productContainer) {\n var carousel = $productContainer.find('.carousel');\n $(carousel).carousel('dispose');\n var carouselId = $(carousel).attr('id');\n $(carousel).empty().append('
        ' + $(carousel).data('prev') + '' + $(carousel).data('next') + '');\n for (var i = 0; i < imgs.length; i++) {\n $('
        \"'
        ').appendTo($(carousel).find('.carousel-inner'));\n $('
      1. ').appendTo($(carousel).find('.carousel-indicators'));\n }\n $($(carousel).find('.carousel-item')).first().addClass('active');\n $($(carousel).find('.carousel-indicators > li')).first().addClass('active');\n if (imgs.length === 1) {\n $($(carousel).find('.carousel-indicators, a[class^=\"carousel-control-\"]')).detach();\n }\n $(carousel).carousel();\n $($(carousel).find('.carousel-indicators')).attr('aria-hidden', true);\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 =\n $productContainer.parents('.choose-bonus-product-dialog').length > 0;\n var isVaraint;\n var isSetItem = $productContainer.hasClass('set-item');\n var quickview = $('.quickview-modal').hasClass('show');\n if (quickview) {\n $productContainer = $('.quickview-modal .product-detail');\n }\n if (response.product.variationAttributes) {\n updateAttrs(response.product.variationAttributes, $productContainer, response.resources);\n isVaraint = response.product.productType === 'variant';\n if (isChoiceOfBonusProducts && isVaraint) {\n $productContainer.parent('.bonus-product-item')\n .data('pid', response.product.id);\n\n $productContainer.parent('.bonus-product-item')\n .data('ready-to-order', response.product.readyToOrder);\n }\n }\n\n // Update product flavor\n if (quickview) {\n $('.quickview-modal .product-flavor').html(' ' + response.product.custom.flavorName);\n } else {\n $('.product-flavor').html(' ' + response.product.custom.flavorName);\n }\n\n // Update primary images\n var primaryImageUrls = response.product.images.large;\n createCarousel(primaryImageUrls, $productContainer);\n\n window.dataLayer.push(response.dataLayerView[0]);\n\n // Update pricing\n if (!isChoiceOfBonusProducts) {\n var $priceSelector = $('.prices .price', $productContainer).length\n ? $('.prices .price', $productContainer)\n : $('.prices .price');\n $priceSelector.replaceWith(response.product.price.html);\n }\n\n if (isSetItem) {\n // Update Product Set Item Image\n var setItemImage = response.product.images.setItemImageHtml;\n $productContainer.find('.set-item__image')\n .empty()\n .html(setItemImage);\n\n // Update Product Set Item ID\n $productContainer.attr('data-pid', response.product.id);\n } else {\n // Update Images Carousel\n\n var imageCarouselMobile = response.product.images.carouselHtml;\n var imageCarouselDesktop = response.product.images.carouselHtmlDesktop;\n\n if (quickview) {\n $('.quickview-modal .product-images.desktop').empty().html(imageCarouselDesktop);\n\n $('.quickview-modal .slick-product-carousel.desktop').slick({\n infinite: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n // Across project are used two options - either .. or:\n // SN, GG version\n // #CDIFF #TBD\n // prevArrow: \"\", // #CDIFF #DONE\n prevArrow:\n FeatureFlagProvider.isSite('BS', 'PF', 'FM')\n ? \"\"\n : \"\", // #CDIFF #DONE\n // SN, GG version\n // nextArrow: \"\", // #CDIFF #DONE\n nextArrow:\n FeatureFlagProvider.isSite('BS', 'PF', 'FM')\n ? \"\"\n : \"\", // #CDIFF #DONE\n });\n } else {\n $('.product-images.mobile').empty().html(imageCarouselMobile);\n $('.product-images.desktop').empty().html(imageCarouselDesktop);\n\n $('.slick-product-carousel.mobile').slick({\n infinite: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n // Across project are used two options - either .. or:\n // SN, GG version\n // #CDIFF #TBD\n // prevArrow: \"\", // #CDIFF #DONE\n prevArrow:\n FeatureFlagProvider.isSite('BS', 'PF', 'FM')\n ? \"\"\n : \"\", // #CDIFF #DONE\n // SN, GG version\n // nextArrow: \"\", // #CDIFF #DONE\n nextArrow:\n FeatureFlagProvider.isSite('BS', 'PF', 'FM')\n ? \"\"\n : \"\", // #CDIFF #DONE\n dots: true\n });\n\n $('.slick-product-carousel.desktop').slick({\n infinite: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n // Across project are used two options - either .. or:\n // SN, GG version\n // #CDIFF #TBD\n // prevArrow: \"\", // #CDIFF #DONE\n prevArrow:\n FeatureFlagProvider.isSite('BS', 'PF', 'FM')\n ? \"\"\n : \"\", // #CDIFF #DONE\n // SN, GG version\n // nextArrow: \"\", // #CDIFF #DONE\n nextArrow:\n FeatureFlagProvider.isSite('BS', 'PF', 'FM')\n ? \"\"\n : \"\", // #CDIFF #DONE\n });\n }\n\n $('.product-swatch-images .swatch').click(function () {\n if (!$(this).hasClass('active')) {\n $(this).siblings('.active').removeClass('active');\n $(this).addClass('active');\n\n $('.slick-product-carousel.desktop').slick('slickGoTo', ($(this).index()), true);\n }\n });\n\n $('.slick-product-carousel.desktop').on('beforeChange', function (event, slick, currentSlide, nextSlide) {\n var productSwatchImages = $('.product-swatch-images .swatch');\n productSwatchImages.siblings('.active').removeClass('active');\n productSwatchImages.eq(nextSlide).addClass('active');\n });\n }\n\n // Update promotions\n // #CDIFF #DONE SN uses selector:\n if (FeatureFlagProvider.isSite('SN')) {\n var promotionWrapper = $('.product-top-content').find('.promotion-wrapper');\n promotionWrapper.empty().html(getPromotionsHtml(response.product));\n } else {\n // #CDIFF #MONITOR - vanilla variant: .html(response.product.promotionsHtml)\n // eslint-disable-next-line no-lonely-if\n if (quickview) {\n $('.quickview-modal .product-images .promotion-wrapper .promotions-right').empty().html(getPromotionsHtml(response.product));\n } else {\n $('.product-images .promotion-wrapper .promotions-right').empty().html(getPromotionsHtml(response.product));\n }\n }\n handlePromotionBoxOrDisclaimer(response.product.promotions, response.product.availability.status);\n\n updateAvailability(response, $productContainer);\n\n handleOutOfStock(response, $productContainer);\n\n if (isChoiceOfBonusProducts) {\n var $selectButton = $productContainer.find('.select-bonus-product');\n $selectButton.trigger('bonusproduct:updateSelectButton', {\n product: response.product, $productContainer: $productContainer\n });\n } else {\n // Enable \"Add to Cart\" button if all required attributes have been selected\n $('button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global').trigger('product:updateAddToCart', {\n product: response.product, $productContainer: $productContainer\n }).trigger('product:statusUpdate', response.product);\n }\n\n // Update attributes\n $productContainer.find('.main-attributes').empty()\n .html(getAttributesHtml(response.product.attributes));\n\n // Update nutrition and ingredients\n if (quickview) {\n $('.quickview-modal .product-short-description').empty().html(response.product.shortDescription);\n } else {\n $('.nutrition-and-ingredients').empty().html(response.product.custom.nutritionAndIngredients);\n $('.long-description').empty().html(response.product.longDescription);\n $('.product-short-description').empty().html(response.product.shortDescription);\n }\n // #CDIFF #DONE The next fragment is not present in SN:\n // -- start\n // Preserved code fragment from the legacy storefront code.\n if (response.product.isNewBadge) {\n var newBadgeWrapper;\n if (FeatureFlagProvider.isSite('PF')) {\n // #CDIFF #DONE PF has next alt version:\n newBadgeWrapper = '
        ' + response.product.isNewBadgeLabel + '
        ';\n $('.product-images .promotion-wrapper').append(newBadgeWrapper);\n } else {\n newBadgeWrapper = '
        ' + response.product.isNewBadgeLabel + '
        ';\n $('.product-images .promotions-right').append(newBadgeWrapper);\n }\n }\n // #CDIFF GMF #DONE\n if (FeatureFlagProvider.get('integration.gmf.active') && !quickview) {\n $('.item.reviews span').empty().html('
        ');\n $('.description-and-detail').empty().html('
        ');\n }\n\n if (quickview) {\n $('.quickview-modal .ean-code').html(response.product.EAN);\n $('.quickview-modal .promotion-box-tile').removeClass('active');\n $('.quickview-modal .promotion-box-tiles > .promotion-box-tile:nth-child(1)').addClass('active');\n } else {\n $('.ean-code').html(response.product.EAN);\n $('.promotion-box-tile').removeClass('active');\n $('.promotion-box-tiles > .promotion-box-tile:nth-child(1)').addClass('active');\n }\n // -- end\n\n var parentElement;\n if (quickview) {\n parentElement = $('.quickview-modal-content');\n } else {\n parentElement = $('.quantity-and-add-to-cart');\n }\n\n var trackingPayload = parentElement ? parentElement.find('button.add-to-cart')[0] : undefined;\n var trackingEventPayload = trackingPayload ? JSON.parse(trackingPayload.dataset.trackingEventPayload) : undefined;\n if (trackingEventPayload) {\n trackingEventPayload.add.products[0].id = response.product.id;\n trackingEventPayload.add.products[0].name = response.product.productName;\n trackingEventPayload.add.products[0].variant = response.product.custom.flavorName;\n trackingPayload.dataset.trackingEventPayload = JSON.stringify(trackingEventPayload);\n }\n}\n\n/**\n * Updates the quantity DOM elements post Ajax call\n * @param {string} quantityHtml - The innerHTML to be used to update the quantity elements\n * @param {jQuery} $productContainer - The container for the product\n */\nfunction updateQuantities(quantityHtml, $productContainer) {\n if ($productContainer.parent('.bonus-product-item').length <= 0) {\n $('.quantity-and-add-to-cart .attribute').empty().html(quantityHtml);\n }\n}\n\n/**\n * Updates the visibility of the quantity callout based on the minOrderQuantity.\n * @param {number} minOrderQuantity - The minimum order quantity for the product.\n */\nfunction updateCallouts(minOrderQuantity) {\n var quantityCallout = $('[data-quantity-callout]').first();\n if (quantityCallout && minOrderQuantity && minOrderQuantity <= 1) {\n quantityCallout.addClass('hide');\n } else {\n quantityCallout.removeClass('hide');\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 */\nfunction attributeSelect(selectedValueUrl, $productContainer) {\n if (selectedValueUrl) {\n $.ajax({\n url: selectedValueUrl,\n method: 'GET',\n success: function (data) {\n handleVariantResponse(data, $productContainer);\n updateOptions(data.product.optionsHtml, $productContainer);\n updateQuantities(data.quantityHtml, $productContainer);\n updateCallouts(parseInt(data.product.minOrderQuantity, 10));\n $('.product-outofstock-popup-pid-form-input').val(data.product.id);\n $('body').trigger('product:afterAttributeSelect',\n { data: data, container: $productContainer });\n // #CDIFF #DONE Klarna integration point\n // The next fragment is not present in SN\n // -- start\n if (FeatureFlagProvider.get('checkout.klarna.active')\n && FeatureFlagProvider.get('checkout.klarna.instantshopping.active')) {\n klarnaInstantShopping.init();\n klarnaInstantShopping.update(data);\n }\n // -- end\n\n var isQuickView = $('#quickViewModal').is(':visible');\n var categoryNameSelector = isQuickView ? '#quickViewModal .breadcrumb' : '.breadcrumb';\n document.dispatchEvent(\n new CustomEvent(VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION, {\n detail: {\n categoryName: $(categoryNameSelector).text().replace(/\\n/g, '').replace(/\\s+/g, ' ').trim(),\n itemId: data.product.id,\n locale: window.currentLocale,\n contactId: $('[data-voyado-contact-id]').data('voyado-contact-id')\n }\n })\n );\n $.spinner().stop();\n window.setWishlistState && window.setWishlistState(data.product.id);\n },\n error: function () {\n $.spinner().stop();\n }\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 * 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 */\nfunction chooseBonusProducts(data) {\n $('.modal-body').spinner().start();\n\n if ($('#chooseBonusProductModal').length !== 0) {\n $('#chooseBonusProductModal').remove();\n }\n var bonusUrl;\n if (data.bonusChoiceRuleBased) {\n bonusUrl = data.showProductsUrlRuleBased;\n } else {\n bonusUrl = data.showProductsUrlListBased;\n }\n\n var htmlString = ''\n + '
        '\n + ''\n + '
        '\n + ''\n + '
        '\n + '
        '\n + ' ' + data.labels.selectprods + ''\n + ' '\n + '
        '\n + '
        '\n + ''\n + '
        '\n + '
        '\n + '
        ';\n $('body').append(htmlString);\n $('.modal-body').spinner().start();\n\n $.ajax({\n url: bonusUrl,\n method: 'GET',\n dataType: 'json',\n success: function (response) {\n var parsedHtml = parseHtml(response.renderedTemplate);\n $('#chooseBonusProductModal .modal-body').empty();\n $('#chooseBonusProductModal .enter-message').text(response.enterDialogMessage);\n $('#chooseBonusProductModal .modal-header .close .sr-only').text(response.closeButtonText);\n $('#chooseBonusProductModal .modal-body').html(parsedHtml.body);\n $('#chooseBonusProductModal .modal-footer').html(parsedHtml.footer);\n $('#chooseBonusProductModal').modal('show');\n $.spinner().stop();\n },\n error: function () {\n $.spinner().stop();\n }\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 // show add to cart toast\n if (response.newBonusDiscountLineItem\n && Object.keys(response.newBonusDiscountLineItem).length !== 0) {\n chooseBonusProducts(response.newBonusDiscountLineItem);\n }\n /**\n Code is not used at the moment. It might be needed in the future\n\n else {\n var messageType = response.error ? 'alert-danger' : 'alert-success';\n\n if ($('.add-to-cart-messages').length === 0) {\n $('body').append(\n '
        '\n );\n }\n\n $('.add-to-cart-messages').append(\n '
        '\n + response.message\n + '
        '\n );\n\n setTimeout(function () {\n $('.add-to-basket-alert').remove();\n }, 5000);\n }\n */\n}\n\nbase.methods.getOptions = getOptions;\n\nfunction selectBonusProduct() {\n $(document).on('click', '.select-bonus-product', function () {\n var $choiceOfBonusProduct = $(this).parents('.choice-of-bonus-product');\n var pid = $(this).attr('data-pid');\n var maxPids = $('.choose-bonus-product-dialog').data('total-qty');\n var submittedQty = parseInt($(this).parents('.choice-of-bonus-product').find('.bonus-quantity-select').val(), 10);\n var totalQty = 0;\n $.each($('#chooseBonusProductModal .selected-bonus-products .selected-pid'), function () {\n totalQty += $(this).data('qty');\n });\n totalQty += submittedQty;\n var optionID = $(this).parents('.choice-of-bonus-product').find('.product-option').data('option-id');\n var valueId = $(this).parents('.choice-of-bonus-product').find('.options-select option:selected').data('valueId');\n\n if (totalQty <= maxPids) {\n /** Set the bonus product chosen variant */\n var variantName = $choiceOfBonusProduct.find('option:selected').attr('data-attr-value');\n $('.choose-bonus-product-modal-body').attr('data-chosen-bonus-product-name', variantName);\n\n var selectedBonusProductHtml = ''\n + '
        '\n + '
        '\n + $choiceOfBonusProduct.find('.product-name').html() + ' ' + $('.choose-bonus-product-modal-body').attr('data-chosen-bonus-product-name')\n + '
        '\n + '
        '\n + '
        '\n ;\n $('#chooseBonusProductModal .selected-bonus-products').append(selectedBonusProductHtml);\n $('.pre-cart-products').html(totalQty);\n $('.selected-bonus-products .bonus-summary').removeClass('alert-danger');\n } else {\n $('.selected-bonus-products .bonus-summary').addClass('alert-danger');\n }\n });\n}\n\nfunction selectBonusProductAttribute() { // eslint-disable-line no-unused-vars\n $('body').on('shown.bs.modal', '#chooseBonusProductModal', function () {\n $(document).on('change', '.bonusSelect', function (e) {\n e.preventDefault();\n $('.select-bonus-product').attr('disabled', 'disabled');\n $(this).attr('selected');\n var $productContainer = $(this).parents('.bonus-product-item');\n var url = $(this).val();\n\n $.ajax({\n url: url,\n method: 'GET',\n success: function (data) {\n if (data.product) {\n /** Update Variant Image In Modal */\n var variantBonusProductImg = data.product.images.hiRes[0].url;\n $productContainer.find('.carousel-item img').attr('src', variantBonusProductImg);\n\n /** Update Variant Id in the selected PID Row to add the correfct variant to as a bonus to the cart */\n var pid = data.product.id;\n $('.choose-bonus-product-modal-body').attr('data-chosen-bonus-product-variant', pid);\n $productContainer.find('.select-bonus-product').attr('data-pid', pid);\n }\n\n $.spinner().stop();\n $('.select-bonus-product').removeAttr('disabled');\n },\n error: function () {\n $.spinner().stop();\n $('.select-bonus-product').removeAttr('disabled');\n }\n });\n });\n });\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 + '\"]')\n .data('value-id');\n return {\n optionId: $(this).data('option-id'),\n selectedValueId: selectedValueId\n };\n }).toArray();\n\n return JSON.stringify(options);\n}\n\n/**\n * Makes a call to the server to report the event of adding an item to the cart\n *\n * @param {string | boolean} url - a string representing the end point to hit so that the event can be recorded, or false\n */\nfunction miniCartReportingUrl(url) {\n if (url) {\n $.ajax({\n url: url,\n method: 'GET',\n success: function () {\n // reporting urls hit on the server\n },\n error: function () {\n // no reporting urls hit on the server\n }\n });\n }\n}\n\nmodule.exports = {\n ...base,\n attributeSelect: attributeSelect,\n\n\n focusChooseBonusProductModal: function () {\n $('body').on('shown.bs.modal', '#chooseBonusProductModal', function () {\n $('#chooseBonusProductModal').siblings().attr('aria-hidden', 'true');\n $('#chooseBonusProductModal .close').focus();\n });\n },\n\n onClosingChooseBonusProductModal: function () {\n $('body').on('hidden.bs.modal', '#chooseBonusProductModal', function () {\n $('#chooseBonusProductModal').siblings().attr('aria-hidden', 'false');\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 // #CDIFF GG <> BS - however in newer code version - only one variant is used #DONE\n // Different across project, alt option (like in GG)\n // Alt: $(document).on('click', '[data-attr=\"color\"] button', function (e) {\n $(document).on('click', '.variation-dropdown .variation-item', function (e) {\n e.preventDefault();\n\n // Symplify script checking every variation change\n if (typeof symplify !== 'undefined') {\n symplify.newPage();\n } else {\n document.addEventListener('symplify-loaded', function () {\n symplify.newPage();\n });\n }\n\n $(this).closest('.dropdown').removeClass('active');\n\n if ($(this).attr('disabled') || $(this).children('.selected').length > 0) {\n return;\n }\n\n var $productContainer = $(this).closest('.set-item');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.product-detail');\n }\n\n attributeSelect($(this).attr('data-url'), $productContainer);\n });\n },\n\n selectAttribute: function () {\n $(document).on('change', 'select[class*=\"select-\"], .options-select', function (e) {\n e.preventDefault();\n\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 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'),\n $productContainer);\n }\n });\n },\n\n addToCart: function () {\n // #CDIFF #DONE Different across sites, alt option:\n // $(document).on('click', 'button.add-to-cart, button.add-to-cart-global, .product-link-to-static', function () {\n let selectorButtonAddToCart;\n if (FeatureFlagProvider.isSite('SN')) {\n selectorButtonAddToCart = 'button.add-to-cart, button.add-to-cart-global, .product-link-to-static';\n } else {\n selectorButtonAddToCart = 'button.add-to-cart, button.add-to-cart-global';\n }\n $(document).on('click', selectorButtonAddToCart, function (evt) {\n var addToCartUrl;\n var pid;\n var pidsObj;\n var setPids;\n\n // #TODO FF\n if ($(this).hasClass('donations-button')) {\n $(this).addClass('hide');\n $(this).next().removeClass('hide');\n\n $.spinner().start();\n }\n\n // #CDIFF #TODO SN does not have donation button\n\n if ($('.set-items').length && $(this).hasClass('add-to-cart-global')) {\n setPids = [];\n\n $('.product-detail').each(function () {\n if (!$(this).hasClass('product-set-detail')) {\n setPids.push({\n pid: $(this).find('.product-id').text(),\n qty: $(this).find('.quantity-select').val(),\n options: getOptions($(this))\n });\n }\n });\n\n pidsObj = JSON.stringify(setPids); // #CDIFF BS [<> GG - eq. in newer code version] <> SN #MONITOR\n } else { // Handles custom product sets\n var setProducts = $('.set-product-dropdown .dropdown-header');\n\n if (setProducts && setProducts.length > 0) {\n var setProductObjects = [];\n setProducts.each(function () {\n setProductObjects.push({\n pid: this.dataset.pid,\n quantity: this.dataset.quantity\n });\n });\n\n pidsObj = JSON.stringify(setProductObjects);\n }\n }\n\n pid = getPidValue($(this));\n\n var $productContainer = $(this).closest('.product-detail');\n if (!$productContainer.length) {\n $productContainer = $(this).closest('.quick-view-dialog').find('.product-detail');\n }\n\n addToCartUrl = getAddToCartUrl();\n\n var form = {\n pid: pid,\n pidsObj: pidsObj,\n childProducts: getChildProducts(),\n quantity: getQuantitySelected($(this))\n };\n\n if (!$('.bundle-item').length) {\n form.options = getOptions($productContainer);\n }\n\n $(this).trigger('updateAddToCartFormData', form);\n if (addToCartUrl) {\n $.ajax({\n url: addQueryToUrl(\n addToCartUrl,\n aggregateFlagsOnNode(evt.target || evt.currentTarget)\n ),\n method: 'POST',\n data: form,\n success: function (data) {\n if (data.error) {\n window.MessagesMgr.error(data.errorMessage);\n }\n\n if (data.isOnCheckoutPage) {\n $('body').trigger('cart:update', ['add_to_cart', data.cart]);\n }\n handlePostCartAdd(data);\n $('body').trigger('product:afterAddToCart', data);\n\n if (!FeatureFlagProvider.isSite('SN')) {\n miniCartReportingUrl(data.reportingURL);\n }\n\n // -- start - SN does not have #CDIFF #DONE\n if (!FeatureFlagProvider.isSite('SN')) {\n if (data.quantityTotal > 0) {\n $('.minicart-quantity').removeClass('empty-cart');\n $('.minicart .icon-cart').removeClass('empty-cart-trigger');\n $('.price-header').removeClass('empty-cart');\n }\n }\n\n if (!FeatureFlagProvider.isSite('SN') && !data.error) {\n // #CDIFF Voyado integration #DONE SN does not have it\n document.dispatchEvent(\n new CustomEvent('Voyado-monitor-cart', {\n detail: {\n uuid: data.cart.basketUUID,\n items: data.cart.items,\n locale: data.locale\n }\n })\n );\n }\n },\n error: function () {\n $.spinner().stop();\n }\n }).always(function () {\n $.spinner().stop();\n });\n }\n });\n },\n\n getPidValue: getPidValue,\n getQuantitySelected: getQuantitySelected,\n chooseBonusProducts: chooseBonusProducts,\n selectBonusProduct: selectBonusProduct,\n selectBonusProductAttribute: selectBonusProductAttribute\n};\n\nmodule.exports.methods.editBonusProducts = function (data) {\n chooseBonusProducts(data);\n};\n","'use strict';\n\n// This file is copied from BS, styling flags are adjusted for version from: GG and PF\n\n/* eslint-disable indent */\n\nimport FeatureFlagRegistrar from 'shared/js/featureFlagRegistrar';\n\nmodule.exports = {\n init: function () {\n var self = this;\n // Initiating central urls\n self.containerElement = $('#klarna-instant-shopping-button-widget');\n self.buttonKey = self.containerElement.data('button-key');\n self.environment = self.containerElement.data('environment');\n self.purchaseCountry = self.containerElement.data('purchase-country');\n self.purchaseCurrency = self.containerElement.data('purchase-currency');\n self.locale = self.containerElement.data('locale');\n self.terms = self.containerElement.data('terms');\n self.reference = self.containerElement.data('reference');\n self.name = self.containerElement.data('name');\n self.productURL = self.containerElement.data('product-url');\n self.imageURL = self.containerElement.data('image-url');\n self.unitPrice = self.containerElement.data('unit-price');\n\n return self;\n },\n loadCallback: function () {\n var self = this;\n\n window.klarnaAsyncCallback = function () {\n Klarna.InstantShopping.load({ //eslint-disable-line\n setup: {\n instance_id: 'klarna-pdp-button',\n key: self.buttonKey,\n environment: self.environment,\n region: 'eu'\n },\n purchase_country: self.purchaseCountry,\n purchase_currency: self.purchaseCurrency,\n locale: self.locale,\n merchant_urls: {\n terms: self.terms\n },\n order_lines: [{\n type: 'physical',\n reference: self.reference,\n name: self.name,\n quantity: 1,\n unit_price: parseInt(self.unitPrice),\n tax_rate: 0,\n total_amount: parseInt(self.unitPrice),\n total_discount_amount: 0,\n total_tax_amount: 0,\n product_url: self.productURL,\n image_url: self.imageURL\n }],\n styling: {\n theme: {\n // #CDIFF - #DONE need to be refactored into configurable option\n // - GG: klarna + dark\n // - PF: klarna + dark\n // - BS: light + express\n variation: FeatureFlagRegistrar.get('checkout.klarna.instantshopping.style.variation', 'light'),\n type: FeatureFlagRegistrar.get('checkout.klarna.instantshopping.style.type', 'express')\n }\n }\n }, function (response) {\n console.log('Klarna.InstantShopping.load callback with data:' + JSON.stringify(response)); //eslint-disable-line\n });\n };\n },\n update: function (data) {\n var self = this;\n\n Klarna.InstantShopping.update({ //eslint-disable-line\n setup: {\n instance_id: 'klarna-pdp-button',\n },\n order_lines: [{\n type: 'physical',\n reference: data.product.id,\n name: data.product.productName,\n quantity: 1,\n unit_price: parseInt(data.product.price.sales.value) * 100,\n tax_rate: 0,\n total_amount: parseInt(data.product.price.sales.value) * 100,\n total_discount_amount: 0,\n total_tax_amount: 0,\n product_url: self.productURL,\n image_url: data.product.images.large.length ? data.product.images.large[0].url : null\n }]\n }, function (response) {\n console.log('Klarna.InstantShopping.load callback with data:' + JSON.stringify(response)); //eslint-disable-line\n });\n }\n};\n\nif (!FeatureFlagRegistrar.get('checkout.klarna.active')\n || !FeatureFlagRegistrar.get('checkout.klarna.instantshopping.active')) {\n module.exports = {};\n}\n","'use strict';\n\n// Script has differences #CDIFF #MONITOR BS <> GG <> PF <> SN <> FM\n// Current version is BS-based with delta sync from other site-specific versions.\n// SN app cartridge does not quick view script.\n\nimport FeatureFlagProvider from 'shared/js/featureFlagRegistrar';\n\nvar base = require('theme/js/product/base');\nvar quickView = require('base/product/quickView');\n\n\nimport FeatureFlagRegistrar from 'shared/js/featureFlagRegistrar';\nimport { VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION } from 'shared/js/voyadoAnalyticsLoader';\n\n// The next two functions:\n// - showPreMinicartBox\n// - showCartItemsHeader\n// are migrated from ./detail.js for \"updateQuantity\" and \"showPreMinicart\", see those functions for more info.\nfunction showPreMinicartBox(response) {\n $('.header').removeClass('scroll-down');\n $('.cart-box-items').empty();\n $('.cart-box-free-delivery-msg').empty();\n\n var $show = $('.added-to-cart-box').show();\n setTimeout(function () {\n $show.hide();\n }, 3000);\n $('.minicart .minicart-quantity').html(response.quantityTotal);\n response.cart.items.forEach(function (items) {\n if (response.pid == items.id) {\n $('.cart-box-items').append('
        '\n + '
        '\n + '
        '\n + ''\n + items.productName\n + ''\n + '' + response.addToCartMsg\n + ''\n + '
        '\n + '
        ');\n }\n });\n\n // #CDIFF #DONE BS <> SN\n // SN does not have giftCertificateLineItemInCart & isFreeDeliveryEnabled check\n if (!FeatureFlagRegistrar.isSite('SN')) {\n if (response.isFreeDeliveryEnabled == 'true' && !response.giftCertificateLineItemInCart) {\n if (response.leftToFreeDelivery > 0) {\n $('.cart-box-free-delivery-msg').append('
        '\n + '' + response.freeDeliveryMsg + ''\n + '
        ');\n } else {\n $('.cart-box-free-delivery-msg').append('
        '\n + '
        '\n + '' + response.freeDeliveryMsg + ''\n + '
        ');\n }\n }\n }\n\n if (response.cart.hasBonusProduct || response.displayBonusProductMessage) {\n $('.msg-bonus-product').show();\n }\n}\n\n/**\n * Updates the small box to show what is added to minicart after the customer has pressed the \"Add to Cart\" button\n * @param {string} response - ajax response from clicking the add to cart button\n */\n\nfunction showCartItemsHeader() {\n $('.minicart-quantity').removeClass('empty-cart');\n $('.minicart .icon-cart').removeClass('empty-cart-trigger');\n $('.price-header').removeClass('empty-cart');\n}\n\n/**\n * Generates the modal window on the first call.\n *\n */\nfunction getModalHtmlElement() {\n if ($('#quickViewModal').length !== 0) {\n $('#quickViewModal').remove();\n }\n var htmlString = ''\n + '
        '\n + '
        '\n + ''\n + '
        '\n + '
        '\n + ''\n + '
        '\n + '
        '\n + '
        '\n + '
        '\n + '
        ';\n $('body').append(htmlString);\n}\n\n/**\n * Parse HTML code in Ajax response\n *\n * @param {string} html - Rendered HTML from quickview template\n * @return {QuickViewHtml} - QuickView content components\n */\nfunction parseHtml(html) {\n var $html = $('
        ').append($.parseHTML(html));\n\n var body = $html.find('.product-quickview');\n\n return { body: body };\n}\n\n/**\n * Init product carousel in quick view modal\n */\nfunction initProductCarousel() {\n $('.slick-product-carousel.desktop').slick({\n infinite: true,\n slidesToShow: 1,\n slidesToScroll: 1,\n // Icons are preserved as they were before fix in SFCC-1764.\n // However, in product/base.js the same icon class is used also for BS and PF.\n prevArrow:\n FeatureFlagProvider.isSite('FM')\n ? \"\"\n : \"\",\n nextArrow:\n FeatureFlagProvider.isSite('FM')\n ? \"\"\n : \"\",\n });\n\n $('.product-swatch-images .swatch').click(function () {\n if (!$(this).hasClass('active')) {\n $(this).siblings('.active').removeClass('active');\n $(this).addClass('active');\n\n $('.slick-product-carousel.desktop').slick('slickGoTo', ($(this).index()), true);\n }\n });\n\n $('.slick-product-carousel.desktop').on('beforeChange', function (event, slick, currentSlide, nextSlide) {\n var productSwatchImages = $('.product-swatch-images .swatch');\n productSwatchImages.siblings('.active').removeClass('active');\n productSwatchImages.eq(nextSlide).addClass('active');\n });\n}\n\n/**\n * Render Content Assets in Quick View\n */\nfunction renderPdpContentAssets() {\n var productUsps = $('#product-usps').html(),\n pdpOutOfStockPopupConsent = $('#PDP-out-of-stock-popup-consent').html(),\n pdpOutOfStockDisclaimer = $('#PDP-out-of-stock-disclaimer').html();\n\n $('#quickViewModal .product-usps-container').html(productUsps);\n $('#quickViewModal .PDP-out-of-stock-popup-consent-asset').html(pdpOutOfStockPopupConsent);\n $('#quickViewModal .product-outofstock-disclaimer').html(pdpOutOfStockDisclaimer);\n}\n\nfunction togglePopup() {\n $('.product-outofstock-popup-close, .product-outofstock-popup-cancel').click(function (e) {\n e.preventDefault();\n $('.product-outofstock-popup__container').addClass('hide');\n });\n\n $('button.notify-me').click(function () {\n $('.product-outofstock-popup__container').removeClass('hide');\n });\n}\n\n/**\n * replaces the content in the modal window on for the selected product variation.\n * @param {string} selectedValueUrl - url to be used to retrieve a new product model\n */\nfunction fillModalElement(selectedValueUrl) {\n $.ajax({\n url: selectedValueUrl,\n method: 'GET',\n dataType: 'json',\n success: function (data) {\n var parsedHtml = parseHtml(data.renderedTemplate);\n $('#quickViewModal .modal-body').empty();\n $('#quickViewModal .modal-body').html(parsedHtml.body);\n $('#quickViewModal .quickview.read-more, #quickViewModal .quickview-modal-product-name').attr('href', data.productUrl);\n $('#quickViewModal .quickview.read-more').on('click', function (e) {\n e.stopPropagation();\n });\n $('#quickViewModal .size-chart').attr('href', data.productUrl);\n $('#quickViewModal').modal('show');\n renderPdpContentAssets();\n togglePopup();\n\n document.dispatchEvent(\n new CustomEvent(VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION, {\n detail: {\n categoryName: $('#quickViewModal .breadcrumb').text().replace(/\\n/g, '').replace(/\\s+/g, ' ').trim(),\n itemId: $('#quickViewModal #product-detail').data('pid'),\n locale: window.currentLocale,\n contactId: $('[data-voyado-contact-id]').data('voyado-contact-id')\n }\n })\n );\n\n initProductCarousel();\n window.setWishlistState && window.setWishlistState(data.product.id);\n }\n });\n}\n\nfunction showAfterSubmitPopup() {\n $('.product-outofstock-popup-before-submit').addClass('hide');\n $('.product-outofstock-popup-after-submit').removeClass('hide');\n}\n\n/**\n * @private\n * @function\n * @description Submit an email on Back in Stock Popup\n */\n\nfunction submitBackInStock() {\n var emailInput = $('.product-outofstock-popup-email-form-input').val();\n var pid = $('.product-outofstock-popup-pid-form-input').val();\n\n var regExp = /^[a-zA-Z0-9]*([\\w+-]+\\.)*[\\w+-]+@[a-zA-Z0-9]([\\w-]+\\.)*[a-zA-Z]{2,6}$/;\n var error = '';\n\n if (emailInput.length == 0) {\n error = 'this field is required';\n } else if (!emailInput.match(regExp)) {\n error = 'please enter a valid email';\n }\n if (!error && error.length == 0) {\n grecaptcha.ready(function () { // eslint-disable-line\n grecaptcha.execute($('.product-outofstock-popup-submit-quick-view').attr('data-recaptcha-site-key'), { action: 'backinstock' }).then(function (token) { // eslint-disable-line\n var params = {\n email: emailInput,\n pid: pid,\n token: token,\n action: 'backinstock'\n };\n\n var url = $('.product-outofstock-popup-submit-quick-view').data('url');\n\n $.ajax({\n type: 'POST',\n url: url,\n data: params,\n success: function () {\n $('.product-outofstock-popup-email-submit').html(emailInput);\n showAfterSubmitPopup();\n $('.back-in-stock__success').removeClass('hide');\n }\n });\n });\n });\n } else {\n // Email is empty or not valid - Show error\n $('.back-in-stock__error').removeClass('hide');\n $('.back-in-stock__error').text(error);\n }\n}\n\nfunction quantumPriceUpdate(tilesArray, tileInArray, productQuantity, quickviewOpen) {\n var pricePerProduct = tilesArray[tileInArray].attributes['data-price'].value;\n var percentagae = tilesArray[tileInArray].attributes['data-percentage'].value;\n var currency = tilesArray[tileInArray].attributes['data-currency'].value;\n var newPrice = productQuantity * (pricePerProduct * (1 - percentagae / 100)).toFixed(2);\n\n if (quickviewOpen) {\n $('.quickview-modal .prices-and-availability .price-sales').text(currency == '€' ? newPrice.toFixed(2) + ' ' + currency : Math.round(newPrice) + ' ' + currency);\n } else {\n $('.prices-and-availability .price-sales').text(currency == '€' ? newPrice.toFixed(2) + ' ' + currency : Math.round(newPrice) + ' ' + currency);\n }\n}\n\nfunction quantumUpdate(productQuantity) {\n var quickviewOpen = $('.quickview-modal').hasClass('show');\n var tilesArray = $('.promotion-box-tiles').find('.promotion-box-tile');\n var tilesLength = tilesArray.length;\n\n // Start from the highest tile so we don't duplicate calculations\n for (var i = tilesLength - 1; i >= 0; i--) {\n var tileQuantity = parseInt(tilesArray[i].getAttribute('data-quantity'));\n\n if (productQuantity >= tileQuantity) {\n updateTile(i, quickviewOpen);\n quantumPriceUpdate(tilesArray, i, productQuantity, quickviewOpen);\n break;\n }\n }\n}\n\nfunction updateTile(index, quickviewOpen) {\n var selector = quickviewOpen ? '.quickview-modal' : '';\n $(selector + ' .promotion-box-tile').removeClass('active');\n $(selector + ' .promotion-box-tiles > .promotion-box-tile:nth-child(' + (index + 1) + ')').addClass('active');\n}\n\n\nquickView.showQuickview = function () {\n $('body').on('click', '.quickview', function (e) {\n e.preventDefault();\n e.stopPropagation();\n var selectedValueUrl = $(this).closest('a.quickview').attr('data-href');\n $(e.target).trigger('quickview:show');\n getModalHtmlElement();\n fillModalElement(selectedValueUrl);\n });\n};\nif (FeatureFlagRegistrar.isSite('GG')) {\n quickView.hideDialog = function () {\n $('body').on('product:afterAddToCart', function () {\n if ($('#quickViewModal').length > 0) {\n $('#quickViewModal').modal('hide');\n }\n });\n };\n}\n\n\n// Do not duplicate callbacks already present in detail.js\n\n// This function is migrated from detail.js script to avoid mess with duplicated callbacks.\n// Quick view is loaded on all pages, while defining it in detail.js does not make it working on Quick View popup.\nquickView.updateQuantity = function () {\n $('body').on('click', '[data-animation]', function (e) {\n e.preventDefault();\n var productQuantityInput = $(this).siblings('.quantity-select');\n var quantity = productQuantityInput.val();\n var minOrderQuantity = parseInt(productQuantityInput.data('min-quantity')) || 1;\n var stepOrderQuantity = parseInt(productQuantityInput.data('step-quantity')) || 1;\n var productQuantity = parseInt(quantity);\n\n if ($(this).hasClass('increase-quantity')) {\n var newProductQuantity = productQuantity + stepOrderQuantity;\n\n productQuantityInput.val(newProductQuantity);\n\n if (productQuantity == minOrderQuantity) {\n $(this).siblings('.icon--disabled').removeClass('icon--disabled');\n }\n\n if ($('.quantum').length) {\n quantumUpdate(newProductQuantity);\n }\n } else if ($(this).hasClass('decrease-quantity') && quantity >= minOrderQuantity + stepOrderQuantity) {\n var newSubtractedQuantity = productQuantity - stepOrderQuantity;\n\n productQuantityInput.val(newSubtractedQuantity);\n\n if (newSubtractedQuantity == minOrderQuantity) {\n $(this).addClass('icon--disabled');\n }\n\n if ($('.quantum').length) {\n quantumUpdate(newSubtractedQuantity);\n }\n }\n\n var parentElement = $(this).parents('.quantity-and-add-to-cart');\n var trackingPayload = parentElement ? parentElement.find('button.add-to-cart')[0] : undefined;\n var trackingEventPayload = trackingPayload ? JSON.parse(trackingPayload.dataset.trackingEventPayload) : undefined;\n if (trackingEventPayload) {\n trackingEventPayload.add.products[0].quantity = parseInt(productQuantityInput.val());\n trackingPayload.dataset.trackingEventPayload = JSON.stringify(trackingEventPayload);\n }\n });\n\n $('body').on('change', '.quantity-select', function () {\n var userInputQuantity = parseInt($(this).val());\n var minOrderQuantity = parseInt($(this).data('min-quantity')) || 1;\n var stepOrderQuantity = parseInt($(this).data('step-quantity')) || 1;\n var updatedQuantity;\n\n if (userInputQuantity <= minOrderQuantity) {\n updatedQuantity = minOrderQuantity;\n $(this).siblings('.decrease-quantity').addClass('icon--disabled');\n } else if (stepOrderQuantity > 1) {\n if (userInputQuantity < minOrderQuantity + stepOrderQuantity) {\n updatedQuantity = minOrderQuantity;\n } else {\n var excessQuantity = (userInputQuantity - minOrderQuantity) % stepOrderQuantity;\n updatedQuantity = userInputQuantity - excessQuantity;\n }\n } else {\n updatedQuantity = userInputQuantity;\n }\n\n $(this).val(updatedQuantity);\n\n if ($('.quantum').length) {\n quantumUpdate(updatedQuantity);\n }\n });\n};\n\n// The same as with \"quickView.updateQuantity\" above - migrated from detail.js to fix duplicated callbacks.\nquickView.showPreMinicart = function () {\n $('body').on('product:afterAddToCart', function (e, data) {\n if (data.productIsAdded) {\n showPreMinicartBox(data);\n }\n if (data.cart.items.length > 0) {\n showCartItemsHeader();\n }\n });\n};\n\n// Do not export remove \"addToCart\" from being exported there. It's used for callbacks on both PDP and Quick View.\nquickView.addToCart = base.addToCart;\nquickView.availability = base.availability;\n\nquickView.colorAttribute = base.colorAttribute;\nquickView.selectAttribute = base.selectAttribute;\nquickView.removeBonusProduct = base.removeBonusProduct;\nquickView.selectBonusProduct = base.selectBonusProduct;\nquickView.enableBonusProductSelection = base.enableBonusProductSelection;\nquickView.showMoreBonusProducts = base.showMoreBonusProducts;\nquickView.addBonusProductsToCart = base.addBonusProductsToCart;\n\nquickView.focusChooseBonusProductModal = base.focusChooseBonusProductModal();\n\nmodule.exports = quickView;\n","'use strict';\n\nimport parentWishlist from 'pluginWishlist/product/wishlist';\nimport productBase from 'theme/js/product/base';\n\n/**\n * renders the list up to a given page number\n * @param {number} pageNumber - current page number\n * @param {boolean} spinner - if the spinner has already started\n * @param {string} focusElementSelector - selector of the element to focus on\n */\nfunction renderNewPageOfItems(pageNumber, spinner, focusElementSelector) {\n var publicView = $('.wishlistItemCardsData').data('public-view');\n var listUUID = $('.wishlistItemCardsData').data('uuid');\n var url = $('.wishlistItemCardsData').data('href');\n if (spinner) {\n $.spinner().start();\n }\n var scrollPosition = document.documentElement.scrollTop;\n var newPageNumber = pageNumber;\n $.ajax({\n url: url,\n method: 'get',\n data: {\n pageNumber: ++newPageNumber,\n publicView: publicView,\n id: listUUID\n }\n }).done(function (data) {\n $('.wishlistItemCards').empty();\n $('body .wishlistItemCards').append(data);\n\n if (focusElementSelector) {\n $(focusElementSelector).focus();\n } else {\n document.documentElement.scrollTop = scrollPosition;\n }\n }).fail(function () {\n $('.more-wl-items').remove();\n });\n $.spinner().stop();\n}\n\nparentWishlist.addToWishlist =\n ({\n productIdholder = 'data-wishlist-product-id',\n productWishlistWrapperSelector = '[data-add-to-wish-wrapper]',\n productIsInWishlistHolder = 'data-wishlist-inlist',\n wishlistSelector = '[data-add-to-wish-list]',\n productDetailSelector = '[data-product-top-content]',\n headerWishlistSelector = '[data-header-wishlist]',\n addToWishlistUrl = 'data-wishlist-addToWishlistUrl',\n removeFromWishlistUrl = 'data-wishlist-removeFromWishlistUrl',\n classList = {\n isInListClass: 'inlist',\n fadeOutAnimationClass: 'fade-out-in',\n hideClass: 'hidden',\n fadeOutHideAnimationClass: 'fade-out-hide'\n }\n } = {}) => {\n $('body').on('click', wishlistSelector, function (e) {\n e.preventDefault();\n e.stopPropagation();\n const button = $(this);\n const pid = button.attr(productIdholder);\n const optionsRaw = productBase.methods.getOptions(button.closest(productDetailSelector));\n const options = optionsRaw && JSON.parse(optionsRaw) || {};\n const wrapper = button.closest(productWishlistWrapperSelector);\n const optionId = options.optionId;\n const optionVal = options.selectedValueId;\n const inList = button.attr(productIsInWishlistHolder) === 'true';\n const url = inList && button.attr(removeFromWishlistUrl) || button.attr(addToWishlistUrl);\n\n if (!url || !pid) {\n return;\n }\n\n $.ajax({\n url: url,\n type: inList && 'get' || 'post',\n dataType: 'json',\n data: {\n pid: pid,\n optionId: optionId,\n optionVal: optionVal\n },\n success: function (data) {\n if (data.success) {\n data.listIsEmpty && $(headerWishlistSelector).addClass(classList.fadeOutHideAnimationClass) || $(headerWishlistSelector).removeClass(classList.fadeOutHideAnimationClass) && $(headerWishlistSelector).removeClass(classList.hideClass);\n inList && wrapper.removeClass(classList.isInListClass) && $(headerWishlistSelector).removeClass(classList.fadeOutAnimationClass) || wrapper.addClass(classList.isInListClass) && $(headerWishlistSelector).removeClass(classList.fadeOutAnimationClass) && setTimeout(() => {\n $(headerWishlistSelector).addClass(classList.fadeOutAnimationClass);\n }, 300);\n\n button.attr(productIsInWishlistHolder, !inList);\n let number = $('.wishlist-count-badge').html();\n let inc = parseInt(number);\n let toNumber = inList ? --inc : ++inc;\n $('.wishlist-count-badge').html(toNumber);\n const currentWishlistDiv = $('[data-add-to-wish-product-id=' + pid + ']');\n\n if (currentWishlistDiv.length > 0) {\n if (!inList) {\n if (currentWishlistDiv.length > 0) {\n currentWishlistDiv.find('.wishlist-icon').addClass('inlist');\n $('button').attr(productIsInWishlistHolder, 'true');\n }\n } else {\n currentWishlistDiv.find('.wishlist-icon').removeClass('inlist');\n $('button').attr(productIsInWishlistHolder, 'false');\n }\n }\n\n // Used for variant changes\n const productIdsArray = window.WISHLIST_PRODUCT_IDS.split(',');\n inList ? productIdsArray.splice(productIdsArray.indexOf(pid), 1) : productIdsArray.push(pid);\n window.WISHLIST_PRODUCT_IDS = productIdsArray.join(',');\n\n if (data.msg || data.emptyWishlistMsg) {\n window.MessagesMgr.success(data.msg || data.emptyWishlistMsg);\n }\n } else if (data.msg) {\n window.MessagesMgr.success(data.msg);\n }\n },\n error: function (error) {\n if (error.responseJSON && error.responseJSON.message) {\n window.MessagesMgr.error(error.responseJSON.message);\n\n // Remove item from existing wishlist\n const productIdsArray = window.WISHLIST_PRODUCT_IDS.split(',');\n productIdsArray.splice(productIdsArray.indexOf(pid), 1);\n window.WISHLIST_PRODUCT_IDS = productIdsArray.join(',');\n\n // Uncheck button\n const currentWishlistDiv = $('[data-add-to-wish-product-id=' + pid + ']');\n currentWishlistDiv.find('.wishlist-icon').removeClass('inlist');\n currentWishlistDiv.find('.wishlist-icon').first().attr(productIsInWishlistHolder, 'false');\n }\n }\n });\n });\n };\n\nparentWishlist.moreWLItems = function () {\n $('body').on('click', '.more-wl-items', function () {\n var pageNumber = $('.wishlistItemCardsData').data('page-number');\n renderNewPageOfItems(pageNumber, true);\n });\n};\nmodule.exports = {\n ...parentWishlist\n};\n","// noinspection DuplicatedCode\n\n'use strict';\n\nimport { rules } from './voyado/pageEvents';\nimport { getLogger } from 'shared/js/dev-mode';\n\nconst logger = getLogger();\n\nconst VOYADO_EVENT_MONITOR_CART = 'Voyado-monitor-cart';\nconst VOYADO_EVENT_MONITOR_EMPTY_CART = 'Voyado-monitor-empty-cart';\nconst VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION = 'Voydo-monitor-product-impression';\nconst VOYADO_SCRIPT_LOADED = 'Voyado-script-loaded';\n\nconst getVoyadoLocale = (sourceLocale) => {\n let result = 'sv-SE';\n sourceLocale = sourceLocale || window.locale;\n if (sourceLocale === 'no_NO') {\n result = sourceLocale.replace('no_NO', 'nb-NO');\n } else if (sourceLocale) {\n result = sourceLocale.replace('_', '-');\n }\n return result;\n};\n\nconst trackCart = (uuid, isEmpty, basketItems, basketLocale) => {\n let payload = {\n locale: getVoyadoLocale(basketLocale),\n cartRef: uuid\n };\n\n if (!isEmpty) {\n if (basketItems.length == 0) {\n isEmpty = true;\n } else {\n payload.items = [];\n basketItems.forEach(function (item) {\n payload.items.push({\n itemId: item.id,\n quantity: item.quantity\n });\n });\n }\n } else {\n payload.cartRef = $('.confirmation-summary').find('.order-number')[0].getAttribute('data-basket-uuid');\n }\n\n if (payload.cartRef) {\n window.va(isEmpty ? 'emptyCart' : 'cart', payload);\n }\n};\n\nconst trackProductImpression = (categoryName, itemId, locale, contactId) => {\n if (!itemId || !locale || !categoryName) {\n return;\n }\n\n let payload = {\n locale: getVoyadoLocale(locale),\n categoryName: categoryName,\n itemId: itemId,\n };\n\n if (contactId) {\n payload.contactId = contactId;\n }\n\n window.va('productview', payload);\n};\n\nconst initialize = () => {\n document.addEventListener(\n VOYADO_EVENT_MONITOR_CART,\n function (event) {\n trackCart(event.detail.uuid, event.detail.empty, event.detail.items, event.detail.locale);\n },\n false\n );\n\n document.addEventListener(\n VOYADO_EVENT_MONITOR_EMPTY_CART,\n function (event) {\n trackCart(null, event.detail.empty);\n },\n false\n );\n\n document.addEventListener(\n VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION,\n function (event) {\n trackProductImpression(event.detail.categoryName, event.detail.itemId, event.detail.locale, event.detail.contactId);\n },\n false\n );\n\n\n // Process rules.\n rules.forEach((rule) => {\n if (!rule || !Array.isArray(rule.actionIds)) {\n return;\n }\n try {\n if (window.actionId && rule.actionIds.indexOf(window.actionId) > -1) {\n rule.callback();\n }\n } catch (exception) {\n logger.error(exception);\n }\n });\n};\n\nexport const execute = () => {\n let voyadoEnabled = $('.data-holder').data('voyado-analytics-enabled');\n\n if (voyadoEnabled) {\n document.addEventListener(\n VOYADO_SCRIPT_LOADED,\n function () {\n initialize();\n },\n false\n );\n }\n};\n\nexport default {\n execute,\n VOYADO_EVENT_MONITOR_CART,\n VOYADO_EVENT_MONITOR_EMPTY_CART,\n VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION,\n VOYADO_SCRIPT_LOADED\n};\n","'use strict';\n\nimport { VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION } from 'shared/js/voyadoAnalyticsLoader';\n\nexport const rules = [\n {\n actionIds: ['Order-Confirm', 'Order-KlarnaConfirm', 'Adyen-ShowConfirmation'],\n callback: () => {\n // Reflects logic from legacy code-base @see app-project/app_hsng/cartridge/templates/default/checkout/confirmation/confirmation.isml:77\n addEventListener('load', () => {\n document.dispatchEvent(\n new CustomEvent('Voyado-monitor-empty-cart', {\n detail: {\n empty: true\n }\n })\n );\n });\n }\n },\n {\n actionIds: ['Product-Show'],\n callback: () => {\n addEventListener('load', () => {\n document.dispatchEvent(\n new CustomEvent(VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION, {\n detail: {\n categoryName: $('.breadcrumb').text().replace(/\\n/g, '').replace(/\\s+/g, ' ').trim(),\n itemId: $('#product-detail').data('pid'),\n locale: window.currentLocale,\n contactId: $('[data-voyado-contact-id]').data('voyado-contact-id')\n }\n })\n );\n });\n }\n }\n];\n","'use strict';\n\nimport _ from 'shared/js/underscore';\n\nclass Provider {\n #config = {};\n #callbacks = [];\n\n /**\n * @param {Object} config\n * @return {void}\n */\n register(config) {\n config = _.unflatten(config);\n this.#config = _.extend(this.#config, config);\n }\n\n /**\n * @param {Function} callback\n */\n callback(callback) {\n if (typeof callback === 'function') {\n this.#callbacks.push(callback);\n }\n }\n\n /**\n * @param {Array|String} key\n * @param {*} [defaults]\n * @return {*}\n */\n get(key, defaults) {\n key = _.isArray(key) ? key : key.split('.');\n return _.get(this.#config, key, defaults);\n }\n\n /**\n * @param {String|String[]} site\n * @returns {Boolean}\n */\n isSite(site) {\n site = arguments.length > 1 ? [...arguments] : site;\n if (!_.isArray(site)) {\n site = [site];\n }\n const currentSite = this.getCurrentSite();\n return site.some(\n (cValue) => currentSite === cValue.toUpperCase()\n );\n }\n\n /**\n * Returns ID of the current site.\n *\n * @return {string}\n */\n getCurrentSite() {\n return this.get('site', '').toUpperCase();\n }\n\n /**\n * @returns {Function[]}\n */\n getCallbacks() {\n return this.#callbacks;\n }\n}\n\nexport default new Provider();\n","'use strict';\n\nimport FeatureFlagProvider from './featureFlag/provider';\n\n// Do not wait for shared components being fully loaded, because configuration requires\n// immediate availability.\n// document.addEventListener('custom:shared-components-loaded', () => {\nlet providers = [];\nconst collectConfigProviderEvent = new CustomEvent(\n 'integration:feature-flag-provider',\n {\n detail: {\n registrar: FeatureFlagProvider,\n providers: providers\n }\n }\n);\ndocument.dispatchEvent(collectConfigProviderEvent);\nproviders.forEach(config => FeatureFlagProvider.register(config));\n// });\n\nexport default FeatureFlagProvider;\n","'use strict';\n\nimport voyadoAnalytics from './analytics/voyado';\n\nexport const VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION = voyadoAnalytics.VOYADO_EVENT_TRACK_PRODUCT_IMPRESSION;\nexport const VOYADO_EVENT_MONITOR_CART = voyadoAnalytics.VOYADO_EVENT_MONITOR_CART;\nexport const VOYADO_EVENT_MONITOR_EMPTY_CART = voyadoAnalytics.VOYADO_EVENT_MONITOR_EMPTY_CART;\nexport const VOYADO_SCRIPT_LOADED = voyadoAnalytics.VOYADO_SCRIPT_LOADED;\nexport const loadAnalytics = voyadoAnalytics.execute;\n","'use strict';\n\nimport { getCookieByName } from './util/cookies-operation';\n\nexport function isDevMode() {\n const value = getCookieByName('public.dev.investigationMode');\n return value && (['0', 0, 'off', false, 'false', ''].indexOf(value) === -1);\n}\n\nexport function getLogger() {\n if (isDevMode()) {\n return console;\n }\n const dummy = () => void 0; /* eslint-disable-line no-void */\n return {\n debug: dummy,\n error: dummy,\n info: dummy,\n log: dummy,\n warn: dummy,\n };\n}\n\nexport default {\n isDevMode,\n getLogger\n};\n","'use strict';\n\nexport function aggregateFlagsOnNode(element) {\n let container = {};\n if (!element || !element.nodeType) {\n return container;\n }\n for (let i = 0, attributes = element.attributes, length = attributes.length; i < length; i++) {\n const name = attributes[i].nodeName;\n if (name.indexOf('data-request-flag') > -1) {\n container[name.substring(18)] = attributes[i].nodeValue;\n }\n }\n return container;\n}\n\n\nexport default { aggregateFlagsOnNode };\n","/* jshint esversion: 6 */\n\n'use strict';\n\nimport _ from './underscore/lib';\nimport objects from './underscore/objects';\nimport strings from './underscore/string';\n\nlet underscore = _.mixin(objects(_));\nunderscore = _.mixin(strings.exports());\nexport default underscore;\n","/* eslint-disable */\n// Underscore.js 1.13.1\n// https://underscorejs.org\n// (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors\n// Underscore may be freely distributed under the MIT license.\n\n// Current version.\nvar VERSION = '1.13.1';\n\n// Establish the root object, `window` (`self`) in the browser, `global`\n// on the server, or `this` in some virtual machines. We use `self`\n// instead of `window` for `WebWorker` support.\nvar root = typeof self == 'object' && self.self === self && self ||\n typeof global == 'object' && global.global === global && global ||\n Function('return this')() ||\n {};\n\n// Save bytes in the minified (but not gzipped) version:\nvar ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\nvar SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;\n\n// Create quick reference variables for speed access to core prototypes.\nvar push = ArrayProto.push,\n slice = ArrayProto.slice,\n toString = ObjProto.toString,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// Modern feature detection.\nvar supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',\n supportsDataView = typeof DataView !== 'undefined';\n\n// All **ECMAScript 5+** native function implementations that we hope to use\n// are declared here.\nvar nativeIsArray = Array.isArray,\n nativeKeys = Object.keys,\n nativeCreate = Object.create,\n nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;\n\n// Create references to these builtin functions because we override them.\nvar _isNaN = isNaN,\n _isFinite = isFinite;\n\n// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.\nvar hasEnumBug = !{ toString: null }.propertyIsEnumerable('toString');\nvar nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',\n 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\n\n// The largest integer that can be represented exactly.\nvar MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\n\n// Some functions take a variable number of arguments, or a few expected\n// arguments at the beginning and then a variable number of values to operate\n// on. This helper accumulates all remaining arguments past the function’s\n// argument length (or an explicit `startIndex`), into an array that becomes\n// the last argument. Similar to ES6’s \"rest parameter\".\nfunction restArguments(func, startIndex) {\n startIndex = startIndex == null ? func.length - 1 : +startIndex;\n return function () {\n var length = Math.max(arguments.length - startIndex, 0),\n rest = Array(length),\n index = 0;\n for (; index < length; index++) {\n rest[index] = arguments[index + startIndex];\n }\n switch (startIndex) {\n case 0: return func.call(this, rest);\n case 1: return func.call(this, arguments[0], rest);\n case 2: return func.call(this, arguments[0], arguments[1], rest);\n }\n var args = Array(startIndex + 1);\n for (index = 0; index < startIndex; index++) {\n args[index] = arguments[index];\n }\n args[startIndex] = rest;\n return func.apply(this, args);\n };\n}\n\n// Is a given variable an object?\nfunction isObject(obj) {\n var type = typeof obj;\n return type === 'function' || type === 'object' && !!obj;\n}\n\n// Is a given value equal to null?\nfunction isNull(obj) {\n return obj === null;\n}\n\n// Is a given variable undefined?\nfunction isUndefined(obj) {\n return obj === void 0;\n}\n\n// Is a given value a boolean?\nfunction isBoolean(obj) {\n return obj === true || obj === false || toString.call(obj) === '[object Boolean]';\n}\n\n// Is a given value a DOM element?\nfunction isElement(obj) {\n return !!(obj && obj.nodeType === 1);\n}\n\n// Internal function for creating a `toString`-based type tester.\nfunction tagTester(name) {\n var tag = '[object ' + name + ']';\n return function (obj) {\n return toString.call(obj) === tag;\n };\n}\n\nvar isString = tagTester('String');\n\nvar isNumber = tagTester('Number');\n\nvar isDate = tagTester('Date');\n\nvar isRegExp = tagTester('RegExp');\n\nvar isError = tagTester('Error');\n\nvar isSymbol = tagTester('Symbol');\n\nvar isArrayBuffer = tagTester('ArrayBuffer');\n\nvar isFunction = tagTester('Function');\n\n// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old\n// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).\nvar nodelist = root.document && root.document.childNodes;\nif (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {\n isFunction = function (obj) {\n return typeof obj == 'function' || false;\n };\n}\n\nvar isFunction$1 = isFunction;\n\nvar hasObjectTag = tagTester('Object');\n\n// In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.\n// In IE 11, the most common among them, this problem also applies to\n// `Map`, `WeakMap` and `Set`.\nvar hasStringTagBug = (\n supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))\n ),\n isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map()));\n\nvar isDataView = tagTester('DataView');\n\n// In IE 10 - Edge 13, we need a different heuristic\n// to determine whether an object is a `DataView`.\nfunction ie10IsDataView(obj) {\n return obj != null && isFunction$1(obj.getInt8) && isArrayBuffer(obj.buffer);\n}\n\nvar isDataView$1 = (hasStringTagBug ? ie10IsDataView : isDataView);\n\n// Is a given value an array?\n// Delegates to ECMA5's native `Array.isArray`.\nvar isArray = nativeIsArray || tagTester('Array');\n\n// Internal function to check whether `key` is an own property name of `obj`.\nfunction has$1(obj, key) {\n return obj != null && hasOwnProperty.call(obj, key);\n}\n\nvar isArguments = tagTester('Arguments');\n\n// Define a fallback version of the method in browsers (ahem, IE < 9), where\n// there isn't any inspectable \"Arguments\" type.\n(function () {\n if (!isArguments(arguments)) {\n isArguments = function (obj) {\n return has$1(obj, 'callee');\n };\n }\n}());\n\nvar isArguments$1 = isArguments;\n\n// Is a given object a finite number?\nfunction isFinite$1(obj) {\n return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));\n}\n\n// Is the given value `NaN`?\nfunction isNaN$1(obj) {\n return isNumber(obj) && _isNaN(obj);\n}\n\n// Predicate-generating function. Often useful outside of Underscore.\nfunction constant(value) {\n return function () {\n return value;\n };\n}\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nfunction createSizePropertyCheck(getSizeProperty) {\n return function (collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n };\n}\n\n// Internal helper to generate a function to obtain property `key` from `obj`.\nfunction shallowProperty(key) {\n return function (obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n\n// Internal helper to obtain the `byteLength` property of an object.\nvar getByteLength = shallowProperty('byteLength');\n\n// Internal helper to determine whether we should spend extensive checks against\n// `ArrayBuffer` et al.\nvar isBufferLike = createSizePropertyCheck(getByteLength);\n\n// Is a given value a typed array?\nvar typedArrayPattern = /\\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\\]/;\nfunction isTypedArray(obj) {\n // `ArrayBuffer.isView` is the most future-proof, so use it when available.\n // Otherwise, fall back on the above regular expression.\n return nativeIsView ? (nativeIsView(obj) && !isDataView$1(obj)) :\n isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));\n}\n\nvar isTypedArray$1 = supportsArrayBuffer ? isTypedArray : constant(false);\n\n// Internal helper to obtain the `length` property of an object.\nvar getLength = shallowProperty('length');\n\n// Internal helper to create a simple lookup structure.\n// `collectNonEnumProps` used to depend on `_.contains`, but this led to\n// circular imports. `emulatedSet` is a one-off solution that only works for\n// arrays of strings.\nfunction emulatedSet(keys) {\n var hash = {};\n for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;\n return {\n contains: function (key) { return hash[key] === true; },\n push: function (key) {\n hash[key] = true;\n return keys.push(key);\n }\n };\n}\n\n// Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't\n// be iterated by `for key in ...` and thus missed. Extends `keys` in place if\n// needed.\nfunction collectNonEnumProps(obj, keys) {\n keys = emulatedSet(keys);\n var nonEnumIdx = nonEnumerableProps.length;\n var constructor = obj.constructor;\n var proto = isFunction$1(constructor) && constructor.prototype || ObjProto;\n\n // Constructor is a special case.\n var prop = 'constructor';\n if (has$1(obj, prop) && !keys.contains(prop)) keys.push(prop);\n\n while (nonEnumIdx--) {\n prop = nonEnumerableProps[nonEnumIdx];\n if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {\n keys.push(prop);\n }\n }\n}\n\n// Retrieve the names of an object's own properties.\n// Delegates to **ECMAScript 5**'s native `Object.keys`.\nfunction keys(obj) {\n if (!isObject(obj)) return [];\n if (nativeKeys) return nativeKeys(obj);\n var keys = [];\n for (var key in obj) if (has$1(obj, key)) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n\n// Is a given array, string, or object empty?\n// An \"empty\" object has no enumerable own-properties.\nfunction isEmpty(obj) {\n if (obj == null) return true;\n // Skip the more expensive `toString`-based type checks if `obj` has no\n // `.length`.\n var length = getLength(obj);\n if (typeof length == 'number' && (\n isArray(obj) || isString(obj) || isArguments$1(obj)\n )) return length === 0;\n return getLength(keys(obj)) === 0;\n}\n\n// Returns whether an object has a given set of `key:value` pairs.\nfunction isMatch(object, attrs) {\n var _keys = keys(attrs),\n length = _keys.length;\n if (object == null) return !length;\n var obj = Object(object);\n for (var i = 0; i < length; i++) {\n var key = _keys[i];\n if (attrs[key] !== obj[key] || !(key in obj)) return false;\n }\n return true;\n}\n\n// If Underscore is called as a function, it returns a wrapped object that can\n// be used OO-style. This wrapper holds altered versions of all functions added\n// through `_.mixin`. Wrapped objects may be chained.\nfunction _$1(obj) {\n if (obj instanceof _$1) return obj;\n if (!(this instanceof _$1)) return new _$1(obj);\n this._wrapped = obj;\n}\n\n_$1.VERSION = VERSION;\n\n// Extracts the result from a wrapped and chained object.\n_$1.prototype.value = function () {\n return this._wrapped;\n};\n\n// Provide unwrapping proxies for some methods used in engine operations\n// such as arithmetic and JSON stringification.\n_$1.prototype.valueOf = _$1.prototype.toJSON = _$1.prototype.value;\n\n_$1.prototype.toString = function () {\n return String(this._wrapped);\n};\n\n// Internal function to wrap or shallow-copy an ArrayBuffer,\n// typed array or DataView to a new view, reusing the buffer.\nfunction toBufferView(bufferSource) {\n return new Uint8Array(\n bufferSource.buffer || bufferSource,\n bufferSource.byteOffset || 0,\n getByteLength(bufferSource)\n );\n}\n\n// We use this string twice, so give it a name for minification.\nvar tagDataView = '[object DataView]';\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction eq(a, b, aStack, bStack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).\n if (a === b) return a !== 0 || 1 / a === 1 / b;\n // `null` or `undefined` only equal to itself (strict comparison).\n if (a == null || b == null) return false;\n // `NaN`s are equivalent, but non-reflexive.\n if (a !== a) return b !== b;\n // Exhaust primitive checks\n var type = typeof a;\n if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;\n return deepEq(a, b, aStack, bStack);\n}\n\n// Internal recursive comparison function for `_.isEqual`.\nfunction deepEq(a, b, aStack, bStack) {\n // Unwrap any wrapped objects.\n if (a instanceof _$1) a = a._wrapped;\n if (b instanceof _$1) b = b._wrapped;\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className !== toString.call(b)) return false;\n // Work around a bug in IE 10 - Edge 13.\n if (hasStringTagBug && className == '[object Object]' && isDataView$1(a)) {\n if (!isDataView$1(b)) return false;\n className = tagDataView;\n }\n switch (className) {\n // These types are compared by value.\n case '[object RegExp]':\n // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return '' + a === '' + b;\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive.\n // Object(NaN) is equivalent to NaN.\n if (+a !== +a) return +b !== +b;\n // An `egal` comparison is performed for other numeric values.\n return +a === 0 ? 1 / +a === 1 / b : +a === +b;\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a === +b;\n case '[object Symbol]':\n return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);\n case '[object ArrayBuffer]':\n case tagDataView:\n // Coerce to typed array so we can fall through.\n return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);\n }\n\n var areArrays = className === '[object Array]';\n if (!areArrays && isTypedArray$1(a)) {\n var byteLength = getByteLength(a);\n if (byteLength !== getByteLength(b)) return false;\n if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;\n areArrays = true;\n }\n if (!areArrays) {\n if (typeof a != 'object' || typeof b != 'object') return false;\n\n // Objects with different constructors are not equivalent, but `Object`s or `Array`s\n // from different frames are.\n var aCtor = a.constructor,\n bCtor = b.constructor;\n if (aCtor !== bCtor && !(isFunction$1(aCtor) && aCtor instanceof aCtor &&\n isFunction$1(bCtor) && bCtor instanceof bCtor)\n && ('constructor' in a && 'constructor' in b)) {\n return false;\n }\n }\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n\n // Initializing stack of traversed objects.\n // It's done here since we only need them for objects and arrays comparison.\n aStack = aStack || [];\n bStack = bStack || [];\n var length = aStack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (aStack[length] === a) return bStack[length] === b;\n }\n\n // Add the first object to the stack of traversed objects.\n aStack.push(a);\n bStack.push(b);\n\n // Recursively compare objects and arrays.\n if (areArrays) {\n // Compare array lengths to determine if a deep comparison is necessary.\n length = a.length;\n if (length !== b.length) return false;\n // Deep compare the contents, ignoring non-numeric properties.\n while (length--) {\n if (!eq(a[length], b[length], aStack, bStack)) return false;\n }\n } else {\n // Deep compare objects.\n var _keys = keys(a),\n key;\n length = _keys.length;\n // Ensure that both objects contain the same number of properties before comparing deep equality.\n if (keys(b).length !== length) return false;\n while (length--) {\n // Deep compare each member\n key = _keys[length];\n if (!(has$1(b, key) && eq(a[key], b[key], aStack, bStack))) return false;\n }\n }\n // Remove the first object from the stack of traversed objects.\n aStack.pop();\n bStack.pop();\n return true;\n}\n\n// Perform a deep comparison to check if two objects are equal.\nfunction isEqual(a, b) {\n return eq(a, b);\n}\n\n// Retrieve all the enumerable property names of an object.\nfunction allKeys(obj) {\n if (!isObject(obj)) return [];\n var keys = [];\n for (var key in obj) keys.push(key);\n // Ahem, IE < 9.\n if (hasEnumBug) collectNonEnumProps(obj, keys);\n return keys;\n}\n\n// Since the regular `Object.prototype.toString` type tests don't work for\n// some types in IE 11, we use a fingerprinting heuristic instead, based\n// on the methods. It's not great, but it's the best we got.\n// The fingerprint method lists are defined below.\nfunction ie11fingerprint(methods) {\n var length = getLength(methods);\n return function (obj) {\n if (obj == null) return false;\n // `Map`, `WeakMap` and `Set` have no enumerable keys.\n var keys = allKeys(obj);\n if (getLength(keys)) return false;\n for (var i = 0; i < length; i++) {\n if (!isFunction$1(obj[methods[i]])) return false;\n }\n // If we are testing against `WeakMap`, we need to ensure that\n // `obj` doesn't have a `forEach` method in order to distinguish\n // it from a regular `Map`.\n return methods !== weakMapMethods || !isFunction$1(obj[forEachName]);\n };\n}\n\n// In the interest of compact minification, we write\n// each string in the fingerprints only once.\nvar forEachName = 'forEach',\n hasName = 'has',\n commonInit = ['clear', 'delete'],\n mapTail = ['get', hasName, 'set'];\n\n// `Map`, `WeakMap` and `Set` each have slightly different\n// combinations of the above sublists.\nvar mapMethods = commonInit.concat(forEachName, mapTail),\n weakMapMethods = commonInit.concat(mapTail),\n setMethods = ['add'].concat(commonInit, forEachName, hasName);\n\nvar isMap = isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');\n\nvar isWeakMap = isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');\n\nvar isSet = isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');\n\nvar isWeakSet = tagTester('WeakSet');\n\n// Retrieve the values of an object's properties.\nfunction values(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var values = Array(length);\n for (var i = 0; i < length; i++) {\n values[i] = obj[_keys[i]];\n }\n return values;\n}\n\n// Convert an object into a list of `[key, value]` pairs.\n// The opposite of `_.object` with one argument.\nfunction pairs(obj) {\n var _keys = keys(obj);\n var length = _keys.length;\n var pairs = Array(length);\n for (var i = 0; i < length; i++) {\n pairs[i] = [_keys[i], obj[_keys[i]]];\n }\n return pairs;\n}\n\n// Invert the keys and values of an object. The values must be serializable.\nfunction invert(obj) {\n var result = {};\n var _keys = keys(obj);\n for (var i = 0, length = _keys.length; i < length; i++) {\n result[obj[_keys[i]]] = _keys[i];\n }\n return result;\n}\n\n// Return a sorted list of the function names available on the object.\nfunction functions(obj) {\n var names = [];\n for (var key in obj) {\n if (isFunction$1(obj[key])) names.push(key);\n }\n return names.sort();\n}\n\n// An internal function for creating assigner functions.\nfunction createAssigner(keysFunc, defaults) {\n return function (obj) {\n var length = arguments.length;\n if (defaults) obj = Object(obj);\n if (length < 2 || obj == null) return obj;\n for (var index = 1; index < length; index++) {\n var source = arguments[index],\n keys = keysFunc(source),\n l = keys.length;\n for (var i = 0; i < l; i++) {\n var key = keys[i];\n if (!defaults || obj[key] === void 0) obj[key] = source[key];\n }\n }\n return obj;\n };\n}\n\n// Extend a given object with all the properties in passed-in object(s).\nvar extend = createAssigner(allKeys);\n\n// Assigns a given object with all the own properties in the passed-in\n// object(s).\n// (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\nvar extendOwn = createAssigner(keys);\n\n// Fill in a given object with default properties.\nvar defaults = createAssigner(allKeys, true);\n\n// Create a naked function reference for surrogate-prototype-swapping.\nfunction ctor() {\n return function () {};\n}\n\n// An internal function for creating a new object that inherits from another.\nfunction baseCreate(prototype) {\n if (!isObject(prototype)) return {};\n if (nativeCreate) return nativeCreate(prototype);\n var Ctor = ctor();\n Ctor.prototype = prototype;\n var result = new Ctor();\n Ctor.prototype = null;\n return result;\n}\n\n// Creates an object that inherits from the given prototype object.\n// If additional properties are provided then they will be added to the\n// created object.\nfunction create(prototype, props) {\n var result = baseCreate(prototype);\n if (props) extendOwn(result, props);\n return result;\n}\n\n// Create a (shallow-cloned) duplicate of an object.\nfunction clone(obj) {\n if (!isObject(obj)) return obj;\n return isArray(obj) ? obj.slice() : extend({}, obj);\n}\n\n// Invokes `interceptor` with the `obj` and then returns `obj`.\n// The primary purpose of this method is to \"tap into\" a method chain, in\n// order to perform operations on intermediate results within the chain.\nfunction tap(obj, interceptor) {\n interceptor(obj);\n return obj;\n}\n\n// Normalize a (deep) property `path` to array.\n// Like `_.iteratee`, this function can be customized.\nfunction toPath$1(path) {\n return isArray(path) ? path : [path];\n}\n_$1.toPath = toPath$1;\n\n// Internal wrapper for `_.toPath` to enable minification.\n// Similar to `cb` for `_.iteratee`.\nfunction toPath(path) {\n return _$1.toPath(path);\n}\n\n// Internal function to obtain a nested property in `obj` along `path`.\nfunction deepGet(obj, path) {\n var length = path.length;\n for (var i = 0; i < length; i++) {\n if (obj == null) return void 0;\n obj = obj[path[i]];\n }\n return length ? obj : void 0;\n}\n\n// Get the value of the (deep) property on `path` from `object`.\n// If any property in `path` does not exist or if the value is\n// `undefined`, return `defaultValue` instead.\n// The `path` is normalized through `_.toPath`.\nfunction get(object, path, defaultValue) {\n var value = deepGet(object, toPath(path));\n return isUndefined(value) ? defaultValue : value;\n}\n\n// Shortcut function for checking if an object has a given property directly on\n// itself (in other words, not on a prototype). Unlike the internal `has`\n// function, this public version can also traverse nested properties.\nfunction has(obj, path) {\n path = toPath(path);\n var length = path.length;\n for (var i = 0; i < length; i++) {\n var key = path[i];\n if (!has$1(obj, key)) return false;\n obj = obj[key];\n }\n return !!length;\n}\n\n// Keep the identity function around for default iteratees.\nfunction identity(value) {\n return value;\n}\n\n// Returns a predicate for checking whether an object has a given set of\n// `key:value` pairs.\nfunction matcher(attrs) {\n attrs = extendOwn({}, attrs);\n return function (obj) {\n return isMatch(obj, attrs);\n };\n}\n\n// Creates a function that, when passed an object, will traverse that object’s\n// properties down the given `path`, specified as an array of keys or indices.\nfunction property(path) {\n path = toPath(path);\n return function (obj) {\n return deepGet(obj, path);\n };\n}\n\n// Internal function that returns an efficient (for current engines) version\n// of the passed-in callback, to be repeatedly applied in other Underscore\n// functions.\nfunction optimizeCb(func, context, argCount) {\n if (context === void 0) return func;\n switch (argCount == null ? 3 : argCount) {\n case 1: return function (value) {\n return func.call(context, value);\n };\n // The 2-argument case is omitted because we’re not using it.\n case 3: return function (value, index, collection) {\n return func.call(context, value, index, collection);\n };\n case 4: return function (accumulator, value, index, collection) {\n return func.call(context, accumulator, value, index, collection);\n };\n }\n return function () {\n return func.apply(context, arguments);\n };\n}\n\n// An internal function to generate callbacks that can be applied to each\n// element in a collection, returning the desired result — either `_.identity`,\n// an arbitrary callback, a property matcher, or a property accessor.\nfunction baseIteratee(value, context, argCount) {\n if (value == null) return identity;\n if (isFunction$1(value)) return optimizeCb(value, context, argCount);\n if (isObject(value) && !isArray(value)) return matcher(value);\n return property(value);\n}\n\n// External wrapper for our callback generator. Users may customize\n// `_.iteratee` if they want additional predicate/iteratee shorthand styles.\n// This abstraction hides the internal-only `argCount` argument.\nfunction iteratee(value, context) {\n return baseIteratee(value, context, Infinity);\n}\n_$1.iteratee = iteratee;\n\n// The function we call internally to generate a callback. It invokes\n// `_.iteratee` if overridden, otherwise `baseIteratee`.\nfunction cb(value, context, argCount) {\n if (_$1.iteratee !== iteratee) return _$1.iteratee(value, context);\n return baseIteratee(value, context, argCount);\n}\n\n// Returns the results of applying the `iteratee` to each element of `obj`.\n// In contrast to `_.map` it returns an object.\nfunction mapObject(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = keys(obj),\n length = _keys.length,\n results = {};\n for (var index = 0; index < length; index++) {\n var currentKey = _keys[index];\n results[currentKey] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n\n// Predicate-generating function. Often useful outside of Underscore.\nfunction noop() {}\n\n// Generates a function for a given object that returns a given property.\nfunction propertyOf(obj) {\n if (obj == null) return noop;\n return function (path) {\n return get(obj, path);\n };\n}\n\n// Run a function **n** times.\nfunction times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n}\n\n// Return a random integer between `min` and `max` (inclusive).\nfunction random(min, max) {\n if (max == null) {\n max = min;\n min = 0;\n }\n return min + Math.floor(Math.random() * (max - min + 1));\n}\n\n// A (possibly faster) way to get the current timestamp as an integer.\nvar now = Date.now || function () {\n return new Date().getTime();\n};\n\n// Internal helper to generate functions for escaping and unescaping strings\n// to/from HTML interpolation.\nfunction createEscaper(map) {\n var escaper = function (match) {\n return map[match];\n };\n // Regexes for identifying a key that needs to be escaped.\n var source = '(?:' + keys(map).join('|') + ')';\n var testRegexp = RegExp(source);\n var replaceRegexp = RegExp(source, 'g');\n return function (string) {\n string = string == null ? '' : '' + string;\n return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;\n };\n}\n\n// Internal list of HTML entities for escaping.\nvar escapeMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`'\n};\n\n// Function for escaping strings to HTML interpolation.\nvar _escape = createEscaper(escapeMap);\n\n// Internal list of HTML entities for unescaping.\nvar unescapeMap = invert(escapeMap);\n\n// Function for unescaping strings from HTML interpolation.\nvar _unescape = createEscaper(unescapeMap);\n\n// By default, Underscore uses ERB-style template delimiters. Change the\n// following template settings to use alternative delimiters.\nvar templateSettings = _$1.templateSettings = {\n evaluate: /<%([\\s\\S]+?)%>/g,\n interpolate: /<%=([\\s\\S]+?)%>/g,\n escape: /<%-([\\s\\S]+?)%>/g\n};\n\n// When customizing `_.templateSettings`, if you don't want to define an\n// interpolation, evaluation or escaping regex, we need one that is\n// guaranteed not to match.\nvar noMatch = /(.)^/;\n\n// Certain characters need to be escaped so that they can be put into a\n// string literal.\nvar escapes = {\n \"'\": \"'\",\n '\\\\': '\\\\',\n '\\r': 'r',\n '\\n': 'n',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n};\n\nvar escapeRegExp = /\\\\|'|\\r|\\n|\\u2028|\\u2029/g;\n\nfunction escapeChar(match) {\n return '\\\\' + escapes[match];\n}\n\n// In order to prevent third-party code injection through\n// `_.templateSettings.variable`, we test it against the following regular\n// expression. It is intentionally a bit more liberal than just matching valid\n// identifiers, but still prevents possible loopholes through defaults or\n// destructuring assignment.\nvar bareIdentifier = /^\\s*(\\w|\\$)+\\s*$/;\n\n// JavaScript micro-templating, similar to John Resig's implementation.\n// Underscore templating handles arbitrary delimiters, preserves whitespace,\n// and correctly escapes quotes within interpolated code.\n// NB: `oldSettings` only exists for backwards compatibility.\nfunction template(text, settings, oldSettings) {\n if (!settings && oldSettings) settings = oldSettings;\n settings = defaults({}, settings, _$1.templateSettings);\n\n // Combine delimiters into one regular expression via alternation.\n var matcher = RegExp([\n (settings.escape || noMatch).source,\n (settings.interpolate || noMatch).source,\n (settings.evaluate || noMatch).source\n ].join('|') + '|$', 'g');\n\n // Compile the template source, escaping string literals appropriately.\n var index = 0;\n var source = \"__p+='\";\n text.replace(matcher, function (match, escape, interpolate, evaluate, offset) {\n source += text.slice(index, offset).replace(escapeRegExp, escapeChar);\n index = offset + match.length;\n\n if (escape) {\n source += \"'+\\n((__t=(\" + escape + \"))==null?'':_.escape(__t))+\\n'\";\n } else if (interpolate) {\n source += \"'+\\n((__t=(\" + interpolate + \"))==null?'':__t)+\\n'\";\n } else if (evaluate) {\n source += \"';\\n\" + evaluate + \"\\n__p+='\";\n }\n\n // Adobe VMs need the match returned to produce the correct offset.\n return match;\n });\n source += \"';\\n\";\n\n var argument = settings.variable;\n if (argument) {\n // Insure against third-party code injection. (CVE-2021-23358)\n if (!bareIdentifier.test(argument)) {\n throw new Error(\n 'variable is not a bare identifier: ' + argument\n );\n }\n } else {\n // If a variable is not specified, place data values in local scope.\n source = 'with(obj||{}){\\n' + source + '}\\n';\n argument = 'obj';\n }\n\n source = \"var __t,__p='',__j=Array.prototype.join,\" +\n \"print=function(){__p+=__j.call(arguments,'');};\\n\" +\n source + 'return __p;\\n';\n\n var render;\n try {\n render = new Function(argument, '_', source);\n } catch (e) {\n e.source = source;\n throw e;\n }\n\n var template = function (data) {\n return render.call(this, data, _$1);\n };\n\n // Provide the compiled source as a convenience for precompilation.\n template.source = 'function(' + argument + '){\\n' + source + '}';\n\n return template;\n}\n\n// Traverses the children of `obj` along `path`. If a child is a function, it\n// is invoked with its parent as context. Returns the value of the final\n// child, or `fallback` if any child is undefined.\nfunction result(obj, path, fallback) {\n path = toPath(path);\n var length = path.length;\n if (!length) {\n return isFunction$1(fallback) ? fallback.call(obj) : fallback;\n }\n for (var i = 0; i < length; i++) {\n var prop = obj == null ? void 0 : obj[path[i]];\n if (prop === void 0) {\n prop = fallback;\n i = length; // Ensure we don't continue iterating.\n }\n obj = isFunction$1(prop) ? prop.call(obj) : prop;\n }\n return obj;\n}\n\n// Generate a unique integer id (unique within the entire client session).\n// Useful for temporary DOM ids.\nvar idCounter = 0;\nfunction uniqueId(prefix) {\n var id = ++idCounter + '';\n return prefix ? prefix + id : id;\n}\n\n// Start chaining a wrapped Underscore object.\nfunction chain(obj) {\n var instance = _$1(obj);\n instance._chain = true;\n return instance;\n}\n\n// Internal function to execute `sourceFunc` bound to `context` with optional\n// `args`. Determines whether to execute a function as a constructor or as a\n// normal function.\nfunction executeBound(sourceFunc, boundFunc, context, callingContext, args) {\n if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);\n var self = baseCreate(sourceFunc.prototype);\n var result = sourceFunc.apply(self, args);\n if (isObject(result)) return result;\n return self;\n}\n\n// Partially apply a function by creating a version that has had some of its\n// arguments pre-filled, without changing its dynamic `this` context. `_` acts\n// as a placeholder by default, allowing any combination of arguments to be\n// pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.\nvar partial = restArguments(function (func, boundArgs) {\n var placeholder = partial.placeholder;\n var bound = function () {\n var position = 0,\n length = boundArgs.length;\n var args = Array(length);\n for (var i = 0; i < length; i++) {\n args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];\n }\n while (position < arguments.length) args.push(arguments[position++]);\n return executeBound(func, bound, this, this, args);\n };\n return bound;\n});\n\npartial.placeholder = _$1;\n\n// Create a function bound to a given object (assigning `this`, and arguments,\n// optionally).\nvar bind = restArguments(function (func, context, args) {\n if (!isFunction$1(func)) throw new TypeError('Bind must be called on a function');\n var bound = restArguments(function (callArgs) {\n return executeBound(func, bound, context, this, args.concat(callArgs));\n });\n return bound;\n});\n\n// Internal helper for collection methods to determine whether a collection\n// should be iterated as an array or as an object.\n// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\n// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\nvar isArrayLike = createSizePropertyCheck(getLength);\n\n// Internal implementation of a recursive `flatten` function.\nfunction flatten$1(input, depth, strict, output) {\n output = output || [];\n if (!depth && depth !== 0) {\n depth = Infinity;\n } else if (depth <= 0) {\n return output.concat(input);\n }\n var idx = output.length;\n for (var i = 0, length = getLength(input); i < length; i++) {\n var value = input[i];\n if (isArrayLike(value) && (isArray(value) || isArguments$1(value))) {\n // Flatten current level of array or arguments object.\n if (depth > 1) {\n flatten$1(value, depth - 1, strict, output);\n idx = output.length;\n } else {\n var j = 0,\n len = value.length;\n while (j < len) output[idx++] = value[j++];\n }\n } else if (!strict) {\n output[idx++] = value;\n }\n }\n return output;\n}\n\n// Bind a number of an object's methods to that object. Remaining arguments\n// are the method names to be bound. Useful for ensuring that all callbacks\n// defined on an object belong to it.\nvar bindAll = restArguments(function (obj, keys) {\n keys = flatten$1(keys, false, false);\n var index = keys.length;\n if (index < 1) throw new Error('bindAll must be passed function names');\n while (index--) {\n var key = keys[index];\n obj[key] = bind(obj[key], obj);\n }\n return obj;\n});\n\n// Memoize an expensive function by storing its results.\nfunction memoize(func, hasher) {\n var memoize = function (key) {\n var cache = memoize.cache;\n var address = '' + (hasher ? hasher.apply(this, arguments) : key);\n if (!has$1(cache, address)) cache[address] = func.apply(this, arguments);\n return cache[address];\n };\n memoize.cache = {};\n return memoize;\n}\n\n// Delays a function for the given number of milliseconds, and then calls\n// it with the arguments supplied.\nvar delay = restArguments(function (func, wait, args) {\n return setTimeout(function () {\n return func.apply(null, args);\n }, wait);\n});\n\n// Defers a function, scheduling it to run after the current call stack has\n// cleared.\nvar defer = partial(delay, _$1, 1);\n\n// Returns a function, that, when invoked, will only be triggered at most once\n// during a given window of time. Normally, the throttled function will run\n// as much as it can, without ever going more than once per `wait` duration;\n// but if you'd like to disable the execution on the leading edge, pass\n// `{leading: false}`. To disable execution on the trailing edge, ditto.\nfunction throttle(func, wait, options) {\n var timeout,\n context,\n args,\n result;\n var previous = 0;\n if (!options) options = {};\n\n var later = function () {\n previous = options.leading === false ? 0 : now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n };\n\n var throttled = function () {\n var _now = now();\n if (!previous && options.leading === false) previous = _now;\n var remaining = wait - (_now - previous);\n context = this;\n args = arguments;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = _now;\n result = func.apply(context, args);\n if (!timeout) context = args = null;\n } else if (!timeout && options.trailing !== false) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n\n throttled.cancel = function () {\n clearTimeout(timeout);\n previous = 0;\n timeout = context = args = null;\n };\n\n return throttled;\n}\n\n// When a sequence of calls of the returned function ends, the argument\n// function is triggered. The end of a sequence is defined by the `wait`\n// parameter. If `immediate` is passed, the argument function will be\n// triggered at the beginning of the sequence instead of at the end.\nfunction debounce(func, wait, immediate) {\n var timeout,\n previous,\n args,\n result,\n context;\n\n var later = function () {\n var passed = now() - previous;\n if (wait > passed) {\n timeout = setTimeout(later, wait - passed);\n } else {\n timeout = null;\n if (!immediate) result = func.apply(context, args);\n // This check is needed because `func` can recursively invoke `debounced`.\n if (!timeout) args = context = null;\n }\n };\n\n var debounced = restArguments(function (_args) {\n context = this;\n args = _args;\n previous = now();\n if (!timeout) {\n timeout = setTimeout(later, wait);\n if (immediate) result = func.apply(context, args);\n }\n return result;\n });\n\n debounced.cancel = function () {\n clearTimeout(timeout);\n timeout = args = context = null;\n };\n\n return debounced;\n}\n\n// Returns the first function passed as an argument to the second,\n// allowing you to adjust arguments, run code before and after, and\n// conditionally execute the original function.\nfunction wrap(func, wrapper) {\n return partial(wrapper, func);\n}\n\n// Returns a negated version of the passed-in predicate.\nfunction negate(predicate) {\n return function () {\n return !predicate.apply(this, arguments);\n };\n}\n\n// Returns a function that is the composition of a list of functions, each\n// consuming the return value of the function that follows.\nfunction compose() {\n var args = arguments;\n var start = args.length - 1;\n return function () {\n var i = start;\n var result = args[start].apply(this, arguments);\n while (i--) result = args[i].call(this, result);\n return result;\n };\n}\n\n// Returns a function that will only be executed on and after the Nth call.\nfunction after(times, func) {\n return function () {\n if (--times < 1) {\n return func.apply(this, arguments);\n }\n };\n}\n\n// Returns a function that will only be executed up to (but not including) the\n// Nth call.\nfunction before(times, func) {\n var memo;\n return function () {\n if (--times > 0) {\n memo = func.apply(this, arguments);\n }\n if (times <= 1) func = null;\n return memo;\n };\n}\n\n// Returns a function that will be executed at most one time, no matter how\n// often you call it. Useful for lazy initialization.\nvar once = partial(before, 2);\n\n// Returns the first key on an object that passes a truth test.\nfunction findKey(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = keys(obj),\n key;\n for (var i = 0, length = _keys.length; i < length; i++) {\n key = _keys[i];\n if (predicate(obj[key], key, obj)) return key;\n }\n}\n\n// Internal function to generate `_.findIndex` and `_.findLastIndex`.\nfunction createPredicateIndexFinder(dir) {\n return function (array, predicate, context) {\n predicate = cb(predicate, context);\n var length = getLength(array);\n var index = dir > 0 ? 0 : length - 1;\n for (; index >= 0 && index < length; index += dir) {\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n };\n}\n\n// Returns the first index on an array-like that passes a truth test.\nvar findIndex = createPredicateIndexFinder(1);\n\n// Returns the last index on an array-like that passes a truth test.\nvar findLastIndex = createPredicateIndexFinder(-1);\n\n// Use a comparator function to figure out the smallest index at which\n// an object should be inserted so as to maintain order. Uses binary search.\nfunction sortedIndex(array, obj, iteratee, context) {\n iteratee = cb(iteratee, context, 1);\n var value = iteratee(obj);\n var low = 0,\n high = getLength(array);\n while (low < high) {\n var mid = Math.floor((low + high) / 2);\n if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;\n }\n return low;\n}\n\n// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.\nfunction createIndexFinder(dir, predicateFind, sortedIndex) {\n return function (array, item, idx) {\n var i = 0,\n length = getLength(array);\n if (typeof idx == 'number') {\n if (dir > 0) {\n i = idx >= 0 ? idx : Math.max(idx + length, i);\n } else {\n length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\n }\n } else if (sortedIndex && idx && length) {\n idx = sortedIndex(array, item);\n return array[idx] === item ? idx : -1;\n }\n if (item !== item) {\n idx = predicateFind(slice.call(array, i, length), isNaN$1);\n return idx >= 0 ? idx + i : -1;\n }\n for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\n if (array[idx] === item) return idx;\n }\n return -1;\n };\n}\n\n// Return the position of the first occurrence of an item in an array,\n// or -1 if the item is not included in the array.\n// If the array is large and already in sort order, pass `true`\n// for **isSorted** to use binary search.\nvar indexOf = createIndexFinder(1, findIndex, sortedIndex);\n\n// Return the position of the last occurrence of an item in an array,\n// or -1 if the item is not included in the array.\nvar lastIndexOf = createIndexFinder(-1, findLastIndex);\n\n// Return the first value which passes a truth test.\nfunction find(obj, predicate, context) {\n var keyFinder = isArrayLike(obj) ? findIndex : findKey;\n var key = keyFinder(obj, predicate, context);\n if (key !== void 0 && key !== -1) return obj[key];\n}\n\n// Convenience version of a common use case of `_.find`: getting the first\n// object containing specific `key:value` pairs.\nfunction findWhere(obj, attrs) {\n return find(obj, matcher(attrs));\n}\n\n// The cornerstone for collection functions, an `each`\n// implementation, aka `forEach`.\n// Handles raw objects in addition to array-likes. Treats all\n// sparse array-likes as if they were dense.\nfunction each(obj, iteratee, context) {\n iteratee = optimizeCb(iteratee, context);\n var i,\n length;\n if (isArrayLike(obj)) {\n for (i = 0, length = obj.length; i < length; i++) {\n iteratee(obj[i], i, obj);\n }\n } else {\n var _keys = keys(obj);\n for (i = 0, length = _keys.length; i < length; i++) {\n iteratee(obj[_keys[i]], _keys[i], obj);\n }\n }\n return obj;\n}\n\n// Return the results of applying the iteratee to each element.\nfunction map(obj, iteratee, context) {\n iteratee = cb(iteratee, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n results = Array(length);\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n results[index] = iteratee(obj[currentKey], currentKey, obj);\n }\n return results;\n}\n\n// Internal helper to create a reducing function, iterating left or right.\nfunction createReduce(dir) {\n // Wrap code that reassigns argument variables in a separate function than\n // the one that accesses `arguments.length` to avoid a perf hit. (#1991)\n var reducer = function (obj, iteratee, memo, initial) {\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n index = dir > 0 ? 0 : length - 1;\n if (!initial) {\n memo = obj[_keys ? _keys[index] : index];\n index += dir;\n }\n for (; index >= 0 && index < length; index += dir) {\n var currentKey = _keys ? _keys[index] : index;\n memo = iteratee(memo, obj[currentKey], currentKey, obj);\n }\n return memo;\n };\n\n return function (obj, iteratee, memo, context) {\n var initial = arguments.length >= 3;\n return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);\n };\n}\n\n// **Reduce** builds up a single result from a list of values, aka `inject`,\n// or `foldl`.\nvar reduce = createReduce(1);\n\n// The right-associative version of reduce, also known as `foldr`.\nvar reduceRight = createReduce(-1);\n\n// Return all the elements that pass a truth test.\nfunction filter(obj, predicate, context) {\n var results = [];\n predicate = cb(predicate, context);\n each(obj, function (value, index, list) {\n if (predicate(value, index, list)) results.push(value);\n });\n return results;\n}\n\n// Return all the elements for which a truth test fails.\nfunction reject(obj, predicate, context) {\n return filter(obj, negate(cb(predicate)), context);\n}\n\n// Determine whether all of the elements pass a truth test.\nfunction every(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (!predicate(obj[currentKey], currentKey, obj)) return false;\n }\n return true;\n}\n\n// Determine if at least one element in the object passes a truth test.\nfunction some(obj, predicate, context) {\n predicate = cb(predicate, context);\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length;\n for (var index = 0; index < length; index++) {\n var currentKey = _keys ? _keys[index] : index;\n if (predicate(obj[currentKey], currentKey, obj)) return true;\n }\n return false;\n}\n\n// Determine if the array or object contains a given item (using `===`).\nfunction contains(obj, item, fromIndex, guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n if (typeof fromIndex != 'number' || guard) fromIndex = 0;\n return indexOf(obj, item, fromIndex) >= 0;\n}\n\n// Invoke a method (with arguments) on every item in a collection.\nvar invoke = restArguments(function (obj, path, args) {\n var contextPath,\n func;\n if (isFunction$1(path)) {\n func = path;\n } else {\n path = toPath(path);\n contextPath = path.slice(0, -1);\n path = path[path.length - 1];\n }\n return map(obj, function (context) {\n var method = func;\n if (!method) {\n if (contextPath && contextPath.length) {\n context = deepGet(context, contextPath);\n }\n if (context == null) return void 0;\n method = context[path];\n }\n return method == null ? method : method.apply(context, args);\n });\n});\n\n// Convenience version of a common use case of `_.map`: fetching a property.\nfunction pluck(obj, key) {\n return map(obj, property(key));\n}\n\n// Convenience version of a common use case of `_.filter`: selecting only\n// objects containing specific `key:value` pairs.\nfunction where(obj, attrs) {\n return filter(obj, matcher(attrs));\n}\n\n// Return the maximum element (or element-based computation).\nfunction max(obj, iteratee, context) {\n var result = -Infinity,\n lastComputed = -Infinity,\n value,\n computed;\n if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value > result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function (v, index, list) {\n computed = iteratee(v, index, list);\n if (computed > lastComputed || computed === -Infinity && result === -Infinity) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n\n// Return the minimum element (or element-based computation).\nfunction min(obj, iteratee, context) {\n var result = Infinity,\n lastComputed = Infinity,\n value,\n computed;\n if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {\n obj = isArrayLike(obj) ? obj : values(obj);\n for (var i = 0, length = obj.length; i < length; i++) {\n value = obj[i];\n if (value != null && value < result) {\n result = value;\n }\n }\n } else {\n iteratee = cb(iteratee, context);\n each(obj, function (v, index, list) {\n computed = iteratee(v, index, list);\n if (computed < lastComputed || computed === Infinity && result === Infinity) {\n result = v;\n lastComputed = computed;\n }\n });\n }\n return result;\n}\n\n// Sample **n** random values from a collection using the modern version of the\n// [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).\n// If **n** is not specified, returns a single random element.\n// The internal `guard` argument allows it to work with `_.map`.\nfunction sample(obj, n, guard) {\n if (n == null || guard) {\n if (!isArrayLike(obj)) obj = values(obj);\n return obj[random(obj.length - 1)];\n }\n var sample = isArrayLike(obj) ? clone(obj) : values(obj);\n var length = getLength(sample);\n n = Math.max(Math.min(n, length), 0);\n var last = length - 1;\n for (var index = 0; index < n; index++) {\n var rand = random(index, last);\n var temp = sample[index];\n sample[index] = sample[rand];\n sample[rand] = temp;\n }\n return sample.slice(0, n);\n}\n\n// Shuffle a collection.\nfunction shuffle(obj) {\n return sample(obj, Infinity);\n}\n\n// Sort the object's values by a criterion produced by an iteratee.\nfunction sortBy(obj, iteratee, context) {\n var index = 0;\n iteratee = cb(iteratee, context);\n return pluck(map(obj, function (value, key, list) {\n return {\n value: value,\n index: index++,\n criteria: iteratee(value, key, list)\n };\n }).sort(function (left, right) {\n var a = left.criteria;\n var b = right.criteria;\n if (a !== b) {\n if (a > b || a === void 0) return 1;\n if (a < b || b === void 0) return -1;\n }\n return left.index - right.index;\n }), 'value');\n}\n\n// An internal function used for aggregate \"group by\" operations.\nfunction group(behavior, partition) {\n return function (obj, iteratee, context) {\n var result = partition ? [[], []] : {};\n iteratee = cb(iteratee, context);\n each(obj, function (value, index) {\n var key = iteratee(value, index, obj);\n behavior(result, value, key);\n });\n return result;\n };\n}\n\n// Groups the object's values by a criterion. Pass either a string attribute\n// to group by, or a function that returns the criterion.\nvar groupBy = group(function (result, value, key) {\n if (has$1(result, key)) result[key].push(value); else result[key] = [value];\n});\n\n// Indexes the object's values by a criterion, similar to `_.groupBy`, but for\n// when you know that your index values will be unique.\nvar indexBy = group(function (result, value, key) {\n result[key] = value;\n});\n\n// Counts instances of an object that group by a certain criterion. Pass\n// either a string attribute to count by, or a function that returns the\n// criterion.\nvar countBy = group(function (result, value, key) {\n if (has$1(result, key)) result[key]++; else result[key] = 1;\n});\n\n// Split a collection into two arrays: one whose elements all pass the given\n// truth test, and one whose elements all do not pass the truth test.\nvar partition = group(function (result, value, pass) {\n result[pass ? 0 : 1].push(value);\n}, true);\n\n// Safely create a real, live array from anything iterable.\nvar reStrSymbol = /[^\\ud800-\\udfff]|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff]/g;\nfunction toArray(obj) {\n if (!obj) return [];\n if (isArray(obj)) return slice.call(obj);\n if (isString(obj)) {\n // Keep surrogate pair characters together.\n return obj.match(reStrSymbol);\n }\n if (isArrayLike(obj)) return map(obj, identity);\n return values(obj);\n}\n\n// Return the number of elements in a collection.\nfunction size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n}\n\n// Internal `_.pick` helper function to determine whether `key` is an enumerable\n// property name of `obj`.\nfunction keyInObj(value, key, obj) {\n return key in obj;\n}\n\n// Return a copy of the object only containing the allowed properties.\nvar pick = restArguments(function (obj, keys) {\n var result = {},\n iteratee = keys[0];\n if (obj == null) return result;\n if (isFunction$1(iteratee)) {\n if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);\n keys = allKeys(obj);\n } else {\n iteratee = keyInObj;\n keys = flatten$1(keys, false, false);\n obj = Object(obj);\n }\n for (var i = 0, length = keys.length; i < length; i++) {\n var key = keys[i];\n var value = obj[key];\n if (iteratee(value, key, obj)) result[key] = value;\n }\n return result;\n});\n\n// Return a copy of the object without the disallowed properties.\nvar omit = restArguments(function (obj, keys) {\n var iteratee = keys[0],\n context;\n if (isFunction$1(iteratee)) {\n iteratee = negate(iteratee);\n if (keys.length > 1) context = keys[1];\n } else {\n keys = map(flatten$1(keys, false, false), String);\n iteratee = function (value, key) {\n return !contains(keys, key);\n };\n }\n return pick(obj, iteratee, context);\n});\n\n// Returns everything but the last entry of the array. Especially useful on\n// the arguments object. Passing **n** will return all the values in\n// the array, excluding the last N.\nfunction initial(array, n, guard) {\n return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));\n}\n\n// Get the first element of an array. Passing **n** will return the first N\n// values in the array. The **guard** check allows it to work with `_.map`.\nfunction first(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[0];\n return initial(array, array.length - n);\n}\n\n// Returns everything but the first entry of the `array`. Especially useful on\n// the `arguments` object. Passing an **n** will return the rest N values in the\n// `array`.\nfunction rest(array, n, guard) {\n return slice.call(array, n == null || guard ? 1 : n);\n}\n\n// Get the last element of an array. Passing **n** will return the last N\n// values in the array.\nfunction last(array, n, guard) {\n if (array == null || array.length < 1) return n == null || guard ? void 0 : [];\n if (n == null || guard) return array[array.length - 1];\n return rest(array, Math.max(0, array.length - n));\n}\n\n// Trim out all falsy values from an array.\nfunction compact(array) {\n return filter(array, Boolean);\n}\n\n// Flatten out an array, either recursively (by default), or up to `depth`.\n// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.\nfunction flatten(array, depth) {\n return flatten$1(array, depth, false);\n}\n\n// Take the difference between one array and a number of other arrays.\n// Only the elements present in just the first array will remain.\nvar difference = restArguments(function (array, rest) {\n rest = flatten$1(rest, true, true);\n return filter(array, function (value) {\n return !contains(rest, value);\n });\n});\n\n// Return a version of the array that does not contain the specified value(s).\nvar without = restArguments(function (array, otherArrays) {\n return difference(array, otherArrays);\n});\n\n// Produce a duplicate-free version of the array. If the array has already\n// been sorted, you have the option of using a faster algorithm.\n// The faster algorithm will not work with an iteratee if the iteratee\n// is not a one-to-one function, so providing an iteratee will disable\n// the faster algorithm.\nfunction uniq(array, isSorted, iteratee, context) {\n if (!isBoolean(isSorted)) {\n context = iteratee;\n iteratee = isSorted;\n isSorted = false;\n }\n if (iteratee != null) iteratee = cb(iteratee, context);\n var result = [];\n var seen = [];\n for (var i = 0, length = getLength(array); i < length; i++) {\n var value = array[i],\n computed = iteratee ? iteratee(value, i, array) : value;\n if (isSorted && !iteratee) {\n if (!i || seen !== computed) result.push(value);\n seen = computed;\n } else if (iteratee) {\n if (!contains(seen, computed)) {\n seen.push(computed);\n result.push(value);\n }\n } else if (!contains(result, value)) {\n result.push(value);\n }\n }\n return result;\n}\n\n// Produce an array that contains the union: each distinct element from all of\n// the passed-in arrays.\nvar union = restArguments(function (arrays) {\n return uniq(flatten$1(arrays, true, true));\n});\n\n// Produce an array that contains every item shared between all the\n// passed-in arrays.\nfunction intersection(array) {\n var result = [];\n var argsLength = arguments.length;\n for (var i = 0, length = getLength(array); i < length; i++) {\n var item = array[i];\n if (contains(result, item)) continue;\n var j;\n for (j = 1; j < argsLength; j++) {\n if (!contains(arguments[j], item)) break;\n }\n if (j === argsLength) result.push(item);\n }\n return result;\n}\n\n// Complement of zip. Unzip accepts an array of arrays and groups\n// each array's elements on shared indices.\nfunction unzip(array) {\n var length = array && max(array, getLength).length || 0;\n var result = Array(length);\n\n for (var index = 0; index < length; index++) {\n result[index] = pluck(array, index);\n }\n return result;\n}\n\n// Zip together multiple lists into a single array -- elements that share\n// an index go together.\nvar zip = restArguments(unzip);\n\n// Converts lists into objects. Pass either a single array of `[key, value]`\n// pairs, or two parallel arrays of the same length -- one of keys, and one of\n// the corresponding values. Passing by pairs is the reverse of `_.pairs`.\nfunction object(list, values) {\n var result = {};\n for (var i = 0, length = getLength(list); i < length; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n\n// Generate an integer Array containing an arithmetic progression. A port of\n// the native Python `range()` function. See\n// [the Python documentation](https://docs.python.org/library/functions.html#range).\nfunction range(start, stop, step) {\n if (stop == null) {\n stop = start || 0;\n start = 0;\n }\n if (!step) {\n step = stop < start ? -1 : 1;\n }\n\n var length = Math.max(Math.ceil((stop - start) / step), 0);\n var range = Array(length);\n\n for (var idx = 0; idx < length; idx++, start += step) {\n range[idx] = start;\n }\n\n return range;\n}\n\n// Chunk a single array into multiple arrays, each containing `count` or fewer\n// items.\nfunction chunk(array, count) {\n if (count == null || count < 1) return [];\n var result = [];\n var i = 0,\n length = array.length;\n while (i < length) {\n result.push(slice.call(array, i, i += count));\n }\n return result;\n}\n\n// Helper function to continue chaining intermediate results.\nfunction chainResult(instance, obj) {\n return instance._chain ? _$1(obj).chain() : obj;\n}\n\n// Add your own custom functions to the Underscore object.\nfunction mixin(obj) {\n each(functions(obj), function (name) {\n var func = _$1[name] = obj[name];\n _$1.prototype[name] = function () {\n var args = [this._wrapped];\n push.apply(args, arguments);\n return chainResult(this, func.apply(_$1, args));\n };\n });\n return _$1;\n}\n\n// Add all mutator `Array` functions to the wrapper.\neach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function (name) {\n var method = ArrayProto[name];\n _$1.prototype[name] = function () {\n var obj = this._wrapped;\n if (obj != null) {\n method.apply(obj, arguments);\n if ((name === 'shift' || name === 'splice') && obj.length === 0) {\n delete obj[0];\n }\n }\n return chainResult(this, obj);\n };\n});\n\n// Add all accessor `Array` functions to the wrapper.\neach(['concat', 'join', 'slice'], function (name) {\n var method = ArrayProto[name];\n _$1.prototype[name] = function () {\n var obj = this._wrapped;\n if (obj != null) obj = method.apply(obj, arguments);\n return chainResult(this, obj);\n };\n});\n\n// Named Exports\n\nvar allExports = {\n __proto__: null,\n VERSION: VERSION,\n restArguments: restArguments,\n isObject: isObject,\n isNull: isNull,\n isUndefined: isUndefined,\n isBoolean: isBoolean,\n isElement: isElement,\n isString: isString,\n isNumber: isNumber,\n isDate: isDate,\n isRegExp: isRegExp,\n isError: isError,\n isSymbol: isSymbol,\n isArrayBuffer: isArrayBuffer,\n isDataView: isDataView$1,\n isArray: isArray,\n isFunction: isFunction$1,\n isArguments: isArguments$1,\n isFinite: isFinite$1,\n isNaN: isNaN$1,\n isTypedArray: isTypedArray$1,\n isEmpty: isEmpty,\n isMatch: isMatch,\n isEqual: isEqual,\n isMap: isMap,\n isWeakMap: isWeakMap,\n isSet: isSet,\n isWeakSet: isWeakSet,\n keys: keys,\n allKeys: allKeys,\n values: values,\n pairs: pairs,\n invert: invert,\n functions: functions,\n methods: functions,\n extend: extend,\n extendOwn: extendOwn,\n assign: extendOwn,\n defaults: defaults,\n create: create,\n clone: clone,\n tap: tap,\n get: get,\n has: has,\n mapObject: mapObject,\n identity: identity,\n constant: constant,\n noop: noop,\n toPath: toPath$1,\n property: property,\n propertyOf: propertyOf,\n matcher: matcher,\n matches: matcher,\n times: times,\n random: random,\n now: now,\n escape: _escape,\n unescape: _unescape,\n templateSettings: templateSettings,\n template: template,\n result: result,\n uniqueId: uniqueId,\n chain: chain,\n iteratee: iteratee,\n partial: partial,\n bind: bind,\n bindAll: bindAll,\n memoize: memoize,\n delay: delay,\n defer: defer,\n throttle: throttle,\n debounce: debounce,\n wrap: wrap,\n negate: negate,\n compose: compose,\n after: after,\n before: before,\n once: once,\n findKey: findKey,\n findIndex: findIndex,\n findLastIndex: findLastIndex,\n sortedIndex: sortedIndex,\n indexOf: indexOf,\n lastIndexOf: lastIndexOf,\n find: find,\n detect: find,\n findWhere: findWhere,\n each: each,\n forEach: each,\n map: map,\n collect: map,\n reduce: reduce,\n foldl: reduce,\n inject: reduce,\n reduceRight: reduceRight,\n foldr: reduceRight,\n filter: filter,\n select: filter,\n reject: reject,\n every: every,\n all: every,\n some: some,\n any: some,\n contains: contains,\n includes: contains,\n include: contains,\n invoke: invoke,\n pluck: pluck,\n where: where,\n max: max,\n min: min,\n shuffle: shuffle,\n sample: sample,\n sortBy: sortBy,\n groupBy: groupBy,\n indexBy: indexBy,\n countBy: countBy,\n partition: partition,\n toArray: toArray,\n size: size,\n pick: pick,\n omit: omit,\n first: first,\n head: first,\n take: first,\n initial: initial,\n last: last,\n rest: rest,\n tail: rest,\n drop: rest,\n compact: compact,\n flatten: flatten,\n without: without,\n uniq: uniq,\n unique: uniq,\n union: union,\n intersection: intersection,\n difference: difference,\n unzip: unzip,\n transpose: unzip,\n zip: zip,\n object: object,\n range: range,\n chunk: chunk,\n mixin: mixin,\n default: _$1\n};\n\n// Default Export\n\n// Add all of the Underscore functions to the wrapper object.\nvar _ = mixin(allExports);\n// Legacy Node.js API.\n_._ = _;\n\n// ESM Exports\n\nexport default _;\nexport { VERSION, after, every as all, allKeys, some as any, extendOwn as assign, before, bind, bindAll, chain, chunk, clone, map as collect, compact, compose, constant, contains, countBy, create, debounce, defaults, defer, delay, find as detect, difference, rest as drop, each, _escape as escape, every, extend, extendOwn, filter, find, findIndex, findKey, findLastIndex, findWhere, first, flatten, reduce as foldl, reduceRight as foldr, each as forEach, functions, get, groupBy, has, first as head, identity, contains as include, contains as includes, indexBy, indexOf, initial, reduce as inject, intersection, invert, invoke, isArguments$1 as isArguments, isArray, isArrayBuffer, isBoolean, isDataView$1 as isDataView, isDate, isElement, isEmpty, isEqual, isError, isFinite$1 as isFinite, isFunction$1 as isFunction, isMap, isMatch, isNaN$1 as isNaN, isNull, isNumber, isObject, isRegExp, isSet, isString, isSymbol, isTypedArray$1 as isTypedArray, isUndefined, isWeakMap, isWeakSet, iteratee, keys, last, lastIndexOf, map, mapObject, matcher, matcher as matches, max, memoize, functions as methods, min, mixin, negate, noop, now, object, omit, once, pairs, partial, partition, pick, pluck, property, propertyOf, random, range, reduce, reduceRight, reject, rest, restArguments, result, sample, filter as select, shuffle, size, some, sortBy, sortedIndex, rest as tail, first as take, tap, template, templateSettings, throttle, times, toArray, toPath$1 as toPath, unzip as transpose, _unescape as unescape, union, uniq, uniq as unique, uniqueId, unzip, values, where, without, wrap, zip };\n// # sourceMappingURL=underscore-esm.js.map\n","// noinspection DuplicatedCode\n\n'use strict';\n\n/**\n * Sets nested property of a specified object.\n *\n * @param {Object} parent - Object to look inside for the properties.\n * @param {Array} path - Split path the property.\n * @param {*} value - Value of the last property in 'path' array.\n * @returns {*} New value for the property.\n */\nfunction setNested(parent, path, value) {\n let last = path.pop(),\n len = path.length,\n pi = 0,\n part = path[pi];\n\n for (; pi < len; part = path[++pi]) {\n const type = typeof parent[part];\n if (!(type === 'function' || type === 'object' && !!parent[part])) {\n parent[part] = {};\n }\n\n parent = parent[part];\n }\n\n if (typeof parent[last] === 'function') {\n parent[last](value);\n } else {\n parent[last] = value;\n }\n\n return value;\n}\n\nconst exports = (_) => {\n return {\n /**\n * Opposite operation of the 'flatten' method.\n *\n * @param {Object} data - Previously flattened object.\n * @param {String} [separator='.'] - Keys separator.\n * @returns {Object} Object with nested properties.\n *\n * @example Example using custom separator.\n * _.unflatten({'one=>two': 'value'}, '=>');\n * => {\n * one: { two: 'value' }\n * };\n */\n unflatten: (data, separator) => {\n let result = {};\n\n separator = separator || '.';\n\n _.each(data, function (value, nodes) {\n nodes = nodes.split(separator);\n\n setNested(result, nodes, value);\n });\n\n return result;\n },\n unset: (subject, path) => { // NOSONAR\n let pathArray = !Array.isArray(path) ? [path] : path;\n const field = pathArray.pop();\n\n let parent = _.get(subject, pathArray);\n if (parent.hasOwnProperty(field)) {\n delete parent[field];\n }\n return subject;\n },\n set: setNested,\n merge: (target, source, replaceOnLevel) => {\n let _replaceOnLevel,\n _currentLevel = 0;\n if (_.isNumber(replaceOnLevel)) {\n _replaceOnLevel = replaceOnLevel;\n } else if (_.isArray(replaceOnLevel)) {\n _replaceOnLevel = replaceOnLevel[0];\n _currentLevel = replaceOnLevel[1];\n }\n _.each(source, function (value, key) {\n if (!_.isUndefined(target[key]) && !(typeof _replaceOnLevel === 'number' && _currentLevel === _replaceOnLevel)) {\n if (!_.isArray(target[key]) && !_.isObject(target[key])) {\n if (_.isNumber(key) && _.isArray(target)) {\n target.push(value);\n target = _.uniq(target);\n } else {\n target[key] = value;\n }\n } else if (_.keys(target[key]) === _.range(0, _.keys(target[key]).length - 1)) {\n target[key] = _.uniq(_.extend(target[key], value)); // Check - maybe needed recursive call there.\n } else {\n target[key] = _.merge(target[key], value);\n }\n } else {\n target[key] = value;\n }\n });\n // TODO Remove properties not more present in object.\n return target;\n }\n };\n};\n\nexport default (_) => exports(_);\n","/* eslint-disable */\n\n/*\n* Underscore.string\n* (c) 2010 Esa-Matti Suuronen \n* Underscore.string is freely distributable under the terms of the MIT license.\n* Documentation: https://github.com/epeli/underscore.string\n* Some code is borrowed from MooTools and Alexandru Marasteanu.\n* Version '3.3.6'\n* @preserve\n*/\n\n(function (f) { if (typeof exports === 'object' && typeof module !== 'undefined') { module.exports = f(); } else if (typeof define === 'function' && define.amd) { define([], f); } else { var g; if (typeof window !== 'undefined') { g = window; } else if (typeof global !== 'undefined') { g = global; } else if (typeof self !== 'undefined') { g = self; } else { g = this; }g.s = f(); } }(function () {\n var define,\n module,\n exports; return (function () { function r(e, n, t) { function o(i, f) { if (!n[i]) { if (!e[i]) { var c = typeof require == 'function' && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); var a = new Error(\"Cannot find module '\" + i + \"'\"); throw a.code = 'MODULE_NOT_FOUND', a; } var p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { var n = e[i][1][r]; return o(n || r); }, p, p.exports, r, e, n, t); } return n[i].exports; } for (var u = typeof require == 'function' && require, i = 0; i < t.length; i++)o(t[i]); return o; } return r; }())({ 1: [function (require, module, exports) {\n var trim = require('./trim');\n var decap = require('./decapitalize');\n\n module.exports = function camelize(str, decapitalize) {\n str = trim(str).replace(/[-_\\s]+(.)?/g, function (match, c) {\n return c ? c.toUpperCase() : '';\n });\n\n if (decapitalize === true) {\n return decap(str);\n }\n return str;\n };\n }, { './decapitalize': 10, './trim': 65 }],\n 2: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function capitalize(str, lowercaseRest) {\n str = makeString(str);\n var remainingChars = !lowercaseRest ? str.slice(1) : str.slice(1).toLowerCase();\n\n return str.charAt(0).toUpperCase() + remainingChars;\n };\n }, { './helper/makeString': 20 }],\n 3: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function chars(str) {\n return makeString(str).split('');\n };\n }, { './helper/makeString': 20 }],\n 4: [function (require, module, exports) {\n module.exports = function chop(str, step) {\n if (str == null) return [];\n str = String(str);\n step = ~~step;\n return step > 0 ? str.match(new RegExp('.{1,' + step + '}', 'g')) : [str];\n };\n }, {}],\n 5: [function (require, module, exports) {\n var capitalize = require('./capitalize');\n var camelize = require('./camelize');\n var makeString = require('./helper/makeString');\n\n module.exports = function classify(str) {\n str = makeString(str);\n return capitalize(camelize(str.replace(/[\\W_]/g, ' ')).replace(/\\s/g, ''));\n };\n }, { './camelize': 1, './capitalize': 2, './helper/makeString': 20 }],\n 6: [function (require, module, exports) {\n var trim = require('./trim');\n\n module.exports = function clean(str) {\n return trim(str).replace(/\\s\\s+/g, ' ');\n };\n }, { './trim': 65 }],\n 7: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n var from = 'ąàáäâãåæăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž',\n to = 'aaaaaaaaaccceeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz';\n\n from += from.toUpperCase();\n to += to.toUpperCase();\n\n to = to.split('');\n\n // for tokens requireing multitoken output\n from += 'ß';\n to.push('ss');\n\n\n module.exports = function cleanDiacritics(str) {\n return makeString(str).replace(/.{1}/g, function (c) {\n var index = from.indexOf(c);\n return index === -1 ? c : to[index];\n });\n };\n }, { './helper/makeString': 20 }],\n 8: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function (str, substr) {\n str = makeString(str);\n substr = makeString(substr);\n\n if (str.length === 0 || substr.length === 0) return 0;\n\n return str.split(substr).length - 1;\n };\n }, { './helper/makeString': 20 }],\n 9: [function (require, module, exports) {\n var trim = require('./trim');\n\n module.exports = function dasherize(str) {\n return trim(str).replace(/([A-Z])/g, '-$1').replace(/[-_\\s]+/g, '-').toLowerCase();\n };\n }, { './trim': 65 }],\n 10: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function decapitalize(str) {\n str = makeString(str);\n return str.charAt(0).toLowerCase() + str.slice(1);\n };\n }, { './helper/makeString': 20 }],\n 11: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n function getIndent(str) {\n var matches = str.match(/^[\\s\\\\t]*/gm);\n var indent = matches[0].length;\n\n for (var i = 1; i < matches.length; i++) {\n indent = Math.min(matches[i].length, indent);\n }\n\n return indent;\n }\n\n module.exports = function dedent(str, pattern) {\n str = makeString(str);\n var indent = getIndent(str);\n var reg;\n\n if (indent === 0) return str;\n\n if (typeof pattern === 'string') {\n reg = new RegExp('^' + pattern, 'gm');\n } else {\n reg = new RegExp('^[ \\\\t]{' + indent + '}', 'gm');\n }\n\n return str.replace(reg, '');\n };\n }, { './helper/makeString': 20 }],\n 12: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var toPositive = require('./helper/toPositive');\n\n module.exports = function endsWith(str, ends, position) {\n str = makeString(str);\n ends = '' + ends;\n if (typeof position == 'undefined') {\n position = str.length - ends.length;\n } else {\n position = Math.min(toPositive(position), str.length) - ends.length;\n }\n return position >= 0 && str.indexOf(ends, position) === position;\n };\n }, { './helper/makeString': 20, './helper/toPositive': 22 }],\n 13: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var escapeChars = require('./helper/escapeChars');\n\n var regexString = '[';\n for (var key in escapeChars) {\n regexString += key;\n }\n regexString += ']';\n\n var regex = new RegExp(regexString, 'g');\n\n module.exports = function escapeHTML(str) {\n return makeString(str).replace(regex, function (m) {\n return '&' + escapeChars[m] + ';';\n });\n };\n }, { './helper/escapeChars': 17, './helper/makeString': 20 }],\n 14: [function (require, module, exports) {\n module.exports = function () {\n var result = {};\n\n for (var prop in this) {\n if (!this.hasOwnProperty(prop) || prop.match(/^(?:include|contains|reverse|join|map|wrap)$/)) continue;\n result[prop] = this[prop];\n }\n\n return result;\n };\n }, {}],\n 15: [function (require, module, exports) {\n var makeString = require('./makeString');\n\n module.exports = function adjacent(str, direction) {\n str = makeString(str);\n if (str.length === 0) {\n return '';\n }\n return str.slice(0, -1) + String.fromCharCode(str.charCodeAt(str.length - 1) + direction);\n };\n }, { './makeString': 20 }],\n 16: [function (require, module, exports) {\n var escapeRegExp = require('./escapeRegExp');\n\n module.exports = function defaultToWhiteSpace(characters) {\n if (characters == null) { return '\\\\s'; } else if (characters.source) { return characters.source; }\n return '[' + escapeRegExp(characters) + ']';\n };\n }, { './escapeRegExp': 18 }],\n 17: [function (require, module, exports) {\n /* We're explicitly defining the list of entities we want to escape.\nnbsp is an HTML entity, but we don't want to escape all space characters in a string, hence its omission in this map.\n\n*/\n var escapeChars = {\n '¢': 'cent',\n '£': 'pound',\n '¥': 'yen',\n '€': 'euro',\n '©': 'copy',\n '®': 'reg',\n '<': 'lt',\n '>': 'gt',\n '\"': 'quot',\n '&': 'amp',\n '\\'': '#39'\n };\n\n module.exports = escapeChars;\n }, {}],\n 18: [function (require, module, exports) {\n var makeString = require('./makeString');\n\n module.exports = function escapeRegExp(str) {\n return makeString(str).replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n };\n }, { './makeString': 20 }],\n 19: [function (require, module, exports) {\n /*\nWe're explicitly defining the list of entities that might see in escape HTML strings\n*/\n var htmlEntities = {\n nbsp: ' ',\n cent: '¢',\n pound: '£',\n yen: '¥',\n euro: '€',\n copy: '©',\n reg: '®',\n lt: '<',\n gt: '>',\n quot: '\"',\n amp: '&',\n apos: '\\''\n };\n\n module.exports = htmlEntities;\n }, {}],\n 20: [function (require, module, exports) {\n /**\n * Ensure some object is a coerced to a string\n **/\n module.exports = function makeString(object) {\n if (object == null) return '';\n return '' + object;\n };\n }, {}],\n 21: [function (require, module, exports) {\n module.exports = function strRepeat(str, qty) {\n if (qty < 1) return '';\n var result = '';\n while (qty > 0) {\n if (qty & 1) result += str;\n qty >>= 1, str += str;\n }\n return result;\n };\n }, {}],\n 22: [function (require, module, exports) {\n module.exports = function toPositive(number) {\n return number < 0 ? 0 : (+number || 0);\n };\n }, {}],\n 23: [function (require, module, exports) {\n var capitalize = require('./capitalize');\n var underscored = require('./underscored');\n var trim = require('./trim');\n\n module.exports = function humanize(str) {\n return capitalize(trim(underscored(str).replace(/_id$/, '').replace(/_/g, ' ')));\n };\n }, { './capitalize': 2, './trim': 65, './underscored': 67 }],\n 24: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function include(str, needle) {\n if (needle === '') return true;\n return makeString(str).indexOf(needle) !== -1;\n };\n }, { './helper/makeString': 20 }],\n 25: [function (require, module, exports) {\n /*\n* Underscore.string\n* (c) 2010 Esa-Matti Suuronen \n* Underscore.string is freely distributable under the terms of the MIT license.\n* Documentation: https://github.com/epeli/underscore.string\n* Some code is borrowed from MooTools and Alexandru Marasteanu.\n* Version '3.3.6'\n* @preserve\n*/\n\n 'use strict';\n\n function s(value) {\n /* jshint validthis: true */\n if (!(this instanceof s)) return new s(value);\n this._wrapped = value;\n }\n\n s.VERSION = '3.3.6';\n\n s.isBlank = require('./isBlank');\n s.stripTags = require('./stripTags');\n s.capitalize = require('./capitalize');\n s.decapitalize = require('./decapitalize');\n s.chop = require('./chop');\n s.trim = require('./trim');\n s.clean = require('./clean');\n s.cleanDiacritics = require('./cleanDiacritics');\n s.count = require('./count');\n s.chars = require('./chars');\n s.swapCase = require('./swapCase');\n s.escapeHTML = require('./escapeHTML');\n s.unescapeHTML = require('./unescapeHTML');\n s.splice = require('./splice');\n s.insert = require('./insert');\n s.replaceAll = require('./replaceAll');\n s.include = require('./include');\n s.join = require('./join');\n s.lines = require('./lines');\n s.dedent = require('./dedent');\n s.reverse = require('./reverse');\n s.startsWith = require('./startsWith');\n s.endsWith = require('./endsWith');\n s.pred = require('./pred');\n s.succ = require('./succ');\n s.titleize = require('./titleize');\n s.camelize = require('./camelize');\n s.underscored = require('./underscored');\n s.dasherize = require('./dasherize');\n s.classify = require('./classify');\n s.humanize = require('./humanize');\n s.ltrim = require('./ltrim');\n s.rtrim = require('./rtrim');\n s.truncate = require('./truncate');\n s.prune = require('./prune');\n s.words = require('./words');\n s.pad = require('./pad');\n s.lpad = require('./lpad');\n s.rpad = require('./rpad');\n s.lrpad = require('./lrpad');\n s.sprintf = require('./sprintf');\n s.vsprintf = require('./vsprintf');\n s.toNumber = require('./toNumber');\n s.numberFormat = require('./numberFormat');\n s.strRight = require('./strRight');\n s.strRightBack = require('./strRightBack');\n s.strLeft = require('./strLeft');\n s.strLeftBack = require('./strLeftBack');\n s.toSentence = require('./toSentence');\n s.toSentenceSerial = require('./toSentenceSerial');\n s.slugify = require('./slugify');\n s.surround = require('./surround');\n s.quote = require('./quote');\n s.unquote = require('./unquote');\n s.repeat = require('./repeat');\n s.naturalCmp = require('./naturalCmp');\n s.levenshtein = require('./levenshtein');\n s.toBoolean = require('./toBoolean');\n s.exports = require('./exports');\n s.escapeRegExp = require('./helper/escapeRegExp');\n s.wrap = require('./wrap');\n s.map = require('./map');\n\n // Aliases\n s.strip = s.trim;\n s.lstrip = s.ltrim;\n s.rstrip = s.rtrim;\n s.center = s.lrpad;\n s.rjust = s.lpad;\n s.ljust = s.rpad;\n s.contains = s.include;\n s.q = s.quote;\n s.toBool = s.toBoolean;\n s.camelcase = s.camelize;\n s.mapChars = s.map;\n\n\n // Implement chaining\n s.prototype = {\n value: function value() {\n return this._wrapped;\n }\n };\n\n function fn2method(key, fn) {\n if (typeof fn !== 'function') return;\n s.prototype[key] = function () {\n var args = [this._wrapped].concat(Array.prototype.slice.call(arguments));\n var res = fn.apply(null, args);\n // if the result is non-string stop the chain and return the value\n return typeof res === 'string' ? new s(res) : res;\n };\n }\n\n // Copy functions to instance methods for chaining\n for (var key in s) fn2method(key, s[key]);\n\n fn2method('tap', function tap(string, fn) {\n return fn(string);\n });\n\n function prototype2method(methodName) {\n fn2method(methodName, function (context) {\n var args = Array.prototype.slice.call(arguments, 1);\n return String.prototype[methodName].apply(context, args);\n });\n }\n\n var prototypeMethods = [\n 'toUpperCase',\n 'toLowerCase',\n 'split',\n 'replace',\n 'slice',\n 'substring',\n 'substr',\n 'concat'\n ];\n\n for (var method in prototypeMethods) prototype2method(prototypeMethods[method]);\n\n\n module.exports = s;\n }, { './camelize': 1, './capitalize': 2, './chars': 3, './chop': 4, './classify': 5, './clean': 6, './cleanDiacritics': 7, './count': 8, './dasherize': 9, './decapitalize': 10, './dedent': 11, './endsWith': 12, './escapeHTML': 13, './exports': 14, './helper/escapeRegExp': 18, './humanize': 23, './include': 24, './insert': 26, './isBlank': 27, './join': 28, './levenshtein': 29, './lines': 30, './lpad': 31, './lrpad': 32, './ltrim': 33, './map': 34, './naturalCmp': 35, './numberFormat': 38, './pad': 39, './pred': 40, './prune': 41, './quote': 42, './repeat': 43, './replaceAll': 44, './reverse': 45, './rpad': 46, './rtrim': 47, './slugify': 48, './splice': 49, './sprintf': 50, './startsWith': 51, './strLeft': 52, './strLeftBack': 53, './strRight': 54, './strRightBack': 55, './stripTags': 56, './succ': 57, './surround': 58, './swapCase': 59, './titleize': 60, './toBoolean': 61, './toNumber': 62, './toSentence': 63, './toSentenceSerial': 64, './trim': 65, './truncate': 66, './underscored': 67, './unescapeHTML': 68, './unquote': 69, './vsprintf': 70, './words': 71, './wrap': 72 }],\n 26: [function (require, module, exports) {\n var splice = require('./splice');\n\n module.exports = function insert(str, i, substr) {\n return splice(str, i, 0, substr);\n };\n }, { './splice': 49 }],\n 27: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function isBlank(str) {\n return (/^\\s*$/).test(makeString(str));\n };\n }, { './helper/makeString': 20 }],\n 28: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var slice = [].slice;\n\n module.exports = function join() {\n var args = slice.call(arguments),\n separator = args.shift();\n\n return args.join(makeString(separator));\n };\n }, { './helper/makeString': 20 }],\n 29: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n /**\n * Based on the implementation here: https://github.com/hiddentao/fast-levenshtein\n */\n module.exports = function levenshtein(str1, str2) {\n 'use strict';\n\n str1 = makeString(str1);\n str2 = makeString(str2);\n\n // Short cut cases\n if (str1 === str2) return 0;\n if (!str1 || !str2) return Math.max(str1.length, str2.length);\n\n // two rows\n var prevRow = new Array(str2.length + 1);\n\n // initialise previous row\n for (var i = 0; i < prevRow.length; ++i) {\n prevRow[i] = i;\n }\n\n // calculate current row distance from previous row\n for (i = 0; i < str1.length; ++i) {\n var nextCol = i + 1;\n\n for (var j = 0; j < str2.length; ++j) {\n var curCol = nextCol;\n\n // substution\n nextCol = prevRow[j] + ((str1.charAt(i) === str2.charAt(j)) ? 0 : 1);\n // insertion\n var tmp = curCol + 1;\n if (nextCol > tmp) {\n nextCol = tmp;\n }\n // deletion\n tmp = prevRow[j + 1] + 1;\n if (nextCol > tmp) {\n nextCol = tmp;\n }\n\n // copy current col value into previous (in preparation for next iteration)\n prevRow[j] = curCol;\n }\n\n // copy last col value into previous (in preparation for next iteration)\n prevRow[j] = nextCol;\n }\n\n return nextCol;\n };\n }, { './helper/makeString': 20 }],\n 30: [function (require, module, exports) {\n module.exports = function lines(str) {\n if (str == null) return [];\n return String(str).split(/\\r\\n?|\\n/);\n };\n }, {}],\n 31: [function (require, module, exports) {\n var pad = require('./pad');\n\n module.exports = function lpad(str, length, padStr) {\n return pad(str, length, padStr);\n };\n }, { './pad': 39 }],\n 32: [function (require, module, exports) {\n var pad = require('./pad');\n\n module.exports = function lrpad(str, length, padStr) {\n return pad(str, length, padStr, 'both');\n };\n }, { './pad': 39 }],\n 33: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var defaultToWhiteSpace = require('./helper/defaultToWhiteSpace');\n var nativeTrimLeft = String.prototype.trimLeft;\n\n module.exports = function ltrim(str, characters) {\n str = makeString(str);\n if (!characters && nativeTrimLeft) return nativeTrimLeft.call(str);\n characters = defaultToWhiteSpace(characters);\n return str.replace(new RegExp('^' + characters + '+'), '');\n };\n }, { './helper/defaultToWhiteSpace': 16, './helper/makeString': 20 }],\n 34: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function (str, callback) {\n str = makeString(str);\n\n if (str.length === 0 || typeof callback !== 'function') return str;\n\n return str.replace(/./g, callback);\n };\n }, { './helper/makeString': 20 }],\n 35: [function (require, module, exports) {\n module.exports = function naturalCmp(str1, str2) {\n if (str1 == str2) return 0;\n if (!str1) return -1;\n if (!str2) return 1;\n\n var cmpRegex = /(\\.\\d+|\\d+|\\D+)/g,\n tokens1 = String(str1).match(cmpRegex),\n tokens2 = String(str2).match(cmpRegex),\n count = Math.min(tokens1.length, tokens2.length);\n\n for (var i = 0; i < count; i++) {\n var a = tokens1[i],\n b = tokens2[i];\n\n if (a !== b) {\n var num1 = +a;\n var num2 = +b;\n if (num1 === num1 && num2 === num2) {\n return num1 > num2 ? 1 : -1;\n }\n return a < b ? -1 : 1;\n }\n }\n\n if (tokens1.length != tokens2.length) { return tokens1.length - tokens2.length; }\n\n return str1 < str2 ? -1 : 1;\n };\n }, {}],\n 36: [function (require, module, exports) {\n /* global window, exports, define */\n\n !(function () {\n 'use strict';\n\n var re = {\n not_string: /[^s]/,\n not_bool: /[^t]/,\n not_type: /[^T]/,\n not_primitive: /[^v]/,\n number: /[diefg]/,\n numeric_arg: /[bcdiefguxX]/,\n json: /[j]/,\n not_json: /[^j]/,\n text: /^[^\\x25]+/,\n modulo: /^\\x25{2}/,\n placeholder: /^\\x25(?:([1-9]\\d*)\\$|\\(([^)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,\n key: /^([a-z_][a-z_\\d]*)/i,\n key_access: /^\\.([a-z_][a-z_\\d]*)/i,\n index_access: /^\\[(\\d+)\\]/,\n sign: /^[+-]/\n };\n\n function sprintf(key) {\n // `arguments` is not an array, but should be fine for this call\n return sprintf_format(sprintf_parse(key), arguments);\n }\n\n function vsprintf(fmt, argv) {\n return sprintf.apply(null, [fmt].concat(argv || []));\n }\n\n function sprintf_format(parse_tree, argv) {\n var cursor = 1,\n tree_length = parse_tree.length,\n arg,\n output = '',\n i,\n k,\n ph,\n pad,\n pad_character,\n pad_length,\n is_positive,\n sign;\n for (i = 0; i < tree_length; i++) {\n if (typeof parse_tree[i] === 'string') {\n output += parse_tree[i];\n } else if (typeof parse_tree[i] === 'object') {\n ph = parse_tree[i]; // convenience purposes only\n if (ph.keys) { // keyword argument\n arg = argv[cursor];\n for (k = 0; k < ph.keys.length; k++) {\n if (arg == undefined) {\n throw new Error(sprintf('[sprintf] Cannot access property \"%s\" of undefined value \"%s\"', ph.keys[k], ph.keys[k - 1]));\n }\n arg = arg[ph.keys[k]];\n }\n } else if (ph.param_no) { // positional argument (explicit)\n arg = argv[ph.param_no];\n } else { // positional argument (implicit)\n arg = argv[cursor++];\n }\n\n if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {\n arg = arg();\n }\n\n if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {\n throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg));\n }\n\n if (re.number.test(ph.type)) {\n is_positive = arg >= 0;\n }\n\n switch (ph.type) {\n case 'b':\n arg = parseInt(arg, 10).toString(2);\n break;\n case 'c':\n arg = String.fromCharCode(parseInt(arg, 10));\n break;\n case 'd':\n case 'i':\n arg = parseInt(arg, 10);\n break;\n case 'j':\n arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0);\n break;\n case 'e':\n arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential();\n break;\n case 'f':\n arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg);\n break;\n case 'g':\n arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg);\n break;\n case 'o':\n arg = (parseInt(arg, 10) >>> 0).toString(8);\n break;\n case 's':\n arg = String(arg);\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg);\n break;\n case 't':\n arg = String(!!arg);\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg);\n break;\n case 'T':\n arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase();\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg);\n break;\n case 'u':\n arg = parseInt(arg, 10) >>> 0;\n break;\n case 'v':\n arg = arg.valueOf();\n arg = (ph.precision ? arg.substring(0, ph.precision) : arg);\n break;\n case 'x':\n arg = (parseInt(arg, 10) >>> 0).toString(16);\n break;\n case 'X':\n arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase();\n break;\n }\n if (re.json.test(ph.type)) {\n output += arg;\n } else {\n if (re.number.test(ph.type) && (!is_positive || ph.sign)) {\n sign = is_positive ? '+' : '-';\n arg = arg.toString().replace(re.sign, '');\n } else {\n sign = '';\n }\n pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' ';\n pad_length = ph.width - (sign + arg).length;\n pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : '';\n output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg);\n }\n }\n }\n return output;\n }\n\n var sprintf_cache = Object.create(null);\n\n function sprintf_parse(fmt) {\n if (sprintf_cache[fmt]) {\n return sprintf_cache[fmt];\n }\n\n var _fmt = fmt,\n match,\n parse_tree = [],\n arg_names = 0;\n while (_fmt) {\n if ((match = re.text.exec(_fmt)) !== null) {\n parse_tree.push(match[0]);\n } else if ((match = re.modulo.exec(_fmt)) !== null) {\n parse_tree.push('%');\n } else if ((match = re.placeholder.exec(_fmt)) !== null) {\n if (match[2]) {\n arg_names |= 1;\n var field_list = [],\n replacement_field = match[2],\n field_match = [];\n if ((field_match = re.key.exec(replacement_field)) !== null) {\n field_list.push(field_match[1]);\n while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {\n if ((field_match = re.key_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1]);\n } else if ((field_match = re.index_access.exec(replacement_field)) !== null) {\n field_list.push(field_match[1]);\n } else {\n throw new SyntaxError('[sprintf] failed to parse named argument key');\n }\n }\n } else {\n throw new SyntaxError('[sprintf] failed to parse named argument key');\n }\n match[2] = field_list;\n } else {\n arg_names |= 2;\n }\n if (arg_names === 3) {\n throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported');\n }\n\n parse_tree.push(\n {\n placeholder: match[0],\n param_no: match[1],\n keys: match[2],\n sign: match[3],\n pad_char: match[4],\n align: match[5],\n width: match[6],\n precision: match[7],\n type: match[8]\n }\n );\n } else {\n throw new SyntaxError('[sprintf] unexpected placeholder');\n }\n _fmt = _fmt.substring(match[0].length);\n }\n return sprintf_cache[fmt] = parse_tree;\n }\n\n /**\n * export to either browser or node.js\n */\n /* eslint-disable quote-props */\n if (typeof exports !== 'undefined') {\n exports.sprintf = sprintf;\n exports.vsprintf = vsprintf;\n }\n if (typeof window !== 'undefined') {\n window.sprintf = sprintf;\n window.vsprintf = vsprintf;\n\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return {\n 'sprintf': sprintf,\n 'vsprintf': vsprintf\n };\n });\n }\n }\n /* eslint-enable quote-props */\n}()); // eslint-disable-line\n }, {}],\n 37: [function (require, module, exports) {\n (function (global) {\n (function () {\n /**\n * Module exports.\n */\n\n module.exports = deprecate;\n\n /**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\n function deprecate(fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n }\n\n /**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\n function config(name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (val == null) return false;\n return String(val).toLowerCase() === 'true';\n }\n }).call(this);\n }).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {});\n }, {}],\n 38: [function (require, module, exports) {\n module.exports = function numberFormat(number, dec, dsep, tsep) {\n if (isNaN(number) || number == null) return '';\n\n number = number.toFixed(~~dec);\n tsep = typeof tsep == 'string' ? tsep : ',';\n\n var parts = number.split('.'),\n fnums = parts[0],\n decimals = parts[1] ? (dsep || '.') + parts[1] : '';\n\n return fnums.replace(/(\\d)(?=(?:\\d{3})+$)/g, '$1' + tsep) + decimals;\n };\n }, {}],\n 39: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var strRepeat = require('./helper/strRepeat');\n\n module.exports = function pad(str, length, padStr, type) {\n str = makeString(str);\n length = ~~length;\n\n var padlen = 0;\n\n if (!padStr) { padStr = ' '; } else if (padStr.length > 1) { padStr = padStr.charAt(0); }\n\n switch (type) {\n case 'right':\n padlen = length - str.length;\n return str + strRepeat(padStr, padlen);\n case 'both':\n padlen = length - str.length;\n return strRepeat(padStr, Math.ceil(padlen / 2)) + str + strRepeat(padStr, Math.floor(padlen / 2));\n default: // 'left'\n padlen = length - str.length;\n return strRepeat(padStr, padlen) + str;\n }\n };\n }, { './helper/makeString': 20, './helper/strRepeat': 21 }],\n 40: [function (require, module, exports) {\n var adjacent = require('./helper/adjacent');\n\n module.exports = function succ(str) {\n return adjacent(str, -1);\n };\n }, { './helper/adjacent': 15 }],\n 41: [function (require, module, exports) {\n /**\n * _s.prune: a more elegant version of truncate\n * prune extra chars, never leaving a half-chopped word.\n * @author github.com/rwz\n */\n var makeString = require('./helper/makeString');\n var rtrim = require('./rtrim');\n\n module.exports = function prune(str, length, pruneStr) {\n str = makeString(str);\n length = ~~length;\n pruneStr = pruneStr != null ? String(pruneStr) : '...';\n\n if (str.length <= length) return str;\n\n var tmpl = function (c) {\n return c.toUpperCase() !== c.toLowerCase() ? 'A' : ' ';\n },\n template = str.slice(0, length + 1).replace(/.(?=\\W*\\w*$)/g, tmpl); // 'Hello, world' -> 'HellAA AAAAA'\n\n if (template.slice(template.length - 2).match(/\\w\\w/)) { template = template.replace(/\\s*\\S+$/, ''); } else { template = rtrim(template.slice(0, template.length - 1)); }\n\n return (template + pruneStr).length > str.length ? str : str.slice(0, template.length) + pruneStr;\n };\n }, { './helper/makeString': 20, './rtrim': 47 }],\n 42: [function (require, module, exports) {\n var surround = require('./surround');\n\n module.exports = function quote(str, quoteChar) {\n return surround(str, quoteChar || '\"');\n };\n }, { './surround': 58 }],\n 43: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var strRepeat = require('./helper/strRepeat');\n\n module.exports = function repeat(str, qty, separator) {\n str = makeString(str);\n\n qty = ~~qty;\n\n // using faster implementation if separator is not needed;\n if (separator == null) return strRepeat(str, qty);\n\n // this one is about 300x slower in Google Chrome\n /* eslint no-empty: 0*/\n for (var repeat = []; qty > 0; repeat[--qty] = str) {}\n return repeat.join(separator);\n };\n }, { './helper/makeString': 20, './helper/strRepeat': 21 }],\n 44: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function replaceAll(str, find, replace, ignorecase) {\n var flags = (ignorecase === true) ? 'gi' : 'g';\n var reg = new RegExp(find, flags);\n\n return makeString(str).replace(reg, replace);\n };\n }, { './helper/makeString': 20 }],\n 45: [function (require, module, exports) {\n var chars = require('./chars');\n\n module.exports = function reverse(str) {\n return chars(str).reverse().join('');\n };\n }, { './chars': 3 }],\n 46: [function (require, module, exports) {\n var pad = require('./pad');\n\n module.exports = function rpad(str, length, padStr) {\n return pad(str, length, padStr, 'right');\n };\n }, { './pad': 39 }],\n 47: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var defaultToWhiteSpace = require('./helper/defaultToWhiteSpace');\n var nativeTrimRight = String.prototype.trimRight;\n\n module.exports = function rtrim(str, characters) {\n str = makeString(str);\n if (!characters && nativeTrimRight) return nativeTrimRight.call(str);\n characters = defaultToWhiteSpace(characters);\n return str.replace(new RegExp(characters + '+$'), '');\n };\n }, { './helper/defaultToWhiteSpace': 16, './helper/makeString': 20 }],\n 48: [function (require, module, exports) {\n var trim = require('./trim');\n var dasherize = require('./dasherize');\n var cleanDiacritics = require('./cleanDiacritics');\n\n module.exports = function slugify(str) {\n return trim(dasherize(cleanDiacritics(str).replace(/[^\\w\\s-]/g, '-').toLowerCase()), '-');\n };\n }, { './cleanDiacritics': 7, './dasherize': 9, './trim': 65 }],\n 49: [function (require, module, exports) {\n var chars = require('./chars');\n\n module.exports = function splice(str, i, howmany, substr) {\n var arr = chars(str);\n arr.splice(~~i, ~~howmany, substr);\n return arr.join('');\n };\n }, { './chars': 3 }],\n 50: [function (require, module, exports) {\n var deprecate = require('util-deprecate');\n\n module.exports = deprecate(require('sprintf-js').sprintf,\n 'sprintf() will be removed in the next major release, use the sprintf-js package instead.');\n }, { 'sprintf-js': 36, 'util-deprecate': 37 }],\n 51: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var toPositive = require('./helper/toPositive');\n\n module.exports = function startsWith(str, starts, position) {\n str = makeString(str);\n starts = '' + starts;\n position = position == null ? 0 : Math.min(toPositive(position), str.length);\n return str.lastIndexOf(starts, position) === position;\n };\n }, { './helper/makeString': 20, './helper/toPositive': 22 }],\n 52: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function strLeft(str, sep) {\n str = makeString(str);\n sep = makeString(sep);\n var pos = !sep ? -1 : str.indexOf(sep);\n return ~pos ? str.slice(0, pos) : str;\n };\n }, { './helper/makeString': 20 }],\n 53: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function strLeftBack(str, sep) {\n str = makeString(str);\n sep = makeString(sep);\n var pos = str.lastIndexOf(sep);\n return ~pos ? str.slice(0, pos) : str;\n };\n }, { './helper/makeString': 20 }],\n 54: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function strRight(str, sep) {\n str = makeString(str);\n sep = makeString(sep);\n var pos = !sep ? -1 : str.indexOf(sep);\n return ~pos ? str.slice(pos + sep.length, str.length) : str;\n };\n }, { './helper/makeString': 20 }],\n 55: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function strRightBack(str, sep) {\n str = makeString(str);\n sep = makeString(sep);\n var pos = !sep ? -1 : str.lastIndexOf(sep);\n return ~pos ? str.slice(pos + sep.length, str.length) : str;\n };\n }, { './helper/makeString': 20 }],\n 56: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function stripTags(str) {\n return makeString(str).replace(/<\\/?[^>]+>/g, '');\n };\n }, { './helper/makeString': 20 }],\n 57: [function (require, module, exports) {\n var adjacent = require('./helper/adjacent');\n\n module.exports = function succ(str) {\n return adjacent(str, 1);\n };\n }, { './helper/adjacent': 15 }],\n 58: [function (require, module, exports) {\n module.exports = function surround(str, wrapper) {\n return [wrapper, str, wrapper].join('');\n };\n }, {}],\n 59: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function swapCase(str) {\n return makeString(str).replace(/\\S/g, function (c) {\n return c === c.toUpperCase() ? c.toLowerCase() : c.toUpperCase();\n });\n };\n }, { './helper/makeString': 20 }],\n 60: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function titleize(str) {\n return makeString(str).toLowerCase().replace(/(?:^|\\s|-)\\S/g, function (c) {\n return c.toUpperCase();\n });\n };\n }, { './helper/makeString': 20 }],\n 61: [function (require, module, exports) {\n var trim = require('./trim');\n\n function boolMatch(s, matchers) {\n var i,\n matcher,\n down = s.toLowerCase();\n matchers = [].concat(matchers);\n for (i = 0; i < matchers.length; i += 1) {\n matcher = matchers[i];\n if (!matcher) continue;\n if (matcher.test && matcher.test(s)) return true;\n if (matcher.toLowerCase() === down) return true;\n }\n }\n\n module.exports = function toBoolean(str, trueValues, falseValues) {\n if (typeof str === 'number') str = '' + str;\n if (typeof str !== 'string') return !!str;\n str = trim(str);\n if (boolMatch(str, trueValues || ['true', '1'])) return true;\n if (boolMatch(str, falseValues || ['false', '0'])) return false;\n };\n }, { './trim': 65 }],\n 62: [function (require, module, exports) {\n module.exports = function toNumber(num, precision) {\n if (num == null) return 0;\n var factor = Math.pow(10, isFinite(precision) ? precision : 0);\n return Math.round(num * factor) / factor;\n };\n }, {}],\n 63: [function (require, module, exports) {\n var rtrim = require('./rtrim');\n\n module.exports = function toSentence(array, separator, lastSeparator, serial) {\n separator = separator || ', ';\n lastSeparator = lastSeparator || ' and ';\n var a = array.slice(),\n lastMember = a.pop();\n\n if (array.length > 2 && serial) lastSeparator = rtrim(separator) + lastSeparator;\n\n return a.length ? a.join(separator) + lastSeparator + lastMember : lastMember;\n };\n }, { './rtrim': 47 }],\n 64: [function (require, module, exports) {\n var toSentence = require('./toSentence');\n\n module.exports = function toSentenceSerial(array, sep, lastSep) {\n return toSentence(array, sep, lastSep, true);\n };\n }, { './toSentence': 63 }],\n 65: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var defaultToWhiteSpace = require('./helper/defaultToWhiteSpace');\n var nativeTrim = String.prototype.trim;\n\n module.exports = function trim(str, characters) {\n str = makeString(str);\n if (!characters && nativeTrim) return nativeTrim.call(str);\n characters = defaultToWhiteSpace(characters);\n return str.replace(new RegExp('^' + characters + '+|' + characters + '+$', 'g'), '');\n };\n }, { './helper/defaultToWhiteSpace': 16, './helper/makeString': 20 }],\n 66: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n\n module.exports = function truncate(str, length, truncateStr) {\n str = makeString(str);\n truncateStr = truncateStr || '...';\n length = ~~length;\n return str.length > length ? str.slice(0, length) + truncateStr : str;\n };\n }, { './helper/makeString': 20 }],\n 67: [function (require, module, exports) {\n var trim = require('./trim');\n\n module.exports = function underscored(str) {\n return trim(str).replace(/([a-z\\d])([A-Z]+)/g, '$1_$2').replace(/[-\\s]+/g, '_').toLowerCase();\n };\n }, { './trim': 65 }],\n 68: [function (require, module, exports) {\n var makeString = require('./helper/makeString');\n var htmlEntities = require('./helper/htmlEntities');\n\n module.exports = function unescapeHTML(str) {\n return makeString(str).replace(/\\&([^;]{1,10});/g, function (entity, entityCode) {\n var match;\n\n if (entityCode in htmlEntities) {\n return htmlEntities[entityCode];\n /* eslint no-cond-assign: 0*/\n } else if (match = entityCode.match(/^#x([\\da-fA-F]+)$/)) {\n return String.fromCharCode(parseInt(match[1], 16));\n /* eslint no-cond-assign: 0*/\n } else if (match = entityCode.match(/^#(\\d+)$/)) {\n return String.fromCharCode(~~match[1]);\n }\n return entity;\n });\n };\n }, { './helper/htmlEntities': 19, './helper/makeString': 20 }],\n 69: [function (require, module, exports) {\n module.exports = function unquote(str, quoteChar) {\n quoteChar = quoteChar || '\"';\n if (str[0] === quoteChar && str[str.length - 1] === quoteChar) { return str.slice(1, str.length - 1); }\n return str;\n };\n }, {}],\n 70: [function (require, module, exports) {\n var deprecate = require('util-deprecate');\n\n module.exports = deprecate(require('sprintf-js').vsprintf,\n 'vsprintf() will be removed in the next major release, use the sprintf-js package instead.');\n }, { 'sprintf-js': 36, 'util-deprecate': 37 }],\n 71: [function (require, module, exports) {\n var isBlank = require('./isBlank');\n var trim = require('./trim');\n\n module.exports = function words(str, delimiter) {\n if (isBlank(str)) return [];\n return trim(str, delimiter).split(delimiter || /\\s+/);\n };\n }, { './isBlank': 27, './trim': 65 }],\n 72: [function (require, module, exports) {\n // Wrap\n // wraps a string by a certain width\n\n var makeString = require('./helper/makeString');\n\n module.exports = function wrap(str, options) {\n str = makeString(str);\n\n options = options || {};\n\n var width = options.width || 75;\n var seperator = options.seperator || '\\n';\n var cut = options.cut || false;\n var preserveSpaces = options.preserveSpaces || false;\n var trailingSpaces = options.trailingSpaces || false;\n\n var result;\n\n if (width <= 0) {\n return str;\n } else if (!cut) {\n var words = str.split(' ');\n var current_column = 0;\n result = '';\n\n while (words.length > 0) {\n // if adding a space and the next word would cause this line to be longer than width...\n if (1 + words[0].length + current_column > width) {\n // start a new line if this line is not already empty\n if (current_column > 0) {\n // add a space at the end of the line is preserveSpaces is true\n if (preserveSpaces) {\n result += ' ';\n current_column++;\n }\n // fill the rest of the line with spaces if trailingSpaces option is true\n else if (trailingSpaces) {\n while (current_column < width) {\n result += ' ';\n current_column++;\n }\n }\n // start new line\n result += seperator;\n current_column = 0;\n }\n }\n\n // if not at the begining of the line, add a space in front of the word\n if (current_column > 0) {\n result += ' ';\n current_column++;\n }\n\n // tack on the next word, update current column, a pop words array\n result += words[0];\n current_column += words[0].length;\n words.shift();\n }\n\n // fill the rest of the line with spaces if trailingSpaces option is true\n if (trailingSpaces) {\n while (current_column < width) {\n result += ' ';\n current_column++;\n }\n }\n\n return result;\n }\n\n\n var index = 0;\n result = '';\n\n // walk through each character and add seperators where appropriate\n while (index < str.length) {\n if (index % width == 0 && index > 0) {\n result += seperator;\n }\n result += str.charAt(index);\n index++;\n }\n\n // fill the rest of the line with spaces if trailingSpaces option is true\n if (trailingSpaces) {\n while (index % width > 0) {\n result += ' ';\n index++;\n }\n }\n\n return result;\n };\n }, { './helper/makeString': 20 }] }, {}, [25])(25);\n}));\n\nexport default module.exports;\n","'use strict';\n\nimport _ from 'shared/js/underscore';\n\nexport function trimSlashes(url) {\n return url ? url.replace(/(^\\/)|(\\/$)/g, '') : '';\n}\n\nexport function isNotVanityPath(path) {\n return path.indexOf('.demandware.') > -1 || path.indexOf('.commercecloud.') > -1;\n}\nexport function isVanityUrl(url) {\n const activeUrl = url || (new URL(document.URL)).hostname;\n return !isNotVanityPath(activeUrl);\n}\n\nexport function getControllerRootUrl() {\n const activeUrl = new URL(document.URL);\n let result = `${activeUrl.protocol}//${activeUrl.hostname}`;\n if (activeUrl.pathname.indexOf('demandware.store') > -1) {\n // Use the next 4 segments,\n // ex. \"/on/demandware.store/Sites-Bodystore-Site/sv_SE\"\n result += `/${trimSlashes(activeUrl.pathname).split('/').slice(0, 4).join('/')}/`;\n _.some([window.currentLocale, window.locale], (lc) => {\n if (result.indexOf(`/${lc}`) === -1) {\n result += `${lc}/`;\n return true;\n }\n });\n }\n return trimSlashes(result);\n}\n\nexport function getControllerAlias(path) {\n path = trimSlashes(path);\n path = window._csBootstrap && window._csBootstrap.urls\n ? (window._csBootstrap.urls[path] || path)\n : path;\n return trimSlashes(path);\n}\n\n/**\n * Resolves the controller 2x parts fragment from the currently opened URL (of the page).\n * @param {string} [url] - URL string otherwise will be taken document.URL\n * @return {string} the Controller-Name reference\n * @example Home-Show | Product-Show\n */\nexport function getControllerPart(url) {\n const root = getControllerRootUrl();\n const activeUrl = (new URL(url || document.URL)).toString();\n const index = activeUrl.indexOf(root);\n if (index > -1) {\n let part = trimSlashes(activeUrl.substring(index + root.length)).split('?')[0];\n if (window._csBootstrap && window._csBootstrap.urls) {\n const alias = _.findKey(window._csBootstrap.urls, (value) => value === part);\n if (alias) {\n part = alias;\n }\n }\n return part || 'Home-Show';\n }\n return 'Home-Show';\n}\n\n/**\n *\n * @param {string} path Path to the controller. It can be either relative URL, 2x parts controller or absolute URL.\n * @return {string} Returns FQ path to the destination endpoint (absolute URL).\n */\nexport function getControllerUrl(path) {\n path = getControllerAlias(path);\n // Otherwise fallback to regular full URL.\n if (path.indexOf('demandware.store') > -1) {\n path = trimSlashes(path);\n const cp = getControllerRootUrl();\n if (path.indexOf('http') === 0) {\n path = path.replace(cp, '');\n } else {\n const cpUrl = new URL(cp);\n const cpPart = trimSlashes(cpUrl.pathname);\n path = path.replace(cpPart, '');\n }\n }\n return `${getControllerRootUrl()}/${trimSlashes(path)}`;\n}\n\nexport function addQueryToUrl(url, append) {\n if (url && url[0] === '/') {\n url = getControllerUrl(trimSlashes(url));\n }\n let result = new URL(url);\n let params = result.searchParams;\n\n _.each(append, (value, key) => params.append(key, value));\n return result;\n}\n\nexport function getSiteName() {\n let result;\n if (window.hasOwnProperty('staticURL')) {\n try {\n result = window.staticURL.split('/')[3].split('-')[1];\n } catch (exception) {}\n }\n if (!result) {\n const root = getControllerRootUrl();\n result = root.split('/').splice(-2)[0].split('-')[1];\n }\n return result;\n}\n\nexport default {\n addQueryToUrl,\n isVanityUrl,\n isNotVanityPath,\n getControllerRootUrl,\n getControllerUrl,\n getControllerPart,\n getSiteName\n};\n","'use strict';\n\nexport function b64DecodeUnicode(str) {\n // Going backwards: from bytestream, to percent-encoding, to original string.\n return decodeURIComponent(atob(str).split('').map(function (c) {\n return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n }).join(''));\n}\n\n/**\n * Get specific cookie's value by its name.\n *\n * @param {string} name\n * @param {boolean} [decode=false]\n * @return {string|undefined}\n */\nexport function getCookieByName(name, decode) {\n decode = typeof decode === 'undefined' ? false : !!decode;\n // After compilation, it will be transformed to:\n // var value = \"; \".concat(document.cookie);\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) {\n let cookieValue = parts.pop().split(';').shift();\n return decode ? b64DecodeUnicode(cookieValue) : cookieValue;\n }\n return undefined;\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.6.2): alert.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport $ from 'jquery'\nimport Util from './util'\n\n/**\n * Constants\n */\n\nconst NAME = 'alert'\nconst VERSION = '4.6.2'\nconst DATA_KEY = 'bs.alert'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\nconst JQUERY_NO_CONFLICT = $.fn[NAME]\n\nconst CLASS_NAME_ALERT = 'alert'\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_SHOW = 'show'\n\nconst EVENT_CLOSE = `close${EVENT_KEY}`\nconst EVENT_CLOSED = `closed${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\nconst SELECTOR_DISMISS = '[data-dismiss=\"alert\"]'\n\n/**\n * Class definition\n */\n\nclass Alert {\n constructor(element) {\n this._element = element\n }\n\n // Getters\n static get VERSION() {\n return VERSION\n }\n\n // Public\n close(element) {\n let rootElement = this._element\n if (element) {\n rootElement = this._getRootElement(element)\n }\n\n const customEvent = this._triggerCloseEvent(rootElement)\n\n if (customEvent.isDefaultPrevented()) {\n return\n }\n\n this._removeElement(rootElement)\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n this._element = null\n }\n\n // Private\n _getRootElement(element) {\n const selector = Util.getSelectorFromElement(element)\n let parent = false\n\n if (selector) {\n parent = document.querySelector(selector)\n }\n\n if (!parent) {\n parent = $(element).closest(`.${CLASS_NAME_ALERT}`)[0]\n }\n\n return parent\n }\n\n _triggerCloseEvent(element) {\n const closeEvent = $.Event(EVENT_CLOSE)\n\n $(element).trigger(closeEvent)\n return closeEvent\n }\n\n _removeElement(element) {\n $(element).removeClass(CLASS_NAME_SHOW)\n\n if (!$(element).hasClass(CLASS_NAME_FADE)) {\n this._destroyElement(element)\n return\n }\n\n const transitionDuration = Util.getTransitionDurationFromElement(element)\n\n $(element)\n .one(Util.TRANSITION_END, event => this._destroyElement(element, event))\n .emulateTransitionEnd(transitionDuration)\n }\n\n _destroyElement(element) {\n $(element)\n .detach()\n .trigger(EVENT_CLOSED)\n .remove()\n }\n\n // Static\n static _jQueryInterface(config) {\n return this.each(function () {\n const $element = $(this)\n let data = $element.data(DATA_KEY)\n\n if (!data) {\n data = new Alert(this)\n $element.data(DATA_KEY, data)\n }\n\n if (config === 'close') {\n data[config](this)\n }\n })\n }\n\n static _handleDismiss(alertInstance) {\n return function (event) {\n if (event) {\n event.preventDefault()\n }\n\n alertInstance.close(this)\n }\n }\n}\n\n/**\n * Data API implementation\n */\n\n$(document).on(\n EVENT_CLICK_DATA_API,\n SELECTOR_DISMISS,\n Alert._handleDismiss(new Alert())\n)\n\n/**\n * jQuery\n */\n\n$.fn[NAME] = Alert._jQueryInterface\n$.fn[NAME].Constructor = Alert\n$.fn[NAME].noConflict = () => {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Alert._jQueryInterface\n}\n\nexport default Alert\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.6.2): carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport $ from 'jquery'\nimport Util from './util'\n\n/**\n * Constants\n */\n\nconst NAME = 'carousel'\nconst VERSION = '4.6.2'\nconst DATA_KEY = 'bs.carousel'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\nconst JQUERY_NO_CONFLICT = $.fn[NAME]\nconst ARROW_LEFT_KEYCODE = 37 // KeyboardEvent.which value for left arrow key\nconst ARROW_RIGHT_KEYCODE = 39 // KeyboardEvent.which value for right arrow key\nconst TOUCHEVENT_COMPAT_WAIT = 500 // Time for mouse compat events to fire after touch\nconst SWIPE_THRESHOLD = 40\n\nconst CLASS_NAME_CAROUSEL = 'carousel'\nconst CLASS_NAME_ACTIVE = 'active'\nconst CLASS_NAME_SLIDE = 'slide'\nconst CLASS_NAME_RIGHT = 'carousel-item-right'\nconst CLASS_NAME_LEFT = 'carousel-item-left'\nconst CLASS_NAME_NEXT = 'carousel-item-next'\nconst CLASS_NAME_PREV = 'carousel-item-prev'\nconst CLASS_NAME_POINTER_EVENT = 'pointer-event'\n\nconst DIRECTION_NEXT = 'next'\nconst DIRECTION_PREV = 'prev'\nconst DIRECTION_LEFT = 'left'\nconst DIRECTION_RIGHT = 'right'\n\nconst EVENT_SLIDE = `slide${EVENT_KEY}`\nconst EVENT_SLID = `slid${EVENT_KEY}`\nconst EVENT_KEYDOWN = `keydown${EVENT_KEY}`\nconst EVENT_MOUSEENTER = `mouseenter${EVENT_KEY}`\nconst EVENT_MOUSELEAVE = `mouseleave${EVENT_KEY}`\nconst EVENT_TOUCHSTART = `touchstart${EVENT_KEY}`\nconst EVENT_TOUCHMOVE = `touchmove${EVENT_KEY}`\nconst EVENT_TOUCHEND = `touchend${EVENT_KEY}`\nconst EVENT_POINTERDOWN = `pointerdown${EVENT_KEY}`\nconst EVENT_POINTERUP = `pointerup${EVENT_KEY}`\nconst EVENT_DRAG_START = `dragstart${EVENT_KEY}`\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\nconst SELECTOR_ACTIVE = '.active'\nconst SELECTOR_ACTIVE_ITEM = '.active.carousel-item'\nconst SELECTOR_ITEM = '.carousel-item'\nconst SELECTOR_ITEM_IMG = '.carousel-item img'\nconst SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev'\nconst SELECTOR_INDICATORS = '.carousel-indicators'\nconst SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]'\nconst SELECTOR_DATA_RIDE = '[data-ride=\"carousel\"]'\n\nconst Default = {\n interval: 5000,\n keyboard: true,\n slide: false,\n pause: 'hover',\n wrap: true,\n touch: true\n}\n\nconst DefaultType = {\n interval: '(number|boolean)',\n keyboard: 'boolean',\n slide: '(boolean|string)',\n pause: '(string|boolean)',\n wrap: 'boolean',\n touch: 'boolean'\n}\n\nconst PointerType = {\n TOUCH: 'touch',\n PEN: 'pen'\n}\n\n/**\n * Class definition\n */\n\nclass Carousel {\n constructor(element, config) {\n this._items = null\n this._interval = null\n this._activeElement = null\n this._isPaused = false\n this._isSliding = false\n this.touchTimeout = null\n this.touchStartX = 0\n this.touchDeltaX = 0\n\n this._config = this._getConfig(config)\n this._element = element\n this._indicatorsElement = this._element.querySelector(SELECTOR_INDICATORS)\n this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0\n this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent)\n\n this._addEventListeners()\n }\n\n // Getters\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n next() {\n if (!this._isSliding) {\n this._slide(DIRECTION_NEXT)\n }\n }\n\n nextWhenVisible() {\n const $element = $(this._element)\n // Don't call next when the page isn't visible\n // or the carousel or its parent isn't visible\n if (!document.hidden &&\n ($element.is(':visible') && $element.css('visibility') !== 'hidden')) {\n this.next()\n }\n }\n\n prev() {\n if (!this._isSliding) {\n this._slide(DIRECTION_PREV)\n }\n }\n\n pause(event) {\n if (!event) {\n this._isPaused = true\n }\n\n if (this._element.querySelector(SELECTOR_NEXT_PREV)) {\n Util.triggerTransitionEnd(this._element)\n this.cycle(true)\n }\n\n clearInterval(this._interval)\n this._interval = null\n }\n\n cycle(event) {\n if (!event) {\n this._isPaused = false\n }\n\n if (this._interval) {\n clearInterval(this._interval)\n this._interval = null\n }\n\n if (this._config.interval && !this._isPaused) {\n this._updateInterval()\n\n this._interval = setInterval(\n (document.visibilityState ? this.nextWhenVisible : this.next).bind(this),\n this._config.interval\n )\n }\n }\n\n to(index) {\n this._activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM)\n\n const activeIndex = this._getItemIndex(this._activeElement)\n\n if (index > this._items.length - 1 || index < 0) {\n return\n }\n\n if (this._isSliding) {\n $(this._element).one(EVENT_SLID, () => this.to(index))\n return\n }\n\n if (activeIndex === index) {\n this.pause()\n this.cycle()\n return\n }\n\n const direction = index > activeIndex ?\n DIRECTION_NEXT :\n DIRECTION_PREV\n\n this._slide(direction, this._items[index])\n }\n\n dispose() {\n $(this._element).off(EVENT_KEY)\n $.removeData(this._element, DATA_KEY)\n\n this._items = null\n this._config = null\n this._element = null\n this._interval = null\n this._isPaused = null\n this._isSliding = null\n this._activeElement = null\n this._indicatorsElement = null\n }\n\n // Private\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _handleSwipe() {\n const absDeltax = Math.abs(this.touchDeltaX)\n\n if (absDeltax <= SWIPE_THRESHOLD) {\n return\n }\n\n const direction = absDeltax / this.touchDeltaX\n\n this.touchDeltaX = 0\n\n // swipe left\n if (direction > 0) {\n this.prev()\n }\n\n // swipe right\n if (direction < 0) {\n this.next()\n }\n }\n\n _addEventListeners() {\n if (this._config.keyboard) {\n $(this._element).on(EVENT_KEYDOWN, event => this._keydown(event))\n }\n\n if (this._config.pause === 'hover') {\n $(this._element)\n .on(EVENT_MOUSEENTER, event => this.pause(event))\n .on(EVENT_MOUSELEAVE, event => this.cycle(event))\n }\n\n if (this._config.touch) {\n this._addTouchEventListeners()\n }\n }\n\n _addTouchEventListeners() {\n if (!this._touchSupported) {\n return\n }\n\n const start = event => {\n if (this._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {\n this.touchStartX = event.originalEvent.clientX\n } else if (!this._pointerEvent) {\n this.touchStartX = event.originalEvent.touches[0].clientX\n }\n }\n\n const move = event => {\n // ensure swiping with one touch and not pinching\n this.touchDeltaX = event.originalEvent.touches && event.originalEvent.touches.length > 1 ?\n 0 :\n event.originalEvent.touches[0].clientX - this.touchStartX\n }\n\n const end = event => {\n if (this._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) {\n this.touchDeltaX = event.originalEvent.clientX - this.touchStartX\n }\n\n this._handleSwipe()\n if (this._config.pause === 'hover') {\n // If it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n\n this.pause()\n if (this.touchTimeout) {\n clearTimeout(this.touchTimeout)\n }\n\n this.touchTimeout = setTimeout(event => this.cycle(event), TOUCHEVENT_COMPAT_WAIT + this._config.interval)\n }\n }\n\n $(this._element.querySelectorAll(SELECTOR_ITEM_IMG))\n .on(EVENT_DRAG_START, e => e.preventDefault())\n\n if (this._pointerEvent) {\n $(this._element).on(EVENT_POINTERDOWN, event => start(event))\n $(this._element).on(EVENT_POINTERUP, event => end(event))\n\n this._element.classList.add(CLASS_NAME_POINTER_EVENT)\n } else {\n $(this._element).on(EVENT_TOUCHSTART, event => start(event))\n $(this._element).on(EVENT_TOUCHMOVE, event => move(event))\n $(this._element).on(EVENT_TOUCHEND, event => end(event))\n }\n }\n\n _keydown(event) {\n if (/input|textarea/i.test(event.target.tagName)) {\n return\n }\n\n switch (event.which) {\n case ARROW_LEFT_KEYCODE:\n event.preventDefault()\n this.prev()\n break\n case ARROW_RIGHT_KEYCODE:\n event.preventDefault()\n this.next()\n break\n default:\n }\n }\n\n _getItemIndex(element) {\n this._items = element && element.parentNode ?\n [].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)) :\n []\n return this._items.indexOf(element)\n }\n\n _getItemByDirection(direction, activeElement) {\n const isNextDirection = direction === DIRECTION_NEXT\n const isPrevDirection = direction === DIRECTION_PREV\n const activeIndex = this._getItemIndex(activeElement)\n const lastItemIndex = this._items.length - 1\n const isGoingToWrap = isPrevDirection && activeIndex === 0 ||\n isNextDirection && activeIndex === lastItemIndex\n\n if (isGoingToWrap && !this._config.wrap) {\n return activeElement\n }\n\n const delta = direction === DIRECTION_PREV ? -1 : 1\n const itemIndex = (activeIndex + delta) % this._items.length\n\n return itemIndex === -1 ?\n this._items[this._items.length - 1] : this._items[itemIndex]\n }\n\n _triggerSlideEvent(relatedTarget, eventDirectionName) {\n const targetIndex = this._getItemIndex(relatedTarget)\n const fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM))\n const slideEvent = $.Event(EVENT_SLIDE, {\n relatedTarget,\n direction: eventDirectionName,\n from: fromIndex,\n to: targetIndex\n })\n\n $(this._element).trigger(slideEvent)\n\n return slideEvent\n }\n\n _setActiveIndicatorElement(element) {\n if (this._indicatorsElement) {\n const indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE))\n $(indicators).removeClass(CLASS_NAME_ACTIVE)\n\n const nextIndicator = this._indicatorsElement.children[\n this._getItemIndex(element)\n ]\n\n if (nextIndicator) {\n $(nextIndicator).addClass(CLASS_NAME_ACTIVE)\n }\n }\n }\n\n _updateInterval() {\n const element = this._activeElement || this._element.querySelector(SELECTOR_ACTIVE_ITEM)\n\n if (!element) {\n return\n }\n\n const elementInterval = parseInt(element.getAttribute('data-interval'), 10)\n\n if (elementInterval) {\n this._config.defaultInterval = this._config.defaultInterval || this._config.interval\n this._config.interval = elementInterval\n } else {\n this._config.interval = this._config.defaultInterval || this._config.interval\n }\n }\n\n _slide(direction, element) {\n const activeElement = this._element.querySelector(SELECTOR_ACTIVE_ITEM)\n const activeElementIndex = this._getItemIndex(activeElement)\n const nextElement = element || activeElement &&\n this._getItemByDirection(direction, activeElement)\n const nextElementIndex = this._getItemIndex(nextElement)\n const isCycling = Boolean(this._interval)\n\n let directionalClassName\n let orderClassName\n let eventDirectionName\n\n if (direction === DIRECTION_NEXT) {\n directionalClassName = CLASS_NAME_LEFT\n orderClassName = CLASS_NAME_NEXT\n eventDirectionName = DIRECTION_LEFT\n } else {\n directionalClassName = CLASS_NAME_RIGHT\n orderClassName = CLASS_NAME_PREV\n eventDirectionName = DIRECTION_RIGHT\n }\n\n if (nextElement && $(nextElement).hasClass(CLASS_NAME_ACTIVE)) {\n this._isSliding = false\n return\n }\n\n const slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName)\n if (slideEvent.isDefaultPrevented()) {\n return\n }\n\n if (!activeElement || !nextElement) {\n // Some weirdness is happening, so we bail\n return\n }\n\n this._isSliding = true\n\n if (isCycling) {\n this.pause()\n }\n\n this._setActiveIndicatorElement(nextElement)\n this._activeElement = nextElement\n\n const slidEvent = $.Event(EVENT_SLID, {\n relatedTarget: nextElement,\n direction: eventDirectionName,\n from: activeElementIndex,\n to: nextElementIndex\n })\n\n if ($(this._element).hasClass(CLASS_NAME_SLIDE)) {\n $(nextElement).addClass(orderClassName)\n\n Util.reflow(nextElement)\n\n $(activeElement).addClass(directionalClassName)\n $(nextElement).addClass(directionalClassName)\n\n const transitionDuration = Util.getTransitionDurationFromElement(activeElement)\n\n $(activeElement)\n .one(Util.TRANSITION_END, () => {\n $(nextElement)\n .removeClass(`${directionalClassName} ${orderClassName}`)\n .addClass(CLASS_NAME_ACTIVE)\n\n $(activeElement).removeClass(`${CLASS_NAME_ACTIVE} ${orderClassName} ${directionalClassName}`)\n\n this._isSliding = false\n\n setTimeout(() => $(this._element).trigger(slidEvent), 0)\n })\n .emulateTransitionEnd(transitionDuration)\n } else {\n $(activeElement).removeClass(CLASS_NAME_ACTIVE)\n $(nextElement).addClass(CLASS_NAME_ACTIVE)\n\n this._isSliding = false\n $(this._element).trigger(slidEvent)\n }\n\n if (isCycling) {\n this.cycle()\n }\n }\n\n // Static\n static _jQueryInterface(config) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n let _config = {\n ...Default,\n ...$(this).data()\n }\n\n if (typeof config === 'object') {\n _config = {\n ..._config,\n ...config\n }\n }\n\n const action = typeof config === 'string' ? config : _config.slide\n\n if (!data) {\n data = new Carousel(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'number') {\n data.to(config)\n } else if (typeof action === 'string') {\n if (typeof data[action] === 'undefined') {\n throw new TypeError(`No method named \"${action}\"`)\n }\n\n data[action]()\n } else if (_config.interval && _config.ride) {\n data.pause()\n data.cycle()\n }\n })\n }\n\n static _dataApiClickHandler(event) {\n const selector = Util.getSelectorFromElement(this)\n\n if (!selector) {\n return\n }\n\n const target = $(selector)[0]\n\n if (!target || !$(target).hasClass(CLASS_NAME_CAROUSEL)) {\n return\n }\n\n const config = {\n ...$(target).data(),\n ...$(this).data()\n }\n const slideIndex = this.getAttribute('data-slide-to')\n\n if (slideIndex) {\n config.interval = false\n }\n\n Carousel._jQueryInterface.call($(target), config)\n\n if (slideIndex) {\n $(target).data(DATA_KEY).to(slideIndex)\n }\n\n event.preventDefault()\n }\n}\n\n/**\n * Data API implementation\n */\n\n$(document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler)\n\n$(window).on(EVENT_LOAD_DATA_API, () => {\n const carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE))\n for (let i = 0, len = carousels.length; i < len; i++) {\n const $carousel = $(carousels[i])\n Carousel._jQueryInterface.call($carousel, $carousel.data())\n }\n})\n\n/**\n * jQuery\n */\n\n$.fn[NAME] = Carousel._jQueryInterface\n$.fn[NAME].Constructor = Carousel\n$.fn[NAME].noConflict = () => {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Carousel._jQueryInterface\n}\n\nexport default Carousel\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.6.2): collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport $ from 'jquery'\nimport Util from './util'\n\n/**\n * Constants\n */\n\nconst NAME = 'collapse'\nconst VERSION = '4.6.2'\nconst DATA_KEY = 'bs.collapse'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\nconst JQUERY_NO_CONFLICT = $.fn[NAME]\n\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_NAME_COLLAPSE = 'collapse'\nconst CLASS_NAME_COLLAPSING = 'collapsing'\nconst CLASS_NAME_COLLAPSED = 'collapsed'\n\nconst DIMENSION_WIDTH = 'width'\nconst DIMENSION_HEIGHT = 'height'\n\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\nconst SELECTOR_ACTIVES = '.show, .collapsing'\nconst SELECTOR_DATA_TOGGLE = '[data-toggle=\"collapse\"]'\n\nconst Default = {\n toggle: true,\n parent: ''\n}\n\nconst DefaultType = {\n toggle: 'boolean',\n parent: '(string|element)'\n}\n\n/**\n * Class definition\n */\n\nclass Collapse {\n constructor(element, config) {\n this._isTransitioning = false\n this._element = element\n this._config = this._getConfig(config)\n this._triggerArray = [].slice.call(document.querySelectorAll(\n `[data-toggle=\"collapse\"][href=\"#${element.id}\"],` +\n `[data-toggle=\"collapse\"][data-target=\"#${element.id}\"]`\n ))\n\n const toggleList = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE))\n for (let i = 0, len = toggleList.length; i < len; i++) {\n const elem = toggleList[i]\n const selector = Util.getSelectorFromElement(elem)\n const filterElement = [].slice.call(document.querySelectorAll(selector))\n .filter(foundElem => foundElem === element)\n\n if (selector !== null && filterElement.length > 0) {\n this._selector = selector\n this._triggerArray.push(elem)\n }\n }\n\n this._parent = this._config.parent ? this._getParent() : null\n\n if (!this._config.parent) {\n this._addAriaAndCollapsedClass(this._element, this._triggerArray)\n }\n\n if (this._config.toggle) {\n this.toggle()\n }\n }\n\n // Getters\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n toggle() {\n if ($(this._element).hasClass(CLASS_NAME_SHOW)) {\n this.hide()\n } else {\n this.show()\n }\n }\n\n show() {\n if (this._isTransitioning ||\n $(this._element).hasClass(CLASS_NAME_SHOW)) {\n return\n }\n\n let actives\n let activesData\n\n if (this._parent) {\n actives = [].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES))\n .filter(elem => {\n if (typeof this._config.parent === 'string') {\n return elem.getAttribute('data-parent') === this._config.parent\n }\n\n return elem.classList.contains(CLASS_NAME_COLLAPSE)\n })\n\n if (actives.length === 0) {\n actives = null\n }\n }\n\n if (actives) {\n activesData = $(actives).not(this._selector).data(DATA_KEY)\n if (activesData && activesData._isTransitioning) {\n return\n }\n }\n\n const startEvent = $.Event(EVENT_SHOW)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n if (actives) {\n Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide')\n if (!activesData) {\n $(actives).data(DATA_KEY, null)\n }\n }\n\n const dimension = this._getDimension()\n\n $(this._element)\n .removeClass(CLASS_NAME_COLLAPSE)\n .addClass(CLASS_NAME_COLLAPSING)\n\n this._element.style[dimension] = 0\n\n if (this._triggerArray.length) {\n $(this._triggerArray)\n .removeClass(CLASS_NAME_COLLAPSED)\n .attr('aria-expanded', true)\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n $(this._element)\n .removeClass(CLASS_NAME_COLLAPSING)\n .addClass(`${CLASS_NAME_COLLAPSE} ${CLASS_NAME_SHOW}`)\n\n this._element.style[dimension] = ''\n\n this.setTransitioning(false)\n\n $(this._element).trigger(EVENT_SHOWN)\n }\n\n const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1)\n const scrollSize = `scroll${capitalizedDimension}`\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n\n this._element.style[dimension] = `${this._element[scrollSize]}px`\n }\n\n hide() {\n if (this._isTransitioning ||\n !$(this._element).hasClass(CLASS_NAME_SHOW)) {\n return\n }\n\n const startEvent = $.Event(EVENT_HIDE)\n $(this._element).trigger(startEvent)\n if (startEvent.isDefaultPrevented()) {\n return\n }\n\n const dimension = this._getDimension()\n\n this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`\n\n Util.reflow(this._element)\n\n $(this._element)\n .addClass(CLASS_NAME_COLLAPSING)\n .removeClass(`${CLASS_NAME_COLLAPSE} ${CLASS_NAME_SHOW}`)\n\n const triggerArrayLength = this._triggerArray.length\n if (triggerArrayLength > 0) {\n for (let i = 0; i < triggerArrayLength; i++) {\n const trigger = this._triggerArray[i]\n const selector = Util.getSelectorFromElement(trigger)\n\n if (selector !== null) {\n const $elem = $([].slice.call(document.querySelectorAll(selector)))\n if (!$elem.hasClass(CLASS_NAME_SHOW)) {\n $(trigger).addClass(CLASS_NAME_COLLAPSED)\n .attr('aria-expanded', false)\n }\n }\n }\n }\n\n this.setTransitioning(true)\n\n const complete = () => {\n this.setTransitioning(false)\n $(this._element)\n .removeClass(CLASS_NAME_COLLAPSING)\n .addClass(CLASS_NAME_COLLAPSE)\n .trigger(EVENT_HIDDEN)\n }\n\n this._element.style[dimension] = ''\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, complete)\n .emulateTransitionEnd(transitionDuration)\n }\n\n setTransitioning(isTransitioning) {\n this._isTransitioning = isTransitioning\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n\n this._config = null\n this._parent = null\n this._element = null\n this._triggerArray = null\n this._isTransitioning = null\n }\n\n // Private\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n config.toggle = Boolean(config.toggle) // Coerce string values\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _getDimension() {\n const hasWidth = $(this._element).hasClass(DIMENSION_WIDTH)\n return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT\n }\n\n _getParent() {\n let parent\n\n if (Util.isElement(this._config.parent)) {\n parent = this._config.parent\n\n // It's a jQuery object\n if (typeof this._config.parent.jquery !== 'undefined') {\n parent = this._config.parent[0]\n }\n } else {\n parent = document.querySelector(this._config.parent)\n }\n\n const selector = `[data-toggle=\"collapse\"][data-parent=\"${this._config.parent}\"]`\n const children = [].slice.call(parent.querySelectorAll(selector))\n\n $(children).each((i, element) => {\n this._addAriaAndCollapsedClass(\n Collapse._getTargetFromElement(element),\n [element]\n )\n })\n\n return parent\n }\n\n _addAriaAndCollapsedClass(element, triggerArray) {\n const isOpen = $(element).hasClass(CLASS_NAME_SHOW)\n\n if (triggerArray.length) {\n $(triggerArray)\n .toggleClass(CLASS_NAME_COLLAPSED, !isOpen)\n .attr('aria-expanded', isOpen)\n }\n }\n\n // Static\n static _getTargetFromElement(element) {\n const selector = Util.getSelectorFromElement(element)\n return selector ? document.querySelector(selector) : null\n }\n\n static _jQueryInterface(config) {\n return this.each(function () {\n const $element = $(this)\n let data = $element.data(DATA_KEY)\n const _config = {\n ...Default,\n ...$element.data(),\n ...(typeof config === 'object' && config ? config : {})\n }\n\n if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {\n _config.toggle = false\n }\n\n if (!data) {\n data = new Collapse(this, _config)\n $element.data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`)\n }\n\n data[config]()\n }\n })\n }\n}\n\n/**\n * Data API implementation\n */\n\n$(document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n // preventDefault only for elements (which change the URL) not inside the collapsible element\n if (event.currentTarget.tagName === 'A') {\n event.preventDefault()\n }\n\n const $trigger = $(this)\n const selector = Util.getSelectorFromElement(this)\n const selectors = [].slice.call(document.querySelectorAll(selector))\n\n $(selectors).each(function () {\n const $target = $(this)\n const data = $target.data(DATA_KEY)\n const config = data ? 'toggle' : $trigger.data()\n Collapse._jQueryInterface.call($target, config)\n })\n})\n\n/**\n * jQuery\n */\n\n$.fn[NAME] = Collapse._jQueryInterface\n$.fn[NAME].Constructor = Collapse\n$.fn[NAME].noConflict = () => {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Collapse._jQueryInterface\n}\n\nexport default Collapse\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.6.2): modal.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport $ from 'jquery'\nimport Util from './util'\n\n/**\n * Constants\n */\n\nconst NAME = 'modal'\nconst VERSION = '4.6.2'\nconst DATA_KEY = 'bs.modal'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\nconst JQUERY_NO_CONFLICT = $.fn[NAME]\nconst ESCAPE_KEYCODE = 27 // KeyboardEvent.which value for Escape (Esc) key\n\nconst CLASS_NAME_SCROLLABLE = 'modal-dialog-scrollable'\nconst CLASS_NAME_SCROLLBAR_MEASURER = 'modal-scrollbar-measure'\nconst CLASS_NAME_BACKDROP = 'modal-backdrop'\nconst CLASS_NAME_OPEN = 'modal-open'\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_NAME_STATIC = 'modal-static'\n\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\nconst EVENT_FOCUSIN = `focusin${EVENT_KEY}`\nconst EVENT_RESIZE = `resize${EVENT_KEY}`\nconst EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY}`\nconst EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY}`\nconst EVENT_MOUSEUP_DISMISS = `mouseup.dismiss${EVENT_KEY}`\nconst EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\nconst SELECTOR_DIALOG = '.modal-dialog'\nconst SELECTOR_MODAL_BODY = '.modal-body'\nconst SELECTOR_DATA_TOGGLE = '[data-toggle=\"modal\"]'\nconst SELECTOR_DATA_DISMISS = '[data-dismiss=\"modal\"]'\nconst SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'\nconst SELECTOR_STICKY_CONTENT = '.sticky-top'\n\nconst Default = {\n backdrop: true,\n keyboard: true,\n focus: true,\n show: true\n}\n\nconst DefaultType = {\n backdrop: '(boolean|string)',\n keyboard: 'boolean',\n focus: 'boolean',\n show: 'boolean'\n}\n\n/**\n * Class definition\n */\n\nclass Modal {\n constructor(element, config) {\n this._config = this._getConfig(config)\n this._element = element\n this._dialog = element.querySelector(SELECTOR_DIALOG)\n this._backdrop = null\n this._isShown = false\n this._isBodyOverflowing = false\n this._ignoreBackdropClick = false\n this._isTransitioning = false\n this._scrollbarWidth = 0\n }\n\n // Getters\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n toggle(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget)\n }\n\n show(relatedTarget) {\n if (this._isShown || this._isTransitioning) {\n return\n }\n\n const showEvent = $.Event(EVENT_SHOW, {\n relatedTarget\n })\n\n $(this._element).trigger(showEvent)\n\n if (showEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = true\n\n if ($(this._element).hasClass(CLASS_NAME_FADE)) {\n this._isTransitioning = true\n }\n\n this._checkScrollbar()\n this._setScrollbar()\n\n this._adjustDialog()\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(this._element).on(\n EVENT_CLICK_DISMISS,\n SELECTOR_DATA_DISMISS,\n event => this.hide(event)\n )\n\n $(this._dialog).on(EVENT_MOUSEDOWN_DISMISS, () => {\n $(this._element).one(EVENT_MOUSEUP_DISMISS, event => {\n if ($(event.target).is(this._element)) {\n this._ignoreBackdropClick = true\n }\n })\n })\n\n this._showBackdrop(() => this._showElement(relatedTarget))\n }\n\n hide(event) {\n if (event) {\n event.preventDefault()\n }\n\n if (!this._isShown || this._isTransitioning) {\n return\n }\n\n const hideEvent = $.Event(EVENT_HIDE)\n\n $(this._element).trigger(hideEvent)\n\n if (!this._isShown || hideEvent.isDefaultPrevented()) {\n return\n }\n\n this._isShown = false\n const transition = $(this._element).hasClass(CLASS_NAME_FADE)\n\n if (transition) {\n this._isTransitioning = true\n }\n\n this._setEscapeEvent()\n this._setResizeEvent()\n\n $(document).off(EVENT_FOCUSIN)\n\n $(this._element).removeClass(CLASS_NAME_SHOW)\n\n $(this._element).off(EVENT_CLICK_DISMISS)\n $(this._dialog).off(EVENT_MOUSEDOWN_DISMISS)\n\n if (transition) {\n const transitionDuration = Util.getTransitionDurationFromElement(this._element)\n\n $(this._element)\n .one(Util.TRANSITION_END, event => this._hideModal(event))\n .emulateTransitionEnd(transitionDuration)\n } else {\n this._hideModal()\n }\n }\n\n dispose() {\n [window, this._element, this._dialog]\n .forEach(htmlElement => $(htmlElement).off(EVENT_KEY))\n\n /**\n * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`\n * Do not move `document` in `htmlElements` array\n * It will remove `EVENT_CLICK_DATA_API` event that should remain\n */\n $(document).off(EVENT_FOCUSIN)\n\n $.removeData(this._element, DATA_KEY)\n\n this._config = null\n this._element = null\n this._dialog = null\n this._backdrop = null\n this._isShown = null\n this._isBodyOverflowing = null\n this._ignoreBackdropClick = null\n this._isTransitioning = null\n this._scrollbarWidth = null\n }\n\n handleUpdate() {\n this._adjustDialog()\n }\n\n // Private\n _getConfig(config) {\n config = {\n ...Default,\n ...config\n }\n Util.typeCheckConfig(NAME, config, DefaultType)\n return config\n }\n\n _triggerBackdropTransition() {\n const hideEventPrevented = $.Event(EVENT_HIDE_PREVENTED)\n\n $(this._element).trigger(hideEventPrevented)\n if (hideEventPrevented.isDefaultPrevented()) {\n return\n }\n\n const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight\n\n if (!isModalOverflowing) {\n this._element.style.overflowY = 'hidden'\n }\n\n this._element.classList.add(CLASS_NAME_STATIC)\n\n const modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog)\n $(this._element).off(Util.TRANSITION_END)\n\n $(this._element).one(Util.TRANSITION_END, () => {\n this._element.classList.remove(CLASS_NAME_STATIC)\n if (!isModalOverflowing) {\n $(this._element).one(Util.TRANSITION_END, () => {\n this._element.style.overflowY = ''\n })\n .emulateTransitionEnd(this._element, modalTransitionDuration)\n }\n })\n .emulateTransitionEnd(modalTransitionDuration)\n this._element.focus()\n }\n\n _showElement(relatedTarget) {\n const transition = $(this._element).hasClass(CLASS_NAME_FADE)\n const modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null\n\n if (!this._element.parentNode ||\n this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {\n // Don't move modal's DOM position\n document.body.appendChild(this._element)\n }\n\n this._element.style.display = 'block'\n this._element.removeAttribute('aria-hidden')\n this._element.setAttribute('aria-modal', true)\n this._element.setAttribute('role', 'dialog')\n\n if ($(this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {\n modalBody.scrollTop = 0\n } else {\n this._element.scrollTop = 0\n }\n\n if (transition) {\n Util.reflow(this._element)\n }\n\n $(this._element).addClass(CLASS_NAME_SHOW)\n\n if (this._config.focus) {\n this._enforceFocus()\n }\n\n const shownEvent = $.Event(EVENT_SHOWN, {\n relatedTarget\n })\n\n const transitionComplete = () => {\n if (this._config.focus) {\n this._element.focus()\n }\n\n this._isTransitioning = false\n $(this._element).trigger(shownEvent)\n }\n\n if (transition) {\n const transitionDuration = Util.getTransitionDurationFromElement(this._dialog)\n\n $(this._dialog)\n .one(Util.TRANSITION_END, transitionComplete)\n .emulateTransitionEnd(transitionDuration)\n } else {\n transitionComplete()\n }\n }\n\n _enforceFocus() {\n $(document)\n .off(EVENT_FOCUSIN) // Guard against infinite focus loop\n .on(EVENT_FOCUSIN, event => {\n if (document !== event.target &&\n this._element !== event.target &&\n $(this._element).has(event.target).length === 0) {\n this._element.focus()\n }\n })\n }\n\n _setEscapeEvent() {\n if (this._isShown) {\n $(this._element).on(EVENT_KEYDOWN_DISMISS, event => {\n if (this._config.keyboard && event.which === ESCAPE_KEYCODE) {\n event.preventDefault()\n this.hide()\n } else if (!this._config.keyboard && event.which === ESCAPE_KEYCODE) {\n this._triggerBackdropTransition()\n }\n })\n } else if (!this._isShown) {\n $(this._element).off(EVENT_KEYDOWN_DISMISS)\n }\n }\n\n _setResizeEvent() {\n if (this._isShown) {\n $(window).on(EVENT_RESIZE, event => this.handleUpdate(event))\n } else {\n $(window).off(EVENT_RESIZE)\n }\n }\n\n _hideModal() {\n this._element.style.display = 'none'\n this._element.setAttribute('aria-hidden', true)\n this._element.removeAttribute('aria-modal')\n this._element.removeAttribute('role')\n this._isTransitioning = false\n this._showBackdrop(() => {\n $(document.body).removeClass(CLASS_NAME_OPEN)\n this._resetAdjustments()\n this._resetScrollbar()\n $(this._element).trigger(EVENT_HIDDEN)\n })\n }\n\n _removeBackdrop() {\n if (this._backdrop) {\n $(this._backdrop).remove()\n this._backdrop = null\n }\n }\n\n _showBackdrop(callback) {\n const animate = $(this._element).hasClass(CLASS_NAME_FADE) ?\n CLASS_NAME_FADE : ''\n\n if (this._isShown && this._config.backdrop) {\n this._backdrop = document.createElement('div')\n this._backdrop.className = CLASS_NAME_BACKDROP\n\n if (animate) {\n this._backdrop.classList.add(animate)\n }\n\n $(this._backdrop).appendTo(document.body)\n\n $(this._element).on(EVENT_CLICK_DISMISS, event => {\n if (this._ignoreBackdropClick) {\n this._ignoreBackdropClick = false\n return\n }\n\n if (event.target !== event.currentTarget) {\n return\n }\n\n if (this._config.backdrop === 'static') {\n this._triggerBackdropTransition()\n } else {\n this.hide()\n }\n })\n\n if (animate) {\n Util.reflow(this._backdrop)\n }\n\n $(this._backdrop).addClass(CLASS_NAME_SHOW)\n\n if (!callback) {\n return\n }\n\n if (!animate) {\n callback()\n return\n }\n\n const backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop)\n\n $(this._backdrop)\n .one(Util.TRANSITION_END, callback)\n .emulateTransitionEnd(backdropTransitionDuration)\n } else if (!this._isShown && this._backdrop) {\n $(this._backdrop).removeClass(CLASS_NAME_SHOW)\n\n const callbackRemove = () => {\n this._removeBackdrop()\n if (callback) {\n callback()\n }\n }\n\n if ($(this._element).hasClass(CLASS_NAME_FADE)) {\n const backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop)\n\n $(this._backdrop)\n .one(Util.TRANSITION_END, callbackRemove)\n .emulateTransitionEnd(backdropTransitionDuration)\n } else {\n callbackRemove()\n }\n } else if (callback) {\n callback()\n }\n }\n\n // ----------------------------------------------------------------------\n // the following methods are used to handle overflowing modals\n // todo (fat): these should probably be refactored out of modal.js\n // ----------------------------------------------------------------------\n\n _adjustDialog() {\n const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight\n\n if (!this._isBodyOverflowing && isModalOverflowing) {\n this._element.style.paddingLeft = `${this._scrollbarWidth}px`\n }\n\n if (this._isBodyOverflowing && !isModalOverflowing) {\n this._element.style.paddingRight = `${this._scrollbarWidth}px`\n }\n }\n\n _resetAdjustments() {\n this._element.style.paddingLeft = ''\n this._element.style.paddingRight = ''\n }\n\n _checkScrollbar() {\n const rect = document.body.getBoundingClientRect()\n this._isBodyOverflowing = Math.round(rect.left + rect.right) < window.innerWidth\n this._scrollbarWidth = this._getScrollbarWidth()\n }\n\n _setScrollbar() {\n if (this._isBodyOverflowing) {\n // Note: DOMNode.style.paddingRight returns the actual value or '' if not set\n // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set\n const fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT))\n const stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT))\n\n // Adjust fixed content padding\n $(fixedContent).each((index, element) => {\n const actualPadding = element.style.paddingRight\n const calculatedPadding = $(element).css('padding-right')\n $(element)\n .data('padding-right', actualPadding)\n .css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n })\n\n // Adjust sticky content margin\n $(stickyContent).each((index, element) => {\n const actualMargin = element.style.marginRight\n const calculatedMargin = $(element).css('margin-right')\n $(element)\n .data('margin-right', actualMargin)\n .css('margin-right', `${parseFloat(calculatedMargin) - this._scrollbarWidth}px`)\n })\n\n // Adjust body padding\n const actualPadding = document.body.style.paddingRight\n const calculatedPadding = $(document.body).css('padding-right')\n $(document.body)\n .data('padding-right', actualPadding)\n .css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)\n }\n\n $(document.body).addClass(CLASS_NAME_OPEN)\n }\n\n _resetScrollbar() {\n // Restore fixed content padding\n const fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT))\n $(fixedContent).each((index, element) => {\n const padding = $(element).data('padding-right')\n $(element).removeData('padding-right')\n element.style.paddingRight = padding ? padding : ''\n })\n\n // Restore sticky content\n const elements = [].slice.call(document.querySelectorAll(`${SELECTOR_STICKY_CONTENT}`))\n $(elements).each((index, element) => {\n const margin = $(element).data('margin-right')\n if (typeof margin !== 'undefined') {\n $(element).css('margin-right', margin).removeData('margin-right')\n }\n })\n\n // Restore body padding\n const padding = $(document.body).data('padding-right')\n $(document.body).removeData('padding-right')\n document.body.style.paddingRight = padding ? padding : ''\n }\n\n _getScrollbarWidth() { // thx d.walsh\n const scrollDiv = document.createElement('div')\n scrollDiv.className = CLASS_NAME_SCROLLBAR_MEASURER\n document.body.appendChild(scrollDiv)\n const scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth\n document.body.removeChild(scrollDiv)\n return scrollbarWidth\n }\n\n // Static\n static _jQueryInterface(config, relatedTarget) {\n return this.each(function () {\n let data = $(this).data(DATA_KEY)\n const _config = {\n ...Default,\n ...$(this).data(),\n ...(typeof config === 'object' && config ? config : {})\n }\n\n if (!data) {\n data = new Modal(this, _config)\n $(this).data(DATA_KEY, data)\n }\n\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`)\n }\n\n data[config](relatedTarget)\n } else if (_config.show) {\n data.show(relatedTarget)\n }\n })\n }\n}\n\n/**\n * Data API implementation\n */\n\n$(document).on(EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n let target\n const selector = Util.getSelectorFromElement(this)\n\n if (selector) {\n target = document.querySelector(selector)\n }\n\n const config = $(target).data(DATA_KEY) ?\n 'toggle' : {\n ...$(target).data(),\n ...$(this).data()\n }\n\n if (this.tagName === 'A' || this.tagName === 'AREA') {\n event.preventDefault()\n }\n\n const $target = $(target).one(EVENT_SHOW, showEvent => {\n if (showEvent.isDefaultPrevented()) {\n // Only register focus restorer if modal will actually get shown\n return\n }\n\n $target.one(EVENT_HIDDEN, () => {\n if ($(this).is(':visible')) {\n this.focus()\n }\n })\n })\n\n Modal._jQueryInterface.call($(target), config, this)\n})\n\n/**\n * jQuery\n */\n\n$.fn[NAME] = Modal._jQueryInterface\n$.fn[NAME].Constructor = Modal\n$.fn[NAME].noConflict = () => {\n $.fn[NAME] = JQUERY_NO_CONFLICT\n return Modal._jQueryInterface\n}\n\nexport default Modal\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.6.2): scrollspy.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport $ from 'jquery'\nimport Util from './util'\n\n/**\n * Constants\n */\n\nconst NAME = 'scrollspy'\nconst VERSION = '4.6.2'\nconst DATA_KEY = 'bs.scrollspy'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\nconst JQUERY_NO_CONFLICT = $.fn[NAME]\n\nconst CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item'\nconst CLASS_NAME_ACTIVE = 'active'\n\nconst EVENT_ACTIVATE = `activate${EVENT_KEY}`\nconst EVENT_SCROLL = `scroll${EVENT_KEY}`\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`\n\nconst METHOD_OFFSET = 'offset'\nconst METHOD_POSITION = 'position'\n\nconst SELECTOR_DATA_SPY = '[data-spy=\"scroll\"]'\nconst SELECTOR_NAV_LIST_GROUP = '.nav, .list-group'\nconst SELECTOR_NAV_LINKS = '.nav-link'\nconst SELECTOR_NAV_ITEMS = '.nav-item'\nconst SELECTOR_LIST_ITEMS = '.list-group-item'\nconst SELECTOR_DROPDOWN = '.dropdown'\nconst SELECTOR_DROPDOWN_ITEMS = '.dropdown-item'\nconst SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'\n\nconst Default = {\n offset: 10,\n method: 'auto',\n target: ''\n}\n\nconst DefaultType = {\n offset: 'number',\n method: 'string',\n target: '(string|element)'\n}\n\n/**\n * Class definition\n */\n\nclass ScrollSpy {\n constructor(element, config) {\n this._element = element\n this._scrollElement = element.tagName === 'BODY' ? window : element\n this._config = this._getConfig(config)\n this._selector = `${this._config.target} ${SELECTOR_NAV_LINKS},` +\n `${this._config.target} ${SELECTOR_LIST_ITEMS},` +\n `${this._config.target} ${SELECTOR_DROPDOWN_ITEMS}`\n this._offsets = []\n this._targets = []\n this._activeTarget = null\n this._scrollHeight = 0\n\n $(this._scrollElement).on(EVENT_SCROLL, event => this._process(event))\n\n this.refresh()\n this._process()\n }\n\n // Getters\n static get VERSION() {\n return VERSION\n }\n\n static get Default() {\n return Default\n }\n\n // Public\n refresh() {\n const autoMethod = this._scrollElement === this._scrollElement.window ?\n METHOD_OFFSET : METHOD_POSITION\n\n const offsetMethod = this._config.method === 'auto' ?\n autoMethod : this._config.method\n\n const offsetBase = offsetMethod === METHOD_POSITION ?\n this._getScrollTop() : 0\n\n this._offsets = []\n this._targets = []\n\n this._scrollHeight = this._getScrollHeight()\n\n const targets = [].slice.call(document.querySelectorAll(this._selector))\n\n targets\n .map(element => {\n let target\n const targetSelector = Util.getSelectorFromElement(element)\n\n if (targetSelector) {\n target = document.querySelector(targetSelector)\n }\n\n if (target) {\n const targetBCR = target.getBoundingClientRect()\n if (targetBCR.width || targetBCR.height) {\n // TODO (fat): remove sketch reliance on jQuery position/offset\n return [\n $(target)[offsetMethod]().top + offsetBase,\n targetSelector\n ]\n }\n }\n\n return null\n })\n .filter(Boolean)\n .sort((a, b) => a[0] - b[0])\n .forEach(item => {\n this._offsets.push(item[0])\n this._targets.push(item[1])\n })\n }\n\n dispose() {\n $.removeData(this._element, DATA_KEY)\n $(this._scrollElement).off(EVENT_KEY)\n\n this._element = null\n this._scrollElement = null\n this._config = null\n this._selector = null\n this._offsets = null\n this._targets = null\n this._activeTarget = null\n this._scrollHeight = null\n }\n\n // Private\n _getConfig(config) {\n config = {\n ...Default,\n ...(typeof config === 'object' && config ? config : {})\n }\n\n if (typeof config.target !== 'string' && Util.isElement(config.target)) {\n let id = $(config.target).attr('id')\n if (!id) {\n id = Util.getUID(NAME)\n $(config.target).attr('id', id)\n }\n\n config.target = `#${id}`\n }\n\n Util.typeCheckConfig(NAME, config, DefaultType)\n\n return config\n }\n\n _getScrollTop() {\n return this._scrollElement === window ?\n this._scrollElement.pageYOffset : this._scrollElement.scrollTop\n }\n\n _getScrollHeight() {\n return this._scrollElement.scrollHeight || Math.max(\n document.body.scrollHeight,\n document.documentElement.scrollHeight\n )\n }\n\n _getOffsetHeight() {\n return this._scrollElement === window ?\n window.innerHeight : this._scrollElement.getBoundingClientRect().height\n }\n\n _process() {\n const scrollTop = this._getScrollTop() + this._config.offset\n const scrollHeight = this._getScrollHeight()\n const maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight()\n\n if (this._scrollHeight !== scrollHeight) {\n this.refresh()\n }\n\n if (scrollTop >= maxScroll) {\n const target = this._targets[this._targets.length - 1]\n\n if (this._activeTarget !== target) {\n this._activate(target)\n }\n\n return\n }\n\n if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {\n this._activeTarget = null\n this._clear()\n return\n }\n\n for (let i = this._offsets.length; i--;) {\n const isActiveTarget = this._activeTarget !== this._targets[i] &&\n scrollTop >= this._offsets[i] &&\n (typeof this._offsets[i + 1] === 'undefined' ||\n scrollTop < this._offsets[i + 1])\n\n if (isActiveTarget) {\n this._activate(this._targets[i])\n }\n }\n }\n\n _activate(target) {\n this._activeTarget = target\n\n this._clear()\n\n const queries = this._selector\n .split(',')\n .map(selector => `${selector}[data-target=\"${target}\"],${selector}[href=\"${target}\"]`)\n\n const $link = $([].slice.call(document.querySelectorAll(queries.join(','))))\n\n if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {\n $link.closest(SELECTOR_DROPDOWN)\n .find(SELECTOR_DROPDOWN_TOGGLE)\n .addClass(CLASS_NAME_ACTIVE)\n $link.addClass(CLASS_NAME_ACTIVE)\n } else {\n // Set triggered link as active\n $link.addClass(CLASS_NAME_ACTIVE)\n // Set triggered links parents as active\n // With both
          and