@everymatrix/casino-categories-slider 1.49.2 → 1.50.1
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/CasinoCategoriesSlider-CsaSAiaA.cjs +5 -0
- package/components/{CasinoCategoriesSlider-B9aXApz5.js → CasinoCategoriesSlider-DYj25Fjl.js} +342 -336
- package/components/{CasinoSlider-CTLT5T1k.js → CasinoSlider-BqUCf-zh.js} +57 -57
- package/components/CasinoSlider-DrJ-s3D6.cjs +1 -0
- package/es2015/casino-categories-slider.cjs +1 -1
- package/es2015/casino-categories-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSlider-CEQ7guYX.cjs +0 -5
- package/components/CasinoSlider-Ciq29NG6.cjs +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $ as Q, a as Re, b as Te, S as je, i as
|
1
|
+
import { $ as Q, a as Re, b as Te, S as je, i as We, f as y, c as ze, s as Oe, d as Be, e as k, g as R, h as m, j as D, k as p, l as P, n as oe, m as S, r as Ge, o as xe, p as W, q as G, u as pe, t as ne, v as J, w as we, x as qe, y as V, z as Z } from "./CasinoCategoriesSlider-DYj25Fjl.js";
|
2
2
|
function Ue({ withLocale: a, translations: e }) {
|
3
3
|
Q.subscribe((t) => {
|
4
4
|
t == null && (Re.set(e), Q.set(a));
|
@@ -63,7 +63,7 @@ const ie = {
|
|
63
63
|
}
|
64
64
|
};
|
65
65
|
function Pe(a) {
|
66
|
-
Be(a, "svelte-
|
66
|
+
Be(a, "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}');
|
67
67
|
}
|
68
68
|
function le(a, e, t) {
|
69
69
|
const n = a.slice();
|
@@ -78,7 +78,7 @@ function ce(a, e, t) {
|
|
78
78
|
return n[55] = e[t], n[57] = t, n;
|
79
79
|
}
|
80
80
|
function ue(a) {
|
81
|
-
let e = [], t = /* @__PURE__ */ new Map(), n, i =
|
81
|
+
let e = [], t = /* @__PURE__ */ new Map(), n, i = W(
|
82
82
|
/*sliderdata*/
|
83
83
|
a[9]
|
84
84
|
);
|
@@ -103,7 +103,7 @@ function ue(a) {
|
|
103
103
|
},
|
104
104
|
p(r, s) {
|
105
105
|
s[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
|
106
|
-
77775 && (i =
|
106
|
+
77775 && (i = W(
|
107
107
|
/*sliderdata*/
|
108
108
|
r[9]
|
109
109
|
), e = pe(e, s, l, 1, r, i, t, n.parentNode, we, Ce, n, le));
|
@@ -122,7 +122,7 @@ function Ke(a) {
|
|
122
122
|
), n;
|
123
123
|
return {
|
124
124
|
c() {
|
125
|
-
e = k("button"), n = V(t),
|
125
|
+
e = k("button"), n = V(t), m(e, "class", "CategoryButton");
|
126
126
|
},
|
127
127
|
m(i, l) {
|
128
128
|
D(i, e, l), p(e, n);
|
@@ -144,7 +144,7 @@ function Xe(a) {
|
|
144
144
|
), n, i;
|
145
145
|
return {
|
146
146
|
c() {
|
147
|
-
e = k("a"), n = V(t),
|
147
|
+
e = k("a"), n = V(t), m(e, "href", i = /*category*/
|
148
148
|
a[49].path);
|
149
149
|
},
|
150
150
|
m(l, r) {
|
@@ -155,7 +155,7 @@ function Xe(a) {
|
|
155
155
|
512 && t !== (t = /*category*/
|
156
156
|
l[49].label + "") && Z(n, t), r[0] & /*sliderdata*/
|
157
157
|
512 && i !== (i = /*category*/
|
158
|
-
l[49].path) &&
|
158
|
+
l[49].path) && m(e, "href", i);
|
159
159
|
},
|
160
160
|
d(l) {
|
161
161
|
l && S(e);
|
@@ -166,7 +166,7 @@ function de(a) {
|
|
166
166
|
let e, t = (
|
167
167
|
/*subGroupsData*/
|
168
168
|
a[10].length > 0 && /*showsubgroups*/
|
169
|
-
a[2] == "true" &&
|
169
|
+
a[2] == "true" && me(a)
|
170
170
|
);
|
171
171
|
return {
|
172
172
|
c() {
|
@@ -178,15 +178,15 @@ function de(a) {
|
|
178
178
|
p(n, i) {
|
179
179
|
/*subGroupsData*/
|
180
180
|
n[10].length > 0 && /*showsubgroups*/
|
181
|
-
n[2] == "true" ? t ? t.p(n, i) : (t =
|
181
|
+
n[2] == "true" ? t ? t.p(n, i) : (t = me(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
182
182
|
},
|
183
183
|
d(n) {
|
184
184
|
n && S(e), t && t.d(n);
|
185
185
|
}
|
186
186
|
};
|
187
187
|
}
|
188
|
-
function
|
189
|
-
let e, t =
|
188
|
+
function me(a) {
|
189
|
+
let e, t = W(
|
190
190
|
/*subGroupsData*/
|
191
191
|
a[10]
|
192
192
|
), n = [];
|
@@ -197,7 +197,7 @@ function fe(a) {
|
|
197
197
|
e = k("ul");
|
198
198
|
for (let i = 0; i < n.length; i += 1)
|
199
199
|
n[i].c();
|
200
|
-
|
200
|
+
m(e, "class", "DropDown");
|
201
201
|
},
|
202
202
|
m(i, l) {
|
203
203
|
D(i, e, l);
|
@@ -207,7 +207,7 @@ function fe(a) {
|
|
207
207
|
p(i, l) {
|
208
208
|
if (l[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
|
209
209
|
10176) {
|
210
|
-
t =
|
210
|
+
t = W(
|
211
211
|
/*subGroupsData*/
|
212
212
|
i[10]
|
213
213
|
);
|
@@ -226,7 +226,7 @@ function fe(a) {
|
|
226
226
|
}
|
227
227
|
};
|
228
228
|
}
|
229
|
-
function
|
229
|
+
function fe(a) {
|
230
230
|
var w;
|
231
231
|
let e, t, n = (
|
232
232
|
/*subGroupItem*/
|
@@ -250,7 +250,7 @@ function me(a) {
|
|
250
250
|
}
|
251
251
|
return {
|
252
252
|
c() {
|
253
|
-
e = k("li"), t = k("a"), i = V(n), r = R(),
|
253
|
+
e = k("li"), t = k("a"), i = V(n), r = R(), m(t, "class", l = "SubDropDown " + /*index*/
|
254
254
|
(a[51] == /*activeIndex*/
|
255
255
|
a[6] && /*activeSubIndex*/
|
256
256
|
(a[7] == /*subindex*/
|
@@ -272,7 +272,7 @@ function me(a) {
|
|
272
272
|
(a[7] == /*subindex*/
|
273
273
|
a[57] || /*prevSubIndex*/
|
274
274
|
a[8] == /*subindex*/
|
275
|
-
a[57]) ? "active" : "")) &&
|
275
|
+
a[57]) ? "active" : "")) && m(t, "class", l);
|
276
276
|
},
|
277
277
|
d(g) {
|
278
278
|
g && S(e), s = !1, d();
|
@@ -283,7 +283,7 @@ function ge(a, e) {
|
|
283
283
|
let t, n, i = (
|
284
284
|
/*index*/
|
285
285
|
e[51] == /*subGroup*/
|
286
|
-
e[52].index &&
|
286
|
+
e[52].index && fe(e)
|
287
287
|
);
|
288
288
|
return {
|
289
289
|
key: a,
|
@@ -297,7 +297,7 @@ function ge(a, e) {
|
|
297
297
|
p(l, r) {
|
298
298
|
e = l, /*index*/
|
299
299
|
e[51] == /*subGroup*/
|
300
|
-
e[52].index ? i ? i.p(e, r) : (i =
|
300
|
+
e[52].index ? i ? i.p(e, r) : (i = fe(e), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
|
301
301
|
},
|
302
302
|
d(l) {
|
303
303
|
l && (S(t), S(n)), i && i.d(l);
|
@@ -305,7 +305,7 @@ function ge(a, e) {
|
|
305
305
|
};
|
306
306
|
}
|
307
307
|
function he(a) {
|
308
|
-
let e = [], t = /* @__PURE__ */ new Map(), n, i =
|
308
|
+
let e = [], t = /* @__PURE__ */ new Map(), n, i = W(
|
309
309
|
/*subGroup*/
|
310
310
|
a[52].items
|
311
311
|
);
|
@@ -330,7 +330,7 @@ function he(a) {
|
|
330
330
|
},
|
331
331
|
p(r, s) {
|
332
332
|
s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
|
333
|
-
10176 && (i =
|
333
|
+
10176 && (i = W(
|
334
334
|
/*subGroup*/
|
335
335
|
r[52].items
|
336
336
|
), e = pe(e, s, l, 1, r, i, t, n.parentNode, we, ge, n, ce));
|
@@ -344,10 +344,10 @@ function he(a) {
|
|
344
344
|
}
|
345
345
|
function Ce(a, e) {
|
346
346
|
let t, n, i, l, r, s, d, F, w, g, v;
|
347
|
-
function M(
|
347
|
+
function M(f, _) {
|
348
348
|
return (
|
349
349
|
/*location*/
|
350
|
-
|
350
|
+
f[0] === "headerMain" ? Xe : Ke
|
351
351
|
);
|
352
352
|
}
|
353
353
|
let I = M(e), h = I(e), c = (
|
@@ -357,7 +357,7 @@ function Ce(a, e) {
|
|
357
357
|
e[51]
|
358
358
|
] == !0 && de(e)
|
359
359
|
);
|
360
|
-
function b(...
|
360
|
+
function b(...f) {
|
361
361
|
return (
|
362
362
|
/*click_handler_2*/
|
363
363
|
e[33](
|
@@ -365,7 +365,7 @@ function Ce(a, e) {
|
|
365
365
|
e[49],
|
366
366
|
/*index*/
|
367
367
|
e[51],
|
368
|
-
...
|
368
|
+
...f
|
369
369
|
)
|
370
370
|
);
|
371
371
|
}
|
@@ -373,14 +373,14 @@ function Ce(a, e) {
|
|
373
373
|
key: a,
|
374
374
|
first: null,
|
375
375
|
c() {
|
376
|
-
var
|
377
|
-
t = k("li"), n = k("div"), i = k("img"), s = R(), h.c(), d = R(), c && c.c(), F = R(),
|
376
|
+
var f, _;
|
377
|
+
t = k("li"), n = k("div"), i = k("img"), s = R(), h.c(), d = R(), c && c.c(), F = R(), m(i, "class", l = "CategoryIconImg " + /*categoriesicon*/
|
378
378
|
(e[3] === "true" ? "" : "DisplayNone")), ne(i.src, r = /*handleSrc*/
|
379
379
|
e[16](
|
380
380
|
/*category*/
|
381
381
|
e[49]
|
382
|
-
)) ||
|
383
|
-
(((
|
382
|
+
)) || m(i, "src", r), m(n, "class", "CategoryIcon"), m(t, "class", w = "CarouselItem " + /*activeindex*/
|
383
|
+
(((f = e[1]) == null ? void 0 : f.toString().indexOf("$")) > -1 ? (
|
384
384
|
/*activeindex*/
|
385
385
|
((_ = e[1]) == null ? void 0 : _.split("$").pop()) == /*category*/
|
386
386
|
e[49].id.split("$").pop() ? "active" : ""
|
@@ -389,21 +389,21 @@ function Ce(a, e) {
|
|
389
389
|
e[1] == /*category*/
|
390
390
|
e[49].id ? "active" : ""
|
391
391
|
)) + " " + /*location*/
|
392
|
-
(e[0] == "headerMain" ? "" : "SecondaryMenu")),
|
392
|
+
(e[0] == "headerMain" ? "" : "SecondaryMenu")), m(t, "part", "CarouselItem"), this.first = t;
|
393
393
|
},
|
394
|
-
m(
|
395
|
-
D(
|
394
|
+
m(f, _) {
|
395
|
+
D(f, 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
396
|
},
|
397
|
-
p(
|
397
|
+
p(f, _) {
|
398
398
|
var T, x;
|
399
|
-
e =
|
399
|
+
e = f, _[0] & /*categoriesicon*/
|
400
400
|
8 && l !== (l = "CategoryIconImg " + /*categoriesicon*/
|
401
|
-
(e[3] === "true" ? "" : "DisplayNone")) &&
|
401
|
+
(e[3] === "true" ? "" : "DisplayNone")) && m(i, "class", l), _[0] & /*sliderdata*/
|
402
402
|
512 && !ne(i.src, r = /*handleSrc*/
|
403
403
|
e[16](
|
404
404
|
/*category*/
|
405
405
|
e[49]
|
406
|
-
)) &&
|
406
|
+
)) && m(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
407
|
e[11][
|
408
408
|
/*index*/
|
409
409
|
e[51]
|
@@ -418,10 +418,10 @@ function Ce(a, e) {
|
|
418
418
|
e[1] == /*category*/
|
419
419
|
e[49].id ? "active" : ""
|
420
420
|
)) + " " + /*location*/
|
421
|
-
(e[0] == "headerMain" ? "" : "SecondaryMenu")) &&
|
421
|
+
(e[0] == "headerMain" ? "" : "SecondaryMenu")) && m(t, "class", w);
|
422
422
|
},
|
423
|
-
d(
|
424
|
-
|
423
|
+
d(f) {
|
424
|
+
f && S(t), h.d(), c && c.d(), g = !1, v();
|
425
425
|
}
|
426
426
|
};
|
427
427
|
}
|
@@ -432,13 +432,13 @@ function Je(a) {
|
|
432
432
|
);
|
433
433
|
return {
|
434
434
|
c() {
|
435
|
-
e = k("div"), t = k("div"), n = k("div"), n.innerHTML = '<svg fill="none" stroke="var(--
|
436
|
-
a[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`),
|
437
|
-
a[0] === "headerMain" ? "max-width: auto" : void 0),
|
435
|
+
e = k("div"), t = k("div"), n = k("div"), n.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>', 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>', m(n, "class", "CarouselLeftArrow"), m(s, "class", "TouchOnly"), m(r, "id", "CarouselNav"), m(r, "class", "CarouselItems"), m(l, "class", "CarouselNavWrap"), m(w, "class", "CarouselRightArrow"), m(t, "class", g = `CarouselContainer CarouselContainerMobile ${/*location*/
|
436
|
+
a[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), m(t, "style", v = /*location*/
|
437
|
+
a[0] === "headerMain" ? "max-width: auto" : void 0), m(e, "class", M = "CarouselWrapper " + /*location*/
|
438
438
|
(a[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
|
439
439
|
},
|
440
|
-
m(b,
|
441
|
-
D(b, e,
|
440
|
+
m(b, f) {
|
441
|
+
D(b, e, f), 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
442
|
P(
|
443
443
|
n,
|
444
444
|
"click",
|
@@ -453,15 +453,15 @@ function Je(a) {
|
|
453
453
|
)
|
454
454
|
], I = !0);
|
455
455
|
},
|
456
|
-
p(b,
|
456
|
+
p(b, f) {
|
457
457
|
/*sliderdata*/
|
458
|
-
b[9].length > 0 ? c ? c.p(b,
|
458
|
+
b[9].length > 0 ? c ? c.p(b, f) : (c = ue(b), c.c(), c.m(r, null)) : c && (c.d(1), c = null), f[0] & /*location*/
|
459
459
|
1 && g !== (g = `CarouselContainer CarouselContainerMobile ${/*location*/
|
460
|
-
b[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) &&
|
460
|
+
b[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && m(t, "class", g), f[0] & /*location*/
|
461
461
|
1 && v !== (v = /*location*/
|
462
|
-
b[0] === "headerMain" ? "max-width: auto" : void 0) &&
|
462
|
+
b[0] === "headerMain" ? "max-width: auto" : void 0) && m(t, "style", v), f[0] & /*location*/
|
463
463
|
1 && M !== (M = "CarouselWrapper " + /*location*/
|
464
|
-
(b[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) &&
|
464
|
+
(b[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && m(e, "class", M);
|
465
465
|
},
|
466
466
|
i: oe,
|
467
467
|
o: oe,
|
@@ -471,7 +471,7 @@ function Je(a) {
|
|
471
471
|
};
|
472
472
|
}
|
473
473
|
function Qe(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:
|
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: f = "false" } = e, { lobbyiconimage: _ = "" } = e, { mygamesiconimage: T = "" } = e;
|
475
475
|
Ue({ withLocale: "en", translations: {} });
|
476
476
|
const x = () => {
|
477
477
|
fetch(v).then((u) => u.json()).then((u) => {
|
@@ -485,10 +485,10 @@ function Qe(a, e, t) {
|
|
485
485
|
Object.keys(ie).forEach((o) => {
|
486
486
|
ae(o, ie[o]);
|
487
487
|
});
|
488
|
-
let j,
|
488
|
+
let j, z, O, K, A, B = [], q = [], U = [], L, X = (o, u, C, E, H) => {
|
489
489
|
var N;
|
490
490
|
if (!(o.subGroups && E === null)) {
|
491
|
-
if (Y(), t(6,
|
491
|
+
if (Y(), t(6, z = u), t(6, z), H != "secondary") {
|
492
492
|
window.postMessage(
|
493
493
|
{
|
494
494
|
type: r == "CategoryChange" ? "CategoryChange" : "NavigateTo",
|
@@ -521,7 +521,7 @@ function Qe(a, e, t) {
|
|
521
521
|
};
|
522
522
|
const te = (o) => {
|
523
523
|
o.data.type == "SliderData" && o.data.identity == g && (t(9, B = o.data.data), t(11, U = new Array(B.length).fill(!1)), b == "true" && be()), o.data.type == "GoToHomepage" && B.forEach((u, C) => {
|
524
|
-
u.path.endsWith("/casino") && (t(6,
|
524
|
+
u.path.endsWith("/casino") && (t(6, z = C), t(6, z));
|
525
525
|
});
|
526
526
|
}, ye = () => {
|
527
527
|
Ye(h);
|
@@ -605,7 +605,7 @@ function Qe(a, e, t) {
|
|
605
605
|
});
|
606
606
|
}
|
607
607
|
return a.$$set = (o) => {
|
608
|
-
"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,
|
608
|
+
"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, f = o.categoriesicon), "lobbyiconimage" in o && t(29, _ = o.lobbyiconimage), "mygamesiconimage" in o && t(30, T = o.mygamesiconimage);
|
609
609
|
}, a.$$.update = () => {
|
610
610
|
a.$$.dirty[0] & /*activeindex*/
|
611
611
|
2, a.$$.dirty[0] & /*translationurl*/
|
@@ -617,10 +617,10 @@ function Qe(a, e, t) {
|
|
617
617
|
d,
|
618
618
|
c,
|
619
619
|
b,
|
620
|
-
|
620
|
+
f,
|
621
621
|
A,
|
622
622
|
j,
|
623
|
-
|
623
|
+
z,
|
624
624
|
O,
|
625
625
|
K,
|
626
626
|
B,
|
@@ -656,7 +656,7 @@ function Qe(a, e, t) {
|
|
656
656
|
}
|
657
657
|
class Ve extends je {
|
658
658
|
constructor(e) {
|
659
|
-
super(),
|
659
|
+
super(), We(
|
660
660
|
this,
|
661
661
|
e,
|
662
662
|
Qe,
|
@@ -795,7 +795,7 @@ class Ve extends je {
|
|
795
795
|
this.$$set({ mygamesiconimage: e }), y();
|
796
796
|
}
|
797
797
|
}
|
798
|
-
|
798
|
+
ze(Ve, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
799
799
|
export {
|
800
800
|
Ve as default
|
801
801
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCategoriesSlider-CsaSAiaA.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"}};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,R;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?((R=e[1])==null?void 0:R.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 R=()=>{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,N=[],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,N=a.data.data),r(11,j=new Array(N.length).fill(!1)),w=="true"&&oe()),a.data.type=="GoToHomepage"&&N.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=()=>{N.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&&R(),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,N,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;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCategoriesSlider-
|
1
|
+
"use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCategoriesSlider-CsaSAiaA.cjs")).then(e=>e.CasinoCategoriesSlider_ce).then(({default:e})=>{!customElements.get("casino-categories-slider")&&customElements.define("casino-categories-slider",e.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoCategoriesSlider-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoCategoriesSlider-DYj25Fjl.js").then((e) => e.C).then(({ default: e }) => {
|
14
14
|
!customElements.get("casino-categories-slider") && customElements.define("casino-categories-slider", e.element);
|
15
15
|
});
|
16
16
|
}
|