1import { b as E } from "./chunk-i2pl4wu9.js"; 2import { $i as A, At as w, Bi as D, Co as F, Ei as c, Et as R, Fo as x, Nr as B, Ui as j, W as n, Wt as N, Z as I, _r as J, ao as L, bn as V, et as Y, fr as k, g as q, ht as f, jn as G, jo as _, q as T, ro as m, rt as a, vt as l, zi as v } from "./chunk-ql746sly.js"; 3import { j as $ } from "./chunk-hcheit1f.js"; 4import { p as H } from "./chunk-b11o3szq.js"; 5import { j as K, ut as M } from "./chunk-fz42rx6r.js"; 6import { r as O } from "./chunk-icjzvqcx.js"; 7import { t as Z } from "./chunk-jbaamz4y.js"; 8import { A as Q, b as W } from "./chunk-c01xxjhs.js"; 9import { J as X, M as C, T as s, et as z, gt as P, n as U } from "./chunk-jtpxiaxj.js"; 10import { o as tt } from "./chunk-jaxwt8s1.js"; 11import { j as et } from "./chunk-nhl74n6z.js"; 12import { o as it, t as nt } from "./chunk-br9ckdzm.js"; 13import { p as ot } from "./chunk-bl09vhvv.js"; 14import { ot as st } from "./chunk-f0xko016.js"; 15import { a as rt, c as ct, s as g } from "./chunk-n63cutws.js"; 16import { Dn as at, Mr as ut, Tt as ht, jr as pt } from "./chunk-eu7ozsb7.js"; 17import { a as kt } from "./chunk-lt7tziae.js"; 18import { n as ft } from "./chunk-gpn04stg.js"; 19import { n as _t, t as mt } from "./chunk-lf77xnpz.js"; 20import { i as lt, p as vt } from "./chunk-bnt36dw9.js"; 21import { n as Ct } from "./chunk-d6iooz3w.js"; 22import { n as gt, r as dt, t as bt } from "./chunk-jouxu15i.js"; 23import { n as yt } from "./chunk-c8btpjog.js"; 24import { E as St, mt as Et, tt as At, ut as d } from "./chunk-dkzazc5t.js"; 25import { r as wt, t as Dt } from "./chunk-ggzcwtgt.js"; 26import { t as Ft } from "./chunk-o4f8w5yc.js"; 27function Rt(t) { 28 return t.get(r); 29} 30function xt(t, i) { 31 t & 1 && Y(0, "div", 1), t & 2 && V("vnDynamicHtml", i); 32} 33function Bt(t, i) { 34 if (t & 1) { 35 let e = w(); 36 v(0, "a", 3), x("click", function() { 37 return G(e), B(L().close()); 38 }), J(1), m(); 39 } 40 t & 2 && (a(), T(i)); 41} 42function jt() { 43 return [ 44 { 45 provide: r, 46 useFactory: Rt, 47 deps: [bt] 48 }, 49 u, 50 h, 51 ht(y) 52 ]; 53} 54var r, u, b, h, y; 55function S() { 56 return (S = Ft((() => { 57 E(), A(), $(), H(), M(), O(), Z(), Q(), P(), tt(), et(), it(), W(), ot(), st(), X(), ct(), pt(), kt(), ft(), mt(), vt(), lt(), Ct(), dt(), yt(), At(), at(), Dt(), D(), r = (() => { 58 var t = class extends gt {}; 59 let i = (t.ɵfac = (() => { 60 let e; 61 return function(o) { 62 return (e || (e = j(t)))(o || t); 63 }; 64 })(), t.ɵprov = c({ 65 token: t, 66 factory: t.ɵfac 67 }), t); 68 return i = R([_t({ 69 key: "vnCookieConsent", 70 product: K.SF 71 })], i), i; 72 })(), u = (() => { 73 let t = class { 74 constructor() { 75 this.trackingService = n(rt); 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 o = this.cookieService.get(s.EuConsent); 102 this.cookieService.put(s.EuConsent, "a", { expires: e }), this.cookieConsentTrackingService.trackAccept(o), this.overlayRef.detach(); 103 } 104 }; 105 return t.ɵfac = function(i) { 106 return new (i || t)(); 107 }, t.ɵcmp = F({ 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 && (v(0, "div", 0), k(1, xt, 1, 1, "div", 1), k(2, Bt, 2, 1, "a", 2), m()), i & 2) { 139 let o, p; 140 a(), f((o = e.config.content.text) ? 1 : -1, o), a(), f((p = e.config.content.messages?.OKButton) ? 2 : -1, p); 141 } 142 }, 143 dependencies: [St, ut],
144 encapsulation: 2 145 }), t; 146 })(), h = (() => { 147 let t = class { 148 constructor() { 149 this.cookieConsentConfig = n(r), this.cookieService = n(C), this.overlay = n(wt), this.injector = n(_), this.dslService = n(U), this.navigationService = n(z), this.destroyRef = n(q), this.unsubscribe = new I(); 150 } 151 tryShowCookieConsent() { 152 this.isAccepted() || (this.navigationService.locationChange.pipe(l(this.unsubscribe)).subscribe(() => this.incrementCookie()), this.cookieConsentConfig.whenReady.pipe(N()).subscribe(() => { 153 this.dslService.evaluateExpression(this.cookieConsentConfig.condition).pipe(l(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(nt(this.destroyRef)).subscribe(() => { 167 this.isAccepted() && (this.unsubscribe.next(), this.unsubscribe.complete()), this.overlay.dispose(e), this.currentRef = null; 168 }); 169 let o = new Et(b, null, _.create({ 170 providers: [{ 171 provide: d, 172 useValue: e 173 }], 174 parent: this.injector 175 })); 176 e.attach(o), this.currentRef = e; 177 } 178 hide() { 179 this.currentRef && this.currentRef.detach(); 180 } 181 isAccepted() { 182 return this.cookieService.get(s.EuConsent) === "a"; 183 } 184 incrementCookie() { 185 if (this.isAccepted()) return; 186 let e = /* @__PURE__ */ new Date(); 187 e.setFullYear(e.getFullYear() + 1); 188 let o = this.cookieService.get(s.EuConsent) || "0"; 189 this.cookieService.put(s.EuConsent, (parseInt(o) + 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 })(), y = (() => { 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} 216S(); 217export { jt as provide }; 218 219//# sourceMappingURL=chunk-Bnfhf34o3.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.