PageSourceSearch

https://www.cz-zorgkantoor.nl/resources/fe/js/bundle.esm.js?v=vrbZMPfEA3Ckv54QDrwS1O9_s2HvzBhiw_NYw0M_3gU

js cz-zorgkantoor.nl collected 2026-10-07 11:24:31 UTC 184,840 bytes, 487 lines download raw bytes

1let t,e,i,n,s,o,r,l,a,c,u,d,h,p,v,m,g,f,b,y,_,w,x,k,S,$,A,L,C,E,T,q,O=t=>t;function N(){return N=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},N.apply(null,arguments)}function z(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var P=0;function M(t){return"__private_"+P+++"_"+t}function V(t){return new I(t,0)}function B(t){return function(){return new H(t.apply(this,arguments))}}function H(t){var e,i;function n(e,i){try{var o=t[e](i),r=o.value,l=r instanceof I;Promise.resolve(l?r.v:r).then(function(i){if(l){var a="return"===e&&r.k?e:"next";if(!r.k||i.done)return n(a,i);i=t[a](i).value}s(!!o.done,i)},function(t){n("throw",t)})}catch(t){s(2,t)}}function s(t,s){2===t?e.reject(s):e.resolve({value:s,done:t}),(e=e.next)?n(e.key,e.arg):i=null}this._invoke=function(t,s){return new Promise(function(o,r){var l={key:t,arg:s,resolve:o,reject:r,next:null};i?i=i.next=l:(e=i=l,n(t,s))})},"function"!=typeof t.return&&(this.return=void 0)}function I(t,e){this.v=t,this.k=e}function j(t){var e,i,n,s=2;for("undefined"!=typeof Symbol&&(i=Symbol.asyncIterator,n=Symbol.iterator);s--;){if(i&&null!=(e=t[i]))return e.call(t);if(n&&null!=(e=t[n]))return new D(e.call(t));i="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function D(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:e}})}return D=function(t){this.s=t,this.n=t.next},D.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var i=this.s.return;return void 0===i?Promise.resolve({value:t,done:!0}):e(i.apply(this.s,arguments))},throw:function(t){var i=this.s.return;return void 0===i?Promise.reject(t):e(i.apply(this.s,arguments))}},new D(t)}H.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},H.prototype.next=function(t){return this._invoke("next",t)},H.prototype.throw=function(t){return this._invoke("throw",t)},H.prototype.return=function(t){return this._invoke("return",t)};var F,U,R={exports:{}};
2/*!
3 * modernizr v3.12.0
4 * Build https://modernizr.com/download?-touchevents-addtest-printshiv-setclasses-testprop-dontmin
5 *
6 * Copyright (c)
7 *  Faruk Ates
8 *  Paul Irish
9 *  Alex Sexton
10 *  Ryan Seddon
11 *  Patrick Kettner
12 *  Stu Cox
13 *  Richard Herrera
14 *  Veeck
15
16 * MIT License
17 */function W(t){let e;try{e=window[t];const i="__storage_test__";return e.setItem(i,i),e.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&e&&0!==e.length}}F||(F=1,U=R,function(t,e,i,n){var s=[],o={_version:"3.12.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){s.push({name:t,fn:e,options:i})},addAsyncTest:function(t){s.push({name:null,fn:t})}},r=function(){};r.prototype=o,r=new r;var l=[];function a(t,e){return typeof t===e}var c,u,d=i.documentElement,h="svg"===d.nodeName.toLowerCase();function p(t){var e=d.className,i=r._config.classPrefix||"";if(h&&(e=e.baseVal),r._config.enableJSClass){var n=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");e=e.replace(n,"$1"+i+"js$2")}r._config.enableClasses&&(t.length>0&&(e+=" "+i+t.join(" "+i)),h?d.className.baseVal=e:d.className=e)}function v(t,e){if("object"==typeof t)for(var i in t)c(t,i)&&v(i,t[i]);else{var n=(t=t.toLowerCase()).split("."),s=r[n[0]];if(2===n.length&&(s=s[n[1]]),void 0!==s)return r;e="function"==typeof e?e():e,1===n.length?r[n[0]]=e:(!r[n[0]]||r[n[0]]instanceof Boolean||(r[n[0]]=new Boolean(r[n[0]])),r[n[0]][n[1]]=e),p([(e&&!1!==e?"":"no-")+n.join("-")]),r._trigger(t,e)}return r}function m(t,e){return!!~(""+t).indexOf(e)}function g(){return"function"!=typeof i.createElement?i.createElement(arguments[0]):h?i.createElementNS.call(i,"http://www.w3.org/2000/svg",arguments[0]):i.createElement.apply(i,arguments)}c=a(u={}.hasOwnProperty,"undefined")||a(u.call,"undefined")?function(t,e){return e in t&&a(t.constructor.prototype[e],"undefined")}:function(t,e){return u.call(t,e)},o._l={},o.on=function(t,e){this._l[t]||(this._l[t]=[]),this._l[t].push(e),r.hasOwnProperty(t)&&setTimeout(function(){r._trigger(t,r[t])},0)},o._trigger=function(t,e){if(this._l[t]){var i=this._l[t];setTimeout(function(){var t;for(t=0;t<i.length;t++)(0,i[t])(e)},0),delete this._l[t]}},r._q.push(function(){o.addTest=v}),h||function(t,e){var i,n,s=t.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l="_html5shiv",a=0,c={};function u(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}function d(){var t=m.elements;return"string"==typeof t?t.split(" "):t}function h(t){var e=c[t[l]];return e||(e={},a++,t[l]=a,c[a]=e),e}
17function p(t,i,s){return i||(i=e),n?i.createElement(t):(s||(s=h(i)),!(l=s.cache[t]?s.cache[t].cloneNode():r.test(t)?(s.cache[t]=s.createElem(t)).cloneNode():s.createElem(t)).canHaveChildren||o.test(t)||l.tagUrn?l:s.frag.appendChild(l));var l}function v(t){t||(t=e);var s=h(t);return!m.shivCSS||i||s.hasCSS||(s.hasCSS=!!u(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),n||function(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return m.shivMethods?p(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(m,e.frag)}(t,s),t}!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",i="hidden"in t,n=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){i=!0,n=!0}}();var m={elements:s.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==s.shivCSS,supportsUnknownElements:n,shivMethods:!1!==s.shivMethods,type:"default",shivDocument:v,createElement:p,createDocumentFragment:function(t,i){if(t||(t=e),n)return t.createDocumentFragment();for(var s=(i=i||h(t)).frag.cloneNode(),o=0,r=d(),l=r.length;o<l;o++)s.createElement(r[o]);return s},addElements:function(t,e){var i=m.elements;"string"!=typeof i&&(i=i.join(" ")),"string"!=typeof t&&(t=t.join(" ")),m.elements=i+" "+t,v(e)}};t.html5=m,v(e);var g,f=/^$|\b(?:all|print)\b/,b="html5shiv",y=!(n||(g=e.documentElement,void 0===e.namespaces||void 0===e.parentWindow||void 0===g.applyElement||void 0===g.removeNode||void 0===t.attachEvent));function _(t){for(var e,i=t.attributes,n=i.length,s=t.ownerDocument.createElement(b+":"+t.nodeName);n--;)(e=i[n]).specified&&s.setAttribute(e.nodeName,e.nodeValue);return s.style.cssText=t.style.cssText,s}function w(t){var e,i,n=h(t),s=t.namespaces,o=t.parentWindow;if(!y||t.printShived)return t;function r(){clearTimeout(n._removeSheetTimer),e&&e.removeNode(!0),e=null}return void 0===s[b]&&s.add(b),o.attachEvent("onbeforeprint",function(){r();for(var n,s,o,l=t.styleSheets,a=[],c=l.length,h=Array(c);c--;)h[c]=l[c];for(;o=h.pop();)if(!o.disabled&&f.test(o.media)){try{s=(n=o.imports).length}catch(t){s=0}for(c=0;c<s;c++)h.push(n[c]);try{a.push(o.cssText)}catch(t){}}a=function(t){for(var e,i=t.split("{"),n=i.length,s=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),o="$1"+b+"\\:$2";n--;)(e=i[n]=i[n].split("}"))[e.length-1]=e[e.length-1].replace(s,o),i[n]=e.join("}");return i.join("{")}(a.reverse().join("")),i=function(t){for(var e,i=t.getElementsByTagName("*"),n=i.length,s=RegExp("^(?:"+d().join("|")+")$","i"),o=[];n--;)e=i[n],s.test(e.nodeName)&&o.push(e.applyElement(_(e)));return o}(t),e=u(t,a)}),o.attachEvent("onafterprint",function(){!function(t){for(var e=t.length;e--;)t[e].removeNode()}(i),clearTimeout(n._removeSheetTimer),n._removeSheetTimer=setTimeout(r,500)}),t.printShived=!0,t}m.type+=" print",m.shivPrint=w,w(e),U.exports&&(U.exports=m)}(void 0!==e?e:this,i);var f={elem:g("modernizr")};r._q.push(function(){delete f.elem});var b={style:f.elem.style};function y(t,e,n,s){var o,r,l,a,c="modernizr",u=g("div"),p=function(){var t=i.body;return t||((t=g(h?"svg":"body")).fake=!0),t}();if(parseInt(n,10))for(;n--;)(l=g("div")).id=c+(n+1),u.appendChild(l);return(o=g("style")).type="text/css",o.id="s"+c,(p.fake?p:u).appendChild(o),p.appendChild(u),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(i.createTextNode(t)),u.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",a=d.style.overflow,d.style.overflow="hidden",d.appendChild(p)),r=e(u,t),p.fake&&p.parentNode?(p.parentNode.removeChild(p),d.style.overflow=a,d.offsetHeight):u.parentNode.removeChild(u),!!r}function _(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function w(t,i,n){var s;if("getComputedStyle"in e){s=getComputedStyle.call(e,t,i);var o=e.console;null!==s?s=s.getPropertyValue(n):o&&o[o.error?"error":"log"].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else s=t.currentStyle&&t.currentStyle[n];return s}
17function x(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function k(t,i,s,o){if(o=!a(o,"undefined")&&o,!a(s,"undefined")){var r=function(t,i){var s=t.length;if("CSS"in e&&"supports"in e.CSS){for(;s--;)if(e.CSS.supports(_(t[s]),i))return!0;return!1}if("CSSSupportsRule"in e){for(var o=[];s--;)o.push("("+_(t[s])+":"+i+")");return y("@supports ("+(o=o.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"===w(t,null,"position")})}return n}(t,s);if(!a(r,"undefined"))return r}for(var l,c,u,d,h,p=["modernizr","tspan","samp"];!b.style&&p.length;)l=!0,b.modElem=g(p.shift()),b.style=b.modElem.style;function v(){l&&(delete b.style,delete b.modElem)}for(u=t.length,c=0;c<u;c++)if(d=t[c],h=b.style[d],m(d,"-")&&(d=x(d)),b.style[d]!==n){if(o||a(s,"undefined"))return v(),"pfx"!==i||d;try{b.style[d]=s}catch(t){}if(b.style[d]!==h)return v(),"pfx"!==i||d}return v(),!1}r._q.unshift(function(){delete b.style}),o.testProp=function(t,e,i){return k([t],n,e,i)};var S=o._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];o._prefixes=S;var $,A=($=e.matchMedia||e.msMatchMedia)?function(t){var e=$(t);return e&&e.matches||!1}:function(t){var e=!1;return y("@media "+t+" { #modernizr { position: absolute; } }",function(t){e="absolute"===w(t,null,"position")}),e};o.mq=A,
18/*!
19      {
20        "name": "Touch Events",
21        "property": "touchevents",
22        "caniuse": "touch",
23        "tags": ["media", "attribute"],
24        "notes": [{
25          "name": "Touch Events spec",
26          "href": "https://www.w3.org/TR/2013/WD-touch-events-20130124/"
27        }],
28        "warnings": [
29          "** DEPRECATED see https://github.com/Modernizr/Modernizr/pull/2432 **",
30          "Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device"
31        ],
32        "knownBugs": [
33          "False-positive on some configurations of Nokia N900",
34          "False-positive on some BlackBerry 6.0 builds – https://github.com/Modernizr/Modernizr/issues/372#issuecomment-3112695"
35        ]
36      }
37      !*/
38r.addTest("touchevents",function(){if("ontouchstart"in e||e.TouchEvent||e.DocumentTouch&&i instanceof DocumentTouch)return!0;var t=["(",S.join("touch-enabled),("),"heartz",")"].join("");return A(t)}),function(){var t,e,i,n,o,c;for(var u in s)if(s.hasOwnProperty(u)){if(t=[],(e=s[u]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)t.push(e.options.aliases[i].toLowerCase());for(n=a(e.fn,"function")?e.fn():e.fn,o=0;o<t.length;o++)1===(c=t[o].split(".")).length?r[c[0]]=n:(r[c[0]]&&(!r[c[0]]||r[c[0]]instanceof Boolean)||(r[c[0]]=new Boolean(r[c[0]])),r[c[0]][c[1]]=n),l.push((n?"":"no-")+c.join("-"))}}(),p(l),delete o.addTest,delete o.addAsyncTest;for(var L=0;L<r._q.length;L++)r._q[L]();t.Modernizr=r}(window,window,document));const K={};const G={setItem:function(t,e){K[t]=e},getItem:function(t){return K[t]},removeItem:function(t){delete K[t]}};function J(t=""){let e=G;switch(t){case"persist":e=W("localStorage")?window.localStorage:W("sessionStorage")?window.sessionStorage:G;break;case"session":e=W("sessionStorage")?window.sessionStorage:G}return{storeKeyValue:(t,i)=>{if(t&&"string"==typeof t&&i)return"string"==typeof i?e.setItem(t,i):e.setItem(t,JSON.stringify(i)),!0},getStoredValue:t=>{if(!t||"string"!=typeof t)return;const i=e.getItem(t);if(i)try{return JSON.parse(i)}catch(t){return i}},removeStoredValue:t=>{if(t&&"string"==typeof t)return e.removeItem(t)}}}function Z(t){var e;const i=null==t?void 0:t.getAttribute("data-svg-url");if(i)return i;const n=null!=(e=J().getStoredValue("scriptUrl"))?e:"";if(n){var s,o;const t=null==(s=new URL(n))?void 0:s.pathname,e=null!=(o=null==t?void 0:t.indexOf("/js/"))?o:-1;if(e>-1){return`${t.substring(0,e)}/images/svg.svg`}}return!1}function Q(t,e,i){return!(!t||!e)&&(!(t.querySelector("svg.c-icon")||!i)&&`<svg class="c-icon c-icon--${e}">
38<use xlink:href="${i}#${e}" /></svg>`)}function Y(t,e=10){return t<e?"0"+t:t}function X(t){return function(t){[...t.querySelectorAll("a:not(.c-link, .c-button, .c-btn, [id^=term], [data-role])")].forEach(t=>{if(!t.querySelector(".c-link__text")){const e=t.innerHTML;t.innerHTML=`<span class="c-link__text">${e}</span>`}t.classList.add("c-link")})}(t),function(t){[...t.querySelectorAll("[data-size]")].forEach(t=>{let e=t.getAttribute("data-type"),i=t.getAttribute("data-size"),n=function(t,e,i){return!!t&&!(t.querySelector("span.c-file-info")||!e||!i)&&`<span class="c-file-info">(${e} - ${i})</span>`}(t,e,i);n&&t.insertAdjacentHTML("beforeend",n)})}(t),function(t){const e=[...t.querySelectorAll("[data-type]")],i=Z(t);e.forEach(t=>{let e=t.getAttribute("data-type"),n=Q(t,e,i);n&&t.insertAdjacentHTML("afterbegin",n)})}(t),function(t){const e=[...t.querySelectorAll('a[rel="external"]')],i=Z(t);e.forEach(t=>{let e=Q(t,"external-link",i);e&&t.insertAdjacentHTML("beforeend",e)})}(t),t}const tt={};function et(t){tt[t]||(tt[t]=[])}function it(t){t&&t.length>0&&t.forEach&&t.forEach(et)}function nt(t,e){tt[t]||(tt[t]=[]),e&&"function"==typeof e&&tt[t].push(e)}function st(t,{fn:e,name:i}){tt[t]||(tt[t]=[]),e&&"function"==typeof e&&i&&"string"==typeof i&&tt[t].push({name:i,fn:e})}async function ot(t,...e){if(!tt[t])return;const i=tt[t].map(t=>t(...e));return Promise.all(i)}async function rt(t,{name:e,args:i={}}){if(!tt[t]||!(tt[t].length>0&&e&&"string"==typeof e))return;const n=(tt[t].filter(t=>t.name===e&&"function"==typeof t.fn)||[]).map(t=>t.fn(i));return Promise.all(n)}const lt=Array.prototype.slice,at=(t,e)=>"string"==typeof t?(e||document).querySelector(t):t||null;at.create=(t,e)=>{const i=document.createElement(t);for(let t in e){let n=e[t];if("inside"===t)at(n).appendChild(i);else if("after"===t){let t=at(n);t.parentNode.insertBefore(i,t.nextSibling)}else if("around"===t){let t=at(n);t.parentNode.insertBefore(i,t),i.appendChild(t)}else t in i?i[t]=n:i.setAttribute(t,n)}return i},at.getQueryString=(t,e=!1)=>{if(!t||"string"!=typeof t)return"";let i=location.search&&location.search.length>0&&location.search.indexOf(t)>-1?location.search.substring(1).split("&"):location.hash&&location.hash.length>0&&location.hash.indexOf(t)>-1?location.hash.substring(1).split("&"):[];for(let t=0;t<i.length;t++)i[t]=i[t].replace(/\+/g," ");for(let s of i){var n;const i=s.split("=");if((null==(n=i[0])?void 0:n.toLowerCase())===t.toLowerCase())return e?i[1]:decodeURIComponent(i[1])}return""},at.regExpEscape=t=>t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),at.siblingIndex=t=>{let e=0;for(;t.previousElementSibling;)t=t.previousElementSibling,e++;return e};const ct=(t,e)=>new RegExp(at.regExpEscape(e.trim()),"i").test(t),ut=(t,e)=>t.length!==e.length?t.length-e.length:t<e?-1:1,dt=t=>`<li aria-selected="false">${t}</li>`,ht=(t,e)=>e?`<a href="${e}" class="c-link">${t}</a>`:t;class pt{constructor(t){const e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"text"in t&&"value"in t?t:{label:t,value:t};this.label=e.text||e.label||"",this.href=e.href||"",this.value=e.value}get length(){return this.label.length}toString(){return""+this.label}}function vt(t,e,i,n=""){const s=n+t.charAt(0).toUpperCase()+t.slice(1);return(e.dataset[`msg${s}`]||"Validatiefout").replace("{field}",i.textContent)}const mt=(null==(t=window)?void 0:t._paq)||[],gt="piwik_",ft=J("session");let bt,yt=function(t){var e,i,n;t&&(null==(e=(i=(null==(n=window)?void 0:n.PiwikdataLayer)||[]).push)||e.call(i,t))};function _t(t,e){t&&"string"==typeof t&&yt({[`${t}`]:`${e}`})}function wt(t,e){var i;t&&"number"==typeof t&&e&&((null==(i=window)?void 0:i._paq)||mt).push(["setCustomDimensionValue",t,`${e}`])}async function xt(){var t;(null==(t=Object.keys(sessionStorage))?void 0:t.filter(t=>t.startsWith(gt)&&t.length>6)).forEach(t=>{const e=ft.getStoredValue(t);_t(t.substring(6),e)})}function kt(t){if(t)return ft.getStoredValue(`${gt}${t}`)}async function St(t){null!=t&&t.event&&!function(t){let e=!1;return t&&bt&&(e=t.event===bt.event&&t.event_category===bt.event_category&&t.event_action===bt.event_action&&t.event_name===bt.event_name),bt=t,e}(t)&&yt(t)}async function $t(t,e){!function(t,e){t&&"string"==typeof t&&"string"==typeof e&&ft.storeKeyValue(`${gt}${t}`,e)}(t,e),_t(t,e)}function At(t,...e){const i=document.createElement("div");let n=t[0];const s=e.entries();for(const[e,o]of s)i.textContent=o,n+=i.innerHTML,n+=t[e+1];return n}function Lt(t){return new Promise(function(e){setTimeout(e,t)})}const Ct=t=>e=>t&&t.length>0?t.reduce((t,e)=>{return(i=B(function*(t){var i,n=!1,s=!1;try{for(var o,r=j(t);n=!(o=yield V(r.next())).done;n=!1){const t=o.value;yield e(t)}}catch(t){s=!0,i=t}
38finally{try{n&&null!=r.return&&(yield V(r.return()))}finally{if(s)throw i}}}),function(t){return i.apply(this,arguments)})(t);var i},e):e;async function Et(t,e=()=>{},i,n=!1){let s=n?(t=>e=>t&&t.length>0?t.reduce((t,e)=>e(t),e):e)(i):Ct(i);var o,r=!1,l=!1;try{for(var a,c=j(s(t));r=!(a=await c.next()).done;r=!1){e(a.value)}}catch(t){l=!0,o=t}finally{try{r&&null!=c.return&&await c.return()}finally{if(l)throw o}}}function Tt(t,e,...i){const n=function({onlyFirst:t=!1,now:e=!1,ms:i=200}){return{callback:null,queue:[],[Symbol.asyncIterator]:B(function*(){for(;;){for(;this.queue.length;)t&&!e&&(i>0&&(yield V(Lt(i))),this.queue.length>1)?this.queue=[this.queue.shift()]:(yield this.queue.shift(),t&&e&&(i>0&&(yield V(Lt(i))),this.queue.length>1)&&(this.queue=[this.queue.shift()]));yield V(new Promise(t=>this.callback=t)),this.callback=null}})}}({onlyFirst:!0,now:!0,ms:e});return Et(n,t,i),{push(t){n.callback&&n.callback(),n.queue.push(t)}}}function qt(t,e,...i){const n=function({onlyLast:t=!1,ms:e=500,pause:i=0}={}){return{callback:null,queue:[],[Symbol.asyncIterator]:B(function*(){for(;;){for(;this.queue.length;){if(t){if(this.queue.length>1){this.queue=[this.queue.pop()];continue}if(e>0&&(yield V(Lt(e))),this.queue.length>1)continue}yield this.queue.shift(),i>0&&(yield V(Lt(i)))}yield V(new Promise(t=>this.callback=t)),this.callback=null}})}}({onlyLast:!0,ms:e});return Et(n,t,i),{push(t){n.callback&&n.callback(),n.queue.push(t)}}}function Ot(t,e){if(!t||"function"!=typeof t)return;const i=qt(t,e);return function(t){i.push(t)}}const Nt="shared-header__";var zt={layout:{logo:`${Nt}logo`,menuButtonMobile:`${Nt}btn-mobile--menu`,btnShoppingCart:`${Nt}btn--shopping-cart`,navContainer:`${Nt}nav`,navContainerWrapper:`${Nt}nav-wrapper`,topBar:`${Nt}top-bar`},modifiers:{active:"is-active",hidden:"is-hidden",submenu:"submenu-is-open"},navDomain:{nav:`${Nt}nav-domain`},navPrimary:{container:`${Nt}nav__list`,listItem:`${Nt}nav__item`,mainItem:`${Nt}nav__link`,subNav:`${Nt}nav__sub-nav`,subNavGroup:`${Nt}nav__sub-nav__group-wrapper`},overlay:`${Nt}overlay`,search:{dialog:`${Nt}search-dialog`,autoComplete:`${Nt}search-auto-complete`,buttonClear:`${Nt}search-btn-clear`,buttonSubmit:`${Nt}search-btn-submit`,buttonToggleSearchMobile:`${Nt}btn-mobile--search`,form:`${Nt}search`,formWrapperMobile:`${Nt}search__wrapper`,list:`${Nt}list`,listLabel:`${Nt}list-label`}};const Pt=document.querySelector(`.${zt.layout.logo}`),Mt=document.querySelector(`.${zt.layout.menuButtonMobile}`),Vt=document.querySelector(`.${zt.layout.navContainer}`),Bt=document.querySelector(`.${zt.layout.navContainerWrapper}`),Ht=document.querySelector(`.${zt.overlay}`),It=document.querySelector(`.${zt.layout.topBar}`),jt=null==It?void 0:It.querySelector(`.${zt.layout.btnShoppingCart}`),Dt=document.querySelector(`.${zt.navPrimary.container}`),Ft=Array.prototype.slice.call((null==(e=document.querySelector(`.${zt.layout.navContainer}`))?void 0:e.querySelectorAll("a"))||[]),Ut=[...document.querySelectorAll(`.${zt.navPrimary.mainItem}`)],Rt=[...document.querySelectorAll(`.${zt.navPrimary.listItem}`)],Wt=[...(null==Vt?void 0:Vt.querySelectorAll(`button.${zt.navPrimary.mainItem}`))||[]],Kt=[...document.querySelectorAll(`.${zt.navPrimary.subNavGroup}`)],Gt=[...document.querySelectorAll(`.${zt.navPrimary.subNav}`)],Jt=document.querySelector(`.${zt.navDomain.nav}`),Zt=Jt?Array.prototype.slice.call(Jt.querySelectorAll("a")||[]):[],Qt=document.querySelector(`.${zt.search.buttonToggleSearchMobile}`),Yt=document.querySelector(`.${zt.search.dialog}`),Xt=null==(i=document.querySelector(`.${zt.search.dialog}`))?void 0:i.querySelector(`.${zt.search.form}`),te=null==Bt?void 0:Bt.querySelector(`.${zt.search.form}`),ee=Xt?Xt.querySelector("input"):null,ie=te?te.querySelector("input"):null,ne=Xt?Xt.querySelector(`.${zt.search.buttonClear}`):null,se=te?te.querySelector(`.${zt.search.buttonClear}`):null,oe=Xt?Xt.querySelector(`.${zt.search.buttonSubmit}`):null,re=te?te.querySelector(`.${zt.search.buttonSubmit}`):null,le=Xt?Xt.querySelector(`.${zt.search.autoComplete}`):null,ae=te?te.querySelector(`.${zt.search.autoComplete}`):null;
38var ce={$topBar:It,$logo:Pt,$menuButtonMobile:Mt,$btnShoppingCart:jt,$navContainer:Vt,$navContainerWrapper:Bt,$overlay:Ht,$navPrimaryContainer:Dt,$navPrimaryLinks:Ft,$navPrimaryListItems:Rt,$navPrimaryMainItems:Ut,$navPrimarySubmenuButtons:Wt,$navPrimarySubNavGroups:Kt,$navPrimarySubNavs:Gt,$navDomain:Jt,$navDomainLinks:Zt,$searchButtonToggleSearchMobile:Qt,$searchFormDialogMobile:Yt,$searchFormMobile:Xt,$searchFormDesktop:te,$searchInputMobile:ee,$searchInputDesktop:ie,$searchBtnClearMobile:ne,$searchBtnClearDesktop:se,$searchSubmitMobile:oe,$searchSubmitDesktop:re,$searchAutoCompleteMobile:le,$searchAutoCompleteDesktop:ae};function ue(t){return"close"===t?"remove":"open"===t?"add":t}const{$menuButtonMobile:de,$navContainerWrapper:he,$navContainer:pe,$navDomain:ve,$topBar:me,$logo:ge,$btnShoppingCart:fe}=ce,be=()=>!!de.classList.contains(`${zt.layout.menuButtonMobile}--${zt.modifiers.active}`);function ye(t,e){de.classList[ue(t)](`${zt.layout.menuButtonMobile}--${zt.modifiers.active}`),"popover"in HTMLButtonElement.prototype&&he.hasAttribute("popover")?"close"!==t||e||null==he||null==he.hidePopover||he.hidePopover():(de.setAttribute("aria-expanded",`${!("true"===de.getAttribute("aria-expanded"))}`),he.classList[ue(t)](`${zt.layout.navContainerWrapper}--${zt.modifiers.active}`))}var _e={initMenuButton:()=>{"popover"in HTMLButtonElement.prototype?(he&&de&&!he.hasAttribute("popover")&&(he.setAttribute("popover",""),he.setAttribute("id","navigationdialog"),de.removeAttribute("aria-expanded"),de.setAttribute("popovertarget","navigationdialog")),null!=me&&me.querySelector(`.${zt.layout.logo} ~ .${zt.layout.btnShoppingCart}`)&&fe&&ge&&ge.insertAdjacentElement("beforebegin",fe),null==he||he.addEventListener("beforetoggle",t=>{pe||ve?"closed"===t.newState?ye("close",!0):ye("open"):t.preventDefault()})):null==de||de.addEventListener("click",()=>{be()?ye("close",!0):ye("open")});const t=t=>{t.relatedTarget&&!(he.contains(t.relatedTarget)||de.contains(t.relatedTarget)||!he.hasAttribute("popover")&&me.contains(t.relatedTarget))&&ye("close")};null==he||he.addEventListener("focusout",t),null==de||de.addEventListener("focusout",t),null==me||me.addEventListener("focusout",t)},isOpen:be,toggleNavigation:ye};const{$navPrimarySubNavs:we,$navPrimaryListItems:xe,$navPrimaryContainer:ke,$menuButtonMobile:Se,$navContainer:$e}=ce;let Ae="";const Le=t=>{Ae=t,xe.forEach(t=>{const e=t.querySelector("button[data-submenu-id]");if((null==e?void 0:e.getAttribute("data-submenu-id"))===Ae){if(e.setAttribute("aria-expanded","true"===e.getAttribute("aria-expanded")?"false":"true"),"true"===e.getAttribute("aria-expanded")){const e=t.querySelector(`.${zt.navPrimary.subNav}`),i=$e.clientWidth,n=e.clientWidth-(i-t.offsetLeft);window.innerWidth>=1024&&(n<t.offsetLeft?e.style.marginLeft=`-${n}px`:e.style.marginLeft=`-${t.offsetLeft}px`);const s=parseInt(getComputedStyle(ke).getPropertyValue("--shared-header-medium-breakpoint"));if(window.innerWidth>=s&&window.innerWidth<1024)if(e.dataset.columns<=2)e.style.marginLeft=`-${n}px`;else{const i=t.offsetLeft-16;e.style.marginLeft=`-${i}px`}window.innerWidth<s&&(e.style.marginLeft="")}}else null==e||e.setAttribute("aria-expanded","false")})};var Ce={isMobileMenuOpen:()=>{var t;return!(null==Se||null==(t=Se.classList)||!t.contains(`${zt.layout.menuButtonMobile}--${zt.modifiers.active}`))},updateActiveSubmenuId:Le,setActiveSubmenuId:t=>{Ae=t},getActiveSubmenuId:()=>Ae,closeAllSubmenus:function(){Le("")},isAnySubmenuOpen:()=>!!Ae};const{closeAllSubmenus:Ee,isAnySubmenuOpen:Te}=Ce,qe=ce.$searchAutoCompleteDesktop,Oe=ce.$searchAutoCompleteMobile,Ne=ce.$searchBtnClearDesktop,ze=ce.$searchBtnClearMobile,Pe=ce.$searchButtonToggleSearchMobile,Me=ce.$searchFormDesktop,Ve=ce.$searchFormMobile,Be=ce.$searchFormDialogMobile,He=ce.$searchInputDesktop,Ie=ce.$searchInputMobile,je=ce.$searchSubmitDesktop,De=ce.$searchSubmitMobile;let Fe=[],Ue=-1,Re=!1;const We=Array.from(document.documentElement.classList).reduce((t,e)=>["cz","just","zorgkantoor","pzp","czdirect","pzpdirect"].includes(e)?e:t,null);const Ke=()=>!(null==Be||!Be.open),Ge=qt(async()=>{Pe.dispatchEvent(new Event("click"))},0),Je=t=>Ge.push(t),Ze=()=>{null==Ie||Ie.addEventListener("keyup",()=>{Qe(Ie),He&&(He.value=Ie.value)}),null==He||He.addEventListener("keyup",()=>{Qe(He),Ie&&(Ie.value=He.value)})},Qe=t=>{var e;const i=`${null==(e=(null==Ve?void 0:Ve.action)||(null==Me?void 0:Me.action))?void 0:e.split("?")[0]}?query=${t.value.trim().replace(/ {2,}/g," ").replace(/\s/g,"+").replace(/[^+a-zA-Z0-9]/g,"")}`;Me&&(Me.action=i),Ve&&(Ve.action=i)},Ye=()=>{var t,e;(null==Ie||null==(t=Ie.value)?void 0:t.length)>0&&De?De.disabled=!1:De&&(De.disabled=!0),(null==He||null==(e=He.value)?void 0:e.length)>0&&je?je.disabled=!1:je&&(je.disabled=!0)},Xe=()=>{Oe&&(Oe.innerHTML=""),qe&&(qe.innerHTML=""),null==He||He.setAttribute("aria-expanded","fal
38se"),null==Ie||Ie.setAttribute("aria-expanded","false"),Ue=-1,Fe=[]},ti=()=>{function t(t,e){t&&e&&(""===t.value?(e.classList.add(`${zt.search.buttonClear}--${zt.modifiers.hidden}`),e.tabIndex=-1):(e.classList.remove(`${zt.search.buttonClear}--${zt.modifiers.hidden}`),e.tabIndex=0))}function e(e,i,n){e.preventDefault(),i&&n&&(i.value="",i.focus(),Xe(),t(i,n),Ye())}null==Ne||Ne.addEventListener("click",t=>{e(t,He,Ne),e(t,Ie,ze)}),null==He||He.addEventListener("keyup",()=>{t(He,Ne),t(Ie,ze)}),null==ze||ze.addEventListener("click",t=>{e(t,Ie,ze),e(t,He,Ne)}),null==Ie||Ie.addEventListener("keyup",()=>{t(Ie,ze),t(He,Ne)})},ei=()=>{null==Ve||Ve.addEventListener("focusin",()=>{var t;Oe.classList.remove(`${zt.search.autoComplete}--${zt.modifiers.hidden}`),Ie.parentElement.classList.add("is-in-focus"),Ve.classList.add("a11y-focus"),null!=(t=Fe)&&t.length&&Ie.setAttribute("aria-expanded","true"),Te()&&Ee()},!0),null==Ve||Ve.addEventListener("blur",()=>{Oe.classList.add(`${zt.search.autoComplete}--${zt.modifiers.hidden}`),Ie.parentElement.classList.remove("is-in-focus"),Ve.classList.remove("a11y-focus"),Ie.setAttribute("aria-expanded","false"),setTimeout(()=>!Ve.contains(document.activeElement)&&Ke()&&Je(),20)},!0),Ve.addEventListener("keydown",t=>{var e;"Escape"===t.key&&0===(null==(e=Ie.value)?void 0:e.length)&&Ke()&&Je()},!0),null==Me||Me.addEventListener("focusin",()=>{var t;He.clientWidth<300&&(He.parentElement.style.width="300px"),He.parentElement.classList.add("is-in-focus"),Me.classList.add("a11y-focus"),""!==(null==He?void 0:He.value)&&(Ne.classList.remove("hidden"),je.disabled=!1),qe.classList.remove(`${zt.search.autoComplete}--${zt.modifiers.hidden}`),null!=(t=Fe)&&t.length&&He.setAttribute("aria-expanded","true"),Te()&&Ee()},!0),null==Me||Me.addEventListener("blur",()=>{He.parentElement.style.width="",He.parentElement.classList.remove("is-in-focus"),Me.classList.remove("a11y-focus"),qe.classList.add(`${zt.search.autoComplete}--${zt.modifiers.hidden}`),He.setAttribute("aria-expanded","false"),setTimeout(()=>ri(),150)},!0)},ii=()=>{null==Ie||Ie.addEventListener("keyup",()=>Ye()),null==He||He.addEventListener("keyup",()=>Ye())},ni=()=>{null==Ve||Ve.addEventListener("submit",t=>{t.preventDefault(),window.location.href=Ve.action}),null==Me||Me.addEventListener("submit",t=>{t.preventDefault(),window.location.href=Me.action})},si=()=>{function t(t){t.forEach(t=>{const e=Ie.value.toLowerCase();t.innerHTML=t.innerHTML.replace(/<\/?[^>]+(>|$)/g,"").replace(new RegExp(e,"ig"),"<mark>$&</mark>")})}const e=null==Oe?void 0:Oe.querySelectorAll("a"),i=null==qe?void 0:qe.querySelectorAll("a");null!=e&&e.length&&t(e),null!=i&&i.length&&t(i)},oi=async t=>{var e,i;return fetch(`${(null==Ie||null==(e=Ie.dataset)?void 0:e.api)||(null==He||null==(i=He.dataset)?void 0:i.api)}?site=${We}&query=${t}`).then(t=>t.json()).catch(()=>[])},ri=()=>{(null==He?void 0:He.clientWidth)<72&&je&&(je.disabled=!0)},li=t=>{function e(t){var e;return(null==(e=t.value)?void 0:e.length)>=1}t.addEventListener("keyup",Ot(async i=>{if(e(t)&&function(t){return-1===["ArrowDown","ArrowUp"].indexOf(t.code)}(i))try{await(async()=>{var t;const e=(null==Ie?void 0:Ie.value)||(null==He?void 0:He.value);if(!e)return;const i=await oi(e);if(Xe(),Fe=i,null!=(t=Fe)&&t.length){var n,s,o;const t=document.createElement("label");t.id=zt.search.listLabel,t.innerHTML=null!=(n=(null==Me||null==(s=Me.dataset)?void 0:s.suggestionsLabel)||(null==Ve||null==(o=Ve.dataset)?void 0:o.suggestionsLabel))?n:"Suggesties";const e=document.createElement("ol");var r;if(e.id=zt.search.list,e.setAttribute("role","listbox"),Fe.forEach((t,i)=>{var n;const s=document.createElement("a");s.setAttribute("href",`${null==(n=Ve||Me)||null==(n=n.getAttribute("action"))?void 0:n.split("?")[0]}?query=${t.replace(" ","+")}`),s.innerHTML=t;const o=document.createElement("li");o.id=`option-${i}`,o.setAttribute("role","option"),o.append(s),e.append(o)}),Oe&&(Oe.append(t),e.id=null!=(r=Ie.getAttribute("aria-controls"))?r:zt.search.list,Oe.append(e),Ie.setAttribute("aria-expanded","true")),qe){var l;qe.append(t.cloneNode(!0));const i=e.cloneNode(!0);i.id=null!=(l=He.getAttribute("aria-controls"))?l:zt.search.list,qe.append(i),He.setAttribute("aria-expanded","true")}si()}})(),si()}catch(t){}else e(t)||Xe()},500))},ai=(t,e)=>{if(!t||!e)return;let i=null;t.addEventListener("keyup",n=>{var s;const o=Array.prototype.slice.call(e.querySelectorAll("a"),0);null==(s=i)||s.classList.remove("highlight");const r=((t,e)=>{let i=Ue,n=-1;switch(t){case"ArrowDown":n=++i>e.length-1?0:i;break;case"ArrowUp":n=--i<0?e.length-1:i;break;default:n=-1}return n})(n.code,o);-1!==r?r in o&&(Ue=r,i=o[r],i.classList.add("highlight"),i.scrollIntoView({block:"nearest"}),t.setAttribute("aria-activedescendant",`option-${r}`),t.value=i.innerText,Qe(t)):i=null})},ci=()=>{Ie&&(li(Ie),ai(Ie,Oe)),He&&(li(He),ai(He,qe))},{$navContainer:ui,$navPrimaryContainer:di,$navPrimaryMainItems:hi,$navPrimarySubNavs:pi,$navPrimarySubNavGroups:vi,$navPrimaryListItems:mi}=ce,{getActiveSubmenuId:gi,updateActiveSubmenuId:fi,setActiveSubmenuId:bi,closeAllSubmenus:yi,isAnySubmenuOpen:_i}=Ce,wi=()=>
38{Array.prototype.slice.call(pi,0).forEach(t=>{const e=parseInt(t.dataset.columns);let i=32,n=32;window.innerWidth<1440&&(i=24),window.innerWidth<1024&&(i=16,n=24),getComputedStyle(ui);const s=ui.clientWidth;if(window.innerWidth>=1024){const o=(s-3*i)/4*e+(e-1)*i+2*n;t.style.width=`${o}px`}const o=parseInt(getComputedStyle(di).getPropertyValue("--shared-header-medium-breakpoint"));window.innerWidth>=(o||768)&&window.innerWidth<1024&&(t.style.width=`${s}px`,2===e&&(t.style.width="572px"),1===e&&(t.style.width="302px")),window.innerWidth<(o||768)&&(t.style.width="")})};const xi=()=>{function t(t){t.classList.add("shared-header__nav__link--is-active")}Array.prototype.slice.call(hi,0).forEach(e=>{let i=document.createElement("a");if("A"===e.nodeName&&(i.href=e.href),"BUTTON"===e.nodeName&&(i.href=e.dataset.href),i){const n=window.location,s=e.dataset.isHomeItem,o=-1!==n.pathname.toLowerCase().indexOf(i.pathname.toLowerCase());if(n.hostname.toLowerCase()!==i.hostname.toLowerCase())return;s?i.pathname.toLowerCase()===n.pathname.toLowerCase()&&t(e):o&&(t(e),function(t,e){const i=parseInt(getComputedStyle(di).getPropertyValue("--shared-header-medium-breakpoint"));if(window.innerWidth<(i||768)){const{submenuId:i}=t.dataset;if(!i)return;fi(i);Array.prototype.slice.call(pi,0).forEach(t=>{if(t.dataset.submenuId===i){const i=t.querySelectorAll("a");Array.prototype.slice.call(i,0).forEach(t=>{e.toLowerCase()===t.pathname.toLowerCase()&&t.scrollIntoView(!1)})}})}}(e,n.pathname))}})};var ki={calcSubNavsWidth:wi,closeAllSubmenus:yi,initSubmenus:function(){xi(),Array.prototype.slice.call(hi,0).forEach(t=>{t.addEventListener("click",e=>{const{submenuId:i}=t.dataset;i&&fi(i)})}),pi.forEach(t=>{const e=t.querySelectorAll(`.${zt.navPrimary.subNavGroup}`).length;t.dataset.columns=e.toString()}),wi(),mi.forEach(t=>{t.addEventListener("focusout",async e=>{await(async(t,e)=>{t&&e&&t.relatedTarget&&!e.contains(t.relatedTarget)&&"BUTTON"===e.firstElementChild.tagName&&"true"===e.firstElementChild.getAttribute("aria-expanded")&&setTimeout(()=>{e.firstElementChild.setAttribute("aria-expanded","false"),bi("")},200)})(e,t)})})},isAnySubmenuOpen:_i};const{initMenuButton:Si,toggleNavigation:$i}=_e,{$overlay:Ai}=ce,{isMobileMenuOpen:Li,isAnySubmenuOpen:Ci,closeAllSubmenus:Ei}=Ce,{initSubmenus:Ti,calcSubNavsWidth:qi}=ki;function Oi(t,e="Coworker"){let i=0,n={};const s=new Worker(URL.createObjectURL(function(t){return new Blob(["("+(t=>{onmessage=({data:e})=>Promise.resolve().then(()=>t.apply(t,e[1])).then(t=>{postMessage([e[0],null,t])},t=>{postMessage([e[0],""+t])})})+")("+t+")"],{type:"application/javascript"})}(t)),{name:e});return s.onmessage=({data:[t,e,i]})=>{n[t][e?1:0](e||i),delete n[t]},{sendMessage:function(...t){return new Promise((e,o)=>{let r="message"+ ++i;n[r]=[e,o],s.postMessage([r,t])})},terminate:function(){s&&s.terminate&&s.terminate()}}}const Ni={hasSender:!1};
39/**
40 * @license
41 * Copyright 2019 Google LLC
42 * SPDX-License-Identifier: BSD-3-Clause
43 */
44const zi=globalThis,Pi=zi.ShadowRoot&&(void 0===zi.ShadyCSS||zi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mi=Symbol(),Vi=new WeakMap;let Bi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Mi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Pi&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Vi.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Vi.set(e,t))}return t}toString(){return this.cssText}};const Hi=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1],t[0]);return new Bi(i,t,Mi)},Ii=Pi?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Bi("string"==typeof t?t:t+"",void 0,Mi))(e)})(t):t,{is:ji,defineProperty:Di,getOwnPropertyDescriptor:Fi,getOwnPropertyNames:Ui,getOwnPropertySymbols:Ri,getPrototypeOf:Wi}=Object,Ki=globalThis,Gi=Ki.trustedTypes,Ji=Gi?Gi.emptyScript:"",Zi=Ki.reactiveElementPolyfillSupport,Qi=(t,e)=>t,Yi={toAttribute(t,e){switch(e){case Boolean:t=t?Ji:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Xi=(t,e)=>!ji(t,e),tn={attribute:!0,type:String,converter:Yi,reflect:!1,useDefault:!1,hasChanged:Xi};
45/**
46 * @license
47 * Copyright 2017 Google LLC
48 * SPDX-License-Identifier: BSD-3-Clause
49 */null!=(n=Symbol.metadata)||(Symbol.metadata=Symbol("metadata")),null!=(s=Ki.litPropertyMetadata)||(Ki.litPropertyMetadata=new WeakMap);let en=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tn){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Di(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:o}=null!=(n=Fi(this.prototype,t))?n:{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const n=null==s?void 0:s.call(this);null!=o&&o.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:tn}static _$Ei(){if(this.hasOwnProperty(Qi("elementProperties")))return;const t=Wi(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Qi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qi("properties"))){const t=this.properties,e=[...Ui(t),...Ri(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];
49if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(Ii(t))}else void 0!==t&&e.push(Ii(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach(t=>t(this))}addController(t){var e;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==t.hostConnected||t.hostConnected())}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Pi)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const i of e){const e=document.createElement("style"),n=zi.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}})(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach(t=>null==t.hostConnected?void 0:t.hostConnected())}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach(t=>null==t.hostDisconnected?void 0:t.hostDisconnected())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(void 0!==n&&!0===i.reflect){var s;const o=(void 0!==(null==(s=i.converter)?void 0:s.toAttribute)?i.converter:Yi).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,n=i._$Eh.get(t);if(void 0!==n&&this._$Em!==n){var s,o,r;const t=i.getPropertyOptions(n),l="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(s=t.converter)?void 0:s.fromAttribute)?t.converter:Yi;this._$Em=n;const a=l.fromAttribute(e,t.type);this[n]=null!=(o=null!=a?a:null==(r=this._$Ej)?void 0:r.get(n))?o:a,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){var n,s;const o=this.constructor,r=this[t];if(null!=i||(i=o.getPropertyOptions(t)),!((null!=(n=i.hasChanged)?n:Xi)(r,e)||i.useDefault&&i.reflect&&r===(null==(s=this._$Ej)?void 0:s.get(t))&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:n,wrapped:s},o){var r,l,a;i&&!(null!=(r=this._$Ej)?r:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(l=null!=o?o:e)?l:this[t]),!0!==s||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(null!=(a=this._$Eq)?a:this._$Eq=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,i,n)}}let t=!1;const e=this._$AL;try{var i;t=this.shouldUpdate(e),t?(this.willUpdate(e),null!=(i=this._$EO)&&i.forEach(t=>null==t.hostUpdate?void 0:t.hostUpdate()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;null!=(e=this._$EO)&&e.forEach(t=>null==t.hostUpdated?void 0:t.hostUpdated()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};en.elementStyles=[],en.shadowRootOptions={mode:"open"},en[Qi("elementProperties")]=new Map,en[Qi("finalized")]=new Map,null!=Zi&&Zi({ReactiveElement:en}),(null!=(o=Ki.reactiveElementVersions)?o:Ki.reactiveElementVersions=[]).push("2.1.1");
50/**
51 * @license
52 * Copyright 2017 Google LLC
53 * SPDX-License-Identifier: BSD-3-Clause
54 */
55const nn=globalThis,sn=nn.trustedTypes,on=sn?sn.createPolicy("lit-html",{createHTML:t=>t}):void 0,rn="$lit$",ln=`lit$${Math.random().toFixed(9).slice(2)}$`,an="?"+ln,cn=`<${an}>`,un=document,dn=()=>un.createComment(""),hn=t=>null===t||"object"!=typeof t&&"function"!=typeof t,pn=Array.isArray,vn="[ \t\n\f\r]",mn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gn=/-->/g,fn=/>/g,bn=RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}
vendor: 5,028 bytes, line 55
55*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),yn=/'/g,_n=/"/g,wn=/^(?:script|style|textarea|title)$/i,xn=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),kn=Symbol.for("lit-noChange"),Sn=Symbol.for("lit-nothing"),$n=new WeakMap,An=un.createTreeWalker(un,129);function Ln(t,e){if(!pn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==on?on.createHTML(e):e}const Cn=(t,e)=>{const i=t.length-1,n=[];let s,o=2===e?"<svg>":3===e?"<math>":"",r=mn;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,u=0;for(;u<i.length&&(r.lastIndex=u,a=r.exec(i),null!==a);)u=r.lastIndex,r===mn?"!--"===a[1]?r=gn:void 0!==a[1]?r=fn:void 0!==a[2]?(wn.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=bn):void 0!==a[3]&&(r=bn):r===bn?">"===a[0]?(r=null!=s?s:mn,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?bn:'"'===a[3]?_n:yn):r===_n||r===yn?r=bn:r===gn||r===fn?r=mn:(r=bn,s=void 0);const d=r===bn&&t[e+1].startsWith("/>")?" ":"";o+=r===mn?i+cn:c>=0?(n.push(l),i.slice(0,c)+rn+i.slice(c)+ln+d):i+ln+(-2===c?e:d)}return[Ln(t,o+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]};class En{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let s=0,o=0;const r=t.length-1,l=this.parts,[a,c]=Cn(t,e);if(this.el=En.createElement(a,i),An.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=An.nextNode())&&l.length<r;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(rn)){const e=c[o++],i=n.getAttribute(t).split(ln),r=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:r[2],strings:i,ctor:"."===r[1]?zn:"?"===r[1]?Pn:"@"===r[1]?Mn:Nn}),n.removeAttribute(t)}else t.startsWith(ln)&&(l.push({type:6,index:s}),n.removeAttribute(t));if(wn.test(n.tagName)){const t=n.textContent.split(ln),e=t.length-1;if(e>0){n.textContent=sn?sn.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],dn()),An.nextNode(),l.push({type:2,index:++s});n.append(t[e],dn())}}}else if(8===n.nodeType)if(n.data===an)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=n.data.indexOf(ln,t+1));)l.push({type:7,index:s}),t+=ln.length-1}s++}}static createElement(t,e){const i=un.createElement("template");return i.innerHTML=t,i}}function Tn(t,e,i=t,n){var s,o,r,l;if(e===kn)return e;let a=void 0!==n?null==(s=i._$Co)?void 0:s[n]:i._$Cl;const c=hn(e)?void 0:e._$litDirective$;return(null==(o=a)?void 0:o.constructor)!==c&&(null!=(r=a)&&null!=r._$AO&&r._$AO(!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,n)),void 0!==n?(null!=(l=i._$Co)?l:i._$Co=[])[n]=a:i._$Cl=a),void 0!==a&&(e=Tn(t,a._$AS(t,e.values),a,n)),e}class qn{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,s=(null!=(e=null==t?void 0:t.creationScope)?e:un).importNode(i,!0);An.currentNode=s;let o=An.nextNode(),r=0,l=0,a=n[0];for(;void 0!==a;){var c;if(r===a.index){let e;2===a.type?e=new On(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new Vn(o,this,t)),this._$AV.push(e),a=n[++l]}r!==(null==(c=a)?void 0:c.index)&&(o=An.nextNode(),r++)}return An.currentNode=un,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class On{get _$AU(){var t,e;return null!=(t=null==(e=this._$AM)?void 0:e._$AU)?t:this._$Cv}constructor(t,e,i,n){var s;this.type=2,this._$AH=Sn,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=null==(s=null==n?void 0:n.isConnected)||s}get parentNode(){var t;let e=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==(t=e)?void 0:t.nodeType)&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Tn(this,t,e),hn(t)?t===Sn||null==t||""===t?(this._$AH!==Sn&&this._$AR(),this._$AH=Sn):t!==this._$AH&&t!==kn&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>pn(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Sn&&hn(this._$AH)?this._$AA.nextSibling.data=t:this.T(un.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:n}=t,s="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=En.createElement(Ln(n.h,n.h[0]),this.options)),n);if((null==(e=this._$AH)?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new qn(s,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=$n.get(t.strings);return void 0===e&&$n.set(t.strings,e=new En(t)),e}k(t){pn(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const s of t)n===e.length?e.push(i=new On(this.O(dn()),this.O(dn()),this,this.options)):i=e[n],i._$AI(s),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(null==(i=this._$AP)||i.call(this,!1,
55!0,e);t!==this._$AB;){var i;const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class Nn{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,s){this.type=1,this._$AH=Sn,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Sn}_$AI(t,e=this,i,n){const s=this.strings;let o=!1;if(void 0===s)t=Tn(this,t,e,0),o=!hn(t)||t!==this._$AH&&t!==kn,o&&(this._$AH=t);else{const n=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Tn(this,n[i+r],e,r),l===kn&&(l=this._$AH[r]),o||(o=!hn(l)||l!==this._$AH[r]),l===Sn?t=Sn:t!==Sn&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}o&&!n&&this.j(t)}j(t){t===Sn?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class zn extends Nn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Sn?void 0:t}}class Pn extends Nn{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Sn)}}class Mn extends Nn{constructor(t,e,i,n,s){super(t,e,i,n,s),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=Tn(this,t,e,0))?i:Sn)===kn)return;const n=this._$AH,s=t===Sn&&n!==Sn||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Sn&&(n===Sn||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(e=null==(i=this.options)?void 0:i.host)?e:this.element,t):this._$AH.handleEvent(t)}}class Vn{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Tn(this,t)}}const Bn=nn.litHtmlPolyfillSupport;null!=Bn&&Bn(En,On),(null!=(r=nn.litHtmlVersions)?r:nn.litHtmlVersions=[]).push("3.3.1");const Hn=globalThis;
56/**
57 * @license
58 * Copyright 2017 Google LLC
59 * SPDX-License-Identifier: BSD-3-Clause
60 */let In=class extends en{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n;const s=null!=(n=null==i?void 0:i.renderBefore)?n:e;let o=s._$litPart$;if(void 0===o){var r;const t=null!=(r=null==i?void 0:i.renderBefore)?r:null;s._$litPart$=o=new On(e.insertBefore(dn(),t),t,void 0,null!=i?i:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return kn}};In._$litElement$=!0,In.finalized=!0,null==Hn.litElementHydrateSupport||Hn.litElementHydrateSupport({LitElement:In});const jn=Hn.litElementPolyfillSupport;null==jn||jn({LitElement:In}),(null!=(l=Hn.litElementVersions)?l:Hn.litElementVersions=[]).push("4.2.1");class Dn extends In{constructor(){super(),this.text="loading..."}render(){return xn(a||(a=O`<svg aria-valuetext="${0}" role="progressbar" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
61			<circle cx="50" cy="50" fill="none" r="40" stroke-opacity="0.5" stroke-width="10"></circle>
62			<circle cx="50" cy="50" fill="none" r="40" stroke-linecap="round" stroke-opacity="0.8" stroke-width="10">
63				<animateTransform attributeName="transform" dur="1.7" keyTimes="0;0.5;1" repeatCount="indefinite" type="rotate" values="0 50 50;180 50 50;720 50 50"></animateTransform>
64				<animate attributeName="stroke-dasharray" dur="1.7" keyTimes="0;0.5;1" repeatCount="indefinite" values="40 170;140 70;40 170"></animate>
65			</circle>
66		</svg>`),this.text)}}Dn.styles=Hi(f||(f=O`
67		@layer component {
68			:host {
69				--_cz-loader-color: var(--cz-loader-color, currentcolor);
70				--_cz-loader-width: var(--cz-loader-width, 50px);
71				--_cz-loader-height: var(--cz-loader-height, 50px);
72
73				display: block;
74
75				max-width: var(--_cz-loader-width);
76				max-height: var(--_cz-loader-height);
77				stroke: var(--_cz-loader-color);
78			}
79		}
80	`)),Dn.properties={text:{type:String}},customElements.get("cz-loader")||customElements.define("cz-loader",Dn);class Fn extends In{constructor(){super(),this.type="fill",this.name="chevron"}render(){return xn(c||(c=O`<slot></slot>`))}}Fn.styles=Hi(b||(b=O`
81		@layer component {
82			:host {
83				--_cz-icon-color: var(--cz-icon-color, currentcolor);
84				--_cz-icon-width: var(--cz-icon-width, 50px);
85				--_cz-icon-height: var(--cz-icon-height, 50px);
86				display: block;
87				width: var(--_cz-icon-width);
88				height: var(--_cz-icon-height);
89				max-width: var(--_cz-icon-width);
90				max-height: var(--_cz-icon-height);
91			}
92			
93			:host(cz-icon[type=stroke]) ::slotted(svg) {
94				stroke: var(--_cz-icon-color);
95				fill: transparent;
96			}
97			
98			::slotted(svg) {
99				fill: var(--_cz-icon-color);
100				width: 100%;
101				height: 100%;
102			}
103		}
104	`)),Fn.properties={type:{type:String},name:{type:String}},customElements.get("cz-icon")||customElements.define("cz-icon",Fn);var Un=M("url");class Rn extends In{render(){return xn(u||(u=O`<slot><cz-icon><cz-loader></cz-loader></cz-icon></slot>`))}updated(t){t&&(this.innerHTML="",this.loadContent().then(t=>console.log(t)).catch(t=>console.log(t)))}async loadContent(){return new Promise((t,e)=>{setTimeout(()=>{z(this,Un)[Un]&&this.callBackend(z(this,Un)[Un]).then(e=>(this.innerHTML=e,t("succes!"))).catch(()=>
104e(new Error("Error loading content!")))},10)})}constructor(){super(),Object.defineProperty(this,Un,{writable:!0,value:!1}),this.callBackend=async function(t){let e;return e="<p>This is what would get loaded if you don't override the async callBackend method</p>","<p>This is what would get loaded if you don't override the async callBackend method</p>"},z(this,Un)[Un]=this.getAttribute("url")}}
105/**
106 * @license
107 * Copyright 2017 Google LLC
108 * SPDX-License-Identifier: BSD-3-Clause
109 */Rn.styles=Hi(y||(y=O`
110		@layer component {
111			:host {
112				display: grid;
113			}
114			:host(:empty){
115				aspect-ratio: 1/.5;
116			}
117		    ::slotted(cz-icon) {
118				margin: auto;
119			}
120		}
121	`));const Wn=2;class Kn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
122/**
123 * @license
124 * Copyright 2017 Google LLC
125 * SPDX-License-Identifier: BSD-3-Clause
126 */class Gn extends Kn{constructor(t){if(super(t),this.it=Sn,t.type!==Wn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Sn||null==t)return this._t=void 0,this.it=t;if(t===kn)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Gn.directiveName="unsafeHTML",Gn.resultType=1;const Jn=(t=>(...e)=>({_$litDirective$:t,values:e}))(Gn);function Zn(t){if(!t)return;const e=function(t=document){return{get length(){return this.keyboardOnly.length},get all(){return[...t.querySelectorAll("a[href],\n\t\t\t\t\tarea[href],\n\t\t\t\t\tbutton,\n\t\t\t\t\tinput,\n\t\t\t\t\ttextarea,\n\t\t\t\t\tselect,\n\t\t\t\t\tdetails,\n\t\t\t\t\tiframe,\n\t\t\t\t\tembed,\n\t\t\t\t\tobject,\n\t\t\t\t\tsummary,\n\t\t\t\t\tdialog,\n\t\t\t\t\taudio[controls],\n\t\t\t\t\tvideo[controls],\n\t\t\t\t\t[contenteditable],\n\t\t\t\t\t[tabindex]")].filter(t=>!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&!t.hasAttribute("inert")&&"none"!==window.getComputedStyle(t).display)},get keyboardOnly(){return this.all.filter(t=>t.tabIndex>-1)},get firstFocusable(){return this.keyboardOnly[0]},get lastFocusable(){return this.keyboardOnly[this.length-1]}}}(t),i={keepFocus:t=>l(t),keyPress:t=>o(t)},n=()=>{const i=(null==t||null==t.getExcludedSlots?void 0:t.getExcludedSlots())||[],n=(null==t||null==t.getFocusableBefore?void 0:t.getFocusableBefore())||[],s=(null==t||null==t.getFocusableAfter?void 0:t.getFocusableAfter())||[];return[...n,...e.keyboardOnly,...s].filter(t=>!(null!=i&&i.includes(t.getAttribute("slot"))||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)))},s=()=>{const e=n(),i=t.querySelector("[autofocus]")||e[0];i&&i.focus()},o=t=>{"Escape"===t.key&&(t.target.matches('input[type="search"]')&&t.target.value||!t.target.matches('[role="switch"]')&&t.target.value||!t.target.matches('[role="combobox"]')&&t.target.value)&&t.preventDefault(),"Tab"===t.key&&r(t)},r=e=>{const i=n();let s=document.activeElement;s===t&&(s=i[0]);const o=i.indexOf(s);1===i.length?(i[0].focus(),e.preventDefault()):e.shiftKey&&0===o?(i[i.length-1].focus(),e.preventDefault()):e.shiftKey||o!==i.length-1||(i[0].focus(),e.preventDefault())},l=e=>{t.contains(e.target)||s()};return{setFocusToFirstItem:s,evHandlers:i}}class Qn extends In{get dialog(){var t,e;return null!=(t=this._dialog)?t:this._dialog=null==(e=this.renderRoot)?void 0:e.querySelector("dialog")}clickInsideDialog(t){var e;let i=!1;const n=null==(e=this.dialog)||null==(e=e.querySelector("slot:not([name])"))?void 0:e.assignedNodes({flatten:!0});var s;(i=!t.checkVisibility()||n.includes(t)||n.some(e=>e.contains(t)),i)||(i=t.closest(".inner")===(null==(s=this.dialog)?void 0:s.firstElementChild));return i}constructor(){super(),this.evHandler={backbuttonPress:t=>this.onBackbuttonPress(t)},this.closeText="terug",this.open=!1,this.focusTrap=Zn(this)}getExcludedSlots(){return["trigger"]}getFocusableBefore(){var t;const e=[],i=null==(t=this.dialog)?void 0:t.querySelector(".closeButton");return i&&e.push(i),e}createRenderRoot(){const t=super.createRenderRoot();return t.addEventListener("click",t=>{var e,i;this.open||null!=(e=this.dialog)&&e.open?this.open&&null!=(i=this.dialog)&&i.open&&!this.clickInsideDialog(t.target)&&this.closeSidepanel():this.openSidepanel()}),t}updated(t){var e;null==super.updated||super.updated(t),!this.open||null!=(e=this.dialog)&&e.open||this.openSidepanel()}onBackbuttonPress(t){if(t&&"backPressed"==t.state&&this.open){this.hasAttribute("stayOpenOnBack")&&"true"===this.getAttribute("stayOpenOnBack").toLowerCase()||this.closeSidepanel()}}openSidepanel(){this.open=!0,setTimeout(()=>{var t;null==(t=this.dialog)||t.showModal(),this.focusTrap.setFocusToFirstItem(),document.body.addEventListener("focus",this.focusTrap.evHandlers.keepFocus,!0),document.addEventListener("keydown",this.focusTrap.evHandlers.keyPress),"showOverlay"===window.history.state?window.removeEventListener("popstate",this.evHandler.backbuttonPress):("backPressed"===window.history.state?window.removeEventListener("popstate",this.evHandler.backbuttonPress):(this._oldState=window.history.state,window.history.replaceState("backPressed",null,null)),window.history.pushState("showOverlay",null,null)),window.addEventListener("popstate",this.evHandler.backbuttonPress)},20)}closeSidepanel(){var t;null==(t=this.dialog)||t.classList.add("closing"),setTimeout(()=>{var t,e,i;null!=(t=this.dialog)&&t.open?null==(e=this.dialog)||e.close():(null==(i=this.dialog)||i.classList.remove("closing"),this.open=!1);document.body.removeEventListener("focus",this.focusTrap.evHandlers.keepFocus,!0),document.removeEventListener("keydown",this.focusTrap.evHandlers.keyPress),window.removeEventListener("popstate",this.evHandler.backbuttonPress),"backPressed"===window.history.state&&this._oldState&&"backPressed"!==this._oldState&&window.history.replaceState(this._oldState,null,null)},300)}handleCancel(t){t.preventDefault(),this.closeSidepanel()}render(){return xn(d||(d=O`
127		<slot name="trigger">
128		</slot>
129		<dialog class="drawer${0}" @close=${0} @cancel=${0}>
130			<div class=inner>
131				<slot name=close @click=${0}>
132					<button class=closeButton type=button>
133						${0}
134					</button>
135				</slot>
136				<div class=content>
137					<slot></slot>
138				</div>
139			</div>
140		</dialog>`),this.open?" open":"",()=>this.closeSidepanel(),t=>this.handleCancel(t),()=>this.closeSidepanel(),this.hasAttribute("left")?xn(h||(h=O`<span>${0}</span>${0}`),this.closeText,Jn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m10.642 17.736 5.099-5.099a.897.897 0 0 0-.004-1.274l-5.098-5.099a.896.896 0 0 0-1.271 0l-.844.855a.896.896 0 0 0 0 1.27l3.614 3.615-3.614 3.614a.896.896 0 0 0 0 1.27l.848.848a.896.896 0 0 0 1.27 0Z" fill-rule="evenodd"/></svg>')):xn(p||(p=O`${0}<span>${0}</span>`),Jn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m14.637 17.736.847-.851a.896.896 0 0 0 0-1.271L11.87 12l3.61-3.618a.896.896 0 0 0 0-1.27l-.847-.848a.896.896 0 0 0-1.27 0l-5.1 5.099a.897.897 0 0 0 .005 1.274l5.098 5.099a.896.896 0 0 0 1.27 0Z" fill-rule="evenodd"/></svg>'),this.closeText))}}function Yn(){return new Promise(function(t){setTimeout(()=>{return t((null==(e=window)||null==(e=e.getComputedStyle(null==(i=document)?void 0:i.documentElement))||null==(e=e.getPropertyValue("--media-query-width-range"))?void 0:e.trim())||"extra-extra-small");var e,i},0)})}Qn.styles=Hi(_||(_=O`
141		@layer component {
142			:host {
143				--_cz-sidepanel-backdrop-padding: var(--cz-sidepanel-backdrop-padding, var(--sidepanel-backdrop-padding, 1rem));
144				--_cz-sidepanel-backdrop-color: var(--cz-sidepanel-backdrop-color, var(--sidepanel-backdrop-color, black));
145				
146				--_cz-sidepanel-background-color: var(--cz-sidepanel-background-color, var(--sidepanel-background-color, canvas));
147				--_cz-sidepanel-text-color: var(--cz-sidepanel-text-color, var(--sidepanel-text-color, canvastext));
148				--_cz-sidepanel-width: min(max(var(--cz-sidepanel-width), 26rem), calc(100vi - var(--_cz-sidepanel-backdrop-padding, 1rem)));
149				--_cz-sidepanel-transition-duration: var(--cz-sidepanel-transition-duration, var(--sidepanel-transition-duration, 0.25s));
150				--_cz-sidepanel-transition-timing: var(--cz-sidepanel-transition-timing, var(--sidepanel-transition-timing, ease-in-out));
151				--_cz-sidepanel-content-padding-block: var(--cz-sidepanel-content-padding-block, var(--sidepanel-content-padding-block, 0px 2rem));
152				--_cz-sidepanel-content-padding-inline: var(--cz-sidepanel-content-padding-inline, var(--sidepanel-content-padding-inline, 1rem));
153
154				--cz-sidepanel-width: var(--sidepanel-width, 26rem);
155				--close-button-text-color-hover: var(--color-primary-bird, #333333);
156				--close-button-border-color: var(--color-secondary-lion,#989691);
157
158				--focus-ring-color: var(--a11y-focus-ring-color, var(--color-tertiary-otter, #0071b2));
159			}
160
161			.drawer,
162			.drawer[open].closing {
163				--_translate-inline: var(--translate-inline, var(--_cz-sidepanel-width));
164				--_sidepanel-onleft: var(--sidepanel-onleft, unset);
165				--_sidepanel-onright: var(--sidepanel-onright, 100vi);
166				/* Remove default dialog styling */
167				margin: 0;
168				padding: 0;
169				max-height: unset;
170				border: none;
171				
172				height: 100%;
173				width: var(--_cz-sidepanel-width);
174
175				position: fixed;
176				top: 0;
177				
178				left: var(--_sidepanel-onright);
179				translate: var(--_translate-inline) 0px;
180
181				color: inherit;
182				box-sizing: border-box;
183				overflow-y: auto;
184				overscroll-behavior: contain;
185				
186				background-color: var(--_cz-sidepanel-background-color, white);
187				max-width: var(--_cz-sidepanel-width, 100%);
188				
189				> .inner {
190					position: relative;
191					inset: 0;
192					display: flex;
193					flex-direction: column;
194					width: 100%;
195					max-width: 100%;
196					min-width: fit-content;
197					min-height: 100%;
198				}
199			}
200
201			.drawer::backdrop,
202			.drawer[open].closing::backdrop {
203				opacity: 0;
204				background-color: color-mix( in srgb, var(--_cz-sidepanel-backdrop-color, black) 40%, transparent);
205			}
206
207			/*  animate  */
208			@media screen and (prefers-reduced-motion: no-preference) {
209				.drawer {
210					transition-property: translate, display, overlay;
211					transition-duration: var(--_cz-sidepanel-transition-duration);
212					transition-timing-function: var(--_cz-sidepanel-transition-timing);
213					transition-behavior: allow-discrete
214				}
215				.drawer::backdrop {
216					transition-property: opacity, display, overlay;
217					transition-duration: var(--_cz-sidepanel-transition-duration);
218					transition-timing-function: var(--_cz-sidepanel-transition-timing);
219					transition-behavior: allow-discrete
220				}
221			}
222
223			.drawer.open {
224				display: block;
225			}
226
227			.drawer[open] {
228				--_translate-inline: calc(var(--_cz-sidepanel-width) * -1);
229				box-shadow: color-mix( in srgb, var(--_cz-sidepanel-backdrop-color, black) 20%, transparent) var(--sidepanel-box-shadow-direction, -6px 0px 0px 0px);
230
231				&::backdrop {
232					opacity: 1;
233				}	
234			}
235
236			@starting-style {
237				.drawer[open]::backdrop {
238					opacity: 0;		
239				}
240			}
241
242			.content {
243				container-type: inline-size;
244				padding-block: var(--_cz-sidepanel-content-padding-block, 0px 2rem);
245				padding-inline: var(--_cz-sidepanel-content-padding-inline, 1rem);
246			}
247
248			slot[name=close] {
249				display: inline-flex;
250				position: sticky;
251				top: 1rem;
252				left: 0;
253				margin-bottom: 1rem;
254				width: min-content;
255				z-index: 10;
256			}
257
258			.closeButton {
259				align-items: center;
260				appearance: none;
261				background-color: color-mix(in srgb, rgb(0 0 0) 0%, white);
262				border-radius: var(--close-button-border-radius, 0 6px 6px 0);
263				border: 1px solid;
264				border-color: var(--close-button-border-color);
265				align-self: baseline;
266				display: inline-flex;
267				cursor: pointer;
268				font-weight: bold;
269				justify-content: flex-start;
270				overflow: hidden;
271				transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
272				vertical-align: top;
273				column-gap: 6px;
274				font-size: 18px;
275				line-height: 22px;
276				box-shadow: none;
277				border-width: var(--close-button-border-width, 1px 1px 1px 0);
278				align-self: baseline;
279				padding: 13px 20px 13px 1rem;
280
281				&:hover {
282					color: var(--close-button-text-color-hover);
283					background-color: color-mix(in srgb, rgb(0 0 0) 4%, white);
284				}
285
286				&:focus-visible {
287					outline-color: var(--focus-ring-color);
288					@supports (background-color: color-mix(in srgb, white, black)){
289						outline-color: color-mix(in srgb, var(--focus-ring-color) 86%, transparent);
290					}
291
292					outline-style: solid;
293					outline-width: 3px;
294
295					outline-offset: 2px;
296					@media screen and (prefers-reduced-motion: no-preference) {
297						transition: outline-offset .125s linear;
298					}
299				}
300
301				&:focus,
302				&:active {
303					color: var(--close-button-text-color-hover); 
304					background-color: color-mix(in srgb, rgb(0 0 0) 12%, white);
305				}
306
307				& > span {
308					text-wrap: nowrap;
309				}
310
311				& > svg {
312					fill: currentcolor;
313					width: 20px;
314					height: 20px;
315				}
316			}
317		}
318
319		@layer variant {
320			:host([wide]) {
321				--cz-sidepanel-width: 100vi;
322			}	
323
324			:host([left]) {
325				--translate-inline: calc(var(--_cz-sidepanel-width) * -1);
326				--sidepanel-onleft: 100vi;
327				--sidepanel-onright: 0px;
328				--sidepanel-box-shadow-direction: 6px 0px 0px 0px;
329				--close-button-border-width: 1px 0 1px 1px;
330				--close-button-border-radius: 6px 0 0 6px;
331			}
332
333			:host([left]) .drawer[open]:not(.closing) {
334				--_translate-inline: 0px;
335			}
336
337			:host([left]) slot[name=close] {
338				right: 0;
339				align-self: flex-end;
340			}
341		}
342	`)),Qn.properties={closeText:{type:String},open:{type:Boolean,reflect:!0}},customElements.get("cz-sidepanel")||customElements.define("cz-sidepanel",Qn),null==CSS.registerProperty||CSS.registerProperty({name:"--cz-sidepanel-width",syntax:"<length-percentage>",inherits:!0,initialValue:"30%"});function Xn(t){var e,i;const n=N({},t);return n.length=null!=(e=null==(i=n.naam)?void 0:i.length)?e:0,n.normalizedName=n.length>0?`${n.naam.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}`:"",n.toString=()=>`${n.naam}`,n}function ts(t,e){return e&&""!==e?t.replace(new RegExp(es(e.trim()),"gi"),"<mark>$&</mark>"):t}function es(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}var is=M("meldingOphalenGegevens"),ns=M("meldingAVNietGevonden"),ss=M("avTitle"),os=M("tvTitle"),rs=M("vergoedingTitle"),ls=M("errorNotification"),as=M("bakeHtmlFromJsonResult"),cs=M("bakeTable");class us extends Rn{updated(t){(null!=t&&t.has("brand")||null!=t&&t.has("year")||null!=t&&t.has("language")||null!=t&&t.has("category")||null!=t&&t.has("collectivity"))&&(this.innerHTML="",this.loadContent())}constructor(){var t,e,i,n,s,o;super(),t=this,Object.defineProperty(this,cs,{value:ps}),Object.defineProperty(this,as,{value:hs}),Object.defineProperty(this,ls,{value:ds}),Object.defineProperty(this,is,{writable:!0,value:"Geen gegevens gevonden"}),Object.defineProperty(this,ns,{writable:!0,value:"Geen aanvullende verzekering gevonden"}),Object.defineProperty(this,ss,{writable:!0,value:"Aanvullende verzekering"}),Object.defineProperty(this,os,{writable:!0,value:"Tandarts verzekering"}),Object.defineProperty(this,rs,{writable:!0,value:"Vergoeding"}),this.callBackend=async function(e){try{var i,n,s,o;const r=`${e}?site=${null==(i=t.brand)?void 0:i.toLowerCase()}&language=${t.language}&year=${null==(n=t.year)?void 0:n.toLowerCase()}&categoryId=${null==(s=t.category)?void 0:s.toLowerCase()}&collectivity=${null==(o=t.collectivity)?void 0:o.toLowerCase()}`,l=(window.AbortController?new AbortController:{}).signal||{},a=fetch(r,{signal:l,method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"same-origin"}),c=await a;if(!c.ok)return z(t,ls)[ls](z(t,ns)[ns]);let u=await c.json();return z(t,as)[as](u)}catch(e){return z(t,ls)[ls](z(t,is)[is])}},z(this,is)[is]=null==(e=this.dataset)?void 0:e.meldingOphalenGegevens,z(this,ns)[ns]=null==(i=this.dataset)?void 0:i.meldingAvNietGevonden,z(this,ss)[ss]=null==(n=this.dataset)?void 0:n.avTitle,z(this,os)[os]=null==(s=this.dataset)?void 0:s.tvTitle,z(this,rs)[rs]=null==(o=this.dataset)?void 0:o.vergoedingTitle}}function ds(t){return`<div class="c-notification c-notification--error">\n\t\t\t\t\t<span>${t}</span>\n\t\t\t\t</div>`}function hs(t){let e="";const{aanvullend:i,tand:n}=t;if(!((null==i?void 0:i.length)>0||(null==n?void 0:n.length)>0))throw new Error("Tabellen hebben geen gegevens");return(null==i?void 0:i.length)>0&&(e+=z(this,cs)[cs](i,`<table class="c-table"><tr><th>${z(this,ss)[ss]||"Aanvullende verzekering"}</th><th>${z(this,rs)[rs]||"Vergoeding"}</th></tr>`,"</table>")),(null==n?void 0:n.length)>0&&(e+=z(this,cs)[cs](n,`<table class="c-table"><tr><th>${z(this,os)[os]||"Tandarts verzekering"}</th><th>${z(this,rs)[rs]||"Vergoeding"}</th></tr>`,"</table>")),e}function ps(t,e,i){return t.reduce((t,e)=>{var i;return`${t}<tr><td>${e.commercieleNaam}${e.loyaliteitsTekst?`<p class="c-vergoeding__loyaliteits-tekst">${e.loyaliteitsTekst}</p>`:""}</td><td>${e.vergoeding}${(null==(i=e.vergoedingDetails)?void 0:i.reduce((t,e)=>`${t}${e}<br>`,"<br>"))||""}</td></tr>`},e)+i}us.styles=[Rn.styles,Hi(w||(w=O`
343			@layer component {
344				:host(:empty) {
345					aspect-ratio: 1/.325;
346				}
347			}
348		`))],us.properties={brand:{},year:{},language:{},category:{},collectivity:{}},customElements.get("cz-avtableloader")||customElements.define("cz-avtableloader",us);class vs extends In{get select(){var t;return null!=(t=this._select)?t:this._select=this.querySelector("select")}bakeComponent(){return!1}updated(t){null!=t&&t.has("autocomplete")&&this.bakeComponent()}render(){return xn(v||(v=O`<slot></slot>`))}}vs.styles=[Hi(x||(x=O`
349			:host {
350				display: block;
351			}
352			slot {
353				box-sizing: border-box;
354			}
355		`))],vs.properties={autocomplete:{}},customElements.define("cz-combobox",vs);class ms extends In{get videoUrl(){return this._activeVideoUrl}async processEvent(t){t.includes("small")&&this.mobilevideourl&&this.mobilevideourl!==this._activeVideoUrl?this._activeVideoUrl=this.mobilevideourl:t.includes("small")||this.interactivevideourl===this._activeVideoUrl||(this._activeVideoUrl=this.interactivevideourl)}firstUpdated(){this.closest("body")===window.top.document.body&&(this._activeVideoUrl=this.interactivevideourl,this.mobilevideourl&&(this.eventQueue=Ot(()=>{Yn().then(t=>this.processEvent(t))}),this.resizeObserver=new ResizeObserver(t=>{for(const e of t)e.target===this&&e.contentBoxSize[0].inlineSize!==this.currentWidth&&(this.currentWidth=e.contentBoxSize[0].inlineSize,this.eventQueue(this.currentWidth))}),this.resizeObserver.observe(this))),this.videoUrl||this.classList.add("t-hidden")}render(){return xn(m||(m=O`<bb-main-player jsonEmbedUrl=${0}></bb-main-player>`),this.videoUrl)}constructor(){super(),this._activeVideoUrl="",async function(){if(!gs&&!customElements.get("bb-main-player")){gs=!0;try{await import("https://cdn.bluebillywig.com/apps/player/latest/player.js")}catch(t){console.error("Failed to load BlueBillywig player")}finally{gs=!1}}}()}}ms.styles=Hi(k||(k=O`
356		@layer component {
357			:host:has(.t-hidden) {
358				margin-top: 0px;
359			}
360		}
361	`)),ms.properties={interactivevideourl:{type:String},mobilevideourl:{type:String},_activeVideoUrl:{type:String}};let gs=!1;customElements.get("cz-interactive-video")||customElements.define("cz-interactive-video",ms);var fs=M("meldingError"),bs=M("hasError"),ys=M("sourceId"),_s=M("readmore"),ws=M("errorNotification"),xs=M("bakeHtmlFromJsonResult"),ks=M("bakeResults"),Ss=M("bakeAnswer");class $s extends Rn{constructor(){var t,e,i;super(),t=this,Object.defineProperty(this,Ss,{value:Es}
361),Object.defineProperty(this,ks,{value:Cs}),Object.defineProperty(this,xs,{value:Ls}),Object.defineProperty(this,ws,{value:As}),Object.defineProperty(this,fs,{writable:!0,value:"Er is een fout opgetreden bij het ophalen van de gegevens. Probeer het later opnieuw."}),Object.defineProperty(this,bs,{writable:!0,value:!1}),Object.defineProperty(this,ys,{writable:!0,value:void 0}),Object.defineProperty(this,_s,{writable:!0,value:void 0}),this.callBackend=async function(e){const i=t._apiQuery||"",n=z(t,ys)[ys],s=t.visitorId;let o="",r="";if(z(t,bs)[bs]=!1,(null==i?void 0:i.length)<3||"empty"===i)r=" ";else try{const l=`${e}`,a=(window.AbortController?new AbortController:{}).signal||{},c=fetch(l,{signal:a,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({query:i,dataSource:n,sessionId:s}),credentials:"same-origin"}),u=await c;if(u.ok){let e=await u.json();r=z(t,xs)[xs](e,i),o=(null==e?void 0:e.traceId)||""}else z(t,bs)[bs]=!0,r=z(t,ws)[ws](z(t,fs)[fs]),o=""}catch(e){z(t,bs)[bs]=!0,r=z(t,ws)[ws](z(t,fs)[fs]),o=""}return await Lt(500),rt("conversation-updated",{name:"Jet",args:{error:z(t,bs)[bs]||!t._apiQuery,qid:o}}),z(t,bs)[bs]&&(t._apiQuery=" "),r},this._apiQuery="",z(this,fs)[fs]=(null==(e=this.dataset)?void 0:e.errorMessage)||z(this,fs)[fs],z(this,ys)[ys]=(null==(i=this.dataset)?void 0:i.sourceId)||z(this,ys)[ys],z(this,_s)[_s]=this.querySelector('button[role="switch"][slot="read-more"]')||z(this,_s)[_s],z(this,_s)[_s]&&z(this,_s)[_s].addEventListener("click",t=>{const e="true"===z(this,_s)[_s].getAttribute("aria-checked");z(this,_s)[_s].setAttribute("aria-checked",e?"false":"true"),this.box.setAttribute("aria-expanded",e?"false":"true"),e||this.box.removeAttribute("style"),rt("conversation-read-more-toggled",{name:"Jet",args:{isOpen:!e}})}),st("conversation-update",{name:"Jet",fn:({query:t})=>{this._apiQuery=t}}),this.resizeObserver=new ResizeObserver(Ot(t=>{var e;if(null!=(e=this.box)&&e.hasAttribute("style"))for(const e of t)e.target===this.box&&(e.target.clientWidth!==this._width&&50!==this._width&&this.box.removeAttribute("style"),this._width=e.target.clientWidth)},20))}get visitorId(){var t;return null!=(t=this._visitorId)?t:this._visitorId=window.ce_VisitorId}get box(){var t,e;return null!=(t=this._box)?t:this._box=null==(e=this.renderRoot)?void 0:e.querySelector(".box")}get truncate(){var t,e;return null!=(t=this._truncate)?t:this._truncate=null==(e=this.renderRoot)?void 0:e.querySelector(".truncate")}get expand(){var t,e;return null!=(t=this._expand)?t:this._expand=null==(e=this.renderRoot)?void 0:e.querySelector(".expand")}firstUpdated(){super.firstUpdated(),this.resizeObserver.observe(this.box),setTimeout(()=>{var t,e;null!=(t=window._paq)&&t.push&&"function"==typeof(null==(e=window._paq)?void 0:e.push)&&_paq.push([function(){window.ce_VisitorId=this.getVisitorId()}])},1e3)}shouldUpdate(t){return null==t||!t.has("_apiQuery")||!z(this,bs)[bs]||(z(this,bs)[bs]=!1,!1)}updated(t){var e;null!=t&&t.has("_apiQuery")&&(this.innerHTML="",this.box.classList.remove("answer"),this.box.removeAttribute("style"),this.box.removeAttribute("aria-expanded"),null==(e=z(this,_s)[_s])||e.setAttribute("aria-checked","false"),this.loadContent().then(()=>{var t;this.expand.removeAttribute("hidden");const e=this.truncate;null!=(t=this.innerHTML)&&null!=t.trim&&t.trim()&&(null==e?void 0:e.clientHeight)>=(null==e?void 0:e.scrollHeight)||!z(this,_s)[_s]?(this.box.setAttribute("aria-expanded","true"),z(this,_s)[_s]&&z(this,_s)[_s].setAttribute("aria-checked","true"),this.expand.setAttribute("hidden","true"),this.box.removeAttribute("style"),this.box.classList.contains("answer")&&rt("conversation-read-more-toggled",{name:"Jet",args:{isOpen:!0}})):((null==e?void 0:e.scrollHeight)>0&&this.box.setAttribute("style",`--answer-height: ${null==e?void 0:e.scrollHeight}px;`),z(this,_s)[_s]?this.appendChild(z(this,_s)[_s]):this.expand.setAttribute("hidden","true"))}))}render(){return xn(g||(g=O`
362		<div class="box">
363			<div class="truncate">
364				<slot><cz-icon><cz-loader></cz-loader></cz-icon></slot>
365			</div>
366			<div class="expand">
367    			<div class="expand__label"><slot name="read-more"></slot></div>
368			</div>
369		</div>
370		`))}}function As(t){return`<div class="c-notification c-notification--error">\n\t\t\t\t\t<span>${At($||($=O`${0}`),t)}</span>\n\t\t\t\t</div>`}function Ls(t,e){let i="";if(t)switch(t.type){case"links":const n=Array.isArray(t)?t:t.links||[];(null==n?void 0:n.length)>0?i=z(this,ks)[ks](n,e):(z(this,bs)[bs]=!0,i=z(this,ws)[ws](z(this,fs)[fs]));break;case"answer":const s=t.answer||"";s?(this.expand.setAttribute("hidden","true"),this.box.classList.add("answer"),i=z(this,Ss)[Ss](s)):(z(this,bs)[bs]=!0,i=z(this,ws)[ws](z(this,fs)[fs]));break;default:z(this,bs)[bs]=!0,i=z(this,ws)[ws](z(this,fs)[fs])}return i}function Cs(t){const e=t.map(t=>{const e="string"==typeof t?t:t.url||t.href||"",i="object"==typeof t&&t.title||e;return`<li>\n\t\t\t\t\t\t<a class="c-link" href="${At(A||(A=O`${0}`),e)}">\n\t\t\t\t\t\t\t<span class="c-link__text">${At(L||(L=O`${0}`),i)}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t`}).join("");return`\n\t\t\t<div class="c-conversation__result__wrapped">\n\t\t\t\t${this.title?`\n\t\t\t\t\t<h3 class="like-h4 c-conversation__result__heading">\n\t\t\t\t\t\t${At(C||(C=O`${0}`),this.title)}\n\t\t\t\t\t</h3>`:""}\n\t\t\t\t<ul class="c-conversation__result__list">\n\t\t\t\t\t${e}\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t`}function Es(t){return`\n\t\t\t<div class="c-conversation__result__wrapped">\n\t\t\t\t${this.title?`\n\t\t\t\t\t<h3 class="like-h4 c-conversation__result__heading">\n\t\t\t\t\t\t${At(E||(E=O`${0}`),this.title)}\n\t\t\t\t\t</h3>`:""}\n\t\t\t\t<div class="c-content c-conversation__result__answer">\n\t\t\t\t\t${t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`}$s.styles=[Rn.styles,Hi(S||(S=O`
371			@layer component {
372				:host {
373					interpolate-size: allow-keywords;
374					display: block;
375					height: 50px;
376					width: 100%;
377					container-type: inline-size;
378					
379					@media screen and (prefers-reduced-motion: no-preference) {
380						transition: height 0.25s ease-in-out;
381					}
382					
383					@starting-style {
384						height: 50px;
385					}
386					
387				}
388
389				:host(:empty) {
390					width: 50px;
391					height: 50px;
392				}
393
394				:host(:not(:empty)) {
395					height: auto;
396				}
397
398				cz-icon {
399					margin-left: 0;
400				}
401
402				.box {
403					--cz-conversation-mask-height: 0px;
404					position: relative;
405					display: grid;
406					height: var(--cz-conversation-content-height);
407					max-height: min-content;
408					grid-template-columns: [content-start extend-start] 1fr [content-end extend-end];
409					grid-template-rows: [content-start] 1fr [content-end extend-start] auto [extend-end];
410					transition: height .25s ease-in-out;
411					
412					&.answer {
413						--cz-conversation-mask-height: unset;
414						--cz-conversation-content-height: 25lh;
415						--cz-conversation-content-height: var(--conversation-content-height);
416					}
417					
418					input {
419						opacity: 0;
420						position: absolute;
421						pointer-events: none;
422					}
423					
424					label {
425						height: 30px;
426					}
427					
428					.truncate {
429						/* add negative margins to allow focus-visible outline to be visible otherwise the overflow will cut off the outline */
430						margin-inline: -5px;
431						margin-block-end: -5px;
432
433						grid-area: content;
434						display: block;
435						overflow: hidden;
436						mask-image: linear-gradient(to bottom, white calc(100% - var(--cz-conversation-mask-height)), transparent);
437						transition: --cz-conversation-mask-height .25s ease-in-out;
438					}
439					
440					&.answer:has(.expand[hidden]) {
441						--cz-conversation-mask-height: 0px;
442					}
443
444					&.answer[aria-expanded=true] {
445						--cz-conversation-content-height: var(--answer-height, min-content);
446						--cz-conversation-mask-height: 0px;
447					}
448					
449					.expand {
450						grid-area: extend;
451						position: relative;
452						place-content: center;
453						display: none;
454						
455						.answer & {
456							inset: auto 0 0 0;
457							display: flex;
458						}
459
460						&[hidden],
461						.answer &[hidden] {
462							display: none;
463						}
464
465						.expand__label {
466							display: flex;
467							justify-content: center;
468							align-items: center;
469							margin-top: var(--space-l);
470						}
471					}
472				}
473			}
474		`))],$s.properties={_apiQuery:{type:String},title:{type:String}},customElements.get("cz-conversation")||customElements.define("cz-conversation",$s),null==CSS.registerProperty||CSS.registerProperty({name:"--cz-conversation-content-height",syntax:"<length-percentage> | min-content",inherits:!0,initialValue:"min-content"}),null==CSS.registerProperty||CSS.registerProperty({name:"--cz-conversation-mask-height",syntax:"<length>",inherits:!0,initialValue:"100px"});var Ts=M("sidepanel"),qs=M("loaded"),Os=M("loadOnSidepanelOpen"),Ns=M("mfaUrl"),zs=M("mfaName");class Ps extends Rn{startLoading(){this.loadContent().then(t=>{if(t&&z(this,Ns)[Ns]){const t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("src",`${z(this,Ns)[Ns]}/${z(this,zs)[zs]}/main.js`),this.appendChild(t)}})}sideOverlayObserve(){var t,e=this;if(!z(this,Ts)[Ts])return;new MutationObserver(async function(t){for(const n of t){var i;if("attributes"===n.type&&"open"===n.attributeName)null!=(i=z(e,Ts)[Ts])&&i.hasAttribute("open")&&!z(e,qs)[qs]&&e.startLoading()}}).observe(z(this,Ts)[Ts],{attributeFilter:["open"]}),null!=(t=z(this,Ts)[Ts])&&t.hasAttribute("open")&&!z(this,qs)[qs]&&this.startLoading()}constructor(){var t;super(),t=this,Object.defineProperty(this,Ts,{writable:!0,value:!1}),Object.defineProperty(this,qs,{writable:!0,value:!1}),Object.defineProperty(this,Os,{writable:!0,value:!1}),Object.defineProperty(this,Ns,{writable:!0,value:!1}),Object.defineProperty(this,zs,{writable:!0,value:!1}),this.mfaTemplate=!1,this.callBackend=async function(e){if(z(t,Os)[Os]&&z(t,Ts)[Ts]&&!z(t,Ts)[Ts].hasAttribute("open"))return"";let i=t.mfaTemplate?t.mfaTemplate.innerHTML:"Something went wrong, please try again later.";return z(t,qs)[qs]=!0,i},z(this,Os)[Os]=this.getAttribute("load-on-sidepanel-open"),z(this,Ns)[Ns]=this.getAttribute("app-url"),z(this,zs)[zs]=this.getAttribute("app-name"),z(this,Ts)[Ts]=this.closest("cz-sidepanel"),this.mfaTemplate=document.getElementById(this.getAttribute("template")),z(this,Os)[Os]&&z(this,Ts)[Ts]?this.sideOverlayObserve():this.startLoading()}}Ps.styles=[Rn.styles,Hi(T||(T=O`
475			@layer component {
476				:host(:empty) {
477					aspect-ratio: 1/.325;
478				}
479			}
480		`))],customElements.get("cz-mfaloader")||customElements.define("cz-mfaloader",Ps);var Ms=M("svglocation"),Vs=M("meldingOphalenGegevens"),Bs=M("apimKeySalesfunnel"),Hs=M("sidepanel"),Is=M("loaded"),js=M("loadOnSidepanelOpen"),Ds=M("errorNotification"),Fs=M("bakeHtmlFromJsonResult");class Us extends Rn{async startLoading(){if(!this._isLoading)for(;!z(this,Is)[Is]&&(z(this,js)[js]&&null!=(t=z(this,Hs)[Hs])&&t.hasAttribute("open")||!z
480(this,js)[js]);){var t;this._isLoading=!0,this.loadContent().then(()=>{window.processModulesInsideElement(this),this._isLoading=!z(this,Is)[Is]}),await Lt(15e3)}}sideOverlayObserve(){var t,e=this;if(!z(this,Hs)[Hs])return;new MutationObserver(async function(t){for(const n of t){var i;if("attributes"===n.type&&"open"===n.attributeName)null!=(i=z(e,Hs)[Hs])&&i.hasAttribute("open")&&!z(e,Is)[Is]?e.startLoading():e._isLoading=!1}}).observe(z(this,Hs)[Hs],{attributeFilter:["open"]}),null!=(t=z(this,Hs)[Hs])&&t.hasAttribute("open")&&!z(this,Is)[Is]&&this.startLoading()}updated(t){(null!=t&&t.has("date")||null!=t&&t.has("productset")||null!=t&&t.has("producttype")||null!=t&&t.has("collectivity"))&&(this.innerHTML="",z(this,Is)[Is]=!1,z(this,js)[js]&&z(this,Hs)[Hs]?z(this,Hs)[Hs].hasAttribute("open")&&this.startLoading():this.startLoading())}constructor(){var t,e,i;super(),t=this,Object.defineProperty(this,Fs,{value:Ws}),Object.defineProperty(this,Ds,{value:Rs}),Object.defineProperty(this,Ms,{writable:!0,value:"../../images/svg.svg"}),Object.defineProperty(this,Vs,{writable:!0,value:"Geen gegevens gevonden"}),Object.defineProperty(this,Bs,{writable:!0,value:!1}),Object.defineProperty(this,Hs,{writable:!0,value:!1}),Object.defineProperty(this,Is,{writable:!0,value:!1}),Object.defineProperty(this,js,{writable:!0,value:!1}),this.callBackend=async function(e){try{var i;const n=e,s={collectiviteitsnummer:t.collectivity,referentie_datum:null!=(i=t.date)?i:"2024-12-1",productset:t.productset,soort_verzekering:t.producttype},o=(window.AbortController?new AbortController:{}).signal||{},r={"Content-Type":"application/json; charset=utf-8"};z(t,Bs)[Bs]&&(r["Ocp-Apim-Subscription-Key"]=z(t,Bs)[Bs]);const l=fetch(n,{signal:o,method:"POST",body:JSON.stringify(s),headers:r}),a=await l;if(a.ok){let e=await a.json();return z(t,Is)[Is]=!0,z(t,Fs)[Fs](e)}{const t=await a.json();throw new Error(t.Message)}}catch(e){return z(t,Ds)[Ds](e.message||z(t,Vs)[Vs])}},z(this,Ms)[Ms]=(null==(e=this.dataset)?void 0:e.svgUrl)||z(this,Ms)[Ms],z(this,Vs)[Vs]=null==(i=this.dataset)?void 0:i.meldingOphalenGegevens,z(this,Bs)[Bs]=this.getAttribute("salesfunnel_apim_key"),z(this,js)[js]=this.getAttribute("load-on-sidepanel-open"),z(this,Hs)[Hs]=this.closest("cz-sidepanel"),z(this,js)[js]&&z(this,Hs)[Hs]&&this.sideOverlayObserve()}}function Rs(t){return`<div class="c-notification c-notification--error">\n\t\t\t\t\t<span>${t}</span>\n\t\t\t\t</div>`}function Ws(t){var e;let i=Intl.NumberFormat((null==(e=document.firstElementChild)?void 0:e.lang)||navigator.language||"nl-NL"),n="";var s,o,r,l,a,c,u,d,h,p,v,m,g,f;t&&(n=`<div class="c-insurance-compare" data-module="CompareInsuranceTable" data-options='{"searchPlaceholder": "${(null==t||null==(s=t.VergoedingenvergelijkerLabels)?void 0:s.WatermerkVergoedingSelecteren)||""}", "searchText": "${(null==t||null==(o=t.VergoedingenvergelijkerLabels)?void 0:o.VergoedingeNietGevonden)||"Geen vergoedingen gevonden met deze omschrijving"}"}'>\n\t\t\t<div class="c-insurance-compare__table">\n\t\t\t\t<h2 class="c-heading"><span>${(null==t||null==(r=t.VergoedingenvergelijkerLabels)?void 0:r.TitelVergoedingenvergelijker)||""}</span></h2>\n\t\t\t\t<table class="c-table">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr class="c-insurance">\n\t\t\t\t\t\t\t<td scope="col" class="c-table__upperleft-cel">${(null==t||null==(l=t.VergoedingenvergelijkerLabels)?void 0:l.TitelVergoeding)||"Vergoedingen"}</td>\n\t\t\t\t\t\t\t${null==t||null==(a=t.Vergoedingen)||null==(a=a[0])||null==(a=a.AanvullendeZorgVerzekeringen)?void 0:a.map(e=>{var n,s;return`<th scope="col" class="c-input__label">\n\t\t\t\t\t\t\t\t<span class="c-input__label__introtext">${(null==t||null==(n=t.VergoedingenvergelijkerLabels)?void 0:n.TitelAanvullendeVerzekering)||"Aanvullend"}</span>\n\t\t\t\t\t\t\t\t<span class="c-input__label__text label--full-color">${null==e?void 0:e.Naam}</span>\n\t\t\t\t\t\t\t\t<div class="c-input__label__price">\n\t\t\t\t\t\t\t\t\t<span class="c-input__label__price__amount">\n\t\t\t\t\t\t\t\t\t\t<span class="c-amount c-ownrisk__noerror" data-module="SuperCents" data-options='{"addEuroSign": true}'>${null!=e&&e.Prijs?i.format(e.Prijs):i.format(0)}</span>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span class="c-input__label__price__text">${(null==(s=t.VergoedingenvergelijkerLabels)?void 0:s.PerTermijn)||"/mnd"}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</th>`}).join("")}\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t${null==t||null==(c=t.Vergoedingen)?void 0:c.map((e,i)=>{var n,s;return`<tr data-tablerow="row-${i}" class="${null!=e&&e.Tonen?"":"t-hidden c-table-row-highlight"}">\n\t\t\t\t\t\t\t\t<th scope="row" data-module="ToggleButtonListener" data-options="{&quot;triggerName&quot;: &quot;triggername_${i}${i}&quot;, &quot;className&quot;: &quot;c-toggle-detail-on&quot;}">\n\t\t\t\t\t\t\t\t\t<button type="button" data-insurance-compare-hider class="c-link c-insurance-compare__removal" data-datalayer-click="{&quot;category&quot;: &quot;button click&quot;, &quot;action&quot;: &quot;verwijder&quot;, &quot;label&quot;: &quot;${null==e?void 0:e.CategorieZorgsoort}&quot;}">${null==t||null==(n=t.VergoedingenvergelijkerLabels)?void 0:n.Verwijder}</button>\n\t\t\t\t\t\t\t\t\t<div class="c-insurance-compare__name">${null==e?void 0:e.CategorieZorgsoort}</div>\n\t\t\t\t\t\t\t\t\t${null!=e&&e.TonenDetails?`<div class="c-toggle-button-link">\n\t\t\t\t\t\t\t\t\t\t<button type="button" role="switch" aria-checked="false" data-module="ToggleButton" data-options="{&quot;triggerName&quot;: &quot;triggername_vergoeding${i}&quot;}" data-datalayer-click="{&quot;category&quot;: &quot;button click&quot;, &quot;action&quot;: &quot;Verberg-Toon details&quot;, &quot;label&quot;: &quot;Tandarts en mondhygiënist&quot;}">\n\t\t\t\t\t\t\t\t\t\t\t<span class="c-toggle-button-link__label">details</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class="c-toggle-button-link__icon-holder">\n\t\t\t\t\t\t\t\t\t\t\t\t<svg focusable="false" aria-hidden="true" class="c-icon c-icon--chevron"><use xlink:href="${z(this,Ms)[Ms]}#chevron"></use></svg>\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t${null==e||null==(s=e.AanvullendeZorgVerzekeringen)?void 0:s.map(t=>`<td>\n\t\t\t\t\t\t\t\t\t<span class="c-insurance__detail">${null==t?void 0:t.VergoedingOmschrijving}</span>\n\t\t\t\t\t\t\t\t\t<div class="c-insurance__detail--extended" data-module="ToggleButtonListener" data-options='{"triggerName": "triggername_vergoeding${i}", "className": "c-insurance__detail--expanded"}'>\n\t\t\t\t\t\t\t\t\t\t<div class="c-insurance__detail--extended--inner">${null==t?void 0:t.VergoedingDetails}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>`).join("")}\n\t\t\t\t\t\t\t</tr>`}).join("")}\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t\n\t\t\t<section class="c-revealer-collection c-revealer-collection__compact">\n\t\t\t\t<h2 class="c-heading">${(null==t||null==(u=t.VergoedingenvergelijkerLabels)?void 0:u.TitelVergoedingenvergelijker)||"Vergelijk onze aanvullende verzekeringen"}</h2>\n\t\t\n\t\t\t\t${null==t||null==(d=t.Vergoedingen)?void 0:d.map((e,i)=>{var n,s,o,r,l,a,c;return`<article class="c-revealer ${e.Tonen?"":"t-hidden c-table-row-highlight t-background-color-transition"}" data-module="Revealer" data-revealerrow="row-${i}" data-open="false">\n\t\t\t\t\t\t<h3 id="l${i}" data-revealer-title class="like-h4 c-revealer__heading">\n\t\t\t\t\t\t\t<span class="c-revealer__title__text">\n\t\t\t\t\t\t\t\t${null==e?void 0:e.CategorieZorgsoort}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<svg focusable="false" aria-hidden="true" class="c-icon c-icon--chevron c-icon--rotate-right"><use xlink:href="${z(this,Ms)[Ms]}#chevron"></use></svg>\n\t\t\t\t\t\t</h3>\n\t\t\n\t\t\t\t\t\t<section class="c-revealer__content" id="c${i}" data-revealer-content aria-labelledby="l${i}">\n\t\t\t\t\t\t\t<div data-inner>\n\t\t\t\t\t\t\t\t${e.TonenDetails?`<label class="c-toggle-button">\n\t\t\t\t\t\t\t\t\t<span class="c-toggle-button__label">${null==t||null==(n=t.VergoedingenvergelijkerLabels)?void 0:n.ToonDetail
480s}</span>\n\t\t\t\t\t\t\t\t\t<div class="c-toggle-button__action">\n\t\t\t\t\t\t\t\t\t\t<input type="checkbox" data-module="ToggleButton" role="switch" data-options='{"triggerName": "triggername_compactvergoeding${i}"}'>\n\t\t\t\t\t\t\t\t\t\t<span class="c-toggle-button__on" aria-hidden="true">${(null==t||null==(s=t.VergoedingenvergelijkerLabels)||null==(s=s.ToondetailOpties)||null==(s=s[0])?void 0:s.Value)||"aan"}</span>\n\t\t\t\t\t\t\t\t\t\t<span class="c-toggle-button__off" aria-hidden="true">${(null==t||null==(o=t.VergoedingenvergelijkerLabels)||null==(o=o.ToondetailOpties)||null==(o=o[1])?void 0:o.Value)||"uit"}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</label>`:""}\n\t\t\t\t\t\t\t\t<table class="c-table"><caption class="t-visuallyhidden">${null==e?void 0:e.CategorieZorgsoort}</caption>\n\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t<th scope="col">${null==t||null==(r=t.VergoedingenvergelijkerLabels)?void 0:r.TitelAanvullendeVerzekering}</th>\n\t\t\t\t\t\t\t\t\t\t<th scope="col">${null==t||null==(l=t.VergoedingenvergelijkerLabels)?void 0:l.TitelVergoeding}</th>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t${null==e||null==(a=e.AanvullendeZorgVerzekeringen)?void 0:a.map(t=>`\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<td>${t.Naam}</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t<span>${t.VergoedingOmschrijving}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="t-hidden" data-module="ToggleButtonListener" data-options="{&quot;triggerName&quot;: &quot;triggername_compactvergoeding${i}&quot;}">${"-"===t.VergoedingDetails?"":t.VergoedingDetails}</div>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>`).join("")}\n\t\t\t\t\t\t\t\t</tbody></table>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</section>\n\t\t\t\t\t</article>\n\t\t\t\t\t<div class="c-insurance-compare__removal__wrapper">\n\t\t\t\t\t\t<button type="button" data-insurance-compare-hider="" class="c-insurance-compare__removal" data-datalayer-click="{&quot;category&quot;: &quot;button click&quot;, &quot;action&quot;: &quot;verwijder&quot;, &quot;label&quot;: &quot;Fysiotherapie bij een blessure of tijdelijke klachten&quot;}">\n\t\t\t\t\t\t\t<span class="t-visuallyhidden">${null==t||null==(c=t.VergoedingenvergelijkerLabels)?void 0:c.Verwijder} ${null==e?void 0:e.CategorieZorgsoort}</span>\n\t\t\t\t\t\t\t<svg focusable="false" aria-hidden="true" class="c-icon c-icon--crossout"><use xlink:href="${z(this,Ms)[Ms]}#crossout"></use></svg>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>`}).join("")}\n\t\t\t</section>\n\t\t\n\t\t\t<p class="t-hidden" data-insurance-compare-none="">${null==t||null==(h=t.VergoedingenvergelijkerLabels)?void 0:h.SelecteerVergoeding}</p>\n\t\t\n\t\t\t<section class="c-insurance-compare__select c-form" aria-labelledby="label_fd338bfcd821">\n\t\t\t\t<div data-inner="" class="c-insurance-compare__select__inner">\n\t\t\t\t\t<h2 class="t-visuallyhidden" id="label_fd338bfcd821">${null==t||null==(p=t.VergoedingenvergelijkerLabels)?void 0:p.TitelVergoedingToevoegen}</h2>\n\t\t\t\t\t<div class="c-insurance-compare__combobox" data-module="ComboboxAutocomplete">\n\t\t\t\t\t\t<label class="c-input__label" for="select_90f6cf6ebf1d">${null==t||null==(v=t.VergoedingenvergelijkerLabels)?void 0:v.TitelVergoedingToevoegen}</label>\n\t\t\n\t\t\t\t\t\t<div class="c-search-form__querybox c-insurance-compare__combobox__group" data-focus-container="">\n\t\t\t\t\t\t\t<input type="text" id="select_90f6cf6ebf1d" aria-controls="select_90f6cf6ebf1d-listbox" class="c-input__input" autocomplete=off role="combobox" aria-autocomplete="list" aria-expanded="false">\n\t\t\t\t\t\t\t<button type="button" tabindex="-1" aria-label="${(null==t||null==(m=t.VergoedingenvergelijkerLabels)?void 0:m.TitelVergoeding)||"Vergoedingen"}" aria-expanded="false" aria-controls="cb1-listbox">\n\t\t\t\t\t\t\t\t<svg focusable="false" aria-hidden="true" class="c-icon c-icon--chevron"><use xlink:href="${z(this,Ms)[Ms]}#chevron"></use></svg>\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button type="button" data-confirm-selection class="c-btn c-btn--primary c-search-form__querybox__button" data-confirm-datalayer-click="{&quot;category&quot;: &quot;button click&quot;, &quot;action&quot;: &quot;Voeg vergoeding toe&quot;, &quot;label&quot;: &quot;label&quot;}">\n\t\t\t\t\t\t\t\t<span><svg focusable="false" aria-hidden="true" class="c-icon c-icon--plus"><use xlink:href="${z(this,Ms)[Ms]}#plus"></use></svg></span>\n\t\t\t\t\t\t\t\t<span class="c-search-form__querybox__button__text">${null==t||null==(g=t.VergoedingenvergelijkerLabels)?void 0:g.ButtonVergoedingToevoegen}</span>\n\t\t\t\t\t\t\t</button>
480\n\t\t\t\t\t\t\t<ul id="select_90f6cf6ebf1d-listbox" class="c-insurance-compare__combobox__list" role="listbox">\n\t\t\t\t\t\t\t${null==t||null==(f=t.Vergoedingen)?void 0:f.map((t,e)=>`<li role="option" id="row-${e}" ${null!=t&&t.Tonen?'disabled class="t-hidden"':""}>${null==t?void 0:t.CategorieZorgsoort}</li>`).join("")}\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</section>\n\t\t</div>`);return n}Us.styles=[Rn.styles,Hi(q||(q=O`
481			@layer component {
482				:host(:empty) {
483					aspect-ratio: 1/.325;
484				}
485			}
486		`))],Us.properties={date:{},productset:{},producttype:{},collectivity:{}},customElements.get("cz-vergelijkerloader")||customElements.define("cz-vergelijkerloader",Us);const Ks={ContentEnhancements:function(t,e={}){if(!t)return;const i=t;X(i),function(t){let e=null==(i=t)?void 0:i.getAttribute("data-yesterday");var i;if(e&&e.replace(/\s/g,"").length){const i=new Date;i.setDate(i.getDate()-1);const n=`${Y(i.getDate())}-${Y(i.getMonth()+1)}-${i.getFullYear()}`,s=t.innerHTML,o=new RegExp(e,"gi"),r=s.replace(o,n);s!==r&&(t.innerHTML=r)}}(i)},SearchAwesomplete:class{constructor(t,{caption:e="Suggestions",autosuggestUrl:i="",method:n="GET",key:s="key",autosuggestKey:o="query",autofocus:r=!1,sort:l=!0,filter:a=!1,minChars:c=2,maxItems:u=10,autoFirst:d=!1}={}){this._options={caption:e,autosuggestUrl:i,method:n,key:s,autosuggestKey:o,autofocus:r,sort:l,filter:a,minChars:c,maxItems:u,autoFirst:d},this._element=t,this.input=at(this._element.querySelector("input.c-search-awesomplete__input")),this.submitButton=at(this._element.querySelector("[data-search-awesomplete-button]")),this.autosuggestDictionary=at(this._element.querySelector(".c-search-awesomplete__hiddendictionary")),this.notFoundTemplate=at(this._element.querySelector("[data-awesomplete-404]")),this.input&&this._init()}_init(){this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.value=at.getQueryString(this._options.key),this.filter=ct,this.sort=ut,this.item=dt,this.makeText=ht,this.index=-1,this._createElements(),this._bindEvents(),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||this._options.list||[],this.input.value&&!0===this._options.autofocus&&window.setTimeout(()=>this.input.focus(),100),it(["awesomplete-highlight","awesomplete-close","awesomplete-open","awesomplete-select","awesomplete-selectcomplete"])}_createElements(){this.container=at.create("div",{className:"awesomplete",around:this.input}),this.innerContainer="FORM"===this._element.tagName?at.create("div",{className:"c-search-awesomplete__list",hidden:"hidden",inside:this.container}):at.create("div",{className:"c-search-awesomplete__list",hidden:"hidden",after:at(this._element.querySelector("form.c-search-form__querybox"))}),this.caption=at.create("span",{className:"caption",inside:this.innerContainer}),this.caption.innerHTML=this._options.caption,this.ul=at.create("ul",{inside:this.innerContainer}),this.notFound=at.create("div",{className:"c-search-awesomplete__list-404",inside:this.innerContainer}),this.status=at.create("span",{className:"t-visuallyhidden",role:"status","aria-live":"assertive","aria-atomic":"true","aria-relevant":"additions",inside:this.container})}_bindEvents(){if(this.input){["click","touchend","focus"].forEach(t=>{this.input.addEventListener(t,()=>{this.timeoutID&&"number"==typeof this.timeoutID&&window.clearTimeout(this.timeoutID),this.timeoutID=window.setTimeout(()=>{this.inputValueBackup&&this.input.value&&this.input.value===this.inputValueBackup&&(this.notFoundBackup&&this.notFoundBackup.length>0||this.ulBackup&&this.ulBackup.length>0)?(this.ul.innerHTML=this.ulBackup,this.notFound.innerHTML=this.notFoundBackup,this.open()):!this.input.value||this.input.value.length<this._options.minChars?this.close({reason:"clear"}):this.evaluate()},200)})}),this.input.addEventListener("input",()=>this.wrapEvaluation()),this.input.addEventListener("blur",()=>this.close({reason:"blur"})),this.input.addEventListener("keydown",t=>{const e=t.keyCode;
486if(this.opened)if(13===e)if(this.selected)t.preventDefault(),this.select();else{if(this.ul.children.length<=0){let t=this.notFound.querySelector(".c-link");t&&t.getAttribute("aria-selected")&&"true"===t.getAttribute("aria-selected")&&t.href&&(history.replaceState({foo:"bar"},"",`${window.location.href.split("?")[0]}?${t.href.split("?")[1]?t.href.split("?")[1]:""}`),window.location=t.href,this.close({reason:"link"}))}}else if(27===e)this.close({reason:"esc"});else if(38===e||40===e){t.preventDefault();let i=this.ul.children.length;if(i<=0){let t=this.notFound.querySelector(".c-link");if(t){let e=t.getAttribute("aria-selected")&&"true"===t.getAttribute("aria-selected");t.setAttribute("aria-selected",!e)}}else this[38===e?"previous":"next"](i)}});const t=/[<>{}[\]$"'/]/g;this.input.addEventListener("input",e=>{this.input.value=this.input.value.replace(t,""),e.preventDefault()})}this.submitButton&&this.submitButton.addEventListener("click",t=>{t.preventDefault(),this.evaluate(!0)}),this.input&&this.input.form&&this.input.form.addEventListener("submit",()=>this.close({reason:"submit"})),this.ul&&this.ul.addEventListener("mousedown",t=>{let e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),this.select(e,t.target))}})}set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=at(t))&&t.children){const e=[];lt.apply(t.children).forEach(function(t){if(!t.disabled){const i=t.textContent.trim(),n=t.value||i,s=t.label||i;""!==n&&e.push({label:s,value:n})}}),this._list=e}document.activeElement===this.input&&this.wrapEvaluation()}get list(){return this._list}get selected(){return this.index>-1}get opened(){return!this.innerContainer.hasAttribute("hidden")}close(t){if(!this.opened)return;const e=t&&t.reason&&"clear"===t.reason?10:200;window.setTimeout(()=>{this.innerContainer.setAttribute("hidden",""),this.input.value&&this.input.value.length>=this._options.minChars&&(this.inputValueBackup=`${this.input.value}`,this.notFoundBackup=`${this.notFound.innerHTML}`,this.ulBackup=`${this.ul.innerHTML}`),this.notFound.innerHTML="",this.ul.innerHTML=""},e),this.index=-1,ot("awesomplete-close",t||{})}open(){this.innerContainer.removeAttribute("hidden"),this._options.autoFirst&&-1===this.index&&this.goto(0),ot("awesomplete-open")}next(t){this.goto(this.index<t-1?this.index+1:-1)}previous(t){this.goto(this.selected?this.index-1:t-1)}goto(t){const e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,ot("awesomplete-highlight",{text:this.suggestions[this.index]}))}select(t,e){if(t?this.index=at.siblingIndex(t):t=this.ul.children[this.index],t){const i=this.suggestions[this.index];if(i.href){const t=`${this._options.key}=${at.getQueryString(this._options.key,!0)}`;-1===window.location.href.indexOf(t)?history.replaceState({foo:"bar"},"",`${window.location.href.indexOf("?")>-1?window.location.href+"&":window.location.href+"?"}${this._options.key}=${this.input.value}`):this.input.value!==at.getQueryString(this._options.key)&&history.replaceState({foo:"bar"},"",window.location.href.replace(t,`${this._options.key}=${this.input.value}`)),window.location=i.href,this.close({reason:"link"})}else{ot("awesomplete-select",{text:i,origin:e||t})&&(this.input.value=i.label?i.label.replace(/<mark>/g,"").replace(/<\/mark>/g,""):"",this.close({reason:"select"}),ot("awesomplete-selectcomplete",{text:i}),window.$(this._element).is("form")?window.$(this._element).submit():window.$(this._element).find("form").submit())}}}wrapEvaluation(){this.timeoutID&&"number"==typeof this.timeoutID&&window.clearTimeout(this.timeoutID),this.timeoutID=window.setTimeout(()=>this.evaluate(),400)}noSuggestionsFound(t){var e;return this.notFoundTemplate&&this.notFoundTemplate.innerHTML&&this.notFoundTemplate.innerHTML.length>0&&(this.notFound.innerHTML=this.notFoundTemplate.innerHTML.replace(/\{0\}/g,t)),!!((null==(e=this.notFound)||null==(e=e.innerHTML)?void 0:e.length)>0)}async evaluate(t){this.inputValueBackup="";const e=this.input.value,i=window.AbortController?new AbortController:{},n=i.signal||{};let s;if(t&&e.length>0||e.length>=this._options.minChars)if(this._options.autosuggestUrl){this.notFound.innerHTML="",s&&i.abort&&i.abort();let t="",o={},r=this._options.key?this._options.key:"key";"POST"===this._options.method?(t=`${this._options.autosuggestUrl}${this.autosuggestDictionary?this.autosuggestDictionary.value?this.autosuggestDictionary.value:"cz-all":""}`,o={maxResults:this._options.maxResults},o[r]=e):t=`${this._options.autosuggestUrl}&${this._options.autosuggestKey}=${e}`;try{s=fetch(t,{signal:n,method:this._options.method||"GET",headers:{"Content-Type":"application/json; charset=utf-8"},body:"POST"===this._options.method?JSON.stringify(o):void 0});let i=await s,r=await i.json();if(this.ul.innerHTML="",r)if(this._list=r,this._list.length>0){this.index=-1,this.suggestions=this._list.map(t=>new pt(t)).filter(t=>!this._options.filter||this.filter(t.label,e)).sort((t,e)=>this._options.sort?this.sort(t,e):0).slice(0,this._options.maxItems);let t=this.suggestions.reduce((t,i)=>{return`${t}${dt(ht((n=i.label,s=e,""===s?n:n.replace(new RegExp(at.regExpEscape(s.trim()),"gi"),"<mark>$&</mark>")),i.href))}`;var n,s},"");this.ul.innerHTML=t,0===this.ul.children.length?this.noSuggestionsFound(e)?this.open():this.close({reason:"nomatches"}):this.open()}else this.noSuggestionsFound(e)?this.open():this.close({reason:"nomatches"});else console.error("server returns wrong status"),this.noSuggestionsFound(e)?this.open():this.close({reason:"nomatches"})}catch(t){this.ul.innerHTML="",console.error(t),this.noSuggestionsFound(e)?this.open():this.close({reason:"error"})}finally{s=void 0}}else this.close({reason:"no autosuggest url"});else this.close({reason:"to little characters"})}},SetListIcon:function(t){let e="UL"===(null==t?void 0:t.tagName)||"OL"===(null==t?void 0:t.tagName)?[t]:[];e.push(...t.querySelectorAll(':is(ul,ol):not([data-module="SetListIcon"])')),e&&e.length>
4860&&e.forEach(e=>{var i;let n=!1;null!=(i=e.classList)&&i.contains("check-mark")&&(n="check");let s=[...e.querySelectorAll("li")],o=`${t.dataset.svg||t.dataset.svgUrl||"~/images/svg.svg"}`,r=n||t.dataset.icon||"";r&&(s.forEach(t=>{var e,i;t&&(null!=(e=t.firstElementChild)&&null!=(e=e.classList)&&e.contains("c-list__icon-wrapper")||null!=(i=t.firstElementChild)&&null!=(i=i.classList)&&i.contains("c-icon")||(t.innerHTML=`<span class=c-list__icon-wrapper><svg focusable="false" aria-hidden="true" class="c-icon c-icon--${r}"><title>${r}</title><use xlink:href="${o}#${r}" /></svg></span><div class=c-list__item-wrapper>${t.innerHTML}</div>`))}),e.classList.add("c-list","c-list--icon"),e.classList.remove("c-list--unstyled"))})}};async function Gs(t,e,i){if(t&&e)return Ks[t]&&"function"==typeof Ks[t]?new Ks[t](e,i):void 0}function Js(t){if(!t||!t.querySelectorAll)return;[...t.querySelectorAll("[data-module]")].forEach(t=>{const e=t.getAttribute("data-module"),i=e&&e.indexOf(" ")>-1?e.split(" "):[e],n=t.getAttribute("data-options");let s;if(n&&"string"==typeof n&&n.length>2&&n.startsWith("{"))try{s=JSON.parse(n)}catch(t){console.error(t)}i.forEach(e=>Gs(e,t,s))}),function(t){const e=[...t.querySelectorAll("table[width]")];e&&e.length>0&&e.forEach(t=>{const e=t.getAttribute("width");e&&e.endsWith("%")?t.classList.add(`c-table__width--${e.slice(0,-1)}`):t.classList.add("c-table__width--auto"),t.removeAttribute("width")})}(t)}Ks.FormValidation=function(t,{useAjax:e=!1}={}){if(!t)return;const i=t,n=e,s=[],o=i.querySelectorAll(".c-form-field");i.addEventListener("submit",async t=>{n&&t.preventDefault(),s.forEach(t=>null==t?void 0:t());const e=i.checkValidity();return e||t.defaultPrevented||t.preventDefault(),e&&!i.classList.contains("loading")&&(i.classList.add("loading"),n)?await async function(t,e){try{var i;t.classList.add("loading");const s=new FormData(t),o=await fetch(t.action,{method:"POST",body:s,credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest"}});let r=!1;const l=null==o||null==(i=o.headers)?void 0:i.get("content-type");if(null!=l&&l.includes("application/json")){if(r=await o.json(),!o.ok&&r)null==e||null==e.forEach||e.forEach(t=>{const e=t.querySelector(":is(input, select, textarea)[name]");let i=r[e.name]||r[e.id];if(i){const e=t.querySelector("label"),n=t.querySelector(".c-form-field__error");n.querySelector(".c-form-field__error-message").textContent=i.replace("{0}",e.textContent),n.classList.add("active")}});else{var n;const t=null==(n=r)?void 0:n.redirectUrl;t&&(window.location.href=t,r={redirecting:!0})}return r}}catch(t){return void console.log(t)}}(i,o).finally(({redirecting:t=!1}={})=>{t||i.classList.remove("loading")}):e}),o.forEach(t=>{t.querySelector(".c-input-date")?s.push(function(t){var e,i;const n=new Date(null==(e=t.querySelector(".c-input-date"))?void 0:e.dataset.min),s=new Date(null==(i=t.querySelector(".c-input-date"))?void 0:i.dataset.max),o={Day:t.querySelector(".c-input-date__day input"),Month:t.querySelector(".c-input-date__month input"),Year:t.querySelector(".c-input-date__year input")},r=t.querySelector("label"),l=t.querySelector(".c-form-field__error"),a=l.querySelector(".c-form-field__error-message"),c=e=>{Object.entries(o).every(([t,e])=>e.validity.valid)&&(l.classList.remove("active"),Object.entries(o).some(([t,i])=>i.value&&e)&&t.classList.add("valid"));let i=Object.entries(o).some(([t,e])=>{for(let t in e.validity)if("valid"!==t&&e.validity[t])return a.textContent=vt("BadInput",l,r),!0}),c=parseInt(o.Year.value,10),u=parseInt(o.Month.value,10)-1,d=parseInt(o.Day.value,10);if(Number.isInteger(c)||Number.isInteger(u)||Number.isInteger(d)){let t=new Date(c,u,d);isNaN(t.valueOf())||o.Year.value.length<4?(a.textContent=vt("BadInput",l,r),i=!0):s&&t.getTime()>s.getTime()?(a.textContent=vt("RangeOverflow",l,r),i=!0):n&&t.getTime()<n.getTime()&&(a.textContent=vt("RangeUnderflow",l,r),i=!0)}i?(t.classList.remove("valid"),l.classList.add("active")):(Object.values(o).some(t=>t.value)&&t.classList.add("valid"),l.classList.remove("active"))};let u=!1;return Object.entries(o).forEach(([t,e])=>{e.addEventListener("input",()=>u&&c(u)),e.addEventListener("blur",()=>{"Year"===t&&(u=!0),c(u)})}),c}(t)):s.push(function(t){const e=[...t.querySelectorAll("input:not([type='submit']), select, textarea")];if(!e.length)return;const i=t.querySelector("label"),n=t.querySelector(".c-form-field__error"),s=n.querySelector(".c-form-field__error-message"),o=o=>{if(e.every(t=>t.validity.valid))return n.classList.remove("active"),void(e.some(t=>t.value&&o)&&t.classList.add("valid"));t.classList.remove("valid"),n.classList.add("active"),e.some(t=>{for(let e in t.validity)if("valid"!==e&&t.validity[e])return s.textContent=vt(e,n,i),!0;return!1})};return e.forEach(t=>{let e=!1;t.addEventListener("input",()=>e&&o(e)),t.addEventListener("blur",()=>{e=!0,o(e)}),t.validate=()=>
486o(!0)}),o}(t))})},Ks.ClickAction=function(t,e={}){if(!t)return;let{obj:i="",act:n="",arg:s}=e;t.addEventListener("click",()=>{var t,e,o;return"function"==typeof(null==(t=window[i])?void 0:t[n])?window[i][n](s):null==(e=(o=window)[n])?void 0:e.call(o,s)})},Ks.Categories=function(t,e={}){if(!t)return;const i=[...t.querySelectorAll("[data-category-tree-tag]")],n=[],s=[];i&&i.length>0&&i.forEach(t=>{const e=t.querySelector("[data-category-tree-trigger]");n.push(e);const i=t.nextElementSibling;s.push(i),e.addEventListener("click",()=>{let t=history.state,o="true"===e.getAttribute("aria-expanded")||!1;if(o)history.replaceState(t,null," ");else{n.forEach(t=>t.setAttribute("aria-expanded",o)),s.forEach(t=>t.hidden=!0);let i=e.getAttribute("data-slug")||" ";history.replaceState(t,null,`#${i.toLowerCase().trim().replace(/\s+/gi,"-")}`)}e.setAttribute("aria-expanded",!o),i.hidden=o})});const o=(r=decodeURI(location.hash),r&&"string"==typeof r?r.substring(r.indexOf("#")+1):"").toLowerCase();var r;if(o){const t=n.find(t=>{var e;return(null==t||null==(e=t.dataset)||null==(e=e.slug)||null==(e=e.toLowerCase())||null==(e=e.trim())?void 0:e.replace(/\s+/gi,"-"))===o});t&&t.dispatchEvent(new Event("click"))}},Ks.Datalayer=function(t){var e,i;const n=t||document,s="button click",o="internal link click",r="external link click";function l(t){if(!t)return;const e={event:"event"},i=t.closest(".c-skip-links a");var n,l;if(i)return e.event_category="skiplink click",e.event_action=(null==(n=i.textContent)||null==n.trim?void 0:n.trim())||"skiplink zonder tekst",e.event_name=(null==(l=i.href)||null==l.trim?void 0:l.trim())||"skiplink zonder href",void St(e);const a=t.closest("[class*=__store-buttons] a");var c,u;if(a)return e.event_category=s,e.event_action=(null==(c=a.querySelector("img"))?void 0:c.getAttribute("alt"))||"CTA AppStore button",e.event_name=(null==(u=a.href)||null==u.trim?void 0:u.trim())||"",void St(e);const d=t.closest(".c-revealer button.c-revealer__title");var h;if(d)return e.event_category="revealer click",e.event_action=`${"true"===d.ariaExpanded?"Open":"Close"} ${(null==(h=d.textContent)||null==h.trim?void 0:h.trim())||"revealer zonder tekst"}`,e.event_name="",void St(e);const p=t.closest(":is(#content, .mfa-app) :is(button, .c-button, .c-btn, input[type=button], input[type=submit], input[type=reset])");var v,m,g;if(p)return e.event_category=s,e.event_action=(null==(v=p.textContent||p.value)||null==v.trim?void 0:v.trim())||"button zonder tekst",e.event_name=(null==(m=p.href||(null==(g=p.dataset)?void 0:g.eventName))||null==m.trim?void 0:m.trim())||"",void St(e);const f=t.closest(":is(#content, .mfa-app) :is(.c-link, a)");var b,y;if(f)return e.event_category=function(t){var e,i;const n=null==(e=window)||null==(e=e.location)?void 0:e.hostname;if(!n)return!1;let s=null==(i=window)||null==(i=i.location)?void 0:i.hostname;if(/^https?:\/\//.test(t)){let e=document.createElement("a");e.href=t,s=e.hostname}return n!==s}(f.getAttribute("href"))?r:o,e.event_action=(null==(b=f.textContent)||null==b.trim?void 0:b.trim())||"link zonder tekst",e.event_name=(null==(y=f.href)||null==y.trim?void 0:y.trim())||"",void St(e);const _=t.closest(".shared-header__nav-domain a");var w,x;if(null!=_&&_.href)return e.event_category="header link click",e.event_action=(null==(w=_.textContent)||null==w.trim?void 0:w.trim())||"headerlink zonder tekst",e.event_name=(null==(x=_.href)||null==x.trim?void 0:x.trim())||"headerlink zonder href",void St(e);const k=t.closest("#footer a");var S,$;if(null!=k&&k.href)return e.event_category="footer link click",e.event_action=(null==(S=k.textContent)||null==S.trim?void 0:S.trim())||"footerlink zonder tekst",e.event_name=(null==($=k.href)||null==$.trim?void 0:$.trim())||"footerlink zonder href",void St(e);const A=t.closest(":is(.shared-header__nav, .just-navigation__menu) a[href]");var L,C;if(A)return e.event_category="menu link click",e.event_action=(null==(L=A.textContent)||null==L.trim?void 0:L.trim())||"menulink zonder tekst",e.event_name=(null==(C=A.href)||null==C.trim?void 0:C.trim())||"",void St(e);const E=t.closest("a.shared-header__btn--shopping-cart");var T,q;if(E)return e.event_category="winkelmandje click",e.event_action=(null==(T=E.textContent)||null==T.trim?void 0:T.trim())||"winkelmandje zonder tekst",e.event_name=(null==(q=E.href)||null==q.trim?void 0:q.trim())||"",void St(e);const O=t.closest(":is(.shared-header__nav, .just-navigation__menu) :is(button, a:has(+ .just-navigation__submenu))");var N,z;if(O)return e.event_category=o,e.event_action=(null==(N=O.textContent)||null==N.trim?void 0:N.trim())||"menubutton zonder tekst",e.event_name=(null==(z=O.href)||null==z.trim?void 0:z.trim())||"",void St(e);
486const P=t.closest(".just-navigation__mijn-just a[href], a:is(.shared-header__btn-mobile--account, .c-btn--menu)");var M,V;return P?(e.event_category=r,e.event_action=(null==(M=P.textContent)||null==M.trim?void 0:M.trim())||"externallink zonder tekst",e.event_name=(null==(V=P.href)||null==V.trim?void 0:V.trim())||"",void St(e)):void 0}const a=qt(async t=>l(t));n.addEventListener("click",t=>{if(null!=t&&t.target){var e,i,n;const B=null==(e=t.target)?void 0:e.closest('a[href]:not([download], [href^="mailto:"], [href^="tel:"], [href^="sms:"]), area[href]');if(!1!==(null==t?void 0:t.defaultPrevented)||null==B||!B.hasAttribute("href")||null!=(i=(n=B.getAttribute("href")).startsWith)&&i.call(n,"#")||t.target.href===location.href){var o;const e=null==(o=t.target)?void 0:o.closest(".mfa-app");if(e){var r,c,u,d;let i=null==(r=t.target)?void 0:r.closest('cz-mfaloader, [role="dialog"]'),n=null==(c=t.target)?void 0:c.closest("input[type=radio]"),o=null==(u=t.target)?void 0:u.closest("button"),a=null==(d=t.target)?void 0:d.closest("label[for]");var h;if(n)a=null==(h=n.parentElement)?void 0:h.querySelector(`label[for="${n.getAttribute("id")}"]`);else if(a){var p;n=null==(p=a.parentElement)?void 0:p.querySelector(`input[type=radio][id="${a.getAttribute("for")}"]`)}if(n&&a){var v,m,g,f,b;const t=null!=(v=n.name)&&v.includes("additional")?"AV":null!=(m=n.name)&&m.includes("dental")?"TV":null!=(g=n.name)&&g.includes("basic")?"BV":"",i=null==(f=n)?void 0:f.closest("div[class^=InsuranceProductstyled__InsuranceProduct]");if(i){var y,_,w;const n=`${o?s:"click"}`,r=`${o?(null==(y=o.textContent||o.value)||null==y.trim?void 0:y.trim())||"button zonder tekst":i.closest("#kaart-1")?"stap 1 BV":i.closest("#kaart-2")?"stap 2":i.closest("#kaart-3")?"stap 3":"meeverzekerde"+(t?" "+t:"")}`,l={event:"event",event_category:n,event_action:r,event_name:(i.closest('[class*="NoProduct"]')?null==(_=a.querySelector('[class*="MainContainer"]'))||null==(_=_.textContent)||null==_.trim?void 0:_.trim():null==(w=a.querySelector("h3, h4"))||null==(w=w.textContent)||null==w.trim?void 0:w.trim())||r},c=""+(o?"":e.hasAttribute("id")?"HV":"MV");c&&(wt(15,c),l.customDimensions={dimension15:c}),St(l)}else if(null!=(b=n.className)&&b.startsWith("Deduct")){var x;const t="click",i=e.hasAttribute("id")?"stap 1 ER":"meeverzekerde ER",n={event:"event",event_category:t,event_action:i,event_name:(null==(x=a.textContent)||null==x.trim?void 0:x.trim())||i};n.customDimensions={dimension15:""+(e.hasAttribute("id")?"HV":"MV")},wt(15,""+(e.hasAttribute("id")?"HV":"MV")),St(n)}}else if(o)if(i){let t=o.closest("[class*=RemoveButton]");if(t){var k,S,$;let e=(null==(k=t.parentElement)||null==(k=k.querySelector("span[class*=CategoryTitle]"))||null==(k=k.textContent)||null==k.trim?void 0:k.trim())||(null==(S=t.parentElement)||null==(S=S.querySelector("button[class*=Summary]"))||null==(S=S.textContent)||null==S.trim?void 0:S.trim())||"";return void St({event:"event",event_category:s,event_action:(null==($=t.textContent||t.value)||null==$.trim?void 0:$.trim())||"button zonder tekst",event_name:e})}let i=o.closest("[class*=ShowDetailsButton]");if(i){var A,L;let t=(null==(A=i.parentElement)||null==(A=A.querySelector("span[class*=CategoryTitle]"))||null==(A=A.textContent)||null==A.trim?void 0:A.trim())||"",e=i.closest("tr[class*=TableRow]"),n="hidden"===(null==e||null==(L=e.querySelector('[style*="visibility:"]'))||null==(L=L.style)?void 0:L.visibility);return void St({event:"event",event_category:s,event_action:"details "+(n?"close":"open"),event_name:t})}let n=o.closest("[class*=SearchDropdownstyled__ButtonSubmit]");if(n){var C,E,T;let t=null==(C=e.querySelector("[class*=CompareReimbursementTablestyled__Table] > tbody"))?void 0:C.lastElementChild,i=(null==t||null==(E=t.querySelector("span[class*=CategoryTitle]"))||null==(E=E.textContent)||null==E.trim?void 0:E.trim())||"";return void St({event:"event",event_category:s,event_action:(null==(T=n.textContent||n.value)||null==T.trim?void 0:T.trim())||"button zonder tekst",event_name:i})}l(o)}else{var q,O;const t=o.closest('.mfa-app [id^="kaart-"] button'),i=null==t?void 0:t.closest("label"),n=null==t?void 0:t.closest('[id^="kaart-"]'),r=(null==n||null==(q=n.querySelector("h2"))||null==(q=q.textContent)||null==q.trim?void 0:q.trim())||(null==n||null==(O=n.id)?void 0:O.replace(/kaart-/i,"stap "))||"";if(t&&n&&!i){var N,z;return St({event:"event",event_category:s,event_action:(null==(N=t.textContent||t.value)||null==N.trim?void 0:N.trim())||"button zonder tekst",event_name:r}),null==(z=document.querySelector("button[class*=Drawerstyled__CloseBtn]"))||z.setAttribute("data-event-name",r),void(null==e||e.setAttribute("data-event-name",r))}}else{let e=t.target.closest("input[class*=Switchstyled__Input]");if(e){var P;let t=e.closest("[class*=Accordionstyled__Wrapper]"),i=(null==t||null==(P=t.querySelector("button[class*=Summary]"))||null==(P=P.textContent)||null==P.trim?void 0:P.trim())||"",n=e.checked;return void St({event:"event",event_category:s,event_action:"details "+(n?"open":"close"),event_name:i})}let i=t.target.closest("div[class*=ListFilterstyled__FilterList] input[type=checkbox]");if(i){var M;let t=(null==i||null==(M=i.labels)||null==(M=M[0])||null==(M=M.textContent)||null==M.trim?void 0:M.trim())||"",e=i.checked;return void St({event:"event",event_category:s,event_action:"filter "+(e?"on":"off"),event_name:t})}}}else{let e=t.target.closest("cz-sidepanel button:where([slot=trigger], [slot=close])"),i=location.href;if(e){var V;return void St({event:"event",event_category:s,event_action:(null==(V=e.textContent||e.value)||null==V.trim?void 0:V.trim())||"button zonder tekst",event_name:i})}a.push(t.target)}}else l(B)}});const c=J("session"),u=n.querySelector(".mfa-app[id]");if(u){const t=u.getAttribute("brand"),e=async e=>{if(e.ok)try{var i;const l=await e.json();if(null!=l&&l.Overeenkomst){var n,s,o;const{TotaalPerMaand:e,InclusiefCollectiviteitsKorting:i,BasisVerzekering:a,Collectiviteit:u,Verzekerden:d}=l.Overeenkomst;
486let h={sku:(null==a?void 0:a.Code)||"BV",name:null==a?void 0:a.Name,category:"Basisverzekering",price:null==a||null==(n=a.Premie)?void 0:n.replace(",","."),brand:null==t?void 0:t.toUpperCase(),variant:null==a?void 0:a.Type};const p={number:null==u||null==(s=u.CollectiviteitsNummer)?void 0:s.Value,name:null==u?void 0:u.CollectiviteitsNaam,isDefault:null==u?void 0:u.IsDefaultCollectivity};!p.isDefault&&p.number&&(wt(26,p.number),$t("collectiviteit",p.number));const v={number:null==u?void 0:u.IntermediairNummer,name:null==u?void 0:u.IntermediairNaam};wt(14,""+(p.isDefault||"000000019"===p.number?"individueel":"004832558"===p.number?"ZZP":v.name?"collectief via intermediair":"collectief")),$t("kanaal",""+(p.isDefault||"000000019"===p.number?"individueel":"004832558"===p.number?"ZZP":v.name?"collectief via intermediair":"collectief"));const m=null!=d&&d.Verzekeringsnemer&&null!=d&&d.Medeverzekerden?[d.Verzekeringsnemer,...d.Medeverzekerden]:[],g=null==m?void 0:m.reduce((e,i,n)=>{const{AanvullendeVerzekering:s,TandartsVerzekering:o,EigenRisico:r}=i,l="Hoofdverzekerde"===(null==i?void 0:i.Type)?"HV":`MV${n}`;if(_t("type_verzekerde",l),h.variant=`ER ${null==r?void 0:r.Bedrag}`,h.customDimensions={14:""+(p.isDefault||"000000019"===p.number?"individueel":"004832558"===p.number?"ZZP":v.name?"collectief via intermediair":"collectief"),15:l,3:p.number},e.push(h),null!=s&&s.Code){var a;const i={sku:(null==s?void 0:s.Code)||"AV",name:null==s?void 0:s.Name,category:"Aanvullendeverzekering",price:null==s||null==(a=s.Premie)?void 0:a.replace(",","."),brand:null==t?void 0:t.toUpperCase(),variant:""+(null!=s&&s.HasDentalInsurance?"Inclusief TV":"AV"),customDimensions:{15:l}};e.push(i)}if(null!=o&&o.Code){var c;const i={sku:(null==o?void 0:o.Code)||"TV",name:null==o?void 0:o.Name,category:"Tandartsverzekering",price:null==o||null==(c=o.Premie)?void 0:c.replace(",","."),brand:null==t?void 0:t.toUpperCase(),variant:"TV",customDimensions:{15:l}};e.push(i)}return e},[]);if(h.name){var r;const t={products:g,total:null==e?void 0:e.replace(",","."),discount:null==i?void 0:i.replace(",",".")};c.storeKeyValue("shoppingCart",t),null==(r=window._paq)||r.push(["ecommerceCartUpdate",t.products,t.total])}rt("shoppingcart-update",{name:"shoppingcart-update",args:{premie:e||"",discount:!("maand"===(null==l||null==(o=l.Betalingsgegevens)||null==(o=o.Betaaltermijn)||null==o.toLowerCase?void 0:o.toLowerCase()))}})}if(null!=l&&null!=(i=l.Contactgegevens)&&i.Email){const t=await async function(t){if("string"!=typeof t)return;const e=(new TextEncoder).encode(t),i=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(i)).map(t=>t.toString(16).padStart(2,"0")).join("")}(l.Contactgegevens.Email);wt(2,t),$t("user_id",t)}}catch(t){console.warn(t)}},i=async(t,e)=>{try{const i=(await t).clone();await e(i)}catch(t){console.warn(t)}return t},n=(t,e)=>!(null==t||!t.toLowerCase||null==e||!e.toLowerCase)&&t.toLowerCase().endsWith(e.toLowerCase()),s={apply:function(t,s,o){var r;const l=null==o?void 0:o[0];let{method:a}=(null==o?void 0:o.length)>1?o[1]:{};a=null==(r=a)||null==r.toLowerCase?void 0:r.toLowerCase();const u=t.apply(s,o);return n(l,"getuserselections")?i(u,t=>{setTimeout(()=>e(t),10)}):n(l,"aanmelden")&&"post"===a?(c.storeKeyValue("confirmation","aanmelden"),i(u,async t=>{if(t.ok){var e;const i=await t.json();c.storeKeyValue("aanmeldId",null==i||null==(e=i.Model)?void 0:e.AanmeldId)}})):n(l,"premies")&&"post"===a?i(u,async t=>{if(t.ok){const{PremiePerMaandAanmeldingInclusiefKorting:e,PremiePerTermijnAanmeldingInclusiefKorting:i}=await t.json();(e||i)&&setTimeout(()=>rt("shoppingcart-update",{name:"shoppingcart-update",args:{premie:i||e}}),10)}}):n(l,"hassession")?i(u,async t=>{if(t.ok){const e=await t.json();null!=e&&e.SessieVerlopen&&setTimeout(()=>rt("shoppingcart-update",{name:"shoppingcart-update",args:{premie:""}}),10)}}):u}};window.fetch=new Proxy(fetch,s)}if(null!=(e=location.pathname)&&e.endsWith("aanmelden/bedankt")||null!=(i=location.pathname)&&i.endsWith("apply/thanks")){var d;const t="aanmelden"===c.getStoredValue("confirmation"),e=c.getStoredValue("shoppingCart");if(t&&null!=e&&null!=(d=e.products)&&d.length){const t=`${Math.floor(1e3*Math.random())}`.padStart(3,"0"),i=c.getStoredValue("aanmeldId")||`${Date.now()}${t}`;wt(18,i),$t("order_id",i),setTimeout(async()=>{var t;let n=10;for(;"function"!=typeof(null==(s=window)||null==(s=s._paq)?void 0:s.push)&&n>0;){var s;await Lt(100),n--}null==(t=window._paq)||t.push(["ecommerceOrder",e.products,{orderId:i,grandTotal:e.total,discount:e.discount}]),c.removeStoredValue("shoppingCart"),c.removeStoredValue("confirmation"),c.removeStoredValue("aanmeldId")},10)}}xt()},Ks.InPageNav=function(t,e={}){if(!t)return;const i=t.closest("main");if(!i)return;const n=t.querySelector("[data-in-page-nav-box]"),s=[...i.querySelectorAll("[id][data-in-page-nav]")].map(t=>{const e=t.dataset.inPageNav||t.textContent.trim();return e&&t.id?{id:t.id,text:e}:null});if(0===s.length){const t=[...i.querySelectorAll(".c-product-display")];for(const e of t){const t=e.querySelector("h2");var o;if(t)e.id="product-display-"+`${Math.floor(1e5*Math.random())}`.padStart(5,"0"),s.push({id:e.id,text:(null==(o=t.textContent)?void 0:o.trim())||"Product Display"})}}let r=s.reduce((t,e,i)=>e?(0===t.length&&(t+='<ul class="c-list c-list--icon" data-module="SetListIcon" data-icon="chevron">'),t+=`<li><a href="#${e.id}" class="c-link"><span class="c-link__text">${e.text}</span></a></li>`):t,"");if(r.length>0&&(r+="</ul>"),n&&r.length>0)if("function"==typeof n.setHTML){const t=new Sanitizer({attributes:["class","href"],dataAttributes:!0});n.setHTML(r,{sanitizer:t})}else n.innerHTML=r},Ks.ClassNames=zt,Ks.DomElements=ce,Ks.HandleNavContainer=_e,Ks.HandleSearch=function(){Re||(Re=!0,(Ve||Me)&&(ei(),Ze(),ri(),ni(),ii(),ci(),ti()))},Ks.HandleSubmenus=ki,Ks.Navigation=class{constructor(t){this._element=t,this.init()}initOverlay(){null==Ai||Ai.addEventListener("click",()=>{Ei()})}init(){let t=window.innerWidth;Si(),this.initOverlay(),Ti(),window.addEventListener("resize",Ot(()=>{t!==window.innerWidth&&(t=window.innerWidth,Ci()&&Ei(),Ke()&&Je(),Li()&&$i("close"),qi())},250)),window.addEventListener("keyup",Ot(t=>{"Escape"===t.key&&(Ci()&&Ei(),Li()&&$i("close"))},125))}},Ks.Shared=Ce,Ks.Shoppingcart=function(t,{srLabel:e="Bereken uw premie",checkCart:i=!0,apimKey:n,cartUrl:s}={}){if(!t)return;let o=!1,r=t.closest(".shared-header__top-bar");function l(i){i&&"0"!==i?(t.innerHTML=`${i.replace(/(\d*)/,"€&nbsp;$1")}`,r||t.classList.remove("t-visuallyhidden")):(t.innerHTML=`${e}`,r||t.classList.add("t-visuallyhidden"))}if(r&&t.classList.remove("t-visuallyhidden"),et("shoppingcart-refresh"),et("shoppingcart-update"),i)if(st("shoppingcart-update",{name:"shoppingcart-update",fn:({premie:t="",discount:e=!1})=>{e?o&&"function"==typeof o&&o():l(t)}}),Ni.hasSender)st("shoppingcart-refresh",{name:"shoppingcart-refresh",fn:({premie:t=""})=>l(t)});else{function a({url:t,key:e}){return fetch(t,{credentials:"include",method:"GET",headers:{"Content-Type":"application/json","Ocp-Apim-Subscription-Key":e}}).then(function(t){if(!t.ok)throw new Error("Sorry, the server response is not correct!");return t.text().then(function(t){return t})}).catch(function(t){throw new Error("Sorry, the server response is incorrect")})}Ni.hasSender=!0;const c=Oi(a,"check-for-session");async function u({url:t,key:e}){try{let i;return i=c?await c.sendMessage({url:t,key:e}):await a({url:t,key:e}),i}catch(t){return null}}o=()=>u({url:s,key:n}).then(t=>{l(t),rt("shoppingcart-refresh",{name:"shoppingcart-refresh",args:{premie:t||""}})}),o()}},Ks.PopupOverlay=function(t,{overlayInvisibleClass:e="t-hidden"}={}){if(!t)return;const i=document.getElementById("content")||document.querySelector(".cz-sg-body");i&&(i.insertAdjacentElement("beforeend",t),t.classList.remove(e));const n=t.querySelector(".c-popup-alert"),s=t.querySelector(".c-popup-alert__button");s&&s.addEventListener("click",()=>{null==n||n.close()})},Ks.Revealer=function(t){var e,i;if(!t)return;const n=t,s="true"===(null==(e=n.dataset)?void 0:e.open)||!1,o=n.querySelector("[data-revealer-title]"),r=n.querySelector("[data-revealer-content]");if(!o||!r)return;const l=r.id,a=o.innerHTML,c=!!s;r.inert=!c,"BUTTON"!==o.tagName&&(o.innerHTML=`\n            <button type="button" class="c-revealer__title" aria-controls="${l}" aria-expanded="${c}">\n            ${null!=a?a:""}\n            </button>`);const u=null!=(i=o.querySelector("button"))?i:o;null==u||u.addEventListener("click",()=>{let t="true"===u.getAttribute("aria-expanded")||!1;u.setAttribute("aria-expanded",!t),n.dataset.open=!t,r.inert=t},!1)},Ks.ScrollToTop=function(t,{scrollToTopTargetId:e="content"}={}){var i,n,s;if(!t)return;const o=e,r="data-scroll-to-target-trigger",l="data-scroll-to-target-container",a=t.getAttribute("href"),c=a.startsWith("#")?`#${o}`:a,u=null!=(i=document.querySelector(c))?i:document.getElementsByTagName("body")[0];let d=document.querySelector(`body > [${r}]`);
486if(!d){const t=document.documentElement.querySelectorAll(`[${r}]`);d=null==t?void 0:t[0]}if(d!==t){const e=null==t?void 0:t.closest(`[${l}`);return void(e?e.parentNode.removeChild(e):null==t||t.parentNode.removeChild(t))}let h=null==(n=d)?void 0:n.closest(`[${l}`);h||(h=document.createElement("nav"),h.className="scroll-to-top__container",h.setAttribute(`${l}`,""),h.setAttribute("inert",!0),h.appendChild(d),document.body.appendChild(h)),null==(s=d)||s.addEventListener("click",t=>(St({event:"event",event_category:"button click",event_action:"Scroll to top",event_name:""}),u.scrollIntoView(),null==t||t.preventDefault(),!1)),window.addEventListener("scroll",function(t,e){if(!t||"function"!=typeof t)return;const i=Tt(t,e);return function(t){i.push(t)}}(t=>{const e=3*(document.documentElement||document.body).clientHeight;var i,n,s,o;(void 0!==window.scrollY?window.scrollY:(document.documentElement||document.body.parentNode||document.body).scrollTop)>e?(null==(i=d)||i.classList.remove("not-available"),null==(n=h)||n.removeAttribute("inert")):(null==(s=d)||s.classList.add("not-available"),null==(o=h)||o.setAttribute("inert",!0))}))},Ks.Services=function(t,e={}){if(!t)return;const i=[...t.querySelectorAll("[data-service-trigger]")],n=[...t.querySelectorAll("[data-service-panel]")];null!=i&&i.length&&i.forEach(t=>{const e=n.find(e=>e.getAttribute("aria-labelledby")===t.id);if(!e)return;const s=[...e.querySelectorAll("[data-lvl-trigger]")],o=t.getAttribute("data-slug"),r=null!=o&&o.trim()?`${o.trim().toLowerCase()}`:"";t.addEventListener("click",()=>{let o=history.state,l="true"===t.getAttribute("aria-expanded")||!1;l?history.replaceState(o,null," "):(i.forEach(t=>t.setAttribute("aria-expanded",l)),n.forEach(t=>t.hidden=!0),history.replaceState(o,null,r?`#${r}`:" "),null!=s&&s.length&&s.forEach(t=>{t.setAttribute("aria-expanded",l),t.nextElementSibling&&(t.nextElementSibling.hidden=!0)})),t.setAttribute("aria-expanded",!l),t.panel=e,e.hidden=l}),null!=s&&s.length&&(s.forEach(t=>{const e=t.getAttribute("data-slug"),i=null!=e&&e.trim()?`/${e.trim().toLowerCase()}`:"";t.addEventListener("click",()=>{let e=history.state,n="true"===t.getAttribute("aria-expanded")||!1;n?history.replaceState(e,null," "):(s.forEach(t=>{t.setAttribute("aria-expanded",n),t.nextElementSibling&&(t.nextElementSibling.hidden=!0)}),history.replaceState(e,null,r?`#${r}${i}`:" ")),t.setAttribute("aria-expanded",!n),t.nextElementSibling&&(t.nextElementSibling.hidden=n)})}),e.levelTriggers=s)});const s=(o=decodeURI(location.hash),o&&"string"==typeof o?o.substring(o.indexOf("#")+1):"").toLowerCase();var o;if(s){const t=s.split("/");if(null!=t&&t.length){const e=i.find(e=>{var i;return(null==e||null==(i=e.dataset)||null==(i=i.slug)?void 0:i.toLowerCase())===t[0]});var r;if(e)if(e.dispatchEvent(new Event("click")),null!=t&&t[1]&&null!=(r=e.panel.levelTriggers)&&r.length){const i=e.panel.levelTriggers.find(e=>{var i;return(null==e||null==(i=e.dataset)||null==(i=i.slug)?void 0:i.toLowerCase())===t[1]});i&&i.dispatchEvent(new Event("click"))}}}},Ks.SideOverlay=function(t,{name:e="zijpaneel"}){var i;const n=t;if(!n||"cz-sidepanel"!==(null==(i=n.tagName)?void 0:i.toLowerCase())||!Qn.finalized)return;et("sideOverlay_overlayClosing"),et("sideOverlay_overlayOpening"),new MutationObserver(async t=>{for(const i of t)if("attributes"===i.type&&"open"===i.attributeName)return null!=n&&n.hasAttribute("open")?rt("sideOverlay_overlayOpening",{name:e}):rt("sideOverlay_overlayClosing",{name:e})}).observe(n,{attributeFilter:["open"]}),null!=n&&n.hasAttribute("open")&&rt("sideOverlay_overlayOpening",{name:e})},Ks.VideoInteractive=function(t,e={}){if(!t)return;const i=e.interactiveVideoUrl;if(!i)return;const n=e.mobileVideoUrl,s=t.querySelector("bb-main-player"),o=t.closest(".c-two-columns");if(s){let e=i,r=t.offsetWidth;const l=async t=>(t.includes("small")&&n&&n!==e?(s.setAttribute("jsonEmbedUrl",n),e=n):t.includes("small")||i===e||(s.setAttribute("jsonEmbedUrl",i),e=i),e);if(n&&!o){const e=Ot(()=>{Yn().then(l)});new ResizeObserver(i=>{for(const n of i)n.target===t&&n.contentBoxSize[0].inlineSize!==r&&(r=n.contentBoxSize[0].inlineSize,e(r))}).observe(t)}else n&&o&&s.setAttribute("jsonEmbedUrl",n);Yn().then(l)}},Ks.WhatsThat=function(t){if(!t)return;const e=t,i=e.querySelector("[data-explanation-toggle]"),n=e.querySelector("[data-explanation-text]");null==i||i.addEventListener("click",()=>{let t="true"===i.getAttribute("aria-expanded")||!1;i.setAttribute("aria-expanded",!t),n.inert=t},!1)},Ks.SuperCents=function(t,e={}){if(!t)return;t.classList.add("c-amount");const{addEuroSign:i=!1,keepFlat:n=!1}=e;n&&t.classList.add("c-amount--flat");let s=t.innerHTML;if(s&&-1===s.indexOf('<span class="c-amount__cents">')){-1===s.indexOf("€")&&i&&(s=s.replace(/(\d*)/,"€&nbsp;$1")),t.innerHTML=s.replace(/(\d*),(\d*)/,'$1,<span class="c-amount__cents">
486$2</span>')}},Ks.AlertDialog=function(t){if(t){const e=t.querySelector("button[data-alert-dialog-close]");t.open&&void 0===(null==e?void 0:e.commandForElement)&&(null==e||e.addEventListener("click",()=>{null==t.close||t.close()}))}},Ks.ClustergridFilter=function(t){var e;if(!t)return;const i=t.querySelector("[data-clustergrid-filter]"),n=[...t.querySelectorAll("[data-clustergrid-item]")],s=null==(e=t.dataset)?void 0:e.valueAll,o=t.querySelector("[data-clustergrid-filter-output]");if(i&&n){const t=[...i.querySelectorAll("input")],e=(e=!1)=>{let i=function(t){if(t)return t.find(t=>t.checked)}(t);if(i){var r,l,a;if(n.forEach(t=>{var e;-1===(null==(e=t.dataset)||null==(e=e.filter)?void 0:e.indexOf(i.value))?t.hidden=!0:t.hidden=!1}),i.hasAttribute("data-slug")){let t=history.state,e=i.dataset.slug;e?history.replaceState(t,null,`#${e.toLowerCase()}`):history.replaceState(t,null," ")}if(St({event:"event",category:"button click",action:(null==(r=i.innerText)||null==(r=r.replace(/(\r\n\t|\n|\r\t)/gm,""))||null==(r=r.replace(/ +(?= )/g,""))?void 0:r.trim())||"",label:location.href}),e&&o)if(i.value===s)o.innerText="";else o.innerText=null!=(l=null==i||null==(a=i.dataset)?void 0:a.screenreaderText)?l:""}};i.addEventListener("change",()=>{document.startViewTransition&&n.length<=9?document.startViewTransition(()=>{e(!0)}):e(!0)});const l=(r=decodeURI(location.hash),r&&"string"==typeof r?r.substring(r.indexOf("#")+1):"").toLowerCase();if(l){const e=t.find(t=>{var e;return(null==t||null==(e=t.dataset)||null==(e=e.slug)?void 0:e.toLowerCase())===l});if(!e)return;e.checked=!0}e()}var r},Ks.CollectiveChoice=class{constructor(t){this._element=t,this.init()}init(){var t=this;if(this._choiceContainer=this._element.querySelector("[data-collective-choice]"),this._blockedMessage=this._element.querySelector("[data-collective-blocked]"),this._choiceContainer){if(this._collectiveWrapper=this._element.querySelector("[data-collective-wrapper]"),this._inputs=[...this._choiceContainer.querySelectorAll("input[type=radio]")],this._inputs&&this._inputs.length>0&&this._collectiveWrapper){const e=this._element.closest('[data-module="ChoosingAid"]'),i=qt(async function(i){if(i.checked){const n=i.value;e?await async function(t,{name:e,args:i={}}){if(!tt[t])throw new Error(`trigger with name: ${t} does not exist!`);if(tt[t].length>0&&e&&"string"==typeof e){let n=tt[t].find(t=>t.name===e&&"function"==typeof t.fn);if(n)return n.fn(i)}}(`choosingaid_collectivechoice_${n}_selected`,{name:"pakketkiezer"}):await ot(`collectivechoice_${n}_selected`),"no"==n?t._collectiveWrapper.classList.add("t-hidden"):t._collectiveWrapper.classList.remove("t-hidden")}});this._inputs.forEach(n=>{et(e?`choosingaid_collectivechoice_${n.value}_selected`:`collectivechoice_${n.value}_selected`),n.addEventListener("change",async function(){i.push(n),t._blockedMessage&&(t._blockedMessage.classList.add("t-hidden"),t._blockedMessage=!1)})})}!function(t,{fn:e,name:i}){if(tt[t]||(tt[t]=[]),e&&"function"==typeof e&&i&&"string"==typeof i){let n=tt[t].find(t=>t.name===i);n?n.fn=e:tt[t].push({name:i,fn:e})}}("shoppingcart_checkcollectivity_blocked",{fn:()=>(this._blockedMessage&&this._element.scrollIntoView(),!!this._blockedMessage),name:"collectivity_blocked"})}}},Ks.CollectiveSearch=class{constructor(t,{changeLocation:e=!1}={}){this._element=t,this._options={changeLocation:e},this._collData=null,this.init()}init(){var t=this;if(this._collSearch=this._element.querySelector("[data-collective-search]"),this._collSearch){this._description=this._element.querySelector("[data-description]"),this._error=this._element.querySelector("[data-error]");const e=()=>!!this._collSearch.classList.contains("-has-error")&&(this._collSearch.classList.remove("-has-error"),!0);this._searchBtn=this._element.querySelector("button[data-submit-search]"),this._searchInput=this._element.querySelector("input[data-search-field]");nt("searchsuggestions-selectcomplete",async function(i){e(),(i||t._validator.validate())&&t._findCollectivity(t._searchInput.value)}),window.addEventListener("pageshow",t=>{t.persisted&&(this._collSearch.classList.remove("loading"),this._searchBtn.disabled=!1,this._searchInput.disabled=!1)})}}async _findCollectivity(t){if(t&&t.trim()&&(t.length>9&&(t=t.slice(-4)),t=t.padStart(9,"0"),this._options.changeLocation)){this._collSearch.classList.add("loading"),this._searchBtn.disabled=!0,this._searchInput.disabled=!0;let e=`${location.pathname}?${t}`;location.href=e}}},Ks.SearchSuggestions=class{constructor(t,{autosuggestUrl:e="",method:i="GET",key:n="key",autosuggestKey:s="q",subtitleprefix:o="Nr:",autofocus:r=!1,sort:l=!1,filter:a=!1,minChars:c=3,maxItems:u=15,autoFirst:d=!1}={}){this._options={autosuggestUrl:e,method:i,key:n,autosuggestKey:s,subtitleprefix:o,autofocus:r,sort:l,filter:a,minChars:c,maxItems:u,autoFirst:d},this._element=t,this._form=this._element.querySelector("form"),this.input=this._element.querySelector("input.c-search-suggestions__input"),this.submitButton=this._element.querySelector("[data-search-suggestions-button]"),this.notFoundTemplate=this._element.querySelector("[data-search-suggestions-404]"),this.overMaxFoundTemplate=this._element.querySelector("[data-search-suggestions-over-max]"),this.input&&this._init()}_init(){this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.value=function(t,e=!1){if(!t||"string"!=typeof t)return"";let i=location.search&&location.search.length>0&&location.search.indexOf(t)>-1?location.search.substring(1).split("&"):location.hash&&location.hash.length>0&&location.hash.indexOf(t)>-1?location.hash.substring(1).split("&"):[];for(let t=0;t<i.length;t++)i[t]=i[t].replace(/\+/g," ");for(let s of i){var n;const i=s.split("=");if((null==(n=i[0])?void 0:n.toLowerCase())===t.toLowerCase())return e?i[1]:decodeURIComponent(i[1])}return""}(this._options.key),this.index=-1,this.filter=(t,e,i)=>!i||new RegExp(es(e.trim()),"i").test(t),this.sort=(t,e,i)=>{if(i&&isNaN(i)){const n=es(i);let s=t.naam.toLowerCase().indexOf(n.toLowerCase()),o=e.naam.toLowerCase().indexOf(n.toLowerCase());if(s<0){let e=new RegExp(n.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),"g");s=e.test(t.normalizedName)?e.lastIndex-n.length+99:t.length+199}
486if(o<0){let t=new RegExp(n.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),"g");o=t.test(e.normalizedName)?t.lastIndex-n.length+99:e.length+199}return s-o}if(i){return t.relatienummer.length-t.relatienummer.indexOf(i)+t.relatienummer.replace(/^0+/,"").indexOf(i)-(e.relatienummer.length-e.relatienummer.indexOf(i)+e.relatienummer.replace(/^0+/,"").indexOf(i))}return 0},this._createElements(),this._bindEvents(),this.list=[],it(["searchsuggestions-highlight","searchsuggestions-close","searchsuggestions-open","searchsuggestions-select","searchsuggestions-selectcomplete"]),this.input.value&&!0===this._options.autofocus&&window.setTimeout(()=>this.input.focus(),100)}_createElements(){this.container=document.createElement("div"),this.container.className="suggestions",this.input.parentNode.insertBefore(this.container,this.input),this.container.appendChild(this.input),this.innerContainer=document.createElement("div"),this.innerContainer.className="c-search-suggestions__list",this.innerContainer.setAttribute("hidden","hidden"),this._element.appendChild(this.innerContainer),this.innerContainer.innerHTML="",this.ul=document.createElement("ul"),this.innerContainer.appendChild(this.ul),this.notFound=document.createElement("div"),this.notFound.className="c-search-suggestions__list-404",this.innerContainer.appendChild(this.notFound),this.status=document.createElement("span"),this.status.className="t-visuallyhidden",this.status.setAttribute("role","status"),this.status.setAttribute("aria-live","assertive"),this.status.setAttribute("aria-atomic","true"),this.status.setAttribute("aria-relevant","additions"),this.container.appendChild(this.status)}_bindEvents(){if(this.input){["click","touchend","focus"].forEach(t=>{this.input.addEventListener(t,()=>{this.timeoutID&&"number"==typeof this.timeoutID&&window.clearTimeout(this.timeoutID),this.timeoutID=window.setTimeout(()=>{this.inputValueBackup&&this.input.value&&this.input.value===this.inputValueBackup&&(this.notFoundBackup&&this.notFoundBackup.length>0||this.ulBackup&&this.ulBackup.length>0)?(this.ul.innerHTML=this.ulBackup,this.notFound.innerHTML=this.notFoundBackup,this.open()):!this.input.value||this.input.value.length<this._options.minChars?this.close({reason:"clear"}):this.inputValueBackup&&this.input.value&&this.input.value.toLowerCase().startsWith(this.inputValueBackup.toLowerCase())?(this._element.classList.add("loading"),this.showSuggestions(this.input.value,!0)):(this._element.classList.add("loading"),this.evaluate())},200)})});const t=/[<>{}[\]$"'/]/g;this.input.addEventListener("input",()=>(this.input.value=this.input.value.replace(t,""),this.inputValueBackup&&this.input.value&&this.input.value.toLowerCase().startsWith(this.inputValueBackup.toLowerCase())?this.showSuggestions(this.input.value,!0):this.wrapEvaluation())),this.input.addEventListener("blur",()=>this.close({reason:"blur"})),this.input.addEventListener("keydown",t=>{const e=t.key;if(this.opened){if("Enter"===e)this.selected?(t.preventDefault(),this.select()):this.submitButton?this.submitButton.click():(this.close({reason:"non-select"}),ot("searchsuggestions-selectcomplete"));else if("Escape"===e){if(this._element.classList.contains("loading"))return void t.preventDefault();this.close({reason:"esc"})}else if("Up"===e||"ArrowUp"===e||"Down"===e||"ArrowDown"===e){t.preventDefault();let i=this.ul.children.length;if(i<=0){let t=this.notFound.querySelector(".c-link");if(t){let e=t.getAttribute("aria-selected")&&"true"===t.getAttribute("aria-selected");t.setAttribute("aria-selected",!e)}}else this["ArrowUp"===e||"Up"===e?"previous":"next"](i)}}else"Enter"===e&&(this.submitButton?this.submitButton.click():ot("searchsuggestions-selectcomplete"))})}this.submitButton&&this.submitButton.addEventListener("click",t=>{t.preventDefault(),this._element.classList.add("loading"),this.evaluate(!0)}),this.input&&this.input.form&&(this.input.form.addEventListener("submit",()=>this.close({reason:"submit"})),this.input.form.addEventListener("reset",t=>{this._element.classList.contains("loading")?t.preventDefault():this.close({reason:"clear"})})),this.ul&&this.ul.addEventListener("mousedown",t=>{let e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),this.select(e,t.target))}})}set list(t){"string"==typeof t&&t.indexOf(",")>-1?this._list=t.split(/\s*,\s*/):this._list=t,document.activeElement===this.input&&this.wrapEvaluation()}get list(){return this._list}get selected(){return this.index>-1}
486get opened(){return!this.innerContainer.hasAttribute("hidden")}close(t){if(!this.opened)return;const e=t&&t.reason&&"clear"===t.reason?10:200;window.setTimeout(()=>{this.innerContainer.setAttribute("hidden",""),this.notFound.innerHTML="",this.ul.innerHTML=""},e),this.index=-1,ot("searchsuggestions-close",t||{})}open(){this.innerContainer.removeAttribute("hidden"),this._options.autoFirst&&-1===this.index&&this.goto(0),ot("searchsuggestions-open")}next(t){this.goto(this.index<t-1?this.index+1:-1)}previous(t){this.goto(this.selected?this.index-1:t-1)}goto(t){const e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,ot("searchsuggestions-highlight",this.suggestions[this.index]))}select(t,e){if(t?this.index=function(t){let e=0;for(;t.previousElementSibling;)t=t.previousElementSibling,e++;return e}(t):t=this.ul.children[this.index],t){const t=this.suggestions[this.index];this.input.value=t.relatienummer,this.inputValueBackup=this.input.value,this.close({reason:"select"}),ot("searchsuggestions-selectcomplete",t)}}wrapEvaluation(){this.timeoutID&&"number"==typeof this.timeoutID&&window.clearTimeout(this.timeoutID),this.timeoutID=window.setTimeout(()=>{this._element.classList.add("loading"),this.evaluate()},400)}noSuggestionsFound(t){return!!(this.notFoundTemplate&&this.notFoundTemplate.innerHTML&&this.notFoundTemplate.innerHTML.length>0)&&(this.notFound.innerHTML=this.notFoundTemplate.innerHTML.replace(/\{0\}/g,t),!0)}moreMaxSuggestionsFound(t){return!!(this.overMaxFoundTemplate&&this.overMaxFoundTemplate.innerHTML&&this.overMaxFoundTemplate.innerHTML.length>0)&&(this.notFound.innerHTML=this.overMaxFoundTemplate.innerHTML.replace(/\{0\}/g,this._options.maxItems).replace(/\{1\}/g,t),!0)}async evaluate(t){const e=this.input.value,i=window.AbortController?new AbortController:{},n=i.signal||{};let s;if(t&&e.length>1||e.length>=this._options.minChars)if(this._options.autosuggestUrl){this.inputValueBackup="",this.notFound.innerHTML="",this.ul.innerHTML="",s&&i.abort&&i.abort();let t="",o={},r=this._options.key?this._options.key:"key";"POST"===this._options.method?(t=this._options.autosuggestUrl,o={maxResults:this._options.maxResults},o[r]=e):t=`${this._options.autosuggestUrl}&${this._options.autosuggestKey}=${e}`;try{s=fetch(t,{signal:n,method:this._options.method||"GET",headers:{"Content-Type":"application/json; charset=utf-8"},body:"POST"===this._options.method?JSON.stringify(o):void 0});let i=await s,r=await i.json();r&&r.isSucces&&r.data?(this._list=r.data.collectiviteiten,this.showSuggestions(e)):(this._element.classList.remove("loading"),this.noSuggestionsFound(e)?this.open():this.close({reason:"nomatches"}))}catch(t){this._element.classList.remove("loading"),console.error(t),this.noSuggestionsFound(e)?this.open():this.close({reason:"error"})}finally{s=void 0,this.input.value&&this.input.value.length>=2&&(this.inputValueBackup=`${this.input.value}`,this.notFoundBackup=`${this.notFound.innerHTML}`,this.ulBackup=`${this.ul.innerHTML}`)}}else this._element.classList.remove("loading"),this.close({reason:"no autosuggest url"});else this._element.classList.remove("loading"),this.close({reason:"to little characters"})}showSuggestions(t,e){if(this._list.length>0){this.index=-1;const i=this._list.map(t=>new Xn(t)).filter(i=>this.filter(isNaN(t)?i.normalizedName:i.relatienummer,t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),e)).sort((t,e)=>this._options.sort?t.normalizedName<e.normalizedName?-1:t.normalizedName>e.normalizedName?1:0:0).sort((e,i)=>this._options.sort?this.sort(e,i,t.trim()):0);this.suggestions=i.slice(0,this._options.maxItems);let n=this.suggestions.reduce((e,i)=>`${e}${function(t){return`<li class="c-collective__c-suggestionlist" aria-selected="false">${t}</li>`}(`<span class="c-search-suggestion__title">${ts(i.naam,t)}</span><span class="c-search-suggestion__subtitle">${this._options.subtitleprefix} ${ts(i.relatienummer,t)}`)}`,"");this.ul.innerHTML=n,0===this.ul.children.length?this.noSuggestionsFound(t)?this.open():this.close({reason:"nomatches"}):i.length>this._options.maxItems?(this.moreMaxSuggestionsFound(t),this.open()):(this.notFound.innerHTML="",this.open())}else this.noSuggestionsFound(t)?this.open():this.close({reason:"nomatches"});this._element.classList.remove("loading")}},Ks.ConversationEngine=function(t){var e;if(!t)return!1;const i=t.querySelector("form[data-conversation-form]"),n=t.querySelector('button[type="reset"]'),s=t.querySelector("[data-conversation-result]"),o=t.querySelector("[data-conversation-live-area]"),r=[...t.querySelectorAll("fieldset.c-conversation__suggestion button[aria-pressed][data-question-id]")],l=null==i?void 0:i.querySelector('input[type="text"], input[type="search"]'),a=t.querySelector("[data-conversation-feedback-dialog]"),c=null==a?void 0:a.querySelector("[data-conversation-feedback]"),u=null==a?void 0:a.querySelector("[data-conversation-feedback-thanks]"),d=null==c?void 0:c.querySelector('button[data-feedback-value="positive"]'),h=null==c?void 0:c.querySelector('button[data-feedback-value="negative"]'),p=null==c?void 0:c.querySelector("form");d&&d.addEventListener("click",()=>{"true"===h.getAttribute("aria-expanded")&&(h.setAttribute("aria-expanded","fal
486se"),null==p||p.setAttribute("hidden",""),null==p||p.reset()),_({trace_id:g,is_correct:!0,comment:""}).then(()=>{null==c||c.setAttribute("hidden",""),null==p||p.setAttribute("hidden",""),null==p||p.reset(),null==u||u.removeAttribute("hidden")})}),h&&h.addEventListener("click",()=>{h.setAttribute("aria-expanded","true"),null==p||p.removeAttribute("hidden")}),p&&p.addEventListener("submit",t=>{t.preventDefault();const e=new FormData(p).get("feedbacksuggestie")||"";_({trace_id:g,is_correct:!1,comment:e}).then(()=>{null==c||c.setAttribute("hidden",""),null==p||p.setAttribute("hidden",""),null==p||p.reset(),null==u||u.removeAttribute("hidden")})});const v=t.querySelector("cz-conversation");if(!v)return!1;let m=(null==l||null==(e=l.value)?void 0:e.trim())||"",g="";const f=()=>{null==u||u.setAttribute("hidden",""),null==h||h.setAttribute("aria-expanded","false"),null==p||p.setAttribute("hidden",""),null==p||p.reset(),null==c||c.removeAttribute("hidden")};it(["conversation-update","conversation-updated","conversation-read-more-toggled"]),st("conversation-read-more-toggled",{name:"Jet",fn:({isOpen:t})=>{!t||null!=a&&a.open||(async()=>{f(),await Lt(300),null==a||a.show()})()}}),st("conversation-updated",{name:"Jet",fn:({error:e,qid:n})=>{var s;g=n||"",null==o||o.removeAttribute("aria-busy"),t.classList.remove("busy"),null==i||null==(s=i.classList)||s.remove("loading"),e&&(m="")}});const b=Ot(e=>{null==o||o.setAttribute("aria-busy","true"),t.classList.add("busy"),m=e,null!=a&&a.open&&(null==a||a.close(),f()),rt("conversation-update",{name:"Jet",args:{query:e}}).then(()=>{null==v||v.scrollIntoView({block:"center"})})},300),y=t=>{t?null==s||s.classList.remove("t-collapsed"):null==s||s.classList.add("t-collapsed")};null==i||i.addEventListener("submit",e=>{var n;if(e.preventDefault(),t.classList.contains("busy"))return;const s=null==l?void 0:l.value.trim();s&&s!==m&&(null==r||r.forEach(t=>{t.setAttribute("aria-pressed","false")}),null==i||null==(n=i.classList)||n.add("loading"),b(s),y(!0))}),null==r||r.forEach(e=>{e.addEventListener("click",()=>{var i;if(t.classList.contains("busy"))return;const n=null==(i=e.dataset)?void 0:i.questionId;if(!n)return;r.forEach(t=>{t!==e&&t.setAttribute("aria-pressed","false")});let s=n;if("false"===e.getAttribute("aria-pressed")){if(e.setAttribute("aria-pressed","true"),s===m)return}else{var o;e.setAttribute("aria-pressed","false");(null==v||null==(o=v.textContent)?void 0:o.trim())&&(s="")}b(s),y(!!s)})}),null==l||l.addEventListener("input",t=>{var e;const i=l.value.trim(),n=null==v||null==(e=v.textContent)?void 0:e.trim();"string"==typeof i&&0===i.length&&n&&(b(i),y(!1),null==r||r.forEach(t=>{t.setAttribute("aria-pressed","false")}))}),["change","keyup","focus","blur"].forEach(t=>l.addEventListener(t,()=>{var t;null!=(t=l.value)&&t.trim()?null==n||n.removeAttribute("hidden"):null==n||n.setAttribute("hidden","")})),i.addEventListener("reset",e=>{t.classList.contains("busy")?e.preventDefault():setTimeout(()=>{var t;const e=l.value.trim(),i=null==v||null==(t=v.textContent)?void 0:t.trim();"string"==typeof e&&0===e.length&&i&&(b(e),y(!1),null==r||r.forEach(t=>{t.setAttribute("aria-pressed","false")})),l.focus()},100)}),null==n||n.addEventListener("blur",()=>{var t;null!=(t=l.value)&&t.trim()?n.removeAttribute("hidden"):n.setAttribute("hidden","")});const _=async t=>{try{let e=fetch("/api/conversation/feedback",{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},credentials:"same-origin"});return await e}catch(t){return t}}},Ks.MetaBar=function(t){var e;if(!t)return;const i=J("session"),n=[...t.querySelectorAll(".c-meta-bar__list-item")];let s=null!=(e=i.getStoredValue("activeItemIndex"))?e:null==n?void 0:n.findIndex(t=>{var e;return null==t||null==(e=t.classList)||null==e.contains?void 0:e.contains("active")});(!s||s<1)&&(s=1,i.storeKeyValue("activeItemIndex",s)),Yn().then(t=>{var e;null!=t&&t.includes("small")&&(null==n||n.forEach(t=>{var e;null==(e=t.classList)||null==e.remove||e.remove("active")}),null==n||null==(e=n[s-1])||null==(e=e.classList)||null==e.add||e.add("active"),s++,s>(null==n?void 0:n.length)&&(s=1),i.storeKeyValue("activeItemIndex",s))})},Ks.SearchFilter=function(t,e={}){if(!t)return;const i=t.closest("[data-search-filter-form]");i&&t.addEventListener("click",()=>i.submit())},Ks.SearchForm=function(t){if(!t)return;const e=t.querySelector("form"),i=t.querySelector('input[type="search"]'),n=t.querySelector('button[type="submit"]'),s=t.querySelector('button[type="reset"]');if(!e||!i||!n)return;["change","keyup","focus","blur"].forEach(t=>i.addEventListener(t,()=>{var t;null!=(t=i.value)&&t.trim()?(n.removeAttribute("aria-disabled"),null==s||s.removeAttribute("hidden")):(n.setAttribute("aria-disabled","true"),null==s||s.setAttribute("hidden",""))})),e.addEventListener("submit",t=>{var e;null!=(e=i.value)&&e.trim()?(n.focus(),n.classList.add("loading"),setTimeout(()=>{n.classList.remove("loading")},1e3)):t.preventDefault()}),e.addEventListener("reset",()=>{setTimeout(()=>{i.focus()},10)}),window.addEventListener("pageshow",t=>{t.persisted&&(n.removeAttribute("aria-disabled"),n.classList.remove("loading"),null==s||s.removeAttribute("hidden"))})},Ks.ToggleButtonListener=function(t,{triggerName:e="",className:i="t-hidden",reverse:n=!1}={}){st("toggle-button-trigger",{name:e,fn:({checked:e=!1})=>{null!=i||(i="t-hidden"),e&&!n||!e&&n?"t-hidden"===i?t.classList.remove(i):t.classList.add(i):"t-hidden"===i?t.classList.add(i):t.classList.remove(i)}})},Ks.ToggleButton=function(t,{triggerName:e=""}={}){if("BUTTON"!==(null==t?void 0:t.tagName)&&("INPUT"!==(null==t?void 0:t.tagName)||"checkbox"!==(null==t?void 0:t.type)))return!1;const i="INPUT"===t.tagName&&"checkbox"===t.type;et("toggle-button-trigger");let n=t.getAttribute("aria-checked");n||i||t.setAttribute("aria-checked",!1);let s="true"===(null==n?void 0:n.toLowerCase())||t.checked;const o=t.hasAttribute("aria-expanded")&&t.hasAttribute("aria-controls"),r=o?document.getElementById(t.getAttribute("aria-controls")):null;t.addEventListener("click",Ot(i=>{s=!s,n&&t.setAttribute("aria-checked",s),o&&(t.setAttribute("aria-expanded",s),r&&"DIALOG"===r.tagName&&(s?r.show():r.close())),e&&rt("toggle-button-trigger",{name:e,args:{checked:s}})}),20)},Ks.Tooltip=function(t,{position:e="top"}={}){if(!t)return;const i=["top","right","bottom","left"],n=i.includes(e)?e:i[0],s=t.querySelector("[data-tooltip-trigger]"),o=t.querySelector("[data-tooltip-content]"),r=document.createElement("div");if(r.role="status",t.appendChild(r),!s||!o||!r)return;const l=o.innerHTML,a=()=>{r.innerHTML="",r.removeAttribute("style")},c=()=>{window.setTimeout(function(){if(!r.innerHTML){r.innerHTML=`<div class="c-content c-tooltip__bubble c-tooltip__bubble--${n}">${l}</div>`;const{left:t,top:e,right:i,bottom:s}=r.firstElementChild.getBoundingClientRect();r.style.setProperty("--tooltip-bubble-left",`${t<0?Math.abs(t)+16:i>window.innerWidth?window.innerWidth-i-16:0}px`),r.style.setProperty("--tooltip-bubble-top",`${e<0?Math.abs(e):s>window.innerHeight?window.innerHeight-s:0}px`)}},100)};s.addEventListener("click",()=>{a(),c()}),t.addEventListener("keyup",({key:t})=>{"Escape"===t&&a()}),t.addEventListener("focusout",()=>{window.setTimeout(function(){t.contains(document.activeElement)||a()},40)})},Ks.FileUpload=class{constructor(t,{maximum:e=5,fileSize:i=5,sizeUnit:n=1048576,url:s=""}={}
486){this._element=t,this._options={maximum:e,fileSize:i,sizeUnit:n,url:s},this.init()}init(){const t=[...this._element.querySelectorAll("[data-file-picker]")];if(t&&t.length>0){var e;const i=this._options.fileSize*this._options.sizeUnit;this._filepickers=t.map(t=>this.setupFilePicker(t,i)),null==(e=this._filepickers[0])||null==(e=e.fileinput)||e.setAttribute("required",!0)}this._addButton=this._element.querySelector("[data-file-add] button"),this._addButton.addEventListener("click",()=>this.addFilePicker())}rearrange(t){const e=this._filepickers.find(e=>e.filepicker==t),i=this._filepickers.filter(({filepicker:t})=>t&&!t.classList.contains("t-hidden"));if(i&&i.length>0){const{length:n,[n-1]:s}=i;n>1?(t.classList.add("t-hidden"),this._filepickers=[...this._filepickers.filter(e=>e.filepicker!=t),e],this._addButton.insertAdjacentElement("beforebegin",t),this._addButton.classList.remove("t-hidden"),this._filepickers.forEach(({fileinput:t})=>{t.value&&t.value.length>0?t.setAttribute("required",!0):t.removeAttribute("required")}),this._filepickers[0].fileinput&&this._filepickers[0].fileinput.setAttribute("required",!0)):s.fileinput&&s.fileinput.setAttribute("required",!0)}}displayNotChosen(t){t.filenameLabel&&(t.filenameLabel.innerHTML=t.filenameLabel.getAttribute("data-empty"),t.fileinputView&&t.fileinputView.classList.contains("c-file-upload__choice--made")&&t.fileinputView.classList.remove("c-file-upload__choice--made"))}setupFilePicker(t,e=5242880){return function(t,i){const n=t.querySelector("input[type=file]"),s=t.querySelector("[data-file-upload-input]"),o=t.querySelector("[data-input-file-view]"),r=t.querySelector("[data-input-file-name]"),l=t.querySelector("[data-input-file-remove]");let a;const c=t=>{let i="";if(n.files.length>0){if(n.files[0].size>e)return n.setCustomValidity("The selected file must not be larger than 5 MB"),null==n.validate||n.validate(!0),void(n.value="");n.setCustomValidity("")}n.value&&n.value.length>0?i=n.value.split("\\").pop():a&&(n.files=a),n.setAttribute("required",!0),n.blur(),i&&r&&(r.innerHTML=i,o&&!o.classList.contains("c-file-upload__choice--made")&&o.classList.add("c-file-upload__choice--made"))},u=e=>{n.value&&n.value.length>0&&(n.value=""),i(t),r&&(r.innerHTML=r.getAttribute("data-empty"),o&&o.classList.contains("c-file-upload__choice--made")&&o.classList.remove("c-file-upload__choice--made"))},d=t=>{n.removeAttribute("required"),n.setCustomValidity(""),n.value&&n.value.length>0&&(a=n.files),s.classList.remove("-has-error")};return n&&(n.addEventListener("change",c),n.addEventListener("click",d),n.addEventListener("cancel",()=>{n.setAttribute("required",!0)})),l&&l.addEventListener("click",u),{filepicker:t,fileinput:n,fileinputHolder:s,fileinputView:o,filenameLabel:r,fileremove:l}}(t,t=>this.rearrange(t))}async addFilePicker(){const t=this._filepickers.filter(({filepicker:t})=>t&&!t.classList.contains("t-hidden")),e=this._filepickers.filter(({filepicker:t})=>t&&t.classList.contains("t-hidden"));if(t&&0!==t.length)if(e&&e.length>0){const{0:i,length:n}=e,{length:s,[s-1]:o}=t;1===t.length&&(o.fileinput.setAttribute("required",!0),null==o.fileinput.validate||o.fileinput.validate()),o.fileinput.value?(o.fileinput.setAttribute("required",!0),i.filepicker.classList.remove("t-hidden"),1===n&&this._addButton.classList.add("t-hidden")):(o.fileinput.setAttribute("required",!0),null==o.fileinput.validate||o.fileinput.validate(),t.length>1&&setTimeout(()=>{o.fileinput.removeAttribute("required")},300))}else this._addButton.classList.add("t-hidden")}},Ks.ComboboxAutocomplete=class{constructor(t){var e,i,n;if(!t)return;this.comboboxNode=t.querySelector("input[role=combobox]"),this.buttonNode=t.querySelector("button[type=button]"),this.listboxNode=t.querySelector("ul[role=listbox]"),this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.hasHover=!1,this.isNone=!1,this.isList=!1,this.isBoth=!1,this.allOptions=[],this.option=null,this.firstOption=null,this.lastOption=null,this.filteredOptions=[],this.filter="";const s=null==(e=this.comboboxNode)||null==(e=e.getAttribute("aria-autocomplete"))?void 0:e.toLowerCase();"string"==typeof s?(this.isNone="none"===s,this.isList="list"===s,this.isBoth="both"===s):this.isNone=!0,this.comboboxNode.addEventListener("keydown",t=>this.onComboboxKeyDown(t)),this.comboboxNode.addEventListener("keyup",t=>this.onComboboxKeyUp(t)),this.comboboxNode.addEventListener("click",t=>this.onComboboxClick(t)),this.comboboxNode.addEventListener("focus",t=>this.onComboboxFocus(t)),this.comboboxNode.addEventListener("blur",t=>this.onComboboxBlur(t)),document.body.addEventListener("pointerup",t=>
486this.onBackgroundPointerUp(t),!0),this.listboxNode.addEventListener("pointerover",t=>this.onListboxPointerover(t)),this.listboxNode.addEventListener("pointerout",t=>this.onListboxPointerout(t));const o=null==(i=this.listboxNode)?void 0:i.getElementsByTagName("li");for(let t=0;t<o.length;t++){const e=o.item(t);this.allOptions.push(e),e.addEventListener("click",t=>this.onOptionClick(t)),e.addEventListener("pointerover",t=>this.onOptionPointerover(t)),e.addEventListener("pointerout",t=>this.onOptionPointerout(t))}this.filterOptions(),null==(n=this.buttonNode)||n.addEventListener("click",t=>this.onButtonClick(t))}getLowercaseContent(t){return t.textContent.toLowerCase()}isOptionInView(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}setActiveDescendant(t){t&&this.listboxHasVisualFocus?(this.comboboxNode.setAttribute("aria-activedescendant",t.id),this.isOptionInView(t)||t.scrollIntoView({behavior:"smooth",block:"nearest"})):this.comboboxNode.setAttribute("aria-activedescendant","")}setValue(t){this.filter=t,this.comboboxNode.value=this.filter,this.comboboxNode.setSelectionRange(this.filter.length,this.filter.length),this.filterOptions()}setOption(t,e){"boolean"!=typeof e&&(e=!1),t&&(this.option=t,this.setCurrentOptionStyle(this.option),this.setActiveDescendant(this.option),this.isBoth&&(this.comboboxNode.value=this.option.textContent,e?this.comboboxNode.setSelectionRange(this.option.textContent.length,this.option.textContent.length):this.comboboxNode.setSelectionRange(this.filter.length,this.option.textContent.length)))}setVisualFocusCombobox(){this.listboxNode.classList.remove("focus"),this.comboboxNode.parentNode.classList.add("focus"),this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1,this.setActiveDescendant(!1)}setVisualFocusListbox(){this.comboboxNode.parentNode.classList.remove("focus"),this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0,this.listboxNode.classList.add("focus"),this.setActiveDescendant(this.option)}removeVisualFocusAll(){this.comboboxNode.parentNode.classList.remove("focus"),this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.listboxNode.classList.remove("focus"),this.option=null,this.setActiveDescendant(!1)}filterOptions(){var t;this.isNone&&(this.filter="");let e=null,i=this.option,n=this.filter.toLowerCase();this.filteredOptions=null==(t=this.allOptions)?void 0:t.filter(t=>!(t.hasAttribute("disabled")||t.classList.contains("t-hidden"))&&(0===n.length||this.getLowercaseContent(t).indexOf(n)>-1)),this.listboxNode.innerHTML="",this.filteredOptions.forEach(t=>this.listboxNode.appendChild(t));const{0:s,length:o,[length-1]:r}=this.filteredOptions;return o>0?(this.firstOption=s,this.lastOption=r,e=i&&this.filteredOptions.includes(i)?i:this.firstOption):(this.firstOption=null,this.lastOption=null),e}setCurrentOptionStyle(t){this.filteredOptions.forEach(e=>{e===t?(e.setAttribute("aria-selected","true"),this.listboxNode.scrollTop+this.listboxNode.offsetHeight<e.offsetTop+e.offsetHeight?this.listboxNode.scrollTop=e.offsetTop+e.offsetHeight-this.listboxNode.offsetHeight:this.listboxNode.scrollTop>e.offsetTop+2&&(this.listboxNode.scrollTop=e.offsetTop)):e.removeAttribute("aria-selected")})}getPreviousOption(t){if(t!==this.firstOption){let e=this.filteredOptions.indexOf(t);return this.filteredOptions[e-1]}return this.lastOption}getNextOption(t){if(t!==this.lastOption){let e=this.filteredOptions.indexOf(t);return this.filteredOptions[e+1]}return this.firstOption}doesOptionHaveFocus(){return""!==this.comboboxNode.getAttribute("aria-activedescendant")}isOpen(){return"block"===this.listboxNode.style.display}isClosed(){return"block"!==this.listboxNode.style.display}hasOptions(){return this.filteredOptions.length}open(){this.listboxNode.style.display="block",this.comboboxNode.setAttribute("aria-expanded","true"),this.buttonNode.setAttribute("aria-expanded","true")}close(t){"boolean"!=typeof t&&(t=!1),!t&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.hasHover)||(this.setCurrentOptionStyle(!!this.option),this.listboxNode.style.display="none",this.comboboxNode.setAttribute("aria-expanded","fal
486se"),this.buttonNode.setAttribute("aria-expanded","false"),this.setActiveDescendant(!1),this.comboboxNode.parentNode.classList.add("focus"))}onComboboxKeyDown(t){let e=!1,i=t.altKey;if(!t.ctrlKey&&!t.shiftKey){switch(t.key){case"Enter":this.listboxHasVisualFocus&&this.setValue(this.option.textContent),this.close(!0),e=!0;break;case"Down":case"ArrowDown":this.filteredOptions.length>0&&(i?this.open():(this.open(),this.listboxHasVisualFocus||this.isBoth&&this.filteredOptions.length>1?(this.setOption(this.getNextOption(this.option),!0),this.setVisualFocusListbox()):(this.setOption(this.firstOption,!0),this.setVisualFocusListbox()))),e=!0;break;case"Up":case"ArrowUp":this.hasOptions()&&(this.listboxHasVisualFocus?this.setOption(this.getPreviousOption(this.option),!0):(this.open(),i||(this.setOption(this.lastOption,!0),this.setVisualFocusListbox()))),e=!0;break;case"Esc":case"Escape":this.isOpen()?(this.close(!0),this.filter=this.comboboxNode.value,this.filterOptions(),e=!0):this.comboboxNode.value&&(this.setValue(""),this.comboboxNode.value="",this.option=null,e=!0);break;case"Tab":this.close(!0),this.listboxHasVisualFocus&&this.option&&this.setValue(this.option.textContent);break;case"Home":this.comboboxNode.setSelectionRange(0,0),e=!0;break;case"End":{const t=this.comboboxNode.value.length;this.comboboxNode.setSelectionRange(t,t),e=!0;break}}e&&(t.stopPropagation(),t.preventDefault())}}isPrintableCharacter(t){return 1===t.length&&t.match(/\S| /)}onComboboxKeyUp(t){let e=!1,i=null,n=t.key;if(this.isPrintableCharacter(n)&&(this.filter+=n),this.comboboxNode.value.length<this.filter.length&&(this.filter=this.comboboxNode.value,this.option=null,this.filterOptions()),"Escape"!==t.key&&"Esc"!==t.key){switch(t.key){case"Backspace":this.setCurrentOptionStyle(!1),this.filter=this.comboboxNode.value,this.option=null,this.filterOptions(),e=!0;break;case"Left":case"ArrowLeft":case"Right":case"ArrowRight":case"Home":case"End":this.isBoth?this.filter=this.comboboxNode.value:(this.option=null,this.setCurrentOptionStyle(!1)),e=!0;break;default:this.isPrintableCharacter(n)&&(this.setCurrentOptionStyle(!1),e=!0,this.isList||this.isBoth?(i=this.filterOptions(),i?(this.isClosed()&&this.comboboxNode.value.length&&this.open(),0===this.getLowercaseContent(i).indexOf(this.comboboxNode.value.toLowerCase())?(this.option=i,(this.isBoth||this.listboxHasVisualFocus)&&(this.setCurrentOptionStyle(i),this.isBoth&&this.setOption(i))):(this.option=null,this.setCurrentOptionStyle(!1))):(this.close(),this.option=null,this.setActiveDescendant(!1))):this.comboboxNode.value.length&&this.open())}e&&(t.stopPropagation(),t.preventDefault())}}onComboboxClick(){this.isOpen()?this.close(!0):this.open()}onComboboxFocus(){this.filter=this.comboboxNode.value,this.filterOptions(),this.option=null,this.setCurrentOptionStyle(null)}onComboboxBlur(){this.removeVisualFocusAll()}onBackgroundPointerUp(t){this.comboboxNode.contains(t.target)||this.listboxNode.contains(t.target)||this.buttonNode.contains(t.target)||(this.comboboxHasVisualFocus=!1,this.setCurrentOptionStyle(null),this.removeVisualFocusAll(),setTimeout(this.close.bind(this,!0),300))}onButtonClick(){this.isOpen()?this.close(!0):this.open(),this.comboboxNode.focus()}onListboxPointerover(){this.hasHover=!0}onListboxPointerout(){this.hasHover=!1,setTimeout(this.close.bind(this,!1),300)}onOptionClick(t){this.comboboxNode.value=t.target.textContent,this.close(!0)}onOptionPointerover(){this.hasHover=!0,this.open()}onOptionPointerout(){this.hasHover=!1,setTimeout(this.close.bind(this,!1),300)}},Ks.CompareInsuranceTable=class{constructor(t,{toggleclass:e="c-toggle-detail-on",highlightclass:i="c-table-row-highlight",searchPlaceholder:n="Begin hier met typen",searchText:s="Geen passend resultaat gevonden"}={}){this._element=t,this._options={toggleclass:e,highlightclass:i,searchPlaceholder:n,searchText:s},this.init()}init(){var t,e;this._tableBody=this._element.querySelector("table tbody"),this._revealerColl=this._element.querySelector(".c-revealer-collection"),this._selectBox=this._element.querySelector(".c-insurance-compare__select .c-insurance-compare__combobox__list"),this._selectOptions=this._selectBox?[...this._selectBox.querySelectorAll("li[role=option]")]:[],this._noneleft=this._element.querySelector("[data-insurance-compare-none]"),this._tablerows=this._tableBody?[...this._tableBody.querySelectorAll("tbody tr")].map(t=>{var e;return{row:t,name:null==(e=t.dataset)?void 0:e.tablerow,toggleBtn:t.querySelector("th button[data-module=ToggleButton]"),rem:t.querySelector("button[data-insurance-compare-hider]")}}):[],this._revealerrows=this._revealerColl?[...this._revealerColl.querySelectorAll("[data-revealerrow]")].map(t=>{var e;return{row:t,name:null==(e=t.dataset)?void 0:e.revealerrow,toggleBtn:t.querySelector("button[data-module=ToggleButton]"),rem:t.nextElementSibling,rev:t.querySelector("[data-revealer-title]")}}):[],(null==(t=this._tablerows)?void 0:t.length)>0&&(null==(e=this._revealerrows)?void 0:e.length)>0&&(this._comboBox=this._element.querySelector('input[role="combobox"]'),this._selectConfirm=this._element.querySelector("button[data-confirm-selection]"),this._selectConfirm&&this._selectConfirm.addEventListener("click",()=>{var t,e;let i=this._selectOptions.length>=1&&null!=(t=this._comboBox)&&t.value?null==(e=this._selectOptions)?void 0:e.find(t=>t.innerText===this._comboBox.value):"";if(i){if(i.innerText){let t;try{t=JSON.parse(this._selectConfirm.dataset.confirmDatalayerClick),t.event="event",t.label=i.innerText,setTimeout(()=>St(t),100)}catch(t){console.error(t)}}const t=this._tablerows.find(t=>
486t.name===i.id),e=this._revealerrows.find(t=>t.name===i.id);t&&e&&(this._tableBody.appendChild(t.row),t.row.classList.remove("t-hidden"),this._revealerColl.appendChild(e.row),this._revealerColl.appendChild(e.rem),e.row.classList.remove("t-hidden"),i.className="t-hidden",i.setAttribute("disabled",!0),this._comboBox.value="",this._noneleft.classList.add("t-hidden"),Lt(150).then(()=>{t.row.classList.remove(this._options.highlightclass),e.row.classList.remove(this._options.highlightclass)}),Lt(1e3).then(()=>{e.row.classList.remove("t-background-color-transition")}))}}),this._tablerows.forEach(t=>{t.rem&&t.rem.addEventListener("click",()=>{t.row.classList.add(this._options.highlightclass),Lt(200).then(()=>{this.removeRow(t),this.addToSelector(t.name)});const e=this._revealerrows.find(e=>e.name===t.name);this.removeRow(e)})}),this._revealerrows.forEach(t=>{var e,i;t.rem&&null!=(e=t.rem.classList)&&e.contains("c-insurance-compare__removal__wrapper")&&(null==(i=t.rem)||i.firstElementChild.addEventListener("click",()=>{t.row.classList.add("t-background-color-transition"),t.row.classList.add(this._options.highlightclass),Lt(200).then(()=>{this.removeRow(t),this.addToSelector(t.name)});const e=this._tablerows.find(e=>e.name===t.name);this.removeRow(e)}))}))}addToSelector(t){var e;const i=null==(e=this._selectOptions)?void 0:e.find(e=>e.id===t);i.className="",i.removeAttribute("disabled");let n=this._selectOptions;null!=n&&n.some(t=>!t.hasAttribute("disabled"))&&(this._comboBox.disabled=!1,this._selectConfirm.disabled=!1),null!=n&&n.every(t=>!t.hasAttribute("disabled"))&&this._noneleft.classList.remove("t-hidden")}removeRow(t){t&&t.row&&(t.toggleBtn&&"true"==t.toggleBtn.getAttribute("aria-checked")&&t.toggleBtn.click(),t.rev&&"true"==t.rev.getAttribute("aria-expanded")&&t.rev.click(),t.row.classList.add("t-hidden"),t.row.classList.add(this._options.highlightclass),t.rev&&t.row.classList.add("t-background-color-transition"))}},Ks.SearchCompensation=class{constructor(t,{meldingCollectiviteitNietGevonden:e="Collectiviteit niet gevonden",meldingCollectiviteitNietBeschikbaar:i="Collectiviteit niet beschikbaar",collectiviteit:n,verzekeringslabel:s="cz",peilJaar:o="2024",defaultCategoryId:r="00022299338",defaultCollectiviteit:l="000000019",displayCollectiviteitKeuzeBox:a=!0,matchPrice:c=",-",matchPercentage:u="%",displayJaarKeuze:d=!0}={}){this._element=t,this._options={meldingCollectiviteitNietGevonden:e,meldingCollectiviteitNietBeschikbaar:i,collectiviteit:n,verzekeringslabel:s,peilJaar:o,defaultCategoryId:r,defaultCollectiviteit:l,displayCollectiviteitKeuzeBox:a,matchPrice:c,matchPercentage:u,displayJaarKeuze:d},this._init()}_init(){var t,e,i,n=this;this.toggleSearch=this._element.querySelector("[data-toggle-search]"),this.collectiveSearch=this._element.querySelector("[data-collective-search]"),this.searchField=this._element.querySelector("[data-search-field]"),this.categoryId=this._element.querySelector("[data-category-id]"),this.collectivePackage=this._element.querySelector("[data-collective-package]"),this.collectiveLabel=null==(t=this.collectivePackage)?void 0:t.querySelector("[data-collective-label]"),this.resetCollectivity=null==(e=this.collectivePackage)?void 0:e.querySelector("[data-reset-search]"),this.yearTabs=this._element.querySelectorAll("[data-collective-year] [data-item]"),this.verzekeringsLabels=this._element.querySelectorAll("[data-label]"),this.collectiveGraph=this._element.querySelector("[data-collective-graph]"),this.collectiveWrapper=this._element.querySelector("[data-collective-wrapper]"),this.searchContentSection=this._element.querySelector("[data-search-content]"),this.revealer=this._element.querySelector("[data-revealer]"),null==(i=this.yearTabs)||i.forEach(t=>{t.addEventListener("click",()=>{var e;this.yearTabs.forEach(t=>t.classList.remove("selected")),t.classList.add("selected"),null==(e=this.collectiveGraph)||e.setAttribute("year",t.textContent)})}
486),this.verzekeringsLabels.forEach(t=>{t.addEventListener("click",()=>{var e,i,n,s;this.verzekeringsLabels.forEach(t=>t.classList.remove("selected")),t.classList.add("selected"),null==(e=this.collectiveGraph)||e.setAttribute("brand",null==(i=t.textContent)?void 0:i.replace(/\s/g,"")),null==(n=this.collectiveGraph)||n.setAttribute("category",null==(s=t.dataset)?void 0:s.category)})}),this.toggleSearch.addEventListener("click",()=>this._onToggleSearchClick()),this.resetCollectivity&&this.resetCollectivity.addEventListener("click",()=>this._onResetCollectivityClick()),this.showYearSection(this._options.displayJaarKeuze),this.getCollectivity()!==("000000000"+this._sanitizeInput(this._options.defaultCollectiviteit)).slice(-9)&&(this.collectiveLabel.textContent=kt("collectiviteitsnaam")),this._processCollectivity(!0,!1);nt("searchsuggestions-selectcomplete",async function(t){t&&(t.relatienummer?(n.setCollectivity(t),n.searchField.value=t.relatienummer,n._processCollectivity(!1,!1)):n.showError(n._options.meldingCollectiviteitNietGevonden))})}showYearSection(t){const e=this._element.querySelector("[data-collective-year]");t&&(null==e||e.classList.remove("t-hidden"))}setCollectivity(t){var e;this._options.collectiviteit=t.relatienummer,null==(e=this.collectiveGraph)||e.setAttribute("collectivity",t.relatienummer),wt(26,t.relatienummer),$t("collectiviteit",t.relatienummer),$t("collectiviteitsnaam",t.naam),this.collectiveLabel.textContent=t.naam}getCollectivity(){var t;let e=null!=(t=kt("collectiviteit"))?t:this._options.defaultCollectiviteit;return("000000000"+this._sanitizeInput(e)).slice(-9)}showError(t){var e;let i=this._element.querySelector("[data-input]");i&&i.classList.add("-has-error");let n=this._element.querySelector("[data-error]");return n&&(n.innerHTML=t,n.classList.remove("t-hidden")),this.showLoadingCollectivity(!1),null==(e=this._element.querySelector(".c-input__input"))||e.focus(),"true"!==this.toggleSearch.getAttribute("aria-expanded")&&(this._sanitizeInput(this._options.collectiviteit)===this._sanitizeInput(this._options.defaultCollectiviteit)?(this.toggleSearch.classList.remove("t-hidden"),this.toggleSearch.setAttribute("aria-hidden",!1),this.collectivePackage.classList.add("t-hidden"),this.collectivePackage.setAttribute("aria-hidden",!0)):(this.toggleSearch.classList.add("t-hidden"),this.toggleSearch.setAttribute("aria-hidden",!0),this.collectivePackage.classList.remove("t-hidden"),this.collectivePackage.setAttribute("aria-hidden",!1)),this.showErrorMessage(t)),!1}showErrorMessage(t){let e=this._element.querySelector("[data-message]");return e&&(e.innerHTML=t,e.classList.remove("t-hidden")),!1}showLoadingCollectivity(t){return new Promise(e=>{t?this.searchContentSection.classList.add("loading"):this.searchContentSection.classList.remove("loading"),setTimeout(e,300)})}_onToggleSearchClick(){"false"!==this.toggleSearch.getAttribute("aria-expanded")&&(this.searchField.value="")}_onResetCollectivityClick(){this.searchField.value="",this.setCollectivity({relatienummer:("000000000"+this._sanitizeInput(this._options.defaultCollectiviteit)).slice(-9),naam:""}),this._processCollectivity(!0,!0)}_sanitizeInput(t){return"number"==typeof t?t:parseInt(t,10)}async _processCollectivity(t,e){if(await this.showLoadingCollectivity(!0),e&&this.showYearSection(!1),this.toggleSearch.classList.remove("t-hidden"),this.toggleSearch.setAttribute("aria-hidden",!1),this.collectivePackage.classList.add("t-hidden"),this.collectivePackage.setAttribute("aria-hidden",!0),this.getCollectivity()!==("000000000"+this._sanitizeInput(this._options.defaultCollectiviteit)).slice(-9))this.showLoadingCollectivity(!1),this.collectivePackage.classList.remove("t-hidden"),this.collectivePackage.setAttribute("aria-hidden",!1),"true"!==this.toggleSearch.getAttribute("aria-hidden")&&("true"!==this.searchContentSection.getAttribute("aria-hidden")&&this.toggleSearch.dispatchEvent(new Event("click")),this.toggleSearch.classList.add("t-hidden"),this.toggleSearch.setAttribute("aria-hidden",!0));else{if(!t)return this.showError(this._options.meldingCollectiviteitNietGevonden),!1;this.collectiveLabel.textContent="",this.showLoadingCollectivity(!1)}}},Ks.CzCombobox=vs,Ks.CzInteractiveVideo=ms,Ks.CzConversation=$s,Ks.CzAvtableloader=us,Ks.CzMfaloader=Ps,Ks.CzVergelijkerloader=Us,J().storeKeyValue("scriptUrl",import.meta.url),window.activateModuleOnElement=Gs,window.processModules
486InsideElement=Js,Js(document),Gs("Datalayer",document);
487//# sourceMappingURL=bundle.esm.js.map

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.