@everymatrix/casino-header-controller 1.59.3 → 1.60.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 (35) hide show
  1. package/components/{CasinoHamburgerMenu-BG-4lbhJ.js → CasinoHamburgerMenu-D3IA0-Fr.js} +822 -800
  2. package/components/CasinoHamburgerMenu-DessG6uq.cjs +21 -0
  3. package/components/{CasinoHamburgerMenu-Dw8i7ogu.js → CasinoHamburgerMenu-DyL5A7W7.js} +668 -646
  4. package/components/{CasinoHeaderController-B0oqifps.js → CasinoHeaderController-B1Lx3tU2.js} +141 -130
  5. package/components/{CasinoHeaderController-BeE4bg1i.cjs → CasinoHeaderController-BH5IAaed.cjs} +5 -5
  6. package/components/{CasinoHeaderController-BuM7XPAr.js → CasinoHeaderController-DmFZgeXE.js} +142 -131
  7. package/components/CasinoSlider-BTGfiw5j.js +803 -0
  8. package/components/CasinoSlider-DRVCTpte.cjs +1 -0
  9. package/components/{CasinoSlider-BpPDoRFB.js → CasinoSlider-RSfl7Nfu.js} +124 -124
  10. package/components/PlayerAccountBalanceModal-B9BkSlDU.cjs +13 -0
  11. package/components/PlayerAccountBalanceModal-CEo_b6Ks.js +1510 -0
  12. package/components/PlayerAccountBalanceModal-fP9D_Jz7.js +1539 -0
  13. package/components/{PlayerDeposit-BsovN5ad.js → PlayerDeposit-D1KSGzHW.js} +65 -65
  14. package/components/PlayerDeposit-DNEPQuyW.cjs +1 -0
  15. package/components/{PlayerDeposit-DyYrLnnM.js → PlayerDeposit-OqZh5SL5.js} +65 -65
  16. package/es2015/casino-header-controller.cjs +1 -1
  17. package/es2015/casino-header-controller.js +1 -1
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/index-1ef3a64c-6soTLew7.js +556 -0
  21. package/stencil/index-1ef3a64c-DkMoO-oa.js +572 -0
  22. package/stencil/index-1ef3a64c-DmmoSOho.cjs +1 -0
  23. package/stencil/{user-deposit-withdrawal-CJvV3hVH.js → user-deposit-withdrawal-C72e1sSw.js} +1 -1
  24. package/stencil/{user-deposit-withdrawal-Ch6O_F-y.cjs → user-deposit-withdrawal-CS-LZhcv.cjs} +1 -1
  25. package/stencil/{user-deposit-withdrawal-DAEhwyJf.js → user-deposit-withdrawal-DfDiD6Lp.js} +1 -1
  26. package/components/CasinoHamburgerMenu-CvBpCdt_.cjs +0 -21
  27. package/components/CasinoSlider-BGDn7LeB.js +0 -803
  28. package/components/CasinoSlider-BSXhShrg.cjs +0 -1
  29. package/components/PlayerAccountBalanceModal-CckEoZRk.js +0 -1510
  30. package/components/PlayerAccountBalanceModal-Ct7UUbnk.cjs +0 -13
  31. package/components/PlayerAccountBalanceModal-DiZBhm3s.js +0 -1539
  32. package/components/PlayerDeposit-BrNpbkaS.cjs +0 -1
  33. package/stencil/index-1ef3a64c-CsSXee6P.js +0 -556
  34. package/stencil/index-1ef3a64c-DRf7Ax9K.js +0 -572
  35. package/stencil/index-1ef3a64c-ImAoW8IW.cjs +0 -1
