1import { d as Zt, f as te, g as Q, p as ee, y as se } from "./chunk-xgti9j2t.js"; 2import { $ as F, $r as _, Ai as pt, An as ie, Cr as gt, Do as ut, Ea as a, Gn as ne, Hn as k, Hr as ae, Io as vt, Kn as ft, La as K, Li as h, Mt as N, Pi as re, Pt as n, Ro as bt, Sa as c, Sn as d, Sr as b, T as oe, To as Z, Ui as T, Wi as ce, Xa as B, Y as p, Yn as w, aa as V, ci as le, co as tt, di as me, fa as r, fi as U, fr as u, gt as m, h as S, ia as et, ko as de, l as Y, oi as Ct, or as he, qa as pe, ri as A, s as ge, sa as st, t as g, tn as l, ua as it, wa as E, wo as nt, xr as ue, zo as v } from "./chunk-c97c17u8.js"; 3import { M as ve, U as yt, u as Tt } from "./chunk-l3jkbhly.js"; 4import { p as fe } from "./chunk-k52vj1ic.js"; 5import { o as be } from "./chunk-l24fzhmb.js"; 6import { A as Ce } from "./chunk-jrtaqqwj.js"; 7import { o as ye, t as H } from "./chunk-pesy0vb6.js"; 8import { D as Te, o as ke } from "./chunk-llc8ry2a.js"; 9import { D as kt, ut as xe } from "./chunk-fbjoug0d.js"; 10import { a as we } from "./chunk-ewplex8i.js"; 11import { n as Se, r as xt } from "./chunk-c18gpzrj.js"; 12import { r as Ae } from "./chunk-c9rg1mp5.js"; 13import { n as Ee, t as Ne } from "./chunk-kyqvtgtk.js"; 14import { Q as wt, Y as Oe, b as Ie, gt as _e, y as Re, z as De } from "./chunk-w0x32net.js"; 15import { p as He } from "./chunk-bhnvkbxx.js"; 16import { ot as Me } from "./chunk-f2v2cgea.js"; 17import { a as St, c as Pe, s as z } from "./chunk-og5uebri.js"; 18import { C as At, Dn as Le, Ln as M, O as Fe, _n as at, c as Et, gr as y, jr as Be, rr as ze } from "./chunk-go6pvd0a.js"; 19import { t as Ge } from "./chunk-k4et3zlq.js"; 20import { i as $e, p as je } from "./chunk-hul0ult7.js"; 21import { n as Ve, r as Ue } from "./chunk-lmnwxprc.js"; 22import { r as Ye } from "./chunk-ilfhy0in.js"; 23import { n as qe } from "./chunk-ohg30iel.js"; 24import { $ as Xe, st as q, ut as Nt } from "./chunk-iuhjzybw.js"; 25import { c as We } from "./chunk-pccxjem8.js"; 26import { r as Je, t as P } from "./chunk-i1knml6i.js"; 27import { r as Qe, t as Ke } from "./chunk-bt0uh5ix.js"; 28import { n as rt, t as Ze } from "./chunk-bwsrvyqb.js"; 29import { n as ts, t as O } from "./chunk-k0kygnvj.js"; 30import { $t as es, At as ss, Dt as is, Ot as X } from "./chunk-g8mtbi19.js"; 31import { a as ns, i as as, n as C, r as G } from "./chunk-ejxkaugb.js"; 32import { a as Ot, c as rs, i as $, l as os, n as cs, o as ot, r as j, s as x, t as ct, u as R } from "./chunk-l1pg4xa3.js"; 33import { t as ls } from "./chunk-o4f8w5yc.js"; 34function ms(e, i) { 35 if (e & 1) { 36 let t = b(); 37 a(0, "div", 10), g("click", function() { 38 return u(t), v(c().close()); 39 }), d(1, "vn-icon", 11), r(); 40 } 41} 42function ds(e, i) { 43 if (e & 1 && (a(0, "div", 5)(1, "div", 12)(2, "div", 13), d(3, "vn-image", 14), r(), a(4, "div", 15), d(5, "div", 16), A(6, "trustAsHtml"), r()()()), e & 2) { 44 let t = i; 45 n(3), l("textClass", "bonus-teaser")("src", t.bonusImage.src)("alt", t.bonusImage.alt)("intro", t.overlayImageIntroductoryText)("title", t.overlayImageTitleText)("subtitle", t.overlayImageSubtitleText)("titleFontSize", t.overlayImageTitleFontSize)("textAlign", t.overlayImageTextAlignment), n(2), l("innerHtml", E(6, 9, t.bonusText), T); 46 } 47} 48function hs(e, i) { 49 e & 1 && d(0, "vn-icon", 18); 50} 51function ps(e, i) { 52 e & 1 && d(0, "vn-icon", 19); 53} 54function gs(e, i) { 55 if (e & 1) { 56 let t = b(); 57 a(0, "div", 6)(1, "div", 17), g("click", function() { 58 return u(t), v(c().tacExpanded()); 59 }), a(2, "span"), F(3), r(), p(4, hs, 1, 0, "vn-icon", 18)(5, ps, 1, 0, "vn-icon", 19), r(), d(6, "div", 20), A(7, "trustAsHtml"), r(); 60 } 61 if (e & 2) { 62 let t = c(); 63 n(3), st(t.content.messages?.TermsAndConditions), n(), h(t.isTacExpanded ? 4 : 5), n(2), l("innerHtml", E(7, 3, t.message.tnCData), T); 64 } 65} 66function us(e, i) { 67 if (e & 1 && (a(0, "div", 5)(1, "a", 6)(2, "div", 7), d(3, "vn-icon", 8)(4, "vn-image", 9), r()()()), e & 2) { 68 let t = i.$implicit; 69 n(4), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 70 } 71} 72function vs(e, i) { 73 if (e & 1 && (a(0, "div", 3), S(1, us, 5, 4, "div", 5, N().trackByTitle, !0), r()), e & 2) { 74 let t = c(); 75 n(), w(t.message.desktopGames); 76 } 77} 78function fs(e, i) { 79 if (e & 1 && (a(0, "div", 10)(1, "div", 5)(2, "a", 6)(3, "div", 7), d(4, "vn-icon", 8)(5, "vn-image", 9), r()()()()), e & 2) { 80 let t = i.$implicit; 81 n(5), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 82 } 83} 84function bs(e, i) { 85 if (e & 1 && (a(0, "vn-swiper", 4), S(1, fs, 6, 4, "div", 10, N().trackByTitle, !0), r()
85), e & 2) { 86 let t = c(); 87 l("swiperOptions", K(1, Dt, t.slidesPerView, t.arrows)), n(), w(t.message.desktopGames); 88 } 89} 90function Cs(e, i) { 91 if (e & 1) { 92 let t = b(); 93 a(0, "div", 5)(1, "a", 6), g("click", function() { 94 let s = u(t).$implicit; 95 return v(c(2).goTo(s.launchUrl)); 96 }), d(2, "vn-image", 7), r()(); 97 } 98 if (e & 2) { 99 let t = i.$implicit; 100 n(2), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 101 } 102} 103function ys(e, i) { 104 if (e & 1 && (a(0, "div", 3), S(1, Cs, 3, 4, "div", 5, N().trackByTitle, !0), r()), e & 2) { 105 let t = c(); 106 n(), w(t.message.desktopGames); 107 } 108} 109function Ts(e, i) { 110 if (e & 1) { 111 let t = b(); 112 a(0, "div", 8)(1, "div", 5)(2, "a", 6), g("click", function() { 113 let s = u(t).$implicit; 114 return v(c(2).goTo(s.launchUrl)); 115 }), d(3, "vn-image", 7), r()()(); 116 } 117 if (e & 2) { 118 let t = i.$implicit; 119 n(3), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 120 } 121} 122function ks(e, i) { 123 if (e & 1 && (a(0, "vn-swiper", 4), S(1, Ts, 4, 4, "div", 8, N().trackByTitle, !0), r()), e & 2) { 124 let t = c(); 125 l("swiperOptions", K(1, Mt, t.slidesPerView, t.arrows)), n(), w(t.message.desktopGames); 126 } 127} 128function xs(e, i) { 129 if (e & 1 && (a(0, "div", 5)(1, "a", 6)(2, "div", 7), d(3, "vn-icon", 8)(4, "vn-image", 9), r()()()), e & 2) { 130 let t = i.$implicit; 131 n(4), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 132 } 133} 134function ws(e, i) { 135 if (e & 1 && (a(0, "div", 3), S(1, xs, 5, 4, "div", 5, N().trackByTitle, !0), r()), e & 2) { 136 let t = c(2); 137 n(), w(t.message.mobileGames); 138 } 139} 140function Ss(e, i) { 141 if (e & 1 && (a(0, "div", 10)(1, "div", 5)(2, "a", 6)(3, "div", 7), d(4, "vn-icon", 8)(5, "vn-image", 9), r()()()()), e & 2) { 142 let t = i.$implicit; 143 n(5), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 144 } 145} 146function As(e, i) { 147 if (e & 1 && (a(0, "vn-swiper", 4), S(1, Ss, 6, 4, "div", 10, N().trackByTitle, !0), r()), e & 2) { 148 let t = c(2); 149 l("swiperOptions", it(1, Lt, t.slidesPerView)), n(), w(t.message.mobileGames); 150 } 151} 152function Es(e, i) { 153 if (e & 1 && (a(0, "div", 1)(1, "div", 2), p(2, ws, 3, 0, "div", 3)(3, As, 3, 3, "vn-swiper", 4), r()()), e & 2) { 154 let t = c(); 155 n(), l("hidden", t.message.mobileGames.length === 0), n(), h(t.message.mobileGames.length <= 3 ? 2 : 3); 156 } 157} 158function Ns(e, i) { 159 if (e & 1) { 160 let t = b(); 161 a(0, "div", 5)(1, "a", 6), g("click", function() { 162 let s = u(t).$implicit; 163 return v(c(2).goTo(s.launchUrl)); 164 }), d(2, "vn-image", 7), r()(); 165 } 166 if (e & 2) { 167 let t = i.$implicit; 168 n(2), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 169 } 170} 171function Os(e, i) { 172 if (e & 1 && (a(0, "div", 3), S(1, Ns, 3, 4, "div", 5, N().trackByTitle, !0), r()), e & 2) { 173 let t = c(); 174 n(), w(t.message.mobileGames); 175 } 176} 177function Is(e, i) { 178 if (e & 1) { 179 let t = b(); 180 a(0, "div", 8)(1, "div", 5)(2, "a", 6), g("click", function() { 181 let s = u(t).$implicit; 182 return v(c(2).goTo(s.launchUrl)); 183 }), d(3, "vn-image", 7), r()()(); 184 } 185 if (e & 2) { 186 let t = i.$implicit; 187 n(3), l("src", t.icon.src)("alt", t.title)("width", 140)("height", 140); 188 } 189} 190function _s(e, i) { 191 if (e & 1 && (a(0, "vn-swiper", 4), S(1, Is, 4, 4, "div", 8, N().trackByTitle, !0), r()), e & 2) { 192 let t = c(); 193 l("swiperOptions", it(1, Bt, t.slidesPerView)), n(), w(t.message.desktopGames); 194 } 195} 196function Rs(e, i) { 197 if (e & 1) { 198 let t = b(); 199 a(0, "div", 13), g("click", function() { 200 return u(t), v(c().close()); 201 }), d(1, "vn-icon", 14), r(); 202 } 203} 204function Ds(e, i) { 205 e & 1 && d(0, "div", 16), e & 2 && l("innerHtml", c().headerTermsAndConditionsRewardsOverlay, T); 206} 207function Hs(e, i) { 208 if (e & 1 && (a(0, "div", 7), d(1, "vn-image", 15)(2, "div", 16), A(3, "trustAsHtml"), p(4, Ds, 1, 1, "div", 16), r()), e & 2) { 209 let t = i, s = c(); 210 n(), l("textClass", "vn-img")("src", s.overlayImage)("intro", s.imageIntroductoryText)("title", s.imageTitleText)("subtitle", s.imageSubtitleText)("titleFontSize", s.imageTitleFontSize)("textAlign", s.imageTextAlignment), n(), l("innerHtml", E(3, 9, t.preAcceptanceKeyTerms), T), n(2), h(t.headerTermsAndConditionsRewardsOverlay ? 4 : -1); 211 } 212} 213function Ms(e, i) { 214 if (e & 1 && d(0, "vn-rtms-mobile-games-unlocked-list", 17), e & 2) { 215 let t = c(2); 216 l("content", t.content)("message", t.message); 217 } 218} 219function Ps(e, i) { 220 if (e & 1 && d(0, "vn-rtms-desktop-games-unlocked-list", 17), e & 2) { 221 let t = c(2); 222 l("content", t.content)("message", t.message); 223 } 224} 225function Ls(e, i) { 226 if (e & 1 && (a(0, "div"), p(1, Ms, 1, 2, "vn-rtms-mobile-games-unlocked-list", 17)(2, Ps, 1, 2, "vn-rtms-desktop-games-unlocked-list", 17), r()), e & 2) { 227 let t = c(); 228 n(), h(t.isMobile ? 1 : 2); 229 } 230} 231function Fs(e, i) { 232 if (e & 1 && d(0, "vn-rtms-mobile-games-locked-list", 17), e & 2) { 233 let t = c(2); 234 l("content", t.content)("message", t.message); 235 } 236} 237function Bs(e, i) { 238 if (e & 1 && d(0, "vn-rtms-desktop-games-locked-list", 17), e & 2) { 239 let t = c(2); 240 l("content", t.content)("message", t.message); 241 } 242} 243function zs(e, i) { 244 if (e & 1 && (a(0, "div"), p(1, Fs, 1, 2, "vn-rtms-mobile-games-locked-list", 17)(2, Bs, 1, 2, "vn-rtms-desktop-games-locked-list", 17), r()), e & 2) { 245 let t = c(); 246 n(), h(t.isMobile ? 1 : 2); 247 } 248} 249function Gs(e, i) { 250 e & 1 && d(0, "vn-icon", 19); 251} 252function $s(e, i) { 253 e & 1 && d(0, "vn-icon", 20); 254} 255function js(e, i) { 256 if (e & 1) { 257 let t = b(); 258 a(0, "div", 11)(1, "div", 18), g("click", function() { 259 return u(t), v(c().tacExpanded()); 260 }), a(2, "span"), F(3), r(), p(4, Gs, 1, 0, "vn-icon", 19)(5, $s, 1, 0, "vn-icon", 20), r(), d(6, "div", 21), A(7, "trustAsHtml"), r(); 261 } 262 if (e & 2) { 263 let t = c(); 264 n(3), st(t.content.messages?.TermsAndConditions), n(), h(t.isTacExpanded ? 4 : 5), n(2), l("innerHtml", E(7, 3, t.message.tnCData), T); 265 } 266} 267function Vs(e, i) { 268 if (e & 1) { 269 let t = b(); 270 a(0, "div", 12)(1, "vn-rtms-cta-action", 22), g("action", function(s) { 271 return u(t), v(c().rtmsCtaActions(s)); 272 }), r()(); 273 } 274 if (e & 2) { 275 let t = c(); 276 n(), l("content", t.message.content.postAcceptanceCTA)("rtmsCtaAction", t.message)("rtmsCtaActionMessages", t.content.messages)("rtmsType", t.RtmsType.OVERLAY); 277 } 278} 279function Us(e, i) { 280 if (e & 1) { 281 let t = b(); 282 a(0, "div", 12)(1, "vn-rtms-cta-action", 22), g("action", function(s) { 283 return u(t), v(c().rtmsCtaActions(s)); 284 }), r()(); 285 } 286 if (e & 2) { 287 let t = c(); 288 n(), l("content", t.message.content.preAcceptanceCTA1 + t.message.content.preAcceptanceCTA2)("rtmsCtaAction", t.message)("rtmsCtaActionMessages", t.content.messages)("rtmsType", t.RtmsType.OVERLAY); 289 } 290} 291function Ys(e, i) { 292 if (e & 1) { 293 let t = b(); 294 a(0, "div", 15), g("click", function() { 295 return u(t), v(c().close()); 296 }), d(1, "vn-icon", 16), r(); 297 } 298} 299function qs(e, i) { 300 e & 1 && d(0, "div", 18), e & 2 && l("innerHtml", c(2).message.content.headerTermsAndConditionsOverlay, T); 301} 302function Xs(e, i) { 303 if (e & 1 && (a(0, "div", 9), d(1, "vn-image", 17), p(2, qs, 1, 1, "div", 18), r()), e & 2) { 304 let t = i, s = c(); 305 n(), l("textClass", "overlay")("src", t.overlayImage)("intro", t.overlayImageIntroductoryText)("title", t.overlayImageTitleText)("subtitle", t.overlayImageSubtitleText)("titleFontSize", t.overlayImageTitleFontSize)("textAlign", t.overlayImageTextAlignment), n(), h(s.message.content.headerTermsAndConditionsOverlay ? 2 : -1); 306 } 307} 308function Ws(e, i) { 309 e & 1 && d(0, "vn-icon", 21); 310} 311function Js(e, i) { 312 e & 1 && d(0, "vn-icon", 22); 313} 314function Qs(e, i) { 315 if (e & 1) { 316 let t = b(); 317 a(0, "div", 19)(1, "div", 20), g("click", function() { 318 return u(t), v(c().tacExpanded()); 319 }), a(2, "span"), F(3), r(), p(4, Ws, 1, 0, "vn-icon", 21)(5, Js, 1, 0, "vn-icon", 22), r(), d(6, "div", 23), A(7, "trustAsHtml"), r(); 320 } 321 if (e & 2) { 322 let t = c(); 323 B("with-shadow", t.isShadowOnActions), n(3), st(t.content.messages?.TermsAndConditions), n(), h(t.isTacExpanded ? 4 : 5), n(2), l("innerHtml", E(7, 5, t.message.tnCData), T); 324 } 325} 326function Ks(e, i) { 327 if (e & 1) { 328 let t = b(); 329 a(0, "vn-rtms-overlay", 2), g("tacExpandedEvent", function(s) { 330 return u(t), v(c().toggleTaC(s)); 331 })("closeEvent", function() { 332 return u(t), v(c().close()); 333 }), r(); 334 } 335 if (e & 2) { 336 let t = c(); 337 l("message", t.messageContent)("content", t.sitecoreContent); 338 } 339} 340function Zs(e, i) { 341 if (e & 1) { 342 let t = b(); 343 a(0, "vn-rtms-custom-overlay", 2), g("tacExpandedEvent", function(s) { 344 return u(t), v(c().toggleTaC(s)); 345 })("closeEvent", function() { 346 return u(t), v(c().close()); 347 }), r(); 348 } 349 if (e & 2) { 350 let t = c(); 351 l("message", t.messageContent)("content", t.sitecoreContent); 352 } 353} 354function ti(e, i) { 355 if (e & 1) { 356 let t = b(); 357 a(0, "vn-rtms-bonus-teaser", 2), g("tacExpandedEvent", function(s) { 358 return u(t), v(c().toggleTaC(s)); 359 })("closeEvent", function() { 360 return u(t), v(c().close()); 361 }), r(); 362 } 363 if (e & 2) { 364 let t = c(); 365 l("message", t.messageContent)("content", t.sitecoreContent); 366 } 367} 368function ei(e, i) { 369 e & 1 && d(0, "vn-image", 3), e & 2 && l("imageClass", "rtms-toast__img")("textClass", "toster")("src", i.tosterImage); 370} 371function si(e, i) { 372 e & 1 && d(0, "div", 4), e & 2 && l("innerHtml", c().notification.content.headerTermsAndConditionsToaster, T); 373} 374function ii(e, i) { 375 if (e & 1) { 376 let t = b(); 377 a(0, "div", 8)(1, "vn-rtms-cta-action", 13), g("action", function(s) { 378 u(t); 379 let o = c(); 380 return v(o.rtmsCtaActions(s, o.notification.id)); 381 }), r()(); 382 } 383 if (e & 2) { 384 let t = c(); 385 n(), l("content", t.notification.content.toasterPrimaryGhostCallToAction)("rtmsCtaAction", t.notification)("rtmsCtaActionMessages", t.messagesContent == null ? null : t.messagesContent.messages); 386 } 387} 388function ni(e, i) { 389 if (e & 1) { 390 let t = b(); 391 a(0, "vn-icon", 14), g("click", function(s) { 392 u(t); 393 let o = c(); 394 return v(o.close(s, o.notification.id)); 395 }), r(); 396 } 397} 398function ai(e, i) { 399 if (e & 1) { 400 let t = b(); 401 a(0, "div", 15), g("click", function(s) { 402 u(t); 403 let o = c(); 404 return v(o.close(s, o.notification.id)); 405 }), d(1, "vn-icon", 16)(2, "div", 17), r(); 406 } 407} 408function ri(e, i) { 409 if (e & 1) { 410 let t = b(); 411 a(0, "div", 18)(1, "vn-rtms-cta-action", 13), g("action", function(s) { 412 u(t); 413 let o = c(2); 414 return v(o.rtmsCtaActions(s, o.notification.id)); 415 }), r()(); 416 } 417 if (e & 2) { 418 let t = c(2); 419 n(), l("content", t.notification.content.toasterCallToAction)("rtmsCtaAction", t.notification)("rtmsCtaActionMessages", t.messagesContent == null ? null : t.messagesContent.messages); 420 } 421} 422function oi(e, i) { 423 if (e & 1) { 424 let t = b(); 425 a(0, "div", 22), g("click", function(s) { 426 u(t); 427 let o = c(2); 428 return v(o.close(s, o.notification.id)); 429 }), r(); 430 } 431 e & 2 && l("innerHtml", c(2).notification.content.toasterCloseCallToActionLabel, T); 432} 433function ci(e, i) { 434 if (e & 1) { 435 let t = b(); 436 a(0, "div", 21)(1, "vn-rtms-cta-action", 13), g("action", function(s) { 437 u(t); 438 let o = c(2); 439 return v(o.rtmsCtaActions(s, o.notification.id)); 440 }), r()(); 441 } 442 if (e & 2) { 443 let t = c(2); 444 n(), l("content", t.notification.content.toasterPrimaryGhostCallToAction)("rtmsCtaAction", t.notification)("rtmsCtaActionMessages", t.messagesContent == null ? null : t.messagesContent.messages); 445 } 446} 447function li(e, i) { 448 if (e & 1 && (a(0, "div", 12), p(1, ri, 2, 3, "div", 18), a(2, "div", 19), p(3, oi, 1, 1, "div", 20), p(4, ci, 2, 3, "div", 21), r()()), e & 2) { 449 let t = c(); 450 n(), h(t.notification.content.toasterCallToAction ? 1 : -1), n(2), h(t.notification.content.toasterCloseCallToActionLabel ? 3 : -1), n(), h(t.notification.content.toasterPrimaryGhostCallToAction && t.notification.content.toasterCloseCallToActionLabel ? 4 : -1); 451 } 452} 453function mi(e, i) { 454 if (e & 1) { 455 let t = b(); 456 a(0, "vn-rtms-toaster-item", 3), g("onClose", function(s) { 457 return u(t), v(c().close(s)); 458 }), r(); 459 } 460 if (e & 2) { 461 let t = i.$implicit, s = c(); 462 l("notification", t)("messagesContent", s.messagesContent); 463 } 464} 465function di() { 466 return [ 467 lt, 468 mt, 469 Fe(Qt) 470 ]; 471} 472var lt, W, I, It, _t, Rt, J, Dt, Ht, Mt, Pt, Lt, Ft, Bt, zt, Gt, $t, jt, Vt, Ut, Yt, qt, Xt, Wt, Jt, mt, Qt; 473function Kt() { 474 return (Kt = ls((() => { 475 se(), re(), ve(), fe(), be(), Ce(), ye(), Te(), xe(), we(), Se(), Ae(), Ne(), ke(), _e(), He(), Me(), Oe(), Pe(), Be(), Ge(), je(), $e(), Ve(), Ye(), qe(
475), Xe(), Le(), We(), Je(), Ke(), Ze(), ts(), es(), ss(), is(), as(), rs(), lt = (() => { 476 let e = class { 477 constructor() { 478 this.api = m(Ie); 479 } 480 updateBonusTncAcceptance(t) { 481 return this.api.post("bonus/updatebonustncacceptance", t).pipe(ft((s) => s.updated)); 482 } 483 dropBonusOffer(t) { 484 return this.api.post("bonus/dropbonusoffer", t).pipe(ft((s) => s.dropped)); 485 } 486 }; 487 return e.ɵfac = function(i) { 488 return new (i || e)(); 489 }, e.ɵprov = U({ 490 token: e, 491 factory: e.ɵfac 492 }), e; 493 })(), W = (() => { 494 let e = class { 495 constructor() { 496 this.trackingService = m(St); 497 } 498 trackRtmsOverlayToasterLoad(t) { 499 this.trackingService.triggerEvent(z.ContentView, this.getTrackingData(t, "load")); 500 } 501 trackRtmsOverlayToasterClick(t) { 502 return Q(this, null, function* () { 503 yield this.trackingService.triggerEvent(z.Event, this.getTrackingData(t, "click")); 504 }); 505 } 506 trackRtmsOverlayToasterClose(t) { 507 this.trackingService.triggerEvent(z.Event, this.getTrackingData(t, "close")); 508 } 509 getTrackingData(t, s) { 510 return { 511 "component.CategoryEvent": "customer communications", 512 "component.ActionEvent": s, 513 "component.LabelEvent": t.labelEvent.toLocaleLowerCase(), 514 "component.PositionEvent": t.positionEvent.toLocaleLowerCase(), 515 "component.LocationEvent": t.locationEvent, 516 "component.EventDetails": s === "close" ? "close x" : t.eventDetails, 517 "component.URLClicked": s != "click" || t.urlClicked == "javascript:void(0)" ? "not applicable" : t.urlClicked, 518 "component.ContentPosition": "not applicable", 519 campaignId: t.campaignId, 520 "page.sitecoretemplateid": t.sitecoreTemplateid, 521 "component.Product": t.product.toLocaleLowerCase(), 522 "component.PromoIntent": t.promoIntent 523 }; 524 } 525 }; 526 return e.ɵfac = function(i) { 527 return new (i || e)(); 528 }, e.ɵprov = U({ 529 token: e, 530 factory: e.ɵfac, 531 providedIn: "root" 532 }), e; 533 })(), I = (() => { 534 var e; 535 let i = class { 536 constructor() { 537 te(this, e), this.closeEvent = V(), this.tacExpandedEvent = V(), this.changeDetectorRef = m(ie), this.trackByTitle = At("title"), this.navigation = m(wt), this.nativeApplication = m(De), ee(this, e, m(kt)); 538 } 539 ngOnInit() { 540 this.content = this.content || { form: {} }; 541 } 542 ngOnChanges(s) { 543 s.message?.currentValue && (this.message.mobileGameList = this.message.mobileGameList || [], this.message.desktopGameList = this.message.desktopGameList || [], this.message.mobileAllList = this.message.mobileAllList || [], this.message.desktopAllList = this.message.desktopAllList || [], this.message.desktopSectionGamesPairs = this.message.desktopSectionGamesPairs || [], this.message.mobileSectionGamesPairs = this.message.mobileSectionGamesPairs || [], this.message.mobileGames = this.message.mobileGames || [], this.message.desktopGames = this.message.desktopGames || [], this.handleSitecoreTncMsgConfiguration(this.message), this.message.content.useRewardsOverlay && (this.message.messageType === j.BONUS_OFFER && (this.message.sourceStatus = this.message.bonusSourceStatus), this.message.sourceStatus === C.OFFER_CLAIMED || this.message.sourceStatus === C.OPTED_IN || this.message.sourceStatus === C.OPTEDIN ? (this.showPostAcceptanceContent(), this.isOfferClaimed = !0) : (this.showPreAcceptanceContent(), this.isOfferClaimed = !1))); 544 } 545 close() { 546 this.closeEvent.emit(!1); 547 } 548 getSectionTitle(s) { 549 return this.content.messages["GameSection." + s.replace(" ", "")] || s; 550 } 551 goTo(s) { 552 s && (this.nativeApplication.isNativeApp ? Zt(this, e).location.href = s : this.navigation.goTo(s, { forceReload: !0 })); 553 } 554 rtmsCtaActions(s) { 555 switch (s.type) { 556 case x.hideRtms: 557 this.close(); 558 break; 559 case x.claimOfferSuccess: this.claimOfferSuccess(s.value); 560 } 561 } 562 claimOfferSuccess(s) { 563 s && (this.message.bonusSourceStatus = s.status, this.showPostAcceptanceContent(), this.isOfferClaimed = !0, this.changeDetectorRef.detectChanges()); 564 } 565 tacExpanded() { 566 this.isTacExpanded = !this.isTacExpanded, this.tacExpandedEvent.emit(this.isTacExpanded); 567 } 568 redirectTo(s) { 569 this.navigation.goTo(s); 570 } 571 handleSitecoreTncMsgConfiguration(s) { 572 s.content && s.content.showManualTermsAndConditionsOnOverlay && s.content.overlayManualTermsAndConditions ? (s.isShowTnc = !0, s.tnCData = s.content.overlayManualTermsAndConditions) : s.isShowTnc = !!(s.isTnCTemplate && s.tnCData); 573 } 574 showPreAcceptanceContent() { 575 this.headerTitle = this.message.content.preAcceptanceHeaderTitle, this.overlayImage = this.message.content.preAcceptanceImage, this.title = this.message.content.preAcceptanceTitle, this.description = this.message.content.preAcceptanceDescription, this.imageIntroductoryText = this.message.content.preAcceptanceImageIntroductoryText, this.imageTitleText = this.message.content.preAcceptanceImageTitleText, this.imageSubtitleText = this.message.content.preAcceptanceImageSubtitleText, this.imageTextAlignment = this.message.content.preAcceptanceImageTextAlignment, this.imageTitleFontSize = this.message.content.preAcceptanceImageTitleFontSize; 576 } 577 showPostAcceptanceContent() { 578 this.headerTitle = this.message.content.postAcceptanceHeaderTitle, this.overlayImage = this.message.content.postAcceptanceImage, this.title = this.message.content.postAcceptanceTitle, this.description = this.message.content.postAcceptanceDescription, this.isOfferClaimed = !0, this.imageIntroductoryText = this.message.content.postAcceptanceImageIntroductoryText, this.imageTitleText = this.message.content.postAcceptanceImageTitleText, this.imageSubtitleText = this.message.content.postAcceptanceImageSubtitleText, this.imageTextAlignment = this.message.content.postAcceptanceImageTextAlignment, this.imageTitleFontSize = this.message.content.postAcceptanceImageTitleFontSize; 579 } 580 }; 581 return e = /* @__PURE__ */ new WeakMap(), i.metaData = { 582 inputs: ["message", "content"], 583 outputs: ["closeEvent"] 584 }, i.ɵfac = function(t) { 585 return new (t || i)(); 586 }, i.ɵdir = oe({ 587 type: i, 588 inputs: { 589 message: "message", 590 content: "content" 591 }, 592 outputs: { 593 closeEvent: "closeEvent", 594 tacExpandedEvent: "tacExpandedEvent" 595 }, 596 features: [gt] 597 }), i; 598 })(), It = (() => { 599 let e = class extends I { 600 constructor() {
601 super(...arguments), this.bonusResourceService = m(lt), this.rtmsConfig = m($), this.page = m(Ee), this.cashierService = m(Et), this.bonusHeader = ""; 602 } 603 ngOnInit() { 604 super.ngOnInit(), this.message.content.bonusHeader && (this.bonusHeader = this.message.content.bonusHeader.replace(/<[^>]*>/g, "")), this.bonusTeaserRedirectUrl = this.rtmsConfig.bonusTeaserRedirectUrl.replace("{culture}", this.page.lang); 605 } 606 decline() { 607 this.bonusResourceService.dropBonusOffer({ 608 bonusId: this.message.bonusId, 609 agentName: "System", 610 reason: "PLP" 611 }).subscribe(() => this.close()); 612 } 613 accept() { 614 this.message.isBonusTncAccepted ? this.postTncAcceptanceAction() : this.bonusResourceService.updateBonusTncAcceptance({ 615 offerId: +this.message.offerId, 616 offerArc: 1, 617 isCampaignBonus: this.message.isCampaignBonus, 618 tncAcceptanceFlag: !0 619 }).subscribe((t) => { 620 t ? this.postTncAcceptanceAction() : this.close(); 621 }); 622 } 623 postTncAcceptanceAction() { 624 this.close(), this.message.isNoDepositBonus ? this.redirectTo(this.bonusTeaserRedirectUrl) : this.goToCashier(this.message.bonusCode); 625 } 626 goToCashier(t) { 627 this.cashierService.goToCashierDeposit({ 628 returnUrl: this.bonusTeaserRedirectUrl, 629 skipQuickDeposit: !0, 630 queryParameters: { bonusCodeForPrefill: t } 631 }); 632 } 633 }; 634 return e.ɵfac = (() => { 635 let i; 636 return function(t) { 637 return (i || (i = pt(e)))(t || e); 638 }; 639 })(), e.ɵcmp = k({ 640 type: e, 641 selectors: [["vn-rtms-bonus-teaser"]], 642 features: [_], 643 decls: 13, 644 vars: 8, 645 consts: [ 646 [1, "generic-modal-title"], 647 [1, "header-ctrl-wrapper"], 648 [ 649 1, 650 "header-ctrl", 651 "d-flex", 652 "justify-content-between", 653 "align-items-center" 654 ], 655 [ 656 1, 657 "header-ctrl-txt", 658 "text-truncate", 659 3, 660 "innerHtml" 661 ], 662 [1, "header-ctrl-r"], 663 [1, "generic-modal-content-wrapper"], 664 [1, "generic-modal-tc"], 665 [1, "generic-modal-actions"], 666 [ 667 "ds-button", 668 "", 669 "kind", 670 "secondary", 671 "variant", 672 "outline", 673 "size", 674 "medium", 675 3, 676 "click" 677 ], 678 [ 679 "ds-button", 680 "", 681 "kind", 682 "primary", 683 "variant", 684 "filled", 685 "size", 686 "medium", 687 3, 688 "click" 689 ], 690 [ 691 1, 692 "header-ctrl-r", 693 3, 694 "click" 695 ], 696 [ 697 "name", 698 "theme-ex", 699 "extraClass", 700 "ui-icon ui-icon-size-lg ui-close" 701 ], 702 [1, "generic-modal-content"], 703 [1, "over-content"], 704 [ 705 3, 706 "textClass", 707 "src", 708 "alt", 709 "intro", 710 "title", 711 "subtitle", 712 "titleFontSize", 713 "textAlign" 714 ], 715 [1, "generic-modal-overlay-content"], 716 [3, "innerHtml"], 717 [ 718 1, 719 "generic-modal-tc-header", 720 "d-flex", 721 "align-items-center", 722 "justify-content-between", 723 3, 724 "click" 725 ], 726 [ 727 "name", 728 "theme-up", 729 "extraClass", 730 "toggle-tnc-icon", 731 "size", 732 "16" 733 ], 734 [ 735 "name", 736 "theme-down", 737 "extraClass", 738 "toggle-tnc-icon", 739 "size", 740 "16" 741 ], 742 [ 743 1, 744 "generic-modal-tc-body", 745 3, 746 "innerHtml" 747 ] 748 ], 749 template: function(i, t) { 750 if (i & 1 && (a(0, "div", 0)(1, "div", 1)(2, "div", 2), d(3, "div", 3), A(4, "trustAsHtml"), p(5, ms, 2, 0, "div", 4), r()()(), p(6, ds, 7, 11, "div", 5), p(7, gs, 8, 5, "div", 6), a(8, "div", 7)(9, "button", 8), g("click", function() { 751 return t.decline(); 752 }), F(10), r(), a(11, "button", 9), g("click", function() { 753 return t.accept(); 754 }), F(12), r()()), i & 2) { 755 let s; 756 n(3), l("innerHtml", E(4, 6, t.bonusHeader), T), n(2), h(t.rtmsConfig.showCloseButtonOnBonusTeaser && !t.message.content.restrictedOverlay ? 5 : -1), n(), h((s = t.message.content) ? 6 : -1, s), n(), h(t.message.isShowTnc ? 7 : -1), n(3), Ct(" ", t.content.messages?.Decline, " "), n(2), Ct(" ", t.message.isBonusTncAccepted && !t.message.isNoDepositBonus ? t.content.messages?.DepositNow : t.content.messages?.Accept, " "); 757 } 758 }, 759 dependencies: [ 760 O, 761 P, 762 Ue, 763 rt 764 ], 765 encapsulation: 2, 766 changeDetection: 1 767 }), e; 768 })(), _t = ["contentItem"], Rt = ["*"], J = (() => { 769 let e = class { 770 constructor() { 771 this.cashierService = m(Et), this.renderer = m(ut), this.navigationService = m(wt), this.offersResourceService = m(ns), this.rtmsOverlayTrackingService = m(W), this.appInfo = m(at), this.destroyRef = m(Y), this.action = V(), this.unlistenClaimCtaKey = "unlistenClaimCta", this.ctaHrefIndicator = "inbox://cta/", this.ctaEdsHrefIndicator = "/INBOXEDS", this.ctaPatHrefIndicator = "/INBOXPAT", this.ctaCloseHrefIndicator = "close://cta/", this.ctaSimpleIndicator = "rtms-cta", this.ctaNoThanksIndicator = "rtms-no-thanks-btn", this.linksClickListeners = [], this.destroyRef.onDestroy(() => {
772 this.linksClickListeners.forEach((t) => { 773 t?.(); 774 }); 775 }); 776 } 777 ngOnChanges(t) { 778 this.rtmsCtaContentType === "DESCRIPTION" && this.content && this.contentItem && t.content && !t.content.firstChange && this.injectContent(); 779 } 780 ngAfterContentInit() { 781 this.content && this.contentItem && this.injectContent(); 782 } 783 injectContent() { 784 this.renderer.setProperty(this.contentItem.nativeElement, "innerHTML", this.content), this.handleInjectedContent(); 785 } 786 handleInjectedContent() { 787 if (!(Object.keys(this.rtmsCtaAction).length && this.rtmsCtaActionMessages)) return; 788 this.styleButtons(this.contentItem); 789 for (let o of this.getCtaElements(this.contentItem)) this.handleCtaElement(o); 790 let t; 791 this.rtmsCtaContentType === "CTA" && (t = this.contentItem.nativeElement.querySelector("a.OverlayCloseButton")) && this.handleCloseElement(t); 792 let s; 793 this.rtmsCtaContentType === "CTA" && (s = this.contentItem.nativeElement.querySelector("a.DeclineOfferButton")) && this.handleDeclineCtaElement(s), this.bindCashierLinks(this.contentItem), (this.rtmsType === void 0 || this.rtmsType === y.TOASTER) && this.linksClickListeners.push(this.renderer.listen(this.contentItem.nativeElement, M.Click, (o) => { 794 this.generalButtonClickEventHandler(o); 795 })); 796 } 797 TrackClickData(t, s) { 798 return { 799 campaignId: this.rtmsCtaAction.campaignId, 800 eventDetails: this.rtmsType === void 0 || this.rtmsType === y.TOASTER ? t.querySelector("a")?.text : t.innerHTML, 801 locationEvent: this.rtmsType === void 0 || this.rtmsType === y.TOASTER ? this.rtmsCtaAction.content.toasterTitle : this.rtmsCtaAction.content.overlayTitle, 802 positionEvent: this.rtmsCtaAction.messageType, 803 product: this.appInfo.product, 804 sitecoreTemplateid: this.rtmsCtaAction.sitecoreId, 805 urlClicked: s, 806 labelEvent: this.rtmsType === void 0 || this.rtmsType === y.TOASTER ? "toaster" : this.rtmsType, 807 promoIntent: "not applicable" 808 }; 809 } 810 styleButtons(t) { 811 this.rtmsCtaContentType === "CTA" && t.nativeElement.querySelectorAll("a").forEach((s) => { 812 this.rtmsType !== y.TOASTER && (s.classList.contains("OverlayCloseButton") || s.classList.contains("DeclineOfferButton") ? s.classList.add("btn", "cancel", "rtms-no-thanks-btn", "btn-light") : s.classList.add("btn", "rtms-cta", "btn-primary")); 813 }); 814 } 815 getCtaElements(t) { 816 return [ 817 ...Array.from(t.nativeElement.querySelectorAll(`a[href^="${this.ctaHrefIndicator}"]`)), 818 ...Array.from(t.nativeElement.querySelectorAll(`a[href^="${this.ctaEdsHrefIndicator}"]`)), 819 ...Array.from(t.nativeElement.querySelectorAll(`a[href^="${this.ctaPatHrefIndicator}"]`)), 820 ...Array.from(t.nativeElement.querySelectorAll(`a[href^="${this.ctaCloseHrefIndicator}"]`)), 821 ...Array.from(t.nativeElement.querySelectorAll(`a[class*="${this.ctaSimpleIndicator}"]`)), 822 ...Array.from(t.nativeElement.querySelectorAll(`a[class*="${this.ctaNoThanksIndicator}"]`)) 823 ]; 824 } 825 handleCloseElement(t) { 826 this.linksClickListeners.push(this.renderer.listen(t, "click", (s) => { 827 s.stopPropagation(), s.preventDefault(), this.action.emit(new R(x.hideRtms)); 828 })); 829 } 830 handleDeclineCtaElement(t) { 831 let s = this.rtmsCtaAction; 832 !s.offerId && (!t.getAttribute("data-eds-event-id") || t.getAttribute("data-eds-event-id") === "[empty]") ? this.setElementIsHidden(t, !0) : s.messageType === j.BONUS_OFFER && (t.href = "javascript:void(0)", this.declineBonusOffer(t)); 833 } 834 declineBonusOffer(t) { 835 let s = this.renderer.listen(t, M.Click, (o) => { 836 o.stopPropagation(), this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClick(this.TrackClickData(t, t.href)), s(), this.offersResourceService.updateStatus(G.BONUSES, this.rtmsCtaAction.offerId, !1).subscribe({ 837 next: (f) => { 838 f.status && this.action.emit(new R(x.hideRtms)); 839 }, 840 error: (f) => nt(f) 841 }); 842 }); 843 this.linksClickListeners.push(s); 844 } 845 handleCtaElement(t) { 846 let s = this.rtmsCtaAction; 847 this.renderer.setAttribute(t, "sitecoreid", s.sitecoreId); 848 let o = !!t.href.match(new RegExp(this.ctaHrefIndicator, "igm")), f = !!t.href.match(new RegExp(this.ctaEdsHrefIndicator, "igm")), L = !!t.href.match(new RegExp(this.ctaPatHrefIndicator, "igm")), dt = !!t.href.match(new RegExp(this.ctaCloseHrefIndicator, "igm")); 849 if (dt) this.action.emit(new R(x.hideRtms)); 850 else if (!s.offerId && (!t.getAttribute("data-eds-event-id") || t.getAttribute("data-eds-event-id") === "[empty]")) this.setElementIsHidden(t, !0); 851 else if (o) t.href = "javascript:void(0)", t.classList.add("send", "ctabutton"), this.handleBonusCtaMessage(t); 852 else if (f || L) { 853 this.currentOfferId = t.getAttribute("data-eds-event-id") || s.offerId, this.setElementIsDisable(t, !0); 854 let D = L ? G.PROMOS : G.EDS; 855 this.offersResourceService.getStatus(D, this.currentOfferId).subscribe({ 856 next: (ht) => { 857 ht.status ? this.handleEdsMessage(t, ht.status, D) : this.handleMessage(t, D); 858 }, 859 error: () => { 860 this.handleMessage(t, D); 861 } 862 }); 863 } else t.href?.indexOf("javascript:void(0)") < 0 && this.linksClickListeners.push(this.renderer.listen(t, M.Click, (D) => { 864 this.action.emit(new R(x.hideRtms)), this.ctaClickEventHandler(D, t); 865 })); 866 (o || f || L || dt) && (t.href = "javascript:void(0)"); 867 } 868 handleMessage(t, s) { 869 this.setElementIsHidden(t, !1), this.setElementIsDisable(t, !1), t[this.unlistenClaimCtaKey] = this.renderer.listen(t, "click", (o) => { 870 o.stopPropagation(), this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClick(this.TrackCl
870ickData(t, t.href)), this.claimCta(t, s); 871 }), this.linksClickListeners.push(t[this.unlistenClaimCtaKey]); 872 } 873 handleEdsMessage(t, s, o) { 874 switch (this.setElementIsHidden(t, !1), this.setElementIsDisable(t, !1), s) { 875 case C.OFFERED: 876 this.handleMessage(t, o); 877 break; 878 case C.NOTOFFERED: 879 case C.NOT_OFFERED: 880 this.setElementIsDisable(t, !0), this.setTextFormAttr(t, "data-eds-message-not-offered", this.rtmsCtaActionMessages?.NotEligible); 881 break; 882 case C.EXPIRED: 883 this.setElementIsDisable(t, !0), this.setTextFormAttr(t, "data-eds-message-expired", this.rtmsCtaActionMessages?.Expired); 884 break; 885 case C.OPTEDIN: 886 case C.OPTED_IN: 887 this.setElementIsDisable(t, !0), this.setTextFormAttr(t, "data-eds-message-opted-in", this.rtmsCtaActionMessages?.YouHaveOptedIn); 888 break; 889 case C.OPTEDOUT: 890 case C.OPTED_OUT: 891 this.setElementIsDisable(t, !0), this.setTextFormAttr(t, "data-eds-message-opted-out", this.rtmsCtaActionMessages?.YouHaveOptedOut); 892 break; 893 case C.INVALID: 894 this.setElementIsDisable(t, !0); 895 break; 896 case C.NO_OFFER: 897 this.setElementIsHidden(t, !0); 898 break; 899 default: this.setElementIsDisable(t, !0); 900 } 901 } 902 setTextFormAttr(t, s, o) { 903 t.getAttribute(s) && t.getAttribute(s) !== "[empty]" ? this.renderer.setProperty(t, "innerText", t.getAttribute(s)) : this.renderer.setProperty(t, "innerText", o); 904 } 905 handleBonusCtaMessage(t) { 906 let s; 907 switch (this.rtmsCtaAction.bonusSourceStatus) { 908 case C.OFFER_NEW: 909 s = this.renderer.listen(t, M.Click, (o) => { 910 o.stopPropagation(), this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClick(this.TrackClickData(t, t.href)), s?.(), this.claimBonusOffer(t); 911 }); 912 break; 913 case C.OFFER_TNC_ACCEPTED: 914 s = this.renderer.listen(t, M.Click, (o) => { 915 o.stopPropagation(), this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClick(this.TrackClickData(t, t.href)), s?.(), this.goToOrReturnCashierUrlStrategy(this.rtmsCtaAction.bonusCode); 916 }), this.renderer.setProperty(t, "innerText", this.rtmsCtaActionMessages?.DepositNow); 917 break; 918 case C.OFFER_CLAIMED: 919 this.setElementIsDisable(t, !0), this.renderer.setProperty(t, "innerText", this.rtmsCtaActionMessages?.Claimed); 920 break; 921 case C.OFFER_DROPPED: 922 case C.OFFER_EXPIRED: 923 this.setElementIsDisable(t, !0), this.renderer.setProperty(t, "innerHTML", this.rtmsCtaActionMessages?.Expired); 924 break; 925 case C.NO_OFFER: this.setElementIsHidden(t, !0); 926 } 927 s && this.linksClickListeners.push(s); 928 } 929 claimCta(t, s) { 930 this.setElementIsDisable(t, !0); 931 let o = t.getAttribute("data-eds-event-id") || this.rtmsCtaAction.offerId; 932 this.offersResourceService.updateStatus(s, o).subscribe({ 933 next: (f) => { 934 if (s !== this.rtmsCtaActionMessages?.cta && this.rtmsCtaAction.isNoDepositBonus && this.action.emit(new R(x.claimOfferSuccess, f)), f.status === C.OPTED_IN) { 935 let L = [t]; 936 this.renderer.removeAttribute(t, "disabled"), this.onClaimCtaSuccess(L); 937 } 938 }, 939 error: (f) => nt(f) 940 }); 941 } 942 claimBonusOffer(t) { 943 this.setElementIsDisable(t, !0); 944 let s = t.getAttribute("data-eds-event-id") || this.rtmsCtaAction.offerId; 945 this.offersResourceService.updateStatus(G.BONUSES, s).subscribe({ 946 next: (o) => { 947 if (G.BONUSES !== this.rtmsCtaActionMessages?.cta && (this.rtmsCtaAction.isNoDepositBonus || this.rtmsCtaAction.content && this.rtmsCtaAction.content.useRewardsOverlay) && this.action.emit(new R(x.claimOfferSuccess, o)), o.status === C.OFFER_CLAIMED) { 948 let f = [t]; 949 this.renderer.removeAttribute(t, "disabled"), this.contentItem.nativeElement.querySelectorAll("a.DeclineOfferButton")[0]?.setAttribute("disabled", "disabled"), this.onClaimCtaSuccess(f); 950 } 951 }, 952 error: (o) => nt(o) 953 }); 954 } 955 onClaimCtaSuccess(t) { 956 for (let s = 0; s < t.length; s++) { 957 let o = t[s]; 958 this.rtmsCtaAction.messageType === j.BONUS_OFFER && this.rtmsCtaAction.isNoDepositBonus ? this.renderer.setProperty(o, "innerText", this.rtmsCtaActionMessages?.Claimed) : o && !this.rtmsCtaAction.isNoDepositBonus && this.rtmsCtaAction.messageType === j.BONUS_OFFER ? (this.goToOrReturnCashierUrlStrategy(this.rtmsCtaAction.bonusCode), this.setElementIsDisable(o, !1)) : o && this.rtmsCtaAction.messageType === j.EDS_OFFER ? this.setTextFormAttr(o, "data-eds-message-opted-in", this.rtmsCtaActionMessages?.YouHaveOptedIn) : this.renderer.setProperty(o, "innerText", this.rtmsCtaActionMessages?.YouHaveOptedIn), this.renderer.setAttribute(o, "disabled", "disabled"); 959 } 960 } 961 goToOrReturnCashierUrlStrategy(t) { 962 this.cashierService.goToCashierDeposit({ queryParameters: { bonusCodeForPrefill: t } }); 963 } 964 setElementIsDisable(t, s) { 965 s ? this.renderer.setAttribute(t, "disabled", "disabled") : this.renderer.removeAttribute(t, "disabled"); 966 } 967 setElementIsHidden(t, s) { 968 this.renderer.setStyle(t, "display", s ? "none" : ""); 969 } 970 bindCashierLinks(t) { 971 t.nativeElement.querySelectorAll("a[class*=\"btn-cashier\"]").forEach((s) => { 972 this.linksClickListeners.push(this.renderer.listen(s, M.Click, (o) => { 973 o.stopPropagation(), o.preventDefault(), s.href && (this.action.emit(new R(x.hideRtms)), this.navigationService.goTo(s.href)); 974 })); 975 }); 976 } 977 ctaClickEventHandler(t, s) { 978 return Q(this, null, function* () { 979 t.stopPropagation(), t.preventDefault(), yield this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClick(this.TrackCl
979ickData(s, s.href)), this.navigationService.goTo(s.href); 980 }); 981 } 982 generalButtonClickEventHandler(t) { 983 return Q(this, null, function* () { 984 t.stopPropagation(); 985 let s = this.contentItem.nativeElement.querySelector("a")?.href; 986 s && (yield this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClick(this.TrackClickData(this.contentItem.nativeElement, s)), this.navigationService.goTo(s)); 987 }); 988 } 989 }; 990 return e.ɵfac = function(i) { 991 return new (i || e)(); 992 }, e.ɵcmp = k({ 993 type: e, 994 selectors: [["vn-rtms-cta-action"]], 995 viewQuery: function(i, t) { 996 if (i & 1 && vt(_t, 7), i & 2) { 997 let s; 998 et(s = tt()) && (t.contentItem = s.first); 999 } 1000 }, 1001 inputs: { 1002 rtmsCtaAction: "rtmsCtaAction", 1003 rtmsCtaActionMessages: "rtmsCtaActionMessages", 1004 content: "content", 1005 rtmsType: "rtmsType", 1006 rtmsCtaContentType: "rtmsCtaContentType" 1007 }, 1008 outputs: { action: "action" }, 1009 features: [gt], 1010 ngContentSelectors: Rt, 1011 decls: 3, 1012 vars: 0, 1013 consts: [["contentItem", ""], [1, "rtms-cta-action-container"]], 1014 template: function(i, t) { 1015 i & 1 && (pe(), ae(0), ce(1, "div", 1, 0)); 1016 }, 1017 encapsulation: 2, 1018 changeDetection: 1 1019 }), e; 1020 })(), Dt = (e, i) => ({ 1021 slidesPerView: e, 1022 navigation: i 1023 }), Ht = (() => { 1024 let e = class extends I { 1025 constructor() { 1026 super(), this.slidesPerView = 3, this.arrows = !0; 1027 } 1028 }; 1029 return e.ɵfac = function(i) { 1030 return new (i || e)(); 1031 }, e.ɵcmp = k({ 1032 type: e, 1033 selectors: [["vn-rtms-desktop-games-locked-list"]], 1034 features: [_], 1035 decls: 5, 1036 vars: 3, 1037 consts: [ 1038 [ 1039 1, 1040 "bcms-games-container", 1041 "mobile", 1042 "bcms-padding", 1043 3, 1044 "hidden" 1045 ], 1046 [1, "bcms-games-wrapper"], 1047 [ 1048 1, 1049 "bcms-games", 1050 3, 1051 "hidden" 1052 ], 1053 [ 1054 1, 1055 "bcms-games-img-container", 1056 "no-slider" 1057 ], 1058 [ 1059 "swiperClass", 1060 "bcms-games-img-container", 1061 3, 1062 "swiperOptions" 1063 ], 1064 [1, "bcms-single-game-container"], 1065 [ 1066 1, 1067 "bcms-game-img-link", 1068 "dh" 1069 ], 1070 [1, "bcms-game-locked"], 1071 [ 1072 "name", 1073 "theme-locked", 1074 "extraClass", 1075 "ui-icon ui-icon-size-xl d-flex justify-content-center align-items-center" 1076 ], 1077 [ 1078 "imageClass", 1079 "bcms-game-img", 1080 3, 1081 "src", 1082 "alt", 1083 "width", 1084 "height" 1085 ], 1086 [1, "swiper-slide"] 1087 ], 1088 template: function(i, t) { 1089 i & 1 && (a(0, "div", 0)(1, "div", 1)(2, "div", 2), p(3, vs, 3, 0, "div", 3)(4, bs, 3, 4, "vn-swiper", 4), r()()()), i & 2 && (l("hidden", t.message.desktopGames.length === 0 && !t.message.isAllDesktopGames), n(2), l("hidden", t.message.desktopGames.length === 0), n(), h(t.message.desktopGames.length <= 3 ? 3 : 4)); 1090 }, 1091 dependencies: [ 1092 X, 1093 O, 1094 P 1095 ], 1096 encapsulation: 2, 1097 changeDetection: 1 1098 }), e; 1099 })(), Mt = (e, i) => ({ 1100 slidesPerView: e, 1101 navigation: i 1102 }), Pt = (() => { 1103 let e = class extends I { 1104 constructor() { 1105 super(), this.slidesPerView = 3, this.arrows = !0; 1106 } 1107 }; 1108 return e.ɵfac = function(i) { 1109 return new (i || e)(); 1110 }, e.ɵcmp = k({ 1111 type: e, 1112 selectors: [["vn-rtms-desktop-games-unlocked-list"]], 1113 features: [_], 1114 decls: 5, 1115 vars: 3, 1116 consts: [ 1117 [ 1118 1, 1119 "bcms-games-container", 1120 "mobile", 1121 "bcms-padding", 1122 3, 1123 "hidden" 1124 ], 1125 [1, "bcms-games-wrapper"], 1126 [ 1127 1, 1128 "bcms-games", 1129 3, 1130 "hidden" 1131 ], 1132 [ 1133 1, 1134 "bcms-games-img-container", 1135 "no-slider" 1136 ], 1137 [ 1138 "swiperClass", 1139 "bcms-games-img-container", 1140 3, 1141 "swiperOptions" 1142 ], 1143 [1, "bcms-single-game-container"], 1144 [ 1145 1, 1146 "bcms-game-img-link", 1147 "dh", 1148 3, 1149 "click" 1150 ], 1151 [ 1152 "imageClass", 1153 "bcms-game-img", 1154 3, 1155 "src", 1156 "alt", 1157 "width", 1158 "height" 1159 ], 1160 [1, "swiper-slide"] 1161 ], 1162 template: function(i, t) { 1163 i & 1 && (a(0, "div", 0)(1, "div", 1)(2, "div", 2), p(3, ys, 3, 0, "div", 3)(4, ks, 3, 4, "vn-swiper", 4), r()()()), i & 2 && (l("hidden", t.message.desktopGames.length === 0 && !t.message.isAllDesktopGames), n(2), l("hidden", t.message.desktopGames.length === 0), n(), h(t.message.desktopGames.length <= 3 ? 3 : 4)); 1164 }, 1165 dependencies: [X, O], 1166 encapsulation: 2, 1167 changeDetection: 1 1168 }), e; 1169 })(), Lt = (e) => ({ slidesPerView: e }), Ft = (() => { 1170 let e = class extends I { 1171 constructor() { 1172 super(), this.slidesPerView = 3; 1173 } 1174 }; 1175 return e.ɵfac = function(i) { 1176 return new (i || e)(); 1177 }, e.ɵcmp = k({ 1178 type: e, 1179 selectors: [["vn-rtms-mobile-games-locked-list"]], 1180 features: [_], 1181 decls: 2, 1182 vars: 2, 1183 consts: [ 1184 [ 1185 1, 1186 "bcms-games-container", 1187 "mobile", 1188 3, 1189 "hidden" 1190 ], 1191 [1, "bcms-games-wrapper"], 1192 [ 1193 1, 1194 "scrollable-games", 1195 "top-game-section", 1196 "bcms-games", 1197 3, 1198 "hidden" 1199 ], 1200 [ 1201 1, 1202 "bcms-games-img-container", 1203 "no-slider" 1204 ], 1205 [ 1206 "swiperClass", 1207 "bcms-games-img-container", 1208 3, 1209 "swiperOptions" 1210 ], 1211 [1, "bcms-single-game-container"], 1212 [ 1213 1, 1214 "bcms-game-img-link", 1215 "dh" 1216 ], 1217 [1, "bcms-game-locked"], 1218 [ 1219 "name", 1220 "theme-locked", 1221 "extraClass", 1222 "ui-icon ui-icon-size-xl d-flex justify-content-center align-items-center" 1223 ], 1224 [ 1225 "imageClass", 1226 "bcms-game-img", 1227 3, 1228 "src", 1229 "alt", 1230 "width", 1231 "height" 1232 ], 1233 [1, "swiper-slide"] 1234 ], 1235 template: function(i, t) { 1236 i & 1 && (a(0, "div", 0), p(1, Es, 4, 2, "div", 1), r()), i & 2 && (l("hidden", t.message.mobileGames.length === 0 && !t.message.isAllMobileGames), n(), h(t.isOfferClaimed ? -1 : 1)); 1237 }, 1238 dependencies: [ 1239 X, 1240 O, 1241 P 1242 ], 1243 encapsulation: 2, 1244 changeDetection: 1 1245 }), e; 1246 })(), Bt = (e) => ({ slidesPerView: e }), zt = (() => { 1247 let e = class extends I { 1248 constructor() { 1249 super(), this.slidesPerView = 3; 1250 } 1251 }; 1252 return e.ɵfac = function(i) { 1253 return new (i || e)(); 1254 }, e.ɵcmp = k({ 1255 type: e, 1256 selectors: [["vn-rtms-mobile-games-unlocked-list"]], 1257 features: [_], 1258 decls: 5, 1259 vars: 3, 1260 consts: [ 1261 [ 1262 1, 1263 "bcms-games-container", 1264 "mobile", 1265 3, 1266 "hidden" 1267 ], 1268 [1, "bcms-games-wrapper"], 1269 [ 1270 1, 1271 "scrollable-games", 1272 "top-game-section", 1273 "bcms-games", 1274 3, 1275 "hidden" 1276 ], 1277 [ 1278 1, 1279 "bcms-games-img-container", 1280 "no-slider" 1281 ], 1282 [ 1283 "swiperClass", 1284 "bcms-games-img-container", 1285 3, 1286 "swiperOptions" 1287 ], 1288 [1, "bcms-single-game-container"], 1289 [ 1290 1, 1291 "bcms-game-img-link", 1292 "dh", 1293 3, 1294 "click" 1295 ], 1296 [ 1297 "imageClass", 1298 "bcms-game-img", 1299 3, 1300 "src", 1301 "alt", 1302 "width", 1303 "height" 1304 ], 1305 [1, "swiper-slide"] 1306 ], 1307 template: function(i, t) { 1308 i & 1 && (a(0, "div", 0)(1, "div", 1)(2, "div", 2), p(3, Os, 3, 0, "div", 3)(4, _s, 3, 3, "vn-swiper", 4), r()()()), i & 2 && (l("hidden", t.message.mobileGames.length === 0 && !t.message.isAllMobileGames), n(2), l("hidden", t.message.mobileGames.length === 0), n(), h(t.message.mobileGames.length <= 3 ? 3 : 4)); 1309 }, 1310 dependencies: [X, O], 1311 encapsulation: 2, 1312 changeDetection: 1 1313 }), e; 1314 })(), Gt = (() => { 1315 let e = class extends I { 1316 constructor() { 1317 super(...arguments), this.deviceService = m(xt), this.HeaderType = ct, this.RtmsType = y; 1318 } 1319 ngOnInit() { 1320 this.isMobile = this.deviceService.isMobile; 1321 } 1322 }; 1323 return e.ɵfac = (() => { 1324 let i; 1325 return function(t) { 1326 return (i || (i = pt(e)))(t || e); 1327 }; 1328 })(), e.ɵcmp = k({ 1329 type: e, 1330 selectors: [["vn-rtms-custom-overlay"]], 1331 features: [_], 1332 decls: 18, 1333 vars: 17, 1334 consts: [ 1335 [1, "generic-modal-title"], 1336 [1, "header-ctrl-wrapper"], 1337 [ 1338 1, 1339 "header-ctrl", 1340 "d-flex", 1341 "justify-content-between", 1342 "align-items-center" 1343 ], 1344 [ 1345 1, 1346 "header-ctrl-txt", 1347 "text-truncate", 1348 3, 1349 "innerHtml" 1350 ], 1351 [1, "header-ctrl-r"], 1352 [1, "generic-modal-content-wrapper"], 1353 [1, "generic-modal-content"], 1354 [1, "generic-modal-disclaimer"], 1355 [1, "generic-modal-overlay-content"], 1356 [ 1357 1, 1358 "bcms-item-title", 1359 3, 1360 "innerHtml" 1361 ], 1362 [ 1363 "rtmsCtaContentType", 1364 "DESCRIPTION", 1365 1, 1366 "bcms-item-description", 1367 3, 1368 "action", 1369 "content", 1370 "rtmsCtaAction", 1371 "rtmsCtaActionMessages", 1372 "rtmsType" 1373 ], 1374 [1, "generic-modal-tc"], 1375 [1, "generic-modal-actions"], 1376 [ 1377 1, 1378 "header-ctrl-r", 1379 3, 1380 "click" 1381 ], 1382 [ 1383 "name", 1384 "theme-ex", 1385 "extraClass", 1386 "ui-icon ui-icon-size-lg ui-close" 1387 ], 1388 [ 1389 3, 1390 "textClass", 1391 "src", 1392 "intro", 1393 "title", 1394 "subtitle", 1395 "titleFontSize", 1396 "textAlign" 1397 ], 1398 [ 1399 1, 1400 "generic-modal-disclaimer-content", 1401 3, 1402 "innerHtml" 1403 ], 1404 [ 1405 3, 1406 "content", 1407 "message" 1408 ], 1409 [ 1410 1, 1411 "generic-modal-tc-header", 1412 "d-flex", 1413 "align-items-center", 1414 "justify-content-between", 1415 3, 1416 "click" 1417 ], 1418 [ 1419 "name", 1420 "theme-up", 1421 "extraClass", 1422 "toggle-tnc-icon", 1423 "size", 1424 "16" 1425 ], 1426 [ 1427 "name", 1428 "theme-down", 1429 "extraClass", 1430 "toggle-tnc-icon", 1431 "size", 1432 "16" 1433 ], 1434 [ 1435 1, 1436 "generic-modal-tc-body", 1437 3, 1438 "innerHtml" 1439 ], 1440 [ 1441 "rtmsCtaContentType", 1442 "CTA", 1443 1, 1444 "bcms-cta", 1445 3, 1446 "action", 1447 "content", 1448 "rtmsCtaAction", 1449 "rtmsCtaActionMessages", 1450 "rtmsType" 1451 ] 1452 ], 1453 template: function(i, t) { 1454 if (i & 1 && (a(0, "div", 0)(1, "div", 1)(2, "div", 2), d(3, "div", 3), A(4, "trustAsHtml"), p(5, Rs, 2, 0, "div", 4), r()()(), a(6, "div", 5)(7, "div", 6), p(8, Hs, 5, 11, "div", 7), a(9, "div", 8), d(10, "div", 9), A(11, "trustAsHtml"), a(12, "vn-rtms-cta-action", 10), g("action", function(s) { 1455 return t.rtmsCtaActions(s); 1456 }), r(), p(13, Ls, 3, 1, "div")(14, zs, 3, 1, "div"), r()()(), p(15, js, 8, 5, "div", 11), p(16, Vs, 2, 4, "div", 12)(17, Us, 2, 4, "div", 12)), i & 2) { 1457 let s; 1458 n(3), B("brand-logo", t.message.content.overlayHeaderType === t.HeaderType.LOGO), l("innerHtml", E(4, 13, t.headerTitle), T), n(2), h(t.message.content.restrictedOverlay ? -1 : 5), n(3), h((s = t.message.content) ? 8 : -1, s), n(2), l("innerHtml", E(11, 15, t.title), T), n(2), l("content", t.description)("rtmsCtaAction", t.message)("rtmsCtaActionMessages", t.content.messages)("rtmsType", t.RtmsType.OVERLAY), n(), h(t.isOfferClaimed ? 13 : 14), n(2), h(t.message.isShowTnc ? 15 :
1458-1), n(), h(t.isOfferClaimed ? 16 : 17); 1459 } 1460 }, 1461 dependencies: [ 1462 J, 1463 O, 1464 Ht, 1465 Pt, 1466 Ft, 1467 zt, 1468 P, 1469 rt 1470 ], 1471 encapsulation: 2, 1472 changeDetection: 1 1473 }), e; 1474 })(), $t = ["modalContentWrapperEl"], jt = ["modalContentEl"], Vt = (() => { 1475 let e = class extends I { 1476 constructor() { 1477 super(), this.HeaderType = ct, this.RtmsType = y; 1478 } 1479 get isShadowOnActions() { 1480 return this.modalContentEl?.nativeElement.offsetHeight > this.modalContentWrapperEl?.nativeElement.offsetHeight; 1481 } 1482 }; 1483 return e.ɵfac = function(i) { 1484 return new (i || e)(); 1485 }, e.ɵcmp = k({ 1486 type: e, 1487 selectors: [["vn-rtms-overlay"]], 1488 viewQuery: function(i, t) { 1489 if (i & 1 && vt($t, 5)(jt, 5), i & 2) { 1490 let s; 1491 et(s = tt()) && (t.modalContentWrapperEl = s.first), et(s = tt()) && (t.modalContentEl = s.first); 1492 } 1493 }, 1494 features: [_], 1495 decls: 16, 1496 vars: 18, 1497 consts: [ 1498 ["modalContentWrapperEl", ""], 1499 ["modalContentEl", ""], 1500 [1, "generic-modal-title"], 1501 [1, "header-ctrl-wrapper"], 1502 [ 1503 1, 1504 "header-ctrl", 1505 "d-flex", 1506 "justify-content-between", 1507 "align-items-center" 1508 ], 1509 [ 1510 1, 1511 "header-ctrl-txt", 1512 "text-truncate", 1513 3, 1514 "innerHtml" 1515 ], 1516 [1, "header-ctrl-r"], 1517 [1, "generic-modal-content-wrapper"], 1518 [1, "generic-modal-content"], 1519 [1, "generic-modal-disclaimer"], 1520 [1, "generic-modal-overlay-content"], 1521 [ 1522 "rtmsCtaContentType", 1523 "DESCRIPTION", 1524 1, 1525 "player-inbox-item-description", 1526 3, 1527 "action", 1528 "content", 1529 "rtmsCtaAction", 1530 "rtmsCtaActionMessages", 1531 "rtmsType" 1532 ], 1533 [ 1534 1, 1535 "generic-modal-tc", 1536 3, 1537 "with-shadow" 1538 ], 1539 [1, "generic-modal-actions"], 1540 [ 1541 "rtmsCtaContentType", 1542 "CTA", 1543 1, 1544 "player-inbox-item-cta", 1545 "ctaaction", 1546 3, 1547 "action", 1548 "content", 1549 "rtmsCtaAction", 1550 "rtmsCtaActionMessages", 1551 "rtmsType" 1552 ], 1553 [ 1554 1, 1555 "header-ctrl-r", 1556 3, 1557 "click" 1558 ], 1559 [ 1560 "name", 1561 "theme-ex", 1562 "extraClass", 1563 "ui-icon ui-icon-size-lg ui-close" 1564 ], 1565 [ 1566 3, 1567 "textClass", 1568 "src", 1569 "intro", 1570 "title", 1571 "subtitle", 1572 "titleFontSize", 1573 "textAlign" 1574 ], 1575 [ 1576 1, 1577 "generic-modal-disclaimer-content", 1578 3, 1579 "innerHtml" 1580 ], 1581 [1, "generic-modal-tc"], 1582 [ 1583 1, 1584 "generic-modal-tc-header", 1585 "d-flex", 1586 "align-items-center", 1587 "justify-content-between", 1588 3, 1589 "click" 1590 ], 1591 [ 1592 "name", 1593 "theme-up", 1594 "extraClass", 1595 "toggle-tnc-icon", 1596 "size", 1597 "16" 1598 ], 1599 [ 1600 "name", 1601 "theme-down", 1602 "extraClass", 1603 "toggle-tnc-icon", 1604 "size", 1605 "16" 1606 ], 1607 [ 1608 1, 1609 "generic-modal-tc-body", 1610 3, 1611 "innerHtml" 1612 ] 1613 ], 1614 template: function(i, t) { 1615 if (i & 1 && (a(0, "div", 2)(1, "div", 3)(2, "div", 4), d(3, "div", 5), A(4, "trustAsHtml"), p(5, Ys, 2, 0, "div", 6), r()()(), a(6, "div", 7, 0)(8, "div", 8, 1), p(10, Xs, 3, 8, "div", 9), a(11, "div", 10)(12, "vn-rtms-cta-action", 11), g("action", function(s) { 1616 return t.rtmsCtaActions(s); 1617 }), r()()()(), p(13, Qs, 8, 7, "div", 12), a(14, "div", 13)(15, "vn-rtms-cta-action", 14), g("action", function(s) { 1618 return t.rtmsCtaActions(s); 1619 }), r()()), i & 2) { 1620 let s; 1621 n(3), B("brand-logo", t.message.content.overlayHeaderType === t.HeaderType.LOGO), l("innerHtml", E(4, 16, t.message.content.overlayTitle), T), n(2), h(t.message.content.restrictedOverlay ? -1 : 5), n(5), h((s = t.message.content) ? 10 : -1, s), n(2), l("content", t.message.content.overlayDescription)("rtmsCtaAction", t.message)("rtmsCtaActionMessages", t.content.messages)("rtmsType", t.RtmsType.OVERLAY), n(), h(t.message.isShowTnc ? 13 : -1), n(), B("with-shadow", t.isShadowOnActions && !t.message.isShowTnc), n(), l("content", t.message.content.overlayCallToAction)("rtmsCtaAction", t.message)("rtmsCtaActionMessages", t.content.messages)("rtmsType", t.RtmsType.OVERLAY); 1622 } 1623 }, 1624 dependencies: [ 1625 J, 1626 O, 1627 P, 1628 rt 1629 ], 1630 encapsulation: 2, 1631 changeDetection: 1 1632 }), e; 1633 })(), Ut = (e, i) => ({ 1634 "tc-active": e, 1635 "tc-closed": i 1636 }), Yt = (() => { 1637 let e = class { 1638 constructor() { 1639 this.overlayRef = m(q), this.rtmsCommonService = m(ot), this.trackingService = m(St), this.rtmsOverlayTrackingService = m(W), this.appInfo = m(at), this.tacActive = !1, this.HeaderType = ct; 1640 } 1641 ngOnInit() { 1642 this.currentMessage = this.rtmsCommonService.rtmsMessage, this.messageContent = this.rtmsCommonService.currentNotificationMessage, this.sitecoreContent = this.rtmsCommonService.rtmsCommonContent, this.currentMessage && this.trackingService.triggerEvent(z.MessageView, this.currentMessage.eventInfo); 1643 } 1644 toggleTaC(t) { 1645 let s = t ? "t&c - expand" : "t&c - hide"; 1646 this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClick({ 1647 campaignId: this.messageContent.campaignId, 1648 eventDetails: s, 1649 locationEvent: this.messageContent.content.overlayTitle, 1650 positionEvent: this.messageContent.messageType, 1651 product: this.appInfo.product, 1652 sitecoreTemplateid: this.messageContent.sitecoreId, 1653 urlClicked: "not applicable", 1654 labelEvent: y.OVERLAY, 1655 promoIntent: "not applicable" 1656 }), this.tacActive = t; 1657 } 1658 close() { 1659 this.currentMessage && this.trackingService.triggerEvent(z.AMessageClose, this.currentMessage.eventInfo), this.overlayRef.detach(), this.rtmsCommonService.nextMessage(); 1660 } 1661 }; 1662 return e.ɵfac = function(i) { 1663 return new (i || e)(); 1664 }, e.ɵcmp = k({ 1665 type: e, 1666 selectors: [["vn-rtms-overlay-container"]], 1667 decls: 4, 1668 vars: 14, 1669 consts: [ 1670 [ 1671 1, 1672 "generic-modal-wrapper", 1673 3, 1674 "ngClass" 1675 ], 1676 [ 1677 1, 1678 "rtms-content", 1679 3, 1680 "message", 1681 "content" 1682 ], 1683 [ 1684 1, 1685 "rtms-content", 1686 3, 1687 "tacExpandedEvent", 1688 "closeEvent", 1689 "message", 1690 "content" 1691 ] 1692 ], 1693 template: function(i, t) { 1694 i & 1 && (a(0, "div", 0), p(1, Ks, 1, 2, "vn-rtms-overlay", 1), p(2, Zs, 1, 2, "vn-rtms-custom-overlay", 1), p(3, ti, 1, 2, "vn-rtms-bonus-teaser", 1), r()), i & 2 && (B("actions-in-row", !t.messageContent.isShowTnc)("actions-with-tc", t.messageContent.isShowTnc)("gm-overlay-title", t.messageContent.content.overlayHeaderType === t.HeaderType.TRANSPARENT), l("ngClass", K(11, Ut, t.tacActive, !t.tacActive)), ge("sitecoreId", t.currentMessage?.payload?.baseTemplateId), n(), h(!t.messageContent.content.useRewardsOverlay && !t.messageContent.isBonusTeaser ? 1 : -1), n(), h(t.messageContent.content.useRewardsOverlay && !t.messageContent.isBonusTeaser ? 2 : -1), n(), h(t.messageContent.isBonusTeaser ? 3 : -1)); 1695 }, 1696 dependencies: [ 1697 Gt, 1698 It, 1699 Vt, 1700 yt, 1701 Tt 1702 ], 1703 styles: [`@charset "UTF-8";.cdk-overlay-pane.vn-rtms-overlay-panel{max-width:375px}.cdk-overlay-pane.vn-rtms-overlay-panel .generic-modal-wrapper .rtms-content{display:flex;flex-direction:column;height:100%;max-height:inherit}.cdk-overlay-pane.vn-rtms-overlay-panel .generic-modal-wrapper img{width:100%}.cdk-overlay-pane.vn-rtms-overlay-panel .generic-modal-actions p{margin:0}.generic-modal-actions vn-rtms-cta-action,.generic-modal-actions .rtms-cta-action-container{display:flex;flex-grow:1;gap:var(--%NS%site-spacer);justify-content:center}.generic-modal-actions vn-rtms-cta-action .btn,.generic-modal-actions .rtms-cta-action-container .btn{flex-basis:50%}.generic-modal-actions vn-rtms-cta-action.clearfix:after,.generic-modal-actions .rtms-cta-action-container.clearfix:after{display:none}.generic-modal-content .bcms-games-container{transform:translate(0)}.generic-modal-content .bcms-games-container .bcms-games-img-container.no-slider{margin:0}.rtms-background{background:var(--%NS%rtms-modal-backdrop-bg);height:100%;inset:0 0 -1px;opacity:var(--%NS%rtms-modal-backdrop-opacity);position:fixed;width:100%;z-index:1051}#rtmsNotify .real-time-toast{background-color:var(--%NS%rtms-bg-light);border-radius:var(--%NS%rtms-toast-border-radius);
1703box-shadow:var(--%NS%rtms-box-shadow);color:var(--%NS%rtms-font-color-light);font-family:var(--%NS%theme-font-family-base);font-size:13px;height:80px;left:unset;margin:.5% auto 6px;max-width:294px;padding:0;position:fixed;right:5px;top:.5%;width:97%;z-index:1060}@media(max-width:599.98px){#rtmsNotify .real-time-toast{max-width:100%;min-width:265px}}#rtmsNotify .real-time-toast img{border-radius:5px;display:inline-block;height:58px;margin:calc(var(--%NS%site-spacer) * .7);object-fit:cover;object-position:top left;vertical-align:top;width:58px}#rtmsNotify .real-time-toast>div{display:inline-block;padding-top:calc(var(--%NS%site-spacer) * .7)}#rtmsNotify .real-time-toast div,#rtmsNotify .real-time-toast p,#rtmsNotify .real-time-toast span:not(.theme-ex){color:var(--%NS%rtms-font-color-light);font-family:var(--%NS%theme-font-family-base);font-size:13px;height:45px!important;line-height:17px;overflow:hidden;width:173px}#rtmsNotify .real-time-toast h1,#rtmsNotify .real-time-toast h2,#rtmsNotify .real-time-toast h3,#rtmsNotify .real-time-toast h4,#rtmsNotify .real-time-toast h5,#rtmsNotify .real-time-toast h6{--%NS%vn-menu-item-text-transform: uppercase;text-transform:var(--%NS%vn-menu-item-text-transform);font-family:var(--%NS%theme-font-family-base);font-size:13px;font-weight:700;left:80px;margin-bottom:0;position:absolute;top:20px}#rtmsNotify .real-time-toast.rtm-toast-top fast-svg.close-btn{display:block}#rtmsNotify .real-time-toast.rtm-toast-top fast-svg.close-btn svg{height:14px;width:14px}#rtmsNotify .real-time-toast [class*=ui-icon]{position:absolute;right:0;top:0}lh-rtms-layer-overlay,lh-rtms-layer-bonus-teaser{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.rtms-bonus-teaser-container{max-height:550px;overflow:hidden auto;-ms-overflow-style:none;scrollbar-width:none}.rtms-bonus-teaser-container::-webkit-scrollbar{display:none}.rtms-bonus-teaser-image{align-items:center;display:flex;justify-content:center;margin-bottom:var(--%NS%site-spacer-xl);overflow:hidden}.rtms-bonus-teaser-image .bonus-image{flex-shrink:0;min-height:100%;min-width:100%}
1703.rtms-bonus-teaser-content .bonus-teaser-text{padding:0 var(--%NS%site-spacer)}.real-time-popup{border-radius:var(--%NS%rtms-popup-border-radius);box-shadow:var(--%NS%rtms-modal-box-shadow);color:var(--%NS%rtms-color);font-family:var(--%NS%theme-font-family-base);margin:auto;max-width:420px;overflow:hidden;position:static;z-index:1060}@media(max-width:599.98px){.real-time-popup{height:100%;inset:0;max-width:none;position:fixed;width:100%}}.real-time-popup .close-btn-container{align-items:center;display:flex}.real-time-popup .close-btn-container .close-btn{margin-right:calc(var(--%NS%site-spacer-s) * -1)}.real-time-popup .player-inbox-item-title{font-family:var(--%NS%theme-font-family-base);font-size:var(--%NS%rtms-inbox-item-font-size);font-weight:var(--%NS%rtms-inbox-item-font-weight);line-height:var(--%NS%rtms-inbox-item-line-height);margin-bottom:var(--%NS%site-spacer)}.real-time-popup .text{padding:var(--%NS%site-spacer)}.real-time-popup .wrapper{-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;background-color:var(--%NS%rtms-bg-light);color:var(--%NS%rtms-font-color-light);height:420px;overflow:hidden;overflow-y:auto;padding:0}.real-time-popup .wrapper.bg-light{background-color:var(--%NS%rtms-bg-light)!important}@media(max-width:599.98px){.real-time-popup .wrapper{height:100%}}.real-time-popup .wrapper h1,.real-time-popup .wrapper h2,.real-time-popup .wrapper h3,.real-time-popup .wrapper h4,.real-time-popup .wrapper h5,.real-time-popup .wrapper h6{color:var(--%NS%rtms-font-color-light);font-size:1.25rem;font-weight:700;line-height:1.5rem;margin:0 0 var(--%NS%site-spacer-l) 0}.real-time-popup .wrapper ul li{color:var(--%NS%rtms-font-color-light);list-style:disc;margin-left:var(--%NS%site-spacer);padding-bottom:var(--%NS%site-spacer-s)}.real-time-popup img{width:100%}.real-time-popup p{color:var(--%NS%rtms-font-color-light);overflow:hidden}.real-time-popup .rtms-cta-block .btn+.btn{margin-left:var(--%NS%site-spacer)}.device-mobile-phone .real-time-popup{max-width:100%;top:0}.device-mobile-phone .real-time-popup .header-ctrl{padding-right:var(--%NS%site-spacer)}.device-mobile-phone .real-time-popup .wrapper{height:100vh;padding-bottom:var(--%NS%site-spacer-8xl)}.device-desktop .real-time-popup{box-shadow:none;position:fixed}.device-desktop .real-time-popup .header-ctrl{background-color:var(--%NS%rtms-popup-header-ctrl-bg)}.device-desktop .real-time-popup .wrapper{box-shadow:var(--%NS%rtms-modal-box-shadow)}lh-rtms-layer-custom-overlay{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.bcms{background:var(--%NS%bcms-bg);border-radius:var(--%NS%bcms-border-radius);box-shadow:var(--%NS%rtms-modal-box-shadow);color:var(--%NS%bcms-color);font-family:var(--%NS%theme-font-family-base);margin:auto;max-width:375px;overflow:hidden;position:fixed;z-index:1060}@media(max-width:599.98px){.bcms{height:100%;inset:0;max-width:none;position:fixed;width:100%}}.device-mobile-phone .bcms{height:100%;overflow:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.device-mobile-phone .bcms .bcms-header{position:sticky;top:0}.bcms-header{flex:0 0 auto}.bcms-container{background-color:var(--%NS%bcms-bg);flex:1 0 auto;margin-bottom:var(--%NS%site-spacer);max-height:550px;overflow:hidden auto}.bcms-container .rtms-cta-action-container p+ul,.bcms-container .rtms-cta-action-container p+ol{margin-top:var(--%NS%site-spacer-s)}.bcms-container .rtms-cta-action-container ul,.bcms-container .rtms-cta-action-container ol{text-align:left}@media(max-width:599.98px){.bcms-container{height:calc(100% - var(--%NS%site-spacer) - 56px - 58px);max-height:none;overflow-y:scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}}.bcms-banner{text-align:center}.bcms-banner-img{display:block;height:auto;margin-bottom:var(--%NS%site-spacer-xl);max-width:100%;width:auto}.bcms-item-title{font-size:28px;padding-bottom:var(--%NS%site-spacer-m)}.bcms-txt{font-size:14px;padding-bottom:var(--%NS%site-spacer-m)}.bcms-txt p{margin:0}.bcms-txt-tnc{font-size:9px}.bcms-txt-tnc p{font-size:inherit;line-height:inherit;margin:inherit}.bcms-toggle-tnc{color:var(--%NS%bcms-toggle-tnc-color);margin:var(--%NS%site-spacer-3xl) var(--%NS%site-spacer) 0 var(--%NS%site-spacer);position:relative;text-align:left}.bcms-toggle-tnc-caption{align-items:center;border-bottom:1px solid;border-top:1px solid;
1703display:flex;font-size:12px;justify-content:space-between;padding:var(--%NS%site-spacer) var(--%NS%site-spacer-s);text-transform:uppercase}.bcms-toggle-tnc-caption:hover{cursor:pointer}.bcms-toggle-tnc-caption .toggle-tnc-icon{font-size:8px;height:8px;margin-left:auto;width:8px}.bcms-toggle-tnc-details{font-size:12px;padding:var(--%NS%site-spacer) var(--%NS%site-spacer-s) 50px var(--%NS%site-spacer);position:relative}.bcms-toggle-tnc-fade{background:linear-gradient(to bottom,color-mix(in srgb,var(--%NS%color-black) 0%,transparent),var(--%NS%bcms-bg));bottom:0;display:block;height:100px;margin:-100px 0 0;pointer-events:none;position:sticky;width:100%}.bcms-games .vn-carousel .carousel-previous,.bcms-games .vn-carousel .carousel-next{background-color:var(--%NS%color-white);color:var(--%NS%color-black);font-size:8px;height:32px;padding:11px;width:32px}.bcms-games .vn-carousel .carousel-previous{transform:translateY(-25%) translate(-25%)}.bcms-games .vn-carousel .carousel-next{transform:translateY(-25%) translate(-75%)}.bcms-games-container{padding-top:var(--%NS%site-spacer);transform:translate(var(--%NS%site-spacer))}.bcms-games-img-container{display:flex;flex-flow:row nowrap}.bcms-games-img-container.no-slider{align-items:center;justify-content:center;margin:0 var(--%NS%site-spacer);transform:translate(-var(--%NS%site-spacer))}.bcms-games-img-container.no-slider .bcms-single-game-container:last-child{margin-right:0}.bcms-single-game-container{margin-right:var(--%NS%site-spacer-s)}.bcms-game-img-link{border-radius:var(--%NS%bcms-border-radius);display:block;height:100%;max-height:140px;max-width:140px;overflow:hidden;width:100%}.bcms-game-img-link:hover{cursor:pointer}.bcms-game-locked{position:relative}.bcms-game-locked .theme-locked{inset:0;margin:auto;position:absolute;background:color-mix(in srgb,var(--%NS%color-white) 60%,transparent);color:var(--%NS%bcms-game-locked-overlay-icon-color);height:100%;pointer-events:none;width:100%}.bcms-game-img{height:auto;max-width:140px;width:100%}.bcms-cta-container{background-color:var(--%NS%bcms-bg);flex:0 0 auto;padding-bottom:var(--%NS%site-spacer);position:relative;text-align:center}.bcms-cta-item .btn{margin:0 var(--%NS%site-spacer-s);max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rtms-bonus-button-section{margin:var(--%NS%site-spacer) 0;text-align:center}.rtms-bonus-button-section .btn-decline,.rtms-bonus-button-section .btn-accept{display:inline-block;margin:0 var(--%NS%site-spacer-s);max-width:50%;overflow:hidden}.bcms-banner-img-small .bcms-banner-img{display:block;height:86px;margin:var(--%NS%site-spacer-xl) auto var(--%NS%site-spacer-s)} 1704`], 1705 encapsulation: 2, 1706 changeDetection: 1 1707 }), e; 1708 })(), qt = ["toaster"], Xt = (() => { 1709 let e = class { 1710 constructor() { 1711 this.deviceService = m(xt), this.timer = m(Re), this.config = m($), this.elementRef = m(he), this.window = m(kt), this.gestureBuilder = m(ze), this.destroyRef = m(Y), this.renderer = m(ut), this.isMobile = this.deviceService.isMobile, this.onClose = V(), this.toasterElement = de("toaster"), this.swipe = (t) => { 1712 if (!this.isMobile || !this.toasterEl) return; 1713 let s = this.swipePercentage(t); 1714 this.renderer.setStyle(this.toasterEl, "transform", `translateX(${s}%)`); 1715 }, this.swipeEnd = (t) => { 1716 if (!this.isMobile || !this.toasterEl) return; 1717 let s = this.swipePercentage(t); 1718 if (Math.abs(s) > 30) { 1719 let o = t.deltaX > 0 ? 100 : -100, f = 100; 1720 this.toasterEl.animate([{ transform: `translateX(${o}%)` }], f), this.toastSwipeCloseTimeoutId = this.timer.setTimeout(() => this.close(t.srcEvent, this.notification.id), f); 1721 } else this.renderer.setStyle(this.toasterEl, "transform", "translateX(0)"); 1722 }, ne(() => { 1723 let t = this.toasterElement()?.nativeElement; 1724 if (!t || this.toasterEl) return; 1725 this.toasterEl = t; 1726 let s = this.gestureBuilder.buildGesture(t, { direction: 6 }); 1727 s.addEventListener("panmove", this.swipe), s.addEventListener("panend", this.swipeEnd), this.destroyRef.onDestroy(() => s.destroy()); 1728 }); 1729 } 1730 ngOnInit() { 1731 this.notification.content.toasterCloseAfterTimeout && (this.renderer.setStyle(this.elementRef.nativeElement, "--countdown-timer", `${this.config.toastShowTime}s`, me.DashCase), this.toastCloseTimeoutId = this.timer.setTimeoutOutsideAngularZone(() => this.onClose.emit(this.notification.id), this.config.toastShowTime * 1e3)); 1732 } 1733 ngOnDestroy() { 1734 this.timer.clearTimeout(this.toastCloseTimeoutId), this.timer.clearTimeout(this.toastSwipeCloseTimeoutId); 1735 } 1736 rtmsCtaActions(t, s) { 1737 t.type === x.hideRtms && this.onClose.emit(s); 1738 } 1739 close(t, s) { 1740 t.stopPropagation(), this.onClose.emit(s); 1741 } 1742 swipePercentage(t) { 1743 return 100 * t.deltaX / this.window.innerWidth; 1744 } 1745 }; 1746 return e.ɵfac = function(i) { 1747 return new (i || e)(); 1748 }, e.ɵcmp = k({ 1749 type: e, 1750 selectors: [["vn-rtms-toaster-item"]], 1751 viewQuery: function(i, t) { 1752 i & 1 && ue(t.toasterElement, qt, 5), i & 2 && le(); 1753 }, 1754 inputs: {
1755 notification: "notification", 1756 messagesContent: "messagesContent" 1757 }, 1758 outputs: { onClose: "onClose" }, 1759 decls: 13, 1760 vars: 9, 1761 consts: [ 1762 ["toaster", ""], 1763 [ 1764 1, 1765 "rtms-toast__container", 1766 3, 1767 "id" 1768 ], 1769 [ 1770 1, 1771 "rtms-toast__content", 1772 "d-flex" 1773 ], 1774 [ 1775 3, 1776 "imageClass", 1777 "textClass", 1778 "src" 1779 ], 1780 [ 1781 1, 1782 "header-terms-and-conditions", 1783 3, 1784 "innerHtml" 1785 ], 1786 [1, "rtms-toast__message"], 1787 [ 1788 1, 1789 "rtms-toast__title", 1790 3, 1791 "innerHtml" 1792 ], 1793 [ 1794 1, 1795 "rtms-toast-txt", 1796 3, 1797 "innerHtml" 1798 ], 1799 [ 1800 1, 1801 "btn", 1802 "btn-sm", 1803 "btn-link", 1804 "d-flex", 1805 "align-items-center" 1806 ], 1807 [ 1808 1, 1809 "rtms-toast__close", 1810 "d-flex", 1811 "flex-column", 1812 "align-items-center", 1813 "dh" 1814 ], 1815 ["name", "theme-ex"], 1816 [1, "radial-timer"], 1817 [ 1818 1, 1819 "rtms-toast__footer", 1820 "text-center" 1821 ], 1822 [ 1823 3, 1824 "action", 1825 "content", 1826 "rtmsCtaAction", 1827 "rtmsCtaActionMessages" 1828 ], 1829 [ 1830 "name", 1831 "theme-ex", 1832 3, 1833 "click" 1834 ], 1835 [ 1836 1, 1837 "radial-timer", 1838 3, 1839 "click" 1840 ], 1841 [ 1842 "name", 1843 "theme-ex", 1844 1, 1845 "radial-timer__close" 1846 ], 1847 [1, "radial-timer__time"], 1848 [ 1849 1, 1850 "btn", 1851 "btn-sm", 1852 "btn-primary", 1853 "rtms-toast__btn" 1854 ], 1855 [ 1856 1, 1857 "d-flex", 1858 "justify-content-end" 1859 ], 1860 [ 1861 1, 1862 "btn", 1863 "btn-sm", 1864 "btn-link", 1865 3, 1866 "innerHtml" 1867 ], 1868 [ 1869 1, 1870 "btn", 1871 "btn-sm", 1872 "btn-link" 1873 ], 1874 [ 1875 1, 1876 "btn", 1877 "btn-sm", 1878 "btn-link", 1879 3, 1880 "click", 1881 "innerHtml" 1882 ] 1883 ], 1884 template: function(i, t) { 1885 if (i & 1 && (a(0, "div", 1, 0)(2, "div", 2), p(3, ei, 1, 3, "vn-image", 3), p(4, si, 1, 1, "div", 4), a(5, "div", 5), d(6, "div", 6)(7, "div", 7), r(), p(8, ii, 2, 3, "div", 8), a(9, "div", 9), p(10, ni, 1, 0, "vn-icon", 10), p(11, ai, 3, 0, "div", 11), r()(), p(12, li, 5, 3, "div", 12), r()), i & 2) { 1886 let s; 1887 l("id", t.notification.id), n(3), h((s = t.notification.content) ? 3 : -1, s), n(), h(t.notification.content.headerTermsAndConditionsToaster ? 4 : -1), n(2), l("innerHtml", t.notification.content.toasterTitle, T), n(), l("innerHtml", t.notification.content.toasterDescription, T), n(), h(t.notification.content.toasterPrimaryGhostCallToAction && !t.notification.content.toasterCloseCallToActionLabel ? 8 : -1), n(2), h(t.notification.content.toasterCloseAfterTimeout ? -1 : 10), n(), h(t.notification.content.toasterCloseAfterTimeout ? 11 : -1), n(), h(t.notification.content.toasterCallToAction || t.notification.content.toasterPrimaryGhostCallToAction || t.notification.content.toasterCloseCallToActionLabel ? 12 : -1); 1888 } 1889 }, 1890 dependencies: [ 1891 O, 1892 J, 1893 P 1894 ], 1895 styles: [`@charset "UTF-8";.radial-timer{aspect-ratio:1;height:var(--%NS%radial-timer-height);position:relative}.radial-timer__close{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);font-size:var(--%NS%radial-timer-close-icon-font-size);line-height:1}.radial-timer__time{animation:rotate 10s linear infinite;background:conic-gradient(var(--%NS%radial-timer-fill-color) var(--%NS%radial-timer-circle-progress),var(--%NS%radial-timer-bg-color) 0);border-radius:50%;height:100%;mask:radial-gradient(circle,transparent var(--%NS%radial-timer-inner-boundary),var(--%NS%color-black) var(--%NS%radial-timer-outer-boundary));--%NS%webkit-mask: radial-gradient( circle, transparent var(--%NS%radial-timer-inner-boundary), support.$color-black var(--%NS%radial-timer-outer-boundary) )}@keyframes rotate{to{--%NS%radial-timer-circle-progress: 100%}} 1896`], 1897 encapsulation: 2, 1898 changeDetection: 1 1899 }), e; 1900 })(), Wt = (e) => ({ "rtms-toast-stack--closed": e }), Jt = (() => { 1901 let e = class { 1902 constructor() { 1903 this.overlayRef = m(q), this.rtmsConfig = m($), this.rtmsCommonService = m(ot), this.stacked = this.rtmsConfig.enableToastStacking, this.trackById = At("id"); 1904 } 1905 get toasterItems() { 1906 return this.rtmsCommonService.toasterList; 1907 } 1908 ngOnInit() { 1909 this.messagesContent = this.rtmsCommonService.rtmsCommonContent; 1910 } 1911 toggleStacking() { 1912 this.rtmsConfig.enableToastStacking && (this.stacked = !this.stacked); 1913 } 1914 close(t) { 1915 this.toasterItems.length == 1 && (this.overlayRef.detach(), this.rtmsCommonService.nextMessage()), this.rtmsCommonService.toasterList = this.toasterItems.filter((s) => s.id !== t); 1916 } 1917 }; 1918 return e.ɵfac = function(i) { 1919 return new (i || e)(); 1920 }, e.ɵcmp = k({ 1921 type: e, 1922 selectors: [["vn-rtms-toaster-container-overlay"]], 1923 decls: 4, 1924 vars: 3, 1925 consts: [ 1926 [ 1927 1, 1928 "toast-container", 1929 "rtms-toast", 1930 "toast-bottom-center", 1931 3, 1932 "click" 1933 ], 1934 [ 1935 1, 1936 "rtms-toast-stack", 1937 "dh", 1938 3, 1939 "ngClass" 1940 ], 1941 [ 1942 3, 1943 "notification", 1944 "messagesContent" 1945 ], 1946 [ 1947 3, 1948 "onClose", 1949 "notification", 1950 "messagesContent" 1951 ] 1952 ], 1953 template: function(i, t) { 1954 i & 1 && (a(0, "div", 0), g("click", function() { 1955 return t.toggleStacking(); 1956 }), a(1, "div", 1), S(2, mi, 1, 2, "vn-rtms-toaster-item", 2, t.trackById, !0), r()()), i & 2 && (n(), l("ngClass", it(1, Wt, t.stacked)), n(), w(t.toasterItems)); 1957 }, 1958 dependencies: [ 1959 Xt, 1960 yt, 1961 Tt 1962 ], 1963 styles: [`@charset "UTF-8";.rtms-toast{--%NS%rtms-wrapper-width: none;--%NS%rtms-item-width: none;--%NS%rtms-button-width: 100%;font-size:.875rem;max-width:var(--%NS%rtms-wrapper-width);pointer-events:auto}.rtms-toast__container{background-color:var(--%NS%rtms-card-bg-color);border-radius:var(--%NS%rtms-card-border-radius);
1963box-shadow:var(--%NS%rtms-card-box-shadow);color:var(--%NS%theme-body-txt);display:flex;flex-direction:column;margin:var(--%NS%toast-margin);max-width:var(--%NS%rtms-item-width);padding:var(--%NS%site-spacer);pointer-events:auto}.rtms-toast__message{flex:2}.rtms-toast__message p{font-size:inherit;line-height:inherit;margin:0}.rtms-toast__img{border-radius:4px;height:70px;margin-right:var(--%NS%site-spacer-s);width:70px}.rtms-toast__title{font-weight:700}.rtms-toast__close{align-self:flex-start;font-size:1.25rem;margin-left:var(--%NS%site-spacer-s)}.rtms-toast__btn{min-width:var(--%NS%rtms-button-width)}.rtms-toast__footer{margin-top:var(--%NS%site-spacer-m)}.rtms-toast-stack{z-index:1}.rtms-toast-stack--closed{position:relative}.rtms-toast-stack--closed>vn-rtms-toaster-item:not(:first-child){height:30px;left:0;opacity:.9;overflow:hidden;position:absolute;right:0;transform:translateY(-100%) scale(1);transition:background-color .15s ease,opacity .2s ease,transform .25s ease}.rtms-toast-stack--closed>vn-rtms-toaster-item:not(:first-child) .rtms-toast__content,.rtms-toast-stack--closed>vn-rtms-toaster-item:not(:first-child) .rtms-toast__footer{display:none}.rtms-toast-stack--closed>vn-rtms-toaster-item:nth-child(2){top:calc(-1 * var(--%NS%site-spacer-s) - 5px);transform:scale(.96);z-index:-2}.rtms-toast-stack--closed>vn-rtms-toaster-item:nth-child(3){top:calc(-1 * var(--%NS%site-spacer-s) - 10px);transform:scale(.92);z-index:-3}.rtms-toast-stack--closed>vn-rtms-toaster-item:nth-child(n+4){display:none}@media(min-width:600px){.rtms-toast{--%NS%rtms-wrapper-width: 75%;--%NS%rtms-button-width: 25%}.rtms-toast.toast-bottom-center,.rtms-toast.toast-top-center{--%NS%rtms-wrapper-width: none;--%NS%rtms-item-width: 75%;pointer-events:none}.rtms-toast.toast-bottom-full-width,.rtms-toast.toast-top-full-width{--%NS%rtms-wrapper-width: none}}@media(min-width:1280px){.rtms-toast{--%NS%rtms-wrapper-width: 50%}.rtms-toast.toast-bottom-center,.rtms-toast.toast-top-center{--%NS%rtms-wrapper-width: none;--%NS%rtms-item-width: 50%}.rtms-toast.toast-bottom-full-width,.rtms-toast.toast-top-full-width{--%NS%rtms-wrapper-width: none}} 1964`], 1965 encapsulation: 2, 1966 changeDetection: 1 1967 }), e; 1968 })(), mt = (() => { 1969 let e = class { 1970 constructor() { 1971 this.injector = m(Z), this.overlay = m(Qe), this.config = m($), this.rtmsCommonService = m(ot), this.rtmsNotificationQueue = m(os), this.rtmsOverlayTrackingService = m(W), this.appInfo = m(at), this.destroyRef = m(Y); 1972 } 1973 init() { 1974 this.rtmsNotificationQueue.newMsObserver.pipe(H(this.destroyRef)).subscribe((t) => { 1975 this.currentRef && (t?.type === y.OVERLAY || t?.type === y.TOASTER && !this.config.enableToastStacking) || this.rtmsCommonService.processMessage(); 1976 }), this.initToasters(), this.initOverlays(); 1977 } 1978 trackingDataForService(t, s) { 1979 return { 1980 campaignId: t.notification.campaignId, 1981 eventDetails: t.notification.content.overlayTitle, 1982 locationEvent: t.notification.content.overlayTitle, 1983 positionEvent: t.notification.messageType, 1984 product: this.appInfo.product, 1985 sitecoreTemplateid: t.notification.sitecoreId, 1986 urlClicked: "not applicable", 1987 labelEvent: s, 1988 promoIntent: "not applicable" 1989 }; 1990 } 1991 initToasters() { 1992 this.rtmsCommonService.messageProcessedEvents.pipe(bt((t) => t.type === y.TOASTER), H(this.destroyRef)).subscribe((t) => { 1993 this.rtmsCommonService.toasterList.unshift(t.notification), this.showToaster(), this.rtmsOverlayTrackingService.trackRtmsOverlayToasterLoad(this.trackingDataForService(t, y.TOASTER)); 1994 }); 1995 } 1996 initOverlays() { 1997 this.rtmsCommonService.messageProcessedEvents.pipe(bt((t) => t.type === y.OVERLAY), H(this.destroyRef)).subscribe((t) => { 1998 this.showOverlay(), this.rtmsOverlayTrackingService.trackRtmsOverlayToasterLoad(this.trackingDataForService(t, y.OVERLAY)); 1999 }); 2000 } 2001 showToaster() { 2002 if (this.currentRef) return; 2003 let t = this.overlay.create({ hasBackdrop: !1 }); 2004 t.detachments().pipe(H(this.destroyRef)).subscribe(() => { 2005 this.overlay.dispose(t), this.currentRef = null, this.rtmsCommonService.nextMessage(); 2006 let o = this.rtmsCommonService.currentNotificationMessage, f = new Ot(); 2007 f.notification = o, this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClose(this.trackingDataForService(f, y.TOASTER)); 2008 });
2009 let s = new Nt(Jt, null, Z.create({ 2010 providers: [{ 2011 provide: q, 2012 useValue: t 2013 }], 2014 parent: this.injector 2015 })); 2016 t.attach(s), this.currentRef = t; 2017 } 2018 showOverlay() { 2019 if (this.currentRef) return; 2020 let t = this.overlay.create({ panelClass: ["vn-rtms-overlay-panel", "generic-modal-overlay"] }); 2021 t.detachments().pipe(H(this.destroyRef)).subscribe(() => { 2022 this.overlay.dispose(t), this.currentRef = null, this.rtmsCommonService.nextMessage(); 2023 let o = this.rtmsCommonService.currentNotificationMessage, f = new Ot(); 2024 f.notification = o, this.rtmsOverlayTrackingService.trackRtmsOverlayToasterClose(this.trackingDataForService(f, y.OVERLAY)); 2025 }); 2026 let s = new Nt(Yt, null, Z.create({ 2027 providers: [{ 2028 provide: q, 2029 useValue: t 2030 }], 2031 parent: this.injector 2032 })); 2033 t.attach(s), this.currentRef = t; 2034 } 2035 }; 2036 return e.ɵfac = function(i) { 2037 return new (i || e)(); 2038 }, e.ɵprov = U({ 2039 token: e, 2040 factory: e.ɵfac 2041 }), e; 2042 })(), Qt = (() => { 2043 let e = class { 2044 constructor() { 2045 this.rtmsClientConfig = m($), this.rtmsSubscriberService = m(cs), this.rtmsToasterOverlayService = m(mt), this.destroyRef = m(Y); 2046 } 2047 onFeatureInit() { 2048 this.rtmsClientConfig.whenReady.pipe(H(this.destroyRef)).subscribe(() => { 2049 this.rtmsClientConfig.version === 2 && (this.rtmsSubscriberService.init(), this.rtmsToasterOverlayService.init()); 2050 }); 2051 } 2052 }; 2053 return e.ɵfac = function(i) { 2054 return new (i || e)(); 2055 }, e.ɵprov = U({ 2056 token: e, 2057 factory: e.ɵfac 2058 }), e; 2059 })(); 2060 })))(); 2061} 2062Kt(); 2063export { di as provide }; 2064 2065//# sourceMappingURL=chunk-cpun6q25.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.