@everymatrix/casino-page 1.77.26 → 1.77.27
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-BEFWuyZL.cjs +19 -0
- package/components/{CasinoCalendar-BVD-g7V2.js → CasinoCalendar-OJZrTCla.js} +1012 -991
- package/components/{CasinoCalendar-CDNIjQ8T.js → CasinoCalendar-nkrznZpo.js} +856 -835
- package/components/{CasinoCalendarDailyDetails-BEUNC6Xh.cjs → CasinoCalendarDailyDetails-B0uEWbbt.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-D_IsmUxa.js → CasinoCalendarDailyDetails-D-PrPj8s.js} +38 -38
- package/components/{CasinoCalendarDailyDetails-Dun4o4bY.js → CasinoCalendarDailyDetails-Jxs5L-1T.js} +38 -38
- package/components/{CasinoCalendarDailyItem-r4x7VnIJ.cjs → CasinoCalendarDailyItem-BJHwZkKJ.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-SgYp_4Zc.js → CasinoCalendarDailyItem-D24LBmnc.js} +34 -34
- package/components/{CasinoCalendarDailyItem-lgiTsDmQ.js → CasinoCalendarDailyItem-DrZ46wZq.js} +34 -34
- package/components/{CasinoCollectionsProviders-Cfp1fpOk.js → CasinoCollectionsProviders-CTlOHOW4.js} +45 -45
- package/components/{CasinoCollectionsProviders-DI8Ie4pa.cjs → CasinoCollectionsProviders-CzBxsowK.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-GH5hTDgu.js → CasinoCollectionsProviders-DBLRCWWo.js} +67 -67
- package/components/{CasinoFavoritesSection-Ba5wqmkd.cjs → CasinoFavoritesSection-BurItg-S.cjs} +1 -1
- package/components/{CasinoFavoritesSection-D7YM2zwC.js → CasinoFavoritesSection-CqaFWWNw.js} +16 -16
- package/components/{CasinoFavoritesSection-DXnemLGX.js → CasinoFavoritesSection-DraV0MSt.js} +16 -16
- package/components/{CasinoFilter-idsuQa6E.js → CasinoFilter-5hTa8CKw.js} +244 -245
- package/components/CasinoFilter-BAo8wmWH.cjs +1 -0
- package/components/{CasinoFilter-DUp1Zmmm.js → CasinoFilter-CTkRb1UC.js} +225 -224
- package/components/{CasinoGameThumbnail-BHWlf1gC.js → CasinoGameThumbnail-7tgQYm_R.js} +778 -762
- package/components/CasinoGameThumbnail-RQtdJeDy.cjs +47 -0
- package/components/{CasinoGameThumbnail-BdydWh95.js → CasinoGameThumbnail-ggwIl1Pw.js} +1252 -1268
- package/components/{CasinoGamesCategorySection-BnybAzly.js → CasinoGamesCategorySection-C2ELh_D0.js} +300 -300
- package/components/{CasinoGamesCategorySection-CaDC5f8x.cjs → CasinoGamesCategorySection-C5V7hmwW.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-CRCpRRHq.js → CasinoGamesCategorySection-vNzKJNTE.js} +302 -302
- package/components/{CasinoJackpotBanner-Da0QCFOu.js → CasinoJackpotBanner-C51E4rGA.js} +83 -83
- package/components/{CasinoJackpotBanner-BAVC4_Yz.js → CasinoJackpotBanner-CTxmfDSK.js} +89 -89
- package/components/{CasinoJackpotBanner-ClvtHhmd.cjs → CasinoJackpotBanner-DBer4LlE.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-9tBd-_QW.js → CasinoLastPlayedSection-BVaBQx_r.js} +41 -41
- package/components/{CasinoLastPlayedSection-DQ3acXsT.js → CasinoLastPlayedSection-D4zSf-iH.js} +41 -41
- package/components/{CasinoLastPlayedSection-CB5VdLVA.cjs → CasinoLastPlayedSection-DvqOceHg.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-l6IK1tiL.cjs → CasinoMostPlayedSection-67rPpLwO.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-D5cVzG0c.js → CasinoMostPlayedSection-BtBK3dNe.js} +46 -46
- package/components/{CasinoMostPlayedSection-tbiBLd7v.js → CasinoMostPlayedSection-C-yob1Wg.js} +46 -46
- package/components/{CasinoMyGames-BoFHVxZf.cjs → CasinoMyGames-C4HjhxAp.cjs} +1 -1
- package/components/{CasinoMyGames-BQk-WuoZ.js → CasinoMyGames-CGk2YIXc.js} +33 -33
- package/components/{CasinoMyGames-Cvi4inKH.js → CasinoMyGames-on4J8rS0.js} +32 -32
- package/components/{CasinoPage-5PxElbrA.cjs → CasinoPage-0D_mE0t7.cjs} +1 -1
- package/components/{CasinoPage-B3cezScY.js → CasinoPage-B3fr6oUR.js} +118 -118
- package/components/{CasinoPage-M-r8TRyM.js → CasinoPage-hmXNQabF.js} +107 -107
- package/components/{CasinoRandomGame-9Yw_xC5j.js → CasinoRandomGame-BAEkb2tu.js} +59 -59
- package/components/{CasinoRandomGame-DpKfvMwV.js → CasinoRandomGame-BmMyshhG.js} +58 -58
- package/components/{CasinoRandomGame-3uoEGw78.cjs → CasinoRandomGame-KabCqklE.cjs} +1 -1
- package/components/{CasinoSearch-1uF4JW1w.js → CasinoSearch-BpiOTe-d.js} +87 -87
- package/components/{CasinoSearch--cTnRTHS.cjs → CasinoSearch-RK-64XQL.cjs} +1 -1
- package/components/{CasinoSearch-Bi176tH9.js → CasinoSearch-RUGp93EK.js} +84 -84
- package/components/{CasinoSort-CUCsGytJ.js → CasinoSort-Bq2rlwaB.js} +111 -112
- package/components/{CasinoSort-DEzzINXT.cjs → CasinoSort-DoQJjcDE.cjs} +1 -1
- package/components/{CasinoSort-BYQvNOsF.js → CasinoSort-DuhCSjcj.js} +103 -102
- package/components/{CasinoWinners-CQf5gEvU.js → CasinoWinners-BW3nKr2t.js} +150 -150
- package/components/{CasinoWinners-COmepRdG.cjs → CasinoWinners-D7mQLu0o.cjs} +1 -1
- package/components/{CasinoWinners-Dr5wYAG5.js → CasinoWinners-DrPaYn8M.js} +144 -144
- package/components/{GeneralAnimationLoading-CBPC5I1a.js → GeneralAnimationLoading-BK4eHT2E.js} +16 -16
- package/components/{GeneralAnimationLoading-CKgGhHlf.js → GeneralAnimationLoading-BlaU9rOM.js} +16 -16
- package/components/{GeneralAnimationLoading-DTUTIYre.cjs → GeneralAnimationLoading-QrfZPZRh.cjs} +1 -1
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +1 -1
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-C8qSoBwC.cjs → casino-play-random-game-9IuvoPt4.cjs} +1 -1
- package/stencil/{casino-play-random-game-BclrcLhz.js → casino-play-random-game-Cokl6Z0T.js} +1 -1
- package/stencil/{casino-play-random-game-Iq4e6uOv.js → casino-play-random-game-aAxIDx1E.js} +1 -1
- package/stencil/{casino-play-random-game_2-yBiPzv8a.js → casino-play-random-game_2-C4OzRB6p.js} +2 -2
- package/stencil/{casino-play-random-game_2-Cr8EjUUy.cjs → casino-play-random-game_2-CW63Z1oW.cjs} +2 -2
- package/stencil/{casino-play-random-game_2-DE449ghY.js → casino-play-random-game_2-DQXJFV3B.js} +2 -2
- package/stencil/index-328e660d-B68qAbuh.js +576 -0
- package/stencil/index-328e660d-Bw8nOXsd.js +560 -0
- package/stencil/index-328e660d-r819jp36.cjs +1 -0
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/index-b2193545-DVT8jgVo.cjs +1 -0
- package/stencil/index-b2193545-Dxw-xjac.js +503 -0
- package/stencil/index-b2193545-TbRClz6K.js +519 -0
- package/stencil/{ui-image-BAqS-hS6.js → ui-image-2_i-_1cj.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image-I_uR7pAI.js → ui-image-bN_3pDWc.js} +1 -1
- package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-eY8BEG3a.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-C0GZ2ncD.js → ui-skeleton-CSMUbPcJ.js} +2 -2
- package/stencil/{ui-skeleton-CYeeBz0Q.js → ui-skeleton-CiszU04_.js} +2 -2
- package/stencil/{ui-skeleton-5mt1L8pA.cjs → ui-skeleton-DcmFcn7k.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BmKf7IvD.js → ui-skeleton-ae35c6f2-9hZ7WFQc.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CQ3pH6qH.cjs → ui-skeleton-ae35c6f2-D1Tb0H8D.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BSwiS43c.js → ui-skeleton-ae35c6f2-DDHvWmVB.js} +1 -1
- package/components/CasinoCalendar-B4OJuO_L.cjs +0 -19
- package/components/CasinoFilter-BX1QlpN6.cjs +0 -1
- package/components/CasinoGameThumbnail-Dzywx296.cjs +0 -47
- package/stencil/index-328e660d-CBs679fy.cjs +0 -1
- package/stencil/index-328e660d-UGB5celT.js +0 -576
- package/stencil/index-328e660d-W1AsyVCP.js +0 -560
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
- package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
- package/stencil/index-b2193545-D_cUvAA-.js +0 -519
- package/stencil/index-b2193545-kN0z2MLt.js +0 -503
package/components/{GeneralAnimationLoading-CBPC5I1a.js → GeneralAnimationLoading-BK4eHT2E.js}
RENAMED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { S as u, i as f,
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as u, i as f, s as m, f as c, b as g, n as d, d as y, h, j as p, o as b, C as v, H as x, I as _, J as S, K as C } from "./CasinoCalendar-OJZrTCla.js";
|
|
2
|
+
function k(t) {
|
|
3
|
+
g(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
4
4
|
}
|
|
5
5
|
function L(t) {
|
|
6
6
|
let i;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
i =
|
|
9
|
+
i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
10
10
|
},
|
|
11
11
|
m(n, l) {
|
|
12
|
-
|
|
12
|
+
h(n, i, l), t[4](i);
|
|
13
13
|
},
|
|
14
14
|
p: d,
|
|
15
15
|
i: d,
|
|
16
16
|
o: d,
|
|
17
17
|
d(n) {
|
|
18
|
-
n &&
|
|
18
|
+
n && y(i), t[4](null);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function j(t, i, n) {
|
|
23
23
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
-
|
|
24
|
+
b(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function o(e) {
|
|
27
|
-
|
|
27
|
+
v[e ? "unshift" : "push"](() => {
|
|
28
28
|
s = e, n(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -32,9 +32,9 @@ function j(t, i, n) {
|
|
|
32
32
|
"clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
|
|
33
33
|
}, t.$$.update = () => {
|
|
34
34
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
35
|
-
3 && l && s &&
|
|
36
|
-
5 && a && s &&
|
|
37
|
-
9 && r && s &&
|
|
35
|
+
3 && l && s && x(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
36
|
+
5 && a && s && _(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
37
|
+
9 && r && s && S(s, `${r}.Style`);
|
|
38
38
|
}, [
|
|
39
39
|
s,
|
|
40
40
|
l,
|
|
@@ -43,20 +43,20 @@ function j(t, i, n) {
|
|
|
43
43
|
o
|
|
44
44
|
];
|
|
45
45
|
}
|
|
46
|
-
class
|
|
46
|
+
class w extends u {
|
|
47
47
|
constructor(i) {
|
|
48
48
|
super(), f(
|
|
49
49
|
this,
|
|
50
50
|
i,
|
|
51
51
|
j,
|
|
52
52
|
L,
|
|
53
|
-
|
|
53
|
+
m,
|
|
54
54
|
{
|
|
55
55
|
clientstyling: 1,
|
|
56
56
|
clientstylingurl: 2,
|
|
57
57
|
mbsource: 3
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
k
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
get clientstyling() {
|
|
@@ -78,7 +78,7 @@ class q extends u {
|
|
|
78
78
|
this.$$set({ mbsource: i }), c();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
w as default
|
|
84
84
|
};
|
package/components/{GeneralAnimationLoading-CKgGhHlf.js → GeneralAnimationLoading-BlaU9rOM.js}
RENAMED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { S as u, i as f,
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as u, i as f, s as m, f as c, b as g, n as d, d as y, h, j as p, o as b, C as v, H as x, I as _, J as S, K as C } from "./CasinoCalendar-nkrznZpo.js";
|
|
2
|
+
function k(t) {
|
|
3
|
+
g(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
4
4
|
}
|
|
5
5
|
function L(t) {
|
|
6
6
|
let i;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
i =
|
|
9
|
+
i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
10
10
|
},
|
|
11
11
|
m(n, l) {
|
|
12
|
-
|
|
12
|
+
h(n, i, l), t[4](i);
|
|
13
13
|
},
|
|
14
14
|
p: d,
|
|
15
15
|
i: d,
|
|
16
16
|
o: d,
|
|
17
17
|
d(n) {
|
|
18
|
-
n &&
|
|
18
|
+
n && y(i), t[4](null);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function j(t, i, n) {
|
|
23
23
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
-
|
|
24
|
+
b(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function o(e) {
|
|
27
|
-
|
|
27
|
+
v[e ? "unshift" : "push"](() => {
|
|
28
28
|
s = e, n(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -32,9 +32,9 @@ function j(t, i, n) {
|
|
|
32
32
|
"clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
|
|
33
33
|
}, t.$$.update = () => {
|
|
34
34
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
35
|
-
3 && l && s &&
|
|
36
|
-
5 && a && s &&
|
|
37
|
-
9 && r && s &&
|
|
35
|
+
3 && l && s && x(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
36
|
+
5 && a && s && _(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
37
|
+
9 && r && s && S(s, `${r}.Style`);
|
|
38
38
|
}, [
|
|
39
39
|
s,
|
|
40
40
|
l,
|
|
@@ -43,20 +43,20 @@ function j(t, i, n) {
|
|
|
43
43
|
o
|
|
44
44
|
];
|
|
45
45
|
}
|
|
46
|
-
class
|
|
46
|
+
class w extends u {
|
|
47
47
|
constructor(i) {
|
|
48
48
|
super(), f(
|
|
49
49
|
this,
|
|
50
50
|
i,
|
|
51
51
|
j,
|
|
52
52
|
L,
|
|
53
|
-
|
|
53
|
+
m,
|
|
54
54
|
{
|
|
55
55
|
clientstyling: 1,
|
|
56
56
|
clientstylingurl: 2,
|
|
57
57
|
mbsource: 3
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
k
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
get clientstyling() {
|
|
@@ -78,7 +78,7 @@ class q extends u {
|
|
|
78
78
|
this.$$set({ mbsource: i }), c();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
w as default
|
|
84
84
|
};
|
package/components/{GeneralAnimationLoading-DTUTIYre.cjs → GeneralAnimationLoading-QrfZPZRh.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-BEFWuyZL.cjs");function u(e){i.append_styles(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function f(e){let t;return{c(){t=i.element("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(l,r){i.insert(l,t,r),e[4](t)},p:i.noop,i:i.noop,o:i.noop,d(l){l&&i.detach(t),e[4](null)}}}function m(e,t,l){let{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{mbsource:d}=t,n;i.onMount(()=>()=>{});function a(s){i.binding_callbacks[s?"unshift":"push"](()=>{n=s,l(0,n)})}return e.$$set=s=>{"clientstyling"in s&&l(1,r=s.clientstyling),"clientstylingurl"in s&&l(2,c=s.clientstylingurl),"mbsource"in s&&l(3,d=s.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&r&&n&&i.setClientStyling(n,r),e.$$.dirty&5&&c&&n&&i.setClientStylingURL(n,c),e.$$.dirty&9&&d&&n&&i.setStreamStyling(n,`${d}.Style`)},[n,r,c,d,a]}class o extends i.SvelteComponent{constructor(t){super(),i.init(this,t,m,f,i.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},u)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(o,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=o;
|
package/es2015/casino-page.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoPage-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoPage-0D_mE0t7.cjs")).then(({default:t})=>{!customElements.get("casino-page")&&customElements.define("casino-page",t.element)})}
|
package/es2015/casino-page.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoPage-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoPage-hmXNQabF.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-page") && customElements.define("casino-page", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/casino-page.js
CHANGED
package/package.json
CHANGED
package/stencil/{casino-play-random-game-C8qSoBwC.cjs → casino-play-random-game-9IuvoPt4.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=(e,i,t)=>new Promise((u,l)=>{var d=n=>{try{a(t.next(n))}catch(r){l(r)}},g=n=>{try{a(t.throw(n))}catch(r){l(r)}},a=n=>n.done?u(n.value):Promise.resolve(n.value).then(d,g);a((t=t.apply(e,i)).next())});const s=require("./index-328e660d-
|
|
1
|
+
"use strict";var c=(e,i,t)=>new Promise((u,l)=>{var d=n=>{try{a(t.next(n))}catch(r){l(r)}},g=n=>{try{a(t.throw(n))}catch(r){l(r)}},a=n=>n.done?u(n.value):Promise.resolve(n.value).then(d,g);a((t=t.apply(e,i)).next())});const s=require("./index-328e660d-r819jp36.cjs"),m=require("./app-globals-0f993ce5-4b17CI_n.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/casino-play-random-game-9IuvoPt4.cjs",document.baseURI).href,i={};return e!==""&&(i.resourcesUrl=new URL(".",e).href),s.promiseResolve(i)};h().then(e=>c(exports,null,function*(){return yield m.globalScripts(),s.bootstrapLazy([["casino-play-random-game_2",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],e)}));
|
|
@@ -14,7 +14,7 @@ var l = (i, a, t) => new Promise((s, o) => {
|
|
|
14
14
|
}, e = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(c, g);
|
|
15
15
|
e((t = t.apply(i, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as m, p as u } from "./index-328e660d-
|
|
17
|
+
import { b as m, p as u } from "./index-328e660d-B68qAbuh.js";
|
|
18
18
|
import { g as d } from "./app-globals-0f993ce5-DfNOCk8l.js";
|
|
19
19
|
var h = () => {
|
|
20
20
|
const i = import.meta.url, a = {};
|
package/stencil/{casino-play-random-game_2-yBiPzv8a.js → casino-play-random-game_2-C4OzRB6p.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-
|
|
1
|
+
import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-Bw8nOXsd.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";
|
|
@@ -459,7 +459,7 @@ const b = `:host {
|
|
|
459
459
|
}
|
|
460
460
|
}`, k = b, G = class {
|
|
461
461
|
constructor(e) {
|
|
462
|
-
h(this, e), this.dataLoaded = u(this, "data-loaded"
|
|
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
463
|
let i = t.length, a;
|
|
464
464
|
for (; i !== 0; )
|
|
465
465
|
a = Math.floor(Math.random() * i), i--, [t[i], t[a]] = [t[a], t[i]];
|
package/stencil/{casino-play-random-game_2-Cr8EjUUy.cjs → casino-play-random-game_2-CW63Z1oW.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-328e660d-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-328e660d-r819jp36.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=y,h=class{constructor(e){n.registerInstance(this,e),this.dataLoaded=n.createEvent(this,"data-loaded",7),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=`
|
|
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};
|
package/stencil/{casino-play-random-game_2-DE449ghY.js → casino-play-random-game_2-DQXJFV3B.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-
|
|
1
|
+
import { r as h, c as u, h as n, g as p, H as w } from "./index-328e660d-B68qAbuh.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";
|
|
@@ -459,7 +459,7 @@ const b = `:host {
|
|
|
459
459
|
}
|
|
460
460
|
}`, k = b, G = class {
|
|
461
461
|
constructor(e) {
|
|
462
|
-
h(this, e), this.dataLoaded = u(this, "data-loaded"
|
|
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
463
|
let i = t.length, a;
|
|
464
464
|
for (; i !== 0; )
|
|
465
465
|
a = Math.floor(Math.random() * i), i--, [t[i], t[a]] = [t[a], t[i]];
|