PageSourceSearch

https://www.allesoversport.nl/wp-content/themes/theme-fusion/asset…/build/frontend.js?ver=a670e04bdff48334db37

js allesoversport.nl collected 2026-10-03 19:17:10 UTC 47,362 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e,t={1401(e,t,s){var n,a=s(428),i=s.n(a),r=(s(6484),s(8647),s(2453),s(3029),s(8013),s(4705));class l{constructor(){if(l.instance)return l.instance;this.events(),l.instance=this}static getInstance(){return l.instance}events(){this.transformImageLinks(),this.transformHeadingsOfThemeCards(),this.transformSearchInput(),setTimeout((()=>{this.addAriaLabelToSearchMicSvg(),this.changeSearchResultsSortAriaLabel(),this.addLabelToSearchResultsSort(),this.addSrOnlyTextToLinkTargetBlank()}),100)}transformImageLinks(){if(!document.body.classList.contains("single-article"))return;const e=document.querySelectorAll(".wp-block-image");e&&e.forEach((e=>{const t=e.querySelector("a");if(!t)return;const s=e.querySelector("img").getAttribute("alt");s&&s.length>0?t.setAttribute("aria-label","Bekijk afbeelding in volledige grootte: "+s):t.setAttribute("aria-hidden","true")}))}transformHeadingsOfThemeCards(){const e=document.querySelectorAll(".preset--theme-overview");e&&e.forEach((e=>{const t=e.querySelectorAll(".card-title");t&&t.forEach((e=>{const t=e.querySelector("a");t&&(t.classList.add("card-title"),e.outerHTML=e.innerHTML)}))}))}transformSearchInput(){setTimeout((()=>{const e=document.querySelectorAll(".searchbar__input, .search-filter__search-input");e.length&&e.forEach((e=>{const t=e.getAttribute("placeholder");t&&t.length>0?e.setAttribute("aria-label",t):e.setAttribute("aria-label","Waar ben je naar op zoek?")}))}),0)}addAriaLabelToSearchMicSvg(){const e=document.querySelector(".search-filter__search-input + div > div > div");if(!e)return;const t=(e,t)=>{switch(t){case"el_xS0FRzQjJ":e.setAttribute("aria-label","Microfoon inschakelen");break;case"el_hiibMG0x-":e.setAttribute("aria-label","Microfoon in gebruik");break;case"el_D1rEpH2zj":e.setAttribute("aria-label","Microfoon niet beschikbaar");break;default:e.setAttribute("aria-label","Microfoon")}},s=e.querySelector("svg");t(s,s.id),new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.addedNodes.length>0&&e.addedNodes.forEach((e=>{if(e instanceof SVGElement&&"svg"===e.nodeName.toLowerCase()){const s=e.id||"";t(e,s)}}))}))})).observe(e,{childList:!0,subtree:!1})}changeSearchResultsSortAriaLabel(){const e=document.querySelector(".search-results__sort");e&&e.setAttribute("aria-label","Sorteer zoekresultaten")}
1addLabelToSearchResultsSort(){const e=document.querySelector(".search-results__sort");if(!e)return;const t=document.createElement("div");t.classList.add("search-results__sort-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e);const s=document.createElement("label");s.setAttribute("for","sort"),s.textContent="Sorteer",t.insertBefore(s,e),e.setAttribute("id","sort")}addSrOnlyTextToLinkTargetBlank(){document.querySelectorAll('a[target="_blank"]').forEach((e=>{const t=document.createElement("span");t.classList.add("sr-only"),t.textContent="(opent in nieuw tabblad)",e.appendChild(t)}))}}n=l,(0,r.A)(l,"instance",new n);const o=l;var c,d=s(9281),u=s(2776),h=s(6584),m=s.n(h);class g{constructor(){if((0,r.A)(this,"counter",void 0),(0,r.A)(this,"counterTarget",void 0),(0,r.A)(this,"countAnimation",void 0),g.instance)return g.instance;this.counter=document.querySelector(".yard-blocks-counter"),this.counterTarget=document.querySelector(".yard-blocks-counter__number"),this.counter&&this.initCountAnimation(),this.events(),g.instance=this}static getInstance(){return g.instance}
1events(){m().offset(150),m()(".yard-blocks-counter").once("enter",(()=>{this.countAnimation.play()}))}initCountAnimation(){const e={counterNumber:0},t=parseInt(this.counterTarget.innerHTML);this.countAnimation=(0,u.A)({targets:e,autoplay:!1,counterNumber:t,duration:2500,delay:1700,round:1,easing:"easeOutQuad",update:()=>{this.counterTarget.innerHTML=e.counterNumber}})}}c=g,(0,r.A)(g,"instance",new c);const p=g;var f;class b{constructor(){if((0,r.A)(this,"gridToggle",document.getElementById("js-facet-toggle-grid")),(0,r.A)(this,"listToggle",document.getElementById("js-facet-toggle-list")),(0,r.A)(this,"view",document.getElementById("js-facet-toggle-view")),(0,r.A)(this,"searchInput",void 0),b.instance)return b.instance;this.events(),b.instance=this}static getInstance(){return b.instance}events(){i()(document).on("facetwp-refresh",(()=>this.onFacetRefresh())),i()(document).on("facetwp-loaded",(e=>this.onFacetLoad(e))),this.gridToggle&&this.listToggle&&(this.gridToggle.addEventListener("click",(e=>this.onClickViewSelection(e))),this.listToggle.addEventListener("click",(e=>this.onClickViewSelection(e))))}onFacetRefresh(){this.view&&this.view.classList.add("loading")}onFacetLoad(e){this.view&&(this.view.classList.remove("loading"),this.scrollToTop(e),this.addAriaLabelToSearch())}scrollToTop(e){if(e.preventDefault(),!this.view)return;const t=this.view.getBoundingClientRect().top+window.scrollY-150;FWP.loaded&&screen.width<767&&window.scrollTo({top:t,behavior:"smooth"})}onClickViewSelection(e){if(!this.view||e.target.classList.contains("active")||!this.listToggle||!this.gridToggle)return;const t="grid-view",s="list-view",n="grid"===e.target.dataset.toggle?t:s;this.view.classList.remove(t,s),this.view.classList.add(n),this.listToggle.classList.toggle("active"),this.gridToggle.classList.toggle("active")}addAriaLabelToSearch(){if(this.searchInput=document.querySelector(".facetwp-search"),this.searchInput){const e=this.searchInput.placeholder;return e?this.searchInput.setAttribute("aria-label",e):this.searchInput.setAttribute("aria-label","Zoek op trefwoord")}}}f=b,(0,r.A)(b,"instance",new f);const v=b;var y;class E{constructor(){if((0,r.A)(this,"bodyClassTabbing","js-user-is-tabbing"),E.instance)return E.instance;this.events(),E.instance=this}static getInstance(){return E.instance}events(){window.addEventListener("keydown",(e=>this.handleFirstTab(e))),window.addEventListener("mousedown",(()=>this.handleMouseDownOnce()))}handleFirstTab(e){"Tab"===e.key&&(document.body.classList.add(this.bodyClassTabbing),window.removeEventListener("keydown",this.handleFirstTab))}handleMouseDownOnce(){document.body.classList.remove(this.bodyClassTabbing),window.removeEventListener("mousedown",this.handleMouseDownOnce)}}y=E,(0,r.A)(E,"instance",new y);const w=E;var S;class _{constructor(){if(_.instance)return _.instance;this.events(),_.instance=this}static getInstance(){return _.instance}events(){this.activateBootstrapValidation()}activateBootstrapValidation(){const e=document.getElementsByClassName("needs-validation");Array.prototype.filter.call(e,(function(e){e.addEventListener("submit",(function(t){e.checkValidity()||(t.preventDefault(),t.stopPropagation()),e.classList.add("was-validated")}),!1)}))}}S=_,(0,r.A)(_,"instance",new S);const k=_;var A=s(4208),L=s(2078),I=s(1083),N=s(3317),T=s.n(N);class B extends(T()){constructor(e,t){if(super(e,t),(0,r.A)(this,"dropdownMenus",void 0),B.instance)return B.instance;this.dropdownMenus=document.querySelectorAll(".dropdown-menu"),this.events(),B.instance=this}static getInstance(e=document.querySelector("#js-nav"),t={tolerance:{up:5,down:5}}){return B.instance||(B.instance=new B(e,t).init()),B.instance}events(){this.onOutsideDropdownClick()}onOutsideDropdownClick(){document.addEventListener("click",(e=>{e.target.closest(".dropdown-menu")||this.closeDropdowns()}))}closeDropdowns(){this.dropdownMenus.forEach((e=>{e.classList.remove("show")}))}}(0,r.A)(B,"instance",void 0);const M=B;var x;class C{constructor(){if((0,r.A)(this,"classSearchOpen","js-search--open"),(0,r.A)(this,"overlay",void 0),(0,r.A)(this,"searchBtn",void 0),(0,r.A)(this,"searchbar",void 0),(0,r.A)(this,"toggleBtn",void 0),(0,r.A)(this,"closeBtn",void 0),(0,r.A)(this,"trapFocus",void 0),C.instance)return C.instance;this.overlay="overlay",this.searchbar=document.getElementById("js-searchbar"),this.toggleBtn=document.getElementById("js-searchbar-toggle-btn"),this.closeBtn=document.getElementById("js-searchbar-close-btn"),this.events(),C.instance=this}static getInstance(){return C.instance}events(){this.toggleBtn.addEventListener("click",(e=>this.onToggleBtnClick(e))),document.addEventListener("keyup",(e=>this.inputOnKeyUp(e))),this.closeBtn.addEventListener("click",(()=>this.closeSearch())),this.closeBtn.addEventListener("click",(()=>this.handleClosingFocus())),document.body.addEventListener("click",(e=>this.onBodyClick(e))),window.addEventListener("DOMContentLoaded",(()=>{this.searchBtn=document.querySelector(".searchbar__submit"),this.searchBtn&&this.searchBtn.addEventListener("click",(e=>this.onSearchBtnclick(e)))}))}onToggleBtnClick(e){e.stopPropagation(),document.body.classList.contains(this.classSearchOpen)?(this.closeSearch(),this.handleClosingFocus()):this.openSearch()}openSearch(){j.getInstance().closeMenu(),M.getInstance().freeze(),document.body.classList.add(this.classSearchOpen),this.toggleBtn.setAttribute("aria-expanded","true"),(0,A.mh)(this.searchbar);const e=document.querySelector(".searchbar__input");this.focusAndOpenKeyboard(e,300),this.trapFocus=(0,I.A)({context:".searchbar",defaultToContext:!0})}closeSearch(){M.getInstance().unfreeze(),document.body.classList.remove(this.classSearchOpen),(0,A.fY)(this.searchbar),this.toggleBtn.setAttribute("aria-expanded","fal
1se"),this.trapFocus&&this.trapFocus.disengage()}handleClosingFocus(){this.toggleBtn.focus()}inputOnKeyUp(e){document.body.classList.contains(this.classSearchOpen)&&27===e.keyCode&&(this.closeSearch(),this.handleClosingFocus())}onBodyClick(e){document.body.classList.contains(this.classSearchOpen)&&e.target!==this.searchbar&&!this.searchbar.contains(e.target)&&(this.closeSearch(),this.handleClosingFocus())}onSearchBtnclick(e){const t=document.querySelector(".searchbar__input");var s=new KeyboardEvent("keydown",{altKey:!1,bubbles:!0,cancelable:!0,code:"Enter",composed:!0,ctrlKey:!1,detail:0,isComposing:!1,key:"Enter",location:0,metaKey:!1,repeat:!1,shiftKey:!1});t.dispatchEvent(s)}focusAndOpenKeyboard(e,t){if(e){const s=document.createElement("input");s.style.position="absolute",s.style.left=e.offsetLeft+"px",s.style.height="0",s.style.opacity="0",document.body.appendChild(s),s.focus(),setTimeout((function(){e.focus(),e.click(),document.body.removeChild(s)}),t)}}}x=C,(0,r.A)(C,"instance",new x);const F=C;var q;class O{constructor(){if((0,r.A)(this,"toggleMenuButton",void 0),(0,r.A)(this,"classMenuOpen","js-menu--open"),(0,r.A)(this,"menu",void 0),(0,r.A)(this,"menuItems",void 0),(0,r.A)(this,"closeButton",void 0),(0,r.A)(this,"trapFocus",void 0),O.instance)return O.instance;this.closeButton=document.getElementById("js-menu-close-btn"),this.toggleMenuButton=document.getElementById("js-menu-toggler"),this.menu=document.getElementById("js-menu"),this.menuItems=document.querySelectorAll(".menu .nav-link"),this.trapFocus=L.K(this.menu,{allowOutsideClick:!0,checkCanFocusTrap:e=>{const t=e.map((e=>new Promise((t=>{const s=setInterval((()=>{"hidden"!==getComputedStyle(e).visibility&&(t(),clearInterval(s))}),50)}))));return Promise.all(t)},clickOutsideDeactivates:!0,initialFocus:!1}),this.events(),O.instance=this}static getInstance(){return O.instance}events(){this.observeHash(),this.toggleMenuButton&&this.toggleMenuButton.addEventListener("click",(e=>this.onMenuButtonClick(e))),document.addEventListener("keyup",(e=>this.inputOnKeyUp(e))),this.closeButton&&(this.closeButton.addEventListener("click",(()=>this.closeMenu())),this.closeButton.addEventListener("click",(()=>this.handleClosingFocus())))}observeHash(){"open-menu"==window.location.hash.substring(1)&&this.toggleMenuButton&&this.menu&&this.openMenu()}onMenuButtonClick(e){e.stopPropagation(),document.body.classList.contains(this.classMenuOpen)?(this.closeMenu(),this.handleClosingFocus()):this.openMenu()}openMenu(){this.menu&&this.toggleMenuButton&&(F.getInstance().closeSearch(),(0,A.mh)(this.menu),document.body.classList.add(this.classMenuOpen),this.animateMenuItems(),this.toggleMenuButton.setAttribute("aria-expanded","true"),this.trapFocus&&this.trapFocus.activate())}closeMenu(){this.menuItems&&this.menu&&this.toggleMenuButton&&(this.menuItems.forEach((e=>e.classList.remove("nav-link--show"))),document.body.classList.remove(this.classMenuOpen),(0,A.fY)(this.menu),this.toggleMenuButton.setAttribute("aria-expanded","false"),this.trapFocus&&this.trapFocus.deactivate())}handleClosingFocus(){this.toggleMenuButton.focus()}inputOnKeyUp(e){document.body.classList.contains(this.classMenuOpen)&&27===e.keyCode&&(this.closeMenu(),this.handleClosingFocus())}animateMenuItems(){this.menuItems&&this.menuItems.forEach(((e,t)=>{setTimeout((()=>{e.classList.add("nav-link--show")}),80*t)}))}}q=O,(0,r.A)(O,"instance",new q);const j=O;var $;class D{constructor(){if((0,r.A)(this,"submenuLinks",void 0),(0,r.A)(this,"menus",void 0),(0,r.A)(this,"mobileScreenWidth",void 0),(0,r.A)(this,"pageContent",void 0),(0,r.A)(this,"navbar",void 0),D.instance)return D.instance;this.submenuLinks=document.querySelectorAll(".dropdown-toggle"),this.mobileScreenWidth=window.matchMedia("(max-width: 1350px)"),this.pageContent=document.querySelector(".page-content"),this.navbar=document.querySelector("#js-nav"),this.events(),D.instance=this}static getInstance(){return D.instance}events(){this.onParentMenuItemClick(),this.onBodyTap(),this.handleScrollLock()}onParentMenuItemClick(){this.submenuLinks&&this.submenuLinks.forEach((e=>{e.setAttribute("href","#q"),e.addEventListener("click",(e=>this.toggleSubmenu(e)))}))}toggleSubmenu(e){e.stopPropagation();const t=e.target.parentNode.querySelector(".dropdown-menu"),s=!t.classList.contains("show");this.closeSubmenus(),s&&t.classList.add("show")}closeSubmenus(){this.menus=document.querySelectorAll(".dropdown >
1 .dropdown-menu.show"),this.menus.forEach((e=>{e.classList.remove("show")}))}onBodyTap(){this.pageContent&&this.mobileScreenWidth.matches&&this.pageContent.addEventListener("touchend",(()=>this.closeNavbarMenu()))}closeNavbarMenu(){i()(".navbar-collapse").collapse("hide")}handleScrollLock(){const e=i()("#navbarContent");e.on("show.bs.collapse",(()=>{(0,A.mh)(this.navbar)})),e.on("hide.bs.collapse",(()=>{(0,A.fY)(this.navbar)}))}}$=D,(0,r.A)(D,"instance",new $);const R=D;var z;class H{constructor(){if((0,r.A)(this,"progressbar",void 0),H.instance)return H.instance;this.progressbar=document.querySelector("#progressbar-indicator"),this.events(),H.instance=this}static getInstance(){return H.instance}events(){this.progressbar&&document.addEventListener("scroll",(()=>this.handleScroll()))}handleScroll(){const e=(document.body.scrollTop||document.documentElement.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight-1e3)*100;this.progressbar.style.width=e+"%"}}z=H,(0,r.A)(H,"instance",new z);const U=H;var P;class W{constructor(){if((0,r.A)(this,"supElements",void 0),(0,r.A)(this,"listElements",void 0),(0,r.A)(this,"linkElements",void 0),W.instance)return W.instance;this.supElements=document.querySelectorAll(".article__lead sup:not(.fn), .article__content sup:not(.fn)"),this.listElements=document.querySelectorAll(".reference-list__content ol li"),this.events(),W.instance=this}static getInstance(){return W.instance}events(){this.supElements&&this.listElements&&(this.transformListElements(),this.transformSupElements()),this.enableSmoothScrollAnchorLink()}transformListElements(){this.listElements.forEach(((e,t)=>{e.id="reference-list-"+(t+1)}))}transformSupElements(){this.supElements.forEach((e=>{const t=this.createLink(e);this.wrapElement(e,t)})),this.addEventListenerToLinks()}createLink(e){const t=document.createElement("a");return t.href=this.createRef(e),t.classList.add("reference-list__link"),t.setAttribute("aria-label","Spring naar bron in bronnenlijst, verplaatst focus naar bron"),t}createRef(e){const t=e.innerHTML.match(/\d+/g);return null!==t?"#reference-list-"+t[0]:"#reference-list"}wrapElement(e,t){e.parentNode.insertBefore(t,e),t.appendChild(e)}addEventListenerToLinks(){this.linkElements=document.querySelectorAll(".reference-list__link"),this.linkElements.forEach((e=>{e.addEventListener("click",(()=>{this.addHighlightToListItem(e)}))}))}addHighlightToListItem(e){const t=e.getAttribute("href").replace("#","");this.listElements.forEach((e=>{t===e.id&&(e.classList.add("is-highlight"),setTimeout((()=>{e.classList.remove("is-highlight")}),5e3))}))}enableSmoothScrollAnchorLink(){document.querySelectorAll('a[href^="#"]').forEach((e=>{e.addEventListener("click",(t=>{const s=document.querySelector(e.getAttribute("href"));if(!s)return;const n=s.getBoundingClientRect().top+window.scrollY-250;window.scrollTo({top:n,behavior:"smooth"})}))}))}}P=W,(0,r.A)(W,"instance",new P);const V=W;var K;class Q{constructor(){if((0,r.A)(this,"socialShareToggle",void 0),(0,r.A)(this,"socialShareWrapper",void 0),Q.instance)return Q.instance;this.socialShareToggle=document.getElementById("js-social-share-toggle"),this.socialShareWrapper=document.getElementById("js-social-share-wrapper"),this.events(),Q.instance=this}static getInstance(){return Q.instance}events(){this.socialShareToggle&&this.socialShareWrapper&&this.socialShareToggle.addEventListener("click",(()=>this.toggleSocialShare()))}toggleSocialShare(){let e="true"===this.socialShareToggle.getAttribute("aria-expanded");this.socialShareWrapper.classList.toggle("is-open"),this.socialShareToggle.setAttribute("aria-expanded",!e)}}K=Q,(0,r.A)(Q,"instance",new K);const Y=Q;var Z,G=s(6654);class X{constructor(){if((0,r.A)(this,"button",void 0),X.instance)return X.instance;this.button=document.querySelector("#js-scroll-to-top"),this.events(),X.instance=this}static getInstance(){return X.instance}events(){document.addEventListener("scroll",(()=>this.handleScroll())),this.button.addEventListener("click",(()=>{const e=(0,G.A)({context:"#main",defaultToContext:!1,strategy:"quick"});e&&e.focus(),window.scrollTo({top:0,behavior:"smooth"})}))}handleScroll(){const e=document.documentElement,t=e.scrollHeight-e.clientHeight;e.scrollTop/t>.5?this.button.classList.add("show"):this.button.classList.remove("show")}}Z=X,(0,r.A)(X,"instance",new Z);const J=X;var ee,te=s(1196),se=s.n(te);class ne{constructor(){if((0,r.A)(this,"countNumber",{}),(0,r.A)(this,"countAnimation",void 0),(0,r.A)(this,"staggeringAnimation",void 0),(0,r.A)(this,"statistics",document.querySelectorAll(".yard-blocks-statistics")),(0,r.A)(this,"statisticsColumns",document.querySelectorAll(".yard-blocks-statistics__wrapper .yard-blocks-grid-column")),(0,r.A)(this,"statisticsNumber",document.querySelectorAll(".yard-blocks-statistics__number")),(0,r.A)(this,"statisticsNumberLength",this.statisticsNumber.length),ne.instance)return ne.instance;this.statistics.length>0&&(this.initStaggeringAnimation(),this.initCountUpAnimation(),this.events()),ne.instance=this}static getInstance(){return ne.instance}
1events(){m().offset(150),m()(".yard-blocks-statistics__wrapper").once("enter",(()=>{this.countAnimation.play(),this.staggeringAnimation.play()}))}initStaggeringAnimation(){this.staggeringAnimation=(0,u.A)({targets:this.statisticsColumns,autoplay:!1,translateY:[100,0],delay:u.A.stagger(300),easing:"easeOutQuint",opacity:[0,1]})}initCountUpAnimation(){this.fillCountNumber();const e=this.assignAnimatedItems(),t={targets:this.countNumber,autoplay:!1,duration:2e3,easing:"easeOutQuad",round:1,update:()=>this.countUpNumbers()};this.countAnimation=(0,u.A)({...e,...t})}fillCountNumber(){for(let e=0;e<this.statisticsNumberLength;e++)this.countNumber[e]=0}assignAnimatedItems(){const e=new Object;for(let t=0;t<this.statisticsNumberLength;t++)e[t]=this.statisticsNumber.item(t).innerHTML;return e}countUpNumbers(){for(let e=0;e<this.statisticsNumberLength;e++)this.statisticsNumber.item(e).innerHTML=String(this.addThousandSeperator(this.countNumber[e]))}addThousandSeperator(e){const t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),t.join(".")}}ee=ne,(0,r.A)(ne,"instance",new ee);const ae=ne;var ie,re=s(7815);class le{constructor(){if((0,r.A)(this,"toggleDivFilter",void 0),(0,r.A)(this,"toggleDivMap",void 0),(0,r.A)(this,"toggleBtnFilter",void 0),(0,r.A)(this,"toggleBtnMap",void 0),le.instance)return le.instance;this.toggleDivFilter=document.querySelector(".lectoraat-filter"),this.toggleDivMap=document.querySelector(".lectoraat-map"),this.toggleBtnFilter=document.querySelector(".display-filter"),this.toggleBtnMap=document.querySelector(".display-map"),this.events(),le.instance=this}static getInstance(){return le.instance}events(){this.toggleBtnFilter&&this.toggleBtnFilter.addEventListener("click",(e=>{this.toggleBtnFilter.classList.contains("active")||this.toggleView()})),this.toggleBtnMap&&this.toggleBtnMap.addEventListener("click",(e=>{this.toggleBtnMap.classList.contains("active")||this.toggleView()}))}toggleView(){let e=this.toggleBtnFilter.getAttribute("aria-pressed");e="true"===e?"false":"true",this.toggleBtnFilter.setAttribute("aria-pressed",e);let t=this.toggleBtnMap.getAttribute("aria-pressed");t="true"===t?"false":"true",this.toggleBtnMap.setAttribute("aria-pressed",t),this.toggleBtnFilter.classList.toggle("active"),this.toggleBtnMap.classList.toggle("active"),this.toggleDivFilter.classList.toggle("is-hidden"),this.toggleDivFilter.classList.toggle("is-active"),this.toggleDivMap.classList.toggle("is-active"),this.toggleDivMap.classList.toggle("is-hidden")}}ie=le,(0,r.A)(le,"instance",new ie);const oe=le;var ce=s(1609),de=s.n(ce);const ue=window.wp.element,he=({imageUrl:e,title:t,date:s,link:n})=>de().createElement("div",{className:"card card--default  mx-0 border-0"},de().createElement("div",{className:"card-img-top position-relative overflow-hidden"},e&&de().createElement("img",{className:"card-img-bg",src:e,alt:"",loading:"lazy"})),de().createElement("div",{className:"card-body"},de().createElement("h3",{className:"card-title"},de().createElement("a",{className:"a-linkable-area",href:n},t)),s&&de().createElement("time",{className:"card-date",dateTime:s},de().createElement("i",{className:"far fa-clock pr-2","aria-hidden":"true"}),s)));function me(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",s=new RegExp(t.split("").join("|"),"g");return e.toString().toLowerCase().replace(/\s+/g,"-").replace(s,(e=>"aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------".charAt(t.indexOf(e)))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const ge=({articles:e})=>de().createElement("div",{className:"row"},e&&e?.map((e=>{const t=e.image?.url.replace("{width}","500").replace("{height}","500"),s=e.topics?.length?"/thema/"+me(e.topics[0])+"/"+e.slug:"/article/"+e.slug,n=new Date(e.created).toLocaleString("nl-NL",{year:"numeric",month:"long",day:"numeric"});return de().createElement("div",{key:e.uniqueID,className:"col-12 col-md-6 col-lg-4 | mb-2 mb-md-4"},de().createElement(he,{imageUrl:t,title:e.title,date:n,link:s}))}))),pe=()=>de().createElement("div",{className:"spinner","aria-label":"Resultaten laden",role:"status"}),fe=window.wp.apiFetch;var be=s.n(fe);const{nonce:ve}=theme,ye=()=>{const[e,t]=(0,ce.useState)([]),[s,n]=(0,ce.useState)(!1),[a,i]=(0,ce.useState)(0),[r,l]=(0,ce.useState)(!1),o=(0,ce.useRef)(null);let c=null;(0,ce.useEffect)((()=>{d()}),[]),(0,ce.useEffect)((()=>{a>0&&d()}),[a]);const d=async()=>{n(!0);let s=document.getElementById("js-author-id"),i=document.getElementById("js-author-subsite");s&&(s=s.innerHTML);let r=`&author[]=${s}`;i&&(r+=`&subsite[]=${i.innerHTML}`);const o=await(async(e,t=1,s=6)=>await be()({path:`/aos/repo/v1/articles?per-page=${s}${e}&_wpnonce=${ve}&page=${t}`}).then((e=>e)).catch((e=>(console.error("Error: ",e),[]))))(r,a+1);0===o.length&&l(!0),t([...e,...o]),n(!1),u()},u=()=>{c=new IntersectionObserver(h,{root:null,rootMargin:"50px",threshold:1}),o&&o.current&&c.observe(o.current)},h=e=>{e[0].isIntersecting&&!r&&(i((e=>e+1)),c.unobserve(o.current))};return de().createElement(de().Fragment,null,de().createElement(ge,{articles:e,isLoading:s}),s&&!r&&de().createElement("div",{className:"d-flex justify-content-center w-100 pt-2"},de().createElement(pe,null)),de().createElement("div",{className:"mt-7",ref:o}))};document.getElementById("js-author-articles")&&(0,ue.createRoot)(document.getElementById("js-author-articles")).render(de().createElement(ye,null));var Ee=s(2231);function we(e){return{bool:{should:[{bool:{must:[{exists:{field:"subsites"}},{term:{"subsites.keyword":e}}]}},{bool:{must_not:[{exists:{field:"subsites"}},{term:{"type.keyword":"article"}}]}}]}}}function Se(e=!1){return{bool:{should:[{bool:{must:[{exists:{field:"bondscoach"}},{term:{bondscoach:e}}]}},{bool:{must_not:[{exists:{field:"bondscoach"}}]}}]}}}function _e(){return{query:{bool:{must:[we("Allesoversport.nl"),Se(!1),{bool:{should:[{bool:{must_not:[{exists:{field:"intervention"}},{term:{source:"intervention"}}]}}]}}],must_not:[{term:{news:!0}
1}]}}}}var ke=s(5632),Ae=s(7189);const Le=({componentId:e,dataField:t,filterLabel:s,transformData:n,react:a,title:i})=>{const[r,l]=(0,ce.useState)(!1),[o,c]=(0,ce.useState)([]),d=e=>{let t=!1;return null!=o&&o.forEach((s=>{s===e&&(t=!0)})),t},u=()=>{l(!r)};return de().createElement(de().Fragment,null,de().createElement(ke.A,{defaultQuery:(e,t)=>_e(),componentId:e,className:"search-filter__filters mb-3",dataField:t,filterLabel:s,transformData:n,react:a,innerClass:{label:"search-filter__label",checkbox:"search-filter__input-checkbox",title:"search-filter__filter-title"},render:({loading:t,data:s,handleChange:n})=>de().createElement(de().Fragment,null,de().createElement(Ae.A,{componentIds:e,includeKeys:["value"],render:({searchState:t})=>(c(t[e].value),null)}),0!==s.length&&de().createElement("h2",{className:"search-filter__filter-title"},i),de().createElement("div",{className:`search-filter__list${r?" open":""}${t?" loading":""}`},de().createElement("ul",{className:"list-unstyled mb-2","aria-label":e,id:"a11y-search-filter-list"},s.map(((t,s)=>{var a;return de().createElement("li",{key:t.key,className:"search-filter__wrapper | custom-control custom-checkbox "+(s>4?"hide":"")},de().createElement("input",{type:"checkbox",className:"custom-control-input",id:`${e}-${t.key}`,name:`${e}-${t.key}`,value:t.key,onChange:n,checked:d(t.key)}),de().createElement("label",{className:"search-filter__label-wrapper custom-control-label",htmlFor:`${e}-${t.key}`},de().createElement("span",{className:"search-filter__label-text"},null!==(a=t.label)&&void 0!==a?a:t.key),de().createElement("span",{className:"search-filter__label-count"},t.doc_count)))})))),s.length>5&&de().createElement("button",{className:"search-filter__collapse-button mb-3 "+(r?"open":""),onClick:u,"aria-expanded":r,"aria-controls":"a11y-search-filter-list"},de().createElement("i",{className:"icon text-tertiary far fa-chevron-down"}),de().createElement("span",{className:"pl-2"},r?"Toon minder":"Toon meer"))),showFilter:!0,showCount:!0,showSearch:!1,URLParams:!0}))},Ie=()=>de().createElement(de().Fragment,null,de().createElement(Le,{componentId:"filter--topics",dataField:"topics.keyword",filterLabel:"Thema",react:{and:["q","filter--cdptags","filter--content-types","filter--settings","filter--leeftijden","filter--sports"]},transformData:e=>e.map((e=>(e.label=e.key.charAt(0).toUpperCase()+e.key.slice(1).replace("-"," "),e))),title:"Thema"}),de().createElement(Le,{componentId:"filter--cdptags",dataField:"cdp-tags.keyword",filterLabel:"Onderwerp",react:{and:["q","filter--topics","filter--content-types","filter--settings","filter--leeftijden","filter--sports"]},transformData:e=>e.map((e=>(e.label=e.key.charAt(0).toUpperCase()+e.key.slice(1).replace("-"," "),e))),title:"Onderwerp"}),de().createElement(Le,{componentId:"filter--content-types",dataField:"content-types.keyword",filterLabel:"Type",transformData:e=>e.map((e=>(e.label=e.key.charAt(0).toUpperCase()+e.key.slice(1).replace("-"," "),e))),react:{and:["q","filter--topics","filter--cdptags","filter--settings","filter--leeftijden","filter--sports"]},title:"Type"}),de().createElement(Le,{componentId:"filter--settings",dataField:"settings.keyword",filterLabel:"Setting",react:{and:["q","filter--topics","filter--cdptags","filter--content-types","filter--leeftijden","filter--sports"]},title:"Setting"}),de().createElement(Le,{componentId:"filter--leeftijden",dataField:"leeftijden.keyword",filterLabel:"Leeftijdsfase",react:{and:["q","filter--topics","filter--cdptags","filter--content-types","filter--settings","filter--sports"]},title:"Leeftijdsfase"}),de().createElement(Le,{componentId:"filter--sports",dataField:"sports.keyword",filterLabel:"Sport",react:{and:["q","filter--topics","filter--cdptags","filter--content-types","filter--settings","filter--leeftijden"]},title:"Sport"})),Ne=({openMobileFilters:e,setOpenMobileFilters:t})=>de().createElement("button",{className:"search-filter__open-button | btn btn-tertiary d-md-none w-100 mb-3","aria-label":"Open zoekfilters","aria-controls":"js-search-modal","aria-expanded":"false",onClick:()=>t(!e)},de().createElement("i",{className:"far fa-sliders-h pr-2","aria-hidden":"true"}),"Filter"),Te=({openMobileFilters:e,setOpenMobileFilters:t})=>{const[s,n]=(0,ce.useState)(0);return de().createElement(de().Fragment,null,de().createElement(Ae.A,{componentIds:"result",includeKeys:["hits"],render:({searchState:e})=>(void 0!==e.result.hits&&n(e.result.hits.total),null)}),de().createElement("button",{className:"search-filter__close-button | btn btn-primary d-md-none w-100","aria-label":"Open zoekfilters","aria-controls":"js-search-modal","aria-expanded":"false",onClick:()=>t(!e)},de().createElement("i",{className:"far fa-sliders-h pr-2","aria-hidden":"true"}),"Toon ",s," ",1===s?"resultaat":"resultaten"))};var Be=s(4405);const Me=["title","title.keyword","post_title","content","fields","post_content_filtered"],xe=[10,10,10,5,5],Ce=`ApiKey ${theme.localizedVariables.ES_CREDENTIALS_HASH}`,Fe=`${theme.localizedVariables.ES_URL}`,qe=`${theme.localizedVariables.ES_INDEX_REPO_ARTICLES}`,Oe=`${theme.localizedVariables.ES_INDEX_REPO_AUTHORS}`,je=`${theme.localizedVariables.ES_INDEX_AOS}`,$e=class{constructor(e){this.item=e,this.title=e.title,this.url=`/artikel/${e.slug}/`,this.uniqueID=e.id,this.imageUrl=void 0!==e.image&&e.image.url.replace("{width}","270").replace("{height}","175")}},De=class extends $e{constructor(e){super(e),this.url=e.permalink,this.title=e.post_title,this.uniqueID=e.ID,this.imageUrl=theme.stylesheet_directory_uri+"/assets/img/logo.svg"}},Re=class extends $e{constructor(e){super(e);let t=e.topics;t=t?.length?me(t[0]):"artikel",this.url=`/thema/${t}/${e.slug}`,this.date=new Date("last-modified"in e?e["last-modified"]:e.date).toLocaleStr
1ing("nl-NL",{year:"numeric",month:"long",day:"numeric"}),this.readingTime=e.content&&Math.ceil(e.content.split(" ").length/200)}},ze=class extends $e{constructor(e){super(e),this.title=e.name,this.url=`/auteur/${e.slug}/`,this.imageUrl=null!==e["profile-image"]?e["profile-image"]:"/wp-content/themes/theme-fusion/assets/img/logo-author.png",this.origanisation=e.organization}},He=class extends $e{constructor(e){super(e),this.url=`/nieuws/${e.slug}/`,this.date=new Date("last-modified"in e?e["last-modified"]:e.date).toLocaleString("nl-NL",{year:"numeric",month:"long",day:"numeric"}),this.readingTime=e.content&&Math.ceil(e.content.split(" ").length/200)}},Ue=class extends $e{},Pe=class{constructor(e,t=null){(0,r.A)(this,"types",{post:De,article:Re,news:He,author:ze}),this.item=e,this.type=t}getEntity(e){return this.types[e]instanceof Object?this.types[e]:null}getType(){return void 0===this.type||void 0===this.item.type?"post":this.item.type}make(){const e=this.getType();if(void 0===e)return new Ue(this.item);const t=this.getEntity(e);return void 0===t?new Ue(this.item):this.item?.news?new He(this.item):new t(this.item)}},We=e=>de().createElement("div",{className:"card card--default card--search card--search-portal | border-0 h-100 mx-0 mb-2",key:e.uniqueID},de().createElement("div",{className:"card-img-top position-relative overflow-hidden "+(e.imageUrl?"":"has-no-image")},e.imageUrl&&de().createElement("img",{className:"card-img-bg",src:e.imageUrl.replace("{width}","500").replace("{height}","500"),alt:"",loading:"lazy"})),de().createElement("div",{className:"card-body"},de().createElement("h3",{className:"card-title mb-0"},de().createElement("a",{className:"a-linkable-area",href:e.url},de().createElement("div",{dangerouslySetInnerHTML:{__html:`${e.title}`}}))))),Ve=e=>de().createElement("div",{className:"card card--default card--search | border-0 h-100 mx-0 mb-2",key:e.uniqueID},de().createElement("div",{className:"card-body"},de().createElement("h3",{className:"card-title"},de().createElement("a",{className:"a-linkable-area",href:e.url},de().createElement("div",{dangerouslySetInnerHTML:{__html:`${e.title}`}}))),de().createElement("div",{className:"card-wrapper"}))),Ke=e=>de().createElement("div",{className:"card card--default card--search | border-0 h-100 mx-0 mb-2",key:e.uniqueID},de().createElement("div",{className:"card-img-top position-relative overflow-hidden "+(e.imageUrl?"":"has-no-image")},e.imageUrl&&de().createElement("img",{className:"card-img-bg",src:e.imageUrl.replace("{width}","500").replace("{height}","500"),alt:"",loading:"lazy"})),de().createElement("div",{className:"card-body"},de().createElement("h3",{className:"card-title"},de().createElement("a",{className:"a-linkable-area",href:e.url},de().createElement("div",{dangerouslySetInnerHTML:{__html:`${e.title}`}}))),de().createElement("div",{className:"card-wrapper"},e.date&&de().createElement("div",{className:"card-date"},de().createElement("time",{dateTime:e.date},de().createElement("i",{className:"far fa-clock pr-2","aria-hidden":"true"}),e.date)),e.readingTime&&de().createElement(de().Fragment,null,de().createElement("span",{className:"d-none d-lg-block px-2"},"·"),de().createElement("div",{className:"card-readtime"},"Leestijd: ",e.readingTime," minuten"))))),Qe=e=>de().createElement("div",{className:"card card--default card--search card--search-author | border-0 h-100 mx-0 mb-2",key:e.uniqueID},de().createElement("div",{className:"card-img-top position-relative overflow-hidden"},e.imageUrl&&de().createElement("img",{className:"card-img-bg",src:e.imageUrl.replace("{width}","500").replace("{height}","500"),alt:"",loading:"lazy"})),de().createElement("div",{className:"card-body"},de().createElement("h3",{className:"card-title"},de().createElement("a",{className:"a-linkable-area",href:e.url},de().createElement("div",{dangerouslySetInnerHTML:{__html:`${e.title}`}}))),de().createElement("div",{className:"card-wrapper"},e.origanisation&&de().createElement("div",{className:"card-organisation"},e.origanisation)))),Ye=class{constructor(e){(0,r.A)(this,"mapping",{[je]:{post:We},[qe]:{article:Ke},[Oe]:{author:Qe}}),this.item=e}getMapping(){return this.mapping}getCard(e){if(this.getMapping()[e]instanceof Object){const t=this.t
1ype();return this.getMapping()[e][t]}}itemIndex(){return this.item._index}type(){return void 0===this.item.type?"post":this.item.type}setEntity(e){this.entity=e}make(){const e=this.itemIndex();return void 0===e?new Ve(new Ue(this.item)):(this.entity=this.entity?new this.entity(this.item,this.type()).make():new Pe(this.item,this.type()).make(),this.getCard(e)(this.entity))}};var Ze=s(9641);const Ge=()=>de().createElement(Ze.A,{className:"search-filter__selected-wrapper",clearAllLabel:"Reset filters",innerClass:{button:"search-filter__selected-button"}}),Xe=()=>de().createElement("div",{className:"search-results"},de().createElement(Be.A,{componentId:"result",defaultQuery:(e,t)=>_e(),dataField:Me.join(),fieldWeights:xe,from:0,size:10,fuzziness:1,showResultStats:!0,URLParams:!0,infiniteScroll:!0,innerClass:{resultsInfo:"search-results__info",sortOptions:"search-results__sort",resultStats:"search-results__stats",noResults:"search-results__no-results"},loader:de().createElement("div",{className:"d-flex justify-content-center mt-3"},de().createElement("div",{className:"spinner",role:"status","aria-label":"Resultaten laden"})),renderResultStats:function(e){return 1===e.numberOfResults?`Er is ${e.numberOfResults} resultaat voor jouw zoekopdracht`:`Er zijn ${e.numberOfResults} resultaten voor jouw zoekopdracht`},renderNoResults:function(){return"Geen resultaten gevonden"},react:{and:["q","filter--topics","filter--cdptags","filter--content-types","filter--settings","filter--leeftijden","filter--sports"]},sortOptions:(()=>{const e={label:"Relevantie",dataField:"_score",sortBy:"desc"},t={label:"Datum (heden-verleden)",dataField:"last-modified",sortBy:"desc"},s={label:"Datum (verleden-heden)",dataField:"last-modified",sortBy:"asc"};let n=[e,t,s];const a=new URLSearchParams(window.location.search).get("sort");return a&&"date"===a&&(n=[t,s,e]),n})(),render:({data:e,loading:t})=>de().createElement("div",{className:"search-results__wrapper"+(t?" loading":"")},de().createElement(Be.A.ResultListWrapper,null,de().createElement(Ge,null),e.map((e=>new Ye(e).make()))))}));var Je=s(6125);const et=({setSearchQuery:e})=>de().createElement(Je.A,{componentId:"q",defaultQuery:(t,s)=>(e(t),_e()),dataField:Me,fieldWeights:xe,enablePopularSuggestions:!0,autosuggest:!1,debounce:100,fuzziness:1,highlight:!0,highlightField:["title","post_title"],type:"search",className:"search-filter__search",innerClass:{title:"search-filter__search-title",input:"search-filter__search-input",mic:"search-filter__search-mic"},URLParams:!0,enablePredictiveSuggestions:!0,filterLabel:"Gezocht op",placeholder:"Waar ben je naar op zoek?",title:"Zoeken",showFilter:!0,showVoiceSearch:!0,getMicInstance:e=>{e&&(e.lang="nl-NL")},showIcon:!1,strictSelection:!1});var tt=s(5232);const st=()=>{const[e,t]=(0,ce.useState)("");return de().createElement(de().Fragment,null,de().createElement(Ae.A,{includeKeys:["value"],render:({searchState:e})=>{const s=e["filter--cdptags"]?.value;if(Array.isArray(s)){const e=s[0];fetch("/api/v1/aos/cdp-tag/"+e).then((e=>e.json())).then((e=>t(e[0]?.description))).catch((()=>t("")))}return null}}),e?de().createElement("div",{className:"search-cdptag__container | container px-3"},de().createElement("div",{className:"row"},de().createElement("div",{className:"col-md-12 mt-5"},de().createElement("div",{class:"bg-white p-3 p-md-4 p-xl-5"},(0,tt.Ay)(e))))):null)},nt={typography:{fontFamily:"Montserrat"},colors:{primaryColor:"#e70174"}},at=()=>{const[e,t]=(0,ce.useState)(!1),[s,n]=(0,ce.useState)("");return(0,ce.useEffect)((()=>{let t;e?t=(0,I.A)({context:".search-filter__column",defaultToContext:!0}):t&&t.disengage()}),[e]),de().createElement(Ee.A,{app:`${je},${qe},${Oe}`,url:Fe,headers:{Authorization:Ce},className:"row w-auto",theme:nt},de().createElement("div",{className:"col-md-7 col-lg-8 col-xl-9"},de().createElement("h1",{className:"font-weight-normal"},s?(document.title=`Zoekresultaten voor "${s}"`,`Zoekresultaten voor "${s}"`):(document.title="Zoekresultaten","Zoekresultaten"))),de().createElement("div",{className:"col-md-7 col-lg-8 col-xl-9 offset-md-5 offset-lg-4 offset-xl-3"},de().createElement(Ne,{openMobileFilters:e,setOpenMobileFilters:t})),de().createElement("div",{className:"search-filter__column | col-md-5 col-lg-4 col-xl-3"},de().createElement("div",{className:`search-filter ${e?"search-filter--open ":""}| bg-white p-3 py-4 mb-md-3`},de().createElement(et,{setSearchQuery:n}),de().createElement(Ie,null),de().createElement(Te,{openMobileFilters:e,setOpenMobileFilters:t}
1))),de().createElement("div",{className:"search-results__column | col-md-7 col-lg-8 col-xl-9"},de().createElement(Xe,null)),de().createElement(st,null))};document.getElementById("js-search-results")&&(0,ue.createRoot)(document.getElementById("js-search-results")).render(de().createElement(at,null));var it=s(8168),rt=s(5482);const lt=()=>de().createElement(Je.A,{componentId:"q",defaultQuery:(e,t)=>function(e){return{query:{bool:{must:[{bool:{must:[{bool:{should:[{multi_match:{query:`${e}`,fields:["title^10","post_title^10","content^5","post_content_filtered^5"],type:"best_fields",operator:"or",fuzziness:1}},{multi_match:{query:`${e}`,fields:["title^10","post_title^10","content^5","post_content_filtered^5"],type:"phrase",operator:"or"}},{multi_match:{query:`${e}`,fields:["title^10","post_title^10","content^5","post_content_filtered^5"],type:"phrase_prefix",operator:"or"}}],minimum_should_match:"1"}},{bool:{must:[we("Allesoversport.nl"),Se(!1),{bool:{should:[{bool:{must_not:[{exists:{field:"intervention"}},{term:{source:"intervention"}}]}}]}}],must_not:[{term:{news:!0}}]}}]}}]}},highlight:{pre_tags:["<mark>"],post_tags:["</mark>"],fields:{title:{},post_title:{}},require_field_match:!1},size:10,_source:{includes:["*"],excludes:[]},from:0}}(e),dataField:Me,fieldWeights:xe,enablePopularSuggestions:!1,autosuggest:!0,debounce:100,fuzziness:1,highlight:!1,type:"search",className:"searchbar__container",innerClass:{input:"searchbar__input"},URLParams:!0,enablePredictiveSuggestions:!1,placeholder:"Waar ben je naar op zoek?",iconPosition:"right",icon:de().createElement("button",{className:"searchbar__submit | bg-transparent border-0 | ml-3 px-2","aria-label":"Zoeken"},de().createElement("i",{className:"far fa-search","aria-hidden":"true"})),parseSuggestion:e=>{const t=new Pe(e.source).make();return{label:t.title,value:t.title,source:t.item}},render:({error:e,data:t,value:s,downshiftProps:{isOpen:n,getItemProps:a,highlightedIndex:i}})=>e?de().createElement("div",null,"Something went wrong! Error details"," ",JSON.stringify(e)):n&&Boolean(s.length)?de().createElement("ul",{className:"autosuggest | list-unstyled"},t.slice(0,5).map(((e,t)=>{const n=new Pe(e.source).make();return de().createElement("li",(0,it.A)({id:"selected_option",className:"autosuggest__item",key:n.uniqueID},a({item:e}),{role:"option",style:{background:t===i?"#f5f6fa":"#fff",color:"#eee"}}),de().createElement("a",{href:`${n.url}`,className:"autosuggest__link"},de().createElement(rt.default,{currentValue:s,suggestion:e})))})),Boolean(s.length)&&de().createElement("li",(0,it.A)({className:"autosuggest__item",key:"all-results"},a({item:{label:s,value:s}}),{style:{background:i===t.slice(0,5).length?"#eee":"#fff"}}),de().createElement("a",{href:`/zoeken/?q="${s}"`,className:"autosuggest__link"},de().createElement("i",{className:"far fa-long-arrow-alt-right | pr-2"}),`Toon alle resultaten voor "${s}" `))):void 0,onValueSelected:e=>{document.location.href=`/zoeken?q="${e}"`}}),ot=()=>de().createElement(Ee.A,{app:`${je},${qe},${Oe}`,url:Fe,headers:{Authorization:Ce},className:"searchbar__global",theme:nt},de().createElement(lt,null));document.getElementById("js-searchbar-404")&&(0,ue.createRoot)(document.getElementById("js-searchbar-404")).render(de().createElement(ot,null));const ct=()=>de().createElement(Ee.A,{app:`${je},${qe},${Oe}`,url:Fe,headers:{Authorization:Ce},className:"searchbar__global",theme:nt},de().createElement(lt,null));document.getElementById("js-searchbar-input")&&(0,ue.createRoot)(document.getElementById("js-searchbar-input")).render(de().createElement(ct,null)),{init(){o.getInstance(),d.A.getInstance(),p.getInstance(),v.getInstance(),w.getInstance(),k.getInstance(),(()=>{const e=document.querySelectorAll(".hide-content__content"),t=document.querySelectorAll(".hide-content__button"),s=e=>{const t=e.target.closest(".hide-content").querySelector(".hide-content__content"),s=e.target.closest(".hide-content").querySelector(".hide-content__button");if("true"===t.dataset.hidden)t.style.height="100%",t.dataset.hidden=!1,s.innerHTML='Toon minder<i class="fas fa-arrow-up pl-3"></i>';else{const e=t.dataset.height;e&&(t.style.height=e+"px"),t.dataset.hidden=!0,s.innerHTML='Toon meer<i class="fas fa-arrow-down pl-3"></i>'}};e&&e.forEach((e=>{e.dataset.hidden="true";const t=e.dataset.height;t&&(e.style.height=t+"px")})),t&&t.forEach((e=>{e.addEventListener("click",(e=>s(e)))}))})(),j.getInstance(),R.getInstance(),(()=>{const e=document.querySelectorAll(".municipality-map-popup"),t=(e,t)=>{const s=e.pageX,n=e.pageY,a={left:0,top:0};let i=t.offsetParent;for(;i;)a.left+=i.offsetLeft,a.top+=i.offsetTop,i=i.offsetParent;return{x:s-a.left,y:n-a.top}},s=()=>{e.forEach((e=>{e.classList.remove("is-active")}))};0!==e.length&&(window.addEventListener("click",(e=>{e.target.classList.contains("municipality-map-popup")||s()}),!0),e.forEach((e=>{const n=e.dataset.id,a=document.getElementById(n);a&&(a.classList.add("has-popup"),a.addEventListener("click",(e=>((e,n)=>{s();const a=document.querySelector(`[data-id=${n}]`);if(!a)return;a.classList.add("is-active");const i=t(e,a);a.style.top=`${i.y}px`,a.style.left=`${i.x}px`})(e,n))),"1"===e.dataset.active&&(e=>{e.classList.add("is-active")})(a),"1"===e.dataset.underconstruction&&(e=>
1{e.classList.add("is-under-construction")})(a))})))})(),M.getInstance(),U.getInstance(),V.getInstance(),F.getInstance(),J.getInstance(),Y.getInstance(),ae.getInstance(),se().polyfill(),(()=>{const e=document.querySelectorAll(".timeline-content > *"),t=document.querySelector(".timeline-progress-line"),s=document.querySelector(".timeline-progress-path"),n=(t,s)=>{t.classList.add("is-active");for(let t=0;t<s;t++)e[t].classList.add("is-active");e.forEach(((e,t)=>{t>s&&e.classList.remove("is-active")}))},a=e=>{const t=s.getBoundingClientRect().top,n=e.getBoundingClientRect().top+e.offsetHeight/2-t;s.style.height=n+"px"};e&&((()=>{if(1>e.length)return;t.style.top=e[0].offsetHeight/2+"px",s.style.top=e[0].offsetHeight/2+"px";const n=e[e.length-1];t.style.bottom=n.offsetHeight/2+"px",s.style.bottom=n.offsetHeight/2+"px"})(),e.forEach(((e,t)=>{e.addEventListener("mouseenter",(()=>((e,t)=>{n(e,t),a(e,t)})(e,t)))})))})(),(new re.A).init(),oe.getInstance(),this.registerSW(),document.addEventListener("touchstart",(function(){}),!1),i()("body").tooltip({selector:"[data-toggle=tooltip]"})},registerSW(){"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"})}}.init()},1521(){},1609(e){e.exports=window.React},428(e){e.exports=window.jQuery}},s={};function n(e){var a=s[e];if(void 0!==a)return a.exports;var i=s[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=t,e=[],n.O=(t,s,a,i)=>{if(!s){var r=1/0;for(d=0;d<e.length;d++){for(var[s,a,i]=e[d],l=!0,o=0;o<s.length;o++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](s[o])))?s.splice(o--,1):(l=!1,i<r&&(r=i));if(l){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[s,a,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={343:0};n.O.j=t=>0===e[t];var t=(t,s)=>{var a,i,[r,l,o]=s,c=0;if(r.some((t=>0!==e[t]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(o)var d=o(n)}for(t&&t(s);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(d)},s=globalThis.webpackChunktheme_fusion=globalThis.webpackChunktheme_fusion||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),n.O(void 0,[121],(()=>n(1401)));var a=n.O(void 0,[121],(()=>n(1521)));a=n.O(a)})();

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.