PageSourceSearch

https://www.schlossberg-switzerland.com/theme/4fa84ba8edeff4ad293f…oorl-foundation.cookie-box.plugin.922972.js

js schlossberg-switzerland.com collected 2026-10-07 15:16:40 UTC 22,786 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[42375],{857: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!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return s(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||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=s;var c,h,d=Array.isArray(n);return d!==Array.isArray(e)?s(n,l):d?l.arrayMerge(e,n,l):(h={},(c=l).isMergeableObject(e)&&r(e).forEach(function(t){h[t]=s(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])?h[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):h[t]=s(n[t],c))}),h)}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},49:(e,t,n)=>{n.d(t,{Z:()=>i});var s=n(140);class i{static isNode(e){return"object"==typeof e&&null!==e&&(e===document||e===window||e instanceof Node)}static hasAttribute(e,t){if(!i.isNode(e))throw Error("The element must be a valid HTML Node!");return"function"==typeof e.hasAttribute&&e.hasAttribute(t)}static getAttribute(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!1===i.hasAttribute(e,t))throw Error('The required property "'.concat(t,'" does not exist!'));if("function"!=typeof e.getAttribute){if(n)throw Error("This node doesn't support the getAttribute function!");return}return e.getAttribute(t)}static getDataAttribute(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=t.replace(/^data(|-)/,""),o=s.Z.toLowerCamelCase(r,"-");if(!i.isNode(e)){if(n)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===e.dataset){if(n)throw Error("This node doesn't support the dataset attribute!");return}let a=e.dataset[o];if(void 0===a){if(n)throw Error('The required data attribute "'.concat(t,'" does not exist on ').concat(e,"!"));return a}return s.Z.parsePrimitive(a)}static querySelector(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let s=e.querySelector(t)||!1;if(n&&!1===s)throw Error('The required element "'.concat(t,'" does not exist in parent node!'));return s}static querySelectorAll(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n&&!i.isNode(e))throw Error("The parent node is not a valid HTML Node!");let s=e.querySelectorAll(t);if(0===s.length&&(s=!1),n&&!1===s)throw Error('At least one item of "'.concat(t,'" must exist in parent node!'));return s}static getFocusableElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return e.querySelectorAll('\n            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n            select:not([tabindex^="-"]):not([disabled]),\n            textarea:not([tabindex^="-"]):not([disabled]),\n            button:not([tabindex^="-"]):not([disabled]),\n            a[href]:not([tabindex^="-"]):not([disabled]),\n            [tabindex]:not([tabindex^="-"]):not([disabled])\n        ')}static getFirstFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(e)[0]}static getLastFocusableElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=this.getFocusableElements(e);return t[t.length-1]}}},830:(e,t,n)=>{n.d(t,{Z:()=>s});class s{publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=new CustomEvent(e,{detail:t,cancelable:n});return this.el.dispatchEvent(s),s}subscribe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this,i=e.split("."),r=n.scope?t.bind(n.scope):t;if(n.once&&!0===n.once){let t=r;r=function(n){s.unsubscribe(e),t(n)}}return this.el.addEventListener(i[0],r),this.listeners.push({splitEventName:i,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}
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}constructor(e=document){this._el=e,e.$emitter=this,this._listeners=[]}}},266:(e,t,n)=>{n.d(t,{Z:()=>s});class s{static iterate(e,t){if(e instanceof Map||Array.isArray(e))return e.forEach(t);if(e instanceof FormData){for(var n of e.entries())t(n[1],n[0]);return}if(e instanceof NodeList)return e.forEach(t);if(e instanceof HTMLCollection)return Array.from(e).forEach(t);if(e instanceof Object)return Object.keys(e).forEach(n=>{t(e[n],n)});throw Error("The element type ".concat(typeof e," is not iterable!"))}}},374:(e,t,n)=>{n.d(t,{Z:()=>s});class s{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 s=new Date;s.setTime(s.getTime()+864e5*n);let i="";"https:"===location.protocol&&(i="secure"),document.cookie="".concat(e,"=").concat(t,";expires=").concat(s.toUTCString(),";path=/;sameSite=lax;").concat(i)}static getItem(e){if(!e)return!1;let t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let s=n[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="".concat(e,"= ; expires = Thu, 01 Jan 1970 00:00:00 GMT;path=/")}static key(){return""}static clear(){}}},140:(e,t,n)=>{n.d(t,{Z:()=>s});class s{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=s.toUpperCamelCase(e,t);return s.lcFirst(n)}static toUpperCamelCase(e,t){return t?e.split(t).map(e=>s.ucFirst(e.toLowerCase())).join(""):s.ucFirst(e.toLowerCase())}static parsePrimitive(e){try{return/^\d+(.|,)\d+$/.test(e)&&(e=e.replace(",",".")),JSON.parse(e)}catch(t){return e.toString()}}}},568:(e,t,n)=>{n.d(t,{Z:()=>l});var s=n(857),i=n.n(s),r=n(49),o=n(140),a=n(830);class l{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(e){let t=o.Z.toDashCase(this._pluginName),n=r.Z.getDataAttribute(this.el,"data-".concat(t,"-config"),!1),s=r.Z.getAttribute(this.el,"data-".concat(t,"-options"),!1),a=[this.constructor.options,this.options,e];n&&a.push(window.PluginConfigManager.get(this._pluginName,n));try{s&&a.push(JSON.parse(s))}catch(e){throw console.error(this.el),Error('The data attribute "data-'.concat(t,'-options" could not be parsed to json: ').concat(e.message))}return i().all(a.filter(e=>e instanceof Object&&!(e instanceof Array)).map(e=>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}constructor(e,t={},n=!1){if(!r.Z.isNode(e))throw Error("There is no valid element given.");this.el=e,this.$emitter=new a.Z(this.el),this._pluginName=this._getPluginName(n),this.options=this._mergeOptions(t),this._initialized=!1,this._registerInstance(),this._init()}}},107:(e,t,n)=>{n.d(t,{Z:()=>s});class s{get(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",s=this._createPreparedRequest("GET",e,n);return this._sendRequest(s,null,t)}post(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let i=this._createPreparedRequest("POST",e,s);return this._sendRequest(i,t,n)}delete(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let i=this._createPreparedRequest("DELETE",e,s);return this._sendRequest(i,t,n)}patch(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";s=this._getContentType(t,s);let i=this._createPreparedRequest("PATCH",e,s);return this._sendRequest(i,t,n)}
1abort(){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 ".concat(e.responseURL," was aborted"))}),e.addEventListener("error",()=>{console.warn("the request to ".concat(e.responseURL," failed with status ").concat(e.status))}),e.addEventListener("timeout",()=>{console.warn("the request to ".concat(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}constructor(){this._request=null,this._errorHandlingInternal=!1}}},375:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var s=n(568),i=n(374),r=n(830),o=n(266);let a="js-offcanvas-singleton";class l{open(e,t,n,s,i,r,o){this._removeExistingOffCanvas();let a=this._createOffCanvas(n,r,o,s);this.setContent(e,i),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(".".concat(a))}close(e){let t=this.getOffCanvas();o.Z.iterate(t,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"),l.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof t&&t()}_registerEvents(e){let t=this.getOffCanvas();o.Z.iterate(t,n=>{let s=()=>{setTimeout(()=>{n.remove(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:t})},e),n.removeEventListener("hide.bs.offcanvas",s)};n.addEventListener("hide.bs.offcanvas",s)}),window.addEventListener("popstate",this.close.bind(this,e),{once:!0});let n=document.querySelectorAll(".".concat("js-offcanvas-close"));o.Z.iterate(n,t=>t.addEventListener("click",this.close.bind(this,e)))}_setAriaAttrs(){let e=this.getOffCanvas()[0],t="off-canvas-headline",n=e.querySelector('[data-id="'.concat(t,'"]'));n&&!e.hasAttribute("aria-labelledby")&&(n.setAttribute("id",t),e.setAttribute("aria-labelledby",t))}_removeExistingOffCanvas(){l.bsOffcanvas=null;let e=this.getOffCanvas();return o.Z.iterate(e,e=>e.remove())}_getPositionClass(e){return"left"===e?"offcanvas-start":"right"===e?"offcanvas-end":"offcanvas-".concat(e)}_createOffCanvas(e,t,n,s){let i=document.createElement("div");if(i.classList.add("offcanvas",a),i.classList.add(this._getPositionClass(e)),i.setAttribute("tabindex","-1"),!0===t&&i.classList.add("is-fullwidth"),n){let e=typeof n;if("string"===e)i.classList.add(n);else if(Array.isArray(n))n.forEach(e=>{i.classList.add(e)});else throw Error('The type "'.concat(e,'" is not supported. Please pass an array or a string.'))}return document.body.appendChild(i),l.bsOffcanvas=new bootstrap.Offcanvas(i,{backdrop:!1!==s||"static"}),i}constructor(){this.$emitter=new r.Z}}let c=Object.freeze(new l);class h{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",s=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=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]:"";c.open(e,t,n,s,i,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;c.setContent(e,t,n)}static setAdditionalClassName(e){c.setAdditionalClassName(e)}static close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;c.close(e)}static exists(){return c.exists()}static getOffCanvas(){return c.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}var d=n(107);let u="loader",f={BEFORE:"before",INNER:"inner"};class p{create(){if(!this.exists()){if(this.position===f.INNER){this.parent.innerHTML=p.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),p.getTemplate())}}remove(){let e=this.parent.querySelectorAll(".".concat(u));o.Z.iterate(e,e=>e.remove())}exists(){return this.parent.querySelectorAll(".".concat(u)).length>0}_getPosition(){return this.position===f.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'<div class="'.concat(u,'" role="status">
1\n                    <span class="').concat("visually-hidden",'">Loading...</span>\n                </div>')}static SELECTOR_CLASS(){return u}constructor(e,t=f.BEFORE){this.parent=e instanceof Element?e:document.body.querySelector(e),this.position=t}}let g=null;class v extends h{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,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.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!");c._removeExistingOffCanvas();let l=c._createOffCanvas(s,o,a,i);this.setContent(e,t,n,i,r),c._openOffcanvas(l)}static setContent(e,t,n,s,i){let r=new d.Z;super.setContent('<div class="offcanvas-body">'.concat(p.getTemplate(),"</div>"),s,i),g&&g.abort();let o=e=>{super.setContent(e,s,i),"function"==typeof n&&n(e)};g=t?r.post(e,t,v.executeCallback.bind(this,o)):r.get(e,v.executeCallback.bind(this,o))}static executeCallback(e,t){"function"==typeof e&&e(t),window.PluginManager.initializePlugins()}}let m="element-loader-backdrop";class b extends p{static create(e){e.classList.add("has-element-loader"),b.exists(e)||(b.appendLoader(e),setTimeout(()=>{let t=e.querySelector(".".concat(m));t&&t.classList.add("element-loader-backdrop-open")},1))}static remove(e){e.classList.remove("has-element-loader");let t=e.querySelector(".".concat(m));t&&t.remove()}static exists(e){return e.querySelectorAll(".".concat(m)).length>0}static getTemplate(){return'\n        <div class="'.concat(m,'">\n            <div class="loader" role="status">\n                <span class="').concat("visually-hidden",'">Loading...</span>\n            </div>\n        </div>\n        ')}static appendLoader(e){e.insertAdjacentHTML("beforeend",b.getTemplate())}}let _="CookieConfiguration_Update";class C extends s.Z{init(){this.lastState={active:[],inactive:[]},this._httpClient=new d.Z,this._registerEvents()}_registerEvents(){let{submitEvent:e,buttonOpenSelector:t,customLinkSelector:n,globalButtonAcceptAllSelector:s}=this.options;Array.from(document.querySelectorAll(t)).forEach(t=>{t.addEventListener(e,this.openOffCanvas.bind(this))}),Array.from(document.querySelectorAll(n)).forEach(t=>{t.addEventListener(e,this._handleCustomLink.bind(this))}),Array.from(document.querySelectorAll(s)).forEach(t=>{t.addEventListener(e,this._acceptAllCookiesFromCookieBar.bind(this))})}_registerOffCanvasEvents(){let{submitEvent:e,buttonSubmitSelector:t,buttonAcceptAllSelector:n}=this.options,s=this._getOffCanvas();if(s){let r=s.querySelector(t),o=s.querySelector(n),a=Array.from(s.querySelectorAll('input[type="checkbox"]'));r&&r.addEventListener(e,this._handleSubmit.bind(this,i.Z)),o&&o.addEventListener(e,this._acceptAllCookiesFromOffCanvas.bind(this,i.Z)),a.forEach(t=>{t.addEventListener(e,this._handleCheckbox.bind(this))})}}_handleCustomLink(e){e.preventDefault(),this.openOffCanvas()}_handleUpdateListener(e,t){let n=this._getUpdatedCookies(e,t);document.$emitter.publish(_,n)}_getUpdatedCookies(e,t){let{lastState:n}=this,s={};return e.forEach(e=>{n.inactive.includes(e)&&(s[e]=!0)}),t.forEach(e=>{n.active.includes(e)&&(s[e]=!1)}),s}openOffCanvas(e){let{offCanvasPosition:t}=this.options,n=window.router["frontend.cookie.offcanvas"];this._hideCookieBar(),v.open(n,!1,this._onOffCanvasOpened.bind(this,e),t)}closeOffCanvas(e){v.close(),"function"==typeof e&&e()}_onOffCanvasOpened(e){this._registerOffCanvasEvents(),this._setInitialState(),this._setInitialOffcanvasState(),PluginManager.initializePlugins(),"function"==typeof e&&e()}_hideCookieBar(){let e=PluginManager.getPluginInstances("CookiePermission");e&&e[0]&&(e[0]._hideCookieBar(),e[0]._removeBodyPadding())}_setInitialState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e||this._getCookies("all"),n=[],s=[];
1t.forEach(e=>{let{cookie:t,required:r}=e;i.Z.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="'.concat(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),s=this._findParentEl(e,t);this._toggleWholeGroup(n,s)}_childCheckboxEvent(e){let{groupClass:t}=this.options,n=this._isChecked(e),s=this._findParentEl(e,t);this._toggleParentCheckbox(n,s)}_toggleWholeGroup(e,t){Array.from(t.querySelectorAll("input")).forEach(t=>{t.checked=e})}_toggleParentCheckbox(e,t){let{parentInputSelector:n}=this.options,s=Array.from(t.querySelectorAll("input:not(".concat(n,")"))),i=Array.from(t.querySelectorAll("input:not(".concat(n,"):checked")));if(s.length>0){let e=t.querySelector(n);if(e){let t=i.length>0,n=t&&i.length!==s.length;e.checked=t,e.indeterminate=n}}}_handleSubmit(){let e=this._getCookies("active"),t=this._getCookies("inactive"),{cookiePreference:n}=this.options,s=[],r=[];t.forEach(e=>{let{cookie:t}=e;r.push(t),i.Z.getItem(t)&&i.Z.removeItem(t)}),e.forEach(e=>{let{cookie:t,value:n,expiration:r}=e;s.push(t),t&&n&&i.Z.setItem(t,n,r)}),i.Z.setItem(n,"1","30"),this._handleUpdateListener(s,r),this.closeOffCanvas(document.$emitter.publish("CookieConfiguration_CloseOffCanvas"))}acceptAllCookies(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e){this._handleAcceptAll(),this.closeOffCanvas();return}b.create(this.el);let t=window.router["frontend.cookie.offcanvas"];this._httpClient.get(t,e=>{let t=new DOMParser().parseFromString(e,"text/html");this._handleAcceptAll(t),b.remove(this.el),this._hideCookieBar()})}_acceptAllCookiesFromCookieBar(){return this.acceptAllCookies(!0)}_acceptAllCookiesFromOffCanvas(){return this.acceptAllCookies()}_handleAcceptAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._getCookies("all",e);this._setInitialState(t);let{cookiePreference:n}=this.options;t.forEach(e=>{let{cookie:t,value:n,expiration:s}=e;t&&n&&i.Z.setItem(t,n,s)}),i.Z.setItem(n,"1","30"),this._handleUpdateListener(t.map(e=>{let{cookie:t}=e;return t}),[])}_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:s,cookieRequired:i}=e.dataset;return{cookie:t,value:n,expiration:s,required:i}})}_getOffCanvas(){let e=h?h.getOffCanvas():[];return!!e&&e.length>0&&e[0]}}C.options={offCanvasPosition:"left",submitEvent:"click",cookiePreference:"cookie-preference",cookieSelector:"[data-cookie]",buttonOpenSelector:".js-cookie-configuration-button button",buttonSubmitSelector:".js-offcanvas-cookie-submit",buttonAcceptAllSelector:".js-offcanvas-cookie-accept-all",globalButtonAcceptAllSelector:".js-cookie-accept-all-button",parentInputSelector:".offcanvas-cookie-parent-input",customLinkSelector:'[href="'.concat(window.router["frontend.cookie.offcanvas"],'"]'),entriesActiveClass:"offcanvas-cookie-entries--active",entriesClass:"offcanvas-cookie-entries",groupClass:"offcanvas-cookie-group",parentInputClass:"offcanvas-cookie-parent-input"};class y extends s.Z{init(){this._acceptButton=this.el.querySelector(".js-moorl-cookie-box-button button"),this._registerEvents(),this._toggle()}_registerEvents(){document.$emitter.subscribe(_,e=>{this._toggle()}),this._acceptButton.addEventListener("click",e=>{if(i.Z.setItem(this.options.cookieKey,"1","30"),this.options.reload){window.location.reload();return}document.$emitter.publish(_,{"${this.options.cookieKey}":!0}),this.el.style.display="none"})}
1_toggle(){i.Z.getItem(this.options.cookieKey)?this.options.content?(this.el.parentElement.innerHTML=this.options.content,window.PluginManager.initializePlugins()):this.el.style.display="none":(this.el.style.display="flex",this.el.parentElement.style.height&&(this.el.style.minHeight=this.el.parentElement.style.height,this.el.parentElement.style.height=null))}}y.options={cookieKey:null,content:null,reload:!0}}}]);

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.