@everymatrix/casino-most-played-section-nd 1.74.2 → 1.74.4
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/{CasinoGamesCategorySectionNd-Cgo93hTx.js → CasinoGamesCategorySectionNd-BInF1AGS.js} +94 -86
- package/components/{CasinoGamesCategorySectionNd-IzTKj3iY.cjs → CasinoGamesCategorySectionNd-DIAuOFHp.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-1s7QPrxR.js → CasinoGamesCategorySectionNd-ReoALdIe.js} +364 -356
- package/components/{CasinoMostPlayedSectionNd-lAs21A9F.js → CasinoMostPlayedSectionNd-BBJqnntv.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-Bm3v0f_Y.cjs → CasinoMostPlayedSectionNd-BPRDeoJo.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-BcI6jNHs.js → CasinoMostPlayedSectionNd-CLfGAxns.js} +1 -1
- package/es2015/casino-most-played-section-nd.cjs +1 -1
- package/es2015/casino-most-played-section-nd.js +1 -1
- package/esnext/casino-most-played-section-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Oa, $ as Ba, S as Va, i as Ha, f as z, c as qa, s as Wa, b as Ya, e as C, j as h, k as y, n as pe, m as k, o as Ja, J as Ka, p as Xa, q as Za, r as Qa, K as Ee, A as oe, B as xa, d as H, u as ve, l as w, y as K, G as $a, z as ei, v as
|
|
1
|
+
import { a as Oa, $ as Ba, S as Va, i as Ha, f as z, c as qa, s as Wa, b as Ya, e as C, j as h, k as y, n as pe, m as k, o as Ja, J as Ka, p as Xa, q as Za, r as Qa, K as Ee, A as oe, B as xa, d as H, u as ve, l as w, y as K, G as $a, z as ei, v as j, x as D, D as se, L as _a, h as n, E as ai, C as $, w as ii, M as pa } from "./CasinoFilter-DvTM2Bs1.js";
|
|
2
2
|
import { d as xe, i as ni, a as ti } from "./CasinoGameThumbnailNd-C0_WAEiR.js";
|
|
3
3
|
function $e(i, e) {
|
|
4
4
|
Oa(i, e);
|
|
@@ -436,7 +436,7 @@ function ta(i) {
|
|
|
436
436
|
), u, f;
|
|
437
437
|
return {
|
|
438
438
|
c() {
|
|
439
|
-
e = C("div"), a = C("h3"), o =
|
|
439
|
+
e = C("div"), a = C("h3"), o = j(t), s = H(), r = C("span"), m = j("("), u = j(c), f = j(")"), h(r, "class", "CategoryFavName"), h(a, "class", "CategoryName"), h(e, "class", "CasinoGamesHeader");
|
|
440
440
|
},
|
|
441
441
|
m(p, b) {
|
|
442
442
|
y(p, e, b), w(e, a), w(a, o), w(a, s), w(a, r), w(r, m), w(r, u), w(r, f), i[59](a);
|
|
@@ -460,7 +460,7 @@ function di(i) {
|
|
|
460
460
|
), t;
|
|
461
461
|
return {
|
|
462
462
|
c() {
|
|
463
|
-
e = C("p"), t =
|
|
463
|
+
e = C("p"), t = j(a);
|
|
464
464
|
},
|
|
465
465
|
m(o, s) {
|
|
466
466
|
y(o, e, s), w(e, t);
|
|
@@ -546,7 +546,7 @@ function oa(i) {
|
|
|
546
546
|
let U = d(i)(i);
|
|
547
547
|
return {
|
|
548
548
|
c() {
|
|
549
|
-
e = C("p"), a = $("svg"), t = $("rect"), o = $("rect"), s = $("circle"), r = $("path"), m = $("path"), c = $("path"), u = $("path"), f = H(), p = C("span"), M =
|
|
549
|
+
e = C("p"), a = $("svg"), t = $("rect"), o = $("rect"), s = $("circle"), r = $("path"), m = $("path"), c = $("path"), u = $("path"), f = H(), p = C("span"), M = j(b), I = H(), U.c(), g = H(), h(t, "x", "1"), h(t, "y", "18.053"), h(t, "width", "90.263"), h(t, "height", "90.263"), h(t, "rx", "12"), h(t, "stroke", "var(--emw--color-gray-150, #828282)"), h(t, "stroke-width", "1.5"), h(o, "x", "106.737"), h(o, "y", "56.737"), h(o, "width", "90.263"), h(o, "height", "90.263"), h(o, "rx", "12"), h(o, "stroke", "var(--emw--color-gray-150, #828282)"), h(o, "stroke-width", "1.5"), h(s, "cx", "70.5"), h(s, "cy", "32.237"), h(s, "r", "31.487"), h(s, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"), h(s, "stroke-width", "1.5"), h(s, "stroke-dasharray", "5 0"), h(r, "d", "M153.909 81.631a.747.747 0 0 0-.166-1.046l-5.466-3.954a.751.751 0 0 0-.882 1.214l4.859 3.514-3.529 4.858a.75.75 0 1 0 1.215.878l3.969-5.464zm-.725-1.18c-.501.081-.999.159-1.493.233l.223 1.482c.498-.075 1-.153 1.506-.234l-.236-1.48zm-4.457.654c-1.006.133-1.996.253-2.97.36l.162 1.49c.985-.109 1.986-.23 3.002-.364l-.194-1.486zm-5.944.65c-1.01.085-2.002.155-2.978.209l.081 1.496c.991-.054 1.997-.125 3.021-.212l-.124-1.493zm-5.955.326c-1.009.022-2 .026-2.974.01l-.026 1.5c.994.015 2.003.011 3.031-.012l-.031-1.498zm-5.953-.099a61.03 61.03 0 0 1-2.961-.245l-.164 1.49c.995.107 2.006.19 3.035.251l.09-1.496zm-5.898-.641a49.97 49.97 0 0 1-2.907-.56l-.332 1.462c.983.22 1.98.412 2.995.577l.244-1.48zm-5.773-1.298a44.435 44.435 0 0 1-2.807-.92l-.518 1.407c.953.348 1.92.665 2.901.951l.424-1.438zm-5.546-2.027A44.285 44.285 0 0 1 111 76.73l-.702 1.326a45.9 45.9 0 0 0 2.748 1.331l.612-1.37zm-5.23-2.75a49.031 49.031 0 0 1-2.472-1.616l-.861 1.229a50.27 50.27 0 0 0 2.548 1.666l.785-1.278zm-4.851-3.378c-.767-.601-1.529-1.231-2.289-1.891l-.987 1.131c.778.676 1.56 1.322 2.348 1.94l.928-1.18zm-4.486-3.889a74.64 74.64 0 0 1-2.11-2.088l-1.078 1.044a76.17 76.17 0 0 0 2.152 2.13L99.091 68zm-4.143-4.259a97.17 97.17 0 0 1-1.965-2.239l-1.145.972a98.31 98.31 0 0 0 1.996 2.274l1.114-1.007zm-3.867-4.536a127.63 127.63 0 0 1-1.845-2.346l-1.192.914c.624.812 1.246 1.603 1.867 2.373l1.17-.94zm-3.64-4.733c-.58-.788-1.163-1.596-1.749-2.423l-1.225.867c.59.834 1.179 1.649 1.764 2.445l1.21-.89z"), h(r, "fill", "var(--emw--color-gray-150, #828282)"), h(m, "d", "M78 43h11v13H78V43z"), h(m, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"), h(c, "d", "m180 65 2.021 6.219h6.539l-5.291 3.843 2.021 6.22-5.29-3.844-5.29 3.843 2.021-6.219-5.291-3.843h6.539L180 65z"), h(c, "fill", "var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"), h(c, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"), h(c, "stroke-linecap", "round"), h(c, "stroke-linejoin", "round"), h(u, "d", "m74 27 2.02 6.219h6.54l-5.29 3.843 2.02 6.22L74 39.437l-5.29 3.843 2.02-6.219-5.29-3.843h6.54L74 27z"), h(u, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"), h(u, "stroke-width", "1.5"), h(u, "stroke-linecap", "round"), h(u, "stroke-linejoin", "round"), h(a, "width", "198"), h(a, "height", "148"), h(a, "viewBox", "0 0 198 148"), h(a, "fill", "none"), h(a, "xmlns", "http://www.w3.org/2000/svg"), h(p, "class", "NoFavoriteText NoFavoriteTextHighlight"), h(e, "class", "NoFavoriteGames " + (ve(
|
|
550
550
|
/*userAgent*/
|
|
551
551
|
i[44]
|
|
552
552
|
) ? "NoFavoriteGamesMobile" : ""));
|
|
@@ -571,7 +571,7 @@ function hi(i) {
|
|
|
571
571
|
), t;
|
|
572
572
|
return {
|
|
573
573
|
c() {
|
|
574
|
-
e = C("span"), t =
|
|
574
|
+
e = C("span"), t = j(a), h(e, "class", "NoFavoriteText");
|
|
575
575
|
},
|
|
576
576
|
m(o, s) {
|
|
577
577
|
y(o, e, s), w(e, t);
|
|
@@ -593,7 +593,7 @@ function _i(i) {
|
|
|
593
593
|
), t;
|
|
594
594
|
return {
|
|
595
595
|
c() {
|
|
596
|
-
e = C("span"), t =
|
|
596
|
+
e = C("span"), t = j(a), h(e, "class", "NoFavoriteText");
|
|
597
597
|
},
|
|
598
598
|
m(o, s) {
|
|
599
599
|
y(o, e, s), w(e, t);
|
|
@@ -1293,7 +1293,7 @@ function ca(i) {
|
|
|
1293
1293
|
let u = c(i), f = u(i);
|
|
1294
1294
|
return {
|
|
1295
1295
|
c() {
|
|
1296
|
-
e = C("div"), a = C("span"), a.innerHTML = '<div class="CategoryIconAnimation"></div> <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 28 28"><g id="Group_5260" data-name="Group 5260" transform="translate(-26 -13)"><g id="Ellipse_664_copy" data-name="Ellipse 664 copy" transform="translate(26 13)" fill="rgba(249,165,2,0)"><path d="M 14 27 C 10.52756977081299 27 7.26298999786377 25.64776039123535 4.807610034942627 23.19239044189453 C 2.352240085601807 20.73700904846191 1 17.4724292755127 1 14 C 1 10.52756977081299 2.352240085601807 7.26298999786377 4.807610034942627 4.807610034942627 C 7.26298999786377 2.352240085601807 10.52756977081299 1 14 1 C 17.4724292755127 1 20.73700904846191 2.352240085601807 23.19239044189453 4.807610034942627 C 25.64776039123535 7.26298999786377 27 10.52756977081299 27 14 C 27 17.4724292755127 25.64776039123535 20.73700904846191 23.19239044189453 23.19239044189453 C 20.73700904846191 25.64776039123535 17.4724292755127 27 14 27 Z" stroke="none"></path><path d="M 14 2 C 10.79467964172363 2 7.781219482421875 3.248220443725586 5.514720916748047 5.514720916748047 C 3.248220443725586 7.781219482421875 2 10.79467964172363 2 14 C 2 17.2053108215332 3.248220443725586 20.21878051757812 5.514720916748047 22.48527908325195 C 7.781219482421875 24.75177955627441 10.79467964172363 26 14 26 C 17.2053108215332 26 20.21878051757812 24.75177955627441 22.48527908325195 22.48527908325195 C 24.75177955627441 20.21878051757812 26 17.2053108215332 26 14 C 26 10.79467964172363 24.75177955627441 7.781219482421875 22.48527908325195 5.514720916748047 C 20.21878051757812 3.248220443725586 17.2053108215332 2 14 2 M 14 0 C 21.73197937011719 0 28 6.268009185791016 28 14 C 28 21.73197937011719 21.73197937011719 28 14 28 C 6.268009185791016 28 0 21.73197937011719 0 14 C 0 6.268009185791016 6.268009185791016 0 14 0 Z" stroke="none" fill="#fff"></path></g><path id="Rounded_Rectangle_683" data-name="Rounded Rectangle 683" d="M1139,917.587V906.4a1.4,1.4,0,0,1,1.976,0l4.61,4.608a1.4,1.4,0,0,1,0,1.975l-4.61,4.607A1.4,1.4,0,0,1,1139,917.587Z" transform="translate(-1102 -885)" fill="#fff"></path></g></svg>', t = H(), o = C("h3"), r =
|
|
1296
|
+
e = C("div"), a = C("span"), a.innerHTML = '<div class="CategoryIconAnimation"></div> <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 28 28"><g id="Group_5260" data-name="Group 5260" transform="translate(-26 -13)"><g id="Ellipse_664_copy" data-name="Ellipse 664 copy" transform="translate(26 13)" fill="rgba(249,165,2,0)"><path d="M 14 27 C 10.52756977081299 27 7.26298999786377 25.64776039123535 4.807610034942627 23.19239044189453 C 2.352240085601807 20.73700904846191 1 17.4724292755127 1 14 C 1 10.52756977081299 2.352240085601807 7.26298999786377 4.807610034942627 4.807610034942627 C 7.26298999786377 2.352240085601807 10.52756977081299 1 14 1 C 17.4724292755127 1 20.73700904846191 2.352240085601807 23.19239044189453 4.807610034942627 C 25.64776039123535 7.26298999786377 27 10.52756977081299 27 14 C 27 17.4724292755127 25.64776039123535 20.73700904846191 23.19239044189453 23.19239044189453 C 20.73700904846191 25.64776039123535 17.4724292755127 27 14 27 Z" stroke="none"></path><path d="M 14 2 C 10.79467964172363 2 7.781219482421875 3.248220443725586 5.514720916748047 5.514720916748047 C 3.248220443725586 7.781219482421875 2 10.79467964172363 2 14 C 2 17.2053108215332 3.248220443725586 20.21878051757812 5.514720916748047 22.48527908325195 C 7.781219482421875 24.75177955627441 10.79467964172363 26 14 26 C 17.2053108215332 26 20.21878051757812 24.75177955627441 22.48527908325195 22.48527908325195 C 24.75177955627441 20.21878051757812 26 17.2053108215332 26 14 C 26 10.79467964172363 24.75177955627441 7.781219482421875 22.48527908325195 5.514720916748047 C 20.21878051757812 3.248220443725586 17.2053108215332 2 14 2 M 14 0 C 21.73197937011719 0 28 6.268009185791016 28 14 C 28 21.73197937011719 21.73197937011719 28 14 28 C 6.268009185791016 28 0 21.73197937011719 0 14 C 0 6.268009185791016 6.268009185791016 0 14 0 Z" stroke="none" fill="#fff"></path></g><path id="Rounded_Rectangle_683" data-name="Rounded Rectangle 683" d="M1139,917.587V906.4a1.4,1.4,0,0,1,1.976,0l4.61,4.608a1.4,1.4,0,0,1,0,1.975l-4.61,4.607A1.4,1.4,0,0,1,1139,917.587Z" transform="translate(-1102 -885)" fill="#fff"></path></g></svg>', t = H(), o = C("h3"), r = j(s), m = H(), f.c(), h(a, "class", "CategoryIcon"), h(o, "class", "CategoryName"), h(e, "class", "CasinoGamesHeader");
|
|
1297
1297
|
},
|
|
1298
1298
|
m(p, b) {
|
|
1299
1299
|
y(p, e, b), w(e, a), w(e, t), w(e, o), w(o, r), i[55](o), w(e, m), f.m(e, null);
|
|
@@ -1352,7 +1352,7 @@ function yi(i) {
|
|
|
1352
1352
|
), m, c, u, f;
|
|
1353
1353
|
return {
|
|
1354
1354
|
c() {
|
|
1355
|
-
e = C("a"), a = C("span"), o =
|
|
1355
|
+
e = C("a"), a = C("span"), o = j(t), s = j(" ("), m = j(r), c = j(")"), h(a, "class", "CategoryLoadMore"), h(e, "class", "CategoryNameLink");
|
|
1356
1356
|
},
|
|
1357
1357
|
m(p, b) {
|
|
1358
1358
|
y(p, e, b), w(e, a), w(a, o), w(a, s), w(a, m), w(a, c), u || (f = ii(
|
|
@@ -1591,7 +1591,7 @@ function ki(i) {
|
|
|
1591
1591
|
), t;
|
|
1592
1592
|
return {
|
|
1593
1593
|
c() {
|
|
1594
|
-
e = C("p"), t =
|
|
1594
|
+
e = C("p"), t = j(a), h(e, "class", "NoSearchResults");
|
|
1595
1595
|
},
|
|
1596
1596
|
m(o, s) {
|
|
1597
1597
|
y(o, e, s), w(e, t);
|
|
@@ -1990,7 +1990,7 @@ function Fi(i) {
|
|
|
1990
1990
|
), t;
|
|
1991
1991
|
return {
|
|
1992
1992
|
c() {
|
|
1993
|
-
e = C("h3"), t =
|
|
1993
|
+
e = C("h3"), t = j(a), h(e, "class", "StatusText");
|
|
1994
1994
|
},
|
|
1995
1995
|
m(o, s) {
|
|
1996
1996
|
y(o, e, s), w(e, t);
|
|
@@ -2012,7 +2012,7 @@ function zi(i) {
|
|
|
2012
2012
|
), t;
|
|
2013
2013
|
return {
|
|
2014
2014
|
c() {
|
|
2015
|
-
e = C("h3"), t =
|
|
2015
|
+
e = C("h3"), t = j(a), h(e, "class", "StatusText");
|
|
2016
2016
|
},
|
|
2017
2017
|
m(o, s) {
|
|
2018
2018
|
y(o, e, s), w(e, t);
|
|
@@ -2034,7 +2034,7 @@ function Mi(i) {
|
|
|
2034
2034
|
), t;
|
|
2035
2035
|
return {
|
|
2036
2036
|
c() {
|
|
2037
|
-
e = C("h3"), t =
|
|
2037
|
+
e = C("h3"), t = j(a), h(e, "class", "StatusText");
|
|
2038
2038
|
},
|
|
2039
2039
|
m(o, s) {
|
|
2040
2040
|
y(o, e, s), w(e, t);
|
|
@@ -2113,7 +2113,7 @@ function fa(i) {
|
|
|
2113
2113
|
), t;
|
|
2114
2114
|
return {
|
|
2115
2115
|
c() {
|
|
2116
|
-
e = C("p"), t =
|
|
2116
|
+
e = C("p"), t = j(a), h(e, "class", "NoSearchResults NoRecentSearches NoRecentSearchesCenter " + (ve(
|
|
2117
2117
|
/*userAgent*/
|
|
2118
2118
|
i[44]
|
|
2119
2119
|
) ? "NoRecentSearchesMobile" : ""));
|
|
@@ -2449,11 +2449,11 @@ function Ni(i) {
|
|
|
2449
2449
|
};
|
|
2450
2450
|
}
|
|
2451
2451
|
const ee = "game-tile-";
|
|
2452
|
-
let
|
|
2453
|
-
function
|
|
2452
|
+
let Li = 0;
|
|
2453
|
+
function ji(i, e, a) {
|
|
2454
2454
|
let t;
|
|
2455
2455
|
Ja(i, $a, (l) => a(43, t = l));
|
|
2456
|
-
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: p = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: M = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: ne = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: X = "false" } = e, { casinomygames: le = "false" } = e, { addfilterselector: be = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo:
|
|
2456
|
+
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: p = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: M = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: ne = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: X = "false" } = e, { casinomygames: le = "false" } = e, { addfilterselector: be = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo: qe = "" } = e, { casinogamesgridslider: We = "false" } = e, { fetchviaevent: re = "false" } = e, { showallpage: Re = "casino" } = e, { actionevent: Ae = "CategoryChange" } = e, { displayedgamecount: ye = "10" } = e, { showallbuttongamescount: ke = "10" } = e, { lobbyscreen: Ne = "true" } = e, { usesinglevendorfilter: Ge = "false" } = e, { visiblegames: Le = "10" } = e, Z = !0, je = !1, Ce, Se, W = !0, Ye = window.navigator.userAgent, T, F = [], Q = !0, ae = 40, Y = !1, Fe = !1, me = !1, Te = !1, Pe = !0, ce = !1, ge, De, de, ue = !1, q, ze = !1, fe = new Array(1e4), he = {}, Ue = "", ie = "", Me, Oe, N, O = [], Ie = new AbortController(), te = { items: [], count: 0, name: "" };
|
|
2457
2457
|
const va = () => {
|
|
2458
2458
|
fetch(M).then((_) => _.json()).then((_) => {
|
|
2459
2459
|
Object.keys(_).forEach((G) => {
|
|
@@ -2466,13 +2466,13 @@ function Li(i, e, a) {
|
|
|
2466
2466
|
Object.keys(ea).forEach((l) => {
|
|
2467
2467
|
$e(l, ea[l]);
|
|
2468
2468
|
}), typeof document.hidden < "u" ? Me = "hidden" : typeof document.msHidden < "u" ? Me = "msHidden" : typeof document.webkitHidden < "u" && (Me = "webkitHidden");
|
|
2469
|
-
let
|
|
2469
|
+
let Je = new IntersectionObserver((l) => {
|
|
2470
2470
|
l.forEach(async (_) => {
|
|
2471
|
-
let G = _.target.gameid,
|
|
2472
|
-
_.isIntersecting ? (
|
|
2471
|
+
let G = _.target.gameid, R = _.target.elems_index;
|
|
2472
|
+
_.isIntersecting ? (R * 1.2 > ae && Sa(g), a(40, he[G] = 1, he)) : a(40, he[G] = 0, he);
|
|
2473
2473
|
});
|
|
2474
2474
|
});
|
|
2475
|
-
const ba = (l, _) => new Promise((G,
|
|
2475
|
+
const ba = (l, _) => new Promise((G, R) => {
|
|
2476
2476
|
if (l && _) {
|
|
2477
2477
|
let A = `${o}/v1/player/${_}/favorites/`;
|
|
2478
2478
|
fetch(A, {
|
|
@@ -2480,8 +2480,8 @@ function Li(i, e, a) {
|
|
|
2480
2480
|
headers: { "X-SessionID": l }
|
|
2481
2481
|
}).then((S) => S.json()).then((S) => {
|
|
2482
2482
|
if (N = [], S) {
|
|
2483
|
-
S.items?.forEach((
|
|
2484
|
-
|
|
2483
|
+
S.items?.forEach((L) => {
|
|
2484
|
+
L.gameModel && (N.push(L), O.includes(L.id) || O.push(L.id));
|
|
2485
2485
|
});
|
|
2486
2486
|
const J = Ee(N)?.length;
|
|
2487
2487
|
window.postMessage({
|
|
@@ -2490,49 +2490,49 @@ function Li(i, e, a) {
|
|
|
2490
2490
|
});
|
|
2491
2491
|
} else
|
|
2492
2492
|
N = [];
|
|
2493
|
-
g === "FAVORITES" &&
|
|
2493
|
+
g === "FAVORITES" && He(N), G(N);
|
|
2494
2494
|
}).catch((S) => {
|
|
2495
|
-
console.error(S),
|
|
2495
|
+
console.error(S), R(S);
|
|
2496
2496
|
});
|
|
2497
2497
|
} else
|
|
2498
2498
|
G([]);
|
|
2499
2499
|
}), Be = (l, _) => {
|
|
2500
2500
|
let G = `${o}/v1/player/${_}/favorites/`;
|
|
2501
2501
|
a(25, Z = !0);
|
|
2502
|
-
let
|
|
2502
|
+
let R = {
|
|
2503
2503
|
method: "GET",
|
|
2504
2504
|
headers: { "X-SessionID": l }
|
|
2505
2505
|
};
|
|
2506
|
-
return new Promise((A,
|
|
2507
|
-
fetch(G,
|
|
2506
|
+
return new Promise((A, E) => {
|
|
2507
|
+
fetch(G, R).then((S) => S.json()).then((S) => {
|
|
2508
2508
|
if (a(25, Z = !1), N = [], S) {
|
|
2509
2509
|
S.items?.forEach((V) => {
|
|
2510
2510
|
V.gameModel && (N.push(V), O.includes(V.id) || O.push(V.id));
|
|
2511
2511
|
});
|
|
2512
|
-
const
|
|
2512
|
+
const L = Ee(N)?.length;
|
|
2513
2513
|
window.postMessage({
|
|
2514
2514
|
type: "UpdateFavoritesCount",
|
|
2515
|
-
favoriteGamesLength:
|
|
2515
|
+
favoriteGamesLength: L
|
|
2516
2516
|
});
|
|
2517
2517
|
} else
|
|
2518
2518
|
N = [];
|
|
2519
|
-
g === "FAVORITES" &&
|
|
2520
|
-
|
|
2519
|
+
g === "FAVORITES" && He(N), F.forEach((L) => {
|
|
2520
|
+
L.isFavorite = B(L.id);
|
|
2521
2521
|
});
|
|
2522
2522
|
let J = F;
|
|
2523
2523
|
a(29, F = void 0), a(29, F = J), A(N);
|
|
2524
2524
|
}).catch((S) => {
|
|
2525
|
-
console.error(S),
|
|
2525
|
+
console.error(S), E(S);
|
|
2526
2526
|
});
|
|
2527
2527
|
});
|
|
2528
|
-
},
|
|
2528
|
+
}, Ke = (l, _, G, R) => {
|
|
2529
2529
|
Ie && Ie.abort(), Ie = new AbortController();
|
|
2530
2530
|
const A = Ie.signal;
|
|
2531
2531
|
a(25, Z = !0);
|
|
2532
|
-
let
|
|
2532
|
+
let E = "", S = "", J = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), L = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
|
2533
2533
|
const V = Ge === "true" ? "*" : l;
|
|
2534
|
-
return (l.match(/\$/g) || []).length > 1 ? (
|
|
2535
|
-
if (S.searchParams.delete("pagination"), S.searchParams.append("expand", "games(vendor)"), S.searchParams.append("fields", "id,name,games"), S.searchParams.append("platform", ei(
|
|
2534
|
+
return (l.match(/\$/g) || []).length > 1 ? (E = l.split("$").slice(0, 2).join("$"), S = new URL(`${o}/v1/casino/groups/${s}/${E}/subGroups`)) : S = new URL(`${o}/v1/casino/groups/${s}/${l}`), new Promise((Da, Ua) => {
|
|
2535
|
+
if (S.searchParams.delete("pagination"), S.searchParams.append("expand", "games(vendor)"), S.searchParams.append("fields", "id,name,games"), S.searchParams.append("platform", ei(Ye)), S.searchParams.append("pagination", `games(offset=${_},limit=${G})`), S.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), J && J[V]?.length)
|
|
2536
2536
|
if (Ge === "true" || W === !1 && ue === !1) {
|
|
2537
2537
|
let P = "";
|
|
2538
2538
|
a(34, Te = !0), J[V].forEach((x) => {
|
|
@@ -2540,33 +2540,33 @@ function Li(i, e, a) {
|
|
|
2540
2540
|
}), S.searchParams.append("filter", `${P}`);
|
|
2541
2541
|
} else
|
|
2542
2542
|
a(34, Te = !1);
|
|
2543
|
-
|
|
2543
|
+
L && (L[l] ? L[l] && L[l] != "All" && (L[l] == "isNew" || L[l] == "advancedTags(name(hot))" ? (S.searchParams.append("sortedField", `games(${L[l]})`), S.searchParams.append("orderBy", "DES")) : S.searchParams.append("sortedField", `games(${L[l]})`)) : ie && ie != "All" && (ie == "advancedTags(name(hot))" || ie == "isNew" ? (S.searchParams.append("sortedField", `games(${ie})`), S.searchParams.append("orderBy", "DES")) : S.searchParams.append("sortedField", `games(${ie})`))), fetch(S, { signal: A }).then((P) => P.json()).then((P) => {
|
|
2544
2544
|
A.aborted || (a(25, Z = !1), (l.match(/\$/g) || []).length > 1 && (P = P.items.filter((x) => {
|
|
2545
2545
|
if (x.id == l)
|
|
2546
2546
|
return x;
|
|
2547
|
-
})[0]), a(54, Oe = !0), a(26,
|
|
2547
|
+
})[0]), a(54, Oe = !0), a(26, je = !1), De = P.games.total, R && P.games.items.forEach((x) => {
|
|
2548
2548
|
x.isFavorite = B(x.id);
|
|
2549
2549
|
}), a(36, ce = !0), Da(P));
|
|
2550
2550
|
}).catch((P) => {
|
|
2551
|
-
P.name !== "AbortError" && (a(26,
|
|
2551
|
+
P.name !== "AbortError" && (a(26, je = !0), console.error(P), Ua(P));
|
|
2552
2552
|
}).finally(() => {
|
|
2553
2553
|
wa();
|
|
2554
2554
|
});
|
|
2555
2555
|
});
|
|
2556
|
-
}, _e = (l, _, G) => new Promise((
|
|
2557
|
-
u == "true" ? ba(m, c).then((
|
|
2558
|
-
|
|
2559
|
-
|
|
2556
|
+
}, _e = (l, _, G) => new Promise((R, A) => {
|
|
2557
|
+
u == "true" ? ba(m, c).then((E) => {
|
|
2558
|
+
Ke(l, _, G, E).then((S) => {
|
|
2559
|
+
R(S);
|
|
2560
2560
|
});
|
|
2561
|
-
}) :
|
|
2562
|
-
E
|
|
2561
|
+
}) : Ke(l, _, G, null).then((E) => {
|
|
2562
|
+
R(E);
|
|
2563
2563
|
});
|
|
2564
2564
|
}), wa = () => {
|
|
2565
2565
|
const l = q.getRootNode().host;
|
|
2566
2566
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
|
2567
2567
|
}, ya = (l, _, G) => {
|
|
2568
|
-
l !== "" && (a(31, Y = !1), a(27, W = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1), ze = !1, a(30, Q = +_ > +G), _e(l, 0, +_).then((
|
|
2569
|
-
a(28, T =
|
|
2568
|
+
l !== "" && (a(31, Y = !1), a(27, W = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1), ze = !1, a(30, Q = +_ > +G), _e(l, 0, +_).then((R) => {
|
|
2569
|
+
a(28, T = R), a(29, F = T.games.items), F && F.forEach((A) => {
|
|
2570
2570
|
A.isFavorite = B(A.id);
|
|
2571
2571
|
});
|
|
2572
2572
|
}));
|
|
@@ -2628,7 +2628,7 @@ function Li(i, e, a) {
|
|
|
2628
2628
|
});
|
|
2629
2629
|
break;
|
|
2630
2630
|
case "CategoryUpdate":
|
|
2631
|
-
|
|
2631
|
+
Xe(l.data.itemId);
|
|
2632
2632
|
break;
|
|
2633
2633
|
case `SetUnfavoredGame${g}`:
|
|
2634
2634
|
Ca(`${o}/v1/player/${c}/favorites`, m, l.data.id);
|
|
@@ -2640,10 +2640,10 @@ function Li(i, e, a) {
|
|
|
2640
2640
|
Ce = l.data.session, Se = l.data.userID, u == "true" && Se && Se.length && Ce && Ce.length > 0 && Be(Ce, Se);
|
|
2641
2641
|
break;
|
|
2642
2642
|
case "UpdateFavoredList":
|
|
2643
|
-
g === "FAVORITES" &&
|
|
2643
|
+
g === "FAVORITES" && Ze(l.data.url, l.data.sessionID);
|
|
2644
2644
|
break;
|
|
2645
2645
|
}
|
|
2646
|
-
},
|
|
2646
|
+
}, Xe = (l) => {
|
|
2647
2647
|
a(31, Y = !1), a(27, W = Ne === "true"), a(33, me = !1), ze = !0, a(36, ce = !1), a(0, g = l), g !== "MOSTPLAYED" && a(30, Q = !1), le !== "true" && (!N && m && Be(m, c), _e(g, 0, ae).then((_) => {
|
|
2648
2648
|
a(28, T = _), a(29, F = T.games.items);
|
|
2649
2649
|
}).finally(
|
|
@@ -2659,7 +2659,7 @@ function Li(i, e, a) {
|
|
|
2659
2659
|
{
|
|
2660
2660
|
type: `CategoryData_${g}`,
|
|
2661
2661
|
categoryId: g,
|
|
2662
|
-
visiblegames:
|
|
2662
|
+
visiblegames: Le
|
|
2663
2663
|
},
|
|
2664
2664
|
window.location.href
|
|
2665
2665
|
);
|
|
@@ -2671,7 +2671,7 @@ function Li(i, e, a) {
|
|
|
2671
2671
|
}));
|
|
2672
2672
|
}, B = (l) => N?.some((_) => _.id === l) ?? !1;
|
|
2673
2673
|
let Ga = async (l, _, G) => {
|
|
2674
|
-
await
|
|
2674
|
+
await Ze(l, _), O.includes(G) || O.push(G);
|
|
2675
2675
|
let A = {
|
|
2676
2676
|
method: "POST",
|
|
2677
2677
|
headers: {
|
|
@@ -2681,42 +2681,50 @@ function Li(i, e, a) {
|
|
|
2681
2681
|
},
|
|
2682
2682
|
body: JSON.stringify({ items: O })
|
|
2683
2683
|
};
|
|
2684
|
-
fetch(l, A).then((
|
|
2685
|
-
window.postMessage({ type: `AddFavoriteThumbnail_${G}` }, window.location.href)
|
|
2686
|
-
|
|
2687
|
-
|
|
2684
|
+
fetch(l, A).then((E) => E.json()).then((E) => {
|
|
2685
|
+
window.postMessage({ type: `AddFavoriteThumbnail_${G}` }, window.location.href), window.postMessage({
|
|
2686
|
+
type: "UpdateFavoredList",
|
|
2687
|
+
url: l,
|
|
2688
|
+
sessionID: _
|
|
2689
|
+
});
|
|
2690
|
+
}).catch((E) => {
|
|
2691
|
+
console.error("Err", E);
|
|
2688
2692
|
});
|
|
2689
2693
|
};
|
|
2690
2694
|
const Ca = (l, _, G) => {
|
|
2691
|
-
let
|
|
2695
|
+
let R = {
|
|
2692
2696
|
method: "DELETE",
|
|
2693
2697
|
headers: { "X-SessionID": _ }
|
|
2694
2698
|
};
|
|
2695
|
-
fetch(`${l}/${G}`,
|
|
2699
|
+
fetch(`${l}/${G}`, R).then((A) => A.json()).then(() => {
|
|
2696
2700
|
window.postMessage(
|
|
2697
2701
|
{
|
|
2698
2702
|
type: `RemoveFavoriteThumbnail_${G}`
|
|
2699
2703
|
},
|
|
2700
2704
|
window.location.href
|
|
2701
|
-
),
|
|
2705
|
+
), window.postMessage({
|
|
2706
|
+
type: "UpdateFavoredList",
|
|
2707
|
+
url: l,
|
|
2708
|
+
sessionID: _
|
|
2709
|
+
});
|
|
2702
2710
|
}), O.includes(G) && (O = O.filter((A) => A != G));
|
|
2703
|
-
},
|
|
2711
|
+
}, Ze = async (l, _) => fetch(l, {
|
|
2704
2712
|
method: "GET",
|
|
2705
2713
|
headers: { "X-SessionID": _ }
|
|
2706
|
-
}).then((
|
|
2707
|
-
N =
|
|
2708
|
-
O.includes(
|
|
2709
|
-
}), ka()) : N.forEach((
|
|
2710
|
-
|
|
2714
|
+
}).then((R) => R.json()).then((R) => {
|
|
2715
|
+
N = R.items, re ? (N.forEach((E) => {
|
|
2716
|
+
O.includes(E.id) || O.push(E.id);
|
|
2717
|
+
}), ka()) : N.forEach((E) => {
|
|
2718
|
+
E.isFavorite = B(E.id);
|
|
2711
2719
|
});
|
|
2712
2720
|
const A = Ee(N)?.length;
|
|
2713
2721
|
g === "FAVORITES" && (window.postMessage({
|
|
2714
2722
|
type: "UpdateFavoritesCount",
|
|
2715
2723
|
favoriteGamesLength: A
|
|
2716
|
-
}),
|
|
2717
|
-
}).catch((
|
|
2718
|
-
console.error(
|
|
2719
|
-
}),
|
|
2724
|
+
}), He(N));
|
|
2725
|
+
}).catch((R) => {
|
|
2726
|
+
console.error(R);
|
|
2727
|
+
}), He = (l) => {
|
|
2720
2728
|
if (!l)
|
|
2721
2729
|
return;
|
|
2722
2730
|
let _;
|
|
@@ -2724,7 +2732,7 @@ function Li(i, e, a) {
|
|
|
2724
2732
|
G.gameModel && (G.gameModel.isFavorite = !0);
|
|
2725
2733
|
}), a(42, te.items = Ee(_, te.items), te), a(42, te.name = "Favorites", te), a(25, Z = !1);
|
|
2726
2734
|
}, Sa = (l) => {
|
|
2727
|
-
ae += 1, a(36, ce = !0), ae <= De && _e(l,
|
|
2735
|
+
ae += 1, a(36, ce = !0), ae <= De && _e(l, Li, ae).then((_) => {
|
|
2728
2736
|
a(28, T = _), T.games.items.length > F.length && (a(29, F = T.games.items), F.forEach((G) => {
|
|
2729
2737
|
G.isFavorite = B(G.id);
|
|
2730
2738
|
})), a(36, ce = !1);
|
|
@@ -2733,11 +2741,11 @@ function Li(i, e, a) {
|
|
|
2733
2741
|
const _ = l ?? [];
|
|
2734
2742
|
if (_?.length === 0)
|
|
2735
2743
|
return "";
|
|
2736
|
-
let G = "",
|
|
2737
|
-
const
|
|
2744
|
+
let G = "", R = 999999999999, A;
|
|
2745
|
+
const E = new Date(Date.now());
|
|
2738
2746
|
return _.forEach((S, J) => {
|
|
2739
|
-
const
|
|
2740
|
-
xe(new Date(V), new Date(
|
|
2747
|
+
const L = new Date(S.schedules[0].startTime), V = new Date(S.schedules[0].endTime);
|
|
2748
|
+
xe(new Date(V), new Date(E)) < R && (R = xe(new Date(V), new Date(E)), A = J), ni(new Date(E), new Date(L)) && ti(new Date(E), new Date(V)) && (G = _[A].name);
|
|
2741
2749
|
}), G;
|
|
2742
2750
|
}, Qe = (l) => {
|
|
2743
2751
|
a(30, Q = !1), window.postMessage(
|
|
@@ -2760,20 +2768,20 @@ function Li(i, e, a) {
|
|
|
2760
2768
|
le === "false" && c && m && a(39, ue = !1);
|
|
2761
2769
|
break;
|
|
2762
2770
|
default:
|
|
2763
|
-
|
|
2771
|
+
Xe(g);
|
|
2764
2772
|
break;
|
|
2765
2773
|
}
|
|
2766
2774
|
}, Ma = () => {
|
|
2767
2775
|
document[Me] ? a(41, Ue = "disconnect") : a(41, Ue = "connect");
|
|
2768
2776
|
}, Ia = () => {
|
|
2769
2777
|
ze && fe.forEach((l, _) => {
|
|
2770
|
-
l && (l.elems_index = _,
|
|
2778
|
+
l && (l.elems_index = _, Je.observe(l));
|
|
2771
2779
|
});
|
|
2772
2780
|
}, Ea = () => {
|
|
2773
2781
|
oi(r);
|
|
2774
2782
|
};
|
|
2775
2783
|
Ka(() => {
|
|
2776
|
-
|
|
2784
|
+
Je?.disconnect();
|
|
2777
2785
|
}), Xa(() => (window.addEventListener("visibilitychange", (l) => Ma()), window.addEventListener("message", Ve, !1), () => {
|
|
2778
2786
|
window.removeEventListener("message", Ve), window.removeEventListener("visibilitychange", Ve);
|
|
2779
2787
|
}));
|
|
@@ -2788,12 +2796,12 @@ function Li(i, e, a) {
|
|
|
2788
2796
|
fe[_] = l, a(24, fe);
|
|
2789
2797
|
});
|
|
2790
2798
|
}
|
|
2791
|
-
function
|
|
2799
|
+
function La(l) {
|
|
2792
2800
|
oe[l ? "unshift" : "push"](() => {
|
|
2793
2801
|
ge = l, a(37, ge);
|
|
2794
2802
|
});
|
|
2795
2803
|
}
|
|
2796
|
-
function
|
|
2804
|
+
function ja(l) {
|
|
2797
2805
|
oe[l ? "unshift" : "push"](() => {
|
|
2798
2806
|
de = l, a(38, de);
|
|
2799
2807
|
});
|
|
@@ -2809,7 +2817,7 @@ function Li(i, e, a) {
|
|
|
2809
2817
|
});
|
|
2810
2818
|
}
|
|
2811
2819
|
return i.$$set = (l) => {
|
|
2812
|
-
"endpoint" in l && a(3, o = l.endpoint), "datasource" in l && a(4, s = l.datasource), "lang" in l && a(5, r = l.lang), "session" in l && a(6, m = l.session), "userid" in l && a(7, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, p = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, M = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, ne = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, X = l.integratedgameframemobile), "casinomygames" in l && a(19, le = l.casinomygames), "addfilterselector" in l && a(1, be = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(20,
|
|
2820
|
+
"endpoint" in l && a(3, o = l.endpoint), "datasource" in l && a(4, s = l.datasource), "lang" in l && a(5, r = l.lang), "session" in l && a(6, m = l.session), "userid" in l && a(7, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, p = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, M = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, ne = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, X = l.integratedgameframemobile), "casinomygames" in l && a(19, le = l.casinomygames), "addfilterselector" in l && a(1, be = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(20, qe = l.filterbylogo), "casinogamesgridslider" in l && a(21, We = l.casinogamesgridslider), "fetchviaevent" in l && a(47, re = l.fetchviaevent), "showallpage" in l && a(48, Re = l.showallpage), "actionevent" in l && a(49, Ae = l.actionevent), "displayedgamecount" in l && a(50, ye = l.displayedgamecount), "showallbuttongamescount" in l && a(51, ke = l.showallbuttongamescount), "lobbyscreen" in l && a(52, Ne = l.lobbyscreen), "usesinglevendorfilter" in l && a(22, Ge = l.usesinglevendorfilter), "visiblegames" in l && a(53, Le = l.visiblegames);
|
|
2813
2821
|
}, i.$$.update = () => {
|
|
2814
2822
|
i.$$.dirty[0] & /*lang*/
|
|
2815
2823
|
32 && r && Ea(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
|
@@ -2844,13 +2852,13 @@ function Li(i, e, a) {
|
|
|
2844
2852
|
v,
|
|
2845
2853
|
X,
|
|
2846
2854
|
le,
|
|
2855
|
+
qe,
|
|
2847
2856
|
We,
|
|
2848
|
-
Ye,
|
|
2849
2857
|
Ge,
|
|
2850
2858
|
q,
|
|
2851
2859
|
fe,
|
|
2852
2860
|
Z,
|
|
2853
|
-
|
|
2861
|
+
je,
|
|
2854
2862
|
W,
|
|
2855
2863
|
T,
|
|
2856
2864
|
F,
|
|
@@ -2868,7 +2876,7 @@ function Li(i, e, a) {
|
|
|
2868
2876
|
Ue,
|
|
2869
2877
|
te,
|
|
2870
2878
|
t,
|
|
2871
|
-
|
|
2879
|
+
Ye,
|
|
2872
2880
|
Fa,
|
|
2873
2881
|
Qe,
|
|
2874
2882
|
re,
|
|
@@ -2877,13 +2885,13 @@ function Li(i, e, a) {
|
|
|
2877
2885
|
ye,
|
|
2878
2886
|
ke,
|
|
2879
2887
|
Ne,
|
|
2880
|
-
|
|
2888
|
+
Le,
|
|
2881
2889
|
Oe,
|
|
2882
2890
|
Ra,
|
|
2883
2891
|
Aa,
|
|
2884
2892
|
Na,
|
|
2885
|
-
ja,
|
|
2886
2893
|
La,
|
|
2894
|
+
ja,
|
|
2887
2895
|
Ta,
|
|
2888
2896
|
Pa
|
|
2889
2897
|
];
|
|
@@ -2893,7 +2901,7 @@ class Ti extends Va {
|
|
|
2893
2901
|
super(), Ha(
|
|
2894
2902
|
this,
|
|
2895
2903
|
e,
|
|
2896
|
-
|
|
2904
|
+
ji,
|
|
2897
2905
|
Ni,
|
|
2898
2906
|
Wa,
|
|
2899
2907
|
{
|