@@ -1,803 +0,0 @@
1
- import { $ as Q, a as Ne, b as Re, S as Te, i as je, s as We, f as C, d as ze, n as oe, e as D, t as Be, z as m, h as S, v as p, w as P, k, j as T, o as Oe, A as z, M as pe, r as x, p as X, E as ie, u as V, y as Z, B as Ge, N as we, J as xe, K as Ye, L as qe, c as Ue } from "./CasinoHamburgerMenu-Dw8i7ogu.js";
2
- function Pe({ withLocale: a, translations: e }) {
3
- Q.subscribe((t) => {
4
- t == null && (Ne.set(e), Q.set(a));
5
- });
6
- }
7
- function ae(a, e) {
8
- Re(a, e);
9
- }
10
- function Ke(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 Je(a) {
71
- ze(a, "svelte-1lder3j", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;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 i = a.slice();
75
- return i[48] = e[t], i[50] = t, i;
76
- }
77
- function se(a, e, t) {
78
- const i = a.slice();
79
- return i[51] = e[t], i;
80
- }
81
- function ce(a, e, t) {
82
- const i = a.slice();
83
- return i[54] = e[t], i[56] = t, i;
84
- }
85
- function ue(a) {
86
- let e = [], t = /* @__PURE__ */ new Map(), i, n = z(
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
- i = x();
103
- },
104
- m(r, s) {
105
- for (let u = 0; u < e.length; u += 1)
106
- e[u] && e[u].m(r, s);
107
- S(r, i, s);
108
- },
109
- p(r, s) {
110
- s[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
111
- 77775 && (n = z(
112
- /*sliderdata*/
113
- r[9]
114
- ), e = pe(e, s, l, 1, r, n, t, i.parentNode, we, Ce, i, le));
115
- },
116
- d(r) {
117
- r && D(i);
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
- ), i;
128
- return {
129
- c() {
130
- e = k("button"), i = Z(t), m(e, "class", "CategoryButton");
131
- },
132
- m(n, l) {
133
- S(n, e, l), p(e, i);
134
- },
135
- p(n, l) {
136
- l[0] & /*sliderdata*/
137
- 512 && t !== (t = /*category*/
138
- n[48].name + "") && V(i, t);
139
- },
140
- d(n) {
141
- n && D(e);
142
- }
143
- };
144
- }
145
- function Qe(a) {
146
- let e, t = (
147
- /*category*/
148
- a[48].label + ""
149
- ), i, n;
150
- return {
151
- c() {
152
- e = k("a"), i = Z(t), m(e, "href", n = /*category*/
153
- a[48].path);
154
- },
155
- m(l, r) {
156
- S(l, e, r), p(e, i);
157
- },
158
- p(l, r) {
159
- r[0] & /*sliderdata*/
160
- 512 && t !== (t = /*category*/
161
- l[48].label + "") && V(i, t), r[0] & /*sliderdata*/
162
- 512 && n !== (n = /*category*/
163
- l[48].path) && m(e, "href", n);
164
- },
165
- d(l) {
166
- l && D(e);
167
- }
168
- };
169
- }
170
- function de(a) {
171
- let e, t = (
172
- /*subGroupsData*/
173
- a[10].length > 0 && /*showsubgroups*/
174
- a[2] == "true" && me(a)
175
- );
176
- return {
177
- c() {
178
- t && t.c(), e = x();
179
- },
180
- m(i, n) {
181
- t && t.m(i, n), S(i, e, n);
182
- },
183
- p(i, n) {
184
- /*subGroupsData*/
185
- i[10].length > 0 && /*showsubgroups*/
186
- i[2] == "true" ? t ? t.p(i, n) : (t = me(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
187
- },
188
- d(i) {
189
- i && D(e), t && t.d(i);
190
- }
191
- };
192
- }
193
- function me(a) {
194
- let e, t = z(
195
- /*subGroupsData*/
196
- a[10]
197
- ), i = [];
198
- for (let n = 0; n < t.length; n += 1)
199
- i[n] = he(se(a, t, n));
200
- return {
201
- c() {
202
- e = k("ul");
203
- for (let n = 0; n < i.length; n += 1)
204
- i[n].c();
205
- m(e, "class", "DropDown");
206
- },
207
- m(n, l) {
208
- S(n, e, l);
209
- for (let r = 0; r < i.length; r += 1)
210
- i[r] && i[r].m(e, null);
211
- },
212
- p(n, l) {
213
- if (l[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
214
- 10176) {
215
- t = z(
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
- i[r] ? i[r].p(s, l) : (i[r] = he(s), i[r].c(), i[r].m(e, null));
223
- }
224
- for (; r < i.length; r += 1)
225
- i[r].d(1);
226
- i.length = t.length;
227
- }
228
- },
229
- d(n) {
230
- n && D(e), Ge(i, n);
231
- }
232
- };
233
- }
234
- function ge(a) {
235
- var w;
236
- let e, t, i = (
237
- /*subGroupItem*/
238
- ((w = a[54]) == null ? void 0 : w.name) + ""
239
- ), n, l, r, s, u;
240
- function F(...f) {
241
- return (
242
- /*click_handler_1*/
243
- a[33](
244
- /*category*/
245
- a[48],
246
- /*index*/
247
- a[50],
248
- /*subGroupItem*/
249
- a[54],
250
- /*subindex*/
251
- a[56],
252
- ...f
253
- )
254
- );
255
- }
256
- return {
257
- c() {
258
- e = k("li"), t = k("a"), n = Z(i), r = T(), m(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(f, y) {
267
- S(f, e, y), p(e, t), p(t, n), p(e, r), s || (u = P(e, "click", F), s = !0);
268
- },
269
- p(f, y) {
270
- var M;
271
- a = f, y[0] & /*subGroupsData*/
272
- 1024 && i !== (i = /*subGroupItem*/
273
- ((M = a[54]) == null ? void 0 : M.name) + "") && V(n, i), 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" : "")) && m(t, "class", l);
281
- },
282
- d(f) {
283
- f && D(e), s = !1, u();
284
- }
285
- };
286
- }
287
- function fe(a, e) {
288
- let t, i, n = (
289
- /*index*/
290
- e[50] == /*subGroup*/
291
- e[51].index && ge(e)
292
- );
293
- return {
294
- key: a,
295
- first: null,
296
- c() {
297
- t = x(), n && n.c(), i = x(), this.first = t;
298
- },
299
- m(l, r) {
300
- S(l, t, r), n && n.m(l, r), S(l, i, r);
301
- },
302
- p(l, r) {
303
- e = l, /*index*/
304
- e[50] == /*subGroup*/
305
- e[51].index ? n ? n.p(e, r) : (n = ge(e), n.c(), n.m(i.parentNode, i)) : n && (n.d(1), n = null);
306
- },
307
- d(l) {
308
- l && (D(t), D(i)), n && n.d(l);
309
- }
310
- };
311
- }
312
- function he(a) {
313
- let e = [], t = /* @__PURE__ */ new Map(), i, n = z(
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] = fe(u, s));
324
- }
325
- return {
326
- c() {
327
- for (let r = 0; r < e.length; r += 1)
328
- e[r].c();
329
- i = x();
330
- },
331
- m(r, s) {
332
- for (let u = 0; u < e.length; u += 1)
333
- e[u] && e[u].m(r, s);
334
- S(r, i, s);
335
- },
336
- p(r, s) {
337
- s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
338
- 10176 && (n = z(
339
- /*subGroup*/
340
- r[51].items
341
- ), e = pe(e, s, l, 1, r, n, t, i.parentNode, we, fe, i, ce));
342
- },
343
- d(r) {
344
- r && D(i);
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, i, n, l, r, s, u, F, w, f, y;
352
- function M(g, v) {
353
- return (
354
- /*location*/
355
- g[0] === "headerMain" ? Qe : 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 b(...g) {
366
- return (
367
- /*click_handler_2*/
368
- e[34](
369
- /*category*/
370
- e[48],
371
- /*index*/
372
- e[50],
373
- ...g
374
- )
375
- );
376
- }
377
- return {
378
- key: a,
379
- first: null,
380
- c() {
381
- var g, v;
382
- t = k("li"), i = k("div"), n = k("img"), s = T(), h.c(), u = T(), c && c.c(), F = T(), m(n, "class", l = "CategoryIconImg " + /*categoriesicon*/
383
- (e[3] === "true" ? "" : "DisplayNone")), ie(n.src, r = /*handleSrc*/
384
- e[16](
385
- /*category*/
386
- e[48]
387
- )) || m(n, "src", r), m(i, "class", "CategoryIcon"), m(t, "class", w = "CarouselItem " + /*activeindex*/
388
- (((g = e[1]) == null ? void 0 : g.toString().indexOf("$")) > -1 ? (
389
- /*activeindex*/
390
- ((v = e[1]) == null ? void 0 : v.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")), this.first = t;
398
- },
399
- m(g, v) {
400
- S(g, t, v), p(t, i), p(i, n), p(t, s), h.m(t, null), p(t, u), c && c.m(t, null), p(t, F), f || (y = P(t, "click", b), f = !0);
401
- },
402
- p(g, v) {
403
- var j, E;
404
- e = g, v[0] & /*categoriesicon*/
405
- 8 && l !== (l = "CategoryIconImg " + /*categoriesicon*/
406
- (e[3] === "true" ? "" : "DisplayNone")) && m(n, "class", l), v[0] & /*sliderdata*/
407
- 512 && !ie(n.src, r = /*handleSrc*/
408
- e[16](
409
- /*category*/
410
- e[48]
411
- )) && m(n, "src", r), I === (I = M(e)) && h ? h.p(e, v) : (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, v) : (c = de(e), c.c(), c.m(t, F)) : c && (c.d(1), c = null), v[0] & /*activeindex, sliderdata, location*/
416
- 515 && w !== (w = "CarouselItem " + /*activeindex*/
417
- (((j = e[1]) == null ? void 0 : j.toString().indexOf("$")) > -1 ? (
418
- /*activeindex*/
419
- ((E = e[1]) == null ? void 0 : E.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")) && m(t, "class", w);
427
- },
428
- d(g) {
429
- g && D(t), h.d(), c && c.d(), f = !1, y();
430
- }
431
- };
432
- }
433
- function Ve(a) {
434
- let e, t, i, n, l, r, s, u, F, w, f, 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"), i = k("div"), i.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 = T(), l = k("div"), r = k("ul"), s = k("li"), s.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = T(), c && c.c(), F = T(), 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>', m(i, "class", "CarouselLeftArrow"), m(s, "class", "TouchOnly"), m(r, "id", "CarouselNav"), m(r, "class", "CarouselItems"), m(l, "class", "CarouselNavWrap"), m(w, "class", "CarouselRightArrow"), m(t, "class", f = `CarouselContainer CarouselContainerMobile ${/*location*/
441
- a[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), m(t, "style", y = /*location*/
442
- a[0] === "headerMain" ? "max-width: auto" : void 0), m(e, "class", M = "CarouselWrapper " + /*location*/
443
- (a[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
444
- },
445
- m(b, g) {
446
- S(b, e, g), p(e, t), p(t, i), p(t, n), p(t, l), p(l, r), p(r, s), p(r, u), c && c.m(r, null), a[35](r), a[36](l), p(t, F), p(t, w), a[38](e), I || (h = [
447
- P(
448
- i,
449
- "click",
450
- /*click_handler*/
451
- a[32]
452
- ),
453
- P(
454
- w,
455
- "click",
456
- /*click_handler_3*/
457
- a[37]
458
- )
459
- ], I = !0);
460
- },
461
- p(b, g) {
462
- /*sliderdata*/
463
- b[9].length > 0 ? c ? c.p(b, g) : (c = ue(b), c.c(), c.m(r, null)) : c && (c.d(1), c = null), g[0] & /*location*/
464
- 1 && f !== (f = `CarouselContainer CarouselContainerMobile ${/*location*/
465
- b[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && m(t, "class", f), g[0] & /*location*/
466
- 1 && y !== (y = /*location*/
467
- b[0] === "headerMain" ? "max-width: auto" : void 0) && m(t, "style", y), g[0] & /*location*/
468
- 1 && M !== (M = "CarouselWrapper " + /*location*/
469
- (b[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && m(e, "class", M);
470
- },
471
- i: oe,
472
- o: oe,
473
- d(b) {
474
- b && D(e), c && c.d(), a[35](null), a[36](null), a[38](null), I = !1, Be(h);
475
- }
476
- };
477
- }
478
- function Ze(a, e, t) {
479
- let { endpoint: i = "" } = 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: f = "" } = e, { translationurl: y = "" } = e, { isprimarymenu: M = !1 } = e, { issecondarymenu: I = !1 } = e, { lang: h = "" } = e, { activeindex: c = "0" } = e, { showsubgroups: b = "false" } = e, { categoriesicon: g = "false" } = e, { lobbyiconimage: v = "" } = e, { mygamesiconimage: j = "" } = e, { mbsource: E = "" } = e;
480
- Pe({ withLocale: "en", translations: {} });
481
- const ye = () => {
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((o) => {
491
- ae(o, ne[o]);
492
- });
493
- let W, B, O, K, L, G = [], Y = [], q = [], A, J = (o, d, _, N, H) => {
494
- var R;
495
- if (!(o.subGroups && N === null)) {
496
- if (U(), t(6, B = d), t(6, B), H != "secondary") {
497
- window.postMessage(
498
- {
499
- type: r == "CategoryChange" ? "CategoryChange" : "NavigateTo",
500
- buzz: "1",
501
- itemId: o.id,
502
- index: d,
503
- item: o,
504
- path: o.path,
505
- externalLink: o.externalLink || !1,
506
- target: ((R = o.attrs) == null ? void 0 : R.target) || null
507
- },
508
- window.location.href
509
- ), t(7, O = null), t(8, K = null);
510
- return;
511
- }
512
- t(7, O = N), t(7, O), t(8, K = O), window.postMessage(
513
- {
514
- type: r,
515
- itemId: _.id,
516
- subIndex: N,
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 = (o) => {
528
- o.data.type == "SliderData" && o.data.identity == f && (t(9, G = o.data.data), t(11, q = new Array(G.length).fill(!1)), b == "true" && _e()), o.data.type == "GoToHomepage" && G.forEach((d, _) => {
529
- d.path.endsWith("/casino") && (t(6, B = _), t(6, B));
530
- });
531
- }, be = () => {
532
- Ke(h);
533
- }, ve = (o, d, _) => {
534
- if (u == "secondaryMenu" && i && n && h && o.id) {
535
- let N = new URL(`${i}/v1/casino/groups/${n}/${o.id}/subGroups?language=${h}`);
536
- fetch(N.href).then((H) => H.json()).then((H) => {
537
- H.index = d, t(10, Y = Y.concat(H)), b == "false" && window.postMessage(
538
- {
539
- type: r,
540
- itemId: o.id,
541
- index: d,
542
- item: o
543
- },
544
- window.location.href
545
- );
546
- const R = [];
547
- Y.map((He) => (He.items.forEach((re) => {
548
- R.find((Ee) => re.id == Ee) || R.push(re.id);
549
- }), R.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: R }, window.location.href);
550
- }).then(() => {
551
- W.querySelectorAll(".DropDown") && U();
552
- });
553
- }
554
- u == "headerMain" && window.postMessage({ type: r, item: o }, window.location.href);
555
- }, U = () => {
556
- const o = W.querySelectorAll(".DropDown");
557
- document.activeElement.blur(), A.classList.add("isScrolling");
558
- for (let d = 0; d < o.length; d++)
559
- o[d].style.transform = "translateX(-" + A.scrollLeft + "px)";
560
- A.classList.remove("isScrolling");
561
- }, _e = () => {
562
- G.forEach((o, d) => {
563
- var _;
564
- ((_ = o == null ? void 0 : o.subGroups) == null ? void 0 : _.count) > 0 && (t(11, q[d] = !0, q), ve(o, d));
565
- });
566
- }, ke = (o) => {
567
- let d = "";
568
- return o.id === "LOBBY" ? d = v : o.id === "MYGAMES" && (d = j), o.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: f }), () => {
576
- window.removeEventListener("message", te), W.removeEventListener("scroll", U);
577
- }));
578
- const Fe = () => $(), Me = (o, d, _, N, H) => {
579
- J(o, d, _, N, "secondary"), H.stopPropagation();
580
- }, Ie = (o, d, _) => {
581
- J(o, d, null, null, "main"), _.preventDefault();
582
- };
583
- function De(o) {
584
- X[o ? "unshift" : "push"](() => {
585
- W = o, t(5, W);
586
- });
587
- }
588
- function Se(o) {
589
- X[o ? "unshift" : "push"](() => {
590
- A = o, t(12, A);
591
- });
592
- }
593
- const Le = () => ee();
594
- function Ae(o) {
595
- X[o ? "unshift" : "push"](() => {
596
- L = o, t(4, L);
597
- });
598
- }
599
- return a.$$set = (o) => {
600
- "endpoint" in o && t(17, i = o.endpoint), "datasource" in o && t(18, n = o.datasource), "onclickeventname" in o && t(19, l = o.onclickeventname), "actionevent" in o && t(20, r = o.actionevent), "favoritesnumber" in o && t(21, s = o.favoritesnumber), "location" in o && t(0, u = o.location), "clientstyling" in o && t(22, F = o.clientstyling), "clientstylingurl" in o && t(23, w = o.clientstylingurl), "identity" in o && t(24, f = o.identity), "translationurl" in o && t(25, y = o.translationurl), "isprimarymenu" in o && t(26, M = o.isprimarymenu), "issecondarymenu" in o && t(27, I = o.issecondarymenu), "lang" in o && t(28, h = o.lang), "activeindex" in o && t(1, c = o.activeindex), "showsubgroups" in o && t(2, b = o.showsubgroups), "categoriesicon" in o && t(3, g = o.categoriesicon), "lobbyiconimage" in o && t(29, v = o.lobbyiconimage), "mygamesiconimage" in o && t(30, j = o.mygamesiconimage), "mbsource" in o && t(31, E = o.mbsource);
601
- }, a.$$.update = () => {
602
- a.$$.dirty[0] & /*activeindex*/
603
- 2, a.$$.dirty[0] & /*translationurl*/
604
- 33554432 && y && ye(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
605
- 4194320 && F && L && xe(L, F), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
606
- 8388624 && w && L && Ye(L, w), a.$$.dirty[0] & /*customStylingContainer*/
607
- 16 | a.$$.dirty[1] & /*mbsource*/
608
- 1 && E && L && qe(L, `${E}.Style`), a.$$.dirty[0] & /*lang*/
609
- 268435456 && h && be();
610
- }, [
611
- u,
612
- c,
613
- b,
614
- g,
615
- L,
616
- W,
617
- B,
618
- O,
619
- K,
620
- G,
621
- Y,
622
- q,
623
- A,
624
- J,
625
- $,
626
- ee,
627
- ke,
628
- i,
629
- n,
630
- l,
631
- r,
632
- s,
633
- F,
634
- w,
635
- f,
636
- y,
637
- M,
638
- I,
639
- h,
640
- v,
641
- j,
642
- E,
643
- Fe,
644
- Me,
645
- Ie,
646
- De,
647
- Se,
648
- Le,
649
- Ae
650
- ];
651
- }
652
- class $e extends Te {
653
- constructor(e) {
654
- super(), je(
655
- this,
656
- e,
657
- Ze,
658
- Ve,
659
- We,
660
- {
661
- endpoint: 17,
662
- datasource: 18,
663
- onclickeventname: 19,
664
- actionevent: 20,
665
- favoritesnumber: 21,
666
- location: 0,
667
- clientstyling: 22,
668
- clientstylingurl: 23,
669
- identity: 24,
670
- translationurl: 25,
671
- isprimarymenu: 26,
672
- issecondarymenu: 27,
673
- lang: 28,
674
- activeindex: 1,
675
- showsubgroups: 2,
676
- categoriesicon: 3,
677
- lobbyiconimage: 29,
678
- mygamesiconimage: 30,
679
- mbsource: 31
680
- },
681
- Je,
682
- [-1, -1]
683
- );
684
- }
685
- get endpoint() {
686
- return this.$$.ctx[17];
687
- }
688
- set endpoint(e) {
689
- this.$$set({ endpoint: e }), C();
690
- }
691
- get datasource() {
692
- return this.$$.ctx[18];
693
- }
694
- set datasource(e) {
695
- this.$$set({ datasource: e }), C();
696
- }
697
- get onclickeventname() {
698
- return this.$$.ctx[19];
699
- }
700
- set onclickeventname(e) {
701
- this.$$set({ onclickeventname: e }), C();
702
- }
703
- get actionevent() {
704
- return this.$$.ctx[20];
705
- }
706
- set actionevent(e) {
707
- this.$$set({ actionevent: e }), C();
708
- }
709
- get favoritesnumber() {
710
- return this.$$.ctx[21];
711
- }
712
- set favoritesnumber(e) {
713
- this.$$set({ favoritesnumber: e }), C();
714
- }
715
- get location() {
716
- return this.$$.ctx[0];
717
- }
718
- set location(e) {
719
- this.$$set({ location: e }), C();
720
- }
721
- get clientstyling() {
722
- return this.$$.ctx[22];
723
- }
724
- set clientstyling(e) {
725
- this.$$set({ clientstyling: e }), C();
726
- }
727
- get clientstylingurl() {
728
- return this.$$.ctx[23];
729
- }
730
- set clientstylingurl(e) {
731
- this.$$set({ clientstylingurl: e }), C();
732
- }
733
- get identity() {
734
- return this.$$.ctx[24];
735
- }
736
- set identity(e) {
737
- this.$$set({ identity: e }), C();
738
- }
739
- get translationurl() {
740
- return this.$$.ctx[25];
741
- }
742
- set translationurl(e) {
743
- this.$$set({ translationurl: e }), C();
744
- }
745
- get isprimarymenu() {
746
- return this.$$.ctx[26];
747
- }
748
- set isprimarymenu(e) {
749
- this.$$set({ isprimarymenu: e }), C();
750
- }
751
- get issecondarymenu() {
752
- return this.$$.ctx[27];
753
- }
754
- set issecondarymenu(e) {
755
- this.$$set({ issecondarymenu: e }), C();
756
- }
757
- get lang() {
758
- return this.$$.ctx[28];
759
- }
760
- set lang(e) {
761
- this.$$set({ lang: e }), C();
762
- }
763
- get activeindex() {
764
- return this.$$.ctx[1];
765
- }
766
- set activeindex(e) {
767
- this.$$set({ activeindex: e }), C();
768
- }
769
- get showsubgroups() {
770
- return this.$$.ctx[2];
771
- }
772
- set showsubgroups(e) {
773
- this.$$set({ showsubgroups: e }), C();
774
- }
775
- get categoriesicon() {
776
- return this.$$.ctx[3];
777
- }
778
- set categoriesicon(e) {
779
- this.$$set({ categoriesicon: e }), C();
780
- }
781
- get lobbyiconimage() {
782
- return this.$$.ctx[29];
783
- }
784
- set lobbyiconimage(e) {
785
- this.$$set({ lobbyiconimage: e }), C();
786
- }
787
- get mygamesiconimage() {
788
- return this.$$.ctx[30];
789
- }
790
- set mygamesiconimage(e) {
791
- this.$$set({ mygamesiconimage: e }), C();
792
- }
793
- get mbsource() {
794
- return this.$$.ctx[31];
795
- }
796
- set mbsource(e) {
797
- this.$$set({ mbsource: e }), C();
798
- }
799
- }
800
- Ue($e, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
801
- export {
802
- $e as default
803
- };