@everymatrix/casino-page-nd 1.44.0 → 1.45.0

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 (55) hide show
  1. package/components/CasinoCalendar-BaOBa8QA.cjs +6 -0
  2. package/components/CasinoCalendar-Cy33jV__.js +4944 -0
  3. package/components/CasinoCalendarDailyDetails-DQQpSkBs.js +605 -0
  4. package/components/CasinoCalendarDailyDetails-GkvtCgJ7.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-CLTZq-09.cjs +1 -0
  6. package/components/CasinoCalendarDailyItem-DRjYmQvY.js +220 -0
  7. package/components/CasinoCollectionsProviders-BRMP9Loe.js +659 -0
  8. package/components/CasinoCollectionsProviders-BVrM9_-J.cjs +1 -0
  9. package/components/CasinoFavoritesSectionNd-AXQ2JUS4.cjs +1 -0
  10. package/components/CasinoFavoritesSectionNd-lR4QQgd8.js +418 -0
  11. package/components/CasinoFilter-CoIMk2Uk.js +628 -0
  12. package/components/CasinoFilter-Dtfc6EDd.cjs +1 -0
  13. package/components/CasinoGameThumbnailNd-DqBttZLW.cjs +39 -0
  14. package/components/CasinoGameThumbnailNd-ibSrwQHV.js +4403 -0
  15. package/components/CasinoGamesCategorySectionNd-D0S49tBe.js +3022 -0
  16. package/components/CasinoGamesCategorySectionNd-gNimye8Z.cjs +1 -0
  17. package/components/CasinoJackpotBanner-C1PFzuTK.js +619 -0
  18. package/components/CasinoJackpotBanner-CLzxeM6r.cjs +1 -0
  19. package/components/CasinoLastPlayedSectionNd-BDeLZhj5.js +563 -0
  20. package/components/CasinoLastPlayedSectionNd-BW2xLmkm.cjs +1 -0
  21. package/components/CasinoMostPlayedSectionNd-B-MVHU_k.cjs +1 -0
  22. package/components/CasinoMostPlayedSectionNd-D_44BcJt.js +580 -0
  23. package/components/CasinoMyGamesNd-CBKbxt--.js +1312 -0
  24. package/components/CasinoMyGamesNd-D6CSTig2.cjs +1 -0
  25. package/components/CasinoPageNd-BTu3kJYN.js +3524 -0
  26. package/components/CasinoPageNd-DdncSxLp.cjs +1 -0
  27. package/components/CasinoRandomGame-DjPEoghb.js +641 -0
  28. package/components/CasinoRandomGame-Dpvg_Gex.cjs +2 -0
  29. package/components/CasinoSearchNd-BuG6WXHV.cjs +1 -0
  30. package/components/CasinoSearchNd-CEBR6Dyh.js +1066 -0
  31. package/components/CasinoSort-C_BKJyhx.js +425 -0
  32. package/components/CasinoSort-xGpk7scM.cjs +1 -0
  33. package/components/CasinoWinners-BOUVtu8N.cjs +1 -0
  34. package/components/CasinoWinners-DcIZJcp-.js +884 -0
  35. package/components/GeneralAnimationLoading-CEONZ0El.cjs +1 -0
  36. package/components/GeneralAnimationLoading-Ci69lr1N.js +75 -0
  37. package/es2015/casino-page-nd.cjs +1 -0
  38. package/es2015/casino-page-nd.js +16 -0
  39. package/package.json +25 -32
  40. package/CHANGELOG.md +0 -13
  41. package/README.md +0 -30
  42. package/dist/casino-page-nd.js +0 -31
  43. package/dist/casino-page-nd.js.map +0 -1
  44. package/index.html +0 -37
  45. package/index.js +0 -1
  46. package/public/favicon.png +0 -0
  47. package/public/reset.css +0 -48
  48. package/rollup.config.js +0 -67
  49. package/src/CasinoPage.svelte +0 -850
  50. package/src/CasinoPage.types.ts +0 -92
  51. package/src/i18n.js +0 -27
  52. package/src/index.ts +0 -4
  53. package/src/translations.js +0 -214
  54. package/stories/CasinoPage.stories.js +0 -13
  55. package/tsconfig.json +0 -6
