diff --git a/assets/scripts/main.js b/assets/scripts/main.js index 355dc93..e5399df 100644 --- a/assets/scripts/main.js +++ b/assets/scripts/main.js @@ -28,6 +28,7 @@ window.gdsCmp = { if (/gds-consent=\d,[01],[01],[01]/.test(document.cookie)) { const host = document.location.host.split('.').slice(-2).join('.'); document.cookie = `gds-consent=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=.${host}; path=/`; + document.cookie = `gds-consent-hash=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=.${host}; path=/`; } ready(() => { diff --git a/dist/main.asset.php b/dist/main.asset.php index dfe690d..a258401 100644 --- a/dist/main.asset.php +++ b/dist/main.asset.php @@ -1 +1 @@ - array(), 'version' => '26d6271470778475'); + array(), 'version' => '1516a5a03a5ee132'); diff --git a/dist/main.js b/dist/main.js index 44ce70a..d742b2e 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1 +1 @@ -(()=>{"use strict";var e,t={290:(e,t,n)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function s(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(72),a=n.n(r),c=n(560),d={insert:"head",singleton:!1};a()(c.A,d);c.A.locals;const l="show",u="hide",h=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'];class p extends HTMLElement{overlayEl;constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.addEventListener(l,(()=>requestAnimationFrame(this.show.bind(this)))),this.addEventListener(u,(()=>requestAnimationFrame(this.hide.bind(this)))),this.render(),this.addEventListener("keydown",this.focusTrap.bind(this)),this.persistent||(this.addEventListener("keydown",this.closeOnEsc.bind(this)),this.overlayEl.addEventListener("click",this.closeWhenClickOutside.bind(this)))}closeOnEsc(e){"Escape"===e.key&&(this.visible=!1)}focusTrap(e){if("Tab"!==e.key)return;const t=Array.from(this.querySelectorAll(h.join(","))).filter((e=>e.offsetWidth&&e.offsetHeight&&e.getClientRects().length)),n=t.at(0),o=t.at(-1);e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())}closeWhenClickOutside(){this.visible=!1}static get observedAttributes(){return["visible","persistent","scroll-lock"]}get visible(){return this.hasAttribute("visible")}get persistent(){return this.hasAttribute("persistent")}get scrollLock(){return this.hasAttribute("scroll-lock")}set visible(e){this.dispatchEvent(new CustomEvent(e?l:u,{cancelable:!0,bubbles:!0}))}isElHidden(){return"none"===window.getComputedStyle(this).display}lockScrolling(){this.isElHidden()||(document.body.style.overflowY="hidden")}unlockScrolling(){document.body.style.overflowY=""}show(){this.removeAttribute("aria-hidden"),this.scrollLock&&this.lockScrolling(),this.focus(),document.body.addEventListener("focus",this.maintainDialogFocus.bind(this),!0)}hide(){this.setAttribute("aria-hidden","true"),this.scrollLock&&this.unlockScrolling(),document.body.removeEventListener("focus",this.maintainDialogFocus.bind(this),!0)}maintainDialogFocus(e){e.target.closest('[aria-modal="true"]')||this.focus()}render(){this.shadowRoot.innerHTML='\n \n
\n \n \n \n ',this.overlayEl=this.shadowRoot.querySelector(".overlay"),this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("aria-modal")||this.setAttribute("aria-modal","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.visible?this.show():this.hide()}}customElements.define("gds-cmp-modal-dialog",p);class m extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render(),this.addEventListener("open",this.maybeCloseOtherAccordions.bind(this))}static get observedAttributes(){return["allow-multiple"]}get allowMultiple(){return this.hasAttribute("allow-multiple")}set allowMultiple(e){e?this.setAttribute("allow-multiple",""):this.removeAttribute("allow-multiple")}maybeCloseOtherAccordions(e){this.allowMultiple||Array.from(this.querySelectorAll("gds-accordion-item")).filter((t=>t!==e.target)).forEach((e=>e.close()))}render(){this.shadowRoot.innerHTML="\n \n \n "}}customElements.define("gds-cmp-accordion",m);const b="open",g="close";class f extends HTMLElement{static#e=0;#t;constructor(){super(),this.attachShadow({mode:"open"}),this.toggle=this.toggle.bind(this)}static get observedAttributes(){return["expanded"]}get expanded(){return this.hasAttribute("expanded")}set expanded(e){this.dispatchEvent(new CustomEvent(e?b:g,{cancelable:!0,bubbles:!0}))}attributeChangedCallback(e,t,n){if(n!==t&&"expanded"===e)this[e]=this.hasAttribute(e)}toggle(){this.expanded=!this.expanded}connectedCallback(){++this.constructor.#e,this.contentId=`accordion-content-${this.constructor.#e}`,this.titleId=`accordion-title-${this.constructor.#e}`,this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener(b,(()=>requestAnimationFrame(this.open.bind(this)))),this.addEventListener(g,(()=>requestAnimationFrame(this.close.bind(this)))),this.render()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeyDown),this.#t.removeEventListener("click",this.toggle)}handleKeyDown(e){"Escape"===e.key&&(this.expanded=!1)}open(){this.setAttribute("expanded",""),this.#t.setAttribute("aria-expanded","true")}close(){this.removeAttribute("expanded"),this.#t.setAttribute("aria-expanded","false")}render(){this.shadowRoot.innerHTML=`\n \n
\n \n \n \n
\n \n \n \n \n \n \n `,this.#t=this.shadowRoot.querySelector(".item__header"),this.#t.addEventListener("click",this.toggle)}}customElements.define("gds-cmp-accordion-item",f);const v="open",w="close";class y extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.addEventListener(v,this.open.bind(this)),this.addEventListener(w,this.close.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.toggle.bind(this)),this.persistent||this.controls.forEach((e=>{e.addEventListener("focusout",this.handleTargetContainerBlur.bind(this,e)),e.addEventListener("keydown",this.handleTargetContainerKeyDown.bind(this))})),this.render()}static get observedAttributes(){return["aria-expanded","aria-controls","persistent"]}get controls(){let e=this.getAttribute("aria-controls");return e?(e=e.split(" ").map((e=>document.getElementById(e))),e):[]}get persistent(){return this.hasAttribute("persistent")}get expanded(){return"true"===this.getAttribute("aria-expanded")}set expanded(e){this.dispatchEvent(new CustomEvent(e?v:w,{cancelable:!0,bubbles:!0}))}toggle(){this.expanded=!this.expanded}open(){this.setAttribute("aria-expanded",!0),this.controls.forEach((e=>e.classList.add("is-active")))}close(){this.setAttribute("aria-expanded",!1),this.controls.forEach((e=>e.classList.remove("is-active")))}handleKeyDown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.toggle())}handleTargetContainerKeyDown(e){"Escape"===e.key&&(this.expanded=!1)}handleTargetContainerBlur(e,t){const n=t.relatedTarget;n&&!e.contains(n)&&this.close()}render(){this.shadowRoot.innerHTML="\n \n \n ",this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("aria-expanded")||this.setAttribute("aria-expanded","false"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}}function k(e){return e?.constructor===Object}function x(e,t){const n=new Date;n.setMonth(n.getMonth()+13),document.cookie=`${e}=${t}; path=/; expires=${n.toUTCString()}`}function E(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null}function C(e){const t=new Date(0).toUTCString(),n=window.location.hostname.split(".").map(((e,t,n)=>n.slice(t).join("."))),o=window.location.pathname.split("/").map(((e,t,n)=>n.slice(0,t+1).join("/")||"/"));for(const i of n)for(const n of o){const o=`${encodeURIComponent(e)}=; expires=${t}; domain=${i}; path=${n}`;document.cookie=o}}function A(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments),console.debug("gtag",...arguments)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;t!0===t.consents?.[e]))}function q(){return function(e){let t={consents:{},version:void 0};try{const n=JSON.parse(decodeURIComponent(e));k(n)&&(k(n.consents)&&(t.consents=n.consents),"number"==typeof n.version&&(t.version=n.version))}catch(n){if("string"==typeof e&&/[0-9](,[01])+/.test(e)){const n=e.split(",");t=L(L({},t),{version:n.shift()||void 0,consents:{[T]:"1"===n.shift(),[M]:"1"===n.shift(),[D]:"1"===n.shift()}})}}return t}(E(S))}function P(){const e=window.gdsCmp.getConsentData(),t={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted"};for(const[n,o]of Object.entries(e.consents)){const e=window.gdsCmp?.consents?.find?.((e=>e.id===n));if(e)for(const n of e.gtmConsentModes)t[n]=!0===o?"granted":"denied"}A("consent","update",t),A("set",{consents:t})}function H(){window.fbq&&(window.gdsCmp.hasConsent(D,M)?(window.fbq("consent","grant"),console.debug("meta pixel consent granted")):(window.fbq("consent","revoke"),console.debug("meta pixel consent revoked")))}function R(){window.ttq&&(window.gdsCmp.hasConsent(D,M)?(window.ttq.enableCookie(),console.debug("tiktok enable cookies.")):(window.ttq.disableCookie(),console.debug("tiktok disable cookies.")))}function I(){if(window.wp_set_consent)for(const e of window.gdsCmp.consents)e.wpConsentApiCategory&&window.wp_set_consent(e.wpConsentApiCategory,window.gdsCmp.hasConsent(e.id)?"allow":"deny")}var N=n(963),F={insert:"head",singleton:!1};a()(N.A,F);N.A.locals;const z=T;class K extends HTMLElement{#n;constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render();window.addEventListener(j,(()=>{window.gdsCmp.hasConsent(...this.consent)&&this.onConsentGiven()})),window.gdsCmp?.hasConsent?.(...this.consent)&&this.onConsentGiven()}static get observedAttributes(){return["consent"]}get consent(){return this.getAttribute("consent")?.split?.(" ")||[z]}set consent(e){e?this.setAttribute("consent",Array.isArray(e)?e.join(" "):e):this.removeAttribute("consent")}get as(){return this.getAttribute("as")||"iframe"}get description(){return this.getAttribute("description")}get button(){return this.getAttribute("button")}onConsentGiven(){this.dispatchEvent(new CustomEvent("gds-cmp-embed.before-replace",{cancelable:!0,bubbles:!0}))?this.replaceElement():console.debug("embed replace cancelled")}replaceElement(){const e=document.createElement(this.as);for(const t of this.getAttributeNames())["consent","as"].includes(t)||e.setAttribute(t,this.getAttribute(t));e.innerHTML=this.innerHTML,e.removeAttribute("description"),e.removeAttribute("button"),e.removeAttribute("as"),e.removeAttribute("consent"),this.replaceWith(e),this.dispatchEvent(new CustomEvent("gds-cmp-embed.replaced",{detail:{element:e}}))}render(){this.shadowRoot.innerHTML=`\n \n\n
\n

${this.description}

\n\n \n
\n\n
\n \n
\n `,this.#n=this.shadowRoot.querySelector(".container button"),this.#n.addEventListener("click",(()=>window.gdsCmp?.show?.()))}}customElements.define("gds-cmp-embed",K);var B=n(257),U={insert:"head",singleton:!1};a()(B.A,U);B.A.locals;function G(){window.dispatchEvent(new CustomEvent(j));for(const[e,t]of Object.entries(q().consents))t&&window.dispatchEvent(new CustomEvent(`${j}.${e}`))}function W(){const e=_.concat(window.gdsCmp?.necessary_cookies||[]);for(const t of document.cookie.split(";").map((e=>e.trim())).map((e=>e.split(";")[0].split("=")[0]))){e.some((e=>new RegExp(`^${e}`).test(t)))||(console.debug("Removing non-necessary cookie",t),C(t))}localStorage.clear(),sessionStorage.clear()}function J(e){const t=e.attributes["data-cookie-consent-hash"].value,n=e.querySelector("[data-cookie-consent-accept-selected]"),o=e.querySelector("[data-cookie-consent-accept-all]"),i=e.querySelector("[data-cookie-consent-decline-all]"),s=Array.from(e.querySelectorAll('input[name="cookie-consent"]'));for(const e of s)e.addEventListener("click",(e=>e.stopPropagation()));const r=q(),a=E(`${S}-hash`),c=r.consents;let d=r.version;const l=Object.keys(c).length;l&&a||(console.debug("missing consent cookie",c,a),e.visible=!0);for(const e of s)e.checked=!!e.required||$(e.value);function u(){const n=function(e,t=1){return JSON.stringify({consents:e,version:t})}(function(e){return e.reduce(((e,t)=>(e[t.value]=!!t.checked,e)),{})}(s),d>1?d:1);x(S,n),x(`${S}-hash`,t),G(),function(e=!1){[P,H,R,I].forEach((t=>{e?t():setTimeout(t,0)}))}(),requestAnimationFrame((()=>e.hide())),setTimeout((()=>{A("event","gds-cmp.update")}),1)}return a!==t&&(console.debug("consent hash changed",a,t),e.visible=!0,d++),(l||a)&&G(),n.addEventListener("click",(()=>{const e=q().consents;u();for(const[t,n]of Object.entries(e))n&&!$(t)&&W()}),{passive:!0}),o.addEventListener("click",(()=>{s.forEach((e=>e.checked=!0)),u()}),{passive:!0}),i.addEventListener("click",(()=>{s.forEach((e=>e.checked=e.required)),u(),W()}),{passive:!0}),{modal:e,show(){e.show()},hide(){e.hide()},withdraw(){W(),C(S),C(`${S}-hash`),e.show()}}}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function V(e){for(var t=1;t{const e=document.querySelector(".cookie-consent");e&&(window.gdsCmp=V(V({},window.gdsCmp),J(e)));for(const e of document.querySelectorAll(".js-gds-cmp-show"))e.addEventListener("click",(function(e){e.preventDefault(),window.gdsCmp.show?.()}));document.addEventListener("click",(function({target:e}){if(e.matches("[data-gds-cmp-trigger]")){const t=e.dataset.gdsCmpTrigger;window.gdsCmp[t]?.()}}),{passive:!0})})),window.addEventListener(j,(()=>Q())),window.addEventListener(j,(()=>{const e=window.gdsCmp.getConsentData();for(const[t,n]of Object.entries(e.consents))document.body.classList.toggle(`has-gds-cmp-consent--${t}`,n)}))},257:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(314),i=n.n(o)()((function(e){return e[1]}));i.push([e.id,".cookie-consent{--block-gutter:24px}.cookie-consent__cookies{display:none}.cookie-consent__cookies.is-active{display:block}.cookie-consent gds-cmp-accordion{display:flex;flex-direction:column;margin-block-start:0}.cookie-consent gds-cmp-accordion-item+gds-cmp-accordion-item{margin-top:12px}.cookie-consent gds-cmp-accordion-item p{margin:0}.cookie-consent gds-cmp-accordion-item [slot=label]{display:flex;gap:12px;margin-bottom:0}.cookie-consent gds-cmp-accordion-item::part(header):focus-visible{outline:solid 2px var(--gds-color-black)}.cookie-consent gds-cmp-accordion-item [slot=icon]{transition:transform .2s ease-out}.cookie-consent gds-cmp-accordion-item[expanded] [slot=icon]{transform:rotate(180deg)}.cookie-consent gds-cmp-accordion-item::part(content){margin:12px 0}.cookie-consent #accept-selected-button.is-active+div,.cookie-consent #accept-selected-button:not(.is-active){display:none}",""]);const s=i},963:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(314),i=n.n(o)()((function(e){return e[1]}));i.push([e.id,".wp-block-video gds-cmp-embed,.wp-embed-responsive .wp-block-embed:not(.wp-has-aspect-ratio) gds-cmp-embed{aspect-ratio:16/9;position:relative}.wp-block-video gds-cmp-embed::part(message),.wp-embed-responsive .wp-block-embed:not(.wp-has-aspect-ratio) gds-cmp-embed::part(message){position:absolute}.wp-embed-responsive .wp-block-embed.wp-has-aspect-ratio gds-cmp-embed{inset:0;position:absolute}",""]);const s=i},560:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(314),i=n.n(o)()((function(e){return e[1]}));i.push([e.id,"gds-cmp-modal-dialog{contain:strict;display:flex;z-index:10000}gds-cmp-modal-dialog::part(dialog){border-radius:10px;box-shadow:1px 1px 4px rgba(0,0,0,.102);box-sizing:border-box;margin:0 16px;max-height:90vh;max-height:90dvh;max-width:680px;max-width:-moz-fit-content;max-width:fit-content;overflow:auto;padding:clamp(24px,24px + 36 * (100vw - 375px)/1025,60px) clamp(12px,12px + 48 * (100vw - 375px)/1025,60px)}gds-cmp-modal-dialog::part(overlay){animation:fade-in .2s both;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0000001a;contain:strict}gds-cmp-modal-dialog[aria-hidden]{display:none}gds-cmp-modal-dialog>*{margin-block-end:var(--block-gutter-end,var(--block-gutter));margin-block-start:var(--block-gutter-start,var(--block-gutter))}gds-cmp-modal-dialog p{min-width:100%;width:min-content}@keyframes fade-in{0%{opacity:0}}",""]);const s=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var s=0;s{},72:(e,t,n)=>{var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function a(e){for(var t=-1,n=0;n{if(!n){var r=1/0;for(l=0;l=s)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(a=!1,s0&&e[l-1][2]>s;l--)e[l]=e[l-1];e[l]=[n,i,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={554:0,73:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,s,[r,a,c]=n,d=0;if(r.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(c)var l=c(o)}for(t&&t(n);do(290)));var i=o.O(void 0,[73],(()=>o(473)));i=o.O(i)})(); \ No newline at end of file +(()=>{"use strict";var e,t={290:(e,t,n)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function s(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(72),a=n.n(r),c=n(560),d={insert:"head",singleton:!1};a()(c.A,d);c.A.locals;const l="show",u="hide",h=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'];class p extends HTMLElement{overlayEl;constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.addEventListener(l,(()=>requestAnimationFrame(this.show.bind(this)))),this.addEventListener(u,(()=>requestAnimationFrame(this.hide.bind(this)))),this.render(),this.addEventListener("keydown",this.focusTrap.bind(this)),this.persistent||(this.addEventListener("keydown",this.closeOnEsc.bind(this)),this.overlayEl.addEventListener("click",this.closeWhenClickOutside.bind(this)))}closeOnEsc(e){"Escape"===e.key&&(this.visible=!1)}focusTrap(e){if("Tab"!==e.key)return;const t=Array.from(this.querySelectorAll(h.join(","))).filter((e=>e.offsetWidth&&e.offsetHeight&&e.getClientRects().length)),n=t.at(0),o=t.at(-1);e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())}closeWhenClickOutside(){this.visible=!1}static get observedAttributes(){return["visible","persistent","scroll-lock"]}get visible(){return this.hasAttribute("visible")}get persistent(){return this.hasAttribute("persistent")}get scrollLock(){return this.hasAttribute("scroll-lock")}set visible(e){this.dispatchEvent(new CustomEvent(e?l:u,{cancelable:!0,bubbles:!0}))}isElHidden(){return"none"===window.getComputedStyle(this).display}lockScrolling(){this.isElHidden()||(document.body.style.overflowY="hidden")}unlockScrolling(){document.body.style.overflowY=""}show(){this.removeAttribute("aria-hidden"),this.scrollLock&&this.lockScrolling(),this.focus(),document.body.addEventListener("focus",this.maintainDialogFocus.bind(this),!0)}hide(){this.setAttribute("aria-hidden","true"),this.scrollLock&&this.unlockScrolling(),document.body.removeEventListener("focus",this.maintainDialogFocus.bind(this),!0)}maintainDialogFocus(e){e.target.closest('[aria-modal="true"]')||this.focus()}render(){this.shadowRoot.innerHTML='\n \n
\n \n \n \n ',this.overlayEl=this.shadowRoot.querySelector(".overlay"),this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("aria-modal")||this.setAttribute("aria-modal","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.visible?this.show():this.hide()}}customElements.define("gds-cmp-modal-dialog",p);class m extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render(),this.addEventListener("open",this.maybeCloseOtherAccordions.bind(this))}static get observedAttributes(){return["allow-multiple"]}get allowMultiple(){return this.hasAttribute("allow-multiple")}set allowMultiple(e){e?this.setAttribute("allow-multiple",""):this.removeAttribute("allow-multiple")}maybeCloseOtherAccordions(e){this.allowMultiple||Array.from(this.querySelectorAll("gds-accordion-item")).filter((t=>t!==e.target)).forEach((e=>e.close()))}render(){this.shadowRoot.innerHTML="\n \n \n "}}customElements.define("gds-cmp-accordion",m);const b="open",g="close";class f extends HTMLElement{static#e=0;#t;constructor(){super(),this.attachShadow({mode:"open"}),this.toggle=this.toggle.bind(this)}static get observedAttributes(){return["expanded"]}get expanded(){return this.hasAttribute("expanded")}set expanded(e){this.dispatchEvent(new CustomEvent(e?b:g,{cancelable:!0,bubbles:!0}))}attributeChangedCallback(e,t,n){if(n!==t&&"expanded"===e)this[e]=this.hasAttribute(e)}toggle(){this.expanded=!this.expanded}connectedCallback(){++this.constructor.#e,this.contentId=`accordion-content-${this.constructor.#e}`,this.titleId=`accordion-title-${this.constructor.#e}`,this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener(b,(()=>requestAnimationFrame(this.open.bind(this)))),this.addEventListener(g,(()=>requestAnimationFrame(this.close.bind(this)))),this.render()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeyDown),this.#t.removeEventListener("click",this.toggle)}handleKeyDown(e){"Escape"===e.key&&(this.expanded=!1)}open(){this.setAttribute("expanded",""),this.#t.setAttribute("aria-expanded","true")}close(){this.removeAttribute("expanded"),this.#t.setAttribute("aria-expanded","false")}render(){this.shadowRoot.innerHTML=`\n \n
\n \n \n \n
\n \n \n \n \n \n \n `,this.#t=this.shadowRoot.querySelector(".item__header"),this.#t.addEventListener("click",this.toggle)}}customElements.define("gds-cmp-accordion-item",f);const v="open",w="close";class y extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.addEventListener(v,this.open.bind(this)),this.addEventListener(w,this.close.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.toggle.bind(this)),this.persistent||this.controls.forEach((e=>{e.addEventListener("focusout",this.handleTargetContainerBlur.bind(this,e)),e.addEventListener("keydown",this.handleTargetContainerKeyDown.bind(this))})),this.render()}static get observedAttributes(){return["aria-expanded","aria-controls","persistent"]}get controls(){let e=this.getAttribute("aria-controls");return e?(e=e.split(" ").map((e=>document.getElementById(e))),e):[]}get persistent(){return this.hasAttribute("persistent")}get expanded(){return"true"===this.getAttribute("aria-expanded")}set expanded(e){this.dispatchEvent(new CustomEvent(e?v:w,{cancelable:!0,bubbles:!0}))}toggle(){this.expanded=!this.expanded}open(){this.setAttribute("aria-expanded",!0),this.controls.forEach((e=>e.classList.add("is-active")))}close(){this.setAttribute("aria-expanded",!1),this.controls.forEach((e=>e.classList.remove("is-active")))}handleKeyDown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.toggle())}handleTargetContainerKeyDown(e){"Escape"===e.key&&(this.expanded=!1)}handleTargetContainerBlur(e,t){const n=t.relatedTarget;n&&!e.contains(n)&&this.close()}render(){this.shadowRoot.innerHTML="\n \n \n ",this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("aria-expanded")||this.setAttribute("aria-expanded","false"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}}function k(e){return e?.constructor===Object}function x(e,t){const n=new Date;n.setMonth(n.getMonth()+13),document.cookie=`${e}=${t}; path=/; expires=${n.toUTCString()}`}function E(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null}function C(e){const t=new Date(0).toUTCString(),n=window.location.hostname.split(".").map(((e,t,n)=>n.slice(t).join("."))),o=window.location.pathname.split("/").map(((e,t,n)=>n.slice(0,t+1).join("/")||"/"));for(const i of n)for(const n of o){const o=`${encodeURIComponent(e)}=; expires=${t}; domain=${i}; path=${n}`;document.cookie=o}}function A(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments),console.debug("gtag",...arguments)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;t!0===t.consents?.[e]))}function q(){return function(e){let t={consents:{},version:void 0};try{const n=JSON.parse(decodeURIComponent(e));k(n)&&(k(n.consents)&&(t.consents=n.consents),"number"==typeof n.version&&(t.version=n.version))}catch(n){if("string"==typeof e&&/[0-9](,[01])+/.test(e)){const n=e.split(",");t=L(L({},t),{version:n.shift()||void 0,consents:{[T]:"1"===n.shift(),[D]:"1"===n.shift(),[M]:"1"===n.shift()}})}}return t}(E(S))}function P(){const e=window.gdsCmp.getConsentData(),t={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted"};for(const[n,o]of Object.entries(e.consents)){const e=window.gdsCmp?.consents?.find?.((e=>e.id===n));if(e)for(const n of e.gtmConsentModes)t[n]=!0===o?"granted":"denied"}A("consent","update",t),A("set",{consents:t})}function H(){window.fbq&&(window.gdsCmp.hasConsent(M,D)?(window.fbq("consent","grant"),console.debug("meta pixel consent granted")):(window.fbq("consent","revoke"),console.debug("meta pixel consent revoked")))}function R(){window.ttq&&(window.gdsCmp.hasConsent(M,D)?(window.ttq.enableCookie(),console.debug("tiktok enable cookies.")):(window.ttq.disableCookie(),console.debug("tiktok disable cookies.")))}function I(){if(window.wp_set_consent)for(const e of window.gdsCmp.consents)e.wpConsentApiCategory&&window.wp_set_consent(e.wpConsentApiCategory,window.gdsCmp.hasConsent(e.id)?"allow":"deny")}var N=n(963),F={insert:"head",singleton:!1};a()(N.A,F);N.A.locals;const z=T;class K extends HTMLElement{#n;constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render();window.addEventListener(j,(()=>{window.gdsCmp.hasConsent(...this.consent)&&this.onConsentGiven()})),window.gdsCmp?.hasConsent?.(...this.consent)&&this.onConsentGiven()}static get observedAttributes(){return["consent"]}get consent(){return this.getAttribute("consent")?.split?.(" ")||[z]}set consent(e){e?this.setAttribute("consent",Array.isArray(e)?e.join(" "):e):this.removeAttribute("consent")}get as(){return this.getAttribute("as")||"iframe"}get description(){return this.getAttribute("description")}get button(){return this.getAttribute("button")}onConsentGiven(){this.dispatchEvent(new CustomEvent("gds-cmp-embed.before-replace",{cancelable:!0,bubbles:!0}))?this.replaceElement():console.debug("embed replace cancelled")}replaceElement(){const e=document.createElement(this.as);for(const t of this.getAttributeNames())["consent","as"].includes(t)||e.setAttribute(t,this.getAttribute(t));e.innerHTML=this.innerHTML,e.removeAttribute("description"),e.removeAttribute("button"),e.removeAttribute("as"),e.removeAttribute("consent"),this.replaceWith(e),this.dispatchEvent(new CustomEvent("gds-cmp-embed.replaced",{detail:{element:e}}))}render(){this.shadowRoot.innerHTML=`\n \n\n
\n

${this.description}

\n\n \n
\n\n
\n \n
\n `,this.#n=this.shadowRoot.querySelector(".container button"),this.#n.addEventListener("click",(()=>window.gdsCmp?.show?.()))}}customElements.define("gds-cmp-embed",K);var B=n(257),G={insert:"head",singleton:!1};a()(B.A,G);B.A.locals;function U(){window.dispatchEvent(new CustomEvent(j));for(const[e,t]of Object.entries(q().consents))t&&window.dispatchEvent(new CustomEvent(`${j}.${e}`))}function J(){const e=_.concat(window.gdsCmp?.necessary_cookies||[]);for(const t of document.cookie.split(";").map((e=>e.trim())).map((e=>e.split(";")[0].split("=")[0]))){e.some((e=>new RegExp(`^${e}`).test(t)))||(console.debug("Removing non-necessary cookie",t),C(t))}localStorage.clear(),sessionStorage.clear()}function W(e){const t=e.attributes["data-cookie-consent-hash"].value,n=e.querySelector("[data-cookie-consent-accept-selected]"),o=e.querySelector("[data-cookie-consent-accept-all]"),i=e.querySelector("[data-cookie-consent-decline-all]"),s=Array.from(e.querySelectorAll('input[name="cookie-consent"]'));for(const e of s)e.addEventListener("click",(e=>e.stopPropagation()));const r=q(),a=E(`${S}-hash`),c=r.consents;let d=r.version;const l=Object.keys(c).length;l&&a||(console.debug("missing consent cookie",c,a),e.visible=!0);for(const e of s)e.checked=!!e.required||$(e.value);function u(){const n=function(e,t=1){return JSON.stringify({consents:e,version:t})}(function(e){return e.reduce(((e,t)=>(e[t.value]=!!t.checked,e)),{})}(s),d>1?d:1);x(S,n),x(`${S}-hash`,t),U(),function(e=!1){[P,H,R,I].forEach((t=>{e?t():setTimeout(t,0)}))}(),requestAnimationFrame((()=>e.hide())),setTimeout((()=>{A("event","gds-cmp.update")}),1)}return a!==t&&(console.debug("consent hash changed",a,t),e.visible=!0,d++),(l||a)&&U(),n.addEventListener("click",(()=>{const e=q().consents;u();for(const[t,n]of Object.entries(e))n&&!$(t)&&J()}),{passive:!0}),o.addEventListener("click",(()=>{s.forEach((e=>e.checked=!0)),u()}),{passive:!0}),i.addEventListener("click",(()=>{s.forEach((e=>e.checked=e.required)),u(),J()}),{passive:!0}),{modal:e,show(){e.show()},hide(){e.hide()},withdraw(){J(),C(S),C(`${S}-hash`),e.show()}}}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function V(e){for(var t=1;t{const e=document.querySelector(".cookie-consent");e&&(window.gdsCmp=V(V({},window.gdsCmp),W(e)));for(const e of document.querySelectorAll(".js-gds-cmp-show"))e.addEventListener("click",(function(e){e.preventDefault(),window.gdsCmp.show?.()}));document.addEventListener("click",(function({target:e}){if(e.matches("[data-gds-cmp-trigger]")){const t=e.dataset.gdsCmpTrigger;window.gdsCmp[t]?.()}}),{passive:!0})})),window.addEventListener(j,(()=>Q())),window.addEventListener(j,(()=>{const e=window.gdsCmp.getConsentData();for(const[t,n]of Object.entries(e.consents))document.body.classList.toggle(`has-gds-cmp-consent--${t}`,n)}))},257:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(314),i=n.n(o)()((function(e){return e[1]}));i.push([e.id,".cookie-consent{--block-gutter:24px}.cookie-consent__cookies{display:none}.cookie-consent__cookies.is-active{display:block}.cookie-consent gds-cmp-accordion{display:flex;flex-direction:column;margin-block-start:0}.cookie-consent gds-cmp-accordion-item+gds-cmp-accordion-item{margin-top:12px}.cookie-consent gds-cmp-accordion-item p{margin:0}.cookie-consent gds-cmp-accordion-item [slot=label]{display:flex;gap:12px;margin-bottom:0}.cookie-consent gds-cmp-accordion-item::part(header):focus-visible{outline:solid 2px var(--gds-color-black)}.cookie-consent gds-cmp-accordion-item [slot=icon]{transition:transform .2s ease-out}.cookie-consent gds-cmp-accordion-item[expanded] [slot=icon]{transform:rotate(180deg)}.cookie-consent gds-cmp-accordion-item::part(content){margin:12px 0}.cookie-consent #accept-selected-button.is-active+div,.cookie-consent #accept-selected-button:not(.is-active){display:none}",""]);const s=i},963:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(314),i=n.n(o)()((function(e){return e[1]}));i.push([e.id,".wp-block-video gds-cmp-embed,.wp-embed-responsive .wp-block-embed:not(.wp-has-aspect-ratio) gds-cmp-embed{aspect-ratio:16/9;position:relative}.wp-block-video gds-cmp-embed::part(message),.wp-embed-responsive .wp-block-embed:not(.wp-has-aspect-ratio) gds-cmp-embed::part(message){position:absolute}.wp-embed-responsive .wp-block-embed.wp-has-aspect-ratio gds-cmp-embed{inset:0;position:absolute}",""]);const s=i},560:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(314),i=n.n(o)()((function(e){return e[1]}));i.push([e.id,"gds-cmp-modal-dialog{contain:strict;display:flex;z-index:10000}gds-cmp-modal-dialog::part(dialog){border-radius:10px;box-shadow:1px 1px 4px rgba(0,0,0,.102);box-sizing:border-box;margin:0 16px;max-height:90vh;max-height:90dvh;max-width:680px;max-width:-moz-fit-content;max-width:fit-content;overflow:auto;padding:clamp(24px,24px + 36 * (100vw - 375px)/1025,60px) clamp(12px,12px + 48 * (100vw - 375px)/1025,60px)}gds-cmp-modal-dialog::part(overlay){animation:fade-in .2s both;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0000001a;contain:strict}gds-cmp-modal-dialog[aria-hidden]{display:none}gds-cmp-modal-dialog>*{margin-block-end:var(--block-gutter-end,var(--block-gutter));margin-block-start:var(--block-gutter-start,var(--block-gutter))}gds-cmp-modal-dialog p{min-width:100%;width:min-content}@keyframes fade-in{0%{opacity:0}}",""]);const s=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var s=0;s{},72:(e,t,n)=>{var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function a(e){for(var t=-1,n=0;n{if(!n){var r=1/0;for(l=0;l=s)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(a=!1,s0&&e[l-1][2]>s;l--)e[l]=e[l-1];e[l]=[n,i,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={554:0,73:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,s,[r,a,c]=n,d=0;if(r.some((t=>0!==e[t]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(c)var l=c(o)}for(t&&t(n);do(290)));var i=o.O(void 0,[73],(()=>o(473)));i=o.O(i)})(); \ No newline at end of file