@everymatrix/casino-page-nd 1.77.13 → 1.77.15
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-Bb4l6GHP.cjs → CasinoCalendar-CMBPy1pJ.cjs} +1 -1
- package/components/{CasinoCalendar-DEsVuhHv.js → CasinoCalendar-CVV5rh8D.js} +2 -2
- package/components/{CasinoCalendar-C-Gc1XNl.js → CasinoCalendar-Dvq0s7Wu.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-DC-cdq2S.js → CasinoCalendarDailyDetails-Ce8DWjpV.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-BoCRu-0B.cjs → CasinoCalendarDailyDetails-DexFgNfS.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-Bshm9kom.js → CasinoCalendarDailyDetails-DoK91rza.js} +2 -2
- package/components/{CasinoCalendarDailyItem-C1rbVbBh.js → CasinoCalendarDailyItem-D15k2m1h.js} +2 -2
- package/components/{CasinoCalendarDailyItem-C8BZA5cO.cjs → CasinoCalendarDailyItem-DJzXrKrB.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-DRr0UMFE.js → CasinoCalendarDailyItem-DYvCgZu8.js} +2 -2
- package/components/{CasinoCollectionsProviders-Cm4t95De.js → CasinoCollectionsProviders-CME6A3fn.js} +1 -1
- package/components/{CasinoCollectionsProviders-D368qYjr.cjs → CasinoCollectionsProviders-DBJEOSOQ.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-WotINE7k.js → CasinoCollectionsProviders-m_2jJqD9.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-Bmc8bU-z.cjs → CasinoFavoritesSectionNd-DYqPUw83.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-C6-yWARI.js → CasinoFavoritesSectionNd-ItqNIJiO.js} +2 -2
- package/components/{CasinoFavoritesSectionNd-BHQmqNMq.js → CasinoFavoritesSectionNd-j_x4BbVA.js} +2 -2
- package/components/{CasinoFilter-BLnnmGTk.js → CasinoFilter-B9UcHS3B.js} +1 -1
- package/components/{CasinoFilter-BwMaB48o.js → CasinoFilter-BM39VdLR.js} +1 -1
- package/components/{CasinoFilter-BuWKwvsk.cjs → CasinoFilter-fiig0zZL.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-B7QZJgR3.js → CasinoGameThumbnailNd-C7lIhRfO.js} +2 -2
- package/components/{CasinoGameThumbnailNd-CRMtNXgh.cjs → CasinoGameThumbnailNd-D68XOPSp.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-DUu2pPcA.js → CasinoGameThumbnailNd-D7d7Ut2W.js} +2 -2
- package/components/{CasinoGamesCategorySectionNd-Cvc4BjLD.cjs → CasinoGamesCategorySectionNd-BCSPbWos.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-BakkXDI1.js → CasinoGamesCategorySectionNd-DDxD9nUf.js} +5 -5
- package/components/{CasinoGamesCategorySectionNd-D6Iusrpm.js → CasinoGamesCategorySectionNd-DMwVq9fp.js} +5 -5
- package/components/{CasinoJackpotBanner-CxWwqwA3.cjs → CasinoJackpotBanner-BftiHhI-.cjs} +1 -1
- package/components/{CasinoJackpotBanner-C4sBhHV3.js → CasinoJackpotBanner-Ct4mMod2.js} +2 -2
- package/components/{CasinoJackpotBanner-CaCQ3A3V.js → CasinoJackpotBanner-OnXeUt0G.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-BO_cHPi2.js → CasinoLastPlayedSectionNd-BHODuapK.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-BOR2Eq4i.js → CasinoLastPlayedSectionNd-C3GzrdJm.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-CjJkmOSu.cjs → CasinoLastPlayedSectionNd-CeZMPmWd.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-b29WKWdf.js → CasinoMostPlayedSectionNd-D-baP__d.js} +2 -2
- package/components/{CasinoMostPlayedSectionNd-DxGy0grX.cjs → CasinoMostPlayedSectionNd-D4e0bYIb.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-Ccjm8g_T.js → CasinoMostPlayedSectionNd-Dd_xRXHP.js} +2 -2
- package/components/{CasinoMyGamesNd-CtlFOZ-P.js → CasinoMyGamesNd-Cx16hjrw.js} +4 -4
- package/components/{CasinoMyGamesNd-ml5JKzhP.cjs → CasinoMyGamesNd-DP1Glj8A.cjs} +1 -1
- package/components/{CasinoMyGamesNd-BvWBib45.js → CasinoMyGamesNd-DtO8BLgo.js} +4 -4
- package/components/{CasinoPageNd-P616JQl8.cjs → CasinoPageNd-Bmo2CfLy.cjs} +1 -1
- package/components/{CasinoPageNd-nu9HqX-v.js → CasinoPageNd-CDCuJS2u.js} +11 -11
- package/components/{CasinoPageNd-CFfTnbWK.js → CasinoPageNd-CR4OQ5Yf.js} +11 -11
- package/components/{CasinoRandomGame-nW4hfNCL.cjs → CasinoRandomGame-CtrV5Zq9.cjs} +1 -1
- package/components/{CasinoRandomGame-CROz9-qb.js → CasinoRandomGame-D9uI-0HJ.js} +1 -1
- package/components/{CasinoRandomGame-iLAl8PT1.js → CasinoRandomGame-DfVbawNf.js} +1 -1
- package/components/{CasinoSearchNd-JCbnWDoT.js → CasinoSearchNd-C7dhVLGA.js} +3 -3
- package/components/{CasinoSearchNd-U73g-0SV.js → CasinoSearchNd-DFkU61c3.js} +3 -3
- package/components/{CasinoSearchNd-D3Rlb42i.cjs → CasinoSearchNd-uyln5p8b.cjs} +1 -1
- package/components/{CasinoSort-Ce1vDL8z.cjs → CasinoSort-BsXOeI0C.cjs} +1 -1
- package/components/{CasinoSort-DOkmQroL.js → CasinoSort-CTN72s-D.js} +1 -1
- package/components/{CasinoSort-CTlEjsW6.js → CasinoSort-V3aduIWF.js} +1 -1
- package/components/{CasinoWinners-C_u9lTEZ.js → CasinoWinners-4USyKpC3.js} +2 -2
- package/components/{CasinoWinners-Bgxj-WaT.cjs → CasinoWinners-BDry1zn1.cjs} +1 -1
- package/components/{CasinoWinners-BnOaeWod.js → CasinoWinners-ClkBsJkH.js} +2 -2
- package/components/{GeneralAnimationLoading-Bid-JpR1.js → GeneralAnimationLoading-2pIa3WZ2.js} +1 -1
- package/components/{GeneralAnimationLoading-DIbb8v9O.js → GeneralAnimationLoading-B9CgzrHo.js} +1 -1
- package/components/{GeneralAnimationLoading-CMpO5woq.cjs → GeneralAnimationLoading-BIa2hgIm.cjs} +1 -1
- 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-Cs0jFzFd.js → casino-calendar-BnA6moNu.js} +1 -1
- package/lazy/{casino-calendar-CsNsKiZY.js → casino-calendar-CCjyf9sY.js} +1 -1
- package/lazy/{casino-calendar-YkbDV8u-.cjs → casino-calendar-DouPWVGN.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details-245QLr11.js → casino-calendar-daily-details-4_z9E4ve.js} +1 -1
- package/lazy/{casino-calendar-daily-details-YbqHTfeW.js → casino-calendar-daily-details-C0P3w-fs.js} +1 -1
- package/lazy/{casino-calendar-daily-details-CPtlx4kW.cjs → casino-calendar-daily-details-Dt4FF_n8.cjs} +1 -1
- package/lazy/{casino-calendar-daily-item-D_hB5GRk.cjs → casino-calendar-daily-item-BWcR9mep.cjs} +1 -1
- package/lazy/{casino-calendar-daily-item-C-eqWtT0.js → casino-calendar-daily-item-CUVB-kY4.js} +1 -1
- package/lazy/{casino-calendar-daily-item-DU29B-S3.js → casino-calendar-daily-item-DMKoFR_q.js} +1 -1
- package/lazy/{casino-collections-providers-qcRdTKtX.js → casino-collections-providers-BXXUgv8B.js} +1 -1
- package/lazy/{casino-collections-providers-DI96GWu-.cjs → casino-collections-providers-DXotDGWT.cjs} +1 -1
- package/lazy/{casino-collections-providers-C2NqfsDL.js → casino-collections-providers-DatVbMye.js} +1 -1
- package/lazy/{casino-favorites-section-nd-DZU8aHmE.js → casino-favorites-section-nd-B0h-6KZs.js} +1 -1
- package/lazy/{casino-favorites-section-nd-C7X_c8WA.js → casino-favorites-section-nd-G1k_nAvZ.js} +1 -1
- package/lazy/{casino-favorites-section-nd-8jwugjME.cjs → casino-favorites-section-nd-rZSCGLz9.cjs} +1 -1
- package/lazy/{casino-filter-DbcMmIk_.cjs → casino-filter-B2xf5U69.cjs} +1 -1
- package/lazy/{casino-filter-BeEmgxog.js → casino-filter-CZ82Hcqj.js} +1 -1
- package/lazy/{casino-filter-D8PJSlUz.js → casino-filter-M72JDTfo.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-CpwMV7LL.js → casino-game-thumbnail-nd-BpRhDG4C.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-PGdD0_IP.cjs → casino-game-thumbnail-nd-KF_zrMzM.cjs} +1 -1
- package/lazy/{casino-game-thumbnail-nd-fVN7s9p3.js → casino-game-thumbnail-nd-W3ayXj8t.js} +1 -1
- package/lazy/{casino-games-category-section-nd-Dn1t4CWy.js → casino-games-category-section-nd-BUgUwG4O.js} +1 -1
- package/lazy/{casino-games-category-section-nd-Df9BEdvf.js → casino-games-category-section-nd-BVdBFwwD.js} +1 -1
- package/lazy/{casino-games-category-section-nd-BYmjd6dL.cjs → casino-games-category-section-nd-Cp7zYNK8.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-ByR6Zc1f.cjs → casino-jackpot-banner-BdLavtLx.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-BIiv6bjj.js → casino-jackpot-banner-DZQ5Wi9n.js} +1 -1
- package/lazy/{casino-jackpot-banner-DJd6KJQi.js → casino-jackpot-banner-wv7HsxL_.js} +1 -1
- package/lazy/{casino-last-played-section-nd-BTB6t4OE.js → casino-last-played-section-nd-CjK9WO3Y.js} +1 -1
- package/lazy/{casino-last-played-section-nd-gmnR5s4s.js → casino-last-played-section-nd-CqwSv5ck.js} +1 -1
- package/lazy/{casino-last-played-section-nd-CqjHRwIW.cjs → casino-last-played-section-nd-yCd6eEHJ.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-vVzJCBeu.cjs → casino-most-played-section-nd-BJW9_1tW.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-BEVPSN6I.js → casino-most-played-section-nd-C94lFpEP.js} +1 -1
- package/lazy/{casino-most-played-section-nd-DmOXcjq2.js → casino-most-played-section-nd-DBUtrDqy.js} +1 -1
- package/lazy/{casino-my-games-nd-DX5-KSYG.js → casino-my-games-nd-CKKAEy87.js} +1 -1
- package/lazy/{casino-my-games-nd-CCZzTLyG.cjs → casino-my-games-nd-CweGRZVj.cjs} +1 -1
- package/lazy/{casino-my-games-nd-DdFHsoU1.js → casino-my-games-nd-D2yactb5.js} +1 -1
- package/lazy/casino-play-random-game-6lpggPdG.js +577 -0
- package/lazy/casino-play-random-game-DJtnASHn.cjs +1 -0
- package/lazy/casino-play-random-game-pSLEGfAB.js +561 -0
- package/lazy/{casino-random-game-CymQ57Gq.js → casino-random-game-BNjDmcBR.js} +1 -1
- package/lazy/{casino-random-game-Czlq0-VB.cjs → casino-random-game-DoOoACUd.cjs} +1 -1
- package/lazy/{casino-random-game-Bo0vfYPH.js → casino-random-game-v4cKTQdE.js} +1 -1
- package/lazy/{casino-search-nd-BED9H3PW.cjs → casino-search-nd-Bcnszmji.cjs} +1 -1
- package/lazy/{casino-search-nd-B7hwSaEk.js → casino-search-nd-D2EHW2L0.js} +1 -1
- package/lazy/{casino-search-nd-DFwBI4Qk.js → casino-search-nd-DOVyBHa7.js} +1 -1
- package/lazy/{casino-sort-CmEYuC2P.cjs → casino-sort--VUnkatZ.cjs} +1 -1
- package/lazy/{casino-sort-BCOB6Jg-.js → casino-sort-BI4VLIYM.js} +1 -1
- package/lazy/{casino-sort-Co6zKDLB.js → casino-sort-CA7YDNNV.js} +1 -1
- package/lazy/{casino-winners-DC4QNFs1.cjs → casino-winners-Bqmcvrcd.cjs} +1 -1
- package/lazy/{casino-winners-SfAP5xJr.js → casino-winners-Cxdl38To.js} +1 -1
- package/lazy/{casino-winners-CMCXuPK3.js → casino-winners-_unUTW-I.js} +1 -1
- package/lazy/{general-animation-loading-DQ36UHLN.cjs → general-animation-loading-B8SfjdID.cjs} +1 -1
- package/lazy/{general-animation-loading-DMjUl0Rz.js → general-animation-loading-XGVRNffx.js} +1 -1
- package/lazy/{general-animation-loading-DOvLyO6h.js → general-animation-loading-mNCrvpE1.js} +1 -1
- package/lazy/{ui-image-Gj7rJvHi.js → ui-image-6OZUScHT.js} +104 -105
- package/lazy/ui-image-BTer2Blj.cjs +1 -0
- package/lazy/{ui-image-DN4m37SE.js → ui-image-DrfhaZQK.js} +101 -102
- package/package.json +1 -1
- package/stencil/casino-play-random-game-BX2tki3v.cjs +1 -0
- package/stencil/casino-play-random-game-BvFOgOx2.js +11 -0
- package/stencil/casino-play-random-game-DXUvivEt.js +29 -0
- package/stencil/{casino-play-random-game_3-FMiWkeIB.js → casino-play-random-game_2-DLQ8WMsx.js} +62 -146
- package/stencil/{casino-play-random-game_3-DOusVAh7.cjs → casino-play-random-game_2-Mc_EMhs0.cjs} +3 -3
- package/stencil/{casino-play-random-game_3-COuR8an7.js → casino-play-random-game_2-X7gDHQuf.js} +62 -146
- package/stencil/ui-image-BSbeFMrw.js +25 -0
- package/stencil/ui-image-D0QGiLPH.js +7 -0
- package/stencil/ui-image-_R7s8yZ5.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-D0uYqQgN.cjs +1 -0
- package/stencil/ui-image-b7b48fe5-DL2Udm8K.js +39 -0
- package/stencil/ui-image-b7b48fe5-Dp3Q6FzO.js +39 -0
- package/stencil/{ui-image_2-CG9gShl1.js → ui-image_2-1wLfOSXS.js} +2 -2
- package/stencil/{ui-image_2-D6Y1TRww.cjs → ui-image_2-CU1S4WDO.cjs} +1 -1
- package/stencil/{ui-image_2-DA8s2q6a.js → ui-image_2-zG8MepJB.js} +2 -2
- package/lazy/casino-play-random-game-DXY5a1vd.js +0 -566
- package/lazy/casino-play-random-game-DsvAa0pU.cjs +0 -1
- package/lazy/casino-play-random-game-Dx7GeDg-.js +0 -582
- package/lazy/ui-image-Bfp60xra.cjs +0 -1
- package/stencil/casino-play-random-game-C5MTrbms.js +0 -11
- package/stencil/casino-play-random-game-D6quvMHY.cjs +0 -1
- package/stencil/casino-play-random-game-fHX7Vj4m.js +0 -29
- package/stencil/ui-image-B1gnYL7S.js +0 -7
- package/stencil/ui-image-BfKM3Qq_.js +0 -25
- package/stencil/ui-image-Dv6GC1lm.cjs +0 -1
- package/stencil/ui-image-ae115205-CrezTJRy.js +0 -81
- package/stencil/ui-image-ae115205-D6AaeZwA.js +0 -81
- package/stencil/ui-image-ae115205-QubhRQ2C.cjs +0 -1
package/stencil/{casino-play-random-game_3-FMiWkeIB.js → casino-play-random-game_2-DLQ8WMsx.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as h, c as u, h as n, g as p, H as w } from "../lazy/casino-play-random-game-6lpggPdG.js";
|
|
2
2
|
const f = () => {
|
|
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";
|
|
@@ -45,42 +45,42 @@ const f = () => {
|
|
|
45
45
|
playNowRandomGame: "Şimdi Oyna",
|
|
46
46
|
spinRandomGame: "DEĞİŞTİR"
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, l = (e) => new Promise((t) => {
|
|
49
49
|
fetch(e).then((i) => i.json()).then((i) => {
|
|
50
50
|
Object.keys(i).forEach((a) => {
|
|
51
51
|
r[a] || (r[a] = {});
|
|
52
|
-
for (let
|
|
53
|
-
r[a][
|
|
54
|
-
}),
|
|
52
|
+
for (let o in i[a])
|
|
53
|
+
r[a][o] = i[a][o];
|
|
54
|
+
}), t(!0);
|
|
55
55
|
});
|
|
56
|
-
}),
|
|
57
|
-
const i =
|
|
56
|
+
}), s = (e, t) => {
|
|
57
|
+
const i = t;
|
|
58
58
|
return r[i !== void 0 && i in r ? i : y][e];
|
|
59
59
|
};
|
|
60
|
-
function
|
|
60
|
+
function m(e, t) {
|
|
61
61
|
if (e) {
|
|
62
62
|
const i = document.createElement("style");
|
|
63
|
-
i.innerHTML =
|
|
63
|
+
i.innerHTML = t, e.appendChild(i);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const i = new URL(
|
|
66
|
+
function d(e, t) {
|
|
67
|
+
const i = new URL(t);
|
|
68
68
|
fetch(i.href).then((a) => a.text()).then((a) => {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const o = document.createElement("style");
|
|
70
|
+
o.innerHTML = a, e && e.appendChild(o);
|
|
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 x(e, t, i) {
|
|
76
76
|
if (window.emMessageBus) {
|
|
77
77
|
const a = document.createElement("style");
|
|
78
|
-
window.emMessageBus.subscribe(
|
|
79
|
-
a.innerHTML =
|
|
78
|
+
window.emMessageBus.subscribe(t, (o) => {
|
|
79
|
+
a.innerHTML = o, e && e.appendChild(a);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const b = `:host {
|
|
84
84
|
display: block;
|
|
85
85
|
font-family: inherit;
|
|
86
86
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -457,56 +457,50 @@ const x = `:host {
|
|
|
457
457
|
width: 70px;
|
|
458
458
|
height: 85px;
|
|
459
459
|
}
|
|
460
|
-
}`, k =
|
|
460
|
+
}`, k = b, G = class {
|
|
461
461
|
constructor(e) {
|
|
462
|
-
|
|
463
|
-
let i =
|
|
462
|
+
h(this, e), this.dataLoaded = u(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (t) => {
|
|
463
|
+
let i = t.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--, [t[i], t[a]] = [t[a], t[i]];
|
|
466
|
+
return t;
|
|
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;
|
|
468
468
|
}
|
|
469
|
-
watchEndpoint(e,
|
|
470
|
-
e && e !=
|
|
469
|
+
watchEndpoint(e, t) {
|
|
470
|
+
e && e != t && this.endpoint && this.fetchGameList();
|
|
471
471
|
}
|
|
472
472
|
handleNewTranslations() {
|
|
473
|
-
this.isLoading = !0,
|
|
473
|
+
this.isLoading = !0, l(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, t) {
|
|
481
|
+
e != t && m(this.stylingContainer, this.clientStyling);
|
|
482
482
|
}
|
|
483
|
-
handleClientStylingChangeURL(e,
|
|
484
|
-
e !=
|
|
483
|
+
handleClientStylingChangeURL(e, t) {
|
|
484
|
+
e != t && this.clientStylingUrl && d(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 && l(this.translationUrl), this.endpoint && this.language && this.datasource)
|
|
491
491
|
return this.fetchGameList();
|
|
492
492
|
}
|
|
493
493
|
componentDidLoad() {
|
|
494
|
-
|
|
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));
|
|
494
|
+
window.emMessageBus != null ? x(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
|
|
500
495
|
}
|
|
501
496
|
disconnectedCallback() {
|
|
502
|
-
|
|
503
|
-
(e = this.io) === null || e === void 0 || e.disconnect(), this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
497
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
504
498
|
}
|
|
505
499
|
fetchGameList() {
|
|
506
500
|
let e = new URL(`${this.endpoint}/v1/casino/games`);
|
|
507
|
-
return e.searchParams.append("platform", f()), 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((
|
|
501
|
+
return e.searchParams.append("platform", f()), 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) => {
|
|
508
502
|
this.isLoading = !0, fetch(e.href).then((a) => a.json()).then((a) => {
|
|
509
|
-
this.gamesToShow = this.setUpGames(a == null ? void 0 : a.items),
|
|
503
|
+
this.gamesToShow = this.setUpGames(a == null ? void 0 : a.items), t(!0);
|
|
510
504
|
}).catch((a) => {
|
|
511
505
|
console.error(a), this.hasErrors = !0, i(a);
|
|
512
506
|
}).finally(() => {
|
|
@@ -517,8 +511,8 @@ const x = `:host {
|
|
|
517
511
|
});
|
|
518
512
|
}
|
|
519
513
|
setUpGames(e) {
|
|
520
|
-
const
|
|
521
|
-
return
|
|
514
|
+
const t = this.shuffle(e).slice(0, 40);
|
|
515
|
+
return t.concat(t);
|
|
522
516
|
}
|
|
523
517
|
selectRandomGame() {
|
|
524
518
|
const e = this.gamesToShow.length / 2;
|
|
@@ -536,18 +530,18 @@ const x = `:host {
|
|
|
536
530
|
}
|
|
537
531
|
animateGames() {
|
|
538
532
|
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();
|
|
539
|
-
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),
|
|
533
|
+
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 + // Width of game cards up to the selected
|
|
540
534
|
i / 2 - // Additional half card width to center to the selected game
|
|
541
|
-
a / 2,
|
|
535
|
+
a / 2, c = [
|
|
542
536
|
{ transform: "translateX(0px)", scale: 1 },
|
|
543
537
|
{ scale: 0.75 },
|
|
544
|
-
{ transform: `translateX(-${
|
|
545
|
-
],
|
|
538
|
+
{ transform: `translateX(-${o}px)`, scale: 1 }
|
|
539
|
+
], g = {
|
|
546
540
|
duration: 3e3,
|
|
547
541
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
548
542
|
fill: "forwards"
|
|
549
543
|
};
|
|
550
|
-
this.animation = this.gameContainer.animate(
|
|
544
|
+
this.animation = this.gameContainer.animate(c, g), this.animation.onfinish = () => {
|
|
551
545
|
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
552
546
|
};
|
|
553
547
|
}
|
|
@@ -562,17 +556,17 @@ const x = `:host {
|
|
|
562
556
|
});
|
|
563
557
|
}
|
|
564
558
|
renderGameDetails() {
|
|
565
|
-
return
|
|
559
|
+
return n("div", { class: "RandomButtonsWrapper" }, n("div", { class: "RandomGameDetails" }, n("span", { class: "RandomGameTitle" }, this.selectedGame.name), n("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), n("div", { class: "RandomButtons" }, n("button", { class: "RandomButton On", onClick: () => this.respin() }, s("spinRandomGame", this.language)), !this.launchByGameCard && n("button", { class: "RandomButton On", onClick: () => this.playGame() }, s("playNowRandomGame", this.language))));
|
|
566
560
|
}
|
|
567
561
|
renderSkeleton() {
|
|
568
|
-
const e = Array.from({ length: 5 }, (
|
|
569
|
-
return
|
|
562
|
+
const e = Array.from({ length: 5 }, (t, i) => n("div", { class: "RandomGameCard", key: i }, n("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
|
|
563
|
+
return n("div", { class: "RandomGameWrapper" }, n("div", { class: "GameContainerGradient" }), n("div", { class: "GamesContainer" }, e));
|
|
570
564
|
}
|
|
571
565
|
render() {
|
|
572
|
-
return
|
|
566
|
+
return n("div", { key: "1f326cff688b0b71ca1d6efbc6766c6b768cb846", ref: (e) => this.stylingContainer = e }, this.hasErrors ? n("div", { class: "RandomGameError" }, n("div", { class: "Title" }, s("error", this.language))) : this.isLoading ? this.renderSkeleton() : n("div", { class: "RandomGameWrapper" }, n("div", { class: "GameContainerGradient" }), n("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, t) => n("div", { class: "RandomGameCard", key: t, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, n("div", { class: "RandomGameVendor" }, e.vendor.name), n("img", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name }), this.selectedGame && this.selectedGameIndex === t && this.renderGameDetails()))), n("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, n("div", { class: "ButtonContainer" }, this.iconVisibility && n("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, n("div", { class: "QustionMark" }, "?"), n("div", { class: "HexagonMarkShadow" }), n("div", { class: "HexagonMark" })), !this.animationStarted && n("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language))))));
|
|
573
567
|
}
|
|
574
568
|
get host() {
|
|
575
|
-
return
|
|
569
|
+
return p(this);
|
|
576
570
|
}
|
|
577
571
|
static get watchers() {
|
|
578
572
|
return {
|
|
@@ -586,87 +580,10 @@ const x = `:host {
|
|
|
586
580
|
};
|
|
587
581
|
}
|
|
588
582
|
};
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
constructor(e) {
|
|
592
|
-
d(this, e), this._onLoad = () => {
|
|
593
|
-
this.imgLoaded = !0;
|
|
594
|
-
}, 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;
|
|
595
|
-
}
|
|
596
|
-
onSrcChange() {
|
|
597
|
-
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
598
|
-
}
|
|
599
|
-
onLoadingChange(e, n) {
|
|
600
|
-
e !== n && (this.cleanupObserver(), e === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
601
|
-
}
|
|
602
|
-
componentDidLoad() {
|
|
603
|
-
this.loading !== "eager" && this.setupObserver();
|
|
604
|
-
}
|
|
605
|
-
disconnectedCallback() {
|
|
606
|
-
this.cleanupObserver(), this.imgEl && (this.imgEl.src = "");
|
|
607
|
-
}
|
|
608
|
-
canUseIO() {
|
|
609
|
-
return typeof window != "undefined" && "IntersectionObserver" in window;
|
|
610
|
-
}
|
|
611
|
-
setupObserver() {
|
|
612
|
-
if (this.loading !== "eager") {
|
|
613
|
-
if (!this.canUseIO()) {
|
|
614
|
-
this.beginLoad();
|
|
615
|
-
return;
|
|
616
|
-
}
|
|
617
|
-
this.io = new IntersectionObserver((e) => {
|
|
618
|
-
var n;
|
|
619
|
-
for (const i of e)
|
|
620
|
-
if (i.isIntersecting) {
|
|
621
|
-
this.beginLoad(), (n = this.io) === null || n === void 0 || n.unobserve(i.target), this.cleanupObserver();
|
|
622
|
-
break;
|
|
623
|
-
}
|
|
624
|
-
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
cleanupObserver() {
|
|
628
|
-
var e;
|
|
629
|
-
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
|
630
|
-
}
|
|
631
|
-
beginLoad() {
|
|
632
|
-
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
633
|
-
}
|
|
634
|
-
preloadAndSetSrc() {
|
|
635
|
-
if (!this.src || !this.imgEl)
|
|
636
|
-
return;
|
|
637
|
-
const e = new Image();
|
|
638
|
-
e.onload = () => {
|
|
639
|
-
this.imgEl && (this.imgEl.src = e.src, this.imgLoaded = !0);
|
|
640
|
-
}, e.onerror = () => {
|
|
641
|
-
this.imgEl && (this.imgEl.src = this.src);
|
|
642
|
-
}, e.src = this.src;
|
|
643
|
-
}
|
|
644
|
-
get showSkeleton() {
|
|
645
|
-
return this.loading !== "eager" && !this.imgLoaded;
|
|
646
|
-
}
|
|
647
|
-
renderEager() {
|
|
648
|
-
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" }));
|
|
649
|
-
}
|
|
650
|
-
renderLazy() {
|
|
651
|
-
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, onLoad: this._onLoad, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
652
|
-
}
|
|
653
|
-
render() {
|
|
654
|
-
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
655
|
-
}
|
|
656
|
-
get el() {
|
|
657
|
-
return g(this);
|
|
658
|
-
}
|
|
659
|
-
static get watchers() {
|
|
660
|
-
return {
|
|
661
|
-
src: ["onSrcChange"],
|
|
662
|
-
loading: ["onLoadingChange"]
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
C.style = R;
|
|
667
|
-
const S = ":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 = S, V = class {
|
|
583
|
+
G.style = k;
|
|
584
|
+
const v = ":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)}}", R = v, S = class {
|
|
668
585
|
constructor(e) {
|
|
669
|
-
|
|
586
|
+
h(this, e), this.stylingValue = {
|
|
670
587
|
width: this.handleStylingProps(this.width),
|
|
671
588
|
height: this.handleStylingProps(this.height),
|
|
672
589
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
@@ -677,8 +594,8 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
677
594
|
size: this.handleStylingProps(this.size)
|
|
678
595
|
}, 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%";
|
|
679
596
|
}
|
|
680
|
-
handleStructureChange(e,
|
|
681
|
-
|
|
597
|
+
handleStructureChange(e, t) {
|
|
598
|
+
t !== e && this.handleStructure(e);
|
|
682
599
|
}
|
|
683
600
|
handleStylingProps(e) {
|
|
684
601
|
switch (typeof e) {
|
|
@@ -711,22 +628,22 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
711
628
|
}
|
|
712
629
|
}
|
|
713
630
|
renderLogo() {
|
|
714
|
-
return
|
|
631
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
715
632
|
}
|
|
716
633
|
renderImage() {
|
|
717
|
-
return
|
|
634
|
+
return n("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
718
635
|
}
|
|
719
636
|
renderTitle() {
|
|
720
|
-
return
|
|
637
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
721
638
|
}
|
|
722
639
|
renderText() {
|
|
723
|
-
return
|
|
640
|
+
return n("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, t) => n("div", { key: t, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
724
641
|
}
|
|
725
642
|
renderRectangle() {
|
|
726
|
-
return
|
|
643
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
727
644
|
}
|
|
728
645
|
renderCircle() {
|
|
729
|
-
return
|
|
646
|
+
return n("div", { class: "SkeletonContainer" }, n("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
730
647
|
}
|
|
731
648
|
render() {
|
|
732
649
|
let e = "";
|
|
@@ -806,7 +723,7 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
806
723
|
default:
|
|
807
724
|
e = "";
|
|
808
725
|
}
|
|
809
|
-
return
|
|
726
|
+
return n(w, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, n("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
810
727
|
}
|
|
811
728
|
static get watchers() {
|
|
812
729
|
return {
|
|
@@ -814,9 +731,8 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
814
731
|
};
|
|
815
732
|
}
|
|
816
733
|
};
|
|
817
|
-
|
|
734
|
+
S.style = R;
|
|
818
735
|
export {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
V as ui_skeleton
|
|
736
|
+
G as casino_play_random_game,
|
|
737
|
+
S as ui_skeleton
|
|
822
738
|
};
|
package/stencil/{casino-play-random-game_3-DOusVAh7.cjs → casino-play-random-game_2-Mc_EMhs0.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-DJtnASHn.cjs"),p=()=>{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"},w="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(i=>i.json()).then(i=>{Object.keys(i).forEach(a=>{r[a]||(r[a]={});for(let o in i[a])r[a][o]=i[a][o]}),t(!0)})}),s=(e,t)=>{const i=t;return r[i!==void 0&&i in r?i:w][e]};function m(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function d(e,t){const i=new URL(t);fetch(i.href).then(a=>a.text()).then(a=>{const o=document.createElement("style");o.innerHTML=a,e&&e.appendChild(o)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function f(e,t,i){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,o=>{a.innerHTML=o,e&&e.appendChild(a)})}}const y=`: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=b,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,this.imageLoadingType="lazy",this.detectDistance="200px"}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&&d(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&m(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(){"IntersectionObserver"in window&&(this.io=new IntersectionObserver(e=>{e.forEach(t=>{var i;t.isIntersecting&&(this.imageLoadingType="eager",(i=this.io)===null||i===void 0||i.unobserve(t.target))})},{root:null,rootMargin:this.detectDistance}),this.io.observe(this.host)),window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&d(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.stylingSubscription&&this.stylingSubscription.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,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,s=(i+t)*this.selectedGameIndex+i/2-a/2,u=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${s}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()},o("spinRandomGame",this.language)),!this.launchByGameCard&&n.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},o("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:"29fe3535d63177e6d1f30a757bf17b70d89ce386",ref:e=>this.stylingContainer=e},this.hasErrors?n.h("div",{class:"RandomGameError"},n.h("div",{class:"Title"},o("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("ui-image",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name,loading:this.imageLoadingType}),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()},o("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 k=".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}",v=k,c=class{constructor(e){n.registerInstance(this,e),this._onLoad=()=>{this.imgLoaded=!0},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}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(e,t){e!==t&&(this.cleanupObserver(),e==="eager"?this.imgEl&&this.src&&(this.imgEl.src=this.src):(this.imgLoaded=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(e=>{var t;for(const i of e)if(i.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(i.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.io=void 0}beginLoad(){this.preloadAndSetSrc(),this.imgEl&&this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0)}preloadAndSetSrc(){if(!this.src||!this.imgEl)return;const e=new Image;e.onload=()=>{this.imgEl&&(this.imgEl.src=e.src,this.imgLoaded=!0)},e.onerror=()=>{this.imgEl&&(this.imgEl.src=this.src)},e.src=this.src}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return n.h(n.Host,{class:"HostContainer"},n.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return n.h(n.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&n.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),n.h("img",{ref:e=>this.imgEl=e,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return n.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};c.style=v;const G=":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)}}",R=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:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return n.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Title "+(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:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
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}.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)}}",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:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return n.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Title "+(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:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Circle "+(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:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},n.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};
|
|
432
|
+
`;break;default:e=""}return n.h(n.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},n.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};c.style=k;exports.casino_play_random_game=h;exports.ui_skeleton=c;
|