@everymatrix/casino-most-played-section 1.45.0 → 1.45.3
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-DvwXHWZ_.cjs +5 -0
- package/components/{CasinoFilter-BA6RsRdQ.js → CasinoFilter-H10ltJK5.js} +884 -888
- package/components/CasinoGameThumbnail-DrVUJm90.cjs +47 -0
- package/components/CasinoGameThumbnail-Rw5tSb-a.js +4404 -0
- package/components/CasinoGamesCategorySection-BAaZoBNZ.cjs +1 -0
- package/components/CasinoGamesCategorySection-DA91MEdW.js +3018 -0
- package/components/{CasinoMostPlayedSection-DItMviDj.js → CasinoMostPlayedSection-BvugFrhs.js} +78 -78
- package/components/CasinoMostPlayedSection-lRTCHR6P.cjs +1 -0
- package/components/CasinoSort-B9WD46q7.js +425 -0
- package/components/CasinoSort-CKushhWB.cjs +1 -0
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/package.json +2 -2
- package/components/CasinoFilter-BcZN9Fwc.cjs +0 -5
- package/components/CasinoGameThumbnail-DP_N0Utt.js +0 -4404
- package/components/CasinoGameThumbnail-KSNIbeh_.cjs +0 -47
- package/components/CasinoGamesCategorySection-BqPidgQt.js +0 -3022
- package/components/CasinoGamesCategorySection-C-EDsc7x.cjs +0 -1
- package/components/CasinoMostPlayedSection-Dh2nzc19.cjs +0 -1
- package/components/CasinoSort-Cj2B7na1.cjs +0 -1
- package/components/CasinoSort-D-ElrcU-.js +0 -425
package/components/{CasinoMostPlayedSection-DItMviDj.js → CasinoMostPlayedSection-BvugFrhs.js}
RENAMED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { a as ee, $ as te, S as se, i as ae, f as
|
2
|
-
function
|
1
|
+
import { a as ee, $ as te, S as se, i as ae, f as l, c as ne, s as ie, b as oe, e as N, h as L, k as M, l as Y, n as I, o as S, p as le, w as re, x as me, E as n, t as ge, m as ce, A as de } from "./CasinoFilter-H10ltJK5.js";
|
2
|
+
function q(a, e) {
|
3
3
|
ee(a, e);
|
4
4
|
}
|
5
5
|
function ue(a) {
|
6
6
|
te.set(a);
|
7
7
|
}
|
8
|
-
const
|
8
|
+
const J = {
|
9
9
|
en: {
|
10
10
|
noGames: "No games in most played"
|
11
11
|
},
|
@@ -70,12 +70,12 @@ if (typeof window != "undefined") {
|
|
70
70
|
}
|
71
71
|
};
|
72
72
|
};
|
73
|
-
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-
|
73
|
+
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-DA91MEdW.js").then(({ default: e }) => {
|
74
74
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
75
75
|
});
|
76
76
|
}
|
77
77
|
function fe(a) {
|
78
|
-
|
78
|
+
oe(a, "svelte-fogubb", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
|
79
79
|
}
|
80
80
|
function he(a) {
|
81
81
|
let e;
|
@@ -121,7 +121,7 @@ function he(a) {
|
|
121
121
|
"fetchviaevent",
|
122
122
|
/*fetchviaevent*/
|
123
123
|
a[16]
|
124
|
-
), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer
|
124
|
+
), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
|
125
125
|
e,
|
126
126
|
"showgamename",
|
127
127
|
/*showgamename*/
|
@@ -169,7 +169,7 @@ function he(a) {
|
|
169
169
|
);
|
170
170
|
},
|
171
171
|
m(s, i) {
|
172
|
-
|
172
|
+
M(s, e, i);
|
173
173
|
},
|
174
174
|
p(s, i) {
|
175
175
|
i[0] & /*session*/
|
@@ -277,7 +277,7 @@ function he(a) {
|
|
277
277
|
);
|
278
278
|
},
|
279
279
|
d(s) {
|
280
|
-
s &&
|
280
|
+
s && S(e);
|
281
281
|
}
|
282
282
|
};
|
283
283
|
}
|
@@ -288,73 +288,73 @@ function ye(a) {
|
|
288
288
|
), i;
|
289
289
|
return {
|
290
290
|
c() {
|
291
|
-
e = N("p"), i =
|
291
|
+
e = N("p"), i = ge(s), L(e, "class", "SearchLoading");
|
292
292
|
},
|
293
293
|
m(m, r) {
|
294
|
-
|
294
|
+
M(m, e, r), Y(e, i);
|
295
295
|
},
|
296
296
|
p(m, r) {
|
297
297
|
r[0] & /*$_*/
|
298
298
|
524288 && s !== (s = /*$_*/
|
299
|
-
m[19]("noGames") + "") &&
|
299
|
+
m[19]("noGames") + "") && ce(i, s);
|
300
300
|
},
|
301
301
|
d(m) {
|
302
|
-
m &&
|
302
|
+
m && S(e);
|
303
303
|
}
|
304
304
|
};
|
305
305
|
}
|
306
306
|
function ve(a) {
|
307
307
|
let e, s;
|
308
|
-
function i(
|
308
|
+
function i(g, c) {
|
309
309
|
return (
|
310
310
|
/*mostPlayedEmpty*/
|
311
|
-
|
311
|
+
g[18] ? ye : he
|
312
312
|
);
|
313
313
|
}
|
314
314
|
let m = i(a), r = m(a);
|
315
315
|
return {
|
316
316
|
c() {
|
317
|
-
e = N("div"), s = N("div"), r.c(),
|
317
|
+
e = N("div"), s = N("div"), r.c(), L(s, "class", "casino-most-played-section"), L(e, "class", "CasinoGamesCategorySectionContainer");
|
318
318
|
},
|
319
|
-
m(
|
320
|
-
|
319
|
+
m(g, c) {
|
320
|
+
M(g, e, c), Y(e, s), r.m(s, null), a[23](e);
|
321
321
|
},
|
322
|
-
p(
|
323
|
-
m === (m = i(
|
322
|
+
p(g, c) {
|
323
|
+
m === (m = i(g)) && r ? r.p(g, c) : (r.d(1), r = m(g), r && (r.c(), r.m(s, null)));
|
324
324
|
},
|
325
|
-
i:
|
326
|
-
o:
|
327
|
-
d(
|
328
|
-
|
325
|
+
i: I,
|
326
|
+
o: I,
|
327
|
+
d(g) {
|
328
|
+
g && S(e), r.d(), a[23](null);
|
329
329
|
}
|
330
330
|
};
|
331
331
|
}
|
332
332
|
function be(a, e, s) {
|
333
333
|
let i;
|
334
|
-
|
335
|
-
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency:
|
334
|
+
le(a, de, (t) => s(19, i = t));
|
335
|
+
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: A = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: p = "false" } = e, { integratedgameframedesktop: D = "false" } = e, { gamepagemodalurl: F = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P } = e, { favorites: T = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: R = "true" } = e, B = window.navigator.userAgent;
|
336
336
|
const K = () => {
|
337
|
-
fetch(k).then((
|
338
|
-
Object.keys(
|
339
|
-
|
337
|
+
fetch(k).then((o) => o.json()).then((o) => {
|
338
|
+
Object.keys(o).forEach((d) => {
|
339
|
+
q(d, o[d]);
|
340
340
|
});
|
341
|
-
}).catch((
|
342
|
-
console.log(
|
341
|
+
}).catch((o) => {
|
342
|
+
console.log(o);
|
343
343
|
});
|
344
344
|
};
|
345
|
-
Object.keys(
|
346
|
-
|
345
|
+
Object.keys(J).forEach((t) => {
|
346
|
+
q(t, J[t]);
|
347
347
|
});
|
348
|
-
let G = [], U,
|
348
|
+
let G = [], U, z = !1, h;
|
349
349
|
const Q = (t) => {
|
350
|
-
let
|
351
|
-
t.limit &&
|
350
|
+
let o = new URL(`${m}/v1/player/${v}/games/most-played`);
|
351
|
+
t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", j);
|
352
352
|
let d = t.device;
|
353
|
-
return d ? d === "PC" ?
|
353
|
+
return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), U = _ ? o : o.href, new Promise((u, y) => {
|
354
354
|
fetch(U).then((f) => f.json()).then((f) => {
|
355
355
|
f.items = f.items.filter(($) => {
|
356
|
-
let
|
357
|
-
return $.gameCode == "OddsMatrix2" && (f.count--,
|
356
|
+
let H = !0;
|
357
|
+
return $.gameCode == "OddsMatrix2" && (f.count--, H = !1), H;
|
358
358
|
}), u(f);
|
359
359
|
}).catch((f) => {
|
360
360
|
console.error(f), y(f);
|
@@ -363,29 +363,29 @@ function be(a, e, s) {
|
|
363
363
|
}, V = () => {
|
364
364
|
Q({
|
365
365
|
limit: 100,
|
366
|
-
device: re(
|
367
|
-
rounds:
|
366
|
+
device: re(B),
|
367
|
+
rounds: E
|
368
368
|
}).then((t) => {
|
369
369
|
if (t.count > 0) {
|
370
|
-
let
|
370
|
+
let o = [];
|
371
371
|
t.items.forEach((d) => {
|
372
372
|
let u = new URL(`${m}/v1/casino/games/${d.gameId}`);
|
373
|
-
u.searchParams.append("datasource", r), _ ?
|
374
|
-
}), Promise.all(
|
375
|
-
G = d.filter((u) => !("error" in u)).map((u) => u[0]),
|
373
|
+
u.searchParams.append("datasource", r), _ ? o.push(fetch(u.href).then((y) => y.json())) : o.push(fetch(u.href).then((y) => y.json()));
|
374
|
+
}), Promise.all(o).then((d) => {
|
375
|
+
G = d.filter((u) => !("error" in u)).map((u) => u[0]), C === "true" && (G = G.slice(0, JSON.parse(P))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: G }, window.location.href);
|
376
376
|
});
|
377
377
|
} else
|
378
|
-
s(18,
|
378
|
+
s(18, z = !0);
|
379
379
|
});
|
380
380
|
}, W = () => {
|
381
|
-
ue(
|
381
|
+
ue(c);
|
382
382
|
}, X = () => {
|
383
383
|
let t = document.createElement("style");
|
384
384
|
t.innerHTML = b, h.appendChild(t);
|
385
385
|
}, Z = () => {
|
386
386
|
let t = document.createElement("style");
|
387
|
-
fetch(new URL(w)).then((
|
388
|
-
t.innerHTML =
|
387
|
+
fetch(new URL(w)).then((o) => o.text()).then((o) => {
|
388
|
+
t.innerHTML = o, setTimeout(
|
389
389
|
() => {
|
390
390
|
h.appendChild(t);
|
391
391
|
},
|
@@ -399,38 +399,38 @@ function be(a, e, s) {
|
|
399
399
|
});
|
400
400
|
}
|
401
401
|
return a.$$set = (t) => {
|
402
|
-
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2,
|
402
|
+
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, A = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, w = t.clientstylingurl), "livecasino" in t && s(8, _ = t.livecasino), "integratedgameframemobile" in t && s(9, p = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, D = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, F = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, T = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, E = t.mostplayedrounds), "fetchviaevent" in t && s(16, R = t.fetchviaevent);
|
403
403
|
}, a.$$.update = () => {
|
404
404
|
a.$$.dirty[0] & /*endpoint, userid, lang*/
|
405
|
-
41 && m && v &&
|
405
|
+
41 && m && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
406
406
|
131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
407
407
|
131200 && w && h && Z(), a.$$.dirty[0] & /*translationurl*/
|
408
408
|
1048576 && k && K(), a.$$.dirty[0] & /*lang*/
|
409
|
-
8 &&
|
409
|
+
8 && c && W();
|
410
410
|
}, [
|
411
411
|
m,
|
412
412
|
r,
|
413
|
-
c,
|
414
413
|
g,
|
415
|
-
|
414
|
+
c,
|
415
|
+
A,
|
416
416
|
v,
|
417
417
|
b,
|
418
418
|
w,
|
419
419
|
_,
|
420
|
-
|
421
|
-
F,
|
420
|
+
p,
|
422
421
|
D,
|
422
|
+
F,
|
423
423
|
O,
|
424
424
|
P,
|
425
425
|
T,
|
426
|
-
|
426
|
+
C,
|
427
427
|
R,
|
428
428
|
h,
|
429
|
-
|
429
|
+
z,
|
430
430
|
i,
|
431
431
|
k,
|
432
|
-
C,
|
433
432
|
j,
|
433
|
+
E,
|
434
434
|
x
|
435
435
|
];
|
436
436
|
}
|
@@ -472,121 +472,121 @@ class we extends se {
|
|
472
472
|
return this.$$.ctx[0];
|
473
473
|
}
|
474
474
|
set endpoint(e) {
|
475
|
-
this.$$set({ endpoint: e }),
|
475
|
+
this.$$set({ endpoint: e }), l();
|
476
476
|
}
|
477
477
|
get datasource() {
|
478
478
|
return this.$$.ctx[1];
|
479
479
|
}
|
480
480
|
set datasource(e) {
|
481
|
-
this.$$set({ datasource: e }),
|
481
|
+
this.$$set({ datasource: e }), l();
|
482
482
|
}
|
483
483
|
get currency() {
|
484
484
|
return this.$$.ctx[2];
|
485
485
|
}
|
486
486
|
set currency(e) {
|
487
|
-
this.$$set({ currency: e }),
|
487
|
+
this.$$set({ currency: e }), l();
|
488
488
|
}
|
489
489
|
get lang() {
|
490
490
|
return this.$$.ctx[3];
|
491
491
|
}
|
492
492
|
set lang(e) {
|
493
|
-
this.$$set({ lang: e }),
|
493
|
+
this.$$set({ lang: e }), l();
|
494
494
|
}
|
495
495
|
get session() {
|
496
496
|
return this.$$.ctx[4];
|
497
497
|
}
|
498
498
|
set session(e) {
|
499
|
-
this.$$set({ session: e }),
|
499
|
+
this.$$set({ session: e }), l();
|
500
500
|
}
|
501
501
|
get userid() {
|
502
502
|
return this.$$.ctx[5];
|
503
503
|
}
|
504
504
|
set userid(e) {
|
505
|
-
this.$$set({ userid: e }),
|
505
|
+
this.$$set({ userid: e }), l();
|
506
506
|
}
|
507
507
|
get clientstyling() {
|
508
508
|
return this.$$.ctx[6];
|
509
509
|
}
|
510
510
|
set clientstyling(e) {
|
511
|
-
this.$$set({ clientstyling: e }),
|
511
|
+
this.$$set({ clientstyling: e }), l();
|
512
512
|
}
|
513
513
|
get clientstylingurl() {
|
514
514
|
return this.$$.ctx[7];
|
515
515
|
}
|
516
516
|
set clientstylingurl(e) {
|
517
|
-
this.$$set({ clientstylingurl: e }),
|
517
|
+
this.$$set({ clientstylingurl: e }), l();
|
518
518
|
}
|
519
519
|
get livecasino() {
|
520
520
|
return this.$$.ctx[8];
|
521
521
|
}
|
522
522
|
set livecasino(e) {
|
523
|
-
this.$$set({ livecasino: e }),
|
523
|
+
this.$$set({ livecasino: e }), l();
|
524
524
|
}
|
525
525
|
get integratedgameframemobile() {
|
526
526
|
return this.$$.ctx[9];
|
527
527
|
}
|
528
528
|
set integratedgameframemobile(e) {
|
529
|
-
this.$$set({ integratedgameframemobile: e }),
|
529
|
+
this.$$set({ integratedgameframemobile: e }), l();
|
530
530
|
}
|
531
531
|
get integratedgameframedesktop() {
|
532
532
|
return this.$$.ctx[10];
|
533
533
|
}
|
534
534
|
set integratedgameframedesktop(e) {
|
535
|
-
this.$$set({ integratedgameframedesktop: e }),
|
535
|
+
this.$$set({ integratedgameframedesktop: e }), l();
|
536
536
|
}
|
537
537
|
get gamepagemodalurl() {
|
538
538
|
return this.$$.ctx[11];
|
539
539
|
}
|
540
540
|
set gamepagemodalurl(e) {
|
541
|
-
this.$$set({ gamepagemodalurl: e }),
|
541
|
+
this.$$set({ gamepagemodalurl: e }), l();
|
542
542
|
}
|
543
543
|
get showgamename() {
|
544
544
|
return this.$$.ctx[12];
|
545
545
|
}
|
546
546
|
set showgamename(e) {
|
547
|
-
this.$$set({ showgamename: e }),
|
547
|
+
this.$$set({ showgamename: e }), l();
|
548
548
|
}
|
549
549
|
get visiblegames() {
|
550
550
|
return this.$$.ctx[13];
|
551
551
|
}
|
552
552
|
set visiblegames(e) {
|
553
|
-
this.$$set({ visiblegames: e }),
|
553
|
+
this.$$set({ visiblegames: e }), l();
|
554
554
|
}
|
555
555
|
get favorites() {
|
556
556
|
return this.$$.ctx[14];
|
557
557
|
}
|
558
558
|
set favorites(e) {
|
559
|
-
this.$$set({ favorites: e }),
|
559
|
+
this.$$set({ favorites: e }), l();
|
560
560
|
}
|
561
561
|
get translationurl() {
|
562
562
|
return this.$$.ctx[20];
|
563
563
|
}
|
564
564
|
set translationurl(e) {
|
565
|
-
this.$$set({ translationurl: e }),
|
565
|
+
this.$$set({ translationurl: e }), l();
|
566
566
|
}
|
567
567
|
get casinomygames() {
|
568
568
|
return this.$$.ctx[15];
|
569
569
|
}
|
570
570
|
set casinomygames(e) {
|
571
|
-
this.$$set({ casinomygames: e }),
|
571
|
+
this.$$set({ casinomygames: e }), l();
|
572
572
|
}
|
573
573
|
get mostplayedperiod() {
|
574
574
|
return this.$$.ctx[21];
|
575
575
|
}
|
576
576
|
set mostplayedperiod(e) {
|
577
|
-
this.$$set({ mostplayedperiod: e }),
|
577
|
+
this.$$set({ mostplayedperiod: e }), l();
|
578
578
|
}
|
579
579
|
get mostplayedrounds() {
|
580
580
|
return this.$$.ctx[22];
|
581
581
|
}
|
582
582
|
set mostplayedrounds(e) {
|
583
|
-
this.$$set({ mostplayedrounds: e }),
|
583
|
+
this.$$set({ mostplayedrounds: e }), l();
|
584
584
|
}
|
585
585
|
get fetchviaevent() {
|
586
586
|
return this.$$.ctx[16];
|
587
587
|
}
|
588
588
|
set fetchviaevent(e) {
|
589
|
-
this.$$set({ fetchviaevent: e }),
|
589
|
+
this.$$set({ fetchviaevent: e }), l();
|
590
590
|
}
|
591
591
|
}
|
592
592
|
ne(we, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-DvwXHWZ_.cjs");function D(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const R={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-BAaZoBNZ.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function W(n){t.append_styles(n,"svelte-fogubb","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:_=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:E="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:S=""}=e,{visiblegames:G}=e,{favorites:p=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:A="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{D(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(R).forEach(s=>{D(s,R[s])});let k=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${_}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,h)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let T=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,T=!1),T}),d(g)}).catch(g=>{console.error(g),h(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:C}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(h=>h.json())):l.push(fetch(d.href).then(h=>h.json()))}),Promise.all(l).then(u=>{k=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(k=k.slice(0,JSON.parse(G))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,_=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,E=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,M=s.gamepagemodalurl),"showgamename"in s&&a(12,S=s.showgamename),"visiblegames"in s&&a(13,G=s.visiblegames),"favorites"in s&&a(14,p=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,C=s.mostplayedrounds),"fetchviaevent"in s&&a(16,A=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,j,_,y,v,b,E,L,M,S,G,p,N,A,f,O,i,w,P,C,K]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
|