@everymatrix/casino-lobby 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/{CasinoCalendar-CCQut7OA.js → CasinoCalendar-0AyYaYr6.js} +366 -360
- package/components/CasinoCalendar-aMUXtMPt.cjs +9 -0
- package/components/{CasinoCalendarDailyDetails-AzSENZXw.js → CasinoCalendarDailyDetails-Djpw089y.js} +61 -61
- package/components/CasinoCalendarDailyDetails-DvaXsJ6J.cjs +1 -0
- package/components/CasinoCalendarDailyItem-BNFG5z35.js +220 -0
- package/components/CasinoCalendarDailyItem-CMMlKWuC.cjs +1 -0
- package/components/{CasinoCategoriesSlider-Dd30AvK0.js → CasinoCategoriesSlider-BnLGhDj2.js} +38 -38
- package/components/CasinoCategoriesSlider-MGSqtuSH.cjs +1 -0
- package/components/CasinoCollectionsProviders-7MJNy6vH.cjs +1 -0
- package/components/{CasinoCollectionsProviders-Cc1u_orw.js → CasinoCollectionsProviders-O5eYWKqu.js} +2 -2
- package/components/CasinoFavoritesSection-CSDBLW4w.cjs +1 -0
- package/components/{CasinoFavoritesSection-j7VNOnAg.js → CasinoFavoritesSection-CumUm71T.js} +18 -18
- package/components/{CasinoFilter-BpyfHAnH.js → CasinoFilter-Ba4pyyzC.js} +39 -39
- package/components/CasinoFilter-DPFQTDnp.cjs +1 -0
- package/components/CasinoGamePage-CAEcKO2C.cjs +18 -0
- package/components/{CasinoGamePage-BLWJ4xsU.js → CasinoGamePage-D-0bV9s0.js} +1337 -1329
- package/components/{CasinoGameThumbnail-EBuJE9IZ.js → CasinoGameThumbnail-Br4gzW2I.js} +82 -82
- package/components/CasinoGameThumbnail-q80EbGZc.cjs +38 -0
- package/components/CasinoGamesCategorySection-ChO8lRW6.cjs +1 -0
- package/components/{CasinoGamesCategorySection-DXn5u5SK.js → CasinoGamesCategorySection-IDIjeUsC.js} +534 -524
- package/components/{CasinoJackpotBanner-CJJFsnyb.js → CasinoJackpotBanner-D-0bynYa.js} +2 -2
- package/components/CasinoJackpotBanner-DBLcL6wU.cjs +1 -0
- package/components/{CasinoLastPlayedSection-bvzxolz1.js → CasinoLastPlayedSection-BHZA2U-l.js} +3 -3
- package/components/CasinoLastPlayedSection-Dn26Po-i.cjs +1 -0
- package/components/{CasinoLobby-BPSflitf.js → CasinoLobby-BSBqQiwz.js} +7 -7
- package/components/CasinoLobby-DQGjTjXn.cjs +1 -0
- package/components/CasinoModal-BYPHyNGp.cjs +1 -0
- package/components/{CasinoModal-lLGEeGcU.js → CasinoModal-CDlxjS83.js} +2 -2
- package/components/{CasinoMostPlayedSection-eQH77h-f.js → CasinoMostPlayedSection-B4cUve-8.js} +17 -17
- package/components/CasinoMostPlayedSection-DWj3eB25.cjs +1 -0
- package/components/{CasinoMyGames-BJX2ZAvW.js → CasinoMyGames-DG40cnqo.js} +44 -44
- package/components/CasinoMyGames-JPu4ITbh.cjs +1 -0
- package/components/CasinoPage-CUgnyFdX.cjs +1 -0
- package/components/{CasinoPage-Bq3eE915.js → CasinoPage-DZofqKdq.js} +189 -189
- package/components/{CasinoRandomGame-DiITGB_u.cjs → CasinoRandomGame-BopxEXk6.cjs} +2 -2
- package/components/{CasinoRandomGame-DGD52sa7.js → CasinoRandomGame-ClDKDIUi.js} +15 -15
- package/components/CasinoSearch-BHqi_Ojn.cjs +1 -0
- package/components/{CasinoSearch-DlG1jylC.js → CasinoSearch-nhPFLDr6.js} +90 -90
- package/components/{CasinoSlider-CyXzUPtq.js → CasinoSlider-DDJYl0_C.js} +56 -56
- package/components/CasinoSlider-DzlnKD97.cjs +1 -0
- package/components/{CasinoSort-D1UmVqPT.js → CasinoSort-COqebE70.js} +23 -23
- package/components/CasinoSort-DqAXg8IN.cjs +1 -0
- package/components/{CasinoWinners-DSCWZZgk.js → CasinoWinners-B-NBTMbI.js} +49 -49
- package/components/CasinoWinners-GJyWRA8u.cjs +1 -0
- package/components/{GeneralAnimationLoading-DE8HSm4C.js → GeneralAnimationLoading-C-B40oIV.js} +1 -1
- package/components/{GeneralAnimationLoading-DmhAiTlH.cjs → GeneralAnimationLoading-CtmRY9AI.cjs} +1 -1
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-c-goQ4iU.js → casino-play-random-game-B5g4-G4Z.js} +1 -1
- package/stencil/{casino-play-random-game-DJ_HpP4O.cjs → casino-play-random-game-CQe5iDJ8.cjs} +1 -1
- package/stencil/index-eac6b960-BaE9i06M.cjs +1 -0
- package/stencil/{index-7666b794-KI7j9CY0.js → index-eac6b960-DXIu1GM6.js} +112 -104
- package/components/CasinoCalendar-B3jjGeXh.cjs +0 -9
- package/components/CasinoCalendarDailyDetails-D1jKEWfR.cjs +0 -1
- package/components/CasinoCalendarDailyItem-DD924Zcr.js +0 -220
- package/components/CasinoCalendarDailyItem-zl4-e9DC.cjs +0 -1
- package/components/CasinoCategoriesSlider-DI2g7-y8.cjs +0 -1
- package/components/CasinoCollectionsProviders-CHDbSVYn.cjs +0 -1
- package/components/CasinoFavoritesSection-Co24_74o.cjs +0 -1
- package/components/CasinoFilter-DXA7jKT_.cjs +0 -1
- package/components/CasinoGamePage-CCbldgKZ.cjs +0 -18
- package/components/CasinoGameThumbnail-DNpT4OO7.cjs +0 -38
- package/components/CasinoGamesCategorySection-B2JOakf0.cjs +0 -1
- package/components/CasinoJackpotBanner-AjhcDuUc.cjs +0 -1
- package/components/CasinoLastPlayedSection-Cey1ENpO.cjs +0 -1
- package/components/CasinoLobby-B0BMaElu.cjs +0 -1
- package/components/CasinoModal-B71hMJhL.cjs +0 -1
- package/components/CasinoMostPlayedSection-B6vs4hfK.cjs +0 -1
- package/components/CasinoMyGames-DirVyeaV.cjs +0 -1
- package/components/CasinoPage--saBxGwI.cjs +0 -1
- package/components/CasinoSearch-3NrItprI.cjs +0 -1
- package/components/CasinoSlider-Cyun8L26.cjs +0 -1
- package/components/CasinoSort-ersVtC7e.cjs +0 -1
- package/components/CasinoWinners-CflzKW0N.cjs +0 -1
- package/stencil/index-7666b794-CHdM2q8W.cjs +0 -1
package/components/{CasinoFavoritesSection-j7VNOnAg.js → CasinoFavoritesSection-CumUm71T.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as E, a as
|
|
1
|
+
import { $ as E, a as I, S as O, i as U, f as l, c as j, s as V, b as z, e as T, u as B, d as R, C as L, j as q, M as n, m as G } from "./CasinoCalendar-0AyYaYr6.js";
|
|
2
2
|
if (typeof window != "undefined") {
|
|
3
3
|
let a = function(e) {
|
|
4
4
|
return function(...t) {
|
|
@@ -11,17 +11,17 @@ if (typeof window != "undefined") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-
|
|
14
|
+
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-IDIjeUsC.js").then(({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
function J({ withLocale: a, translations: e }) {
|
|
19
19
|
E.subscribe((t) => {
|
|
20
|
-
t == null && (
|
|
20
|
+
t == null && (I.set(e), E.set(a));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function K(a) {
|
|
24
|
-
z(a, "svelte-
|
|
24
|
+
z(a, "svelte-1rh2qpg", ".CasinoFavoritesSectionContainer{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
|
|
25
25
|
}
|
|
26
26
|
function M(a) {
|
|
27
27
|
let e;
|
|
@@ -223,7 +223,7 @@ function M(a) {
|
|
|
223
223
|
);
|
|
224
224
|
},
|
|
225
225
|
d(t) {
|
|
226
|
-
t &&
|
|
226
|
+
t && q(e);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -246,17 +246,17 @@ function N(a) {
|
|
|
246
246
|
i: L,
|
|
247
247
|
o: L,
|
|
248
248
|
d(s) {
|
|
249
|
-
s &&
|
|
249
|
+
s && q(e), t && t.d(), a[18](null);
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
function P(a, e, t) {
|
|
254
|
-
let { endpoint: s = "" } = e, { datasource: g = "" } = e, { currency: f = "" } = e, { lang: u = "" } = e, { session: h = "" } = e, { userid: d = "" } = e, { clientstyling: r = "" } = e, { clientstylingurl: c = "" } = e, { livecasino: y = "false" } = e, { integratedgameframemobile: v = "false" } = e, { integratedgameframedesktop: b = "false" } = e, { showgamename: w = "" } = e, { gamepagemodalurl: _ = "false" } = e, { visiblegames:
|
|
254
|
+
let { endpoint: s = "" } = e, { datasource: g = "" } = e, { currency: f = "" } = e, { lang: u = "" } = e, { session: h = "" } = e, { userid: d = "" } = e, { clientstyling: r = "" } = e, { clientstylingurl: c = "" } = e, { livecasino: y = "false" } = e, { integratedgameframemobile: v = "false" } = e, { integratedgameframedesktop: b = "false" } = e, { showgamename: w = "" } = e, { gamepagemodalurl: _ = "false" } = e, { visiblegames: C = "" } = e, { favorites: k = "" } = e, { casinomygames: F = "false" } = e, { fetchviaevent: S = "true" } = e, m;
|
|
255
255
|
J({ withLocale: "en", translations: {} });
|
|
256
|
-
const
|
|
256
|
+
const A = () => {
|
|
257
257
|
let i = document.createElement("style");
|
|
258
258
|
i.innerHTML = r, m.appendChild(i);
|
|
259
|
-
},
|
|
259
|
+
}, D = () => {
|
|
260
260
|
let i = document.createElement("style");
|
|
261
261
|
fetch(new URL(c)).then((o) => o.text()).then((o) => {
|
|
262
262
|
i.innerHTML = o, setTimeout(
|
|
@@ -267,17 +267,17 @@ function P(a, e, t) {
|
|
|
267
267
|
);
|
|
268
268
|
});
|
|
269
269
|
};
|
|
270
|
-
function
|
|
270
|
+
function H(i) {
|
|
271
271
|
G[i ? "unshift" : "push"](() => {
|
|
272
272
|
m = i, t(17, m);
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
return a.$$set = (i) => {
|
|
276
|
-
"endpoint" in i && t(0, s = i.endpoint), "datasource" in i && t(1, g = i.datasource), "currency" in i && t(2, f = i.currency), "lang" in i && t(3, u = 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, c = i.clientstylingurl), "livecasino" in i && t(8, y = i.livecasino), "integratedgameframemobile" in i && t(9, v = i.integratedgameframemobile), "integratedgameframedesktop" in i && t(10, b = i.integratedgameframedesktop), "showgamename" in i && t(11, w = i.showgamename), "gamepagemodalurl" in i && t(12, _ = i.gamepagemodalurl), "visiblegames" in i && t(13,
|
|
276
|
+
"endpoint" in i && t(0, s = i.endpoint), "datasource" in i && t(1, g = i.datasource), "currency" in i && t(2, f = i.currency), "lang" in i && t(3, u = 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, c = i.clientstylingurl), "livecasino" in i && t(8, y = i.livecasino), "integratedgameframemobile" in i && t(9, v = i.integratedgameframemobile), "integratedgameframedesktop" in i && t(10, b = i.integratedgameframedesktop), "showgamename" in i && t(11, w = i.showgamename), "gamepagemodalurl" in i && t(12, _ = i.gamepagemodalurl), "visiblegames" in i && t(13, C = i.visiblegames), "favorites" in i && t(14, k = i.favorites), "casinomygames" in i && t(15, F = i.casinomygames), "fetchviaevent" in i && t(16, S = i.fetchviaevent);
|
|
277
277
|
}, a.$$.update = () => {
|
|
278
278
|
a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
279
|
-
131136 && r && m &&
|
|
280
|
-
131200 && c && m &&
|
|
279
|
+
131136 && r && m && A(), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
280
|
+
131200 && c && m && D();
|
|
281
281
|
}, [
|
|
282
282
|
s,
|
|
283
283
|
g,
|
|
@@ -292,17 +292,17 @@ function P(a, e, t) {
|
|
|
292
292
|
b,
|
|
293
293
|
w,
|
|
294
294
|
_,
|
|
295
|
-
k,
|
|
296
295
|
C,
|
|
296
|
+
k,
|
|
297
297
|
F,
|
|
298
298
|
S,
|
|
299
299
|
m,
|
|
300
|
-
|
|
300
|
+
H
|
|
301
301
|
];
|
|
302
302
|
}
|
|
303
|
-
class Q extends
|
|
303
|
+
class Q extends O {
|
|
304
304
|
constructor(e) {
|
|
305
|
-
super(),
|
|
305
|
+
super(), U(
|
|
306
306
|
this,
|
|
307
307
|
e,
|
|
308
308
|
P,
|
|
@@ -433,7 +433,7 @@ class Q extends U {
|
|
|
433
433
|
this.$$set({ fetchviaevent: e }), l();
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
|
|
436
|
+
j(Q, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {} }, [], [], !0);
|
|
437
437
|
export {
|
|
438
438
|
Q as default
|
|
439
439
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as re, a as ge, I as ue, S as me, i as he, f as L, c as Fe, s as be, b as ye, e as u, d as z, C as ie, j as B, J as ve, o as we, L as _e, m as Ce, p as ae, E as ee, q as P, r as A, u as o, v as s, w as te, A as j, B as ke, R as
|
|
1
|
+
import { $ as re, a as ge, I as ue, S as me, i as he, f as L, c as Fe, s as be, b as ye, e as u, d as z, C as ie, j as B, J as ve, o as we, L as _e, m as Ce, p as ae, E as ee, q as P, r as A, u as o, v as s, w as te, A as j, B as ke, R as fe, U as ne, O as xe, D as oe } from "./CasinoCalendar-0AyYaYr6.js";
|
|
2
2
|
function Se({ withLocale: r, translations: e }) {
|
|
3
3
|
re.subscribe((t) => {
|
|
4
4
|
t == null && (ge.set(e), re.set(r));
|
|
@@ -112,7 +112,7 @@ const ce = {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
function Ie(r) {
|
|
115
|
-
ye(r, "svelte-
|
|
115
|
+
ye(r, "svelte-ub9f39", ':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:16}.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, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.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}.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, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));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%}}');
|
|
116
116
|
}
|
|
117
117
|
function de(r, e, t) {
|
|
118
118
|
const i = r.slice();
|
|
@@ -129,7 +129,7 @@ function Le(r) {
|
|
|
129
129
|
/*$_*/
|
|
130
130
|
r[11]("clear") + ""
|
|
131
131
|
), R, W, U, H, q, X;
|
|
132
|
-
function Y(n,
|
|
132
|
+
function Y(n, f) {
|
|
133
133
|
return (
|
|
134
134
|
/*fullSelection*/
|
|
135
135
|
n[7] ? Oe : Ae
|
|
@@ -140,7 +140,7 @@ function Le(r) {
|
|
|
140
140
|
r[5]
|
|
141
141
|
), l = [];
|
|
142
142
|
for (let n = 0; n < N.length; n += 1)
|
|
143
|
-
l[n] =
|
|
143
|
+
l[n] = pe(de(r, N, n));
|
|
144
144
|
return {
|
|
145
145
|
c() {
|
|
146
146
|
e = u("div"), t = u("div"), i = u("div"), a = ee("svg"), c = ee("path"), m = P(), v = u("div"), w = u("span"), g = A(b), _ = P(), y = u("div"), O = u("span"), E = A(k), C = P(), S.c(), d = P(), F = u("span"), h = ee("svg"), D = ee("path"), K = P(), T = u("div"), V = u("ul");
|
|
@@ -156,10 +156,10 @@ function Le(r) {
|
|
|
156
156
|
(r[0] == "true" && /*addsortingselector*/
|
|
157
157
|
r[1] == "true" ? "FilerContainerSplit" : ""));
|
|
158
158
|
},
|
|
159
|
-
m(n,
|
|
160
|
-
z(n, e,
|
|
161
|
-
for (let
|
|
162
|
-
l[
|
|
159
|
+
m(n, f) {
|
|
160
|
+
z(n, e, f), s(e, t), s(t, i), s(i, a), s(a, c), s(i, m), s(i, v), s(v, w), s(w, g), s(v, _), s(v, y), s(y, O), s(O, E), s(y, C), S.m(y, null), s(t, d), s(t, F), s(F, h), s(h, D), s(e, K), s(e, T), s(T, V);
|
|
161
|
+
for (let p = 0; p < l.length; p += 1)
|
|
162
|
+
l[p] && l[p].m(V, null);
|
|
163
163
|
s(T, Q), s(T, I), s(I, R), q || (X = [
|
|
164
164
|
te(
|
|
165
165
|
t,
|
|
@@ -175,45 +175,45 @@ function Le(r) {
|
|
|
175
175
|
)
|
|
176
176
|
], q = !0);
|
|
177
177
|
},
|
|
178
|
-
p(n,
|
|
179
|
-
if (
|
|
178
|
+
p(n, f) {
|
|
179
|
+
if (f[0] & /*$_*/
|
|
180
180
|
2048 && b !== (b = /*$_*/
|
|
181
|
-
n[11]("filterby") + "") && j(g, b),
|
|
181
|
+
n[11]("filterby") + "") && j(g, b), f[0] & /*$_*/
|
|
182
182
|
2048 && k !== (k = /*$_*/
|
|
183
|
-
n[11]("providers") + "") && j(E, k), Z === (Z = Y(n)) && S ? S.p(n,
|
|
183
|
+
n[11]("providers") + "") && j(E, k), Z === (Z = Y(n)) && S ? S.p(n, f) : (S.d(1), S = Z(n), S && (S.c(), S.m(y, null))), f[0] & /*isFilterActive*/
|
|
184
184
|
16 && M !== (M = "TriangleInactive " + /*isFilterActive*/
|
|
185
|
-
(n[4] ? "TriangleActive" : "")) && o(F, "class", M),
|
|
185
|
+
(n[4] ? "TriangleActive" : "")) && o(F, "class", M), f[0] & /*isFilterActive*/
|
|
186
186
|
16 && x !== (x = "FilterSelector " + /*isFilterActive*/
|
|
187
|
-
(n[4] ? "FilterSelectorOpen" : "")) && o(t, "class", x),
|
|
187
|
+
(n[4] ? "FilterSelectorOpen" : "")) && o(t, "class", x), f[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
188
188
|
8228) {
|
|
189
189
|
N = ae(
|
|
190
190
|
/*vendorArray*/
|
|
191
191
|
n[5]
|
|
192
192
|
);
|
|
193
|
-
let
|
|
194
|
-
for (
|
|
195
|
-
const G = de(n, N,
|
|
196
|
-
l[
|
|
193
|
+
let p;
|
|
194
|
+
for (p = 0; p < N.length; p += 1) {
|
|
195
|
+
const G = de(n, N, p);
|
|
196
|
+
l[p] ? l[p].p(G, f) : (l[p] = pe(G), l[p].c(), l[p].m(V, null));
|
|
197
197
|
}
|
|
198
|
-
for (;
|
|
199
|
-
l[
|
|
198
|
+
for (; p < l.length; p += 1)
|
|
199
|
+
l[p].d(1);
|
|
200
200
|
l.length = N.length;
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
f[0] & /*$_*/
|
|
203
203
|
2048 && J !== (J = /*$_*/
|
|
204
|
-
n[11]("clear") + "") && j(R, J),
|
|
204
|
+
n[11]("clear") + "") && j(R, J), f[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
|
205
205
|
224 && W !== (W = /*fullSelection*/
|
|
206
206
|
n[7] && /*selectedVendorArray*/
|
|
207
207
|
n[6].length != /*vendorArray*/
|
|
208
|
-
n[5].length) && (I.disabled = W),
|
|
208
|
+
n[5].length) && (I.disabled = W), f[0] & /*isFilterActive*/
|
|
209
209
|
16 && U !== (U = "FilterDropdownContainer " + /*isFilterActive*/
|
|
210
|
-
(n[4] ? "FilterOpen" : "")) && o(T, "class", U),
|
|
210
|
+
(n[4] ? "FilterOpen" : "")) && o(T, "class", U), f[0] & /*addfilterselector, addsortingselector*/
|
|
211
211
|
3 && H !== (H = "FilterContainer " + /*addfilterselector*/
|
|
212
212
|
(n[0] == "true" && /*addsortingselector*/
|
|
213
213
|
n[1] == "true" ? "FilerContainerSplit" : "")) && o(e, "class", H);
|
|
214
214
|
},
|
|
215
215
|
d(n) {
|
|
216
|
-
n && B(e), S.d(), ke(l, n), q = !1,
|
|
216
|
+
n && B(e), S.d(), ke(l, n), q = !1, fe(X);
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
}
|
|
@@ -333,7 +333,7 @@ function Te(r) {
|
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function pe(r) {
|
|
337
337
|
let e, t, i, a, c, m, v, w, b, g, _, y;
|
|
338
338
|
function O() {
|
|
339
339
|
r[23].call(
|
|
@@ -390,7 +390,7 @@ function fe(r) {
|
|
|
390
390
|
r[36].name) && (e.value = g);
|
|
391
391
|
},
|
|
392
392
|
d(F) {
|
|
393
|
-
F && B(e), d && d.d(), _ = !1,
|
|
393
|
+
F && B(e), d && d.d(), _ = !1, fe(y);
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
396
|
}
|
|
@@ -429,8 +429,8 @@ function Me(r, e, t) {
|
|
|
429
429
|
Se({ withLocale: "en", translations: {} });
|
|
430
430
|
const T = () => {
|
|
431
431
|
fetch(v).then((n) => n.json()).then((n) => {
|
|
432
|
-
Object.keys(n).forEach((
|
|
433
|
-
se(
|
|
432
|
+
Object.keys(n).forEach((f) => {
|
|
433
|
+
se(f, n[f]);
|
|
434
434
|
});
|
|
435
435
|
}).catch((n) => {
|
|
436
436
|
console.log(n);
|
|
@@ -456,24 +456,24 @@ function Me(r, e, t) {
|
|
|
456
456
|
F[g] && (F = { [g]: [] });
|
|
457
457
|
const I = () => {
|
|
458
458
|
t(4, k = !k), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
459
|
-
}, J = (l) => (t(9, M = !0), new Promise((n,
|
|
460
|
-
fetch(l).then((
|
|
461
|
-
|
|
459
|
+
}, J = (l) => (t(9, M = !0), new Promise((n, f) => {
|
|
460
|
+
fetch(l).then((p) => p.json()).then((p) => {
|
|
461
|
+
p = p.items, n(p.items), t(6, d = []);
|
|
462
462
|
let G = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
463
|
-
|
|
463
|
+
p.forEach(($) => {
|
|
464
464
|
var le;
|
|
465
465
|
G || (G = { currentCategoryId: [] }), ((le = G[g]) == null ? void 0 : le.indexOf($.id)) >= 0 ? ($.isFilterSelected = !0, d.push($)) : $.isFilterSelected = !1;
|
|
466
|
-
}), t(5, C =
|
|
467
|
-
}).catch((
|
|
468
|
-
console.error(
|
|
466
|
+
}), t(5, C = p), W();
|
|
467
|
+
}).catch((p) => {
|
|
468
|
+
console.error(p), t(10, K = !0), f(p);
|
|
469
469
|
}).finally(() => {
|
|
470
470
|
t(9, M = !1);
|
|
471
471
|
});
|
|
472
472
|
})), R = (l) => {
|
|
473
473
|
let n = localStorage.getItem("vendorFiltersByCategory");
|
|
474
|
-
l.isFilterSelected = !l.isFilterSelected, !d.length || d.filter((
|
|
475
|
-
[g]: d.map((
|
|
476
|
-
})) : (n = JSON.parse(n), n[g] = d.map((
|
|
474
|
+
l.isFilterSelected = !l.isFilterSelected, !d.length || d.filter((f) => f.name === l.name).length == 0 ? d.push(l) : t(6, d = d.filter((f) => f.name !== l.name)), n == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(F = {
|
|
475
|
+
[g]: d.map((f) => f.id)
|
|
476
|
+
})) : (n = JSON.parse(n), n[g] = d.map((f) => f.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(n))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), W();
|
|
477
477
|
}, W = () => {
|
|
478
478
|
t(7, h = d.length === C.length || d.length == 0), t(8, D = d.length);
|
|
479
479
|
}, U = () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-aMUXtMPt.cjs");function Y({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"}};function $(i){e.append_styles(i,"svelte-ub9f39",':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:16}.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, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.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}.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, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));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[36]=t[l],a[37]=t,a[38]=l,a}function ee(i){let t,l,a,n,s,f,b,y,h=i[11]("filterby")+"",u,v,F,S,w=i[11]("providers")+"",P,_,c,m,g,I,A,C,W,L,T,H,x,E=i[11]("clear")+"",N,D,j,M,z,J;function q(o,p){return o[7]?re:le}let B=q(i),k=B(i),O=e.ensure_array_like(i[5]),r=[];for(let o=0;o<O.length;o+=1)r[o]=Q(K(i,O,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),f=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),S=e.element("span"),P=e.text(w),_=e.space(),k.c(),c=e.space(),m=e.element("span"),g=e.svg_element("svg"),I=e.svg_element("path"),W=e.space(),L=e.element("div"),T=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();H=e.space(),x=e.element("button"),N=e.text(E),e.attr(s,"id","noun_filter_736223"),e.attr(s,"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(s,"transform","translate(-5 -6.2)"),e.attr(s,"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(I,"id","arrow"),e.attr(I,"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(I,"transform","translate(-274.511 -441.088)"),e.attr(I,"fill","#d1d1d1"),e.attr(g,"xmlns","http://www.w3.org/2000/svg"),e.attr(g,"width","14"),e.attr(g,"height","6.835"),e.attr(g,"viewBox","0 0 14 6.835"),e.attr(m,"class",A="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",C="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(T,"class","FilterDropdown"),e.attr(x,"class","ClearFilters"),x.disabled=D=i[7]&&i[6].length!=i[5].length,e.attr(L,"class",j="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",M="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(o,p){e.insert(o,t,p),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,f),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,S),e.append(S,P),e.append(F,_),k.m(F,null),e.append(l,c),e.append(l,m),e.append(m,g),e.append(g,I),e.append(t,W),e.append(t,L),e.append(L,T);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(T,null);e.append(L,H),e.append(L,x),e.append(x,N),z||(J=[e.listen(l,"click",i[22]),e.listen(x,"click",i[25])],z=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&w!==(w=o[11]("providers")+"")&&e.set_data(P,w),B===(B=q(o))&&k?k.p(o,p):(k.d(1),k=B(o),k&&(k.c(),k.m(F,null))),p[0]&16&&A!==(A="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(m,"class",A),p[0]&16&&C!==(C="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",C),p[0]&8228){O=e.ensure_array_like(o[5]);let d;for(d=0;d<O.length;d+=1){const V=K(o,O,d);r[d]?r[d].p(V,p):(r[d]=Q(V),r[d].c(),r[d].m(T,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=O.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(N,E),p[0]&224&&D!==(D=o[7]&&o[6].length!=o[5].length)&&(x.disabled=D),p[0]&16&&j!==(j="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(L,"class",j),p[0]&3&&M!==(M="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",M)},d(o){o&&e.detach(t),k.d(),e.destroy_each(r,o),z=!1,e.run_all(J)}}}function te(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,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function le(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 re(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,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ie(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[36].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[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ae(i){let t,l,a=i[36].name+"",n,s,f,b,y=i[36].games.count+"",h,u;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),f=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(t,"class","FilterItemLabel")},m(v,F){e.insert(v,t,F),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,f),e.append(f,b),e.append(f,h),e.append(f,u)},p(v,F){F[0]&32&&a!==(a=v[36].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=v[36].games.count+"")&&e.set_data(h,y)},d(v){v&&e.detach(t)}}}function Q(i){let t,l,a,n,s,f,b,y,h,u,v,F;function S(){i[23].call(a,i[37],i[38])}function w(){return i[24](i[36])}function P(m,g){if(m[2]==="false")return ae;if(m[2]==="true")return ie}let _=P(i),c=_&&_(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),f=e.element("span"),b=e.space(),c&&c.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[36].name,e.set_input_value(a,a.__value),e.attr(f,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(m,g){e.insert(m,t,g),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,f),e.append(l,b),c&&c.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",S),e.listen(a,"click",w)],v=!0)},p(m,g){i=m,g[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),g[0]&32&&(a.checked=i[36].isFilterSelected),_===(_=P(i))&&c?c.p(i,g):(c&&c.d(1),c=_&&_(i),c&&(c.c(),c.m(l,null))),g[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),g[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(m){m&&e.detach(t),c&&c.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,f){if(s[10])return te;if(!s[9])return ee}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,f){e.insert(s,t,f),n&&n.m(t,null),i[26](t)},p(s,f){a===(a=l(s))&&n?n.p(s,f):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),i[26](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:f=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:S="false"}=t,w=!1,P=window.navigator.userAgent,_=[],c=[],m={},g=!1,I=0,A=!0,C,W=!1;Y({withLocale:"en",translations:{}});const L=()=>{fetch(b).then(o=>o.json()).then(o=>{Object.keys(o).forEach(p=>{Z(p,o[p])})}).catch(o=>{console.log(o)})};Object.keys(G).forEach(r=>{Z(r,G[r])});const T=()=>{let r=document.createElement("style");r.innerHTML=y,C.appendChild(r)},H=()=>{let r=document.createElement("style");fetch(new URL(h)).then(o=>o.text()).then(o=>{r.innerHTML=o,setTimeout(()=>{C.appendChild(r)},1)})};m[u]&&(m={[u]:[]});const x=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},E=r=>(l(9,A=!0),new Promise((o,p)=>{fetch(r).then(d=>d.json()).then(d=>{d=d.items,o(d.items),l(6,c=[]);let V=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;V||(V={currentCategoryId:[]}),((U=V[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,_=d),D()}).catch(d=>{console.error(d),l(10,W=!0),p(d)}).finally(()=>{l(9,A=!1)})})),N=r=>{let o=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!c.length||c.filter(p=>p.name===r.name).length==0?c.push(r):l(6,c=c.filter(p=>p.name!==r.name)),o==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(p=>p.id)})):(o=JSON.parse(o),o[u]=c.map(p=>p.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(o))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),D()},D=()=>{l(7,g=c.length===_.length||c.length==0),l(8,I=c.length)},j=()=>{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",f),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(P)),(u.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${u})`),r.searchParams.append("subVendors",`games(subGroups=${u})`)):r.searchParams.append("filter",`games(groups=${u})`),E(r)},M=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),_.forEach(r=>r.isFilterSelected=!1),l(5,_),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,g=!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 J=()=>x();function q(r,o){r[o].isFilterSelected=this.checked,l(5,_)}const B=r=>N(r),k=()=>M();function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{C=r,l(3,C)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,s=r.datasource),"lang"in r&&l(17,f=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,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,S=r.filterbylogo)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&S&&j(),i.$$.dirty[0]&524296&&y&&C&&T(),i.$$.dirty[0]&1048584&&h&&C&&H(),i.$$.dirty[0]&262144&&b&&L()},[v,F,S,C,w,_,c,g,I,A,W,a,x,N,M,n,s,f,b,y,h,u,J,q,B,k,O]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,ne,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},$,[-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()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{}},[],[],!0);exports.default=X;
|