@everymatrix/casino-header-controller 1.63.3 → 1.64.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 (29) hide show
  1. package/components/{CasinoHamburgerMenu-B9IAH_YY.js → CasinoHamburgerMenu-BMkeLxFw.js} +234 -234
  2. package/components/{CasinoHamburgerMenu-DRGz0x_i.js → CasinoHamburgerMenu-CTVc2-UF.js} +241 -241
  3. package/components/{CasinoHamburgerMenu-C8cGdz4v.cjs → CasinoHamburgerMenu-CrZ5l9tM.cjs} +5 -5
  4. package/components/{CasinoHeaderController-D4BjryHq.js → CasinoHeaderController-B3lVN1Kg.js} +230 -230
  5. package/components/{CasinoHeaderController-0LpbLW0Q.cjs → CasinoHeaderController-LZPnL7e5.cjs} +5 -5
  6. package/components/{CasinoHeaderController-CdpOl1LK.js → CasinoHeaderController-MXrohZuy.js} +230 -230
  7. package/components/{CasinoSlider-gdJBiwPv.js → CasinoSlider-CTcAOyCp.js} +97 -97
  8. package/components/CasinoSlider-Deb0x84t.js +797 -0
  9. package/components/CasinoSlider-DqTtsMWh.cjs +1 -0
  10. package/components/{PlayerAccountBalanceModal-C6gNwaoU.js → PlayerAccountBalanceModal-CmkYq_94.js} +2 -2
  11. package/components/{PlayerAccountBalanceModal-CtjDziPg.js → PlayerAccountBalanceModal-QRwf0e8e.js} +2 -2
  12. package/components/PlayerAccountBalanceModal-t1dN97NG.cjs +13 -0
  13. package/components/PlayerDeposit-BXwT7NVp.cjs +1 -0
  14. package/components/{PlayerDeposit-B1mR9g-U.js → PlayerDeposit-BZuTQSyp.js} +14 -14
  15. package/components/{PlayerDeposit-zkOb7jg5.js → PlayerDeposit-eY_YGhMJ.js} +14 -14
  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-BxUAH8Hq.cjs → index-1ef3a64c-BYQAUnU8.cjs} +1 -1
  21. package/stencil/{index-1ef3a64c-BDvG-MQC.js → index-1ef3a64c-CqOM_4kh.js} +1 -1
  22. package/stencil/{index-1ef3a64c-Ckq7xpxR.js → index-1ef3a64c-CrkQPVNf.js} +1 -1
  23. package/stencil/{user-deposit-withdrawal-BpOVmhyz.js → user-deposit-withdrawal-BDHSNbOd.js} +35 -35
  24. package/stencil/{user-deposit-withdrawal-BS3kJkIt.cjs → user-deposit-withdrawal-CbFsqTCy.cjs} +4 -4
  25. package/stencil/{user-deposit-withdrawal-uD34_HF-.js → user-deposit-withdrawal-DRl7BqKZ.js} +35 -35
  26. package/components/CasinoSlider-BYM8xAjw.js +0 -797
  27. package/components/CasinoSlider-EyNMAsDA.cjs +0 -1
  28. package/components/PlayerAccountBalanceModal-Btw6JVum.cjs +0 -13
  29. package/components/PlayerDeposit-t-UG_1zf.cjs +0 -1
