From 84b35ae48f97a1d9226526e5e415cf10453b5090 Mon Sep 17 00:00:00 2001 From: Mysteriedev Date: Mon, 13 Sep 2021 17:53:07 +0200 Subject: [PATCH] version --- public/cookiebanner-index.min.js | 412 +------------------------------ solid-frontend-dev/package.json | 2 +- 2 files changed, 2 insertions(+), 412 deletions(-) diff --git a/public/cookiebanner-index.min.js b/public/cookiebanner-index.min.js index bea8283..f8d15a2 100644 --- a/public/cookiebanner-index.min.js +++ b/public/cookiebanner-index.min.js @@ -1,411 +1 @@ -import { - c as e, - t, - d as n, - a as o, - b as i, - i as r, - S as c, - e as l, - o as s, - f as a, - r as d, -} from "./cookiebanner-vendor.min.js"; -!(function() { - const e = document.createElement("link").relList; - if (!(e && e.supports && e.supports("modulepreload"))) { - for (const e of document.querySelectorAll('link[rel="modulepreload"]')) - t(e); - new MutationObserver((e) => { - for (const n of e) - if ("childList" === n.type) - for (const e of n.addedNodes) - "LINK" === e.tagName && "modulepreload" === e.rel && t(e); - }).observe(document, { childList: !0, subtree: !0 }); - } - - function t(e) { - if (e.ep) return; - e.ep = !0; - const t = (function(e) { - const t = {}; - return ( - e.integrity && (t.integrity = e.integrity), - e.referrerpolicy && (t.referrerPolicy = e.referrerpolicy), - "use-credentials" === e.crossorigin ? - (t.credentials = "include") : - "anonymous" === e.crossorigin ? - (t.credentials = "omit") : - (t.credentials = "same-origin"), - t - ); - })(e); - fetch(e.href, t); - } -})(); -const [u, m] = e({ Req: [], Fun: [], Mar: [] }); -const b = t("

"), - g = t( - '


..

' - ), - h = t( - '
' - ), - w = t(""); - -function k(e) { - let t = e.category, - n = (function(e) { - const t = [], - n = document.querySelector("#cookieDef" + e).content.firstElementChild; - if (!n) return []; - const o = n.querySelector("tbody"); - if (!o) return []; - const i = o.querySelectorAll("tr"); - if (!i) return []; - return ( - i.forEach((e) => { - const n = { name: "", host: void 0, persistence: void 0 }, - o = e.querySelectorAll("td"); - let i = 0; - o.forEach(() => { - switch (i) { - case 0: - (n.name = o[i].innerHTML), i++; - break; - case 1: - (n.host = o[i].innerHTML), i++; - break; - case 2: - const e = Number(o[i].innerHTML); - (n.persistence = 0 === e ? "SESSION" : e.toString()), - (i = 0), - t.push(n); - } - }); - }), - t - ); - })(t); - !(function(e, t) { - m(e, () => t); - })(t, n), - (window.cookiemeta[t].cookies = u[t]); - let l = window.cookiemeta.showmore, - s = window.cookiemeta.showless; - const [a, d] = o(!1); - return i(c, { - get when() { - return n && n.length > 0; - }, - get children() { - return [ - (() => { - const e = b.cloneNode(!0); - return r(e, () => window.cookiemeta[t].headline), e; - })(), - (() => { - const e = g.cloneNode(!0), - n = e.firstChild, - o = n.nextSibling; - return ( - o.firstChild, - (e.$$click = () => { - d(!a()); - }), - r( - e, - () => (window.cookiemeta[t] ? window.cookiemeta[t].text : ""), - n - ), - r(o, () => (a() ? s : l), null), - e - ); - })(), - i(c, { - get when() { - return a(); - }, - get children() { - return i(f, { - cookies: n, - category: t, - get cookieNameTable() { - return window.cookiemeta.cookienameColumn; - }, - get hostNameTable() { - return window.cookiemeta.cookiehostColumn; - }, - get persistenceNameTable() { - return window.cookiemeta.cookiepersistenceColumn; - }, - }); - }, - }), - ]; - }, - }); -} - -function f(e) { - return (() => { - const t = h.cloneNode(!0), - n = t.firstChild, - o = n.firstChild.firstChild, - i = o.nextSibling, - c = i.nextSibling, - l = n.nextSibling; - return ( - r(o, () => e.cookieNameTable), - r(i, () => e.hostNameTable), - r(c, () => e.persistenceNameTable), - r(l, () => - u[e.category].map((e) => - (() => { - const t = w.cloneNode(!0), - n = t.firstChild, - o = n.nextSibling, - i = o.nextSibling; - return ( - r(n, () => e.name), - r(o, () => e.host), - r(i, () => e.persistence), - t - ); - })() - ) - ), - t - ); - })(); -} -n(["click"]); -const v = window.cookiemeta.cookieBannerVersion ? - window.cookiemeta.cookieBannerVersion.toString() : - "0"; - -function p(e) { - return l.set("cbFun", e ? "TRUE" : "FALSE", { expires: 365 }); -} - -function y(e) { - return l.set("cbMar", e ? "TRUE" : "FALSE", { expires: 365 }); -} - -function T() { - l.remove("cbReq"), l.remove("cbFun"), l.remove("cbMar"); -} -var C, N; -((N = C || (C = {})).required = "Req"), -(N.functional = "Fun"), -(N.marketing = "Mar"); -let S = { req: !0, fun: !1, mar: !1 }; -const E = new CustomEvent("bannerconsent", { detail: S }); - -function q(e) { - !(function(e) { - void l.set("cbSet", v, { expires: 365 }), - void l.set("cbReq", "TRUE", { expires: 365 }), - e === C.functional ? (p(!0), (S.fun = !0)) : p(!1); - e === C.marketing ? (p(!0), y(!0), (S.fun = !0), (S.mar = !0)) : y(!1); - M(!1); - })(e), - document.body.classList.remove("cbPreventScroll"), - (document.querySelector("#solidApp").style.display = "none"); -} - -function M(e) { - e && - (S = { - req: !0, - fun: "TRUE" === l.get("cbFun"), - mar: "TRUE" === l.get("cbMar"), - }), - window.dispatchEvent(E); -} -const L = t(''), - x = t('
'), - R = t( - '
' - ), - $ = t( - '

' - ), - F = () => { - function e() { - return (() => { - const e = L.cloneNode(!0); - return ( - (e.$$click = () => q(C.marketing)), - r(e, () => window.cookiemeta.acceptallbtn), - e - ); - })(); - } - return ( - s(() => { - document.body.classList.add("cbPreventScroll"); - }), - (() => { - const t = $.cloneNode(!0), - n = t.firstChild, - o = n.firstChild, - l = o.firstChild, - s = o.nextSibling, - d = s.nextSibling, - m = d.firstChild.firstChild; - return ( - r( - n, - i(k, { - get category() { - return C.required; - }, - }), - d - ), - r( - n, - i(k, { - get category() { - return C.functional; - }, - }), - d - ), - r( - n, - i(k, { - get category() { - return C.marketing; - }, - }), - d - ), - (m.$$click = () => q(C.required)), - r(m, () => window.cookiemeta.declinenonrequiredbtn), - r( - d, - i(c, { - get when() { - return 0 === u.Fun.length; - }, - get children() { - const t = x.cloneNode(!0); - return r(t, e), t; - }, - }), - null - ), - r( - n, - i(c, { - get when() { - return u.Fun.length > 0; - }, - get children() { - const t = R.cloneNode(!0), - n = t.firstChild, - o = n.firstChild, - i = n.nextSibling; - return ( - (o.$$click = () => q(C.functional)), - r(o, () => window.cookiemeta.onlyfunctionalbtn), - r(i, e), - t - ); - }, - }), - null - ), - a( - (e) => { - const t = window.cookiemeta.headline, - n = window.cookiemeta.introduction; - return ( - t !== e._v$ && (l.data = e._v$ = t), - n !== e._v$2 && (s.innerHTML = e._v$2 = n), - e - ); - }, { _v$: void 0, _v$2: void 0 } - ), - t - ); - })() - ); - }; -n(["click"]), - new URL(window.location.href).searchParams.get("nocb") || - (l.get("cbSet") === v && - l.get("cbReq") && - l.get("cbFun") && - l.get("cbMar")) || - (T(), 0) ? - M(!0) : - d(() => i(F, {}), document.getElementById("solidApp")); -const B = document.getElementById("cbReqTable"); -if (B) { - B.outerHTML = '
'; - const e = document.createElement("DIV"); - B.appendChild(e), - d( - () => - i(k, { - get category() { - return C.required; - }, - get cookieNameTable() { - return window.cookiemeta.cookienameColumn; - }, - get hostNameTable() { - return window.cookiemeta.cookiehostColumn; - }, - get persistenceNameTable() { - return window.cookiemeta.cookiepersistenceColumn; - }, - }), - document.getElementById("cbReqTable") - ); -} -const I = document.getElementById("cbFunTable"); -I && - ((I.outerHTML = '
'), - d( - () => - i(k, { - get category() { - return C.functional; - }, - get cookieNameTable() { - return window.cookiemeta.cookienameColumn; - }, - get hostNameTable() { - return window.cookiemeta.cookiehostColumn; - }, - get persistenceNameTable() { - return window.cookiemeta.cookiepersistenceColumn; - }, - }), - document.getElementById("cbFunTable") - )); -const A = document.getElementById("cbMarTable"); -A && - ((A.outerHTML = '
'), - d( - () => - i(k, { - get category() { - return C.marketing; - }, - get cookieNameTable() { - return window.cookiemeta.cookienameColumn; - }, - get hostNameTable() { - return window.cookiemeta.cookiehostColumn; - }, - get persistenceNameTable() { - return window.cookiemeta.cookiepersistenceColumn; - }, - }), - document.getElementById("cbMarTable") - )); \ No newline at end of file +import{c as e,t,d as n,a as o,b as i,i as r,S as c,e as l,o as s,f as a,r as d}from"./cookiebanner-vendor.min.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const[u,m]=e({Req:[],Fun:[],Mar:[]});const b=t("

"),g=t('


..

'),h=t('
'),w=t("");function k(e){let t=e.category,n=function(e){const t=[],n=document.querySelector("#cookieDef"+e).content.firstElementChild;if(!n)return[];const o=n.querySelector("tbody");if(!o)return[];const i=o.querySelectorAll("tr");if(!i)return[];return i.forEach((e=>{const n={name:"",host:void 0,persistence:void 0},o=e.querySelectorAll("td");let i=0;o.forEach((()=>{switch(i){case 0:n.name=o[i].innerHTML,i++;break;case 1:n.host=o[i].innerHTML,i++;break;case 2:const e=Number(o[i].innerHTML);n.persistence=0===e?"SESSION":e.toString(),i=0,t.push(n)}}))})),t}(t);!function(e,t){m(e,(()=>t))}(t,n),window.cookiemeta[t].cookies=u[t];let l=window.cookiemeta.showmore,s=window.cookiemeta.showless;const[a,d]=o(!1);return i(c,{get when(){return n&&n.length>0},get children(){return[(()=>{const e=b.cloneNode(!0);return r(e,(()=>window.cookiemeta[t].headline)),e})(),(()=>{const e=g.cloneNode(!0),n=e.firstChild,o=n.nextSibling;return o.firstChild,e.$$click=()=>{d(!a())},r(e,(()=>window.cookiemeta[t]?window.cookiemeta[t].text:""),n),r(o,(()=>a()?s:l),null),e})(),i(c,{get when(){return a()},get children(){return i(f,{cookies:n,category:t,get cookieNameTable(){return window.cookiemeta.cookienameColumn},get hostNameTable(){return window.cookiemeta.cookiehostColumn},get persistenceNameTable(){return window.cookiemeta.cookiepersistenceColumn}})}})]}})}function f(e){return(()=>{const t=h.cloneNode(!0),n=t.firstChild,o=n.firstChild.firstChild,i=o.nextSibling,c=i.nextSibling,l=n.nextSibling;return r(o,(()=>e.cookieNameTable)),r(i,(()=>e.hostNameTable)),r(c,(()=>e.persistenceNameTable)),r(l,(()=>u[e.category].map((e=>(()=>{const t=w.cloneNode(!0),n=t.firstChild,o=n.nextSibling,i=o.nextSibling;return r(n,(()=>e.name)),r(o,(()=>e.host)),r(i,(()=>e.persistence)),t})())))),t})()}n(["click"]);const v=window.cookiemeta.cookieBannerVersion?window.cookiemeta.cookieBannerVersion.toString():"0";function p(e){return l.set("cbFun",e?"TRUE":"FALSE",{expires:365})}function y(e){return l.set("cbMar",e?"TRUE":"FALSE",{expires:365})}function T(){l.remove("cbReq"),l.remove("cbFun"),l.remove("cbMar")}var C,N;(N=C||(C={})).required="Req",N.functional="Fun",N.marketing="Mar";let S={req:!0,fun:!1,mar:!1};const E=new CustomEvent("bannerconsent",{detail:S});function q(e){!function(e){void l.set("cbSet",v,{expires:365}),void l.set("cbReq","TRUE",{expires:365}),e===C.functional?(p(!0),S.fun=!0):p(!1);e===C.marketing?(p(!0),y(!0),S.fun=!0,S.mar=!0):y(!1);M(!1)}(e),document.body.classList.remove("cbPreventScroll"),document.querySelector("#solidApp").style.display="none"}function M(e){e&&(S={req:!0,fun:"TRUE"===l.get("cbFun"),mar:"TRUE"===l.get("cbMar")}),window.dispatchEvent(E)}const L=t(''),x=t('
'),R=t('
'),$=t('

'),F=()=>{function e(){return(()=>{const e=L.cloneNode(!0);return e.$$click=()=>q(C.marketing),r(e,(()=>window.cookiemeta.acceptallbtn)),e})()}return s((()=>{document.body.classList.add("cbPreventScroll")})),(()=>{const t=$.cloneNode(!0),n=t.firstChild,o=n.firstChild,l=o.firstChild,s=o.nextSibling,d=s.nextSibling,m=d.firstChild.firstChild;return r(n,i(k,{get category(){return C.required}}),d),r(n,i(k,{get category(){return C.functional}}),d),r(n,i(k,{get category(){return C.marketing}}),d),m.$$click=()=>q(C.required),r(m,(()=>window.cookiemeta.declinenonrequiredbtn)),r(d,i(c,{get when(){return 0===u.Fun.length},get children(){const t=x.cloneNode(!0);return r(t,e),t}}),null),r(n,i(c,{get when(){return u.Fun.length>0},get children(){const t=R.cloneNode(!0),n=t.firstChild,o=n.firstChild,i=n.nextSibling;return o.$$click=()=>q(C.functional),r(o,(()=>window.cookiemeta.onlyfunctionalbtn)),r(i,e),t}}),null),a((e=>{const t=window.cookiemeta.headline,n=window.cookiemeta.introduction;return t!==e._v$&&(l.data=e._v$=t),n!==e._v$2&&(s.innerHTML=e._v$2=n),e}),{_v$:void 0,_v$2:void 0}),t})()};n(["click"]),new URL(window.location.href).searchParams.get("nocb")||l.get("cbSet")===v&&l.get("cbReq")&&l.get("cbFun")&&l.get("cbMar")||(T(),0)?M(!0):d((()=>i(F,{})),document.getElementById("solidApp"));const B=document.getElementById("cbReqTable");if(B){B.outerHTML='
';const e=document.createElement("DIV");B.appendChild(e),d((()=>i(k,{get category(){return C.required},get cookieNameTable(){return window.cookiemeta.cookienameColumn},get hostNameTable(){return window.cookiemeta.cookiehostColumn},get persistenceNameTable(){return window.cookiemeta.cookiepersistenceColumn}})),document.getElementById("cbReqTable"))}const I=document.getElementById("cbFunTable");I&&(I.outerHTML='
',d((()=>i(k,{get category(){return C.functional},get cookieNameTable(){return window.cookiemeta.cookienameColumn},get hostNameTable(){return window.cookiemeta.cookiehostColumn},get persistenceNameTable(){return window.cookiemeta.cookiepersistenceColumn}})),document.getElementById("cbFunTable")));const A=document.getElementById("cbMarTable");A&&(A.outerHTML='
',d((()=>i(k,{get category(){return C.marketing},get cookieNameTable(){return window.cookiemeta.cookienameColumn},get hostNameTable(){return window.cookiemeta.cookiehostColumn},get persistenceNameTable(){return window.cookiemeta.cookiepersistenceColumn}})),document.getElementById("cbMarTable"))); \ No newline at end of file diff --git a/solid-frontend-dev/package.json b/solid-frontend-dev/package.json index 5d8b44b..3c28911 100644 --- a/solid-frontend-dev/package.json +++ b/solid-frontend-dev/package.json @@ -1,6 +1,6 @@ { "name": "vite-template-solid", - "version": "1.0.2", + "version": "1.0.1", "description": "", "scripts": { "start": "vite",