@everymatrix/casino-last-played-section 1.71.1 → 1.72.1
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-B0BNJSQ7.js → CasinoFilter-B298XSri.js} +1064 -1043
- package/components/{CasinoFilter-Bq-C8l-M.js → CasinoFilter-CI9Hpq8Q.js} +1017 -996
- package/components/CasinoFilter-Db45KoqP.cjs +18 -0
- package/components/{CasinoGameThumbnail-U4W3q-aN.js → CasinoGameThumbnail-BNFfZ6WV.js} +792 -776
- package/components/{CasinoGameThumbnail-RXwgunFY.js → CasinoGameThumbnail-CQuamjed.js} +1257 -1273
- package/components/CasinoGameThumbnail-DXcOv445.cjs +47 -0
- package/components/{CasinoGamesCategorySection-wNowkAwv.cjs → CasinoGamesCategorySection-CCZDVVXV.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-enLuyBMW.js → CasinoGamesCategorySection-K0FCiCv8.js} +270 -270
- package/components/{CasinoGamesCategorySection-DxMg_7vp.js → CasinoGamesCategorySection-okctFbqH.js} +272 -272
- package/components/{CasinoLastPlayedSection-5UJ9YsyQ.js → CasinoLastPlayedSection-BdZm8Lrj.js} +28 -28
- package/components/{CasinoLastPlayedSection-Bf1NtQlg.js → CasinoLastPlayedSection-C5SbZ-Je.js} +36 -36
- package/components/{CasinoLastPlayedSection-Bf4VOw5U.cjs → CasinoLastPlayedSection-DbZ2ye9e.cjs} +1 -1
- package/components/{CasinoSort-B_UCr0wP.js → CasinoSort-Bq1Eph95.js} +113 -114
- package/components/{CasinoSort-TeOrbNuA.js → CasinoSort-Chq8ZphV.js} +108 -107
- package/components/{CasinoSort-Bw1iiWod.cjs → CasinoSort-TaExws8s.cjs} +1 -1
- package/es2015/casino-last-played-section.cjs +1 -1
- package/es2015/casino-last-played-section.js +1 -1
- package/esnext/casino-last-played-section.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/{ui-image-BMiZteNE.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-CX3MBBZL.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BW8AeEVd.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoFilter-tW53xiI-.cjs +0 -18
- package/components/CasinoGameThumbnail-pjy6Hyb7.cjs +0 -47
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
package/components/{CasinoLastPlayedSection-5UJ9YsyQ.js → CasinoLastPlayedSection-BdZm8Lrj.js}
RENAMED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { a as ee, $ as te, S as ae, i as se, f as l,
|
2
|
-
function
|
1
|
+
import { a as ee, $ as te, S as ae, i as se, f as l, s as ie, F as ne, b as le, n as H, d as E, j as D, k as B, l as L, h as A, p as re, q as oe, x as ce, g as ue, o as me, e as i, w as ge, G as de, C as fe, D as he, E as ye } from "./CasinoFilter-B298XSri.js";
|
2
|
+
function V(s, e) {
|
3
3
|
ee(s, e);
|
4
4
|
}
|
5
5
|
function be(s) {
|
6
6
|
te.set(s);
|
7
7
|
}
|
8
|
-
const
|
8
|
+
const Z = {
|
9
9
|
en: {
|
10
10
|
noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
|
11
11
|
},
|
@@ -43,7 +43,7 @@ if (typeof window != "undefined") {
|
|
43
43
|
}
|
44
44
|
};
|
45
45
|
};
|
46
|
-
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-
|
46
|
+
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-K0FCiCv8.js").then(({ default: e }) => {
|
47
47
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
48
48
|
});
|
49
49
|
}
|
@@ -147,7 +147,7 @@ function we(s) {
|
|
147
147
|
);
|
148
148
|
},
|
149
149
|
m(t, n) {
|
150
|
-
|
150
|
+
D(t, e, n);
|
151
151
|
},
|
152
152
|
p(t, n) {
|
153
153
|
n[0] & /*session*/
|
@@ -261,7 +261,7 @@ function we(s) {
|
|
261
261
|
);
|
262
262
|
},
|
263
263
|
d(t) {
|
264
|
-
t &&
|
264
|
+
t && E(e);
|
265
265
|
}
|
266
266
|
};
|
267
267
|
}
|
@@ -272,18 +272,18 @@ function _e(s) {
|
|
272
272
|
), n;
|
273
273
|
return {
|
274
274
|
c() {
|
275
|
-
e = L("p"), n =
|
275
|
+
e = L("p"), n = me(t), A(e, "class", "SearchLoading");
|
276
276
|
},
|
277
277
|
m(o, r) {
|
278
|
-
|
278
|
+
D(o, e, r), B(e, n);
|
279
279
|
},
|
280
280
|
p(o, r) {
|
281
281
|
r[0] & /*$_*/
|
282
282
|
1048576 && t !== (t = /*$_*/
|
283
|
-
o[20]("noRecentGames") + "") &&
|
283
|
+
o[20]("noRecentGames") + "") && ue(n, t);
|
284
284
|
},
|
285
285
|
d(o) {
|
286
|
-
o &&
|
286
|
+
o && E(e);
|
287
287
|
}
|
288
288
|
};
|
289
289
|
}
|
@@ -301,37 +301,37 @@ function ke(s) {
|
|
301
301
|
e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
302
302
|
},
|
303
303
|
m(m, d) {
|
304
|
-
|
304
|
+
D(m, e, d), B(e, t), r.m(t, null), s[26](e);
|
305
305
|
},
|
306
306
|
p(m, d) {
|
307
307
|
o === (o = n(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
|
308
308
|
},
|
309
|
-
i:
|
310
|
-
o:
|
309
|
+
i: H,
|
310
|
+
o: H,
|
311
311
|
d(m) {
|
312
|
-
m &&
|
312
|
+
m && E(e), r.d(), s[26](null);
|
313
313
|
}
|
314
314
|
};
|
315
315
|
}
|
316
316
|
function Le(s, e, t) {
|
317
317
|
let n;
|
318
|
-
re(s,
|
319
|
-
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile:
|
318
|
+
re(s, de, (a) => t(20, n = a));
|
319
|
+
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: N = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: z = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
|
320
320
|
const Q = () => {
|
321
321
|
fetch(w).then((g) => g.json()).then((g) => {
|
322
322
|
Object.keys(g).forEach((c) => {
|
323
|
-
|
323
|
+
V(c, g[c]);
|
324
324
|
});
|
325
325
|
}).catch((g) => {
|
326
326
|
console.log(g);
|
327
327
|
});
|
328
328
|
};
|
329
|
-
Object.keys(
|
330
|
-
|
329
|
+
Object.keys(Z).forEach((a) => {
|
330
|
+
V(a, Z[a]);
|
331
331
|
});
|
332
332
|
const W = () => new Promise((a, g) => {
|
333
333
|
let c = new URL(`${o}/v1/player/${y}/games/last-played`);
|
334
|
-
c.searchParams.append("unique", R), c.searchParams.append("limit", j), c.searchParams.append("order", S), c.searchParams.append("period", C),
|
334
|
+
c.searchParams.append("unique", R), c.searchParams.append("limit", j), c.searchParams.append("order", S), c.searchParams.append("period", C), ge(K) === "PC" ? c.searchParams.append("device", "Desktop") : c.searchParams.append("device", "Mobile"), I = _ ? c : c.href, fetch(I).then((u) => u.json()).then((u) => {
|
335
335
|
u.items = u.items.filter(($) => {
|
336
336
|
let J = !0;
|
337
337
|
return $.gameCode == "OddsMatrix2" && (u.count--, J = !1), J;
|
@@ -364,19 +364,19 @@ function Le(s, e, t) {
|
|
364
364
|
oe(() => () => {
|
365
365
|
});
|
366
366
|
function x(a) {
|
367
|
-
|
367
|
+
ce[a ? "unshift" : "push"](() => {
|
368
368
|
f = a, t(18, f);
|
369
369
|
});
|
370
370
|
}
|
371
371
|
return s.$$set = (a) => {
|
372
|
-
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(21, w = a.translationurl), "livecasino" in a && t(8, _ = a.livecasino), "integratedgameframemobile" in a && t(9,
|
372
|
+
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(21, w = a.translationurl), "livecasino" in a && t(8, _ = a.livecasino), "integratedgameframemobile" in a && t(9, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(10, N = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(11, O = a.gamepagemodalurl), "showgamename" in a && t(12, z = a.showgamename), "visiblegames" in a && t(13, P = a.visiblegames), "favorites" in a && t(14, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(15, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(16, U = a.fetchviaevent), "mbsource" in a && t(17, q = a.mbsource);
|
373
373
|
}, s.$$.update = () => {
|
374
374
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
375
375
|
41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
|
376
376
|
2097152 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
377
|
-
262208 && b && f &&
|
378
|
-
262272 && v && f &&
|
379
|
-
393216 && f &&
|
377
|
+
262208 && b && f && fe(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
378
|
+
262272 && v && f && he(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
379
|
+
393216 && f && ye(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
|
380
380
|
8 && d && p();
|
381
381
|
}, [
|
382
382
|
o,
|
@@ -388,10 +388,10 @@ function Le(s, e, t) {
|
|
388
388
|
b,
|
389
389
|
v,
|
390
390
|
_,
|
391
|
-
z,
|
392
391
|
F,
|
393
392
|
N,
|
394
393
|
O,
|
394
|
+
z,
|
395
395
|
P,
|
396
396
|
T,
|
397
397
|
G,
|
@@ -415,7 +415,7 @@ class Pe extends ae {
|
|
415
415
|
e,
|
416
416
|
Le,
|
417
417
|
ke,
|
418
|
-
|
418
|
+
ie,
|
419
419
|
{
|
420
420
|
endpoint: 0,
|
421
421
|
datasource: 1,
|
@@ -584,7 +584,7 @@ class Pe extends ae {
|
|
584
584
|
this.$$set({ mbsource: e }), l();
|
585
585
|
}
|
586
586
|
}
|
587
|
-
|
587
|
+
ne(Pe, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
588
588
|
export {
|
589
589
|
Pe as default
|
590
590
|
};
|
package/components/{CasinoLastPlayedSection-Bf1NtQlg.js → CasinoLastPlayedSection-C5SbZ-Je.js}
RENAMED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { a as ee, $ as te,
|
2
|
-
function
|
1
|
+
import { a as ee, $ as te, F as ae, S as se, i as ie, s as ne, f as l, b as le, n as H, d as E, j as D, k as B, l as C, h as A, p as re, q as oe, x as ce, g as ue, o as me, e as i, w as ge, G as de, C as fe, D as he, E as ye } from "./CasinoFilter-CI9Hpq8Q.js";
|
2
|
+
function V(s, e) {
|
3
3
|
ee(s, e);
|
4
4
|
}
|
5
5
|
function be(s) {
|
6
6
|
te.set(s);
|
7
7
|
}
|
8
|
-
const
|
8
|
+
const Z = {
|
9
9
|
en: {
|
10
10
|
noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
|
11
11
|
},
|
@@ -43,7 +43,7 @@ if (typeof window < "u") {
|
|
43
43
|
}
|
44
44
|
};
|
45
45
|
};
|
46
|
-
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-
|
46
|
+
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-okctFbqH.js").then(({ default: e }) => {
|
47
47
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
48
48
|
});
|
49
49
|
}
|
@@ -54,7 +54,7 @@ function we(s) {
|
|
54
54
|
let e;
|
55
55
|
return {
|
56
56
|
c() {
|
57
|
-
e =
|
57
|
+
e = C("casino-games-category-section"), i(
|
58
58
|
e,
|
59
59
|
"session",
|
60
60
|
/*session*/
|
@@ -147,7 +147,7 @@ function we(s) {
|
|
147
147
|
);
|
148
148
|
},
|
149
149
|
m(t, n) {
|
150
|
-
|
150
|
+
D(t, e, n);
|
151
151
|
},
|
152
152
|
p(t, n) {
|
153
153
|
n[0] & /*session*/
|
@@ -261,7 +261,7 @@ function we(s) {
|
|
261
261
|
);
|
262
262
|
},
|
263
263
|
d(t) {
|
264
|
-
t &&
|
264
|
+
t && E(e);
|
265
265
|
}
|
266
266
|
};
|
267
267
|
}
|
@@ -272,18 +272,18 @@ function _e(s) {
|
|
272
272
|
), n;
|
273
273
|
return {
|
274
274
|
c() {
|
275
|
-
e =
|
275
|
+
e = C("p"), n = me(t), A(e, "class", "SearchLoading");
|
276
276
|
},
|
277
277
|
m(o, r) {
|
278
|
-
|
278
|
+
D(o, e, r), B(e, n);
|
279
279
|
},
|
280
280
|
p(o, r) {
|
281
281
|
r[0] & /*$_*/
|
282
282
|
1048576 && t !== (t = /*$_*/
|
283
|
-
o[20]("noRecentGames") + "") &&
|
283
|
+
o[20]("noRecentGames") + "") && ue(n, t);
|
284
284
|
},
|
285
285
|
d(o) {
|
286
|
-
o &&
|
286
|
+
o && E(e);
|
287
287
|
}
|
288
288
|
};
|
289
289
|
}
|
@@ -298,40 +298,40 @@ function ke(s) {
|
|
298
298
|
let o = n(s), r = o(s);
|
299
299
|
return {
|
300
300
|
c() {
|
301
|
-
e =
|
301
|
+
e = C("div"), t = C("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
302
302
|
},
|
303
303
|
m(m, d) {
|
304
|
-
|
304
|
+
D(m, e, d), B(e, t), r.m(t, null), s[26](e);
|
305
305
|
},
|
306
306
|
p(m, d) {
|
307
307
|
o === (o = n(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
|
308
308
|
},
|
309
|
-
i:
|
310
|
-
o:
|
309
|
+
i: H,
|
310
|
+
o: H,
|
311
311
|
d(m) {
|
312
|
-
m &&
|
312
|
+
m && E(e), r.d(), s[26](null);
|
313
313
|
}
|
314
314
|
};
|
315
315
|
}
|
316
|
-
function
|
316
|
+
function Ce(s, e, t) {
|
317
317
|
let n;
|
318
|
-
re(s,
|
319
|
-
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile:
|
318
|
+
re(s, de, (a) => t(20, n = a));
|
319
|
+
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: N = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: z = "" } = e, { visiblegames: L = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: P = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
|
320
320
|
const Q = () => {
|
321
321
|
fetch(w).then((g) => g.json()).then((g) => {
|
322
322
|
Object.keys(g).forEach((c) => {
|
323
|
-
|
323
|
+
V(c, g[c]);
|
324
324
|
});
|
325
325
|
}).catch((g) => {
|
326
326
|
console.log(g);
|
327
327
|
});
|
328
328
|
};
|
329
|
-
Object.keys(
|
330
|
-
|
329
|
+
Object.keys(Z).forEach((a) => {
|
330
|
+
V(a, Z[a]);
|
331
331
|
});
|
332
332
|
const W = () => new Promise((a, g) => {
|
333
333
|
let c = new URL(`${o}/v1/player/${y}/games/last-played`);
|
334
|
-
c.searchParams.append("unique", R), c.searchParams.append("limit", j), c.searchParams.append("order", S), c.searchParams.append("period",
|
334
|
+
c.searchParams.append("unique", R), c.searchParams.append("limit", j), c.searchParams.append("order", S), c.searchParams.append("period", P), ge(K) === "PC" ? c.searchParams.append("device", "Desktop") : c.searchParams.append("device", "Mobile"), I = _ ? c : c.href, fetch(I).then((u) => u.json()).then((u) => {
|
335
335
|
u.items = u.items.filter(($) => {
|
336
336
|
let J = !0;
|
337
337
|
return $.gameCode == "OddsMatrix2" && (u.count--, J = !1), J;
|
@@ -353,7 +353,7 @@ function Le(s, e, t) {
|
|
353
353
|
let h = new URL(`${o}/v1/casino/games/${c.gameId}`);
|
354
354
|
h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((u) => u.json())) : g.push(fetch(h.href).then((u) => u.json()));
|
355
355
|
}), Promise.all(g).then((c) => {
|
356
|
-
k = c.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(
|
356
|
+
k = c.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(L))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
|
357
357
|
});
|
358
358
|
} else
|
359
359
|
t(19, Y = !0);
|
@@ -364,19 +364,19 @@ function Le(s, e, t) {
|
|
364
364
|
oe(() => () => {
|
365
365
|
});
|
366
366
|
function x(a) {
|
367
|
-
|
367
|
+
ce[a ? "unshift" : "push"](() => {
|
368
368
|
f = a, t(18, f);
|
369
369
|
});
|
370
370
|
}
|
371
371
|
return s.$$set = (a) => {
|
372
|
-
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(21, w = a.translationurl), "livecasino" in a && t(8, _ = a.livecasino), "integratedgameframemobile" in a && t(9,
|
372
|
+
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(21, w = a.translationurl), "livecasino" in a && t(8, _ = a.livecasino), "integratedgameframemobile" in a && t(9, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(10, N = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(11, O = a.gamepagemodalurl), "showgamename" in a && t(12, z = a.showgamename), "visiblegames" in a && t(13, L = a.visiblegames), "favorites" in a && t(14, T = a.favorites), "lastplayedperiod" in a && t(22, P = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(15, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(16, U = a.fetchviaevent), "mbsource" in a && t(17, q = a.mbsource);
|
373
373
|
}, s.$$.update = () => {
|
374
374
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
375
375
|
41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
|
376
376
|
2097152 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
377
|
-
262208 && b && f &&
|
378
|
-
262272 && v && f &&
|
379
|
-
393216 && f &&
|
377
|
+
262208 && b && f && fe(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
378
|
+
262272 && v && f && he(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
379
|
+
393216 && f && ye(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
|
380
380
|
8 && d && p();
|
381
381
|
}, [
|
382
382
|
o,
|
@@ -388,11 +388,11 @@ function Le(s, e, t) {
|
|
388
388
|
b,
|
389
389
|
v,
|
390
390
|
_,
|
391
|
-
z,
|
392
391
|
F,
|
393
392
|
N,
|
394
393
|
O,
|
395
|
-
|
394
|
+
z,
|
395
|
+
L,
|
396
396
|
T,
|
397
397
|
G,
|
398
398
|
U,
|
@@ -401,19 +401,19 @@ function Le(s, e, t) {
|
|
401
401
|
Y,
|
402
402
|
n,
|
403
403
|
w,
|
404
|
-
|
404
|
+
P,
|
405
405
|
S,
|
406
406
|
j,
|
407
407
|
R,
|
408
408
|
x
|
409
409
|
];
|
410
410
|
}
|
411
|
-
class
|
411
|
+
class Le extends se {
|
412
412
|
constructor(e) {
|
413
413
|
super(), ie(
|
414
414
|
this,
|
415
415
|
e,
|
416
|
-
|
416
|
+
Ce,
|
417
417
|
ke,
|
418
418
|
ne,
|
419
419
|
{
|
@@ -584,7 +584,7 @@ class Pe extends se {
|
|
584
584
|
this.$$set({ mbsource: e }), l();
|
585
585
|
}
|
586
586
|
}
|
587
|
-
ae(
|
587
|
+
ae(Le, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
588
588
|
export {
|
589
|
-
|
589
|
+
Le as C
|
590
590
|
};
|
package/components/{CasinoLastPlayedSection-Bf4VOw5U.cjs → CasinoLastPlayedSection-DbZ2ye9e.cjs}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-tW53xiI-.cjs");function z(n,e){t.addMessages(n,e)}function K(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};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-wNowkAwv.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(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","LASTPLAYED"),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,"mbsource",n[17]),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]&131072&&t.set_custom_element_data(e,"mbsource",a[17]),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 X(n){let e,a=n[20]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[19]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(19,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(18,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(21,b=s.translationurl),"livecasino"in s&&a(8,v=s.livecasino),"integratedgameframemobile"in s&&a(9,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,E=s.gamepagemodalurl),"showgamename"in s&&a(12,M=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(15,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(16,F=s.fetchviaevent),"mbsource"in s&&a(17,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&2097152&&b&&J(),n.$$.dirty[0]&262208&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&262272&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&393216&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,v,R,A,E,M,k,D,S,F,q,g,O,i,b,P,L,C,j,p]}class Y 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,translationurl:21,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:15,lastplayedunique:25,fetchviaevent:16,mbsource:17},Q,[-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 translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl: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 lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-Db45KoqP.cjs");function z(n,e){t.addMessages(n,e)}function K(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};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-CCZDVVXV.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(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","LASTPLAYED"),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,"mbsource",n[17]),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]&131072&&t.set_custom_element_data(e,"mbsource",a[17]),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 X(n){let e,a=n[20]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[19]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(19,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(18,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(21,b=s.translationurl),"livecasino"in s&&a(8,v=s.livecasino),"integratedgameframemobile"in s&&a(9,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,E=s.gamepagemodalurl),"showgamename"in s&&a(12,M=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(15,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(16,F=s.fetchviaevent),"mbsource"in s&&a(17,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&2097152&&b&&J(),n.$$.dirty[0]&262208&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&262272&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&393216&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,v,R,A,E,M,k,D,S,F,q,g,O,i,b,P,L,C,j,p]}class Y 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,translationurl:21,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:15,lastplayedunique:25,fetchviaevent:16,mbsource:17},Q,[-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 translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl: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 lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
|