@everymatrix/casino-page 1.67.0 → 1.67.3
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/CasinoCalendar-BixQuo--.cjs +19 -0
- package/components/{CasinoCalendar-Vkb-R-ZX.js → CasinoCalendar-CwDG1IiM.js} +1070 -1105
- package/components/{CasinoCalendar-CL5PkzEO.js → CasinoCalendar-UJ9XIytQ.js} +1032 -1067
- package/components/{CasinoCalendarDailyDetails-Cf_NBcOX.js → CasinoCalendarDailyDetails-BGINuZx6.js} +91 -91
- package/components/{CasinoCalendarDailyDetails-nHgnBEAa.js → CasinoCalendarDailyDetails-B_qFDDp1.js} +91 -91
- package/components/CasinoCalendarDailyDetails-DddwsZ2D.cjs +1 -0
- package/components/{CasinoCalendarDailyItem-DcM708OO.cjs → CasinoCalendarDailyItem-BNJrGwwo.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-CQSuNZtl.js → CasinoCalendarDailyItem-Bz9SS-rw.js} +36 -36
- package/components/{CasinoCalendarDailyItem-CUbfxemR.js → CasinoCalendarDailyItem-C461Kkjq.js} +36 -36
- package/components/{CasinoCollectionsProviders-C2HckLP0.js → CasinoCollectionsProviders-B8OXqxk_.js} +68 -68
- package/components/{CasinoCollectionsProviders-pEu__c8l.js → CasinoCollectionsProviders-BbcmPyTY.js} +44 -44
- package/components/{CasinoCollectionsProviders-58EKJRFt.cjs → CasinoCollectionsProviders-CuvGHzcK.cjs} +1 -1
- package/components/{CasinoFavoritesSection-D4bJ1mqA.js → CasinoFavoritesSection-BqVr_9LL.js} +19 -19
- package/components/{CasinoFavoritesSection-B4Riuhq6.cjs → CasinoFavoritesSection-NlIMIzX2.cjs} +1 -1
- package/components/{CasinoFavoritesSection-sTJLKu2v.js → CasinoFavoritesSection-RVmYBXjP.js} +19 -19
- package/components/{CasinoFilter-DdOgJOoJ.js → CasinoFilter--Fl7ZT1Q.js} +60 -60
- package/components/{CasinoFilter-Bmbi-NIl.cjs → CasinoFilter-6w1z62IQ.cjs} +1 -1
- package/components/{CasinoFilter-DcGO-ipH.js → CasinoFilter-Cn47bubC.js} +59 -59
- package/components/{CasinoGameThumbnail-DXQLodRv.js → CasinoGameThumbnail-BK8tr3Kl.js} +169 -169
- package/components/{CasinoGameThumbnail-CBE1pMbX.js → CasinoGameThumbnail-DJ9DbReA.js} +167 -167
- package/components/{CasinoGameThumbnail-COIE0fub.cjs → CasinoGameThumbnail-Ttvis_Sq.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-DQe2HZo4.js → CasinoGamesCategorySection-CMhJeBko.js} +91 -91
- package/components/{CasinoGamesCategorySection-lKH0wiKc.js → CasinoGamesCategorySection-C_br7m2G.js} +95 -95
- package/components/CasinoGamesCategorySection-De8Wn4nQ.cjs +1 -0
- package/components/{CasinoJackpotBanner-emlytO5A.js → CasinoJackpotBanner-Ks0pdPot.js} +122 -122
- package/components/{CasinoJackpotBanner-BuVB-M1i.cjs → CasinoJackpotBanner-jSFBFBSC.cjs} +1 -1
- package/components/{CasinoJackpotBanner-V6O3AoyH.js → CasinoJackpotBanner-zkD8v3L0.js} +115 -115
- package/components/{CasinoLastPlayedSection-CFgjuqen.js → CasinoLastPlayedSection-Cw7ZoUAT.js} +41 -41
- package/components/{CasinoLastPlayedSection-CukjflZs.js → CasinoLastPlayedSection-DVvy6Dsu.js} +41 -41
- package/components/{CasinoLastPlayedSection-C92AAwdL.cjs → CasinoLastPlayedSection-DskxxH9B.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-BRfj19QK.js → CasinoMostPlayedSection-4EghfZp9.js} +46 -46
- package/components/{CasinoMostPlayedSection-6T8wGaqn.cjs → CasinoMostPlayedSection-8rUG-Z2W.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CA-S7VDg.js → CasinoMostPlayedSection-BNIxY_d6.js} +46 -46
- package/components/{CasinoMyGames-CMVuwNRB.js → CasinoMyGames-Bhf_YeWb.js} +43 -43
- package/components/{CasinoMyGames-D65qUKnx.cjs → CasinoMyGames-Ck7NCzJn.cjs} +1 -1
- package/components/{CasinoMyGames-OvM3ePg0.js → CasinoMyGames-DKwIa29a.js} +42 -42
- package/components/{CasinoPage-xV4iM79L.js → CasinoPage-BBDhfM6R.js} +80 -80
- package/components/{CasinoPage-yeAtNiep.cjs → CasinoPage-CdydL5GX.cjs} +1 -1
- package/components/{CasinoPage-B1H6b20-.js → CasinoPage-DsENeq-w.js} +78 -78
- package/components/{CasinoRandomGame-z09wbNE_.js → CasinoRandomGame-1EbXipSC.js} +59 -59
- package/components/{CasinoRandomGame-Bu3vRXKq.cjs → CasinoRandomGame-BnQdoKSk.cjs} +2 -2
- package/components/{CasinoRandomGame-SWOJ-rEc.js → CasinoRandomGame-DzFbBVAV.js} +110 -110
- package/components/{CasinoSearch-Cz_jtCYm.cjs → CasinoSearch-Bam0H7yT.cjs} +1 -1
- package/components/{CasinoSearch-BpVrkotF.js → CasinoSearch-D7WPRcbI.js} +110 -110
- package/components/{CasinoSearch-ep1SOaOy.js → CasinoSearch-G5EwVoW-.js} +107 -107
- package/components/{CasinoSort-DKVyUE8P.cjs → CasinoSort-C6du8Rsp.cjs} +1 -1
- package/components/{CasinoSort-DfH2maWJ.js → CasinoSort-DUwcihyy.js} +37 -37
- package/components/{CasinoSort-yjF37qpC.js → CasinoSort-SAEv8PFX.js} +37 -37
- package/components/{CasinoWinners-C9tJh4_L.cjs → CasinoWinners-4v-0yjeB.cjs} +1 -1
- package/components/{CasinoWinners-BOXhaOL0.js → CasinoWinners-BZpiE2UG.js} +92 -92
- package/components/{CasinoWinners-DB-fwvGm.js → CasinoWinners-CBZ72WrC.js} +91 -91
- package/components/{GeneralAnimationLoading-Gvq6az05.cjs → GeneralAnimationLoading-Bbdw1Fyf.cjs} +1 -1
- package/components/{GeneralAnimationLoading-B2emFg0o.js → GeneralAnimationLoading-DRtQYzy7.js} +14 -14
- package/components/{GeneralAnimationLoading-KrmvxEvx.js → GeneralAnimationLoading-DfHfkkTw.js} +14 -14
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +1 -1
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-C0BJMsSD.js → casino-play-random-game-Bc2XLGRl.js} +1 -1
- package/stencil/{casino-play-random-game-BLl4u8GF.js → casino-play-random-game-d1PoE_Vf.js} +1 -1
- package/stencil/{casino-play-random-game-Dkk0BTsb.cjs → casino-play-random-game-wi94nFPy.cjs} +1 -1
- package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-ChRvzjAp.js} +186 -186
- package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-DKsTmN3Z.js} +175 -175
- package/stencil/index-97d17652-qWThG1U9.cjs +1 -0
- package/stencil/index-ab3202d6-BwBGn0Oj.cjs +1 -0
- package/stencil/index-ab3202d6-CiI9jxo9.js +575 -0
- package/stencil/{index-ab3202d6-CZKlrnZf.js → index-ab3202d6-Cowbr6qN.js} +199 -199
- package/stencil/index-b2193545-BnWJJd0G.cjs +1 -0
- package/stencil/index-b2193545-BuoEOMLX.js +519 -0
- package/stencil/index-b2193545-CRh5CQsf.js +503 -0
- package/stencil/{ui-image-YGEFo8L0.js → ui-image-CvhuPuie.js} +1 -1
- package/stencil/{ui-image-DLXwOzO2.cjs → ui-image-VZVQAOIv.cjs} +1 -1
- package/stencil/{ui-image-w38Eao2h.js → ui-image-XpIoyuB-.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-B43lELFk.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-CRQDt62Z.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-DVcK_myk.js} +1 -1
- package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CyHaM9Na.cjs} +1 -1
- package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-Df0q0jE8.js} +2 -2
- package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-EP2dwjfi.js} +2 -2
- package/stencil/{ui-skeleton-D5ACyLBl.js → ui-skeleton-0lXK0oUK.js} +2 -2
- package/stencil/{ui-skeleton-1cb75d00-C9ZtbYpX.cjs → ui-skeleton-1cb75d00-BTXzPb_s.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BWUmrSx4.js → ui-skeleton-1cb75d00-D_0YRJ9-.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-D5AevndQ.js → ui-skeleton-1cb75d00-sEhY49mv.js} +1 -1
- package/stencil/{ui-skeleton-CUmVjhrn.cjs → ui-skeleton-BjIJI3qb.cjs} +1 -1
- package/stencil/{ui-skeleton-CDhNSEbX.js → ui-skeleton-Bu0t0Ulb.js} +2 -2
- package/components/CasinoCalendar-B7HDzCMK.cjs +0 -19
- package/components/CasinoCalendarDailyDetails-Bc0r0Ym3.cjs +0 -1
- package/components/CasinoGamesCategorySection-DBJfavdL.cjs +0 -1
- package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
- package/stencil/index-ab3202d6-ClDKsCJv.js +0 -575
- package/stencil/index-ab3202d6-DFbwTHas.cjs +0 -1
- package/stencil/index-b2193545-60VR4wV3.js +0 -519
- package/stencil/index-b2193545-LYFajSbf.js +0 -503
- package/stencil/index-b2193545-nJb2J-aJ.cjs +0 -1
package/components/{CasinoFavoritesSection-sTJLKu2v.js → CasinoFavoritesSection-RVmYBXjP.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as E, O as M, S as R, i as j,
|
|
1
|
+
import { $ as E, O as M, S as R, i as j, f as l, c as z, s as G, b as H, e as O, y as T, d as A, G as q, j as D, o as U, H as s, n as V, p as B, q as J, r as K } from "./CasinoCalendar-CwDG1IiM.js";
|
|
2
2
|
if (typeof window != "undefined") {
|
|
3
3
|
let n = function(e) {
|
|
4
4
|
return function(...t) {
|
|
@@ -11,7 +11,7 @@ if (typeof window != "undefined") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-
|
|
14
|
+
customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-C_br7m2G.js").then(({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -27,7 +27,7 @@ function L(n) {
|
|
|
27
27
|
let e;
|
|
28
28
|
return {
|
|
29
29
|
c() {
|
|
30
|
-
e =
|
|
30
|
+
e = O("casino-games-category-section"), s(
|
|
31
31
|
e,
|
|
32
32
|
"session",
|
|
33
33
|
/*session*/
|
|
@@ -120,7 +120,7 @@ function L(n) {
|
|
|
120
120
|
);
|
|
121
121
|
},
|
|
122
122
|
m(t, a) {
|
|
123
|
-
|
|
123
|
+
A(t, e, a);
|
|
124
124
|
},
|
|
125
125
|
p(t, a) {
|
|
126
126
|
a & /*session*/
|
|
@@ -234,7 +234,7 @@ function L(n) {
|
|
|
234
234
|
);
|
|
235
235
|
},
|
|
236
236
|
d(t) {
|
|
237
|
-
t &&
|
|
237
|
+
t && D(e);
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
}
|
|
@@ -245,28 +245,28 @@ function Q(n) {
|
|
|
245
245
|
);
|
|
246
246
|
return {
|
|
247
247
|
c() {
|
|
248
|
-
e =
|
|
248
|
+
e = O("div"), t && t.c(), T(e, "class", "CasinoFavoritesSectionContainer");
|
|
249
249
|
},
|
|
250
250
|
m(a, g) {
|
|
251
|
-
|
|
251
|
+
A(a, e, g), t && t.m(e, null), n[19](e);
|
|
252
252
|
},
|
|
253
253
|
p(a, [g]) {
|
|
254
254
|
/*session*/
|
|
255
255
|
a[4] ? t ? t.p(a, g) : (t = L(a), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
|
|
256
256
|
},
|
|
257
|
-
i:
|
|
258
|
-
o:
|
|
257
|
+
i: q,
|
|
258
|
+
o: q,
|
|
259
259
|
d(a) {
|
|
260
|
-
a &&
|
|
260
|
+
a && D(e), t && t.d(), n[19](null);
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
function W(n, e, t) {
|
|
265
265
|
let { endpoint: a = "" } = e, { datasource: g = "" } = e, { currency: u = "" } = e, { lang: f = "" } = e, { session: h = "" } = e, { userid: d = "" } = e, { clientstyling: r = "" } = e, { clientstylingurl: o = "" } = e, { livecasino: y = "false" } = e, { integratedgameframemobile: b = "false" } = e, { integratedgameframedesktop: v = "false" } = e, { showgamename: w = "" } = e, { gamepagemodalurl: _ = "false" } = e, { visiblegames: k = "" } = e, { favorites: C = "" } = e, { casinomygames: S = "false" } = e, { fetchviaevent: F = "true" } = e, { mbsource: c } = e, m;
|
|
266
|
-
N({ withLocale: "en", translations: {} }),
|
|
266
|
+
N({ withLocale: "en", translations: {} }), U(() => () => {
|
|
267
267
|
});
|
|
268
|
-
function
|
|
269
|
-
|
|
268
|
+
function I(i) {
|
|
269
|
+
V[i ? "unshift" : "push"](() => {
|
|
270
270
|
m = i, t(18, m);
|
|
271
271
|
});
|
|
272
272
|
}
|
|
@@ -274,9 +274,9 @@ function W(n, e, t) {
|
|
|
274
274
|
"endpoint" in i && t(0, a = i.endpoint), "datasource" in i && t(1, g = i.datasource), "currency" in i && t(2, u = i.currency), "lang" in i && t(3, f = i.lang), "session" in i && t(4, h = i.session), "userid" in i && t(5, d = i.userid), "clientstyling" in i && t(6, r = i.clientstyling), "clientstylingurl" in i && t(7, o = i.clientstylingurl), "livecasino" in i && t(8, y = i.livecasino), "integratedgameframemobile" in i && t(9, b = i.integratedgameframemobile), "integratedgameframedesktop" in i && t(10, v = i.integratedgameframedesktop), "showgamename" in i && t(11, w = i.showgamename), "gamepagemodalurl" in i && t(12, _ = i.gamepagemodalurl), "visiblegames" in i && t(13, k = i.visiblegames), "favorites" in i && t(14, C = i.favorites), "casinomygames" in i && t(15, S = i.casinomygames), "fetchviaevent" in i && t(16, F = i.fetchviaevent), "mbsource" in i && t(17, c = i.mbsource);
|
|
275
275
|
}, n.$$.update = () => {
|
|
276
276
|
n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
277
|
-
262208 && r && m &&
|
|
278
|
-
262272 && o && m &&
|
|
279
|
-
393216 && m &&
|
|
277
|
+
262208 && r && m && B(m, r), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
278
|
+
262272 && o && m && J(m, o), n.$$.dirty & /*customStylingContainer, mbsource*/
|
|
279
|
+
393216 && m && K(m, `${c}.Style`);
|
|
280
280
|
}, [
|
|
281
281
|
a,
|
|
282
282
|
g,
|
|
@@ -297,7 +297,7 @@ function W(n, e, t) {
|
|
|
297
297
|
F,
|
|
298
298
|
c,
|
|
299
299
|
m,
|
|
300
|
-
|
|
300
|
+
I
|
|
301
301
|
];
|
|
302
302
|
}
|
|
303
303
|
class X extends R {
|
|
@@ -307,7 +307,7 @@ class X extends R {
|
|
|
307
307
|
e,
|
|
308
308
|
W,
|
|
309
309
|
Q,
|
|
310
|
-
|
|
310
|
+
G,
|
|
311
311
|
{
|
|
312
312
|
endpoint: 0,
|
|
313
313
|
datasource: 1,
|
|
@@ -440,7 +440,7 @@ class X extends R {
|
|
|
440
440
|
this.$$set({ mbsource: e }), l();
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
z(X, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
|
444
444
|
export {
|
|
445
445
|
X as default
|
|
446
446
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as le, O as ge, a as pe, S as me, i as he,
|
|
1
|
+
import { $ as le, O as ge, a as pe, S as me, i as he, f as I, c as Fe, s as be, b as ye, e as g, d as D, G as re, j, k as ve, o as we, P as _e, n as ke, p as Ce, q as xe, r as Se, v as ie, K as ee, w as O, x as E, y as o, z as s, A as te, E as z, F as Ie, M as fe, Q as ae, J as Le, I as ne } from "./CasinoCalendar-UJ9XIytQ.js";
|
|
2
2
|
function Pe({ withLocale: r, translations: e }) {
|
|
3
3
|
le.subscribe((t) => {
|
|
4
4
|
t == null && (ge.set(e), le.set(r));
|
|
@@ -118,7 +118,7 @@ const se = {
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
function Ae(r) {
|
|
121
|
-
|
|
121
|
+
ye(r, "svelte-1rlsu2u", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:17}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
|
122
122
|
}
|
|
123
123
|
function ce(r, e, t) {
|
|
124
124
|
const i = r.slice();
|
|
@@ -134,39 +134,39 @@ function Oe(r) {
|
|
|
134
134
|
), x, C, F, p, f, L, T, V, q, _, N, Q, A, W = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
r[11]("clear") + ""
|
|
137
|
-
),
|
|
137
|
+
), G, J, K, H, R, X;
|
|
138
138
|
function Y(n, m) {
|
|
139
139
|
return (
|
|
140
140
|
/*fullSelection*/
|
|
141
141
|
n[7] ? Te : Be
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
|
-
let
|
|
144
|
+
let U = Y(r), S = U(r), M = ie(
|
|
145
145
|
/*vendorArray*/
|
|
146
146
|
r[5]
|
|
147
147
|
), l = [];
|
|
148
|
-
for (let n = 0; n <
|
|
149
|
-
l[n] = de(ce(r,
|
|
148
|
+
for (let n = 0; n < M.length; n += 1)
|
|
149
|
+
l[n] = de(ce(r, M, n));
|
|
150
150
|
return {
|
|
151
151
|
c() {
|
|
152
152
|
e = g("div"), t = g("div"), i = g("div"), a = ee("svg"), c = ee("path"), h = O(), v = g("div"), w = g("span"), u = E(b), k = O(), y = g("div"), B = g("span"), x = E(P), C = O(), S.c(), F = O(), p = g("span"), f = ee("svg"), L = ee("path"), q = O(), _ = g("div"), N = g("ul");
|
|
153
153
|
for (let n = 0; n < l.length; n += 1)
|
|
154
154
|
l[n].c();
|
|
155
|
-
Q = O(), A = g("button"),
|
|
155
|
+
Q = O(), A = g("button"), G = E(W), o(c, "id", "noun_filter_736223"), o(c, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), o(c, "transform", "translate(-5 -6.2)"), o(c, "fill", "#fff"), o(a, "xmlns", "http://www.w3.org/2000/svg"), o(a, "width", "16"), o(a, "height", "16"), o(a, "viewBox", "0 0 16 16"), o(w, "class", "FilterName"), o(y, "class", "FilterValueContainer"), o(v, "class", "FilterTextContainer"), o(i, "class", "FilterMainArea"), o(L, "id", "arrow"), o(L, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), o(L, "transform", "translate(-274.511 -441.088)"), o(L, "fill", "#d1d1d1"), o(f, "xmlns", "http://www.w3.org/2000/svg"), o(f, "width", "14"), o(f, "height", "6.835"), o(f, "viewBox", "0 0 14 6.835"), o(p, "class", T = "TriangleInactive " + /*isFilterActive*/
|
|
156
156
|
(r[4] ? "TriangleActive" : "")), o(t, "class", V = "FilterSelector " + /*isFilterActive*/
|
|
157
157
|
(r[4] ? "FilterSelectorOpen" : "")), o(N, "class", "FilterDropdown"), o(A, "class", "ClearFilters"), A.disabled = J = /*fullSelection*/
|
|
158
158
|
r[7] && /*selectedVendorArray*/
|
|
159
159
|
r[6].length != /*vendorArray*/
|
|
160
|
-
r[5].length, o(_, "class",
|
|
160
|
+
r[5].length, o(_, "class", K = "FilterDropdownContainer " + /*isFilterActive*/
|
|
161
161
|
(r[4] ? "FilterOpen" : "")), o(e, "class", H = "FilterContainer " + /*addfilterselector*/
|
|
162
162
|
(r[0] == "true" && /*addsortingselector*/
|
|
163
163
|
r[1] == "true" ? "FilerContainerSplit" : ""));
|
|
164
164
|
},
|
|
165
165
|
m(n, m) {
|
|
166
|
-
|
|
166
|
+
D(n, e, m), s(e, t), s(t, i), s(i, a), s(a, c), s(i, h), s(i, v), s(v, w), s(w, u), s(v, k), s(v, y), s(y, B), s(B, x), s(y, C), S.m(y, null), s(t, F), s(t, p), s(p, f), s(f, L), s(e, q), s(e, _), s(_, N);
|
|
167
167
|
for (let d = 0; d < l.length; d += 1)
|
|
168
168
|
l[d] && l[d].m(N, null);
|
|
169
|
-
s(_, Q), s(_, A), s(A,
|
|
169
|
+
s(_, Q), s(_, A), s(A, G), R || (X = [
|
|
170
170
|
te(
|
|
171
171
|
t,
|
|
172
172
|
"click",
|
|
@@ -179,47 +179,47 @@ function Oe(r) {
|
|
|
179
179
|
/*click_handler_2*/
|
|
180
180
|
r[27]
|
|
181
181
|
)
|
|
182
|
-
],
|
|
182
|
+
], R = !0);
|
|
183
183
|
},
|
|
184
184
|
p(n, m) {
|
|
185
185
|
if (m[0] & /*$_*/
|
|
186
186
|
2048 && b !== (b = /*$_*/
|
|
187
|
-
n[11]("filterby") + "") &&
|
|
187
|
+
n[11]("filterby") + "") && z(u, b), m[0] & /*$_*/
|
|
188
188
|
2048 && P !== (P = /*$_*/
|
|
189
|
-
n[11]("providers") + "") &&
|
|
189
|
+
n[11]("providers") + "") && z(x, P), U === (U = Y(n)) && S ? S.p(n, m) : (S.d(1), S = U(n), S && (S.c(), S.m(y, null))), m[0] & /*isFilterActive*/
|
|
190
190
|
16 && T !== (T = "TriangleInactive " + /*isFilterActive*/
|
|
191
191
|
(n[4] ? "TriangleActive" : "")) && o(p, "class", T), m[0] & /*isFilterActive*/
|
|
192
192
|
16 && V !== (V = "FilterSelector " + /*isFilterActive*/
|
|
193
193
|
(n[4] ? "FilterSelectorOpen" : "")) && o(t, "class", V), m[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
194
194
|
8228) {
|
|
195
|
-
|
|
195
|
+
M = ie(
|
|
196
196
|
/*vendorArray*/
|
|
197
197
|
n[5]
|
|
198
198
|
);
|
|
199
199
|
let d;
|
|
200
|
-
for (d = 0; d <
|
|
201
|
-
const
|
|
202
|
-
l[d] ? l[d].p(
|
|
200
|
+
for (d = 0; d < M.length; d += 1) {
|
|
201
|
+
const Z = ce(n, M, d);
|
|
202
|
+
l[d] ? l[d].p(Z, m) : (l[d] = de(Z), l[d].c(), l[d].m(N, null));
|
|
203
203
|
}
|
|
204
204
|
for (; d < l.length; d += 1)
|
|
205
205
|
l[d].d(1);
|
|
206
|
-
l.length =
|
|
206
|
+
l.length = M.length;
|
|
207
207
|
}
|
|
208
208
|
m[0] & /*$_*/
|
|
209
209
|
2048 && W !== (W = /*$_*/
|
|
210
|
-
n[11]("clear") + "") &&
|
|
210
|
+
n[11]("clear") + "") && z(G, W), m[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
|
211
211
|
224 && J !== (J = /*fullSelection*/
|
|
212
212
|
n[7] && /*selectedVendorArray*/
|
|
213
213
|
n[6].length != /*vendorArray*/
|
|
214
214
|
n[5].length) && (A.disabled = J), m[0] & /*isFilterActive*/
|
|
215
|
-
16 &&
|
|
216
|
-
(n[4] ? "FilterOpen" : "")) && o(_, "class",
|
|
215
|
+
16 && K !== (K = "FilterDropdownContainer " + /*isFilterActive*/
|
|
216
|
+
(n[4] ? "FilterOpen" : "")) && o(_, "class", K), m[0] & /*addfilterselector, addsortingselector*/
|
|
217
217
|
3 && H !== (H = "FilterContainer " + /*addfilterselector*/
|
|
218
218
|
(n[0] == "true" && /*addsortingselector*/
|
|
219
219
|
n[1] == "true" ? "FilerContainerSplit" : "")) && o(e, "class", H);
|
|
220
220
|
},
|
|
221
221
|
d(n) {
|
|
222
|
-
n && j(e), S.d(),
|
|
222
|
+
n && j(e), S.d(), Ie(l, n), R = !1, fe(X);
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -233,12 +233,12 @@ function Ee(r) {
|
|
|
233
233
|
e = g("p"), i = E(t), o(e, "class", "SearchLoading");
|
|
234
234
|
},
|
|
235
235
|
m(a, c) {
|
|
236
|
-
|
|
236
|
+
D(a, e, c), s(e, i);
|
|
237
237
|
},
|
|
238
238
|
p(a, c) {
|
|
239
239
|
c[0] & /*$_*/
|
|
240
240
|
2048 && t !== (t = /*$_*/
|
|
241
|
-
a[11]("500") + "") &&
|
|
241
|
+
a[11]("500") + "") && z(i, t);
|
|
242
242
|
},
|
|
243
243
|
d(a) {
|
|
244
244
|
a && j(e);
|
|
@@ -255,11 +255,11 @@ function Be(r) {
|
|
|
255
255
|
), o(e, "class", "FilterCounter");
|
|
256
256
|
},
|
|
257
257
|
m(i, a) {
|
|
258
|
-
|
|
258
|
+
D(i, e, a), s(e, t);
|
|
259
259
|
},
|
|
260
260
|
p(i, a) {
|
|
261
261
|
a[0] & /*selectionNumber*/
|
|
262
|
-
256 &&
|
|
262
|
+
256 && z(
|
|
263
263
|
t,
|
|
264
264
|
/*selectionNumber*/
|
|
265
265
|
i[8]
|
|
@@ -280,12 +280,12 @@ function Te(r) {
|
|
|
280
280
|
e = g("span"), i = E(t), o(e, "class", "FilterCounter");
|
|
281
281
|
},
|
|
282
282
|
m(a, c) {
|
|
283
|
-
|
|
283
|
+
D(a, e, c), s(e, i);
|
|
284
284
|
},
|
|
285
285
|
p(a, c) {
|
|
286
286
|
c[0] & /*$_*/
|
|
287
287
|
2048 && t !== (t = /*$_*/
|
|
288
|
-
a[11]("all") + "") &&
|
|
288
|
+
a[11]("all") + "") && z(i, t);
|
|
289
289
|
},
|
|
290
290
|
d(a) {
|
|
291
291
|
a && j(e);
|
|
@@ -300,7 +300,7 @@ function Ne(r) {
|
|
|
300
300
|
r[37].logo) || o(e, "src", t), o(e, "alt", "vendor logo");
|
|
301
301
|
},
|
|
302
302
|
m(i, a) {
|
|
303
|
-
|
|
303
|
+
D(i, e, a);
|
|
304
304
|
},
|
|
305
305
|
p(i, a) {
|
|
306
306
|
a[0] & /*vendorArray*/
|
|
@@ -312,7 +312,7 @@ function Ne(r) {
|
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Me(r) {
|
|
316
316
|
let e, t, i = (
|
|
317
317
|
/*vendor*/
|
|
318
318
|
r[37].name + ""
|
|
@@ -325,14 +325,14 @@ function De(r) {
|
|
|
325
325
|
e = g("div"), t = g("span"), a = E(i), c = O(), h = g("span"), v = E("("), b = E(w), u = E(")"), o(t, "class", "VendorName"), o(e, "class", "FilterItemLabel");
|
|
326
326
|
},
|
|
327
327
|
m(k, y) {
|
|
328
|
-
|
|
328
|
+
D(k, e, y), s(e, t), s(t, a), s(e, c), s(e, h), s(h, v), s(h, b), s(h, u);
|
|
329
329
|
},
|
|
330
330
|
p(k, y) {
|
|
331
331
|
y[0] & /*vendorArray*/
|
|
332
332
|
32 && i !== (i = /*vendor*/
|
|
333
|
-
k[37].name + "") &&
|
|
333
|
+
k[37].name + "") && z(a, i), y[0] & /*vendorArray*/
|
|
334
334
|
32 && w !== (w = /*vendor*/
|
|
335
|
-
k[37].games.total + "") &&
|
|
335
|
+
k[37].games.total + "") && z(b, w);
|
|
336
336
|
},
|
|
337
337
|
d(k) {
|
|
338
338
|
k && j(e);
|
|
@@ -364,7 +364,7 @@ function de(r) {
|
|
|
364
364
|
/*filterbylogo*/
|
|
365
365
|
p[2] === "false"
|
|
366
366
|
)
|
|
367
|
-
return
|
|
367
|
+
return Me;
|
|
368
368
|
if (
|
|
369
369
|
/*filterbylogo*/
|
|
370
370
|
p[2] === "true"
|
|
@@ -380,7 +380,7 @@ function de(r) {
|
|
|
380
380
|
r[37].name;
|
|
381
381
|
},
|
|
382
382
|
m(p, f) {
|
|
383
|
-
|
|
383
|
+
D(p, e, f), s(e, t), s(t, i), i.checked = /*vendor*/
|
|
384
384
|
r[37].isFilterSelected, s(t, c), s(t, h), s(t, v), F && F.m(t, null), s(e, w), k || (y = [
|
|
385
385
|
te(i, "change", B),
|
|
386
386
|
te(i, "click", P)
|
|
@@ -402,7 +402,7 @@ function de(r) {
|
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ze(r) {
|
|
406
406
|
let e;
|
|
407
407
|
function t(c, h) {
|
|
408
408
|
if (
|
|
@@ -420,7 +420,7 @@ function Me(r) {
|
|
|
420
420
|
e = g("div"), a && a.c();
|
|
421
421
|
},
|
|
422
422
|
m(c, h) {
|
|
423
|
-
|
|
423
|
+
D(c, e, h), a && a.m(e, null), r[28](e);
|
|
424
424
|
},
|
|
425
425
|
p(c, h) {
|
|
426
426
|
i === (i = t(c)) && a ? a.p(c, h) : (a && a.d(1), a = i && i(c), a && (a.c(), a.m(e, null)));
|
|
@@ -432,9 +432,9 @@ function Me(r) {
|
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function De(r, e, t) {
|
|
436
436
|
let i;
|
|
437
|
-
|
|
437
|
+
ve(r, Le, (l) => t(11, i = l));
|
|
438
438
|
let { endpoint: a = "" } = e, { datasource: c = "" } = e, { lang: h = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid: u = "" } = e, { addfilterselector: k = "false" } = e, { addsortingselector: y = "false" } = e, { filterbylogo: B = "false" } = e, { mbsource: P } = e, { usesinglevendorfilter: x = "false" } = e, C = !1, F = window.navigator.userAgent, p = [], f = [], L = {}, T = !1, V = 0, q = !0, _, N = !1;
|
|
439
439
|
Pe({ withLocale: "en", translations: {} });
|
|
440
440
|
const Q = () => {
|
|
@@ -454,17 +454,17 @@ function je(r, e, t) {
|
|
|
454
454
|
}, W = (l) => (t(9, q = !0), new Promise((n, m) => {
|
|
455
455
|
fetch(l).then((d) => d.json()).then((d) => {
|
|
456
456
|
d = d.items, n(d.items), t(6, f = []);
|
|
457
|
-
let
|
|
457
|
+
let Z = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
458
458
|
const ue = x === "true" ? "*" : u;
|
|
459
459
|
d.forEach(($) => {
|
|
460
|
-
|
|
460
|
+
Z || (Z = { currentCategoryId: [] }), Z[ue]?.indexOf($.id) >= 0 ? ($.isFilterSelected = !0, f.push($)) : $.isFilterSelected = !1;
|
|
461
461
|
}), t(5, p = d), J();
|
|
462
462
|
}).catch((d) => {
|
|
463
463
|
console.error(d), t(10, N = !0), m(d);
|
|
464
464
|
}).finally(() => {
|
|
465
465
|
t(9, q = !1);
|
|
466
466
|
});
|
|
467
|
-
})),
|
|
467
|
+
})), G = (l) => {
|
|
468
468
|
let n = localStorage.getItem("vendorFiltersByCategory");
|
|
469
469
|
l.isFilterSelected = !l.isFilterSelected, !f.length || f.filter((d) => d.name === l.name).length == 0 ? f.push(l) : t(6, f = f.filter((d) => d.name !== l.name));
|
|
470
470
|
const m = x === "true" ? "*" : u;
|
|
@@ -473,28 +473,28 @@ function je(r, e, t) {
|
|
|
473
473
|
})) : (n = JSON.parse(n), n[m] = f.map((d) => d.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(n))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), J();
|
|
474
474
|
}, J = () => {
|
|
475
475
|
t(7, T = f.length === p.length || f.length == 0), t(8, V = f.length);
|
|
476
|
-
},
|
|
476
|
+
}, K = () => {
|
|
477
477
|
if (p.length && x === "true")
|
|
478
478
|
return;
|
|
479
479
|
const l = new URL(`${a}/v1/casino/vendors`);
|
|
480
|
-
t(4, C = !1), l.searchParams.append("fields", "id,name,logo,subVendors,games"), l.searchParams.append("language", h), l.searchParams.append("datasource", c), l.searchParams.append("platform",
|
|
480
|
+
t(4, C = !1), l.searchParams.append("fields", "id,name,logo,subVendors,games"), l.searchParams.append("language", h), l.searchParams.append("datasource", c), l.searchParams.append("platform", _e(F)), x === "true" || ((u.match(/\$/g) || []).length > 1 ? (l.searchParams.append("filter", `games(subGroups=${u})`), l.searchParams.append("subVendors", `games(subGroups=${u})`)) : l.searchParams.append("filter", `games(groups=${u})`)), W(l);
|
|
481
481
|
}, H = () => {
|
|
482
482
|
t(6, f = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(L = {
|
|
483
483
|
[x === "true" ? "*" : u]: f.map((l) => l.id)
|
|
484
484
|
})), p.forEach((l) => l.isFilterSelected = !1), t(5, p), window.postMessage({ type: "ApplyFilters" }, window.location.href), t(7, T = !0), t(4, C = !1);
|
|
485
|
-
},
|
|
485
|
+
}, R = (l) => {
|
|
486
486
|
l.data.type == "SortingOpened" && t(4, C = !1);
|
|
487
487
|
};
|
|
488
|
-
|
|
489
|
-
window.removeEventListener("message",
|
|
488
|
+
we(() => (window.addEventListener("message", R, !1), () => {
|
|
489
|
+
window.removeEventListener("message", R);
|
|
490
490
|
}));
|
|
491
491
|
const X = () => A();
|
|
492
492
|
function Y(l, n) {
|
|
493
493
|
l[n].isFilterSelected = this.checked, t(5, p);
|
|
494
494
|
}
|
|
495
|
-
const
|
|
496
|
-
function
|
|
497
|
-
|
|
495
|
+
const U = (l) => G(l), S = () => H();
|
|
496
|
+
function M(l) {
|
|
497
|
+
ke[l ? "unshift" : "push"](() => {
|
|
498
498
|
_ = l, t(3, _);
|
|
499
499
|
});
|
|
500
500
|
}
|
|
@@ -502,7 +502,7 @@ function je(r, e, t) {
|
|
|
502
502
|
"endpoint" in l && t(15, a = l.endpoint), "datasource" in l && t(16, c = l.datasource), "lang" in l && t(17, h = l.lang), "translationurl" in l && t(18, v = l.translationurl), "clientstyling" in l && t(19, w = l.clientstyling), "clientstylingurl" in l && t(20, b = l.clientstylingurl), "categoryid" in l && t(21, u = l.categoryid), "addfilterselector" in l && t(0, k = l.addfilterselector), "addsortingselector" in l && t(1, y = l.addsortingselector), "filterbylogo" in l && t(2, B = l.filterbylogo), "mbsource" in l && t(22, P = l.mbsource), "usesinglevendorfilter" in l && t(23, x = l.usesinglevendorfilter);
|
|
503
503
|
}, r.$$.update = () => {
|
|
504
504
|
r.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
|
505
|
-
2195460 && a && c && u && B &&
|
|
505
|
+
2195460 && a && c && u && B && K(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
506
506
|
524296 && w && _ && Ce(_, w), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
507
507
|
1048584 && b && _ && xe(_, b), r.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
508
508
|
4194312 && _ && Se(_, `${P}.Style`), r.$$.dirty[0] & /*translationurl*/
|
|
@@ -521,7 +521,7 @@ function je(r, e, t) {
|
|
|
521
521
|
N,
|
|
522
522
|
i,
|
|
523
523
|
A,
|
|
524
|
-
|
|
524
|
+
G,
|
|
525
525
|
H,
|
|
526
526
|
a,
|
|
527
527
|
c,
|
|
@@ -534,19 +534,19 @@ function je(r, e, t) {
|
|
|
534
534
|
x,
|
|
535
535
|
X,
|
|
536
536
|
Y,
|
|
537
|
-
|
|
537
|
+
U,
|
|
538
538
|
S,
|
|
539
|
-
|
|
539
|
+
M
|
|
540
540
|
];
|
|
541
541
|
}
|
|
542
|
-
class
|
|
542
|
+
class je extends me {
|
|
543
543
|
constructor(e) {
|
|
544
544
|
super(), he(
|
|
545
545
|
this,
|
|
546
546
|
e,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
De,
|
|
548
|
+
ze,
|
|
549
|
+
be,
|
|
550
550
|
{
|
|
551
551
|
endpoint: 15,
|
|
552
552
|
datasource: 16,
|
|
@@ -638,7 +638,7 @@ class ze extends me {
|
|
|
638
638
|
this.$$set({ usesinglevendorfilter: e }), I();
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
|
|
641
|
+
Fe(je, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {}, usesinglevendorfilter: {} }, [], [], !0);
|
|
642
642
|
export {
|
|
643
|
-
|
|
643
|
+
je as default
|
|
644
644
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B7HDzCMK.cjs");function $({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function ee(i){e.append_styles(i,"svelte-1rlsu2u",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:17}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function K(i,t,l){const a=i.slice();return a[37]=t[l],a[38]=t,a[39]=l,a}function te(i){let t,l,a,n,o,g,b,y,h=i[11]("filterby")+"",p,_,F,L,S=i[11]("providers")+"",x,w,m,u,d,C,P,E,M,v,A,J,I,T=i[11]("clear")+"",D,B,j,N,z,q;function H(s,f){return s[7]?ie:re}let V=H(i),k=V(i),O=e.ensure_array_like(i[5]),r=[];for(let s=0;s<O.length;s+=1)r[s]=Q(K(i,O,s));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("path"),g=e.space(),b=e.element("div"),y=e.element("span"),p=e.text(h),_=e.space(),F=e.element("div"),L=e.element("span"),x=e.text(S),w=e.space(),k.c(),m=e.space(),u=e.element("span"),d=e.svg_element("svg"),C=e.svg_element("path"),M=e.space(),v=e.element("div"),A=e.element("ul");for(let s=0;s<r.length;s+=1)r[s].c();J=e.space(),I=e.element("button"),D=e.text(T),e.attr(o,"id","noun_filter_736223"),e.attr(o,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(o,"transform","translate(-5 -6.2)"),e.attr(o,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(C,"id","arrow"),e.attr(C,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(C,"transform","translate(-274.511 -441.088)"),e.attr(C,"fill","#d1d1d1"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"width","14"),e.attr(d,"height","6.835"),e.attr(d,"viewBox","0 0 14 6.835"),e.attr(u,"class",P="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",E="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(A,"class","FilterDropdown"),e.attr(I,"class","ClearFilters"),I.disabled=B=i[7]&&i[6].length!=i[5].length,e.attr(v,"class",j="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",N="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(s,f){e.insert(s,t,f),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,o),e.append(a,g),e.append(a,b),e.append(b,y),e.append(y,p),e.append(b,_),e.append(b,F),e.append(F,L),e.append(L,x),e.append(F,w),k.m(F,null),e.append(l,m),e.append(l,u),e.append(u,d),e.append(d,C),e.append(t,M),e.append(t,v),e.append(v,A);for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(A,null);e.append(v,J),e.append(v,I),e.append(I,D),z||(q=[e.listen(l,"click",i[24]),e.listen(I,"click",i[27])],z=!0)},p(s,f){if(f[0]&2048&&h!==(h=s[11]("filterby")+"")&&e.set_data(p,h),f[0]&2048&&S!==(S=s[11]("providers")+"")&&e.set_data(x,S),V===(V=H(s))&&k?k.p(s,f):(k.d(1),k=V(s),k&&(k.c(),k.m(F,null))),f[0]&16&&P!==(P="TriangleInactive "+(s[4]?"TriangleActive":""))&&e.attr(u,"class",P),f[0]&16&&E!==(E="FilterSelector "+(s[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",E),f[0]&8228){O=e.ensure_array_like(s[5]);let c;for(c=0;c<O.length;c+=1){const W=K(s,O,c);r[c]?r[c].p(W,f):(r[c]=Q(W),r[c].c(),r[c].m(A,null))}for(;c<r.length;c+=1)r[c].d(1);r.length=O.length}f[0]&2048&&T!==(T=s[11]("clear")+"")&&e.set_data(D,T),f[0]&224&&B!==(B=s[7]&&s[6].length!=s[5].length)&&(I.disabled=B),f[0]&16&&j!==(j="FilterDropdownContainer "+(s[4]?"FilterOpen":""))&&e.attr(v,"class",j),f[0]&3&&N!==(N="FilterContainer "+(s[0]=="true"&&s[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",N)},d(s){s&&e.detach(t),k.d(),e.destroy_each(r,s),z=!1,e.run_all(q)}}}function le(i){let t,l=i[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,o){e.insert(n,t,o),e.append(t,a)},p(n,o){o[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function re(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function ie(i){let t,l=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,o){e.insert(n,t,o),e.append(t,a)},p(n,o){o[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ae(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[37].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[37].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ne(i){let t,l,a=i[37].name+"",n,o,g,b,y=i[37].games.total+"",h,p;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),o=e.space(),g=e.element("span"),b=e.text("("),h=e.text(y),p=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(_,F){e.insert(_,t,F),e.append(t,l),e.append(l,n),e.append(t,o),e.append(t,g),e.append(g,b),e.append(g,h),e.append(g,p)},p(_,F){F[0]&32&&a!==(a=_[37].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=_[37].games.total+"")&&e.set_data(h,y)},d(_){_&&e.detach(t)}}}function Q(i){let t,l,a,n,o,g,b,y,h,p,_,F;function L(){i[25].call(a,i[38],i[39])}function S(){return i[26](i[37])}function x(u,d){if(u[2]==="false")return ne;if(u[2]==="true")return ae}let w=x(i),m=w&&w(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),o=e.space(),g=e.element("span"),b=e.space(),m&&m.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[37].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=p=i[37].name},m(u,d){e.insert(u,t,d),e.append(t,l),e.append(l,a),a.checked=i[37].isFilterSelected,e.append(l,o),e.append(l,g),e.append(l,b),m&&m.m(l,null),e.append(t,y),_||(F=[e.listen(a,"change",L),e.listen(a,"click",S)],_=!0)},p(u,d){i=u,d[0]&32&&n!==(n=i[37].name)&&(a.__value=n,e.set_input_value(a,a.__value)),d[0]&32&&(a.checked=i[37].isFilterSelected),w===(w=x(i))&&m?m.p(i,d):(m&&m.d(1),m=w&&w(i),m&&(m.c(),m.m(l,null))),d[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),d[0]&32&&p!==(p=i[37].name)&&(t.value=p)},d(u){u&&e.detach(t),m&&m.d(),_=!1,e.run_all(F)}}}function se(i){let t;function l(o,g){if(o[10])return le;if(!o[9])return te}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(o,g){e.insert(o,t,g),n&&n.m(t,null),i[28](t)},p(o,g){a===(a=l(o))&&n?n.p(o,g):(n&&n.d(1),n=a&&a(o),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n&&n.d(),i[28](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:o=""}=t,{lang:g=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:p=""}=t,{addfilterselector:_="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:L="false"}=t,{mbsource:S}=t,{usesinglevendorfilter:x="false"}=t,w=!1,m=window.navigator.userAgent,u=[],d=[],C={},P=!1,E=0,M=!0,v,A=!1;$({withLocale:"en",translations:{}});const J=()=>{fetch(b).then(s=>s.json()).then(s=>{Object.keys(s).forEach(f=>{Z(f,s[f])})}).catch(s=>{console.log(s)})};Object.keys(G).forEach(r=>{Z(r,G[r])}),C[p]&&(C={[p]:[]});const I=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},T=r=>(l(9,M=!0),new Promise((s,f)=>{fetch(r).then(c=>c.json()).then(c=>{c=c.items,s(c.items),l(6,d=[]);let W=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));const Y=x==="true"?"*":p;c.forEach(R=>{var U;W||(W={currentCategoryId:[]}),((U=W[Y])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,d.push(R)):R.isFilterSelected=!1}),l(5,u=c),B()}).catch(c=>{console.error(c),l(10,A=!0),f(c)}).finally(()=>{l(9,M=!1)})})),D=r=>{let s=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!d.length||d.filter(c=>c.name===r.name).length==0?d.push(r):l(6,d=d.filter(c=>c.name!==r.name));const f=x==="true"?"*":p;s==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(C={[f]:d.map(c=>c.id)})):(s=JSON.parse(s),s[f]=d.map(c=>c.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(s))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),B()},B=()=>{l(7,P=d.length===u.length||d.length==0),l(8,E=d.length)},j=()=>{if(u.length&&x==="true")return;const r=new URL(`${n}/v1/casino/vendors`);l(4,w=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",g),r.searchParams.append("datasource",o),r.searchParams.append("platform",e.getDevice(m)),x==="true"||((p.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${p})`),r.searchParams.append("subVendors",`games(subGroups=${p})`)):r.searchParams.append("filter",`games(groups=${p})`)),T(r)},N=()=>{l(6,d=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(C={[x==="true"?"*":p]:d.map(r=>r.id)})),u.forEach(r=>r.isFilterSelected=!1),l(5,u),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,P=!0),l(4,w=!1)},z=r=>{r.data.type=="SortingOpened"&&l(4,w=!1)};e.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));const q=()=>I();function H(r,s){r[s].isFilterSelected=this.checked,l(5,u)}const V=r=>D(r),k=()=>N();function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{v=r,l(3,v)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,o=r.datasource),"lang"in r&&l(17,g=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,p=r.categoryid),"addfilterselector"in r&&l(0,_=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,L=r.filterbylogo),"mbsource"in r&&l(22,S=r.mbsource),"usesinglevendorfilter"in r&&l(23,x=r.usesinglevendorfilter)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&o&&p&&L&&j(),i.$$.dirty[0]&524296&&y&&v&&e.setClientStyling(v,y),i.$$.dirty[0]&1048584&&h&&v&&e.setClientStylingURL(v,h),i.$$.dirty[0]&4194312&&v&&e.setStreamStyling(v,`${S}.Style`),i.$$.dirty[0]&262144&&b&&J()},[_,F,L,v,w,u,d,P,E,M,A,a,I,D,N,n,o,g,b,y,h,p,S,x,q,H,V,k,O]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,se,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2,mbsource:22,usesinglevendorfilter:23},ee,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get usesinglevendorfilter(){return this.$$.ctx[23]}set usesinglevendorfilter(t){this.$$set({usesinglevendorfilter:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{},usesinglevendorfilter:{}},[],[],!0);exports.default=X;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BixQuo--.cjs");function $({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function ee(i){e.append_styles(i,"svelte-1rlsu2u",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:17}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function K(i,t,l){const a=i.slice();return a[37]=t[l],a[38]=t,a[39]=l,a}function te(i){let t,l,a,n,o,g,b,y,h=i[11]("filterby")+"",p,_,F,L,S=i[11]("providers")+"",x,w,m,u,d,C,P,E,M,v,A,J,I,T=i[11]("clear")+"",D,B,j,N,z,q;function H(s,f){return s[7]?ie:re}let V=H(i),k=V(i),O=e.ensure_array_like(i[5]),r=[];for(let s=0;s<O.length;s+=1)r[s]=Q(K(i,O,s));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("path"),g=e.space(),b=e.element("div"),y=e.element("span"),p=e.text(h),_=e.space(),F=e.element("div"),L=e.element("span"),x=e.text(S),w=e.space(),k.c(),m=e.space(),u=e.element("span"),d=e.svg_element("svg"),C=e.svg_element("path"),M=e.space(),v=e.element("div"),A=e.element("ul");for(let s=0;s<r.length;s+=1)r[s].c();J=e.space(),I=e.element("button"),D=e.text(T),e.attr(o,"id","noun_filter_736223"),e.attr(o,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(o,"transform","translate(-5 -6.2)"),e.attr(o,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(C,"id","arrow"),e.attr(C,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(C,"transform","translate(-274.511 -441.088)"),e.attr(C,"fill","#d1d1d1"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"width","14"),e.attr(d,"height","6.835"),e.attr(d,"viewBox","0 0 14 6.835"),e.attr(u,"class",P="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",E="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(A,"class","FilterDropdown"),e.attr(I,"class","ClearFilters"),I.disabled=B=i[7]&&i[6].length!=i[5].length,e.attr(v,"class",j="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",N="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(s,f){e.insert(s,t,f),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,o),e.append(a,g),e.append(a,b),e.append(b,y),e.append(y,p),e.append(b,_),e.append(b,F),e.append(F,L),e.append(L,x),e.append(F,w),k.m(F,null),e.append(l,m),e.append(l,u),e.append(u,d),e.append(d,C),e.append(t,M),e.append(t,v),e.append(v,A);for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(A,null);e.append(v,J),e.append(v,I),e.append(I,D),z||(q=[e.listen(l,"click",i[24]),e.listen(I,"click",i[27])],z=!0)},p(s,f){if(f[0]&2048&&h!==(h=s[11]("filterby")+"")&&e.set_data(p,h),f[0]&2048&&S!==(S=s[11]("providers")+"")&&e.set_data(x,S),V===(V=H(s))&&k?k.p(s,f):(k.d(1),k=V(s),k&&(k.c(),k.m(F,null))),f[0]&16&&P!==(P="TriangleInactive "+(s[4]?"TriangleActive":""))&&e.attr(u,"class",P),f[0]&16&&E!==(E="FilterSelector "+(s[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",E),f[0]&8228){O=e.ensure_array_like(s[5]);let c;for(c=0;c<O.length;c+=1){const W=K(s,O,c);r[c]?r[c].p(W,f):(r[c]=Q(W),r[c].c(),r[c].m(A,null))}for(;c<r.length;c+=1)r[c].d(1);r.length=O.length}f[0]&2048&&T!==(T=s[11]("clear")+"")&&e.set_data(D,T),f[0]&224&&B!==(B=s[7]&&s[6].length!=s[5].length)&&(I.disabled=B),f[0]&16&&j!==(j="FilterDropdownContainer "+(s[4]?"FilterOpen":""))&&e.attr(v,"class",j),f[0]&3&&N!==(N="FilterContainer "+(s[0]=="true"&&s[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",N)},d(s){s&&e.detach(t),k.d(),e.destroy_each(r,s),z=!1,e.run_all(q)}}}function le(i){let t,l=i[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,o){e.insert(n,t,o),e.append(t,a)},p(n,o){o[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function re(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function ie(i){let t,l=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,o){e.insert(n,t,o),e.append(t,a)},p(n,o){o[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ae(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[37].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[37].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ne(i){let t,l,a=i[37].name+"",n,o,g,b,y=i[37].games.total+"",h,p;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),o=e.space(),g=e.element("span"),b=e.text("("),h=e.text(y),p=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(_,F){e.insert(_,t,F),e.append(t,l),e.append(l,n),e.append(t,o),e.append(t,g),e.append(g,b),e.append(g,h),e.append(g,p)},p(_,F){F[0]&32&&a!==(a=_[37].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=_[37].games.total+"")&&e.set_data(h,y)},d(_){_&&e.detach(t)}}}function Q(i){let t,l,a,n,o,g,b,y,h,p,_,F;function L(){i[25].call(a,i[38],i[39])}function S(){return i[26](i[37])}function x(u,d){if(u[2]==="false")return ne;if(u[2]==="true")return ae}let w=x(i),m=w&&w(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),o=e.space(),g=e.element("span"),b=e.space(),m&&m.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[37].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=p=i[37].name},m(u,d){e.insert(u,t,d),e.append(t,l),e.append(l,a),a.checked=i[37].isFilterSelected,e.append(l,o),e.append(l,g),e.append(l,b),m&&m.m(l,null),e.append(t,y),_||(F=[e.listen(a,"change",L),e.listen(a,"click",S)],_=!0)},p(u,d){i=u,d[0]&32&&n!==(n=i[37].name)&&(a.__value=n,e.set_input_value(a,a.__value)),d[0]&32&&(a.checked=i[37].isFilterSelected),w===(w=x(i))&&m?m.p(i,d):(m&&m.d(1),m=w&&w(i),m&&(m.c(),m.m(l,null))),d[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),d[0]&32&&p!==(p=i[37].name)&&(t.value=p)},d(u){u&&e.detach(t),m&&m.d(),_=!1,e.run_all(F)}}}function se(i){let t;function l(o,g){if(o[10])return le;if(!o[9])return te}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(o,g){e.insert(o,t,g),n&&n.m(t,null),i[28](t)},p(o,g){a===(a=l(o))&&n?n.p(o,g):(n&&n.d(1),n=a&&a(o),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n&&n.d(),i[28](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:o=""}=t,{lang:g=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:p=""}=t,{addfilterselector:_="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:L="false"}=t,{mbsource:S}=t,{usesinglevendorfilter:x="false"}=t,w=!1,m=window.navigator.userAgent,u=[],d=[],C={},P=!1,E=0,M=!0,v,A=!1;$({withLocale:"en",translations:{}});const J=()=>{fetch(b).then(s=>s.json()).then(s=>{Object.keys(s).forEach(f=>{Z(f,s[f])})}).catch(s=>{console.log(s)})};Object.keys(G).forEach(r=>{Z(r,G[r])}),C[p]&&(C={[p]:[]});const I=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},T=r=>(l(9,M=!0),new Promise((s,f)=>{fetch(r).then(c=>c.json()).then(c=>{c=c.items,s(c.items),l(6,d=[]);let W=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));const Y=x==="true"?"*":p;c.forEach(R=>{var U;W||(W={currentCategoryId:[]}),((U=W[Y])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,d.push(R)):R.isFilterSelected=!1}),l(5,u=c),B()}).catch(c=>{console.error(c),l(10,A=!0),f(c)}).finally(()=>{l(9,M=!1)})})),D=r=>{let s=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!d.length||d.filter(c=>c.name===r.name).length==0?d.push(r):l(6,d=d.filter(c=>c.name!==r.name));const f=x==="true"?"*":p;s==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(C={[f]:d.map(c=>c.id)})):(s=JSON.parse(s),s[f]=d.map(c=>c.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(s))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),B()},B=()=>{l(7,P=d.length===u.length||d.length==0),l(8,E=d.length)},j=()=>{if(u.length&&x==="true")return;const r=new URL(`${n}/v1/casino/vendors`);l(4,w=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",g),r.searchParams.append("datasource",o),r.searchParams.append("platform",e.getDevice(m)),x==="true"||((p.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${p})`),r.searchParams.append("subVendors",`games(subGroups=${p})`)):r.searchParams.append("filter",`games(groups=${p})`)),T(r)},N=()=>{l(6,d=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(C={[x==="true"?"*":p]:d.map(r=>r.id)})),u.forEach(r=>r.isFilterSelected=!1),l(5,u),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,P=!0),l(4,w=!1)},z=r=>{r.data.type=="SortingOpened"&&l(4,w=!1)};e.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));const q=()=>I();function H(r,s){r[s].isFilterSelected=this.checked,l(5,u)}const V=r=>D(r),k=()=>N();function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{v=r,l(3,v)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,o=r.datasource),"lang"in r&&l(17,g=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,p=r.categoryid),"addfilterselector"in r&&l(0,_=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,L=r.filterbylogo),"mbsource"in r&&l(22,S=r.mbsource),"usesinglevendorfilter"in r&&l(23,x=r.usesinglevendorfilter)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&o&&p&&L&&j(),i.$$.dirty[0]&524296&&y&&v&&e.setClientStyling(v,y),i.$$.dirty[0]&1048584&&h&&v&&e.setClientStylingURL(v,h),i.$$.dirty[0]&4194312&&v&&e.setStreamStyling(v,`${S}.Style`),i.$$.dirty[0]&262144&&b&&J()},[_,F,L,v,w,u,d,P,E,M,A,a,I,D,N,n,o,g,b,y,h,p,S,x,q,H,V,k,O]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,se,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2,mbsource:22,usesinglevendorfilter:23},ee,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get usesinglevendorfilter(){return this.$$.ctx[23]}set usesinglevendorfilter(t){this.$$set({usesinglevendorfilter:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{},usesinglevendorfilter:{}},[],[],!0);exports.default=X;
|