@everymatrix/casino-header-controller 1.54.6 → 1.54.9
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.
- package/components/CasinoHamburgerMenu-BGHo13mn.cjs +8 -0
- package/components/CasinoHamburgerMenu-DrXD2QZ-.js +5325 -0
- package/components/{CasinoHamburgerMenu-Didvw1sl.js → CasinoHamburgerMenu-Dv3mR4gk.js} +665 -673
- package/components/CasinoHeaderController-Byn6scnE.js +3030 -0
- package/components/CasinoHeaderController-D7CpWOW7.cjs +13 -0
- package/components/{CasinoHeaderController-CFx6e2bY.js → CasinoHeaderController-DCYuF1bQ.js} +82 -82
- package/components/{CasinoSlider-CTCcKhAJ.js → CasinoSlider-5-1p-Xbc.js} +45 -45
- package/components/CasinoSlider-BaotiKI5.cjs +1 -0
- package/components/CasinoSlider-Dm6jniCL.js +806 -0
- package/components/PlayerAccountBalanceModal-B1_uQAVA.js +1540 -0
- package/components/PlayerAccountBalanceModal-B_7fcnxz.cjs +13 -0
- package/components/{PlayerAccountBalanceModal-CljMbxpF.js → PlayerAccountBalanceModal-Cs1yCHOI.js} +36 -36
- package/components/{PlayerDeposit-BDWEQLoE.js → PlayerDeposit-B89_Vs9V.js} +48 -48
- package/components/PlayerDeposit-CNy9cvEy.js +395 -0
- package/components/PlayerDeposit-DqZH75Dh.cjs +1 -0
- package/es2015/casino-header-controller.cjs +1 -0
- package/es2015/casino-header-controller.js +16 -0
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-581287aa-BlacPmvJ.cjs +1 -0
- package/stencil/index-581287aa-CB9EU-jr.js +638 -0
- package/stencil/index-581287aa-whOrxOjc.js +654 -0
- package/stencil/{user-deposit-withdrawal-DafvBY_z.js → user-deposit-withdrawal-BnZUfmXW.js} +100 -100
- package/stencil/user-deposit-withdrawal-CC9lSqrS.cjs +59 -0
- package/stencil/user-deposit-withdrawal-CyhPaTts.js +668 -0
- package/stencil/index-33f005e1-BLR6jtB3.js +0 -632
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $ as X, a as Ne, b as Te, S as je, i as We, f as w,
|
1
|
+
import { $ as X, a as Ne, b as Te, S as je, i as We, f as w, s as ze, c as Be, d as Oe, n as re, e as I, t as Ge, z as g, h as D, v as C, w as Y, k as b, j as R, o as xe, A as T, J as Ce, r as B, p as J, E as oe, u as Q, y as V, B as Ue, K as pe } from "./CasinoHamburgerMenu-Dv3mR4gk.js";
|
2
2
|
function Ye({ withLocale: n, translations: e }) {
|
3
3
|
X.subscribe((t) => {
|
4
4
|
t == null && (Ne.set(e), X.set(n));
|
@@ -104,7 +104,7 @@ function ce(n) {
|
|
104
104
|
m(r, s) {
|
105
105
|
for (let d = 0; d < e.length; d += 1)
|
106
106
|
e[d] && e[d].m(r, s);
|
107
|
-
|
107
|
+
D(r, i, s);
|
108
108
|
},
|
109
109
|
p(r, s) {
|
110
110
|
s[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
@@ -114,7 +114,7 @@ function ce(n) {
|
|
114
114
|
), e = Ce(e, s, l, 1, r, a, t, i.parentNode, pe, he, i, ae));
|
115
115
|
},
|
116
116
|
d(r) {
|
117
|
-
r &&
|
117
|
+
r && I(i);
|
118
118
|
for (let s = 0; s < e.length; s += 1)
|
119
119
|
e[s].d(r);
|
120
120
|
}
|
@@ -127,18 +127,18 @@ function Ke(n) {
|
|
127
127
|
), i;
|
128
128
|
return {
|
129
129
|
c() {
|
130
|
-
e = b("button"), i =
|
130
|
+
e = b("button"), i = V(t), g(e, "class", "CategoryButton");
|
131
131
|
},
|
132
132
|
m(a, l) {
|
133
|
-
|
133
|
+
D(a, e, l), C(e, i);
|
134
134
|
},
|
135
135
|
p(a, l) {
|
136
136
|
l[0] & /*sliderdata*/
|
137
137
|
512 && t !== (t = /*category*/
|
138
|
-
a[49].name + "") &&
|
138
|
+
a[49].name + "") && Q(i, t);
|
139
139
|
},
|
140
140
|
d(a) {
|
141
|
-
a &&
|
141
|
+
a && I(e);
|
142
142
|
}
|
143
143
|
};
|
144
144
|
}
|
@@ -149,21 +149,21 @@ function Je(n) {
|
|
149
149
|
), i, a;
|
150
150
|
return {
|
151
151
|
c() {
|
152
|
-
e = b("a"), i =
|
152
|
+
e = b("a"), i = V(t), g(e, "href", a = /*category*/
|
153
153
|
n[49].path);
|
154
154
|
},
|
155
155
|
m(l, r) {
|
156
|
-
|
156
|
+
D(l, e, r), C(e, i);
|
157
157
|
},
|
158
158
|
p(l, r) {
|
159
159
|
r[0] & /*sliderdata*/
|
160
160
|
512 && t !== (t = /*category*/
|
161
|
-
l[49].label + "") &&
|
161
|
+
l[49].label + "") && Q(i, t), r[0] & /*sliderdata*/
|
162
162
|
512 && a !== (a = /*category*/
|
163
163
|
l[49].path) && g(e, "href", a);
|
164
164
|
},
|
165
165
|
d(l) {
|
166
|
-
l &&
|
166
|
+
l && I(e);
|
167
167
|
}
|
168
168
|
};
|
169
169
|
}
|
@@ -178,7 +178,7 @@ function ue(n) {
|
|
178
178
|
t && t.c(), e = B();
|
179
179
|
},
|
180
180
|
m(i, a) {
|
181
|
-
t && t.m(i, a),
|
181
|
+
t && t.m(i, a), D(i, e, a);
|
182
182
|
},
|
183
183
|
p(i, a) {
|
184
184
|
/*subGroupsData*/
|
@@ -186,7 +186,7 @@ function ue(n) {
|
|
186
186
|
i[2] == "true" ? t ? t.p(i, a) : (t = de(i), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
187
187
|
},
|
188
188
|
d(i) {
|
189
|
-
i &&
|
189
|
+
i && I(e), t && t.d(i);
|
190
190
|
}
|
191
191
|
};
|
192
192
|
}
|
@@ -205,7 +205,7 @@ function de(n) {
|
|
205
205
|
g(e, "class", "DropDown");
|
206
206
|
},
|
207
207
|
m(a, l) {
|
208
|
-
|
208
|
+
D(a, e, l);
|
209
209
|
for (let r = 0; r < i.length; r += 1)
|
210
210
|
i[r] && i[r].m(e, null);
|
211
211
|
},
|
@@ -227,7 +227,7 @@ function de(n) {
|
|
227
227
|
}
|
228
228
|
},
|
229
229
|
d(a) {
|
230
|
-
a &&
|
230
|
+
a && I(e), Ue(i, a);
|
231
231
|
}
|
232
232
|
};
|
233
233
|
}
|
@@ -254,7 +254,7 @@ function ge(n) {
|
|
254
254
|
}
|
255
255
|
return {
|
256
256
|
c() {
|
257
|
-
e = b("li"), t = b("a"), a =
|
257
|
+
e = b("li"), t = b("a"), a = V(i), r = R(), g(t, "class", l = "SubDropDown " + /*index*/
|
258
258
|
(n[51] == /*activeIndex*/
|
259
259
|
n[6] && /*activeSubIndex*/
|
260
260
|
(n[7] == /*subindex*/
|
@@ -263,12 +263,12 @@ function ge(n) {
|
|
263
263
|
n[57]) ? "active" : ""));
|
264
264
|
},
|
265
265
|
m(f, p) {
|
266
|
-
|
266
|
+
D(f, e, p), C(e, t), C(t, a), C(e, r), s || (d = Y(e, "click", _), s = !0);
|
267
267
|
},
|
268
268
|
p(f, p) {
|
269
269
|
n = f, p[0] & /*subGroupsData*/
|
270
270
|
1024 && i !== (i = /*subGroupItem*/
|
271
|
-
n[55]?.name + "") &&
|
271
|
+
n[55]?.name + "") && Q(a, i), p[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
|
272
272
|
1984 && l !== (l = "SubDropDown " + /*index*/
|
273
273
|
(n[51] == /*activeIndex*/
|
274
274
|
n[6] && /*activeSubIndex*/
|
@@ -278,7 +278,7 @@ function ge(n) {
|
|
278
278
|
n[57]) ? "active" : "")) && g(t, "class", l);
|
279
279
|
},
|
280
280
|
d(f) {
|
281
|
-
f &&
|
281
|
+
f && I(e), s = !1, d();
|
282
282
|
}
|
283
283
|
};
|
284
284
|
}
|
@@ -295,7 +295,7 @@ function fe(n, e) {
|
|
295
295
|
t = B(), a && a.c(), i = B(), this.first = t;
|
296
296
|
},
|
297
297
|
m(l, r) {
|
298
|
-
|
298
|
+
D(l, t, r), a && a.m(l, r), D(l, i, r);
|
299
299
|
},
|
300
300
|
p(l, r) {
|
301
301
|
e = l, /*index*/
|
@@ -303,7 +303,7 @@ function fe(n, e) {
|
|
303
303
|
e[52].index ? a ? a.p(e, r) : (a = ge(e), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null);
|
304
304
|
},
|
305
305
|
d(l) {
|
306
|
-
l && (
|
306
|
+
l && (I(t), I(i)), a && a.d(l);
|
307
307
|
}
|
308
308
|
};
|
309
309
|
}
|
@@ -329,7 +329,7 @@ function me(n) {
|
|
329
329
|
m(r, s) {
|
330
330
|
for (let d = 0; d < e.length; d += 1)
|
331
331
|
e[d] && e[d].m(r, s);
|
332
|
-
|
332
|
+
D(r, i, s);
|
333
333
|
},
|
334
334
|
p(r, s) {
|
335
335
|
s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
@@ -339,7 +339,7 @@ function me(n) {
|
|
339
339
|
), e = Ce(e, s, l, 1, r, a, t, i.parentNode, pe, fe, i, se));
|
340
340
|
},
|
341
341
|
d(r) {
|
342
|
-
r &&
|
342
|
+
r && I(i);
|
343
343
|
for (let s = 0; s < e.length; s += 1)
|
344
344
|
e[s].d(r);
|
345
345
|
}
|
@@ -394,7 +394,7 @@ function he(n, e) {
|
|
394
394
|
(e[0] == "headerMain" ? "" : "SecondaryMenu")), g(t, "part", "CarouselItem"), this.first = t;
|
395
395
|
},
|
396
396
|
m(h, F) {
|
397
|
-
|
397
|
+
D(h, t, F), C(t, i), C(i, a), C(t, s), m.m(t, null), C(t, d), c && c.m(t, null), C(t, _), p || (k = Y(t, "click", y), p = !0);
|
398
398
|
},
|
399
399
|
p(h, F) {
|
400
400
|
e = h, F[0] & /*categoriesicon*/
|
@@ -422,7 +422,7 @@ function he(n, e) {
|
|
422
422
|
(e[0] == "headerMain" ? "" : "SecondaryMenu")) && g(t, "class", f);
|
423
423
|
},
|
424
424
|
d(h) {
|
425
|
-
h &&
|
425
|
+
h && I(t), m.d(), c && c.d(), p = !1, k();
|
426
426
|
}
|
427
427
|
};
|
428
428
|
}
|
@@ -439,7 +439,7 @@ function Xe(n) {
|
|
439
439
|
(n[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
440
440
|
},
|
441
441
|
m(y, h) {
|
442
|
-
|
442
|
+
D(y, e, h), C(e, t), C(t, i), C(t, a), C(t, l), C(l, r), C(r, s), C(r, d), c && c.m(r, null), n[34](r), n[35](l), C(t, _), C(t, f), n[37](e), M || (m = [
|
443
443
|
Y(
|
444
444
|
i,
|
445
445
|
"click",
|
@@ -467,7 +467,7 @@ function Xe(n) {
|
|
467
467
|
i: re,
|
468
468
|
o: re,
|
469
469
|
d(y) {
|
470
|
-
y &&
|
470
|
+
y && I(e), c && c.d(), n[34](null), n[35](null), n[37](null), M = !1, Ge(m);
|
471
471
|
}
|
472
472
|
};
|
473
473
|
}
|
@@ -486,9 +486,9 @@ function Qe(n, e, t) {
|
|
486
486
|
Object.keys(ne).forEach((o) => {
|
487
487
|
ie(o, ne[o]);
|
488
488
|
});
|
489
|
-
let N, j, W, P,
|
489
|
+
let N, j, W, P, H, z = [], O = [], G = [], L, K = (o, u, v, E, A) => {
|
490
490
|
if (!(o.subGroups && E === null)) {
|
491
|
-
if (x(), t(6, j = u), t(6, j),
|
491
|
+
if (x(), t(6, j = u), t(6, j), A != "secondary") {
|
492
492
|
window.postMessage(
|
493
493
|
{
|
494
494
|
type: r == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
@@ -528,8 +528,8 @@ function Qe(n, e, t) {
|
|
528
528
|
}, ve = (o, u, v) => {
|
529
529
|
if (d == "secondaryMenu" && i && a && m && o.id) {
|
530
530
|
let E = new URL(`${i}/v1/casino/groups/${a}/${o.id}/subGroups?language=${m}`);
|
531
|
-
fetch(E.href).then((
|
532
|
-
|
531
|
+
fetch(E.href).then((A) => A.json()).then((A) => {
|
532
|
+
A.index = u, t(10, O = O.concat(A)), y == "false" && window.postMessage(
|
533
533
|
{
|
534
534
|
type: r,
|
535
535
|
itemId: o.id,
|
@@ -559,13 +559,13 @@ function Qe(n, e, t) {
|
|
559
559
|
});
|
560
560
|
}, _e = () => {
|
561
561
|
let o = document.createElement("style");
|
562
|
-
o.innerHTML = _,
|
562
|
+
o.innerHTML = _, H.appendChild(o);
|
563
563
|
}, ke = () => {
|
564
564
|
let o = document.createElement("style"), u = new URL(f);
|
565
565
|
fetch(u.href).then((v) => v.text()).then((v) => {
|
566
566
|
o.innerHTML = v, setTimeout(
|
567
567
|
() => {
|
568
|
-
|
568
|
+
H.appendChild(o);
|
569
569
|
},
|
570
570
|
1
|
571
571
|
);
|
@@ -582,8 +582,8 @@ function Qe(n, e, t) {
|
|
582
582
|
), window.postMessage({ type: "SliderLoaded", identity: p }), () => {
|
583
583
|
window.removeEventListener("message", ee), N.removeEventListener("scroll", x);
|
584
584
|
}));
|
585
|
-
const Me = () => Z(), Ie = (o, u, v, E,
|
586
|
-
K(o, u, v, E, "secondary"),
|
585
|
+
const Me = () => Z(), Ie = (o, u, v, E, A) => {
|
586
|
+
K(o, u, v, E, "secondary"), A.stopPropagation();
|
587
587
|
}, De = (o, u, v) => {
|
588
588
|
K(o, u, null, null, "main"), v.preventDefault();
|
589
589
|
};
|
@@ -597,10 +597,10 @@ function Qe(n, e, t) {
|
|
597
597
|
L = o, t(12, L);
|
598
598
|
});
|
599
599
|
}
|
600
|
-
const
|
601
|
-
function
|
600
|
+
const Ae = () => $();
|
601
|
+
function He(o) {
|
602
602
|
J[o ? "unshift" : "push"](() => {
|
603
|
-
|
603
|
+
H = o, t(4, H);
|
604
604
|
});
|
605
605
|
}
|
606
606
|
return n.$$set = (o) => {
|
@@ -609,15 +609,15 @@ function Qe(n, e, t) {
|
|
609
609
|
n.$$.dirty[0] & /*activeindex*/
|
610
610
|
2, n.$$.dirty[0] & /*translationurl*/
|
611
611
|
33554432 && k && we(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
612
|
-
4194320 && _ &&
|
613
|
-
8388624 && f &&
|
612
|
+
4194320 && _ && H && _e(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
613
|
+
8388624 && f && H && ke(), n.$$.dirty[0] & /*lang*/
|
614
614
|
268435456 && m && ye();
|
615
615
|
}, [
|
616
616
|
d,
|
617
617
|
c,
|
618
618
|
y,
|
619
619
|
h,
|
620
|
-
|
620
|
+
H,
|
621
621
|
N,
|
622
622
|
j,
|
623
623
|
W,
|
@@ -649,8 +649,8 @@ function Qe(n, e, t) {
|
|
649
649
|
De,
|
650
650
|
Se,
|
651
651
|
Le,
|
652
|
-
|
653
|
-
|
652
|
+
Ae,
|
653
|
+
He
|
654
654
|
];
|
655
655
|
}
|
656
656
|
class Ve extends je {
|
@@ -660,7 +660,7 @@ class Ve extends je {
|
|
660
660
|
e,
|
661
661
|
Qe,
|
662
662
|
Xe,
|
663
|
-
|
663
|
+
ze,
|
664
664
|
{
|
665
665
|
endpoint: 17,
|
666
666
|
datasource: 18,
|
@@ -794,7 +794,7 @@ class Ve extends je {
|
|
794
794
|
this.$$set({ mygamesiconimage: e }), w();
|
795
795
|
}
|
796
796
|
}
|
797
|
-
|
797
|
+
Be(Ve, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
798
798
|
export {
|
799
799
|
Ve as default
|
800
800
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-BGHo13mn.cjs");function ye({withLocale:i,translations:e}){t.$locale.subscribe(r=>{r==null&&(t.$dictionary.set(e),t.$locale.set(i))})}function U(i,e){t.addMessages(i,e)}function we(i){t.$locale.set(i)}const Y={en:{login:"Login",register:"Register",deposit:"Deposit"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金"},fr:{login:"Connexion",register:"Registre",deposit:"Dépôt"},tr:{login:"Giriş",register:"Kayıt",deposit:"Para Yatır"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata"},"pt-br":{login:"Entrem",register:"Registro",deposit:"Depósito"},"es-mx":{login:"Entrar",register:"Registro",deposit:"Depósito"},"en-us":{login:"Login",register:"Register",deposit:"Deposit"}};function be(i){t.append_styles(i,"svelte-1lgwoo3",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}')}function P(i,e,r){const o=i.slice();return o[49]=e[r],o[51]=r,o}function K(i,e,r){const o=i.slice();return o[52]=e[r],o}function X(i,e,r){const o=i.slice();return o[55]=e[r],o[57]=r,o}function J(i){let e=[],r=new Map,o,l=t.ensure_array_like(i[9]);const s=n=>n[49].id;for(let n=0;n<l.length;n+=1){let c=P(i,l,n),m=s(c);r.set(m,e[n]=te(m,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();o=t.empty()},m(n,c){for(let m=0;m<e.length;m+=1)e[m]&&e[m].m(n,c);t.insert(n,o,c)},p(n,c){c[0]&77775&&(l=t.ensure_array_like(n[9]),e=t.update_keyed_each(e,c,s,1,n,l,r,o.parentNode,t.destroy_block,te,o,P))},d(n){n&&t.detach(o);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function ve(i){let e,r=i[49].name+"",o;return{c(){e=t.element("button"),o=t.text(r),t.attr(e,"class","CategoryButton")},m(l,s){t.insert(l,e,s),t.append(e,o)},p(l,s){s[0]&512&&r!==(r=l[49].name+"")&&t.set_data(o,r)},d(l){l&&t.detach(e)}}}function _e(i){let e,r=i[49].label+"",o,l;return{c(){e=t.element("a"),o=t.text(r),t.attr(e,"href",l=i[49].path)},m(s,n){t.insert(s,e,n),t.append(e,o)},p(s,n){n[0]&512&&r!==(r=s[49].label+"")&&t.set_data(o,r),n[0]&512&&l!==(l=s[49].path)&&t.attr(e,"href",l)},d(s){s&&t.detach(e)}}}function Q(i){let e,r=i[10].length>0&&i[2]=="true"&&V(i);return{c(){r&&r.c(),e=t.empty()},m(o,l){r&&r.m(o,l),t.insert(o,e,l)},p(o,l){o[10].length>0&&o[2]=="true"?r?r.p(o,l):(r=V(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(o){o&&t.detach(e),r&&r.d(o)}}}function V(i){let e,r=t.ensure_array_like(i[10]),o=[];for(let l=0;l<r.length;l+=1)o[l]=ee(K(i,r,l));return{c(){e=t.element("ul");for(let l=0;l<o.length;l+=1)o[l].c();t.attr(e,"class","DropDown")},m(l,s){t.insert(l,e,s);for(let n=0;n<o.length;n+=1)o[n]&&o[n].m(e,null)},p(l,s){if(s[0]&10176){r=t.ensure_array_like(l[10]);let n;for(n=0;n<r.length;n+=1){const c=K(l,r,n);o[n]?o[n].p(c,s):(o[n]=ee(c),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},d(l){l&&t.detach(e),t.destroy_each(o,l)}}}function Z(i){var C;let e,r,o=((C=i[55])==null?void 0:C.name)+"",l,s,n,c,m;function v(...f){return i[32](i[49],i[51],i[55],i[57],...f)}return{c(){e=t.element("li"),r=t.element("a"),l=t.text(o),n=t.space(),t.attr(r,"class",s="SubDropDown "+(i[51]==i[6]&&(i[7]==i[57]||i[8]==i[57])?"active":""))},m(f,y){t.insert(f,e,y),t.append(e,r),t.append(r,l),t.append(e,n),c||(m=t.listen(e,"click",v),c=!0)},p(f,y){var _;i=f,y[0]&1024&&o!==(o=((_=i[55])==null?void 0:_.name)+"")&&t.set_data(l,o),y[0]&1984&&s!==(s="SubDropDown "+(i[51]==i[6]&&(i[7]==i[57]||i[8]==i[57])?"active":""))&&t.attr(r,"class",s)},d(f){f&&t.detach(e),c=!1,m()}}}function $(i,e){let r,o,l=e[51]==e[52].index&&Z(e);return{key:i,first:null,c(){r=t.empty(),l&&l.c(),o=t.empty(),this.first=r},m(s,n){t.insert(s,r,n),l&&l.m(s,n),t.insert(s,o,n)},p(s,n){e=s,e[51]==e[52].index?l?l.p(e,n):(l=Z(e),l.c(),l.m(o.parentNode,o)):l&&(l.d(1),l=null)},d(s){s&&(t.detach(r),t.detach(o)),l&&l.d(s)}}}function ee(i){let e=[],r=new Map,o,l=t.ensure_array_like(i[52].items);const s=n=>n[55].id;for(let n=0;n<l.length;n+=1){let c=X(i,l,n),m=s(c);r.set(m,e[n]=$(m,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();o=t.empty()},m(n,c){for(let m=0;m<e.length;m+=1)e[m]&&e[m].m(n,c);t.insert(n,o,c)},p(n,c){c[0]&10176&&(l=t.ensure_array_like(n[52].items),e=t.update_keyed_each(e,c,s,1,n,l,r,o.parentNode,t.destroy_block,$,o,X))},d(n){n&&t.detach(o);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function te(i,e){let r,o,l,s,n,c,m,v,C,f,y;function _(h,b){return h[0]==="headerMain"?_e:ve}let k=_(e),g=k(e),u=e[11][e[51]]==!0&&Q(e);function w(...h){return e[33](e[49],e[51],...h)}return{key:i,first:null,c(){var h,b;r=t.element("li"),o=t.element("div"),l=t.element("img"),c=t.space(),g.c(),m=t.space(),u&&u.c(),v=t.space(),t.attr(l,"class",s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone")),t.src_url_equal(l.src,n=e[16](e[49]))||t.attr(l,"src",n),t.attr(o,"class","CategoryIcon"),t.attr(r,"class",C="CarouselItem "+(((h=e[1])==null?void 0:h.toString().indexOf("$"))>-1?((b=e[1])==null?void 0:b.split("$").pop())==e[49].id.split("$").pop()?"active":"":e[1]==e[49].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu")),t.attr(r,"part","CarouselItem"),this.first=r},m(h,b){t.insert(h,r,b),t.append(r,o),t.append(o,l),t.append(r,c),g.m(r,null),t.append(r,m),u&&u.m(r,null),t.append(r,v),f||(y=t.listen(r,"click",w),f=!0)},p(h,b){var L,N;e=h,b[0]&8&&s!==(s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone"))&&t.attr(l,"class",s),b[0]&512&&!t.src_url_equal(l.src,n=e[16](e[49]))&&t.attr(l,"src",n),k===(k=_(e))&&g?g.p(e,b):(g.d(1),g=k(e),g&&(g.c(),g.m(r,m))),e[11][e[51]]==!0?u?u.p(e,b):(u=Q(e),u.c(),u.m(r,v)):u&&(u.d(1),u=null),b[0]&515&&C!==(C="CarouselItem "+(((L=e[1])==null?void 0:L.toString().indexOf("$"))>-1?((N=e[1])==null?void 0:N.split("$").pop())==e[49].id.split("$").pop()?"active":"":e[1]==e[49].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu"))&&t.attr(r,"class",C)},d(h){h&&t.detach(r),g.d(),u&&u.d(),f=!1,y()}}}function ke(i){let e,r,o,l,s,n,c,m,v,C,f,y,_,k,g,u=i[9].length>0&&J(i);return{c(){e=t.element("div"),r=t.element("div"),o=t.element("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>',l=t.space(),s=t.element("div"),n=t.element("ul"),c=t.element("li"),c.innerHTML='<a href="#CarouselNav">Close Subs</a>',m=t.space(),u&&u.c(),v=t.space(),C=t.element("div"),C.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>',t.attr(o,"class","CarouselLeftArrow"),t.attr(c,"class","TouchOnly"),t.attr(n,"id","CarouselNav"),t.attr(n,"class","CarouselItems"),t.attr(s,"class","CarouselNavWrap"),t.attr(C,"class","CarouselRightArrow"),t.attr(r,"class",f=`CarouselContainer CarouselContainerMobile ${i[0]==="headerMain"?"CarouselContainerHeaderMain":""}`),t.attr(r,"style",y=i[0]==="headerMain"?"max-width: auto":void 0),t.attr(e,"class",_="CarouselWrapper "+(i[0]==="headerMain"?"CarouselWrapperHeaderMain":""))},m(w,h){t.insert(w,e,h),t.append(e,r),t.append(r,o),t.append(r,l),t.append(r,s),t.append(s,n),t.append(n,c),t.append(n,m),u&&u.m(n,null),i[34](n),i[35](s),t.append(r,v),t.append(r,C),i[37](e),k||(g=[t.listen(o,"click",i[31]),t.listen(C,"click",i[36])],k=!0)},p(w,h){w[9].length>0?u?u.p(w,h):(u=J(w),u.c(),u.m(n,null)):u&&(u.d(1),u=null),h[0]&1&&f!==(f=`CarouselContainer CarouselContainerMobile ${w[0]==="headerMain"?"CarouselContainerHeaderMain":""}`)&&t.attr(r,"class",f),h[0]&1&&y!==(y=w[0]==="headerMain"?"max-width: auto":void 0)&&t.attr(r,"style",y),h[0]&1&&_!==(_="CarouselWrapper "+(w[0]==="headerMain"?"CarouselWrapperHeaderMain":""))&&t.attr(e,"class",_)},i:t.noop,o:t.noop,d(w){w&&t.detach(e),u&&u.d(),i[34](null),i[35](null),i[37](null),k=!1,t.run_all(g)}}}function Fe(i,e,r){let{endpoint:o=""}=e,{datasource:l=""}=e,{onclickeventname:s="defaultEvent"}=e,{actionevent:n="defaultEvent"}=e,{favoritesnumber:c="0"}=e,{location:m=""}=e,{clientstyling:v=""}=e,{clientstylingurl:C=""}=e,{identity:f=""}=e,{translationurl:y=""}=e,{isprimarymenu:_=!1}=e,{issecondarymenu:k=!1}=e,{lang:g=""}=e,{activeindex:u="0"}=e,{showsubgroups:w="false"}=e,{categoriesicon:h="false"}=e,{lobbyiconimage:b=""}=e,{mygamesiconimage:L=""}=e;ye({withLocale:"en",translations:{}});const N=()=>{fetch(y).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{U(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(Y).forEach(a=>{U(a,Y[a])});let H,A,E,W,I,R=[],T=[],j=[],F,z=(a,d,p,D,M)=>{var S;if(!(a.subGroups&&D===null)){if(O(),r(6,A=d),r(6,A),M!="secondary"){window.postMessage({type:n=="CategoryChange"?"CategoryChange":"NavigateTo",buzz:"1",itemId:a.id,index:d,item:a,path:a.path,externalLink:a.externalLink||!1,target:((S=a.attrs)==null?void 0:S.target)||null},window.location.href),r(7,E=null),r(8,W=null);return}r(7,E=D),r(7,E),r(8,W=E),window.postMessage({type:n,itemId:p.id,subIndex:D,subItem:p},window.location.href)}},B=()=>{F.scrollBy({left:-250,behavior:"smooth"})},G=()=>{F.scrollBy({left:250,behavior:"smooth"})};const x=a=>{a.data.type=="SliderData"&&a.data.identity==f&&(r(9,R=a.data.data),r(11,j=new Array(R.length).fill(!1)),w=="true"&&oe()),a.data.type=="GoToHomepage"&&R.forEach((d,p)=>{d.path.endsWith("/casino")&&(r(6,A=p),r(6,A))})},ne=()=>{we(g)},ae=(a,d,p)=>{if(m=="secondaryMenu"&&o&&l&&g&&a.id){let D=new URL(`${o}/v1/casino/groups/${l}/${a.id}/subGroups?language=${g}`);fetch(D.href).then(M=>M.json()).then(M=>{M.index=d,r(10,T=T.concat(M)),w=="false"&&window.postMessage({type:n,itemId:a.id,index:d,item:a},window.location.href);const S=[];T.map(pe=>(pe.items.forEach(q=>{S.find(Ce=>q.id==Ce)||S.push(q.id)}),S.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:S},window.location.href)}).then(()=>{H.querySelectorAll(".DropDown")&&O()})}m=="headerMain"&&window.postMessage({type:n,item:a},window.location.href)},O=()=>{const a=H.querySelectorAll(".DropDown");document.activeElement.blur(),F.classList.add("isScrolling");for(let d=0;d<a.length;d++)a[d].style.transform="translateX(-"+F.scrollLeft+"px)";F.classList.remove("isScrolling")},oe=()=>{R.forEach((a,d)=>{var p;((p=a==null?void 0:a.subGroups)==null?void 0:p.count)>0&&(r(11,j[d]=!0,j),ae(a,d))})},ie=()=>{let a=document.createElement("style");a.innerHTML=v,I.appendChild(a)},le=()=>{let a=document.createElement("style"),d=new URL(C);fetch(d.href).then(p=>p.text()).then(p=>{a.innerHTML=p,setTimeout(()=>{I.appendChild(a)},1)})},se=a=>{let d="";return a.id==="LOBBY"?d=b:a.id==="MYGAMES"&&(d=L),a.icon||d};t.onMount(()=>(window.addEventListener("message",x,!1),"ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),setTimeout(()=>{F.addEventListener("scroll",O)},500),window.postMessage({type:"SliderLoaded",identity:f}),()=>{window.removeEventListener("message",x),H.removeEventListener("scroll",O)}));const ce=()=>B(),ue=(a,d,p,D,M)=>{z(a,d,p,D,"secondary"),M.stopPropagation()},de=(a,d,p)=>{z(a,d,null,null,"main"),p.preventDefault()};function me(a){t.binding_callbacks[a?"unshift":"push"](()=>{H=a,r(5,H)})}function he(a){t.binding_callbacks[a?"unshift":"push"](()=>{F=a,r(12,F)})}const fe=()=>G();function ge(a){t.binding_callbacks[a?"unshift":"push"](()=>{I=a,r(4,I)})}return i.$$set=a=>{"endpoint"in a&&r(17,o=a.endpoint),"datasource"in a&&r(18,l=a.datasource),"onclickeventname"in a&&r(19,s=a.onclickeventname),"actionevent"in a&&r(20,n=a.actionevent),"favoritesnumber"in a&&r(21,c=a.favoritesnumber),"location"in a&&r(0,m=a.location),"clientstyling"in a&&r(22,v=a.clientstyling),"clientstylingurl"in a&&r(23,C=a.clientstylingurl),"identity"in a&&r(24,f=a.identity),"translationurl"in a&&r(25,y=a.translationurl),"isprimarymenu"in a&&r(26,_=a.isprimarymenu),"issecondarymenu"in a&&r(27,k=a.issecondarymenu),"lang"in a&&r(28,g=a.lang),"activeindex"in a&&r(1,u=a.activeindex),"showsubgroups"in a&&r(2,w=a.showsubgroups),"categoriesicon"in a&&r(3,h=a.categoriesicon),"lobbyiconimage"in a&&r(29,b=a.lobbyiconimage),"mygamesiconimage"in a&&r(30,L=a.mygamesiconimage)},i.$$.update=()=>{i.$$.dirty[0]&2,i.$$.dirty[0]&33554432&&y&&N(),i.$$.dirty[0]&4194320&&v&&I&&ie(),i.$$.dirty[0]&8388624&&C&&I&&le(),i.$$.dirty[0]&268435456&&g&&ne()},[m,u,w,h,I,H,A,E,W,R,T,j,F,z,B,G,se,o,l,s,n,c,v,C,f,y,_,k,g,b,L,ce,ue,de,me,he,fe,ge]}class re extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Fe,ke,t.safe_not_equal,{endpoint:17,datasource:18,onclickeventname:19,actionevent:20,favoritesnumber:21,location:0,clientstyling:22,clientstylingurl:23,identity:24,translationurl:25,isprimarymenu:26,issecondarymenu:27,lang:28,activeindex:1,showsubgroups:2,categoriesicon:3,lobbyiconimage:29,mygamesiconimage:30},be,[-1,-1])}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[18]}set datasource(e){this.$$set({datasource:e}),t.flush()}get onclickeventname(){return this.$$.ctx[19]}set onclickeventname(e){this.$$set({onclickeventname:e}),t.flush()}get actionevent(){return this.$$.ctx[20]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get favoritesnumber(){return this.$$.ctx[21]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),t.flush()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),t.flush()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get identity(){return this.$$.ctx[24]}set identity(e){this.$$set({identity:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get isprimarymenu(){return this.$$.ctx[26]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),t.flush()}get issecondarymenu(){return this.$$.ctx[27]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),t.flush()}get lang(){return this.$$.ctx[28]}set lang(e){this.$$set({lang:e}),t.flush()}get activeindex(){return this.$$.ctx[1]}set activeindex(e){this.$$set({activeindex:e}),t.flush()}get showsubgroups(){return this.$$.ctx[2]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get categoriesicon(){return this.$$.ctx[3]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[29]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[30]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}}t.create_custom_element(re,{endpoint:{},datasource:{},onclickeventname:{},actionevent:{},favoritesnumber:{},location:{},clientstyling:{},clientstylingurl:{},identity:{},translationurl:{},isprimarymenu:{type:"Boolean"},issecondarymenu:{type:"Boolean"},lang:{},activeindex:{},showsubgroups:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=re;
|