@everymatrix/casino-header-controller 1.54.12 → 1.56.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 (36) hide show
  1. package/components/{CasinoHamburgerMenu-Dv3mR4gk.js → CasinoHamburgerMenu-B2TeHkyB.js} +1023 -1001
  2. package/components/{CasinoHamburgerMenu-DrXD2QZ-.js → CasinoHamburgerMenu-CUR5gaxv.js} +1048 -1026
  3. package/components/CasinoHamburgerMenu-DYL1HIps.cjs +8 -0
  4. package/components/CasinoHeaderController-CfLLPnem.cjs +13 -0
  5. package/components/{CasinoHeaderController-uM2BkEPQ.js → CasinoHeaderController-CrEqMU6h.js} +1019 -923
  6. package/components/{CasinoHeaderController-EYxUFHlv.js → CasinoHeaderController-Cv1RNj2L.js} +1056 -960
  7. package/components/CasinoSlider-BU9fkHDu.cjs +1 -0
  8. package/components/CasinoSlider-CS-q7BSV.js +803 -0
  9. package/components/CasinoSlider-DrD2osTb.js +797 -0
  10. package/components/PlayerAccountBalanceModal--zdJlg4L.js +1507 -0
  11. package/components/PlayerAccountBalanceModal-C31JpnHA.cjs +13 -0
  12. package/components/PlayerAccountBalanceModal-aiqQaHCF.js +1536 -0
  13. package/components/{PlayerDeposit-B89_Vs9V.js → PlayerDeposit-BlD-xNdY.js} +128 -132
  14. package/components/{PlayerDeposit-CNy9cvEy.js → PlayerDeposit-DwGrlu-U.js} +128 -132
  15. package/components/PlayerDeposit-DzkmDtD0.cjs +1 -0
  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-c7e52808-DGZdfQYz.cjs +1 -0
  21. package/stencil/{index-45f4006f-B0VyePmU.js → index-c7e52808-RGphQbEA.js} +44 -44
  22. package/stencil/{index-45f4006f-BYSN7Lmh.js → index-c7e52808-yJXIboHF.js} +46 -46
  23. package/stencil/{user-deposit-withdrawal-BEcaqAXR.js → user-deposit-withdrawal-1SJnPWvi.js} +257 -240
  24. package/stencil/{user-deposit-withdrawal-5ly7Quf_.js → user-deposit-withdrawal-BiZKbrT_.js} +181 -164
  25. package/stencil/user-deposit-withdrawal-CzeoKH00.cjs +59 -0
  26. package/components/CasinoHamburgerMenu-BGHo13mn.cjs +0 -8
  27. package/components/CasinoHeaderController-CfFUvcEO.cjs +0 -13
  28. package/components/CasinoSlider-5-1p-Xbc.js +0 -800
  29. package/components/CasinoSlider-BaotiKI5.cjs +0 -1
  30. package/components/CasinoSlider-Dm6jniCL.js +0 -806
  31. package/components/PlayerAccountBalanceModal-B1_uQAVA.js +0 -1540
  32. package/components/PlayerAccountBalanceModal-B_7fcnxz.cjs +0 -13
  33. package/components/PlayerAccountBalanceModal-Cs1yCHOI.js +0 -1511
  34. package/components/PlayerDeposit-DqZH75Dh.cjs +0 -1
  35. package/stencil/index-45f4006f-CT7q_gcU.cjs +0 -1
  36. package/stencil/user-deposit-withdrawal-CJUx01Ss.cjs +0 -59
