@everymatrix/casino-header-controller 1.63.2 → 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
@@ -0,0 +1,797 @@
1
+ import { $ as Q, a as Ne, b as Re, S as Te, i as Be, f as C, s as je, c as We, d as ze, n as oe, e as S, t as Oe, z as f, h as D, v as p, w as U, k as v, j as R, o as Ge, A as j, M as pe, r as O, 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-CTVc2-UF.js";
2
+ function Pe({ withLocale: n, translations: e }) {
3
+ Q.subscribe((t) => {
4
+ t == null && (Ne.set(e), Q.set(n));
5
+ });
6
+ }
7
+ function ne(n, e) {
8
+ Re(n, e);
9
+ }
10
+ function Ke(n) {
11
+ Q.set(n);
12
+ }
13
+ const ae = {
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(n) {
71
+ ze(n, "svelte-wvhhix", '*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.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, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.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, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.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(n, e, t) {
74
+ const o = n.slice();
75
+ return o[48] = e[t], o[50] = t, o;
76
+ }
77
+ function se(n, e, t) {
78
+ const o = n.slice();
79
+ return o[51] = e[t], o;
80
+ }
81
+ function ce(n, e, t) {
82
+ const o = n.slice();
83
+ return o[54] = e[t], o[56] = t, o;
84
+ }
85
+ function ue(n) {
86
+ let e = [], t = /* @__PURE__ */ new Map(), o, a = j(
87
+ /*sliderdata*/
88
+ n[9]
89
+ );
90
+ const l = (r) => (
91
+ /*category*/
92
+ r[48].id
93
+ );
94
+ for (let r = 0; r < a.length; r += 1) {
95
+ let s = le(n, a, 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 = O();
103
+ },
104
+ m(r, s) {
105
+ for (let u = 0; u < e.length; u += 1)
106
+ e[u] && e[u].m(r, s);
107
+ D(r, o, s);
108
+ },
109
+ p(r, s) {
110
+ s[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
111
+ 77775 && (a = j(
112
+ /*sliderdata*/
113
+ r[9]
114
+ ), e = pe(e, s, l, 1, r, a, t, o.parentNode, ye, Ce, o, le));
115
+ },
116
+ d(r) {
117
+ r && S(o);
118
+ for (let s = 0; s < e.length; s += 1)
119
+ e[s].d(r);
120
+ }
121
+ };
122
+ }
123
+ function Xe(n) {
124
+ let e, t = (
125
+ /*category*/
126
+ n[48].name + ""
127
+ ), o;
128
+ return {
129
+ c() {
130
+ e = v("button"), o = Z(t), f(e, "class", "CategoryButton");
131
+ },
132
+ m(a, l) {
133
+ D(a, e, l), p(e, o);
134
+ },
135
+ p(a, l) {
136
+ l[0] & /*sliderdata*/
137
+ 512 && t !== (t = /*category*/
138
+ a[48].name + "") && V(o, t);
139
+ },
140
+ d(a) {
141
+ a && S(e);
142
+ }
143
+ };
144
+ }
145
+ function Qe(n) {
146
+ let e, t = (
147
+ /*category*/
148
+ n[48].label + ""
149
+ ), o, a;
150
+ return {
151
+ c() {
152
+ e = v("a"), o = Z(t), f(e, "href", a = /*category*/
153
+ n[48].path);
154
+ },
155
+ m(l, r) {
156
+ D(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 && a !== (a = /*category*/
163
+ l[48].path) && f(e, "href", a);
164
+ },
165
+ d(l) {
166
+ l && S(e);
167
+ }
168
+ };
169
+ }
170
+ function de(n) {
171
+ let e, t = (
172
+ /*subGroupsData*/
173
+ n[10].length > 0 && /*showsubgroups*/
174
+ n[2] == "true" && fe(n)
175
+ );
176
+ return {
177
+ c() {
178
+ t && t.c(), e = O();
179
+ },
180
+ m(o, a) {
181
+ t && t.m(o, a), D(o, e, a);
182
+ },
183
+ p(o, a) {
184
+ /*subGroupsData*/
185
+ o[10].length > 0 && /*showsubgroups*/
186
+ o[2] == "true" ? t ? t.p(o, a) : (t = fe(o), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
187
+ },
188
+ d(o) {
189
+ o && S(e), t && t.d(o);
190
+ }
191
+ };
192
+ }
193
+ function fe(n) {
194
+ let e, t = j(
195
+ /*subGroupsData*/
196
+ n[10]
197
+ ), o = [];
198
+ for (let a = 0; a < t.length; a += 1)
199
+ o[a] = he(se(n, t, a));
200
+ return {
201
+ c() {
202
+ e = v("ul");
203
+ for (let a = 0; a < o.length; a += 1)
204
+ o[a].c();
205
+ f(e, "class", "DropDown");
206
+ },
207
+ m(a, l) {
208
+ D(a, e, l);
209
+ for (let r = 0; r < o.length; r += 1)
210
+ o[r] && o[r].m(e, null);
211
+ },
212
+ p(a, l) {
213
+ if (l[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
214
+ 10176) {
215
+ t = j(
216
+ /*subGroupsData*/
217
+ a[10]
218
+ );
219
+ let r;
220
+ for (r = 0; r < t.length; r += 1) {
221
+ const s = se(a, 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(a) {
230
+ a && S(e), xe(o, a);
231
+ }
232
+ };
233
+ }
234
+ function ge(n) {
235
+ let e, t, o = (
236
+ /*subGroupItem*/
237
+ n[54]?.name + ""
238
+ ), a, l, r, s, u;
239
+ function _(...g) {
240
+ return (
241
+ /*click_handler_1*/
242
+ n[33](
243
+ /*category*/
244
+ n[48],
245
+ /*index*/
246
+ n[50],
247
+ /*subGroupItem*/
248
+ n[54],
249
+ /*subindex*/
250
+ n[56],
251
+ ...g
252
+ )
253
+ );
254
+ }
255
+ return {
256
+ c() {
257
+ e = v("li"), t = v("a"), a = Z(o), r = R(), f(t, "class", l = "SubDropDown " + /*index*/
258
+ (n[50] == /*activeIndex*/
259
+ n[6] && /*activeSubIndex*/
260
+ (n[7] == /*subindex*/
261
+ n[56] || /*prevSubIndex*/
262
+ n[8] == /*subindex*/
263
+ n[56]) ? "active" : ""));
264
+ },
265
+ m(g, y) {
266
+ D(g, e, y), p(e, t), p(t, a), p(e, r), s || (u = U(e, "click", _), s = !0);
267
+ },
268
+ p(g, y) {
269
+ n = g, y[0] & /*subGroupsData*/
270
+ 1024 && o !== (o = /*subGroupItem*/
271
+ n[54]?.name + "") && V(a, o), y[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
272
+ 1984 && l !== (l = "SubDropDown " + /*index*/
273
+ (n[50] == /*activeIndex*/
274
+ n[6] && /*activeSubIndex*/
275
+ (n[7] == /*subindex*/
276
+ n[56] || /*prevSubIndex*/
277
+ n[8] == /*subindex*/
278
+ n[56]) ? "active" : "")) && f(t, "class", l);
279
+ },
280
+ d(g) {
281
+ g && S(e), s = !1, u();
282
+ }
283
+ };
284
+ }
285
+ function me(n, e) {
286
+ let t, o, a = (
287
+ /*index*/
288
+ e[50] == /*subGroup*/
289
+ e[51].index && ge(e)
290
+ );
291
+ return {
292
+ key: n,
293
+ first: null,
294
+ c() {
295
+ t = O(), a && a.c(), o = O(), this.first = t;
296
+ },
297
+ m(l, r) {
298
+ D(l, t, r), a && a.m(l, r), D(l, o, r);
299
+ },
300
+ p(l, r) {
301
+ e = l, /*index*/
302
+ e[50] == /*subGroup*/
303
+ e[51].index ? a ? a.p(e, r) : (a = ge(e), a.c(), a.m(o.parentNode, o)) : a && (a.d(1), a = null);
304
+ },
305
+ d(l) {
306
+ l && (S(t), S(o)), a && a.d(l);
307
+ }
308
+ };
309
+ }
310
+ function he(n) {
311
+ let e = [], t = /* @__PURE__ */ new Map(), o, a = j(
312
+ /*subGroup*/
313
+ n[51].items
314
+ );
315
+ const l = (r) => (
316
+ /*subGroupItem*/
317
+ r[54].id
318
+ );
319
+ for (let r = 0; r < a.length; r += 1) {
320
+ let s = ce(n, a, 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 = O();
328
+ },
329
+ m(r, s) {
330
+ for (let u = 0; u < e.length; u += 1)
331
+ e[u] && e[u].m(r, s);
332
+ D(r, o, s);
333
+ },
334
+ p(r, s) {
335
+ s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
336
+ 10176 && (a = j(
337
+ /*subGroup*/
338
+ r[51].items
339
+ ), e = pe(e, s, l, 1, r, a, t, o.parentNode, ye, me, o, ce));
340
+ },
341
+ d(r) {
342
+ r && S(o);
343
+ for (let s = 0; s < e.length; s += 1)
344
+ e[s].d(r);
345
+ }
346
+ };
347
+ }
348
+ function Ce(n, e) {
349
+ let t, o, a, l, r, s, u, _, g, 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: n,
377
+ first: null,
378
+ c() {
379
+ t = v("li"), o = v("div"), a = v("img"), s = R(), m.c(), u = R(), c && c.c(), _ = R(), f(a, "class", l = "CategoryIconImg " + /*categoriesicon*/
380
+ (e[3] === "true" ? "" : "DisplayNone")), ie(a.src, r = /*handleSrc*/
381
+ e[16](
382
+ /*category*/
383
+ e[48]
384
+ )) || f(a, "src", r), f(o, "class", "CategoryIcon"), f(t, "class", g = "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
+ D(h, t, F), p(t, o), p(o, a), 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")) && f(a, "class", l), F[0] & /*sliderdata*/
403
+ 512 && !ie(a.src, r = /*handleSrc*/
404
+ e[16](
405
+ /*category*/
406
+ e[48]
407
+ )) && f(a, "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 && g !== (g = "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")) && f(t, "class", g);
423
+ },
424
+ d(h) {
425
+ h && S(t), m.d(), c && c.d(), y = !1, k();
426
+ }
427
+ };
428
+ }
429
+ function Ve(n) {
430
+ let e, t, o, a, l, r, s, u, _, g, y, k, L, I, m, c = (
431
+ /*sliderdata*/
432
+ n[9].length > 0 && ue(n)
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>', a = R(), l = v("div"), r = v("ul"), s = v("li"), s.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = R(), c && c.c(), _ = R(), g = v("div"), g.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>', f(o, "class", "CarouselLeftArrow"), f(s, "class", "TouchOnly"), f(r, "id", "CarouselNav"), f(r, "class", "CarouselItems"), f(l, "class", "CarouselNavWrap scroller"), f(g, "class", "CarouselRightArrow"), f(t, "class", y = `CarouselContainer CarouselContainerMobile ${/*location*/
437
+ n[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), f(t, "style", k = /*location*/
438
+ n[0] === "headerMain" ? "max-width: auto" : void 0), f(e, "class", L = "CarouselWrapper " + /*location*/
439
+ (n[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
440
+ },
441
+ m(w, h) {
442
+ D(w, e, h), p(e, t), p(t, o), p(t, a), p(t, l), p(l, r), p(r, s), p(r, u), c && c.m(r, null), n[35](r), n[36](l), p(t, _), p(t, g), n[38](e), I || (m = [
443
+ U(
444
+ o,
445
+ "click",
446
+ /*click_handler*/
447
+ n[32]
448
+ ),
449
+ U(
450
+ g,
451
+ "click",
452
+ /*click_handler_3*/
453
+ n[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" : ""}`) && f(t, "class", y), h[0] & /*location*/
462
+ 1 && k !== (k = /*location*/
463
+ w[0] === "headerMain" ? "max-width: auto" : void 0) && f(t, "style", k), h[0] & /*location*/
464
+ 1 && L !== (L = "CarouselWrapper " + /*location*/
465
+ (w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && f(e, "class", L);
466
+ },
467
+ i: oe,
468
+ o: oe,
469
+ d(w) {
470
+ w && S(e), c && c.d(), n[35](null), n[36](null), n[38](null), I = !1, Oe(m);
471
+ }
472
+ };
473
+ }
474
+ function Ze(n, e, t) {
475
+ let { endpoint: o = "" } = e, { datasource: a = "" } = e, { onclickeventname: l = "defaultEvent" } = e, { actionevent: r = "defaultEvent" } = e, { favoritesnumber: s = "0" } = e, { location: u = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: g = "" } = 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: G = "" } = 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
+ ne(M, d[M]);
481
+ });
482
+ }).catch((d) => {
483
+ console.log(d);
484
+ });
485
+ };
486
+ Object.keys(ae).forEach((i) => {
487
+ ne(i, ae[i]);
488
+ });
489
+ let T, H, W, K, A, z = [], x = [], B = [], b, J = (i, d, M, N, E) => {
490
+ if (!(i.subGroups && N === null)) {
491
+ if (Y(), t(6, H = d), t(6, H), E != "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, W = null), t(8, K = null);
505
+ return;
506
+ }
507
+ t(7, W = N), t(7, W), t(8, K = W), 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 && (B.length !== H ? t(12, b.scrollLeft -= 250, b) : t(12, b.scrollLeft = 0, b));
519
+ }, ee = () => {
520
+ b && (B.length !== H ? 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, z = i.data.data), t(11, B = new Array(z.length).fill(!1)), w == "true" && _e()), i.data.type == "GoToHomepage" && z.forEach((d, M) => {
524
+ d.path.endsWith("/casino") && (t(6, H = M), t(6, H));
525
+ });
526
+ }, be = () => {
527
+ Ke(m);
528
+ }, ve = (i, d, M) => {
529
+ if (u == "secondaryMenu" && o && a && m && i.id) {
530
+ let N = new URL(`${o}/v1/casino/groups/${a}/${i.id}/subGroups?language=${m}`);
531
+ fetch(N.href).then((E) => E.json()).then((E) => {
532
+ E.index = d, t(10, x = x.concat(E)), 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((Ee) => (Ee.items.forEach((re) => {
543
+ q.find((He) => re.id == He) || 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
+ z.forEach((i, d) => {
558
+ i?.subGroups?.count > 0 && (t(11, B[d] = !0, B), 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
+ Ge(() => (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, E) => {
573
+ J(i, d, M, N, "secondary"), E.stopPropagation();
574
+ }, Ie = (i, d, M) => {
575
+ J(i, d, null, null, "main"), M.preventDefault();
576
+ };
577
+ function Se(i) {
578
+ X[i ? "unshift" : "push"](() => {
579
+ T = i, t(5, T);
580
+ });
581
+ }
582
+ function De(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 n.$$set = (i) => {
594
+ "endpoint" in i && t(17, o = i.endpoint), "datasource" in i && t(18, a = 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, g = 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, G = i.mbsource);
595
+ }, n.$$.update = () => {
596
+ n.$$.dirty[0] & /*activeindex*/
597
+ 2, n.$$.dirty[0] & /*translationurl*/
598
+ 33554432 && k && we(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
599
+ 4194320 && _ && A && Ye(A, _), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
600
+ 8388624 && g && A && qe(A, g), n.$$.dirty[0] & /*customStylingContainer*/
601
+ 16 | n.$$.dirty[1] & /*mbsource*/
602
+ 1 && G && A && Ue(A, `${G}.Style`), n.$$.dirty[0] & /*lang*/
603
+ 268435456 && m && be();
604
+ }, [
605
+ u,
606
+ c,
607
+ w,
608
+ h,
609
+ A,
610
+ T,
611
+ H,
612
+ W,
613
+ K,
614
+ z,
615
+ x,
616
+ B,
617
+ b,
618
+ J,
619
+ $,
620
+ ee,
621
+ ke,
622
+ o,
623
+ a,
624
+ l,
625
+ r,
626
+ s,
627
+ _,
628
+ g,
629
+ y,
630
+ k,
631
+ L,
632
+ I,
633
+ m,
634
+ F,
635
+ P,
636
+ G,
637
+ Fe,
638
+ Me,
639
+ Ie,
640
+ Se,
641
+ De,
642
+ Le,
643
+ Ae
644
+ ];
645
+ }
646
+ class $e extends Te {
647
+ constructor(e) {
648
+ super(), Be(
649
+ this,
650
+ e,
651
+ Ze,
652
+ Ve,
653
+ je,
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
+ We($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
+ };