@@ -1,797 +0,0 @@
1
- import { $ as Q, a as Ne, b as Re, S as Te, i as je, f as C, s as We, c as ze, d as Oe, n as oe, e as D, t as Ge, z as g, h as S, v as p, w as U, k as v, j as R, o as Be, A as W, M as pe, r as G, p as X, E as ie, u as V, y as Z, B as xe, N as ye, J as Ye, K as qe, L as Ue } from "./CasinoHamburgerMenu-DRGz0x_i.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
- Oe(a, "svelte-2e7gs6", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.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 = W(
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
- S(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 = W(
112
- /*sliderdata*/
113
- r[9]
114
- ), e = pe(e, s, l, 1, r, n, t, o.parentNode, ye, Ce, o, le));
115
- },
116
- d(r) {
117
- r && D(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 = v("button"), o = Z(t), g(e, "class", "CategoryButton");
131
- },
132
- m(n, l) {
133
- S(n, e, l), p(e, o);
134
- },
135
- p(n, l) {
136
- l[0] & /*sliderdata*/
137
- 512 && t !== (t = /*category*/
138
- n[48].name + "") && V(o, 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
- ), o, n;
150
- return {
151
- c() {
152
- e = v("a"), o = Z(t), g(e, "href", n = /*category*/
153
- a[48].path);
154
- },
155
- m(l, r) {
156
- S(l, e, r), p(e, o);
157
- },
158
- p(l, r) {
159
- r[0] & /*sliderdata*/
160
- 512 && t !== (t = /*category*/
161
- l[48].label + "") && V(o, t), r[0] & /*sliderdata*/
162
- 512 && n !== (n = /*category*/
163
- l[48].path) && g(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" && ge(a)
175
- );
176
- return {
177
- c() {
178
- t && t.c(), e = G();
179
- },
180
- m(o, n) {
181
- t && t.m(o, n), S(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 && D(e), t && t.d(o);
190
- }
191
- };
192
- }
193
- function ge(a) {
194
- let e, t = W(
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 = v("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
- S(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 = W(
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 && D(e), xe(o, n);
231
- }
232
- };
233
- }
234
- function fe(a) {
235
- let e, t, o = (
236
- /*subGroupItem*/
237
- a[54]?.name + ""
238
- ), n, l, r, s, u;
239
- function _(...f) {
240
- return (
241
- /*click_handler_1*/
242
- a[33](
243
- /*category*/
244
- a[48],
245
- /*index*/
246
- a[50],
247
- /*subGroupItem*/
248
- a[54],
249
- /*subindex*/
250
- a[56],
251
- ...f
252
- )
253
- );
254
- }
255
- return {
256
- c() {
257
- e = v("li"), t = v("a"), n = Z(o), r = R(), g(t, "class", l = "SubDropDown " + /*index*/
258
- (a[50] == /*activeIndex*/
259
- a[6] && /*activeSubIndex*/
260
- (a[7] == /*subindex*/
261
- a[56] || /*prevSubIndex*/
262
- a[8] == /*subindex*/
263
- a[56]) ? "active" : ""));
264
- },
265
- m(f, y) {
266
- S(f, e, y), p(e, t), p(t, n), p(e, r), s || (u = U(e, "click", _), s = !0);
267
- },
268
- p(f, y) {
269
- a = f, y[0] & /*subGroupsData*/
270
- 1024 && o !== (o = /*subGroupItem*/
271
- a[54]?.name + "") && V(n, o), y[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
272
- 1984 && l !== (l = "SubDropDown " + /*index*/
273
- (a[50] == /*activeIndex*/
274
- a[6] && /*activeSubIndex*/
275
- (a[7] == /*subindex*/
276
- a[56] || /*prevSubIndex*/
277
- a[8] == /*subindex*/
278
- a[56]) ? "active" : "")) && g(t, "class", l);
279
- },
280
- d(f) {
281
- f && D(e), s = !1, u();
282
- }
283
- };
284
- }
285
- function me(a, e) {
286
- let t, o, n = (
287
- /*index*/
288
- e[50] == /*subGroup*/
289
- e[51].index && fe(e)
290
- );
291
- return {
292
- key: a,
293
- first: null,
294
- c() {
295
- t = G(), n && n.c(), o = G(), this.first = t;
296
- },
297
- m(l, r) {
298
- S(l, t, r), n && n.m(l, r), S(l, o, r);
299
- },
300
- p(l, r) {
301
- e = l, /*index*/
302
- e[50] == /*subGroup*/
303
- e[51].index ? n ? n.p(e, r) : (n = fe(e), n.c(), n.m(o.parentNode, o)) : n && (n.d(1), n = null);
304
- },
305
- d(l) {
306
- l && (D(t), D(o)), n && n.d(l);
307
- }
308
- };
309
- }
310
- function he(a) {
311
- let e = [], t = /* @__PURE__ */ new Map(), o, n = W(
312
- /*subGroup*/
313
- a[51].items
314
- );
315
- const l = (r) => (
316
- /*subGroupItem*/
317
- r[54].id
318
- );
319
- for (let r = 0; r < n.length; r += 1) {
320
- let s = ce(a, n, r), u = l(s);
321
- t.set(u, e[r] = me(u, s));
322
- }
323
- return {
324
- c() {
325
- for (let r = 0; r < e.length; r += 1)
326
- e[r].c();
327
- o = G();
328
- },
329
- m(r, s) {
330
- for (let u = 0; u < e.length; u += 1)
331
- e[u] && e[u].m(r, s);
332
- S(r, o, s);
333
- },
334
- p(r, s) {
335
- s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
336
- 10176 && (n = W(
337
- /*subGroup*/
338
- r[51].items
339
- ), e = pe(e, s, l, 1, r, n, t, o.parentNode, ye, me, o, ce));
340
- },
341
- d(r) {
342
- r && D(o);
343
- for (let s = 0; s < e.length; s += 1)
344
- e[s].d(r);
345
- }
346
- };
347
- }
348
- function Ce(a, e) {
349
- let t, o, n, l, r, s, u, _, f, y, k;
350
- function L(h, F) {
351
- return (
352
- /*location*/
353
- h[0] === "headerMain" ? Qe : Xe
354
- );
355
- }
356
- let I = L(e), m = I(e), c = (
357
- /*itemsActive*/
358
- e[11][
359
- /*index*/
360
- e[50]
361
- ] == !0 && de(e)
362
- );
363
- function w(...h) {
364
- return (
365
- /*click_handler_2*/
366
- e[34](
367
- /*category*/
368
- e[48],
369
- /*index*/
370
- e[50],
371
- ...h
372
- )
373
- );
374
- }
375
- return {
376
- key: a,
377
- first: null,
378
- c() {
379
- t = v("li"), o = v("div"), n = v("img"), s = R(), m.c(), u = R(), c && c.c(), _ = R(), g(n, "class", l = "CategoryIconImg " + /*categoriesicon*/
380
- (e[3] === "true" ? "" : "DisplayNone")), ie(n.src, r = /*handleSrc*/
381
- e[16](
382
- /*category*/
383
- e[48]
384
- )) || g(n, "src", r), g(o, "class", "CategoryIcon"), g(t, "class", f = "CarouselItem " + /*activeindex*/
385
- (e[1]?.toString().indexOf("$") > -1 ? (
386
- /*activeindex*/
387
- e[1]?.split("$").pop() == /*category*/
388
- e[48].id.split("$").pop() ? "active" : ""
389
- ) : (
390
- /*activeindex*/
391
- e[1] == /*category*/
392
- e[48].id ? "active" : ""
393
- )) + " " + /*location*/
394
- (e[0] == "headerMain" ? "" : "SecondaryMenu")), this.first = t;
395
- },
396
- m(h, F) {
397
- S(h, t, F), p(t, o), p(o, n), p(t, s), m.m(t, null), p(t, u), c && c.m(t, null), p(t, _), y || (k = U(t, "click", w), y = !0);
398
- },
399
- p(h, F) {
400
- e = h, F[0] & /*categoriesicon*/
401
- 8 && l !== (l = "CategoryIconImg " + /*categoriesicon*/
402
- (e[3] === "true" ? "" : "DisplayNone")) && g(n, "class", l), F[0] & /*sliderdata*/
403
- 512 && !ie(n.src, r = /*handleSrc*/
404
- e[16](
405
- /*category*/
406
- e[48]
407
- )) && g(n, "src", r), I === (I = L(e)) && m ? m.p(e, F) : (m.d(1), m = I(e), m && (m.c(), m.m(t, u))), /*itemsActive*/
408
- e[11][
409
- /*index*/
410
- e[50]
411
- ] == !0 ? c ? c.p(e, F) : (c = de(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[48].id.split("$").pop() ? "active" : ""
417
- ) : (
418
- /*activeindex*/
419
- e[1] == /*category*/
420
- e[48].id ? "active" : ""
421
- )) + " " + /*location*/
422
- (e[0] == "headerMain" ? "" : "SecondaryMenu")) && g(t, "class", f);
423
- },
424
- d(h) {
425
- h && D(t), m.d(), c && c.d(), y = !1, k();
426
- }
427
- };
428
- }
429
- function Ve(a) {
430
- let e, t, o, n, l, r, s, u, _, f, y, k, L, I, m, c = (
431
- /*sliderdata*/
432
- a[9].length > 0 && ue(a)
433
- );
434
- return {
435
- c() {
436
- e = v("div"), t = v("div"), o = v("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 = v("div"), r = v("ul"), s = v("li"), s.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = R(), c && c.c(), _ = R(), f = v("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(o, "class", "CarouselLeftArrow"), g(s, "class", "TouchOnly"), g(r, "id", "CarouselNav"), g(r, "class", "CarouselItems"), g(l, "class", "CarouselNavWrap scroller"), g(f, "class", "CarouselRightArrow"), g(t, "class", y = `CarouselContainer CarouselContainerMobile ${/*location*/
437
- a[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), g(t, "style", k = /*location*/
438
- a[0] === "headerMain" ? "max-width: auto" : void 0), g(e, "class", L = "CarouselWrapper " + /*location*/
439
- (a[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
440
- },
441
- m(w, h) {
442
- S(w, e, h), p(e, t), p(t, o), 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, _), p(t, f), a[38](e), I || (m = [
443
- U(
444
- o,
445
- "click",
446
- /*click_handler*/
447
- a[32]
448
- ),
449
- U(
450
- f,
451
- "click",
452
- /*click_handler_3*/
453
- a[37]
454
- )
455
- ], I = !0);
456
- },
457
- p(w, h) {
458
- /*sliderdata*/
459
- w[9].length > 0 ? c ? c.p(w, h) : (c = ue(w), c.c(), c.m(r, null)) : c && (c.d(1), c = null), h[0] & /*location*/
460
- 1 && y !== (y = `CarouselContainer CarouselContainerMobile ${/*location*/
461
- w[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && g(t, "class", y), h[0] & /*location*/
462
- 1 && k !== (k = /*location*/
463
- w[0] === "headerMain" ? "max-width: auto" : void 0) && g(t, "style", k), h[0] & /*location*/
464
- 1 && L !== (L = "CarouselWrapper " + /*location*/
465
- (w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && g(e, "class", L);
466
- },
467
- i: oe,
468
- o: oe,
469
- d(w) {
470
- w && D(e), c && c.d(), a[35](null), a[36](null), a[38](null), I = !1, Ge(m);
471
- }
472
- };
473
- }
474
- function Ze(a, e, t) {
475
- let { endpoint: o = "" } = e, { datasource: n = "" } = e, { onclickeventname: l = "defaultEvent" } = e, { actionevent: r = "defaultEvent" } = e, { favoritesnumber: s = "0" } = e, { location: u = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: f = "" } = e, { identity: y = "" } = e, { translationurl: k = "" } = e, { isprimarymenu: L = !1 } = e, { issecondarymenu: I = !1 } = e, { lang: m = "" } = e, { activeindex: c = "0" } = e, { showsubgroups: w = "false" } = e, { categoriesicon: h = "false" } = e, { lobbyiconimage: F = "" } = e, { mygamesiconimage: P = "" } = e, { mbsource: B = "" } = e;
476
- Pe({ withLocale: "en", translations: {} });
477
- const we = () => {
478
- fetch(k).then((d) => d.json()).then((d) => {
479
- Object.keys(d).forEach((M) => {
480
- ae(M, d[M]);
481
- });
482
- }).catch((d) => {
483
- console.log(d);
484
- });
485
- };
486
- Object.keys(ne).forEach((i) => {
487
- ae(i, ne[i]);
488
- });
489
- let T, E, z, K, A, O = [], x = [], j = [], b, J = (i, d, M, N, H) => {
490
- if (!(i.subGroups && N === null)) {
491
- if (Y(), t(6, E = d), t(6, E), H != "secondary") {
492
- window.postMessage(
493
- {
494
- type: r == "CategoryChange" ? "CategoryChange" : "NavigateTo",
495
- buzz: "1",
496
- itemId: i.id,
497
- index: d,
498
- item: i,
499
- path: i.path,
500
- externalLink: i.externalLink || !1,
501
- target: i.attrs?.target || null
502
- },
503
- window.location.href
504
- ), t(7, z = null), t(8, K = null);
505
- return;
506
- }
507
- t(7, z = N), t(7, z), t(8, K = z), window.postMessage(
508
- {
509
- type: r,
510
- itemId: M.id,
511
- subIndex: N,
512
- subItem: M
513
- },
514
- window.location.href
515
- );
516
- }
517
- }, $ = () => {
518
- b && (j.length !== E ? t(12, b.scrollLeft -= 250, b) : t(12, b.scrollLeft = 0, b));
519
- }, ee = () => {
520
- b && (j.length !== E ? t(12, b.scrollLeft += 250, b) : t(12, b.scrollLeft = 0, b));
521
- };
522
- const te = (i) => {
523
- i.data.type == "SliderData" && i.data.identity == y && (t(9, O = i.data.data), t(11, j = new Array(O.length).fill(!1)), w == "true" && _e()), i.data.type == "GoToHomepage" && O.forEach((d, M) => {
524
- d.path.endsWith("/casino") && (t(6, E = M), t(6, E));
525
- });
526
- }, be = () => {
527
- Ke(m);
528
- }, ve = (i, d, M) => {
529
- if (u == "secondaryMenu" && o && n && m && i.id) {
530
- let N = new URL(`${o}/v1/casino/groups/${n}/${i.id}/subGroups?language=${m}`);
531
- fetch(N.href).then((H) => H.json()).then((H) => {
532
- H.index = d, t(10, x = x.concat(H)), w == "false" && window.postMessage(
533
- {
534
- type: r,
535
- itemId: i.id,
536
- index: d,
537
- item: i
538
- },
539
- window.location.href
540
- );
541
- const q = [];
542
- x.map((He) => (He.items.forEach((re) => {
543
- q.find((Ee) => re.id == Ee) || q.push(re.id);
544
- }), q.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: q }, window.location.href);
545
- }).then(() => {
546
- T.querySelectorAll(".DropDown") && Y();
547
- });
548
- }
549
- u == "headerMain" && window.postMessage({ type: r, item: i }, window.location.href);
550
- }, Y = () => {
551
- const i = T.querySelectorAll(".DropDown");
552
- document.activeElement.blur(), b.classList.add("isScrolling");
553
- for (let d = 0; d < i.length; d++)
554
- i[d].style.transform = "translateX(-" + b.scrollLeft + "px)";
555
- b.classList.remove("isScrolling");
556
- }, _e = () => {
557
- O.forEach((i, d) => {
558
- i?.subGroups?.count > 0 && (t(11, j[d] = !0, j), ve(i, d));
559
- });
560
- }, ke = (i) => {
561
- let d = "";
562
- return i.id === "LOBBY" ? d = F : i.id === "MYGAMES" && (d = P), i.icon || d;
563
- };
564
- Be(() => (window.addEventListener("message", te, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
565
- () => {
566
- b.addEventListener("scroll", Y);
567
- },
568
- 500
569
- ), window.postMessage({ type: "SliderLoaded", identity: y }), () => {
570
- window.removeEventListener("message", te), T.removeEventListener("scroll", Y);
571
- }));
572
- const Fe = () => $(), Me = (i, d, M, N, H) => {
573
- J(i, d, M, N, "secondary"), H.stopPropagation();
574
- }, Ie = (i, d, M) => {
575
- J(i, d, null, null, "main"), M.preventDefault();
576
- };
577
- function De(i) {
578
- X[i ? "unshift" : "push"](() => {
579
- T = i, t(5, T);
580
- });
581
- }
582
- function Se(i) {
583
- X[i ? "unshift" : "push"](() => {
584
- b = i, t(12, b);
585
- });
586
- }
587
- const Le = () => ee();
588
- function Ae(i) {
589
- X[i ? "unshift" : "push"](() => {
590
- A = i, t(4, A);
591
- });
592
- }
593
- return a.$$set = (i) => {
594
- "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, _ = i.clientstyling), "clientstylingurl" in i && t(23, f = i.clientstylingurl), "identity" in i && t(24, y = i.identity), "translationurl" in i && t(25, k = i.translationurl), "isprimarymenu" in i && t(26, L = i.isprimarymenu), "issecondarymenu" in i && t(27, I = i.issecondarymenu), "lang" in i && t(28, m = i.lang), "activeindex" in i && t(1, c = i.activeindex), "showsubgroups" in i && t(2, w = i.showsubgroups), "categoriesicon" in i && t(3, h = i.categoriesicon), "lobbyiconimage" in i && t(29, F = i.lobbyiconimage), "mygamesiconimage" in i && t(30, P = i.mygamesiconimage), "mbsource" in i && t(31, B = i.mbsource);
595
- }, a.$$.update = () => {
596
- a.$$.dirty[0] & /*activeindex*/
597
- 2, a.$$.dirty[0] & /*translationurl*/
598
- 33554432 && k && we(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
599
- 4194320 && _ && A && Ye(A, _), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
600
- 8388624 && f && A && qe(A, f), a.$$.dirty[0] & /*customStylingContainer*/
601
- 16 | a.$$.dirty[1] & /*mbsource*/
602
- 1 && B && A && Ue(A, `${B}.Style`), a.$$.dirty[0] & /*lang*/
603
- 268435456 && m && be();
604
- }, [
605
- u,
606
- c,
607
- w,
608
- h,
609
- A,
610
- T,
611
- E,
612
- z,
613
- K,
614
- O,
615
- x,
616
- j,
617
- b,
618
- J,
619
- $,
620
- ee,
621
- ke,
622
- o,
623
- n,
624
- l,
625
- r,
626
- s,
627
- _,
628
- f,
629
- y,
630
- k,
631
- L,
632
- I,
633
- m,
634
- F,
635
- P,
636
- B,
637
- Fe,
638
- Me,
639
- Ie,
640
- De,
641
- Se,
642
- Le,
643
- Ae
644
- ];
645
- }
646
- class $e extends Te {
647
- constructor(e) {
648
- super(), je(
649
- this,
650
- e,
651
- Ze,
652
- Ve,
653
- We,
654
- {
655
- endpoint: 17,
656
- datasource: 18,
657
- onclickeventname: 19,
658
- actionevent: 20,
659
- favoritesnumber: 21,
660
- location: 0,
661
- clientstyling: 22,
662
- clientstylingurl: 23,
663
- identity: 24,
664
- translationurl: 25,
665
- isprimarymenu: 26,
666
- issecondarymenu: 27,
667
- lang: 28,
668
- activeindex: 1,
669
- showsubgroups: 2,
670
- categoriesicon: 3,
671
- lobbyiconimage: 29,
672
- mygamesiconimage: 30,
673
- mbsource: 31
674
- },
675
- Je,
676
- [-1, -1]
677
- );
678
- }
679
- get endpoint() {
680
- return this.$$.ctx[17];
681
- }
682
- set endpoint(e) {
683
- this.$$set({ endpoint: e }), C();
684
- }
685
- get datasource() {
686
- return this.$$.ctx[18];
687
- }
688
- set datasource(e) {
689
- this.$$set({ datasource: e }), C();
690
- }
691
- get onclickeventname() {
692
- return this.$$.ctx[19];
693
- }
694
- set onclickeventname(e) {
695
- this.$$set({ onclickeventname: e }), C();
696
- }
697
- get actionevent() {
698
- return this.$$.ctx[20];
699
- }
700
- set actionevent(e) {
701
- this.$$set({ actionevent: e }), C();
702
- }
703
- get favoritesnumber() {
704
- return this.$$.ctx[21];
705
- }
706
- set favoritesnumber(e) {
707
- this.$$set({ favoritesnumber: e }), C();
708
- }
709
- get location() {
710
- return this.$$.ctx[0];
711
- }
712
- set location(e) {
713
- this.$$set({ location: e }), C();
714
- }
715
- get clientstyling() {
716
- return this.$$.ctx[22];
717
- }
718
- set clientstyling(e) {
719
- this.$$set({ clientstyling: e }), C();
720
- }
721
- get clientstylingurl() {
722
- return this.$$.ctx[23];
723
- }
724
- set clientstylingurl(e) {
725
- this.$$set({ clientstylingurl: e }), C();
726
- }
727
- get identity() {
728
- return this.$$.ctx[24];
729
- }
730
- set identity(e) {
731
- this.$$set({ identity: e }), C();
732
- }
733
- get translationurl() {
734
- return this.$$.ctx[25];
735
- }
736
- set translationurl(e) {
737
- this.$$set({ translationurl: e }), C();
738
- }
739
- get isprimarymenu() {
740
- return this.$$.ctx[26];
741
- }
742
- set isprimarymenu(e) {
743
- this.$$set({ isprimarymenu: e }), C();
744
- }
745
- get issecondarymenu() {
746
- return this.$$.ctx[27];
747
- }
748
- set issecondarymenu(e) {
749
- this.$$set({ issecondarymenu: e }), C();
750
- }
751
- get lang() {
752
- return this.$$.ctx[28];
753
- }
754
- set lang(e) {
755
- this.$$set({ lang: e }), C();
756
- }
757
- get activeindex() {
758
- return this.$$.ctx[1];
759
- }
760
- set activeindex(e) {
761
- this.$$set({ activeindex: e }), C();
762
- }
763
- get showsubgroups() {
764
- return this.$$.ctx[2];
765
- }
766
- set showsubgroups(e) {
767
- this.$$set({ showsubgroups: e }), C();
768
- }
769
- get categoriesicon() {
770
- return this.$$.ctx[3];
771
- }
772
- set categoriesicon(e) {
773
- this.$$set({ categoriesicon: e }), C();
774
- }
775
- get lobbyiconimage() {
776
- return this.$$.ctx[29];
777
- }
778
- set lobbyiconimage(e) {
779
- this.$$set({ lobbyiconimage: e }), C();
780
- }
781
- get mygamesiconimage() {
782
- return this.$$.ctx[30];
783
- }
784
- set mygamesiconimage(e) {
785
- this.$$set({ mygamesiconimage: e }), C();
786
- }
787
- get mbsource() {
788
- return this.$$.ctx[31];
789
- }
790
- set mbsource(e) {
791
- this.$$set({ mbsource: e }), C();
792
- }
793
- }
794
- ze($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);
795
- export {
796
- $e as default
797
- };