@@ -1,800 +0,0 @@
1
- import { $ as X, a as Ne, b as Te, S as je, i as We, f as w, s as ze, c as Be, d as Oe, n as re, e as I, t as Ge, z as g, h as D, v as C, w as Y, k as b, j as R, o as xe, A as T, J as Ce, r as B, p as J, E as oe, u as Q, y as V, B as Ue, K as pe } from "./CasinoHamburgerMenu-Dv3mR4gk.js";
2
- function Ye({ withLocale: n, translations: e }) {
3
- X.subscribe((t) => {
4
- t == null && (Ne.set(e), X.set(n));
5
- });
6
- }
7
- function ie(n, e) {
8
- Te(n, e);
9
- }
10
- function qe(n) {
11
- X.set(n);
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 Pe(n) {
71
- Oe(n, "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 ae(n, e, t) {
74
- const i = n.slice();
75
- return i[49] = e[t], i[51] = t, i;
76
- }
77
- function le(n, e, t) {
78
- const i = n.slice();
79
- return i[52] = e[t], i;
80
- }
81
- function se(n, e, t) {
82
- const i = n.slice();
83
- return i[55] = e[t], i[57] = t, i;
84
- }
85
- function ce(n) {
86
- let e = [], t = /* @__PURE__ */ new Map(), i, a = T(
87
- /*sliderdata*/
88
- n[9]
89
- );
90
- const l = (r) => (
91
- /*category*/
92
- r[49].id
93
- );
94
- for (let r = 0; r < a.length; r += 1) {
95
- let s = ae(n, a, r), d = l(s);
96
- t.set(d, e[r] = he(d, s));
97
- }
98
- return {
99
- c() {
100
- for (let r = 0; r < e.length; r += 1)
101
- e[r].c();
102
- i = B();
103
- },
104
- m(r, s) {
105
- for (let d = 0; d < e.length; d += 1)
106
- e[d] && e[d].m(r, s);
107
- D(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 && (a = T(
112
- /*sliderdata*/
113
- r[9]
114
- ), e = Ce(e, s, l, 1, r, a, t, i.parentNode, pe, he, i, ae));
115
- },
116
- d(r) {
117
- r && I(i);
118
- for (let s = 0; s < e.length; s += 1)
119
- e[s].d(r);
120
- }
121
- };
122
- }
123
- function Ke(n) {
124
- let e, t = (
125
- /*category*/
126
- n[49].name + ""
127
- ), i;
128
- return {
129
- c() {
130
- e = b("button"), i = V(t), g(e, "class", "CategoryButton");
131
- },
132
- m(a, l) {
133
- D(a, e, l), C(e, i);
134
- },
135
- p(a, l) {
136
- l[0] & /*sliderdata*/
137
- 512 && t !== (t = /*category*/
138
- a[49].name + "") && Q(i, t);
139
- },
140
- d(a) {
141
- a && I(e);
142
- }
143
- };
144
- }
145
- function Je(n) {
146
- let e, t = (
147
- /*category*/
148
- n[49].label + ""
149
- ), i, a;
150
- return {
151
- c() {
152
- e = b("a"), i = V(t), g(e, "href", a = /*category*/
153
- n[49].path);
154
- },
155
- m(l, r) {
156
- D(l, e, r), C(e, i);
157
- },
158
- p(l, r) {
159
- r[0] & /*sliderdata*/
160
- 512 && t !== (t = /*category*/
161
- l[49].label + "") && Q(i, t), r[0] & /*sliderdata*/
162
- 512 && a !== (a = /*category*/
163
- l[49].path) && g(e, "href", a);
164
- },
165
- d(l) {
166
- l && I(e);
167
- }
168
- };
169
- }
170
- function ue(n) {
171
- let e, t = (
172
- /*subGroupsData*/
173
- n[10].length > 0 && /*showsubgroups*/
174
- n[2] == "true" && de(n)
175
- );
176
- return {
177
- c() {
178
- t && t.c(), e = B();
179
- },
180
- m(i, a) {
181
- t && t.m(i, a), D(i, e, a);
182
- },
183
- p(i, a) {
184
- /*subGroupsData*/
185
- i[10].length > 0 && /*showsubgroups*/
186
- i[2] == "true" ? t ? t.p(i, a) : (t = de(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
187
- },
188
- d(i) {
189
- i && I(e), t && t.d(i);
190
- }
191
- };
192
- }
193
- function de(n) {
194
- let e, t = T(
195
- /*subGroupsData*/
196
- n[10]
197
- ), i = [];
198
- for (let a = 0; a < t.length; a += 1)
199
- i[a] = me(le(n, t, a));
200
- return {
201
- c() {
202
- e = b("ul");
203
- for (let a = 0; a < i.length; a += 1)
204
- i[a].c();
205
- g(e, "class", "DropDown");
206
- },
207
- m(a, l) {
208
- D(a, e, l);
209
- for (let r = 0; r < i.length; r += 1)
210
- i[r] && i[r].m(e, null);
211
- },
212
- p(a, l) {
213
- if (l[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
214
- 10176) {
215
- t = T(
216
- /*subGroupsData*/
217
- a[10]
218
- );
219
- let r;
220
- for (r = 0; r < t.length; r += 1) {
221
- const s = le(a, t, r);
222
- i[r] ? i[r].p(s, l) : (i[r] = me(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(a) {
230
- a && I(e), Ue(i, a);
231
- }
232
- };
233
- }
234
- function ge(n) {
235
- let e, t, i = (
236
- /*subGroupItem*/
237
- n[55]?.name + ""
238
- ), a, l, r, s, d;
239
- function _(...f) {
240
- return (
241
- /*click_handler_1*/
242
- n[32](
243
- /*category*/
244
- n[49],
245
- /*index*/
246
- n[51],
247
- /*subGroupItem*/
248
- n[55],
249
- /*subindex*/
250
- n[57],
251
- ...f
252
- )
253
- );
254
- }
255
- return {
256
- c() {
257
- e = b("li"), t = b("a"), a = V(i), r = R(), g(t, "class", l = "SubDropDown " + /*index*/
258
- (n[51] == /*activeIndex*/
259
- n[6] && /*activeSubIndex*/
260
- (n[7] == /*subindex*/
261
- n[57] || /*prevSubIndex*/
262
- n[8] == /*subindex*/
263
- n[57]) ? "active" : ""));
264
- },
265
- m(f, p) {
266
- D(f, e, p), C(e, t), C(t, a), C(e, r), s || (d = Y(e, "click", _), s = !0);
267
- },
268
- p(f, p) {
269
- n = f, p[0] & /*subGroupsData*/
270
- 1024 && i !== (i = /*subGroupItem*/
271
- n[55]?.name + "") && Q(a, i), p[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
272
- 1984 && l !== (l = "SubDropDown " + /*index*/
273
- (n[51] == /*activeIndex*/
274
- n[6] && /*activeSubIndex*/
275
- (n[7] == /*subindex*/
276
- n[57] || /*prevSubIndex*/
277
- n[8] == /*subindex*/
278
- n[57]) ? "active" : "")) && g(t, "class", l);
279
- },
280
- d(f) {
281
- f && I(e), s = !1, d();
282
- }
283
- };
284
- }
285
- function fe(n, e) {
286
- let t, i, a = (
287
- /*index*/
288
- e[51] == /*subGroup*/
289
- e[52].index && ge(e)
290
- );
291
- return {
292
- key: n,
293
- first: null,
294
- c() {
295
- t = B(), a && a.c(), i = B(), this.first = t;
296
- },
297
- m(l, r) {
298
- D(l, t, r), a && a.m(l, r), D(l, i, r);
299
- },
300
- p(l, r) {
301
- e = l, /*index*/
302
- e[51] == /*subGroup*/
303
- e[52].index ? a ? a.p(e, r) : (a = ge(e), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null);
304
- },
305
- d(l) {
306
- l && (I(t), I(i)), a && a.d(l);
307
- }
308
- };
309
- }
310
- function me(n) {
311
- let e = [], t = /* @__PURE__ */ new Map(), i, a = T(
312
- /*subGroup*/
313
- n[52].items
314
- );
315
- const l = (r) => (
316
- /*subGroupItem*/
317
- r[55].id
318
- );
319
- for (let r = 0; r < a.length; r += 1) {
320
- let s = se(n, a, r), d = l(s);
321
- t.set(d, e[r] = fe(d, s));
322
- }
323
- return {
324
- c() {
325
- for (let r = 0; r < e.length; r += 1)
326
- e[r].c();
327
- i = B();
328
- },
329
- m(r, s) {
330
- for (let d = 0; d < e.length; d += 1)
331
- e[d] && e[d].m(r, s);
332
- D(r, i, s);
333
- },
334
- p(r, s) {
335
- s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
336
- 10176 && (a = T(
337
- /*subGroup*/
338
- r[52].items
339
- ), e = Ce(e, s, l, 1, r, a, t, i.parentNode, pe, fe, i, se));
340
- },
341
- d(r) {
342
- r && I(i);
343
- for (let s = 0; s < e.length; s += 1)
344
- e[s].d(r);
345
- }
346
- };
347
- }
348
- function he(n, e) {
349
- let t, i, a, l, r, s, d, _, f, p, k;
350
- function S(h, F) {
351
- return (
352
- /*location*/
353
- h[0] === "headerMain" ? Je : Ke
354
- );
355
- }
356
- let M = S(e), m = M(e), c = (
357
- /*itemsActive*/
358
- e[11][
359
- /*index*/
360
- e[51]
361
- ] == !0 && ue(e)
362
- );
363
- function y(...h) {
364
- return (
365
- /*click_handler_2*/
366
- e[33](
367
- /*category*/
368
- e[49],
369
- /*index*/
370
- e[51],
371
- ...h
372
- )
373
- );
374
- }
375
- return {
376
- key: n,
377
- first: null,
378
- c() {
379
- t = b("li"), i = b("div"), a = b("img"), s = R(), m.c(), d = R(), c && c.c(), _ = R(), g(a, "class", l = "CategoryIconImg " + /*categoriesicon*/
380
- (e[3] === "true" ? "" : "DisplayNone")), oe(a.src, r = /*handleSrc*/
381
- e[16](
382
- /*category*/
383
- e[49]
384
- )) || g(a, "src", r), g(i, "class", "CategoryIcon"), g(t, "class", f = "CarouselItem " + /*activeindex*/
385
- (e[1]?.toString().indexOf("$") > -1 ? (
386
- /*activeindex*/
387
- e[1]?.split("$").pop() == /*category*/
388
- e[49].id.split("$").pop() ? "active" : ""
389
- ) : (
390
- /*activeindex*/
391
- e[1] == /*category*/
392
- e[49].id ? "active" : ""
393
- )) + " " + /*location*/
394
- (e[0] == "headerMain" ? "" : "SecondaryMenu")), g(t, "part", "CarouselItem"), this.first = t;
395
- },
396
- m(h, F) {
397
- D(h, t, F), C(t, i), C(i, a), C(t, s), m.m(t, null), C(t, d), c && c.m(t, null), C(t, _), p || (k = Y(t, "click", y), p = !0);
398
- },
399
- p(h, F) {
400
- e = h, F[0] & /*categoriesicon*/
401
- 8 && l !== (l = "CategoryIconImg " + /*categoriesicon*/
402
- (e[3] === "true" ? "" : "DisplayNone")) && g(a, "class", l), F[0] & /*sliderdata*/
403
- 512 && !oe(a.src, r = /*handleSrc*/
404
- e[16](
405
- /*category*/
406
- e[49]
407
- )) && g(a, "src", r), M === (M = S(e)) && m ? m.p(e, F) : (m.d(1), m = M(e), m && (m.c(), m.m(t, d))), /*itemsActive*/
408
- e[11][
409
- /*index*/
410
- e[51]
411
- ] == !0 ? c ? c.p(e, F) : (c = ue(e), c.c(), c.m(t, _)) : c && (c.d(1), c = null), F[0] & /*activeindex, sliderdata, location*/
412
- 515 && f !== (f = "CarouselItem " + /*activeindex*/
413
- (e[1]?.toString().indexOf("$") > -1 ? (
414
- /*activeindex*/
415
- e[1]?.split("$").pop() == /*category*/
416
- e[49].id.split("$").pop() ? "active" : ""
417
- ) : (
418
- /*activeindex*/
419
- e[1] == /*category*/
420
- e[49].id ? "active" : ""
421
- )) + " " + /*location*/
422
- (e[0] == "headerMain" ? "" : "SecondaryMenu")) && g(t, "class", f);
423
- },
424
- d(h) {
425
- h && I(t), m.d(), c && c.d(), p = !1, k();
426
- }
427
- };
428
- }
429
- function Xe(n) {
430
- let e, t, i, a, l, r, s, d, _, f, p, k, S, M, m, c = (
431
- /*sliderdata*/
432
- n[9].length > 0 && ce(n)
433
- );
434
- return {
435
- c() {
436
- e = b("div"), t = b("div"), i = b("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>', a = R(), l = b("div"), r = b("ul"), s = b("li"), s.innerHTML = '<a href="#CarouselNav">Close Subs</a>', d = R(), c && c.c(), _ = R(), f = b("div"), f.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(i, "class", "CarouselLeftArrow"), g(s, "class", "TouchOnly"), g(r, "id", "CarouselNav"), g(r, "class", "CarouselItems"), g(l, "class", "CarouselNavWrap"), g(f, "class", "CarouselRightArrow"), g(t, "class", p = `CarouselContainer CarouselContainerMobile ${/*location*/
437
- n[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), g(t, "style", k = /*location*/
438
- n[0] === "headerMain" ? "max-width: auto" : void 0), g(e, "class", S = "CarouselWrapper " + /*location*/
439
- (n[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
440
- },
441
- m(y, h) {
442
- D(y, e, h), C(e, t), C(t, i), C(t, a), C(t, l), C(l, r), C(r, s), C(r, d), c && c.m(r, null), n[34](r), n[35](l), C(t, _), C(t, f), n[37](e), M || (m = [
443
- Y(
444
- i,
445
- "click",
446
- /*click_handler*/
447
- n[31]
448
- ),
449
- Y(
450
- f,
451
- "click",
452
- /*click_handler_3*/
453
- n[36]
454
- )
455
- ], M = !0);
456
- },
457
- p(y, h) {
458
- /*sliderdata*/
459
- y[9].length > 0 ? c ? c.p(y, h) : (c = ce(y), c.c(), c.m(r, null)) : c && (c.d(1), c = null), h[0] & /*location*/
460
- 1 && p !== (p = `CarouselContainer CarouselContainerMobile ${/*location*/
461
- y[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && g(t, "class", p), h[0] & /*location*/
462
- 1 && k !== (k = /*location*/
463
- y[0] === "headerMain" ? "max-width: auto" : void 0) && g(t, "style", k), h[0] & /*location*/
464
- 1 && S !== (S = "CarouselWrapper " + /*location*/
465
- (y[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && g(e, "class", S);
466
- },
467
- i: re,
468
- o: re,
469
- d(y) {
470
- y && I(e), c && c.d(), n[34](null), n[35](null), n[37](null), M = !1, Ge(m);
471
- }
472
- };
473
- }
474
- function Qe(n, e, t) {
475
- let { endpoint: i = "" } = e, { datasource: a = "" } = e, { onclickeventname: l = "defaultEvent" } = e, { actionevent: r = "defaultEvent" } = e, { favoritesnumber: s = "0" } = e, { location: d = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: f = "" } = e, { identity: p = "" } = e, { translationurl: k = "" } = e, { isprimarymenu: S = !1 } = e, { issecondarymenu: M = !1 } = e, { lang: m = "" } = e, { activeindex: c = "0" } = e, { showsubgroups: y = "false" } = e, { categoriesicon: h = "false" } = e, { lobbyiconimage: F = "" } = e, { mygamesiconimage: q = "" } = e;
476
- Ye({ withLocale: "en", translations: {} });
477
- const we = () => {
478
- fetch(k).then((u) => u.json()).then((u) => {
479
- Object.keys(u).forEach((v) => {
480
- ie(v, u[v]);
481
- });
482
- }).catch((u) => {
483
- console.log(u);
484
- });
485
- };
486
- Object.keys(ne).forEach((o) => {
487
- ie(o, ne[o]);
488
- });
489
- let N, j, W, P, H, z = [], O = [], G = [], L, K = (o, u, v, E, A) => {
490
- if (!(o.subGroups && E === null)) {
491
- if (x(), t(6, j = u), t(6, j), A != "secondary") {
492
- window.postMessage(
493
- {
494
- type: r == "CategoryChange" ? "CategoryChange" : "NavigateTo",
495
- buzz: "1",
496
- itemId: o.id,
497
- index: u,
498
- item: o,
499
- path: o.path,
500
- externalLink: o.externalLink || !1,
501
- target: o.attrs?.target || null
502
- },
503
- window.location.href
504
- ), t(7, W = null), t(8, P = null);
505
- return;
506
- }
507
- t(7, W = E), t(7, W), t(8, P = W), window.postMessage(
508
- {
509
- type: r,
510
- itemId: v.id,
511
- subIndex: E,
512
- subItem: v
513
- },
514
- window.location.href
515
- );
516
- }
517
- }, Z = () => {
518
- L.scrollBy({ left: -250, behavior: "smooth" });
519
- }, $ = () => {
520
- L.scrollBy({ left: 250, behavior: "smooth" });
521
- };
522
- const ee = (o) => {
523
- o.data.type == "SliderData" && o.data.identity == p && (t(9, z = o.data.data), t(11, G = new Array(z.length).fill(!1)), y == "true" && be()), o.data.type == "GoToHomepage" && z.forEach((u, v) => {
524
- u.path.endsWith("/casino") && (t(6, j = v), t(6, j));
525
- });
526
- }, ye = () => {
527
- qe(m);
528
- }, ve = (o, u, v) => {
529
- if (d == "secondaryMenu" && i && a && m && o.id) {
530
- let E = new URL(`${i}/v1/casino/groups/${a}/${o.id}/subGroups?language=${m}`);
531
- fetch(E.href).then((A) => A.json()).then((A) => {
532
- A.index = u, t(10, O = O.concat(A)), y == "false" && window.postMessage(
533
- {
534
- type: r,
535
- itemId: o.id,
536
- index: u,
537
- item: o
538
- },
539
- window.location.href
540
- );
541
- const U = [];
542
- O.map((Ee) => (Ee.items.forEach((te) => {
543
- U.find((Re) => te.id == Re) || U.push(te.id);
544
- }), U.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: U }, window.location.href);
545
- }).then(() => {
546
- N.querySelectorAll(".DropDown") && x();
547
- });
548
- }
549
- d == "headerMain" && window.postMessage({ type: r, item: o }, window.location.href);
550
- }, x = () => {
551
- const o = N.querySelectorAll(".DropDown");
552
- document.activeElement.blur(), L.classList.add("isScrolling");
553
- for (let u = 0; u < o.length; u++)
554
- o[u].style.transform = "translateX(-" + L.scrollLeft + "px)";
555
- L.classList.remove("isScrolling");
556
- }, be = () => {
557
- z.forEach((o, u) => {
558
- o?.subGroups?.count > 0 && (t(11, G[u] = !0, G), ve(o, u));
559
- });
560
- }, _e = () => {
561
- let o = document.createElement("style");
562
- o.innerHTML = _, H.appendChild(o);
563
- }, ke = () => {
564
- let o = document.createElement("style"), u = new URL(f);
565
- fetch(u.href).then((v) => v.text()).then((v) => {
566
- o.innerHTML = v, setTimeout(
567
- () => {
568
- H.appendChild(o);
569
- },
570
- 1
571
- );
572
- });
573
- }, Fe = (o) => {
574
- let u = "";
575
- return o.id === "LOBBY" ? u = F : o.id === "MYGAMES" && (u = q), o.icon || u;
576
- };
577
- xe(() => (window.addEventListener("message", ee, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
578
- () => {
579
- L.addEventListener("scroll", x);
580
- },
581
- 500
582
- ), window.postMessage({ type: "SliderLoaded", identity: p }), () => {
583
- window.removeEventListener("message", ee), N.removeEventListener("scroll", x);
584
- }));
585
- const Me = () => Z(), Ie = (o, u, v, E, A) => {
586
- K(o, u, v, E, "secondary"), A.stopPropagation();
587
- }, De = (o, u, v) => {
588
- K(o, u, null, null, "main"), v.preventDefault();
589
- };
590
- function Se(o) {
591
- J[o ? "unshift" : "push"](() => {
592
- N = o, t(5, N);
593
- });
594
- }
595
- function Le(o) {
596
- J[o ? "unshift" : "push"](() => {
597
- L = o, t(12, L);
598
- });
599
- }
600
- const Ae = () => $();
601
- function He(o) {
602
- J[o ? "unshift" : "push"](() => {
603
- H = o, t(4, H);
604
- });
605
- }
606
- return n.$$set = (o) => {
607
- "endpoint" in o && t(17, i = o.endpoint), "datasource" in o && t(18, a = 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, d = o.location), "clientstyling" in o && t(22, _ = o.clientstyling), "clientstylingurl" in o && t(23, f = o.clientstylingurl), "identity" in o && t(24, p = o.identity), "translationurl" in o && t(25, k = o.translationurl), "isprimarymenu" in o && t(26, S = o.isprimarymenu), "issecondarymenu" in o && t(27, M = o.issecondarymenu), "lang" in o && t(28, m = o.lang), "activeindex" in o && t(1, c = o.activeindex), "showsubgroups" in o && t(2, y = o.showsubgroups), "categoriesicon" in o && t(3, h = o.categoriesicon), "lobbyiconimage" in o && t(29, F = o.lobbyiconimage), "mygamesiconimage" in o && t(30, q = o.mygamesiconimage);
608
- }, n.$$.update = () => {
609
- n.$$.dirty[0] & /*activeindex*/
610
- 2, n.$$.dirty[0] & /*translationurl*/
611
- 33554432 && k && we(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
612
- 4194320 && _ && H && _e(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
613
- 8388624 && f && H && ke(), n.$$.dirty[0] & /*lang*/
614
- 268435456 && m && ye();
615
- }, [
616
- d,
617
- c,
618
- y,
619
- h,
620
- H,
621
- N,
622
- j,
623
- W,
624
- P,
625
- z,
626
- O,
627
- G,
628
- L,
629
- K,
630
- Z,
631
- $,
632
- Fe,
633
- i,
634
- a,
635
- l,
636
- r,
637
- s,
638
- _,
639
- f,
640
- p,
641
- k,
642
- S,
643
- M,
644
- m,
645
- F,
646
- q,
647
- Me,
648
- Ie,
649
- De,
650
- Se,
651
- Le,
652
- Ae,
653
- He
654
- ];
655
- }
656
- class Ve extends je {
657
- constructor(e) {
658
- super(), We(
659
- this,
660
- e,
661
- Qe,
662
- Xe,
663
- ze,
664
- {
665
- endpoint: 17,
666
- datasource: 18,
667
- onclickeventname: 19,
668
- actionevent: 20,
669
- favoritesnumber: 21,
670
- location: 0,
671
- clientstyling: 22,
672
- clientstylingurl: 23,
673
- identity: 24,
674
- translationurl: 25,
675
- isprimarymenu: 26,
676
- issecondarymenu: 27,
677
- lang: 28,
678
- activeindex: 1,
679
- showsubgroups: 2,
680
- categoriesicon: 3,
681
- lobbyiconimage: 29,
682
- mygamesiconimage: 30
683
- },
684
- Pe,
685
- [-1, -1]
686
- );
687
- }
688
- get endpoint() {
689
- return this.$$.ctx[17];
690
- }
691
- set endpoint(e) {
692
- this.$$set({ endpoint: e }), w();
693
- }
694
- get datasource() {
695
- return this.$$.ctx[18];
696
- }
697
- set datasource(e) {
698
- this.$$set({ datasource: e }), w();
699
- }
700
- get onclickeventname() {
701
- return this.$$.ctx[19];
702
- }
703
- set onclickeventname(e) {
704
- this.$$set({ onclickeventname: e }), w();
705
- }
706
- get actionevent() {
707
- return this.$$.ctx[20];
708
- }
709
- set actionevent(e) {
710
- this.$$set({ actionevent: e }), w();
711
- }
712
- get favoritesnumber() {
713
- return this.$$.ctx[21];
714
- }
715
- set favoritesnumber(e) {
716
- this.$$set({ favoritesnumber: e }), w();
717
- }
718
- get location() {
719
- return this.$$.ctx[0];
720
- }
721
- set location(e) {
722
- this.$$set({ location: e }), w();
723
- }
724
- get clientstyling() {
725
- return this.$$.ctx[22];
726
- }
727
- set clientstyling(e) {
728
- this.$$set({ clientstyling: e }), w();
729
- }
730
- get clientstylingurl() {
731
- return this.$$.ctx[23];
732
- }
733
- set clientstylingurl(e) {
734
- this.$$set({ clientstylingurl: e }), w();
735
- }
736
- get identity() {
737
- return this.$$.ctx[24];
738
- }
739
- set identity(e) {
740
- this.$$set({ identity: e }), w();
741
- }
742
- get translationurl() {
743
- return this.$$.ctx[25];
744
- }
745
- set translationurl(e) {
746
- this.$$set({ translationurl: e }), w();
747
- }
748
- get isprimarymenu() {
749
- return this.$$.ctx[26];
750
- }
751
- set isprimarymenu(e) {
752
- this.$$set({ isprimarymenu: e }), w();
753
- }
754
- get issecondarymenu() {
755
- return this.$$.ctx[27];
756
- }
757
- set issecondarymenu(e) {
758
- this.$$set({ issecondarymenu: e }), w();
759
- }
760
- get lang() {
761
- return this.$$.ctx[28];
762
- }
763
- set lang(e) {
764
- this.$$set({ lang: e }), w();
765
- }
766
- get activeindex() {
767
- return this.$$.ctx[1];
768
- }
769
- set activeindex(e) {
770
- this.$$set({ activeindex: e }), w();
771
- }
772
- get showsubgroups() {
773
- return this.$$.ctx[2];
774
- }
775
- set showsubgroups(e) {
776
- this.$$set({ showsubgroups: e }), w();
777
- }
778
- get categoriesicon() {
779
- return this.$$.ctx[3];
780
- }
781
- set categoriesicon(e) {
782
- this.$$set({ categoriesicon: e }), w();
783
- }
784
- get lobbyiconimage() {
785
- return this.$$.ctx[29];
786
- }
787
- set lobbyiconimage(e) {
788
- this.$$set({ lobbyiconimage: e }), w();
789
- }
790
- get mygamesiconimage() {
791
- return this.$$.ctx[30];
792
- }
793
- set mygamesiconimage(e) {
794
- this.$$set({ mygamesiconimage: e }), w();
795
- }
796
- }
797
- Be(Ve, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
798
- export {
799
- Ve as default
800
- };