PageSourceSearch

https://www.kvs.be/assets/website/base/document-component-loader.d23c5786.js

js kvs.be collected 2026-10-02 04:25:33 UTC 5,570 bytes, 1 lines download raw bytes

1(globalThis.webpackChunk_inventis_front_end_boilerplate=globalThis.webpackChunk_inventis_front_end_boilerplate||[]).push([[474],{8546:(e,o,t)=>{"use strict";t.r(o),t.d(o,{ComponentLoader:()=>i});class n{options={observerSelector:"[data-component-observe]"};componentLoader;observers=new WeakMap;constructor(e,o={}){this.options={...this.options,...o},this.componentLoader=e}createObserversWithin(e){e.querySelectorAll(this.options.observerSelector).forEach((e=>this.createObserverForElement(e)))}destroyObserversWithin(e){e.querySelectorAll(this.options.observerSelector).forEach((e=>this.destroyObserverForElement(e)))}createObserverForElement(e){if(this.observers.has(e))throw new Error("Element already has an active component observer, cannot attach another to the same element.");const o=new MutationObserver((e=>e.forEach((e=>this.handleMutation(e)))));o.observe(e,{childList:!0,subtree:!0}),this.observers.set(e,o)}destroyObserverForElement(e){this.observers.has(e)&&(this.observers.get(e).disconnect(),this.observers.delete(e))}handleMutation(e){e.addedNodes.forEach((e=>{e instanceof HTMLElement&&this.componentLoader.loadComponents(e)})),e.removedNodes.forEach((e=>{e instanceof HTMLElement&&(this.destroyObserverForElement(e),this.componentLoader.destroyComponents(e))}))}}class s{components=new WeakMap;options={componentSelector:"[data-component]",componentDatasetName:"component",observerOptions:{}};observer;constructor(e={}){this.options={...this.options,...e},this.observer=new n(this,this.options.observerOptions)}loadComponentsWithin(e,o=!0){this.findElementsWithComponentDefinition(e,!1).forEac
1h((e=>this.loadComponentForElement(e))),o&&this.observer.createObserversWithin(e)}loadComponents(e,o=!0){this.findElementsWithComponentDefinition(e,!0).forEach((e=>this.loadComponentForElement(e))),o&&this.observer.createObserversWithin(e)}destroyComponentsWithin(e){this.findElementsWithComponentDefinition(e,!1).forEach((e=>this.destroyComponentForElement(e)))}destroyComponents(e){this.findElementsWithComponentDefinition(e,!0).forEach((e=>this.destroyComponentForElement(e)))}async loadComponentForElement(e,o=null){if(this.components.has(e))throw new Error("Element already has a component instance.");let t=null===o?this.getComponentDefinition(e):o;const n=(await this.importComponent(t)).default(e);return this.components.set(e,n),n}destroyComponentForElement(e){if(!this.components.has(e))return;const o=this.components.get(e);this.components.delete(e),"function"==typeof o.destroy&&setTimeout((()=>o.destroy()),0)}importComponent(e){throw new Error(`Can't import component "${e}". You have to extend this class and implement the method importComponent!`)}findElementsWithComponentDefinition(e,o){const t=[...e.querySelectorAll(this.options.componentSelector)];return o&&null!==this.getComponentDefinition(e)&&t.unshift(e),t}getComponentDefinition(e){return this.options.componentDatasetName in e.dataset?e.dataset[this.options.componentDatasetName]:null}}function r(e,o,t){var n;return(o="symbol"==typeof(n=function(e,o){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(o,"string"))?n:String(n))in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}class i extends s{constructor(){super(...arguments),r(this,"namespaces",{eventbundle:"event-bundle/components",articlebundle:"article-bundle/components"})}importComponent(e){let o="components",n=e;const s=e.indexOf(":");if(-1!==s){const t=e.substring(0,s);if(!Object.hasOwn(this.namespaces,t))throw new Error(`Namespace "${t}" is not known to the component loader. Did you define it?`);o=this.namespaces[t],n=e.substring(s+1)}return t(4732)(`./${o}/${n}.js`)}}(new i).loadComponents(window.document.body)},4732:(e,o,t)=>{var n={"./base/document-component-loader.js":[8546,9],"./base/images.js":[6489,7,489],"./components/cookie-consent/cookie-consent.js":[6711,9,711],"./components/dropdown/dropdown.js":[2021,9,21],"./components/faq/faq-item.js":[693,9,693],"./components/filter/clear-date.js":[881,9,881],"./components/filter/filter.js":[4349,9,349],"./components/form/form.js":[1643,9,643],"./components/gallery/gallery.js":[877,9,128,877],"./components/iframe/iframe.js":[5731,9,731],"./components/language-selection/language-selection.js":[2061,9,61],"./components/marquee/marquee.js":[9761,9,761],"./components/menu/menu.js":[7669,9,669],"./components/oembed/OEmbedParser.js":[7064,9,64],"./components/oembed/oembed.js":[595,9,64],"./components/page-header/menu-toggle.js":[8408,9,408],"./components/search/search-overlay.js":[6786,9,786],"./components/slider/splide-carousel.js":[5090,9,846,90],"./components/slider/splide-posters.js":[748,9,846,748],"./components/slider/splide.js":[3059,9,846,59],"./components/video/update-color.js":[3187,9,187],"./components/video/video.js":[3917,9,917],"./components/video/youtube-loader.js":[1775,9,775],"./event-bundle/components/datepicker/accessible-datepicker.js":[6870,9,870],"./event-bundle/components/datepicker/datepicker.js":[5771,9,771],"./event-bundle/components/event/details.js":[8243,9,243]};function s(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}));var o=n[e],s=o[0];return Promise.all(o.slice(2).map(t.e)).then((()=>t.t(s,16|o[1])))}s.keys=()=>Object.keys(n),s.id=4732,e.exports=s}},e=>{var o;o=8546,e(e.s=o)}]);

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.