PageSourceSearch

https://www.restaurantdetuin.nl/templates/detuin2023/dist/assets/main-65ea2268.js

js restaurantdetuin.nl collected 2026-10-05 19:30:07 UTC 7,386 bytes, 1 lines download raw bytes

1function e(){import.meta.url,import("_").catch((()=>1))}let t={easing:"ease",duration:250,fill:"backwards",display:"block",overflow:"hidden"},n=["overflow","display"],o=(e,o)=>{let i=Object.assign({},t,o),s=i.display,a=t=>e.style.display=t,c=()=>e.clientHeight+"px",r=t=>e.style.overflow=t?i.overflow:"",l=()=>e.getAnimations(),d=(t,o)=>{var s;n.forEach((e=>delete i[e]));let a=c(),r=[a,o].map((e=>({height:e,paddingTop:"0px",paddingBottom:"0px"}))),{paddingTop:l,paddingBottom:d}=window.getComputedStyle(e);r[0].paddingTop=l,r[0].paddingBottom=d,t&&(r[0].height=a,r.reverse()),(null==(s=window.matchMedia("(prefers-reduced-motion: reduce)"))?void 0:s.matches)&&(i.duration=0);let u=e.animate(r,i);return u.id=(+t).toString(),u},u=async e=>{let t=l().map((e=>e.finish()));var n;return await(n=async t=>{let n=e?c():"0px";e&&a(s),r(!0),await d(e,n).finished,r(!1),e||a("none"),t()},new Promise((e=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{n(e)}))}))}))),t.length?null:e},m=async()=>u(!1),p=async()=>u(!0);return{up:m,down:p,toggle:async()=>{var t;let n=null==(t=l()[0])?void 0:t.id;return((n?"1"===n:e.offsetHeight)?m:p)()}}},i=(e,t={})=>o(e,t).down();const s=document.querySelectorAll(".checkform"),a=document.querySelectorAll(".requiredform");function c(e,t){let n=0;const o=new FormData(e),i=e.querySelector('input[name="msg_form_type"]'),s=e.querySelector('[type="submit"]');
1return s&&(s.disabled=!0),[...e.elements].forEach((function(e){let t=e.validationMessage||null,o=e.validity.valid;"g-recaptcha-response"!==e.name&&"cf-turnstile-response"!==e.name||(o=!!e.value,t="nl"===r("siteLanguage")?"Vul a.u.b. de captcha in.":"Please complete the captcha.",e="cf-turnstile-response"===e.name?e.closest(".cf-turnstile"):e.closest(".g-recaptcha"));let i,s=e.dataset.errorId||null;if(s&&(i=document.querySelector("#error-"+s)),o)e.classList.remove("is-invalid-input"),e.labels&&e.labels.forEach((function(e){e.classList.remove("is-invalid-label")})),i&&i.classList.remove("is-visible");else{if(!i){const t=d(12,(function(e){return null===document.querySelector("#error-"+e)}));i=document.createElement("span"),i.id="error-"+t,i.classList.add("form-error"),e.insertAdjacentElement("afterend",i),e.dataset.errorId=t}i.innerText=t,i.classList.add("is-visible"),e.labels&&e.labels.forEach((function(e){e.classList.add("is-invalid-label")})),e.classList.add("is-invalid-input"),n++}})),n>0?(s&&(s.disabled=!1),!1):!i||(s&&(s.disabled=!1),t&&"function"==typeof t&&t(i.value,o),!0)}function r(e){e=encodeURIComponent(e);const t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return t?decodeURIComponent(t.pop()):null}function l(e){return(e=Number(e)).toString(16).padStart(2,"0")}function d(e,t){e=e||12;const n=new Uint8Array(e/2);crypto.getRandomValues(n);const o=Array.from(n,l).join("");return!t||t(o)?o:d(e,t)}s.length>0&&s.forEach((function(e){e.onsubmit=function(e){e.preventDefault();const t=this;return c(t,(function(e,n){fetch("/includes/actions/"+e+".php",{method:t.method,body:n}).then((function(e){return e.ok?e.text():Promise.reject({status:e.status,statusText:e.statusText})})).then((function(e){t.innerHTML=e})).catch((function(e){alert("Er is iets misgegaan. Probeer het later opnieuw."),console.error(e)}))})),!1}})),a.length>0&&a.forEach((function(e){e.noValidate=!0,e.onsubmit=function(){return c(this)}})),window.setCookie=function(e,t,n,o){e=encodeURIComponent(e),t=encodeURIComponent(t),n&&0!==n||(n=1),o||(o="/");const i=new Date,s=new Date;s.setTime(i.getTime()+864e5*n),document.cookie=e+"="+t+"; Expires="+s.toUTCString()+"; Path="+o+"; SameSite=Lax"+("https:"===location.protocol?"; Secure":"")},window.getCookie=r,window.removeCookie=function(e,t){e=encodeURIComponent(e),t||(t="/"),document.cookie=e+"=; Path="+t+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};const u=document.querySelector("html");function m(){const e=document.querySelectorAll("section:not(.loaded)");if(e.length>0){const t=Math.max(document.documentElement.clientHeight,window.innerHeight);e.forEach((function(e){const n=e.getBoundingClientRect();n.bottom+35>=0&&n.top-t-35<0&&e.classList.add("loaded")}))}}(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||function(){const e=navigator.userAgent;if(-1!==e.indexOf("Safari")){const t=e.indexOf("Version/")+8;return parseFloat(e.substring(t,e.indexOf("Safari/")-1))<15.4}return!1}())&&u.classList.add("no-parallax");const p=document.querySelector("header");function f(){document.body.style.setProperty("--header-height",p.offsetHeight+"px")}f(),window.addEventListener("resize",(function(){f()}));const g=document.querySelector(".menu-overlay");g&&g.removeAttribute("style");const h=document.querySelector(".menu-toggle");h&&h.addEventListener("click",(function(){g.classList.contains("is-active")?(this.classList.remove("is-active"),g.classList.remove("is-active"),u.classList.remove("overlay-active")):(this.classList.add("is-active"),g.classList.add("is-active"),u.classList.add("overlay-active"))}));const y=document.querySelectorAll(".menu-parent > .menu-link");y.length>0&&y.forEach((function(e){e.addEventListener("click",(function(e){if(t="large",null!==document.querySelector("#breakpoint-"+t).offsetParent)return!0;var t;e.preventDefault();const n=this.parentElement,s=n.querySelector(".subnavi");n.classList.contains("open")?(n.classList.remove("open"),((e,t={})=>{o(e,t).up()})(s)):(n.classList.add("open"),i(s))}))})),m(),window.addEventListener("scroll",(function(){m()}));const v=document.querySelectorAll(".booking-btn"),w=document.querySelector(".booking-side");let b=!1;v.forEach((function(e){e.addEventListener("click",(function(){const e=this,t=document.querySelector(e.dataset.ele);if(!t)return;if(this.classList.add("is-active"),v.forEach((function(t){t===e?t.classList.add("is-active"):t.classList.remove("is-active")})),"booking_iframe"===t.id)if(document.querySelector("#guestplan-widget"))_gstpln.openWidget(),b=!0;else{window._gstpln={};const e=document.createElement("script");e.src="https://cdn.guestplan.com/widget.js",e.async=!0,e.id="guestplan-widget",e.onload=function(){const e=setInterval((function(){try{_gstpln.openWidget()}catch(t){return}b=!0,clearInterval(e)}),250)},document.body.append(e),_gstpln.accessKey="0aa4c4c0accc88d433f4582a690afc39a7d5c536",_gstpln.useNewsletterSubscriptionOptIn=!0,_gstpln.open=!1,_gstpln.showFab=!1}else b&&(_gstpln.closeWidget(),b=!1);const n=document.querySelector(".booking-tab.is-active");n?(n.removeAttribute("style"),n.classList.remove("is-active"),t.classList.add("is-active")):i(t,{duration:600}).then((function(){t.classList.add("is-active"),w.classList.add("open")}))}
1))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("type_lunch"),t=document.getElementById("type_diner"),n=document.getElementById("type_borrel"),o=document.getElementById("lunchDropdown"),i=document.getElementById("dinerDropdown");e.addEventListener("click",(function(){o.style.display="block",i.style.display="none"})),t.addEventListener("click",(function(){i.style.display="block",o.style.display="none"})),n.addEventListener("click",(function(){o.style.display="none",i.style.display="none"}))})),document.querySelectorAll(".modal_show").forEach((function(e){e.showModal()}));export{e as __vite_legacy_guard};

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.