PageSourceSearch

https://shop.auravita.ch/js/helper/cookie-dialog.js

js auravita.ch collected 2026-10-04 10:26:45 UTC 1,911 bytes, 1 lines download raw bytes

1const CookieDialog={_cookies:{necessary:["NSESSIONID","NSESSIONID.sig","KSESSIONID","OSESSIONID","cookieconsent_status","cookieSetting","module"],functional:["view","count","order","ssoAutoLoginChecked","hasconsent","hasfunctionalconsent","hasperformanceconsent","noheader","nofooter","iframe"]},_defaultCookieCategory:"performance",cookieDialogOpened(o){$(`.${o} .cookie-button`).on("click",(e=>{const t=Frontend.getCookieSettings(),n=$(e.currentTarget).hasClass("accept-all-cookies"),i=$(e.currentTarget).hasClass("reject-button"),s=[];let c="cookie-dialog"===o,a=!1;let r=`cookieSetting=${$(`.${o} input:not([disabled])`).map((function(){const o=$(this),e=o.attr("name");if("necessary"===e)return null;const r=!i&&(n||o.is(":checked"));r||s.push(e);const l=`${e}_${r?1:0}`;return-1===t.indexOf(l)&&("performance"===e&&(a=!0),c=!0),l})).get().join("&")};max-age=15768000;path=/`;if("https:"===window.location.protocol&&(r+=";secure;samesite=none"),document.cookie=r,s.length){const o=Frontend.getCookies();for(const[e]of o){let o;for(const t of Object.keys(CookieDialog._cookies))if(-1!==CookieDialog._cookies[t].indexOf(e)){o=t;break}o?-1!==s.indexOf(o)&&CookieDialog._removeCookie(e):-1!==s.indexOf(CookieDialog._defaultCookieCategory)&&CookieDialog._removeCookie(e)}}Frontend.cookieConsent.close(),Frontend.cookieConsent.setStatus("allow"),a?window.location.reload(!0):c&&CookieDialog._setInputSwitches("cc-message")})),CookieDialog._setInputSwitches(o)},_removeCookie(o){document.cookie=`${o}=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/`,document.cookie=`${o}=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=${Frontend.frontpagePath}`},_setInputSwitches(o){if(document.cookie){const e=Frontend.getCookieSettings();if(e)for(const t of e.split("&")){const[e,n]=String(t).trim().split("_"),i=$(`.${o} input[name="${e}"]:not([disabled])`);Number(n)?i.lcs_on():i.lcs_off()}}}};window.CookieDialog=CookieDialog;

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.