PageSourceSearch

https://ganzenest.nl/templates/template_ganzenest/js/js.bundle.js?v=1789717634

js ganzenest.nl collected 2026-10-06 13:38:45 UTC 9,983 bytes, 2 lines download raw bytes

1!function(){"use strict";function e(e,t,n=30){const s=[`${e}=${t}`,n&&"Expires="+new Date(Date.now()+864e5*n).toUTCString(),"https:"==location.protocol&&"Secure","Path=/"].filter((e=>e));document.cookie=s.join("; ")}function t(e){const t=e.querySelector("button[type=submit]"),n=e.querySelector(".submitted-message"),s=async(s={})=>{e.classList.add("busy"),t.disabled=!0;try{const i=e.dataset.url,o=new FormData(e);for(const[e,t]of Object.entries(s))o.append(e,t);const r=await fetch(i,{body:o,method:"post"});!0===(await r.json()).status?(e.classList.add("success"),n?.scrollIntoView?.({behavior:"smooth"})):(t.disabled=!1,e.classList.remove("busy"),alert(localized.form.invalidValues))}catch(n){e.classList.remove("busy"),t.disabled=!1,console.error(n),alert(localized.form.unknownError)}};e.addEventListener("submit",(t=>{t.preventDefault();const n=i.filter((e=>!o(e)));if(n.length>0)return void n[0].scrollIntoView({behavior:"smooth"});const r=e.dataset.recaptchaKey;r?grecaptcha.ready((function(){grecaptcha.execute(r,{action:"submit"}).then((function(e){s({"g-recaptcha-response":e})})).catch((function(t){e.classList.add("error"),console.warn("Captcha error:"),console.error(t)}))})):s()}));const i=Array.from(e.querySelectorAll("input, select, textarea")),o=e=>{let t=!0;return(e.required||e.parentElement.classList.contains("required"))&&("checkbox"==e.type&&!e.checked||"file"!=e.type&&""==e.value.trim()||"file"==e.type&&0==e.files.length)&&(e.parentElement.classList.add("invalid"),t=!1),t};for(const e of i)(e.required||e.parentElement.classList.contains("required"))&&(e.addEventListener("blur",(function(){o(this)})),e.addEventListener("input",(function(){this.parentElement.classList.remove("invalid")}))),"file"==e.type&&e.addEventListener("change",(function(){if(this.files.length>0){const e=8,t=1024*e*1024;this.files[0].size>t&&(alert(localized.form.limitedFileSize.replace("{$1}",e)),this.value="")}}))}function n(e,t,n){return Math.min(Math.max(e,t),n)}function s(e,t={},...n){const s=document.createElement(e);for(const[e,n]of Object.entries(t))s[e]=n;for(const e of n)e instanceof HTMLElement?s.appendChild(e):s.appendChild(document.createTextNode(e));return s}addEventListener("DOMContentLoaded",(function(t){const n=document.getElementById("ck-banner");n&&(n.querySelector("#ck-banner-close")?.addEventListener("click",(function(e){n.remove()})),n.querySelector("#ck-banner-accept").addEventListener("click",(function(t){e("c_enabled","cookie-analytics",365),n.remove()})),n.querySelector("#ck-banner-decline").addEventListener("click",(function(t){e("c_enabled","false",365),n.remove()})))})),addEventListener("DOMContentLoaded",(()=>{document.body.querySelectorAll(".form-holder form").forEach(t)})),addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll("div.faq-block div.faq-expandable");if(0==e.length)return;const t=e=>{const t=e.querySelector(".details"),n=e.querySelector(".summary");e.classList.toggle("open"),e.classList.contains("open")?(t.style.height=t.scrollHeight+"px",n?.setAttribute("aria-expanded","true")):(t.style.height="0px",n?.setAttribute("aria-expanded","false"))};e.forEach((e=>{const n=e.querySelector(".summary");n?.addEventListener("click",(n=>{n.preventDefault(),t(e)})),n?.addEventListener("keydown",(n=>{"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),t(e))}))})),addEventListener("resize",(()=>{for(let t=0;t<e.length;t++)if(e[t].classList.contains("open")){const n=e[t].querySelector(".details");n.style.height=n.scrollHeight+"px"}}));const n=document.querySelectorAll("div.faq-block div.faq-categories a"),s=t=>{const s=t.dataset.categories;for(let t=0;t<e.length;t++){const n=e[t];n.dataset.category.split("-").find((e=>e===s))===s?n.classList.remove("hide"):n.classList.add("hide")}for(let e=0;e<n.length;e++)n[e].classList.toggle("active",n[e]===t)};for(let e=0;e<n.length;e++)n[e].addEventListener("click",(function(e){e.preventDefault(),s(this)}))}));var i=new class{#e=s("ui-lightbox");#t=s("div",{className:"content"});#n=s("button",{className:"close"});#s=s("button",{className:"stepper next"});#i=s("button",{className:"stepper prev"});#o;#r;get currentIndex(){return this.#r}constructor(){this.#e.appendChild(this.#t),this.#e.appendChild(this.#n),this.#e.appendChild(this.#s),this.#e.appendChild(this.#i),this.#n.addEventListener("click",(()=>this.close())),this.#s.addEventListener("click",(()=>this.setIndex(this.#r+1))),this.#i.addEventListener("click",(()=>this.setIndex(this.#r-1))),addEventListener("DOMContentLoaded",(()=>{const e=Array.from(document.querySelectorAll("[data-lb-interactive]"));for(const t of e)t.addEventListener("click",(e=>{let n;const s=t.dataset.lbGroup;n=s?Array.from(document.querySelectorAll(`[data-lb-group="${s}"]`)).map((e=>({src:e.dataset.lbImage,title:e.dataset.lbTitle}
1))):[{src:t.dataset.lbImage,title:t.dataset.lbTitle}];const i=n.findIndex((e=>e.src==t.dataset.lbImage));this.open(n,i??0)}))}))}setIndex(e){const t=n(e,0,this.#o.length-1);if(t===this.#r)return;this.#r=t,this.#t.innerHTML="",this.#t.classList.remove("loaded");const i=this.#o[this.#r];if(/\.(png|jpg|jpeg|gif|bmp)$/gi.test(i.src)){const e=new Image;e.onload=()=>{this.#t.classList.add("loaded"),this.#t.appendChild(e)},e.src=i.src}else if(/\.(mp4|webm|ogg)$/gi.test(i.src)){const e=s("video",{controls:!0},s("source",{src:i.src}));this.#t.appendChild(e),this.#t.classList.add("loaded")}else if(/(vimeo|youtube|youtu\.be)/gi.test(i.src)){const e=s("iframe",{allowFullscreen:!0,src:i.src});this.#t.appendChild(e),this.#t.classList.add("loaded")}this.#s.classList.toggle("disabled",this.#r==this.#o.length-1),this.#i.classList.toggle("disabled",0==this.#r)}open(e,t=0){this.#o="string"==typeof e?[{src:e}]:e.map((e=>"string"==typeof e?{src:e}:e)),this.setIndex(t??0),document.body.appendChild(this.#e),document.addEventListener("keydown",this.onKeyDown)}close(){this.#t.innerHTML="",this.#o=null,this.#r=null,this.#e.remove(),document.removeEventListener("keydown",this.onKeyDown)}onKeyDown=e=>{switch(e.key){case"ArrowLeft":this.setIndex(this.#r-1);break;case"ArrowRight":this.setIndex(this.#r+1);break;case"Escape":this.close()}}};class o{element;static#c=new WeakMap;static{addEventListener("DOMContentLoaded",(()=>{const e=document.getElementsByClassName("image-slider");for(let t=0;t<e.length;t++)this.#c.set(e[t],new o(e[t]))}))}#l;intervalDuration=0;currentIndex;dots;images;constructor(e){if(this.element=e,o.#c.has(e))return o.#c.get(e);this.element=e,this.currentIndex=0,this.images=Array.from(this.element.querySelectorAll(".image")),this.dots=Array.from(this.element.querySelectorAll(".dots .dot")),this.element.querySelector(".stepper.next")?.addEventListener("click",(e=>{e.preventDefault(),this.setIndex(this.currentIndex+1)}),!0),this.element.querySelector(".stepper.previous")?.addEventListener("click",(e=>{e.preventDefault(),this.setIndex(this.currentIndex-1)}),!0),this.element.querySelector(".fullscreen")?.addEventListener("click",(e=>{this.onImageClick(this.currentIndex)}));for(let e=0;e<this.images.length;e++){const t=e;this.dots[e].addEventListener("click",(()=>this.setIndex(t)))}this.element.classList.contains("animated")&&(this.intervalDuration=1e4),this.setIndex(0)}setIndex(e){if(e=n(e,0,this.images.length-1),this.element.classList.toggle("first",0==e),this.element.classList.toggle("last",e==this.images.length-1),this.images.length>0)for(let t=0;t<this.images.length;t++){const n=t-e;this.images[t].classList.toggle("active",t===e),this.images[t].dataset.offset=`${n}`,this.dots[t].classList.toggle("active",t===e)}this.currentIndex=e,this.setTimeout()}onImageClick(e){const t=[];for(let e=0;e<this.images.length;e++)t.push({src:this.images[e].dataset.lbImage,title:this.images[e].dataset.lbTitle});i.open(t,e)}setTimeout(){clearTimeout(this.#l),this.intervalDuration>0&&(this.#l=setTimeout((()=>{const e=(this.currentIndex+1)%this.images.length;this.setIndex(e)}),this.intervalDuration))}}addEventListener("DOMContentLoaded",(()=>{!function(){const e=document.getElementById("hamburger");e&&e.addEventListener("click",(function(){document.body.classList.toggle("menu-open")}))}(),function(){const e=s("div",{className:"content"}),t=s("div",{id:"side-menu"},e),n=Array.from(document.querySelectorAll("section h2")).filter((e=>{for(;e=e.parentElement;)if(e.classList.contains("no-side-title"))return!1;return!0})).map(((t,n)=>{const i=0==n?0:t.parentElement.getBoundingClientRect().top,o=s("a",{className:"heading",href:"#"+t.id},t.textContent.trim());return e.appendChild(o),{anchor:o,viewElement:t.parentElement,range:[i,0]}})).filter(((e,t,n)=>0==t||n[t-1].range[0]!=e.range[0]));n.length>1&&document.body.appendChild(t);const i=()=>{for(const[e,{viewElement:t,range:s}]of n.entries()){const i=0==e?0:t.getBoundingClientRect().top+scrollY,o=e==n.length-1?document.body.scrollHeight:n[e+1].viewElement.getBoundingClientRect().top+scrollY;s[0]=Math.floor(i),s[1]=Math.floor(o)}},o=()=>{const e=scrollY+innerHeight/2;
1for(const{anchor:t,range:s}of n){const n=e>s[0]&&e<=s[1];t.classList.toggle("active",n)}};addEventListener("resize",i),addEventListener("scroll",o,{passive:!0}),addEventListener("load",(()=>{i(),o()})),i(),o()}(),function(){document.querySelectorAll("button.btn.reserve").forEach((e=>{e.addEventListener("click",(()=>{FT.widgets.get().openTicket("f0e33651")}))}));document.querySelectorAll("button.btn.reserve.prestige").forEach((e=>{e.addEventListener("click",(()=>{FT.widgets.get().openTicket("4eff85f3")}))}))}(),function(){const e=document.getElementById("side-menu")||null,t=document.getElementById("hero");e&&(window.onscroll=()=>{e.classList.toggle("show",document.documentElement.scrollTop>t.clientHeight/2)})}(),function(){const e=document.getElementById("menu-top");document.documentElement.scrollTop>100&&e.classList.add("scrolled");window.addEventListener("scroll",(()=>{document.documentElement.scrollTop>100?e.classList.add("scrolled"):e.classList.remove("scrolled")}))}()}))}();
2//# sourceMappingURL=js.bundle.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.