@everymatrix/casino-lobby 1.55.0 → 1.56.0
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-CFPK0TM5.cjs +9 -0
- package/components/{CasinoCalendar-CRnGs6mI.js → CasinoCalendar-CSMUhfCr.js} +989 -989
- package/components/{CasinoCalendar-BKvw2GLN.js → CasinoCalendar-_T8fa3tA.js} +975 -975
- package/components/CasinoCalendarDailyDetails-CGRqVKFV.js +693 -0
- package/components/CasinoCalendarDailyDetails-DspcjY5l.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-DueCbaZn.js +693 -0
- package/components/CasinoCalendarDailyItem-DaSrAYwS.cjs +1 -0
- package/components/CasinoCalendarDailyItem-DpLOlYVI.js +306 -0
- package/components/CasinoCalendarDailyItem-DxYbPmky.js +306 -0
- package/components/{CasinoCategoriesSlider-C7hbpydX.js → CasinoCategoriesSlider-B7jmX0uM.js} +77 -77
- package/components/{CasinoCategoriesSlider-hJChLXnm.js → CasinoCategoriesSlider-DkmZ6uE9.js} +79 -79
- package/components/CasinoCategoriesSlider-Tm48k88y.cjs +1 -0
- package/components/{CasinoCollectionsProviders-CTvTqZY1.js → CasinoCollectionsProviders-CFJKyip5.js} +56 -56
- package/components/{CasinoCollectionsProviders-Cyc5HYpW.js → CasinoCollectionsProviders-XHUKRCjH.js} +54 -54
- package/components/CasinoCollectionsProviders-fHbyEo_l.cjs +1 -0
- package/components/{CasinoFavoritesSection-D4v8HNn9.js → CasinoFavoritesSection-BJKuORXc.js} +37 -36
- package/components/CasinoFavoritesSection-DAfQZFKH.cjs +1 -0
- package/components/{CasinoFavoritesSection-B4JlTRNa.js → CasinoFavoritesSection-ui8ebJSk.js} +37 -36
- package/components/CasinoFilter-BZrHKXm3.cjs +1 -0
- package/components/{CasinoFilter-CgPbbuBc.js → CasinoFilter-Cj6Ya1tA.js} +244 -245
- package/components/{CasinoFilter-ZQCeB5st.js → CasinoFilter-t6_A4K9e.js} +234 -233
- package/components/CasinoGamePage-BCpBojD8.cjs +18 -0
- package/components/{CasinoGamePage-DnFlR6PD.js → CasinoGamePage-DH-mxVYx.js} +750 -750
- package/components/{CasinoGamePage-lOejw_q6.js → CasinoGamePage-DQ1Yd_-1.js} +787 -787
- package/components/{CasinoGameThumbnail-h69vAUbV.js → CasinoGameThumbnail-B15M2LaO.js} +354 -370
- package/components/CasinoGameThumbnail-CHGG4fWS.cjs +38 -0
- package/components/{CasinoGameThumbnail-Aj4sPAss.js → CasinoGameThumbnail-CmtUwom1.js} +282 -266
- package/components/{CasinoGamesCategorySection-PiRBRWmh.js → CasinoGamesCategorySection-D9nxbG-c.js} +1084 -1120
- package/components/CasinoGamesCategorySection-Dw87pk8g.cjs +1 -0
- package/components/{CasinoGamesCategorySection-C9FCv7PW.js → CasinoGamesCategorySection-lpoHUMLN.js} +659 -695
- package/components/{CasinoJackpotBanner-BdzgC-lW.js → CasinoJackpotBanner-COZRcenh.js} +149 -147
- package/components/{CasinoJackpotBanner-Dx_3WwEw.js → CasinoJackpotBanner-DcwCa-Hp.js} +146 -144
- package/components/CasinoJackpotBanner-vFHgMV4j.cjs +1 -0
- package/components/CasinoLastPlayedSection-DUCFQv-7.cjs +1 -0
- package/components/{CasinoLastPlayedSection-r73sTCi9.js → CasinoLastPlayedSection-IZ9mars2.js} +56 -56
- package/components/{CasinoLastPlayedSection-BXGcYUad.js → CasinoLastPlayedSection-yetII3tl.js} +56 -56
- package/components/CasinoLobby-CZ0buhgH.cjs +1 -0
- package/components/{CasinoLobby-60oTKJCK.js → CasinoLobby-CoCRB4M8.js} +324 -305
- package/components/{CasinoLobby-DHl1_-VE.js → CasinoLobby-DOvk4Q1L.js} +320 -301
- package/components/CasinoModal-6keCUEEx.cjs +1 -0
- package/components/{CasinoModal-B7R5L0mw.js → CasinoModal-DDDhdR0c.js} +55 -55
- package/components/{CasinoModal-wz-kI5U1.js → CasinoModal-Dzu3FQyi.js} +55 -55
- package/components/CasinoMostPlayedSection-BNDdZOM6.cjs +1 -0
- package/components/{CasinoMostPlayedSection-CpO0b2PN.js → CasinoMostPlayedSection-CGqU9ZQv.js} +168 -159
- package/components/{CasinoMostPlayedSection-CxQrM8-U.js → CasinoMostPlayedSection-D0w6a_z2.js} +168 -159
- package/components/{CasinoMyGames-B0AvdkLy.js → CasinoMyGames-BKqlNnO1.js} +329 -296
- package/components/CasinoMyGames-CX5HKRLY.cjs +1 -0
- package/components/{CasinoMyGames-ieyBjArx.js → CasinoMyGames-Dy3IMfzN.js} +329 -296
- package/components/CasinoPage--1tMufa9.cjs +1 -0
- package/components/{CasinoPage-CcV-qeX_.js → CasinoPage-BnrghJel.js} +709 -646
- package/components/{CasinoPage-E4Nn1l0F.js → CasinoPage-DYcUhqdZ.js} +592 -529
- package/components/{CasinoRandomGame-D1gqYJkg.cjs → CasinoRandomGame-B1qCGSlR.cjs} +2 -2
- package/components/{CasinoRandomGame-BEOONr7N.js → CasinoRandomGame-Cup5oHY3.js} +67 -67
- package/components/{CasinoRandomGame-DoSJSKrA.js → CasinoRandomGame-Dq7oLh0O.js} +66 -66
- package/components/{CasinoSearch-3nC8pR7D.cjs → CasinoSearch-B1D8nnr0.cjs} +1 -1
- package/components/{CasinoSearch-BOSoxjjv.js → CasinoSearch-DlUwO5L4.js} +63 -63
- package/components/{CasinoSearch-DqfKG5Mj.js → CasinoSearch-jV0H_1Yg.js} +63 -63
- package/components/CasinoSlider-4pDZHG6x.cjs +1 -0
- package/components/{CasinoSlider-ylo7nRmY.js → CasinoSlider-ChnKJ8kH.js} +120 -120
- package/components/{CasinoSlider-DlBcdeDm.js → CasinoSlider-Ot2uFDD8.js} +103 -103
- package/components/CasinoSort-BnarJSWg.js +428 -0
- package/components/CasinoSort-DltZUpda.js +427 -0
- package/components/CasinoSort-jqMnIqLs.cjs +1 -0
- package/components/{CasinoWinners-CSDCICsh.js → CasinoWinners-BkJBCXPe.js} +157 -157
- package/components/{CasinoWinners-Br_rOUdI.cjs → CasinoWinners-Bs7Oh-m-.cjs} +1 -1
- package/components/{CasinoWinners-CeLmSRE4.js → CasinoWinners-CBgbYBfP.js} +159 -159
- package/components/GeneralAnimationLoading-BLss2VP4.cjs +1 -0
- package/components/GeneralAnimationLoading-BUY2TGQr.js +84 -0
- package/components/GeneralAnimationLoading-CRju5T01.js +84 -0
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-B5g4-G4Z.js → casino-play-random-game-CBXhEsCq.js} +55 -30
- package/stencil/{casino-play-random-game-Cphp76Jq.js → casino-play-random-game-PZXnDzfs.js} +74 -49
- package/stencil/{casino-play-random-game-CQe5iDJ8.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
- package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
- package/stencil/index-29915e18-CQ_kWzEh.js +630 -0
- package/stencil/index-29915e18-MPiqo7vY.js +646 -0
- package/components/CasinoCalendar-P6bQ-mxN.cjs +0 -9
- package/components/CasinoCalendarDailyDetails-B-FOmYEZ.js +0 -701
- package/components/CasinoCalendarDailyDetails-DYTiZ7iE.js +0 -701
- package/components/CasinoCalendarDailyDetails-DicGOCGy.cjs +0 -1
- package/components/CasinoCalendarDailyItem-BsUUCx7a.js +0 -315
- package/components/CasinoCalendarDailyItem-DDm6oH8O.cjs +0 -1
- package/components/CasinoCalendarDailyItem-DIhsLlMC.js +0 -315
- package/components/CasinoCategoriesSlider-wt-dJlF9.cjs +0 -1
- package/components/CasinoCollectionsProviders-B0h7SupJ.cjs +0 -1
- package/components/CasinoFavoritesSection-CcyN5mtI.cjs +0 -1
- package/components/CasinoFilter-EA285UxQ.cjs +0 -1
- package/components/CasinoGamePage-D2VGIU0X.cjs +0 -18
- package/components/CasinoGameThumbnail-ClSBiG0I.cjs +0 -38
- package/components/CasinoGamesCategorySection-X0aDh13K.cjs +0 -1
- package/components/CasinoJackpotBanner-rV5P1O6d.cjs +0 -1
- package/components/CasinoLastPlayedSection-BP9oa18h.cjs +0 -1
- package/components/CasinoLobby-CB5KGhNa.cjs +0 -1
- package/components/CasinoModal-B7pt3Gcb.cjs +0 -1
- package/components/CasinoMostPlayedSection-CaHWOtw_.cjs +0 -1
- package/components/CasinoMyGames-R7NrCxgd.cjs +0 -1
- package/components/CasinoPage-azRHPGyF.cjs +0 -1
- package/components/CasinoSlider-Zgasc58K.cjs +0 -1
- package/components/CasinoSort-CVwRicsk.js +0 -427
- package/components/CasinoSort-D3rxrF3Z.cjs +0 -1
- package/components/CasinoSort-D9KTb90Q.js +0 -428
- package/components/GeneralAnimationLoading-BRBLoSEB.js +0 -75
- package/components/GeneralAnimationLoading-Bu4_iets.cjs +0 -1
- package/components/GeneralAnimationLoading-DoN4gYz0.js +0 -75
- package/stencil/index-eac6b960-BaE9i06M.cjs +0 -1
- package/stencil/index-eac6b960-DXIu1GM6.js +0 -579
- package/stencil/index-eac6b960-Dvyvd5zP.js +0 -563
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-CFPK0TM5.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;
|
|
@@ -0,0 +1,84 @@
|
|
|
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, I as x, J as _, K as S, L as C } from "./CasinoCalendar-_T8fa3tA.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
|
+
}
|
|
5
|
+
function L(t) {
|
|
6
|
+
let i;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
10
|
+
},
|
|
11
|
+
m(n, l) {
|
|
12
|
+
h(n, i, l), t[4](i);
|
|
13
|
+
},
|
|
14
|
+
p: d,
|
|
15
|
+
i: d,
|
|
16
|
+
o: d,
|
|
17
|
+
d(n) {
|
|
18
|
+
n && y(i), t[4](null);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function j(t, i, n) {
|
|
23
|
+
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
+
b(() => () => {
|
|
25
|
+
});
|
|
26
|
+
function o(e) {
|
|
27
|
+
v[e ? "unshift" : "push"](() => {
|
|
28
|
+
s = e, n(0, s);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return t.$$set = (e) => {
|
|
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
|
+
}, t.$$.update = () => {
|
|
34
|
+
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
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
|
+
}, [
|
|
39
|
+
s,
|
|
40
|
+
l,
|
|
41
|
+
a,
|
|
42
|
+
r,
|
|
43
|
+
o
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
class w extends u {
|
|
47
|
+
constructor(i) {
|
|
48
|
+
super(), f(
|
|
49
|
+
this,
|
|
50
|
+
i,
|
|
51
|
+
j,
|
|
52
|
+
L,
|
|
53
|
+
m,
|
|
54
|
+
{
|
|
55
|
+
clientstyling: 1,
|
|
56
|
+
clientstylingurl: 2,
|
|
57
|
+
mbsource: 3
|
|
58
|
+
},
|
|
59
|
+
k
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
get clientstyling() {
|
|
63
|
+
return this.$$.ctx[1];
|
|
64
|
+
}
|
|
65
|
+
set clientstyling(i) {
|
|
66
|
+
this.$$set({ clientstyling: i }), c();
|
|
67
|
+
}
|
|
68
|
+
get clientstylingurl() {
|
|
69
|
+
return this.$$.ctx[2];
|
|
70
|
+
}
|
|
71
|
+
set clientstylingurl(i) {
|
|
72
|
+
this.$$set({ clientstylingurl: i }), c();
|
|
73
|
+
}
|
|
74
|
+
get mbsource() {
|
|
75
|
+
return this.$$.ctx[3];
|
|
76
|
+
}
|
|
77
|
+
set mbsource(i) {
|
|
78
|
+
this.$$set({ mbsource: i }), c();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
|
+
export {
|
|
83
|
+
w as default
|
|
84
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
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, I as x, J as _, K as S, L as C } from "./CasinoCalendar-CSMUhfCr.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
|
+
}
|
|
5
|
+
function L(t) {
|
|
6
|
+
let i;
|
|
7
|
+
return {
|
|
8
|
+
c() {
|
|
9
|
+
i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
10
|
+
},
|
|
11
|
+
m(n, l) {
|
|
12
|
+
h(n, i, l), t[4](i);
|
|
13
|
+
},
|
|
14
|
+
p: d,
|
|
15
|
+
i: d,
|
|
16
|
+
o: d,
|
|
17
|
+
d(n) {
|
|
18
|
+
n && y(i), t[4](null);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function j(t, i, n) {
|
|
23
|
+
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
+
b(() => () => {
|
|
25
|
+
});
|
|
26
|
+
function o(e) {
|
|
27
|
+
v[e ? "unshift" : "push"](() => {
|
|
28
|
+
s = e, n(0, s);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return t.$$set = (e) => {
|
|
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
|
+
}, t.$$.update = () => {
|
|
34
|
+
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
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
|
+
}, [
|
|
39
|
+
s,
|
|
40
|
+
l,
|
|
41
|
+
a,
|
|
42
|
+
r,
|
|
43
|
+
o
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
class w extends u {
|
|
47
|
+
constructor(i) {
|
|
48
|
+
super(), f(
|
|
49
|
+
this,
|
|
50
|
+
i,
|
|
51
|
+
j,
|
|
52
|
+
L,
|
|
53
|
+
m,
|
|
54
|
+
{
|
|
55
|
+
clientstyling: 1,
|
|
56
|
+
clientstylingurl: 2,
|
|
57
|
+
mbsource: 3
|
|
58
|
+
},
|
|
59
|
+
k
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
get clientstyling() {
|
|
63
|
+
return this.$$.ctx[1];
|
|
64
|
+
}
|
|
65
|
+
set clientstyling(i) {
|
|
66
|
+
this.$$set({ clientstyling: i }), c();
|
|
67
|
+
}
|
|
68
|
+
get clientstylingurl() {
|
|
69
|
+
return this.$$.ctx[2];
|
|
70
|
+
}
|
|
71
|
+
set clientstylingurl(i) {
|
|
72
|
+
this.$$set({ clientstylingurl: i }), c();
|
|
73
|
+
}
|
|
74
|
+
get mbsource() {
|
|
75
|
+
return this.$$.ctx[3];
|
|
76
|
+
}
|
|
77
|
+
set mbsource(i) {
|
|
78
|
+
this.$$set({ mbsource: i }), c();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
|
+
export {
|
|
83
|
+
w as default
|
|
84
|
+
};
|
package/es2015/casino-lobby.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/CasinoLobby-
|
|
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/CasinoLobby-CZ0buhgH.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
|
package/es2015/casino-lobby.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoLobby-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoLobby-DOvk4Q1L.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-lobby") && customElements.define("casino-lobby", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/casino-lobby.js
CHANGED
package/package.json
CHANGED
|
@@ -14,19 +14,19 @@ var p = (n, e, a) => new Promise((t, o) => {
|
|
|
14
14
|
}, c = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(m, d);
|
|
15
15
|
c((a = a.apply(n, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as
|
|
18
|
-
import { g as
|
|
19
|
-
var
|
|
17
|
+
import { b as w, p as y, r as x, h as i, g as G } from "./index-29915e18-MPiqo7vY.js";
|
|
18
|
+
import { g as b } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
|
+
var v = () => {
|
|
20
20
|
const n = import.meta.url, e = {};
|
|
21
|
-
return n !== "" && (e.resourcesUrl = new URL(".", n).href),
|
|
21
|
+
return n !== "" && (e.resourcesUrl = new URL(".", n).href), y(e);
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
return yield
|
|
23
|
+
v().then((n) => p(void 0, null, function* () {
|
|
24
|
+
return yield b(), w([["casino-play-random-game", [[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"] }]]]], n);
|
|
25
25
|
}));
|
|
26
|
-
const
|
|
26
|
+
const R = () => {
|
|
27
27
|
let n = window.navigator.userAgent;
|
|
28
28
|
return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
29
|
-
},
|
|
29
|
+
}, C = "en", l = {
|
|
30
30
|
en: {
|
|
31
31
|
error: "Error",
|
|
32
32
|
randomGameLoading: "Loading ...",
|
|
@@ -79,8 +79,32 @@ const b = () => {
|
|
|
79
79
|
});
|
|
80
80
|
}), s = (n, e) => {
|
|
81
81
|
const a = e;
|
|
82
|
-
return l[a !== void 0 && a in l ? a :
|
|
83
|
-
}
|
|
82
|
+
return l[a !== void 0 && a in l ? a : C][n];
|
|
83
|
+
};
|
|
84
|
+
function u(n, e) {
|
|
85
|
+
if (n) {
|
|
86
|
+
const a = document.createElement("style");
|
|
87
|
+
a.innerHTML = e, n.appendChild(a);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function f(n, e) {
|
|
91
|
+
const a = new URL(e);
|
|
92
|
+
fetch(a.href).then((t) => t.text()).then((t) => {
|
|
93
|
+
const o = document.createElement("style");
|
|
94
|
+
o.innerHTML = t, n && n.appendChild(o);
|
|
95
|
+
}).catch((t) => {
|
|
96
|
+
console.error("There was an error while trying to load client styling from URL", t);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function k(n, e, a) {
|
|
100
|
+
if (window.emMessageBus) {
|
|
101
|
+
const t = document.createElement("style");
|
|
102
|
+
window.emMessageBus.subscribe(e, (o) => {
|
|
103
|
+
t.innerHTML = o, n && n.appendChild(t);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const S = `:host {
|
|
84
108
|
display: block;
|
|
85
109
|
font-family: inherit;
|
|
86
110
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -450,24 +474,14 @@ const b = () => {
|
|
|
450
474
|
width: 70px;
|
|
451
475
|
height: 85px;
|
|
452
476
|
}
|
|
453
|
-
}`,
|
|
477
|
+
}`, F = S, L = class {
|
|
454
478
|
constructor(n) {
|
|
455
|
-
|
|
479
|
+
x(this, n), this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.isLoading = !0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1, this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
|
|
456
480
|
let a = e.length, t;
|
|
457
481
|
for (; a !== 0; )
|
|
458
482
|
t = Math.floor(Math.random() * a), a--, [e[a], e[t]] = [e[t], e[a]];
|
|
459
483
|
return e;
|
|
460
|
-
}
|
|
461
|
-
let e = document.createElement("style");
|
|
462
|
-
e.innerHTML = this.clientStyling, this.host.shadowRoot.prepend(e);
|
|
463
|
-
}, this.setClientStylingURL = () => {
|
|
464
|
-
let e = new URL(this.clientStylingUrl), a = document.createElement("style");
|
|
465
|
-
fetch(e.href).then((t) => t.text()).then((t) => {
|
|
466
|
-
a.innerHTML = t, this.clientStyling = t, setTimeout(() => {
|
|
467
|
-
this.host.shadowRoot.prepend(a);
|
|
468
|
-
}, 1);
|
|
469
|
-
});
|
|
470
|
-
}, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.limitStylingAppends = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
|
|
484
|
+
};
|
|
471
485
|
}
|
|
472
486
|
watchEndpoint(n, e) {
|
|
473
487
|
n && n != e && this.endpoint && this.fetchGameList();
|
|
@@ -480,6 +494,12 @@ const b = () => {
|
|
|
480
494
|
handleIsIconVisible() {
|
|
481
495
|
this.iconVisibility = this.iconVisible === "true";
|
|
482
496
|
}
|
|
497
|
+
handleClientStylingChange(n, e) {
|
|
498
|
+
n != e && u(this.stylingContainer, this.clientStyling);
|
|
499
|
+
}
|
|
500
|
+
handleClientStylingChangeURL(n, e) {
|
|
501
|
+
n != e && this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl);
|
|
502
|
+
}
|
|
483
503
|
connectedCallback() {
|
|
484
504
|
this.handleIsIconVisible();
|
|
485
505
|
}
|
|
@@ -488,11 +508,14 @@ const b = () => {
|
|
|
488
508
|
return this.fetchGameList();
|
|
489
509
|
}
|
|
490
510
|
componentDidLoad() {
|
|
491
|
-
|
|
511
|
+
window.emMessageBus != null ? k(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && u(this.stylingContainer, this.clientStyling), this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl));
|
|
512
|
+
}
|
|
513
|
+
disconnectedCallback() {
|
|
514
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
492
515
|
}
|
|
493
516
|
fetchGameList() {
|
|
494
517
|
let n = new URL(`${this.endpoint}/v1/casino/games`);
|
|
495
|
-
return n.searchParams.append("platform",
|
|
518
|
+
return n.searchParams.append("platform", R()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, a) => {
|
|
496
519
|
this.isLoading = !0, fetch(n.href).then((t) => t.json()).then((t) => {
|
|
497
520
|
this.gamesToShow = this.setUpGames(t == null ? void 0 : t.items), e(!0);
|
|
498
521
|
}).catch((t) => {
|
|
@@ -556,10 +579,10 @@ const b = () => {
|
|
|
556
579
|
if (this.isLoading)
|
|
557
580
|
return i("div", { class: "RandomGameLoading" }, i("div", { class: "Title" }, s("randomGameLoading", this.language)));
|
|
558
581
|
if (!this.isLoading)
|
|
559
|
-
return i("div", { class: "RandomGameWrapper" }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : null }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language)))));
|
|
582
|
+
return i("div", { class: "RandomGameWrapper", ref: (n) => this.stylingContainer = n }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : null }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language)))));
|
|
560
583
|
}
|
|
561
584
|
get host() {
|
|
562
|
-
return
|
|
585
|
+
return G(this);
|
|
563
586
|
}
|
|
564
587
|
static get watchers() {
|
|
565
588
|
return {
|
|
@@ -567,11 +590,13 @@ const b = () => {
|
|
|
567
590
|
datasource: ["watchEndpoint"],
|
|
568
591
|
language: ["watchEndpoint"],
|
|
569
592
|
translationUrl: ["handleNewTranslations"],
|
|
570
|
-
iconVisible: ["handleIsIconVisible"]
|
|
593
|
+
iconVisible: ["handleIsIconVisible"],
|
|
594
|
+
clientStyling: ["handleClientStylingChange"],
|
|
595
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
|
571
596
|
};
|
|
572
597
|
}
|
|
573
598
|
};
|
|
574
|
-
|
|
599
|
+
L.style = F;
|
|
575
600
|
export {
|
|
576
|
-
|
|
601
|
+
L as casino_play_random_game
|
|
577
602
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { g as
|
|
3
|
-
var
|
|
1
|
+
import { b as p, p as g, r as u, h as i, g as f } from "./index-29915e18-CQ_kWzEh.js";
|
|
2
|
+
import { g as w } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
3
|
+
var y = () => {
|
|
4
4
|
const n = import.meta.url, e = {};
|
|
5
|
-
return n !== "" && (e.resourcesUrl = new URL(".", n).href),
|
|
5
|
+
return n !== "" && (e.resourcesUrl = new URL(".", n).href), g(e);
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
const
|
|
7
|
+
y().then(async (n) => (await w(), p([["casino-play-random-game", [[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"] }]]]], n)));
|
|
8
|
+
const x = () => {
|
|
9
9
|
let n = window.navigator.userAgent;
|
|
10
10
|
return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
11
|
-
},
|
|
11
|
+
}, G = "en", s = {
|
|
12
12
|
en: {
|
|
13
13
|
error: "Error",
|
|
14
14
|
randomGameLoading: "Loading ...",
|
|
@@ -52,17 +52,41 @@ const w = () => {
|
|
|
52
52
|
spinRandomGame: "DEĞİŞTİR"
|
|
53
53
|
}
|
|
54
54
|
}, l = (n) => new Promise((e) => {
|
|
55
|
-
fetch(n).then((
|
|
56
|
-
Object.keys(
|
|
57
|
-
|
|
58
|
-
for (let
|
|
59
|
-
|
|
55
|
+
fetch(n).then((t) => t.json()).then((t) => {
|
|
56
|
+
Object.keys(t).forEach((a) => {
|
|
57
|
+
s[a] || (s[a] = {});
|
|
58
|
+
for (let o in t[a])
|
|
59
|
+
s[a][o] = t[a][o];
|
|
60
60
|
}), e(!0);
|
|
61
61
|
});
|
|
62
|
-
}),
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
}
|
|
62
|
+
}), r = (n, e) => {
|
|
63
|
+
const t = e;
|
|
64
|
+
return s[t !== void 0 && t in s ? t : G][n];
|
|
65
|
+
};
|
|
66
|
+
function m(n, e) {
|
|
67
|
+
if (n) {
|
|
68
|
+
const t = document.createElement("style");
|
|
69
|
+
t.innerHTML = e, n.appendChild(t);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function d(n, e) {
|
|
73
|
+
const t = new URL(e);
|
|
74
|
+
fetch(t.href).then((a) => a.text()).then((a) => {
|
|
75
|
+
const o = document.createElement("style");
|
|
76
|
+
o.innerHTML = a, n && n.appendChild(o);
|
|
77
|
+
}).catch((a) => {
|
|
78
|
+
console.error("There was an error while trying to load client styling from URL", a);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function b(n, e, t) {
|
|
82
|
+
if (window.emMessageBus) {
|
|
83
|
+
const a = document.createElement("style");
|
|
84
|
+
window.emMessageBus.subscribe(e, (o) => {
|
|
85
|
+
a.innerHTML = o, n && n.appendChild(a);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
const v = `:host {
|
|
66
90
|
display: block;
|
|
67
91
|
font-family: inherit;
|
|
68
92
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -432,24 +456,14 @@ const w = () => {
|
|
|
432
456
|
width: 70px;
|
|
433
457
|
height: 85px;
|
|
434
458
|
}
|
|
435
|
-
}`,
|
|
459
|
+
}`, R = v, C = class {
|
|
436
460
|
constructor(n) {
|
|
437
|
-
|
|
438
|
-
let
|
|
439
|
-
for (;
|
|
440
|
-
a = Math.floor(Math.random() *
|
|
461
|
+
u(this, n), this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.isLoading = !0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1, this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
|
|
462
|
+
let t = e.length, a;
|
|
463
|
+
for (; t !== 0; )
|
|
464
|
+
a = Math.floor(Math.random() * t), t--, [e[t], e[a]] = [e[a], e[t]];
|
|
441
465
|
return e;
|
|
442
|
-
}
|
|
443
|
-
let e = document.createElement("style");
|
|
444
|
-
e.innerHTML = this.clientStyling, this.host.shadowRoot.prepend(e);
|
|
445
|
-
}, this.setClientStylingURL = () => {
|
|
446
|
-
let e = new URL(this.clientStylingUrl), i = document.createElement("style");
|
|
447
|
-
fetch(e.href).then((a) => a.text()).then((a) => {
|
|
448
|
-
i.innerHTML = a, this.clientStyling = a, setTimeout(() => {
|
|
449
|
-
this.host.shadowRoot.prepend(i);
|
|
450
|
-
}, 1);
|
|
451
|
-
});
|
|
452
|
-
}, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.limitStylingAppends = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
|
|
466
|
+
};
|
|
453
467
|
}
|
|
454
468
|
watchEndpoint(n, e) {
|
|
455
469
|
n && n != e && this.endpoint && this.fetchGameList();
|
|
@@ -462,6 +476,12 @@ const w = () => {
|
|
|
462
476
|
handleIsIconVisible() {
|
|
463
477
|
this.iconVisibility = this.iconVisible === "true";
|
|
464
478
|
}
|
|
479
|
+
handleClientStylingChange(n, e) {
|
|
480
|
+
n != e && m(this.stylingContainer, this.clientStyling);
|
|
481
|
+
}
|
|
482
|
+
handleClientStylingChangeURL(n, e) {
|
|
483
|
+
n != e && this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl);
|
|
484
|
+
}
|
|
465
485
|
connectedCallback() {
|
|
466
486
|
this.handleIsIconVisible();
|
|
467
487
|
}
|
|
@@ -470,15 +490,18 @@ const w = () => {
|
|
|
470
490
|
return this.fetchGameList();
|
|
471
491
|
}
|
|
472
492
|
componentDidLoad() {
|
|
473
|
-
|
|
493
|
+
window.emMessageBus != null ? b(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && m(this.stylingContainer, this.clientStyling), this.clientStylingUrl && d(this.stylingContainer, this.clientStylingUrl));
|
|
494
|
+
}
|
|
495
|
+
disconnectedCallback() {
|
|
496
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
474
497
|
}
|
|
475
498
|
fetchGameList() {
|
|
476
499
|
let n = new URL(`${this.endpoint}/v1/casino/games`);
|
|
477
|
-
return n.searchParams.append("platform",
|
|
500
|
+
return n.searchParams.append("platform", x()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, t) => {
|
|
478
501
|
this.isLoading = !0, fetch(n.href).then((a) => a.json()).then((a) => {
|
|
479
502
|
this.gamesToShow = this.setUpGames(a?.items), e(!0);
|
|
480
503
|
}).catch((a) => {
|
|
481
|
-
console.error(a), this.hasErrors = !0,
|
|
504
|
+
console.error(a), this.hasErrors = !0, t(a);
|
|
482
505
|
}).finally(() => {
|
|
483
506
|
this.isLoading = !1;
|
|
484
507
|
});
|
|
@@ -504,18 +527,18 @@ const w = () => {
|
|
|
504
527
|
}
|
|
505
528
|
animateGames() {
|
|
506
529
|
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();
|
|
507
|
-
const n = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), e = parseInt(n, 10),
|
|
508
|
-
|
|
509
|
-
a / 2,
|
|
530
|
+
const n = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), e = parseInt(n, 10), t = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, o = (t + e) * this.selectedGameIndex + // Width of game cards up to the selected
|
|
531
|
+
t / 2 - // Additional half card width to center to the selected game
|
|
532
|
+
a / 2, c = [
|
|
510
533
|
{ transform: "translateX(0px)", scale: 1 },
|
|
511
534
|
{ scale: 0.75 },
|
|
512
|
-
{ transform: `translateX(-${
|
|
513
|
-
],
|
|
535
|
+
{ transform: `translateX(-${o}px)`, scale: 1 }
|
|
536
|
+
], h = {
|
|
514
537
|
duration: 3e3,
|
|
515
538
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
516
539
|
fill: "forwards"
|
|
517
540
|
};
|
|
518
|
-
this.animation = this.gameContainer.animate(
|
|
541
|
+
this.animation = this.gameContainer.animate(c, h), this.animation.onfinish = () => {
|
|
519
542
|
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
520
543
|
};
|
|
521
544
|
}
|
|
@@ -530,18 +553,18 @@ const w = () => {
|
|
|
530
553
|
});
|
|
531
554
|
}
|
|
532
555
|
renderGameDetails() {
|
|
533
|
-
return
|
|
556
|
+
return i("div", { class: "RandomButtonsWrapper" }, i("div", { class: "RandomGameDetails" }, i("span", { class: "RandomGameTitle" }, this.selectedGame.name), i("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), i("div", { class: "RandomButtons" }, i("button", { class: "RandomButton On", onClick: () => this.respin() }, r("spinRandomGame", this.language)), !this.launchByGameCard && i("button", { class: "RandomButton On", onClick: () => this.playGame() }, r("playNowRandomGame", this.language))));
|
|
534
557
|
}
|
|
535
558
|
render() {
|
|
536
559
|
if (this.hasErrors)
|
|
537
|
-
return
|
|
560
|
+
return i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, r("error", this.language)));
|
|
538
561
|
if (this.isLoading)
|
|
539
|
-
return
|
|
562
|
+
return i("div", { class: "RandomGameLoading" }, i("div", { class: "Title" }, r("randomGameLoading", this.language)));
|
|
540
563
|
if (!this.isLoading)
|
|
541
|
-
return
|
|
564
|
+
return i("div", { class: "RandomGameWrapper", ref: (n) => this.stylingContainer = n }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : null }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, r("playRandomGame", this.language)))));
|
|
542
565
|
}
|
|
543
566
|
get host() {
|
|
544
|
-
return
|
|
567
|
+
return f(this);
|
|
545
568
|
}
|
|
546
569
|
static get watchers() {
|
|
547
570
|
return {
|
|
@@ -549,11 +572,13 @@ const w = () => {
|
|
|
549
572
|
datasource: ["watchEndpoint"],
|
|
550
573
|
language: ["watchEndpoint"],
|
|
551
574
|
translationUrl: ["handleNewTranslations"],
|
|
552
|
-
iconVisible: ["handleIsIconVisible"]
|
|
575
|
+
iconVisible: ["handleIsIconVisible"],
|
|
576
|
+
clientStyling: ["handleClientStylingChange"],
|
|
577
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
|
553
578
|
};
|
|
554
579
|
}
|
|
555
580
|
};
|
|
556
|
-
|
|
581
|
+
C.style = R;
|
|
557
582
|
export {
|
|
558
|
-
|
|
583
|
+
C as casino_play_random_game
|
|
559
584
|
};
|