PageSourceSearch

https://www.parteon.nl/_assets/ad8927e84ac4d76265df086510629ea1/Vite/assets/vanilla-C0IjtiMe.js

js parteon.nl collected 2026-10-08 17:47:05 UTC 6,572 bytes, 1 lines download raw bytes

1var e=class{static DOMContentLoadedEvents=()=>{r(),n(),s(),c(),_(),v()};static KnowledgeBaseLoadedEvents=()=>{r(),i()};static loadEvents=()=>{setTimeout(()=>{a(),o()},1e3)};static zdsNavigationBodyOpenedEvents=e=>{t(e)}},t=e=>{e.detail.identifier===`login-plugin`&&document.querySelector(`.login-plugin-container input`).focus()};function n(){let e=document.getElementById(`close-backend-layout`);if(!e||e.getAttribute(`initialized`)===`true`)return;if(document.referrer){let e=new URL(document.referrer).pathname;e!==n()&&sessionStorage.setItem(t(),e)}e.getAttribute(`link`)||e.addEventListener(`zdsClick`,()=>{if(e.getAttribute(`prevent-link`)===`true`)return;let n=sessionStorage.getItem(t());window.location.href=sessionStorage.getItem(n)||n||`/`});function t(){return`referrer`+n()}function n(){return document.location.pathname}e.setAttribute(`initialized`,`true`)}function r(){document.querySelectorAll(`.copy-to-clipboard:not(.activated)`).forEach(e=>{e.classList.add(`activated`);let t=document.createElement(`i`);t.classList.add(`copy-to-clipboard-icon`,`fa-solid`,`fa-copy`),e.appendChild(t),e.addEventListener(`click`,()=>{navigator.clipboard.writeText(e.innerText)})})}var i=()=>{document.querySelectorAll(`.knowledgeBase-content zds-button`).forEach(e=>{e.addEventListener(`zdsClick`,()=>{sessionStorage.setItem(document.location.pathname,document.location.pathname+document.location.hash)})})};function a(){let e=document.querySelector(`#\\:0\\.targetLanguage > select`);if(!e)return;let t=document.getElementById(`current-language-link`),n=document.getElementById(`google-translate-link`),r=document.getElementById(`current-language-link-mobile`),i=document.getElementById(`google-translate-link-mobile`),a=document.createElement(`span`);a.style.position=`absolute`,a.style.visibility=`hidden`,a.style.whiteSpace=`nowrap`,a.style.font=window.getComputedStyle(e).font,document.body.appendChild(a);let o=()=>{let t=e.options[e.selectedIndex].text;a.textContent=t,e.style.width=a.offsetWidth+40+`px`},s=()=>{t&&n&&r&&i&&(e.value?(n.classList.remove(`zds-hidden`),i.classList.remove(`zds-hidden`),t.classList.add(`zds-hidden`),r.classList.add(`zds-hidden`),n.querySelector(`#google-translate-language-text`).textContent=e.querySelector(`option[value="${e.value}"]`).textContent,i.querySelector(`#google-translate-language-text-mobile`).textContent=e.querySelector(`option[value="${e.value}"]`).textContent):(t.classList.remove(`zds-hidden`),r.classList.remove(`zds-hidden`),n.classList.add(`zds-hidden`),i.classList.add(`zds-hidden`)))};e.addEventListener(`change`,e=>{let t=document.getElementById(`language-switch-modal`)?.getElementsByTagName(`zds-modal`)?.[0];t?.checkVisibility()?t.hide():e.target.value&&document.getElementById(`google-translate-disclaimer`)?.show(),s(),o()}),o(),s();let c=typeof MSG_SELECT_LANGUAGE==`string`&&MSG_SELECT_LANGUAGE.trim().length?MSG_SELECT_LANGUAGE:`Selecteer een taal`;e.setAttribute(`aria-label`,c)}function o(){Array.from(document.getElementsByClassName(`language-switch-toggle`)).forEach(e=>{let t=document.getElementById(`language-switch-modal`).getElementsByTagName(`zds-modal`)[0];e.addEventListener(`zdsClick`,e=>{!t.hasAttribute(`open`)&&t.show()}),e.addEventListener(`keydown`,e=>{e.key===`Enter`&&!t.hasAttribute(`open`)&&(e.preventDefault(),t.show())})})}function s(){new URL(window.location.href).searchParams.get(`search`)&&document.getElementById(`main-navigation`)?.openBody(`search-body`)}function c(){document.querySelectorAll(`zds-button.close-app-browser-button`).forEach(e=>{e.addEventListener(`zdsClick`,()=>{window.webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({message:`closeInAppBrowser`}))})})}var l=Array.from(document.querySelectorAll(`link[href*="@zig-design-system-style"]`)),u=l.find(e=>e.href.endsWith(`fonts.css`)),d=l.find(e=>e.href.endsWith(`tokens.css`)),f=u.cloneNode(!0);f.href=f.href.replace(/themes\/[^/]+\/fonts\.css/,`themes/highcontrast/fonts.css`);var p=d.cloneNode(!0);p.href=p.href.replace(/themes\/[^/]+\/tokens\.css/,`themes/highcontrast/tokens.css`);var m=document.querySelector(`zds-popout[target="#high-contrast"]`),h=document.getElementById(`accessibility-tools-popout`),g=window.matchMedia(`(prefers-contrast: more)`).matches||localStorage.getItem(`highContrastEnabled`);function _(){g&&(u.replaceWith(f),d.replaceWith(p));let e=document.querySelectorAll(`zds-switch.high-contrast`);e.forEach(t=>{g&&(t.checked=!0),t.addEventListener(`zdsChange`,t=>
1{e.forEach(e=>e.checked=t.target.checked),t.target.checked?(u.replaceWith(f),d.replaceWith(p),localStorage.setItem(`highContrastEnabled`,!0)):(f.replaceWith(u),p.replaceWith(d),localStorage.removeItem(`highContrastEnabled`)),setTimeout(()=>{m.updatePosition(),h.updatePosition()},50)})});let t=document.getElementById(`high-contrast`),n=document.getElementById(`high-contrast-popout`);t?.addEventListener(`zdsClick`,function(e){n.hasAttribute(`open`)?n.hide():n.show()}),t?.addEventListener(`keydown`,e=>{e.key===`Enter`&&(n.hasAttribute(`open`)?n.hide():n.show())})}function v(){document.getElementById(`accessibility-tools-link`)?.addEventListener(`zdsClick`,function(e){h.hasAttribute(`open`)?h.hide():h.show()})}document.addEventListener(`DOMContentLoaded`,e.DOMContentLoadedEvents),document.addEventListener(`kb:content:loaded`,e.KnowledgeBaseLoadedEvents),document.addEventListener(`kb:faq:loaded`,e.KnowledgeBaseLoadedEvents),document.addEventListener(`zdsNavigationBodyOpened`,e.zdsNavigationBodyOpenedEvents),window.addEventListener(`load`,e.loadEvents),jQuery(document).on(`click`,`.cookie-notice .cn-learn-more`,function(){document.documentElement.dataset.modalActive=!0}),jQuery(document).on(`click`,`.cookie-modal div.cm-bg, button.cm-btn-accept-all, .cookie-modal button.hide, button.cm-btn-accept`,function(){document.documentElement.dataset.modalActive=!1}),(location.search.indexOf(`logout`)>=0||location.search.indexOf(`login`)>=0)&&sessionStorage.clear();var y=(e=!0)=>{document.getElementById(`main-menu`)?.getElementsByTagName(`zds-navigation`)?.[0]?.closeBody(e)};window.addEventListener(`unload`,e=>{y(!1)}),window.onpageshow=e=>{e.persisted&&y(!1)},window.addEventListener(`hashchange`,()=>{y()},!1),window.youtubeInit=e=>{if(e.classList.contains(`activated`))return;e.classList.add(`activated`);let t=e.querySelector(`.video__youtube-lazy-loading-content`);e.removeChild(t);let n=document.createElement(`iframe`);n.classList.add(`video__iframe`),n.allow=`autoplay; fullscreen`,n.src=e.getAttribute(`data-video-url`),n.title=e.getAttribute(`data-video-title`),e.appendChild(n)};

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.