@leancodepl/cookie-consent 9.7.2 → 9.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,971 @@
1
+ const xt = "opt-in", Ce = "opt-out", Qe = "show--consent", et = "show--preferences", Ue = "disable--interaction", Pe = "data-category";
2
+ const $ = "button", q = "aria-hidden", Se = "btn-group", H = "click", he = "data-role", tt = "consentModal", ot = "preferencesModal";
3
+ class Ot {
4
+ constructor() {
5
+ this.t = { mode: xt, revision: 0, autoShow: !0, lazyHtmlGeneration: !0, autoClearCookies: !0, manageScriptTags: !0, hideFromBots: !0, cookie: { name: "cc_cookie", expiresAfterDays: 182, domain: "", path: "/", secure: !0, sameSite: "Lax" } }, this.o = { i: {}, l: "", _: {}, u: {}, p: {}, m: [], v: !1, h: null, C: null, S: null, M: "", D: !0, T: !1, k: !1, A: !1, N: !1, H: [], V: !1, I: !0, L: [], j: !1, F: "", P: !1, O: [], R: [], B: [], $: [], G: !1, J: !1, U: !1, q: [], K: [], W: [], X: {}, Y: {}, Z: {}, ee: {}, te: {}, oe: [] }, this.ne = { ae: {}, se: {} }, this.ce = {}, this.re = { ie: "cc:onFirstConsent", le: "cc:onConsent", de: "cc:onChange", fe: "cc:onModalShow", _e: "cc:onModalHide", ue: "cc:onModalReady" };
6
+ }
7
+ }
8
+ const a = new Ot(), At = (t, n) => t.indexOf(n), _ = (t, n) => At(t, n) !== -1, be = (t) => Array.isArray(t), te = (t) => typeof t == "string", De = (t) => !!t && typeof t == "object" && !be(t), J = (t) => typeof t == "function", W = (t) => Object.keys(t), nt = (t) => Array.from(new Set(t)), Be = () => document.activeElement, ye = (t) => t.preventDefault(), at = (t, n) => t.querySelectorAll(n), Me = (t) => t.dispatchEvent(new Event("change")), h = (t) => {
9
+ const n = document.createElement(t);
10
+ return t === $ && (n.type = t), n;
11
+ }, w = (t, n, o) => t.setAttribute(n, o), Ne = (t, n, o) => {
12
+ t.removeAttribute(o ? "data-" + n : n);
13
+ }, xe = (t, n, o) => t.getAttribute(o ? "data-" + n : n), y = (t, n) => t.appendChild(n), T = (t, n) => t.classList.add(n), I = (t, n) => T(t, "cm__" + n), S = (t, n) => T(t, "pm__" + n), re = (t, n) => t.classList.remove(n), ee = (t) => {
14
+ if (typeof t != "object") return t;
15
+ if (t instanceof Date) return new Date(t.getTime());
16
+ let n = Array.isArray(t) ? [] : {};
17
+ for (let o in t) {
18
+ let e = t[o];
19
+ n[o] = ee(e);
20
+ }
21
+ return n;
22
+ }, ao = () => {
23
+ const t = {}, { O: n, X: o, Y: e } = a.o;
24
+ for (const r of n) t[r] = Oe(e[r], W(o[r]));
25
+ return t;
26
+ }, kt = (t, n) => dispatchEvent(new CustomEvent(t, { detail: n })), x = (t, n, o, e) => {
27
+ t.addEventListener(n, o), e && a.o.m.push({ pe: t, ge: n, me: o });
28
+ }, wt = () => {
29
+ const t = a.t.cookie.expiresAfterDays;
30
+ return J(t) ? t(a.o.F) : t;
31
+ }, Oe = (t, n) => {
32
+ const o = t || [], e = n || [];
33
+ return o.filter(((r) => !_(e, r))).concat(e.filter(((r) => !_(o, r))));
34
+ }, Pt = (t) => {
35
+ a.o.R = nt(t), a.o.F = (() => {
36
+ let n = "custom";
37
+ const { R: o, O: e, B: r } = a.o, c = o.length;
38
+ return c === e.length ? n = "all" : c === r.length && (n = "necessary"), n;
39
+ })();
40
+ }, Dt = (t, n, o, e) => {
41
+ const r = "accept-", { show: c, showPreferences: u, hide: s, hidePreferences: i, acceptCategory: d } = n, f = t || document, p = (k) => at(f, `[data-cc="${k}"]`), g = (k, b) => {
42
+ ye(k), d(b), i(), s();
43
+ }, m = p("show-preferencesModal"), l = p("show-consentModal"), v = p(r + "all"), z = p(r + "necessary"), C = p(r + "custom"), j = a.t.lazyHtmlGeneration;
44
+ for (const k of m) w(k, "aria-haspopup", "dialog"), x(k, H, ((b) => {
45
+ ye(b), u();
46
+ })), j && (x(k, "mouseenter", ((b) => {
47
+ ye(b), a.o.N || o(n, e);
48
+ }), !0), x(k, "focus", (() => {
49
+ a.o.N || o(n, e);
50
+ })));
51
+ for (let k of l) w(k, "aria-haspopup", "dialog"), x(k, H, ((b) => {
52
+ ye(b), c(!0);
53
+ }), !0);
54
+ for (let k of v) x(k, H, ((b) => {
55
+ g(b, "all");
56
+ }), !0);
57
+ for (let k of C) x(k, H, ((b) => {
58
+ g(b);
59
+ }), !0);
60
+ for (let k of z) x(k, H, ((b) => {
61
+ g(b, []);
62
+ }), !0);
63
+ }, V = (t, n) => {
64
+ t && (n && (t.tabIndex = -1), t.focus(), n && t.removeAttribute("tabindex"));
65
+ }, Bt = (t, n) => {
66
+ const o = (e) => {
67
+ e.target.removeEventListener("transitionend", o), e.propertyName === "opacity" && getComputedStyle(t).opacity === "1" && V(((r) => r === 1 ? a.ne.be : a.ne.ve)(n));
68
+ };
69
+ x(t, "transitionend", o);
70
+ };
71
+ let bt;
72
+ const Ht = (t) => {
73
+ clearTimeout(bt), t ? T(a.ne.ye, Ue) : bt = setTimeout((() => {
74
+ re(a.ne.ye, Ue);
75
+ }), 500);
76
+ }, so = ["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5", "M 3.572 13.406 L 8.281 18.115 L 20.428 5.885", "M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "], je = (t = 0, n = 1.5) => `<svg viewBox="0 0 24 24" stroke-width="${n}"><path d="${so[t]}"/></svg>`, It = (t) => {
77
+ const n = a.ne, o = a.o;
78
+ ((e) => {
79
+ const r = e === n.he, c = o.i.disablePageInteraction ? n.ye : r ? n.Ce : n.ye;
80
+ x(c, "keydown", ((u) => {
81
+ if (u.key !== "Tab" || !(r ? o.k && !o.A : o.A)) return;
82
+ const s = Be(), i = r ? o.q : o.K;
83
+ i.length !== 0 && (u.shiftKey ? s !== i[0] && e.contains(s) || (ye(u), V(i[1])) : s !== i[1] && e.contains(s) || (ye(u), V(i[0])));
84
+ }), !0);
85
+ })(t);
86
+ }, io = ["[href]", $, "input", "details", "[tabindex]"].map(((t) => t + ':not([tabindex="-1"])')).join(","), Nt = (t) => {
87
+ const { o: n, ne: o } = a, e = (r, c) => {
88
+ const u = at(r, io);
89
+ c[0] = u[0], c[1] = u[u.length - 1];
90
+ };
91
+ t === 1 && n.T && e(o.he, n.q), t === 2 && n.N && e(o.we, n.K);
92
+ }, K = (t, n, o) => {
93
+ const { de: e, le: r, ie: c, _e: u, ue: s, fe: i } = a.ce, d = a.re;
94
+ if (n) {
95
+ const p = { modalName: n };
96
+ return t === d.fe ? J(i) && i(p) : t === d._e ? J(u) && u(p) : (p.modal = o, J(s) && s(p)), kt(t, p);
97
+ }
98
+ const f = { cookie: a.o.p };
99
+ t === d.ie ? J(c) && c(ee(f)) : t === d.le ? J(r) && r(ee(f)) : (f.changedCategories = a.o.L, f.changedServices = a.o.ee, J(e) && e(ee(f))), kt(t, ee(f));
100
+ }, _e = (t, n) => {
101
+ try {
102
+ return t();
103
+ } catch (o) {
104
+ return !n && console.warn("CookieConsent:", o), !1;
105
+ }
106
+ }, Ze = (t) => {
107
+ const { Y: n, ee: o, O: e, X: r, oe: c, p: u, L: s } = a.o;
108
+ for (const p of e) {
109
+ const g = o[p] || n[p] || [];
110
+ for (const m of g) {
111
+ const l = r[p][m];
112
+ if (!l) continue;
113
+ const { onAccept: v, onReject: z } = l;
114
+ !l.Se && _(n[p], m) ? (l.Se = !0, J(v) && v()) : l.Se && !_(n[p], m) && (l.Se = !1, J(z) && z());
115
+ }
116
+ }
117
+ if (!a.t.manageScriptTags) return;
118
+ const i = c, d = t || u.categories || [], f = (p, g) => {
119
+ if (g >= p.length) return;
120
+ const m = c[g];
121
+ if (m.xe) return f(p, g + 1);
122
+ const l = m.Me, v = m.De, z = m.Te, C = _(d, v), j = !!z && _(n[v], z);
123
+ if (!z && !m.ke && C || !z && m.ke && !C && _(s, v) || z && !m.ke && j || z && m.ke && !j && _(o[v] || [], z)) {
124
+ m.xe = !0;
125
+ const k = xe(l, "type", !0);
126
+ Ne(l, "type", !!k), Ne(l, Pe);
127
+ let b = xe(l, "src", !0);
128
+ b && Ne(l, "src", !0);
129
+ const M = h("script");
130
+ M.textContent = l.innerHTML;
131
+ for (const { nodeName: L } of l.attributes) w(M, L, l[L] || xe(l, L));
132
+ k && (M.type = k), b ? M.src = b : b = l.src;
133
+ const A = !!b && (!k || ["text/javascript", "module"].includes(k));
134
+ if (A && (M.onload = M.onerror = () => {
135
+ f(p, ++g);
136
+ }), l.replaceWith(M), A) return;
137
+ }
138
+ f(p, ++g);
139
+ };
140
+ f(i, 0);
141
+ }, Ae = "bottom", Fe = "left", Rt = "center", st = "right", Re = "inline", Et = "wide", Gt = "pm--", Ee = ["middle", "top", Ae], vt = [Fe, Rt, st], ro = { box: { Ee: [Et, Re], Ae: Ee, Ne: vt, He: Ae, Ve: st }, cloud: { Ee: [Re], Ae: Ee, Ne: vt, He: Ae, Ve: Rt }, bar: { Ee: [Re], Ae: Ee.slice(1), Ne: [], He: Ae, Ve: "" } }, co = { box: { Ee: [], Ae: [], Ne: [], He: "", Ve: "" }, bar: { Ee: [Et], Ae: [], Ne: [Fe, st], He: "", Ve: Fe } }, Ut = (t) => {
142
+ const n = a.o.i.guiOptions, o = n && n.consentModal, e = n && n.preferencesModal;
143
+ t === 0 && zt(a.ne.he, ro, o, "cm--", "box", "cm"), t === 1 && zt(a.ne.we, co, e, Gt, "box", "pm");
144
+ }, zt = (t, n, o, e, r, c) => {
145
+ t.className = c;
146
+ const u = o && o.layout, s = o && o.position, i = o && o.flipButtons, d = !o || o.equalWeightButtons !== !1, f = u && u.split(" ") || [], p = f[0], g = f[1], m = p in n ? p : r, l = n[m], v = _(l.Ee, g) && g, z = s && s.split(" ") || [], C = z[0], j = e === Gt ? z[0] : z[1], k = _(l.Ae, C) ? C : l.He, b = _(l.Ne, j) ? j : l.Ve, M = (L) => {
147
+ L && T(t, e + L);
148
+ };
149
+ M(m), M(v), M(k), M(b), i && M("flip");
150
+ const A = c + "__btn--secondary";
151
+ if (c === "cm") {
152
+ const { Ie: L, Le: N } = a.ne;
153
+ L && (d ? re(L, A) : T(L, A)), N && (d ? re(N, A) : T(N, A));
154
+ } else {
155
+ const { je: L } = a.ne;
156
+ L && (d ? re(L, A) : T(L, A));
157
+ }
158
+ }, ke = (t, n) => {
159
+ const o = a.o, e = a.ne, { hide: r, hidePreferences: c, acceptCategory: u } = t, s = (b) => {
160
+ u(b), c(), r();
161
+ }, i = o.u && o.u.preferencesModal;
162
+ if (!i) return;
163
+ const d = i.title, f = i.closeIconLabel, p = i.acceptAllBtn, g = i.acceptNecessaryBtn, m = i.savePreferencesBtn, l = i.sections || [], v = p || g || m;
164
+ if (e.Fe) e.Pe = h("div"), S(e.Pe, "body");
165
+ else {
166
+ e.Fe = h("div"), T(e.Fe, "pm-wrapper");
167
+ const b = h("div");
168
+ T(b, "pm-overlay"), y(e.Fe, b), x(b, H, c), e.we = h("div"), T(e.we, "pm"), w(e.we, "role", "dialog"), w(e.we, q, !0), w(e.we, "aria-modal", !0), w(e.we, "aria-labelledby", "pm__title"), x(e.ye, "keydown", ((M) => {
169
+ M.keyCode === 27 && c();
170
+ }), !0), e.Oe = h("div"), S(e.Oe, "header"), e.Re = h("h2"), S(e.Re, "title"), e.Re.id = "pm__title", e.Be = h($), S(e.Be, "close-btn"), w(e.Be, "aria-label", i.closeIconLabel || ""), x(e.Be, H, c), e.$e = h("span"), e.$e.innerHTML = je(), y(e.Be, e.$e), e.Ge = h("div"), S(e.Ge, "body"), e.Je = h("div"), S(e.Je, "footer");
171
+ var z = h("div");
172
+ T(z, "btns");
173
+ var C = h("div"), j = h("div");
174
+ S(C, Se), S(j, Se), y(e.Je, C), y(e.Je, j), y(e.Oe, e.Re), y(e.Oe, e.Be), e.ve = h("div"), w(e.ve, "tabIndex", -1), y(e.we, e.ve), y(e.we, e.Oe), y(e.we, e.Ge), v && y(e.we, e.Je), y(e.Fe, e.we);
175
+ }
176
+ let k;
177
+ d && (e.Re.innerHTML = d, f && w(e.Be, "aria-label", f)), l.forEach(((b, M) => {
178
+ const A = b.title, L = b.description, N = b.linkedCategory, pe = N && o.P[N], ce = b.cookieTable, Z = ce && ce.body, oe = ce && ce.caption, F = Z && Z.length > 0, D = !!pe, R = D && o.X[N], ne = De(R) && W(R) || [], P = D && (!!L || !!F || W(R).length > 0);
179
+ var X = h("div");
180
+ if (S(X, "section"), P || L) {
181
+ var Y = h("div");
182
+ S(Y, "section-desc-wrapper");
183
+ }
184
+ let ae = ne.length;
185
+ if (P && ae > 0) {
186
+ const B = h("div");
187
+ S(B, "section-services");
188
+ for (const U of ne) {
189
+ const O = R[U], E = O && O.label || U, le = h("div"), ue = h("div"), ve = h("div"), fe = h("div");
190
+ S(le, "service"), S(fe, "service-title"), S(ue, "service-header"), S(ve, "service-icon");
191
+ const Q = Ct(E, U, pe, !0, N);
192
+ fe.innerHTML = E, y(ue, ve), y(ue, fe), y(le, ue), y(le, Q), y(B, le);
193
+ }
194
+ y(Y, B);
195
+ }
196
+ if (A) {
197
+ var se = h("div"), G = h(D ? $ : "div");
198
+ if (S(se, "section-title-wrapper"), S(G, "section-title"), G.innerHTML = A, y(se, G), D) {
199
+ const B = h("span");
200
+ B.innerHTML = je(2, 3.5), S(B, "section-arrow"), y(se, B), X.className += "--toggle";
201
+ const U = Ct(A, N, pe);
202
+ let O = i.serviceCounterLabel;
203
+ if (ae > 0 && te(O)) {
204
+ let E = h("span");
205
+ S(E, "badge"), S(E, "service-counter"), w(E, q, !0), w(E, "data-servicecounter", ae), O && (O = O.split("|"), O = O.length > 1 && ae > 1 ? O[1] : O[0], w(E, "data-counterlabel", O)), E.innerHTML = ae + (O ? " " + O : ""), y(G, E);
206
+ }
207
+ if (P) {
208
+ S(X, "section--expandable");
209
+ var yt = N + "-desc";
210
+ w(G, "aria-expanded", !1), w(G, "aria-controls", yt);
211
+ }
212
+ y(se, U);
213
+ } else w(G, "role", "heading"), w(G, "aria-level", "3");
214
+ y(X, se);
215
+ }
216
+ if (L) {
217
+ var Ie = h("p");
218
+ S(Ie, "section-desc"), Ie.innerHTML = L, y(Y, Ie);
219
+ }
220
+ if (P && (w(Y, q, "true"), Y.id = yt, ((B, U, O) => {
221
+ x(G, H, (() => {
222
+ U.classList.contains("is-expanded") ? (re(U, "is-expanded"), w(O, "aria-expanded", "false"), w(B, q, "true")) : (T(U, "is-expanded"), w(O, "aria-expanded", "true"), w(B, q, "false"));
223
+ }));
224
+ })(Y, X, G), F)) {
225
+ const B = h("table"), U = h("thead"), O = h("tbody");
226
+ if (oe) {
227
+ const Q = h("caption");
228
+ S(Q, "table-caption"), Q.innerHTML = oe, B.appendChild(Q);
229
+ }
230
+ S(B, "section-table"), S(U, "table-head"), S(O, "table-body");
231
+ const E = ce.headers, le = W(E), ue = e.Ue.createDocumentFragment(), ve = h("tr");
232
+ for (const Q of le) {
233
+ const ge = E[Q], ie = h("th");
234
+ ie.id = "cc__row-" + ge + M, w(ie, "scope", "col"), S(ie, "table-th"), ie.innerHTML = ge, y(ue, ie);
235
+ }
236
+ y(ve, ue), y(U, ve);
237
+ const fe = e.Ue.createDocumentFragment();
238
+ for (const Q of Z) {
239
+ const ge = h("tr");
240
+ S(ge, "table-tr");
241
+ for (const ie of le) {
242
+ const ht = E[ie], no = Q[ie], ze = h("td"), mt = h("div");
243
+ S(ze, "table-td"), w(ze, "data-column", ht), w(ze, "headers", "cc__row-" + ht + M), mt.insertAdjacentHTML("beforeend", no), y(ze, mt), y(ge, ze);
244
+ }
245
+ y(fe, ge);
246
+ }
247
+ y(O, fe), y(B, U), y(B, O), y(Y, B);
248
+ }
249
+ (P || L) && y(X, Y);
250
+ const oo = e.Pe || e.Ge;
251
+ D ? (k || (k = h("div"), S(k, "section-toggles")), k.appendChild(X)) : k = null, y(oo, k || X);
252
+ })), p && (e.ze || (e.ze = h($), S(e.ze, "btn"), w(e.ze, he, "all"), y(C, e.ze), x(e.ze, H, (() => s("all")))), e.ze.innerHTML = p), g && (e.je || (e.je = h($), S(e.je, "btn"), w(e.je, he, "necessary"), y(C, e.je), x(e.je, H, (() => s([])))), e.je.innerHTML = g), m && (e.qe || (e.qe = h($), S(e.qe, "btn"), S(e.qe, "btn--secondary"), w(e.qe, he, "save"), y(j, e.qe), x(e.qe, H, (() => s()))), e.qe.innerHTML = m), e.Pe && (e.we.replaceChild(e.Pe, e.Ge), e.Ge = e.Pe), Ut(1), o.N || (o.N = !0, K(a.re.ue, ot, e.we), n(t), y(e.Ce, e.Fe), It(e.we), setTimeout((() => T(e.Fe, "cc--anim")), 100)), Nt(2);
253
+ };
254
+ function Ct(t, n, o, e, r) {
255
+ const c = a.o, u = a.ne, s = h("label"), i = h("input"), d = h("span"), f = h("span"), p = h("span"), g = h("span"), m = h("span");
256
+ if (g.innerHTML = je(1, 3), m.innerHTML = je(0, 3), i.type = "checkbox", T(s, "section__toggle-wrapper"), T(i, "section__toggle"), T(g, "toggle__icon-on"), T(m, "toggle__icon-off"), T(d, "toggle__icon"), T(f, "toggle__icon-circle"), T(p, "toggle__label"), w(d, q, "true"), e ? (T(s, "toggle-service"), w(i, Pe, r), u.se[r][n] = i) : u.ae[n] = i, e ? ((l) => {
257
+ x(i, "change", (() => {
258
+ const v = u.se[l], z = u.ae[l];
259
+ c.Z[l] = [];
260
+ for (let C in v) {
261
+ const j = v[C];
262
+ j.checked && c.Z[l].push(j.value);
263
+ }
264
+ z.checked = c.Z[l].length > 0;
265
+ }));
266
+ })(r) : ((l) => {
267
+ x(i, H, (() => {
268
+ const v = u.se[l], z = i.checked;
269
+ c.Z[l] = [];
270
+ for (let C in v) v[C].checked = z, z && c.Z[l].push(C);
271
+ }));
272
+ })(n), i.value = n, p.textContent = t.replace(/<.*>.*<\/.*>/gm, ""), y(f, m), y(f, g), y(d, f), c.D) (o.readOnly || o.enabled) && (i.checked = !0);
273
+ else if (e) {
274
+ const l = c.Y[r];
275
+ i.checked = o.readOnly || _(l, n);
276
+ } else _(c.R, n) && (i.checked = !0);
277
+ return o.readOnly && (i.disabled = !0), y(s, i), y(s, d), y(s, p), s;
278
+ }
279
+ const Ge = () => {
280
+ const t = h("span");
281
+ return a.ne.Ke || (a.ne.Ke = t), t;
282
+ }, it = (t, n) => {
283
+ const o = a.o, e = a.ne, { hide: r, showPreferences: c, acceptCategory: u } = t, s = o.u && o.u.consentModal;
284
+ if (!s) return;
285
+ const i = s.acceptAllBtn, d = s.acceptNecessaryBtn, f = s.showPreferencesBtn, p = s.closeIconLabel, g = s.footer, m = s.label, l = s.title, v = (C) => {
286
+ r(), u(C);
287
+ };
288
+ if (!e.Qe) {
289
+ e.Qe = h("div"), e.he = h("div"), e.We = h("div"), e.Xe = h("div"), e.Ye = h("div"), T(e.Qe, "cm-wrapper"), T(e.he, "cm"), I(e.We, "body"), I(e.Xe, "texts"), I(e.Ye, "btns"), w(e.he, "role", "dialog"), w(e.he, "aria-modal", "true"), w(e.he, q, "false"), w(e.he, "aria-describedby", "cm__desc"), m ? w(e.he, "aria-label", m) : l && w(e.he, "aria-labelledby", "cm__title");
290
+ const C = "box", j = o.i.guiOptions, k = j && j.consentModal, b = (k && k.layout || C).split(" ")[0] === C;
291
+ l && p && b && (e.Le || (e.Le = h($), e.Le.innerHTML = je(), I(e.Le, "btn"), I(e.Le, "btn--close"), x(e.Le, H, (() => {
292
+ v([]);
293
+ })), y(e.We, e.Le)), w(e.Le, "aria-label", p)), y(e.We, e.Xe), (i || d || f) && y(e.We, e.Ye), e.be = h("div"), w(e.be, "tabIndex", -1), y(e.he, e.be), y(e.he, e.We), y(e.Qe, e.he);
294
+ }
295
+ l && (e.Ze || (e.Ze = h("h2"), e.Ze.className = e.Ze.id = "cm__title", y(e.Xe, e.Ze)), e.Ze.innerHTML = l);
296
+ let z = s.description;
297
+ if (z && (o.V && (z = z.replace("{{revisionMessage}}", o.I ? "" : s.revisionMessage || "")), e.et || (e.et = h("p"), e.et.className = e.et.id = "cm__desc", y(e.Xe, e.et)), e.et.innerHTML = z), i && (e.tt || (e.tt = h($), y(e.tt, Ge()), I(e.tt, "btn"), w(e.tt, he, "all"), x(e.tt, H, (() => {
298
+ v("all");
299
+ }))), e.tt.firstElementChild.innerHTML = i), d && (e.Ie || (e.Ie = h($), y(e.Ie, Ge()), I(e.Ie, "btn"), w(e.Ie, he, "necessary"), x(e.Ie, H, (() => {
300
+ v([]);
301
+ }))), e.Ie.firstElementChild.innerHTML = d), f && (e.ot || (e.ot = h($), y(e.ot, Ge()), I(e.ot, "btn"), I(e.ot, "btn--secondary"), w(e.ot, he, "show"), x(e.ot, "mouseenter", (() => {
302
+ o.N || ke(t, n);
303
+ })), x(e.ot, H, c)), e.ot.firstElementChild.innerHTML = f), e.nt || (e.nt = h("div"), I(e.nt, Se), i && y(e.nt, e.tt), d && y(e.nt, e.Ie), (i || d) && y(e.We, e.nt), y(e.Ye, e.nt)), e.ot && !e.st && (e.st = h("div"), e.Ie && e.tt ? (I(e.st, Se), y(e.st, e.ot), y(e.Ye, e.st)) : (y(e.nt, e.ot), I(e.nt, Se + "--uneven"))), g) {
304
+ if (!e.ct) {
305
+ let C = h("div"), j = h("div");
306
+ e.ct = h("div"), I(C, "footer"), I(j, "links"), I(e.ct, "link-group"), y(j, e.ct), y(C, j), y(e.he, C);
307
+ }
308
+ e.ct.innerHTML = g;
309
+ }
310
+ Ut(0), o.T || (o.T = !0, K(a.re.ue, tt, e.he), n(t), y(e.Ce, e.Qe), It(e.he), setTimeout((() => T(e.Qe, "cc--anim")), 100)), Nt(1), Dt(e.We, t, ke, n);
311
+ }, rt = (t) => {
312
+ if (!te(t)) return null;
313
+ if (t in a.o._) return t;
314
+ let n = t.slice(0, 2);
315
+ return n in a.o._ ? n : null;
316
+ }, ct = () => a.o.l || a.o.i.language.default, lt = (t) => {
317
+ t && (a.o.l = t);
318
+ }, Zt = async (t) => {
319
+ const n = a.o;
320
+ let o = rt(t) ? t : ct(), e = n._[o];
321
+ if (te(e) ? e = await (async (r) => {
322
+ try {
323
+ return await (await fetch(r)).json();
324
+ } catch (c) {
325
+ return console.error(c), !1;
326
+ }
327
+ })(e) : J(e) && (e = await e()), !e) throw `Could not load translation for the '${o}' language`;
328
+ return n.u = e, lt(o), !0;
329
+ }, Ft = () => {
330
+ let t = a.o.i.language.rtl, n = a.ne.Ce;
331
+ t && n && (be(t) || (t = [t]), _(t, a.o.l) ? T(n, "cc--rtl") : re(n, "cc--rtl"));
332
+ }, de = () => {
333
+ const t = a.ne;
334
+ if (t.Ce) return;
335
+ t.Ce = h("div"), t.Ce.id = "cc-main", t.Ce.setAttribute("data-nosnippet", ""), Ft();
336
+ let n = a.o.i.root;
337
+ n && te(n) && (n = document.querySelector(n)), (n || t.Ue.body).appendChild(t.Ce);
338
+ }, Yt = (t) => _e((() => localStorage.removeItem(t))), St = (t, n) => {
339
+ if (n instanceof RegExp) return t.filter(((o) => n.test(o)));
340
+ {
341
+ const o = At(t, n);
342
+ return o > -1 ? [t[o]] : [];
343
+ }
344
+ }, Xt = (t) => {
345
+ const { hostname: n, protocol: o } = location, { name: e, path: r, domain: c, sameSite: u, useLocalStorage: s, secure: i } = a.t.cookie, d = t ? (() => {
346
+ const m = a.o.S, l = m ? /* @__PURE__ */ new Date() - m : 0;
347
+ return 864e5 * wt() - l;
348
+ })() : 864e5 * wt(), f = /* @__PURE__ */ new Date();
349
+ f.setTime(f.getTime() + d), a.o.p.expirationTime = f.getTime();
350
+ const p = JSON.stringify(a.o.p);
351
+ let g = e + "=" + encodeURIComponent(p) + (d !== 0 ? "; expires=" + f.toUTCString() : "") + "; Path=" + r + "; SameSite=" + u;
352
+ _(n, ".") && (g += "; Domain=" + c), i && o === "https:" && (g += "; Secure"), s ? ((m, l) => {
353
+ _e((() => localStorage.setItem(m, l)));
354
+ })(e, p) : document.cookie = g, a.o.p;
355
+ }, Ye = (t, n, o) => {
356
+ if (t.length === 0) return;
357
+ const e = o || a.t.cookie.domain, r = n || a.t.cookie.path, c = e.slice(0, 4) === "www.", u = c && e.substring(4), s = (i, d) => {
358
+ d && d.slice(0, 1) !== "." && (d = "." + d), document.cookie = i + "=; path=" + r + (d ? "; domain=" + d : "") + "; expires=Thu, 01 Jan 1970 00:00:01 GMT;";
359
+ };
360
+ for (const i of t) s(i, o), o || s(i, e), c && s(i, u);
361
+ }, $t = (t) => {
362
+ const n = t || a.t.cookie.name, o = a.t.cookie.useLocalStorage;
363
+ return ((r, c) => {
364
+ let u;
365
+ return u = _e((() => JSON.parse(c ? r : decodeURIComponent(r))), !0) || {}, u;
366
+ })(o ? (e = n, _e((() => localStorage.getItem(e))) || "") : ut(n, !0), o);
367
+ var e;
368
+ }, ut = (t, n) => {
369
+ const o = document.cookie.match("(^|;)\\s*" + t + "\\s*=\\s*([^;]+)");
370
+ return o ? n ? o.pop() : t : "";
371
+ }, qt = (t) => {
372
+ const n = document.cookie.split(/;\s*/), o = [];
373
+ for (const e of n) {
374
+ let r = e.split("=")[0];
375
+ t ? _e((() => {
376
+ t.test(r) && o.push(r);
377
+ })) : o.push(r);
378
+ }
379
+ return o;
380
+ }, dt = (t, n = []) => {
381
+ ((o, e) => {
382
+ const { O: r, R: c, B: u, N: s, Z: i, $: d, X: f } = a.o;
383
+ let p = [];
384
+ if (o) {
385
+ be(o) ? p.push(...o) : te(o) && (p = o === "all" ? r : [o]);
386
+ for (const g of r) i[g] = _(p, g) ? W(f[g]) : [];
387
+ } else p = [...c, ...d], s && (p = (() => {
388
+ const g = a.ne.ae;
389
+ if (!g) return [];
390
+ let m = [];
391
+ for (let l in g) g[l].checked && m.push(l);
392
+ return m;
393
+ })());
394
+ p = p.filter(((g) => !_(r, g) || !_(e, g))), p.push(...u), Pt(p);
395
+ })(t, n), (() => {
396
+ const o = a.o, { Z: e, B: r, Y: c, X: u, O: s } = o, i = s;
397
+ o.te = ee(c);
398
+ for (const d of i) {
399
+ const f = u[d], p = W(f), g = e[d] && e[d].length > 0, m = _(r, d);
400
+ if (p.length !== 0) {
401
+ if (c[d] = [], m) c[d].push(...p);
402
+ else if (g) {
403
+ const l = e[d];
404
+ c[d].push(...l);
405
+ } else c[d] = o.Z[d];
406
+ c[d] = nt(c[d]);
407
+ }
408
+ }
409
+ })(), (() => {
410
+ const o = a.o;
411
+ o.L = a.t.mode === Ce && o.D ? Oe(o.$, o.R) : Oe(o.R, o.p.categories);
412
+ let e = o.L.length > 0, r = !1;
413
+ for (const i of o.O) o.ee[i] = Oe(o.Y[i], o.te[i]), o.ee[i].length > 0 && (r = !0);
414
+ const c = a.ne.ae;
415
+ for (const i in c) c[i].checked = _(o.R, i);
416
+ for (const i of o.O) {
417
+ const d = a.ne.se[i], f = o.Y[i];
418
+ for (const p in d) d[p].checked = _(f, p);
419
+ }
420
+ o.C || (o.C = /* @__PURE__ */ new Date()), o.M || (o.M = ("10000000-1000-4000-8000" + -1e11).replace(/[018]/g, ((i) => (i ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> i / 4).toString(16)))), o.p = { categories: ee(o.R), revision: a.t.revision, data: o.h, consentTimestamp: o.C.toISOString(), consentId: o.M, services: ee(o.Y), languageCode: a.o.l }, o.S && (o.p.lastConsentTimestamp = o.S.toISOString());
421
+ let u = !1;
422
+ const s = e || r;
423
+ (o.D || s) && (o.D && (o.D = !1, u = !0), o.S = o.S ? /* @__PURE__ */ new Date() : o.C, o.p.lastConsentTimestamp = o.S.toISOString(), Xt(), a.t.autoClearCookies && (u || s) && ((i) => {
424
+ const d = a.o, f = qt(), p = ((g) => {
425
+ const m = a.o;
426
+ return (g ? m.O : m.L).filter(((l) => {
427
+ const v = m.P[l];
428
+ return !!v && !v.readOnly && !!v.autoClear;
429
+ }));
430
+ })(i);
431
+ for (const g in d.ee) for (const m of d.ee[g]) {
432
+ const l = d.X[g][m].cookies;
433
+ if (!_(d.Y[g], m) && l) for (const v of l) {
434
+ const z = St(f, v.name);
435
+ Ye(z, v.path, v.domain);
436
+ }
437
+ }
438
+ for (const g of p) {
439
+ const m = d.P[g].autoClear, l = m && m.cookies || [], v = _(d.L, g), z = !_(d.R, g), C = v && z;
440
+ if (i ? z : C) {
441
+ m.reloadPage && C && (d.j = !0);
442
+ for (const j of l) {
443
+ const k = St(f, j.name);
444
+ Ye(k, j.path, j.domain);
445
+ }
446
+ }
447
+ }
448
+ })(u), Ze()), u && (K(a.re.ie), K(a.re.le), a.t.mode === xt) || (s && K(a.re.de), o.j && (o.j = !1, location.reload()));
449
+ })();
450
+ }, Jt = (t) => {
451
+ const n = a.o.D ? [] : a.o.R;
452
+ return _(n, t);
453
+ }, lo = (t, n) => {
454
+ const { O: o, X: e } = a.o;
455
+ if (!(t && n && te(n) && _(o, n) && W(e[n]).length !== 0)) return !1;
456
+ ((r, c) => {
457
+ const u = a.o, { X: s, Z: i, N: d } = u, f = a.ne.se[c] || {}, p = a.ne.ae[c] || {}, g = W(s[c]);
458
+ if (i[c] = [], te(r)) {
459
+ if (r === "all") {
460
+ if (i[c].push(...g), d) for (let l in f) f[l].checked = !0, Me(f[l]);
461
+ } else if (_(g, r) && i[c].push(r), d) for (let l in f) f[l].checked = r === l, Me(f[l]);
462
+ } else if (be(r)) for (let l of g) {
463
+ const v = _(r, l);
464
+ v && i[c].push(l), d && (f[l].checked = v, Me(f[l]));
465
+ }
466
+ const m = i[c].length === 0;
467
+ u.R = m ? u.R.filter(((l) => l !== c)) : nt([...u.R, c]), d && (p.checked = !m, Me(p));
468
+ })(t, n), dt();
469
+ }, pt = (t, n) => {
470
+ const o = a.o.D ? [] : a.o.Y[n] || [];
471
+ return _(o, t);
472
+ }, uo = (t) => ut(t, !0) !== "", Wt = (t, n, o) => {
473
+ let e = [];
474
+ const r = (c) => {
475
+ if (te(c)) {
476
+ let u = ut(c);
477
+ u !== "" && e.push(u);
478
+ } else e.push(...qt(c));
479
+ };
480
+ if (be(t)) for (let c of t) r(c);
481
+ else r(t);
482
+ Ye(e, n, o);
483
+ }, ft = (t) => {
484
+ const { ne: n, o } = a;
485
+ if (!o.k) {
486
+ if (!o.T) {
487
+ if (!t) return;
488
+ it(Te, de);
489
+ }
490
+ o.k = !0, o.J = Be(), o.v && Ht(!0), Bt(n.he, 1), T(n.ye, Qe), w(n.he, q, "false"), setTimeout((() => {
491
+ V(a.ne.be);
492
+ }), 100), K(a.re.fe, tt);
493
+ }
494
+ }, Vt = () => {
495
+ const { ne: t, o: n, re: o } = a;
496
+ n.k && (n.k = !1, n.v && Ht(), V(t.Ke, !0), re(t.ye, Qe), w(t.he, q, "true"), V(n.J), n.J = null, K(o._e, tt));
497
+ }, Kt = () => {
498
+ const t = a.o;
499
+ t.A || (t.N || ke(Te, de), t.A = !0, t.k ? t.U = Be() : t.J = Be(), Bt(a.ne.we, 2), T(a.ne.ye, et), w(a.ne.we, q, "false"), setTimeout((() => {
500
+ V(a.ne.ve);
501
+ }), 100), K(a.re.fe, ot));
502
+ }, Qt = () => {
503
+ const t = a.o;
504
+ t.A && (t.A = !1, (() => {
505
+ const n = gt(), o = a.o.P, e = a.ne.ae, r = a.ne.se, c = (u) => _(a.o.$, u);
506
+ for (const u in e) {
507
+ const s = !!o[u].readOnly;
508
+ e[u].checked = s || (n ? Jt(u) : c(u));
509
+ for (const i in r[u]) r[u][i].checked = s || (n ? pt(i, u) : c(u));
510
+ }
511
+ })(), V(a.ne.$e, !0), re(a.ne.ye, et), w(a.ne.we, q, "true"), t.k ? (V(t.U), t.U = null) : (V(t.J), t.J = null), K(a.re._e, ot));
512
+ };
513
+ var Te = { show: ft, hide: Vt, showPreferences: Kt, hidePreferences: Qt, acceptCategory: dt };
514
+ const po = async (t, n) => {
515
+ if (!rt(t)) return !1;
516
+ const o = a.o;
517
+ return !(t === ct() && n !== !0 || !await Zt(t) || (lt(t), o.T && it(Te, de), o.N && ke(Te, de), Ft(), 0));
518
+ }, fo = () => {
519
+ const { F: t, Y: n } = a.o, { accepted: o, rejected: e } = (() => {
520
+ const { D: r, R: c, O: u } = a.o;
521
+ return { accepted: c, rejected: r ? [] : u.filter(((s) => !_(c, s))) };
522
+ })();
523
+ return ee({ acceptType: t, acceptedCategories: o, rejectedCategories: e, acceptedServices: n, rejectedServices: ao() });
524
+ }, go = (t, n) => {
525
+ let o = document.querySelector('script[src="' + t + '"]');
526
+ return new Promise(((e) => {
527
+ if (o) return e(!0);
528
+ if (o = h("script"), De(n)) for (const r in n) w(o, r, n[r]);
529
+ o.onload = () => e(!0), o.onerror = () => {
530
+ o.remove(), e(!1);
531
+ }, o.src = t, y(document.head, o);
532
+ }));
533
+ }, yo = (t) => {
534
+ let n, o = t.value, e = t.mode, r = !1;
535
+ const c = a.o;
536
+ if (e === "update") {
537
+ c.h = n = eo("data");
538
+ const u = typeof n == typeof o;
539
+ if (u && typeof n == "object") {
540
+ !n && (n = {});
541
+ for (let s in o) n[s] !== o[s] && (n[s] = o[s], r = !0);
542
+ } else !u && n || n === o || (n = o, r = !0);
543
+ } else n = o, r = !0;
544
+ return r && (c.h = n, c.p.data = n, Xt(!0)), r;
545
+ }, eo = (t, n) => {
546
+ const o = $t(n);
547
+ return t ? o[t] : o;
548
+ }, ho = (t) => {
549
+ const n = a.t, o = a.o.i;
550
+ return t ? n[t] || o[t] : { ...n, ...o, cookie: { ...n.cookie } };
551
+ }, gt = () => !a.o.D, mo = async (t) => {
552
+ const { o: n, t: o, re: e } = a, r = window;
553
+ if (!r._ccRun) {
554
+ if (r._ccRun = !0, ((s) => {
555
+ const { ne: i, t: d, o: f } = a, p = d, g = f, { cookie: m } = p, l = a.ce, v = s.cookie, z = s.categories, C = W(z) || [], j = navigator, k = document;
556
+ i.Ue = k, i.ye = k.documentElement, m.domain = location.hostname, g.i = s, g.P = z, g.O = C, g._ = s.language.translations, g.v = !!s.disablePageInteraction, l.ie = s.onFirstConsent, l.le = s.onConsent, l.de = s.onChange, l._e = s.onModalHide, l.fe = s.onModalShow, l.ue = s.onModalReady;
557
+ const { mode: b, autoShow: M, lazyHtmlGeneration: A, autoClearCookies: L, revision: N, manageScriptTags: pe, hideFromBots: ce } = s;
558
+ b === Ce && (p.mode = b), typeof L == "boolean" && (p.autoClearCookies = L), typeof pe == "boolean" && (p.manageScriptTags = pe), typeof N == "number" && N >= 0 && (p.revision = N, g.V = !0), typeof M == "boolean" && (p.autoShow = M), typeof A == "boolean" && (p.lazyHtmlGeneration = A), ce === !1 && (p.hideFromBots = !1), p.hideFromBots === !0 && j && (g.G = j.userAgent && /bot|crawl|spider|slurp|teoma/i.test(j.userAgent) || j.webdriver), De(v) && (p.cookie = { ...m, ...v }), p.autoClearCookies, g.V, p.manageScriptTags, ((Z) => {
559
+ const { P: oe, X: F, Y: D, Z: R, B: ne } = a.o;
560
+ for (let P of Z) {
561
+ const X = oe[P], Y = X.services || {}, ae = De(Y) && W(Y) || [];
562
+ F[P] = {}, D[P] = [], R[P] = [], X.readOnly && (ne.push(P), D[P] = ae), a.ne.se[P] = {};
563
+ for (let se of ae) {
564
+ const G = Y[se];
565
+ G.Se = !1, F[P][se] = G;
566
+ }
567
+ }
568
+ })(C), (() => {
569
+ if (!a.t.manageScriptTags) return;
570
+ const Z = a.o, oe = at(document, "script[" + Pe + "]");
571
+ for (const F of oe) {
572
+ let D = xe(F, Pe), R = F.dataset.service || "", ne = !1;
573
+ if (D && D.charAt(0) === "!" && (D = D.slice(1), ne = !0), R.charAt(0) === "!" && (R = R.slice(1), ne = !0), _(Z.O, D) && (Z.oe.push({ Me: F, xe: !1, ke: ne, De: D, Te: R }), R)) {
574
+ const P = Z.X[D];
575
+ P[R] || (P[R] = { Se: !1 });
576
+ }
577
+ }
578
+ })(), lt((() => {
579
+ const Z = a.o.i.language.autoDetect;
580
+ if (Z) {
581
+ const oe = { browser: navigator.language, document: document.documentElement.lang }, F = rt(oe[Z]);
582
+ if (F) return F;
583
+ }
584
+ return ct();
585
+ })());
586
+ })(t), n.G) return;
587
+ (() => {
588
+ const s = a.o, i = a.t, d = $t(), { categories: f, services: p, consentId: g, consentTimestamp: m, lastConsentTimestamp: l, data: v, revision: z } = d, C = be(f);
589
+ s.p = d, s.M = g;
590
+ const j = !!g && te(g);
591
+ s.C = m, s.C && (s.C = new Date(m)), s.S = l, s.S && (s.S = new Date(l)), s.h = v !== void 0 ? v : null, s.V && j && z !== i.revision && (s.I = !1), s.D = !(j && s.I && s.C && s.S && C), i.cookie.useLocalStorage && !s.D && (s.D = (/* @__PURE__ */ new Date()).getTime() > (d.expirationTime || 0), s.D && Yt(i.cookie.name)), s.D, (() => {
592
+ const k = a.o;
593
+ for (const b of k.O) {
594
+ const M = k.P[b];
595
+ if (M.readOnly || M.enabled) {
596
+ k.$.push(b);
597
+ const A = k.X[b] || {};
598
+ for (let L in A) k.Z[b].push(L), k.i.mode === Ce && k.Y[b].push(L);
599
+ }
600
+ }
601
+ })(), s.D ? i.mode === Ce && (s.R = [...s.$]) : (s.Y = { ...s.Y, ...p }, s.Z = { ...s.Y }, Pt([...s.B, ...f]));
602
+ })();
603
+ const u = gt();
604
+ if (!await Zt()) return !1;
605
+ if (Dt(null, c = Te, ke, de), a.o.D && it(c, de), a.t.lazyHtmlGeneration || ke(c, de), o.autoShow && !u && ft(!0), u) return Ze(), K(e.le);
606
+ o.mode === Ce && Ze(n.$);
607
+ }
608
+ var c;
609
+ }, ko = (t) => {
610
+ const { Ce: n, ye: o } = a.ne, { name: e, path: r, domain: c, useLocalStorage: u } = a.t.cookie;
611
+ t && (u ? Yt(e) : Wt(e, r, c));
612
+ for (const { pe: i, ge: d, me: f } of a.o.m) i.removeEventListener(d, f);
613
+ n && n.remove(), o && o.classList.remove(Ue, et, Qe);
614
+ const s = new Ot();
615
+ for (const i in a) a[i] = s[i];
616
+ window._ccRun = !1;
617
+ }, wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
618
+ __proto__: null,
619
+ acceptCategory: dt,
620
+ acceptService: lo,
621
+ acceptedCategory: Jt,
622
+ acceptedService: pt,
623
+ eraseCookies: Wt,
624
+ getConfig: ho,
625
+ getCookie: eo,
626
+ getUserPreferences: fo,
627
+ hide: Vt,
628
+ hidePreferences: Qt,
629
+ loadScript: go,
630
+ reset: ko,
631
+ run: mo,
632
+ setCookieData: yo,
633
+ setLanguage: po,
634
+ show: ft,
635
+ showPreferences: Kt,
636
+ validConsent: gt,
637
+ validCookie: uo
638
+ }, Symbol.toStringTag, { value: "Module" }));
639
+ function bo() {
640
+ return (t) => {
641
+ globalThis.dataLayer?.push(t);
642
+ };
643
+ }
644
+ const jt = "necessary", we = "analytics", me = "advertisement", Le = "functionality", He = "security", Xe = "ad_storage", $e = "ad_user_data", qe = "ad_personalization", Je = "analytics_storage", We = "functionality_storage", Ve = "personalization_storage", Ke = "security_storage", vo = {
645
+ [Xe]: me,
646
+ [Je]: we,
647
+ [We]: Le,
648
+ [Ve]: Le,
649
+ [Ke]: He,
650
+ [$e]: me,
651
+ [qe]: me
652
+ };
653
+ function zo() {
654
+ const t = bo();
655
+ function n(e) {
656
+ t({
657
+ event: "default_cookie_consent",
658
+ settings: Object.fromEntries(e.map((r) => [r, "denied"]))
659
+ });
660
+ }
661
+ function o(e) {
662
+ t({
663
+ event: "cookie_consent_update",
664
+ settings: Object.fromEntries(
665
+ e.map((r) => [r, Co(r, vo[r])])
666
+ )
667
+ });
668
+ }
669
+ return { setDefaultConsent: n, updateConsent: o };
670
+ }
671
+ function Co(t, n) {
672
+ return pt(t, n) ? "granted" : "denied";
673
+ }
674
+ function So(t) {
675
+ const { categories: n, onFirstConsent: o, onChange: e, onConsent: r, ...c } = t, u = Object.values(n).flatMap(
676
+ (f) => Object.keys(f.services ?? {})
677
+ ), { setDefaultConsent: s, updateConsent: i } = zo();
678
+ return s(u), {
679
+ onFirstConsent: (f) => {
680
+ i(u), o?.(f);
681
+ },
682
+ onConsent: (f) => {
683
+ i(u), r?.(f);
684
+ },
685
+ onChange: (f) => {
686
+ i(u), e?.(f);
687
+ },
688
+ categories: {
689
+ [jt]: {
690
+ enabled: !0,
691
+ readOnly: !0,
692
+ ...n[jt]
693
+ },
694
+ [we]: {
695
+ autoClear: {
696
+ cookies: [{ name: /^_ga/ }, { name: "_gid" }]
697
+ },
698
+ ...n[we]
699
+ },
700
+ ...n
701
+ },
702
+ ...c
703
+ };
704
+ }
705
+ async function _o(t) {
706
+ const n = wo, o = So(t);
707
+ return await n.run(o), n;
708
+ }
709
+ const _t = "_ga", Tt = "_gid", Lt = {
710
+ en: {
711
+ language: {
712
+ consentModal: {
713
+ title: "We use cookies",
714
+ description: "This website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent.",
715
+ acceptAllBtn: "Accept all",
716
+ acceptNecessaryBtn: "Reject all",
717
+ showPreferencesBtn: "Manage Individual preferences"
718
+ },
719
+ preferencesModal: {
720
+ title: "Manage cookie preferences",
721
+ acceptAllBtn: "Accept all",
722
+ acceptNecessaryBtn: "Reject all",
723
+ savePreferencesBtn: "Accept current selection",
724
+ closeIconLabel: "Close modal",
725
+ baseSection: {
726
+ title: "Cookie usage",
727
+ description: "We use cookies to ensure the basic functionalities of the website and to enhance your online experience."
728
+ },
729
+ necessarySection: {
730
+ title: "Strictly necessary cookies",
731
+ description: "These cookies are essential for the proper functioning of the website, for example for user authentication."
732
+ }
733
+ },
734
+ categoryPreferenceLabels: {
735
+ analytics: {
736
+ title: "Analytics",
737
+ description: "Cookies used for analytics help collect data that allows services to understand how users interact with a particular service. These insights allow services both to improve content and to build better features that improve the user's experience.",
738
+ cookieTable: {
739
+ headers: { name: "Name", domain: "Service", description: "Description", expiration: "Expiration" },
740
+ body: [
741
+ {
742
+ name: _t,
743
+ domain: "Google Analytics",
744
+ description: 'Cookie set by <a href="https://business.safety.google/adscookies/">Google Analytics</a>',
745
+ expiration: "Expires after 12 days"
746
+ },
747
+ {
748
+ name: Tt,
749
+ domain: "Google Analytics",
750
+ description: 'Cookie set by <a href="https://business.safety.google/adscookies/">Google Analytics</a>',
751
+ expiration: "Session"
752
+ }
753
+ ]
754
+ }
755
+ },
756
+ advertisement: {
757
+ title: "Advertising",
758
+ description: 'Google uses cookies for advertising, including serving and rendering ads, personalizing ads (depending on your ad settings at <a href="https://g.co/adsettings">g.co/adsettings</a>), limiting the number of times an ad is shown to a user, muting ads you have chosen to stop seeing, and measuring the effectiveness of ads.'
759
+ },
760
+ functionality: {
761
+ title: "Functionality",
762
+ description: "Cookies used for functionality allow users to interact with a service or site to access features that are fundamental to that service. Things considered fundamental to the service include preferences like the user's choice of language, product optimizations that help maintain and improve a service, and maintaining information relating to a user's session, such as the content of a shopping cart."
763
+ },
764
+ security: {
765
+ title: "Security",
766
+ description: "Cookies used for security authenticate users, prevent fraud, and protect users as they interact with a service."
767
+ }
768
+ }
769
+ },
770
+ categories: {
771
+ [we]: {
772
+ services: {
773
+ [Je]: {
774
+ label: "Enables storage (such as cookies) related to analytics e.g. visit duration."
775
+ }
776
+ }
777
+ },
778
+ [me]: {
779
+ enabled: !0,
780
+ readOnly: !1,
781
+ services: {
782
+ [Xe]: {
783
+ label: "Enables storage (such as cookies) related to advertising."
784
+ },
785
+ [$e]: {
786
+ label: "Sets consent for sending user data related to advertising to Google."
787
+ },
788
+ [qe]: {
789
+ label: "Sets consent for personalized advertising."
790
+ }
791
+ }
792
+ },
793
+ [Le]: {
794
+ enabled: !0,
795
+ readOnly: !1,
796
+ services: {
797
+ [We]: {
798
+ label: "Enables storage that supports the functionality of the website or app e.g. language settings."
799
+ },
800
+ [Ve]: {
801
+ label: "Enables storage related to personalization e.g. video recommendations."
802
+ }
803
+ }
804
+ },
805
+ [He]: {
806
+ enabled: !0,
807
+ readOnly: !1,
808
+ services: {
809
+ [Ke]: {
810
+ label: "Enables storage related to security such as authentication functionality, fraud prevention, and other user protection."
811
+ }
812
+ }
813
+ }
814
+ }
815
+ },
816
+ pl: {
817
+ language: {
818
+ consentModal: {
819
+ title: "Używamy plików cookie",
820
+ description: "Ta strona internetowa wykorzystuje niezbędne pliki cookie w celu zapewnienia jej prawidłowego działania oraz pliki cookie śledzące w celu zrozumienia sposobu interakcji użytkowników z witryną. Te ostatnie będą ustawione tylko po wyrażeniu zgody.",
821
+ acceptAllBtn: "Zaakceptuj wszystkie",
822
+ acceptNecessaryBtn: "Odrzuć wszystkie",
823
+ showPreferencesBtn: "Zarządzaj indywidualnymi preferencjami"
824
+ },
825
+ preferencesModal: {
826
+ title: "Zarządzaj preferencjami plików cookie",
827
+ acceptAllBtn: "Zaakceptuj wszystkie",
828
+ acceptNecessaryBtn: "Odrzuć wszystkie",
829
+ savePreferencesBtn: "Zaakceptuj bieżący wybór",
830
+ closeIconLabel: "Zamknij okno",
831
+ baseSection: {
832
+ title: "Używanie plików cookie",
833
+ description: "Używamy plików cookie w celu zapewnienia podstawowej funkcjonalności strony internetowej oraz poprawy Twojego doświadczenia online."
834
+ },
835
+ necessarySection: {
836
+ title: "Ściśle niezbędne pliki cookie",
837
+ description: "Te pliki cookie są niezbędne do prawidłowego funkcjonowania strony internetowej, na przykład do uwierzytelniania użytkowników."
838
+ }
839
+ },
840
+ categoryPreferenceLabels: {
841
+ analytics: {
842
+ title: "Analityka",
843
+ description: "Pliki cookie używane do analityki pomagają zbierać dane, które umożliwiają usługom zrozumienie sposobu interakcji użytkowników z określoną usługą. Te informacje pozwalają usługom zarówno poprawić treść, jak i tworzyć lepsze funkcje, które poprawiają doświadczenie użytkownika.",
844
+ cookieTable: {
845
+ headers: { name: "Nazwa", domain: "Usługa", description: "Opis", expiration: "Wygaśnięcie" },
846
+ body: [
847
+ {
848
+ name: _t,
849
+ domain: "Google Analytics",
850
+ description: 'Plik cookie ustawiony przez <a href="https://business.safety.google/adscookies/">Google Analytics</a>',
851
+ expiration: "Wygasa po 12 dniach"
852
+ },
853
+ {
854
+ name: Tt,
855
+ domain: "Google Analytics",
856
+ description: 'Plik cookie ustawiony przez <a href="https://business.safety.google/adscookies/">Google Analytics</a>',
857
+ expiration: "Sesja"
858
+ }
859
+ ]
860
+ }
861
+ },
862
+ advertisement: {
863
+ title: "Reklama",
864
+ description: 'Google używa plików cookie do reklam, w tym do wyświetlania i renderowania reklam, personalizacji reklam (w zależności od Twoich ustawień reklam na <a href="https://g.co/adsettings">g.co/adsettings</a>), ograniczania liczby wyświetleń reklamy użytkownikowi, wyciszania reklam, które zdecydowałeś się przestać oglądać, oraz mierzenia skuteczności reklam.'
865
+ },
866
+ functionality: {
867
+ title: "Funkcjonalność",
868
+ description: "Pliki cookie używane do funkcjonalności umożliwiają użytkownikom interakcję z usługą lub stroną w celu uzyskania dostępu do funkcji, które są fundamentalne dla tej usługi. Do rzeczy uznawanych za fundamentalne dla usługi należą preferencje takie jak wybór języka przez użytkownika, optymalizacje produktu, które pomagają utrzymać i poprawić usługę, oraz utrzymywanie informacji dotyczących sesji użytkownika, takich jak zawartość koszyka zakupów."
869
+ },
870
+ security: {
871
+ title: "Bezpieczeństwo",
872
+ description: "Pliki cookie używane do bezpieczeństwa uwierzytelniają użytkowników, zapobiegają oszustwom i chronią użytkowników podczas interakcji z usługą."
873
+ }
874
+ }
875
+ },
876
+ categories: {
877
+ [we]: {
878
+ services: {
879
+ [Je]: {
880
+ label: "Umożliwia przechowywanie (np. plików cookie) związane z analityką, np. czas trwania wizyty."
881
+ }
882
+ }
883
+ },
884
+ [me]: {
885
+ enabled: !0,
886
+ readOnly: !1,
887
+ services: {
888
+ [Xe]: {
889
+ label: "Umożliwia przechowywanie (np. plików cookie) związane z reklamą."
890
+ },
891
+ [$e]: {
892
+ label: "Ustawia zgodę na wysyłanie danych użytkownika związanych z reklamą do Google."
893
+ },
894
+ [qe]: {
895
+ label: "Ustawia zgodę na personalizację reklam."
896
+ }
897
+ }
898
+ },
899
+ [Le]: {
900
+ enabled: !0,
901
+ readOnly: !1,
902
+ services: {
903
+ [We]: {
904
+ label: "Umożliwia przechowywanie, które wspiera funkcjonalność strony internetowej lub aplikacji, np. ustawienia języka."
905
+ },
906
+ [Ve]: {
907
+ label: "Umożliwia przechowywanie związane z personalizacją, np. rekomendacje wideo."
908
+ }
909
+ }
910
+ },
911
+ [He]: {
912
+ enabled: !0,
913
+ readOnly: !1,
914
+ services: {
915
+ [Ke]: {
916
+ label: "Umożliwia przechowywanie związane z bezpieczeństwem, takie jak funkcjonalność uwierzytelniania, zapobieganie oszustwom i inna ochrona użytkowników."
917
+ }
918
+ }
919
+ }
920
+ }
921
+ }
922
+ }, to = [we, me, Le, He];
923
+ function jo(t, n) {
924
+ const o = [
925
+ t.language.preferencesModal.baseSection,
926
+ {
927
+ ...t.language.preferencesModal.necessarySection,
928
+ linkedCategory: "necessary"
929
+ }
930
+ ];
931
+ for (const e of to)
932
+ n[e] && o.push({
933
+ ...t.language.categoryPreferenceLabels[e],
934
+ linkedCategory: e
935
+ });
936
+ return o;
937
+ }
938
+ const Mt = "en";
939
+ function To({
940
+ language: t = [Mt],
941
+ advertisement: n = !1,
942
+ analytics: o = !1,
943
+ security: e = !1,
944
+ functionality: r = !1
945
+ }) {
946
+ const c = { analytics: o, advertisement: n, functionality: r, security: e }, u = t.at(0) ?? Mt, s = Lt[u], i = {};
947
+ for (const f of to)
948
+ c[f] && (i[f] = s.categories[f]);
949
+ const d = {};
950
+ for (const f of t) {
951
+ const p = Lt[f];
952
+ d[f] = {
953
+ consentModal: p.language.consentModal,
954
+ preferencesModal: {
955
+ ...p.language.preferencesModal,
956
+ sections: jo(p, c)
957
+ }
958
+ };
959
+ }
960
+ return {
961
+ categories: i,
962
+ language: {
963
+ default: u,
964
+ translations: d
965
+ }
966
+ };
967
+ }
968
+ export {
969
+ To as getDefaultConsentConfig,
970
+ _o as runCookieConsent
971
+ };