@everymatrix/casino-navigation-search 1.94.4 → 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,5 +1,5 @@
|
|
|
1
|
-
import { S as Q,
|
|
2
|
-
import {
|
|
1
|
+
import { S as Q, m as W, t as X, l as N, b as Y, q as I, h as O, n as L, i as S, c as v, e as Z, d as $, y as A, a as c, F as z, k as V, g as q, A as C, j as ee, B as x, p as J, u as te, v as re, w as ie, f as le } from "./CasinoNavigationSearch-dBPLA2J5.js";
|
|
2
|
+
import { b as se, a as oe, $ as ae } from "./CasinoSearch-Cho1l1vu.js";
|
|
3
3
|
const R = {
|
|
4
4
|
en: {
|
|
5
5
|
popularProviders: "Popular Suppliers",
|
|
@@ -134,13 +134,13 @@ function de(t) {
|
|
|
134
134
|
), a, o, u, n, P = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
t[4]("otherProviders") + ""
|
|
137
|
-
), h, _, b, m =
|
|
137
|
+
), h, _, b, m = V(
|
|
138
138
|
/*topProviders*/
|
|
139
139
|
t[1]
|
|
140
140
|
), d = [];
|
|
141
141
|
for (let r = 0; r < m.length; r += 1)
|
|
142
142
|
d[r] = D(G(t, m, r));
|
|
143
|
-
let f =
|
|
143
|
+
let f = V(
|
|
144
144
|
/*otherProviders*/
|
|
145
145
|
t[2]
|
|
146
146
|
), g = [];
|
|
@@ -148,29 +148,29 @@ function de(t) {
|
|
|
148
148
|
g[r] = H(B(t, f, r));
|
|
149
149
|
return {
|
|
150
150
|
c() {
|
|
151
|
-
e = S("h4"), a = z(i), o =
|
|
151
|
+
e = S("h4"), a = z(i), o = C();
|
|
152
152
|
for (let r = 0; r < d.length; r += 1)
|
|
153
153
|
d[r].c();
|
|
154
|
-
u =
|
|
154
|
+
u = C(), n = S("h4"), h = z(P), _ = C();
|
|
155
155
|
for (let r = 0; r < g.length; r += 1)
|
|
156
156
|
g[r].c();
|
|
157
157
|
b = ee(), v(e, "class", "ProviderTitle"), v(n, "class", "ProviderTitle");
|
|
158
158
|
},
|
|
159
159
|
m(r, p) {
|
|
160
|
-
|
|
160
|
+
L(r, e, p), c(e, a), L(r, o, p);
|
|
161
161
|
for (let l = 0; l < d.length; l += 1)
|
|
162
162
|
d[l] && d[l].m(r, p);
|
|
163
|
-
|
|
163
|
+
L(r, u, p), L(r, n, p), c(n, h), L(r, _, p);
|
|
164
164
|
for (let l = 0; l < g.length; l += 1)
|
|
165
165
|
g[l] && g[l].m(r, p);
|
|
166
|
-
|
|
166
|
+
L(r, b, p);
|
|
167
167
|
},
|
|
168
168
|
p(r, p) {
|
|
169
169
|
if (p & /*$_*/
|
|
170
170
|
16 && i !== (i = /*$_*/
|
|
171
171
|
r[4]("popularProviders") + "") && A(a, i), p & /*openGameProviderPage, topProviders, $_*/
|
|
172
172
|
50) {
|
|
173
|
-
m =
|
|
173
|
+
m = V(
|
|
174
174
|
/*topProviders*/
|
|
175
175
|
r[1]
|
|
176
176
|
);
|
|
@@ -187,7 +187,7 @@ function de(t) {
|
|
|
187
187
|
16 && P !== (P = /*$_*/
|
|
188
188
|
r[4]("otherProviders") + "") && A(h, P), p & /*openGameProviderPage, otherProviders, $_*/
|
|
189
189
|
52) {
|
|
190
|
-
f =
|
|
190
|
+
f = V(
|
|
191
191
|
/*otherProviders*/
|
|
192
192
|
r[2]
|
|
193
193
|
);
|
|
@@ -216,7 +216,7 @@ function ge(t) {
|
|
|
216
216
|
e = S("p"), a = z(i), v(e, "class", "Message");
|
|
217
217
|
},
|
|
218
218
|
m(o, u) {
|
|
219
|
-
|
|
219
|
+
L(o, e, u), c(e, a);
|
|
220
220
|
},
|
|
221
221
|
p(o, u) {
|
|
222
222
|
u & /*$_*/
|
|
@@ -250,16 +250,16 @@ function D(t) {
|
|
|
250
250
|
}
|
|
251
251
|
return {
|
|
252
252
|
c() {
|
|
253
|
-
e = S("div"), i = S("img"), u =
|
|
253
|
+
e = S("div"), i = S("img"), u = C(), n = S("div"), P = S("p"), _ = z(h), b = C(), m = S("p"), f = z(d), g = C(), p = z(r), x(i.src, a = /*provider*/
|
|
254
254
|
t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
|
|
255
255
|
t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
|
|
256
256
|
},
|
|
257
|
-
m(
|
|
258
|
-
|
|
257
|
+
m(F, y) {
|
|
258
|
+
L(F, e, y), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), l || (w = J(e, "click", E), l = !0);
|
|
259
259
|
},
|
|
260
|
-
p(
|
|
261
|
-
t =
|
|
262
|
-
2 && !
|
|
260
|
+
p(F, y) {
|
|
261
|
+
t = F, y & /*topProviders*/
|
|
262
|
+
2 && !x(i.src, a = /*provider*/
|
|
263
263
|
t[21].logo) && v(i, "src", a), y & /*topProviders*/
|
|
264
264
|
2 && o !== (o = /*provider*/
|
|
265
265
|
t[21].name) && v(i, "alt", o), y & /*topProviders*/
|
|
@@ -270,8 +270,8 @@ function D(t) {
|
|
|
270
270
|
16 && r !== (r = /*$_*/
|
|
271
271
|
t[4]("games") + "") && A(p, r);
|
|
272
272
|
},
|
|
273
|
-
d(
|
|
274
|
-
|
|
273
|
+
d(F) {
|
|
274
|
+
F && O(e), l = !1, w();
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
}
|
|
@@ -286,7 +286,7 @@ function H(t) {
|
|
|
286
286
|
/*$_*/
|
|
287
287
|
t[4]("games") + ""
|
|
288
288
|
), p, l, w, E;
|
|
289
|
-
function
|
|
289
|
+
function F() {
|
|
290
290
|
return (
|
|
291
291
|
/*click_handler_1*/
|
|
292
292
|
t[14](
|
|
@@ -297,23 +297,23 @@ function H(t) {
|
|
|
297
297
|
}
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
e = S("div"), i = S("img"), u =
|
|
300
|
+
e = S("div"), i = S("img"), u = C(), n = S("div"), P = S("p"), _ = z(h), b = C(), m = S("p"), f = z(d), g = C(), p = z(r), l = C(), x(i.src, a = /*provider*/
|
|
301
301
|
t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
|
|
302
302
|
t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
|
|
303
303
|
},
|
|
304
|
-
m(y,
|
|
305
|
-
|
|
304
|
+
m(y, j) {
|
|
305
|
+
L(y, e, j), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), c(e, l), w || (E = J(e, "click", F), w = !0);
|
|
306
306
|
},
|
|
307
|
-
p(y,
|
|
308
|
-
t = y,
|
|
309
|
-
4 && !
|
|
310
|
-
t[21].logo) && v(i, "src", a),
|
|
307
|
+
p(y, j) {
|
|
308
|
+
t = y, j & /*otherProviders*/
|
|
309
|
+
4 && !x(i.src, a = /*provider*/
|
|
310
|
+
t[21].logo) && v(i, "src", a), j & /*otherProviders*/
|
|
311
311
|
4 && o !== (o = /*provider*/
|
|
312
|
-
t[21].name) && v(i, "alt", o),
|
|
312
|
+
t[21].name) && v(i, "alt", o), j & /*otherProviders*/
|
|
313
313
|
4 && h !== (h = /*provider*/
|
|
314
|
-
t[21].name + "") && A(_, h),
|
|
314
|
+
t[21].name + "") && A(_, h), j & /*otherProviders*/
|
|
315
315
|
4 && d !== (d = /*provider*/
|
|
316
|
-
t[21].games.count + "") && A(f, d),
|
|
316
|
+
t[21].games.count + "") && A(f, d), j & /*$_*/
|
|
317
317
|
16 && r !== (r = /*$_*/
|
|
318
318
|
t[4]("games") + "") && A(p, r);
|
|
319
319
|
},
|
|
@@ -336,7 +336,7 @@ function pe(t) {
|
|
|
336
336
|
e = S("div"), o.c(), v(e, "class", "CasinoProviders");
|
|
337
337
|
},
|
|
338
338
|
m(u, n) {
|
|
339
|
-
|
|
339
|
+
L(u, e, n), o.m(e, null), t[15](e);
|
|
340
340
|
},
|
|
341
341
|
p(u, [n]) {
|
|
342
342
|
a === (a = i(u)) && o ? o.p(u, n) : (o.d(1), o = a(u), o && (o.c(), o.m(e, null)));
|
|
@@ -354,8 +354,8 @@ function ce(t, e, i) {
|
|
|
354
354
|
let { endpoint: o = "" } = e, { datasource: u = "" } = e, { lang: n = "en" } = e, { clientstyling: P = "" } = e, { clientstylingurl: h = "" } = e, { translationurl: _ = "" } = e, { mbsource: b } = e, m = [], d = [], f = [], g = !1, r, p;
|
|
355
355
|
const l = () => {
|
|
356
356
|
fetch(_).then((k) => k.json()).then((k) => {
|
|
357
|
-
Object.keys(k).forEach((
|
|
358
|
-
U(
|
|
357
|
+
Object.keys(k).forEach((M) => {
|
|
358
|
+
U(M, k[M]);
|
|
359
359
|
});
|
|
360
360
|
}).catch((k) => {
|
|
361
361
|
console.log(k);
|
|
@@ -369,22 +369,22 @@ function ce(t, e, i) {
|
|
|
369
369
|
const s = new URL(`${o}/v1/casino/vendors`);
|
|
370
370
|
s.searchParams.append("datasource", u), s.searchParams.append("language", n), s.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(s).then((k) => k.json()).then((k) => {
|
|
371
371
|
i(3, g = !1), m = k.items.map((T) => T), i(1, d = m.filter((T) => T.isTopVendor === !0)), i(2, f = m.filter((T) => T.isTopVendor === !1));
|
|
372
|
-
let
|
|
373
|
-
|
|
372
|
+
let M = [];
|
|
373
|
+
M = m.flatMap((T) => T.subVendors), f.push(...M.filter((T) => T.games.count > 0));
|
|
374
374
|
});
|
|
375
|
-
}, E = (s, k,
|
|
375
|
+
}, E = (s, k, M) => {
|
|
376
376
|
window.postMessage(
|
|
377
377
|
{
|
|
378
378
|
type: "OpenGameProvider",
|
|
379
379
|
providerId: s,
|
|
380
380
|
providerName: k,
|
|
381
|
-
providerLogo:
|
|
381
|
+
providerLogo: M
|
|
382
382
|
},
|
|
383
383
|
window.location.href
|
|
384
384
|
);
|
|
385
|
-
},
|
|
385
|
+
}, F = () => {
|
|
386
386
|
ne(n);
|
|
387
|
-
}, y = (s) => E(s.id, s.name, s.logo),
|
|
387
|
+
}, y = (s) => E(s.id, s.name, s.logo), j = (s) => E(s.id, s.name, s.logo);
|
|
388
388
|
function K(s) {
|
|
389
389
|
$[s ? "unshift" : "push"](() => {
|
|
390
390
|
r = s, i(0, r);
|
|
@@ -395,7 +395,7 @@ function ce(t, e, i) {
|
|
|
395
395
|
}, t.$$.update = () => {
|
|
396
396
|
t.$$.dirty & /*endpoint, lang, datasource*/
|
|
397
397
|
448 && o && n && u && w(), t.$$.dirty & /*lang*/
|
|
398
|
-
256 && n &&
|
|
398
|
+
256 && n && F(), t.$$.dirty & /*translationurl*/
|
|
399
399
|
2048 && _ && l(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
400
400
|
513 && P && r && te(r, P), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
401
401
|
1025 && h && r && re(r, h), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
@@ -415,7 +415,7 @@ function ce(t, e, i) {
|
|
|
415
415
|
_,
|
|
416
416
|
b,
|
|
417
417
|
y,
|
|
418
|
-
|
|
418
|
+
j,
|
|
419
419
|
K
|
|
420
420
|
];
|
|
421
421
|
}
|
|
@@ -443,43 +443,43 @@ class me extends Q {
|
|
|
443
443
|
return this.$$.ctx[6];
|
|
444
444
|
}
|
|
445
445
|
set endpoint(e) {
|
|
446
|
-
this.$$set({ endpoint: e }),
|
|
446
|
+
this.$$set({ endpoint: e }), N();
|
|
447
447
|
}
|
|
448
448
|
get datasource() {
|
|
449
449
|
return this.$$.ctx[7];
|
|
450
450
|
}
|
|
451
451
|
set datasource(e) {
|
|
452
|
-
this.$$set({ datasource: e }),
|
|
452
|
+
this.$$set({ datasource: e }), N();
|
|
453
453
|
}
|
|
454
454
|
get lang() {
|
|
455
455
|
return this.$$.ctx[8];
|
|
456
456
|
}
|
|
457
457
|
set lang(e) {
|
|
458
|
-
this.$$set({ lang: e }),
|
|
458
|
+
this.$$set({ lang: e }), N();
|
|
459
459
|
}
|
|
460
460
|
get clientstyling() {
|
|
461
461
|
return this.$$.ctx[9];
|
|
462
462
|
}
|
|
463
463
|
set clientstyling(e) {
|
|
464
|
-
this.$$set({ clientstyling: e }),
|
|
464
|
+
this.$$set({ clientstyling: e }), N();
|
|
465
465
|
}
|
|
466
466
|
get clientstylingurl() {
|
|
467
467
|
return this.$$.ctx[10];
|
|
468
468
|
}
|
|
469
469
|
set clientstylingurl(e) {
|
|
470
|
-
this.$$set({ clientstylingurl: e }),
|
|
470
|
+
this.$$set({ clientstylingurl: e }), N();
|
|
471
471
|
}
|
|
472
472
|
get translationurl() {
|
|
473
473
|
return this.$$.ctx[11];
|
|
474
474
|
}
|
|
475
475
|
set translationurl(e) {
|
|
476
|
-
this.$$set({ translationurl: e }),
|
|
476
|
+
this.$$set({ translationurl: e }), N();
|
|
477
477
|
}
|
|
478
478
|
get mbsource() {
|
|
479
479
|
return this.$$.ctx[12];
|
|
480
480
|
}
|
|
481
481
|
set mbsource(e) {
|
|
482
|
-
this.$$set({ mbsource: e }),
|
|
482
|
+
this.$$set({ mbsource: e }), N();
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
le(me, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Q,
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { S as Q, m as W, t as X, l as N, b as Y, q as I, h as O, n as L, i as S, c as v, e as Z, d as $, y as A, a as c, F as z, k as V, g as q, A as C, j as ee, B as x, p as J, u as te, v as re, w as ie, f as le } from "./CasinoNavigationSearch-COt0j-LI.js";
|
|
2
|
+
import { b as se, a as oe, $ as ae } from "./CasinoSearch-KnE4RY5E.js";
|
|
3
|
+
const R = {
|
|
4
4
|
en: {
|
|
5
5
|
popularProviders: "Popular Suppliers",
|
|
6
6
|
otherProviders: "Other Suppliers",
|
|
@@ -110,7 +110,7 @@ const U = {
|
|
|
110
110
|
games: "games"
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
function
|
|
113
|
+
function U(t, e) {
|
|
114
114
|
se(t, e);
|
|
115
115
|
}
|
|
116
116
|
function ne(t) {
|
|
@@ -134,13 +134,13 @@ function de(t) {
|
|
|
134
134
|
), a, o, u, n, P = (
|
|
135
135
|
/*$_*/
|
|
136
136
|
t[4]("otherProviders") + ""
|
|
137
|
-
), h, _, b, m =
|
|
137
|
+
), h, _, b, m = V(
|
|
138
138
|
/*topProviders*/
|
|
139
139
|
t[1]
|
|
140
140
|
), d = [];
|
|
141
141
|
for (let r = 0; r < m.length; r += 1)
|
|
142
142
|
d[r] = D(G(t, m, r));
|
|
143
|
-
let f =
|
|
143
|
+
let f = V(
|
|
144
144
|
/*otherProviders*/
|
|
145
145
|
t[2]
|
|
146
146
|
), g = [];
|
|
@@ -148,29 +148,29 @@ function de(t) {
|
|
|
148
148
|
g[r] = H(B(t, f, r));
|
|
149
149
|
return {
|
|
150
150
|
c() {
|
|
151
|
-
e = S("h4"), a =
|
|
151
|
+
e = S("h4"), a = z(i), o = C();
|
|
152
152
|
for (let r = 0; r < d.length; r += 1)
|
|
153
153
|
d[r].c();
|
|
154
|
-
u =
|
|
154
|
+
u = C(), n = S("h4"), h = z(P), _ = C();
|
|
155
155
|
for (let r = 0; r < g.length; r += 1)
|
|
156
156
|
g[r].c();
|
|
157
157
|
b = ee(), v(e, "class", "ProviderTitle"), v(n, "class", "ProviderTitle");
|
|
158
158
|
},
|
|
159
159
|
m(r, p) {
|
|
160
|
-
|
|
160
|
+
L(r, e, p), c(e, a), L(r, o, p);
|
|
161
161
|
for (let l = 0; l < d.length; l += 1)
|
|
162
162
|
d[l] && d[l].m(r, p);
|
|
163
|
-
|
|
163
|
+
L(r, u, p), L(r, n, p), c(n, h), L(r, _, p);
|
|
164
164
|
for (let l = 0; l < g.length; l += 1)
|
|
165
165
|
g[l] && g[l].m(r, p);
|
|
166
|
-
|
|
166
|
+
L(r, b, p);
|
|
167
167
|
},
|
|
168
168
|
p(r, p) {
|
|
169
169
|
if (p & /*$_*/
|
|
170
170
|
16 && i !== (i = /*$_*/
|
|
171
171
|
r[4]("popularProviders") + "") && A(a, i), p & /*openGameProviderPage, topProviders, $_*/
|
|
172
172
|
50) {
|
|
173
|
-
m =
|
|
173
|
+
m = V(
|
|
174
174
|
/*topProviders*/
|
|
175
175
|
r[1]
|
|
176
176
|
);
|
|
@@ -187,7 +187,7 @@ function de(t) {
|
|
|
187
187
|
16 && P !== (P = /*$_*/
|
|
188
188
|
r[4]("otherProviders") + "") && A(h, P), p & /*openGameProviderPage, otherProviders, $_*/
|
|
189
189
|
52) {
|
|
190
|
-
f =
|
|
190
|
+
f = V(
|
|
191
191
|
/*otherProviders*/
|
|
192
192
|
r[2]
|
|
193
193
|
);
|
|
@@ -202,7 +202,7 @@ function de(t) {
|
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
d(r) {
|
|
205
|
-
r && (O(e), O(o), O(u), O(n), O(_), O(b)),
|
|
205
|
+
r && (O(e), O(o), O(u), O(n), O(_), O(b)), q(d, r), q(g, r);
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
}
|
|
@@ -213,10 +213,10 @@ function ge(t) {
|
|
|
213
213
|
), a;
|
|
214
214
|
return {
|
|
215
215
|
c() {
|
|
216
|
-
e = S("p"), a =
|
|
216
|
+
e = S("p"), a = z(i), v(e, "class", "Message");
|
|
217
217
|
},
|
|
218
218
|
m(o, u) {
|
|
219
|
-
|
|
219
|
+
L(o, e, u), c(e, a);
|
|
220
220
|
},
|
|
221
221
|
p(o, u) {
|
|
222
222
|
u & /*$_*/
|
|
@@ -239,7 +239,7 @@ function D(t) {
|
|
|
239
239
|
/*$_*/
|
|
240
240
|
t[4]("games") + ""
|
|
241
241
|
), p, l, w;
|
|
242
|
-
function
|
|
242
|
+
function E() {
|
|
243
243
|
return (
|
|
244
244
|
/*click_handler*/
|
|
245
245
|
t[13](
|
|
@@ -250,16 +250,16 @@ function D(t) {
|
|
|
250
250
|
}
|
|
251
251
|
return {
|
|
252
252
|
c() {
|
|
253
|
-
e = S("div"), i = S("img"), u =
|
|
253
|
+
e = S("div"), i = S("img"), u = C(), n = S("div"), P = S("p"), _ = z(h), b = C(), m = S("p"), f = z(d), g = C(), p = z(r), x(i.src, a = /*provider*/
|
|
254
254
|
t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
|
|
255
255
|
t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
|
|
256
256
|
},
|
|
257
|
-
m(
|
|
258
|
-
|
|
257
|
+
m(F, y) {
|
|
258
|
+
L(F, e, y), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), l || (w = J(e, "click", E), l = !0);
|
|
259
259
|
},
|
|
260
|
-
p(
|
|
261
|
-
t =
|
|
262
|
-
2 && !
|
|
260
|
+
p(F, y) {
|
|
261
|
+
t = F, y & /*topProviders*/
|
|
262
|
+
2 && !x(i.src, a = /*provider*/
|
|
263
263
|
t[21].logo) && v(i, "src", a), y & /*topProviders*/
|
|
264
264
|
2 && o !== (o = /*provider*/
|
|
265
265
|
t[21].name) && v(i, "alt", o), y & /*topProviders*/
|
|
@@ -270,8 +270,8 @@ function D(t) {
|
|
|
270
270
|
16 && r !== (r = /*$_*/
|
|
271
271
|
t[4]("games") + "") && A(p, r);
|
|
272
272
|
},
|
|
273
|
-
d(
|
|
274
|
-
|
|
273
|
+
d(F) {
|
|
274
|
+
F && O(e), l = !1, w();
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
}
|
|
@@ -285,8 +285,8 @@ function H(t) {
|
|
|
285
285
|
), f, g, r = (
|
|
286
286
|
/*$_*/
|
|
287
287
|
t[4]("games") + ""
|
|
288
|
-
), p, l, w,
|
|
289
|
-
function
|
|
288
|
+
), p, l, w, E;
|
|
289
|
+
function F() {
|
|
290
290
|
return (
|
|
291
291
|
/*click_handler_1*/
|
|
292
292
|
t[14](
|
|
@@ -297,28 +297,28 @@ function H(t) {
|
|
|
297
297
|
}
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
e = S("div"), i = S("img"), u =
|
|
300
|
+
e = S("div"), i = S("img"), u = C(), n = S("div"), P = S("p"), _ = z(h), b = C(), m = S("p"), f = z(d), g = C(), p = z(r), l = C(), x(i.src, a = /*provider*/
|
|
301
301
|
t[21].logo) || v(i, "src", a), v(i, "alt", o = /*provider*/
|
|
302
302
|
t[21].name), v(i, "class", "ProviderImage"), v(n, "class", "ProviderTextContainer"), v(e, "class", "Provider");
|
|
303
303
|
},
|
|
304
|
-
m(y,
|
|
305
|
-
|
|
304
|
+
m(y, j) {
|
|
305
|
+
L(y, e, j), c(e, i), c(e, u), c(e, n), c(n, P), c(P, _), c(n, b), c(n, m), c(m, f), c(m, g), c(m, p), c(e, l), w || (E = J(e, "click", F), w = !0);
|
|
306
306
|
},
|
|
307
|
-
p(y,
|
|
308
|
-
t = y,
|
|
309
|
-
4 && !
|
|
310
|
-
t[21].logo) && v(i, "src", a),
|
|
307
|
+
p(y, j) {
|
|
308
|
+
t = y, j & /*otherProviders*/
|
|
309
|
+
4 && !x(i.src, a = /*provider*/
|
|
310
|
+
t[21].logo) && v(i, "src", a), j & /*otherProviders*/
|
|
311
311
|
4 && o !== (o = /*provider*/
|
|
312
|
-
t[21].name) && v(i, "alt", o),
|
|
312
|
+
t[21].name) && v(i, "alt", o), j & /*otherProviders*/
|
|
313
313
|
4 && h !== (h = /*provider*/
|
|
314
|
-
t[21].name + "") && A(_, h),
|
|
314
|
+
t[21].name + "") && A(_, h), j & /*otherProviders*/
|
|
315
315
|
4 && d !== (d = /*provider*/
|
|
316
|
-
t[21].games.count + "") && A(f, d),
|
|
316
|
+
t[21].games.count + "") && A(f, d), j & /*$_*/
|
|
317
317
|
16 && r !== (r = /*$_*/
|
|
318
318
|
t[4]("games") + "") && A(p, r);
|
|
319
319
|
},
|
|
320
320
|
d(y) {
|
|
321
|
-
y && O(e), w = !1,
|
|
321
|
+
y && O(e), w = !1, E();
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
}
|
|
@@ -336,7 +336,7 @@ function pe(t) {
|
|
|
336
336
|
e = S("div"), o.c(), v(e, "class", "CasinoProviders");
|
|
337
337
|
},
|
|
338
338
|
m(u, n) {
|
|
339
|
-
|
|
339
|
+
L(u, e, n), o.m(e, null), t[15](e);
|
|
340
340
|
},
|
|
341
341
|
p(u, [n]) {
|
|
342
342
|
a === (a = i(u)) && o ? o.p(u, n) : (o.d(1), o = a(u), o && (o.c(), o.m(e, null)));
|
|
@@ -354,37 +354,37 @@ function ce(t, e, i) {
|
|
|
354
354
|
let { endpoint: o = "" } = e, { datasource: u = "" } = e, { lang: n = "en" } = e, { clientstyling: P = "" } = e, { clientstylingurl: h = "" } = e, { translationurl: _ = "" } = e, { mbsource: b } = e, m = [], d = [], f = [], g = !1, r, p;
|
|
355
355
|
const l = () => {
|
|
356
356
|
fetch(_).then((k) => k.json()).then((k) => {
|
|
357
|
-
Object.keys(k).forEach((
|
|
358
|
-
|
|
357
|
+
Object.keys(k).forEach((M) => {
|
|
358
|
+
U(M, k[M]);
|
|
359
359
|
});
|
|
360
360
|
}).catch((k) => {
|
|
361
361
|
console.log(k);
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
|
-
Object.keys(
|
|
365
|
-
|
|
364
|
+
Object.keys(R).forEach((s) => {
|
|
365
|
+
U(s, R[s]);
|
|
366
366
|
});
|
|
367
367
|
const w = () => {
|
|
368
368
|
i(3, g = !0);
|
|
369
369
|
const s = new URL(`${o}/v1/casino/vendors`);
|
|
370
370
|
s.searchParams.append("datasource", u), s.searchParams.append("language", n), s.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(s).then((k) => k.json()).then((k) => {
|
|
371
371
|
i(3, g = !1), m = k.items.map((T) => T), i(1, d = m.filter((T) => T.isTopVendor === !0)), i(2, f = m.filter((T) => T.isTopVendor === !1));
|
|
372
|
-
let
|
|
373
|
-
|
|
372
|
+
let M = [];
|
|
373
|
+
M = m.flatMap((T) => T.subVendors), f.push(...M.filter((T) => T.games.count > 0));
|
|
374
374
|
});
|
|
375
|
-
},
|
|
375
|
+
}, E = (s, k, M) => {
|
|
376
376
|
window.postMessage(
|
|
377
377
|
{
|
|
378
378
|
type: "OpenGameProvider",
|
|
379
379
|
providerId: s,
|
|
380
380
|
providerName: k,
|
|
381
|
-
providerLogo:
|
|
381
|
+
providerLogo: M
|
|
382
382
|
},
|
|
383
383
|
window.location.href
|
|
384
384
|
);
|
|
385
|
-
},
|
|
385
|
+
}, F = () => {
|
|
386
386
|
ne(n);
|
|
387
|
-
}, y = (s) =>
|
|
387
|
+
}, y = (s) => E(s.id, s.name, s.logo), j = (s) => E(s.id, s.name, s.logo);
|
|
388
388
|
function K(s) {
|
|
389
389
|
$[s ? "unshift" : "push"](() => {
|
|
390
390
|
r = s, i(0, r);
|
|
@@ -395,7 +395,7 @@ function ce(t, e, i) {
|
|
|
395
395
|
}, t.$$.update = () => {
|
|
396
396
|
t.$$.dirty & /*endpoint, lang, datasource*/
|
|
397
397
|
448 && o && n && u && w(), t.$$.dirty & /*lang*/
|
|
398
|
-
256 && n &&
|
|
398
|
+
256 && n && F(), t.$$.dirty & /*translationurl*/
|
|
399
399
|
2048 && _ && l(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
400
400
|
513 && P && r && te(r, P), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
401
401
|
1025 && h && r && re(r, h), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
@@ -406,7 +406,7 @@ function ce(t, e, i) {
|
|
|
406
406
|
f,
|
|
407
407
|
g,
|
|
408
408
|
a,
|
|
409
|
-
|
|
409
|
+
E,
|
|
410
410
|
o,
|
|
411
411
|
u,
|
|
412
412
|
n,
|
|
@@ -415,7 +415,7 @@ function ce(t, e, i) {
|
|
|
415
415
|
_,
|
|
416
416
|
b,
|
|
417
417
|
y,
|
|
418
|
-
|
|
418
|
+
j,
|
|
419
419
|
K
|
|
420
420
|
];
|
|
421
421
|
}
|
|
@@ -443,43 +443,43 @@ class me extends Q {
|
|
|
443
443
|
return this.$$.ctx[6];
|
|
444
444
|
}
|
|
445
445
|
set endpoint(e) {
|
|
446
|
-
this.$$set({ endpoint: e }),
|
|
446
|
+
this.$$set({ endpoint: e }), N();
|
|
447
447
|
}
|
|
448
448
|
get datasource() {
|
|
449
449
|
return this.$$.ctx[7];
|
|
450
450
|
}
|
|
451
451
|
set datasource(e) {
|
|
452
|
-
this.$$set({ datasource: e }),
|
|
452
|
+
this.$$set({ datasource: e }), N();
|
|
453
453
|
}
|
|
454
454
|
get lang() {
|
|
455
455
|
return this.$$.ctx[8];
|
|
456
456
|
}
|
|
457
457
|
set lang(e) {
|
|
458
|
-
this.$$set({ lang: e }),
|
|
458
|
+
this.$$set({ lang: e }), N();
|
|
459
459
|
}
|
|
460
460
|
get clientstyling() {
|
|
461
461
|
return this.$$.ctx[9];
|
|
462
462
|
}
|
|
463
463
|
set clientstyling(e) {
|
|
464
|
-
this.$$set({ clientstyling: e }),
|
|
464
|
+
this.$$set({ clientstyling: e }), N();
|
|
465
465
|
}
|
|
466
466
|
get clientstylingurl() {
|
|
467
467
|
return this.$$.ctx[10];
|
|
468
468
|
}
|
|
469
469
|
set clientstylingurl(e) {
|
|
470
|
-
this.$$set({ clientstylingurl: e }),
|
|
470
|
+
this.$$set({ clientstylingurl: e }), N();
|
|
471
471
|
}
|
|
472
472
|
get translationurl() {
|
|
473
473
|
return this.$$.ctx[11];
|
|
474
474
|
}
|
|
475
475
|
set translationurl(e) {
|
|
476
|
-
this.$$set({ translationurl: e }),
|
|
476
|
+
this.$$set({ translationurl: e }), N();
|
|
477
477
|
}
|
|
478
478
|
get mbsource() {
|
|
479
479
|
return this.$$.ctx[12];
|
|
480
480
|
}
|
|
481
481
|
set mbsource(e) {
|
|
482
|
-
this.$$set({ mbsource: e }),
|
|
482
|
+
this.$$set({ mbsource: e }), N();
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
le(me, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|