1import { y as w } from "./chunk-xgti9j2t.js"; 2import { $ as A, Ai as D, Ea as f, G as F, Hn as B, Li as k, Pi as E, Pt as a, Q as m, Sa as R, Sn as x, Sr as L, To as _, Y as l, fa as v, fi as c, fr as I, gt as n, in as O, l as Y, la as $, sa as G, t as M, tn as T, wr as N, zo as j } from "./chunk-c97c17u8.js"; 3import { M as H } from "./chunk-l3jkbhly.js"; 4import { p as P } from "./chunk-k52vj1ic.js"; 5import { o as V } from "./chunk-l24fzhmb.js"; 6import { A as W } from "./chunk-jrtaqqwj.js"; 7import { o as q, t as J } from "./chunk-pesy0vb6.js"; 8import { D as K, o as Q } from "./chunk-llc8ry2a.js"; 9import { j as X, ut as z } from "./chunk-fbjoug0d.js"; 10import { a as Z } from "./chunk-ewplex8i.js"; 11import { n as U } from "./chunk-c18gpzrj.js"; 12import { r as tt } from "./chunk-c9rg1mp5.js"; 13import { t as et } from "./chunk-kyqvtgtk.js"; 14import { N as C, Q as it, Y as nt, gt as st, n as ot, w as o } from "./chunk-w0x32net.js"; 15import { p as rt } from "./chunk-bhnvkbxx.js"; 16import { ot as ct } from "./chunk-f2v2cgea.js"; 17import { a as at, c as ut, s as g } from "./chunk-og5uebri.js"; 18import { Dn as ht, Mr as pt, Tt as ft, jr as kt } from "./chunk-go6pvd0a.js"; 19import { n as mt, t as _t } from "./chunk-k4et3zlq.js"; 20import { i as lt, p as vt } from "./chunk-hul0ult7.js"; 21import { n as Ct } from "./chunk-lmnwxprc.js"; 22import { n as gt, r as dt, t as bt } from "./chunk-ilfhy0in.js"; 23import { n as St } from "./chunk-ohg30iel.js"; 24import { $ as yt, E as wt, st as d, ut as At } from "./chunk-iuhjzybw.js"; 25import { r as Dt, t as Ft } from "./chunk-bt0uh5ix.js"; 26import { t as Bt } from "./chunk-o4f8w5yc.js"; 27function Et(t) { 28 return t.get(r); 29} 30function Rt(t, i) { 31 t & 1 && x(0, "div", 1), t & 2 && T("vnDynamicHtml", i); 32} 33function xt(t, i) { 34 if (t & 1) { 35 let e = L(); 36 f(0, "a", 3), M("click", function() { 37 return I(e), j(R().close()); 38 }), A(1), v(); 39 } 40 t & 2 && (a(), G(i)); 41} 42function Lt() { 43 return [ 44 { 45 provide: r, 46 useFactory: Et, 47 deps: [bt] 48 }, 49 u, 50 h, 51 ft(S) 52 ]; 53} 54var r, u, b, h, S; 55function y() { 56 return (y = Bt((() => { 57 w(), E(), H(), P(), V(), W(), q(), K(), z(), Z(), U(), tt(), et(), Q(), st(), rt(), ct(), nt(), ut(), kt(), _t(), vt(), lt(), Ct(), dt(), St(), yt(), ht(), Ft(), $(), r = (() => { 58 var t = class extends gt {}; 59 let i = (t.ɵfac = (() => { 60 let e; 61 return function(s) { 62 return (e || (e = D(t)))(s || t); 63 }; 64 })(), t.ɵprov = c({ 65 token: t, 66 factory: t.ɵfac 67 }), t); 68 return i = N([mt({ 69 key: "vnCookieConsent", 70 product: X.SF 71 })], i), i; 72 })(), u = (() => { 73 let t = class { 74 constructor() { 75 this.trackingService = n(at); 76 } 77 trackLoad() { 78 this.trackingService.triggerEvent(g.FunctionalityGeneric, { "page.referringAction": "Cookie_Consent_Banner_Loaded" }); 79 } 80 trackAccept(e) { 81 this.trackingService.triggerEvent(g.FunctionalityGeneric, { "page.referringAction": `Cookie_Consent_Banner_Accepted_${e || "1"}` }); 82 } 83 }; 84 return t.ɵfac = function(i) { 85 return new (i || t)(); 86 }, t.ɵprov = c({ 87 token: t, 88 factory: t.ɵfac 89 }), t; 90 })(), b = (() => { 91 let t = class { 92 constructor() { 93 this.config = n(r), this.overlayRef = n(d), this.cookieService = n(C), this.cookieConsentTrackingService = n(u); 94 } 95 ngOnInit() { 96 this.cookieConsentTrackingService.trackLoad(); 97 } 98 close() { 99 let e = /* @__PURE__ */ new Date(); 100 e.setFullYear(e.getFullYear() + 1); 101 let s = this.cookieService.get(o.EuConsent); 102 this.cookieService.put(o.EuConsent, "a", { expires: e }), this.cookieConsentTrackingService.trackAccept(s), this.overlayRef.detach(); 103 } 104 }; 105 return t.ɵfac = function(i) { 106 return new (i || t)(); 107 }, t.ɵcmp = B({ 108 type: t, 109 selectors: [["vn-cookie-consent"]], 110 decls: 3, 111 vars: 2, 112 consts: [ 113 [1, "cookie-consent-message"], 114 [ 115 1, 116 "cookie-message", 117 3, 118 "vnDynamicHtml" 119 ], 120 [ 121 "id", 122 "btnCookieConsent", 123 1, 124 "btn", 125 "btn-success" 126 ], 127 [ 128 "id", 129 "btnCookieConsent", 130 1, 131 "btn", 132 "btn-success", 133 3, 134 "click" 135 ] 136 ], 137 template: function(i, e) { 138 if (i & 1 && (f(0, "div", 0), l(1, Rt, 1, 1, "div", 1), l(2, xt, 2, 1, "a", 2), v()), i & 2) { 139 let s, p; 140 a(), k((s = e.config.content.text) ? 1 : -1, s), a(), k((p = e.config.content.messages?.OKButton) ? 2 : -1, p); 141 } 142 }, 143 dependencies: [wt, pt], 144 encapsulation: 2 145 }), t; 146 })(), h = (() => { 147 let t = class { 148 constructor() { 149 this.cookieConsentConfig = n(r), this.cookieService = n(C), this.overlay
149= n(Dt), this.injector = n(_), this.dslService = n(ot), this.navigationService = n(it), this.destroyRef = n(Y), this.unsubscribe = new F(); 150 } 151 tryShowCookieConsent() { 152 this.isAccepted() || (this.navigationService.locationChange.pipe(m(this.unsubscribe)).subscribe(() => this.incrementCookie()), this.cookieConsentConfig.whenReady.pipe(O()).subscribe(() => { 153 this.dslService.evaluateExpression(this.cookieConsentConfig.condition).pipe(m(this.unsubscribe)).subscribe((e) => { 154 e ? this.show() : this.hide(); 155 }); 156 })); 157 } 158 show() { 159 if (this.currentRef) return; 160 let e = this.overlay.create({ 161 hasBackdrop: !1, 162 panelClass: "vn-cookie-consent-container", 163 scrollStrategy: this.overlay.scrollStrategies.noop(), 164 positionStrategy: this.overlay.position.global().bottom() 165 }); 166 e.detachments().pipe(J(this.destroyRef)).subscribe(() => { 167 this.isAccepted() && (this.unsubscribe.next(), this.unsubscribe.complete()), this.overlay.dispose(e), this.currentRef = null; 168 }); 169 let s = new At(b, null, _.create({ 170 providers: [{ 171 provide: d, 172 useValue: e 173 }], 174 parent: this.injector 175 })); 176 e.attach(s), this.currentRef = e; 177 } 178 hide() { 179 this.currentRef && this.currentRef.detach(); 180 } 181 isAccepted() { 182 return this.cookieService.get(o.EuConsent) === "a"; 183 } 184 incrementCookie() { 185 if (this.isAccepted()) return; 186 let e = /* @__PURE__ */ new Date(); 187 e.setFullYear(e.getFullYear() + 1); 188 let s = this.cookieService.get(o.EuConsent) || "0"; 189 this.cookieService.put(o.EuConsent, (parseInt(s) + 1).toString(), { expires: e }); 190 } 191 }; 192 return t.ɵfac = function(i) { 193 return new (i || t)(); 194 }, t.ɵprov = c({ 195 token: t, 196 factory: t.ɵfac 197 }), t; 198 })(), S = (() => { 199 let t = class { 200 constructor() { 201 this.cookieConsentService = n(h); 202 } 203 onFeatureInit() { 204 this.cookieConsentService.tryShowCookieConsent(); 205 } 206 }; 207 return t.ɵfac = function(i) { 208 return new (i || t)(); 209 }, t.ɵprov = c({ 210 token: t, 211 factory: t.ɵfac 212 }), t; 213 })(); 214 })))(); 215} 216y(); 217export { Lt as provide }; 218 219//# sourceMappingURL=chunk-Bgxf8z56o.js.map
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.