1/*! For license information please see 74.6fef0e7a.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunk_inventis_front_end_boilerplate=globalThis.webpackChunk_inventis_front_end_boilerplate||[]).push([[74],{5693:(e,t,o)=>{o.r(t),o.d(t,{default:()=>T});const i=class{options;constructor(e={}){this.options=e}getData(){throw new Error("Please utilize a proper existing store or implement your own.")}setData(e){throw new Error("Please utilize a proper existing store or implement your own.")}removeData(){throw new Error("Please utilize a proper existing store or implement your own.")}};function s(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)e[i]=o[i]}return e}var n=function e(t,o){function i(e,i,n){if("undefined"!=typeof document){"number"==typeof(n=s({},o,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var l in n)n[l]&&(r+="; "+l,!0!==n[l]&&(r+="="+n[l].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+r}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],i={},s=0;s<o.length;s++){var n=o[s].split("="),r=n.slice(1).join("=");try{var l=decodeURIComponent(n[0]);if(i[l]=t.read(r,l),e===l)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){i(e,"",s({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,s({},this.attributes,t))},withConverter:function(t){return e(s({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});class r extends i{options={cookieName:"_cookie-consent",attributes:{expires:365,sameSite:"Strict"}};constructor(e={}){super(),this.options={...this.options,...e}}getData(){const e=n.get(this.options.cookieName);return void 0===e?null:JSON.parse(e)}setData(e){n.set(this.options.cookieName,JSON.stringify(e),this.options.attributes)}removeData(){n.remove(this.options.cookieName)}}class l{cookieConsent=null;dialog=null;initialize(e){this.cookieConsent=e,this.dialog=this.cookieConsent.dialog}destroy(){this.cookieConsent=null,this.dialog=null}}class a extends l{options={elementsToCheckSelector:'button[value="yes"], button[value="save_options"]',visibilityCheckCallback:e=>this.isElementVisible(e),blockedMessage:"Our cookie consent dialog was blocked by your browser or an extension.",showAlertOnBlocked:!0};dialog;openingSource=null;destroyController=new AbortController;constructor(e={}){super(),this.options={...this.options,...e}}initialize(e){super.initialize(e),this.dialog.addEventListener("open",(e=>this.onDialogOpen(e)),{signal:this.destroyController.signal})}destroy(){this.destroyController.abort()}onDialogOpen(e){this.openingSource=e.detail.source,window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{this.verifyElementVisibility()}))}))}verifyElementVisibility(){const e=this.openingSource;this.openingSource=null;const t=this.dialog.querySelectorAll(this.options.elementsToCheckSelector);for(const e of t)if(this.options.visibilityCheckCallback(e))return;this.dialog.close(),this.options.showAlertOnBlocked&&e===S.SOURCE_USER&&alert(this.options.blockedMessage)}isElementVisible(e){return null!==e&&!(e.offsetHeight<5||e.offsetWidth<5)}}class c extends l{options={triggerPopupSelector:'[href="#edit-cookies"]'};destroyController=new AbortController;constructor(e={}){super(),this.options={...this.options,...e}}initialize(e){super.initialize(e),document.addEventListener("click",(e=>this.onClick(e)),{signal:this.destroyController.signal})}destroy(){this.destroyController.abort()}onClick(e){null!==e.target.closest(this.options.triggerPopupSelector)&&(e.preventDefault(),this.cookieConsent.toggleOptions(!0),this.cookieConsent.show(S.SOURCE_USER))}}class d extends l{options={templateSelector:'[data-consent-loading=""]',templateCategorySelector:"[data-consent-loading={0}]",templateTypeSelector:"[data-consent-type={0}]",clickableTemplateTypes:["iframe","video"],pendingTemplateClass:"-pending-consent"};destroyController=new AbortController;constructor(e={}){super(),this.options={...this.options,...e}}initialize(e){super.initialize(e),this.dialog.addEventListener("consentLoaded",(e=>this.onConsentLoaded(e)),{signal:this.destroyController.signal}),this.dialog.addEventListener("activateCategory",(e=>this.onActivateCategory(e)),{signal:this.destroyController.signal}),this.setupClickableTemplates()}destroy(){this.destroyController.abort()}setupClickableTemplates(){const e=this.options.clickableTemplateTypes.map((e=>this.options.templateTypeSelector.replace("{0}",e))).join(","),t=document.querySelectorAll(e);for(const e of t)e.classList.add(this.options.pendingTemplateClass),e.addEventListener("click",(e=>this.onTemplateClick(e)),{signal:this.destroyController.signal})}onTemplateClick(){this.cookieConsent.show(S.SOURCE_USER)}onConsentLoaded(){this.activatePermissionLessTemplates()}onActivateCategory(e){this.activatePermissionLessTemplates(),this.activateCategoryBasedTemplates([e.detail.category])}activateCategoryBasedTemplates(e){for(const t of e){const e=document.querySelectorAll(this.options.templateCategorySelector.replace("{0}",t));for(const t of e)this.activateTemplate(t)}
2}activatePermissionLessTemplates(){document.querySelectorAll(this.options.templateSelector).forEach((e=>this.activateTemplate(e)))}activateTemplate(e){e.parentElement.replaceChild(e.content,e)}}var h=!1;if("undefined"!=typeof window){var g={get passive(){h=!0}};window.addEventListener("testPassive",null,g),window.removeEventListener("testPassive",null,g)}var p="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),u=[],v=!1,m=-1,f=void 0,y=void 0,C=function(e){return u.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},w=function(e){var t=e||window.event;return!!C(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},b=function(){void 0!==y&&(document.body.style.paddingRight=y,y=void 0),void 0!==f&&(document.body.style.overflow=f,f=void 0)},k=function(e,t){if(e&&!u.some((function(t){return t.targetElement===e}))){var o={targetElement:e,options:t||{}};u=[].concat(function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}(u),[o]),p?(e.ontouchstart=function(e){1===e.targetTouches.length&&(m=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var o=e.targetTouches[0].clientY-m;!C(e.target)&&(t&&0===t.scrollTop&&o>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&o<0?w(e):e.stopPropagation())}(t,e)},v||(document.addEventListener("touchmove",w,h?{passive:!1}:void 0),v=!0)):function(e){if(void 0===y){var t=!!e&&!0===e.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;t&&o>0&&(y=document.body.style.paddingRight,document.body.style.paddingRight=o+"px")}void 0===f&&(f=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}};class E extends l{options={};destroyController=new AbortController;constructor(e={}){super(),this.options={...this.options,...e}}initialize(e){super.initialize(e),this.dialog.addEventListener("open",(()=>this.onDialogOpen()),{signal:this.destroyController.signal}),this.dialog.addEventListener("close",(()=>this.onDialogClose()),{signal:this.destroyController.signal})}onDialogOpen(){k(this.dialog)}onDialogClose(){var e;(e=this.dialog)&&(u=u.filter((function(t){return t.targetElement!==e})),p?(e.ontouchstart=null,e.ontouchmove=null,v&&0===u.length&&(document.removeEventListener("touchmove",w,h?{passive:!1}:void 0),v=!1)):u.length||b())}destroy(){this.destroyController.abort()}}class S{static SOURCE_SYSTEM="system";static SOURCE_USER="user";options={optionsToggleSelector:'[aria-controls="cookie-consent-options"]',generalButtonsSelector:".cookie-consent__buttons.-general",agreeValue:"yes",disagreeValue:"no",saveOptionsValue:"save_options",categoriesFieldName:"categories",hideDialog:!1,isModal:!1,version:"1",plugins:[],dialogBlockDetector:{},cookieDialogTrigger:{},permissionDependantTemplateHandler:{}};destroyController=new AbortController;constructor(e,t={},o=new r){this.dialog=e,this.store=o,this.options={...this.options,...t,...this.dialog.dataset},void 0!==t.plugins&&null!==t.plugins||(this.options.plugins=[new a(this.options.dialogBlockDetector),new c(this.options.cookieDialogTrigger),new d(this.options.permissionDependantTemplateHandler)]),!0===this.options.isModal&&this.options.plugins.push(new E),this.initializePlugins(),this.initialize()}initializePlugins(){for(const e of this.options.plugins){if(!(e instanceof l))throw new Error(`${e.constructor.name} should extend BasePlugin`);e.initialize(this)}}initialize(){const e=this.getSavedAnswer();e||this.disableDialogForDialogLinks(),this.attachDialogListeners(),this.options.hideDialog||e||this.show(S.SOURCE_SYSTEM),e&&e.consent===this.options.agreeValue&&(this.activateCategories(e.categories),this.dialog.dispatchEvent(new CustomEvent("consentLoaded",{detail:e})))}destroy(){this.destroyController.abort(),this.destroyPlugins()}destroyPlugins(){for(const e of this.options.plugins)e.destroy()}attachDialogListeners(){this.dialog.addEventListener("close",(e=>this.onDialogClose(e)),{signal:this.destroyController.signal}),this.optionsToggle=this.dialog.querySelector(this.options.optionsToggleSelector),this.optionsSection=document.getElementById(this.optionsToggle.getAttribute("aria-controls")),this.generalButtons=this.dialog.querySelector(this.options.generalButtonsSelector),this.optionsToggle&&this.optionsSection&&this.optionsToggle.addEventListener("click",(e=>this.onToggleOptionsClick(e)),{signal:this.destroyController.signal})}onDialogClose(){if(0===this.dialog.returnValue.length)return;let e={version:this.options.version,consent:this.dialog.returnValue};if(e.consent!==this.options.disagreeValue){e.categories=[];let t=[];e.consent===this.options.saveOptionsValue?(t=Array.from(this.getCategoryFields()).filter((e=>e.checked)),e.consent=this.options.agreeValue):e.consent===this.options.agreeValue&&(t=this.getCategoryFields()),t.forEach((t=>{e.categories.push(t.value)}));try{this.activateCategories(e.categories)}catch(e){}}this.saveAnswer(e)}onToggleOptionsClick(e){e.preventDefault(),this.toggleOptions()}getSavedAnswer(){try{const e=this.store.getData();if(null===e)return null;if(e.version===this.options.version)return"object"!=typeof e.categories&&(e.categories=[]),e}catch(e){}return this.store.removeData(),null}saveAnswer(e){this.store.setData(e),this.dialog.dispatchEvent(new CustomEvent("answer",{detail:e}))}activateCategories(e){e.forEach((e=>{this.dialog.dispatchEvent(new CustomEvent("activateCategory",{detail:{category:e}}))}))}
2show(e){this.loadAnswerCategories(),!0===this.options.isModal?(this.dialog.classList.add("-is-modal"),this.dialog.showModal()):this.dialog.show(),this.dialog.dispatchEvent(new CustomEvent("open",{detail:{source:e}}))}disableDialogForDialogLinks(){this.dialog.querySelectorAll("a").forEach((e=>{window.location.href.indexOf(e.href)>-1&&(this.options.hideDialog=!0)}))}toggleOptions(e){let t=e;"boolean"!=typeof e&&(t="false"===this.optionsToggle.getAttribute("aria-expanded")),this.optionsToggle.setAttribute("aria-expanded",t),this.optionsSection.toggleAttribute("hidden",!t),this.generalButtons.toggleAttribute("hidden",t),this.dialog.dispatchEvent(new CustomEvent("toggleOptions",{detail:{open:t}}))}loadAnswerCategories(){const e=this.getSavedAnswer();e&&this.getCategoryFields().forEach((t=>{t.checked=e.categories.includes(t.value)}))}getCategoryFields(){return this.dialog.querySelectorAll('input[name="'+this.options.categoriesFieldName+'[]"]')}}const T=e=>new S(e)}}]);
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.