@everymatrix/casino-navigation-search 1.94.3 → 1.94.5
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/{CasinoCategories-DPlQAMMs.js → CasinoCategories-ByicBgWO.js} +33 -33
- package/components/{CasinoCategories-DUHuUF3Y.js → CasinoCategories-DTcXLj72.js} +58 -58
- package/components/{CasinoCategoriesProviders-AZK-LyHz.js → CasinoCategoriesProviders-B8VOvlG8.js} +33 -33
- package/components/{CasinoCategoriesProviders-DnAFzl9y.js → CasinoCategoriesProviders-j0cgF-Ja.js} +33 -33
- package/components/{CasinoGameThumbnail-BmHSvVP3.js → CasinoGameThumbnail-D5CtYtkU.js} +2 -2
- package/components/{CasinoGameThumbnail-BMUwvi16.js → CasinoGameThumbnail-DqMfdwi1.js} +2 -2
- package/components/{CasinoNavigationSearch-D2TFQtTD.js → CasinoNavigationSearch-COt0j-LI.js} +35 -35
- package/components/{CasinoNavigationSearch-CCkQbdS5.js → CasinoNavigationSearch-dBPLA2J5.js} +35 -35
- package/components/{CasinoProviders-COFyT8ms.js → CasinoProviders-BGs0QyyE.js} +49 -49
- package/components/{CasinoProviders-Ba3olyJg.js → CasinoProviders-CkTeAjHI.js} +59 -59
- package/components/{CasinoSearch-y9Hu7PaC.js → CasinoSearch-Cho1l1vu.js} +111 -111
- package/components/{CasinoSearch-B8ruAPZm.js → CasinoSearch-KnE4RY5E.js} +109 -109
- package/es2015/casino-navigation-search.js +1 -1
- package/esnext/casino-navigation-search.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as ee,
|
|
2
|
-
import {
|
|
1
|
+
import { S as ee, m as te, t as ae, l as j, b as ie, q as P, h as I, n as K, i as b, e as oe, r as se, d as re, c as x, k as U, g as B, y as S, a as c, F as E, A as O, B as q, x as L, p as W, u as le, v as ne, w as ge, f as ce } from "./CasinoNavigationSearch-dBPLA2J5.js";
|
|
2
|
+
import { b as ue, a as de, $ as he } from "./CasinoSearch-Cho1l1vu.js";
|
|
3
3
|
import "../stencil/ui-image-CP8Lp7fB.js";
|
|
4
|
-
function
|
|
4
|
+
function D(t, e) {
|
|
5
5
|
ue(t, e);
|
|
6
6
|
}
|
|
7
7
|
function fe(t) {
|
|
@@ -155,7 +155,7 @@ function Ce(t) {
|
|
|
155
155
|
g = O(), v = b("h4"), _ = E(C), w = O();
|
|
156
156
|
for (let o = 0; o < f.length; o += 1)
|
|
157
157
|
f[o].c();
|
|
158
|
-
|
|
158
|
+
x(a, "class", "CategoryTitle"), x(v, "class", "CategoryTitle"), x(e, "class", "CasinoCategories");
|
|
159
159
|
},
|
|
160
160
|
m(o, m) {
|
|
161
161
|
K(o, e, m), c(e, a), c(a, n), c(e, d);
|
|
@@ -202,7 +202,7 @@ function Ce(t) {
|
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
d(o) {
|
|
205
|
-
o && I(e),
|
|
205
|
+
o && I(e), B(l, o), B(f, o);
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
}
|
|
@@ -210,7 +210,7 @@ function pe(t) {
|
|
|
210
210
|
let e;
|
|
211
211
|
return {
|
|
212
212
|
c() {
|
|
213
|
-
e = b("p"), e.textContent = "Loading, please wait...",
|
|
213
|
+
e = b("p"), e.textContent = "Loading, please wait...", x(e, "class", "Message");
|
|
214
214
|
},
|
|
215
215
|
m(a, r) {
|
|
216
216
|
K(a, e, r);
|
|
@@ -232,7 +232,7 @@ function Q(t) {
|
|
|
232
232
|
/*$_*/
|
|
233
233
|
t[5]("games") + ""
|
|
234
234
|
), m, i, p, A;
|
|
235
|
-
function
|
|
235
|
+
function z() {
|
|
236
236
|
return (
|
|
237
237
|
/*click_handler*/
|
|
238
238
|
t[15](
|
|
@@ -245,12 +245,12 @@ function Q(t) {
|
|
|
245
245
|
c() {
|
|
246
246
|
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), h = b("p"), u = E(l), f = O(), m = E(o), q(a.src, r = /*category*/
|
|
247
247
|
t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
|
|
248
|
-
t[23].name), L(a, "class", "CategoryImage"),
|
|
248
|
+
t[23].name), L(a, "class", "CategoryImage"), x(g, "class", "CategoryTextContainer"), x(e, "class", i = "Category " + /*activecategory*/
|
|
249
249
|
(t[0] === /*category*/
|
|
250
250
|
t[23].id ? "Active" : ""));
|
|
251
251
|
},
|
|
252
252
|
m(k, y) {
|
|
253
|
-
K(k, e, y), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), p || (A = W(e, "click",
|
|
253
|
+
K(k, e, y), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), p || (A = W(e, "click", z), p = !0);
|
|
254
254
|
},
|
|
255
255
|
p(k, y) {
|
|
256
256
|
t = k, y & /*topCategories*/
|
|
@@ -266,7 +266,7 @@ function Q(t) {
|
|
|
266
266
|
t[5]("games") + "") && S(m, o), y & /*activecategory, topCategories*/
|
|
267
267
|
9 && i !== (i = "Category " + /*activecategory*/
|
|
268
268
|
(t[0] === /*category*/
|
|
269
|
-
t[23].id ? "Active" : "")) &&
|
|
269
|
+
t[23].id ? "Active" : "")) && x(e, "class", i);
|
|
270
270
|
},
|
|
271
271
|
d(k) {
|
|
272
272
|
k && I(e), p = !1, A();
|
|
@@ -283,7 +283,7 @@ function V(t) {
|
|
|
283
283
|
), u, f, o = (
|
|
284
284
|
/*$_*/
|
|
285
285
|
t[5]("games") + ""
|
|
286
|
-
), m, i, p, A,
|
|
286
|
+
), m, i, p, A, z;
|
|
287
287
|
function k() {
|
|
288
288
|
return (
|
|
289
289
|
/*click_handler_1*/
|
|
@@ -297,12 +297,12 @@ function V(t) {
|
|
|
297
297
|
c() {
|
|
298
298
|
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), h = b("p"), u = E(l), f = O(), m = E(o), i = O(), q(a.src, r = /*category*/
|
|
299
299
|
t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
|
|
300
|
-
t[23].name), L(a, "class", "CategoryImage"),
|
|
300
|
+
t[23].name), L(a, "class", "CategoryImage"), x(g, "class", "CategoryTextContainer"), x(e, "class", p = "Category " + /*activecategory*/
|
|
301
301
|
(t[0] === /*category*/
|
|
302
302
|
t[23].id ? "Active" : ""));
|
|
303
303
|
},
|
|
304
304
|
m(y, T) {
|
|
305
|
-
K(y, e, T), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), c(e, i), A || (
|
|
305
|
+
K(y, e, T), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), c(e, i), A || (z = W(e, "click", k), A = !0);
|
|
306
306
|
},
|
|
307
307
|
p(y, T) {
|
|
308
308
|
t = y, T & /*otherCategories*/
|
|
@@ -318,10 +318,10 @@ function V(t) {
|
|
|
318
318
|
t[5]("games") + "") && S(m, o), T & /*activecategory, otherCategories*/
|
|
319
319
|
17 && p !== (p = "Category " + /*activecategory*/
|
|
320
320
|
(t[0] === /*category*/
|
|
321
|
-
t[23].id ? "Active" : "")) &&
|
|
321
|
+
t[23].id ? "Active" : "")) && x(e, "class", p);
|
|
322
322
|
},
|
|
323
323
|
d(y) {
|
|
324
|
-
y && I(e), A = !1,
|
|
324
|
+
y && I(e), A = !1, z();
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
}
|
|
@@ -358,28 +358,28 @@ function ye(t, e, a) {
|
|
|
358
358
|
const m = [];
|
|
359
359
|
let i = [], p = [];
|
|
360
360
|
Object.keys(Y).forEach((s) => {
|
|
361
|
-
|
|
361
|
+
D(s, Y[s]);
|
|
362
362
|
});
|
|
363
363
|
const A = () => {
|
|
364
364
|
fetch(h).then((F) => F.json()).then((F) => {
|
|
365
365
|
Object.keys(F).forEach((N) => {
|
|
366
|
-
|
|
366
|
+
D(N, F[N]);
|
|
367
367
|
});
|
|
368
368
|
}).catch((F) => {
|
|
369
369
|
console.log(F);
|
|
370
370
|
});
|
|
371
|
-
},
|
|
371
|
+
}, z = () => {
|
|
372
372
|
a(2, o = !0);
|
|
373
373
|
const s = new URL(`${n}/v1/casino/groups/${d}`);
|
|
374
374
|
s.searchParams.append("language", g), fetch(s).then((F) => F.json()).then((F) => {
|
|
375
375
|
a(2, o = !1);
|
|
376
|
-
const N = C.split(",").map((
|
|
376
|
+
const N = C.split(",").map((M) => M.trim());
|
|
377
377
|
m.push(...F.items);
|
|
378
|
-
const R = m.filter((
|
|
379
|
-
var
|
|
380
|
-
return ((
|
|
378
|
+
const R = m.filter((M) => !N.some(($) => {
|
|
379
|
+
var G;
|
|
380
|
+
return ((G = M.flags) == null ? void 0 : G.indexOf($)) >= 0;
|
|
381
381
|
}));
|
|
382
|
-
a(3, i = R.filter((
|
|
382
|
+
a(3, i = R.filter((M) => M.isTopCategory === !0)), a(4, p = R.filter((M) => M.isTopCategory === !1));
|
|
383
383
|
});
|
|
384
384
|
}, k = (s) => {
|
|
385
385
|
window.postMessage({ type: "OpenGameCategory", categoryId: s }, window.location.href);
|
|
@@ -398,7 +398,7 @@ function ye(t, e, a) {
|
|
|
398
398
|
"endpoint" in s && a(7, n = s.endpoint), "datasource" in s && a(8, d = s.datasource), "lang" in s && a(9, g = s.lang), "activecategory" in s && a(0, v = s.activecategory), "excludedflags" in s && a(10, C = s.excludedflags), "clientstyling" in s && a(11, _ = s.clientstyling), "clientstylingurl" in s && a(12, w = s.clientstylingurl), "translationurl" in s && a(13, h = s.translationurl), "mbsource" in s && a(14, l = s.mbsource);
|
|
399
399
|
}, t.$$.update = () => {
|
|
400
400
|
t.$$.dirty & /*endpoint, datasource*/
|
|
401
|
-
384 && n && d &&
|
|
401
|
+
384 && n && d && z(), t.$$.dirty & /*translationurl*/
|
|
402
402
|
8192 && h && A(), t.$$.dirty & /*lang*/
|
|
403
403
|
512 && g && y(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
404
404
|
2050 && _ && u && le(u, _), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
@@ -451,55 +451,55 @@ class ve extends ee {
|
|
|
451
451
|
return this.$$.ctx[7];
|
|
452
452
|
}
|
|
453
453
|
set endpoint(e) {
|
|
454
|
-
this.$$set({ endpoint: e }),
|
|
454
|
+
this.$$set({ endpoint: e }), j();
|
|
455
455
|
}
|
|
456
456
|
get datasource() {
|
|
457
457
|
return this.$$.ctx[8];
|
|
458
458
|
}
|
|
459
459
|
set datasource(e) {
|
|
460
|
-
this.$$set({ datasource: e }),
|
|
460
|
+
this.$$set({ datasource: e }), j();
|
|
461
461
|
}
|
|
462
462
|
get lang() {
|
|
463
463
|
return this.$$.ctx[9];
|
|
464
464
|
}
|
|
465
465
|
set lang(e) {
|
|
466
|
-
this.$$set({ lang: e }),
|
|
466
|
+
this.$$set({ lang: e }), j();
|
|
467
467
|
}
|
|
468
468
|
get activecategory() {
|
|
469
469
|
return this.$$.ctx[0];
|
|
470
470
|
}
|
|
471
471
|
set activecategory(e) {
|
|
472
|
-
this.$$set({ activecategory: e }),
|
|
472
|
+
this.$$set({ activecategory: e }), j();
|
|
473
473
|
}
|
|
474
474
|
get excludedflags() {
|
|
475
475
|
return this.$$.ctx[10];
|
|
476
476
|
}
|
|
477
477
|
set excludedflags(e) {
|
|
478
|
-
this.$$set({ excludedflags: e }),
|
|
478
|
+
this.$$set({ excludedflags: e }), j();
|
|
479
479
|
}
|
|
480
480
|
get clientstyling() {
|
|
481
481
|
return this.$$.ctx[11];
|
|
482
482
|
}
|
|
483
483
|
set clientstyling(e) {
|
|
484
|
-
this.$$set({ clientstyling: e }),
|
|
484
|
+
this.$$set({ clientstyling: e }), j();
|
|
485
485
|
}
|
|
486
486
|
get clientstylingurl() {
|
|
487
487
|
return this.$$.ctx[12];
|
|
488
488
|
}
|
|
489
489
|
set clientstylingurl(e) {
|
|
490
|
-
this.$$set({ clientstylingurl: e }),
|
|
490
|
+
this.$$set({ clientstylingurl: e }), j();
|
|
491
491
|
}
|
|
492
492
|
get translationurl() {
|
|
493
493
|
return this.$$.ctx[13];
|
|
494
494
|
}
|
|
495
495
|
set translationurl(e) {
|
|
496
|
-
this.$$set({ translationurl: e }),
|
|
496
|
+
this.$$set({ translationurl: e }), j();
|
|
497
497
|
}
|
|
498
498
|
get mbsource() {
|
|
499
499
|
return this.$$.ctx[14];
|
|
500
500
|
}
|
|
501
501
|
set mbsource(e) {
|
|
502
|
-
this.$$set({ mbsource: e }),
|
|
502
|
+
this.$$set({ mbsource: e }), j();
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
ce(ve, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as $,
|
|
2
|
-
import {
|
|
1
|
+
import { S as $, m as ee, t as te, l as j, b as ae, q as P, h as I, n as K, i as b, e as ie, r as oe, d as se, c as x, k as U, g as G, y as S, a as c, F as E, A as O, B as q, x as L, p as V, u as re, v as le, w as ne, f as ge } from "./CasinoNavigationSearch-COt0j-LI.js";
|
|
2
|
+
import { b as ce, a as ue, $ as de } from "./CasinoSearch-KnE4RY5E.js";
|
|
3
3
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
4
|
-
function
|
|
4
|
+
function B(t, e) {
|
|
5
5
|
ce(t, e);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function he(t) {
|
|
8
8
|
ue.set(t);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const D = {
|
|
11
11
|
en: {
|
|
12
12
|
topCategories: "Top Categories",
|
|
13
13
|
otherCategories: "Other Categories",
|
|
@@ -117,7 +117,7 @@ const B = {
|
|
|
117
117
|
games: "games"
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
function
|
|
120
|
+
function fe(t) {
|
|
121
121
|
ae(t, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
122
122
|
}
|
|
123
123
|
function Y(t, e, a) {
|
|
@@ -135,53 +135,53 @@ function me(t) {
|
|
|
135
135
|
), n, d, g, v, C = (
|
|
136
136
|
/*$_*/
|
|
137
137
|
t[5]("otherCategories") + ""
|
|
138
|
-
), _, w,
|
|
138
|
+
), _, w, h = U(
|
|
139
139
|
/*topCategories*/
|
|
140
140
|
t[3]
|
|
141
141
|
), l = [];
|
|
142
|
-
for (let o = 0; o <
|
|
143
|
-
l[o] = J(H(t,
|
|
142
|
+
for (let o = 0; o < h.length; o += 1)
|
|
143
|
+
l[o] = J(H(t, h, o));
|
|
144
144
|
let u = U(
|
|
145
145
|
/*otherCategories*/
|
|
146
146
|
t[4]
|
|
147
|
-
),
|
|
147
|
+
), f = [];
|
|
148
148
|
for (let o = 0; o < u.length; o += 1)
|
|
149
|
-
|
|
149
|
+
f[o] = Q(Y(t, u, o));
|
|
150
150
|
return {
|
|
151
151
|
c() {
|
|
152
152
|
e = b("div"), a = b("h4"), n = E(r), d = O();
|
|
153
153
|
for (let o = 0; o < l.length; o += 1)
|
|
154
154
|
l[o].c();
|
|
155
155
|
g = O(), v = b("h4"), _ = E(C), w = O();
|
|
156
|
-
for (let o = 0; o <
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
for (let o = 0; o < f.length; o += 1)
|
|
157
|
+
f[o].c();
|
|
158
|
+
x(a, "class", "CategoryTitle"), x(v, "class", "CategoryTitle"), x(e, "class", "CasinoCategories");
|
|
159
159
|
},
|
|
160
160
|
m(o, m) {
|
|
161
161
|
K(o, e, m), c(e, a), c(a, n), c(e, d);
|
|
162
162
|
for (let i = 0; i < l.length; i += 1)
|
|
163
163
|
l[i] && l[i].m(e, null);
|
|
164
164
|
c(e, g), c(e, v), c(v, _), c(e, w);
|
|
165
|
-
for (let i = 0; i <
|
|
166
|
-
|
|
165
|
+
for (let i = 0; i < f.length; i += 1)
|
|
166
|
+
f[i] && f[i].m(e, null);
|
|
167
167
|
},
|
|
168
168
|
p(o, m) {
|
|
169
169
|
if (m & /*$_*/
|
|
170
170
|
32 && r !== (r = /*$_*/
|
|
171
171
|
o[5]("topCategories") + "") && S(n, r), m & /*activecategory, topCategories, openGameCategory, $_*/
|
|
172
172
|
105) {
|
|
173
|
-
|
|
173
|
+
h = U(
|
|
174
174
|
/*topCategories*/
|
|
175
175
|
o[3]
|
|
176
176
|
);
|
|
177
177
|
let i;
|
|
178
|
-
for (i = 0; i <
|
|
179
|
-
const p = H(o,
|
|
178
|
+
for (i = 0; i < h.length; i += 1) {
|
|
179
|
+
const p = H(o, h, i);
|
|
180
180
|
l[i] ? l[i].p(p, m) : (l[i] = J(p), l[i].c(), l[i].m(e, g));
|
|
181
181
|
}
|
|
182
182
|
for (; i < l.length; i += 1)
|
|
183
183
|
l[i].d(1);
|
|
184
|
-
l.length =
|
|
184
|
+
l.length = h.length;
|
|
185
185
|
}
|
|
186
186
|
if (m & /*$_*/
|
|
187
187
|
32 && C !== (C = /*$_*/
|
|
@@ -194,15 +194,15 @@ function me(t) {
|
|
|
194
194
|
let i;
|
|
195
195
|
for (i = 0; i < u.length; i += 1) {
|
|
196
196
|
const p = Y(o, u, i);
|
|
197
|
-
|
|
197
|
+
f[i] ? f[i].p(p, m) : (f[i] = Q(p), f[i].c(), f[i].m(e, null));
|
|
198
198
|
}
|
|
199
|
-
for (; i <
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
for (; i < f.length; i += 1)
|
|
200
|
+
f[i].d(1);
|
|
201
|
+
f.length = u.length;
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
d(o) {
|
|
205
|
-
o && I(e),
|
|
205
|
+
o && I(e), G(l, o), G(f, o);
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
}
|
|
@@ -210,7 +210,7 @@ function Ce(t) {
|
|
|
210
210
|
let e;
|
|
211
211
|
return {
|
|
212
212
|
c() {
|
|
213
|
-
e = b("p"), e.textContent = "Loading, please wait...",
|
|
213
|
+
e = b("p"), e.textContent = "Loading, please wait...", x(e, "class", "Message");
|
|
214
214
|
},
|
|
215
215
|
m(a, r) {
|
|
216
216
|
K(a, e, r);
|
|
@@ -225,10 +225,10 @@ function J(t) {
|
|
|
225
225
|
let e, a, r, n, d, g, v, C = (
|
|
226
226
|
/*category*/
|
|
227
227
|
t[23].name + ""
|
|
228
|
-
), _, w,
|
|
228
|
+
), _, w, h, l = (
|
|
229
229
|
/*category*/
|
|
230
230
|
t[23].games.count + ""
|
|
231
|
-
), u,
|
|
231
|
+
), u, f, o = (
|
|
232
232
|
/*$_*/
|
|
233
233
|
t[5]("games") + ""
|
|
234
234
|
), m, i, p, A;
|
|
@@ -243,14 +243,14 @@ function J(t) {
|
|
|
243
243
|
}
|
|
244
244
|
return {
|
|
245
245
|
c() {
|
|
246
|
-
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(),
|
|
246
|
+
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), h = b("p"), u = E(l), f = O(), m = E(o), q(a.src, r = /*category*/
|
|
247
247
|
t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
|
|
248
|
-
t[23].name), L(a, "class", "CategoryImage"),
|
|
248
|
+
t[23].name), L(a, "class", "CategoryImage"), x(g, "class", "CategoryTextContainer"), x(e, "class", i = "Category " + /*activecategory*/
|
|
249
249
|
(t[0] === /*category*/
|
|
250
250
|
t[23].id ? "Active" : ""));
|
|
251
251
|
},
|
|
252
252
|
m(k, y) {
|
|
253
|
-
K(k, e, y), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g,
|
|
253
|
+
K(k, e, y), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), p || (A = V(e, "click", z), p = !0);
|
|
254
254
|
},
|
|
255
255
|
p(k, y) {
|
|
256
256
|
t = k, y & /*topCategories*/
|
|
@@ -266,7 +266,7 @@ function J(t) {
|
|
|
266
266
|
t[5]("games") + "") && S(m, o), y & /*activecategory, topCategories*/
|
|
267
267
|
9 && i !== (i = "Category " + /*activecategory*/
|
|
268
268
|
(t[0] === /*category*/
|
|
269
|
-
t[23].id ? "Active" : "")) &&
|
|
269
|
+
t[23].id ? "Active" : "")) && x(e, "class", i);
|
|
270
270
|
},
|
|
271
271
|
d(k) {
|
|
272
272
|
k && I(e), p = !1, A();
|
|
@@ -277,10 +277,10 @@ function Q(t) {
|
|
|
277
277
|
let e, a, r, n, d, g, v, C = (
|
|
278
278
|
/*category*/
|
|
279
279
|
t[23].name + ""
|
|
280
|
-
), _, w,
|
|
280
|
+
), _, w, h, l = (
|
|
281
281
|
/*category*/
|
|
282
282
|
t[23].games.count + ""
|
|
283
|
-
), u,
|
|
283
|
+
), u, f, o = (
|
|
284
284
|
/*$_*/
|
|
285
285
|
t[5]("games") + ""
|
|
286
286
|
), m, i, p, A, z;
|
|
@@ -295,14 +295,14 @@ function Q(t) {
|
|
|
295
295
|
}
|
|
296
296
|
return {
|
|
297
297
|
c() {
|
|
298
|
-
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(),
|
|
298
|
+
e = b("div"), a = b("ui-image"), d = O(), g = b("div"), v = b("p"), _ = E(C), w = O(), h = b("p"), u = E(l), f = O(), m = E(o), i = O(), q(a.src, r = /*category*/
|
|
299
299
|
t[23].icon) || L(a, "src", r), L(a, "alt", n = /*category*/
|
|
300
|
-
t[23].name), L(a, "class", "CategoryImage"),
|
|
300
|
+
t[23].name), L(a, "class", "CategoryImage"), x(g, "class", "CategoryTextContainer"), x(e, "class", p = "Category " + /*activecategory*/
|
|
301
301
|
(t[0] === /*category*/
|
|
302
302
|
t[23].id ? "Active" : ""));
|
|
303
303
|
},
|
|
304
304
|
m(y, T) {
|
|
305
|
-
K(y, e, T), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g,
|
|
305
|
+
K(y, e, T), c(e, a), c(e, d), c(e, g), c(g, v), c(v, _), c(g, w), c(g, h), c(h, u), c(h, f), c(h, m), c(e, i), A || (z = V(e, "click", k), A = !0);
|
|
306
306
|
},
|
|
307
307
|
p(y, T) {
|
|
308
308
|
t = y, T & /*otherCategories*/
|
|
@@ -318,7 +318,7 @@ function Q(t) {
|
|
|
318
318
|
t[5]("games") + "") && S(m, o), T & /*activecategory, otherCategories*/
|
|
319
319
|
17 && p !== (p = "Category " + /*activecategory*/
|
|
320
320
|
(t[0] === /*category*/
|
|
321
|
-
t[23].id ? "Active" : "")) &&
|
|
321
|
+
t[23].id ? "Active" : "")) && x(e, "class", p);
|
|
322
322
|
},
|
|
323
323
|
d(y) {
|
|
324
324
|
y && I(e), A = !1, z();
|
|
@@ -354,16 +354,16 @@ function pe(t) {
|
|
|
354
354
|
function _e(t, e, a) {
|
|
355
355
|
let r;
|
|
356
356
|
ie(t, de, (s) => a(5, r = s));
|
|
357
|
-
let { endpoint: n = "" } = e, { datasource: d = "" } = e, { lang: g = "en" } = e, { activecategory: v = "" } = e, { excludedflags: C = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: w = "" } = e, { translationurl:
|
|
357
|
+
let { endpoint: n = "" } = e, { datasource: d = "" } = e, { lang: g = "en" } = e, { activecategory: v = "" } = e, { excludedflags: C = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: w = "" } = e, { translationurl: h = "" } = e, { mbsource: l } = e, u, f, o = !1;
|
|
358
358
|
const m = [];
|
|
359
359
|
let i = [], p = [];
|
|
360
|
-
Object.keys(
|
|
361
|
-
|
|
360
|
+
Object.keys(D).forEach((s) => {
|
|
361
|
+
B(s, D[s]);
|
|
362
362
|
});
|
|
363
363
|
const A = () => {
|
|
364
|
-
fetch(
|
|
364
|
+
fetch(h).then((F) => F.json()).then((F) => {
|
|
365
365
|
Object.keys(F).forEach((N) => {
|
|
366
|
-
|
|
366
|
+
B(N, F[N]);
|
|
367
367
|
});
|
|
368
368
|
}).catch((F) => {
|
|
369
369
|
console.log(F);
|
|
@@ -381,7 +381,7 @@ function _e(t, e, a) {
|
|
|
381
381
|
}, k = (s) => {
|
|
382
382
|
window.postMessage({ type: "OpenGameCategory", categoryId: s }, window.location.href);
|
|
383
383
|
}, y = () => {
|
|
384
|
-
|
|
384
|
+
he(g);
|
|
385
385
|
};
|
|
386
386
|
oe(() => () => {
|
|
387
387
|
});
|
|
@@ -392,15 +392,15 @@ function _e(t, e, a) {
|
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
return t.$$set = (s) => {
|
|
395
|
-
"endpoint" in s && a(7, n = s.endpoint), "datasource" in s && a(8, d = s.datasource), "lang" in s && a(9, g = s.lang), "activecategory" in s && a(0, v = s.activecategory), "excludedflags" in s && a(10, C = s.excludedflags), "clientstyling" in s && a(11, _ = s.clientstyling), "clientstylingurl" in s && a(12, w = s.clientstylingurl), "translationurl" in s && a(13,
|
|
395
|
+
"endpoint" in s && a(7, n = s.endpoint), "datasource" in s && a(8, d = s.datasource), "lang" in s && a(9, g = s.lang), "activecategory" in s && a(0, v = s.activecategory), "excludedflags" in s && a(10, C = s.excludedflags), "clientstyling" in s && a(11, _ = s.clientstyling), "clientstylingurl" in s && a(12, w = s.clientstylingurl), "translationurl" in s && a(13, h = s.translationurl), "mbsource" in s && a(14, l = s.mbsource);
|
|
396
396
|
}, t.$$.update = () => {
|
|
397
397
|
t.$$.dirty & /*endpoint, datasource*/
|
|
398
398
|
384 && n && d && z(), t.$$.dirty & /*translationurl*/
|
|
399
|
-
8192 &&
|
|
399
|
+
8192 && h && A(), t.$$.dirty & /*lang*/
|
|
400
400
|
512 && g && y(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
401
401
|
2050 && _ && u && re(u, _), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
402
402
|
4098 && w && u && le(u, w), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
403
|
-
16386 && l && u && ne(u, `${l}.Style`,
|
|
403
|
+
16386 && l && u && ne(u, `${l}.Style`, f);
|
|
404
404
|
}, [
|
|
405
405
|
v,
|
|
406
406
|
u,
|
|
@@ -415,7 +415,7 @@ function _e(t, e, a) {
|
|
|
415
415
|
C,
|
|
416
416
|
_,
|
|
417
417
|
w,
|
|
418
|
-
|
|
418
|
+
h,
|
|
419
419
|
l,
|
|
420
420
|
T,
|
|
421
421
|
W,
|
|
@@ -441,62 +441,62 @@ class ye extends $ {
|
|
|
441
441
|
translationurl: 13,
|
|
442
442
|
mbsource: 14
|
|
443
443
|
},
|
|
444
|
-
|
|
444
|
+
fe
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
447
|
get endpoint() {
|
|
448
448
|
return this.$$.ctx[7];
|
|
449
449
|
}
|
|
450
450
|
set endpoint(e) {
|
|
451
|
-
this.$$set({ endpoint: e }),
|
|
451
|
+
this.$$set({ endpoint: e }), j();
|
|
452
452
|
}
|
|
453
453
|
get datasource() {
|
|
454
454
|
return this.$$.ctx[8];
|
|
455
455
|
}
|
|
456
456
|
set datasource(e) {
|
|
457
|
-
this.$$set({ datasource: e }),
|
|
457
|
+
this.$$set({ datasource: e }), j();
|
|
458
458
|
}
|
|
459
459
|
get lang() {
|
|
460
460
|
return this.$$.ctx[9];
|
|
461
461
|
}
|
|
462
462
|
set lang(e) {
|
|
463
|
-
this.$$set({ lang: e }),
|
|
463
|
+
this.$$set({ lang: e }), j();
|
|
464
464
|
}
|
|
465
465
|
get activecategory() {
|
|
466
466
|
return this.$$.ctx[0];
|
|
467
467
|
}
|
|
468
468
|
set activecategory(e) {
|
|
469
|
-
this.$$set({ activecategory: e }),
|
|
469
|
+
this.$$set({ activecategory: e }), j();
|
|
470
470
|
}
|
|
471
471
|
get excludedflags() {
|
|
472
472
|
return this.$$.ctx[10];
|
|
473
473
|
}
|
|
474
474
|
set excludedflags(e) {
|
|
475
|
-
this.$$set({ excludedflags: e }),
|
|
475
|
+
this.$$set({ excludedflags: e }), j();
|
|
476
476
|
}
|
|
477
477
|
get clientstyling() {
|
|
478
478
|
return this.$$.ctx[11];
|
|
479
479
|
}
|
|
480
480
|
set clientstyling(e) {
|
|
481
|
-
this.$$set({ clientstyling: e }),
|
|
481
|
+
this.$$set({ clientstyling: e }), j();
|
|
482
482
|
}
|
|
483
483
|
get clientstylingurl() {
|
|
484
484
|
return this.$$.ctx[12];
|
|
485
485
|
}
|
|
486
486
|
set clientstylingurl(e) {
|
|
487
|
-
this.$$set({ clientstylingurl: e }),
|
|
487
|
+
this.$$set({ clientstylingurl: e }), j();
|
|
488
488
|
}
|
|
489
489
|
get translationurl() {
|
|
490
490
|
return this.$$.ctx[13];
|
|
491
491
|
}
|
|
492
492
|
set translationurl(e) {
|
|
493
|
-
this.$$set({ translationurl: e }),
|
|
493
|
+
this.$$set({ translationurl: e }), j();
|
|
494
494
|
}
|
|
495
495
|
get mbsource() {
|
|
496
496
|
return this.$$.ctx[14];
|
|
497
497
|
}
|
|
498
498
|
set mbsource(e) {
|
|
499
|
-
this.$$set({ mbsource: e }),
|
|
499
|
+
this.$$set({ mbsource: e }), j();
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
ge(ye, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|