@everymatrix/casino-lobby 1.54.12 → 1.55.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-CKCvu8d9.js → CasinoCalendar-BKvw2GLN.js} +1135 -1091
- package/components/{CasinoCalendar-D3cTwZsW.js → CasinoCalendar-CRnGs6mI.js} +953 -909
- package/components/CasinoCalendar-P6bQ-mxN.cjs +9 -0
- package/components/{CasinoCalendarDailyDetails-CCIR8eIp.js → CasinoCalendarDailyDetails-B-FOmYEZ.js} +45 -45
- package/components/{CasinoCalendarDailyDetails-B7hChP4v.js → CasinoCalendarDailyDetails-DYTiZ7iE.js} +45 -45
- package/components/{CasinoCalendarDailyDetails-C1T0xNcn.cjs → CasinoCalendarDailyDetails-DicGOCGy.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-1iPwEmjb.js → CasinoCalendarDailyItem-BsUUCx7a.js} +46 -46
- package/components/{CasinoCalendarDailyItem-Bp_PImhJ.cjs → CasinoCalendarDailyItem-DDm6oH8O.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-BNNa1Jdv.js → CasinoCalendarDailyItem-DIhsLlMC.js} +46 -46
- package/components/{CasinoCategoriesSlider-06Zx2Iq-.js → CasinoCategoriesSlider-C7hbpydX.js} +204 -197
- package/components/{CasinoCategoriesSlider-Bjd1r5S5.js → CasinoCategoriesSlider-hJChLXnm.js} +205 -198
- package/components/CasinoCategoriesSlider-wt-dJlF9.cjs +1 -0
- package/components/CasinoCollectionsProviders-B0h7SupJ.cjs +1 -0
- package/components/{CasinoCollectionsProviders-BQPjVzK8.js → CasinoCollectionsProviders-CTvTqZY1.js} +273 -278
- package/components/{CasinoCollectionsProviders-CVDFBiI0.js → CasinoCollectionsProviders-Cyc5HYpW.js} +260 -265
- package/components/{CasinoFavoritesSection-Dumr9yPV.js → CasinoFavoritesSection-B4JlTRNa.js} +139 -133
- package/components/CasinoFavoritesSection-CcyN5mtI.cjs +1 -0
- package/components/{CasinoFavoritesSection-WWaIxjOj.js → CasinoFavoritesSection-D4v8HNn9.js} +139 -133
- package/components/{CasinoFilter-CT6gjm3V.js → CasinoFilter-CgPbbuBc.js} +178 -184
- package/components/{CasinoFilter-C10Tgn3c.cjs → CasinoFilter-EA285UxQ.cjs} +1 -1
- package/components/{CasinoFilter-ckjDwsuD.js → CasinoFilter-ZQCeB5st.js} +175 -181
- package/components/{CasinoGamePage-DOzefHFS.cjs → CasinoGamePage-D2VGIU0X.cjs} +6 -6
- package/components/{CasinoGamePage-BUpAQtEi.js → CasinoGamePage-DnFlR6PD.js} +1044 -1050
- package/components/{CasinoGamePage-VEREng8k.js → CasinoGamePage-lOejw_q6.js} +1018 -1024
- package/components/{CasinoGameThumbnail-nmpLDgoF.js → CasinoGameThumbnail-Aj4sPAss.js} +403 -424
- package/components/{CasinoGameThumbnail-CWQWsl_s.cjs → CasinoGameThumbnail-ClSBiG0I.cjs} +13 -13
- package/components/{CasinoGameThumbnail-D08-4naW.js → CasinoGameThumbnail-h69vAUbV.js} +523 -512
- package/components/{CasinoGamesCategorySection-u0JnTvTn.js → CasinoGamesCategorySection-C9FCv7PW.js} +736 -674
- package/components/{CasinoGamesCategorySection-DK9t7zLa.js → CasinoGamesCategorySection-PiRBRWmh.js} +1168 -1106
- package/components/CasinoGamesCategorySection-X0aDh13K.cjs +1 -0
- package/components/CasinoJackpotBanner-BdzgC-lW.js +690 -0
- package/components/CasinoJackpotBanner-Dx_3WwEw.js +686 -0
- package/components/CasinoJackpotBanner-rV5P1O6d.cjs +1 -0
- package/components/CasinoLastPlayedSection-BP9oa18h.cjs +1 -0
- package/components/{CasinoLastPlayedSection-CChe4Dsm.js → CasinoLastPlayedSection-BXGcYUad.js} +148 -139
- package/components/{CasinoLastPlayedSection-BoyL9RQI.js → CasinoLastPlayedSection-r73sTCi9.js} +148 -139
- package/components/{CasinoLobby-ClLV4i9d.js → CasinoLobby-60oTKJCK.js} +555 -525
- package/components/CasinoLobby-CB5KGhNa.cjs +1 -0
- package/components/{CasinoLobby-DUYjTD-X.js → CasinoLobby-DHl1_-VE.js} +555 -525
- package/components/CasinoModal-B7R5L0mw.js +368 -0
- package/components/CasinoModal-B7pt3Gcb.cjs +1 -0
- package/components/CasinoModal-wz-kI5U1.js +368 -0
- package/components/{CasinoMostPlayedSection-DQ_xJPuX.cjs → CasinoMostPlayedSection-CaHWOtw_.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-DIF7og_k.js → CasinoMostPlayedSection-CpO0b2PN.js} +34 -34
- package/components/{CasinoMostPlayedSection-qZnaHjV9.js → CasinoMostPlayedSection-CxQrM8-U.js} +34 -34
- package/components/{CasinoMyGames-BfCr8pSL.js → CasinoMyGames-B0AvdkLy.js} +124 -128
- package/components/{CasinoMyGames-B0pWVqCz.cjs → CasinoMyGames-R7NrCxgd.cjs} +1 -1
- package/components/{CasinoMyGames-Bu2sU_i0.js → CasinoMyGames-ieyBjArx.js} +139 -141
- package/components/{CasinoPage-CoKfFrmH.js → CasinoPage-CcV-qeX_.js} +903 -805
- package/components/{CasinoPage-BAJC3ryR.js → CasinoPage-E4Nn1l0F.js} +573 -481
- package/components/CasinoPage-azRHPGyF.cjs +1 -0
- package/components/{CasinoRandomGame-Df62wtxc.js → CasinoRandomGame-BEOONr7N.js} +244 -246
- package/components/{CasinoRandomGame-C6-dDxie.cjs → CasinoRandomGame-D1gqYJkg.cjs} +2 -2
- package/components/{CasinoRandomGame-DXFHIw0O.js → CasinoRandomGame-DoSJSKrA.js} +225 -227
- package/components/CasinoSearch-3nC8pR7D.cjs +1 -0
- package/components/{CasinoSearch-DP4hDzq5.js → CasinoSearch-BOSoxjjv.js} +394 -387
- package/components/{CasinoSearch-U2PDpXMA.js → CasinoSearch-DqfKG5Mj.js} +443 -436
- package/components/{CasinoSlider-BjpV4pLV.js → CasinoSlider-DlBcdeDm.js} +294 -297
- package/components/{CasinoSlider-BDjskQjI.cjs → CasinoSlider-Zgasc58K.cjs} +1 -1
- package/components/{CasinoSlider-BWEc4YT5.js → CasinoSlider-ylo7nRmY.js} +317 -320
- package/components/CasinoSort-CVwRicsk.js +427 -0
- package/components/CasinoSort-D3rxrF3Z.cjs +1 -0
- package/components/CasinoSort-D9KTb90Q.js +428 -0
- package/components/CasinoWinners-Br_rOUdI.cjs +1 -0
- package/components/{CasinoWinners-6mr0X-kZ.js → CasinoWinners-CSDCICsh.js} +355 -352
- package/components/{CasinoWinners-CADOvOsd.js → CasinoWinners-CeLmSRE4.js} +338 -335
- package/components/{GeneralAnimationLoading-CX9baArf.js → GeneralAnimationLoading-BRBLoSEB.js} +8 -8
- package/components/{GeneralAnimationLoading-BG_QynCK.cjs → GeneralAnimationLoading-Bu4_iets.cjs} +1 -1
- package/components/{GeneralAnimationLoading-DVLCsjn0.js → GeneralAnimationLoading-DoN4gYz0.js} +8 -8
- 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-NI77_BKB.js → casino-play-random-game-B5g4-G4Z.js} +3 -3
- package/stencil/{casino-play-random-game-DEBmcc-I.cjs → casino-play-random-game-CQe5iDJ8.cjs} +2 -2
- package/stencil/{casino-play-random-game-BxdfOAZj.js → casino-play-random-game-Cphp76Jq.js} +3 -3
- package/stencil/index-eac6b960-BaE9i06M.cjs +1 -0
- package/stencil/index-eac6b960-DXIu1GM6.js +579 -0
- package/stencil/index-eac6b960-Dvyvd5zP.js +563 -0
- package/components/CasinoCalendar-BlfnJwZ-.cjs +0 -9
- package/components/CasinoCategoriesSlider-DVgkuNtk.cjs +0 -1
- package/components/CasinoCollectionsProviders-CSISd5u6.cjs +0 -1
- package/components/CasinoFavoritesSection-Dc3krq_m.cjs +0 -1
- package/components/CasinoGamesCategorySection-LHUR2_EB.cjs +0 -1
- package/components/CasinoJackpotBanner-D3s92J-3.js +0 -614
- package/components/CasinoJackpotBanner-q02RPv4N.js +0 -618
- package/components/CasinoJackpotBanner-uWVFzOiI.cjs +0 -1
- package/components/CasinoLastPlayedSection-BVbeW3YI.cjs +0 -1
- package/components/CasinoLobby-bvh2k3lg.cjs +0 -1
- package/components/CasinoModal-C1oW3YF4.js +0 -372
- package/components/CasinoModal-DRtZi6gR.cjs +0 -1
- package/components/CasinoModal-IbVlgg7Z.js +0 -372
- package/components/CasinoPage-CoSWrE10.cjs +0 -1
- package/components/CasinoSearch-Cnu1-6cZ.cjs +0 -1
- package/components/CasinoSort-CS53Uvnz.cjs +0 -1
- package/components/CasinoSort-DFdgT3Dt.js +0 -432
- package/components/CasinoSort-DFljh5Sg.js +0 -431
- package/components/CasinoWinners-DU3xFq2b.cjs +0 -1
- package/stencil/index-8b2c4ca7-BNDGCsVn.js +0 -629
- package/stencil/index-8b2c4ca7-CtUqBgXG.js +0 -645
- package/stencil/index-8b2c4ca7-DAQdcMA3.cjs +0 -1
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { a4 as ee, S as te, i as ie, f as m, c as se, s as ne, b as oe, H as ae, d as v, h as F, t as B, g as le, j as E, o as re, K as de, p as j, e as W, r as ue, v as r, R as O, w as z, T as ce, x as fe, y as A, z as P, A as q, a5 as x, l as ge, m as H, Z as me, n as N, N as he, O as we, G as U, D as _e } from "./CasinoCalendar-CRnGs6mI.js";
|
|
2
|
+
function K(s, { delay: e = 0, duration: t = 400, easing: n = ee } = {}) {
|
|
3
|
+
const o = +getComputedStyle(s).opacity;
|
|
4
|
+
return {
|
|
5
|
+
delay: e,
|
|
6
|
+
duration: t,
|
|
7
|
+
easing: n,
|
|
8
|
+
css: (l) => `opacity: ${l * o}`
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function ye(s) {
|
|
12
|
+
oe(s, "svelte-n85m9z", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}");
|
|
13
|
+
}
|
|
14
|
+
const be = (s) => ({}), T = (s) => ({});
|
|
15
|
+
function V(s) {
|
|
16
|
+
let e, t, n, o, l, w, k, c, u, b, p;
|
|
17
|
+
const C = (
|
|
18
|
+
/*#slots*/
|
|
19
|
+
s[20].default
|
|
20
|
+
), d = j(
|
|
21
|
+
C,
|
|
22
|
+
s,
|
|
23
|
+
/*$$scope*/
|
|
24
|
+
s[19],
|
|
25
|
+
null
|
|
26
|
+
), M = (
|
|
27
|
+
/*#slots*/
|
|
28
|
+
s[20].close
|
|
29
|
+
), h = j(
|
|
30
|
+
M,
|
|
31
|
+
s,
|
|
32
|
+
/*$$scope*/
|
|
33
|
+
s[19],
|
|
34
|
+
T
|
|
35
|
+
), f = h || pe();
|
|
36
|
+
return {
|
|
37
|
+
c() {
|
|
38
|
+
e = W("div"), t = W("div"), n = W("div"), d && d.c(), o = ue(), l = W("span"), f && f.c(), r(n, "class", "ModalContainer"), r(n, "part", "ModalContainer"), r(l, "class", w = "ModalCloseBtn " + /*haspanicbutton*/
|
|
39
|
+
(s[1] == "true" && /*mobileView*/
|
|
40
|
+
s[3] ? "ModalPanicCloseButton" : "")), r(l, "role", "button"), r(t, "class", "ModalWindow"), r(t, "part", "ModalWindow"), r(t, "id", "Modal"), O(() => (
|
|
41
|
+
/*div1_elementresize_handler*/
|
|
42
|
+
s[22].call(t)
|
|
43
|
+
)), r(e, "part", "CustomStylingContainer");
|
|
44
|
+
},
|
|
45
|
+
m(a, g) {
|
|
46
|
+
v(a, e, g), z(e, t), z(t, n), d && d.m(n, null), z(t, o), z(t, l), f && f.m(l, null), s[21](t), k = ce(
|
|
47
|
+
t,
|
|
48
|
+
/*div1_elementresize_handler*/
|
|
49
|
+
s[22].bind(t)
|
|
50
|
+
), s[23](e), u = !0, b || (p = fe(
|
|
51
|
+
l,
|
|
52
|
+
"click",
|
|
53
|
+
/*close*/
|
|
54
|
+
s[8]
|
|
55
|
+
), b = !0);
|
|
56
|
+
},
|
|
57
|
+
p(a, g) {
|
|
58
|
+
s = a, d && d.p && (!u || g[0] & /*$$scope*/
|
|
59
|
+
524288) && A(
|
|
60
|
+
d,
|
|
61
|
+
C,
|
|
62
|
+
s,
|
|
63
|
+
/*$$scope*/
|
|
64
|
+
s[19],
|
|
65
|
+
u ? q(
|
|
66
|
+
C,
|
|
67
|
+
/*$$scope*/
|
|
68
|
+
s[19],
|
|
69
|
+
g,
|
|
70
|
+
null
|
|
71
|
+
) : P(
|
|
72
|
+
/*$$scope*/
|
|
73
|
+
s[19]
|
|
74
|
+
),
|
|
75
|
+
null
|
|
76
|
+
), h && h.p && (!u || g[0] & /*$$scope*/
|
|
77
|
+
524288) && A(
|
|
78
|
+
h,
|
|
79
|
+
M,
|
|
80
|
+
s,
|
|
81
|
+
/*$$scope*/
|
|
82
|
+
s[19],
|
|
83
|
+
u ? q(
|
|
84
|
+
M,
|
|
85
|
+
/*$$scope*/
|
|
86
|
+
s[19],
|
|
87
|
+
g,
|
|
88
|
+
be
|
|
89
|
+
) : P(
|
|
90
|
+
/*$$scope*/
|
|
91
|
+
s[19]
|
|
92
|
+
),
|
|
93
|
+
T
|
|
94
|
+
), (!u || g[0] & /*haspanicbutton, mobileView*/
|
|
95
|
+
10 && w !== (w = "ModalCloseBtn " + /*haspanicbutton*/
|
|
96
|
+
(s[1] == "true" && /*mobileView*/
|
|
97
|
+
s[3] ? "ModalPanicCloseButton" : ""))) && r(l, "class", w);
|
|
98
|
+
},
|
|
99
|
+
i(a) {
|
|
100
|
+
u || (F(d, a), F(f, a), a && O(() => {
|
|
101
|
+
u && (c || (c = x(t, K, { transitionDuration: (
|
|
102
|
+
/*duration*/
|
|
103
|
+
s[0]
|
|
104
|
+
) }, !0)), c.run(1));
|
|
105
|
+
}), u = !0);
|
|
106
|
+
},
|
|
107
|
+
o(a) {
|
|
108
|
+
B(d, a), B(f, a), a && (c || (c = x(t, K, { transitionDuration: (
|
|
109
|
+
/*duration*/
|
|
110
|
+
s[0]
|
|
111
|
+
) }, !1)), c.run(0)), u = !1;
|
|
112
|
+
},
|
|
113
|
+
d(a) {
|
|
114
|
+
a && E(e), d && d.d(a), f && f.d(a), s[21](null), k(), a && c && c.end(), s[23](null), b = !1, p();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function pe(s) {
|
|
119
|
+
let e, t;
|
|
120
|
+
return {
|
|
121
|
+
c() {
|
|
122
|
+
e = U("svg"), t = U("path"), r(t, "stroke-linecap", "round"), r(t, "stroke-linejoin", "round"), r(t, "stroke-width", "2"), r(t, "d", "M6 18L18 6M6 6l12 12"), r(e, "class", "w-6 h-6"), r(e, "fill", "none"), r(e, "stroke", "currentColor"), r(e, "viewBox", "0 0 24 24"), r(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
123
|
+
},
|
|
124
|
+
m(n, o) {
|
|
125
|
+
v(n, e, o), z(e, t);
|
|
126
|
+
},
|
|
127
|
+
p: _e,
|
|
128
|
+
d(n) {
|
|
129
|
+
n && E(e);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function Me(s) {
|
|
134
|
+
let e, t, n = (
|
|
135
|
+
/*show*/
|
|
136
|
+
s[7] && V(s)
|
|
137
|
+
);
|
|
138
|
+
return {
|
|
139
|
+
c() {
|
|
140
|
+
n && n.c(), e = ae();
|
|
141
|
+
},
|
|
142
|
+
m(o, l) {
|
|
143
|
+
n && n.m(o, l), v(o, e, l), t = !0;
|
|
144
|
+
},
|
|
145
|
+
p(o, l) {
|
|
146
|
+
/*show*/
|
|
147
|
+
o[7] ? n ? (n.p(o, l), l[0] & /*show*/
|
|
148
|
+
128 && F(n, 1)) : (n = V(o), n.c(), F(n, 1), n.m(e.parentNode, e)) : n && (ge(), B(n, 1, 1, () => {
|
|
149
|
+
n = null;
|
|
150
|
+
}), le());
|
|
151
|
+
},
|
|
152
|
+
i(o) {
|
|
153
|
+
t || (F(n), t = !0);
|
|
154
|
+
},
|
|
155
|
+
o(o) {
|
|
156
|
+
B(n), t = !1;
|
|
157
|
+
},
|
|
158
|
+
d(o) {
|
|
159
|
+
o && E(e), n && n.d(o);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function ke(s, e, t) {
|
|
164
|
+
let { $$slots: n = {}, $$scope: o } = e, { duration: l = 350 } = e, { session: w = "" } = e, { userid: k = "" } = e, { clientstyling: c = "" } = e, { identifier: u = "" } = e, { clientstylingurl: b = "" } = e, { endpoint: p = "" } = e, { haspanicbutton: C = "false" } = e, { gamepagemodalurl: d = "false" } = e, { sessioncheck: M = "true" } = e, { integratedgameframedesktop: h = "false" } = e, { mbsource: f } = e, a = window.navigator.userAgent, g = !1, R = !1, _, y, D, G, S = !1;
|
|
165
|
+
const Z = () => {
|
|
166
|
+
t(7, S = !1), t(3, g = H(a)), window.postMessage(
|
|
167
|
+
{
|
|
168
|
+
type: "ModalClosed",
|
|
169
|
+
gamepagemodalurl: d,
|
|
170
|
+
mobileView: g,
|
|
171
|
+
closeIntegratedGameFrameDesktop: !0
|
|
172
|
+
},
|
|
173
|
+
window.location.href
|
|
174
|
+
);
|
|
175
|
+
}, L = (i) => {
|
|
176
|
+
if (i.data.type == "ShowModal" && u == i.data.identifier && (t(7, S = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), i.data.type == "ModalClosed" && (h === "true" || H(a)) && t(7, S = !1), i.data.type === "ShowGameModal" && (t(7, S = !0), window.postMessage(
|
|
177
|
+
{
|
|
178
|
+
type: "GameLaunchID",
|
|
179
|
+
gameId: i.data.gameId
|
|
180
|
+
},
|
|
181
|
+
window.location.href
|
|
182
|
+
), h === "false" && window.postMessage({ type: "DisableScroll" }, window.location.href)), i.data.type === "OpenGameFrameModal" && (t(7, S = !0), window.postMessage(
|
|
183
|
+
{
|
|
184
|
+
type: "LaunchGameFrame",
|
|
185
|
+
gameId: i.data.gameId,
|
|
186
|
+
gameFunMode: i.data.gamefunmode
|
|
187
|
+
},
|
|
188
|
+
window.location.href
|
|
189
|
+
), h === "false" && window.postMessage({ type: "DisableScroll" }, window.location.href)), i.data.type === "RequestModalSize") {
|
|
190
|
+
let I = {
|
|
191
|
+
modalWidth: _ ? getComputedStyle(_).width : null,
|
|
192
|
+
modalHeight: _ ? getComputedStyle(_).height : null
|
|
193
|
+
};
|
|
194
|
+
window.postMessage({ type: "ModalSize", modalContainerSize: I }, window.location.href);
|
|
195
|
+
}
|
|
196
|
+
i.data.type === "GameStateOnResize" && (R = i.data.detailsObtained);
|
|
197
|
+
}, J = (i) => {
|
|
198
|
+
if (R) {
|
|
199
|
+
let I = {
|
|
200
|
+
modalWidth: getComputedStyle(_).width,
|
|
201
|
+
modalHeight: getComputedStyle(_).height
|
|
202
|
+
};
|
|
203
|
+
window.postMessage({ type: "ModalSize", modalContainerSize: I }, window.location.href);
|
|
204
|
+
}
|
|
205
|
+
}, Q = () => {
|
|
206
|
+
M == "true" && me(p, w).then(
|
|
207
|
+
(i) => {
|
|
208
|
+
i.Guid, i.UserID;
|
|
209
|
+
},
|
|
210
|
+
(i) => {
|
|
211
|
+
console.error("err on session", i);
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
};
|
|
215
|
+
re(() => (t(3, g = H(a)), window.addEventListener("message", L, !1), window.addEventListener("resize", J, !1), () => {
|
|
216
|
+
window.removeEventListener("message", L), window.removeEventListener("resize", L);
|
|
217
|
+
}));
|
|
218
|
+
function X(i) {
|
|
219
|
+
N[i ? "unshift" : "push"](() => {
|
|
220
|
+
_ = i, t(4, _);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
function Y() {
|
|
224
|
+
D = this.clientWidth, G = this.clientHeight, t(5, D), t(6, G);
|
|
225
|
+
}
|
|
226
|
+
function $(i) {
|
|
227
|
+
N[i ? "unshift" : "push"](() => {
|
|
228
|
+
y = i, t(2, y);
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
return s.$$set = (i) => {
|
|
232
|
+
"duration" in i && t(0, l = i.duration), "session" in i && t(9, w = i.session), "userid" in i && t(10, k = i.userid), "clientstyling" in i && t(11, c = i.clientstyling), "identifier" in i && t(12, u = i.identifier), "clientstylingurl" in i && t(13, b = i.clientstylingurl), "endpoint" in i && t(14, p = i.endpoint), "haspanicbutton" in i && t(1, C = i.haspanicbutton), "gamepagemodalurl" in i && t(15, d = i.gamepagemodalurl), "sessioncheck" in i && t(16, M = i.sessioncheck), "integratedgameframedesktop" in i && t(17, h = i.integratedgameframedesktop), "mbsource" in i && t(18, f = i.mbsource), "$$scope" in i && t(19, o = i.$$scope);
|
|
233
|
+
}, s.$$.update = () => {
|
|
234
|
+
s.$$.dirty[0] & /*session, userid, endpoint*/
|
|
235
|
+
17920 && w && k && p && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
236
|
+
2052 && c && y && he(y, c), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
237
|
+
8196 && b && y && de(y, b), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
238
|
+
262148 && y && we(y, `${f}.Style`);
|
|
239
|
+
}, [
|
|
240
|
+
l,
|
|
241
|
+
C,
|
|
242
|
+
y,
|
|
243
|
+
g,
|
|
244
|
+
_,
|
|
245
|
+
D,
|
|
246
|
+
G,
|
|
247
|
+
S,
|
|
248
|
+
Z,
|
|
249
|
+
w,
|
|
250
|
+
k,
|
|
251
|
+
c,
|
|
252
|
+
u,
|
|
253
|
+
b,
|
|
254
|
+
p,
|
|
255
|
+
d,
|
|
256
|
+
M,
|
|
257
|
+
h,
|
|
258
|
+
f,
|
|
259
|
+
o,
|
|
260
|
+
n,
|
|
261
|
+
X,
|
|
262
|
+
Y,
|
|
263
|
+
$
|
|
264
|
+
];
|
|
265
|
+
}
|
|
266
|
+
class Ce extends te {
|
|
267
|
+
constructor(e) {
|
|
268
|
+
super(), ie(
|
|
269
|
+
this,
|
|
270
|
+
e,
|
|
271
|
+
ke,
|
|
272
|
+
Me,
|
|
273
|
+
ne,
|
|
274
|
+
{
|
|
275
|
+
duration: 0,
|
|
276
|
+
session: 9,
|
|
277
|
+
userid: 10,
|
|
278
|
+
clientstyling: 11,
|
|
279
|
+
identifier: 12,
|
|
280
|
+
clientstylingurl: 13,
|
|
281
|
+
endpoint: 14,
|
|
282
|
+
haspanicbutton: 1,
|
|
283
|
+
gamepagemodalurl: 15,
|
|
284
|
+
sessioncheck: 16,
|
|
285
|
+
integratedgameframedesktop: 17,
|
|
286
|
+
mbsource: 18
|
|
287
|
+
},
|
|
288
|
+
ye,
|
|
289
|
+
[-1, -1]
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
get duration() {
|
|
293
|
+
return this.$$.ctx[0];
|
|
294
|
+
}
|
|
295
|
+
set duration(e) {
|
|
296
|
+
this.$$set({ duration: e }), m();
|
|
297
|
+
}
|
|
298
|
+
get session() {
|
|
299
|
+
return this.$$.ctx[9];
|
|
300
|
+
}
|
|
301
|
+
set session(e) {
|
|
302
|
+
this.$$set({ session: e }), m();
|
|
303
|
+
}
|
|
304
|
+
get userid() {
|
|
305
|
+
return this.$$.ctx[10];
|
|
306
|
+
}
|
|
307
|
+
set userid(e) {
|
|
308
|
+
this.$$set({ userid: e }), m();
|
|
309
|
+
}
|
|
310
|
+
get clientstyling() {
|
|
311
|
+
return this.$$.ctx[11];
|
|
312
|
+
}
|
|
313
|
+
set clientstyling(e) {
|
|
314
|
+
this.$$set({ clientstyling: e }), m();
|
|
315
|
+
}
|
|
316
|
+
get identifier() {
|
|
317
|
+
return this.$$.ctx[12];
|
|
318
|
+
}
|
|
319
|
+
set identifier(e) {
|
|
320
|
+
this.$$set({ identifier: e }), m();
|
|
321
|
+
}
|
|
322
|
+
get clientstylingurl() {
|
|
323
|
+
return this.$$.ctx[13];
|
|
324
|
+
}
|
|
325
|
+
set clientstylingurl(e) {
|
|
326
|
+
this.$$set({ clientstylingurl: e }), m();
|
|
327
|
+
}
|
|
328
|
+
get endpoint() {
|
|
329
|
+
return this.$$.ctx[14];
|
|
330
|
+
}
|
|
331
|
+
set endpoint(e) {
|
|
332
|
+
this.$$set({ endpoint: e }), m();
|
|
333
|
+
}
|
|
334
|
+
get haspanicbutton() {
|
|
335
|
+
return this.$$.ctx[1];
|
|
336
|
+
}
|
|
337
|
+
set haspanicbutton(e) {
|
|
338
|
+
this.$$set({ haspanicbutton: e }), m();
|
|
339
|
+
}
|
|
340
|
+
get gamepagemodalurl() {
|
|
341
|
+
return this.$$.ctx[15];
|
|
342
|
+
}
|
|
343
|
+
set gamepagemodalurl(e) {
|
|
344
|
+
this.$$set({ gamepagemodalurl: e }), m();
|
|
345
|
+
}
|
|
346
|
+
get sessioncheck() {
|
|
347
|
+
return this.$$.ctx[16];
|
|
348
|
+
}
|
|
349
|
+
set sessioncheck(e) {
|
|
350
|
+
this.$$set({ sessioncheck: e }), m();
|
|
351
|
+
}
|
|
352
|
+
get integratedgameframedesktop() {
|
|
353
|
+
return this.$$.ctx[17];
|
|
354
|
+
}
|
|
355
|
+
set integratedgameframedesktop(e) {
|
|
356
|
+
this.$$set({ integratedgameframedesktop: e }), m();
|
|
357
|
+
}
|
|
358
|
+
get mbsource() {
|
|
359
|
+
return this.$$.ctx[18];
|
|
360
|
+
}
|
|
361
|
+
set mbsource(e) {
|
|
362
|
+
this.$$set({ mbsource: e }), m();
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
se(Ce, { duration: {}, session: {}, userid: {}, clientstyling: {}, identifier: {}, clientstylingurl: {}, endpoint: {}, haspanicbutton: {}, gamepagemodalurl: {}, sessioncheck: {}, integratedgameframedesktop: {}, mbsource: {} }, ["default", "close"], [], !0);
|
|
366
|
+
export {
|
|
367
|
+
Ce as default
|
|
368
|
+
};
|
package/components/{CasinoMostPlayedSection-DQ_xJPuX.cjs → CasinoMostPlayedSection-CaHWOtw_.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-BlfnJwZ-.cjs");require("./CasinoFavoritesSection-Dc3krq_m.cjs");function D(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const R={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};function W(n){t.append_styles(n,"svelte-14zqglz","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:L="false"}=e,{integratedgameframedesktop:S="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:A=""}=e,{visiblegames:k}=e,{favorites:E=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:T="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{D(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(R).forEach(s=>{D(s,R[s])});let G=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${h}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,_)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let p=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,p=!1),p}),d(g)}).catch(g=>{console.error(g),_(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:C}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(_=>_.json())):l.push(fetch(d.href).then(_=>_.json()))}),Promise.all(l).then(u=>{G=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(G=G.slice(0,JSON.parse(k))),window.postMessage({type:"MostPlayedData",mostPlayedGames:G},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,L=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,S=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,M=s.gamepagemodalurl),"showgamename"in s&&a(12,A=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,E=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,C=s.mostplayedrounds),"fetchviaevent"in s&&a(16,T=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,j,h,y,v,b,L,S,M,A,k,E,N,T,f,O,i,w,P,C,K]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-P6bQ-mxN.cjs");require("./CasinoFavoritesSection-CcyN5mtI.cjs");function D(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const R={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};function W(n){t.append_styles(n,"svelte-14zqglz","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:L="false"}=e,{integratedgameframedesktop:S="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:A=""}=e,{visiblegames:k}=e,{favorites:E=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:T="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{D(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(R).forEach(s=>{D(s,R[s])});let G=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${h}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,_)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let p=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,p=!1),p}),d(g)}).catch(g=>{console.error(g),_(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:C}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(_=>_.json())):l.push(fetch(d.href).then(_=>_.json()))}),Promise.all(l).then(u=>{G=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(G=G.slice(0,JSON.parse(k))),window.postMessage({type:"MostPlayedData",mostPlayedGames:G},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,L=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,S=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,M=s.gamepagemodalurl),"showgamename"in s&&a(12,A=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,E=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,C=s.mostplayedrounds),"fetchviaevent"in s&&a(16,T=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,j,h,y,v,b,L,S,M,A,k,E,N,T,f,O,i,w,P,C,K]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
|
package/components/{CasinoMostPlayedSection-DIF7og_k.js → CasinoMostPlayedSection-CpO0b2PN.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as ee, $ as te, S as se, i as ae,
|
|
2
|
-
import "./CasinoFavoritesSection-
|
|
3
|
-
function
|
|
1
|
+
import { a as ee, $ as te, S as se, i as ae, f as l, c as ne, s as ie, b as oe, e as N, v as M, d as S, w as J, D as H, j as A, k as le, M as me, n as re, P as n, u as ge, B as ce, F as de } from "./CasinoCalendar-BKvw2GLN.js";
|
|
2
|
+
import "./CasinoFavoritesSection-B4JlTRNa.js";
|
|
3
|
+
function I(a, e) {
|
|
4
4
|
ee(a, e);
|
|
5
5
|
}
|
|
6
6
|
function ue(a) {
|
|
7
7
|
te.set(a);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const B = {
|
|
10
10
|
en: {
|
|
11
11
|
noGames: "No games in most played"
|
|
12
12
|
},
|
|
@@ -63,7 +63,7 @@ const J = {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
function fe(a) {
|
|
66
|
-
|
|
66
|
+
oe(a, "svelte-14zqglz", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
|
|
67
67
|
}
|
|
68
68
|
function he(a) {
|
|
69
69
|
let e;
|
|
@@ -157,7 +157,7 @@ function he(a) {
|
|
|
157
157
|
);
|
|
158
158
|
},
|
|
159
159
|
m(s, i) {
|
|
160
|
-
|
|
160
|
+
S(s, e, i);
|
|
161
161
|
},
|
|
162
162
|
p(s, i) {
|
|
163
163
|
i[0] & /*session*/
|
|
@@ -265,7 +265,7 @@ function he(a) {
|
|
|
265
265
|
);
|
|
266
266
|
},
|
|
267
267
|
d(s) {
|
|
268
|
-
s &&
|
|
268
|
+
s && A(e);
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
}
|
|
@@ -276,18 +276,18 @@ function ye(a) {
|
|
|
276
276
|
), i;
|
|
277
277
|
return {
|
|
278
278
|
c() {
|
|
279
|
-
e = N("p"), i = ge(s),
|
|
279
|
+
e = N("p"), i = ge(s), M(e, "class", "SearchLoading");
|
|
280
280
|
},
|
|
281
281
|
m(r, m) {
|
|
282
|
-
|
|
282
|
+
S(r, e, m), J(e, i);
|
|
283
283
|
},
|
|
284
284
|
p(r, m) {
|
|
285
285
|
m[0] & /*$_*/
|
|
286
286
|
524288 && s !== (s = /*$_*/
|
|
287
|
-
r[19]("noGames") + "") &&
|
|
287
|
+
r[19]("noGames") + "") && ce(i, s);
|
|
288
288
|
},
|
|
289
289
|
d(r) {
|
|
290
|
-
r &&
|
|
290
|
+
r && A(e);
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
293
|
}
|
|
@@ -302,44 +302,44 @@ function ve(a) {
|
|
|
302
302
|
let r = i(a), m = r(a);
|
|
303
303
|
return {
|
|
304
304
|
c() {
|
|
305
|
-
e = N("div"), s = N("div"), m.c(),
|
|
305
|
+
e = N("div"), s = N("div"), m.c(), M(s, "class", "casino-most-played-section"), M(e, "class", "CasinoGamesCategorySectionContainer");
|
|
306
306
|
},
|
|
307
307
|
m(g, c) {
|
|
308
|
-
|
|
308
|
+
S(g, e, c), J(e, s), m.m(s, null), a[23](e);
|
|
309
309
|
},
|
|
310
310
|
p(g, c) {
|
|
311
311
|
r === (r = i(g)) && m ? m.p(g, c) : (m.d(1), m = r(g), m && (m.c(), m.m(s, null)));
|
|
312
312
|
},
|
|
313
|
-
i:
|
|
314
|
-
o:
|
|
313
|
+
i: H,
|
|
314
|
+
o: H,
|
|
315
315
|
d(g) {
|
|
316
|
-
g &&
|
|
316
|
+
g && A(e), m.d(), a[23](null);
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
function be(a, e, s) {
|
|
321
321
|
let i;
|
|
322
|
-
|
|
323
|
-
let { endpoint: r = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: w = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl:
|
|
324
|
-
const
|
|
322
|
+
le(a, de, (t) => s(19, i = t));
|
|
323
|
+
let { endpoint: r = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: w = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P } = e, { favorites: R = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: U = "true" } = e, Y = window.navigator.userAgent;
|
|
324
|
+
const K = () => {
|
|
325
325
|
fetch(k).then((o) => o.json()).then((o) => {
|
|
326
326
|
Object.keys(o).forEach((d) => {
|
|
327
|
-
|
|
327
|
+
I(d, o[d]);
|
|
328
328
|
});
|
|
329
329
|
}).catch((o) => {
|
|
330
330
|
console.log(o);
|
|
331
331
|
});
|
|
332
332
|
};
|
|
333
|
-
Object.keys(
|
|
334
|
-
|
|
333
|
+
Object.keys(B).forEach((t) => {
|
|
334
|
+
I(t, B[t]);
|
|
335
335
|
});
|
|
336
|
-
let G = [],
|
|
336
|
+
let G = [], z, p = !1, h;
|
|
337
337
|
const Q = (t) => {
|
|
338
338
|
let o = new URL(`${r}/v1/player/${v}/games/most-played`);
|
|
339
339
|
t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", j);
|
|
340
340
|
let d = t.device;
|
|
341
|
-
return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds),
|
|
342
|
-
fetch(
|
|
341
|
+
return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), z = w ? o : o.href, new Promise((u, y) => {
|
|
342
|
+
fetch(z).then((f) => f.json()).then((f) => {
|
|
343
343
|
f.items = f.items.filter(($) => {
|
|
344
344
|
let q = !0;
|
|
345
345
|
return $.gameCode == "OddsMatrix2" && (f.count--, q = !1), q;
|
|
@@ -351,7 +351,7 @@ function be(a, e, s) {
|
|
|
351
351
|
}, V = () => {
|
|
352
352
|
Q({
|
|
353
353
|
limit: 100,
|
|
354
|
-
device:
|
|
354
|
+
device: me(Y),
|
|
355
355
|
rounds: L
|
|
356
356
|
}).then((t) => {
|
|
357
357
|
if (t.count > 0) {
|
|
@@ -363,7 +363,7 @@ function be(a, e, s) {
|
|
|
363
363
|
G = d.filter((u) => !("error" in u)).map((u) => u[0]), C === "true" && (G = G.slice(0, JSON.parse(P))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: G }, window.location.href);
|
|
364
364
|
});
|
|
365
365
|
} else
|
|
366
|
-
s(18,
|
|
366
|
+
s(18, p = !0);
|
|
367
367
|
});
|
|
368
368
|
}, W = () => {
|
|
369
369
|
ue(c);
|
|
@@ -382,18 +382,18 @@ function be(a, e, s) {
|
|
|
382
382
|
});
|
|
383
383
|
};
|
|
384
384
|
function x(t) {
|
|
385
|
-
|
|
385
|
+
re[t ? "unshift" : "push"](() => {
|
|
386
386
|
h = t, s(17, h);
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
return a.$$set = (t) => {
|
|
390
|
-
"endpoint" in t && s(0, r = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, E = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, _ = t.clientstylingurl), "livecasino" in t && s(8, w = t.livecasino), "integratedgameframemobile" in t && s(9, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11,
|
|
390
|
+
"endpoint" in t && s(0, r = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, E = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, _ = t.clientstylingurl), "livecasino" in t && s(8, w = t.livecasino), "integratedgameframemobile" in t && s(9, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, D = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, R = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, L = t.mostplayedrounds), "fetchviaevent" in t && s(16, U = t.fetchviaevent);
|
|
391
391
|
}, a.$$.update = () => {
|
|
392
392
|
a.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
393
393
|
41 && r && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
394
394
|
131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
395
395
|
131200 && _ && h && Z(), a.$$.dirty[0] & /*translationurl*/
|
|
396
|
-
1048576 && k &&
|
|
396
|
+
1048576 && k && K(), a.$$.dirty[0] & /*lang*/
|
|
397
397
|
8 && c && W();
|
|
398
398
|
}, [
|
|
399
399
|
r,
|
|
@@ -407,14 +407,14 @@ function be(a, e, s) {
|
|
|
407
407
|
w,
|
|
408
408
|
F,
|
|
409
409
|
T,
|
|
410
|
-
O,
|
|
411
410
|
D,
|
|
411
|
+
O,
|
|
412
412
|
P,
|
|
413
413
|
R,
|
|
414
414
|
C,
|
|
415
415
|
U,
|
|
416
416
|
h,
|
|
417
|
-
|
|
417
|
+
p,
|
|
418
418
|
i,
|
|
419
419
|
k,
|
|
420
420
|
j,
|
|
@@ -429,7 +429,7 @@ class _e extends se {
|
|
|
429
429
|
e,
|
|
430
430
|
be,
|
|
431
431
|
ve,
|
|
432
|
-
|
|
432
|
+
ie,
|
|
433
433
|
{
|
|
434
434
|
endpoint: 0,
|
|
435
435
|
datasource: 1,
|
|
@@ -577,7 +577,7 @@ class _e extends se {
|
|
|
577
577
|
this.$$set({ fetchviaevent: e }), l();
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
ne(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
|
|
581
581
|
export {
|
|
582
582
|
_e as default
|
|
583
583
|
};
|