@everymatrix/casino-header-controller 1.42.0 → 1.42.69

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 (74) hide show
  1. package/components/CasinoHamburgerMenu-1gQg-ZIY.cjs +8 -0
  2. package/components/CasinoHamburgerMenu-2pFb6wZl.js +5307 -0
  3. package/components/CasinoHamburgerMenu-B7azgUM1.js +5309 -0
  4. package/components/CasinoHamburgerMenu-BrADPgID.js +5345 -0
  5. package/components/CasinoHamburgerMenu-C4GmkZHL.js +5347 -0
  6. package/components/CasinoHamburgerMenu-CMBkzntP.cjs +8 -0
  7. package/components/CasinoHamburgerMenu-CO6TdI1h.js +5319 -0
  8. package/components/CasinoHamburgerMenu-G_FPFhtq.cjs +8 -0
  9. package/components/CasinoHamburgerMenu-fVT1Bp2V.js +5357 -0
  10. package/components/CasinoHeaderController-BZIhHS4u.cjs +13 -0
  11. package/components/CasinoHeaderController-BmOBKBem.js +3561 -0
  12. package/components/CasinoHeaderController-C45Gp_Sf.js +3573 -0
  13. package/components/CasinoHeaderController-CQws9ndQ.js +3561 -0
  14. package/components/CasinoHeaderController-DQGnKC0A.cjs +13 -0
  15. package/components/CasinoHeaderController-DYGG7IrC.cjs +13 -0
  16. package/components/CasinoHeaderController-Dfl2F1fA.js +3590 -0
  17. package/components/CasinoHeaderController-LSfZUCvD.js +3590 -0
  18. package/components/CasinoHeaderController-Tze6cxM6.js +3561 -0
  19. package/components/CasinoHeaderController-UDtLt9Je.js +3590 -0
  20. package/components/CasinoHeaderController-duupWsAL.cjs +13 -0
  21. package/components/CasinoHeaderController-wBzmrgsG.js +3602 -0
  22. package/components/CasinoSlider-B2V4KV2_.js +794 -0
  23. package/components/CasinoSlider-B37dextc.js +788 -0
  24. package/components/CasinoSlider-BhJTFE93.cjs +1 -0
  25. package/components/CasinoSlider-C35KPhyt.js +788 -0
  26. package/components/CasinoSlider-C8lA6Gz3.cjs +1 -0
  27. package/components/CasinoSlider-CGwTgvX9.js +802 -0
  28. package/components/CasinoSlider-CytcmpnB.js +803 -0
  29. package/components/CasinoSlider-DQalcjvT.cjs +1 -0
  30. package/components/CasinoSlider-DQhMN8AF.js +797 -0
  31. package/components/CasinoSlider-DgvkDJb7.js +794 -0
  32. package/components/CasinoSlider-DjKB6ws9.cjs +1 -0
  33. package/components/CasinoSlider-Dyf3MtoH.js +796 -0
  34. package/components/PlayerAccountBalanceModal-BCsJRXxY.js +1540 -0
  35. package/components/PlayerAccountBalanceModal-BDp9-1JM.js +1511 -0
  36. package/components/PlayerAccountBalanceModal-BjynkQTc.cjs +13 -0
  37. package/components/PlayerAccountBalanceModal-BzXIAqih.js +1528 -0
  38. package/components/PlayerAccountBalanceModal-CuW2KzWo.cjs +13 -0
  39. package/components/PlayerAccountBalanceModal-DKUdq7S7.js +1499 -0
  40. package/components/PlayerAccountBalanceModal-DwQpCDa8.js +1528 -0
  41. package/components/PlayerAccountBalanceModal-IWUBV3L3.js +1499 -0
  42. package/components/PlayerAccountBalanceModal-gmXbYoYR.cjs +13 -0
  43. package/components/PlayerDeposit-BZr6pYKp.js +383 -0
  44. package/components/PlayerDeposit-By5a5qV8.js +395 -0
  45. package/components/PlayerDeposit-C6lle-Vr.js +383 -0
  46. package/components/PlayerDeposit-CtdO_htx.cjs +1 -0
  47. package/components/PlayerDeposit-DBPllHYK.cjs +1 -0
  48. package/components/PlayerDeposit-DolqG55w.js +383 -0
  49. package/components/PlayerDeposit-DvPJXwOB.js +383 -0
  50. package/components/PlayerDeposit-Dvyn6q5s.js +395 -0
  51. package/components/PlayerDeposit-pGfQkRT7.cjs +1 -0
  52. package/es2015/casino-header-controller.cjs +1 -0
  53. package/es2015/casino-header-controller.js +16 -0
  54. package/esnext/casino-header-controller.js +14 -0
  55. package/package.json +19 -36
  56. package/CHANGELOG.md +0 -12
  57. package/README.md +0 -0
  58. package/dist/casino-header-controller.js +0 -4
  59. package/dist/casino-header-controller.js.map +0 -1
  60. package/documentation.md +0 -146
  61. package/index.html +0 -48
  62. package/index.js +0 -1
  63. package/public/favicon.png +0 -0
  64. package/public/reset.css +0 -48
  65. package/rollup.config.js +0 -67
  66. package/src/CasinoHeaderController.svelte +0 -1233
  67. package/src/i18n.js +0 -27
  68. package/src/images/arrow.png +0 -0
  69. package/src/images/english-flag.png +0 -0
  70. package/src/images/everymatrix-logo-white.png +0 -0
  71. package/src/index.ts +0 -4
  72. package/src/translations.js +0 -62
  73. package/stories/CasinoHeaderController.stories.js +0 -22
  74. package/tsconfig.json +0 -6
