1import { b as W, g as q, n as G, t as F } from "./chunk-i2pl4wu9.js"; 2import { $i as V, At as z, Bi as H, Co as N, Ei as g, Et as J, Fo as K, G as R, Ga as $, Gi as h, Ha as S, Ii as L, Na as U, Nr as Y, On as Q, S as Z, St as I, Ui as X, W as a, _r as r, ao as m, bn as _, eo as b, et as y, fi as c, fr as v, g as tt, ht as k, jn as it, jo as T, n as st, na as et, q as C, ro as u, rt as o, ti as l, za as D, zi as d } from "./chunk-ql746sly.js"; 3import { U as nt, j as ot } from "./chunk-hcheit1f.js"; 4import { p as at } from "./chunk-b11o3szq.js"; 5import { j as rt, p as ct, ut as lt } from "./chunk-fz42rx6r.js"; 6import { r as mt } from "./chunk-icjzvqcx.js"; 7import { t as ut } from "./chunk-jbaamz4y.js"; 8import { A as ft, b as pt } from "./chunk-c01xxjhs.js"; 9import { J as ht, K as dt, gt as _t } from "./chunk-jtpxiaxj.js"; 10import { o as vt } from "./chunk-jaxwt8s1.js"; 11import { j as kt } from "./chunk-nhl74n6z.js"; 12import { o as gt, t as Lt } from "./chunk-br9ckdzm.js"; 13import { p as bt } from "./chunk-bl09vhvv.js"; 14import { ot as yt } from "./chunk-f0xko016.js"; 15import { a as Ct, c as Dt, s as Et } from "./chunk-n63cutws.js"; 16import { Dn as wt, Mr as At, b as E, hr as Nt, jr as Rt, l as St, mn as It } from "./chunk-eu7ozsb7.js"; 17import { a as Tt } from "./chunk-lt7tziae.js"; 18import { n as xt } from "./chunk-gpn04stg.js"; 19import { n as Bt, t as jt } from "./chunk-lf77xnpz.js"; 20import { i as Mt, p as Ot } from "./chunk-bnt36dw9.js"; 21import { n as Pt, r as Wt } from "./chunk-d6iooz3w.js"; 22import { n as qt, r as Gt, t as Ft } from "./chunk-jouxu15i.js"; 23import { n as Vt, r as zt } from "./chunk-c8btpjog.js"; 24import { E as Ht, mt as Jt, tt as Kt, ut as x } from "./chunk-dkzazc5t.js"; 25import { a as $t, s as Ut } from "./chunk-jnhmm4s0.js"; 26import { r as Yt } from "./chunk-e73ndlg5.js"; 27import { r as Qt, t as Zt } from "./chunk-ggzcwtgt.js"; 28import { n as Xt } from "./chunk-gd9lkrcj.js"; 29import { t as ti } from "./chunk-nhq7wupa.js"; 30import { n as ii } from "./chunk-hh163lda.js"; 31import { F as si, I as ei, L as ni, R as oi, _t as ai, at as ri, it as ci, lt as li, pt as mi, wt as ui, xt as fi, yt as pi } from "./chunk-jrsxruoz.js"; 32import { t as hi } from "./chunk-o4f8w5yc.js"; 33function di(t) { 34 return t.get(f); 35} 36function _i(t, e) { 37 if (t & 1 && (l(0, "span", 0), r(1), c(), l(2, "div", 1)(3, "div", 2), et(4, "div", 3), c()(), l(5, "div", 4)(6, "b", 5), r(7), c(), l(8, "span"), r(9), D(10, "vnCurrency"), c()(), l(11, "div", 4)(12, "b", 6), r(13), c(), l(14, "span"), r(15), D(16, "vnCurrency"), c()(), l(17, "div", 4)(18, "b", 7), r(19), c(), l(20, "span"), r(21), D(22, "vnCurrency"), c()()), t & 2) { 38 let i = e, s = m(), n = m(); 39 o(), I(" ", s[i.notificationType], " : ", n.usedPercentage(), "% "), o(3), U("width", n.usedPercentage(), "%"), o(3), h(" ", s.CurrentLimits, ": "), o(2), h(" ", L(10, 11, i.playerLimitAmount, i.currency), " "), o(4), h(" ", s.Used, ": "), o(2), h(" ", L(16, 14, i.totalLossAmount, i.currency), " "), o(4), h(" ", s.Remaining, ": "), o(2), I(" ", L(22, 17, i.pendingLossAmount, i.currency), " ", s.RemainingLeftText, " "); 40 } 41} 42function vi(t, e) { 43 if (t & 1 && v(0, _i, 23, 20), t & 2) { 44 let i; 45 k((i = m().item()) ? 0 : -1, i); 46 } 47} 48function ki(t, e) { 49 if (t & 1 && (d(0, "div", 6), y(1, "vn-loss-limits-item", 11), u()), t & 2) { 50 let i = e.$implicit; 51 o(), _("item", i); 52 } 53} 54function gi(t, e) { 55 if (t & 1 && (d(0, "div", 7), r(1), u()), t & 2) { 56 let i = m(3); 57 o(), C(i.closeMessage()); 58 } 59} 60function Li(t, e) { 61 if (t & 1) { 62 let i = z(); 63 d(0, "div", 3)(1, "div", 4), r(2), u(), y(3, "div", 5), st(4, ki, 2, 1, "div", 6, Z), v(6, gi, 2, 1, "div", 7), d(7, "div", 8)(8, "button", 9), K("click", function() { 64 return it(i), Y(m(2).close()); 65 }), r(9), u(), y(10, "vn-menu-item", 10), u()(); 66 } 67 if (t & 2) { 68 let i = e, s = m(), n = m(); 69 o(2), C(s.text), o(), _("vnDynamicHtml", i.SubTitle), o(), $(n.lossLimitsDetails()), o(2), k(n.buttonsDisabled() ? 6 : -1), o(2), _("disabled", n.buttonsDisabled()), o(), h(" ", i.CloseButtonText, " "), o(), _("item", n.config().updateCTA)("disabled", n.buttonsDisabled()); 70 } 71} 72function bi(t, e) { 73 if (t & 1 && (d(0, "ds-modal")(1, "ds-modal-header", 0)(2, "div", 1)(3, "div", 2), r(4), u()()(), d(5, "ds-modal-content"), v(6, Li, 11, 7, "div", 3), u()()), t & 2) { 74 let i, s = e;
75 o(), _("variant", "nav-bg"), o(3), C(s.title), o(2), k((i = s.messages) ? 6 : -1, i); 76 } 77} 78function yi() { 79 return [ 80 A, 81 w, 82 { 83 provide: f, 84 useFactory: di, 85 deps: [Ft] 86 }, 87 It(M) 88 ]; 89} 90var f, w, B, j, A, M; 91function O() { 92 return (O = hi((() => { 93 W(), V(), ot(), at(), lt(), mt(), ut(), ft(), _t(), vt(), kt(), gt(), pt(), bt(), yt(), ht(), Dt(), Rt(), Tt(), xt(), jt(), Ot(), Mt(), Pt(), Gt(), Vt(), Kt(), wt(), Ut(), $t(), Yt(), Zt(), Xt(), ti(), ii(), ui(), fi(), pi(), ai(), mi(), li(), ci(), ni(), H(), f = (() => { 94 var t = class extends qt {}; 95 let e = (t.ɵfac = (() => { 96 let i; 97 return function(s) { 98 return (i || (i = X(t)))(s || t); 99 }; 100 })(), t.ɵprov = g({ 101 token: t, 102 factory: t.ɵfac 103 }), t); 104 return e = J([Bt({ 105 key: "vnLossLimits", 106 product: rt.SF 107 })], e), e; 108 })(), w = (() => { 109 let t = class { 110 constructor() { 111 this.trackingService = a(Ct), this.lossLimitsConfig = a(f); 112 } 113 trackLoad(i) { 114 this.setPlaceholders(i), this.trackLossLimitsEvent(i, "Load", "not applicable", "Loss Limits pop-up"); 115 } 116 trackClose(i) { 117 this.trackLossLimitsEvent(i, "Click", "Loss Limits pop-up", "Close"); 118 } 119 trackLossLimitsEvent(i, s, n, p) { 120 let P = this.getLimitsNotified(i); 121 this.trackingService.triggerEvent(Et.OptionLoad, { 122 "component.CategoryEvent": "Gambling Controls", 123 "component.LabelEvent": "Loss Limits", 124 "component.ActionEvent": s, 125 "component.PositionEvent": P, 126 "component.LocationEvent": n, 127 "component.EventDetails": p, 128 "component.URLClicked": "not applicable" 129 }); 130 } 131 getLimitsNotified(i) { 132 return i.reduce((s, n) => s ? `${s}/${n.notificationType}` : n.notificationType, ""); 133 } 134 setPlaceholders(i) { 135 let s = { limits: this.getLimitsNotified(i) }; 136 this.lossLimitsConfig.updateCTA.trackEvent && (this.lossLimitsConfig.updateCTA.trackEvent.data = ct(this.lossLimitsConfig.updateCTA.trackEvent.data || {}, (n) => dt(n, s))); 137 } 138 }; 139 return t.ɵfac = function(e) { 140 return new (e || t)(); 141 }, t.ɵprov = g({ 142 token: t, 143 factory: t.ɵfac 144 }), t; 145 })(), B = (() => { 146 let t = class { 147 constructor() { 148 this.config = a(f), this.item = R.required(), this.usedPercentage = b(() => Math.round((this.item().usedPercentage + Number.EPSILON) * 100) / 100); 149 } 150 }; 151 return t.ɵfac = function(e) { 152 return new (e || t)(); 153 }, t.ɵcmp = N({ 154 type: t, 155 selectors: [["vn-loss-limits-item"]], 156 inputs: { item: [1, "item"] }, 157 decls: 1, 158 vars: 1, 159 consts: [ 160 [ 161 1, 162 "loss-limits-item-type", 163 "font-weight-bold" 164 ], 165 [1, "progress-bar"], 166 [1, "background-bar"], 167 [ 168 1, 169 "progress", 170 "bg-danger" 171 ], 172 [1, "loss-limits-item-row"], 173 [1, "current-limit"], 174 [ 175 1, 176 "limit-label", 177 "used-limit" 178 ], 179 [ 180 1, 181 "limit-label", 182 "remaining-limit" 183 ] 184 ], 185 template: function(e, i) { 186 if (e & 1 && v(0, vi, 1, 1), e & 2) { 187 let s; 188 k((s = i.config.content.messages) ? 0 : -1, s); 189 } 190 }, 191 dependencies: [zt], 192 encapsulation: 2 193 }), t; 194 })(), j = (() => { 195 let t = class { 196 constructor() { 197 this.lossLimitsConfig = a(f), this.overlayRef = a(x), this.webWorkerService = a(Nt), this.lossLimitsTrackingService = a(w), this.lossLimitsDetails = R.required(), this.buttonsDisabled = S(!0), this.config = S(this.lossLimitsConfig), this.closeMessage = b(() => this.config().content.messages?.CloseMessage?.replace("{0}", this.config().closeWaitingTime.toString())); 198 } 199 ngOnInit() { 200 this.lossLimitsTrackingService.trackLoad(this.lossLimitsDetails()); 201 let i = this.config().closeWaitingTime; 202 this.webWorkerService.createWorker(E.LossLimitsInterval, { 203 interval: 1e3, 204 runInsideAngularZone: !0 205 }, () => { 206 i--, this.closeMessage = b(() => this.config().content.messages?.CloseMessage?.replace("{0}", i.toString())), i <= 0 && (this.buttonsDisabled.set(!1), this.webWorkerService.removeWorker(E.LossLimitsInterval)); 207 }); 208 } 209 ngOnDestroy() {
210 this.webWorkerService.removeWorker(E.LossLimitsInterval); 211 } 212 close() { 213 this.lossLimitsTrackingService.trackClose(this.lossLimitsDetails()), this.overlayRef.detach(); 214 } 215 }; 216 return t.ɵfac = function(e) { 217 return new (e || t)(); 218 }, t.ɵcmp = N({ 219 type: t, 220 selectors: [["vn-loss-limits-overlay"]], 221 inputs: { lossLimitsDetails: [1, "lossLimitsDetails"] }, 222 decls: 1, 223 vars: 1, 224 consts: [ 225 [3, "variant"], 226 ["slot", "center"], 227 ["slot", "title"], 228 [ 229 1, 230 "loss-limits-container", 231 "overlay-content" 232 ], 233 [ 234 1, 235 "text-center", 236 "loss-limits-description" 237 ], 238 [ 239 1, 240 "loss-limits-title", 241 "text-center", 242 3, 243 "vnDynamicHtml" 244 ], 245 [1, "loss-limits-item-group"], 246 [ 247 1, 248 "close-message", 249 "text-center" 250 ], 251 [ 252 1, 253 "form-element", 254 "btn-container" 255 ], 256 [ 257 "ds-button", 258 "", 259 "kind", 260 "secondary", 261 "variant", 262 "outline", 263 "size", 264 "large", 265 1, 266 "w-100", 267 "my-3", 268 3, 269 "click", 270 "disabled" 271 ], 272 [ 273 3, 274 "item", 275 "disabled" 276 ], 277 [ 278 1, 279 "loss-limits-item", 280 3, 281 "item" 282 ] 283 ], 284 template: function(e, i) { 285 if (e & 1 && v(0, bi, 7, 3, "ds-modal"), e & 2) { 286 let s; 287 k((s = i.config().content) ? 0 : -1, s); 288 } 289 }, 290 dependencies: [ 291 B, 292 nt, 293 At, 294 Ht, 295 ri, 296 Wt, 297 oi, 298 ei, 299 si 300 ], 301 encapsulation: 2 302 }), t; 303 })(), A = (() => { 304 let t = class { 305 constructor() { 306 this.injector = a(T), this.overlay = a(Qt), this.destroyRef = a(tt); 307 } 308 show(i) { 309 if (this.currentRef) return; 310 let s = this.overlay.create({ panelClass: ["vn-loss-limits-panel", "vn-dialog-container"] }); 311 s.detachments().pipe(Lt(this.destroyRef)).subscribe(() => { 312 this.overlay.dispose(s), this.currentRef = null; 313 }); 314 let n = new Jt(j, null, T.create({ 315 providers: [{ 316 provide: x, 317 useValue: s 318 }], 319 parent: this.injector 320 })); 321 s.attach(n).setInput("lossLimitsDetails", i), this.currentRef = s; 322 } 323 }; 324 return t.ɵfac = function(e) { 325 return new (e || t)(); 326 }, t.ɵprov = g({ 327 token: t, 328 factory: t.ɵfac 329 }), t; 330 })(), M = (() => { 331 let t = class { 332 constructor() { 333 this.lossLimitsConfig = a(f), this.lossLimitsOverlayService = a(A); 334 } 335 process(i) { 336 return q(this, null, function* () { 337 if (i.type !== St.Rtms || !i.data) return; 338 yield Q(this.lossLimitsConfig.whenReady); 339 let s = []; 340 for (let n in i.data) { 341 let p = i.data[n]; 342 p && s.push(G(F({}, p), { 343 notificationType: n, 344 usedPercentage: p.totalLossAmount / p.playerLimitAmount * 100 345 })); 346 } 347 s.find((n) => n.isMandatory) && this.lossLimitsOverlayService.show(s); 348 }); 349 } 350 }; 351 return t.ɵfac = function(e) { 352 return new (e || t)(); 353 }, t.ɵprov = g({ 354 token: t, 355 factory: t.ɵfac 356 }), t; 357 })(); 358 })))(); 359} 360O(); 361export { yi as provide }; 362 363//# sourceMappingURL=chunk-Dif77ki9u.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.