@everymatrix/casino-lobby 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 (64) hide show
  1. package/components/CasinoCalendar-DEhfBjpm.js +5138 -0
  2. package/components/CasinoCalendar-egUFg4eK.cjs +9 -0
  3. package/components/CasinoCalendarDailyDetails-CfTziMCu.js +605 -0
  4. package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +1 -0
  6. package/components/CasinoCalendarDailyItem-CQ8syIIe.js +220 -0
  7. package/components/CasinoCategoriesSlider-BQvWcqNm.js +597 -0
  8. package/components/CasinoCategoriesSlider-BfuTLKom.cjs +1 -0
  9. package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-CwJY8Pmw.js +659 -0
  11. package/components/CasinoFavoritesSection-BBWM7_dI.js +418 -0
  12. package/components/CasinoFavoritesSection-Da0-zSyn.cjs +1 -0
  13. package/components/CasinoFilter-BkpU5f2V.cjs +1 -0
  14. package/components/CasinoFilter-D3p7c7qu.js +628 -0
  15. package/components/CasinoGamePage-BHxY5XUD.cjs +18 -0
  16. package/components/CasinoGamePage-Bp4OKmdA.js +4282 -0
  17. package/components/CasinoGameThumbnail-BmmqFK_6.js +1822 -0
  18. package/components/CasinoGameThumbnail-DVMHCqZf.cjs +38 -0
  19. package/components/CasinoGamesCategorySection-6X3_pD0A.js +3022 -0
  20. package/components/CasinoGamesCategorySection-CasxxP7n.cjs +1 -0
  21. package/components/CasinoJackpotBanner-8_TAP4xY.cjs +1 -0
  22. package/components/CasinoJackpotBanner-wk2wOmJp.js +619 -0
  23. package/components/CasinoLastPlayedSection-Dkh43VxC.js +563 -0
  24. package/components/CasinoLastPlayedSection-DvORiff-.cjs +1 -0
  25. package/components/CasinoLobby-Djp4HDWL.js +2341 -0
  26. package/components/CasinoLobby-Jn45jhzr.cjs +1 -0
  27. package/components/CasinoModal-BebrYWjS.cjs +1 -0
  28. package/components/CasinoModal-CSwMAX-g.js +372 -0
  29. package/components/CasinoMostPlayedSection-BDP2HyE6.js +580 -0
  30. package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +1 -0
  31. package/components/CasinoMyGames-CILl0Jt1.js +1313 -0
  32. package/components/CasinoMyGames-shcqTml8.cjs +1 -0
  33. package/components/CasinoPage-CCcJd2fQ.js +3514 -0
  34. package/components/CasinoPage-DZmE3VFL.cjs +1 -0
  35. package/components/CasinoRandomGame-4mi3rRbq.js +641 -0
  36. package/components/CasinoRandomGame-G4VfFJ2L.cjs +2 -0
  37. package/components/CasinoSearch-CW-eesDy.cjs +1 -0
  38. package/components/CasinoSearch-DkEAmw-j.js +1066 -0
  39. package/components/CasinoSlider-CNWDP_I-.js +803 -0
  40. package/components/CasinoSlider-CjA8vWoz.cjs +1 -0
  41. package/components/CasinoSort-BVh0Ouwu.cjs +1 -0
  42. package/components/CasinoSort-CPcJqhWU.js +425 -0
  43. package/components/CasinoWinners-BTNdGlUD.cjs +1 -0
  44. package/components/CasinoWinners-DSsJp1KQ.js +884 -0
  45. package/components/GeneralAnimationLoading-BtIh_bSy.js +75 -0
  46. package/components/GeneralAnimationLoading-CEAKVCu9.cjs +1 -0
  47. package/es2015/casino-lobby.cjs +1 -0
  48. package/es2015/casino-lobby.js +16 -0
  49. package/package.json +20 -32
  50. package/CHANGELOG.md +0 -39
  51. package/README.md +0 -0
  52. package/dist/casino-lobby.js +0 -33
  53. package/dist/casino-lobby.js.map +0 -1
  54. package/documentation.md +0 -176
  55. package/index.html +0 -50
  56. package/index.js +0 -1
  57. package/public/favicon.png +0 -0
  58. package/public/reset.css +0 -48
  59. package/rollup.config.js +0 -67
  60. package/src/CasinoLobby.svelte +0 -454
  61. package/src/i18n.js +0 -25
  62. package/src/index.ts +0 -4
  63. package/stories/CasinoLobby.stories.js +0 -13
  64. 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, Y 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-DEhfBjpm.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
+ };