@everymatrix/casino-lobby 1.54.6 → 1.54.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/components/{CasinoCalendar-Ic3lq1UY.js → CasinoCalendar-B6zL0TaE.js} +506 -514
  2. package/components/CasinoCalendar-BMfA7KN3.cjs +9 -0
  3. package/components/CasinoCalendar-yoWAbEkY.js +5197 -0
  4. package/components/{CasinoCalendarDailyDetails-buDoufAV.js → CasinoCalendarDailyDetails-CHjjPOPl.js} +90 -90
  5. package/components/CasinoCalendarDailyDetails-CfDJdZRl.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-D3u4HZe8.js +701 -0
  7. package/components/{CasinoCalendarDailyItem-koPRd703.js → CasinoCalendarDailyItem-C0cqN7uc.js} +46 -46
  8. package/components/CasinoCalendarDailyItem-CUUQD6LO.cjs +1 -0
  9. package/components/CasinoCalendarDailyItem-DMCRSt77.js +315 -0
  10. package/components/CasinoCategoriesSlider-BcJr5qw4.js +606 -0
  11. package/components/{CasinoCategoriesSlider-Bp9JHeM_.js → CasinoCategoriesSlider-ClyY2tVk.js} +29 -29
  12. package/components/CasinoCategoriesSlider-Du23Vwbe.cjs +1 -0
  13. package/components/CasinoCollectionsProviders-D_RrWmcu.js +664 -0
  14. package/components/{CasinoCollectionsProviders-CrpNb22N.js → CasinoCollectionsProviders-DfPQERZb.js} +58 -58
  15. package/components/CasinoCollectionsProviders-okanqqGb.cjs +1 -0
  16. package/components/CasinoFavoritesSection-6Sdpq5gN.cjs +1 -0
  17. package/components/CasinoFavoritesSection-B73CXUAy.js +439 -0
  18. package/components/{CasinoFavoritesSection-D4Du3N5n.js → CasinoFavoritesSection-Bueg3sTp.js} +16 -16
  19. package/components/CasinoFilter-CLgilXuM.js +634 -0
  20. package/components/{CasinoFilter-CYZHW74M.js → CasinoFilter-Ck2-RKNG.js} +55 -55
  21. package/components/CasinoFilter-d5NvPsIU.cjs +1 -0
  22. package/components/{CasinoGamePage-C0VvUfCV.js → CasinoGamePage-B9T32UnC.js} +90 -90
  23. package/components/CasinoGamePage-BvAh0DGO.js +4300 -0
  24. package/components/CasinoGamePage-C99GYj8V.cjs +18 -0
  25. package/components/{CasinoGameThumbnail-C-zG9Jn9.js → CasinoGameThumbnail-Bl2lRTS5.js} +63 -63
  26. package/components/CasinoGameThumbnail-Cnth3w2v.js +1850 -0
  27. package/components/CasinoGameThumbnail-DFxPFhew.cjs +38 -0
  28. package/components/CasinoGamesCategorySection-Cy8ehDrS.cjs +1 -0
  29. package/components/{CasinoGamesCategorySection-DVd_DDkc.js → CasinoGamesCategorySection-DU23YHrX.js} +125 -125
  30. package/components/CasinoGamesCategorySection-Vx-6j2_y.js +3032 -0
  31. package/components/{CasinoJackpotBanner-CL7SMQDH.js → CasinoJackpotBanner-CwBo5Mul.js} +68 -68
  32. package/components/CasinoJackpotBanner-D8mirkf9.js +618 -0
  33. package/components/CasinoJackpotBanner-pF19c3bB.cjs +1 -0
  34. package/components/CasinoLastPlayedSection-CTeLaz5e.cjs +1 -0
  35. package/components/{CasinoLastPlayedSection-VbQH2qG2.js → CasinoLastPlayedSection-D2i1KYd6.js} +29 -29
  36. package/components/CasinoLastPlayedSection-DeHKMRjb.js +566 -0
  37. package/components/{CasinoLobby-CSsnpzSn.js → CasinoLobby-DIuXNBMc.js} +49 -49
  38. package/components/CasinoLobby-DjqoKJ_Z.cjs +1 -0
  39. package/components/CasinoLobby-Ds8nok67.js +2337 -0
  40. package/components/{CasinoModal-z0xixUlG.js → CasinoModal-CdxckMSF.js} +69 -69
  41. package/components/CasinoModal-Cj4CFSu2.cjs +1 -0
  42. package/components/CasinoModal-_ukjEJqy.js +372 -0
  43. package/components/CasinoMostPlayedSection-BRG_Uq6C.cjs +1 -0
  44. package/components/{CasinoMostPlayedSection-BIXY9riB.js → CasinoMostPlayedSection-BvIjl5pV.js} +32 -32
  45. package/components/CasinoMostPlayedSection-C9ey8EVj.js +583 -0
  46. package/components/CasinoMyGames-BH19YGDz.js +1318 -0
  47. package/components/{CasinoMyGames-DqRPb7fX.js → CasinoMyGames-CO15Aytm.js} +52 -52
  48. package/components/CasinoMyGames-DNs8c3Rb.cjs +1 -0
  49. package/components/CasinoPage-BEFfjziT.js +3550 -0
  50. package/components/{CasinoPage-Cm-vD67m.js → CasinoPage-DXue0b0t.js} +123 -123
  51. package/components/CasinoPage-sSUBPWhS.cjs +1 -0
  52. package/components/CasinoRandomGame-C57JuHHz.cjs +2 -0
  53. package/components/CasinoRandomGame-r6ZN573_.js +668 -0
  54. package/components/{CasinoRandomGame-efA8CEqy.js → CasinoRandomGame-z14CxLuC.js} +51 -51
  55. package/components/CasinoSearch-C5_rhVBG.js +1072 -0
  56. package/components/{CasinoSearch-BEXK-fFP.js → CasinoSearch-Cbyb3s0J.js} +83 -83
  57. package/components/CasinoSearch-D1uEkiG3.cjs +1 -0
  58. package/components/CasinoSlider-C7bHIIsP.js +806 -0
  59. package/components/{CasinoSlider-BPqJIB5d.js → CasinoSlider-C90aPXd2.js} +78 -78
  60. package/components/CasinoSlider-D1u-7DmV.cjs +1 -0
  61. package/components/CasinoSort-5a6WYp-y.cjs +1 -0
  62. package/components/{CasinoSort-CBtcK7i0.js → CasinoSort-B9ucfWgD.js} +16 -16
  63. package/components/CasinoSort-DWu-WSlc.js +432 -0
  64. package/components/{CasinoWinners-Db2ivy-R.js → CasinoWinners-BFkE1Nu3.js} +62 -62
  65. package/components/CasinoWinners-D-KQ7v4o.cjs +1 -0
  66. package/components/CasinoWinners-fPZD2C86.js +971 -0
  67. package/components/{GeneralAnimationLoading-DiwFEyef.js → GeneralAnimationLoading-BCUksgAT.js} +8 -8
  68. package/components/GeneralAnimationLoading-BtZxU34J.cjs +1 -0
  69. package/components/GeneralAnimationLoading-DSCrLTeR.js +75 -0
  70. package/es2015/casino-lobby.cjs +1 -0
  71. package/es2015/casino-lobby.js +16 -0
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +4 -1
  74. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  75. package/stencil/casino-play-random-game-BKQH1Zx1.cjs +371 -0
  76. package/stencil/casino-play-random-game-BqK1nKDT.js +577 -0
  77. package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-pLVMnBV9.js} +1 -1
  78. package/stencil/index-f923e8d1-BWfXmHlD.js +645 -0
  79. package/stencil/index-f923e8d1-DEpJEd5d.cjs +1 -0
  80. package/stencil/index-f923e8d1-DkIbJRWP.js +629 -0
  81. package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
