@everymatrix/casino-lobby 1.55.0 → 1.56.2
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-BKvw2GLN.js → CasinoCalendar-8h5qdaaJ.js} +331 -269
- package/components/{CasinoCalendar-CRnGs6mI.js → CasinoCalendar-D9zXfDS4.js} +416 -354
- package/components/{CasinoCalendar-P6bQ-mxN.cjs → CasinoCalendar-pDYRKcjG.cjs} +18 -5
- package/components/CasinoCalendarDailyDetails-D0Kx4qhT.js +693 -0
- package/components/CasinoCalendarDailyDetails-DFwCqTfY.js +693 -0
- package/components/CasinoCalendarDailyDetails-DkbuLEg5.cjs +1 -0
- package/components/CasinoCalendarDailyItem-C62RswBp.js +306 -0
- package/components/CasinoCalendarDailyItem-DTqfqF2k.js +306 -0
- package/components/CasinoCalendarDailyItem-DX_5vyqn.cjs +1 -0
- package/components/CasinoCategoriesSlider-3PL0POlf.cjs +1 -0
- package/components/{CasinoCategoriesSlider-hJChLXnm.js → CasinoCategoriesSlider-BhsSLM-H.js} +51 -51
- package/components/{CasinoCategoriesSlider-C7hbpydX.js → CasinoCategoriesSlider-CCCss88T.js} +51 -51
- package/components/{CasinoCollectionsProviders-CTvTqZY1.js → CasinoCollectionsProviders-8BCzbgO7.js} +35 -33
- package/components/{CasinoCollectionsProviders-Cyc5HYpW.js → CasinoCollectionsProviders-B7jL1xWi.js} +36 -34
- package/components/CasinoCollectionsProviders-DdI8afJV.cjs +1 -0
- package/components/{CasinoFavoritesSection-B4JlTRNa.js → CasinoFavoritesSection-8fm71dF4.js} +35 -34
- package/components/{CasinoFavoritesSection-D4v8HNn9.js → CasinoFavoritesSection-C0iLu9Sw.js} +35 -34
- package/components/CasinoFavoritesSection-DrmyxOK7.cjs +1 -0
- package/components/{CasinoFilter-ZQCeB5st.js → CasinoFilter-BTgsR3X2.js} +63 -59
- package/components/{CasinoFilter-EA285UxQ.cjs → CasinoFilter-D06f7IqM.cjs} +1 -1
- package/components/{CasinoFilter-CgPbbuBc.js → CasinoFilter-m6_88uQv.js} +65 -61
- package/components/CasinoGamePage-CkvljoIb.js +4249 -0
- package/components/CasinoGamePage-DAH5L6F5.cjs +18 -0
- package/components/CasinoGamePage-DAv8OZV8.js +4228 -0
- package/components/{CasinoGameThumbnail-Aj4sPAss.js → CasinoGameThumbnail-B4KIog_7.js} +15 -10
- package/components/{CasinoGameThumbnail-h69vAUbV.js → CasinoGameThumbnail-BMm5Xl4k.js} +15 -10
- package/components/CasinoGameThumbnail-XF-v3tEC.cjs +38 -0
- package/components/CasinoGamesCategorySection-BSklauO4.cjs +1 -0
- package/components/{CasinoGamesCategorySection-C9FCv7PW.js → CasinoGamesCategorySection-DUDDLFW2.js} +556 -585
- package/components/{CasinoGamesCategorySection-PiRBRWmh.js → CasinoGamesCategorySection-XWxil8vo.js} +1070 -1099
- package/components/CasinoJackpotBanner-6WZPbIyJ.js +692 -0
- package/components/CasinoJackpotBanner-Bu16yaAe.js +688 -0
- package/components/CasinoJackpotBanner-CRGjJl2y.cjs +1 -0
- package/components/{CasinoLastPlayedSection-r73sTCi9.js → CasinoLastPlayedSection-BT4kxVP1.js} +41 -41
- package/components/{CasinoLastPlayedSection-BXGcYUad.js → CasinoLastPlayedSection-DFUMCS3n.js} +41 -41
- package/components/CasinoLastPlayedSection-cjUgoZnI.cjs +1 -0
- package/components/CasinoLobby-CRIb8E4f.cjs +1 -0
- package/components/{CasinoLobby-60oTKJCK.js → CasinoLobby-Di0-vjQH.js} +327 -308
- package/components/{CasinoLobby-DHl1_-VE.js → CasinoLobby-DrBFK5gG.js} +323 -304
- package/components/CasinoModal-35QTkTq-.cjs +1 -0
- package/components/{CasinoModal-B7R5L0mw.js → CasinoModal-Ce9u8B9n.js} +38 -38
- package/components/{CasinoModal-wz-kI5U1.js → CasinoModal-DMOewty4.js} +38 -38
- package/components/CasinoMostPlayedSection-C1K-DGkZ.cjs +1 -0
- package/components/{CasinoMostPlayedSection-CpO0b2PN.js → CasinoMostPlayedSection-CXWjhKax.js} +174 -165
- package/components/{CasinoMostPlayedSection-CxQrM8-U.js → CasinoMostPlayedSection-DAuM-1cc.js} +174 -165
- package/components/{CasinoMyGames-B0AvdkLy.js → CasinoMyGames-0CUDyeW1.js} +332 -295
- package/components/CasinoMyGames-DQaVeSFh.cjs +1 -0
- package/components/{CasinoMyGames-ieyBjArx.js → CasinoMyGames-DTWGCs0t.js} +333 -296
- package/components/{CasinoPage-E4Nn1l0F.js → CasinoPage-BFAkKTIr.js} +562 -495
- package/components/{CasinoPage-CcV-qeX_.js → CasinoPage-CYfqznpn.js} +694 -627
- package/components/CasinoPage-Dn8IgsJW.cjs +1 -0
- package/components/{CasinoRandomGame-BEOONr7N.js → CasinoRandomGame-CwNUHn-I.js} +26 -24
- package/components/{CasinoRandomGame-D1gqYJkg.cjs → CasinoRandomGame-DnwNz2Jt.cjs} +2 -2
- package/components/{CasinoRandomGame-DoSJSKrA.js → CasinoRandomGame-qSedkhdM.js} +25 -23
- package/components/{CasinoSearch-BOSoxjjv.js → CasinoSearch-58Bbs2ly.js} +52 -49
- package/components/{CasinoSearch-3nC8pR7D.cjs → CasinoSearch-DgenhLcJ.cjs} +1 -1
- package/components/{CasinoSearch-DqfKG5Mj.js → CasinoSearch-Itb9Lu5Z.js} +52 -49
- package/components/{CasinoSlider-ylo7nRmY.js → CasinoSlider-BBo1-Yix.js} +107 -107
- package/components/{CasinoSlider-DlBcdeDm.js → CasinoSlider-BLhtuqXM.js} +88 -88
- package/components/CasinoSlider-BiIS2-lS.cjs +1 -0
- package/components/{CasinoSort-CVwRicsk.js → CasinoSort-CBEUIj6Q.js} +7 -6
- package/components/CasinoSort-ClDrkZcs.cjs +1 -0
- package/components/{CasinoSort-D9KTb90Q.js → CasinoSort-DDFUPoRE.js} +7 -6
- package/components/{CasinoWinners-CSDCICsh.js → CasinoWinners-C9LcOp1b.js} +48 -46
- package/components/{CasinoWinners-Br_rOUdI.cjs → CasinoWinners-CNAN8Ko7.cjs} +1 -1
- package/components/{CasinoWinners-CeLmSRE4.js → CasinoWinners-wjNHmiu9.js} +51 -49
- package/components/GeneralAnimationLoading-D4V5ml6G.js +84 -0
- package/components/GeneralAnimationLoading-DXg7Sgve.js +84 -0
- package/components/GeneralAnimationLoading-dlh-TGCV.cjs +1 -0
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-B5g4-G4Z.js → casino-play-random-game-B9yaAMOE.js} +55 -30
- package/stencil/{casino-play-random-game-Cphp76Jq.js → casino-play-random-game-BTXyM5es.js} +74 -49
- package/stencil/{casino-play-random-game-CQe5iDJ8.cjs → casino-play-random-game-a53bUW_d.cjs} +2 -2
- package/stencil/index-510a6ba4-B9_VY7vu.cjs +1 -0
- package/stencil/index-510a6ba4-CYFuKFRQ.js +564 -0
- package/stencil/{index-eac6b960-Dvyvd5zP.js → index-510a6ba4-CzpWs0jf.js} +185 -200
- package/components/CasinoCalendarDailyDetails-B-FOmYEZ.js +0 -701
- package/components/CasinoCalendarDailyDetails-DYTiZ7iE.js +0 -701
- package/components/CasinoCalendarDailyDetails-DicGOCGy.cjs +0 -1
- package/components/CasinoCalendarDailyItem-BsUUCx7a.js +0 -315
- package/components/CasinoCalendarDailyItem-DDm6oH8O.cjs +0 -1
- package/components/CasinoCalendarDailyItem-DIhsLlMC.js +0 -315
- package/components/CasinoCategoriesSlider-wt-dJlF9.cjs +0 -1
- package/components/CasinoCollectionsProviders-B0h7SupJ.cjs +0 -1
- package/components/CasinoFavoritesSection-CcyN5mtI.cjs +0 -1
- package/components/CasinoGamePage-D2VGIU0X.cjs +0 -18
- package/components/CasinoGamePage-DnFlR6PD.js +0 -4296
- package/components/CasinoGamePage-lOejw_q6.js +0 -4275
- package/components/CasinoGameThumbnail-ClSBiG0I.cjs +0 -38
- package/components/CasinoGamesCategorySection-X0aDh13K.cjs +0 -1
- package/components/CasinoJackpotBanner-BdzgC-lW.js +0 -690
- package/components/CasinoJackpotBanner-Dx_3WwEw.js +0 -686
- package/components/CasinoJackpotBanner-rV5P1O6d.cjs +0 -1
- package/components/CasinoLastPlayedSection-BP9oa18h.cjs +0 -1
- package/components/CasinoLobby-CB5KGhNa.cjs +0 -1
- package/components/CasinoModal-B7pt3Gcb.cjs +0 -1
- package/components/CasinoMostPlayedSection-CaHWOtw_.cjs +0 -1
- package/components/CasinoMyGames-R7NrCxgd.cjs +0 -1
- package/components/CasinoPage-azRHPGyF.cjs +0 -1
- package/components/CasinoSlider-Zgasc58K.cjs +0 -1
- package/components/CasinoSort-D3rxrF3Z.cjs +0 -1
- package/components/GeneralAnimationLoading-BRBLoSEB.js +0 -75
- package/components/GeneralAnimationLoading-Bu4_iets.cjs +0 -1
- package/components/GeneralAnimationLoading-DoN4gYz0.js +0 -75
- package/stencil/index-eac6b960-BaE9i06M.cjs +0 -1
- package/stencil/index-eac6b960-DXIu1GM6.js +0 -579
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as le, W as fe, a as ue, S as ge, i as me, f as I, c as he, s as Fe, b as be, e as m, d as
|
|
1
|
+
import { $ as le, W as fe, a as ue, S as ge, i as me, f as I, c as he, s as Fe, b as be, e as m, d as B, G as re, j as V, k as ye, o as ve, l as we, O as _e, q as Ce, r as ke, m as xe, v as ie, J as ee, w as D, x as T, y as o, z as s, A as te, E as j, F as Se, U as pe, X as ae, I as Ie, H as ne } from "./CasinoCalendar-8h5qdaaJ.js";
|
|
2
2
|
function Le({ withLocale: r, translations: e }) {
|
|
3
3
|
le.subscribe((t) => {
|
|
4
4
|
t == null && (fe.set(e), le.set(r));
|
|
@@ -128,33 +128,33 @@ function Ae(r) {
|
|
|
128
128
|
let e, t, i, a, c, h, v, w, b = (
|
|
129
129
|
/*$_*/
|
|
130
130
|
r[11]("filterby") + ""
|
|
131
|
-
), u, _, y,
|
|
131
|
+
), u, _, y, N, L = (
|
|
132
132
|
/*$_*/
|
|
133
133
|
r[11]("providers") + ""
|
|
134
|
-
), C, S, g, d, F, P, W,
|
|
134
|
+
), C, S, g, d, F, P, W, E, k, A, M, K, O, U = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
r[11]("clear") + ""
|
|
137
137
|
), q, J, G, H, R, Q;
|
|
138
138
|
function Y(n, f) {
|
|
139
139
|
return (
|
|
140
140
|
/*fullSelection*/
|
|
141
|
-
n[7] ?
|
|
141
|
+
n[7] ? Te : De
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
|
-
let Z = Y(r), x = Z(r),
|
|
144
|
+
let Z = Y(r), x = Z(r), z = 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 < z.length; n += 1)
|
|
149
|
+
l[n] = de(ce(r, z, n));
|
|
150
150
|
return {
|
|
151
151
|
c() {
|
|
152
|
-
e = m("div"), t = m("div"), i = m("div"), a = ee("svg"), c = ee("path"), h = D(), v = m("div"), w = m("span"), u =
|
|
152
|
+
e = m("div"), t = m("div"), i = m("div"), a = ee("svg"), c = ee("path"), h = D(), v = m("div"), w = m("span"), u = T(b), _ = D(), y = m("div"), N = m("span"), C = T(L), S = D(), x.c(), g = D(), d = m("span"), F = ee("svg"), P = ee("path"), k = D(), A = m("div"), M = m("ul");
|
|
153
153
|
for (let n = 0; n < l.length; n += 1)
|
|
154
154
|
l[n].c();
|
|
155
|
-
|
|
156
|
-
(r[4] ? "TriangleActive" : "")), o(t, "class",
|
|
157
|
-
(r[4] ? "FilterSelectorOpen" : "")), o(
|
|
155
|
+
K = D(), O = m("button"), q = T(U), 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(P, "id", "arrow"), o(P, "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(P, "transform", "translate(-274.511 -441.088)"), o(P, "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(d, "class", W = "TriangleInactive " + /*isFilterActive*/
|
|
156
|
+
(r[4] ? "TriangleActive" : "")), o(t, "class", E = "FilterSelector " + /*isFilterActive*/
|
|
157
|
+
(r[4] ? "FilterSelectorOpen" : "")), o(M, "class", "FilterDropdown"), o(O, "class", "ClearFilters"), O.disabled = J = /*fullSelection*/
|
|
158
158
|
r[7] && /*selectedVendorArray*/
|
|
159
159
|
r[6].length != /*vendorArray*/
|
|
160
160
|
r[5].length, o(A, "class", G = "FilterDropdownContainer " + /*isFilterActive*/
|
|
@@ -163,10 +163,10 @@ function Ae(r) {
|
|
|
163
163
|
r[1] == "true" ? "FilerContainerSplit" : ""));
|
|
164
164
|
},
|
|
165
165
|
m(n, f) {
|
|
166
|
-
|
|
166
|
+
B(n, e, f), 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, _), s(v, y), s(y, N), s(N, C), s(y, S), x.m(y, null), s(t, g), s(t, d), s(d, F), s(F, P), s(e, k), s(e, A), s(A, M);
|
|
167
167
|
for (let p = 0; p < l.length; p += 1)
|
|
168
|
-
l[p] && l[p].m(
|
|
169
|
-
s(A,
|
|
168
|
+
l[p] && l[p].m(M, null);
|
|
169
|
+
s(A, K), s(A, O), s(O, q), R || (Q = [
|
|
170
170
|
te(
|
|
171
171
|
t,
|
|
172
172
|
"click",
|
|
@@ -189,21 +189,21 @@ function Ae(r) {
|
|
|
189
189
|
n[11]("providers") + "") && j(C, L), Z === (Z = Y(n)) && x ? x.p(n, f) : (x.d(1), x = Z(n), x && (x.c(), x.m(y, null))), f[0] & /*isFilterActive*/
|
|
190
190
|
16 && W !== (W = "TriangleInactive " + /*isFilterActive*/
|
|
191
191
|
(n[4] ? "TriangleActive" : "")) && o(d, "class", W), f[0] & /*isFilterActive*/
|
|
192
|
-
16 &&
|
|
193
|
-
(n[4] ? "FilterSelectorOpen" : "")) && o(t, "class",
|
|
192
|
+
16 && E !== (E = "FilterSelector " + /*isFilterActive*/
|
|
193
|
+
(n[4] ? "FilterSelectorOpen" : "")) && o(t, "class", E), f[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
194
194
|
8228) {
|
|
195
|
-
|
|
195
|
+
z = ie(
|
|
196
196
|
/*vendorArray*/
|
|
197
197
|
n[5]
|
|
198
198
|
);
|
|
199
199
|
let p;
|
|
200
|
-
for (p = 0; p <
|
|
201
|
-
const
|
|
202
|
-
l[p] ? l[p].p(
|
|
200
|
+
for (p = 0; p < z.length; p += 1) {
|
|
201
|
+
const X = ce(n, z, p);
|
|
202
|
+
l[p] ? l[p].p(X, f) : (l[p] = de(X), l[p].c(), l[p].m(M, null));
|
|
203
203
|
}
|
|
204
204
|
for (; p < l.length; p += 1)
|
|
205
205
|
l[p].d(1);
|
|
206
|
-
l.length =
|
|
206
|
+
l.length = z.length;
|
|
207
207
|
}
|
|
208
208
|
f[0] & /*$_*/
|
|
209
209
|
2048 && U !== (U = /*$_*/
|
|
@@ -230,10 +230,10 @@ function Oe(r) {
|
|
|
230
230
|
), i;
|
|
231
231
|
return {
|
|
232
232
|
c() {
|
|
233
|
-
e = m("p"), i =
|
|
233
|
+
e = m("p"), i = T(t), o(e, "class", "SearchLoading");
|
|
234
234
|
},
|
|
235
235
|
m(a, c) {
|
|
236
|
-
|
|
236
|
+
B(a, e, c), s(e, i);
|
|
237
237
|
},
|
|
238
238
|
p(a, c) {
|
|
239
239
|
c[0] & /*$_*/
|
|
@@ -249,13 +249,13 @@ function De(r) {
|
|
|
249
249
|
let e, t;
|
|
250
250
|
return {
|
|
251
251
|
c() {
|
|
252
|
-
e = m("span"), t =
|
|
252
|
+
e = m("span"), t = T(
|
|
253
253
|
/*selectionNumber*/
|
|
254
254
|
r[8]
|
|
255
255
|
), o(e, "class", "FilterCounter");
|
|
256
256
|
},
|
|
257
257
|
m(i, a) {
|
|
258
|
-
|
|
258
|
+
B(i, e, a), s(e, t);
|
|
259
259
|
},
|
|
260
260
|
p(i, a) {
|
|
261
261
|
a[0] & /*selectionNumber*/
|
|
@@ -270,17 +270,17 @@ function De(r) {
|
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Te(r) {
|
|
274
274
|
let e, t = (
|
|
275
275
|
/*$_*/
|
|
276
276
|
r[11]("all") + ""
|
|
277
277
|
), i;
|
|
278
278
|
return {
|
|
279
279
|
c() {
|
|
280
|
-
e = m("span"), i =
|
|
280
|
+
e = m("span"), i = T(t), o(e, "class", "FilterCounter");
|
|
281
281
|
},
|
|
282
282
|
m(a, c) {
|
|
283
|
-
|
|
283
|
+
B(a, e, c), s(e, i);
|
|
284
284
|
},
|
|
285
285
|
p(a, c) {
|
|
286
286
|
c[0] & /*$_*/
|
|
@@ -292,7 +292,7 @@ function Ne(r) {
|
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Ne(r) {
|
|
296
296
|
let e, t;
|
|
297
297
|
return {
|
|
298
298
|
c() {
|
|
@@ -300,7 +300,7 @@ function Te(r) {
|
|
|
300
300
|
r[36].logo) || o(e, "src", t), o(e, "alt", "vendor logo");
|
|
301
301
|
},
|
|
302
302
|
m(i, a) {
|
|
303
|
-
|
|
303
|
+
B(i, e, a);
|
|
304
304
|
},
|
|
305
305
|
p(i, a) {
|
|
306
306
|
a[0] & /*vendorArray*/
|
|
@@ -312,7 +312,7 @@ function Te(r) {
|
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Ee(r) {
|
|
316
316
|
let e, t, i = (
|
|
317
317
|
/*vendor*/
|
|
318
318
|
r[36].name + ""
|
|
@@ -322,10 +322,10 @@ function Me(r) {
|
|
|
322
322
|
), b, u;
|
|
323
323
|
return {
|
|
324
324
|
c() {
|
|
325
|
-
e = m("div"), t = m("span"), a =
|
|
325
|
+
e = m("div"), t = m("span"), a = T(i), c = D(), h = m("span"), v = T("("), b = T(w), u = T(")"), o(t, "class", "VendorName"), o(e, "class", "FilterItemLabel");
|
|
326
326
|
},
|
|
327
327
|
m(_, y) {
|
|
328
|
-
|
|
328
|
+
B(_, 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(_, y) {
|
|
331
331
|
y[0] & /*vendorArray*/
|
|
@@ -341,7 +341,7 @@ function Me(r) {
|
|
|
341
341
|
}
|
|
342
342
|
function de(r) {
|
|
343
343
|
let e, t, i, a, c, h, v, w, b, u, _, y;
|
|
344
|
-
function
|
|
344
|
+
function N() {
|
|
345
345
|
r[24].call(
|
|
346
346
|
i,
|
|
347
347
|
/*each_value*/
|
|
@@ -363,11 +363,13 @@ function de(r) {
|
|
|
363
363
|
if (
|
|
364
364
|
/*filterbylogo*/
|
|
365
365
|
d[2] === "false"
|
|
366
|
-
)
|
|
366
|
+
)
|
|
367
|
+
return Ee;
|
|
367
368
|
if (
|
|
368
369
|
/*filterbylogo*/
|
|
369
370
|
d[2] === "true"
|
|
370
|
-
)
|
|
371
|
+
)
|
|
372
|
+
return Ne;
|
|
371
373
|
}
|
|
372
374
|
let S = C(r), g = S && S(r);
|
|
373
375
|
return {
|
|
@@ -378,9 +380,9 @@ function de(r) {
|
|
|
378
380
|
r[36].name;
|
|
379
381
|
},
|
|
380
382
|
m(d, F) {
|
|
381
|
-
|
|
383
|
+
B(d, e, F), s(e, t), s(t, i), i.checked = /*vendor*/
|
|
382
384
|
r[36].isFilterSelected, s(t, c), s(t, h), s(t, v), g && g.m(t, null), s(e, w), _ || (y = [
|
|
383
|
-
te(i, "change",
|
|
385
|
+
te(i, "change", N),
|
|
384
386
|
te(i, "click", L)
|
|
385
387
|
], _ = !0);
|
|
386
388
|
},
|
|
@@ -400,15 +402,17 @@ function de(r) {
|
|
|
400
402
|
}
|
|
401
403
|
};
|
|
402
404
|
}
|
|
403
|
-
function
|
|
405
|
+
function Me(r) {
|
|
404
406
|
let e;
|
|
405
407
|
function t(c, h) {
|
|
406
408
|
if (
|
|
407
409
|
/*hasErrors*/
|
|
408
410
|
c[10]
|
|
409
|
-
)
|
|
411
|
+
)
|
|
412
|
+
return Oe;
|
|
410
413
|
if (!/*isLoading*/
|
|
411
|
-
c[9])
|
|
414
|
+
c[9])
|
|
415
|
+
return Ae;
|
|
412
416
|
}
|
|
413
417
|
let i = t(r), a = i && i(r);
|
|
414
418
|
return {
|
|
@@ -416,7 +420,7 @@ function Ee(r) {
|
|
|
416
420
|
e = m("div"), a && a.c();
|
|
417
421
|
},
|
|
418
422
|
m(c, h) {
|
|
419
|
-
|
|
423
|
+
B(c, e, h), a && a.m(e, null), r[27](e);
|
|
420
424
|
},
|
|
421
425
|
p(c, h) {
|
|
422
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)));
|
|
@@ -428,12 +432,12 @@ function Ee(r) {
|
|
|
428
432
|
}
|
|
429
433
|
};
|
|
430
434
|
}
|
|
431
|
-
function
|
|
435
|
+
function ze(r, e, t) {
|
|
432
436
|
let i;
|
|
433
437
|
ye(r, Ie, (l) => t(11, i = l));
|
|
434
|
-
let { endpoint: a = "" } = e, { datasource: c = "" } = e, { lang: h = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid: u = "" } = e, { addfilterselector: _ = "false" } = e, { addsortingselector: y = "false" } = e, { filterbylogo:
|
|
438
|
+
let { endpoint: a = "" } = e, { datasource: c = "" } = e, { lang: h = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid: u = "" } = e, { addfilterselector: _ = "false" } = e, { addsortingselector: y = "false" } = e, { filterbylogo: N = "false" } = e, { mbsource: L } = e, C = !1, S = window.navigator.userAgent, g = [], d = [], F = {}, P = !1, W = 0, E = !0, k, A = !1, M;
|
|
435
439
|
Le({ withLocale: "en", translations: {} });
|
|
436
|
-
const
|
|
440
|
+
const K = () => {
|
|
437
441
|
fetch(v).then((n) => n.json()).then((n) => {
|
|
438
442
|
Object.keys(n).forEach((f) => {
|
|
439
443
|
oe(f, n[f]);
|
|
@@ -447,17 +451,17 @@ function Be(r, e, t) {
|
|
|
447
451
|
}), F[u] && (F = { [u]: [] });
|
|
448
452
|
const O = () => {
|
|
449
453
|
t(4, C = !C), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
450
|
-
}, U = (l) => (t(9,
|
|
454
|
+
}, U = (l) => (t(9, E = !0), new Promise((n, f) => {
|
|
451
455
|
fetch(l).then((p) => p.json()).then((p) => {
|
|
452
456
|
p = p.items, n(p.items), t(6, d = []);
|
|
453
|
-
let
|
|
457
|
+
let X = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
454
458
|
p.forEach(($) => {
|
|
455
|
-
|
|
459
|
+
X || (X = { currentCategoryId: [] }), X[u]?.indexOf($.id) >= 0 ? ($.isFilterSelected = !0, d.push($)) : $.isFilterSelected = !1;
|
|
456
460
|
}), t(5, g = p), J();
|
|
457
461
|
}).catch((p) => {
|
|
458
462
|
console.error(p), t(10, A = !0), f(p);
|
|
459
463
|
}).finally(() => {
|
|
460
|
-
t(9,
|
|
464
|
+
t(9, E = !1);
|
|
461
465
|
});
|
|
462
466
|
})), q = (l) => {
|
|
463
467
|
let n = localStorage.getItem("vendorFiltersByCategory");
|
|
@@ -477,38 +481,38 @@ function Be(r, e, t) {
|
|
|
477
481
|
l.data.type == "SortingOpened" && t(4, C = !1);
|
|
478
482
|
};
|
|
479
483
|
ve(() => (window.addEventListener("message", R, !1), () => {
|
|
480
|
-
window.emMessageBus != null &&
|
|
484
|
+
window.emMessageBus != null && M && M.unsubscribe(), window.removeEventListener("message", R);
|
|
481
485
|
}));
|
|
482
486
|
const Q = () => O();
|
|
483
487
|
function Y(l, n) {
|
|
484
488
|
l[n].isFilterSelected = this.checked, t(5, g);
|
|
485
489
|
}
|
|
486
490
|
const Z = (l) => q(l), x = () => H();
|
|
487
|
-
function
|
|
491
|
+
function z(l) {
|
|
488
492
|
Ce[l ? "unshift" : "push"](() => {
|
|
489
493
|
k = l, t(3, k);
|
|
490
494
|
});
|
|
491
495
|
}
|
|
492
496
|
return r.$$set = (l) => {
|
|
493
|
-
"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, _ = l.addfilterselector), "addsortingselector" in l && t(1, y = l.addsortingselector), "filterbylogo" in l && t(2,
|
|
497
|
+
"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, _ = l.addfilterselector), "addsortingselector" in l && t(1, y = l.addsortingselector), "filterbylogo" in l && t(2, N = l.filterbylogo), "mbsource" in l && t(22, L = l.mbsource);
|
|
494
498
|
}, r.$$.update = () => {
|
|
495
499
|
r.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
|
496
|
-
2195460 && a && c && u &&
|
|
500
|
+
2195460 && a && c && u && N && G(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
497
501
|
524296 && w && k && ke(k, w), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
498
502
|
1048584 && b && k && we(k, b), r.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
499
503
|
4194312 && k && xe(k, `${L}.Style`), r.$$.dirty[0] & /*translationurl*/
|
|
500
|
-
262144 && v &&
|
|
504
|
+
262144 && v && K();
|
|
501
505
|
}, [
|
|
502
506
|
_,
|
|
503
507
|
y,
|
|
504
|
-
|
|
508
|
+
N,
|
|
505
509
|
k,
|
|
506
510
|
C,
|
|
507
511
|
g,
|
|
508
512
|
d,
|
|
509
513
|
P,
|
|
510
514
|
W,
|
|
511
|
-
|
|
515
|
+
E,
|
|
512
516
|
A,
|
|
513
517
|
i,
|
|
514
518
|
O,
|
|
@@ -526,7 +530,7 @@ function Be(r, e, t) {
|
|
|
526
530
|
Y,
|
|
527
531
|
Z,
|
|
528
532
|
x,
|
|
529
|
-
|
|
533
|
+
z
|
|
530
534
|
];
|
|
531
535
|
}
|
|
532
536
|
class je extends ge {
|
|
@@ -534,8 +538,8 @@ class je extends ge {
|
|
|
534
538
|
super(), me(
|
|
535
539
|
this,
|
|
536
540
|
e,
|
|
537
|
-
|
|
538
|
-
|
|
541
|
+
ze,
|
|
542
|
+
Me,
|
|
539
543
|
Fe,
|
|
540
544
|
{
|
|
541
545
|
endpoint: 15,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-P6bQ-mxN.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"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function $(i){e.append_styles(i,"svelte-1v7rv6n",':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;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, #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,g,b,y,h=i[11]("filterby")+"",u,v,F,P,k=i[11]("providers")+"",_,x,f,c,m,S,T,A,w,I,O,J,L,E=i[11]("clear")+"",j,M,z,N,B,q;function H(o,p){return o[7]?re:le}let V=H(i),C=V(i),D=e.ensure_array_like(i[5]),r=[];for(let o=0;o<D.length;o+=1)r[o]=Q(K(i,D,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"),g=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),P=e.element("span"),_=e.text(k),x=e.space(),C.c(),f=e.space(),c=e.element("span"),m=e.svg_element("svg"),S=e.svg_element("path"),w=e.space(),I=e.element("div"),O=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();J=e.space(),L=e.element("button"),j=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(S,"id","arrow"),e.attr(S,"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(S,"transform","translate(-274.511 -441.088)"),e.attr(S,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(c,"class",T="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",A="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(O,"class","FilterDropdown"),e.attr(L,"class","ClearFilters"),L.disabled=M=i[7]&&i[6].length!=i[5].length,e.attr(I,"class",z="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",N="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,g),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,P),e.append(P,_),e.append(F,x),C.m(F,null),e.append(l,f),e.append(l,c),e.append(c,m),e.append(m,S),e.append(t,w),e.append(t,I),e.append(I,O);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(O,null);e.append(I,J),e.append(I,L),e.append(L,j),B||(q=[e.listen(l,"click",i[23]),e.listen(L,"click",i[26])],B=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&k!==(k=o[11]("providers")+"")&&e.set_data(_,k),V===(V=H(o))&&C?C.p(o,p):(C.d(1),C=V(o),C&&(C.c(),C.m(F,null))),p[0]&16&&T!==(T="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(c,"class",T),p[0]&16&&A!==(A="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",A),p[0]&8228){D=e.ensure_array_like(o[5]);let d;for(d=0;d<D.length;d+=1){const W=K(o,D,d);r[d]?r[d].p(W,p):(r[d]=Q(W),r[d].c(),r[d].m(O,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=D.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(j,E),p[0]&224&&M!==(M=o[7]&&o[6].length!=o[5].length)&&(L.disabled=M),p[0]&16&&z!==(z="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(I,"class",z),p[0]&3&&N!==(N="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",N)},d(o){o&&e.detach(t),C.d(),e.destroy_each(r,o),B=!1,e.run_all(q)}}}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,g,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(),g=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(l,"class","VendorName"),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,g),e.append(g,b),e.append(g,h),e.append(g,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,g,b,y,h,u,v,F;function P(){i[24].call(a,i[37],i[38])}function k(){return i[25](i[36])}function _(c,m){if(c[2]==="false")return ae;if(c[2]==="true")return ie}let x=_(i),f=x&&x(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),b=e.space(),f&&f.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(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(c,m){e.insert(c,t,m),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,b),f&&f.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",P),e.listen(a,"click",k)],v=!0)},p(c,m){i=c,m[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=i[36].isFilterSelected),x===(x=_(i))&&f?f.p(i,m):(f&&f.d(1),f=x&&x(i),f&&(f.c(),f.m(l,null))),m[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),m[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(c){c&&e.detach(t),f&&f.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,g){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,g){e.insert(s,t,g),n&&n.m(t,null),i[27](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(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[27](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:g=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:P="false"}=t,{mbsource:k}=t,_=!1,x=window.navigator.userAgent,f=[],c=[],m={},S=!1,T=0,A=!0,w,I=!1,O;Y({withLocale:"en",translations:{}});const J=()=>{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])}),m[u]&&(m={[u]:[]});const L=()=>{l(4,_=!_),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 W=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;W||(W={currentCategoryId:[]}),((U=W[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,f=d),M()}).catch(d=>{console.error(d),l(10,I=!0),p(d)}).finally(()=>{l(9,A=!1)})})),j=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),M()},M=()=>{l(7,S=c.length===f.length||c.length==0),l(8,T=c.length)},z=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,_=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",g),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(x)),(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)},N=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),f.forEach(r=>r.isFilterSelected=!1),l(5,f),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,S=!0),l(4,_=!1)},B=r=>{r.data.type=="SortingOpened"&&l(4,_=!1)};e.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.emMessageBus!=null&&O&&O.unsubscribe(),window.removeEventListener("message",B)}));const q=()=>L();function H(r,o){r[o].isFilterSelected=this.checked,l(5,f)}const V=r=>j(r),C=()=>N();function D(r){e.binding_callbacks[r?"unshift":"push"](()=>{w=r,l(3,w)})}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,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,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,P=r.filterbylogo),"mbsource"in r&&l(22,k=r.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&P&&z(),i.$$.dirty[0]&524296&&y&&w&&e.setClientStyling(w,y),i.$$.dirty[0]&1048584&&h&&w&&e.setClientStylingURL(w,h),i.$$.dirty[0]&4194312&&w&&e.setStreamStyling(w,`${k}.Style`),i.$$.dirty[0]&262144&&b&&J()},[v,F,P,w,_,f,c,S,T,A,I,a,L,j,N,n,s,g,b,y,h,u,k,q,H,V,C,D]}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,mbsource:22},$,[-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()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{}},[],[],!0);exports.default=X;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-pDYRKcjG.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"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function $(i){e.append_styles(i,"svelte-1v7rv6n",':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;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, #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,g,b,y,h=i[11]("filterby")+"",u,v,F,P,k=i[11]("providers")+"",_,x,f,c,m,S,T,A,w,I,O,J,L,E=i[11]("clear")+"",j,M,z,N,B,q;function H(o,p){return o[7]?re:le}let V=H(i),C=V(i),D=e.ensure_array_like(i[5]),r=[];for(let o=0;o<D.length;o+=1)r[o]=Q(K(i,D,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"),g=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),P=e.element("span"),_=e.text(k),x=e.space(),C.c(),f=e.space(),c=e.element("span"),m=e.svg_element("svg"),S=e.svg_element("path"),w=e.space(),I=e.element("div"),O=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();J=e.space(),L=e.element("button"),j=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(S,"id","arrow"),e.attr(S,"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(S,"transform","translate(-274.511 -441.088)"),e.attr(S,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(c,"class",T="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",A="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(O,"class","FilterDropdown"),e.attr(L,"class","ClearFilters"),L.disabled=M=i[7]&&i[6].length!=i[5].length,e.attr(I,"class",z="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",N="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,g),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,P),e.append(P,_),e.append(F,x),C.m(F,null),e.append(l,f),e.append(l,c),e.append(c,m),e.append(m,S),e.append(t,w),e.append(t,I),e.append(I,O);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(O,null);e.append(I,J),e.append(I,L),e.append(L,j),B||(q=[e.listen(l,"click",i[23]),e.listen(L,"click",i[26])],B=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&k!==(k=o[11]("providers")+"")&&e.set_data(_,k),V===(V=H(o))&&C?C.p(o,p):(C.d(1),C=V(o),C&&(C.c(),C.m(F,null))),p[0]&16&&T!==(T="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(c,"class",T),p[0]&16&&A!==(A="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",A),p[0]&8228){D=e.ensure_array_like(o[5]);let d;for(d=0;d<D.length;d+=1){const W=K(o,D,d);r[d]?r[d].p(W,p):(r[d]=Q(W),r[d].c(),r[d].m(O,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=D.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(j,E),p[0]&224&&M!==(M=o[7]&&o[6].length!=o[5].length)&&(L.disabled=M),p[0]&16&&z!==(z="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(I,"class",z),p[0]&3&&N!==(N="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",N)},d(o){o&&e.detach(t),C.d(),e.destroy_each(r,o),B=!1,e.run_all(q)}}}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,g,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(),g=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(l,"class","VendorName"),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,g),e.append(g,b),e.append(g,h),e.append(g,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,g,b,y,h,u,v,F;function P(){i[24].call(a,i[37],i[38])}function k(){return i[25](i[36])}function _(c,m){if(c[2]==="false")return ae;if(c[2]==="true")return ie}let x=_(i),f=x&&x(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),b=e.space(),f&&f.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(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(c,m){e.insert(c,t,m),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,b),f&&f.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",P),e.listen(a,"click",k)],v=!0)},p(c,m){i=c,m[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=i[36].isFilterSelected),x===(x=_(i))&&f?f.p(i,m):(f&&f.d(1),f=x&&x(i),f&&(f.c(),f.m(l,null))),m[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),m[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(c){c&&e.detach(t),f&&f.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,g){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,g){e.insert(s,t,g),n&&n.m(t,null),i[27](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(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[27](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:g=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:P="false"}=t,{mbsource:k}=t,_=!1,x=window.navigator.userAgent,f=[],c=[],m={},S=!1,T=0,A=!0,w,I=!1,O;Y({withLocale:"en",translations:{}});const J=()=>{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])}),m[u]&&(m={[u]:[]});const L=()=>{l(4,_=!_),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 W=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;W||(W={currentCategoryId:[]}),((U=W[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,f=d),M()}).catch(d=>{console.error(d),l(10,I=!0),p(d)}).finally(()=>{l(9,A=!1)})})),j=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),M()},M=()=>{l(7,S=c.length===f.length||c.length==0),l(8,T=c.length)},z=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,_=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",g),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(x)),(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)},N=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),f.forEach(r=>r.isFilterSelected=!1),l(5,f),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,S=!0),l(4,_=!1)},B=r=>{r.data.type=="SortingOpened"&&l(4,_=!1)};e.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.emMessageBus!=null&&O&&O.unsubscribe(),window.removeEventListener("message",B)}));const q=()=>L();function H(r,o){r[o].isFilterSelected=this.checked,l(5,f)}const V=r=>j(r),C=()=>N();function D(r){e.binding_callbacks[r?"unshift":"push"](()=>{w=r,l(3,w)})}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,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,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,P=r.filterbylogo),"mbsource"in r&&l(22,k=r.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&P&&z(),i.$$.dirty[0]&524296&&y&&w&&e.setClientStyling(w,y),i.$$.dirty[0]&1048584&&h&&w&&e.setClientStylingURL(w,h),i.$$.dirty[0]&4194312&&w&&e.setStreamStyling(w,`${k}.Style`),i.$$.dirty[0]&262144&&b&&J()},[v,F,P,w,_,f,c,S,T,A,I,a,L,j,N,n,s,g,b,y,h,u,k,q,H,V,C,D]}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,mbsource:22},$,[-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()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{}},[],[],!0);exports.default=X;
|