PageSourceSearch

https://kloundco.de/theme/e26dfed4bf029b77d1e868bbb65a1cf8/js/papo…/papoo-ccm19-integration6.js?1791283092

js kloundco.de collected 2026-10-06 13:06:04 UTC 31,207 bytes, 3 lines download raw bytes

1(()=>{"use strict";var e={156(e){var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?r(Array.isArray(e)?[]:{},e,t):e}function n(e,t,i){return e.concat(t).map(function(e){return s(e,i)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function r(e,i,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=s;var c,h,d=Array.isArray(i);return d!==Array.isArray(e)?s(i,l):d?l.arrayMerge(e,i,l):(h={},(c=l).isMergeableObject(e)&&o(e).forEach(function(t){h[t]=s(e[t],c)}),o(i).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&c.isMergeableObject(i[t])?h[t]=(function(e,t){if(!t.customMerge)return r;var i=t.customMerge(e);return"function"==typeof i?i:r})(t,c)(e[t],i[t],c):h[t]=s(i[t],c))}),h)}r.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,i){return r(e,i,t)},{})},e.exports=r},605(e,t,i){i.r(t),i.d(t,{default:()=>E});class s{static debounce(e,t){let i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];s&&!i&&setTimeout(e.bind(e,...o),0),clearTimeout(i),i=setTimeout(e.bind(e,...o),t)}}}class n{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return n.isIPhoneDevice()||n.isIPadDevice()}static isNativeWindowsBrowser(){return n.isIEBrowser()||n.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":n.isTouchDevice(),"is-ios":n.isIOSDevice(),"is-native-windows":n.isNativeWindowsBrowser(),"is-iphone":n.isIPhoneDevice(),"is-ipad":n.isIPadDevice(),"is-ie":n.isIEBrowser(),"is-edge":n.isEdgeBrowser()}}}class o{static isSupported(){return"undefined"!==document.cookie}static setItem(e,t,i){if(null==e)throw Error("You must specify a key to set a cookie");let s=new Date;s.setTime(s.getTime()+864e5*i);let n="";"https:"===location.protocol&&(n="secure"),document.cookie=`${e}=${t};expires=${s.toUTCString()};path=/;sameSite=lax;${n}`}static getItem(e){if(!e)return!1;let t=e+"=",i=document.cookie.split(";");for(let e=0;e<i.length;e++){let s=i[e];for(;" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(t))return s.substring(t.length,s.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 a=i(156),r=i.n(a);class l{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 i=l.toUpperCamelCase(e,t);return l.lcFirst(i)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>l.ucFirst(e.toLowerCase())).join(""):l.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}class c{constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(e,{detail:t,cancelable:i});return this.el.dispatchEvent(s),s}subscribe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,n=e.split("."),o=i.scope?t.bind(i.scope):t;if(i.once&&!0===i.once){let t=o;o=function(i){s.unsubscribe(e),t(i)}}return this.el.addEventListener(n[0],o),this.listeners.push({splitEventName:n,opts:i,cb:o}),!0}unsubscribe(e){let t=e.split(".");return this.listeners=this.listeners.reduce((e,i)=>([...i.splitEventName].sort().toString()===t.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):e.push(i),e),[]),!0}
1reset(){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}}class h{constructor(e,t={},i=!1){if(!(e instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${i}".`);return}this.el=e,this.$emitter=new c(this.el),this._pluginName=this._getPluginName(i),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()),r().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=l.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${t}-config`);return i?window.PluginConfigManager.get(this._pluginName,i):e}_getOptionsFromDataAttribute(){let e={};if("function"!=typeof this.el.getAttribute)return e;let t=l.toDashCase(this._pluginName),i=this.el.getAttribute(`data-${t}-options`);if(i)try{return JSON.parse(i)}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 d extends h{static #e=this.options={cookieExpiration:30,cookieName:"cookie-preference",buttonSelector:".js-cookie-permission-button",resizeDebounceTime:200};init(){this._button=this.el.querySelector(this.options.buttonSelector),this._isPreferenceSet()||(this._setBodyPadding(),this._registerEvents()),this._registerShowAndHideCookieBarEvents()}_isPreferenceSet(){return!!o.getItem(this.options.cookieName)||(this._showCookieBar(),!1)}_showCookieBar(){this.el.style.display="block",this.$emitter.publish("showCookieBar")}_hideCookieBar(){this.el.style.display="none",this.$emitter.publish("hideCookieBar")}_registerEvents(){if(this._button){let e=n.isTouchDevice()?"touchstart":"click";this._button.addEventListener(e,this._handleDenyButton.bind(this))}window.addEventListener("resize",s.debounce(this._setBodyPadding.bind(this),this.options.resizeDebounceTime),{capture:!0,passive:!0})}_registerShowAndHideCookieBarEvents(){document.addEventListener("showCookieBar",this._handleShowCookieBarEvent.bind(this)),document.addEventListener("hideCookieBar",this._handleHideCookieBarEvent.bind(this))}_handleShowCookieBarEvent(){this._setBodyPadding(),this._showCookieBar()}_handleHideCookieBarEvent(){this._removeBodyPadding(),this._hideCookieBar()}_handleDenyButton(e){e.preventDefault();let{cookieExpiration:t,cookieName:i}=this.options;this._hideCookieBar(),this._removeBodyPadding(),o.setItem(i,"1",t),this.$emitter.publish("onClickDenyButton")}_calculateCookieBarHeight(){return this.el.offsetHeight}_setBodyPadding(){document.body.style.paddingBottom=`${this._calculateCookieBarHeight()}px`,this.$emitter.publish("setBodyPadding")}_removeBodyPadding(){document.body.style.paddingBottom="0",this.$emitter.publish("removeBodyPadding")}}let u="js-offcanvas-singleton";class f{constructor(){this.$emitter=new c}open(e,t,i,s,n,o,a){this._removeExistingOffCanvas();let r=this._createOffCanvas(i,o,a,s);this.setContent(e,n),this._openOffcanvas(r,t)}setContent(e,t){let i=this.getOffCanvas();i[0]&&(i[0].innerHTML=e,this._registerEvents(t),this._setAriaAttrs())}setAdditionalClassName(e){this.getOffCanvas()[0].classList.add(e)}getOffCanvas(){return document.querySelectorAll(`.${u}`)}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"),f.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof t&&t()}_registerEvents(e){let t=this.getOffCanvas();t.forEach(i=>
1{let s=()=>{setTimeout(()=>{i.remove(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e),i.removeEventListener("hide.bs.offcanvas",s)};i.addEventListener("hide.bs.offcanvas",s)}),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",i=e.querySelector(`[data-id="${t}"]`);i&&!e.hasAttribute("aria-labelledby")&&(i.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()}),f.bsOffcanvas=null}_getPositionClass(e){return"left"===e?"offcanvas-start":"right"===e?"offcanvas-end":`offcanvas-${e}`}_createOffCanvas(e,t,i,s){let n=document.createElement("div");if(n.classList.add("offcanvas",u),n.classList.add(this._getPositionClass(e)),n.setAttribute("tabindex","-1"),!0===t&&n.classList.add("is-fullwidth"),i){let e=typeof i;if("string"===e)n.classList.add(i);else if(Array.isArray(i))i.forEach(e=>{n.classList.add(e)});else throw Error(`The type "${e}" is not supported. Please pass an array or a string.`)}return document.body.appendChild(n),f.bsOffcanvas=new bootstrap.Offcanvas(n,{backdrop:!1!==s||"static"}),n}}let g=Object.freeze(new f);class p{static open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",s=!(arguments.length>3)||void 0===arguments[3]||arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";g.open(e,t,i,s,n,o,a)}static setContent(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;g.setContent(e,t,i)}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 _="loader",v={BEFORE:"before",INNER:"inner"};class m{constructor(e,t=v.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}create(){if(!this.exists()){if(this.position===v.INNER){this._previousHTML=this.parent.innerHTML,this.parent.innerHTML=m.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),m.getTemplate())}}remove(){if(this.position===v.INNER){this.parent.innerHTML=this._previousHTML;return}this.parent.querySelectorAll(`.${_}`).forEach(e=>e.remove())}exists(){return this.parent.querySelectorAll(`.${_}`).length>0}_getPosition(){return this.position===v.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return`<div class="${_}" role="status">
2                    <span class="visually-hidden">Loading...</span>
3                </div>`}static SELECTOR_CLASS(){return _}}class C extends p{static open(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left",n=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.REMOVE_OFF_CANVAS_DELAY(),a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";if(!e)throw Error("A url must be given!");g._removeExistingOffCanvas();let l=g._createOffCanvas(s,a,r,n);this.setContent(e,t,i,n,o),g._openOffcanvas(l)}static setContent(e,t,i,s,n){super.setContent(`<div class="offcanvas-body">${m.getTemplate()}</div>`,n);let o=e=>{super.setContent(e,n),"function"==typeof i&&i(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(o,e)):fetch(e,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.text()).then(e=>C.executeCallback(o,e))}static executeCallback(e,t){"function"==typeof e&&e(t);let i=p.getOffCanvas();i.length>0&&window.PluginManager.initializePluginsInParentElement(i[0])}}class k{constructor(){this._request=null,this._errorHandlingInternal=!1}get(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",s=this._createPreparedRequest("GET",e,i);return this._sendRequest(s,null,t)}post(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let n=this._createPreparedRequest("POST",e,s);return this._sendRequest(n,t,i)}delete(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let n=this._createPreparedRequest("DELETE",e,s);return this._sendRequest(n,t,i)}patch(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let n=this._createPreparedRequest("PATCH",e,s);return this._sendRequest(n,t,i)}
3abort(){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,i){return this._registerOnLoaded(e,i),e.send(t),e}_getContentType(e,t){return e instanceof FormData&&(t=!1),t}_createPreparedRequest(e,t,i){return this._request=new XMLHttpRequest,this._request.open(e,t),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),i&&this._request.setRequestHeader("Content-type",i),this._request}}let b="CookieConfiguration_Update",w="CookieConfiguration_CloseOffCanvas";class y extends h{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 k,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:i,buttonPermissionSelector:s,globalButtonAcceptAllSelector:n}=this.options;this._delegatedEventHandler=e=>{let o=e.target;if(o.closest(i)){this._handleCustomLink(e);return}if(o.closest(t)){this.openOffCanvas();return}if(o.closest(s)){this._handlePermission(e);return}if(o.closest(n)){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:i}=this.options,s=e.target;if(s.closest(t)){e.preventDefault(),this._handleSubmit(e);return}if(s.closest(i)){e.preventDefault(),this._acceptAllCookiesFromOffCanvas(e);return}if("checkbox"===s.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,i=o.getItem(e),s=o.getItem(t);if(!i&&!s)return;let n=await this._fetchCookieGroups();if(!n)return;let a=n.hash,r=n.languageId,l=this._getStoredHashForLanguage(s,r);if(l&&l!==a||i&&!l){await this._resetCookieConfiguration(n);return}l&&this._storeHashForLanguage(r,a,s)}_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 i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,{cookieConfigHash:s}=this.options,n=i??o.getItem(s),a=this._parseStoredHashes(n);a[e]=t,o.setItem(s,JSON.stringify(a),this._getDefaultCookieExpiration())}async _resetCookieConfiguration(e){let t=e.elements||[],{activeCookieNames:i,inactiveCookieNames:s}=this._applyCookieConfiguration(t,"required",[],e.languageId);o.removeItem(this.options.cookiePreference);let n=i.filter(e=>e!==this.options.cookiePreference);this._handleUpdateListener(n,s),this._checkAndShowCookieBarIfNeeded()}_getTechnicallyRequiredCookieNames(){return["session-","timezone"]}async _handlePermission(e){e.preventDefault();let t=await this._fetchCookieGroups();if(!t)return;let i=t.elements,{activeCookieNames:s,inactiveCookieNames:n}=this._applyCookieConfiguration(i,"required",[],t.languageId);this._handleUpdateListener(s,n),this._hideCookieBar(),this.closeOffCanvas()}_applyCookieConfiguration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=this._getTechnicallyRequiredCookieNames(),a=this._extractAllCookiesFromGroups(e),r=[],l=[];for(let e=0;e<a.length;e++){let s=a[e];("required"===t?s.isRequired:"selected"!==t||s.isRequired||i.includes(s.cookie))?r.push(s):l.push(s.cookie)}for(let e=0;e<l.length;e++)o.getItem(l[e])&&o.removeItem(l[e]);let c=[...n];for(let e=0;e<r.length;e++){let t=r[e],i=n.some(e=>t.cookie===e),a=t.cookie===this.options.cookieConfigHash;i||c.push(t.cookie),!t.value||i||(a&&s?this._storeHashForLanguage(s,t.value):a||o.setItem(t.cookie,t.value,t.expiration||this._getDefaultCookieExpiration()))}return{activeCookieNames:c,inactiveCookieNames:l}}_extractAllCookiesFromGroups(e){let t=[];for(let i=0;i<e.length;i++){let s=e[i],n=s.isRequired||!1;if(s.entries)for(let e=0;e<s.entries.length;e++){let i=s.entries[e];i.cookie&&t.push({cookie:i.cookie,value:i.value,expiration:i.expiration,isRequired:n})}s.cookie&&t.push({cookie:s.cookie,value:s.value,expiration:s.expiration,isRequired:n})}return t}
3_handleUpdateListener(e,t){let i=this._getUpdatedCookies(e,t);"function"==typeof window.registerGoogleReCaptchaPlugins&&(window.registerGoogleReCaptchaPlugins(),PluginManager.initializePlugins()),document.$emitter.publish(b,i)}_getUpdatedCookies(e,t){let{lastState:i}=this,s={};return e.forEach(e=>{i.inactive.includes(e)&&(s[e]=!0)}),t.forEach(e=>{i.active.includes(e)&&(s[e]=!1)}),s}openOffCanvas(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{offCanvasPosition:t}=this.options,i=window.router["frontend.cookie.offcanvas"];this._hideCookieBar(),C.open(i,!1,this._onOffCanvasOpened.bind(this,e),t)}closeOffCanvas(e){C.close(),"function"==typeof e&&e()}_checkAndShowCookieBarIfNeeded(){let{cookiePreference:e}=this.options;if(!o.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&&(y.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:i,consentLoginButtonSelector:s,consentCancelButtonSelector:n,consentPreferencesButtonSelector:o}=this.options,a=e.querySelector(i);a&&a.addEventListener("click",this._onAccept.bind(this,t));let r=e.querySelector(s);r&&r.addEventListener("click",this._onLogin.bind(this));let l=e.querySelector(n);l&&l.addEventListener("click",this._onCancel.bind(this));let c=e.querySelector(o);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"),i=[],s=[];t.forEach(e=>{let{cookie:t,required:n}=e;o.getItem(t)||n?i.push(t):s.push(t)}),this.lastState={active:i,inactive:s}}_setInitialOffcanvasState(){let e=this.lastState.active,t=this._getOffCanvas();e.forEach(e=>{let i=t.querySelector(`[data-cookie="${e}"]`);i.checked=!0,this._childCheckboxEvent(i)})}_handleCheckbox(e){let{parentInputClass:t}=this.options,{target:i}=e;(i.classList.contains(t)?this._parentCheckboxEvent:this._childCheckboxEvent).call(this,i)}_findParentEl(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(;e&&!e.classList.contains(i);){if(e.classList.contains(t))return e;e=e.parentElement}return null}_isChecked(e){return!!e.checked}_parentCheckboxEvent(e){let{groupClass:t}=this.options,i=this._isChecked(e),s=this._findParentEl(e,t);this._toggleWholeGroup(i,s)}_childCheckboxEvent(e){let{groupClass:t}=this.options,i=this._isChecked(e),s=this._findParentEl(e,t);this._toggleParentCheckbox(i,s)}_toggleWholeGroup(e,t){Array.from(t.querySelectorAll("input")).forEach(t=>{t.checked=e})}_toggleParentCheckbox(e,t){let{parentInputSelector:i}=this.options,s=Array.from(t.querySelectorAll(`input:not(${i})`)),n=Array.from(t.querySelectorAll(`input:not(${i}):checked`));if(s.length>0){let e=t.querySelector(i);if(e){let t=n.length>0,i=t&&n.length!==s.length;e.checked=t,e.indeterminate=i}}}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 i=t.elements,{activeCookieNames:s,inactiveCookieNames:n}=this._applyCookieConfiguration(i,"selected",e,t.languageId);this._handleUpdateListener(s,n),this.closeOffCanvas(document.$emitter.publish(w))}async acceptAllCookies(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=await this._fetchCookieGroups();if(!e)return;let t=e.elements,{activeCookieNames:i,inactiveCookieNames:s}=this._applyCookieConfiguration(t,"all",[],e.languageId);this._handleUpdateListener(i,s),this._hideCookieBar(),this.closeOffCanvas()}async _acceptAllCookiesFromCookieBar(){let e=await this._fetchCookieGroups();if(!e)return;let t=e.elements,{activeCookieNames:i,inactiveCookieNames:s}=this._applyCookieConfiguration(t,"all",[],e.languageId);this._handleUpdateListener(i,s),this._hideCookieBar()}async _acceptAllCookiesFromOffCanvas(){let e=await this._fetchCookieGroups();if(!e)return;let t=e.elements,{activeCookieNames:i,inactiveCookieNames:s}=this._applyCookieConfiguration(t,"all",[],e.languageId);this._handleUpdateListener(i,s),this.closeOffCanvas(document.$emitter.publish(w))}_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:i}=this.options;return t||(t=this._getOffCanvas()),Array.from(t.querySelectorAll(i)).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:i,cookieExpiration:s,cookieRequired:n}=e.dataset;return{cookie:t,value:i,expiration:s,required:n}})}_getOffCanvas(){let e=p?p.getOffCanvas():[];return!!e&&e.length>0&&e[0]}_onAccept(e){o.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=y.lastTriggerElement;e?.focus?.()}}class E extends d{init(){"CCM"in window?function(){var e=null,t={};let i={"cookie-preference":["cookie-preference"],_ga:["google-analytics-enabled"],"_swag_ga_ga*":["google-analytics-enabled"],_dis_ga:["_dis_ga"],_gcl_aw:["google-ads-enabled"],__gads:["google-ads-enabled"],_dis_gads:["_dis_gads"],"_dc_gtm_UA-.*":["wbm-tagmanager-enabled","shopstudio-google-tag-manager-cloud-cookie-consent","dtgsAllowGtmTracking"],"_dc_gtm_UA-*":["wbm-tagmanager-enabled","shopstudio-google-tag-manager-cloud-cookie-consent","dtgsAllowGtmTracking"],"_dc_gtm_*":["wbm-tagmanager-enabled","shopstudio-google-tag-manager-cloud-cookie-consent","dtgsAllowGtmTracking"],"wishlist-*":["wishlist-enabled"],"wishlist-enabled":["wishlist-enabled"],_swa_anonymousId:["_swa_consent_enabled"],"df-random-userid":["df-session"],"df-session":["df-session"],YSC:["youtube-video"],_fbp:["mediameets-facebook-pixel-enabled","_dis_meta"],"mediameets-facebook-pixel-enabled":["mediameets-facebook-pixel-enabled"],_dis_meta:["_dis_meta"],atl_newsletter_modal_closed:["atl_newsletter_modal_closed"],"moorl-location-map":["moorl-location-map"],"moorl-fb-store":["moorl-fb-store"],_dis_mads:["_dis_mads"],_dis_pinterest:["_dis_pinterest"],_dis_tiktok:["_dis_tiktok"],_GRECAPTCHA:["_GRECAPTCHA"]},s={atl_newsletter_modal_closed:"0",_dis_ga:"_ga",_dis_gads:"_gads",_dis_meta:"_fbp",_dis_mads:"_microsoft",_dis_pinterest:"_pinterest",_dis_tiktok:"_tiktok"};for(let e in i)i[e].forEach(function(e){!1!=o.getItem(e)&&(t[e]=!0)});function n(){e=null;var n={};
3for(let e in window.CCM.acceptedCookies.forEach(function(e){n[e]=!0}),i)e in n?i[e].forEach(function(e){if(n[e]=!0,!1==o.getItem(e)){let t=e in s?s[e]:"1";o.setItem(e,t,.02)}}):e in t&&i[e].forEach(function(e){!1!==o.getItem(e)&&o.removeItem(e)});for(let e in t)e in n||(n[e]=!1);var a={};for(let e in n)n[e]!==t[e]&&(a[e]=e in n&&n[e]);t=n,Object.keys(a).length>0&&(o.setItem("cookie-preference","1",.02),"function"==typeof window.registerGoogleReCaptchaPlugins&&"PluginManager"in window&&(window.registerGoogleReCaptchaPlugins(),window.PluginManager.initializePlugins()),document.$emitter.publish(b,a))}function a(){null!==e&&window.clearTimeout(e),e=window.setTimeout(n,30)}window.addEventListener("ccm19CookieAccepted",a),window.addEventListener("ccm19EmbeddingAccepted",a),window.addEventListener("ccm19WidgetClosed",a),window.CCM.consent&&(e=window.setTimeout(n,60))}():super.init()}}}},t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s=i(605);let n=window.PluginManager;try{try{var o,a=n.getPlugin("CookiePermission",!0);o=!("prototype"in a.get("class"))}catch(e){o=!1}o?n.override("CookiePermission",()=>Promise.resolve().then(i.bind(i,605)),"[data-cookie-permission]"):n.override("CookiePermission",s.default,"[data-cookie-permission]"),n.getPlugin("CookiePermission",!0)}catch(e){window.console.debug("[CCM19 Plugin] Shopware default cookie banner not enabled -> not integrating into Shopware's CookiePermission infrastructure.")}})();

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.