1import { g as B, y as L } from "./chunk-xgti9j2t.js"; 2import { Aa as F, Ai as V, Ba as y, Ea as a, Hn as W, Li as $, Pi as j, Pt as c, Sa as f, Sn as S, Sr as Y, To as C, Ui as u, Y as G, fa as p, fi as o, fr as w, gt as n, l as J, la as K, nt as A, ri as h, t as D, tn as m, wa as l, wr as X, zo as I } from "./chunk-c97c17u8.js"; 3import { M as q } from "./chunk-l3jkbhly.js"; 4import { p as z } from "./chunk-k52vj1ic.js"; 5import { o as Q } from "./chunk-l24fzhmb.js"; 6import { A as U } from "./chunk-jrtaqqwj.js"; 7import { o as Z, t as tt } from "./chunk-pesy0vb6.js"; 8import { D as it, o as et } from "./chunk-llc8ry2a.js"; 9import { j as nt, ut as rt } from "./chunk-fbjoug0d.js"; 10import { a as ot } from "./chunk-ewplex8i.js"; 11import { n as st } from "./chunk-c18gpzrj.js"; 12import { r as at } from "./chunk-c9rg1mp5.js"; 13import { t as ct } from "./chunk-kyqvtgtk.js"; 14import { N as ut, Y as pt, gt as ht, l as b, w as P, z as mt } from "./chunk-ldkhjowa.js"; 15import { p as lt } from "./chunk-bhnvkbxx.js"; 16import { ot as vt } from "./chunk-f2v2cgea.js"; 17import { a as ft, c as _t, r as kt, s as _ } from "./chunk-mnbyc2sm.js"; 18import { Dn as gt, O as dt, b as E, hr as yt, jr as St } from "./chunk-gacv0pfq.js"; 19import { n as Ct, t as wt } from "./chunk-k4et3zlq.js"; 20import { i as At, p as Dt } from "./chunk-hul0ult7.js"; 21import { n as It } from "./chunk-lmnwxprc.js"; 22import { n as bt, r as Pt, t as Et } from "./chunk-ilfhy0in.js"; 23import { n as Tt } from "./chunk-ohg30iel.js"; 24import { $ as Nt, E as Ot, st as T, ut as Rt } from "./chunk-iuhjzybw.js"; 25import { r as xt, t as Ht } from "./chunk-bt0uh5ix.js"; 26import { n as Mt, t as Bt } from "./chunk-bwsrvyqb.js"; 27import { n as Lt, t as N } from "./chunk-gbecx2mb.js"; 28import { t as Ft } from "./chunk-o4f8w5yc.js"; 29function Vt(t) { 30 return t.get(s); 31} 32function Wt(t, i) { 33 if (t & 1) { 34 let e = Y(); 35 a(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3), S(4, "div", 4), h(5, "trustAsHtml"), p()()(), a(6, "div", 5), S(7, "div", 6), h(8, "trustAsHtml"), p(), a(9, "div", 7)(10, "button", 8), h(11, "trustAsHtml"), D("click", function() { 36 return w(e), I(f().continue()); 37 }), p(), a(12, "button", 8), h(13, "trustAsHtml"), D("click", function() { 38 return w(e), I(f().logout()); 39 }), p()()(); 40 } 41 if (t & 2) { 42 let e = i, r = f(); 43 c(4), m("innerHtml", l(5, 4, e.Title), u), c(3), m("innerHtml", l(8, 6, r.text()), u), c(3), m("innerHtml", l(11, 8, e.ContinueButtonText), u), c(2), m("innerHtml", l(13, 10, e.LogoutButtonText), u); 44 } 45} 46function $t() { 47 return [ 48 d, 49 g, 50 v, 51 k, 52 { 53 provide: s, 54 useFactory: Vt, 55 deps: [Et] 56 }, 57 dt(R) 58 ]; 59} 60var s, v, k, O, g, d, R; 61function x() { 62 return (x = Ft((() => { 63 L(), j(), q(), z(), Q(), U(), Z(), it(), rt(), ot(), st(), at(), ct(), et(), ht(), lt(), vt(), pt(), _t(), St(), wt(), Dt(), At(), It(), Pt(), Tt(), Nt(), gt(), Ht(), Bt(), Lt(), K(), s = (() => { 64 var t = class extends bt {}; 65 let i = (t.ɵfac = (() => { 66 let e; 67 return function(r) { 68 return (e || (e = V(t)))(r || t); 69 }; 70 })(), t.ɵprov = o({ 71 token: t, 72 factory: t.ɵfac 73 }), t); 74 return i = X([Ct({ 75 key: "vnActivityPopup", 76 product: nt.SF 77 })], i), i; 78 })(), v = (() => { 79 let t = class { 80 constructor() { 81 this.cookieService = n(ut); 82 } 83 read() { 84 return this.cookieService.get(P.ActivityPopupClosed); 85 } 86 write() {
87 this.cookieService.put(P.ActivityPopupClosed, "1"); 88 } 89 }; 90 return t.ɵfac = function(i) { 91 return new (i || t)(); 92 }, t.ɵprov = o({ 93 token: t, 94 factory: t.ɵfac 95 }), t; 96 })(), k = (() => { 97 let t = class { 98 constructor() { 99 this.trackingService = n(ft); 100 } 101 load(e) { 102 this.track(_.ContentView, "load", e, "activity popup"); 103 } 104 continue(e) { 105 this.track(_.Event, "click", e, "continue"); 106 } 107 logout(e) { 108 this.track(_.Event, "click", e, "log out"); 109 } 110 track(e, r, H, M) { 111 this.trackingService.triggerEvent(e, { 112 "component.CategoryEvent": "reality check", 113 "component.LabelEvent": "interceptor", 114 "component.ActionEvent": r, 115 "component.PositionEvent": H, 116 "component.LocationEvent": "activity popup", 117 "component.EventDetails": M, 118 "component.URLClicked": "not applicable" 119 }); 120 } 121 }; 122 return t.ɵfac = function(i) { 123 return new (i || t)(); 124 }, t.ɵprov = o({ 125 token: t, 126 factory: t.ɵfac 127 }), t; 128 })(), O = (() => { 129 let t = class { 130 constructor() { 131 this.activityPopupConfig = n(s), this.overlayRef = n(T), this.authService = n(kt), this.nativeAppService = n(mt), this.activityPopupCookieService = n(v), this.trackingService = n(k), this.text = y(() => this.config().resources.messages.Text?.replace("{MINUTES}", this.loginDurationInMinutes().toString())), this.config = F(this.activityPopupConfig), this.loginDurationInMinutes = y(() => Math.floor(this.config().timeout / 6e4)); 132 } 133 ngOnInit() { 134 this.nativeAppService.sendToNative({ 135 eventName: b.SESSION_NOTIFICATION, 136 parameters: { timeInMinutes: this.loginDurationInMinutes() } 137 }), this.trackingService.load(this.loginDurationInMinutes()); 138 } 139 continue() { 140 this.activityPopupCookieService.write(), this.nativeAppService.sendToNative({ eventName: b.SESSION_NOTIFICATION_CONTINUE }), this.trackingService.continue(this.loginDurationInMinutes()), this.overlayRef.detach(); 141 } 142 logout() { 143 this.trackingService.logout(this.loginDurationInMinutes()), this.authService.logout({ redirectAfterLogout: !1 }).then(() => { 144 this.overlayRef.detach(); 145 }); 146 } 147 }; 148 return t.ɵfac = function(i) { 149 return new (i || t)(); 150 }, t.ɵcmp = W({ 151 type: t, 152 selectors: [["vn-activity-popup-overlay"]], 153 decls: 1, 154 vars: 1, 155 consts: [ 156 [ 157 1, 158 "generic-container-wrapper", 159 "generic-container-wrapper--neutral" 160 ], 161 [1, "generic-container-title"], 162 [1, "header-ctrl-wrapper"], 163 [ 164 1, 165 "header-ctrl", 166 "d-flex", 167 "justify-content-between", 168 "align-items-center" 169 ], 170 [ 171 1, 172 "header-ctrl-txt", 173 3, 174 "innerHtml" 175 ], 176 [1, "betstation-error-message"], 177 [ 178 1, 179 "betstation-error-message__text", 180 3, 181 "innerHtml" 182 ], 183 [ 184 1, 185 "form-element", 186 "btn-container" 187 ], 188 [ 189 1, 190 "btn", 191 "btn-secondary", 192 "w-100", 193 3, 194 "click", 195 "innerHtml" 196 ] 197 ], 198 template: function(i, e) { 199 if (i & 1 && G(0, Wt, 14, 12, "div", 0), i & 2) { 200 let r; 201 $((r = e.config().resources.messages) ? 0 : -1, r); 202 } 203 }, 204 dependencies: [Ot, Mt], 205 encapsulation: 2 206 }), t; 207 })(), g = (() => { 208 let t = class { 209 constructor() { 210 this.overlay = n(xt), this.injector = n(C), this.destroyRef = n(J); 211 } 212 show() { 213 if (this.currentRef) return; 214 let e = this.overlay.create({ panelClass: ["vn-activity-popup-panel", "generic-modal-popup"] }); 215 e.detachments().pipe(tt(this.destroyRef)).subscribe(() => { 216 this.overlay.dispose(e), this.currentRef = null; 217 }); 218 let r = new Rt(O, null, C.create({ 219 providers: [{ 220 provide: T, 221 useValue: e 222 }], 223 parent: this.injector 224 })); 225 e.attach(r), this.currentRef = e; 226 } 227 }; 228 return t.ɵfac = function(i) { 229 return new (i || t)(); 230 }, t.ɵprov = o({ 231 token: t, 232 factory: t.ɵfac 233 }), t; 234 })(), d = (() => { 235 let t = class { 236 constructor() { 237 this.activityPopupConfig = n(s), this.activityPopupCookieService = n(v), this.activityPopupOverlayService = n(g), this.currentSessionConfig = n(N), this.webWorker
237Service = n(yt); 238 } 239 setTimer() { 240 this.activityPopupCookieService.read() || this.webWorkerService.createWorker(E.ActivityPopupTimeout, { timeout: this.activityPopupConfig.timeout - (this.currentSessionConfig.loginDuration ?? 0) }, () => { 241 this.activityPopupOverlayService.show(), this.webWorkerService.removeWorker(E.ActivityPopupTimeout); 242 }); 243 } 244 }; 245 return t.ɵfac = function(i) { 246 return new (i || t)(); 247 }, t.ɵprov = o({ 248 token: t, 249 factory: t.ɵfac 250 }), t; 251 })(), R = (() => { 252 let t = class { 253 constructor() { 254 this.activityPopupService = n(d), this.config = n(s), this.currentSessionConfig = n(N); 255 } 256 onFeatureInit() { 257 return B(this, null, function* () { 258 yield Promise.all([A(this.config.whenReady), A(this.currentSessionConfig.whenReady)]), this.activityPopupService.setTimer(); 259 }); 260 } 261 }; 262 return t.ɵfac = function(i) { 263 return new (i || t)(); 264 }, t.ɵprov = o({ 265 token: t, 266 factory: t.ɵfac 267 }), t; 268 })(); 269 })))(); 270} 271x(); 272export { $t as provide }; 273 274//# sourceMappingURL=chunk-Dlw7y019u.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.