@@ -0,0 +1,619 @@
1
+ import { I as Te, $ as Se, S as We, i as Ae, f as x, c as Ie, s as Ve, b as Je, e as r, d as s, g as M, C as qe, k as R, m as Ne, n as ze, r as D, G as me, D as V, T as ke, v as i, w as Ue, u as S, A as W, q as Ce, F as Ee, B as De } from "./CasinoCalendar-Cy33jV__.js";
2
+ function we(a, e) {
3
+ Te(a, e);
4
+ }
5
+ function Be(a) {
6
+ Se.set(a);
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
+ };
43
+ function Me(a) {
44
+ Je(a, "svelte-h3d1qc", ':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}.svelte-h3d1qc.svelte-h3d1qc,.svelte-h3d1qc.svelte-h3d1qc::before,.svelte-h3d1qc.svelte-h3d1qc::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper.svelte-h3d1qc.svelte-h3d1qc{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.svelte-h3d1qc.svelte-h3d1qc{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard.svelte-h3d1qc.svelte-h3d1qc{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.svelte-h3d1qc .iconWrapper.svelte-h3d1qc{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard.svelte-h3d1qc .displayCardIcon.svelte-h3d1qc{height:100%;width:auto}.displayCard.svelte-h3d1qc .cardLabel.svelte-h3d1qc{font-size:0.8rem;font-style:italic}.displayCard.svelte-h3d1qc .cardTextWrapper.svelte-h3d1qc{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title.svelte-h3d1qc.svelte-h3d1qc{grid-area:title;display:flex;align-items:center}.title.svelte-h3d1qc img.svelte-h3d1qc{height:50px}.displayContainer.svelte-h3d1qc.svelte-h3d1qc{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer.svelte-h3d1qc .jackpotValue.svelte-h3d1qc{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer.svelte-h3d1qc .jackpot-currency.svelte-h3d1qc{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper.svelte-h3d1qc.svelte-h3d1qc{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread.svelte-h3d1qc.svelte-h3d1qc{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile.svelte-h3d1qc.svelte-h3d1qc{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread.svelte-h3d1qc .pairWrapper.svelte-h3d1qc{justify-content:center}.typeSpread.svelte-h3d1qc .vendorLogo.svelte-h3d1qc{justify-content:flex-end}.typeSpread.svelte-h3d1qc .title.svelte-h3d1qc{justify-content:flex-start}.typeSpread.svelte-h3d1qc .displayContainer.svelte-h3d1qc{justify-content:space-evenly}.typeLeft.svelte-h3d1qc.svelte-h3d1qc{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile.svelte-h3d1qc.svelte-h3d1qc{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile.svelte-h3d1qc .displayContainer.svelte-h3d1qc{margin-top:50px;gap:2.6rem}.typeLeft.svelte-h3d1qc .displayContainer.svelte-h3d1qc{padding-left:2rem;width:auto;gap:2rem}.typeLeft.svelte-h3d1qc .pairWrapper.svelte-h3d1qc{justify-content:space-evenly}.typeLeft.svelte-h3d1qc .title.svelte-h3d1qc{align-items:flex-end}.typeLeft.svelte-h3d1qc .vendorLogo.svelte-h3d1qc{height:44px;width:auto}.mobile.svelte-h3d1qc.svelte-h3d1qc{grid-template-columns:1fr;grid-gap:1rem}.mobile.svelte-h3d1qc .title.svelte-h3d1qc{justify-content:center;align-items:center}.mobile.svelte-h3d1qc .title img.svelte-h3d1qc{height:80px}.mobile.svelte-h3d1qc .displayContainer.svelte-h3d1qc{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile.svelte-h3d1qc .vendorLogo.svelte-h3d1qc{justify-content:center;align-items:center}.mobile.svelte-h3d1qc .displayCard.svelte-h3d1qc{width:40vw}.tablet.svelte-h3d1qc .displayContainer.svelte-h3d1qc{flex-wrap:wrap}.DisplayNone.svelte-h3d1qc.svelte-h3d1qc{display:none}.loadingPrompt.svelte-h3d1qc.svelte-h3d1qc{color:#333}.LoadingSpinner.svelte-h3d1qc.svelte-h3d1qc{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner.svelte-h3d1qc.svelte-h3d1qc:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:svelte-h3d1qc-LoadingSpinner 1.2s linear infinite}@keyframes svelte-h3d1qc-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
45
+ }
46
+ function xe(a, e, t) {
47
+ const n = a.slice();
48
+ return n[48] = e[t], n[50] = t, n;
49
+ }
50
+ function Re(a) {
51
+ let e, t, n, c, h, d, C, k, g, w, y, j, T, q, A;
52
+ function f(o, L) {
53
+ return (
54
+ /*tabletView*/
55
+ o[5] ? Fe : Pe
56
+ );
57
+ }
58
+ let v = f(a), u = v(a);
59
+ return {
60
+ c() {
61
+ e = r("div"), t = r("div"), n = r("div"), c = r("div"), h = D(), d = r("div"), u.c(), C = D(), k = r("div"), g = r("img"), s(c, "class", "vendorLogo svelte-h3d1qc"), me(c, "background-image", "url(" + /*vendorIcon*/
62
+ a[6] + ")"), s(d, "class", "displayContainer svelte-h3d1qc"), V(g.src, w = /*titleLogoImg*/
63
+ a[11]) || s(g, "src", w), s(g, "alt", ""), s(g, "class", "svelte-h3d1qc"), s(k, "class", "title svelte-h3d1qc"), s(n, "class", y = "mainWrapper " + /*visualstructure*/
64
+ a[0] + " " + /*mobileView*/
65
+ (a[4] && !/*tabletView*/
66
+ a[5] ? "mobile" : (
67
+ /*tabletView*/
68
+ a[5] ? "tablet" : ""
69
+ )) + " svelte-h3d1qc"), me(n, "background", "url(" + /*backgroundImg*/
70
+ a[10] + ")"), s(t, "class", "jackpotBanner svelte-h3d1qc"), s(e, "class", j = ke(
71
+ /*displayNone*/
72
+ a[12] ? "DisplayNone" : ""
73
+ ) + " svelte-h3d1qc"), s(e, "part", T = /*displayNone*/
74
+ a[12] ? "DisplayNone" : "");
75
+ },
76
+ m(o, L) {
77
+ M(o, e, L), i(e, t), i(t, n), i(n, c), i(n, h), i(n, d), u.m(d, null), i(n, C), i(n, k), i(k, g), q || (A = Ue(
78
+ t,
79
+ "click",
80
+ /*click_handler*/
81
+ a[31]
82
+ ), q = !0);
83
+ },
84
+ p(o, L) {
85
+ L[0] & /*vendorIcon*/
86
+ 64 && me(c, "background-image", "url(" + /*vendorIcon*/
87
+ o[6] + ")"), v === (v = f(o)) && u ? u.p(o, L) : (u.d(1), u = v(o), u && (u.c(), u.m(d, null))), L[0] & /*titleLogoImg*/
88
+ 2048 && !V(g.src, w = /*titleLogoImg*/
89
+ o[11]) && s(g, "src", w), L[0] & /*visualstructure, mobileView, tabletView*/
90
+ 49 && y !== (y = "mainWrapper " + /*visualstructure*/
91
+ o[0] + " " + /*mobileView*/
92
+ (o[4] && !/*tabletView*/
93
+ o[5] ? "mobile" : (
94
+ /*tabletView*/
95
+ o[5] ? "tablet" : ""
96
+ )) + " svelte-h3d1qc") && s(n, "class", y), L[0] & /*backgroundImg*/
97
+ 1024 && me(n, "background", "url(" + /*backgroundImg*/
98
+ o[10] + ")"), L[0] & /*displayNone*/
99
+ 4096 && j !== (j = ke(
100
+ /*displayNone*/
101
+ o[12] ? "DisplayNone" : ""
102
+ ) + " svelte-h3d1qc") && s(e, "class", j), L[0] & /*displayNone*/
103
+ 4096 && T !== (T = /*displayNone*/
104
+ o[12] ? "DisplayNone" : "") && s(e, "part", T);
105
+ },
106
+ d(o) {
107
+ o && R(e), u.d(), q = !1, A();
108
+ }
109
+ };
110
+ }
111
+ function He(a) {
112
+ let e;
113
+ return {
114
+ c() {
115
+ e = r("div"), s(e, "class", "LoadingSpinner svelte-h3d1qc"), s(e, "part", "LoadingSpinner");
116
+ },
117
+ m(t, n) {
118
+ M(t, e, n);
119
+ },
120
+ p: qe,
121
+ d(t) {
122
+ t && R(e);
123
+ }
124
+ };
125
+ }
126
+ function Oe(a) {
127
+ let e;
128
+ return {
129
+ c() {
130
+ e = r("p"), e.textContent = "500 Server error", s(e, "class", "svelte-h3d1qc");
131
+ },
132
+ m(t, n) {
133
+ M(t, e, n);
134
+ },
135
+ p: qe,
136
+ d(t) {
137
+ t && R(e);
138
+ }
139
+ };
140
+ }
141
+ function Fe(a) {
142
+ let e, t, n, c, h, d, C = (
143
+ /*formattedLabels*/
144
+ a[8][0] + ""
145
+ ), k, g, w, y = (
146
+ /*formattedJackpotValues*/
147
+ a[7][0] + ""
148
+ ), j, T, q, A, f, v, u, o, L, H, O = (
149
+ /*formattedLabels*/
150
+ a[8][1] + ""
151
+ ), $, z, B, Y = (
152
+ /*formattedJackpotValues*/
153
+ a[7][1] + ""
154
+ ), ee, ce, K, te, J, N, U, F, I, le, P, se = (
155
+ /*formattedLabels*/
156
+ a[8][2] + ""
157
+ ), re, G, ae, ie = (
158
+ /*formattedJackpotValues*/
159
+ a[7][2] + ""
160
+ ), de, pe, Q, oe, ue, X, Z, E, l, p, b = (
161
+ /*formattedLabels*/
162
+ a[8][3] + ""
163
+ ), he, ne, ge, fe = (
164
+ /*formattedJackpotValues*/
165
+ a[7][3] + ""
166
+ ), ye, _e, ve, be;
167
+ return {
168
+ c() {
169
+ e = r("div"), t = r("div"), n = r("div"), c = r("img"), d = r("span"), k = S(C), g = r("span"), w = r("span"), j = S(y), T = D(), q = r("span"), A = S(
170
+ /*currency*/
171
+ a[1]
172
+ ), f = D(), v = r("div"), u = r("div"), o = r("img"), H = r("span"), $ = S(O), z = r("span"), B = r("span"), ee = S(Y), ce = D(), K = r("span"), te = S(
173
+ /*currency*/
174
+ a[1]
175
+ ), J = D(), N = r("div"), U = r("div"), F = r("div"), I = r("img"), P = r("span"), re = S(se), G = r("span"), ae = r("span"), de = S(ie), pe = D(), Q = r("span"), oe = S(
176
+ /*currency*/
177
+ a[1]
178
+ ), ue = D(), X = r("div"), Z = r("div"), E = r("img"), p = r("span"), he = S(b), ne = r("span"), ge = r("span"), ye = S(fe), _e = D(), ve = r("span"), be = S(
179
+ /*currency*/
180
+ a[1]
181
+ ), s(c, "class", "displayCardIcon svelte-h3d1qc"), V(c.src, h = /*caticons*/
182
+ a[9][0]) || s(c, "src", h), s(c, "alt", ""), s(d, "class", "cardLabel svelte-h3d1qc"), s(n, "class", "iconWrapper svelte-h3d1qc"), s(w, "class", "jackpotValue svelte-h3d1qc"), s(q, "class", "jackpot-currency svelte-h3d1qc"), s(g, "class", "cardTextWrapper svelte-h3d1qc"), s(t, "class", "displayCard svelte-h3d1qc"), s(o, "class", "displayCardIcon svelte-h3d1qc"), V(o.src, L = /*caticons*/
183
+ a[9][1]) || s(o, "src", L), s(o, "alt", ""), s(H, "class", "cardLabel svelte-h3d1qc"), s(u, "class", "iconWrapper svelte-h3d1qc"), s(B, "class", "jackpotValue svelte-h3d1qc"), s(K, "class", "jackpot-currency svelte-h3d1qc"), s(z, "class", "cardTextWrapper svelte-h3d1qc"), s(v, "class", "displayCard svelte-h3d1qc"), s(e, "class", "pairWrapper svelte-h3d1qc"), s(I, "class", "displayCardIcon svelte-h3d1qc"), V(I.src, le = /*caticons*/
184
+ a[9][2]) || s(I, "src", le), s(I, "alt", ""), s(P, "class", "cardLabel svelte-h3d1qc"), s(F, "class", "iconWrapper svelte-h3d1qc"), s(ae, "class", "jackpotValue svelte-h3d1qc"), s(Q, "class", "jackpot-currency svelte-h3d1qc"), s(G, "class", "cardTextWrapper svelte-h3d1qc"), s(U, "class", "displayCard svelte-h3d1qc"), s(E, "class", "displayCardIcon svelte-h3d1qc"), V(E.src, l = /*caticons*/
185
+ a[9][3]) || s(E, "src", l), s(E, "alt", ""), s(p, "class", "cardLabel svelte-h3d1qc"), s(Z, "class", "iconWrapper svelte-h3d1qc"), s(ge, "class", "jackpotValue svelte-h3d1qc"), s(ve, "class", "jackpot-currency svelte-h3d1qc"), s(ne, "class", "cardTextWrapper svelte-h3d1qc"), s(X, "class", "displayCard svelte-h3d1qc"), s(N, "class", "pairWrapper svelte-h3d1qc");
186
+ },
187
+ m(m, _) {
188
+ M(m, e, _), i(e, t), i(t, n), i(n, c), i(n, d), i(d, k), i(t, g), i(g, w), i(w, j), i(g, T), i(g, q), i(q, A), i(e, f), i(e, v), i(v, u), i(u, o), i(u, H), i(H, $), i(v, z), i(z, B), i(B, ee), i(z, ce), i(z, K), i(K, te), M(m, J, _), M(m, N, _), i(N, U), i(U, F), i(F, I), i(F, P), i(P, re), i(U, G), i(G, ae), i(ae, de), i(G, pe), i(G, Q), i(Q, oe), i(N, ue), i(N, X), i(X, Z), i(Z, E), i(Z, p), i(p, he), i(X, ne), i(ne, ge), i(ge, ye), i(ne, _e), i(ne, ve), i(ve, be);
189
+ },
190
+ p(m, _) {
191
+ _[0] & /*caticons*/
192
+ 512 && !V(c.src, h = /*caticons*/
193
+ m[9][0]) && s(c, "src", h), _[0] & /*formattedLabels*/
194
+ 256 && C !== (C = /*formattedLabels*/
195
+ m[8][0] + "") && W(k, C), _[0] & /*formattedJackpotValues*/
196
+ 128 && y !== (y = /*formattedJackpotValues*/
197
+ m[7][0] + "") && W(j, y), _[0] & /*currency*/
198
+ 2 && W(
199
+ A,
200
+ /*currency*/
201
+ m[1]
202
+ ), _[0] & /*caticons*/
203
+ 512 && !V(o.src, L = /*caticons*/
204
+ m[9][1]) && s(o, "src", L), _[0] & /*formattedLabels*/
205
+ 256 && O !== (O = /*formattedLabels*/
206
+ m[8][1] + "") && W($, O), _[0] & /*formattedJackpotValues*/
207
+ 128 && Y !== (Y = /*formattedJackpotValues*/
208
+ m[7][1] + "") && W(ee, Y), _[0] & /*currency*/
209
+ 2 && W(
210
+ te,
211
+ /*currency*/
212
+ m[1]
213
+ ), _[0] & /*caticons*/
214
+ 512 && !V(I.src, le = /*caticons*/
215
+ m[9][2]) && s(I, "src", le), _[0] & /*formattedLabels*/
216
+ 256 && se !== (se = /*formattedLabels*/
217
+ m[8][2] + "") && W(re, se), _[0] & /*formattedJackpotValues*/
218
+ 128 && ie !== (ie = /*formattedJackpotValues*/
219
+ m[7][2] + "") && W(de, ie), _[0] & /*currency*/
220
+ 2 && W(
221
+ oe,
222
+ /*currency*/
223
+ m[1]
224
+ ), _[0] & /*caticons*/
225
+ 512 && !V(E.src, l = /*caticons*/
226
+ m[9][3]) && s(E, "src", l), _[0] & /*formattedLabels*/
227
+ 256 && b !== (b = /*formattedLabels*/
228
+ m[8][3] + "") && W(he, b), _[0] & /*formattedJackpotValues*/
229
+ 128 && fe !== (fe = /*formattedJackpotValues*/
230
+ m[7][3] + "") && W(ye, fe), _[0] & /*currency*/
231
+ 2 && W(
232
+ be,
233
+ /*currency*/
234
+ m[1]
235
+ );
236
+ },
237
+ d(m) {
238
+ m && (R(e), R(J), R(N));
239
+ }
240
+ };
241
+ }
242
+ function Pe(a) {
243
+ let e, t = Ce(Array(4)), n = [];
244
+ for (let c = 0; c < t.length; c += 1)
245
+ n[c] = je(xe(a, t, c));
246
+ return {
247
+ c() {
248
+ for (let c = 0; c < n.length; c += 1)
249
+ n[c].c();
250
+ e = Ee();
251
+ },
252
+ m(c, h) {
253
+ for (let d = 0; d < n.length; d += 1)
254
+ n[d] && n[d].m(c, h);
255
+ M(c, e, h);
256
+ },
257
+ p(c, h) {
258
+ if (h[0] & /*currency, formattedJackpotValues, formattedLabels, caticons*/
259
+ 898) {
260
+ t = Ce(Array(4));
261
+ let d;
262
+ for (d = 0; d < t.length; d += 1) {
263
+ const C = xe(c, t, d);
264
+ n[d] ? n[d].p(C, h) : (n[d] = je(C), n[d].c(), n[d].m(e.parentNode, e));
265
+ }
266
+ for (; d < n.length; d += 1)
267
+ n[d].d(1);
268
+ n.length = t.length;
269
+ }
270
+ },
271
+ d(c) {
272
+ c && R(e), De(n, c);
273
+ }
274
+ };
275
+ }
276
+ function je(a) {
277
+ var A;
278
+ let e, t, n, c, h, d = (
279
+ /*formattedLabels*/
280
+ a[8][
281
+ /*i*/
282
+ a[50]
283
+ ] + ""
284
+ ), C, k, g, w = (
285
+ /*formattedJackpotValues*/
286
+ ((A = a[7][
287
+ /*i*/
288
+ a[50]
289
+ ]) != null ? A : "") + ""
290
+ ), y, j, T, q;
291
+ return {
292
+ c() {
293
+ e = r("div"), t = r("div"), n = r("img"), h = r("span"), C = S(d), k = r("span"), g = r("span"), y = S(w), j = D(), T = r("span"), q = S(
294
+ /*currency*/
295
+ a[1]
296
+ ), s(n, "class", "displayCardIcon svelte-h3d1qc"), V(n.src, c = /*caticons*/
297
+ a[9][
298
+ /*i*/
299
+ a[50]
300
+ ]) || s(n, "src", c), s(n, "alt", ""), s(h, "class", "cardLabel svelte-h3d1qc"), s(t, "class", "iconWrapper svelte-h3d1qc"), s(g, "class", "jackpotValue svelte-h3d1qc"), s(T, "class", "jackpot-currency svelte-h3d1qc"), s(k, "class", "cardTextWrapper svelte-h3d1qc"), s(e, "class", "displayCard svelte-h3d1qc");
301
+ },
302
+ m(f, v) {
303
+ M(f, e, v), i(e, t), i(t, n), i(t, h), i(h, C), i(e, k), i(k, g), i(g, y), i(k, j), i(k, T), i(T, q);
304
+ },
305
+ p(f, v) {
306
+ var u;
307
+ v[0] & /*caticons*/
308
+ 512 && !V(n.src, c = /*caticons*/
309
+ f[9][
310
+ /*i*/
311
+ f[50]
312
+ ]) && s(n, "src", c), v[0] & /*formattedLabels*/
313
+ 256 && d !== (d = /*formattedLabels*/
314
+ f[8][
315
+ /*i*/
316
+ f[50]
317
+ ] + "") && W(C, d), v[0] & /*formattedJackpotValues*/
318
+ 128 && w !== (w = /*formattedJackpotValues*/
319
+ ((u = f[7][
320
+ /*i*/
321
+ f[50]
322
+ ]) != null ? u : "") + "") && W(y, w), v[0] & /*currency*/
323
+ 2 && W(
324
+ q,
325
+ /*currency*/
326
+ f[1]
327
+ );
328
+ },
329
+ d(f) {
330
+ f && R(e);
331
+ }
332
+ };
333
+ }
334
+ function Ge(a) {
335
+ let e;
336
+ function t(h, d) {
337
+ return (
338
+ /*hasErrors*/
339
+ h[13] ? Oe : (
340
+ /*isLoading*/
341
+ h[3] ? He : Re
342
+ )
343
+ );
344
+ }
345
+ let n = t(a), c = n(a);
346
+ return {
347
+ c() {
348
+ e = r("div"), c.c(), s(e, "class", "svelte-h3d1qc");
349
+ },
350
+ m(h, d) {
351
+ M(h, e, d), c.m(e, null), a[32](e);
352
+ },
353
+ p(h, d) {
354
+ n === (n = t(h)) && c ? c.p(h, d) : (c.d(1), c = n(h), c && (c.c(), c.m(e, null)));
355
+ },
356
+ i: qe,
357
+ o: qe,
358
+ d(h) {
359
+ h && R(e), c.d(), a[32](null);
360
+ }
361
+ };
362
+ }
363
+ function Ye(a, e, t) {
364
+ let { visualstructure: n = "" } = e, { title: c = "" } = e, { caticon0: h = "" } = e, { caticon1: d = "" } = e, { caticon2: C = "" } = e, { caticon3: k = "" } = e, { iconlabels: g = "" } = e, { backgroundsrc: w = "" } = e, { currency: y = "" } = e, { backgroundsrcmobile: j = "" } = e, { titlelogopath: T = "" } = e, { lang: q = "en" } = e, { clientstyling: A = "" } = e, { clientstylingurl: f = "" } = e, { translationurl: v = "" } = e, { endpoint: u = "" } = e, { gameid: o = "" } = e, L = window.navigator.userAgent, H = !1, O = !1, $ = "", z = [], B = [], Y = [], ee = [], ce = [], K = "", te = "", J, N = !1, U = !0, F = !1, I;
365
+ const le = () => {
366
+ fetch(v).then((p) => p.json()).then((p) => {
367
+ Object.keys(p).forEach((b) => {
368
+ we(b, p[b]);
369
+ });
370
+ }).catch((p) => {
371
+ console.log(p);
372
+ });
373
+ };
374
+ Object.keys(Le).forEach((l) => {
375
+ we(l, Le[l]);
376
+ });
377
+ const P = ["typeSpread", "typeLeft"], se = (l) => {
378
+ var b;
379
+ const p = (b = l == null ? void 0 : l.items[0]) == null ? void 0 : b.additionalData;
380
+ p && Object.values(p).forEach((he) => z.push(+he));
381
+ }, re = (l) => {
382
+ var p;
383
+ t(6, $ = ((p = l == null ? void 0 : l.items[0]) == null ? void 0 : p.vendorLogo) || "");
384
+ }, G = () => {
385
+ if (u && q && y) {
386
+ let l = new URL(`${u}/v1/casino/jackpots`);
387
+ l.searchParams.append("filter", `id=${o}`), l.searchParams.append("language", q), l.searchParams.append("additionalDataCurrency", y), fetch(l.href).then((p) => p.json().then((b) => {
388
+ t(3, U = !1), I = b, B.includes(o) && (se(I), re(I));
389
+ }).catch((b) => {
390
+ t(13, F = !0), t(3, U = !1), console.error(b);
391
+ }));
392
+ }
393
+ }, ae = () => {
394
+ let l = new URL(`${u}/v1/casino/jackpots/config`);
395
+ fetch(l.href).then((p) => p.json()).then((p) => {
396
+ t(30, B = p.egtJackpotIds.map((b) => b));
397
+ });
398
+ }, ie = () => {
399
+ t(4, H = Ne(L) && window.innerHeight / window.innerWidth > 1), t(5, O = pe()), z.length !== 0 && t(7, Y = de(z)), t(8, ee = g ? g.split(",").map((l) => l.trim().toUpperCase()) : new Array(4).fill("")), P.includes(n.trim()) ? t(0, n = n.trim()) : (console.warn(`Invalid Attribute Value: "${n}" is not a valid value for the "visualstructure" attribute. Defaulting to "${P[0]}"`), t(0, n = P[0])), t(10, K = j && H && !O ? j : w), t(11, te = T), t(9, ce = [h, d, C, k]);
400
+ }, de = (l) => l.map((p) => Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(p)), pe = () => {
401
+ const l = window.innerHeight / window.innerWidth;
402
+ return 0.75 < l && l < 1.6;
403
+ }, Q = () => {
404
+ window.postMessage({ type: "JackpotBannerClicked", gameid: o }, window.location.href), typeof gtag == "function" && gtag("event", "JackpotBannerClicked", {
405
+ context: "JackpotBanner",
406
+ gameId: `${o}`
407
+ });
408
+ }, oe = () => {
409
+ let l = document.createElement("style");
410
+ l.innerHTML = A, J.appendChild(l);
411
+ }, ue = () => {
412
+ t(12, N = !0);
413
+ let l = new URL(f), p = document.createElement("style");
414
+ fetch(l.href).then((b) => b.text()).then((b) => {
415
+ p.innerHTML = b, setTimeout(
416
+ () => {
417
+ J.appendChild(p);
418
+ },
419
+ 1
420
+ ), setTimeout(
421
+ () => {
422
+ t(12, N = !1);
423
+ },
424
+ 500
425
+ );
426
+ });
427
+ }, X = () => {
428
+ Be(q);
429
+ }, Z = () => Q();
430
+ function E(l) {
431
+ ze[l ? "unshift" : "push"](() => {
432
+ J = l, t(2, J);
433
+ });
434
+ }
435
+ return a.$$set = (l) => {
436
+ "visualstructure" in l && t(0, n = l.visualstructure), "title" in l && t(15, c = l.title), "caticon0" in l && t(16, h = l.caticon0), "caticon1" in l && t(17, d = l.caticon1), "caticon2" in l && t(18, C = l.caticon2), "caticon3" in l && t(19, k = l.caticon3), "iconlabels" in l && t(20, g = l.iconlabels), "backgroundsrc" in l && t(21, w = l.backgroundsrc), "currency" in l && t(1, y = l.currency), "backgroundsrcmobile" in l && t(22, j = l.backgroundsrcmobile), "titlelogopath" in l && t(23, T = l.titlelogopath), "lang" in l && t(24, q = l.lang), "clientstyling" in l && t(25, A = l.clientstyling), "clientstylingurl" in l && t(26, f = l.clientstylingurl), "translationurl" in l && t(27, v = l.translationurl), "endpoint" in l && t(28, u = l.endpoint), "gameid" in l && t(29, o = l.gameid);
437
+ }, a.$$.update = () => {
438
+ a.$$.dirty[0] & /*endpoint*/
439
+ 268435456 && u && ae(), a.$$.dirty[0] & /*customStylingContainer, clientstyling*/
440
+ 33554436 && J && A && oe(), a.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
441
+ 67108868 && J && f && ue(), a.$$.dirty[0] & /*endpoint, lang, currency, validGameIds*/
442
+ 1358954498 && u && q && y && B.length > 0 && G(), a.$$.dirty[0] & /*currency, lang, isLoading*/
443
+ 16777226 && y && q && !U && ie(), a.$$.dirty[0] & /*lang*/
444
+ 16777216 && q && X(), a.$$.dirty[0] & /*translationurl*/
445
+ 134217728 && v && le();
446
+ }, [
447
+ n,
448
+ y,
449
+ J,
450
+ U,
451
+ H,
452
+ O,
453
+ $,
454
+ Y,
455
+ ee,
456
+ ce,
457
+ K,
458
+ te,
459
+ N,
460
+ F,
461
+ Q,
462
+ c,
463
+ h,
464
+ d,
465
+ C,
466
+ k,
467
+ g,
468
+ w,
469
+ j,
470
+ T,
471
+ q,
472
+ A,
473
+ f,
474
+ v,
475
+ u,
476
+ o,
477
+ B,
478
+ Z,
479
+ E
480
+ ];
481
+ }
482
+ class Ke extends We {
483
+ constructor(e) {
484
+ super(), Ae(
485
+ this,
486
+ e,
487
+ Ye,
488
+ Ge,
489
+ Ve,
490
+ {
491
+ visualstructure: 0,
492
+ title: 15,
493
+ caticon0: 16,
494
+ caticon1: 17,
495
+ caticon2: 18,
496
+ caticon3: 19,
497
+ iconlabels: 20,
498
+ backgroundsrc: 21,
499
+ currency: 1,
500
+ backgroundsrcmobile: 22,
501
+ titlelogopath: 23,
502
+ lang: 24,
503
+ clientstyling: 25,
504
+ clientstylingurl: 26,
505
+ translationurl: 27,
506
+ endpoint: 28,
507
+ gameid: 29
508
+ },
509
+ Me,
510
+ [-1, -1]
511
+ );
512
+ }
513
+ get visualstructure() {
514
+ return this.$$.ctx[0];
515
+ }
516
+ set visualstructure(e) {
517
+ this.$$set({ visualstructure: e }), x();
518
+ }
519
+ get title() {
520
+ return this.$$.ctx[15];
521
+ }
522
+ set title(e) {
523
+ this.$$set({ title: e }), x();
524
+ }
525
+ get caticon0() {
526
+ return this.$$.ctx[16];
527
+ }
528
+ set caticon0(e) {
529
+ this.$$set({ caticon0: e }), x();
530
+ }
531
+ get caticon1() {
532
+ return this.$$.ctx[17];
533
+ }
534
+ set caticon1(e) {
535
+ this.$$set({ caticon1: e }), x();
536
+ }
537
+ get caticon2() {
538
+ return this.$$.ctx[18];
539
+ }
540
+ set caticon2(e) {
541
+ this.$$set({ caticon2: e }), x();
542
+ }
543
+ get caticon3() {
544
+ return this.$$.ctx[19];
545
+ }
546
+ set caticon3(e) {
547
+ this.$$set({ caticon3: e }), x();
548
+ }
549
+ get iconlabels() {
550
+ return this.$$.ctx[20];
551
+ }
552
+ set iconlabels(e) {
553
+ this.$$set({ iconlabels: e }), x();
554
+ }
555
+ get backgroundsrc() {
556
+ return this.$$.ctx[21];
557
+ }
558
+ set backgroundsrc(e) {
559
+ this.$$set({ backgroundsrc: e }), x();
560
+ }
561
+ get currency() {
562
+ return this.$$.ctx[1];
563
+ }
564
+ set currency(e) {
565
+ this.$$set({ currency: e }), x();
566
+ }
567
+ get backgroundsrcmobile() {
568
+ return this.$$.ctx[22];
569
+ }
570
+ set backgroundsrcmobile(e) {
571
+ this.$$set({ backgroundsrcmobile: e }), x();
572
+ }
573
+ get titlelogopath() {
574
+ return this.$$.ctx[23];
575
+ }
576
+ set titlelogopath(e) {
577
+ this.$$set({ titlelogopath: e }), x();
578
+ }
579
+ get lang() {
580
+ return this.$$.ctx[24];
581
+ }
582
+ set lang(e) {
583
+ this.$$set({ lang: e }), x();
584
+ }
585
+ get clientstyling() {
586
+ return this.$$.ctx[25];
587
+ }
588
+ set clientstyling(e) {
589
+ this.$$set({ clientstyling: e }), x();
590
+ }
591
+ get clientstylingurl() {
592
+ return this.$$.ctx[26];
593
+ }
594
+ set clientstylingurl(e) {
595
+ this.$$set({ clientstylingurl: e }), x();
596
+ }
597
+ get translationurl() {
598
+ return this.$$.ctx[27];
599
+ }
600
+ set translationurl(e) {
601
+ this.$$set({ translationurl: e }), x();
602
+ }
603
+ get endpoint() {
604
+ return this.$$.ctx[28];
605
+ }
606
+ set endpoint(e) {
607
+ this.$$set({ endpoint: e }), x();
608
+ }
609
+ get gameid() {
610
+ return this.$$.ctx[29];
611
+ }
612
+ set gameid(e) {
613
+ this.$$set({ gameid: e }), x();
614
+ }
615
+ }
616
+ Ie(Ke, { visualstructure: {}, title: {}, caticon0: {}, caticon1: {}, caticon2: {}, caticon3: {}, iconlabels: {}, backgroundsrc: {}, currency: {}, backgroundsrcmobile: {}, titlelogopath: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, endpoint: {}, gameid: {} }, [], [], !0);
617
+ export {
618
+ Ke as default
619
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BaOBa8QA.cjs");function pe(n,t){e.addMessages(n,t)}function ve(n){e.$locale.set(n)}const he={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..."}};function me(n){e.append_styles(n,"svelte-h3d1qc",':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}.svelte-h3d1qc.svelte-h3d1qc,.svelte-h3d1qc.svelte-h3d1qc::before,.svelte-h3d1qc.svelte-h3d1qc::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper.svelte-h3d1qc.svelte-h3d1qc{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.svelte-h3d1qc.svelte-h3d1qc{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard.svelte-h3d1qc.svelte-h3d1qc{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.svelte-h3d1qc .iconWrapper.svelte-h3d1qc{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard.svelte-h3d1qc .displayCardIcon.svelte-h3d1qc{height:100%;width:auto}.displayCard.svelte-h3d1qc .cardLabel.svelte-h3d1qc{font-size:0.8rem;font-style:italic}.displayCard.svelte-h3d1qc .cardTextWrapper.svelte-h3d1qc{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title.svelte-h3d1qc.svelte-h3d1qc{grid-area:title;display:flex;align-items:center}.title.svelte-h3d1qc img.svelte-h3d1qc{height:50px}.displayContainer.svelte-h3d1qc.svelte-h3d1qc{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer.svelte-h3d1qc .jackpotValue.svelte-h3d1qc{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer.svelte-h3d1qc .jackpot-currency.svelte-h3d1qc{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper.svelte-h3d1qc.svelte-h3d1qc{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread.svelte-h3d1qc.svelte-h3d1qc{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile.svelte-h3d1qc.svelte-h3d1qc{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread.svelte-h3d1qc .pairWrapper.svelte-h3d1qc{justify-content:center}.typeSpread.svelte-h3d1qc .vendorLogo.svelte-h3d1qc{justify-content:flex-end}.typeSpread.svelte-h3d1qc .title.svelte-h3d1qc{justify-content:flex-start}.typeSpread.svelte-h3d1qc .displayContainer.svelte-h3d1qc{justify-content:space-evenly}.typeLeft.svelte-h3d1qc.svelte-h3d1qc{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile.svelte-h3d1qc.svelte-h3d1qc{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile.svelte-h3d1qc .displayContainer.svelte-h3d1qc{margin-top:50px;gap:2.6rem}.typeLeft.svelte-h3d1qc .displayContainer.svelte-h3d1qc{padding-left:2rem;width:auto;gap:2rem}.typeLeft.svelte-h3d1qc .pairWrapper.svelte-h3d1qc{justify-content:space-evenly}.typeLeft.svelte-h3d1qc .title.svelte-h3d1qc{align-items:flex-end}.typeLeft.svelte-h3d1qc .vendorLogo.svelte-h3d1qc{height:44px;width:auto}.mobile.svelte-h3d1qc.svelte-h3d1qc{grid-template-columns:1fr;grid-gap:1rem}.mobile.svelte-h3d1qc .title.svelte-h3d1qc{justify-content:center;align-items:center}.mobile.svelte-h3d1qc .title img.svelte-h3d1qc{height:80px}.mobile.svelte-h3d1qc .displayContainer.svelte-h3d1qc{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile.svelte-h3d1qc .vendorLogo.svelte-h3d1qc{justify-content:center;align-items:center}.mobile.svelte-h3d1qc .displayCard.svelte-h3d1qc{width:40vw}.tablet.svelte-h3d1qc .displayContainer.svelte-h3d1qc{flex-wrap:wrap}.DisplayNone.svelte-h3d1qc.svelte-h3d1qc{display:none}.loadingPrompt.svelte-h3d1qc.svelte-h3d1qc{color:#333}.LoadingSpinner.svelte-h3d1qc.svelte-h3d1qc{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner.svelte-h3d1qc.svelte-h3d1qc:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:svelte-h3d1qc-LoadingSpinner 1.2s linear infinite}@keyframes svelte-h3d1qc-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function ue(n,t,l){const s=n.slice();return s[48]=t[l],s[50]=l,s}function qe(n){let t,l,s,i,d,r,b,_,h,k,m,x,w,v,L;function u(c,C){return c[5]?be:ke}let g=u(n),p=g(n);return{c(){t=e.element("div"),l=e.element("div"),s=e.element("div"),i=e.element("div"),d=e.space(),r=e.element("div"),p.c(),b=e.space(),_=e.element("div"),h=e.element("img"),e.attr(i,"class","vendorLogo svelte-h3d1qc"),e.set_style(i,"background-image","url("+n[6]+")"),e.attr(r,"class","displayContainer svelte-h3d1qc"),e.src_url_equal(h.src,k=n[11])||e.attr(h,"src",k),e.attr(h,"alt",""),e.attr(h,"class","svelte-h3d1qc"),e.attr(_,"class","title svelte-h3d1qc"),e.attr(s,"class",m="mainWrapper "+n[0]+" "+(n[4]&&!n[5]?"mobile":n[5]?"tablet":"")+" svelte-h3d1qc"),e.set_style(s,"background","url("+n[10]+")"),e.attr(l,"class","jackpotBanner svelte-h3d1qc"),e.attr(t,"class",x=e.null_to_empty(n[12]?"DisplayNone":"")+" svelte-h3d1qc"),e.attr(t,"part",w=n[12]?"DisplayNone":"")},m(c,C){e.insert(c,t,C),e.append(t,l),e.append(l,s),e.append(s,i),e.append(s,d),e.append(s,r),p.m(r,null),e.append(s,b),e.append(s,_),e.append(_,h),v||(L=e.listen(l,"click",n[31]),v=!0)},p(c,C){C[0]&64&&e.set_style(i,"background-image","url("+c[6]+")"),g===(g=u(c))&&p?p.p(c,C):(p.d(1),p=g(c),p&&(p.c(),p.m(r,null))),C[0]&2048&&!e.src_url_equal(h.src,k=c[11])&&e.attr(h,"src",k),C[0]&49&&m!==(m="mainWrapper "+c[0]+" "+(c[4]&&!c[5]?"mobile":c[5]?"tablet":"")+" svelte-h3d1qc")&&e.attr(s,"class",m),C[0]&1024&&e.set_style(s,"background","url("+c[10]+")"),C[0]&4096&&x!==(x=e.null_to_empty(c[12]?"DisplayNone":"")+" svelte-h3d1qc")&&e.attr(t,"class",x),C[0]&4096&&w!==(w=c[12]?"DisplayNone":"")&&e.attr(t,"part",w)},d(c){c&&e.detach(t),p.d(),v=!1,L()}}}function ye(n){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner svelte-h3d1qc"),e.attr(t,"part","LoadingSpinner")},m(l,s){e.insert(l,t,s)},p:e.noop,d(l){l&&e.detach(t)}}}function _e(n){let t;return{c(){t=e.element("p"),t.textContent="500 Server error",e.attr(t,"class","svelte-h3d1qc")},m(l,s){e.insert(l,t,s)},p:e.noop,d(l){l&&e.detach(t)}}}function be(n){let t,l,s,i,d,r,b=n[8][0]+"",_,h,k,m=n[7][0]+"",x,w,v,L,u,g,p,c,C,J,N=n[8][1]+"",H,W,V,M=n[7][1]+"",P,Z,D,F,T,S,A,z,j,G,U,Y=n[8][2]+"",$,E,K,Q=n[7][2]+"",ee,ae,O,te,ne,R,B,I,a,o,q=n[8][3]+"",le,X,se,ie=n[7][3]+"",ce,oe,re,de;return{c(){t=e.element("div"),l=e.element("div"),s=e.element("div"),i=e.element("img"),r=e.element("span"),_=e.text(b),h=e.element("span"),k=e.element("span"),x=e.text(m),w=e.space(),v=e.element("span"),L=e.text(n[1]),u=e.space(),g=e.element("div"),p=e.element("div"),c=e.element("img"),J=e.element("span"),H=e.text(N),W=e.element("span"),V=e.element("span"),P=e.text(M),Z=e.space(),D=e.element("span"),F=e.text(n[1]),T=e.space(),S=e.element("div"),A=e.element("div"),z=e.element("div"),j=e.element("img"),U=e.element("span"),$=e.text(Y),E=e.element("span"),K=e.element("span"),ee=e.text(Q),ae=e.space(),O=e.element("span"),te=e.text(n[1]),ne=e.space(),R=e.element("div"),B=e.element("div"),I=e.element("img"),o=e.element("span"),le=e.text(q),X=e.element("span"),se=e.element("span"),ce=e.text(ie),oe=e.space(),re=e.element("span"),de=e.text(n[1]),e.attr(i,"class","displayCardIcon svelte-h3d1qc"),e.src_url_equal(i.src,d=n[9][0])||e.attr(i,"src",d),e.attr(i,"alt",""),e.attr(r,"class","cardLabel svelte-h3d1qc"),e.attr(s,"class","iconWrapper svelte-h3d1qc"),e.attr(k,"class","jackpotValue svelte-h3d1qc"),e.attr(v,"class","jackpot-currency svelte-h3d1qc"),e.attr(h,"class","cardTextWrapper svelte-h3d1qc"),e.attr(l,"class","displayCard svelte-h3d1qc"),e.attr(c,"class","displayCardIcon svelte-h3d1qc"),e.src_url_equal(c.src,C=n[9][1])||e.attr(c,"src",C),e.attr(c,"alt",""),e.attr(J,"class","cardLabel svelte-h3d1qc"),e.attr(p,"class","iconWrapper svelte-h3d1qc"),e.attr(V,"class","jackpotValue svelte-h3d1qc"),e.attr(D,"class","jackpot-currency svelte-h3d1qc"),e.attr(W,"class","cardTextWrapper svelte-h3d1qc"),e.attr(g,"class","displayCard svelte-h3d1qc"),e.attr(t,"class","pairWrapper svelte-h3d1qc"),e.attr(j,"class","displayCardIcon svelte-h3d1qc"),e.src_url_equal(j.src,G=n[9][2])||e.attr(j,"src",G),e.attr(j,"alt",""),e.attr(U,"class","cardLabel svelte-h3d1qc"),e.attr(z,"class","iconWrapper svelte-h3d1qc"),e.attr(K,"class","jackpotValue svelte-h3d1qc"),e.attr(O,"class","jackpot-currency svelte-h3d1qc"),e.attr(E,"class","cardTextWrapper svelte-h3d1qc"),e.attr(A,"class","displayCard svelte-h3d1qc"),e.attr(I,"class","displayCardIcon svelte-h3d1qc"),e.src_url_equal(I.src,a=n[9][3])||e.attr(I,"src",a),e.attr(I,"alt",""),e.attr(o,"class","cardLabel svelte-h3d1qc"),e.attr(B,"class","iconWrapper svelte-h3d1qc"),e.attr(se,"class","jackpotValue svelte-h3d1qc"),e.attr(re,"class","jackpot-currency svelte-h3d1qc"),e.attr(X,"class","cardTextWrapper svelte-h3d1qc"),e.attr(R,"class","displayCard svelte-h3d1qc"),e.attr(S,"class","pairWrapper svelte-h3d1qc")},m(f,y){e.insert(f,t,y),e.append(t,l),e.append(l,s),e.append(s,i),e.append(s,r),e.append(r,_),e.append(l,h),e.append(h,k),e.append(k,x),e.append(h,w),e.append(h,v),e.append(v,L),e.append(t,u),e.append(t,g),e.append(g,p),e.append(p,c),e.append(p,J),e.append(J,H),e.append(g,W),e.append(W,V),e.append(V,P),e.append(W,Z),e.append(W,D),e.append(D,F),e.insert(f,T,y),e.insert(f,S,y),e.append(S,A),e.append(A,z),e.append(z,j),e.append(z,U),e.append(U,$),e.append(A,E),e.append(E,K),e.append(K,ee),e.append(E,ae),e.append(E,O),e.append(O,te),e.append(S,ne),e.append(S,R),e.append(R,B),e.append(B,I),e.append(B,o),e.append(o,le),e.append(R,X),e.append(X,se),e.append(se,ce),e.append(X,oe),e.append(X,re),e.append(re,de)},p(f,y){y[0]&512&&!e.src_url_equal(i.src,d=f[9][0])&&e.attr(i,"src",d),y[0]&256&&b!==(b=f[8][0]+"")&&e.set_data(_,b),y[0]&128&&m!==(m=f[7][0]+"")&&e.set_data(x,m),y[0]&2&&e.set_data(L,f[1]),y[0]&512&&!e.src_url_equal(c.src,C=f[9][1])&&e.attr(c,"src",C),y[0]&256&&N!==(N=f[8][1]+"")&&e.set_data(H,N),y[0]&128&&M!==(M=f[7][1]+"")&&e.set_data(P,M),y[0]&2&&e.set_data(F,f[1]),y[0]&512&&!e.src_url_equal(j.src,G=f[9][2])&&e.attr(j,"src",G),y[0]&256&&Y!==(Y=f[8][2]+"")&&e.set_data($,Y),y[0]&128&&Q!==(Q=f[7][2]+"")&&e.set_data(ee,Q),y[0]&2&&e.set_data(te,f[1]),y[0]&512&&!e.src_url_equal(I.src,a=f[9][3])&&e.attr(I,"src",a),y[0]&256&&q!==(q=f[8][3]+"")&&e.set_data(le,q),y[0]&128&&ie!==(ie=f[7][3]+"")&&e.set_data(ce,ie),y[0]&2&&e.set_data(de,f[1])},d(f){f&&(e.detach(t),e.detach(T),e.detach(S))}}}function ke(n){let t,l=e.ensure_array_like(Array(4)),s=[];for(let i=0;i<l.length;i+=1)s[i]=ge(ue(n,l,i));return{c(){for(let i=0;i<s.length;i+=1)s[i].c();t=e.empty()},m(i,d){for(let r=0;r<s.length;r+=1)s[r]&&s[r].m(i,d);e.insert(i,t,d)},p(i,d){if(d[0]&898){l=e.ensure_array_like(Array(4));let r;for(r=0;r<l.length;r+=1){const b=ue(i,l,r);s[r]?s[r].p(b,d):(s[r]=ge(b),s[r].c(),s[r].m(t.parentNode,t))}for(;r<s.length;r+=1)s[r].d(1);s.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(s,i)}}}function ge(n){var L;let t,l,s,i,d,r=n[8][n[50]]+"",b,_,h,k=((L=n[7][n[50]])!=null?L:"")+"",m,x,w,v;return{c(){t=e.element("div"),l=e.element("div"),s=e.element("img"),d=e.element("span"),b=e.text(r),_=e.element("span"),h=e.element("span"),m=e.text(k),x=e.space(),w=e.element("span"),v=e.text(n[1]),e.attr(s,"class","displayCardIcon svelte-h3d1qc"),e.src_url_equal(s.src,i=n[9][n[50]])||e.attr(s,"src",i),e.attr(s,"alt",""),e.attr(d,"class","cardLabel svelte-h3d1qc"),e.attr(l,"class","iconWrapper svelte-h3d1qc"),e.attr(h,"class","jackpotValue svelte-h3d1qc"),e.attr(w,"class","jackpot-currency svelte-h3d1qc"),e.attr(_,"class","cardTextWrapper svelte-h3d1qc"),e.attr(t,"class","displayCard svelte-h3d1qc")},m(u,g){e.insert(u,t,g),e.append(t,l),e.append(l,s),e.append(l,d),e.append(d,b),e.append(t,_),e.append(_,h),e.append(h,m),e.append(_,x),e.append(_,w),e.append(w,v)},p(u,g){var p;g[0]&512&&!e.src_url_equal(s.src,i=u[9][u[50]])&&e.attr(s,"src",i),g[0]&256&&r!==(r=u[8][u[50]]+"")&&e.set_data(b,r),g[0]&128&&k!==(k=((p=u[7][u[50]])!=null?p:"")+"")&&e.set_data(m,k),g[0]&2&&e.set_data(v,u[1])},d(u){u&&e.detach(t)}}}function Ce(n){let t;function l(d,r){return d[13]?_e:d[3]?ye:qe}let s=l(n),i=s(n);return{c(){t=e.element("div"),i.c(),e.attr(t,"class","svelte-h3d1qc")},m(d,r){e.insert(d,t,r),i.m(t,null),n[32](t)},p(d,r){s===(s=l(d))&&i?i.p(d,r):(i.d(1),i=s(d),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(d){d&&e.detach(t),i.d(),n[32](null)}}}function xe(n,t,l){let{visualstructure:s=""}=t,{title:i=""}=t,{caticon0:d=""}=t,{caticon1:r=""}=t,{caticon2:b=""}=t,{caticon3:_=""}=t,{iconlabels:h=""}=t,{backgroundsrc:k=""}=t,{currency:m=""}=t,{backgroundsrcmobile:x=""}=t,{titlelogopath:w=""}=t,{lang:v="en"}=t,{clientstyling:L=""}=t,{clientstylingurl:u=""}=t,{translationurl:g=""}=t,{endpoint:p=""}=t,{gameid:c=""}=t,C=window.navigator.userAgent,J=!1,N=!1,H="",W=[],V=[],M=[],P=[],Z=[],D="",F="",T,S=!1,A=!0,z=!1,j;const G=()=>{fetch(g).then(o=>o.json()).then(o=>{Object.keys(o).forEach(q=>{pe(q,o[q])})}).catch(o=>{console.log(o)})};Object.keys(he).forEach(a=>{pe(a,he[a])});const U=["typeSpread","typeLeft"],Y=a=>{var q;const o=(q=a==null?void 0:a.items[0])==null?void 0:q.additionalData;o&&Object.values(o).forEach(le=>W.push(+le))},$=a=>{var o;l(6,H=((o=a==null?void 0:a.items[0])==null?void 0:o.vendorLogo)||"")},E=()=>{if(p&&v&&m){let a=new URL(`${p}/v1/casino/jackpots`);a.searchParams.append("filter",`id=${c}`),a.searchParams.append("language",v),a.searchParams.append("additionalDataCurrency",m),fetch(a.href).then(o=>o.json().then(q=>{l(3,A=!1),j=q,V.includes(c)&&(Y(j),$(j))}).catch(q=>{l(13,z=!0),l(3,A=!1),console.error(q)}))}},K=()=>{let a=new URL(`${p}/v1/casino/jackpots/config`);fetch(a.href).then(o=>o.json()).then(o=>{l(30,V=o.egtJackpotIds.map(q=>q))})},Q=()=>{l(4,J=e.isMobile(C)&&window.innerHeight/window.innerWidth>1),l(5,N=ae()),W.length!==0&&l(7,M=ee(W)),l(8,P=h?h.split(",").map(a=>a.trim().toUpperCase()):new Array(4).fill("")),U.includes(s.trim())?l(0,s=s.trim()):(console.warn(`Invalid Attribute Value: "${s}" is not a valid value for the "visualstructure" attribute. Defaulting to "${U[0]}"`),l(0,s=U[0])),l(10,D=x&&J&&!N?x:k),l(11,F=w),l(9,Z=[d,r,b,_])},ee=a=>a.map(o=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(o)),ae=()=>{const a=window.innerHeight/window.innerWidth;return .75<a&&a<1.6},O=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:c},window.location.href),typeof gtag=="function"&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:`${c}`})},te=()=>{let a=document.createElement("style");a.innerHTML=L,T.appendChild(a)},ne=()=>{l(12,S=!0);let a=new URL(u),o=document.createElement("style");fetch(a.href).then(q=>q.text()).then(q=>{o.innerHTML=q,setTimeout(()=>{T.appendChild(o)},1),setTimeout(()=>{l(12,S=!1)},500)})},R=()=>{ve(v)},B=()=>O();function I(a){e.binding_callbacks[a?"unshift":"push"](()=>{T=a,l(2,T)})}return n.$$set=a=>{"visualstructure"in a&&l(0,s=a.visualstructure),"title"in a&&l(15,i=a.title),"caticon0"in a&&l(16,d=a.caticon0),"caticon1"in a&&l(17,r=a.caticon1),"caticon2"in a&&l(18,b=a.caticon2),"caticon3"in a&&l(19,_=a.caticon3),"iconlabels"in a&&l(20,h=a.iconlabels),"backgroundsrc"in a&&l(21,k=a.backgroundsrc),"currency"in a&&l(1,m=a.currency),"backgroundsrcmobile"in a&&l(22,x=a.backgroundsrcmobile),"titlelogopath"in a&&l(23,w=a.titlelogopath),"lang"in a&&l(24,v=a.lang),"clientstyling"in a&&l(25,L=a.clientstyling),"clientstylingurl"in a&&l(26,u=a.clientstylingurl),"translationurl"in a&&l(27,g=a.translationurl),"endpoint"in a&&l(28,p=a.endpoint),"gameid"in a&&l(29,c=a.gameid)},n.$$.update=()=>{n.$$.dirty[0]&268435456&&p&&K(),n.$$.dirty[0]&33554436&&T&&L&&te(),n.$$.dirty[0]&67108868&&T&&u&&ne(),n.$$.dirty[0]&1358954498&&p&&v&&m&&V.length>0&&E(),n.$$.dirty[0]&16777226&&m&&v&&!A&&Q(),n.$$.dirty[0]&16777216&&v&&R(),n.$$.dirty[0]&134217728&&g&&G()},[s,m,T,A,J,N,H,M,P,Z,D,F,S,z,O,i,d,r,b,_,h,k,x,w,v,L,u,g,p,c,V,B,I]}class fe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,xe,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},me,[-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(fe,{visualstructure:{},title:{},caticon0:{},caticon1:{},caticon2:{},caticon3:{},iconlabels:{},backgroundsrc:{},currency:{},backgroundsrcmobile:{},titlelogopath:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},endpoint:{},gameid:{}},[],[],!0);exports.default=fe;