@@ -0,0 +1,618 @@
1
+ import { a as Te, $ as Se, S as We, i as Ae, s as Ie, f as j, b as Ve, n as be, d as R, h as H, j as c, C as Je, r as i, G as ye, D as J, p as l, A as Ne, B, v as we, w as ze, F as Ue, m as W, q as A, I as Ee, l as De } from "./CasinoCalendar-yoWAbEkY.js";
2
+ function Ce(n, e) {
3
+ Te(n, e);
4
+ }
5
+ function Be(n) {
6
+ Se.set(n);
7
+ }
8
+ const Le = {
9
+ en: {
10
+ loadingText: "Loading, please wait..."
11
+ },
12
+ "zh-hk": {
13
+ loadingText: "加载请稍候 ..."
14
+ },
15
+ fr: {
16
+ loadingText: "Chargement, veuillez patienter..."
17
+ },
18
+ ro: {
19
+ loadingText: "Se incarca, va rugam asteptati..."
20
+ },
21
+ es: {
22
+ loadingText: "Cargando"
23
+ },
24
+ pt: {
25
+ loadingText: "Carregando, por favor espere..."
26
+ },
27
+ de: {
28
+ loadingText: "Laden, bitte warten..."
29
+ },
30
+ hr: {
31
+ loadingText: "Učitavanje"
32
+ },
33
+ "pt-br": {
34
+ CarregandoText: "Carregando"
35
+ },
36
+ "es-mx": {
37
+ CargandoText: "Cargando, por favor espere…"
38
+ },
39
+ tr: {
40
+ loadingText: "Yükleniyor, lütfen bekleyin..."
41
+ },
42
+ "en-us": {
43
+ loadingText: "Loading, please wait..."
44
+ }
45
+ };
46
+ function Me(n) {
47
+ Ve(n, "svelte-4fxl7w", ':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--color-primary, #D0046C);border-color:var(--emw--color-primary, #D0046C) transparent var(--emw--color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
48
+ }
49
+ function xe(n, e, t) {
50
+ const s = n.slice();
51
+ return s[48] = e[t], s[50] = t, s;
52
+ }
53
+ function Re(n) {
54
+ let e, t, s, r, p, o, C, w, f, L, v, T, S, b, I;
55
+ function m(d, x) {
56
+ return (
57
+ /*tabletView*/
58
+ d[5] ? Fe : Pe
59
+ );
60
+ }
61
+ let h = m(n), g = h(n);
62
+ return {
63
+ c() {
64
+ e = c("div"), t = c("div"), s = c("div"), r = c("div"), p = B(), o = c("div"), g.c(), C = B(), w = c("div"), f = c("img"), i(r, "class", "vendorLogo"), ye(r, "background-image", "url(" + /*vendorIcon*/
65
+ n[6] + ")"), i(o, "class", "displayContainer"), J(f.src, L = /*titleLogoImg*/
66
+ n[11]) || i(f, "src", L), i(f, "alt", ""), i(w, "class", "title"), i(s, "class", v = "mainWrapper " + /*visualstructure*/
67
+ n[0] + " " + /*mobileView*/
68
+ (n[4] && !/*tabletView*/
69
+ n[5] ? "mobile" : (
70
+ /*tabletView*/
71
+ n[5] ? "tablet" : ""
72
+ ))), ye(s, "background", "url(" + /*backgroundImg*/
73
+ n[10] + ")"), i(t, "class", "jackpotBanner"), i(e, "class", T = /*displayNone*/
74
+ n[12] ? "DisplayNone" : ""), i(e, "part", S = /*displayNone*/
75
+ n[12] ? "DisplayNone" : "");
76
+ },
77
+ m(d, x) {
78
+ H(d, e, x), l(e, t), l(t, s), l(s, r), l(s, p), l(s, o), g.m(o, null), l(s, C), l(s, w), l(w, f), b || (I = Ne(
79
+ t,
80
+ "click",
81
+ /*click_handler*/
82
+ n[31]
83
+ ), b = !0);
84
+ },
85
+ p(d, x) {
86
+ x[0] & /*vendorIcon*/
87
+ 64 && ye(r, "background-image", "url(" + /*vendorIcon*/
88
+ d[6] + ")"), h === (h = m(d)) && g ? g.p(d, x) : (g.d(1), g = h(d), g && (g.c(), g.m(o, null))), x[0] & /*titleLogoImg*/
89
+ 2048 && !J(f.src, L = /*titleLogoImg*/
90
+ d[11]) && i(f, "src", L), x[0] & /*visualstructure, mobileView, tabletView*/
91
+ 49 && v !== (v = "mainWrapper " + /*visualstructure*/
92
+ d[0] + " " + /*mobileView*/
93
+ (d[4] && !/*tabletView*/
94
+ d[5] ? "mobile" : (
95
+ /*tabletView*/
96
+ d[5] ? "tablet" : ""
97
+ ))) && i(s, "class", v), x[0] & /*backgroundImg*/
98
+ 1024 && ye(s, "background", "url(" + /*backgroundImg*/
99
+ d[10] + ")"), x[0] & /*displayNone*/
100
+ 4096 && T !== (T = /*displayNone*/
101
+ d[12] ? "DisplayNone" : "") && i(e, "class", T), x[0] & /*displayNone*/
102
+ 4096 && S !== (S = /*displayNone*/
103
+ d[12] ? "DisplayNone" : "") && i(e, "part", S);
104
+ },
105
+ d(d) {
106
+ d && R(e), g.d(), b = !1, I();
107
+ }
108
+ };
109
+ }
110
+ function He(n) {
111
+ let e;
112
+ return {
113
+ c() {
114
+ e = c("div"), i(e, "class", "LoadingSpinner"), i(e, "part", "LoadingSpinner");
115
+ },
116
+ m(t, s) {
117
+ H(t, e, s);
118
+ },
119
+ p: be,
120
+ d(t) {
121
+ t && R(e);
122
+ }
123
+ };
124
+ }
125
+ function Oe(n) {
126
+ let e;
127
+ return {
128
+ c() {
129
+ e = c("p"), e.textContent = "500 Server error";
130
+ },
131
+ m(t, s) {
132
+ H(t, e, s);
133
+ },
134
+ p: be,
135
+ d(t) {
136
+ t && R(e);
137
+ }
138
+ };
139
+ }
140
+ function Fe(n) {
141
+ let e, t, s, r, p, o, C = (
142
+ /*formattedLabels*/
143
+ n[8][0] + ""
144
+ ), w, f, L, v = (
145
+ /*formattedJackpotValues*/
146
+ n[7][0] + ""
147
+ ), T, S, b, I, m, h, g, d, x, O, F = (
148
+ /*formattedLabels*/
149
+ n[8][1] + ""
150
+ ), $, U, M, Y = (
151
+ /*formattedJackpotValues*/
152
+ n[7][1] + ""
153
+ ), ee, re, K, te, N, z, E, P, V, ae, q, ie = (
154
+ /*formattedLabels*/
155
+ n[8][2] + ""
156
+ ), ce, G, ne, le = (
157
+ /*formattedJackpotValues*/
158
+ n[7][2] + ""
159
+ ), oe, ue, Q, de, ge, X, Z, D, a, u, _ = (
160
+ /*formattedLabels*/
161
+ n[8][3] + ""
162
+ ), pe, se, fe, me = (
163
+ /*formattedJackpotValues*/
164
+ n[7][3] + ""
165
+ ), ve, ke, he, _e;
166
+ return {
167
+ c() {
168
+ e = c("div"), t = c("div"), s = c("div"), r = c("img"), o = c("span"), w = A(C), f = c("span"), L = c("span"), T = A(v), S = B(), b = c("span"), I = A(
169
+ /*currency*/
170
+ n[1]
171
+ ), m = B(), h = c("div"), g = c("div"), d = c("img"), O = c("span"), $ = A(F), U = c("span"), M = c("span"), ee = A(Y), re = B(), K = c("span"), te = A(
172
+ /*currency*/
173
+ n[1]
174
+ ), N = B(), z = c("div"), E = c("div"), P = c("div"), V = c("img"), q = c("span"), ce = A(ie), G = c("span"), ne = c("span"), oe = A(le), ue = B(), Q = c("span"), de = A(
175
+ /*currency*/
176
+ n[1]
177
+ ), ge = B(), X = c("div"), Z = c("div"), D = c("img"), u = c("span"), pe = A(_), se = c("span"), fe = c("span"), ve = A(me), ke = B(), he = c("span"), _e = A(
178
+ /*currency*/
179
+ n[1]
180
+ ), i(r, "class", "displayCardIcon"), J(r.src, p = /*caticons*/
181
+ n[9][0]) || i(r, "src", p), i(r, "alt", ""), i(o, "class", "cardLabel"), i(s, "class", "iconWrapper"), i(L, "class", "jackpotValue"), i(b, "class", "jackpot-currency"), i(f, "class", "cardTextWrapper"), i(t, "class", "displayCard"), i(d, "class", "displayCardIcon"), J(d.src, x = /*caticons*/
182
+ n[9][1]) || i(d, "src", x), i(d, "alt", ""), i(O, "class", "cardLabel"), i(g, "class", "iconWrapper"), i(M, "class", "jackpotValue"), i(K, "class", "jackpot-currency"), i(U, "class", "cardTextWrapper"), i(h, "class", "displayCard"), i(e, "class", "pairWrapper"), i(V, "class", "displayCardIcon"), J(V.src, ae = /*caticons*/
183
+ n[9][2]) || i(V, "src", ae), i(V, "alt", ""), i(q, "class", "cardLabel"), i(P, "class", "iconWrapper"), i(ne, "class", "jackpotValue"), i(Q, "class", "jackpot-currency"), i(G, "class", "cardTextWrapper"), i(E, "class", "displayCard"), i(D, "class", "displayCardIcon"), J(D.src, a = /*caticons*/
184
+ n[9][3]) || i(D, "src", a), i(D, "alt", ""), i(u, "class", "cardLabel"), i(Z, "class", "iconWrapper"), i(fe, "class", "jackpotValue"), i(he, "class", "jackpot-currency"), i(se, "class", "cardTextWrapper"), i(X, "class", "displayCard"), i(z, "class", "pairWrapper");
185
+ },
186
+ m(y, k) {
187
+ H(y, e, k), l(e, t), l(t, s), l(s, r), l(s, o), l(o, w), l(t, f), l(f, L), l(L, T), l(f, S), l(f, b), l(b, I), l(e, m), l(e, h), l(h, g), l(g, d), l(g, O), l(O, $), l(h, U), l(U, M), l(M, ee), l(U, re), l(U, K), l(K, te), H(y, N, k), H(y, z, k), l(z, E), l(E, P), l(P, V), l(P, q), l(q, ce), l(E, G), l(G, ne), l(ne, oe), l(G, ue), l(G, Q), l(Q, de), l(z, ge), l(z, X), l(X, Z), l(Z, D), l(Z, u), l(u, pe), l(X, se), l(se, fe), l(fe, ve), l(se, ke), l(se, he), l(he, _e);
188
+ },
189
+ p(y, k) {
190
+ k[0] & /*caticons*/
191
+ 512 && !J(r.src, p = /*caticons*/
192
+ y[9][0]) && i(r, "src", p), k[0] & /*formattedLabels*/
193
+ 256 && C !== (C = /*formattedLabels*/
194
+ y[8][0] + "") && W(w, C), k[0] & /*formattedJackpotValues*/
195
+ 128 && v !== (v = /*formattedJackpotValues*/
196
+ y[7][0] + "") && W(T, v), k[0] & /*currency*/
197
+ 2 && W(
198
+ I,
199
+ /*currency*/
200
+ y[1]
201
+ ), k[0] & /*caticons*/
202
+ 512 && !J(d.src, x = /*caticons*/
203
+ y[9][1]) && i(d, "src", x), k[0] & /*formattedLabels*/
204
+ 256 && F !== (F = /*formattedLabels*/
205
+ y[8][1] + "") && W($, F), k[0] & /*formattedJackpotValues*/
206
+ 128 && Y !== (Y = /*formattedJackpotValues*/
207
+ y[7][1] + "") && W(ee, Y), k[0] & /*currency*/
208
+ 2 && W(
209
+ te,
210
+ /*currency*/
211
+ y[1]
212
+ ), k[0] & /*caticons*/
213
+ 512 && !J(V.src, ae = /*caticons*/
214
+ y[9][2]) && i(V, "src", ae), k[0] & /*formattedLabels*/
215
+ 256 && ie !== (ie = /*formattedLabels*/
216
+ y[8][2] + "") && W(ce, ie), k[0] & /*formattedJackpotValues*/
217
+ 128 && le !== (le = /*formattedJackpotValues*/
218
+ y[7][2] + "") && W(oe, le), k[0] & /*currency*/
219
+ 2 && W(
220
+ de,
221
+ /*currency*/
222
+ y[1]
223
+ ), k[0] & /*caticons*/
224
+ 512 && !J(D.src, a = /*caticons*/
225
+ y[9][3]) && i(D, "src", a), k[0] & /*formattedLabels*/
226
+ 256 && _ !== (_ = /*formattedLabels*/
227
+ y[8][3] + "") && W(pe, _), k[0] & /*formattedJackpotValues*/
228
+ 128 && me !== (me = /*formattedJackpotValues*/
229
+ y[7][3] + "") && W(ve, me), k[0] & /*currency*/
230
+ 2 && W(
231
+ _e,
232
+ /*currency*/
233
+ y[1]
234
+ );
235
+ },
236
+ d(y) {
237
+ y && (R(e), R(N), R(z));
238
+ }
239
+ };
240
+ }
241
+ function Pe(n) {
242
+ let e, t = we(Array(4)), s = [];
243
+ for (let r = 0; r < t.length; r += 1)
244
+ s[r] = je(xe(n, t, r));
245
+ return {
246
+ c() {
247
+ for (let r = 0; r < s.length; r += 1)
248
+ s[r].c();
249
+ e = Ue();
250
+ },
251
+ m(r, p) {
252
+ for (let o = 0; o < s.length; o += 1)
253
+ s[o] && s[o].m(r, p);
254
+ H(r, e, p);
255
+ },
256
+ p(r, p) {
257
+ if (p[0] & /*currency, formattedJackpotValues, formattedLabels, caticons*/
258
+ 898) {
259
+ t = we(Array(4));
260
+ let o;
261
+ for (o = 0; o < t.length; o += 1) {
262
+ const C = xe(r, t, o);
263
+ s[o] ? s[o].p(C, p) : (s[o] = je(C), s[o].c(), s[o].m(e.parentNode, e));
264
+ }
265
+ for (; o < s.length; o += 1)
266
+ s[o].d(1);
267
+ s.length = t.length;
268
+ }
269
+ },
270
+ d(r) {
271
+ r && R(e), ze(s, r);
272
+ }
273
+ };
274
+ }
275
+ function je(n) {
276
+ var I;
277
+ let e, t, s, r, p, o = (
278
+ /*formattedLabels*/
279
+ n[8][
280
+ /*i*/
281
+ n[50]
282
+ ] + ""
283
+ ), C, w, f, L = (
284
+ /*formattedJackpotValues*/
285
+ ((I = n[7][
286
+ /*i*/
287
+ n[50]
288
+ ]) != null ? I : "") + ""
289
+ ), v, T, S, b;
290
+ return {
291
+ c() {
292
+ e = c("div"), t = c("div"), s = c("img"), p = c("span"), C = A(o), w = c("span"), f = c("span"), v = A(L), T = B(), S = c("span"), b = A(
293
+ /*currency*/
294
+ n[1]
295
+ ), i(s, "class", "displayCardIcon"), J(s.src, r = /*caticons*/
296
+ n[9][
297
+ /*i*/
298
+ n[50]
299
+ ]) || i(s, "src", r), i(s, "alt", ""), i(p, "class", "cardLabel"), i(t, "class", "iconWrapper"), i(f, "class", "jackpotValue"), i(S, "class", "jackpot-currency"), i(w, "class", "cardTextWrapper"), i(e, "class", "displayCard");
300
+ },
301
+ m(m, h) {
302
+ H(m, e, h), l(e, t), l(t, s), l(t, p), l(p, C), l(e, w), l(w, f), l(f, v), l(w, T), l(w, S), l(S, b);
303
+ },
304
+ p(m, h) {
305
+ var g;
306
+ h[0] & /*caticons*/
307
+ 512 && !J(s.src, r = /*caticons*/
308
+ m[9][
309
+ /*i*/
310
+ m[50]
311
+ ]) && i(s, "src", r), h[0] & /*formattedLabels*/
312
+ 256 && o !== (o = /*formattedLabels*/
313
+ m[8][
314
+ /*i*/
315
+ m[50]
316
+ ] + "") && W(C, o), h[0] & /*formattedJackpotValues*/
317
+ 128 && L !== (L = /*formattedJackpotValues*/
318
+ ((g = m[7][
319
+ /*i*/
320
+ m[50]
321
+ ]) != null ? g : "") + "") && W(v, L), h[0] & /*currency*/
322
+ 2 && W(
323
+ b,
324
+ /*currency*/
325
+ m[1]
326
+ );
327
+ },
328
+ d(m) {
329
+ m && R(e);
330
+ }
331
+ };
332
+ }
333
+ function qe(n) {
334
+ let e;
335
+ function t(p, o) {
336
+ return (
337
+ /*hasErrors*/
338
+ p[13] ? Oe : (
339
+ /*isLoading*/
340
+ p[3] ? He : Re
341
+ )
342
+ );
343
+ }
344
+ let s = t(n), r = s(n);
345
+ return {
346
+ c() {
347
+ e = c("div"), r.c();
348
+ },
349
+ m(p, o) {
350
+ H(p, e, o), r.m(e, null), n[32](e);
351
+ },
352
+ p(p, o) {
353
+ s === (s = t(p)) && r ? r.p(p, o) : (r.d(1), r = s(p), r && (r.c(), r.m(e, null)));
354
+ },
355
+ i: be,
356
+ o: be,
357
+ d(p) {
358
+ p && R(e), r.d(), n[32](null);
359
+ }
360
+ };
361
+ }
362
+ function Ge(n, e, t) {
363
+ let { visualstructure: s = "" } = e, { title: r = "" } = e, { caticon0: p = "" } = e, { caticon1: o = "" } = e, { caticon2: C = "" } = e, { caticon3: w = "" } = e, { iconlabels: f = "" } = e, { backgroundsrc: L = "" } = e, { currency: v = "" } = e, { backgroundsrcmobile: T = "" } = e, { titlelogopath: S = "" } = e, { lang: b = "en" } = e, { clientstyling: I = "" } = e, { clientstylingurl: m = "" } = e, { translationurl: h = "" } = e, { endpoint: g = "" } = e, { gameid: d = "" } = e, x = window.navigator.userAgent, O = !1, F = !1, $ = "", U = [], M = [], Y = [], ee = [], re = [], K = "", te = "", N, z = !1, E = !0, P = !1, V;
364
+ const ae = () => {
365
+ fetch(h).then((u) => u.json()).then((u) => {
366
+ Object.keys(u).forEach((_) => {
367
+ Ce(_, u[_]);
368
+ });
369
+ }).catch((u) => {
370
+ console.log(u);
371
+ });
372
+ };
373
+ Object.keys(Le).forEach((a) => {
374
+ Ce(a, Le[a]);
375
+ });
376
+ const q = ["typeSpread", "typeLeft"], ie = (a) => {
377
+ var _;
378
+ const u = (_ = a == null ? void 0 : a.items[0]) == null ? void 0 : _.additionalData;
379
+ u && Object.values(u).forEach((pe) => U.push(+pe));
380
+ }, ce = (a) => {
381
+ var u;
382
+ t(6, $ = ((u = a == null ? void 0 : a.items[0]) == null ? void 0 : u.vendorLogo) || "");
383
+ }, G = () => {
384
+ if (g && b && v) {
385
+ let a = new URL(`${g}/v1/casino/jackpots`);
386
+ a.searchParams.append("filter", `id=${d}`), a.searchParams.append("language", b), a.searchParams.append("additionalDataCurrency", v), fetch(a.href).then((u) => u.json().then((_) => {
387
+ t(3, E = !1), V = _, M.includes(d) && (ie(V), ce(V));
388
+ }).catch((_) => {
389
+ t(13, P = !0), t(3, E = !1), console.error(_);
390
+ }));
391
+ }
392
+ }, ne = () => {
393
+ let a = new URL(`${g}/v1/casino/jackpots/config`);
394
+ fetch(a.href).then((u) => u.json()).then((u) => {
395
+ t(30, M = u.egtJackpotIds.map((_) => _));
396
+ });
397
+ }, le = () => {
398
+ t(4, O = De(x) && window.innerHeight / window.innerWidth > 1), t(5, F = ue()), U.length !== 0 && t(7, Y = oe(U)), t(8, ee = f ? f.split(",").map((a) => a.trim().toUpperCase()) : new Array(4).fill("")), q.includes(s.trim()) ? t(0, s = s.trim()) : (console.warn(`Invalid Attribute Value: "${s}" is not a valid value for the "visualstructure" attribute. Defaulting to "${q[0]}"`), t(0, s = q[0])), t(10, K = T && O && !F ? T : L), t(11, te = S), t(9, re = [p, o, C, w]);
399
+ }, oe = (a) => a.map((u) => Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(u)), ue = () => {
400
+ const a = window.innerHeight / window.innerWidth;
401
+ return 0.75 < a && a < 1.6;
402
+ }, Q = () => {
403
+ window.postMessage({ type: "JackpotBannerClicked", gameid: d }, window.location.href), typeof gtag == "function" && gtag("event", "JackpotBannerClicked", {
404
+ context: "JackpotBanner",
405
+ gameId: `${d}`
406
+ });
407
+ }, de = () => {
408
+ let a = document.createElement("style");
409
+ a.innerHTML = I, N.appendChild(a);
410
+ }, ge = () => {
411
+ t(12, z = !0);
412
+ let a = new URL(m), u = document.createElement("style");
413
+ fetch(a.href).then((_) => _.text()).then((_) => {
414
+ u.innerHTML = _, setTimeout(
415
+ () => {
416
+ N.appendChild(u);
417
+ },
418
+ 1
419
+ ), setTimeout(
420
+ () => {
421
+ t(12, z = !1);
422
+ },
423
+ 500
424
+ );
425
+ });
426
+ }, X = () => {
427
+ Be(b);
428
+ }, Z = () => Q();
429
+ function D(a) {
430
+ Je[a ? "unshift" : "push"](() => {
431
+ N = a, t(2, N);
432
+ });
433
+ }
434
+ return n.$$set = (a) => {
435
+ "visualstructure" in a && t(0, s = a.visualstructure), "title" in a && t(15, r = a.title), "caticon0" in a && t(16, p = a.caticon0), "caticon1" in a && t(17, o = a.caticon1), "caticon2" in a && t(18, C = a.caticon2), "caticon3" in a && t(19, w = a.caticon3), "iconlabels" in a && t(20, f = a.iconlabels), "backgroundsrc" in a && t(21, L = a.backgroundsrc), "currency" in a && t(1, v = a.currency), "backgroundsrcmobile" in a && t(22, T = a.backgroundsrcmobile), "titlelogopath" in a && t(23, S = a.titlelogopath), "lang" in a && t(24, b = a.lang), "clientstyling" in a && t(25, I = a.clientstyling), "clientstylingurl" in a && t(26, m = a.clientstylingurl), "translationurl" in a && t(27, h = a.translationurl), "endpoint" in a && t(28, g = a.endpoint), "gameid" in a && t(29, d = a.gameid);
436
+ }, n.$$.update = () => {
437
+ n.$$.dirty[0] & /*endpoint*/
438
+ 268435456 && g && ne(), n.$$.dirty[0] & /*customStylingContainer, clientstyling*/
439
+ 33554436 && N && I && de(), n.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
440
+ 67108868 && N && m && ge(), n.$$.dirty[0] & /*endpoint, lang, currency, validGameIds*/
441
+ 1358954498 && g && b && v && M.length > 0 && G(), n.$$.dirty[0] & /*currency, lang, isLoading*/
442
+ 16777226 && v && b && !E && le(), n.$$.dirty[0] & /*lang*/
443
+ 16777216 && b && X(), n.$$.dirty[0] & /*translationurl*/
444
+ 134217728 && h && ae();
445
+ }, [
446
+ s,
447
+ v,
448
+ N,
449
+ E,
450
+ O,
451
+ F,
452
+ $,
453
+ Y,
454
+ ee,
455
+ re,
456
+ K,
457
+ te,
458
+ z,
459
+ P,
460
+ Q,
461
+ r,
462
+ p,
463
+ o,
464
+ C,
465
+ w,
466
+ f,
467
+ L,
468
+ T,
469
+ S,
470
+ b,
471
+ I,
472
+ m,
473
+ h,
474
+ g,
475
+ d,
476
+ M,
477
+ Z,
478
+ D
479
+ ];
480
+ }
481
+ class Ye extends We {
482
+ constructor(e) {
483
+ super(), Ae(
484
+ this,
485
+ e,
486
+ Ge,
487
+ qe,
488
+ Ie,
489
+ {
490
+ visualstructure: 0,
491
+ title: 15,
492
+ caticon0: 16,
493
+ caticon1: 17,
494
+ caticon2: 18,
495
+ caticon3: 19,
496
+ iconlabels: 20,
497
+ backgroundsrc: 21,
498
+ currency: 1,
499
+ backgroundsrcmobile: 22,
500
+ titlelogopath: 23,
501
+ lang: 24,
502
+ clientstyling: 25,
503
+ clientstylingurl: 26,
504
+ translationurl: 27,
505
+ endpoint: 28,
506
+ gameid: 29
507
+ },
508
+ Me,
509
+ [-1, -1]
510
+ );
511
+ }
512
+ get visualstructure() {
513
+ return this.$$.ctx[0];
514
+ }
515
+ set visualstructure(e) {
516
+ this.$$set({ visualstructure: e }), j();
517
+ }
518
+ get title() {
519
+ return this.$$.ctx[15];
520
+ }
521
+ set title(e) {
522
+ this.$$set({ title: e }), j();
523
+ }
524
+ get caticon0() {
525
+ return this.$$.ctx[16];
526
+ }
527
+ set caticon0(e) {
528
+ this.$$set({ caticon0: e }), j();
529
+ }
530
+ get caticon1() {
531
+ return this.$$.ctx[17];
532
+ }
533
+ set caticon1(e) {
534
+ this.$$set({ caticon1: e }), j();
535
+ }
536
+ get caticon2() {
537
+ return this.$$.ctx[18];
538
+ }
539
+ set caticon2(e) {
540
+ this.$$set({ caticon2: e }), j();
541
+ }
542
+ get caticon3() {
543
+ return this.$$.ctx[19];
544
+ }
545
+ set caticon3(e) {
546
+ this.$$set({ caticon3: e }), j();
547
+ }
548
+ get iconlabels() {
549
+ return this.$$.ctx[20];
550
+ }
551
+ set iconlabels(e) {
552
+ this.$$set({ iconlabels: e }), j();
553
+ }
554
+ get backgroundsrc() {
555
+ return this.$$.ctx[21];
556
+ }
557
+ set backgroundsrc(e) {
558
+ this.$$set({ backgroundsrc: e }), j();
559
+ }
560
+ get currency() {
561
+ return this.$$.ctx[1];
562
+ }
563
+ set currency(e) {
564
+ this.$$set({ currency: e }), j();
565
+ }
566
+ get backgroundsrcmobile() {
567
+ return this.$$.ctx[22];
568
+ }
569
+ set backgroundsrcmobile(e) {
570
+ this.$$set({ backgroundsrcmobile: e }), j();
571
+ }
572
+ get titlelogopath() {
573
+ return this.$$.ctx[23];
574
+ }
575
+ set titlelogopath(e) {
576
+ this.$$set({ titlelogopath: e }), j();
577
+ }
578
+ get lang() {
579
+ return this.$$.ctx[24];
580
+ }
581
+ set lang(e) {
582
+ this.$$set({ lang: e }), j();
583
+ }
584
+ get clientstyling() {
585
+ return this.$$.ctx[25];
586
+ }
587
+ set clientstyling(e) {
588
+ this.$$set({ clientstyling: e }), j();
589
+ }
590
+ get clientstylingurl() {
591
+ return this.$$.ctx[26];
592
+ }
593
+ set clientstylingurl(e) {
594
+ this.$$set({ clientstylingurl: e }), j();
595
+ }
596
+ get translationurl() {
597
+ return this.$$.ctx[27];
598
+ }
599
+ set translationurl(e) {
600
+ this.$$set({ translationurl: e }), j();
601
+ }
602
+ get endpoint() {
603
+ return this.$$.ctx[28];
604
+ }
605
+ set endpoint(e) {
606
+ this.$$set({ endpoint: e }), j();
607
+ }
608
+ get gameid() {
609
+ return this.$$.ctx[29];
610
+ }
611
+ set gameid(e) {
612
+ this.$$set({ gameid: e }), j();
613
+ }
614
+ }
615
+ Ee(Ye, { visualstructure: {}, title: {}, caticon0: {}, caticon1: {}, caticon2: {}, caticon3: {}, iconlabels: {}, backgroundsrc: {}, currency: {}, backgroundsrcmobile: {}, titlelogopath: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, endpoint: {}, gameid: {} }, [], [], !0);
616
+ export {
617
+ Ye as default
618
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BMfA7KN3.cjs");function de(l,t){e.addMessages(l,t)}function he(l){e.$locale.set(l)}const ue={en:{loadingText:"Loading, please wait..."},"zh-hk":{loadingText:"加载请稍候 ..."},fr:{loadingText:"Chargement, veuillez patienter..."},ro:{loadingText:"Se incarca, va rugam asteptati..."},es:{loadingText:"Cargando"},pt:{loadingText:"Carregando, por favor espere..."},de:{loadingText:"Laden, bitte warten..."},hr:{loadingText:"Učitavanje"},"pt-br":{CarregandoText:"Carregando"},"es-mx":{CargandoText:"Cargando, por favor espere…"},tr:{loadingText:"Yükleniyor, lütfen bekleyin..."},"en-us":{loadingText:"Loading, please wait..."}};function ye(l){e.append_styles(l,"svelte-4fxl7w",':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--color-primary, #D0046C);border-color:var(--emw--color-primary, #D0046C) transparent var(--emw--color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function ge(l,t,a){const i=l.slice();return i[48]=t[a],i[50]=a,i}function _e(l){let t,a,i,r,o,s,k,v,u,x,y,w,L,h,j;function g(c,C){return c[5]?ke:xe}let f=g(l),d=f(l);return{c(){t=e.element("div"),a=e.element("div"),i=e.element("div"),r=e.element("div"),o=e.space(),s=e.element("div"),d.c(),k=e.space(),v=e.element("div"),u=e.element("img"),e.attr(r,"class","vendorLogo"),e.set_style(r,"background-image","url("+l[6]+")"),e.attr(s,"class","displayContainer"),e.src_url_equal(u.src,x=l[11])||e.attr(u,"src",x),e.attr(u,"alt",""),e.attr(v,"class","title"),e.attr(i,"class",y="mainWrapper "+l[0]+" "+(l[4]&&!l[5]?"mobile":l[5]?"tablet":"")),e.set_style(i,"background","url("+l[10]+")"),e.attr(a,"class","jackpotBanner"),e.attr(t,"class",w=l[12]?"DisplayNone":""),e.attr(t,"part",L=l[12]?"DisplayNone":"")},m(c,C){e.insert(c,t,C),e.append(t,a),e.append(a,i),e.append(i,r),e.append(i,o),e.append(i,s),d.m(s,null),e.append(i,k),e.append(i,v),e.append(v,u),h||(j=e.listen(a,"click",l[31]),h=!0)},p(c,C){C[0]&64&&e.set_style(r,"background-image","url("+c[6]+")"),f===(f=g(c))&&d?d.p(c,C):(d.d(1),d=f(c),d&&(d.c(),d.m(s,null))),C[0]&2048&&!e.src_url_equal(u.src,x=c[11])&&e.attr(u,"src",x),C[0]&49&&y!==(y="mainWrapper "+c[0]+" "+(c[4]&&!c[5]?"mobile":c[5]?"tablet":""))&&e.attr(i,"class",y),C[0]&1024&&e.set_style(i,"background","url("+c[10]+")"),C[0]&4096&&w!==(w=c[12]?"DisplayNone":"")&&e.attr(t,"class",w),C[0]&4096&&L!==(L=c[12]?"DisplayNone":"")&&e.attr(t,"part",L)},d(c){c&&e.detach(t),d.d(),h=!1,j()}}}function be(l){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner"),e.attr(t,"part","LoadingSpinner")},m(a,i){e.insert(a,t,i)},p:e.noop,d(a){a&&e.detach(t)}}}function ve(l){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(a,i){e.insert(a,t,i)},p:e.noop,d(a){a&&e.detach(t)}}}function ke(l){let t,a,i,r,o,s,k=l[8][0]+"",v,u,x,y=l[7][0]+"",w,L,h,j,g,f,d,c,C,J,N=l[8][1]+"",H,A,V,M=l[7][1]+"",P,Z,D,F,S,W,I,z,T,G,U,Y=l[8][2]+"",$,E,K,Q=l[7][2]+"",ee,ne,O,te,le,R,B,q,n,p,_=l[8][3]+"",ae,X,ie,re=l[7][3]+"",ce,pe,se,oe;return{c(){t=e.element("div"),a=e.element("div"),i=e.element("div"),r=e.element("img"),s=e.element("span"),v=e.text(k),u=e.element("span"),x=e.element("span"),w=e.text(y),L=e.space(),h=e.element("span"),j=e.text(l[1]),g=e.space(),f=e.element("div"),d=e.element("div"),c=e.element("img"),J=e.element("span"),H=e.text(N),A=e.element("span"),V=e.element("span"),P=e.text(M),Z=e.space(),D=e.element("span"),F=e.text(l[1]),S=e.space(),W=e.element("div"),I=e.element("div"),z=e.element("div"),T=e.element("img"),U=e.element("span"),$=e.text(Y),E=e.element("span"),K=e.element("span"),ee=e.text(Q),ne=e.space(),O=e.element("span"),te=e.text(l[1]),le=e.space(),R=e.element("div"),B=e.element("div"),q=e.element("img"),p=e.element("span"),ae=e.text(_),X=e.element("span"),ie=e.element("span"),ce=e.text(re),pe=e.space(),se=e.element("span"),oe=e.text(l[1]),e.attr(r,"class","displayCardIcon"),e.src_url_equal(r.src,o=l[9][0])||e.attr(r,"src",o),e.attr(r,"alt",""),e.attr(s,"class","cardLabel"),e.attr(i,"class","iconWrapper"),e.attr(x,"class","jackpotValue"),e.attr(h,"class","jackpot-currency"),e.attr(u,"class","cardTextWrapper"),e.attr(a,"class","displayCard"),e.attr(c,"class","displayCardIcon"),e.src_url_equal(c.src,C=l[9][1])||e.attr(c,"src",C),e.attr(c,"alt",""),e.attr(J,"class","cardLabel"),e.attr(d,"class","iconWrapper"),e.attr(V,"class","jackpotValue"),e.attr(D,"class","jackpot-currency"),e.attr(A,"class","cardTextWrapper"),e.attr(f,"class","displayCard"),e.attr(t,"class","pairWrapper"),e.attr(T,"class","displayCardIcon"),e.src_url_equal(T.src,G=l[9][2])||e.attr(T,"src",G),e.attr(T,"alt",""),e.attr(U,"class","cardLabel"),e.attr(z,"class","iconWrapper"),e.attr(K,"class","jackpotValue"),e.attr(O,"class","jackpot-currency"),e.attr(E,"class","cardTextWrapper"),e.attr(I,"class","displayCard"),e.attr(q,"class","displayCardIcon"),e.src_url_equal(q.src,n=l[9][3])||e.attr(q,"src",n),e.attr(q,"alt",""),e.attr(p,"class","cardLabel"),e.attr(B,"class","iconWrapper"),e.attr(ie,"class","jackpotValue"),e.attr(se,"class","jackpot-currency"),e.attr(X,"class","cardTextWrapper"),e.attr(R,"class","displayCard"),e.attr(W,"class","pairWrapper")},m(m,b){e.insert(m,t,b),e.append(t,a),e.append(a,i),e.append(i,r),e.append(i,s),e.append(s,v),e.append(a,u),e.append(u,x),e.append(x,w),e.append(u,L),e.append(u,h),e.append(h,j),e.append(t,g),e.append(t,f),e.append(f,d),e.append(d,c),e.append(d,J),e.append(J,H),e.append(f,A),e.append(A,V),e.append(V,P),e.append(A,Z),e.append(A,D),e.append(D,F),e.insert(m,S,b),e.insert(m,W,b),e.append(W,I),e.append(I,z),e.append(z,T),e.append(z,U),e.append(U,$),e.append(I,E),e.append(E,K),e.append(K,ee),e.append(E,ne),e.append(E,O),e.append(O,te),e.append(W,le),e.append(W,R),e.append(R,B),e.append(B,q),e.append(B,p),e.append(p,ae),e.append(R,X),e.append(X,ie),e.append(ie,ce),e.append(X,pe),e.append(X,se),e.append(se,oe)},p(m,b){b[0]&512&&!e.src_url_equal(r.src,o=m[9][0])&&e.attr(r,"src",o),b[0]&256&&k!==(k=m[8][0]+"")&&e.set_data(v,k),b[0]&128&&y!==(y=m[7][0]+"")&&e.set_data(w,y),b[0]&2&&e.set_data(j,m[1]),b[0]&512&&!e.src_url_equal(c.src,C=m[9][1])&&e.attr(c,"src",C),b[0]&256&&N!==(N=m[8][1]+"")&&e.set_data(H,N),b[0]&128&&M!==(M=m[7][1]+"")&&e.set_data(P,M),b[0]&2&&e.set_data(F,m[1]),b[0]&512&&!e.src_url_equal(T.src,G=m[9][2])&&e.attr(T,"src",G),b[0]&256&&Y!==(Y=m[8][2]+"")&&e.set_data($,Y),b[0]&128&&Q!==(Q=m[7][2]+"")&&e.set_data(ee,Q),b[0]&2&&e.set_data(te,m[1]),b[0]&512&&!e.src_url_equal(q.src,n=m[9][3])&&e.attr(q,"src",n),b[0]&256&&_!==(_=m[8][3]+"")&&e.set_data(ae,_),b[0]&128&&re!==(re=m[7][3]+"")&&e.set_data(ce,re),b[0]&2&&e.set_data(oe,m[1])},d(m){m&&(e.detach(t),e.detach(S),e.detach(W))}}}function xe(l){let t,a=e.ensure_array_like(Array(4)),i=[];for(let r=0;r<a.length;r+=1)i[r]=fe(ge(l,a,r));return{c(){for(let r=0;r<i.length;r+=1)i[r].c();t=e.empty()},m(r,o){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(r,o);e.insert(r,t,o)},p(r,o){if(o[0]&898){a=e.ensure_array_like(Array(4));let s;for(s=0;s<a.length;s+=1){const k=ge(r,a,s);i[s]?i[s].p(k,o):(i[s]=fe(k),i[s].c(),i[s].m(t.parentNode,t))}for(;s<i.length;s+=1)i[s].d(1);i.length=a.length}},d(r){r&&e.detach(t),e.destroy_each(i,r)}}}function fe(l){var j;let t,a,i,r,o,s=l[8][l[50]]+"",k,v,u,x=((j=l[7][l[50]])!=null?j:"")+"",y,w,L,h;return{c(){t=e.element("div"),a=e.element("div"),i=e.element("img"),o=e.element("span"),k=e.text(s),v=e.element("span"),u=e.element("span"),y=e.text(x),w=e.space(),L=e.element("span"),h=e.text(l[1]),e.attr(i,"class","displayCardIcon"),e.src_url_equal(i.src,r=l[9][l[50]])||e.attr(i,"src",r),e.attr(i,"alt",""),e.attr(o,"class","cardLabel"),e.attr(a,"class","iconWrapper"),e.attr(u,"class","jackpotValue"),e.attr(L,"class","jackpot-currency"),e.attr(v,"class","cardTextWrapper"),e.attr(t,"class","displayCard")},m(g,f){e.insert(g,t,f),e.append(t,a),e.append(a,i),e.append(a,o),e.append(o,k),e.append(t,v),e.append(v,u),e.append(u,y),e.append(v,w),e.append(v,L),e.append(L,h)},p(g,f){var d;f[0]&512&&!e.src_url_equal(i.src,r=g[9][g[50]])&&e.attr(i,"src",r),f[0]&256&&s!==(s=g[8][g[50]]+"")&&e.set_data(k,s),f[0]&128&&x!==(x=((d=g[7][g[50]])!=null?d:"")+"")&&e.set_data(y,x),f[0]&2&&e.set_data(h,g[1])},d(g){g&&e.detach(t)}}}function Ce(l){let t;function a(o,s){return o[13]?ve:o[3]?be:_e}let i=a(l),r=i(l);return{c(){t=e.element("div"),r.c()},m(o,s){e.insert(o,t,s),r.m(t,null),l[32](t)},p(o,s){i===(i=a(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),r.d(),l[32](null)}}}function we(l,t,a){let{visualstructure:i=""}=t,{title:r=""}=t,{caticon0:o=""}=t,{caticon1:s=""}=t,{caticon2:k=""}=t,{caticon3:v=""}=t,{iconlabels:u=""}=t,{backgroundsrc:x=""}=t,{currency:y=""}=t,{backgroundsrcmobile:w=""}=t,{titlelogopath:L=""}=t,{lang:h="en"}=t,{clientstyling:j=""}=t,{clientstylingurl:g=""}=t,{translationurl:f=""}=t,{endpoint:d=""}=t,{gameid:c=""}=t,C=window.navigator.userAgent,J=!1,N=!1,H="",A=[],V=[],M=[],P=[],Z=[],D="",F="",S,W=!1,I=!0,z=!1,T;const G=()=>{fetch(f).then(p=>p.json()).then(p=>{Object.keys(p).forEach(_=>{de(_,p[_])})}).catch(p=>{console.log(p)})};Object.keys(ue).forEach(n=>{de(n,ue[n])});const U=["typeSpread","typeLeft"],Y=n=>{var _;const p=(_=n==null?void 0:n.items[0])==null?void 0:_.additionalData;p&&Object.values(p).forEach(ae=>A.push(+ae))},$=n=>{var p;a(6,H=((p=n==null?void 0:n.items[0])==null?void 0:p.vendorLogo)||"")},E=()=>{if(d&&h&&y){let n=new URL(`${d}/v1/casino/jackpots`);n.searchParams.append("filter",`id=${c}`),n.searchParams.append("language",h),n.searchParams.append("additionalDataCurrency",y),fetch(n.href).then(p=>p.json().then(_=>{a(3,I=!1),T=_,V.includes(c)&&(Y(T),$(T))}).catch(_=>{a(13,z=!0),a(3,I=!1),console.error(_)}))}},K=()=>{let n=new URL(`${d}/v1/casino/jackpots/config`);fetch(n.href).then(p=>p.json()).then(p=>{a(30,V=p.egtJackpotIds.map(_=>_))})},Q=()=>{a(4,J=e.isMobile(C)&&window.innerHeight/window.innerWidth>1),a(5,N=ne()),A.length!==0&&a(7,M=ee(A)),a(8,P=u?u.split(",").map(n=>n.trim().toUpperCase()):new Array(4).fill("")),U.includes(i.trim())?a(0,i=i.trim()):(console.warn(`Invalid Attribute Value: "${i}" is not a valid value for the "visualstructure" attribute. Defaulting to "${U[0]}"`),a(0,i=U[0])),a(10,D=w&&J&&!N?w:x),a(11,F=L),a(9,Z=[o,s,k,v])},ee=n=>n.map(p=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(p)),ne=()=>{const n=window.innerHeight/window.innerWidth;return .75<n&&n<1.6},O=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:c},window.location.href),typeof gtag=="function"&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:`${c}`})},te=()=>{let n=document.createElement("style");n.innerHTML=j,S.appendChild(n)},le=()=>{a(12,W=!0);let n=new URL(g),p=document.createElement("style");fetch(n.href).then(_=>_.text()).then(_=>{p.innerHTML=_,setTimeout(()=>{S.appendChild(p)},1),setTimeout(()=>{a(12,W=!1)},500)})},R=()=>{he(h)},B=()=>O();function q(n){e.binding_callbacks[n?"unshift":"push"](()=>{S=n,a(2,S)})}return l.$$set=n=>{"visualstructure"in n&&a(0,i=n.visualstructure),"title"in n&&a(15,r=n.title),"caticon0"in n&&a(16,o=n.caticon0),"caticon1"in n&&a(17,s=n.caticon1),"caticon2"in n&&a(18,k=n.caticon2),"caticon3"in n&&a(19,v=n.caticon3),"iconlabels"in n&&a(20,u=n.iconlabels),"backgroundsrc"in n&&a(21,x=n.backgroundsrc),"currency"in n&&a(1,y=n.currency),"backgroundsrcmobile"in n&&a(22,w=n.backgroundsrcmobile),"titlelogopath"in n&&a(23,L=n.titlelogopath),"lang"in n&&a(24,h=n.lang),"clientstyling"in n&&a(25,j=n.clientstyling),"clientstylingurl"in n&&a(26,g=n.clientstylingurl),"translationurl"in n&&a(27,f=n.translationurl),"endpoint"in n&&a(28,d=n.endpoint),"gameid"in n&&a(29,c=n.gameid)},l.$$.update=()=>{l.$$.dirty[0]&268435456&&d&&K(),l.$$.dirty[0]&33554436&&S&&j&&te(),l.$$.dirty[0]&67108868&&S&&g&&le(),l.$$.dirty[0]&1358954498&&d&&h&&y&&V.length>0&&E(),l.$$.dirty[0]&16777226&&y&&h&&!I&&Q(),l.$$.dirty[0]&16777216&&h&&R(),l.$$.dirty[0]&134217728&&f&&G()},[i,y,S,I,J,N,H,M,P,Z,D,F,W,z,O,r,o,s,k,v,u,x,w,L,h,j,g,f,d,c,V,B,q]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,we,Ce,e.safe_not_equal,{visualstructure:0,title:15,caticon0:16,caticon1:17,caticon2:18,caticon3:19,iconlabels:20,backgroundsrc:21,currency:1,backgroundsrcmobile:22,titlelogopath:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,endpoint:28,gameid:29},ye,[-1,-1])}get visualstructure(){return this.$$.ctx[0]}set visualstructure(t){this.$$set({visualstructure:t}),e.flush()}get title(){return this.$$.ctx[15]}set title(t){this.$$set({title:t}),e.flush()}get caticon0(){return this.$$.ctx[16]}set caticon0(t){this.$$set({caticon0:t}),e.flush()}get caticon1(){return this.$$.ctx[17]}set caticon1(t){this.$$set({caticon1:t}),e.flush()}get caticon2(){return this.$$.ctx[18]}set caticon2(t){this.$$set({caticon2:t}),e.flush()}get caticon3(){return this.$$.ctx[19]}set caticon3(t){this.$$set({caticon3:t}),e.flush()}get iconlabels(){return this.$$.ctx[20]}set iconlabels(t){this.$$set({iconlabels:t}),e.flush()}get backgroundsrc(){return this.$$.ctx[21]}set backgroundsrc(t){this.$$set({backgroundsrc:t}),e.flush()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),e.flush()}get backgroundsrcmobile(){return this.$$.ctx[22]}set backgroundsrcmobile(t){this.$$set({backgroundsrcmobile:t}),e.flush()}get titlelogopath(){return this.$$.ctx[23]}set titlelogopath(t){this.$$set({titlelogopath:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get endpoint(){return this.$$.ctx[28]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get gameid(){return this.$$.ctx[29]}set gameid(t){this.$$set({gameid:t}),e.flush()}}e.create_custom_element(me,{visualstructure:{},title:{},caticon0:{},caticon1:{},caticon2:{},caticon3:{},iconlabels:{},backgroundsrc:{},currency:{},backgroundsrcmobile:{},titlelogopath:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},endpoint:{},gameid:{}},[],[],!0);exports.default=me;