1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[98538],{156(t){var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a(Array.isArray(t)?[]:{},t,e):t}function o(t,e,s){return t.concat(e).map(function(t){return r(t,s)})}function i(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function n(t,e){try{return e in t}catch(t){return!1}}function a(t,s,h){(h=h||{}).arrayMerge=h.arrayMerge||o,h.isMergeableObject=h.isMergeableObject||e,h.cloneUnlessOtherwiseSpecified=r;var u,c,l=Array.isArray(s);return l!==Array.isArray(t)?r(s,h):l?h.arrayMerge(t,s,h):(c={},(u=h).isMergeableObject(t)&&i(t).forEach(function(e){c[e]=r(t[e],u)}),i(s).forEach(function(e){(!n(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(n(t,e)&&u.isMergeableObject(s[e])?c[e]=(function(t,e){if(!e.customMerge)return a;var s=e.customMerge(t);return"function"==typeof s?s:a})(e,u)(t[e],s[e],u):c[e]=r(s[e],u))}),c)}a.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,s){return a(t,s,e)},{})},t.exports=a},369(t,e,s){s.d(e,{A:()=>n});var r=s(452);class o{constructor(){this._storage={}}setItem(t,e){return this._storage[t]=e}getItem(t){return Object.prototype.hasOwnProperty.call(this._storage,t)?this._storage[t]:null}removeItem(t){return delete this._storage[t]}key(t){return Object.values(this._storage)[t]||null}clear(){return this._storage={}}}class i{constructor(){this._storage=null,this._chooseStorage(),this._validateStorage()}_chooseStorage(){return i._isSupported("localStorage")?this._storage=window.localStorage:i._isSupported("sessionStorage")?this._storage=window.sessionStorage:r.A.isSupported()?this._storage=r.A:this._storage=new o}static _isSupported(t){try{let e="__storage_test";return window[t].setItem(e,"1"),window[t].removeItem(e),!0}catch(t){return!1}}_validateStorage(){if("function"!=typeof this._storage.setItem)throw Error('The storage must have a "setItem" function');if("function"!=typeof this._storage.getItem)throw Error('The storage must have a "getItem" function');if("function"!=typeof this._storage.removeItem)throw Error('The storage must have a "removeItem" function');if("function"!=typeof this._storage.key)throw Error('The storage must have a "key" function');if("function"!=typeof this._storage.clear)throw Error('The storage must have a "clear" function')}getStorage(){return this._storage}}let n=Object.freeze(new i).getStorage()},373(t,e,s){s.d(e,{A:()=>a});var r=s(156),o=s.n(r);class i{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let s=i.toUpperCamelCase(t,e);return i.lcFirst(s)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>i.ucFirst(t.toLowerCase())).join(""):i.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}class n{constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(t,{detail:e,cancelable:s});return this.el.dispatchEvent(r),r}subscribe(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,o=t.split("."),i=s.scope?e.bind(s.scope):e;if(s.once&&!0===s.once){let e=i;i=function(s){r.unsubscribe(t),e(s)}}return this.el.addEventListener(o[0],i),this.listeners.push({splitEventName:o,opts:s,cb:i}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,s)=>([...s.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(s.splitEventName[0],s.cb):t.push(s),t),[]),!0}
1reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}}class a{constructor(t,e={},s=!1){if(!(t instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${s}".`);return}this.el=t,this.$emitter=new n(this.el),this._pluginName=this._getPluginName(s),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let e=[this.constructor.options,this.options,t];return e.push(this._getConfigFromDataAttribute()),e.push(this._getOptionsFromDataAttribute()),o().all(e.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_getConfigFromDataAttribute(){let t={};if("function"!=typeof this.el.getAttribute)return t;let e=i.toDashCase(this._pluginName),s=this.el.getAttribute(`data-${e}-config`);return s?window.PluginConfigManager.get(this._pluginName,s):t}_getOptionsFromDataAttribute(){let t={};if("function"!=typeof this.el.getAttribute)return t;let e=i.toDashCase(this._pluginName),s=this.el.getAttribute(`data-${e}-options`);if(s)try{return JSON.parse(s)}catch(t){console.error(`The data attribute "data-${e}-options" could not be parsed to json: ${t.message}`)}return t}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}}},452(t,e,s){s.d(e,{A:()=>r});class r{static isSupported(){return"undefined"!==document.cookie}static setItem(t,e,s){if(null==t)throw Error("You must specify a key to set a cookie");let r=new Date;r.setTime(r.getTime()+864e5*s);let o="";"https:"===location.protocol&&(o="secure"),document.cookie=`${t}=${e};expires=${r.toUTCString()};path=/;sameSite=lax;${o}`}static getItem(t){if(!t)return!1;let e=t+"=",s=document.cookie.split(";");for(let t=0;t<s.length;t++){let r=s[t];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(e))return r.substring(e.length,r.length)}return!1}static removeItem(t){document.cookie=`${t}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/`}static key(){return""}static clear(){}}},538(t,e,s){s.r(e),s.d(e,{default:()=>a});var r=s(369),o=s(917),i=s(452);class n extends o.A{init(){this.cookieEnabledName="wishlist-enabled",this.storage=r.A,super.init(),this._registerEvents()}load(){this.products=this._fetch(),super.load()}add(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],super.add(t),this._save()}remove(t){super.remove(t),this._save()}_fetch(){if(window.useDefaultCookieConsent&&!i.A.getItem(this.cookieEnabledName)&&this.storage.removeItem(this._getStorageKey()),this.getCurrentCounter()>0)return this.products;let t=this.storage.getItem(this._getStorageKey());if(!t)return{};try{let e=JSON.parse(t);return e instanceof Object?e:{}}catch{return{}}}_save(){null===this.products||0===this.getCurrentCounter()?this.storage.removeItem(this._getStorageKey()):this.storage.setItem(this._getStorageKey(),JSON.stringify(this.products))}_getStorageKey(){return"wishlist-"+(window.salesChannelId||"")}_registerEvents(){let t=window.PluginManager.getPluginInstances("AccountGuestAbortButton");t&&t.forEach(t=>{t.$emitter.subscribe("guest-logout",()=>{this.storage.removeItem(this._getStorageKey())})})}}class a extends n{init(){this.STL_STORAGE_KEY="stl-wishlist-"+(window.salesChannelId||""),this.shopTheLooks={},super.init()}load(){super.load(),this._readShopTheLooksFromStorage(),this.$emitter.publish("Wishlist/onShopTheLooksLoaded",{shopTheLooks:this.shopTheLooks})}hasShopTheLook(t){return!!this.shopTheLooks[t]}addShopTheLook(t){this.shopTheLooks[t]=new Date().toISOString(),this.$emitter.publish("Wishlist/onS
1hopTheLookAdded",{shopTheLookId:t}),this._saveShopTheLooksToStorage()}removeShopTheLook(t){delete this.shopTheLooks[t],this.$emitter.publish("Wishlist/onShopTheLookRemoved",{shopTheLookId:t}),this._saveShopTheLooksToStorage()}getShopTheLooks(){return this.shopTheLooks}getShopTheLookCounter(){return Object.keys(this.shopTheLooks).length}getCurrentCounter(){return super.getCurrentCounter()+this.getShopTheLookCounter()}_readShopTheLooksFromStorage(){try{this.shopTheLooks=JSON.parse(r.A.getItem(this.STL_STORAGE_KEY))||{}}catch(t){this.shopTheLooks={}}}_saveShopTheLooksToStorage(){0===this.getShopTheLookCounter()?r.A.removeItem(this.STL_STORAGE_KEY):r.A.setItem(this.STL_STORAGE_KEY,JSON.stringify(this.shopTheLooks))}}},917(t,e,s){s.d(e,{A:()=>o});var r=s(373);class o extends r.A{init(){this.products={}}load(){this.$emitter.publish("Wishlist/onProductsLoaded",{products:this.products})}has(t){return!!this.products[t]}add(t){this.products[t]=new Date().toISOString(),this.$emitter.publish("Wishlist/onProductAdded",{products:this.products,productId:t})}remove(t){delete this.products[t],this.$emitter.publish("Wishlist/onProductRemoved",{products:this.products,productId:t})}getCurrentCounter(){return this.products?Object.keys(this.products).length:0}getProducts(){return this.products}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.