@everymatrix/casino-page-nd 1.86.27 → 1.86.29
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/{CasinoFavoritesSectionNd-CLFFLvzr.js → CasinoFavoritesSectionNd-2CqXK5k6.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-CIYjO9Xo.cjs → CasinoFavoritesSectionNd-BA3170u7.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-DCeYnvoM.js → CasinoFavoritesSectionNd-VUoFRlkN.js} +1 -1
- package/components/{CasinoGamesCategorySectionNd-CkHrJKK7.js → CasinoGamesCategorySectionNd-5PgdTQMT.js} +480 -470
- package/components/{CasinoGamesCategorySectionNd-Dikjdol8.js → CasinoGamesCategorySectionNd-BuihuDC2.js} +539 -529
- package/components/CasinoGamesCategorySectionNd-DWqSUxPN.cjs +1 -0
- package/components/{CasinoLastPlayedSectionNd-BgrQh6JT.js → CasinoLastPlayedSectionNd-BMGhNOXu.js} +78 -76
- package/components/CasinoLastPlayedSectionNd-Bn3Uk17d.cjs +1 -0
- package/components/{CasinoLastPlayedSectionNd-Bgk4eFk1.js → CasinoLastPlayedSectionNd-bJMrS8ke.js} +75 -73
- package/components/{CasinoMostPlayedSectionNd-B2mzOjbO.js → CasinoMostPlayedSectionNd-B9Iu77mh.js} +99 -97
- package/components/{CasinoMostPlayedSectionNd-DGRQ6ubz.js → CasinoMostPlayedSectionNd-Cg8GnJ0K.js} +96 -94
- package/components/CasinoMostPlayedSectionNd-Dc5doWw4.cjs +1 -0
- package/components/{CasinoMyGamesNd-DNQviRQW.js → CasinoMyGamesNd-BA393LO6.js} +3 -3
- package/components/{CasinoMyGamesNd-DSaEksBg.js → CasinoMyGamesNd-BNCUCVL7.js} +3 -3
- package/components/{CasinoMyGamesNd-BbAsUABa.cjs → CasinoMyGamesNd-Cb7ILFA8.cjs} +1 -1
- package/components/{CasinoPageNd-Cgk-cOhL.js → CasinoPageNd-1hhm_Mwh.js} +945 -915
- package/components/CasinoPageNd-DOo9al9X.cjs +1 -0
- package/components/{CasinoPageNd-BL7DXVWl.js → CasinoPageNd-stOLyY72.js} +1165 -1135
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/lazy/{casino-favorites-section-nd-D0jLhD_G.js → casino-favorites-section-nd-BEa1CVj9.js} +1 -1
- package/lazy/{casino-favorites-section-nd-CEmu0PHX.cjs → casino-favorites-section-nd-C7z7XFM5.cjs} +1 -1
- package/lazy/{casino-favorites-section-nd-Dz24Svx4.js → casino-favorites-section-nd-Czl8Lb7Z.js} +1 -1
- package/lazy/{casino-games-category-section-nd-CEUqwZ2H.js → casino-games-category-section-nd-Bek7LmEY.js} +1 -1
- package/lazy/{casino-games-category-section-nd-BUFJ6SV3.js → casino-games-category-section-nd-DV6aZgx8.js} +1 -1
- package/lazy/{casino-games-category-section-nd-Cg7T9ODM.cjs → casino-games-category-section-nd-Da1bg5pW.cjs} +1 -1
- package/lazy/{casino-last-played-section-nd-D9E0n-bS.cjs → casino-last-played-section-nd-C-w4JAEm.cjs} +1 -1
- package/lazy/{casino-last-played-section-nd-C9DpiUym.js → casino-last-played-section-nd-C_uZTXGG.js} +1 -1
- package/lazy/{casino-last-played-section-nd-DZdEOLyD.js → casino-last-played-section-nd-DM_bNI-P.js} +1 -1
- package/lazy/{casino-most-played-section-nd-CrISknqG.cjs → casino-most-played-section-nd-B-WRIbes.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-CAf-NQQK.js → casino-most-played-section-nd-BDMFdoDV.js} +1 -1
- package/lazy/{casino-most-played-section-nd-BtaA0hae.js → casino-most-played-section-nd-C6iB31Fp.js} +1 -1
- package/lazy/{casino-my-games-nd-5RyRXP6Z.js → casino-my-games-nd-DdlWVYGv.js} +1 -1
- package/lazy/{casino-my-games-nd-Bz503WUE.js → casino-my-games-nd-ZBAhbaPb.js} +1 -1
- package/lazy/{casino-my-games-nd-BDZ4Yq3i.cjs → casino-my-games-nd-juRtmjU0.cjs} +1 -1
- package/lazy/{casino-play-random-game-CWiaE6SD.js → casino-play-random-game-BAWUP39M.js} +1 -1
- package/lazy/{casino-play-random-game-BgvQt_9c.js → casino-play-random-game-CoZa7Ts_.js} +1 -1
- package/lazy/{casino-play-random-game-BlG2E9dd.cjs → casino-play-random-game-DeHBe5wA.cjs} +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-Cy_f5K43.cjs → casino-play-random-game-CgVzX6ft.cjs} +1 -1
- package/stencil/{casino-play-random-game-BgPgrR13.js → casino-play-random-game-DXVh75QU.js} +2 -2
- package/stencil/{casino-play-random-game-BiGMkSw_.js → casino-play-random-game-xNh3lCLn.js} +2 -2
- package/stencil/{casino-play-random-game_2-NeDOlhPe.js → casino-play-random-game_2-86oqD2c-.js} +78 -73
- package/stencil/{casino-play-random-game_2-D-e9crBu.js → casino-play-random-game_2-CpRfDfPV.js} +78 -73
- package/stencil/{casino-play-random-game_2-BZDqAOHM.cjs → casino-play-random-game_2-Dh2ixYRd.cjs} +3 -3
- package/components/CasinoGamesCategorySectionNd-ZqUp8Eds.cjs +0 -1
- package/components/CasinoLastPlayedSectionNd-BXdICRZs.cjs +0 -1
- package/components/CasinoMostPlayedSectionNd-8UvzEIFs.cjs +0 -1
- package/components/CasinoPageNd-DkoYdwVl.cjs +0 -1
package/stencil/{casino-play-random-game_2-D-e9crBu.js → casino-play-random-game_2-CpRfDfPV.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as h, c as
|
|
2
|
-
const
|
|
1
|
+
import { r as h, c as p, h as t, g as w, H as f } from "../lazy/casino-play-random-game-CoZa7Ts_.js";
|
|
2
|
+
const y = () => {
|
|
3
3
|
let e = window.navigator.userAgent;
|
|
4
4
|
return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
5
|
-
},
|
|
5
|
+
}, b = "en", r = {
|
|
6
6
|
en: {
|
|
7
7
|
error: "Error",
|
|
8
8
|
randomGameLoading: "Loading ...",
|
|
@@ -45,44 +45,49 @@ const f = () => {
|
|
|
45
45
|
playNowRandomGame: "Şimdi Oyna",
|
|
46
46
|
spinRandomGame: "DEĞİŞTİR"
|
|
47
47
|
}
|
|
48
|
-
}, l = (e) => new Promise((
|
|
49
|
-
fetch(e).then((
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
}, l = (e) => new Promise((n) => {
|
|
49
|
+
fetch(e).then((a) => a.json()).then((a) => {
|
|
50
|
+
c(a), n(!0);
|
|
51
|
+
});
|
|
52
|
+
}), s = (e, n) => {
|
|
53
|
+
const a = n;
|
|
54
|
+
return r[a !== void 0 && a in r ? a : b][e];
|
|
55
|
+
}, c = (e) => {
|
|
56
|
+
Object.keys(e).forEach((n) => {
|
|
57
|
+
r[n] || (r[n] = {});
|
|
58
|
+
for (let a in e[n])
|
|
59
|
+
r[n][a] = e[n][a];
|
|
55
60
|
});
|
|
56
|
-
}), s = (e, t) => {
|
|
57
|
-
const i = t;
|
|
58
|
-
return r[i !== void 0 && i in r ? i : y][e];
|
|
59
61
|
};
|
|
60
|
-
function m(e,
|
|
62
|
+
function m(e, n) {
|
|
61
63
|
if (e) {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
+
const a = document.createElement("style");
|
|
65
|
+
a.innerHTML = n, e.appendChild(a);
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
|
-
function d(e,
|
|
67
|
-
if (!e || !
|
|
68
|
+
function d(e, n) {
|
|
69
|
+
if (!e || !n)
|
|
68
70
|
return;
|
|
69
|
-
const
|
|
70
|
-
fetch(
|
|
71
|
+
const a = new URL(n);
|
|
72
|
+
fetch(a.href).then((i) => i.text()).then((i) => {
|
|
71
73
|
const o = document.createElement("style");
|
|
72
|
-
o.innerHTML =
|
|
73
|
-
}).catch((
|
|
74
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
74
|
+
o.innerHTML = i, e && e.appendChild(o);
|
|
75
|
+
}).catch((i) => {
|
|
76
|
+
console.error("There was an error while trying to load client styling from URL", i);
|
|
75
77
|
});
|
|
76
78
|
}
|
|
77
|
-
function x(e,
|
|
79
|
+
function x(e, n, a) {
|
|
78
80
|
if (window.emMessageBus) {
|
|
79
|
-
const
|
|
80
|
-
window.emMessageBus.subscribe(
|
|
81
|
-
|
|
81
|
+
const i = document.createElement("style");
|
|
82
|
+
window.emMessageBus.subscribe(n, (o) => {
|
|
83
|
+
i.innerHTML = o, e && e.appendChild(i);
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
|
-
|
|
87
|
+
function k(e, n, a) {
|
|
88
|
+
window.emMessageBus && window.emMessageBus.subscribe(e, a);
|
|
89
|
+
}
|
|
90
|
+
const G = `:host {
|
|
86
91
|
display: block;
|
|
87
92
|
font-family: inherit;
|
|
88
93
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -459,17 +464,17 @@ const b = `:host {
|
|
|
459
464
|
width: 70px;
|
|
460
465
|
height: 85px;
|
|
461
466
|
}
|
|
462
|
-
}`,
|
|
467
|
+
}`, v = G, R = class {
|
|
463
468
|
constructor(e) {
|
|
464
|
-
h(this, e), this.dataLoaded =
|
|
465
|
-
let
|
|
466
|
-
for (;
|
|
467
|
-
|
|
468
|
-
return
|
|
469
|
+
h(this, e), this.dataLoaded = p(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (n) => {
|
|
470
|
+
let a = n.length, i;
|
|
471
|
+
for (; a !== 0; )
|
|
472
|
+
i = Math.floor(Math.random() * a), a--, [n[a], n[i]] = [n[i], n[a]];
|
|
473
|
+
return n;
|
|
469
474
|
}, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
|
|
470
475
|
}
|
|
471
|
-
watchEndpoint(e,
|
|
472
|
-
e && e !=
|
|
476
|
+
watchEndpoint(e, n) {
|
|
477
|
+
e && e != n && this.endpoint && this.fetchGameList();
|
|
473
478
|
}
|
|
474
479
|
handleNewTranslations() {
|
|
475
480
|
this.isLoading = !0, l(this.translationUrl).then(() => {
|
|
@@ -479,32 +484,32 @@ const b = `:host {
|
|
|
479
484
|
handleIsIconVisible() {
|
|
480
485
|
this.iconVisibility = this.iconVisible === "true";
|
|
481
486
|
}
|
|
482
|
-
handleClientStylingChange(e,
|
|
483
|
-
e !=
|
|
487
|
+
handleClientStylingChange(e, n) {
|
|
488
|
+
e != n && m(this.stylingContainer, this.clientStyling);
|
|
484
489
|
}
|
|
485
|
-
handleClientStylingChangeURL(e,
|
|
486
|
-
e !=
|
|
490
|
+
handleClientStylingChangeURL(e, n) {
|
|
491
|
+
e != n && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
|
|
487
492
|
}
|
|
488
493
|
connectedCallback() {
|
|
489
494
|
this.handleIsIconVisible();
|
|
490
495
|
}
|
|
491
496
|
componentWillLoad() {
|
|
492
|
-
if (this.translationUrl.length > 2 && l(this.translationUrl), this.endpoint && this.language && this.datasource)
|
|
497
|
+
if (this.translationUrl.length > 2 && l(this.translationUrl), !this.translationUrl && this.mbSource && window.emMessageBus != null && k(`${this.mbSource}.Translation`, this.translationSubscription, c), this.endpoint && this.language && this.datasource)
|
|
493
498
|
return this.fetchGameList();
|
|
494
499
|
}
|
|
495
500
|
componentDidLoad() {
|
|
496
501
|
window.emMessageBus != null ? x(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
|
|
497
502
|
}
|
|
498
503
|
disconnectedCallback() {
|
|
499
|
-
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
504
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.translationSubscription && this.translationSubscription.unsubscribe();
|
|
500
505
|
}
|
|
501
506
|
fetchGameList() {
|
|
502
507
|
let e = new URL(`${this.endpoint}/v1/casino/games`);
|
|
503
|
-
return e.searchParams.append("platform",
|
|
504
|
-
this.isLoading = !0, fetch(e.href).then((
|
|
505
|
-
this.gamesToShow = this.setUpGames(
|
|
506
|
-
}).catch((
|
|
507
|
-
console.error(
|
|
508
|
+
return e.searchParams.append("platform", y()), e.searchParams.append("datasource", this.datasource), e.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), e.searchParams.append("expand", "vendor"), e.searchParams.append("pagination", "offset=0,limit=423"), e.searchParams.append("language", this.language), this.specificCategory && e.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((n, a) => {
|
|
509
|
+
this.isLoading = !0, fetch(e.href).then((i) => i.json()).then((i) => {
|
|
510
|
+
this.gamesToShow = this.setUpGames(i == null ? void 0 : i.items), n(!0);
|
|
511
|
+
}).catch((i) => {
|
|
512
|
+
console.error(i), this.hasErrors = !0, a(i);
|
|
508
513
|
}).finally(() => {
|
|
509
514
|
this.isLoading = !1, this.dataLoaded.emit({
|
|
510
515
|
target: this.host
|
|
@@ -513,8 +518,8 @@ const b = `:host {
|
|
|
513
518
|
});
|
|
514
519
|
}
|
|
515
520
|
setUpGames(e) {
|
|
516
|
-
const
|
|
517
|
-
return
|
|
521
|
+
const n = this.shuffle(e).slice(0, 40);
|
|
522
|
+
return n.concat(n);
|
|
518
523
|
}
|
|
519
524
|
selectRandomGame() {
|
|
520
525
|
const e = this.gamesToShow.length / 2;
|
|
@@ -532,18 +537,18 @@ const b = `:host {
|
|
|
532
537
|
}
|
|
533
538
|
animateGames() {
|
|
534
539
|
this.iconVisibility = this.iconVisibleOnAnim === "true", this.animationStarted = !0, this.animationDone = !1, this.animation && this.animation.cancel(), this.selectedGameEl && (this.selectedGameEl.classList.remove("TheRandomGame"), this.selectedGame = null, this.selectedGameIndex = null), this.selectRandomGame();
|
|
535
|
-
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),
|
|
536
|
-
|
|
537
|
-
|
|
540
|
+
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), a = this.selectedGameEl.offsetWidth, i = this.gameContainer.offsetWidth, o = (a + n) * this.selectedGameIndex + // Width of game cards up to the selected
|
|
541
|
+
a / 2 - // Additional half card width to center to the selected game
|
|
542
|
+
i / 2, g = [
|
|
538
543
|
{ transform: "translateX(0px)", scale: 1 },
|
|
539
544
|
{ scale: 0.75 },
|
|
540
545
|
{ transform: `translateX(-${o}px)`, scale: 1 }
|
|
541
|
-
],
|
|
546
|
+
], u = {
|
|
542
547
|
duration: 3e3,
|
|
543
548
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
544
549
|
fill: "forwards"
|
|
545
550
|
};
|
|
546
|
-
this.animation = this.gameContainer.animate(
|
|
551
|
+
this.animation = this.gameContainer.animate(g, u), this.animation.onfinish = () => {
|
|
547
552
|
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
548
553
|
};
|
|
549
554
|
}
|
|
@@ -558,17 +563,17 @@ const b = `:host {
|
|
|
558
563
|
});
|
|
559
564
|
}
|
|
560
565
|
renderGameDetails() {
|
|
561
|
-
return
|
|
566
|
+
return t("div", { class: "RandomButtonsWrapper" }, t("div", { class: "RandomGameDetails" }, t("span", { class: "RandomGameTitle" }, this.selectedGame.name), t("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), t("div", { class: "RandomButtons" }, t("button", { class: "RandomButton On", onClick: () => this.respin() }, s("spinRandomGame", this.language)), !this.launchByGameCard && t("button", { class: "RandomButton On", onClick: () => this.playGame() }, s("playNowRandomGame", this.language))));
|
|
562
567
|
}
|
|
563
568
|
renderSkeleton() {
|
|
564
|
-
const e = Array.from({ length: 5 }, (
|
|
565
|
-
return
|
|
569
|
+
const e = Array.from({ length: 5 }, (n, a) => t("div", { class: "RandomGameCard", key: a }, t("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
|
|
570
|
+
return t("div", { class: "RandomGameWrapper" }, t("div", { class: "GameContainerGradient" }), t("div", { class: "GamesContainer" }, e));
|
|
566
571
|
}
|
|
567
572
|
render() {
|
|
568
|
-
return
|
|
573
|
+
return t("div", { key: "a1e3f626fea9bcd6a351f1769675e11b21ac8fbd", ref: (e) => this.stylingContainer = e }, this.hasErrors ? t("div", { class: "RandomGameError" }, t("div", { class: "Title" }, s("error", this.language))) : this.isLoading ? this.renderSkeleton() : t("div", { class: "RandomGameWrapper" }, t("div", { class: "GameContainerGradient" }), t("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, n) => t("div", { class: "RandomGameCard", key: n, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, t("div", { class: "RandomGameVendor" }, e.vendor.name), t("img", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name }), this.selectedGame && this.selectedGameIndex === n && this.renderGameDetails()))), t("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, t("div", { class: "ButtonContainer" }, this.iconVisibility && t("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, t("div", { class: "QustionMark" }, "?"), t("div", { class: "HexagonMarkShadow" }), t("div", { class: "HexagonMark" })), !this.animationStarted && t("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language))))));
|
|
569
574
|
}
|
|
570
575
|
get host() {
|
|
571
|
-
return
|
|
576
|
+
return w(this);
|
|
572
577
|
}
|
|
573
578
|
static get watchers() {
|
|
574
579
|
return {
|
|
@@ -582,8 +587,8 @@ const b = `:host {
|
|
|
582
587
|
};
|
|
583
588
|
}
|
|
584
589
|
};
|
|
585
|
-
|
|
586
|
-
const
|
|
590
|
+
R.style = v;
|
|
591
|
+
const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", C = S, V = class {
|
|
587
592
|
constructor(e) {
|
|
588
593
|
h(this, e), this.stylingValue = {
|
|
589
594
|
width: this.handleStylingProps(this.width),
|
|
@@ -596,8 +601,8 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
596
601
|
size: this.handleStylingProps(this.size)
|
|
597
602
|
}, this.structure = void 0, this.width = "unset", this.height = "unset", this.borderRadius = "unset", this.marginBottom = "unset", this.marginTop = "unset", this.marginLeft = "unset", this.marginRight = "unset", this.animation = !0, this.rows = 0, this.size = "100%";
|
|
598
603
|
}
|
|
599
|
-
handleStructureChange(e,
|
|
600
|
-
|
|
604
|
+
handleStructureChange(e, n) {
|
|
605
|
+
n !== e && this.handleStructure(e);
|
|
601
606
|
}
|
|
602
607
|
handleStylingProps(e) {
|
|
603
608
|
switch (typeof e) {
|
|
@@ -630,22 +635,22 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
630
635
|
}
|
|
631
636
|
}
|
|
632
637
|
renderLogo() {
|
|
633
|
-
return
|
|
638
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonLogo " + (this.animation ? "Skeleton" : "") }));
|
|
634
639
|
}
|
|
635
640
|
renderImage() {
|
|
636
|
-
return
|
|
641
|
+
return t("div", { class: "SkeletonImage " + (this.animation ? "Skeleton" : "") });
|
|
637
642
|
}
|
|
638
643
|
renderTitle() {
|
|
639
|
-
return
|
|
644
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonTitle " + (this.animation ? "Skeleton" : "") }));
|
|
640
645
|
}
|
|
641
646
|
renderText() {
|
|
642
|
-
return
|
|
647
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, n) => t("div", { key: n, class: "SkeletonText " + (this.animation ? "Skeleton" : "") })));
|
|
643
648
|
}
|
|
644
649
|
renderRectangle() {
|
|
645
|
-
return
|
|
650
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonRectangle " + (this.animation ? "Skeleton" : "") }));
|
|
646
651
|
}
|
|
647
652
|
renderCircle() {
|
|
648
|
-
return
|
|
653
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "SkeletonCircle " + (this.animation ? "Skeleton" : "") }));
|
|
649
654
|
}
|
|
650
655
|
render() {
|
|
651
656
|
let e = "";
|
|
@@ -725,7 +730,7 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
725
730
|
default:
|
|
726
731
|
e = "";
|
|
727
732
|
}
|
|
728
|
-
return
|
|
733
|
+
return t(f, { key: "c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8" }, t("style", { key: "9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19" }, e), this.handleStructure(this.structure));
|
|
729
734
|
}
|
|
730
735
|
static get watchers() {
|
|
731
736
|
return {
|
|
@@ -733,8 +738,8 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
733
738
|
};
|
|
734
739
|
}
|
|
735
740
|
};
|
|
736
|
-
|
|
741
|
+
V.style = C;
|
|
737
742
|
export {
|
|
738
|
-
|
|
739
|
-
|
|
743
|
+
R as casino_play_random_game,
|
|
744
|
+
V as ui_skeleton
|
|
740
745
|
};
|
package/stencil/{casino-play-random-game_2-BZDqAOHM.cjs → casino-play-random-game_2-Dh2ixYRd.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../lazy/casino-play-random-game-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../lazy/casino-play-random-game-DeHBe5wA.cjs"),w=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},f="en",r={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rastgele Bir Oyun Oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},l=e=>new Promise(t=>{fetch(e).then(a=>a.json()).then(a=>{h(a),t(!0)})}),s=(e,t)=>{const a=t;return r[a!==void 0&&a in r?a:f][e]},h=e=>{Object.keys(e).forEach(t=>{r[t]||(r[t]={});for(let a in e[t])r[t][a]=e[t][a]})};function m(e,t){if(e){const a=document.createElement("style");a.innerHTML=t,e.appendChild(a)}}function d(e,t){if(!e||!t)return;const a=new URL(t);fetch(a.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function y(e,t,a){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}function b(e,t,a){window.emMessageBus&&window.emMessageBus.subscribe(e,a)}const x=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
width: 70px;
|
|
376
376
|
height: 85px;
|
|
377
377
|
}
|
|
378
|
-
}`,x=y,h=class{constructor(e){n.registerInstance(this,e),this.dataLoaded=n.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=t=>{let i=t.length,a;for(;i!==0;)a=Math.floor(Math.random()*i),i--,[t[i],t[a]]=[t[a],t[i]];return t},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(e,t){e&&e!=t&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,l(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,t){e!=t&&m(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&l(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?f(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&m(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",p()),e.searchParams.append("datasource",this.datasource),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=423"),e.searchParams.append("language",this.language),this.specificCategory&&e.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((t,i)=>{this.isLoading=!0,fetch(e.href).then(a=>a.json()).then(a=>{this.gamesToShow=this.setUpGames(a==null?void 0:a.items),t(!0)}).catch(a=>{console.error(a),this.hasErrors=!0,i(a)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const t=this.shuffle(e).slice(0,40);return t.concat(t)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),t=parseInt(e,10),i=this.selectedGameEl.offsetWidth,a=this.gameContainer.offsetWidth,o=(i+t)*this.selectedGameIndex+i/2-a/2,g=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],u={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(g,u),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return n.h("div",{class:"RandomButtonsWrapper"},n.h("div",{class:"RandomGameDetails"},n.h("span",{class:"RandomGameTitle"},this.selectedGame.name),n.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),n.h("div",{class:"RandomButtons"},n.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&n.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(t,i)=>n.h("div",{class:"RandomGameCard",key:i},n.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer"},e))}render(){return n.h("div",{key:"1f326cff688b0b71ca1d6efbc6766c6b768cb846",ref:e=>this.stylingContainer=e},this.hasErrors?n.h("div",{class:"RandomGameError"},n.h("div",{class:"Title"},s("error",this.language))):this.isLoading?this.renderSkeleton():n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,t)=>n.h("div",{class:"RandomGameCard",key:t,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},n.h("div",{class:"RandomGameVendor"},e.vendor.name),n.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===t&&this.renderGameDetails()))),n.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},n.h("div",{class:"ButtonContainer"},this.iconVisibility&&n.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},n.h("div",{class:"QustionMark"},"?"),n.h("div",{class:"HexagonMarkShadow"}),n.h("div",{class:"HexagonMark"})),!this.animationStarted&&n.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language))))))}get host(){return n.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};h.style=x;const b=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",k=b,c=class{constructor(e){n.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return n.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return n.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,t)=>n.h("div",{key:t,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
378
|
+
}`,k=x,c=class{constructor(e){n.registerInstance(this,e),this.dataLoaded=n.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=t=>{let a=t.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[t[a],t[i]]=[t[i],t[a]];return t},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(e,t){e&&e!=t&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,l(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,t){e!=t&&m(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&l(this.translationUrl),!this.translationUrl&&this.mbSource&&window.emMessageBus!=null&&b(`${this.mbSource}.Translation`,this.translationSubscription,h),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&m(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",w()),e.searchParams.append("datasource",this.datasource),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=423"),e.searchParams.append("language",this.language),this.specificCategory&&e.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((t,a)=>{this.isLoading=!0,fetch(e.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),t(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const t=this.shuffle(e).slice(0,40);return t.concat(t)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),t=parseInt(e,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,o=(a+t)*this.selectedGameIndex+a/2-i/2,u=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],p={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(u,p),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return n.h("div",{class:"RandomButtonsWrapper"},n.h("div",{class:"RandomGameDetails"},n.h("span",{class:"RandomGameTitle"},this.selectedGame.name),n.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),n.h("div",{class:"RandomButtons"},n.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&n.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(t,a)=>n.h("div",{class:"RandomGameCard",key:a},n.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer"},e))}render(){return n.h("div",{key:"a1e3f626fea9bcd6a351f1769675e11b21ac8fbd",ref:e=>this.stylingContainer=e},this.hasErrors?n.h("div",{class:"RandomGameError"},n.h("div",{class:"Title"},s("error",this.language))):this.isLoading?this.renderSkeleton():n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,t)=>n.h("div",{class:"RandomGameCard",key:t,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},n.h("div",{class:"RandomGameVendor"},e.vendor.name),n.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===t&&this.renderGameDetails()))),n.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},n.h("div",{class:"ButtonContainer"},this.iconVisibility&&n.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},n.h("div",{class:"QustionMark"},"?"),n.h("div",{class:"HexagonMarkShadow"}),n.h("div",{class:"HexagonMark"})),!this.animationStarted&&n.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language))))))}get host(){return n.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};c.style=k;const G=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",v=G,g=class{constructor(e){n.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return n.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return n.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,t)=>n.h("div",{key:t,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
379
379
|
:host {
|
|
380
380
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
381
381
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
@@ -429,4 +429,4 @@
|
|
|
429
429
|
:host {
|
|
430
430
|
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
431
431
|
}
|
|
432
|
-
`;break;default:e=""}return n.h(n.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},n.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};
|
|
432
|
+
`;break;default:e=""}return n.h(n.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},n.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};g.style=v;exports.casino_play_random_game=c;exports.ui_skeleton=g;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var be=(n,a,t)=>new Promise((s,o)=>{var l=c=>{try{m(t.next(c))}catch(u){o(u)}},r=c=>{try{m(t.throw(c))}catch(u){o(u)}},m=c=>c.done?s(c.value):Promise.resolve(c.value).then(l,r);m((t=t.apply(n,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DrrajltR.cjs"),le=require("./CasinoGameThumbnailNd-C7-a2gFP.cjs");require("../lazy/casino-game-thumbnail-nd-BxXa51lv.cjs");require("../lazy/casino-filter-D_OJZ711.cjs");require("../lazy/casino-sort-DnvZL0xh.cjs");function Ia(n,a){e.addMessages(n,a)}function Na(n){e.$locale.set(n)}const Ea={en:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",favorites:"Favorites",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavorites:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting",playNow:"Start now!",new:"NEW",hot:"Hot",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},"zh-hk":{showMore:"更多的",viewAll:"顯示所有",searchedItems:"搜索結果",recentSearchedItems:"最近搜索過",favorites:"收藏夹",noRecentSearch:"尚未開始搜索。 只需搜索遊戲。",noResults:"抱歉,沒有找到結果。 請再試一次。",noFavoritesMobile:"您現在可以通過點擊遊戲頁面上的星形圖標將游戲添加到收藏夾。",noFavorites:"您現在可以通過單擊遊戲縮略圖上的星形圖標將游戲添加到收藏夾。",noFavoritesTitle:"您還沒有任何喜歡的遊戲。",waiting:"等待",playNow:"現在開始!",new:"新的",hot:"熱的",opens:"打開",full:"滿桌 - 下注",dealer:"經銷商"},de:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Ergebnis suchen",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavorites:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting",playNow:"Jetzt beginnen!",new:"NEU",hot:"Hot",opens:"Öffnet",full:"full - bet behind",dealer:"Dealer"},it:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare.",playNow:"Inizia ora!",new:"NOVITÀ",hot:"HOT",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},fr:{showMore:"Plus de",viewAll:"Afficher tous",searchedItems:"Recherche du resultat",recentSearchedItems:"Recherches récentes",favorites:"Favoris",noRecentSearch:"Aucune recherche n'a encore été lancée . il suffit de chercher un jeu.",noResults:"Désolé , aucun résultat trouvé.veuillez réessayer.",noFavoritesMobile:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone étoile située sur la page du jeu.",noFavorites:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone en forme d'etoile située sur la vignette du jeu",noFavoritesTitle:"Vous n'avez pas encore de jeux favoris.",waiting:"Attente",playNow:"Commencez maintenant",new:"Nouveau",hot:"Chaud",opens:"Ouvre",full:"Table pleine - pari derrière",dealer:"Concessionnaire"},es:{showMore:"Más",viewAll:"Mostrar todas",searchedItems:"Resultado de busqueda",recentSearchedItems:"Buscado recientemente",favorites:"Favoritos",noRecentSearch:"Aún no inicia busqueda. Solo busque un juego",noResults:"Disculpe",noFavoritesMobile:"Ahora puede agregar juegos a sus Favoritos dando clic al ícono de estrella en esta página",noFavorites:"Ahora puede agregar juegos a sus Favoritos dando click al ícono de la miniatura del juego.",noFavoritesTitle:"No tiene juegos Favoritos aún",waiting:"Cargando",playNow:"Juega ahora!",new:"NUEVO",hot:"HOT",opens:"Abiertas",full:"Mesa llena - Apostar de pie",dealer:"Dealer"},tr:{showMore:"Daha fazla",viewAll:"Hepsini göster",searchedItems:"Arama sonucu",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin.",favorites:"Favoriler",noFavoritesMobile:"Bir oyunu favorilere eklemek için sağ üst köşedeki yıldız simgesine tıklayın.",noFavorites:"Bir oyunu favorilere eklemek için sağ üst köşedeki yıldız simgesine tıklayın.",noFavoritesTitle:"Henüz favori oyunlarınız yok.",waiting:"Bekleniyor",playNow:"ŞİMDİ OYNA",new:"YENİ",hot:"Sıcak",opens:"Açılıyor",full:"masa dolu - arkadan bahis",dealer:"Krupiye"},ru:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз",playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},ro:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",favorites:"Favorite",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou",noFavoritesMobile:"Acum puteți adăuga jocuri la favorite atingând pictograma stea situată pe pagina jocului.",noFavorites:"Acum puteți adăuga jocuri la favorite făcând clic pe pictograma stea situată pe miniatura jocului.",noFavoritesTitle:"Nu aveți încă niciun joc preferat.",waiting:"Aşteptare",playNow:"Joaca acum",new:"NOU",hot:"POPULAR",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},hr:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Rezultat pretrage",recentSearchedItems:"Nedavno pretraživano",noRecentSearch:"Još nije započela pretraga. Jednostavno pretražite igru.",noResults:"Žao nema rezultata",favorites:"Favoriti",noFavoritesMobile:"Kliknite na ikonu zvjezdice u gornjem desnom kutu igre kako biste je spremili kao omiljenu.",noFavorites:"Kliknite na ikonu zvjezdice u gornjem desnom kutu igre kako biste je spremili kao omiljenu.",noFavoritesTitle:"Još nemate nijednu omiljenu igru.",waiting:"Čekanje",playNow:"Igraj",new:"NOVO",hot:"Hot",opens:"Otvara se",full:"stol pun - uložite iza",dealer:"Djelitelj"},hu:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra.",playNow:"Játsszon most!",new:"ÚJ",hot:"Hot",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},pl:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie.",playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},pt:{showMore:"Mais",viewAll:"Mostre tudo",searchedItems:"Resultado da pesquisa",recentSearchedItems:"Pesquisado recentemente",favorites:"Favorito",noRecentSearch:"Nenhuma pesquisa foi iniciada ainda. Simplesmente procure por um jogo.",noResults:"Desculpe, nenhum resultado encontrado. Por favor, tente novamente.",noFavoritesMobile:"Agora você pode adicionar jogos aos favoritos tocando no ícone da estrela localizado na página do jogo.",noFavorites:"Agora você pode adicionar jogos aos favoritos clicando no ícone da estrela localizado na miniatura do jogo.",noFavoritesTitle:"Você ainda não tem nenhum jogo favorito.",waiting:"Aguardando",playNow:"Comece agora!",new:"NOVO",hot:"Hot",opens:"Abrir",full:"Mesa cheia - aposta atrás",dealer:"Dealer"},sl:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno.",playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},sr:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo.",playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"},"pt-br":{noResults:"Sentimos muito,'Nenhum resultado foi encontrado. Por favor, tente novamente'",noFavoritesMobile:"Clique no ícone de estrela no canto superior direito para salvar como favorito.",noFavorites:"Clique no ícone de estrela no canto superior direito para salvar como favorito.",noFavoritesTitle:"Você ainda não tem jogos selecionados como favoritos",waiting:"Esperando",playNow:"Comece agora!",new:"NOVOS",hot:"Popular",opens:"Abre",full:"mesa completa-aposte seguindo",dealer:"Dealer"},"es-mx":{showMore:"Mostrar más",viewAll:"Mostrar todo",searchedItems:"Resultados de búsqueda",recentSearchedItems:"Búsquedas recientes",favorites:"Favoritos",noRecentSearch:"No ha realizado alguna búsqueda. Simplemente busque algún juego",noResults:"Lo sentimos,No se encontró algún resultado. Por favor intente de nuevo",noFavoritesMobile:"De click al ícono de la estrella en la esquina superior derecha para guardar como favorito.",noFavorites:"De click al ícono de la estrella en la esquina superior derecha para guardar como favorito.",noFavoritesTitle:"Aún not tiene juegos seleccionados como favoritos",waiting:"Esperando",playNow:"Comenzar ahora!",new:"NUEVOS",hot:"Popular",opens:"Abre",full:"mesa llena-seguir apuesta",dealer:"Dealer"},"en-us":{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",favorites:"Favorites",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavorites:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting",playNow:"Start now!",new:"NEW",hot:"Hot",opens:"Opens",full:"table full - bet behind",dealer:"Dealer"}};function Aa(n){e.append_styles(n,"svelte-3d5n3f",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoGamesCategorySectionContainer{container-type:inline-size}.CustomScroll:-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3);border-radius:var(--emw--border-radius-small, 5px);background-color:transparent}.CustomScroll::-webkit-scrollbar{height:5px;background-color:transparent}.CustomScroll::-webkit-scrollbar-thumb{border-radius:var(--emw--border-radius-small, 5px);height:5px;-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3);background-color:rgba(255, 255, 255, 0.3)}.CategoryName,.StatusText{color:var(--emw--casino-typography, #FFFFFF);font-size:var(--emw--font-size-x-large, 24px);font-weight:var(--emw--font-weight-regular, 400)}.CategoryLoadMore{font-size:var(--emw--font-size-small, 14px);color:var(--emw--casino-typography, #FFFFFF)}.NoSearchResults{color:var(--emw--casino-typography, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:var(--emw--font-size-medium, 16px)}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emw--casino-typography, #FFFFFF);font-size:var(--emw--font-size-medium, 16px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .UnfavoredIcon{width:50px;height:50px}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emw--casino-typography, #FFFFFF);font-size:var(--emw--font-size-x-small, 12px);text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;margin-bottom:16px;gap:10px}.CasinoGamesHeader .CategoryIcon{display:flex;place-content:center;background-color:transparent;position:relative;align-items:center;justify-content:center}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer;margin-left:auto}.CasinoGamesHeader .CategoryLoadMore{font-weight:var(--emw--font-weight-normal, 400)}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%}.CasinoGamesGrid{display:grid;gap:var(--emw--casino-category-grid-gap, 16px);grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-height-scroll, 180px));grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-scroll, 237px), 46%), 1fr));grid-auto-rows:var(--emw--casino-category-grid-cell-size-height-scroll, 180px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-scroll, 237px);grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:var(--emw--casino-category-grid-gap, 16px)}.CasinoGamesGridSlider{display:grid;gap:var(--emw--casino-category-grid-gap, 16px);grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-scroll, 237px), 46%), 2fr));grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-height-scroll, 180px));grid-auto-rows:var(--emw--casino-category-grid-cell-size-scroll, 237px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-scroll, 237px);grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:35px;overscroll-behavior-x:none}.CasinoGamesGridSlider .game-tile-2x1{grid-row:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-2x1{grid-row:span 1}}.CasinoGamesGridSlider .game-tile-2x2{grid-row:span 2;grid-column:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-2x2{grid-row:span 2;grid-column:span 2}}.CasinoGamesGridSlider .game-tile-1x2{grid-column:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-1x2{grid-column:span 1}}.CasinoGamesGridSlider.GamesListIncreasedGap{gap:var(--emw--casino-category-grid-gap, 16px)}.CategoryFilterContainer{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-left:auto}.SingleOrEmptyCategoryFilterContainer{margin-left:auto}.SearchLoading{display:block;padding:50px;color:var(--emw--casino-typography, #FFFFFF)}@container (max-width: 385px){.CasinoGamesGrid{display:grid;gap:var(--emw--casino-category-grid-gap, 16px);grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-small, 110px));grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-small, 110px), 46%), 1fr));grid-auto-rows:var(--emw--casino-category-grid-cell-size-small, 110px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-small, 110px)}.CasinoGamesGrid.GamesListIncreasedGap{gap:var(--emw--casino-category-grid-gap, 16px)}.CasinoGamesGridSlider{display:grid;gap:var(--emw--casino-category-grid-gap-scroll, 16px);grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-small-scroll, 100px), 46%), 2fr));grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-small-scroll, 100px));grid-auto-rows:var(--emw--casino-category-grid-cell-size-small-scroll, 100px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-small-scroll, 100px);grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName,.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:var(--emw--font-size-2x-small, 10px)}}@container (max-width: 410px){.CasinoGamesGridSlider{display:grid;gap:var(--emw--casino-category-grid-gap-scroll, 16px);grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-medium, 122px), 46%), 2fr));grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-medium, 122px));grid-auto-rows:var(--emw--casino-category-grid-cell-size-medium, 122px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-medium, 122px);grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName,.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:var(--emw--font-size-2x-small, 10px)}}@container (max-width: 480px){.CategoryFilterContainer{gap:16px}.CasinoGamesGrid{display:grid;gap:var(--emw--casino-category-grid-gap, 16px);grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-medium, 122px));grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-medium, 122px), 46%), 1fr));grid-auto-rows:var(--emw--casino-category-grid-cell-size-medium, 122px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-medium, 122px)}.CasinoGamesGrid.GamesListIncreasedGap{gap:var(--emw--casino-category-grid-gap, 16px)}.CasinoGamesGridSlider{display:grid;gap:var(--emw--casino-category-grid-gap-scroll, 16px);grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-medium-scroll, 120px), 46%), 2fr));grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-medium-scroll, 120px));grid-auto-rows:var(--emw--casino-category-grid-cell-size-medium-scroll, 120px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-medium-scroll, 120px);grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName,.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:var(--emw--font-size-2x-small, 10px)}}@container (max-width: 768px){.CasinoGamesContainer .CasinoGamesGrid,.GameContainer.CasinoGamesGridSlider{display:grid;gap:var(--emw--casino-category-grid-gap, 16px);grid-template-rows:repeat(auto-fill, var(--emw--casino-category-grid-cell-size-medium-scroll, 120px));grid-template-columns:repeat(auto-fill, minmax(min(var(--emw--casino-category-grid-cell-size-small, 110px), 46%), 1fr));grid-auto-rows:var(--emw--casino-category-grid-cell-size-medium-scroll, 120px);grid-auto-columns:var(--emw--casino-category-grid-cell-size-medium, 122px)}.CasinoGamesContainer .CasinoGamesGrid.GamesListIncreasedGap,.GameContainer.CasinoGamesGridSlider.GamesListIncreasedGap{gap:var(--emw--casino-category-grid-gap-scroll-mediu, 10px)}.CasinoGamesContainer .CasinoGamesGrid .GameInfo .GameInfoName,.GameContainer.CasinoGamesGridSlider .GameInfo .GameInfoName{font-size:var(--emw--font-size-x-small, 12px)}.CasinoGamesGridSlider{padding-bottom:10px}.GameInnerContainer{border-radius:var(--emw--border-radius-large, 10px)}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{gap:2px}.CasinoGamesHeader{align-items:center;flex-direction:row;flex-wrap:wrap;justify-content:center}.CategoryFilterContainer{width:100%}}.DualRing{display:block;width:80px;height:80px;margin:0 auto}.DualRing:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, #22B04E);border-color:var(--emw--casino-color-primary, #22B04E) transparent var(--emw--casino-color-primary, #22B04E);animation:DualRing 1.2s linear infinite}@keyframes DualRing{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.CategoryIcon svg{position:absolute;left:0;right:0;margin-left:auto;margin-right:auto}.CategoryIconAnimation{position:relative;width:55px;height:55px;border-radius:50%;background:linear-gradient(45deg, transparent, transparent 40%, var(--emw--casino-categories-animation-main, #ffff00)), linear-gradient(var(--emfe-casino-categories-animation-fill-secondary-color, #0E1511), var(--emfe-casino-categories-animation-contrast, #141414));animation:rotate 3.5s linear infinite}.CategoryIconAnimation:before,.CategoryIconAnimation:after{content:" ";position:absolute;inset:5px;background:linear-gradient(var(--emw--casino-categories-animation-fill-main-color, #0E1511), var(--emfe-casino-categories-animation-fill-secondary-color, #0E1511));border-radius:inherit}.CategoryIconAnimation:before{background:linear-gradient(45deg, transparent, transparent 40%, var(--emw--casino-categories-animation-main, #ffff00));filter:blur(12px)}@keyframes rotate{100%{transform:rotate(360deg);filter:hue-rotate(360deg)}}')}function He(n,a,t){const s=n.slice();return s[99]=a[t],s[101]=t,s}function Be(n,a,t){const s=n.slice();return s[99]=a[t],s[102]=a,s[101]=t,s}function We(n,a,t){const s=n.slice();return s[99]=a[t],s[101]=t,s}function Ra(n){let a;function t(l,r){if(l[28])return Pa;if(l[39])return Ta}let s=t(n),o=s&&s(n);return{c(){a=e.element("div"),o&&o.c()},m(l,r){e.insert(l,a,r),o&&o.m(a,null)},p(l,r){s===(s=t(l))&&o?o.p(l,r):(o&&o.d(1),o=s&&s(l),o&&(o.c(),o.m(a,null)))},d(l){l&&e.detach(a),o&&o.d()}}}function La(n){let a,t,s;function o(f,h){return f[32]?tt:f[29].length?et:at}let l=o(n),r=l(n);function m(f,h){return f[29]?st:nt}let c=m(n),u=c(n);return{c(){a=e.element("div"),t=e.element("div"),r.c(),s=e.space(),u.c(),e.attr(t,"class","CasinoGamesHeader Searched "+(e.isMobile(n[44])?"CasinoGamesHeaderMobile":"")),e.attr(a,"class","CasinoGamesContainer")},m(f,h){e.insert(f,a,h),e.append(a,t),r.m(t,null),e.append(a,s),u.m(a,null)},p(f,h){l===(l=o(f))&&r?r.p(f,h):(r.d(1),r=l(f),r&&(r.c(),r.m(t,null))),c===(c=m(f))&&u?u.p(f,h):(u.d(1),u=c(f),u&&(u.c(),u.m(a,null)))},d(f){f&&e.detach(a),r.d(),u.d()}}}function ja(n){let a;function t(l,r){return l[34]?lt:ot}let s=t(n),o=s(n);return{c(){o.c(),a=e.empty()},m(l,r){o.m(l,r),e.insert(l,a,r)},p(l,r){s!==(s=t(l))&&(o.d(1),o=s(l),o&&(o.c(),o.m(a.parentNode,a)))},d(l){l&&e.detach(a),o.d(l)}}}function Ta(n){let a,t,s,o,l=n[19]!=="true"&&Je(n);function r(u,f){return u[25]&&!u[36]?Ua:u[42]?Oa:Da}let m=r(n),c=m(n);return{c(){a=e.element("div"),l&&l.c(),t=e.space(),s=e.element("ul"),c.c(),e.attr(s,"class",o=(n[42].items.length!=0?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),e.attr(a,"class","CasinoGamesContainer")},m(u,f){e.insert(u,a,f),l&&l.m(a,null),e.append(a,t),e.append(a,s),c.m(s,null),n[62](s)},p(u,f){u[19]!=="true"?l?l.p(u,f):(l=Je(u),l.c(),l.m(a,t)):l&&(l.d(1),l=null),m===(m=r(u))&&c?c.p(u,f):(c.d(1),c=m(u),c&&(c.c(),c.m(s,null))),f[1]&2048&&o!==(o=(u[42].items.length!=0?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&e.attr(s,"class",o)},d(u){u&&e.detach(a),l&&l.d(),c.d(),n[62](null)}}}function Pa(n){let a,t,s=n[19]!=="true"&&xe(n);function o(m,c){return m[25]&&!m[36]?xa:m[29].length!==0?Qa:Xa}let l=o(n),r=l(n);return{c(){a=e.element("div"),s&&s.c(),t=e.space(),r.c(),e.attr(a,"class","CasinoGamesContainer")},m(m,c){e.insert(m,a,c),s&&s.m(a,null),e.append(a,t),r.m(a,null)},p(m,c){m[19]!=="true"?s?s.p(m,c):(s=xe(m),s.c(),s.m(a,t)):s&&(s.d(1),s=null),l===(l=o(m))&&r?r.p(m,c):(r.d(1),r=l(m),r&&(r.c(),r.m(a,null)))},d(m){m&&e.detach(a),s&&s.d(),r.d()}}}function Je(n){let a,t,s=n[43]("favorites")+"",o,l,r,m,c=n[42].items.length+"",u,f;return{c(){a=e.element("div"),t=e.element("h3"),o=e.text(s),l=e.space(),r=e.element("span"),m=e.text("("),u=e.text(c),f=e.text(")"),e.attr(r,"class","CategoryFavName"),e.attr(t,"class","CategoryName"),e.attr(a,"class","CasinoGamesHeader")},m(h,p){e.insert(h,a,p),e.append(a,t),e.append(t,o),e.append(t,l),e.append(t,r),e.append(r,m),e.append(r,u),e.append(r,f),n[61](t)},p(h,p){p[1]&4096&&s!==(s=h[43]("favorites")+"")&&e.set_data(o,s),p[1]&2048&&c!==(c=h[42].items.length+"")&&e.set_data(u,c)},d(h){h&&e.detach(a),n[61](null)}}}function Da(n){let a,t=n[43]("waiting")+"",s;return{c(){a=e.element("p"),s=e.text(t)},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("waiting")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function Oa(n){let a,t=e.ensure_array_like(n[42].items),s=[];for(let l=0;l<t.length;l+=1)s[l]=Qe(He(n,t,l));let o=null;return t.length||(o=Ye(n)),{c(){for(let l=0;l<s.length;l+=1)s[l].c();a=e.empty(),o&&o.c()},m(l,r){for(let m=0;m<s.length;m+=1)s[m]&&s[m].m(l,r);e.insert(l,a,r),o&&o.m(l,r)},p(l,r){if(r[0]&524265|r[1]&65280){t=e.ensure_array_like(l[42].items);let m;for(m=0;m<t.length;m+=1){const c=He(l,t,m);s[m]?s[m].p(c,r):(s[m]=Qe(c),s[m].c(),s[m].m(a.parentNode,a))}for(;m<s.length;m+=1)s[m].d(1);s.length=t.length,!t.length&&o?o.p(l,r):t.length?o&&(o.d(1),o=null):(o=Ye(l),o.c(),o.m(a.parentNode,a))}},d(l){l&&e.detach(a),e.destroy_each(s,l),o&&o.d(l)}}}function Ua(n){let a;return{c(){a=e.element("div"),e.attr(a,"class","lds-dual-ring")},m(t,s){e.insert(t,a,s)},p:e.noop,d(t){t&&e.detach(a)}}}function Ye(n){let a,t,s,o,l,r,m,c,u,f,h,p=n[43]("noFavoritesTitle")+"",b,S,v;function _(G,w){return e.isMobile(G[44])?qa:Va}let N=_(n)(n);return{c(){a=e.element("p"),t=e.svg_element("svg"),s=e.svg_element("rect"),o=e.svg_element("rect"),l=e.svg_element("circle"),r=e.svg_element("path"),m=e.svg_element("path"),c=e.svg_element("path"),u=e.svg_element("path"),f=e.space(),h=e.element("span"),b=e.text(p),S=e.space(),N.c(),v=e.space(),e.attr(s,"x","1"),e.attr(s,"y","18.053"),e.attr(s,"width","90.263"),e.attr(s,"height","90.263"),e.attr(s,"rx","12"),e.attr(s,"stroke","var(--emw--color-gray-150, #828282)"),e.attr(s,"stroke-width","1.5"),e.attr(o,"x","106.737"),e.attr(o,"y","56.737"),e.attr(o,"width","90.263"),e.attr(o,"height","90.263"),e.attr(o,"rx","12"),e.attr(o,"stroke","var(--emw--color-gray-150, #828282)"),e.attr(o,"stroke-width","1.5"),e.attr(l,"cx","70.5"),e.attr(l,"cy","32.237"),e.attr(l,"r","31.487"),e.attr(l,"stroke","var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"),e.attr(l,"stroke-width","1.5"),e.attr(l,"stroke-dasharray","5 0"),e.attr(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"),e.attr(r,"fill","var(--emw--color-gray-150, #828282)"),e.attr(m,"d","M78 43h11v13H78V43z"),e.attr(m,"stroke","var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"),e.attr(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"),e.attr(c,"fill","var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"),e.attr(c,"stroke","var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"),e.attr(c,"stroke-linecap","round"),e.attr(c,"stroke-linejoin","round"),e.attr(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"),e.attr(u,"stroke","var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))"),e.attr(u,"stroke-width","1.5"),e.attr(u,"stroke-linecap","round"),e.attr(u,"stroke-linejoin","round"),e.attr(t,"width","198"),e.attr(t,"height","148"),e.attr(t,"viewBox","0 0 198 148"),e.attr(t,"fill","none"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class","NoFavoriteText NoFavoriteTextHighlight"),e.attr(a,"class","NoFavoriteGames "+(e.isMobile(n[44])?"NoFavoriteGamesMobile":""))},m(G,w){e.insert(G,a,w),e.append(a,t),e.append(t,s),e.append(t,o),e.append(t,l),e.append(t,r),e.append(t,m),e.append(t,c),e.append(t,u),e.append(a,f),e.append(a,h),e.append(h,b),e.append(a,S),N.m(a,null),e.append(a,v)},p(G,w){w[1]&4096&&p!==(p=G[43]("noFavoritesTitle")+"")&&e.set_data(b,p),N.p(G,w)},d(G){G&&e.detach(a),N.d()}}}function Va(n){let a,t=n[43]("noFavorites")+"",s;return{c(){a=e.element("span"),s=e.text(t),e.attr(a,"class","NoFavoriteText")},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("noFavorites")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function qa(n){let a,t=n[43]("noFavoritesMobile")+"",s;return{c(){a=e.element("span"),s=e.text(t),e.attr(a,"class","NoFavoriteText")},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("noFavoritesMobile")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function Ke(n){let a,t=n[99].gameModel.isFavorite&&Ze(n);return{c(){t&&t.c(),a=e.empty()},m(s,o){t&&t.m(s,o),e.insert(s,a,o)},p(s,o){s[99].gameModel.isFavorite?t?t.p(s,o):(t=Ze(s),t.c(),t.m(a.parentNode,a)):t&&(t.d(1),t=null)},d(s){s&&e.detach(a),t&&t.d(s)}}}function Ze(n){let a,t=Ha(n);return{c(){t&&t.c(),a=e.empty()},m(s,o){t&&t.m(s,o),e.insert(s,a,o)},p(s,o){t.p(s,o)},d(s){s&&e.detach(a),t&&t.d(s)}}}function Ha(n){let a,t,s;function o(m,c){if(c[1]&2048&&(t=null),a==null&&(a=!!e.isMobile(m[44])),a)return Wa;if(t==null&&(t=!!m[99].gameModel.platform.includes("PC")),t)return Ba}let l=o(n,[-1,-1,-1,-1]),r=l&&l(n);return{c(){r&&r.c(),s=e.empty()},m(m,c){r&&r.m(m,c),e.insert(m,s,c)},p(m,c){l===(l=o(m,c))&&r?r.p(m,c):(r&&r.d(1),r=l&&l(m),r&&(r.c(),r.m(s.parentNode,s)))},d(m){m&&e.detach(s),r&&r.d(m)}}}function Ba(n){let a,t,s,o,l,r,m,c,u,f,h,p,b,S,v;return{c(){var _,d;a=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(a,"class",t=""+(J+(n[99].cellSize?n[99].cellSize:"1x1"))),e.set_custom_element_data(a,"session",n[6]),e.set_custom_element_data(a,"userid",n[7]),e.set_custom_element_data(a,"lang",n[5]),e.set_custom_element_data(a,"translationurl",n[12]),e.set_custom_element_data(a,"favorites",n[8]),e.set_custom_element_data(a,"categoryid",n[0]),e.set_custom_element_data(a,"gamethumbnail",s=n[99].gameModel.thumbnail),e.set_custom_element_data(a,"icon",o=n[46]((_=n[99])==null?void 0:_.icons)),e.set_custom_element_data(a,"gamename",l=n[99].gameModel.name),e.set_custom_element_data(a,"gamevendor",r=n[99].gameModel.vendor.logo),e.set_custom_element_data(a,"gameLaunchUrl",m=n[99].launchUrl),e.set_custom_element_data(a,"gameisnew",c=n[99].gameModel.isNew),e.set_custom_element_data(a,"gametag",u=n[45]((d=n[99].gameModel)==null?void 0:d.advancedTags)),e.set_custom_element_data(a,"gamecellsize",f=n[99].cellSize),e.set_custom_element_data(a,"gameid",h=n[99].gameModel.id),e.set_custom_element_data(a,"gamefunmode",p=n[99].gameModel.hasFunMode),e.set_custom_element_data(a,"showgamename",n[14]),e.set_custom_element_data(a,"gamefavorite",b=n[99].gameModel.isFavorite),e.set_custom_element_data(a,"showfavoredcategory",n[39]),e.set_custom_element_data(a,"connectlive",S=n[40][n[99].id]==1?"connect":"disconnect"),e.set_custom_element_data(a,"visibilityconnect",n[41]),e.set_custom_element_data(a,"currency",n[13]),e.set_custom_element_data(a,"livelobbyendpoint",v=n[99].gameModel.details?n[99].gameModel.launchUrl:""),e.set_custom_element_data(a,"clientstyling",n[10]),e.set_custom_element_data(a,"clientstylingurl",n[11]),e.set_custom_element_data(a,"endpoint",n[3]),e.set_custom_element_data(a,"livecasino",n[15]),e.set_custom_element_data(a,"gamepagemodalurl",n[16]),e.set_custom_element_data(a,"integratedgameframedesktop",n[17]),e.set_custom_element_data(a,"integratedgameframemobile",n[18]),e.set_custom_element_data(a,"mbsource",n[9])},m(_,d){e.insert(_,a,d)},p(_,d){var N,G;d[1]&2048&&t!==(t=""+(J+(_[99].cellSize?_[99].cellSize:"1x1")))&&e.set_custom_element_data(a,"class",t),d[0]&64&&e.set_custom_element_data(a,"session",_[6]),d[0]&128&&e.set_custom_element_data(a,"userid",_[7]),d[0]&32&&e.set_custom_element_data(a,"lang",_[5]),d[0]&4096&&e.set_custom_element_data(a,"translationurl",_[12]),d[0]&256&&e.set_custom_element_data(a,"favorites",_[8]),d[0]&1&&e.set_custom_element_data(a,"categoryid",_[0]),d[1]&2048&&s!==(s=_[99].gameModel.thumbnail)&&e.set_custom_element_data(a,"gamethumbnail",s),d[1]&2048&&o!==(o=_[46]((N=_[99])==null?void 0:N.icons))&&e.set_custom_element_data(a,"icon",o),d[1]&2048&&l!==(l=_[99].gameModel.name)&&e.set_custom_element_data(a,"gamename",l),d[1]&2048&&r!==(r=_[99].gameModel.vendor.logo)&&e.set_custom_element_data(a,"gamevendor",r),d[1]&2048&&m!==(m=_[99].launchUrl)&&e.set_custom_element_data(a,"gameLaunchUrl",m),d[1]&2048&&c!==(c=_[99].gameModel.isNew)&&e.set_custom_element_data(a,"gameisnew",c),d[1]&2048&&u!==(u=_[45]((G=_[99].gameModel)==null?void 0:G.advancedTags))&&e.set_custom_element_data(a,"gametag",u),d[1]&2048&&f!==(f=_[99].cellSize)&&e.set_custom_element_data(a,"gamecellsize",f),d[1]&2048&&h!==(h=_[99].gameModel.id)&&e.set_custom_element_data(a,"gameid",h),d[1]&2048&&p!==(p=_[99].gameModel.hasFunMode)&&e.set_custom_element_data(a,"gamefunmode",p),d[0]&16384&&e.set_custom_element_data(a,"showgamename",_[14]),d[1]&2048&&b!==(b=_[99].gameModel.isFavorite)&&e.set_custom_element_data(a,"gamefavorite",b),d[1]&256&&e.set_custom_element_data(a,"showfavoredcategory",_[39]),d[1]&2560&&S!==(S=_[40][_[99].id]==1?"connect":"disconnect")&&e.set_custom_element_data(a,"connectlive",S),d[1]&1024&&e.set_custom_element_data(a,"visibilityconnect",_[41]),d[0]&8192&&e.set_custom_element_data(a,"currency",_[13]),d[1]&2048&&v!==(v=_[99].gameModel.details?_[99].gameModel.launchUrl:"")&&e.set_custom_element_data(a,"livelobbyendpoint",v),d[0]&1024&&e.set_custom_element_data(a,"clientstyling",_[10]),d[0]&2048&&e.set_custom_element_data(a,"clientstylingurl",_[11]),d[0]&8&&e.set_custom_element_data(a,"endpoint",_[3]),d[0]&32768&&e.set_custom_element_data(a,"livecasino",_[15]),d[0]&65536&&e.set_custom_element_data(a,"gamepagemodalurl",_[16]),d[0]&131072&&e.set_custom_element_data(a,"integratedgameframedesktop",_[17]),d[0]&262144&&e.set_custom_element_data(a,"integratedgameframemobile",_[18]),d[0]&512&&e.set_custom_element_data(a,"mbsource",_[9])},d(_){_&&e.detach(a)}}}function Wa(n){let a=n[99].gameModel.platform.includes("iPad")||n[99].gameModel.platform.includes("iPhone")||n[99].gameModel.platform.includes("Android"),t,s=a&&Xe(n);return{c(){s&&s.c(),t=e.empty()},m(o,l){s&&s.m(o,l),e.insert(o,t,l)},p(o,l){l[1]&2048&&(a=o[99].gameModel.platform.includes("iPad")||o[99].gameModel.platform.includes("iPhone")||o[99].gameModel.platform.includes("Android")),a?s?s.p(o,l):(s=Xe(o),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(o){o&&e.detach(t),s&&s.d(o)}}}function Xe(n){let a,t,s,o,l,r,m,c,u,f,h,p,b,S,v;return{c(){var _,d;a=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(a,"class",t=""+(J+(n[99].cellSize?n[99].cellSize:"1x1"))),e.set_custom_element_data(a,"session",n[6]),e.set_custom_element_data(a,"userid",n[7]),e.set_custom_element_data(a,"lang",n[5]),e.set_custom_element_data(a,"favorites",n[8]),e.set_custom_element_data(a,"categoryid",n[0]),e.set_custom_element_data(a,"gamethumbnail",s=n[99].gameModel.thumbnail),e.set_custom_element_data(a,"icon",o=n[46]((_=n[99])==null?void 0:_.icons)),e.set_custom_element_data(a,"gamename",l=n[99].gameModel.name),e.set_custom_element_data(a,"gamevendor",r=n[99].gameModel.vendor.logo),e.set_custom_element_data(a,"gameLaunchUrl",m=n[99].launchUrl),e.set_custom_element_data(a,"gameisnew",c=n[99].gameModel.isNew),e.set_custom_element_data(a,"gametag",u=n[45]((d=n[99].gameModel)==null?void 0:d.advancedTags)),e.set_custom_element_data(a,"gamecellsize",f=n[99].cellSize),e.set_custom_element_data(a,"gameid",h=n[99].gameModel.id),e.set_custom_element_data(a,"gamefunmode",p=n[99].gameModel.hasFunMode),e.set_custom_element_data(a,"showgamename",n[14]),e.set_custom_element_data(a,"gamefavorite",b=n[99].gameModel.isFavorite),e.set_custom_element_data(a,"showfavoredcategory",n[39]),e.set_custom_element_data(a,"connectlive",S=n[40][n[99].id]==1?"connect":"disconnect"),e.set_custom_element_data(a,"visibilityconnect",n[41]),e.set_custom_element_data(a,"translationurl",n[12]),e.set_custom_element_data(a,"currency",n[13]),e.set_custom_element_data(a,"livelobbyendpoint",v=n[99].gameModel.details?n[99].gameModel.launchUrl:""),e.set_custom_element_data(a,"clientstyling",n[10]),e.set_custom_element_data(a,"clientstylingurl",n[11]),e.set_custom_element_data(a,"endpoint",n[3]),e.set_custom_element_data(a,"livecasino",n[15]),e.set_custom_element_data(a,"gamepagemodalurl",n[16]),e.set_custom_element_data(a,"integratedgameframedesktop",n[17]),e.set_custom_element_data(a,"integratedgameframemobile",n[18]),e.set_custom_element_data(a,"mbsource",n[9])},m(_,d){e.insert(_,a,d)},p(_,d){var N,G;d[1]&2048&&t!==(t=""+(J+(_[99].cellSize?_[99].cellSize:"1x1")))&&e.set_custom_element_data(a,"class",t),d[0]&64&&e.set_custom_element_data(a,"session",_[6]),d[0]&128&&e.set_custom_element_data(a,"userid",_[7]),d[0]&32&&e.set_custom_element_data(a,"lang",_[5]),d[0]&256&&e.set_custom_element_data(a,"favorites",_[8]),d[0]&1&&e.set_custom_element_data(a,"categoryid",_[0]),d[1]&2048&&s!==(s=_[99].gameModel.thumbnail)&&e.set_custom_element_data(a,"gamethumbnail",s),d[1]&2048&&o!==(o=_[46]((N=_[99])==null?void 0:N.icons))&&e.set_custom_element_data(a,"icon",o),d[1]&2048&&l!==(l=_[99].gameModel.name)&&e.set_custom_element_data(a,"gamename",l),d[1]&2048&&r!==(r=_[99].gameModel.vendor.logo)&&e.set_custom_element_data(a,"gamevendor",r),d[1]&2048&&m!==(m=_[99].launchUrl)&&e.set_custom_element_data(a,"gameLaunchUrl",m),d[1]&2048&&c!==(c=_[99].gameModel.isNew)&&e.set_custom_element_data(a,"gameisnew",c),d[1]&2048&&u!==(u=_[45]((G=_[99].gameModel)==null?void 0:G.advancedTags))&&e.set_custom_element_data(a,"gametag",u),d[1]&2048&&f!==(f=_[99].cellSize)&&e.set_custom_element_data(a,"gamecellsize",f),d[1]&2048&&h!==(h=_[99].gameModel.id)&&e.set_custom_element_data(a,"gameid",h),d[1]&2048&&p!==(p=_[99].gameModel.hasFunMode)&&e.set_custom_element_data(a,"gamefunmode",p),d[0]&16384&&e.set_custom_element_data(a,"showgamename",_[14]),d[1]&2048&&b!==(b=_[99].gameModel.isFavorite)&&e.set_custom_element_data(a,"gamefavorite",b),d[1]&256&&e.set_custom_element_data(a,"showfavoredcategory",_[39]),d[1]&2560&&S!==(S=_[40][_[99].id]==1?"connect":"disconnect")&&e.set_custom_element_data(a,"connectlive",S),d[1]&1024&&e.set_custom_element_data(a,"visibilityconnect",_[41]),d[0]&4096&&e.set_custom_element_data(a,"translationurl",_[12]),d[0]&8192&&e.set_custom_element_data(a,"currency",_[13]),d[1]&2048&&v!==(v=_[99].gameModel.details?_[99].gameModel.launchUrl:"")&&e.set_custom_element_data(a,"livelobbyendpoint",v),d[0]&1024&&e.set_custom_element_data(a,"clientstyling",_[10]),d[0]&2048&&e.set_custom_element_data(a,"clientstylingurl",_[11]),d[0]&8&&e.set_custom_element_data(a,"endpoint",_[3]),d[0]&32768&&e.set_custom_element_data(a,"livecasino",_[15]),d[0]&65536&&e.set_custom_element_data(a,"gamepagemodalurl",_[16]),d[0]&131072&&e.set_custom_element_data(a,"integratedgameframedesktop",_[17]),d[0]&262144&&e.set_custom_element_data(a,"integratedgameframemobile",_[18]),d[0]&512&&e.set_custom_element_data(a,"mbsource",_[9])},d(_){_&&e.detach(a)}}}function Qe(n){let a,t=n[99].gameModel&&Ke(n);return{c(){t&&t.c(),a=e.empty()},m(s,o){t&&t.m(s,o),e.insert(s,a,o)},p(s,o){s[99].gameModel?t?t.p(s,o):(t=Ke(s),t.c(),t.m(a.parentNode,a)):t&&(t.d(1),t=null)},d(s){s&&e.detach(a),t&&t.d(s)}}}function xe(n){let a,t,s,o=n[28].name+"",l,r;function m(b,S){return b[28].icon?Ya:Ja}let c=m(n),u=c(n);function f(b,S){return b[27]&&!b[30]?Za:Ka}let h=f(n),p=h(n);return{c(){a=e.element("div"),u.c(),t=e.space(),s=e.element("h3"),l=e.text(o),r=e.space(),p.c(),e.attr(s,"class","CategoryName"),e.attr(a,"class","CasinoGamesHeader")},m(b,S){e.insert(b,a,S),u.m(a,null),e.append(a,t),e.append(a,s),e.append(s,l),n[57](s),e.append(a,r),p.m(a,null)},p(b,S){c===(c=m(b))&&u?u.p(b,S):(u.d(1),u=c(b),u&&(u.c(),u.m(a,t))),S[0]&268435456&&o!==(o=b[28].name+"")&&e.set_data(l,o),h===(h=f(b))&&p?p.p(b,S):(p.d(1),p=h(b),p&&(p.c(),p.m(a,null)))},d(b){b&&e.detach(a),u.d(),n[57](null),p.d()}}}function Ja(n){let a;return{c(){a=e.element("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>',e.attr(a,"class","CategoryIcon")},m(t,s){e.insert(t,a,s)},p:e.noop,d(t){t&&e.detach(a)}}}function Ya(n){let a,t;return{c(){a=e.element("img"),e.src_url_equal(a.src,t=n[28].icon)||e.attr(a,"src",t),e.attr(a,"alt","Category Icon")},m(s,o){e.insert(s,a,o)},p(s,o){o[0]&268435456&&!e.src_url_equal(a.src,t=s[28].icon)&&e.attr(a,"src",t)},d(s){s&&e.detach(a)}}}function Ka(n){let a,t,s,o=n[1]=="true"&&n[22]==="false"&&$e(n),l=n[2]=="true"&&ea(n);return{c(){a=e.element("div"),o&&o.c(),t=e.space(),l&&l.c(),e.attr(a,"class",s=n[1]=="true"&&n[22]==="false"&&n[2]=="true"?"CategoryFilterContainer":"SingleOrEmptyCategoryFilterContainer")},m(r,m){e.insert(r,a,m),o&&o.m(a,null),e.append(a,t),l&&l.m(a,null)},p(r,m){r[1]=="true"&&r[22]==="false"?o?o.p(r,m):(o=$e(r),o.c(),o.m(a,t)):o&&(o.d(1),o=null),r[2]=="true"?l?l.p(r,m):(l=ea(r),l.c(),l.m(a,null)):l&&(l.d(1),l=null),m[0]&4194310&&s!==(s=r[1]=="true"&&r[22]==="false"&&r[2]=="true"?"CategoryFilterContainer":"SingleOrEmptyCategoryFilterContainer")&&e.attr(a,"class",s)},d(r){r&&e.detach(a),o&&o.d(),l&&l.d()}}}function Za(n){let a,t,s=n[43]("viewAll")+"",o,l,r=n[28].games.total+"",m,c,u,f;return{c(){a=e.element("a"),t=e.element("span"),o=e.text(s),l=e.text(" ("),m=e.text(r),c=e.text(")"),e.attr(t,"class","CategoryLoadMore"),e.attr(a,"class","CategoryNameLink")},m(h,p){e.insert(h,a,p),e.append(a,t),e.append(t,o),e.append(t,l),e.append(t,m),e.append(t,c),u||(f=e.listen(a,"click",n[58]),u=!0)},p(h,p){p[1]&4096&&s!==(s=h[43]("viewAll")+"")&&e.set_data(o,s),p[0]&268435456&&r!==(r=h[28].games.total+"")&&e.set_data(m,r)},d(h){h&&e.detach(a),u=!1,f()}}}function $e(n){let a;return{c(){a=e.element("casino-filter"),e.set_custom_element_data(a,"clientstylingurl",n[11]),e.set_custom_element_data(a,"clientstyling",n[10]),e.set_custom_element_data(a,"endpoint",n[3]),e.set_custom_element_data(a,"datasource",n[4]),e.set_custom_element_data(a,"lang",n[5]),e.set_custom_element_data(a,"categoryid",n[0]),e.set_custom_element_data(a,"addfilterselector",n[1]),e.set_custom_element_data(a,"addsortingselector",n[2]),e.set_custom_element_data(a,"filterbylogo",n[20]),e.set_custom_element_data(a,"mbsource",n[9])},m(t,s){e.insert(t,a,s)},p(t,s){s[0]&2048&&e.set_custom_element_data(a,"clientstylingurl",t[11]),s[0]&1024&&e.set_custom_element_data(a,"clientstyling",t[10]),s[0]&8&&e.set_custom_element_data(a,"endpoint",t[3]),s[0]&16&&e.set_custom_element_data(a,"datasource",t[4]),s[0]&32&&e.set_custom_element_data(a,"lang",t[5]),s[0]&1&&e.set_custom_element_data(a,"categoryid",t[0]),s[0]&2&&e.set_custom_element_data(a,"addfilterselector",t[1]),s[0]&4&&e.set_custom_element_data(a,"addsortingselector",t[2]),s[0]&1048576&&e.set_custom_element_data(a,"filterbylogo",t[20]),s[0]&512&&e.set_custom_element_data(a,"mbsource",t[9])},d(t){t&&e.detach(a)}}}function ea(n){let a;return{c(){a=e.element("casino-sort"),e.set_custom_element_data(a,"clientstylingurl",n[11]),e.set_custom_element_data(a,"clientstyling",n[10]),e.set_custom_element_data(a,"lang",n[5]),e.set_custom_element_data(a,"categoryid",n[0]),e.set_custom_element_data(a,"addsortingselector",n[2]),e.set_custom_element_data(a,"mbsource",n[9])},m(t,s){e.insert(t,a,s)},p(t,s){s[0]&2048&&e.set_custom_element_data(a,"clientstylingurl",t[11]),s[0]&1024&&e.set_custom_element_data(a,"clientstyling",t[10]),s[0]&32&&e.set_custom_element_data(a,"lang",t[5]),s[0]&1&&e.set_custom_element_data(a,"categoryid",t[0]),s[0]&4&&e.set_custom_element_data(a,"addsortingselector",t[2]),s[0]&512&&e.set_custom_element_data(a,"mbsource",t[9])},d(t){t&&e.detach(a)}}}function Xa(n){let a,t=n[43]("noResults")+"",s;return{c(){a=e.element("p"),s=e.text(t),e.attr(a,"class","NoSearchResults")},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("noResults")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function Qa(n){let a,t=[],s=new Map,o,l=e.ensure_array_like(n[29]);const r=m=>m[99].id;for(let m=0;m<l.length;m+=1){let c=Be(n,l,m),u=r(c);s.set(u,t[m]=aa(u,c))}return{c(){a=e.element("ul");for(let m=0;m<t.length;m+=1)t[m].c();e.attr(a,"class",o=(n[42].items.length===0&&n[39]?"":"CasinoGamesGrid")+" "+(n[27]&&n[21]=="true"?"CasinoGamesGridSlider CustomScroll":"")+" GamesListIncreasedGap")},m(m,c){e.insert(m,a,c);for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(a,null);n[60](a)},p(m,c){c[0]&556269545|c[1]&50688&&(l=e.ensure_array_like(m[29]),t=e.update_keyed_each(t,c,r,1,m,l,s,a,e.destroy_block,aa,null,Be)),c[0]&136314880|c[1]&2304&&o!==(o=(m[42].items.length===0&&m[39]?"":"CasinoGamesGrid")+" "+(m[27]&&m[21]=="true"?"CasinoGamesGridSlider CustomScroll":"")+" GamesListIncreasedGap")&&e.attr(a,"class",o)},d(m){m&&e.detach(a);for(let c=0;c<t.length;c+=1)t[c].d();n[60](null)}}}function xa(n){let a;return{c(){a=e.element("div"),e.attr(a,"class","DualRing")},m(t,s){e.insert(t,a,s)},p:e.noop,d(t){t&&e.detach(a)}}}function $a(n){let a,t,s,o,l,r,m,c,u,f,h,p,b,S,v,_=n[101];const d=()=>n[59](a,_),N=()=>n[59](null,_);return{c(){var G;a=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(a,"gamethumbnail",t=n[99].thumbnail),e.set_custom_element_data(a,"icon",s=n[46]((G=n[99])==null?void 0:G.icons)),e.set_custom_element_data(a,"session",n[6]),e.set_custom_element_data(a,"userid",n[7]),e.set_custom_element_data(a,"lang",n[5]),e.set_custom_element_data(a,"class",o=""+(J+(n[99].cellSize?n[99].cellSize:"1x1"))),e.set_custom_element_data(a,"favorites",n[8]),e.set_custom_element_data(a,"categoryid",n[0]),e.set_custom_element_data(a,"gamename",l=n[99].name),e.set_custom_element_data(a,"gamevendor",r=n[99].vendor.logo),e.set_custom_element_data(a,"gameLaunchUrl",m=n[99].launchUrl),e.set_custom_element_data(a,"gameisnew",c=n[99].isNew),e.set_custom_element_data(a,"gametag",u=n[45](n[99].advancedTags)),e.set_custom_element_data(a,"gamecellsize",f=n[99].cellSize),e.set_custom_element_data(a,"gameid",h=n[99].id),e.set_custom_element_data(a,"gamefunmode",p=n[99].hasFunMode),e.set_custom_element_data(a,"gamefavorite",b=n[99].isFavorite),e.set_custom_element_data(a,"translationurl",n[12]),e.set_custom_element_data(a,"showgamename",n[14]),e.set_custom_element_data(a,"connectlive",S=n[40][n[99].id]==1?"connect":"disconnect"),e.set_custom_element_data(a,"visibilityconnect",n[41]),e.set_custom_element_data(a,"currency",n[13]),e.set_custom_element_data(a,"livelobbyendpoint",v=n[99].details?n[99].href:""),e.set_custom_element_data(a,"clientstyling",n[10]),e.set_custom_element_data(a,"clientstylingurl",n[11]),e.set_custom_element_data(a,"endpoint",n[3]),e.set_custom_element_data(a,"livecasino",n[15]),e.set_custom_element_data(a,"gamepagemodalurl",n[16]),e.set_custom_element_data(a,"integratedgameframedesktop",n[17]),e.set_custom_element_data(a,"integratedgameframemobile",n[18]),e.set_custom_element_data(a,"casinogamesgridslider",n[21]),e.set_custom_element_data(a,"mbsource",n[9])},m(G,w){e.insert(G,a,w),d()},p(G,w){var q;n=G,w[0]&536870912&&t!==(t=n[99].thumbnail)&&e.set_custom_element_data(a,"gamethumbnail",t),w[0]&536870912&&s!==(s=n[46]((q=n[99])==null?void 0:q.icons))&&e.set_custom_element_data(a,"icon",s),w[0]&64&&e.set_custom_element_data(a,"session",n[6]),w[0]&128&&e.set_custom_element_data(a,"userid",n[7]),w[0]&32&&e.set_custom_element_data(a,"lang",n[5]),w[0]&536870912&&o!==(o=""+(J+(n[99].cellSize?n[99].cellSize:"1x1")))&&e.set_custom_element_data(a,"class",o),w[0]&256&&e.set_custom_element_data(a,"favorites",n[8]),w[0]&1&&e.set_custom_element_data(a,"categoryid",n[0]),w[0]&536870912&&l!==(l=n[99].name)&&e.set_custom_element_data(a,"gamename",l),w[0]&536870912&&r!==(r=n[99].vendor.logo)&&e.set_custom_element_data(a,"gamevendor",r),w[0]&536870912&&m!==(m=n[99].launchUrl)&&e.set_custom_element_data(a,"gameLaunchUrl",m),w[0]&536870912&&c!==(c=n[99].isNew)&&e.set_custom_element_data(a,"gameisnew",c),w[0]&536870912&&u!==(u=n[45](n[99].advancedTags))&&e.set_custom_element_data(a,"gametag",u),w[0]&536870912&&f!==(f=n[99].cellSize)&&e.set_custom_element_data(a,"gamecellsize",f),w[0]&536870912&&h!==(h=n[99].id)&&e.set_custom_element_data(a,"gameid",h),w[0]&536870912&&p!==(p=n[99].hasFunMode)&&e.set_custom_element_data(a,"gamefunmode",p),w[0]&536870912&&b!==(b=n[99].isFavorite)&&e.set_custom_element_data(a,"gamefavorite",b),w[0]&4096&&e.set_custom_element_data(a,"translationurl",n[12]),w[0]&16384&&e.set_custom_element_data(a,"showgamename",n[14]),w[0]&536870912|w[1]&512&&S!==(S=n[40][n[99].id]==1?"connect":"disconnect")&&e.set_custom_element_data(a,"connectlive",S),w[1]&1024&&e.set_custom_element_data(a,"visibilityconnect",n[41]),w[0]&8192&&e.set_custom_element_data(a,"currency",n[13]),w[0]&536870912&&v!==(v=n[99].details?n[99].href:"")&&e.set_custom_element_data(a,"livelobbyendpoint",v),w[0]&1024&&e.set_custom_element_data(a,"clientstyling",n[10]),w[0]&2048&&e.set_custom_element_data(a,"clientstylingurl",n[11]),w[0]&8&&e.set_custom_element_data(a,"endpoint",n[3]),w[0]&32768&&e.set_custom_element_data(a,"livecasino",n[15]),w[0]&65536&&e.set_custom_element_data(a,"gamepagemodalurl",n[16]),w[0]&131072&&e.set_custom_element_data(a,"integratedgameframedesktop",n[17]),w[0]&262144&&e.set_custom_element_data(a,"integratedgameframemobile",n[18]),w[0]&2097152&&e.set_custom_element_data(a,"casinogamesgridslider",n[21]),w[0]&512&&e.set_custom_element_data(a,"mbsource",n[9]),_!==n[101]&&(N(),_=n[101],d())},d(G){G&&e.detach(a),N()}}}function aa(n,a){let t,s,o=$a(a);return{key:n,first:null,c(){t=e.empty(),o&&o.c(),s=e.empty(),this.first=t},m(l,r){e.insert(l,t,r),o&&o.m(l,r),e.insert(l,s,r)},p(l,r){a=l,o.p(a,r)},d(l){l&&(e.detach(t),e.detach(s)),o&&o.d(l)}}}function et(n){let a,t=n[43]("searchedItems")+"",s;return{c(){a=e.element("h3"),s=e.text(t),e.attr(a,"class","StatusText")},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("searchedItems")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function at(n){let a,t=n[43]("noResults")+"",s;return{c(){a=e.element("h3"),s=e.text(t),e.attr(a,"class","StatusText")},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("noResults")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function tt(n){let a,t=n[43]("recentSearchedItems")+"",s;return{c(){a=e.element("h3"),s=e.text(t),e.attr(a,"class","StatusText")},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("recentSearchedItems")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function nt(n){let a;return{c(){a=e.element("p"),a.textContent="Waiting",e.attr(a,"class","SearchWaiting")},m(t,s){e.insert(t,a,s)},p:e.noop,d(t){t&&e.detach(a)}}}function st(n){let a,t,s=[],o=new Map,l=!n[35]&&ta(n),r=e.ensure_array_like(n[29]);const m=c=>c[99].id;for(let c=0;c<r.length;c+=1){let u=We(n,r,c),f=m(u);o.set(f,s[c]=na(f,u))}return{c(){l&&l.c(),a=e.space(),t=e.element("ul");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(t,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(c,u){l&&l.m(c,u),e.insert(c,a,u),e.insert(c,t,u);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(t,null)},p(c,u){c[35]?l&&(l.d(1),l=null):l?l.p(c,u):(l=ta(c),l.c(),l.m(a.parentNode,a)),u[0]&537395177|u[1]&49156&&(r=e.ensure_array_like(c[29]),s=e.update_keyed_each(s,u,m,1,c,r,o,t,e.destroy_block,na,null,We))},d(c){c&&(e.detach(a),e.detach(t)),l&&l.d(c);for(let u=0;u<s.length;u+=1)s[u].d()}}}function ta(n){let a,t=n[43]("noRecentSearch")+"",s;return{c(){a=e.element("p"),s=e.text(t),e.attr(a,"class","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(e.isMobile(n[44])?"NoRecentSearchesMobile":""))},m(o,l){e.insert(o,a,l),e.append(a,s)},p(o,l){l[1]&4096&&t!==(t=o[43]("noRecentSearch")+"")&&e.set_data(s,t)},d(o){o&&e.detach(a)}}}function na(n,a){let t,s,o,l,r,m,c,u,f,h,p,b,S,v;return{key:n,first:null,c(){var _;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"class",s=""+(J+(a[99].cellSize?a[99].cellSize:"1x1"))),e.set_custom_element_data(t,"session",a[6]),e.set_custom_element_data(t,"userid",a[7]),e.set_custom_element_data(t,"lang",a[5]),e.set_custom_element_data(t,"searchitem",a[33]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"categoryid",a[0]),e.set_custom_element_data(t,"gamethumbnail",o=a[99].thumbnail),e.set_custom_element_data(t,"icon",l=a[46]((_=a[99])==null?void 0:_.icons)),e.set_custom_element_data(t,"gamename",r=a[99].name),e.set_custom_element_data(t,"gamevendor",m=a[99].vendor.logo),e.set_custom_element_data(t,"gameLaunchUrl",c=a[99].launchUrl),e.set_custom_element_data(t,"gameisnew",u=a[99].isNew),e.set_custom_element_data(t,"gametag",f=a[45](a[99].advancedTags)),e.set_custom_element_data(t,"gamecellsize",h=a[99].cellSize),e.set_custom_element_data(t,"gameid",p=a[99].id),e.set_custom_element_data(t,"gamefunmode",b=a[99].hasFunMode),e.set_custom_element_data(t,"showgamename",a[14]),e.set_custom_element_data(t,"translationurl",a[12]),e.set_custom_element_data(t,"gamefavorite",S=a[99].isFavorite),e.set_custom_element_data(t,"currency",a[13]),e.set_custom_element_data(t,"livelobbyendpoint",v=a[99].details?a[99].href:""),e.set_custom_element_data(t,"clientstyling",a[10]),e.set_custom_element_data(t,"clientstylingurl",a[11]),e.set_custom_element_data(t,"endpoint",a[3]),e.set_custom_element_data(t,"livecasino",a[15]),e.set_custom_element_data(t,"gamepagemodalurl",a[16]),e.set_custom_element_data(t,"integratedgameframedesktop",a[17]),e.set_custom_element_data(t,"integratedgameframemobile",a[18]),e.set_custom_element_data(t,"mbsource",a[9]),this.first=t},m(_,d){e.insert(_,t,d)},p(_,d){var N;a=_,d[0]&536870912&&s!==(s=""+(J+(a[99].cellSize?a[99].cellSize:"1x1")))&&e.set_custom_element_data(t,"class",s),d[0]&64&&e.set_custom_element_data(t,"session",a[6]),d[0]&128&&e.set_custom_element_data(t,"userid",a[7]),d[0]&32&&e.set_custom_element_data(t,"lang",a[5]),d[1]&4&&e.set_custom_element_data(t,"searchitem",a[33]),d[0]&256&&e.set_custom_element_data(t,"favorites",a[8]),d[0]&1&&e.set_custom_element_data(t,"categoryid",a[0]),d[0]&536870912&&o!==(o=a[99].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",o),d[0]&536870912&&l!==(l=a[46]((N=a[99])==null?void 0:N.icons))&&e.set_custom_element_data(t,"icon",l),d[0]&536870912&&r!==(r=a[99].name)&&e.set_custom_element_data(t,"gamename",r),d[0]&536870912&&m!==(m=a[99].vendor.logo)&&e.set_custom_element_data(t,"gamevendor",m),d[0]&536870912&&c!==(c=a[99].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",c),d[0]&536870912&&u!==(u=a[99].isNew)&&e.set_custom_element_data(t,"gameisnew",u),d[0]&536870912&&f!==(f=a[45](a[99].advancedTags))&&e.set_custom_element_data(t,"gametag",f),d[0]&536870912&&h!==(h=a[99].cellSize)&&e.set_custom_element_data(t,"gamecellsize",h),d[0]&536870912&&p!==(p=a[99].id)&&e.set_custom_element_data(t,"gameid",p),d[0]&536870912&&b!==(b=a[99].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",b),d[0]&16384&&e.set_custom_element_data(t,"showgamename",a[14]),d[0]&4096&&e.set_custom_element_data(t,"translationurl",a[12]),d[0]&536870912&&S!==(S=a[99].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",S),d[0]&8192&&e.set_custom_element_data(t,"currency",a[13]),d[0]&536870912&&v!==(v=a[99].details?a[99].href:"")&&e.set_custom_element_data(t,"livelobbyendpoint",v),d[0]&1024&&e.set_custom_element_data(t,"clientstyling",a[10]),d[0]&2048&&e.set_custom_element_data(t,"clientstylingurl",a[11]),d[0]&8&&e.set_custom_element_data(t,"endpoint",a[3]),d[0]&32768&&e.set_custom_element_data(t,"livecasino",a[15]),d[0]&65536&&e.set_custom_element_data(t,"gamepagemodalurl",a[16]),d[0]&131072&&e.set_custom_element_data(t,"integratedgameframedesktop",a[17]),d[0]&262144&&e.set_custom_element_data(t,"integratedgameframemobile",a[18]),d[0]&512&&e.set_custom_element_data(t,"mbsource",a[9])},d(_){_&&e.detach(t)}}}function ot(n){let a;return{c(){a=e.element("p"),a.textContent="500 Error - Internal Server Error.",e.attr(a,"class","SearchLoading")},m(t,s){e.insert(t,a,s)},d(t){t&&e.detach(a)}}}function lt(n){let a;return{c(){a=e.element("p"),a.textContent="404 Error - No result found.",e.attr(a,"class","SearchLoading")},m(t,s){e.insert(t,a,s)},d(t){t&&e.detach(a)}}}function it(n){let a;function t(l,r){return l[26]?ja:l[31]?La:Ra}let s=t(n),o=s(n);return{c(){a=e.element("div"),o.c(),e.attr(a,"class","CasinoGamesCategorySectionContainer")},m(l,r){e.insert(l,a,r),o.m(a,null),n[63](a)},p(l,r){s===(s=t(l))&&o?o.p(l,r):(o.d(1),o=s(l),o&&(o.c(),o.m(a,null)))},i:e.noop,o:e.noop,d(l){l&&e.detach(a),o.d(),n[63](null)}}}const J="game-tile-";let rt=0;function mt(n,a,t){let s;e.component_subscribe(n,e.$format,i=>t(43,s=i));let{endpoint:o=""}=a,{datasource:l=""}=a,{lang:r=""}=a,{session:m=""}=a,{userid:c=""}=a,{favorites:u=""}=a,{mbsource:f}=a,{clientstyling:h=""}=a,{clientstylingurl:p=""}=a,{translationurl:b=""}=a,{currency:S=""}=a,{categoryid:v=""}=a,{showgamename:_=""}=a,{livecasino:d="false"}=a,{gamepagemodalurl:N="true"}=a,{integratedgameframedesktop:G="false"}=a,{integratedgameframemobile:w="false"}=a,{casinomygames:q="false"}=a,{addfilterselector:ie="false"}=a,{addsortingselector:re="false"}=a,{filterbylogo:je=""}=a,{casinogamesgridslider:Te="false"}=a,{fetchviaevent:Q="false"}=a,{showallpage:we="casino"}=a,{actionevent:ye="CategoryChange"}=a,{displayedgamecount:me="10"}=a,{showallbuttongamescount:ce="10"}=a,{lobbyscreen:ke="true"}=a,{usesinglevendorfilter:de="false"}=a,{visiblegames:Se="10"}=a,{requiredicon:Ce="false"}=a,H=!0,Ge=!1,_e,ue,U=!0,Pe=window.navigator.userAgent,A,C=[],B=!0,Y=40,V=!1,ge=!1,x=!1,Fe=!1,ze=!0,$=!1,ee,Me,ae,te=!1,D,oa,fe=!1,ne=new Array(1e4),se={},Ie="",K="",he,Ne,z,L=[],pe=new AbortController,Z={items:[],count:0,name:""};const Ee=i=>{Object.keys(i).forEach(g=>{Ia(g,i[g])})},la=()=>{fetch(b).then(g=>g.json()).then(g=>{Ee(g)}).catch(g=>{console.log(g)})};Ee(Ea),typeof document.hidden!="undefined"?he="hidden":typeof document.msHidden!="undefined"?he="msHidden":typeof document.webkitHidden!="undefined"&&(he="webkitHidden");let ve=new IntersectionObserver(i=>{i.forEach(g=>be(this,null,function*(){let y=g.target.gameid,F=g.target.elems_index;g.isIntersecting?(F*1.2>Y&&ua(v),t(40,se[y]=1,se)):t(40,se[y]=0,se)}))});const ia=(i,g)=>new Promise((y,F)=>{if(i&&g){let I=`${o}/v1/player/${g}/favorites/`;fetch(I,{method:"GET",headers:{"X-SessionID":i}}).then(k=>k.json()).then(k=>{var O,R;if(z=[],k){(O=k.items)==null||O.forEach(P=>{P.gameModel&&(z.push(P),L.includes(P.id)||L.push(P.id))});const T=(R=e.platformFavorite(z))==null?void 0:R.length;window.postMessage({type:"UpdateFavoritesCount",favoriteGamesLength:T})}else z=[];v==="FAVORITES"&&Le(z),y(z)}).catch(k=>{console.error(k),F(k)})}else y([])}),Ae=(i,g)=>{let y=`${o}/v1/player/${g}/favorites/`;t(25,H=!0);let F={method:"GET",headers:{"X-SessionID":i}};return new Promise((I,M)=>{fetch(y,F).then(k=>k.json()).then(k=>{var R,T;if(t(25,H=!1),z=[],k){(R=k.items)==null||R.forEach(X=>{X.gameModel&&(z.push(X),L.includes(X.id)||L.push(X.id))});const P=(T=e.platformFavorite(z))==null?void 0:T.length;window.postMessage({type:"UpdateFavoritesCount",favoriteGamesLength:P})}else z=[];v==="FAVORITES"&&Le(z),C.forEach(P=>{P.isFavorite=j(P.id)});let O=C;t(29,C=void 0),t(29,C=O),I(z)}).catch(k=>{console.error(k),M(k)})})},De=(i,g,y,F)=>{pe&&pe.abort(),pe=new AbortController;const I=pe.signal;t(25,H=!0);let M="",k="",O=JSON.parse(localStorage.getItem("vendorFiltersByCategory")),R=JSON.parse(localStorage.getItem("vendorSortingBy"));const T=de==="true"?"*":i,P=g,X=y!=null?y:40;return(i.match(/\$/g)||[]).length>1?(M=i.split("$").slice(0,2).join("$"),k=new URL(`${o}/v1/casino/groups/${l}/${M}/subGroups`)):k=new URL(`${o}/v1/casino/groups/${l}/${i}`),new Promise((za,Ma)=>{var qe;if(k.searchParams.delete("pagination"),k.searchParams.append("expand","games(vendor)"),k.searchParams.append("fields","id,name,games,icon"),k.searchParams.append("platform",e.getDevice(Pe)),k.searchParams.append("pagination",`games(offset=${P},limit=${X})`),k.searchParams.append("language",r),window.postMessage({type:"CategoryVendors",categoryid:i},window.location.href),O&&((qe=O[T])!=null&&qe.length))if(de==="true"||U===!1&&te===!1){let E="";t(34,Fe=!0),O[T].forEach(W=>{E=E+(E?`,games(vendor(id=${W}))`:`games(vendor(id=${W}))`)}),k.searchParams.append("filter",`${E}`)}else t(34,Fe=!1);R&&(R[i]?R[i]&&R[i]!="All"&&(R[i]=="isNew"||R[i]=="advancedTags(name(hot))"?(k.searchParams.append("sortedField",`games(${R[i]})`),k.searchParams.append("orderBy","DES")):k.searchParams.append("sortedField",`games(${R[i]})`)):K&&K!="All"&&(K=="advancedTags(name(hot))"||K=="isNew"?(k.searchParams.append("sortedField",`games(${K})`),k.searchParams.append("orderBy","DES")):k.searchParams.append("sortedField",`games(${K})`))),fetch(k,{signal:I}).then(E=>{if(!E.ok)throw E.status===404&&window.postMessage({type:"NonExistentCategory"},window.location.origin),new Error(`HTTP ${E.status}`);return E.json()}).then(E=>{I.aborted||(t(25,H=!1),(i.match(/\$/g)||[]).length>1&&(E=E.items.filter(W=>{if(W.id==i)return W})[0]),t(56,Ne=!0),t(26,Ge=!1),Me=E.games.total,F&&E.games.items.forEach(W=>{W.isFavorite=j(W.id)}),t(36,$=!0),za(E))}).catch(E=>{E.name!=="AbortError"&&(t(26,Ge=!0),console.error(E),Ma(E))}).finally(()=>{ra()})})},oe=(i,g,y)=>new Promise((F,I)=>{u=="true"?ia(m,c).then(M=>{De(i,g,y,M).then(k=>{F(k)})}):De(i,g,y,null).then(M=>{F(M)})}),ra=()=>{const i=D.getRootNode().host;i.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:i}}))},ma=(i,g,y)=>{i!==""&&(t(31,V=!1),t(27,U=!0),t(1,ie="false"),t(2,re="false"),t(33,x=!1),fe=!1,t(30,B=+g>+y),oe(i,0,+g).then(F=>{t(28,A=F),t(29,C=A.games.items),C&&C.forEach(I=>{I.isFavorite=j(I.id)})}))},Re=i=>{if(i.data)switch(i.data.type){case"MostPlayedData":v=="MOSTPLAYED"&&(t(31,V=!1),t(27,U=!1),t(30,B=!1),t(29,C=i.data.mostPlayedGames),t(28,A={id:"MOSTPLAYED",name:"Most Played Games",games:{count:i.data.mostPlayedGames.length,total:i.data.mostPlayedGames.length,items:i.data.mostPlayedGames}}),C&&C.forEach(g=>{g.isFavorite=j(g.id)})),t(25,H=!1);break;case"LastPlayedData":v=="LASTPLAYED"&&(t(31,V=!1),t(27,U=!1),t(30,B=!1),t(29,C=i.data.lastPlayedGames),t(28,A={id:"LASTPLAYED",name:"Last Played Games",games:{count:i.data.lastPlayedGames.length,total:i.data.lastPlayedGames.length,items:i.data.lastPlayedGames}}),C&&C.forEach(g=>{g.isFavorite=j(g.id)})),t(25,H=!1);break;case"RecentSearchData":t(31,V=!0),t(32,ge=!0),i.data.searchData.length>0?(t(29,C=i.data.searchData),t(35,ze=!0),C&&C.forEach(g=>{g.isFavorite=j(g.id)})):(t(29,C=[]),t(35,ze=!1));break;case"OutOfRecentSearches":t(31,V=!1),t(32,ge=!1);break;case"SearchData":t(31,V=!0),t(32,ge=!1),t(29,C=i.data.searchData.items||[]),t(33,x=!0),i.data.receivedFavoriteResults&&(z=i.data.receivedFavoriteResults.items),C&&C.forEach(g=>{g.isFavorite=j(g.id)});break;case`CategoryData_${v}`:t(31,V=!1),t(27,U=!0),t(1,ie="false"),t(2,re="false"),t(33,x=!1),fe=!1,oe(i.data.categoryId,0,i.data.visiblegames).then(g=>{t(28,A=g),t(29,C=A.games.items),t(30,B=!!(Me<=i.data.visiblegames&&U)),C&&C.forEach(y=>{y.isFavorite=j(y.id)})});break;case"CategoryChange":Y=20;break;case"ApplySorter":t(0,v=i.data.itemId),K=i.data.sortBy,oe(v,0,Y).then(g=>{t(28,A=g),t(29,C=A.games.items),t(30,B=!1)});break;case"CategoryUpdate":Oe(i.data.itemId);break;case`SetUnfavoredGame${v}`:_a(`${o}/v1/player/${c}/favorites`,m,i.data.id);break;case`SetFavoredGame${v}`:da(`${o}/v1/player/${c}/favorites`,m,i.data.id);break;case"UserSessionID":_e=i.data.session,ue=i.data.userID,u=="true"&&ue&&ue.length&&_e&&_e.length>0&&Ae(_e,ue);break;case"UpdateFavoredList":v==="FAVORITES"&&Ue(i.data.url,i.data.sessionID);break}},Oe=(i,g=!1)=>{t(31,V=!1),t(27,U=ke==="true"),t(33,x=!1),fe=!0,t(36,$=!1),t(0,v=i),v!=="MOSTPLAYED"&&!g&&t(30,B=!1),q!=="true"&&(!z&&m&&Ae(m,c),oe(v,0,Y).then(y=>{t(28,A=y),t(29,C=A.games.items)}).finally(()=>{U&&window.postMessage({type:`CategoryData_${v}`,categoryId:v,visiblegames:Se},window.location.href)}))},ca=()=>{A&&(t(29,C=A.games.items),C.forEach(i=>{i.isFavorite=j(i.id)}))},j=i=>{var g;return(g=z==null?void 0:z.some(y=>y.id===i))!=null?g:!1};let da=(i,g,y)=>be(this,null,function*(){yield Ue(i,g),L.includes(y)||L.push(y);let I={method:"POST",headers:{"X-SessionID":g,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:L})};fetch(i,I).then(M=>M.json()).then(M=>{window.postMessage({type:`AddFavoriteThumbnail_${y}`},window.location.href),window.postMessage({type:"UpdateFavoredList",url:i,sessionID:g})}).catch(M=>{console.error("Err",M)})});const _a=(i,g,y)=>{let F={method:"DELETE",headers:{"X-SessionID":g}};fetch(`${i}/${y}`,F).then(I=>I.json()).then(()=>{window.postMessage({type:`RemoveFavoriteThumbnail_${y}`},window.location.href),window.postMessage({type:"UpdateFavoredList",url:i,sessionID:g})}),L.includes(y)&&(L=L.filter(I=>I!=y))},Ue=(i,g)=>be(this,null,function*(){return fetch(i,{method:"GET",headers:{"X-SessionID":g}}).then(F=>F.json()).then(F=>{var M;z=F.items,Q?(z.forEach(k=>{L.includes(k.id)||L.push(k.id)}),ca()):z.forEach(k=>{k.isFavorite=j(k.id)});const I=(M=e.platformFavorite(z))==null?void 0:M.length;v==="FAVORITES"&&(window.postMessage({type:"UpdateFavoritesCount",favoriteGamesLength:I}),Le(z))}).catch(F=>{console.error(F)})}),Le=i=>{if(!i)return;let g;g=(i==null?void 0:i.items)||i||[],g.length>0&&g.forEach(y=>{y.gameModel&&(y.gameModel.isFavorite=!0)}),t(42,Z.items=e.platformFavorite(g,Z.items),Z),t(42,Z.name="Favorites",Z),t(25,H=!1)},ua=i=>{Y+=1,t(36,$=!0),Y<=Me&&oe(i,rt,Y).then(g=>{t(28,A=g),A.games.items.length>C.length&&(t(29,C=A.games.items),C.forEach(y=>{y.isFavorite=j(y.id)})),t(36,$=!1)})},ga=i=>{const g=i!=null?i:[];if((g==null?void 0:g.length)===0)return"";let y="",F=999999999999,I;const M=new Date(Date.now());return g.forEach((k,O)=>{const R=new Date(k.schedules[0].startTime),T=new Date(k.schedules[0].endTime);le.differenceInMilliseconds(new Date(T),new Date(M))<F&&(F=le.differenceInMilliseconds(new Date(T),new Date(M)),I=O),le.isAfter(new Date(M),new Date(R))&&le.isBefore(new Date(M),new Date(T))&&(y=g[I].name)}),y},fa=i=>Ce!=="true"?void 0:Object.values(i!=null?i:{}).pop(),Ve=i=>{t(30,B=!1),window.postMessage({type:`${ye}`,itemId:i,showallpage:we},window.location.href)},ha=()=>{switch(v){case"FAVORITES":c&&m&&t(39,te=!0);break;case"MOSTPLAYED":q==="false"&&c&&m&&t(39,te=!1);break;case"LASTPLAYED":q==="false"&&c&&m&&t(39,te=!1);break;default:Oe(v,!0);break}},pa=()=>{document[he]?t(41,Ie="disconnect"):t(41,Ie="connect")},va=()=>{fe&&ne.forEach((i,g)=>{i&&(i.elems_index=g,ve.observe(i))})},ba=()=>{Na(r)};e.onDestroy(()=>{ve==null||ve.disconnect()}),e.onMount(()=>(window.addEventListener("visibilitychange",i=>pa()),window.addEventListener("message",Re,!1),()=>{window.removeEventListener("message",Re),window.removeEventListener("visibilitychange",Re)}));function wa(i){e.binding_callbacks[i?"unshift":"push"](()=>{ae=i,t(38,ae)})}const ya=i=>Ve(A.id);function ka(i,g){e.binding_callbacks[i?"unshift":"push"](()=>{ne[g]=i,t(24,ne)})}function Sa(i){e.binding_callbacks[i?"unshift":"push"](()=>{ee=i,t(37,ee)})}function Ca(i){e.binding_callbacks[i?"unshift":"push"](()=>{ae=i,t(38,ae)})}function Ga(i){e.binding_callbacks[i?"unshift":"push"](()=>{ee=i,t(37,ee)})}function Fa(i){e.binding_callbacks[i?"unshift":"push"](()=>{D=i,t(23,D)})}return n.$$set=i=>{"endpoint"in i&&t(3,o=i.endpoint),"datasource"in i&&t(4,l=i.datasource),"lang"in i&&t(5,r=i.lang),"session"in i&&t(6,m=i.session),"userid"in i&&t(7,c=i.userid),"favorites"in i&&t(8,u=i.favorites),"mbsource"in i&&t(9,f=i.mbsource),"clientstyling"in i&&t(10,h=i.clientstyling),"clientstylingurl"in i&&t(11,p=i.clientstylingurl),"translationurl"in i&&t(12,b=i.translationurl),"currency"in i&&t(13,S=i.currency),"categoryid"in i&&t(0,v=i.categoryid),"showgamename"in i&&t(14,_=i.showgamename),"livecasino"in i&&t(15,d=i.livecasino),"gamepagemodalurl"in i&&t(16,N=i.gamepagemodalurl),"integratedgameframedesktop"in i&&t(17,G=i.integratedgameframedesktop),"integratedgameframemobile"in i&&t(18,w=i.integratedgameframemobile),"casinomygames"in i&&t(19,q=i.casinomygames),"addfilterselector"in i&&t(1,ie=i.addfilterselector),"addsortingselector"in i&&t(2,re=i.addsortingselector),"filterbylogo"in i&&t(20,je=i.filterbylogo),"casinogamesgridslider"in i&&t(21,Te=i.casinogamesgridslider),"fetchviaevent"in i&&t(48,Q=i.fetchviaevent),"showallpage"in i&&t(49,we=i.showallpage),"actionevent"in i&&t(50,ye=i.actionevent),"displayedgamecount"in i&&t(51,me=i.displayedgamecount),"showallbuttongamescount"in i&&t(52,ce=i.showallbuttongamescount),"lobbyscreen"in i&&t(53,ke=i.lobbyscreen),"usesinglevendorfilter"in i&&t(22,de=i.usesinglevendorfilter),"visiblegames"in i&&t(54,Se=i.visiblegames),"requiredicon"in i&&t(55,Ce=i.requiredicon)},n.$$.update=()=>{n.$$.dirty[0]&32&&r&&ba(),n.$$.dirty[0]&57|n.$$.dirty[1]&3276800&&(Q==="false"||Q==="")&&o&&r&&v&&l&&me&&ce&&ma(v,me,ce),n.$$.dirty[0]&456&&u==="true"&&o&&m&&c&&Ae(m,c),n.$$.dirty[0]&16777216|n.$$.dirty[1]&33554432&&Ne&&ne&&va(),n.$$.dirty[0]&33&&r&&v&&ha(),n.$$.dirty[0]&4096&&b&&la(),n.$$.dirty[0]&8389632&&h&&D&&e.setClientStyling(D,h),n.$$.dirty[0]&8390656&&p&&D&&e.setClientStylingURL(D,p),n.$$.dirty[0]&8389120&&f&&D&&e.setStreamStyling(D,`${f}.Style`),n.$$.dirty[0]&4608&&f&&!b&&le.getStreamTranslations(`${f}.Translation`,oa,Ee)},[v,ie,re,o,l,r,m,c,u,f,h,p,b,S,_,d,N,G,w,q,je,Te,de,D,ne,H,Ge,U,A,C,B,V,ge,x,Fe,ze,$,ee,ae,te,se,Ie,Z,s,Pe,ga,fa,Ve,Q,we,ye,me,ce,ke,Se,Ce,Ne,wa,ya,ka,Sa,Ca,Ga,Fa]}class sa extends e.SvelteComponent{constructor(a){super(),e.init(this,a,mt,it,e.safe_not_equal,{endpoint:3,datasource:4,lang:5,session:6,userid:7,favorites:8,mbsource:9,clientstyling:10,clientstylingurl:11,translationurl:12,currency:13,categoryid:0,showgamename:14,livecasino:15,gamepagemodalurl:16,integratedgameframedesktop:17,integratedgameframemobile:18,casinomygames:19,addfilterselector:1,addsortingselector:2,filterbylogo:20,casinogamesgridslider:21,fetchviaevent:48,showallpage:49,actionevent:50,displayedgamecount:51,showallbuttongamescount:52,lobbyscreen:53,usesinglevendorfilter:22,visiblegames:54,requiredicon:55},Aa,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[3]}set endpoint(a){this.$$set({endpoint:a}),e.flush()}get datasource(){return this.$$.ctx[4]}set datasource(a){this.$$set({datasource:a}),e.flush()}get lang(){return this.$$.ctx[5]}set lang(a){this.$$set({lang:a}),e.flush()}get session(){return this.$$.ctx[6]}set session(a){this.$$set({session:a}),e.flush()}get userid(){return this.$$.ctx[7]}set userid(a){this.$$set({userid:a}),e.flush()}get favorites(){return this.$$.ctx[8]}set favorites(a){this.$$set({favorites:a}),e.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(a){this.$$set({mbsource:a}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(a){this.$$set({clientstyling:a}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(a){this.$$set({clientstylingurl:a}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(a){this.$$set({translationurl:a}),e.flush()}get currency(){return this.$$.ctx[13]}set currency(a){this.$$set({currency:a}),e.flush()}get categoryid(){return this.$$.ctx[0]}set categoryid(a){this.$$set({categoryid:a}),e.flush()}get showgamename(){return this.$$.ctx[14]}set showgamename(a){this.$$set({showgamename:a}),e.flush()}get livecasino(){return this.$$.ctx[15]}set livecasino(a){this.$$set({livecasino:a}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[16]}set gamepagemodalurl(a){this.$$set({gamepagemodalurl:a}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(a){this.$$set({integratedgameframedesktop:a}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[18]}set integratedgameframemobile(a){this.$$set({integratedgameframemobile:a}),e.flush()}get casinomygames(){return this.$$.ctx[19]}set casinomygames(a){this.$$set({casinomygames:a}),e.flush()}get addfilterselector(){return this.$$.ctx[1]}set addfilterselector(a){this.$$set({addfilterselector:a}),e.flush()}get addsortingselector(){return this.$$.ctx[2]}set addsortingselector(a){this.$$set({addsortingselector:a}),e.flush()}get filterbylogo(){return this.$$.ctx[20]}set filterbylogo(a){this.$$set({filterbylogo:a}),e.flush()}get casinogamesgridslider(){return this.$$.ctx[21]}set casinogamesgridslider(a){this.$$set({casinogamesgridslider:a}),e.flush()}get fetchviaevent(){return this.$$.ctx[48]}set fetchviaevent(a){this.$$set({fetchviaevent:a}),e.flush()}get showallpage(){return this.$$.ctx[49]}set showallpage(a){this.$$set({showallpage:a}),e.flush()}get actionevent(){return this.$$.ctx[50]}set actionevent(a){this.$$set({actionevent:a}),e.flush()}get displayedgamecount(){return this.$$.ctx[51]}set displayedgamecount(a){this.$$set({displayedgamecount:a}),e.flush()}get showallbuttongamescount(){return this.$$.ctx[52]}set showallbuttongamescount(a){this.$$set({showallbuttongamescount:a}),e.flush()}get lobbyscreen(){return this.$$.ctx[53]}set lobbyscreen(a){this.$$set({lobbyscreen:a}),e.flush()}get usesinglevendorfilter(){return this.$$.ctx[22]}set usesinglevendorfilter(a){this.$$set({usesinglevendorfilter:a}),e.flush()}get visiblegames(){return this.$$.ctx[54]}set visiblegames(a){this.$$set({visiblegames:a}),e.flush()}get requiredicon(){return this.$$.ctx[55]}set requiredicon(a){this.$$set({requiredicon:a}),e.flush()}}e.create_custom_element(sa,{endpoint:{},datasource:{},lang:{},session:{},userid:{},favorites:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},categoryid:{},showgamename:{},livecasino:{},gamepagemodalurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},casinomygames:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},casinogamesgridslider:{},fetchviaevent:{},showallpage:{},actionevent:{},displayedgamecount:{},showallbuttongamescount:{},lobbyscreen:{},usesinglevendorfilter:{},visiblegames:{},requiredicon:{}},[],[],!0);exports.default=sa;
|