@everymatrix/casino-header-controller 1.44.0 → 1.45.2

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