@@ -0,0 +1,794 @@
1
+ import { $ as Q, a as Ee, b as Ne, S as Re, i as Te, f as p, c as je, s as Be, d as We, g as k, e as R, x as g, j as D, y as C, z as P, n as oe, k as S, C as ze, o as Oe, v as B, E as G, M as pe, I as ie, p as J, r as Ge, t as xe, u as Ye, N as we, B as qe, w as V, A as Z } from "./CasinoHamburgerMenu-BrADPgID.js";
2
+ function Ue({ withLocale: a, translations: e }) {
3
+ Q.subscribe((t) => {
4
+ t == null && (Ee.set(e), Q.set(a));
5
+ });
6
+ }
7
+ function ae(a, e) {
8
+ Ne(a, e);
9
+ }
10
+ function Pe(a) {
11
+ Q.set(a);
12
+ }
13
+ const ne = {
14
+ en: {
15
+ login: "Login",
16
+ register: "Register",
17
+ deposit: "Deposit"
18
+ },
19
+ "zh-hk": {
20
+ login: "登錄",
21
+ register: "登記",
22
+ deposit: "訂金"
23
+ },
24
+ fr: {
25
+ login: "Connexion",
26
+ register: "Registre",
27
+ deposit: "Dépôt"
28
+ },
29
+ tr: {
30
+ login: "Giriş",
31
+ register: "Kayıt",
32
+ deposit: "Para Yatır"
33
+ },
34
+ ro: {
35
+ login: "Autentificare",
36
+ register: "Inregistrare",
37
+ deposit: "Depozit"
38
+ },
39
+ es: {
40
+ login: "Iniciar sesión",
41
+ register: "Regístrate",
42
+ deposit: "Deposita"
43
+ },
44
+ pt: {
45
+ login: "Entrar",
46
+ register: "Registro",
47
+ deposit: "Depósito"
48
+ },
49
+ hr: {
50
+ login: "Prijava",
51
+ register: "Registracija",
52
+ deposit: "Uplata"
53
+ },
54
+ "pt-br": {
55
+ login: "Entrem",
56
+ register: "Registro",
57
+ deposit: "Depósito"
58
+ },
59
+ "es-mx": {
60
+ login: "Entrar",
61
+ register: "Registro",
62
+ deposit: "Depósito"
63
+ },
64
+ "en-us": {
65
+ login: "Login",
66
+ register: "Register",
67
+ deposit: "Deposit"
68
+ }
69
+ };
70
+ function Ke(a) {
71
+ We(a, "svelte-1lgwoo3", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
72
+ }
73
+ function le(a, e, t) {
74
+ const o = a.slice();
75
+ return o[48] = e[t], o[50] = t, o;
76
+ }
77
+ function se(a, e, t) {
78
+ const o = a.slice();
79
+ return o[51] = e[t], o;
80
+ }
81
+ function ce(a, e, t) {
82
+ const o = a.slice();
83
+ return o[54] = e[t], o[56] = t, o;
84
+ }
85
+ function ue(a) {
86
+ let e = [], t = /* @__PURE__ */ new Map(), o, n = B(
87
+ /*sliderdata*/
88
+ a[9]
89
+ );
90
+ const l = (r) => (
91
+ /*category*/
92
+ r[48].id
93
+ );
94
+ for (let r = 0; r < n.length; r += 1) {
95
+ let s = le(a, n, r), u = l(s);
96
+ t.set(u, e[r] = Ce(u, s));
97
+ }
98
+ return {
99
+ c() {
100
+ for (let r = 0; r < e.length; r += 1)
101
+ e[r].c();
102
+ o = G();
103
+ },
104
+ m(r, s) {
105
+ for (let u = 0; u < e.length; u += 1)
106
+ e[u] && e[u].m(r, s);
107
+ D(r, o, s);
108
+ },
109
+ p(r, s) {
110
+ s[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
111
+ 77775 && (n = B(
112
+ /*sliderdata*/
113
+ r[9]
114
+ ), e = pe(e, s, l, 1, r, n, t, o.parentNode, we, Ce, o, le));
115
+ },
116
+ d(r) {
117
+ r && S(o);
118
+ for (let s = 0; s < e.length; s += 1)
119
+ e[s].d(r);
120
+ }
121
+ };
122
+ }
123
+ function Xe(a) {
124
+ let e, t = (
125
+ /*category*/
126
+ a[48].name + ""
127
+ ), o;
128
+ return {
129
+ c() {
130
+ e = k("button"), o = V(t), g(e, "class", "CategoryButton");
131
+ },
132
+ m(n, l) {
133
+ D(n, e, l), C(e, o);
134
+ },
135
+ p(n, l) {
136
+ l[0] & /*sliderdata*/
137
+ 512 && t !== (t = /*category*/
138
+ n[48].name + "") && Z(o, t);
139
+ },
140
+ d(n) {
141
+ n && S(e);
142
+ }
143
+ };
144
+ }
145
+ function Je(a) {
146
+ let e, t = (
147
+ /*category*/
148
+ a[48].label + ""
149
+ ), o, n;
150
+ return {
151
+ c() {
152
+ e = k("a"), o = V(t), g(e, "href", n = /*category*/
153
+ a[48].path);
154
+ },
155
+ m(l, r) {
156
+ D(l, e, r), C(e, o);
157
+ },
158
+ p(l, r) {
159
+ r[0] & /*sliderdata*/
160
+ 512 && t !== (t = /*category*/
161
+ l[48].label + "") && Z(o, t), r[0] & /*sliderdata*/
162
+ 512 && n !== (n = /*category*/
163
+ l[48].path) && g(e, "href", n);
164
+ },
165
+ d(l) {
166
+ l && S(e);
167
+ }
168
+ };
169
+ }
170
+ function de(a) {
171
+ let e, t = (
172
+ /*subGroupsData*/
173
+ a[10].length > 0 && /*showsubgroups*/
174
+ a[2] == "true" && ge(a)
175
+ );
176
+ return {
177
+ c() {
178
+ t && t.c(), e = G();
179
+ },
180
+ m(o, n) {
181
+ t && t.m(o, n), D(o, e, n);
182
+ },
183
+ p(o, n) {
184
+ /*subGroupsData*/
185
+ o[10].length > 0 && /*showsubgroups*/
186
+ o[2] == "true" ? t ? t.p(o, n) : (t = ge(o), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
187
+ },
188
+ d(o) {
189
+ o && S(e), t && t.d(o);
190
+ }
191
+ };
192
+ }
193
+ function ge(a) {
194
+ let e, t = B(
195
+ /*subGroupsData*/
196
+ a[10]
197
+ ), o = [];
198
+ for (let n = 0; n < t.length; n += 1)
199
+ o[n] = he(se(a, t, n));
200
+ return {
201
+ c() {
202
+ e = k("ul");
203
+ for (let n = 0; n < o.length; n += 1)
204
+ o[n].c();
205
+ g(e, "class", "DropDown");
206
+ },
207
+ m(n, l) {
208
+ D(n, e, l);
209
+ for (let r = 0; r < o.length; r += 1)
210
+ o[r] && o[r].m(e, null);
211
+ },
212
+ p(n, l) {
213
+ if (l[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
214
+ 10176) {
215
+ t = B(
216
+ /*subGroupsData*/
217
+ n[10]
218
+ );
219
+ let r;
220
+ for (r = 0; r < t.length; r += 1) {
221
+ const s = se(n, t, r);
222
+ o[r] ? o[r].p(s, l) : (o[r] = he(s), o[r].c(), o[r].m(e, null));
223
+ }
224
+ for (; r < o.length; r += 1)
225
+ o[r].d(1);
226
+ o.length = t.length;
227
+ }
228
+ },
229
+ d(n) {
230
+ n && S(e), qe(o, n);
231
+ }
232
+ };
233
+ }
234
+ function fe(a) {
235
+ var w;
236
+ let e, t, o = (
237
+ /*subGroupItem*/
238
+ ((w = a[54]) == null ? void 0 : w.name) + ""
239
+ ), n, l, r, s, u;
240
+ function F(...m) {
241
+ return (
242
+ /*click_handler_1*/
243
+ a[32](
244
+ /*category*/
245
+ a[48],
246
+ /*index*/
247
+ a[50],
248
+ /*subGroupItem*/
249
+ a[54],
250
+ /*subindex*/
251
+ a[56],
252
+ ...m
253
+ )
254
+ );
255
+ }
256
+ return {
257
+ c() {
258
+ e = k("li"), t = k("a"), n = V(o), r = R(), g(t, "class", l = "SubDropDown " + /*index*/
259
+ (a[50] == /*activeIndex*/
260
+ a[6] && /*activeSubIndex*/
261
+ (a[7] == /*subindex*/
262
+ a[56] || /*prevSubIndex*/
263
+ a[8] == /*subindex*/
264
+ a[56]) ? "active" : ""));
265
+ },
266
+ m(m, y) {
267
+ D(m, e, y), C(e, t), C(t, n), C(e, r), s || (u = P(e, "click", F), s = !0);
268
+ },
269
+ p(m, y) {
270
+ var M;
271
+ a = m, y[0] & /*subGroupsData*/
272
+ 1024 && o !== (o = /*subGroupItem*/
273
+ ((M = a[54]) == null ? void 0 : M.name) + "") && Z(n, o), y[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
274
+ 1984 && l !== (l = "SubDropDown " + /*index*/
275
+ (a[50] == /*activeIndex*/
276
+ a[6] && /*activeSubIndex*/
277
+ (a[7] == /*subindex*/
278
+ a[56] || /*prevSubIndex*/
279
+ a[8] == /*subindex*/
280
+ a[56]) ? "active" : "")) && g(t, "class", l);
281
+ },
282
+ d(m) {
283
+ m && S(e), s = !1, u();
284
+ }
285
+ };
286
+ }
287
+ function me(a, e) {
288
+ let t, o, n = (
289
+ /*index*/
290
+ e[50] == /*subGroup*/
291
+ e[51].index && fe(e)
292
+ );
293
+ return {
294
+ key: a,
295
+ first: null,
296
+ c() {
297
+ t = G(), n && n.c(), o = G(), this.first = t;
298
+ },
299
+ m(l, r) {
300
+ D(l, t, r), n && n.m(l, r), D(l, o, r);
301
+ },
302
+ p(l, r) {
303
+ e = l, /*index*/
304
+ e[50] == /*subGroup*/
305
+ e[51].index ? n ? n.p(e, r) : (n = fe(e), n.c(), n.m(o.parentNode, o)) : n && (n.d(1), n = null);
306
+ },
307
+ d(l) {
308
+ l && (S(t), S(o)), n && n.d(l);
309
+ }
310
+ };
311
+ }
312
+ function he(a) {
313
+ let e = [], t = /* @__PURE__ */ new Map(), o, n = B(
314
+ /*subGroup*/
315
+ a[51].items
316
+ );
317
+ const l = (r) => (
318
+ /*subGroupItem*/
319
+ r[54].id
320
+ );
321
+ for (let r = 0; r < n.length; r += 1) {
322
+ let s = ce(a, n, r), u = l(s);
323
+ t.set(u, e[r] = me(u, s));
324
+ }
325
+ return {
326
+ c() {
327
+ for (let r = 0; r < e.length; r += 1)
328
+ e[r].c();
329
+ o = G();
330
+ },
331
+ m(r, s) {
332
+ for (let u = 0; u < e.length; u += 1)
333
+ e[u] && e[u].m(r, s);
334
+ D(r, o, s);
335
+ },
336
+ p(r, s) {
337
+ s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
338
+ 10176 && (n = B(
339
+ /*subGroup*/
340
+ r[51].items
341
+ ), e = pe(e, s, l, 1, r, n, t, o.parentNode, we, me, o, ce));
342
+ },
343
+ d(r) {
344
+ r && S(o);
345
+ for (let s = 0; s < e.length; s += 1)
346
+ e[s].d(r);
347
+ }
348
+ };
349
+ }
350
+ function Ce(a, e) {
351
+ let t, o, n, l, r, s, u, F, w, m, y;
352
+ function M(f, b) {
353
+ return (
354
+ /*location*/
355
+ f[0] === "headerMain" ? Je : Xe
356
+ );
357
+ }
358
+ let I = M(e), h = I(e), c = (
359
+ /*itemsActive*/
360
+ e[11][
361
+ /*index*/
362
+ e[50]
363
+ ] == !0 && de(e)
364
+ );
365
+ function v(...f) {
366
+ return (
367
+ /*click_handler_2*/
368
+ e[33](
369
+ /*category*/
370
+ e[48],
371
+ /*index*/
372
+ e[50],
373
+ ...f
374
+ )
375
+ );
376
+ }
377
+ return {
378
+ key: a,
379
+ first: null,
380
+ c() {
381
+ var f, b;
382
+ t = k("li"), o = k("div"), n = k("img"), s = R(), h.c(), u = R(), c && c.c(), F = R(), g(n, "class", l = "CategoryIconImg " + /*categoriesicon*/
383
+ (e[3] === "true" ? "" : "DisplayNone")), ie(n.src, r = /*handleSrc*/
384
+ e[16](
385
+ /*category*/
386
+ e[48]
387
+ )) || g(n, "src", r), g(o, "class", "CategoryIcon"), g(t, "class", w = "CarouselItem " + /*activeindex*/
388
+ (((f = e[1]) == null ? void 0 : f.toString().indexOf("$")) > -1 ? (
389
+ /*activeindex*/
390
+ ((b = e[1]) == null ? void 0 : b.split("$").pop()) == /*category*/
391
+ e[48].id.split("$").pop() ? "active" : ""
392
+ ) : (
393
+ /*activeindex*/
394
+ e[1] == /*category*/
395
+ e[48].id ? "active" : ""
396
+ )) + " " + /*location*/
397
+ (e[0] == "headerMain" ? "" : "SecondaryMenu")), g(t, "part", "CarouselItem"), this.first = t;
398
+ },
399
+ m(f, b) {
400
+ D(f, t, b), C(t, o), C(o, n), C(t, s), h.m(t, null), C(t, u), c && c.m(t, null), C(t, F), m || (y = P(t, "click", v), m = !0);
401
+ },
402
+ p(f, b) {
403
+ var T, x;
404
+ e = f, b[0] & /*categoriesicon*/
405
+ 8 && l !== (l = "CategoryIconImg " + /*categoriesicon*/
406
+ (e[3] === "true" ? "" : "DisplayNone")) && g(n, "class", l), b[0] & /*sliderdata*/
407
+ 512 && !ie(n.src, r = /*handleSrc*/
408
+ e[16](
409
+ /*category*/
410
+ e[48]
411
+ )) && g(n, "src", r), I === (I = M(e)) && h ? h.p(e, b) : (h.d(1), h = I(e), h && (h.c(), h.m(t, u))), /*itemsActive*/
412
+ e[11][
413
+ /*index*/
414
+ e[50]
415
+ ] == !0 ? c ? c.p(e, b) : (c = de(e), c.c(), c.m(t, F)) : c && (c.d(1), c = null), b[0] & /*activeindex, sliderdata, location*/
416
+ 515 && w !== (w = "CarouselItem " + /*activeindex*/
417
+ (((T = e[1]) == null ? void 0 : T.toString().indexOf("$")) > -1 ? (
418
+ /*activeindex*/
419
+ ((x = e[1]) == null ? void 0 : x.split("$").pop()) == /*category*/
420
+ e[48].id.split("$").pop() ? "active" : ""
421
+ ) : (
422
+ /*activeindex*/
423
+ e[1] == /*category*/
424
+ e[48].id ? "active" : ""
425
+ )) + " " + /*location*/
426
+ (e[0] == "headerMain" ? "" : "SecondaryMenu")) && g(t, "class", w);
427
+ },
428
+ d(f) {
429
+ f && S(t), h.d(), c && c.d(), m = !1, y();
430
+ }
431
+ };
432
+ }
433
+ function Qe(a) {
434
+ let e, t, o, n, l, r, s, u, F, w, m, y, M, I, h, c = (
435
+ /*sliderdata*/
436
+ a[9].length > 0 && ue(a)
437
+ );
438
+ return {
439
+ c() {
440
+ e = k("div"), t = k("div"), o = k("div"), o.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', n = R(), l = k("div"), r = k("ul"), s = k("li"), s.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = R(), c && c.c(), F = R(), w = k("div"), w.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', g(o, "class", "CarouselLeftArrow"), g(s, "class", "TouchOnly"), g(r, "id", "CarouselNav"), g(r, "class", "CarouselItems"), g(l, "class", "CarouselNavWrap"), g(w, "class", "CarouselRightArrow"), g(t, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
441
+ a[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), g(t, "style", y = /*location*/
442
+ a[0] === "headerMain" ? "max-width: auto" : void 0), g(e, "class", M = "CarouselWrapper " + /*location*/
443
+ (a[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
444
+ },
445
+ m(v, f) {
446
+ D(v, e, f), C(e, t), C(t, o), C(t, n), C(t, l), C(l, r), C(r, s), C(r, u), c && c.m(r, null), a[34](r), a[35](l), C(t, F), C(t, w), a[37](e), I || (h = [
447
+ P(
448
+ o,
449
+ "click",
450
+ /*click_handler*/
451
+ a[31]
452
+ ),
453
+ P(
454
+ w,
455
+ "click",
456
+ /*click_handler_3*/
457
+ a[36]
458
+ )
459
+ ], I = !0);
460
+ },
461
+ p(v, f) {
462
+ /*sliderdata*/
463
+ v[9].length > 0 ? c ? c.p(v, f) : (c = ue(v), c.c(), c.m(r, null)) : c && (c.d(1), c = null), f[0] & /*location*/
464
+ 1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
465
+ v[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && g(t, "class", m), f[0] & /*location*/
466
+ 1 && y !== (y = /*location*/
467
+ v[0] === "headerMain" ? "max-width: auto" : void 0) && g(t, "style", y), f[0] & /*location*/
468
+ 1 && M !== (M = "CarouselWrapper " + /*location*/
469
+ (v[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && g(e, "class", M);
470
+ },
471
+ i: oe,
472
+ o: oe,
473
+ d(v) {
474
+ v && S(e), c && c.d(), a[34](null), a[35](null), a[37](null), I = !1, ze(h);
475
+ }
476
+ };
477
+ }
478
+ function Ve(a, e, t) {
479
+ let { endpoint: o = "" } = e, { datasource: n = "" } = e, { onclickeventname: l = "defaultEvent" } = e, { actionevent: r = "defaultEvent" } = e, { favoritesnumber: s = "0" } = e, { location: u = "" } = e, { clientstyling: F = "" } = e, { clientstylingurl: w = "" } = e, { identity: m = "" } = e, { translationurl: y = "" } = e, { isprimarymenu: M = !1 } = e, { issecondarymenu: I = !1 } = e, { lang: h = "" } = e, { activeindex: c = "0" } = e, { showsubgroups: v = "false" } = e, { categoriesicon: f = "false" } = e, { lobbyiconimage: b = "" } = e, { mygamesiconimage: T = "" } = e;
480
+ Ue({ withLocale: "en", translations: {} });
481
+ const x = () => {
482
+ fetch(y).then((d) => d.json()).then((d) => {
483
+ Object.keys(d).forEach((_) => {
484
+ ae(_, d[_]);
485
+ });
486
+ }).catch((d) => {
487
+ console.log(d);
488
+ });
489
+ };
490
+ Object.keys(ne).forEach((i) => {
491
+ ae(i, ne[i]);
492
+ });
493
+ let j, W, z, K, L, O = [], Y = [], q = [], A, X = (i, d, _, E, H) => {
494
+ var N;
495
+ if (!(i.subGroups && E === null)) {
496
+ if (U(), t(6, W = d), t(6, W), H != "secondary") {
497
+ window.postMessage(
498
+ {
499
+ type: r == "CategoryChange" ? "CategoryChange" : "NavigateTo",
500
+ buzz: "1",
501
+ itemId: i.id,
502
+ index: d,
503
+ item: i,
504
+ path: i.path,
505
+ externalLink: i.externalLink || !1,
506
+ target: ((N = i.attrs) == null ? void 0 : N.target) || null
507
+ },
508
+ window.location.href
509
+ ), t(7, z = null), t(8, K = null);
510
+ return;
511
+ }
512
+ t(7, z = E), t(7, z), t(8, K = z), window.postMessage(
513
+ {
514
+ type: r,
515
+ itemId: _.id,
516
+ subIndex: E,
517
+ subItem: _
518
+ },
519
+ window.location.href
520
+ );
521
+ }
522
+ }, $ = () => {
523
+ A.scrollBy({ left: -250, behavior: "smooth" });
524
+ }, ee = () => {
525
+ A.scrollBy({ left: 250, behavior: "smooth" });
526
+ };
527
+ const te = (i) => {
528
+ i.data.type == "SliderData" && i.data.identity == m && (t(9, O = i.data.data), t(11, q = new Array(O.length).fill(!1)), v == "true" && be()), i.data.type == "GoToHomepage" && O.forEach((d, _) => {
529
+ d.path.endsWith("/casino") && (t(6, W = _), t(6, W));
530
+ });
531
+ }, ye = () => {
532
+ Pe(h);
533
+ }, ve = (i, d, _) => {
534
+ if (u == "secondaryMenu" && o && n && h && i.id) {
535
+ let E = new URL(`${o}/v1/casino/groups/${n}/${i.id}/subGroups?language=${h}`);
536
+ fetch(E.href).then((H) => H.json()).then((H) => {
537
+ H.index = d, t(10, Y = Y.concat(H)), v == "false" && window.postMessage(
538
+ {
539
+ type: r,
540
+ itemId: i.id,
541
+ index: d,
542
+ item: i
543
+ },
544
+ window.location.href
545
+ );
546
+ const N = [];
547
+ Y.map((Ae) => (Ae.items.forEach((re) => {
548
+ N.find((He) => re.id == He) || N.push(re.id);
549
+ }), N.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: N }, window.location.href);
550
+ }).then(() => {
551
+ j.querySelectorAll(".DropDown") && U();
552
+ });
553
+ }
554
+ u == "headerMain" && window.postMessage({ type: r, item: i }, window.location.href);
555
+ }, U = () => {
556
+ const i = j.querySelectorAll(".DropDown");
557
+ document.activeElement.blur(), A.classList.add("isScrolling");
558
+ for (let d = 0; d < i.length; d++)
559
+ i[d].style.transform = "translateX(-" + A.scrollLeft + "px)";
560
+ A.classList.remove("isScrolling");
561
+ }, be = () => {
562
+ O.forEach((i, d) => {
563
+ var _;
564
+ ((_ = i == null ? void 0 : i.subGroups) == null ? void 0 : _.count) > 0 && (t(11, q[d] = !0, q), ve(i, d));
565
+ });
566
+ }, _e = (i) => {
567
+ let d = "";
568
+ return i.id === "LOBBY" ? d = b : i.id === "MYGAMES" && (d = T), i.icon || d;
569
+ };
570
+ Oe(() => (window.addEventListener("message", te, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
571
+ () => {
572
+ A.addEventListener("scroll", U);
573
+ },
574
+ 500
575
+ ), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
576
+ window.removeEventListener("message", te), j.removeEventListener("scroll", U);
577
+ }));
578
+ const ke = () => $(), Fe = (i, d, _, E, H) => {
579
+ X(i, d, _, E, "secondary"), H.stopPropagation();
580
+ }, Me = (i, d, _) => {
581
+ X(i, d, null, null, "main"), _.preventDefault();
582
+ };
583
+ function Ie(i) {
584
+ J[i ? "unshift" : "push"](() => {
585
+ j = i, t(5, j);
586
+ });
587
+ }
588
+ function De(i) {
589
+ J[i ? "unshift" : "push"](() => {
590
+ A = i, t(12, A);
591
+ });
592
+ }
593
+ const Se = () => ee();
594
+ function Le(i) {
595
+ J[i ? "unshift" : "push"](() => {
596
+ L = i, t(4, L);
597
+ });
598
+ }
599
+ return a.$$set = (i) => {
600
+ "endpoint" in i && t(17, o = i.endpoint), "datasource" in i && t(18, n = i.datasource), "onclickeventname" in i && t(19, l = i.onclickeventname), "actionevent" in i && t(20, r = i.actionevent), "favoritesnumber" in i && t(21, s = i.favoritesnumber), "location" in i && t(0, u = i.location), "clientstyling" in i && t(22, F = i.clientstyling), "clientstylingurl" in i && t(23, w = i.clientstylingurl), "identity" in i && t(24, m = i.identity), "translationurl" in i && t(25, y = i.translationurl), "isprimarymenu" in i && t(26, M = i.isprimarymenu), "issecondarymenu" in i && t(27, I = i.issecondarymenu), "lang" in i && t(28, h = i.lang), "activeindex" in i && t(1, c = i.activeindex), "showsubgroups" in i && t(2, v = i.showsubgroups), "categoriesicon" in i && t(3, f = i.categoriesicon), "lobbyiconimage" in i && t(29, b = i.lobbyiconimage), "mygamesiconimage" in i && t(30, T = i.mygamesiconimage);
601
+ }, a.$$.update = () => {
602
+ a.$$.dirty[0] & /*activeindex*/
603
+ 2, a.$$.dirty[0] & /*translationurl*/
604
+ 33554432 && y && x(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
605
+ 4194320 && F && L && Ge(L, F), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
606
+ 8388624 && w && L && xe(L), a.$$.dirty[0] & /*customStylingContainer*/
607
+ 16 && L && Ye(L, "Casino.Style"), a.$$.dirty[0] & /*lang*/
608
+ 268435456 && h && ye();
609
+ }, [
610
+ u,
611
+ c,
612
+ v,
613
+ f,
614
+ L,
615
+ j,
616
+ W,
617
+ z,
618
+ K,
619
+ O,
620
+ Y,
621
+ q,
622
+ A,
623
+ X,
624
+ $,
625
+ ee,
626
+ _e,
627
+ o,
628
+ n,
629
+ l,
630
+ r,
631
+ s,
632
+ F,
633
+ w,
634
+ m,
635
+ y,
636
+ M,
637
+ I,
638
+ h,
639
+ b,
640
+ T,
641
+ ke,
642
+ Fe,
643
+ Me,
644
+ Ie,
645
+ De,
646
+ Se,
647
+ Le
648
+ ];
649
+ }
650
+ class Ze extends Re {
651
+ constructor(e) {
652
+ super(), Te(
653
+ this,
654
+ e,
655
+ Ve,
656
+ Qe,
657
+ Be,
658
+ {
659
+ endpoint: 17,
660
+ datasource: 18,
661
+ onclickeventname: 19,
662
+ actionevent: 20,
663
+ favoritesnumber: 21,
664
+ location: 0,
665
+ clientstyling: 22,
666
+ clientstylingurl: 23,
667
+ identity: 24,
668
+ translationurl: 25,
669
+ isprimarymenu: 26,
670
+ issecondarymenu: 27,
671
+ lang: 28,
672
+ activeindex: 1,
673
+ showsubgroups: 2,
674
+ categoriesicon: 3,
675
+ lobbyiconimage: 29,
676
+ mygamesiconimage: 30
677
+ },
678
+ Ke,
679
+ [-1, -1]
680
+ );
681
+ }
682
+ get endpoint() {
683
+ return this.$$.ctx[17];
684
+ }
685
+ set endpoint(e) {
686
+ this.$$set({ endpoint: e }), p();
687
+ }
688
+ get datasource() {
689
+ return this.$$.ctx[18];
690
+ }
691
+ set datasource(e) {
692
+ this.$$set({ datasource: e }), p();
693
+ }
694
+ get onclickeventname() {
695
+ return this.$$.ctx[19];
696
+ }
697
+ set onclickeventname(e) {
698
+ this.$$set({ onclickeventname: e }), p();
699
+ }
700
+ get actionevent() {
701
+ return this.$$.ctx[20];
702
+ }
703
+ set actionevent(e) {
704
+ this.$$set({ actionevent: e }), p();
705
+ }
706
+ get favoritesnumber() {
707
+ return this.$$.ctx[21];
708
+ }
709
+ set favoritesnumber(e) {
710
+ this.$$set({ favoritesnumber: e }), p();
711
+ }
712
+ get location() {
713
+ return this.$$.ctx[0];
714
+ }
715
+ set location(e) {
716
+ this.$$set({ location: e }), p();
717
+ }
718
+ get clientstyling() {
719
+ return this.$$.ctx[22];
720
+ }
721
+ set clientstyling(e) {
722
+ this.$$set({ clientstyling: e }), p();
723
+ }
724
+ get clientstylingurl() {
725
+ return this.$$.ctx[23];
726
+ }
727
+ set clientstylingurl(e) {
728
+ this.$$set({ clientstylingurl: e }), p();
729
+ }
730
+ get identity() {
731
+ return this.$$.ctx[24];
732
+ }
733
+ set identity(e) {
734
+ this.$$set({ identity: e }), p();
735
+ }
736
+ get translationurl() {
737
+ return this.$$.ctx[25];
738
+ }
739
+ set translationurl(e) {
740
+ this.$$set({ translationurl: e }), p();
741
+ }
742
+ get isprimarymenu() {
743
+ return this.$$.ctx[26];
744
+ }
745
+ set isprimarymenu(e) {
746
+ this.$$set({ isprimarymenu: e }), p();
747
+ }
748
+ get issecondarymenu() {
749
+ return this.$$.ctx[27];
750
+ }
751
+ set issecondarymenu(e) {
752
+ this.$$set({ issecondarymenu: e }), p();
753
+ }
754
+ get lang() {
755
+ return this.$$.ctx[28];
756
+ }
757
+ set lang(e) {
758
+ this.$$set({ lang: e }), p();
759
+ }
760
+ get activeindex() {
761
+ return this.$$.ctx[1];
762
+ }
763
+ set activeindex(e) {
764
+ this.$$set({ activeindex: e }), p();
765
+ }
766
+ get showsubgroups() {
767
+ return this.$$.ctx[2];
768
+ }
769
+ set showsubgroups(e) {
770
+ this.$$set({ showsubgroups: e }), p();
771
+ }
772
+ get categoriesicon() {
773
+ return this.$$.ctx[3];
774
+ }
775
+ set categoriesicon(e) {
776
+ this.$$set({ categoriesicon: e }), p();
777
+ }
778
+ get lobbyiconimage() {
779
+ return this.$$.ctx[29];
780
+ }
781
+ set lobbyiconimage(e) {
782
+ this.$$set({ lobbyiconimage: e }), p();
783
+ }
784
+ get mygamesiconimage() {
785
+ return this.$$.ctx[30];
786
+ }
787
+ set mygamesiconimage(e) {
788
+ this.$$set({ mygamesiconimage: e }), p();
789
+ }
790
+ }
791
+ je(Ze, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
792
+ export {
793
+ Ze as default
794
+ };