1(()=>{var e={156:e=>{"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function s(e,t,n){return e.concat(t).map(function(e){return i(e,n)})}function r(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||s,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var c,u,h=Array.isArray(n);return h!==Array.isArray(e)?i(n,l):h?l.arrayMerge(e,n,l):(u={},(c=l).isMergeableObject(e)&&r(e).forEach(function(t){u[t]=i(e[t],c)}),r(n).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&c.isMergeableObject(n[t])?u[t]=(function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a})(t,c)(e[t],n[t],c):u[t]=i(n[t],c))}),u)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},e.exports=a},308:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(e,{detail:t,cancelable:n});return this.el.dispatchEvent(i),i}subscribe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,s=e.split("."),r=n.scope?t.bind(n.scope):t;if(n.once&&!0===n.once){let t=r;r=function(n){i.unsubscribe(e),t(n)}}return this.el.addEventListener(s[0],r),this.listeners.push({splitEventName:s,opts:n,cb:r}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,n)=>([...n.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(n.splitEventName[0],n.cb):e.push(n),e),[]),!0}reset(){return this.listeners.forEach(e=>{this.el.removeEventListener(e.splitEventName[0],e.cb)}),this.listeners=[],!0}get el(){return this._el}set el(e){this._el=e}get listeners(){return this._listeners}set listeners(e){this._listeners=e}}},707:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}static lcFirst(e){return e.charAt(0).toLowerCase()+e.slice(1)}static toDashCase(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,t){let n=i.toUpperCamelCase(e,t);return i.lcFirst(n)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>i.ucFirst(e.toLowerCase())).join(""):i.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}},220:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(156),s=n.n(i),r=n(707),o=n(308);class a{constructor(e,t={},n=!1){if(!(e instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${n}".`);return}this.el=e,this.$emitter=new o.A(this.el),this._pluginName=this._getPluginName(n),this.options=this._mergeOptions(t),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(e){let t=[this.constructor.options,this.options,e];return t.push(this._getConfigFromDataAttribute()),t.push(this._getOptionsFromDataAttribute()),s().all(t.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>e||{}))}_getConfigFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=r.A.toDashCase(this._pluginName),n=this.el.getAttribute(`data-${t}-config`);return n?window.PluginConfigManager.get(this._pluginName,n):e}_getOptionsFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=r.A.toDashCase(this._pluginName),n=this.el.getAttribute(`data-${t}-options`);if(n)try{return JSON.parse(n)}catch(e){console.error(`The data attribute "data-${t}-options" could not be parsed to json: ${e.message}`)}return e}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(e){return e||(e=this.constructor.name),e}}},703:()=>{function e(e){return e&&"string"==typeof e?e.replace(/<script id="wbm-data-layer">[\s\S]*?<\/script>/g,"").trim():e}function t(e){if(window.hasOwnProperty("dataLayer"))try{let n=new DOMParser().parseFromString(e,"text/html").querySelector("#wbm-data-layer");if(n&&window.dataLayer){let e=JSON.parse(n.innerHTML);for(let n in e)if(e.hasOwnProperty(n)&&0!==e[n].length){var t=JSON.parse(e[n]);"default"===n?window.dataLayer.push(t):window.WbmDataLayer&&window.WbmDataLayer.push(t)}}}catch(e){console.error("Fehler bei der Verarbeitung des dataLayer:",e)}}let n=XMLHttpRequest.prototype.open,i=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"responseText");XMLHttpRequest.prototype.open=function(){this.addEventListener("loadend",function(e){if(["","text"].includes(e.target.responseType))try{let e=i.get.call(this);e&&"string"==typeof e&&e.includes('<script id="wbm-data-layer">')&&t(e)}catch(e){console.error("Fehler beim Verarbeiten der XHR-Antwort:",e)}}),n.apply(this,arguments)}
1,Object.defineProperty(XMLHttpRequest.prototype,"responseText",{get:function(){let t=i.get.call(this);return 4===this.readyState&&t&&"string"==typeof t&&t.includes('<script id="wbm-data-layer">')?e(t):t}});let s=window.fetch;window.fetch=function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return s.apply(this,i).then(async n=>{let i=n.clone(),s=n.headers.get("Content-Type");if(!(!s||s.includes("application/json")||s.includes("text/json")||s.includes("text/html")||s.includes("text/plain")))return n;try{let s=await i.text();if(s.includes('<script id="wbm-data-layer">')){t(s);let i=e(s),r={status:n.status,statusText:n.statusText,headers:new Headers(n.headers)};return new Response(i,r)}}catch(e){console.error("Fehler bei der Verarbeitung der fetch-Antwort:",e)}return n})}},797:()=>{document.$emitter.subscribe("ProductOptions/onBeforePostOptions",function(e){let t=e.detail,n=document.querySelectorAll("section:not(.d-none--steps):not(.dependencies--hidden)"),i=0;for(let e of t.entries())e[0].startsWith("productOptions")&&"productOptions[referencedId]"!==e[0]&&"productOptions[quantity]"!==e[0]&&""!==e[1]&&i++;t.has("productOptions[referencedId]")&&(0===n.length?(t.set("prodconf-step","0"),t.set("prodconf-status","start")):(t.set("prodconf-step",i),t.set("prodconf-status",i>=n.length?"new":"edit")))})},948:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static setImpressions(e){e&&(this.items=e.ecommerce.items),(null===this.items||0===this.items.length)&&console.info("no items found in dataLayer")}static getProductFromImpressions(e){let t=this.items.find((t,n)=>t.item_id===e);if(void 0===t)throw new s("product not found in items");return t}constructor(){this.items=null}}class s extends Error{constructor(e){super(e),this.name="InvalidImpressionsError"}}}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,i)=>(n.f[i](e,t),t),[])),n.u=e=>"./js/wbm-tag-manager-analytics/"+({49532:"wbm-tag-manager-analytics.productClickTracking.plugin",57826:"wbm-tag-manager-analytics.promotions.plugin",72552:"wbm-tag-manager-analytics.addToWishlistTracking.plugin"})[e]+"."+({49532:"bdf574",57826:"f2f0a9",72552:"e97e93"})[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={};n.l=(t,i,s,r)=>{if(e[t]){e[t].push(i);return}if(void 0!==s)for(var o,a,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==t){o=u;break}}o||(a=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,n.nc&&o.setAttribute("nonce",n.nc),o.src=t),e[t]=[i];var h=(n,i)=>{o.onerror=o.onload=null,clearTimeout(d);var s=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach(e=>e(i)),n)return n(i)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=h.bind(null,o.onerror),o.onload=h.bind(null,o.onload),a&&document.head.appendChild(o)}})(),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{n.g.importScripts&&(e=n.g.location+"");var e,t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var s=i.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=i[s--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../../"})(),(()=>{var e={26187:0};n.f.j=(t,i)=>{var s=n.o(e,t)?e[t]:void 0;if(0!==s){if(s)i.push(s[2]);else{var r=new Promise((n,i)=>s=e[t]=[n,i]);i.push(s[2]=r);var o=n.p+n.u(t),a=Error();n.l(o,i=>{if(n.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var r=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,s[1](a)}},"chunk-"+t,t)}}};var t=(t,i)=>{var s,r,[o,a,l]=i,c=0;if(o.some(t=>0!==e[t])){for(s in a)n.o(a,s)&&(n.m[s]=a[s]);l&&l(n)}for(t&&t(i);c<o.length;c++)r=o[c],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0},i=self.webpackChunk=self.webpackChunk||[];
1i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),(()=>{"use strict";var e=n(948);class t{static #e=this.event="";static push(n){if(window.dataLayer.push({ecommerce:null}),!n.hasOwnProperty("ecommerce")||!n.ecommerce.hasOwnProperty("items")||!n.hasOwnProperty("event")||(e.A.setImpressions(n),t.event=n.event,Math.ceil(new TextEncoder().encode(JSON.stringify(n)).length/1024)<=parseInt(maxDatalayerLimitBeforeSplit,10)||0===maxDatalayerLimitBeforeSplit)){window.dataLayer.push(n);return}let i=n.ecommerce.items,s=n.ecommerce,r=1,o=t.createEmptyDataLayer(s,r),a=[];for(let e=0;e<i.length;e++)a.push(i[e]),(e+1)%(maxDatalayerLimitBeforeSplit+1)==0&&(t.pushSubset(o,a),r++,o=t.createEmptyDataLayer(s,r),a=[]);a.length>0&&t.pushSubset(o,a)}static pushSubset(e,t){e.ecommerce.items=t,window.dataLayer.push(JSON.parse(JSON.stringify(e)))}static createEmptyDataLayer(e,n){let i={};return i.event=t.event,i.ecommerce=e,i.ecommerce.subset=n,i.ecommerce.items=[],i}}"undefined"!=typeof onEventDataLayer&&window.addEventListener("load",function(){onEventDataLayer.forEach(e=>{t.push(e)})}),n(703);class i{static isSupported(){return"undefined"!==document.cookie}static setItem(e,t,n){if(null==e)throw Error("You must specify a key to set a cookie");let i=new Date;i.setTime(i.getTime()+864e5*n);let s="";"https:"===location.protocol&&(s="secure"),document.cookie=`${e}=${t};expires=${i.toUTCString()};path=/;sameSite=lax;${s}`}static getItem(e){if(!e)return!1;let t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let i=n[e];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return!1}static removeItem(e){document.cookie=`${e}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/`}static key(){return""}static clear(){}}var s=n(308);let r="js-offcanvas-singleton";class o{constructor(){this.$emitter=new s.A}open(e,t,n,i,s,r,o){this._removeExistingOffCanvas();let a=this._createOffCanvas(n,r,o,i);this.setContent(e,s),this._openOffcanvas(a,t)}setContent(e,t){let n=this.getOffCanvas();n[0]&&(n[0].innerHTML=e,this._registerEvents(t),this._setAriaAttrs())}setAdditionalClassName(e){this.getOffCanvas()[0].classList.add(e)}getOffCanvas(){return document.querySelectorAll(`.${r}`)}close(e){let t=this.getOffCanvas();t.forEach(e=>{bootstrap.Offcanvas.getInstance(e).hide()}),setTimeout(()=>{this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e)}goBackInHistory(){window.history.back()}exists(){return this.getOffCanvas().length>0}_openOffcanvas(e,t){window.focusHandler.saveFocusState("offcanvas"),o.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof t&&t()}_registerEvents(e){let t=this.getOffCanvas();t.forEach(n=>{let i=()=>{setTimeout(()=>{n.remove(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e),n.removeEventListener("hide.bs.offcanvas",i)};n.addEventListener("hide.bs.offcanvas",i)}),window.addEventListener("popstate",this.close.bind(this,e),{once:!0}),document.querySelectorAll(".js-offcanvas-close").forEach(t=>{t.addEventListener("click",this.close.bind(this,e))})}_setAriaAttrs(){let e=this.getOffCanvas()[0],t="off-canvas-headline",n=e.querySelector(`[data-id="${t}"]`);n&&!e.hasAttribute("aria-labelledby")&&(n.setAttribute("id",t),e.setAttribute("aria-labelledby",t))}_removeExistingOffCanvas(){this.getOffCanvas().forEach(e=>{let t=bootstrap.Offcanvas.getInstance(e);t&&"function"==typeof t.dispose&&t.dispose(),e.remove()}),o.bsOffcanvas=null}_getPositionClass(e){return"left"===e?"offcanvas-start":"right"===e?"offcanvas-end":`offcanvas-${e}`}_createOffCanvas(e,t,n,i){let s=document.createElement("div");if(s.classList.add("offcanvas",r),s.classList.add(this._getPositionClass(e)),s.setAttribute("tabindex","-1"),!0===t&&s.classList.add("is-fullwidth"),n){let e=typeof n;if("string"===e)s.classList.add(n);else if(Array.isArray(n))n.forEach(e=>{s.classList.add(e)});else throw Error(`The type "${e}" is not supported. Please pass an array or a string.`)}return document.body.appendChild(s),o.bsOffcanvas=new bootstrap.Offcanvas(s,{backdrop:!1!==i||"static"}),s}}let a=Object.freeze(new o);class l{static open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";a.open(e,t,n,i,s,r,o)}static setContent(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;a.setContent(e,t,n)}static setAdditionalClassName(e){a.setAdditionalClassName(e)}static close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;a.close(e)}static exists(){return a.exists()}static getOffCanvas(){return a.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}let c="loader",u={BEFORE:"before",INNER:"inner"};class h{constructor(e,t=u.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}create(){if(!this.exists()){if(this.position===u.INNER){this._previousHTML=this.parent.innerHTML,this.parent.innerHTML=h.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),h.getTemplate())}}remove(){if(this.position===u.INNER){this.parent.innerHTML=this._previousHTML;return}this.parent.querySelectorAll(`.${c}
1`).forEach(e=>e.remove())}exists(){return this.parent.querySelectorAll(`.${c}`).length>0}_getPosition(){return this.position===u.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return`<div class="${c}" role="status"> 2 <span class="visually-hidden">Loading...</span> 3 </div>`}static SELECTOR_CLASS(){return c}}class d extends l{static open(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left",s=!(arguments.length>4)||void 0===arguments[4]||arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:l.REMOVE_OFF_CANVAS_DELAY(),o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";if(!e)throw Error("A url must be given!");a._removeExistingOffCanvas();let u=a._createOffCanvas(i,o,c,s);this.setContent(e,t,n,s,r),a._openOffcanvas(u)}static setContent(e,t,n,i,s){super.setContent(`<div class="offcanvas-body">${h.getTemplate()}</div>`,s);let r=e=>{super.setContent(e,s),"function"==typeof n&&n(e)};t?fetch(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t),headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.text()).then(e=>d.executeCallback(r,e)):fetch(e,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.text()).then(e=>d.executeCallback(r,e))}static executeCallback(e,t){"function"==typeof e&&e(t),window.PluginManager.initializePlugins()}}var f=n(220);class p{constructor(){this._request=null,this._errorHandlingInternal=!1}get(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",i=this._createPreparedRequest("GET",e,n);return this._sendRequest(i,null,t)}post(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("POST",e,i);return this._sendRequest(s,t,n)}delete(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("DELETE",e,i);return this._sendRequest(s,t,n)}patch(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(t,i);let s=this._createPreparedRequest("PATCH",e,i);return this._sendRequest(s,t,n)}abort(){if(this._request)return this._request.abort()}setErrorHandlingInternal(e){this._errorHandlingInternal=e}_registerOnLoaded(e,t){t&&(!0===this._errorHandlingInternal?(e.addEventListener("load",()=>{t(e.responseText,e)}),e.addEventListener("abort",()=>{console.warn(`the request to ${e.responseURL} was aborted`)}),e.addEventListener("error",()=>{console.warn(`the request to ${e.responseURL} failed with status ${e.status}`)}),e.addEventListener("timeout",()=>{console.warn(`the request to ${e.responseURL} timed out`)})):e.addEventListener("loadend",()=>{t(e.responseText,e)}))}_sendRequest(e,t,n){return this._registerOnLoaded(e,n),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,n){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),n&&this._request.setRequestHeader("Content-type",n),this._request}}let g="CookieConfiguration_Update",m="CookieConfiguration_CloseOffCanvas";class v extends f.A{static #e=this.lastTriggerElement=null;static #t=this.options={defaultCookieExpiration:30,offCanvasPosition:"left",submitEvent:"click",cookiePreference:"cookie-preference",cookieConfigHash:"cookie-config-hash",cookieSelector:"[data-cookie]",buttonOpenSelector:".js-cookie-configuration-button button",buttonSubmitSelector:".js-offcanvas-cookie-submit",buttonPermissionSelector:".js-cookie-permission-button",buttonAcceptAllSelector:".js-offcanvas-cookie-accept-all",globalButtonAcceptAllSelector:".js-cookie-accept-all-button",globalButtonPermissionSelector:".js-cookie-permission-button",parentInputSelector:".offcanvas-cookie-parent-input",customLinkSelector:`[href="${window.router["frontend.cookie.offcanvas"]}"]`,entriesActiveClass:"offcanvas-cookie-entries--active",entriesClass:"offcanvas-cookie-entries",groupClass:"offcanvas-cookie-group",parentInputClass:"offcanvas-cookie-parent-input",consentAcceptButtonSelector:".js-wishlist-cookie-accept",consentLoginButtonSelector:".js-wishlist-login",consentCancelButtonSelector:".js-wishlist-cookie-offcanvas-cancel",consentPreferencesButtonSelector:".js-wishlist-cookie-preferences"};init(){this.lastState={active:[],inactive:[]},this._cleanupTasks=[],this._httpClient=new p,this._registerEvents(),this._checkCookieConfigurationHash(),document.$emitter.subscribe("CookieConfiguration/requestConsent",e=>{e instanceof CustomEvent&&(e=e.detail),this.openRequestConsentOffCanvas(e.route,e.cookieName)}),this._registerCleanup(()=>{document.$emitter.unsubscribe("CookieConfiguration/requestConsent")})}destroy(){if(this._cleanupTasks&&this._cleanupTasks.length>0){let e=this._cleanupTasks.slice();this._cleanupTasks=[];for(let t=0;t<e.length;t++)try{e[t]()}catch(e){}}}_getDefaultCookieExpiration(){let{defaultCookieExpiration:e}=this.options,t=Number(e);return Number.isInteger(t)&&t>0?t:30}_registerEvents(){if(this._delegatedEventHandler)return;let{submitEvent:e,buttonOpenSelector:t,customLinkSelector:n,buttonPermissionSelector:i,globalButtonAcceptAllSelector:s}=this.options;this._delegatedEventHandler=e=>{let r=e.target;if(r.closest(n)){this._handleCustomLink(e);return}if(r.closest(t)){this.openOffCanvas();return}if(r.closest(i)){this._handlePermission(e);return}if(r.closest(s)){this._acceptAllCookiesFromCookieBar(e);return}},document.addEventListener(e,this._delegatedEventHandler,!0),this._registerCleanup(()=>{document.removeEventListener(e,this._delegatedEventHandler,!0),this._delegatedEventHandler=null})}_registerOffCanvasEvents(){let e=this._getOffCanvas();e&&!e.hasAttribute("data-offcanvas-events-registered")&&(this._offCanvasDelegatedHandler||(this._offCanvasDelegatedHandler=this._handleOffCanvasClick.bind(this)),e.setAttribute("data-offcanvas-events-registered","true"),e.addEventListener("click",this._offCanvasDelegatedHandler,!0),this._registerCleanup(()=>{e.removeEventListener("click",this._offCanvasDelegatedHandler,!0),e.removeAttribute("data-offcanvas-events-registered"),this._offCanvasDelegatedHandler=null}))}_handleOffCanvasClick(e){let{buttonSubmitSelector:t,buttonAcceptAllSelector:n}=this.options,i=e.target;if(i.closest(t)){e.preventDefault(),this._handleSubmit(e);return}if(i.closest(n)){e.preventDefault(),this._acceptAllCookiesFromOffCanvas(e);return}if("checkbox"===i.type){this._handleCheckbox(e);return}}_handleCustomLink(e){0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey||e.defaultPrevented||(e.preventDefault(),this.openOffCanvas())}async _fetchCookieGroups(){try{let e=window.router["frontend.cookie.groups"],t=await fetch(e,{method:"GET",headers:{"X-Requested-With":"XMLHttpRequest"}});return await t.json()}catch(e){return console.error("Failed to fetch cookie groups:",e),null}}async _checkCookieConfigurationHash(){let{cookiePreference:e,cookieConfigHash:t}=this.options,n=i.getItem(e),s=i.getItem(t);if(!n&&!s)return;let r=await this._fetchCookieGroups();if(!r)return;let o=r.hash;s&&s!==o&&await this._resetCookieConfiguration(r),i.setItem(t,o,this._getDefaultCookieExpiration())}async _resetCookieConfiguration(e){let t=e.elements||[],{activeCookieNames:n,inactiveCookieNames:s}=this._applyCookieConfiguration(t,"required");i.removeItem(this.options.cookiePreference);let r=n.filter(e=>e!==this.options.cookiePreference);this._handleUpdateListener(r,s),this._checkAndShowCookieBarIfNeeded()}_getAllCookieNamesFromGroups(e){return e.flatMap(e=>e.entries?e.entries.map(e=>e.cookie):e.cookie?[e.cookie]:[]).filter(e=>e)}_getTechnicallyRequiredCookieNames(){return["session-","timezone"]}async _handlePermission(e){e.preventDefault();let t=await this._fetchCookieGroups();if(!t)return;let n=t.elements,{activeCookieNames:i,inactiveCookieNames:s}=this._applyCookieConfiguration(n,"required");this._handleUpdateListener(i,s),this._hideCookieBar(),this.closeOffCanvas()}_applyCookieConfiguration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=this._getTechnicallyRequiredCookieNames(),r=this._extractAllCookiesFromGroups(e),o=[],a=[];for(let e=0;e<r.length;e++){let i=r[e];("required"===t?i.isRequired:"selected"!==t||i.isRequired||n.includes(i.cookie))?o.push(i):a.push(i.cookie)}for(let e=0;e<a.length;e++)i.getItem(a[e])&&i.removeItem(a[e]);let l=[...s];for(let e=0;e<o.length;
3e++){let t=o[e],n=s.some(e=>t.cookie===e);n||l.push(t.cookie),t.value&&!n&&i.setItem(t.cookie,t.value,t.expiration||this._getDefaultCookieExpiration())}return{activeCookieNames:l,inactiveCookieNames:a}}_extractAllCookiesFromGroups(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n],s=i.isRequired||!1;if(i.entries)for(let e=0;e<i.entries.length;e++){let n=i.entries[e];n.cookie&&t.push({cookie:n.cookie,value:n.value,expiration:n.expiration,isRequired:s})}i.cookie&&t.push({cookie:i.cookie,value:i.value,expiration:i.expiration,isRequired:s})}return t}_handleUpdateListener(e,t){let n=this._getUpdatedCookies(e,t);"function"==typeof window.registerGoogleReCaptchaPlugins&&(window.registerGoogleReCaptchaPlugins(),PluginManager.initializePlugins()),document.$emitter.publish(g,n)}_getUpdatedCookies(e,t){let{lastState:n}=this,i={};return e.forEach(e=>{n.inactive.includes(e)&&(i[e]=!0)}),t.forEach(e=>{n.active.includes(e)&&(i[e]=!1)}),i}openOffCanvas(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{offCanvasPosition:t}=this.options,n=window.router["frontend.cookie.offcanvas"];this._hideCookieBar(),d.open(n,!1,this._onOffCanvasOpened.bind(this,e),t)}closeOffCanvas(e){d.close(),"function"==typeof e&&e()}_checkAndShowCookieBarIfNeeded(){let{cookiePreference:e}=this.options;if(!i.getItem(e)){let e=new CustomEvent("showCookieBar");document.dispatchEvent(e)}}_onOffCanvasOpened(e){this._registerOffCanvasEvents(),this._setInitialState(),this._setInitialOffcanvasState(),this._registerOffCanvasCloseListener(),PluginManager.initializePlugins(),"function"==typeof e&&e()}_registerOffCanvasCloseListener(){this._onOffCanvasOnceHandler=()=>{this._checkAndShowCookieBarIfNeeded()},a.$emitter.subscribe("onCloseOffcanvas",this._onOffCanvasOnceHandler,{once:!0}),this._registerCleanup(()=>{a.$emitter.unsubscribe("onCloseOffcanvas"),this._onOffCanvasOnceHandler=null})}_registerCleanup(e){this._cleanupTasks||(this._cleanupTasks=[]),this._cleanupTasks.push(e)}_hideCookieBar(){let e=new CustomEvent("hideCookieBar");document.dispatchEvent(e)}openRequestConsentOffCanvas(e,t){e&&t&&(v.lastTriggerElement=document.activeElement,d.open(e,!1,()=>{window.PluginManager.initializePlugins();let e=document.querySelector(".offcanvas");e&&this._registerConsentOffcanvasEvents(e,t)},"left"))}_registerConsentOffcanvasEvents(e,t){let{consentAcceptButtonSelector:n,consentLoginButtonSelector:i,consentCancelButtonSelector:s,consentPreferencesButtonSelector:r}=this.options,o=e.querySelector(n);o&&o.addEventListener("click",this._onAccept.bind(this,t));let a=e.querySelector(i);a&&a.addEventListener("click",this._onLogin.bind(this));let l=e.querySelector(s);l&&l.addEventListener("click",this._onCancel.bind(this));let c=e.querySelector(r);c&&c.addEventListener("click",this._onPreferences.bind(this))}_setInitialState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e||this._getCookies("all"),n=[],s=[];t.forEach(e=>{let{cookie:t,required:r}=e;i.getItem(t)||r?n.push(t):s.push(t)}),this.lastState={active:n,inactive:s}}_setInitialOffcanvasState(){let e=this.lastState.active,t=this._getOffCanvas();e.forEach(e=>{let n=t.querySelector(`[data-cookie="${e}"]`);n.checked=!0,this._childCheckboxEvent(n)})}_handleCheckbox(e){let{parentInputClass:t}=this.options,{target:n}=e;(n.classList.contains(t)?this._parentCheckboxEvent:this._childCheckboxEvent).call(this,n)}_findParentEl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(;e&&!e.classList.contains(n);){if(e.classList.contains(t))return e;e=e.parentElement}return null}_isChecked(e){return!!e.checked}_parentCheckboxEvent(e){let{groupClass:t}=this.options,n=this._isChecked(e),i=this._findParentEl(e,t);this._toggleWholeGroup(n,i)}_childCheckboxEvent(e){let{groupClass:t}=this.options,n=this._isChecked(e),i=this._findParentEl(e,t);this._toggleParentCheckbox(n,i)}_toggleWholeGroup(e,t){Array.from(t.querySelectorAll("input")).forEach(t=>{t.checked=e})}_toggleParentCheckbox(e,t){let{parentInputSelector:n}=this.options,i=Array.from(t.querySelectorAll(`input:not(${n})`)),s=Array.from(t.querySelectorAll(`input:not(${n}):checked`));if(i.length>0){let e=t.querySelector(n);if(e){let t=s.length>0,n=t&&s.length!==i.length;e.checked=t,e.indeterminate=n}}}async _handleSubmit(){let e=this._getCookies("active").filter(e=>{let{required:t}=e;return!t}).map(e=>{let{cookie:t}=e;return t}),t=await this._fetchCookieGroups();if(!t)return;let n=t.elements,{activeCookieNames:i,inactiveCookieNames:s}=this._applyCookieConfiguration(n,"selected",e);this._handleUpdateListener(i,s),this.closeOffCanvas(document.$emitter.publish(m))}async acceptAllCookies(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=await this._fetchCookieGroups();if(!e)return;let t=e.elements,{activeCookieNames:n,inactiveCookieNames:i}=this._applyCookieConfiguration(t,"all");this._handleUpdateListener(n,i),this._hideCookieBar(),this.closeOffCanvas()}async _acceptAllCookiesFromCookieBar(){let e=await this._fetchCookieGroups();if(!e)return;let t=e.elements,{activeCookieNames:n,inactiveCookieNames:i}=this._applyCookieConfiguration(t,"all");this._handleUpdateListener(n,i),this._hideCookieBar()}async _acceptAllCookiesFromOffCanvas(){let e=await this._fetchCookieGroups();if(!e)return;let t=e.elements,{activeCookieNames:n,inactiveCookieNames:i}=this._applyCookieConfiguration(t,"all");this._handleUpdateListener(n,i),this.closeOffCanvas(document.$emitter.publish(m))}_getCookies(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{cookieSelector:n}=this.options;return t||(t=this._getOffCanvas()),Array.from(t.querySelectorAll(n)).filter(t=>{switch(e){case"all":return!0;case"active":return this._isChecked(t);case"inactive":return!this._isChecked(t);default:return!1}}).map(e=>{let{cookie:t,cookieValue:n,cookieExpiration:i,cookieRequired:s}=e.dataset;return{cookie:t,value:n,expiration:i,required:s}})}_getOffCanvas(){let e=l?l.getOffCanvas():[];return!!e&&e.length>0&&e[0]}_onAccept(e){i.setItem(e,"1",this._getDefaultCookieExpiration()),d.close()}_onLogin(){d.close(),window.location.href=window.router["frontend.account.login.page"]}_onCancel(){d.close()}_onPreferences(e){e.preventDefault(),d.close(),this.openOffCanvas(()=>{let e=document.querySelector(".offcanvas");e&&e.addEventListener("hidden.bs.offcanvas",this._restoreFocus.bind(this),{once:!0})})}_restoreFocus(){let e=v.lastTriggerElement;e?.focus?.()}}document.$emitter.subscribe(g,function(e){let t=e.detail;if(Object.prototype.hasOwnProperty.call(t,"wbm-tagmanager-enabled")&&!window.wbmScriptIsSet){let e=document.getElementById("wbmTagManger");if(void 0===e)return;let n=document.createElement("script"),i=document.createTextNode(`(${window.googleTag})(window,document,'script','dataLayer', '${window.wbmGoogleTagmanagerId}');`);if(n.appendChild(i),e.parentNode.insertBefore(n,e.nextSibling),window.wbmScriptIsSet=!0,window.googleTag=null,0===Object.keys(t).length)return;let s={};if(Object.prototype.hasOwnProperty.call(t,"google-analytics-enabled")&&(s.analytics_storage=t["google-analytics-enabled"]?"granted":"denied"),Object.prototype.hasOwnProperty.call(t,"google-ads-enabled")&&(s.ad_storage=t["google-ads-enabled"]?"granted":"denied",s.ad_user_data=t["google-ads-enabled"]?"granted":"denied",s.ad_personalization=t["google-ads-enabled"]?"granted":"denied"),0===Object.keys(s).length)return;window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}("consent","update",s)}}),n(797),window.PluginManager.register("ProductClickTracking",()=>n.e(49532).then(n.bind(n,532)),".product-box a",{parent:".product-box"}),window.PluginManager.register("ProductClickTracking",()=>n.e(49532).then(n.bind(n,532)),".product-box button",{parent:".product-box"}),window.PluginManager.register("AddToWishlistTracking",()=>n.e(72552).then(n.bind(n,552)),"[data-wishlist-storage]"),window.PluginManager.register("Promotions",()=>n.e(57826).then(n.bind(n,826)))})()})();
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.