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},211(e,t,n){"use strict";n.d(t,{A:()=>s});var i=n(236);class s{static setImpressions(e){e&&(this.items=e.ecommerce.items),(null===this.items||0===this.items.length)&&i.A.log("no items found in dataLayer")}static getProductFromImpressions(e){return this.getProductFromItems(this.items,e)}static getProductFromItems(e,t){let n=e.find((e,n)=>e.item_id===t);if(void 0===n)throw new r("product not found in items");return n}constructor(){this.items=null}}class r extends Error{constructor(e){super(e),this.name="InvalidImpressionsError"}}},236(e,t,n){"use strict";n.d(t,{A:()=>i});class i{static isEnabled(){try{return"1"===window.localStorage.getItem("wbmTagManagerDebug")}catch{return!1}}static record(e,t){let n=function(){let e=window.wbmTagManagerDebug=window.wbmTagManagerDebug||{};return e.entries=e.entries||[],e.limit=e.limit||200,"function"!=typeof e.dump&&(e.dump=()=>e.entries.slice()),e}(),i={time:new Date().toISOString(),level:e,args:t};n.entries.push(i),n.entries.length>n.limit&&n.entries.shift(),document.$emitter&&"function"==typeof document.$emitter.publish&&document.$emitter.publish("wbmTagManagerDiagnostic",i)}static log(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.isEnabled()&&i.record("info",t)}static error(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.isEnabled()&&i.record("error",t)}}},526(){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")))})},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()}}}},939(e,t,n){"use strict";n.d(t,{A:()=>r});/** 2 * Shopware 3 * Copyright © 2026 4 * 5 * @category Shopware 6 * @package WbmTagManagerAnalytics 7 * @subpackage config.util.js 8 * 9 * @copyright 2026 Iguana-Labs GmbH 10 * @author Iguana-Labs GmbH 11 * @license https://www.bui-hinsche.com/eula/ 12 */let i={maxSplit:0,trackProductClicks:!1,trackWishlistClicks:!1,onEvent:[]},s=null;class r{static read(){if(null!==s)return s;let e=document.getElementById("wbmTagManagerData");if(!e)return{...i};try{let t=JSON.parse(e.textContent);s={...i,...t}}catch(e){s={...i}}return s}static reset(){s=null}}}},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=>
12{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/"+({1747:"wbm-tag-manager-analytics.promotions.plugin",25039:"wbm-tag-manager-analytics.addToWishlistTracking.plugin",41265:"wbm-tag-manager-analytics.productClickTracking.plugin"})[e]+"."+({1747:"f24f78",25039:"a4608d",41265:"7dcea4"})[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",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(/^blob:/,"").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||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),(()=>{"use strict";var e=n(211),t=n(939);class i{static #e=this.event="";static push(n){if(window.dataLayer.push({ecommerce:null}),!Object.prototype.hasOwnProperty.call(n,"ecommerce")||!Object.prototype.hasOwnProperty.call(n.ecommerce,"items")||!Object.prototype.hasOwnProperty.call(n,"event")){window.dataLayer.push(n);return}e.A.setImpressions(n),i.event=n.event;let s=new TextEncoder().encode(JSON.stringify(n)).length/1024,r=t.A.read().maxSplit;if(0===r||Math.ceil(s)<=r){window.dataLayer.push(n);return}let o=n.ecommerce.items,a=n.ecommerce,l=1,c=i.createEmptyDataLayer(a,l),u=[];for(let e=0;e<o.length;e++)u.push(o[e]),(e+1)%(r+1)==0&&(i.pushSubset(c,u),l++,c=i.createEmptyDataLayer(a,l),u=[]);u.length>0&&i.pushSubset(c,u)}static pushSubset(e,t){e.ecommerce.items=t,window.dataLayer.push(JSON.parse(JSON.stringify(e)))}static createEmptyDataLayer(e,t){let n={};return n.event=i.event,n.ecommerce=e,n.ecommerce.subset=t,n.ecommerce.items=[],n}}let s=t.A.read().onEvent;Array.isArray(s)&&s.forEach(e=>{i.push(e)});var r=n(236);function o(e){return e&&"string"==typeof e?e.replace(/<script id="wbm-data-layer">[\s\S]*?<\/script>/g,"").trim():e}function a(e){if(Object.prototype.hasOwnProperty.call(window,"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(Object.prototype.hasOwnProperty.call(e,n)&&0!==e[n].length){var t=JSON.parse(e[n]);"default"===n?(window.dataLayer.push({ecommerce:null}
12),window.dataLayer.push(t)):(Array.isArray(t)?t:[t]).forEach(e=>i.push(e))}}}catch(e){r.A.error("Failed to process the dataLayer:",e)}}let l=XMLHttpRequest.prototype.open,c=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"responseText");XMLHttpRequest.prototype.open=function(){this.addEventListener("loadend",function(e){if(["","text"].includes(e.target.responseType))try{let e=c.get.call(this);e&&"string"==typeof e&&e.includes('<script id="wbm-data-layer">')&&a(e)}catch(e){r.A.error("Failed to process the XHR response:",e)}}),l.apply(this,arguments)},Object.defineProperty(XMLHttpRequest.prototype,"responseText",{get:function(){let e=c.get.call(this);return 4===this.readyState&&e&&"string"==typeof e&&e.includes('<script id="wbm-data-layer">')?o(e):e}});let u=window.fetch;window.fetch=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.apply(this,t).then(async e=>{let t=e.clone(),n=e.headers.get("Content-Type");if(!(!n||n.includes("application/json")||n.includes("text/json")||n.includes("text/html")||n.includes("text/plain")))return e;try{let n=await t.text();if(n.includes('<script id="wbm-data-layer">')){a(n);let t=o(n),i={status:e.status,statusText:e.statusText,headers:new Headers(e.headers)};return new Response(t,i)}}catch(e){r.A.error("Failed to process the fetch response:",e)}return e})};class h{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(){}}class d{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}}let f="js-offcanvas-singleton";class p{constructor(){this.$emitter=new d}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(`.${f}`)}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"),window.focusHandler._addFocusTrapGuard(e),p.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._removeFocusTrapGuard(),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))}
12_removeExistingOffCanvas(){this.getOffCanvas().forEach(e=>{let t=bootstrap.Offcanvas.getInstance(e);t&&"function"==typeof t.dispose&&t.dispose(),e.remove(),window.focusHandler._removeFocusTrapGuard()}),p.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",f),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),p.bsOffcanvas=new bootstrap.Offcanvas(s,{backdrop:!1!==i||"static"}),s}}let g=Object.freeze(new p);class m{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]:"";g.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;g.setContent(e,t,n)}static setAdditionalClassName(e){g.setAdditionalClassName(e)}static close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;g.close(e)}static exists(){return g.exists()}static getOffCanvas(){return g.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}let v="loader",_={BEFORE:"before",INNER:"inner"};class b{constructor(e,t=_.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}create(){if(!this.exists()){if(this.position===_.INNER){this._previousHTML=this.parent.innerHTML,this.parent.innerHTML=b.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),b.getTemplate())}}remove(){if(this.position===_.INNER){this.parent.innerHTML=this._previousHTML;return}this.parent.querySelectorAll(`.${v}`).forEach(e=>e.remove())}exists(){return this.parent.querySelectorAll(`.${v}`).length>0}_getPosition(){return this.position===_.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return`<div class="${v}" role="status"> 13 <span class="visually-hidden">Loading...</span> 14 </div>`}static SELECTOR_CLASS(){return v}}class C extends m{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]:m.REMOVE_OFF_CANVAS_DELAY(),o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";if(!e)throw Error("A url must be given!");g._removeExistingOffCanvas();let l=g._createOffCanvas(i,o,a,s);this.setContent(e,t,n,s,r),g._openOffcanvas(l)}static setContent(e,t,n,i,s){super.setContent(`<div class="offcanvas-body">${b.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=>C.executeCallback(r,e)):fetch(e,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.text()).then(e=>C.executeCallback(r,e))}static executeCallback(e,t){"function"==typeof e&&e(t);let n=m.getOffCanvas();n.length>0&&window.PluginManager.initializePluginsInParentElement(n[0])}}var y=n(156),w=n.n(y),k=n(707);class O{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 d(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(){}
14_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()),w().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=k.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=k.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}}class E{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 S="CookieConfiguration_Update",L="CookieConfiguration_CloseOffCanvas";class A extends O{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 E,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=h.getItem(e),i=h.getItem(t);if(!n&&!i)return;let s=await this._fetchCookieGroups();if(!s)return;let r=s.hash,o=s.languageId,a=this._getStoredHashForLanguage(i,o);if(a&&a!==r||n&&!a){await this._resetCookieConfiguration(s);return}a&&this._storeHashForLanguage(o,r,i)}_parseStoredHashes(e){if(!e)return{};try{let t=JSON.parse(e);if("object"==typeof t&&null!==t)return t}catch(e){}return{}}_getStoredHashForLanguage(e,t){return this._parseStoredHashes(e)[t]||null}_storeHashForLanguage(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,{cookieConfigHash:i}=this.options,s=n??h.getItem(i),r=this._parseStoredHashes(s);r[e]=t,h.setItem(i,JSON.stringify(r),this._getDefaultCookieExpiration())}async _resetCookieConfiguration(e){let t=e.elements||[],{activeCookieNames:n,inactiveCookieNames:i}=this._applyCookieConfiguration(t,"required",[],e.languageId);h.removeItem(this.options.cookiePreference);let s=n.filter(e=>e!==this.options.cookiePreference);this._handleUpdateListener(s,i),this._checkAndShowCookieBarIfNeeded()}_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",[],t.languageId);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]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,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++)h.getItem(a[e])&&h.removeItem(a[e]);let l=[...s];for(let e=0;e<o.length;
14e++){let t=o[e],n=s.some(e=>t.cookie===e),r=t.cookie===this.options.cookieConfigHash;n||l.push(t.cookie),!t.value||n||(r&&i?this._storeHashForLanguage(i,t.value):r||h.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(S,n)}_isLastStateEmpty(){return 0===this.lastState.active.length&&0===this.lastState.inactive.length}_getUpdatedCookies(e,t){let{lastState:n}=this,i={};return this._isLastStateEmpty()?(e.forEach(e=>{i[e]=!0}),t.forEach(e=>{i[e]=!1})):(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(),C.open(n,!1,this._onOffCanvasOpened.bind(this,e),t)}closeOffCanvas(e){C.close(),"function"==typeof e&&e()}_checkAndShowCookieBarIfNeeded(){let{cookiePreference:e}=this.options;if(!h.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()},g.$emitter.subscribe("onCloseOffcanvas",this._onOffCanvasOnceHandler,{once:!0}),this._registerCleanup(()=>{g.$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&&(A.lastTriggerElement=document.activeElement,C.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=[],i=[];t.forEach(e=>{let{cookie:t,required:s}=e;h.getItem(t)||s?n.push(t):i.push(t)}),this.lastState={active:n,inactive:i}}_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")).forEac
14h(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,t.languageId);this._handleUpdateListener(i,s),this.closeOffCanvas(document.$emitter.publish(L))}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",[],e.languageId);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",[],e.languageId);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",[],e.languageId);this._handleUpdateListener(n,i),this.closeOffCanvas(document.$emitter.publish(L))}_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=m?m.getOffCanvas():[];return!!e&&e.length>0&&e[0]}_onAccept(e){h.setItem(e,"1",this._getDefaultCookieExpiration()),C.close()}_navigateTo(e){window.location.href=e}_onLogin(){C.close(),this._navigateTo(window.router["frontend.account.login.page"])}_onCancel(){C.close()}_onPreferences(e){e.preventDefault(),C.close(),this.openOffCanvas(()=>{let e=document.querySelector(".offcanvas");e&&e.addEventListener("hidden.bs.offcanvas",this._restoreFocus.bind(this),{once:!0})})}_restoreFocus(){let e=A.lastTriggerElement;e?.focus?.()}}let T="wbm-tagmanager-enabled",P="google-analytics-enabled",x="google-ads-enabled";document.$emitter.subscribe(S,function(e){let t=e.detail||{};Object.prototype.hasOwnProperty.call(t,T)&&t[T]&&!window.wbmScriptIsSet&&function(){if(window.wbmScriptIsSet)return;if(window.wbmTagManager&&"function"==typeof window.wbmTagManager.loadGtm){window.wbmTagManager.loadGtm();return}let e=document.getElementById("wbmTagManger");if(null===e||"function"!=typeof window.googleTag)return;let t=document.createElement("script");t.appendChild(document.createTextNode(`(${window.googleTag})(window,document,'script','dataLayer', '${window.wbmGoogleTagmanagerId}');`)),e.parentNode.insertBefore(t,e.nextSibling),window.wbmScriptIsSet=!0,window.googleTag=null}();let n=Object.prototype.hasOwnProperty.call(t,P)||Object.prototype.hasOwnProperty.call(t,x);window.wbmScriptIsSet&&n&&function(e){if(0!==Object.keys(e).length){if(window.wbmTagManager&&"function"==typeof window.wbmTagManager.setConsent){window.wbmTagManager.setConsent(e);return}window.dataLayer=window.dataLayer||[],function(){window.dataLayer.push(arguments)}("consent","update",e),window.dataLayer.push(Object.assign({event:"wbm_consent_update"},e))}}(function(e){let t={};if(Object.prototype.hasOwnProperty.call(e,P)&&(t.analytics_storage=e[P]?"granted":"denied"),Object.prototype.hasOwnProperty.call(e,x)){let n=e[x]?"granted":"denied";t.ad_storage=n,t.ad_user_data=n,t.ad_personalization=n}return t}(t))}),n(526),window.PluginManager.register("ProductClickTracking",()=>n.e(41265).then(n.bind(n,265)),".product-box a",{parent:".product-box"}),window.PluginManager.register("ProductClickTracking",()=>n.e(41265).then(n.bind(n,265)),".product-box button",{parent:".product-box"}),window.PluginManager.register("AddToWishlistTracking",()=>n.e(25039).then(n.bind(n,39)),"[data-wishlist-storage]"),window.PluginManager.register("Promotions",()=>n.e(1747).then(n.bind(n,747)))})()})();
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.