@everymatrix/casino-most-played-section-nd 1.87.38 → 1.87.40
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/{CasinoFilter-Dj6YYvIy.js → CasinoFilter-B4iJIKe-.js} +116 -115
- package/components/{CasinoFilter-BEyLlRri.cjs → CasinoFilter-BEwkYHbi.cjs} +1 -1
- package/components/{CasinoFilter-hjg1mxB6.js → CasinoFilter-C7VfQk-p.js} +108 -107
- package/components/{CasinoGameThumbnailNd-C68J-1d9.js → CasinoGameThumbnailNd-BvJxtdHn.js} +585 -550
- package/components/CasinoGameThumbnailNd-I_T958KV.cjs +30 -0
- package/components/{CasinoGameThumbnailNd-DLYjyHaa.js → CasinoGameThumbnailNd-mTWPwxPL.js} +521 -486
- package/components/{CasinoGamesCategorySectionNd-BWm798-S.js → CasinoGamesCategorySectionNd-BT2Qn9Ho.js} +1365 -1313
- package/components/{CasinoGamesCategorySectionNd-B3RKvzR4.js → CasinoGamesCategorySectionNd-D4bP5lLG.js} +1357 -1305
- package/components/CasinoGamesCategorySectionNd-Dks7ybfs.cjs +1 -0
- package/components/{CasinoMostPlayedSectionNd-BOaOkjIc.js → CasinoMostPlayedSectionNd-BTf2Gojr.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-UwJ5kO22.cjs → CasinoMostPlayedSectionNd-BW1uNQcd.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-BwpsHJ-J.js → CasinoMostPlayedSectionNd-BW3u7_s4.js} +1 -1
- package/components/{CasinoSort-BoSioeSv.js → CasinoSort-BWatSBDO.js} +1 -1
- package/components/{CasinoSort-BjC9YIs-.cjs → CasinoSort-Ct6N3smC.cjs} +1 -1
- package/components/{CasinoSort-DBjvjMmD.js → CasinoSort-kW2D0GU4.js} +1 -1
- package/es2015/casino-most-played-section-nd.cjs +1 -1
- package/es2015/casino-most-played-section-nd.js +1 -1
- package/esnext/casino-most-played-section-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoGameThumbnailNd-BDVWXyiG.cjs +0 -30
- package/components/CasinoGamesCategorySectionNd-CXtV0EVC.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as re, O as pe, a as me, S as he, i as Fe, s as be, f as L, b as ye, n as ie, d as
|
|
1
|
+
import { $ as re, O as pe, a as me, S as he, i as Fe, s as be, f as L, b as ye, n as ie, d as z, e as V, g, j as ve, k as we, v as _e, m as ke, h as n, y as ae, C as Ce, P as ue, w as R, r as o, E as te, F as ee, t as O, x as B, Q as ne, D as oe, H as xe, I as Se, J as Ie, c as Le, G as Pe } from "./CasinoMostPlayedSectionNd-BTf2Gojr.js";
|
|
2
2
|
function Ae({ withLocale: r, translations: e }) {
|
|
3
3
|
re.subscribe((l) => {
|
|
4
4
|
l == null && (pe.set(e), re.set(r));
|
|
@@ -128,98 +128,98 @@ function Ee(r) {
|
|
|
128
128
|
let e, l, i, a, s, m, v, w, b = (
|
|
129
129
|
/*$_*/
|
|
130
130
|
r[11]("filterby") + ""
|
|
131
|
-
),
|
|
131
|
+
), u, C, y, E, P = (
|
|
132
132
|
/*$_*/
|
|
133
133
|
r[11]("providers") + ""
|
|
134
|
-
), S, x, F, p, c,
|
|
134
|
+
), S, x, F, p, c, A, M, W, U, _, N, D, T, H = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
r[11]("clear") + ""
|
|
137
|
-
),
|
|
137
|
+
), Z, J, G, q, K, X;
|
|
138
138
|
function Y(t, d) {
|
|
139
139
|
return (
|
|
140
140
|
/*fullSelection*/
|
|
141
141
|
t[7] ? Me : Be
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
|
-
let
|
|
144
|
+
let Q = Y(r), I = Q(r), j = ae(
|
|
145
145
|
/*vendorArray*/
|
|
146
146
|
r[5]
|
|
147
147
|
), k = [];
|
|
148
|
-
for (let t = 0; t <
|
|
149
|
-
k[t] = fe(de(r,
|
|
148
|
+
for (let t = 0; t < j.length; t += 1)
|
|
149
|
+
k[t] = fe(de(r, j, t));
|
|
150
150
|
return {
|
|
151
151
|
c() {
|
|
152
|
-
e =
|
|
152
|
+
e = g("div"), l = g("div"), i = g("div"), a = ee("svg"), s = ee("path"), m = O(), v = g("div"), w = g("span"), u = B(b), C = O(), y = g("div"), E = g("span"), S = B(P), x = O(), I.c(), F = O(), p = g("span"), c = ee("svg"), A = ee("path"), U = O(), _ = g("div"), N = g("ul");
|
|
153
153
|
for (let t = 0; t < k.length; t += 1)
|
|
154
154
|
k[t].c();
|
|
155
|
-
|
|
156
|
-
(r[4] ? "TriangleActive" : "")), n(l, "class",
|
|
157
|
-
(r[4] ? "FilterSelectorOpen" : "")), n(N, "class", "FilterDropdown"), n(T, "class", "ClearFilters"), T.disabled =
|
|
155
|
+
D = O(), T = g("button"), Z = B(H), n(s, "id", "noun_filter_736223"), n(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"), n(s, "transform", "translate(-5 -6.2)"), n(s, "fill", "#fff"), n(a, "xmlns", "http://www.w3.org/2000/svg"), n(a, "width", "16"), n(a, "height", "16"), n(a, "viewBox", "0 0 16 16"), n(w, "class", "FilterName"), n(y, "class", "FilterValueContainer"), n(v, "class", "FilterTextContainer"), n(i, "class", "FilterMainArea"), n(A, "id", "arrow"), n(A, "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"), n(A, "transform", "translate(-274.511 -441.088)"), n(A, "fill", "#d1d1d1"), n(c, "xmlns", "http://www.w3.org/2000/svg"), n(c, "width", "14"), n(c, "height", "6.835"), n(c, "viewBox", "0 0 14 6.835"), n(p, "class", M = "TriangleInactive " + /*isFilterActive*/
|
|
156
|
+
(r[4] ? "TriangleActive" : "")), n(l, "class", W = "FilterSelector " + /*isFilterActive*/
|
|
157
|
+
(r[4] ? "FilterSelectorOpen" : "")), n(N, "class", "FilterDropdown"), n(T, "class", "ClearFilters"), T.disabled = J = /*fullSelection*/
|
|
158
158
|
r[7] && /*selectedVendorArray*/
|
|
159
159
|
r[6].length != /*vendorArray*/
|
|
160
|
-
r[5].length, n(_, "class",
|
|
161
|
-
(r[4] ? "FilterOpen" : "")), n(e, "class",
|
|
160
|
+
r[5].length, n(_, "class", G = "FilterDropdownContainer " + /*isFilterActive*/
|
|
161
|
+
(r[4] ? "FilterOpen" : "")), n(e, "class", q = "FilterContainer " + /*addfilterselector*/
|
|
162
162
|
(r[0] == "true" && /*addsortingselector*/
|
|
163
163
|
r[1] == "true" ? "FilerContainerSplit" : ""));
|
|
164
164
|
},
|
|
165
165
|
m(t, d) {
|
|
166
|
-
|
|
166
|
+
V(t, e, d), o(e, l), o(l, i), o(i, a), o(a, s), o(i, m), o(i, v), o(v, w), o(w, u), o(v, C), o(v, y), o(y, E), o(E, S), o(y, x), I.m(y, null), o(l, F), o(l, p), o(p, c), o(c, A), o(e, U), o(e, _), o(_, N);
|
|
167
167
|
for (let f = 0; f < k.length; f += 1)
|
|
168
168
|
k[f] && k[f].m(N, null);
|
|
169
|
-
o(_,
|
|
169
|
+
o(_, D), o(_, T), o(T, Z), K || (X = [
|
|
170
170
|
te(
|
|
171
171
|
l,
|
|
172
172
|
"click",
|
|
173
173
|
/*click_handler*/
|
|
174
|
-
r[
|
|
174
|
+
r[25]
|
|
175
175
|
),
|
|
176
176
|
te(
|
|
177
177
|
T,
|
|
178
178
|
"click",
|
|
179
179
|
/*click_handler_2*/
|
|
180
|
-
r[
|
|
180
|
+
r[28]
|
|
181
181
|
)
|
|
182
|
-
],
|
|
182
|
+
], K = !0);
|
|
183
183
|
},
|
|
184
184
|
p(t, d) {
|
|
185
185
|
if (d[0] & /*$_*/
|
|
186
186
|
2048 && b !== (b = /*$_*/
|
|
187
|
-
t[11]("filterby") + "") &&
|
|
188
|
-
2048 &&
|
|
189
|
-
t[11]("providers") + "") &&
|
|
187
|
+
t[11]("filterby") + "") && R(u, b), d[0] & /*$_*/
|
|
188
|
+
2048 && P !== (P = /*$_*/
|
|
189
|
+
t[11]("providers") + "") && R(S, P), Q === (Q = Y(t)) && I ? I.p(t, d) : (I.d(1), I = Q(t), I && (I.c(), I.m(y, null))), d[0] & /*isFilterActive*/
|
|
190
190
|
16 && M !== (M = "TriangleInactive " + /*isFilterActive*/
|
|
191
191
|
(t[4] ? "TriangleActive" : "")) && n(p, "class", M), d[0] & /*isFilterActive*/
|
|
192
|
-
16 &&
|
|
193
|
-
(t[4] ? "FilterSelectorOpen" : "")) && n(l, "class",
|
|
192
|
+
16 && W !== (W = "FilterSelector " + /*isFilterActive*/
|
|
193
|
+
(t[4] ? "FilterSelectorOpen" : "")) && n(l, "class", W), d[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
194
194
|
8228) {
|
|
195
|
-
|
|
195
|
+
j = ae(
|
|
196
196
|
/*vendorArray*/
|
|
197
197
|
t[5]
|
|
198
198
|
);
|
|
199
199
|
let f;
|
|
200
|
-
for (f = 0; f <
|
|
201
|
-
const h = de(t,
|
|
200
|
+
for (f = 0; f < j.length; f += 1) {
|
|
201
|
+
const h = de(t, j, f);
|
|
202
202
|
k[f] ? k[f].p(h, d) : (k[f] = fe(h), k[f].c(), k[f].m(N, null));
|
|
203
203
|
}
|
|
204
204
|
for (; f < k.length; f += 1)
|
|
205
205
|
k[f].d(1);
|
|
206
|
-
k.length =
|
|
206
|
+
k.length = j.length;
|
|
207
207
|
}
|
|
208
208
|
d[0] & /*$_*/
|
|
209
|
-
2048 &&
|
|
210
|
-
t[11]("clear") + "") &&
|
|
211
|
-
224 &&
|
|
209
|
+
2048 && H !== (H = /*$_*/
|
|
210
|
+
t[11]("clear") + "") && R(Z, H), d[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
|
211
|
+
224 && J !== (J = /*fullSelection*/
|
|
212
212
|
t[7] && /*selectedVendorArray*/
|
|
213
213
|
t[6].length != /*vendorArray*/
|
|
214
|
-
t[5].length) && (T.disabled =
|
|
215
|
-
16 &&
|
|
216
|
-
(t[4] ? "FilterOpen" : "")) && n(_, "class",
|
|
217
|
-
3 &&
|
|
214
|
+
t[5].length) && (T.disabled = J), d[0] & /*isFilterActive*/
|
|
215
|
+
16 && G !== (G = "FilterDropdownContainer " + /*isFilterActive*/
|
|
216
|
+
(t[4] ? "FilterOpen" : "")) && n(_, "class", G), d[0] & /*addfilterselector, addsortingselector*/
|
|
217
|
+
3 && q !== (q = "FilterContainer " + /*addfilterselector*/
|
|
218
218
|
(t[0] == "true" && /*addsortingselector*/
|
|
219
|
-
t[1] == "true" ? "FilerContainerSplit" : "")) && n(e, "class",
|
|
219
|
+
t[1] == "true" ? "FilerContainerSplit" : "")) && n(e, "class", q);
|
|
220
220
|
},
|
|
221
221
|
d(t) {
|
|
222
|
-
t &&
|
|
222
|
+
t && z(e), I.d(), Ce(k, t), K = !1, ue(X);
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -230,10 +230,10 @@ function Te(r) {
|
|
|
230
230
|
);
|
|
231
231
|
return {
|
|
232
232
|
c() {
|
|
233
|
-
e =
|
|
233
|
+
e = g("p"), n(e, "class", "SearchLoading");
|
|
234
234
|
},
|
|
235
235
|
m(i, a) {
|
|
236
|
-
|
|
236
|
+
V(i, e, a), e.innerHTML = l;
|
|
237
237
|
},
|
|
238
238
|
p(i, a) {
|
|
239
239
|
a[0] & /*$_*/
|
|
@@ -241,7 +241,7 @@ function Te(r) {
|
|
|
241
241
|
i[11]("500") + "") && (e.innerHTML = l);
|
|
242
242
|
},
|
|
243
243
|
d(i) {
|
|
244
|
-
i &&
|
|
244
|
+
i && z(e);
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
}
|
|
@@ -249,24 +249,24 @@ function Be(r) {
|
|
|
249
249
|
let e, l;
|
|
250
250
|
return {
|
|
251
251
|
c() {
|
|
252
|
-
e =
|
|
252
|
+
e = g("span"), l = B(
|
|
253
253
|
/*selectionNumber*/
|
|
254
254
|
r[8]
|
|
255
255
|
), n(e, "class", "FilterCounter");
|
|
256
256
|
},
|
|
257
257
|
m(i, a) {
|
|
258
|
-
|
|
258
|
+
V(i, e, a), o(e, l);
|
|
259
259
|
},
|
|
260
260
|
p(i, a) {
|
|
261
261
|
a[0] & /*selectionNumber*/
|
|
262
|
-
256 &&
|
|
262
|
+
256 && R(
|
|
263
263
|
l,
|
|
264
264
|
/*selectionNumber*/
|
|
265
265
|
i[8]
|
|
266
266
|
);
|
|
267
267
|
},
|
|
268
268
|
d(i) {
|
|
269
|
-
i &&
|
|
269
|
+
i && z(e);
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
}
|
|
@@ -277,18 +277,18 @@ function Me(r) {
|
|
|
277
277
|
), i;
|
|
278
278
|
return {
|
|
279
279
|
c() {
|
|
280
|
-
e =
|
|
280
|
+
e = g("span"), i = B(l), n(e, "class", "FilterCounter");
|
|
281
281
|
},
|
|
282
282
|
m(a, s) {
|
|
283
|
-
|
|
283
|
+
V(a, e, s), o(e, i);
|
|
284
284
|
},
|
|
285
285
|
p(a, s) {
|
|
286
286
|
s[0] & /*$_*/
|
|
287
287
|
2048 && l !== (l = /*$_*/
|
|
288
|
-
a[11]("all") + "") &&
|
|
288
|
+
a[11]("all") + "") && R(i, l);
|
|
289
289
|
},
|
|
290
290
|
d(a) {
|
|
291
|
-
a &&
|
|
291
|
+
a && z(e);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
}
|
|
@@ -296,11 +296,11 @@ function Ne(r) {
|
|
|
296
296
|
let e, l;
|
|
297
297
|
return {
|
|
298
298
|
c() {
|
|
299
|
-
e =
|
|
299
|
+
e = g("img"), oe(e.src, l = /*vendor*/
|
|
300
300
|
r[37].logo) || n(e, "src", l), n(e, "alt", "vendor logo");
|
|
301
301
|
},
|
|
302
302
|
m(i, a) {
|
|
303
|
-
|
|
303
|
+
V(i, e, a);
|
|
304
304
|
},
|
|
305
305
|
p(i, a) {
|
|
306
306
|
a[0] & /*vendorArray*/
|
|
@@ -308,7 +308,7 @@ function Ne(r) {
|
|
|
308
308
|
i[37].logo) && n(e, "src", l);
|
|
309
309
|
},
|
|
310
310
|
d(i) {
|
|
311
|
-
i &&
|
|
311
|
+
i && z(e);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -319,30 +319,30 @@ function De(r) {
|
|
|
319
319
|
), a, s, m, v, w = (
|
|
320
320
|
/*vendor*/
|
|
321
321
|
r[37].games.total + ""
|
|
322
|
-
), b,
|
|
322
|
+
), b, u;
|
|
323
323
|
return {
|
|
324
324
|
c() {
|
|
325
|
-
e =
|
|
325
|
+
e = g("div"), l = g("span"), a = B(i), s = O(), m = g("span"), v = B("("), b = B(w), u = B(")"), n(l, "class", "VendorName"), n(e, "class", "FilterItemLabel");
|
|
326
326
|
},
|
|
327
327
|
m(C, y) {
|
|
328
|
-
|
|
328
|
+
V(C, e, y), o(e, l), o(l, a), o(e, s), o(e, m), o(m, v), o(m, b), o(m, u);
|
|
329
329
|
},
|
|
330
330
|
p(C, y) {
|
|
331
331
|
y[0] & /*vendorArray*/
|
|
332
332
|
32 && i !== (i = /*vendor*/
|
|
333
|
-
C[37].name + "") &&
|
|
333
|
+
C[37].name + "") && R(a, i), y[0] & /*vendorArray*/
|
|
334
334
|
32 && w !== (w = /*vendor*/
|
|
335
|
-
C[37].games.total + "") &&
|
|
335
|
+
C[37].games.total + "") && R(b, w);
|
|
336
336
|
},
|
|
337
337
|
d(C) {
|
|
338
|
-
C &&
|
|
338
|
+
C && z(e);
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
function fe(r) {
|
|
343
|
-
let e, l, i, a, s, m, v, w, b,
|
|
343
|
+
let e, l, i, a, s, m, v, w, b, u, C, y;
|
|
344
344
|
function E() {
|
|
345
|
-
r[
|
|
345
|
+
r[26].call(
|
|
346
346
|
i,
|
|
347
347
|
/*each_value*/
|
|
348
348
|
r[38],
|
|
@@ -350,10 +350,10 @@ function fe(r) {
|
|
|
350
350
|
r[39]
|
|
351
351
|
);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function P() {
|
|
354
354
|
return (
|
|
355
355
|
/*click_handler_1*/
|
|
356
|
-
r[
|
|
356
|
+
r[27](
|
|
357
357
|
/*vendor*/
|
|
358
358
|
r[37]
|
|
359
359
|
)
|
|
@@ -374,16 +374,16 @@ function fe(r) {
|
|
|
374
374
|
let x = S(r), F = x && x(r);
|
|
375
375
|
return {
|
|
376
376
|
c() {
|
|
377
|
-
e =
|
|
377
|
+
e = g("li"), l = g("label"), i = g("input"), s = O(), m = g("span"), v = O(), F && F.c(), w = O(), n(i, "type", "checkbox"), n(i, "name", "checkbox"), i.__value = a = /*vendor*/
|
|
378
378
|
r[37].name, ne(i, i.__value), n(m, "class", "FiltersCheckmark"), n(l, "class", "FilterLabel"), n(e, "class", b = "FilterItem " + /*filterbylogo*/
|
|
379
|
-
(r[2] === "true" ? "FilterItemWithLogos" : "")), e.value =
|
|
379
|
+
(r[2] === "true" ? "FilterItemWithLogos" : "")), e.value = u = /*vendor*/
|
|
380
380
|
r[37].name;
|
|
381
381
|
},
|
|
382
382
|
m(p, c) {
|
|
383
|
-
|
|
383
|
+
V(p, e, c), o(e, l), o(l, i), i.checked = /*vendor*/
|
|
384
384
|
r[37].isFilterSelected, o(l, s), o(l, m), o(l, v), F && F.m(l, null), o(e, w), C || (y = [
|
|
385
385
|
te(i, "change", E),
|
|
386
|
-
te(i, "click",
|
|
386
|
+
te(i, "click", P)
|
|
387
387
|
], C = !0);
|
|
388
388
|
},
|
|
389
389
|
p(p, c) {
|
|
@@ -394,11 +394,11 @@ function fe(r) {
|
|
|
394
394
|
r[37].isFilterSelected), x === (x = S(r)) && F ? F.p(r, c) : (F && F.d(1), F = x && x(r), F && (F.c(), F.m(l, null))), c[0] & /*filterbylogo*/
|
|
395
395
|
4 && b !== (b = "FilterItem " + /*filterbylogo*/
|
|
396
396
|
(r[2] === "true" ? "FilterItemWithLogos" : "")) && n(e, "class", b), c[0] & /*vendorArray*/
|
|
397
|
-
32 &&
|
|
398
|
-
r[37].name) && (e.value =
|
|
397
|
+
32 && u !== (u = /*vendor*/
|
|
398
|
+
r[37].name) && (e.value = u);
|
|
399
399
|
},
|
|
400
400
|
d(p) {
|
|
401
|
-
p &&
|
|
401
|
+
p && z(e), F && F.d(), C = !1, ue(y);
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
}
|
|
@@ -417,10 +417,10 @@ function je(r) {
|
|
|
417
417
|
let i = l(r), a = i && i(r);
|
|
418
418
|
return {
|
|
419
419
|
c() {
|
|
420
|
-
e =
|
|
420
|
+
e = g("div"), a && a.c();
|
|
421
421
|
},
|
|
422
422
|
m(s, m) {
|
|
423
|
-
|
|
423
|
+
V(s, e, m), a && a.m(e, null), r[29](e);
|
|
424
424
|
},
|
|
425
425
|
p(s, m) {
|
|
426
426
|
i === (i = l(s)) && a ? a.p(s, m) : (a && a.d(1), a = i && i(s), a && (a.c(), a.m(e, null)));
|
|
@@ -428,14 +428,14 @@ function je(r) {
|
|
|
428
428
|
i: ie,
|
|
429
429
|
o: ie,
|
|
430
430
|
d(s) {
|
|
431
|
-
s &&
|
|
431
|
+
s && z(e), a && a.d(), r[29](null);
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
function ze(r, e, l) {
|
|
436
436
|
let i;
|
|
437
437
|
ve(r, Pe, (t) => l(11, i = t));
|
|
438
|
-
let { endpoint: a = "" } = e, { datasource: s = "" } = e, { lang: m = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid:
|
|
438
|
+
let { endpoint: a = "" } = e, { datasource: s = "" } = e, { lang: m = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid: u = "" } = e, { addfilterselector: C = "false" } = e, { addsortingselector: y = "false" } = e, { filterbylogo: E = "false" } = e, { mbsource: P } = e, { usesinglevendorfilter: S = "false" } = e, x = !1, F = window.navigator.userAgent, p = [], c = [], A = {}, M = !1, W = 0, U = !0, _, N = !1, D;
|
|
439
439
|
Ae({ withLocale: "en", translations: {} });
|
|
440
440
|
const T = () => {
|
|
441
441
|
fetch(v).then((d) => d.json()).then((d) => {
|
|
@@ -448,64 +448,64 @@ function ze(r, e, l) {
|
|
|
448
448
|
};
|
|
449
449
|
Object.keys(ce).forEach((t) => {
|
|
450
450
|
se(t, ce[t]);
|
|
451
|
-
}),
|
|
452
|
-
const
|
|
451
|
+
}), A[u] && (A = { [u]: [] });
|
|
452
|
+
const H = () => {
|
|
453
453
|
l(4, x = !x), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
454
|
-
},
|
|
454
|
+
}, Z = (t) => (l(9, U = !0), new Promise((d, f) => {
|
|
455
455
|
fetch(t).then((h) => h.json()).then((h) => {
|
|
456
456
|
h = h.items, d(h.items), l(6, c = []);
|
|
457
457
|
let le = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
458
|
-
const
|
|
458
|
+
const ge = S === "true" ? "*" : u;
|
|
459
459
|
h.forEach(($) => {
|
|
460
|
-
le || (le = { currentCategoryId: [] }), le[
|
|
461
|
-
}), l(5, p = h),
|
|
460
|
+
le || (le = { currentCategoryId: [] }), le[ge]?.indexOf($.id) >= 0 ? ($.isFilterSelected = !0, c.push($)) : $.isFilterSelected = !1;
|
|
461
|
+
}), l(5, p = h), G();
|
|
462
462
|
}).catch((h) => {
|
|
463
463
|
console.error(h), l(10, N = !0), f(h);
|
|
464
464
|
}).finally(() => {
|
|
465
|
-
l(9,
|
|
465
|
+
l(9, U = !1);
|
|
466
466
|
});
|
|
467
|
-
})),
|
|
467
|
+
})), J = (t) => {
|
|
468
468
|
let d = localStorage.getItem("vendorFiltersByCategory");
|
|
469
469
|
t.isFilterSelected = !t.isFilterSelected, !c.length || c.filter((h) => h.name === t.name).length == 0 ? c.push(t) : l(6, c = c.filter((h) => h.name !== t.name));
|
|
470
|
-
const f = S === "true" ? "*" :
|
|
471
|
-
d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(
|
|
470
|
+
const f = S === "true" ? "*" : u;
|
|
471
|
+
d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(A = {
|
|
472
472
|
[f]: c.map((h) => h.id)
|
|
473
|
-
})) : (d = JSON.parse(d), d[f] = c.map((h) => h.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href),
|
|
474
|
-
},
|
|
475
|
-
l(7, M = c.length === p.length || c.length == 0), l(8,
|
|
476
|
-
},
|
|
473
|
+
})) : (d = JSON.parse(d), d[f] = c.map((h) => h.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), G();
|
|
474
|
+
}, G = () => {
|
|
475
|
+
l(7, M = c.length === p.length || c.length == 0), l(8, W = c.length);
|
|
476
|
+
}, q = () => {
|
|
477
477
|
if (p.length && S === "true")
|
|
478
478
|
return;
|
|
479
479
|
const t = new URL(`${a}/v1/casino/vendors`);
|
|
480
|
-
l(4, x = !1), t.searchParams.append("fields", "id,name,logo,subVendors,games"), t.searchParams.append("language", m), t.searchParams.append("datasource", s), t.searchParams.append("platform", _e(F)), S === "true" || ((
|
|
481
|
-
},
|
|
482
|
-
l(6, c = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(
|
|
483
|
-
[S === "true" ? "*" :
|
|
480
|
+
l(4, x = !1), t.searchParams.append("fields", "id,name,logo,subVendors,games"), t.searchParams.append("language", m), t.searchParams.append("datasource", s), t.searchParams.append("platform", _e(F)), S === "true" || ((u.match(/\$/g) || []).length > 1 ? (t.searchParams.append("filter", `games(subGroups=${u})`), t.searchParams.append("subVendors", `games(subGroups=${u})`)) : t.searchParams.append("filter", `games(groups=${u})`)), Z(t);
|
|
481
|
+
}, K = () => {
|
|
482
|
+
l(6, c = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(A = {
|
|
483
|
+
[S === "true" ? "*" : u]: c.map((t) => t.id)
|
|
484
484
|
})), p.forEach((t) => t.isFilterSelected = !1), l(5, p), window.postMessage({ type: "ApplyFilters" }, window.location.href), l(7, M = !0), l(4, x = !1);
|
|
485
|
-
},
|
|
485
|
+
}, X = (t) => {
|
|
486
486
|
t.data.type == "SortingOpened" && l(4, x = !1);
|
|
487
487
|
};
|
|
488
|
-
we(() => (window.addEventListener("message",
|
|
489
|
-
window.removeEventListener("message",
|
|
488
|
+
we(() => (window.addEventListener("message", X, !1), () => {
|
|
489
|
+
window.emMessageBus != null && D && D.unsubscribe(), window.removeEventListener("message", X);
|
|
490
490
|
}));
|
|
491
|
-
const Y = () =>
|
|
492
|
-
function
|
|
491
|
+
const Y = () => H();
|
|
492
|
+
function Q(t, d) {
|
|
493
493
|
t[d].isFilterSelected = this.checked, l(5, p);
|
|
494
494
|
}
|
|
495
|
-
const I = (t) =>
|
|
495
|
+
const I = (t) => J(t), j = () => K();
|
|
496
496
|
function k(t) {
|
|
497
497
|
ke[t ? "unshift" : "push"](() => {
|
|
498
498
|
_ = t, l(3, _);
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
return r.$$set = (t) => {
|
|
502
|
-
"endpoint" in t && l(15, a = t.endpoint), "datasource" in t && l(16, s = t.datasource), "lang" in t && l(17, m = t.lang), "translationurl" in t && l(18, v = t.translationurl), "clientstyling" in t && l(19, w = t.clientstyling), "clientstylingurl" in t && l(20, b = t.clientstylingurl), "categoryid" in t && l(21,
|
|
502
|
+
"endpoint" in t && l(15, a = t.endpoint), "datasource" in t && l(16, s = t.datasource), "lang" in t && l(17, m = t.lang), "translationurl" in t && l(18, v = t.translationurl), "clientstyling" in t && l(19, w = t.clientstyling), "clientstylingurl" in t && l(20, b = t.clientstylingurl), "categoryid" in t && l(21, u = t.categoryid), "addfilterselector" in t && l(0, C = t.addfilterselector), "addsortingselector" in t && l(1, y = t.addsortingselector), "filterbylogo" in t && l(2, E = t.filterbylogo), "mbsource" in t && l(22, P = t.mbsource), "usesinglevendorfilter" in t && l(23, S = t.usesinglevendorfilter);
|
|
503
503
|
}, r.$$.update = () => {
|
|
504
504
|
r.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
|
505
|
-
2195460 && a && s &&
|
|
505
|
+
2195460 && a && s && u && E && q(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
506
506
|
524296 && w && _ && xe(_, w), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
507
|
-
1048584 && b && _ && Se(_, b), r.$$.dirty[0] & /*customStylingContainer,
|
|
508
|
-
|
|
507
|
+
1048584 && b && _ && Se(_, b), r.$$.dirty[0] & /*mbsource, customStylingContainer, styleSubscription*/
|
|
508
|
+
20971528 && P && _ && l(24, D = Ie(_, `${P}.Style`, D, !0)), r.$$.dirty[0] & /*translationurl*/
|
|
509
509
|
262144 && v && T();
|
|
510
510
|
}, [
|
|
511
511
|
C,
|
|
@@ -516,26 +516,27 @@ function ze(r, e, l) {
|
|
|
516
516
|
p,
|
|
517
517
|
c,
|
|
518
518
|
M,
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
W,
|
|
520
|
+
U,
|
|
521
521
|
N,
|
|
522
522
|
i,
|
|
523
|
-
W,
|
|
524
523
|
H,
|
|
525
|
-
|
|
524
|
+
J,
|
|
525
|
+
K,
|
|
526
526
|
a,
|
|
527
527
|
s,
|
|
528
528
|
m,
|
|
529
529
|
v,
|
|
530
530
|
w,
|
|
531
531
|
b,
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
u,
|
|
533
|
+
P,
|
|
534
534
|
S,
|
|
535
|
+
D,
|
|
535
536
|
Y,
|
|
536
|
-
|
|
537
|
+
Q,
|
|
537
538
|
I,
|
|
538
|
-
|
|
539
|
+
j,
|
|
539
540
|
k
|
|
540
541
|
];
|
|
541
542
|
}
|