PageSourceSearch

https://www.lokersefeesten.be/assets/website/402.23674086.js

js lokersefeesten.be collected 2026-10-02 10:26:09 UTC 5,605 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_inventis_front_end_boilerplate=globalThis.webpackChunk_inventis_front_end_boilerplate||[]).push([[402],{5402:(t,e,i)=>{i.r(e),i.d(e,{default:()=>r});class s{constructor(t,e={}){this.form=t;const i={triggerFieldsSelector:"[data-trigger-fetch]",changeHistoryState:!1,extraFetchData:{},useAbortController:!0,useDefaultHandling:!0,fetchAction:this.form.action,fetchAcceptType:"json",fetchMethod:this.form.method,keepExistingUrlParams:!1,outputTargetSelector:null,observeNewTriggers:!1};if(this.options={...i,...e,...this.form.dataset},void 0===this.options.fetchHeaders){const t=new Headers;if(t.append("X-Requested-With","XMLHttpRequest"),"json"===this.options.fetchAcceptType)t.append("Accept","application/json");else t.append("Accept","text/html");this.options.fetchHeaders=t}this.hasEventSupport="function"==typeof Event,this.hasEventSupport&&this.init()}init(){this.attachHistoryStateListener(),this.attachFormListeners(),this.attachTriggerListeners(this.form.querySelectorAll(this.options.triggerFieldsSelector)),this.attachButtonListeners(),this.options.observeNewTriggers&&this.getObserver().observe(this.form,{childList:!0,subtree:!0}),this.options.outputTargetSelector&&(this.outputTarget=document.querySelector(this.options.outputTargetSelector),this.outputTarget&&(this.outputTarget.hasAttribute("aria-live")||this.outputTarget.setAttribute("aria-live","polite"),this.outputTarget.setAttribute("aria-busy","false")))}attachHistoryStateListener(){this.options.changeHistoryState&&"get"===this.options.fetchMethod&&(0===Object.keys(this.options.extraFetchData).length&&(this.options.extraFetchData={fetch:1}),window.dynamicFormPopstateEvent||(window.dynamicFormPopstateEvent=!0,window.addEventListener("popstate",(()=>{this.submitData(new URLSearchParams(window.location.search))}))))}attachFormListeners(){this.form.addEventListener("submit",(t=>this.submitEventHandler(t))),this.options.useDefaultHandling&&this.form.addEventListener("response",(t=>{this.handleResponse(t.detail.response)})),this.form.addEventListener("fetchFinished",(t=>this.handleFetchFinished(t)))}attachTriggerListeners(t){t.forEach((t=>{"submit"===t.getAttribute("type")||"BUTTON"===t.tagName?t.addEventListener("click",(e=>{e.preventDefault(),t.form.dispatchEvent(new CustomEvent("submit",{cancelable:!0,detail:{submitter:t}}))})):t.addEventListener("change",(()=>{t.form.dispatchEvent(new Event("submit",{cancelable:!0}))}))}))}attachButtonListeners(){this.nonTriggerFetchButtons=this.form.querySelectorAll('button:not([type="button"]):not('+this.options.triggerFieldsSelector+")"),this.nonTriggerFetchButtons.forEach((t=>{t.addEventListener("click",(()=>{this.useDefaultSubmitHandler=!0}))}))}markBusy(t){this.form.setAttribute("aria-busy",t.toString()),this.outputTarget&&this.outputTarget.setAttribute("aria-busy",t.toString())}submitEventHandler(t){if(this.form.checkValidity()){if(!this.useDefaultSubmitHandler){t.preventDefault(),this.markBusy(!0);let e=new URLSearchParams(new FormData(this.form));if(void 0!==t.detail&&void 0!==t.detail.submitter&&void 0!==t.detail.submitter.name&&""!==t.detail.submitter.name&&void 0!==t.detail.submitter.value&&""!==t.detail.submitter.value&&e.append(t.detail.submitter.name,t.detail.submitter.value),this.options.keepExistingUrlParams&&"get"===this.options.fetchMethod){const t=new URLSearchParams(window.location.search);for(const i of t)void 0===this.form.elements[i[0]]&&e.append(i[0],i[1])}if(this.options.changeHistoryState&&"get"===this.options.fetchMethod){let t=this.getPageBaseUrl();t.search=e.toString().replace(/%5B/g,"[").replace(/%5D/g,"]"),window.history.pushState({},"",t.toString())}this.submitData(e)}}else this.form.novalidate||this.form.reportValidity()}getSubmitUrl(){return new URL(this.options.fetchAction)}getPageBaseUrl(){return new URL(document.location.origin+document.location.pathname)}submitData(t){if(this.options.extraFetchData&&this.options.extraFetchData.constructor===Object&&Object.keys(this.options.extraFetchData).length>0)for(const[e,i]of Object.entries(this.options.extraFetchData))t.append(e,i);let e=this.getSubmitUrl(),i=null;"get"===this.options.fetchMethod?e.search=t.toString():i=t,this.abortController&&this.abortController.abort(),this.options.useAbortController&&"function"==typeof AbortController&&(this.abortController=new AbortController),this.form.dispatchEvent(new Event("fetchStarted")),fetch(e,{method:this.options.fetchMethod,headers:this.options.fetchHeaders,body:i,signal:this.abortController?this.abortController.signal:null}).then((t=>t.ok?t.text():Promise.reject(t))).then((t=>{this.form.dispatchEvent(new CustomEvent("response",{detail:{response:t}}))})).catch((t=>{"AbortError"!==t.name&&this.form.dispatchEvent(new CustomEvent("fetchError",{detail:{error:t}}))})).finally((()=>{this.form.dispatchEvent(new Event("fetchFinished"))}))}handleResponse(t){let e;try{e=JSON.parse(t).html}catch{e=t}this.outputTarget&&(this.outputTarget.innerHTML=e)}handleFetchFinished(){this.markBusy(!1)}getObserver(){return this.observer instanceof MutationObserver||(this.observer=new MutationObserver((t=>{t.forEach((t=>{t.addedNodes.length>0&&this.attachTriggerListeners(t.target.querySelectorAll(this.options.triggerFieldsSelector))}))}))),this.observer}}const r=t=>{let e=new s(t,{useDefaultHandling:!1,changeHistoryState:!0}),i=t.closest(".articles"),r=i.querySelector(".articles__filter"),o=i.querySelector(".articles__results");return t.addEventListener("response",(t=>{try{const e=JSON.parse(t.detail.response);r.innerHTML=e.filter,o.innerHTML=e.selections+e.results}catch{}})),e}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.