1import { g as K, y as X } from "./chunk-xgti9j2t.js"; 2import { $ as u, Ai as Q, An as W, Do as ee, Ea as o, Fn as te, Gt as re, Hn as x, Jr as ie, Li as y, Pi as se, Pt as a, Sa as d, Sn as l, Sr as C, To as A, Ui as c, Y as k, fa as m, fi as v, fr as N, gt as s, l as b, la as ae, nt as ne, ri as H, sa as S, t as I, tn as n, ua as oe, wa as D, wr as ce, zo as L } from "./chunk-c97c17u8.js"; 3import { M as me, U as le, u as pe } from "./chunk-l3jkbhly.js"; 4import { p as he } from "./chunk-k52vj1ic.js"; 5import { o as ue } from "./chunk-l24fzhmb.js"; 6import { A as de } from "./chunk-jrtaqqwj.js"; 7import { o as ve, t as fe } from "./chunk-pesy0vb6.js"; 8import { D as ge, o as _e, r as ye } from "./chunk-llc8ry2a.js"; 9import { j as ke, ut as Se } from "./chunk-fbjoug0d.js"; 10import { a as we } from "./chunk-ewplex8i.js"; 11import { n as Te } from "./chunk-c18gpzrj.js"; 12import { r as We } from "./chunk-c9rg1mp5.js"; 13import { t as xe } from "./chunk-kyqvtgtk.js"; 14import { Y as Ce, b as Ae, gt as Ne, j as w } from "./chunk-w0x32net.js"; 15import { d as be, p as He } from "./chunk-bhnvkbxx.js"; 16import { ot as Ie } from "./chunk-f2v2cgea.js"; 17import { c as De } from "./chunk-og5uebri.js"; 18import { Cr as F, Dn as Le, Dr as R, Ln as Fe, Qt as f, Tt as Re, b as p, fn as Ee, g as E, gr as M, hr as z, it as O, jr as Me, tr as P, yn as ze } from "./chunk-go6pvd0a.js"; 19import { n as Oe, t as Pe } from "./chunk-k4et3zlq.js"; 20import { i as Ue, p as $e } from "./chunk-hul0ult7.js"; 21import { n as Be, r as je } from "./chunk-lmnwxprc.js"; 22import { n as Ge, r as Ve, t as U } from "./chunk-ilfhy0in.js"; 23import { n as Je } from "./chunk-ohg30iel.js"; 24import { $ as Ze, st as $, ut as qe } from "./chunk-iuhjzybw.js"; 25import { r as Ye, t as Ke } from "./chunk-i1knml6i.js"; 26import { r as Xe, t as Qe } from "./chunk-bt0uh5ix.js"; 27import { n as B, t as et } from "./chunk-bwsrvyqb.js"; 28import { F as tt, I as rt, L as it, R as st } from "./chunk-g8mtbi19.js"; 29import { t as at } from "./chunk-o4f8w5yc.js"; 30function j(e) { 31 return e.get(h); 32} 33function nt(e, i) { 34 if (e & 1) { 35 let r = C(); 36 o(0, "ds-modal")(1, "ds-modal-header")(2, "div", 0)(3, "div", 1), u(4), m()()(), o(5, "ds-modal-content"), l(6, "div", 2), H(7, "trustAsHtml"), l(8, "div", 3), o(9, "div", 4), l(10, "div", 5), o(11, "div", 6), u(12, ":"), m(), l(13, "div", 5), o(14, "div", 6), u(15, ":"), m(), l(16, "div", 5)(17, "span", 7)(18, "div")(19, "span", 7)(20, "div")(21, "span", 7), m(), o(22, "div", 8)(23, "button", 9), I("click", function() { 37 return N(r), L(d().close()); 38 }), u(24), m()()()(); 39 } 40 if (e & 2) { 41 let r = i, t = d(); 42 a(4), S(t.config.content.title), a(2), n("outerHTML", D(7, 10, t.config.content.text), c), a(2), n("innerHtml", r.ElapsedTime, c), a(2), n("innerHtml", t.timeUnits[0], c), a(3), n("innerHtml", t.timeUnits[1], c), a(3), n("innerHtml", t.timeUnits[2], c), a(), n("innerHtml", r.Hours, c), a(2), n("innerHtml", r.Minutes, c), a(2), n("innerHtml", r.Seconds, c), a(3), S(t.config.gotItCta.text); 43 } 44} 45function ot(e, i) { 46 e & 1 && (l(0, "span", 1), H(1, "trustAsHtml")), e & 2 && n("innerHTML", D(1, 1, i), c); 47} 48function ct(e, i) { 49 if (e & 1) { 50 let r = C(); 51 o(0, "div", 0), k(1, ot, 2, 3, "span", 1), o(2, "span", 2), u(3), m(), o(4, "vn-icon", 3), I("click", function() { 52 N(r); 53 let t = d(); 54 return L(t.playerActiveWagerOverlayService.show(t.elapsedTime)); 55 }), m()(); 56 } 57 if (e & 2) { 58 let r, t = d(); 59 n("ngClass", oe(3, J, t.durationWithoutText)), a(), y((r = i.ElapsedLugasText) ? 1 : -1, r), a(2), S(t.timer); 60 } 61} 62function mt() { 63 return [{ 64 provide: h, 65 useFactory: j, 66 deps: [U] 67 }, Re(q)]; 68} 69var h, G, T, V, J, g, Z, q; 70function Y() { 71 return (Y = at((() => { 72 X(), se(), me(), he(), ue(), de(), ve(), ge(), Se(), we(), Te(), We(), xe(), _e(), Ne(), He(), Ie(), Ce(), De(), Me(), Pe(), $e(), Ue(), Be(), Ve(), Je(), Ze(), Le(), Ye(), Qe(), et(), it(), ae(), h = (() => { 73 var e = class extends Ge {}; 74 let i = (e.ɵfac = (() => { 75 let r; 76 return function(t) { 77 return (r || (r = Q(e)))(t || e); 78 }; 79 })(), e.ɵprov = v({ 80 token: e, 81 factory: function(r) { 82 let t = null; 83 return r ? t = new r() : t = j(ie(U)), t; 84 }, 85 providedIn: "root" 86 }), e); 87 return i = ce([Oe({ 88 key: "vnPlayerActiveWager", 89 product: ke.SF 90 })], i), i; 91 })(), G = (() => { 92 let e = class { 93 constructor() {
94 this.config = s(h), this.webWorkerService = s(z), this.clockService = s(P), this.overlayRef = s($), this.changeDetectorRef = s(W), this.time = s(T); 95 } 96 ngOnInit() { 97 this.updateTimer(), this.webWorkerService.createWorker(p.PlayerActiveWagerPopupTimerInterval, { interval: 1e3 }, () => { 98 this.updateTimer(), this.changeDetectorRef.detectChanges(); 99 }); 100 } 101 ngOnDestroy() { 102 this.webWorkerService.removeWorker(p.PlayerActiveWagerPopupTimerInterval); 103 } 104 close() { 105 this.overlayRef.detach(); 106 } 107 updateTimer() { 108 this.time++; 109 let r = F.fromSeconds(this.time); 110 this.timeUnits = this.clockService.toTotalTimeStringFormat(r, { 111 unitFormat: E.Hidden, 112 hideZeros: !1, 113 timeFormat: R.HMS 114 }).split(":"); 115 } 116 }; 117 return e.ɵfac = function(i) { 118 return new (i || e)(); 119 }, e.ɵcmp = x({ 120 type: e, 121 selectors: [["vn-player-active-wager-overlay"]], 122 decls: 1, 123 vars: 1, 124 consts: [ 125 ["slot", "start"], 126 ["slot", "title"], 127 [3, "outerHTML"], 128 [ 129 1, 130 "generic-modal-content", 131 3, 132 "innerHtml" 133 ], 134 [ 135 1, 136 "player-wager-popup-wrapper", 137 "justify-content-between", 138 "align-items-center" 139 ], 140 [ 141 1, 142 "player-wager-popup-timer", 143 3, 144 "innerHtml" 145 ], 146 [1, "player-wager-popup-timer"], 147 [3, "innerHtml"], 148 [1, "generic-modal-actions"], 149 [ 150 "ds-button", 151 "", 152 "kind", 153 "primary", 154 "size", 155 "large", 156 3, 157 "click" 158 ] 159 ], 160 template: function(i, r) { 161 if (i & 1 && k(0, nt, 25, 12, "ds-modal"), i & 2) { 162 let t; 163 y((t = r.config.content.messages) ? 0 : -1, t); 164 } 165 }, 166 dependencies: [ 167 je, 168 st, 169 rt, 170 tt, 171 B 172 ], 173 styles: [`@charset "UTF-8";.player-wager-popup-wrapper{border:3px solid var(--%NS%theme-warning);border-radius:25px;display:grid;grid-gap:1px;grid-template-columns:2fr 1fr 2fr 1fr 2fr;margin:var(--%NS%site-spacer);padding:var(--%NS%site-spacer-l) var(--%NS%site-spacer-6xl);text-align:center}.player-wager-popup-wrapper span{color:var(--%NS%theme-body-50);font-size:var(--%NS%theme-txt-xs-font-size);font-weight:var(--%NS%theme-font-normal);justify-self:center;line-height:14px}.player-wager-popup-wrapper+.generic-modal-actions .btn{flex-grow:0}.player-wager-popup-timer{color:#333;font-size:var(--%NS%theme-txt-3xl-font-size);font-weight:var(--%NS%theme-font-bold);line-height:30px} 174`], 175 encapsulation: 2 176 }), e; 177 })(), T = new re("vn-player-active-wager-time"), V = (() => { 178 let e = class { 179 constructor() { 180 this.injector = s(A), this.overlay = s(Xe); 181 } 182 show(r) { 183 if (this.currentRef) return; 184 let t = this.overlay.create({ panelClass: ["vn-player-wager-popup", "generic-modal-popup"] }); 185 t.detachments().subscribe(() => { 186 this.overlay.dispose(t), this.currentRef = null; 187 }); 188 let _ = new qe(G, null, A.create({ 189 providers: [{ 190 provide: $, 191 useValue: t 192 }, { 193 provide: T, 194 useValue: r 195 }], 196 parent: this.injector 197 })); 198 t.attach(_), this.currentRef = t; 199 } 200 }; 201 return e.ɵfac = function(i) { 202 return new (i || e)(); 203 }, e.ɵprov = v({ 204 token: e, 205 factory: e.ɵfac, 206 providedIn: "root" 207 }), e; 208 })(), J = (e) => ({ "player-wager-duration-txt-empty": e }), g = (() => { 209 let e = class { 210 constructor() { 211 this.config = s(h), this.playerActiveWagerOverlayService = s(V), this.renderer2 = s(ee), this.userService = s(be), this.htmlNode = s(ye), this.localStoreService = s(O), this.webWorkerService = s(z), this.clockService = s(P), this.changeDetectorRef = s(W), this.destroyRef = s(b), this._doc = s(te), this.destroyRef.onDestroy(() => { 212 this.htmlNode.setCssClass(this.htmlNodeClassName, !1), this.webWorkerService.removeWorker(p.PlayerActiveWagerTimerInterval), this.listener?.(); 213 }); 214 } 215 ngOnInit() { 216 let r = this.config.content.messages?.ElapsedLugasText || ""; 217 this.durationWithoutText = r.trim().length <= 10, this.htmlNodeClassName = `${f.HeaderTopItems}-lugas-timer-shown`; 218 let t = this.localStoreService.get(w.LugasTimestamp); 219 this.userService.isAuthenticated && t && this.htmlNode.setCssClass(this.htmlNodeClassName, !0), this.savedLugasTimestamp = t ? Date.parse(t) : 0, this.updateTimer(), this.createActiveWagerWorker(), this.listener = this.renderer2.listen("document", Fe.VisibilityChange, () => {
220 if (this._doc.hidden) this.webWorkerService.removeWorker(p.PlayerActiveWagerTimerInterval), this.createActiveWagerWorker(); 221 else { 222 let _ = this.webWorkerService.removeWorker(p.PlayerActiveWagerTimerInterval); 223 this.updateTimer(_), this.createActiveWagerWorker(); 224 } 225 }); 226 } 227 createActiveWagerWorker() { 228 this.webWorkerService.createWorker(p.PlayerActiveWagerTimerInterval, { interval: 1e3 }, () => { 229 this.updateTimer(), this.changeDetectorRef.detectChanges(); 230 }); 231 } 232 updateTimer(r) { 233 this.elapsedTime = Math.floor((Date.now() - (this.savedLugasTimestamp + (r || 0))) / 1e3); 234 let t = F.fromSeconds(this.elapsedTime); 235 this.timer = this.clockService.toTotalTimeStringFormat(t, { 236 unitFormat: E.Hidden, 237 hideZeros: !1, 238 timeFormat: R.HMS 239 }); 240 } 241 }; 242 return e.ɵfac = function(i) { 243 return new (i || e)(); 244 }, e.ɵcmp = x({ 245 type: e, 246 selectors: [["vn-player-active-wager-timer"]], 247 hostAttrs: [1, "player-active-wager-container"], 248 decls: 1, 249 vars: 1, 250 consts: [ 251 [ 252 1, 253 "player-wager-session", 254 3, 255 "ngClass" 256 ], 257 [ 258 1, 259 "player-wager-text", 260 3, 261 "innerHTML" 262 ], 263 [1, "player-wager-timer"], 264 [ 265 "name", 266 "theme-info", 267 "extraClass", 268 "ui-icon-size-sm", 269 "size", 270 "14", 271 3, 272 "click" 273 ] 274 ], 275 template: function(i, r) { 276 if (i & 1 && k(0, ct, 5, 5, "div", 0), i & 2) { 277 let t; 278 y((t = r.config.content.messages) ? 0 : -1, t); 279 } 280 }, 281 dependencies: [ 282 le, 283 pe, 284 Ke, 285 B 286 ], 287 styles: [`@charset "UTF-8";.player-wager-text{color:var(--%NS%lugas-time-wager-text-color);display:block;font-size:var(--%NS%theme-txt-sm-font-size);line-height:18px;margin-right:var(--%NS%site-spacer-xs)}.player-wager-session{height:var(--%NS%lugas-time-wager-session-height);padding:var(--%NS%site-spacer-xs-s) 0}@media(min-width:600px){.player-wager-session{align-items:center;display:flex}}.player-wager-timer{color:var(--%NS%lugas-time-wager-timer-color);font-size:var(--%NS%theme-txt-sm-font-size);line-height:18px;margin-right:var(--%NS%site-spacer-m);vertical-align:text-top} 288`], 289 encapsulation: 2, 290 changeDetection: 1 291 }), e; 292 })(), Z = (() => { 293 let e = class { 294 constructor() { 295 this.api = s(Ae), this.dynamicLayoutService = s(ze), this.localStoreService = s(O); 296 } 297 refreshWagerTimer() { 298 this.api.get("activeWagerDetails").subscribe((r) => { 299 let t = !r.blockWager && r.firstActivatedTime !== "1970-01-01T00:00:00Z"; 300 this.setWagerTimer(t, r.firstActivatedTime); 301 }); 302 } 303 setWagerTimer(r, t = "") { 304 r ? (this.localStoreService.set(w.LugasTimestamp, t), this.dynamicLayoutService.removeComponent(f.HeaderTopItems, g), this.dynamicLayoutService.addComponent(f.HeaderTopItems, g, {})) : (this.localStoreService.remove(w.LugasTimestamp), this.dynamicLayoutService.removeComponent(f.HeaderTopItems, g)); 305 } 306 }; 307 return e.ɵfac = function(i) { 308 return new (i || e)(); 309 }, e.ɵprov = v({ 310 token: e, 311 factory: e.ɵfac, 312 providedIn: "root" 313 }), e; 314 })(), q = (() => { 315 let e = class { 316 constructor() { 317 this.rtmsService = s(Ee), this.playerActiveWagerConfig = s(h), this.service = s(Z), this.destroyRef = s(b); 318 } 319 onFeatureInit() { 320 return K(this, null, function* () { 321 yield ne(this.playerActiveWagerConfig.whenReady), this.service.refreshWagerTimer(), this.rtmsService.messages.pipe(fe(this.destroyRef)).subscribe((r) => { 322 switch (r.type) { 323 case M.LUGAS_SESSION_ACTIVATION_EVENT: 324 this.service.refreshWagerTimer(); 325 break; 326 case M.LUGAS_SESSION_DEACTIVATION_EVENT: this.service.setWagerTimer(!1); 327 } 328 }); 329 }); 330 } 331 }; 332 return e.ɵfac = function(i) { 333 return new (i || e)(); 334 }, e.ɵprov = v({ 335 token: e, 336 factory: e.ɵfac 337 }), e; 338 })(); 339 })))(); 340} 341Y(); 342export { mt as provide }; 343 344//# sourceMappingURL=chunk-lhu9bo6j.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.