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L,QAASvL,GACTm1B,OAAQA,GACR2I,UAAWA,GACX0K,OAAQ1K,GACRjmC,SAAUA,GACV8/B,OAAQA,GACRuG,MAAOA,GACPC,IAAKA,GACL15B,IAAKA,GACL/K,IAAKA,GACLylC,UAAWA,GACXV,SAAUA,GACV/D,SAAUA,EACV4E,KAAMA,GACNhB,OAAQD,GACRM,SAAUA,GACVY,WAAYA,GACZb,QAASA,GACT+J,QAAS/J,GACTc,MAAOA,GACPnqB,OAAQA,GACRoC,IAAKA,GACLgpB,OAAQL,GACRsI,SAAUrI,GACVC,iBAAkBA,GAClBS,SAAUA,GACVpjB,OAAQA,GACR2jB,SAAUA,GACVE,MAAOA,GACPxC,SAAUA,GACV+C,QAASA,GACT7oC,KAAMA,GACN0pC,QAASA,GACTC,QAASA,GACTlf,MAAOA,GACPuf,MAAOA,GACPC,SAAUA,GACV7kB,SAAUA,GACV4lB,KAAMA,GACNC,OAAQA,GACRE,QAASA,GACT1/B,MAAOA,GACPggB,OAAQA,GACR4f,KAAMA,GACNC,QAASA,GACTpsB,UAAWA,GACXwsB,cAAeA,GACfC,YAAaA,GACbpnC,QAASA,GACT0nC,YAAaA,GACbxuC,KAAMA,GACNgyC,OAAQhyC,GACRyuC,UAAWA,GACXvmC,KAAMA,GACNwH,QAASxH,GACTyK,IAAKA,GACLs/B,QAASt/B,GACToU,OAAQA,GACRmrB,MAAOnrB,GACPorB,OAAQprB,GACR8nB,YAAaA,GACbuD,MAAOvD,GACPjtB,OAAQA,GACRkL,OAAQlL,GACRktB,OAAQA,GACRx2B,MAAOA,GACP+5B,IAAK/5B,GACLqmB,KAAMA,GACN2T,IAAK3T,GACL35B,SAAUA,GACVutC,SAAUvtC,GACV2T,QAAS3T,GACT6oB,OAAQA,GACRqhB,MAAOA,GACPC,MAAOA,GACPrN,IAAKA,GACLkH,IAAKA,GACL2G,QAASA,GACTJ,OAAQA,GACRK,OAAQA,GACRM,QAASA,GACTC,QAASA,GACTC,QAASA,GACTH,UAAWA,GACX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B,EAAE8f,YAAY95B,MAC7C,QAAN+9B,GAAqB,QAANA,EAAoBhrB,MAAMw2B,KAAKvvB,GACxC,cAAN+jB,GAAqB,2CAA2C/iB,KAAK+iB,GAAWmvF,EAAiBlzG,EAAGmzG,QAAxG,CALc,CAMhB,EAC8C54H,EAAOC,QAAQi3H,YAAa,EAAMl3H,EAAOC,QAAiB,QAAID,EAAOC,UCR/G44H,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBzpH,IAAjB0pH,EACH,OAAOA,EAAa/4H,QAGrB,IAAID,EAAS64H,EAAyBE,GAAY,CACjDv3H,GAAIu3H,EACJE,QAAQ,EACRh5H,QAAS,CAAC,GAUX,OANAi5H,EAAoBH,GAAU/4H,EAAQA,EAAOC,QAAS64H,GAGtD94H,EAAOi5H,QAAS,EAGTj5H,EAAOC,OACf,CCzBA64H,EAAoBK,KAAO,CAAC,ECA5BL,EAAoBnqG,EAAI,WACvB,GAA0B,iBAAfyqG,WAAyB,OAAOA,WAC3C,IACC,OAAO74H,MAAQ,IAAIugC,SAAS,cAAb,EAChB,CAAE,MAAO1gC,GACR,GAAsB,iBAAX2C,OAAqB,OAAOA,MACxC,CACA,CAPuB,GCAxB+1H,EAAoBO,IAAM,SAASr5H,GAGlC,OAFAA,EAAOmlG,MAAQ,GACVnlG,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_fitnessmarket/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/@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_fitnessmarket/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\ndocument.addEventListener('integration:feature-flag-provider', (event) => {\n event.detail.registrar.register({\n site: 'FM',\n 'analytics.gtm.active': true,\n 'voyado.tracker.active': true,\n 'cart.active': true,\n 'checkout.klarna.active': false,\n 'checkout.klarna.instantshopping.active': false,\n // klarna + dark OR express + light\n 'checkout.klarna.instantshopping.style.variation': '', // No Klarna integration on the site.\n 'checkout.klarna.instantshopping.style.type': '', // No Klarna integration on the site.\n 'customer.registration.enabled': false,\n 'customer.registration.registrationTabFlag': false,\n 'integration.gmf.active': true\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