PageSourceSearch

https://www.restaurantdetuin.nl/templates/detuin2023/dist/assets/gdpr-fd7a84db.js

js restaurantdetuin.nl collected 2026-10-05 19:30:12 UTC 2,315 bytes, 1 lines download raw bytes

1function e(){import.meta.url,import("_").catch((()=>1))}const t="GDPR_CONSENT",n="/system/gdpr.php",o=document.querySelector("#gdpr-change");let c,a;function i(){const e=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)");return e?decodeURIComponent(e.pop()):null}function s(e){const n=new Date,o=new Date;o.setTime(n.getTime()+31536e6),document.cookie=t+"="+e+"; Expires="+o.toUTCString()+"; Path=/; SameSite=Lax"+("https:"===location.protocol?"; Secure":"")}function r(){document.querySelectorAll(".gdpr__form").forEach((function(e){e.onsubmit=function(e){e.preventDefault();const t=new FormData(this);t.append(e.submitter.name,e.submitter.value),t.append("js","1");const o=t.get("type");if("accept"===o||"reject"===o)return s(o),u(),void location.reload();!function(){if(a)return void a.showModal();fetch(n+"?type=modal&js=1",{method:"GET"}).then((function(e){if(e.ok)return e.json()})).then((function(e){a=document.createElement("dialog"),a.classList.add("modal","gdpr__modal");const t=document.createElement("form");t.classList.add("modal__close"),t.method="dialog";const n=document.createElement("button");n.type="submit",n.ariaLabel="Close",t.append(n),a.append(t);const o=document.createElement("div");o.classList.add("modal__inner"),a.append(o),o.innerHTML=e.html,document.body.append(a),a.onclose=function(){i()||d()},u(),document.querySelectorAll(".gdpr__optform").forEach((function(e){e.onsubmit=function(t){if(t.preventDefault(),"select"===t.submitter.value){const t={};for(const n of e.elements){if("submit"===n.type)continue;let e=n.value;const o=parseInt(e);"checkbox"!==n.type&&"radio"!==n.type||n.checked?isNaN(o)||(e=o):e=0,t[n.name]=e}s(JSON.stringify(t))}else s(t.submitter.value);a.close(),location.reload()}})),a.showModal()}))}()}}))}function d(){fetch(n+"?type=banner&js=1",{method:"GET"}).then((function(e){if(e.ok)return e.json()})).then((function(e){const t=document.createElement("link");t.rel="stylesheet",t.href=e.css,t.onload=function(){c||(c=document.createElement("div"),c.innerHTML=e.html,c.classList.add("gdpr__banner"),document.body.append(c),r()),setTimeout((function(){c.classList.add("gdpr__banner_active")}),250)},document.head.append(t)}))}function u(){c.classList.remove("gdpr__banner_active")}i()||d(),o&&(o.onclick=function(){d()});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.