@everymatrix/casino-page-nd 1.77.0 → 1.77.2
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/{CasinoCalendar-DWprq3Up.js → CasinoCalendar-CCAwhtBt.js} +88 -118
- package/components/{CasinoCalendar-dCsBOCh4.cjs → CasinoCalendar-DGE4j4zu.cjs} +4 -4
- package/components/{CasinoCalendar-mfSLB8Ze.js → CasinoCalendar-DYLVhtW-.js} +104 -134
- package/components/{CasinoCalendarDailyDetails-DvqRVPua.js → CasinoCalendarDailyDetails-DIUpad6c.js} +14 -14
- package/components/{CasinoCalendarDailyDetails-Cm0lICEn.js → CasinoCalendarDailyDetails-DRcIScHe.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-3C8wq3Kf.cjs → CasinoCalendarDailyDetails-wpUMBkOO.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-CZlYfyPq.js → CasinoCalendarDailyItem-CiQzqA52.js} +17 -17
- package/components/{CasinoCalendarDailyItem-C_FN646X.cjs → CasinoCalendarDailyItem-D8F2frZb.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-CzzCu3b9.js → CasinoCalendarDailyItem-NLjE5GF9.js} +2 -2
- package/components/{CasinoCollectionsProviders-LcGduY03.js → CasinoCollectionsProviders-ClZkWf5Z.js} +1 -1
- package/components/{CasinoCollectionsProviders-qWvxMAY4.cjs → CasinoCollectionsProviders-CuOrtQzj.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-CWyeNZSU.js → CasinoCollectionsProviders-YW2-uRzZ.js} +38 -38
- package/components/CasinoFavoritesSectionNd-CAWBrQc_.cjs +1 -0
- package/components/{CasinoFavoritesSectionNd-BO5Gv4XQ.js → CasinoFavoritesSectionNd-CjYeem_e.js} +40 -55
- package/components/{CasinoFavoritesSectionNd-D7PT7RRj.js → CasinoFavoritesSectionNd-Ct_f4Jki.js} +37 -52
- package/components/{CasinoFilter-BxbFkTPB.js → CasinoFilter-Bo3TdoaX.js} +32 -32
- package/components/{CasinoFilter-DaDCgGyI.cjs → CasinoFilter-Cr4glniJ.cjs} +1 -1
- package/components/{CasinoFilter-CKKGIb12.js → CasinoFilter-D_yW5PlW.js} +1 -1
- package/components/{CasinoGameThumbnailNd-CmRsAJDi.cjs → CasinoGameThumbnailNd-CYNBtn7j.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-BQ1wqZ-e.js → CasinoGameThumbnailNd-Cv029OfD.js} +2 -2
- package/components/{CasinoGameThumbnailNd-Dcordt0f.js → CasinoGameThumbnailNd-g9ou3sw_.js} +8 -8
- package/components/{CasinoGamesCategorySectionNd-CKAJcNzR.js → CasinoGamesCategorySectionNd-CAn4Ecz4.js} +316 -361
- package/components/{CasinoGamesCategorySectionNd-BGZ-ePsT.js → CasinoGamesCategorySectionNd-DHm9cDJj.js} +381 -426
- package/components/CasinoGamesCategorySectionNd-j1l2VX7q.cjs +1 -0
- package/components/{CasinoJackpotBanner-BWmZP7BL.js → CasinoJackpotBanner-DYhiJaNA.js} +15 -15
- package/components/{CasinoJackpotBanner-DqIZizFB.js → CasinoJackpotBanner-DwIpkmzr.js} +2 -2
- package/components/{CasinoJackpotBanner-B96gNAcA.cjs → CasinoJackpotBanner-EBw-EtsK.cjs} +1 -1
- package/components/CasinoLastPlayedSectionNd-B2RSFJjd.cjs +1 -0
- package/components/{CasinoLastPlayedSectionNd-D5fz5x-v.js → CasinoLastPlayedSectionNd-D42ogn9t.js} +25 -25
- package/components/{CasinoLastPlayedSectionNd-BmLauasH.js → CasinoLastPlayedSectionNd-Vhkkc7I4.js} +2 -2
- package/components/{CasinoMostPlayedSectionNd-CDSQQPLi.js → CasinoMostPlayedSectionNd-BT5jfPpk.js} +2 -2
- package/components/CasinoMostPlayedSectionNd-CToSf0Sr.cjs +1 -0
- package/components/{CasinoMostPlayedSectionNd-DxpDBvyi.js → CasinoMostPlayedSectionNd-DFdpxzZ1.js} +30 -30
- package/components/{CasinoMyGamesNd-B0RMhNOQ.js → CasinoMyGamesNd-4ZtCXVu-.js} +459 -504
- package/components/{CasinoMyGamesNd-DyvlKH0N.js → CasinoMyGamesNd-DJ0-Zbkh.js} +458 -503
- package/components/CasinoMyGamesNd-Da3qtKMm.cjs +1 -0
- package/components/{CasinoPageNd-CdikoQYm.js → CasinoPageNd-CkcXDzk7.js} +1161 -1222
- package/components/{CasinoPageNd-BBnA0Inr.js → CasinoPageNd-DEBqN_jK.js} +1075 -1136
- package/components/CasinoPageNd-DbQWwtfX.cjs +1 -0
- package/components/{CasinoRandomGame-_9lAMA2P.js → CasinoRandomGame-CzpjUn3x.js} +26 -26
- package/components/{CasinoRandomGame-BXQZCC2U.cjs → CasinoRandomGame-UdXXycft.cjs} +1 -1
- package/components/{CasinoRandomGame-DgwvXr3L.js → CasinoRandomGame-wYmzje9u.js} +14 -14
- package/components/{CasinoSearchNd-DQ2c9d3i.js → CasinoSearchNd-BKFkZrKZ.js} +23 -23
- package/components/CasinoSearchNd-BL7_QRmx.cjs +1 -0
- package/components/{CasinoSearchNd-C7QNS9Ai.js → CasinoSearchNd-DedlNtWh.js} +3 -3
- package/components/{CasinoSort-D187w5tA.js → CasinoSort-CDn4VxUk.js} +1 -1
- package/components/{CasinoSort-BNREfqiL.js → CasinoSort-Cehdm4Cm.js} +36 -36
- package/components/{CasinoSort-CKm8hNbY.cjs → CasinoSort-NJzenKP8.cjs} +1 -1
- package/components/CasinoWinners-DiN0im-f.cjs +1 -0
- package/components/{CasinoWinners-CfPd4kzY.js → CasinoWinners-H0nWE_Qn.js} +238 -253
- package/components/{CasinoWinners-C4hnivSF.js → CasinoWinners-b_1VWnj4.js} +168 -183
- package/components/{GeneralAnimationLoading-DRvkLtzi.cjs → GeneralAnimationLoading-Cfcv7UAg.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CuOjTz53.js → GeneralAnimationLoading-Cr0HPeRs.js} +1 -1
- package/components/{GeneralAnimationLoading-DnAbjVes.js → GeneralAnimationLoading-D6ffp_TH.js} +4 -4
- 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-calendar-6neds2oy.js +16 -0
- package/lazy/casino-calendar-Cb4Zdg3u.cjs +1 -0
- package/lazy/casino-calendar-Dr_AZSGB.js +16 -0
- package/lazy/casino-calendar-daily-details-C53XYyqp.js +16 -0
- package/lazy/casino-calendar-daily-details-s-luglQY.js +16 -0
- package/lazy/casino-calendar-daily-details-zifx6_iS.cjs +1 -0
- package/lazy/casino-calendar-daily-item-BVLvWZfF.js +16 -0
- package/lazy/casino-calendar-daily-item-Bl20cwaJ.cjs +1 -0
- package/lazy/casino-calendar-daily-item-lmNWLkSh.js +16 -0
- package/lazy/casino-collections-providers-BILnf_UY.js +16 -0
- package/lazy/casino-collections-providers-CZQFi5vk.js +16 -0
- package/lazy/casino-collections-providers-WCc5YLEx.cjs +1 -0
- package/lazy/casino-favorites-section-nd-BLZdSr15.js +16 -0
- package/lazy/casino-favorites-section-nd-CZ-zzDox.js +16 -0
- package/lazy/casino-favorites-section-nd-Dw-PusaS.cjs +1 -0
- package/lazy/casino-filter-C-pmSjXr.js +16 -0
- package/lazy/casino-filter-C2uu2OCM.cjs +1 -0
- package/lazy/casino-filter-Cj7_L9pL.js +16 -0
- package/lazy/casino-game-thumbnail-nd-Bfq5MHXu.cjs +1 -0
- package/lazy/casino-game-thumbnail-nd-CwWp4s-T.js +16 -0
- package/lazy/casino-game-thumbnail-nd-DOPQRFvD.js +16 -0
- package/lazy/casino-games-category-section-nd-D6bEuvm5.cjs +1 -0
- package/lazy/casino-games-category-section-nd-DSMqYaGz.js +16 -0
- package/lazy/casino-games-category-section-nd-DWQClofk.js +16 -0
- package/lazy/casino-jackpot-banner-DEzAKuNz.cjs +1 -0
- package/lazy/casino-jackpot-banner-DV01Njxa.js +16 -0
- package/lazy/casino-jackpot-banner-DehKtGHo.js +16 -0
- package/lazy/casino-last-played-section-nd-5wBhiaI9.cjs +1 -0
- package/lazy/casino-last-played-section-nd-DelAIRC0.js +16 -0
- package/lazy/casino-last-played-section-nd-DjIQl88y.js +16 -0
- package/lazy/casino-most-played-section-nd-BhEgwb0a.cjs +1 -0
- package/lazy/casino-most-played-section-nd-CIYfLdSP.js +16 -0
- package/lazy/casino-most-played-section-nd-DvH4BV0h.js +16 -0
- package/lazy/casino-my-games-nd-DNP31Ydi.js +16 -0
- package/lazy/casino-my-games-nd-DjKhKRFX.js +16 -0
- package/lazy/casino-my-games-nd-JngcaX75.cjs +1 -0
- package/lazy/casino-play-random-game--i81UNg_.js +566 -0
- package/lazy/casino-play-random-game-Co-Rjcnv.cjs +1 -0
- package/lazy/casino-play-random-game-DdMyXzTm.js +582 -0
- package/lazy/casino-random-game-CrCiwriJ.js +16 -0
- package/lazy/casino-random-game-Cx_s3XrC.cjs +1 -0
- package/lazy/casino-random-game-w7BF0cdQ.js +16 -0
- package/lazy/casino-search-nd-B_ffUyl7.cjs +1 -0
- package/lazy/casino-search-nd-C9BJPr43.js +16 -0
- package/lazy/casino-search-nd-CwQvpchn.js +16 -0
- package/lazy/casino-sort-C8jnh3qL.cjs +1 -0
- package/lazy/casino-sort-CAbAJiMw.js +16 -0
- package/lazy/casino-sort-DvKa_qwq.js +16 -0
- package/lazy/casino-winners-B_gD0IFb.js +16 -0
- package/lazy/casino-winners-C7YkitCv.cjs +1 -0
- package/lazy/casino-winners-SrWXp94E.js +16 -0
- package/lazy/general-animation-loading-B8m3Kuyi.js +16 -0
- package/lazy/general-animation-loading-BaCSgc29.cjs +1 -0
- package/lazy/general-animation-loading-Dp2OSO62.js +16 -0
- package/lazy/ui-image-BAx5XP4T.js +554 -0
- package/lazy/ui-image-q7RKTAnB.js +538 -0
- package/lazy/ui-image-xAOmP7KP.cjs +1 -0
- package/package.json +3 -2
- package/stencil/casino-play-random-game-B5hVksxr.cjs +1 -0
- package/stencil/casino-play-random-game-CLaJThDY.js +11 -0
- package/stencil/casino-play-random-game-__TIlMF6.js +29 -0
- package/stencil/casino-play-random-game_3-CSEG011u.cjs +432 -0
- package/stencil/{casino-play-random-game_2-Cr07t-U3.js → casino-play-random-game_3-Ys8LRBD3.js} +156 -67
- package/stencil/{casino-play-random-game_2-rMFQqRp8.js → casino-play-random-game_3-jap_cJQa.js} +156 -67
- package/stencil/ui-image-2ff23cd5-B9-b3FKW.js +86 -0
- package/stencil/ui-image-2ff23cd5-BvSV3FQg.cjs +1 -0
- package/stencil/ui-image-2ff23cd5-a8pPlqaE.js +86 -0
- package/stencil/ui-image-BrNSiahR.js +25 -0
- package/stencil/ui-image-DFezoHJb.js +7 -0
- package/stencil/ui-image-eIUrNbW3.cjs +1 -0
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BcIdXuZn.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-DEzpm8ng.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-v1kguPBp.js} +2 -2
- package/components/CasinoFavoritesSectionNd-BIfrHNCv.cjs +0 -1
- package/components/CasinoGamesCategorySectionNd-BWwBc-gL.cjs +0 -1
- package/components/CasinoLastPlayedSectionNd-BgOVZqPi.cjs +0 -1
- package/components/CasinoMostPlayedSectionNd-Scrl1-r0.cjs +0 -1
- package/components/CasinoMyGamesNd-C5_wy8U9.cjs +0 -1
- package/components/CasinoPageNd-C6XEbbie.cjs +0 -1
- package/components/CasinoSearchNd-C893ijmJ.cjs +0 -1
- package/components/CasinoWinners-433auKih.cjs +0 -1
- package/stencil/casino-play-random-game-BkPr2CWQ.js +0 -7
- package/stencil/casino-play-random-game-CIgnME2D.cjs +0 -1
- package/stencil/casino-play-random-game-CNkwfnjq.js +0 -25
- package/stencil/casino-play-random-game_2-BJVoDn1D.cjs +0 -432
- package/stencil/index-328e660d-Cex2hzsG.js +0 -576
- package/stencil/index-328e660d-Dti9H7_B.js +0 -560
- package/stencil/index-328e660d-MaaYKutI.cjs +0 -1
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
- package/stencil/ui-image-5q4WODJu.cjs +0 -1
- package/stencil/ui-image-CfZf6HBq.js +0 -7
- package/stencil/ui-image-CtfMdADr.js +0 -25
- package/stencil/ui-image-b7b48fe5-ByRuJtdE.js +0 -39
- package/stencil/ui-image-b7b48fe5-D6iig_uN.js +0 -39
- package/stencil/ui-image-b7b48fe5-DG83WzAo.cjs +0 -1
package/stencil/{casino-play-random-game_2-Cr07t-U3.js → casino-play-random-game_3-Ys8LRBD3.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
const
|
|
1
|
+
import { r as d, c as f, h as t, g, H as l } from "../lazy/casino-play-random-game-DdMyXzTm.js";
|
|
2
|
+
const w = () => {
|
|
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
|
-
}, y = "en",
|
|
5
|
+
}, y = "en", s = {
|
|
6
6
|
en: {
|
|
7
7
|
error: "Error",
|
|
8
8
|
randomGameLoading: "Loading ...",
|
|
@@ -41,46 +41,46 @@ const f = () => {
|
|
|
41
41
|
tr: {
|
|
42
42
|
error: "Hata",
|
|
43
43
|
randomGameLoading: "Yükleniyor...",
|
|
44
|
-
playRandomGame: "
|
|
44
|
+
playRandomGame: "Rastgele Bir Oyun Oyna",
|
|
45
45
|
playNowRandomGame: "Şimdi Oyna",
|
|
46
46
|
spinRandomGame: "DEĞİŞTİR"
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, m = (e) => new Promise((n) => {
|
|
49
49
|
fetch(e).then((i) => i.json()).then((i) => {
|
|
50
50
|
Object.keys(i).forEach((a) => {
|
|
51
|
-
|
|
52
|
-
for (let
|
|
53
|
-
|
|
54
|
-
}),
|
|
51
|
+
s[a] || (s[a] = {});
|
|
52
|
+
for (let r in i[a])
|
|
53
|
+
s[a][r] = i[a][r];
|
|
54
|
+
}), n(!0);
|
|
55
55
|
});
|
|
56
|
-
}),
|
|
57
|
-
const i =
|
|
58
|
-
return
|
|
56
|
+
}), o = (e, n) => {
|
|
57
|
+
const i = n;
|
|
58
|
+
return s[i !== void 0 && i in s ? i : y][e];
|
|
59
59
|
};
|
|
60
|
-
function
|
|
60
|
+
function h(e, n) {
|
|
61
61
|
if (e) {
|
|
62
62
|
const i = document.createElement("style");
|
|
63
|
-
i.innerHTML =
|
|
63
|
+
i.innerHTML = n, e.appendChild(i);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const i = new URL(
|
|
66
|
+
function c(e, n) {
|
|
67
|
+
const i = new URL(n);
|
|
68
68
|
fetch(i.href).then((a) => a.text()).then((a) => {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const r = document.createElement("style");
|
|
70
|
+
r.innerHTML = a, e && e.appendChild(r);
|
|
71
71
|
}).catch((a) => {
|
|
72
72
|
console.error("There was an error while trying to load client styling from URL", a);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function b(e, n, i) {
|
|
76
76
|
if (window.emMessageBus) {
|
|
77
77
|
const a = document.createElement("style");
|
|
78
|
-
window.emMessageBus.subscribe(
|
|
79
|
-
a.innerHTML =
|
|
78
|
+
window.emMessageBus.subscribe(n, (r) => {
|
|
79
|
+
a.innerHTML = r, e && e.appendChild(a);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const x = `:host {
|
|
84
84
|
display: block;
|
|
85
85
|
font-family: inherit;
|
|
86
86
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -457,50 +457,56 @@ const b = `:host {
|
|
|
457
457
|
width: 70px;
|
|
458
458
|
height: 85px;
|
|
459
459
|
}
|
|
460
|
-
}`,
|
|
460
|
+
}`, v = x, k = class {
|
|
461
461
|
constructor(e) {
|
|
462
|
-
|
|
463
|
-
let i =
|
|
462
|
+
d(this, e), this.dataLoaded = f(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (n) => {
|
|
463
|
+
let i = n.length, a;
|
|
464
464
|
for (; i !== 0; )
|
|
465
|
-
a = Math.floor(Math.random() * i), i--, [
|
|
466
|
-
return
|
|
467
|
-
}, 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;
|
|
465
|
+
a = Math.floor(Math.random() * i), i--, [n[i], n[a]] = [n[a], n[i]];
|
|
466
|
+
return n;
|
|
467
|
+
}, 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, this.imageLoadingType = "lazy", this.detectDistance = "200px";
|
|
468
468
|
}
|
|
469
|
-
watchEndpoint(e,
|
|
470
|
-
e && e !=
|
|
469
|
+
watchEndpoint(e, n) {
|
|
470
|
+
e && e != n && this.endpoint && this.fetchGameList();
|
|
471
471
|
}
|
|
472
472
|
handleNewTranslations() {
|
|
473
|
-
this.isLoading = !0,
|
|
473
|
+
this.isLoading = !0, m(this.translationUrl).then(() => {
|
|
474
474
|
this.isLoading = !1;
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
477
|
handleIsIconVisible() {
|
|
478
478
|
this.iconVisibility = this.iconVisible === "true";
|
|
479
479
|
}
|
|
480
|
-
handleClientStylingChange(e,
|
|
481
|
-
e !=
|
|
480
|
+
handleClientStylingChange(e, n) {
|
|
481
|
+
e != n && h(this.stylingContainer, this.clientStyling);
|
|
482
482
|
}
|
|
483
|
-
handleClientStylingChangeURL(e,
|
|
484
|
-
e !=
|
|
483
|
+
handleClientStylingChangeURL(e, n) {
|
|
484
|
+
e != n && this.clientStylingUrl && c(this.stylingContainer, this.clientStylingUrl);
|
|
485
485
|
}
|
|
486
486
|
connectedCallback() {
|
|
487
487
|
this.handleIsIconVisible();
|
|
488
488
|
}
|
|
489
489
|
componentWillLoad() {
|
|
490
|
-
if (this.translationUrl.length > 2 &&
|
|
490
|
+
if (this.translationUrl.length > 2 && m(this.translationUrl), this.endpoint && this.language && this.datasource)
|
|
491
491
|
return this.fetchGameList();
|
|
492
492
|
}
|
|
493
493
|
componentDidLoad() {
|
|
494
|
-
|
|
494
|
+
"IntersectionObserver" in window && (this.io = new IntersectionObserver((e) => {
|
|
495
|
+
e.forEach((n) => {
|
|
496
|
+
var i;
|
|
497
|
+
n.isIntersecting && (this.imageLoadingType = "eager", (i = this.io) === null || i === void 0 || i.unobserve(n.target));
|
|
498
|
+
});
|
|
499
|
+
}, { root: null, rootMargin: this.detectDistance }), this.io.observe(this.host)), window.emMessageBus != null ? b(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && h(this.stylingContainer, this.clientStyling), this.clientStylingUrl && c(this.stylingContainer, this.clientStylingUrl));
|
|
495
500
|
}
|
|
496
501
|
disconnectedCallback() {
|
|
497
|
-
|
|
502
|
+
var e;
|
|
503
|
+
(e = this.io) === null || e === void 0 || e.disconnect(), this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
498
504
|
}
|
|
499
505
|
fetchGameList() {
|
|
500
506
|
let e = new URL(`${this.endpoint}/v1/casino/games`);
|
|
501
|
-
return e.searchParams.append("platform",
|
|
507
|
+
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((n, i) => {
|
|
502
508
|
this.isLoading = !0, fetch(e.href).then((a) => a.json()).then((a) => {
|
|
503
|
-
this.gamesToShow = this.setUpGames(a == null ? void 0 : a.items),
|
|
509
|
+
this.gamesToShow = this.setUpGames(a == null ? void 0 : a.items), n(!0);
|
|
504
510
|
}).catch((a) => {
|
|
505
511
|
console.error(a), this.hasErrors = !0, i(a);
|
|
506
512
|
}).finally(() => {
|
|
@@ -511,8 +517,8 @@ const b = `:host {
|
|
|
511
517
|
});
|
|
512
518
|
}
|
|
513
519
|
setUpGames(e) {
|
|
514
|
-
const
|
|
515
|
-
return
|
|
520
|
+
const n = this.shuffle(e).slice(0, 40);
|
|
521
|
+
return n.concat(n);
|
|
516
522
|
}
|
|
517
523
|
selectRandomGame() {
|
|
518
524
|
const e = this.gamesToShow.length / 2;
|
|
@@ -530,18 +536,18 @@ const b = `:host {
|
|
|
530
536
|
}
|
|
531
537
|
animateGames() {
|
|
532
538
|
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();
|
|
533
|
-
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),
|
|
539
|
+
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), i = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, r = (i + n) * this.selectedGameIndex + // Width of game cards up to the selected
|
|
534
540
|
i / 2 - // Additional half card width to center to the selected game
|
|
535
|
-
a / 2,
|
|
541
|
+
a / 2, u = [
|
|
536
542
|
{ transform: "translateX(0px)", scale: 1 },
|
|
537
543
|
{ scale: 0.75 },
|
|
538
|
-
{ transform: `translateX(-${
|
|
539
|
-
],
|
|
544
|
+
{ transform: `translateX(-${r}px)`, scale: 1 }
|
|
545
|
+
], p = {
|
|
540
546
|
duration: 3e3,
|
|
541
547
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
542
548
|
fill: "forwards"
|
|
543
549
|
};
|
|
544
|
-
this.animation = this.gameContainer.animate(
|
|
550
|
+
this.animation = this.gameContainer.animate(u, p), this.animation.onfinish = () => {
|
|
545
551
|
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
546
552
|
};
|
|
547
553
|
}
|
|
@@ -556,17 +562,17 @@ const b = `:host {
|
|
|
556
562
|
});
|
|
557
563
|
}
|
|
558
564
|
renderGameDetails() {
|
|
559
|
-
return
|
|
565
|
+
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() }, o("spinRandomGame", this.language)), !this.launchByGameCard && t("button", { class: "RandomButton On", onClick: () => this.playGame() }, o("playNowRandomGame", this.language))));
|
|
560
566
|
}
|
|
561
567
|
renderSkeleton() {
|
|
562
|
-
const e = Array.from({ length: 5 }, (
|
|
563
|
-
return
|
|
568
|
+
const e = Array.from({ length: 5 }, (n, i) => t("div", { class: "RandomGameCard", key: i }, t("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
|
|
569
|
+
return t("div", { class: "RandomGameWrapper" }, t("div", { class: "GameContainerGradient" }), t("div", { class: "GamesContainer" }, e));
|
|
564
570
|
}
|
|
565
571
|
render() {
|
|
566
|
-
return
|
|
572
|
+
return t("div", { key: "29fe3535d63177e6d1f30a757bf17b70d89ce386", ref: (e) => this.stylingContainer = e }, this.hasErrors ? t("div", { class: "RandomGameError" }, t("div", { class: "Title" }, o("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("ui-image", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name, loading: this.imageLoadingType }), 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() }, o("playRandomGame", this.language))))));
|
|
567
573
|
}
|
|
568
574
|
get host() {
|
|
569
|
-
return
|
|
575
|
+
return g(this);
|
|
570
576
|
}
|
|
571
577
|
static get watchers() {
|
|
572
578
|
return {
|
|
@@ -580,10 +586,92 @@ const b = `:host {
|
|
|
580
586
|
};
|
|
581
587
|
}
|
|
582
588
|
};
|
|
583
|
-
|
|
584
|
-
const
|
|
589
|
+
k.style = v;
|
|
590
|
+
const G = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", R = G, S = class {
|
|
591
|
+
constructor(e) {
|
|
592
|
+
d(this, e), this.hasStarted = !1, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
593
|
+
}
|
|
594
|
+
onSrcChange() {
|
|
595
|
+
this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
596
|
+
}
|
|
597
|
+
onLoadingChange(e, n) {
|
|
598
|
+
e !== n && (this.cleanupObserver(), this.detachImgHandlers(), e === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
|
|
599
|
+
}
|
|
600
|
+
componentDidLoad() {
|
|
601
|
+
this.loading !== "eager" && this.setupObserver();
|
|
602
|
+
}
|
|
603
|
+
disconnectedCallback() {
|
|
604
|
+
this.cleanupObserver(), this.detachImgHandlers();
|
|
605
|
+
}
|
|
606
|
+
canUseIO() {
|
|
607
|
+
return typeof window != "undefined" && "IntersectionObserver" in window;
|
|
608
|
+
}
|
|
609
|
+
setupObserver() {
|
|
610
|
+
if (this.loading !== "eager") {
|
|
611
|
+
if (!this.canUseIO()) {
|
|
612
|
+
this.beginLoad();
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
this.io = new IntersectionObserver((e) => {
|
|
616
|
+
var n;
|
|
617
|
+
for (const i of e)
|
|
618
|
+
if (i.isIntersecting) {
|
|
619
|
+
this.beginLoad(), (n = this.io) === null || n === void 0 || n.unobserve(i.target), this.cleanupObserver();
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
cleanupObserver() {
|
|
626
|
+
var e;
|
|
627
|
+
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
|
628
|
+
}
|
|
629
|
+
wireOnceHandlers() {
|
|
630
|
+
this.imgEl && (this.detachImgHandlers(), this._onLoad = () => {
|
|
631
|
+
var e;
|
|
632
|
+
this.currentSrc && (!((e = this.imgEl) === null || e === void 0) && e.currentSrc) && !this.imgEl.currentSrc.includes(this.currentSrc) || (this.imgLoaded = !0);
|
|
633
|
+
}, this._onError = () => {
|
|
634
|
+
console.error("Load image failed:", this.src);
|
|
635
|
+
}, this.imgEl.addEventListener("load", this._onLoad, { once: !0 }), this.imgEl.addEventListener("error", this._onError, { once: !0 }));
|
|
636
|
+
}
|
|
637
|
+
detachImgHandlers() {
|
|
638
|
+
this.imgEl && (this._onLoad && this.imgEl.removeEventListener("load", this._onLoad), this._onError && this.imgEl.removeEventListener("error", this._onError), this._onLoad = void 0, this._onError = void 0);
|
|
639
|
+
}
|
|
640
|
+
beginLoad() {
|
|
641
|
+
if (!this.hasStarted && this.imgEl && this.src) {
|
|
642
|
+
if (this.hasStarted = !0, this.wireOnceHandlers(), this.imgEl.complete && this.imgEl.naturalWidth > 0) {
|
|
643
|
+
this.imgLoaded = !0;
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
this.currentSrc = this.src, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
get showSkeleton() {
|
|
650
|
+
return this.loading !== "eager" && !this.imgLoaded;
|
|
651
|
+
}
|
|
652
|
+
renderEager() {
|
|
653
|
+
return t(l, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
|
|
654
|
+
}
|
|
655
|
+
renderLazy() {
|
|
656
|
+
return t(l, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (e) => this.imgEl = e, src: void 0, decoding: "async", style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
657
|
+
}
|
|
658
|
+
render() {
|
|
659
|
+
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
660
|
+
}
|
|
661
|
+
get el() {
|
|
662
|
+
return g(this);
|
|
663
|
+
}
|
|
664
|
+
static get watchers() {
|
|
665
|
+
return {
|
|
666
|
+
src: ["onSrcChange"],
|
|
667
|
+
loading: ["onLoadingChange"]
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
S.style = R;
|
|
672
|
+
const C = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}", L = C, E = class {
|
|
585
673
|
constructor(e) {
|
|
586
|
-
|
|
674
|
+
d(this, e), this.stylingValue = {
|
|
587
675
|
width: this.handleStylingProps(this.width),
|
|
588
676
|
height: this.handleStylingProps(this.height),
|
|
589
677
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
@@ -594,8 +682,8 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
594
682
|
size: this.handleStylingProps(this.size)
|
|
595
683
|
}, 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%";
|
|
596
684
|
}
|
|
597
|
-
handleStructureChange(e,
|
|
598
|
-
|
|
685
|
+
handleStructureChange(e, n) {
|
|
686
|
+
n !== e && this.handleStructure(e);
|
|
599
687
|
}
|
|
600
688
|
handleStylingProps(e) {
|
|
601
689
|
switch (typeof e) {
|
|
@@ -628,22 +716,22 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
628
716
|
}
|
|
629
717
|
}
|
|
630
718
|
renderLogo() {
|
|
631
|
-
return
|
|
719
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
632
720
|
}
|
|
633
721
|
renderImage() {
|
|
634
|
-
return
|
|
722
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
635
723
|
}
|
|
636
724
|
renderTitle() {
|
|
637
|
-
return
|
|
725
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
638
726
|
}
|
|
639
727
|
renderText() {
|
|
640
|
-
return
|
|
728
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, n) => t("div", { key: n, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
641
729
|
}
|
|
642
730
|
renderRectangle() {
|
|
643
|
-
return
|
|
731
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
644
732
|
}
|
|
645
733
|
renderCircle() {
|
|
646
|
-
return
|
|
734
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
647
735
|
}
|
|
648
736
|
render() {
|
|
649
737
|
let e = "";
|
|
@@ -723,7 +811,7 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
723
811
|
default:
|
|
724
812
|
e = "";
|
|
725
813
|
}
|
|
726
|
-
return
|
|
814
|
+
return t(l, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
727
815
|
}
|
|
728
816
|
static get watchers() {
|
|
729
817
|
return {
|
|
@@ -731,8 +819,9 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
731
819
|
};
|
|
732
820
|
}
|
|
733
821
|
};
|
|
734
|
-
|
|
822
|
+
E.style = L;
|
|
735
823
|
export {
|
|
736
|
-
|
|
737
|
-
S as
|
|
824
|
+
k as casino_play_random_game,
|
|
825
|
+
S as ui_image,
|
|
826
|
+
E as ui_skeleton
|
|
738
827
|
};
|