@everymatrix/casino-lobby 1.59.3 → 1.60.1
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-CI-C6zUY.js → CasinoCalendar-6ncpIgng.js} +718 -696
- package/components/CasinoCalendar-CkNAiTx8.cjs +22 -0
- package/components/{CasinoCalendar-BYTytQgJ.js → CasinoCalendar-Km8tdNHN.js} +712 -690
- package/components/{CasinoCalendarDailyDetails-Xi-Uo8v-.js → CasinoCalendarDailyDetails-CAbwFBvZ.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-DQB9Y3_Q.js → CasinoCalendarDailyDetails-CGaAU2gc.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-DUQWFLJJ.cjs → CasinoCalendarDailyDetails-CsEZhtVE.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-DC91__VM.js → CasinoCalendarDailyItem-5aqnKIMr.js} +41 -41
- package/components/{CasinoCalendarDailyItem-CVt2FFo1.cjs → CasinoCalendarDailyItem-DSlC0F3s.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-CjRZKnnD.js → CasinoCalendarDailyItem-D_MTrKed.js} +41 -41
- package/components/{CasinoCategoriesSlider-Cvb-krxJ.js → CasinoCategoriesSlider-DRIsr69C.js} +65 -65
- package/components/{CasinoCategoriesSlider-BeqGvJrA.js → CasinoCategoriesSlider-DYab11Z3.js} +66 -66
- package/components/CasinoCategoriesSlider-_X531XfJ.cjs +1 -0
- package/components/{CasinoCollectionsProviders-FGrPURo4.cjs → CasinoCollectionsProviders-B6occ8TF.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-BMyAx20Y.js → CasinoCollectionsProviders-B7d5LuGP.js} +73 -73
- package/components/{CasinoCollectionsProviders-B_4F6cIK.js → CasinoCollectionsProviders-pk8jpLQt.js} +71 -71
- package/components/{CasinoFavoritesSection-CBb3Eo8J.cjs → CasinoFavoritesSection-51a03OgV.cjs} +1 -1
- package/components/{CasinoFavoritesSection-Dmko0_Ik.js → CasinoFavoritesSection-a8e9F8Ga.js} +26 -26
- package/components/{CasinoFavoritesSection-BZmf5I3g.js → CasinoFavoritesSection-uCNlSq84.js} +26 -26
- package/components/{CasinoFilter-Dt8GhenI.js → CasinoFilter-BTof425X.js} +247 -246
- package/components/{CasinoFilter-BHLJqOwW.js → CasinoFilter-BWjq7W1e.js} +234 -235
- package/components/CasinoFilter-C2Q93qQz.cjs +1 -0
- package/components/{CasinoGamePage-D_TzJsC-.js → CasinoGamePage-Cp2CKRka.js} +742 -742
- package/components/{CasinoGamePage-BmgERtPr.cjs → CasinoGamePage-D2huRBJX.cjs} +6 -6
- package/components/{CasinoGamePage-5moXxd0d.js → CasinoGamePage-ssKF-ZD1.js} +741 -741
- package/components/{CasinoGameThumbnail-DSjNVacg.js → CasinoGameThumbnail-CrrXNmw1.js} +542 -510
- package/components/CasinoGameThumbnail-Dq26TPSU.cjs +38 -0
- package/components/{CasinoGameThumbnail-DqBpfUwf.js → CasinoGameThumbnail-GBvTkmL8.js} +476 -476
- package/components/{CasinoGamesCategorySection-Ce43OSOZ.js → CasinoGamesCategorySection-BGemjnwH.js} +247 -247
- package/components/{CasinoGamesCategorySection-d8QOFywW.js → CasinoGamesCategorySection-CHynVnZ8.js} +247 -247
- package/components/CasinoGamesCategorySection-CYKXSIYS.cjs +1 -0
- package/components/{CasinoJackpotBanner-Dxq2Y_-S.js → CasinoJackpotBanner-CuP8WP5Q.js} +74 -74
- package/components/{CasinoJackpotBanner-UQaC63Zv.js → CasinoJackpotBanner-Dl2rX6vI.js} +69 -69
- package/components/{CasinoJackpotBanner-B_CnR3Kj.cjs → CasinoJackpotBanner-DredUN6K.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-CyL83M3y.cjs → CasinoLastPlayedSection-B64b2eJF.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-BVANPPTi.js → CasinoLastPlayedSection-BGk4k--h.js} +43 -43
- package/components/{CasinoLastPlayedSection-Bmr8n1pA.js → CasinoLastPlayedSection-CyKppEbZ.js} +43 -43
- package/components/{CasinoLobby-DUI1Ki3q.js → CasinoLobby-CN5AmC5K.js} +47 -47
- package/components/{CasinoLobby-os94WdnE.cjs → CasinoLobby-DddN7Gev.cjs} +1 -1
- package/components/{CasinoLobby-CWzN0imw.js → CasinoLobby-PcRgXAeR.js} +45 -45
- package/components/{CasinoModal-BaV1FE12.js → CasinoModal-B9Gmdwc0.js} +41 -41
- package/components/{CasinoModal-Bn6r73ff.js → CasinoModal-DLgyWFbs.js} +41 -41
- package/components/{CasinoModal-DWbCqr0p.cjs → CasinoModal-d1VUXUWj.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-B4SHGVp4.js → CasinoMostPlayedSection-C-D6CJKY.js} +50 -50
- package/components/{CasinoMostPlayedSection-y-GWnOes.cjs → CasinoMostPlayedSection-QIdWMIjm.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CD00UC6r.js → CasinoMostPlayedSection-qIiZdQQG.js} +50 -50
- package/components/{CasinoMyGames-BBsq56wQ.js → CasinoMyGames-DjXz5K51.js} +50 -50
- package/components/{CasinoMyGames-DKu8rYmc.cjs → CasinoMyGames-Dy1sj15h.cjs} +1 -1
- package/components/{CasinoMyGames-DRCL87dq.js → CasinoMyGames-Wpdq0oL6.js} +53 -53
- package/components/{CasinoPage-BJ2hLXJb.js → CasinoPage-D1fSPDEj.js} +93 -93
- package/components/{CasinoPage-DXP80Vgm.js → CasinoPage-DMCyJTE2.js} +85 -85
- package/components/{CasinoPage-CXAKd3oS.cjs → CasinoPage-DhSkte5y.cjs} +1 -1
- package/components/{CasinoRandomGame-BO7BqLXA.cjs → CasinoRandomGame-CBcSHzZL.cjs} +1 -1
- package/components/{CasinoRandomGame-CsA5xgwc.js → CasinoRandomGame-CfOiAKHl.js} +63 -63
- package/components/{CasinoRandomGame-DLzqJj4x.js → CasinoRandomGame-CqripZYr.js} +64 -64
- package/components/{CasinoSearch-CzUqsTgU.js → CasinoSearch-BgD0xvTa.js} +105 -104
- package/components/CasinoSearch-CRhnd9Yq.cjs +1 -0
- package/components/{CasinoSearch-atJ6AGYa.js → CasinoSearch-DOguc7Dt.js} +105 -104
- package/components/CasinoSlider---x4M_hm.js +803 -0
- package/components/CasinoSlider-BsszznrS.cjs +1 -0
- package/components/{CasinoSlider-DjqwMakd.js → CasinoSlider-PeKujgAE.js} +114 -114
- package/components/{CasinoSort-DtUIrmuZ.js → CasinoSort-BRC8Jmi_.js} +103 -104
- package/components/{CasinoSort-23PYwtO1.cjs → CasinoSort-C78a6veQ.cjs} +1 -1
- package/components/{CasinoSort-B3A_Ar_A.js → CasinoSort-xZsxfLYC.js} +111 -110
- package/components/{CasinoWinners-Gb2w2dXe.js → CasinoWinners-BEOhs5WG.js} +179 -179
- package/components/{CasinoWinners-KEY7dD3z.cjs → CasinoWinners-Cp1yMlzb.cjs} +1 -1
- package/components/{CasinoWinners-CF_PptIS.js → CasinoWinners-DD8ZyQkV.js} +162 -162
- package/components/{GeneralAnimationLoading-B-6s0l9d.cjs → GeneralAnimationLoading-Bl6_sP-d.cjs} +1 -1
- package/components/{GeneralAnimationLoading-8TvNjXay.js → GeneralAnimationLoading-CURVDkRT.js} +16 -16
- package/components/{GeneralAnimationLoading-Bbxdne1m.js → GeneralAnimationLoading-uswxvfCW.js} +16 -16
- 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-Dm8A9dTR.js → casino-play-random-game-BW66Civ1.js} +2 -2
- package/stencil/{casino-play-random-game-CLSQBVzD.js → casino-play-random-game-Bk7toWLj.js} +2 -2
- package/stencil/{casino-play-random-game-CdZKN03s.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
- package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
- package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
- package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
- package/stencil/index-b2193545-BDVBrmNo.js +503 -0
- package/stencil/index-b2193545-CY979_sp.js +519 -0
- package/stencil/index-b2193545-DPplmtxO.cjs +1 -0
- package/stencil/{ui-skeleton-Bz6cw7xJ.js → ui-skeleton-BpUWeWAr.js} +6 -6
- package/stencil/ui-skeleton-D2GYc4Vd.cjs +1 -0
- package/stencil/ui-skeleton-ea659b95-CaDtZrvR.js +152 -0
- package/stencil/ui-skeleton-ea659b95-CvOjl779.cjs +73 -0
- package/stencil/ui-skeleton-ea659b95-DmKUoob8.js +152 -0
- package/stencil/{ui-skeleton-DDYD_XHU.js → ui-skeleton-sAoxznwb.js} +12 -12
- package/components/CasinoCalendar-DqS7aKva.cjs +0 -22
- package/components/CasinoCategoriesSlider-DZpvR9sw.cjs +0 -1
- package/components/CasinoFilter-Bg-VilMd.cjs +0 -1
- package/components/CasinoGameThumbnail-OrvrYv4V.cjs +0 -38
- package/components/CasinoGamesCategorySection-DEh7yuGp.cjs +0 -1
- package/components/CasinoSearch-CxFbGTdy.cjs +0 -1
- package/components/CasinoSlider-CgiDJzPs.cjs +0 -1
- package/components/CasinoSlider-zHVThApL.js +0 -803
- package/stencil/index-ab3202d6-C1hgKWrC.cjs +0 -1
- package/stencil/index-ab3202d6-OPh7hJp9.js +0 -575
- package/stencil/index-ab3202d6-hGs51skN.js +0 -559
- package/stencil/index-ae04a8b1-BhaHMrLE.js +0 -516
- package/stencil/index-ae04a8b1-Dn3cponN.js +0 -532
- package/stencil/index-ae04a8b1-jEvGbYrB.cjs +0 -1
- package/stencil/ui-skeleton-D9k-xWaS.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-Bg6oYmhk.js +0 -122
- package/stencil/ui-skeleton-a642cced-CVw8zpGJ.cjs +0 -1
- package/stencil/ui-skeleton-a642cced-MvzXi5-c.js +0 -122
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a2 as ee, S as te, i as ie,
|
|
1
|
+
import { a2 as ee, S as te, i as ie, f as m, c as se, s as ne, b as oe, K as ae, d as H, h as F, t as W, g as le, j, o as re, l as de, u as R, e as B, w as ue, y as r, a3 as q, z, a4 as ce, A as fe, B as A, C as O, D as P, a5 as U, n as ge, p as E, X as me, q as x, r as he, m as we, J, G as _e } from "./CasinoCalendar-6ncpIgng.js";
|
|
2
2
|
function K(s, { delay: e = 0, duration: t = 400, easing: n = ee } = {}) {
|
|
3
3
|
const o = +getComputedStyle(s).opacity;
|
|
4
4
|
return {
|
|
@@ -9,7 +9,7 @@ function K(s, { delay: e = 0, duration: t = 400, easing: n = ee } = {}) {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
function ye(s) {
|
|
12
|
-
|
|
12
|
+
oe(s, "svelte-1durwr3", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.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
13
|
}
|
|
14
14
|
const be = (s) => ({}), N = (s) => ({});
|
|
15
15
|
function V(s) {
|
|
@@ -35,19 +35,19 @@ function V(s) {
|
|
|
35
35
|
), f = h || pe();
|
|
36
36
|
return {
|
|
37
37
|
c() {
|
|
38
|
-
e = B("div"), t = B("div"), n = B("div"), d && d.c(), o =
|
|
38
|
+
e = B("div"), t = B("div"), n = B("div"), d && d.c(), o = ue(), l = B("span"), f && f.c(), r(n, "class", "ModalContainer"), r(n, "part", "ModalContainer"), r(l, "class", w = "ModalCloseBtn " + /*haspanicbutton*/
|
|
39
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"),
|
|
40
|
+
s[3] ? "ModalPanicCloseButton" : "")), r(l, "role", "button"), r(t, "class", "ModalWindow"), r(t, "part", "ModalWindow"), r(t, "id", "Modal"), q(() => (
|
|
41
41
|
/*div1_elementresize_handler*/
|
|
42
42
|
s[22].call(t)
|
|
43
43
|
)), r(e, "part", "CustomStylingContainer");
|
|
44
44
|
},
|
|
45
45
|
m(a, g) {
|
|
46
|
-
|
|
46
|
+
H(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
47
|
t,
|
|
48
48
|
/*div1_elementresize_handler*/
|
|
49
49
|
s[22].bind(t)
|
|
50
|
-
), s[23](e), u = !0, b || (p =
|
|
50
|
+
), s[23](e), u = !0, b || (p = fe(
|
|
51
51
|
l,
|
|
52
52
|
"click",
|
|
53
53
|
/*close*/
|
|
@@ -56,37 +56,37 @@ function V(s) {
|
|
|
56
56
|
},
|
|
57
57
|
p(a, g) {
|
|
58
58
|
s = a, d && d.p && (!u || g[0] & /*$$scope*/
|
|
59
|
-
524288) &&
|
|
59
|
+
524288) && A(
|
|
60
60
|
d,
|
|
61
61
|
C,
|
|
62
62
|
s,
|
|
63
63
|
/*$$scope*/
|
|
64
64
|
s[19],
|
|
65
|
-
u ?
|
|
65
|
+
u ? P(
|
|
66
66
|
C,
|
|
67
67
|
/*$$scope*/
|
|
68
68
|
s[19],
|
|
69
69
|
g,
|
|
70
70
|
null
|
|
71
|
-
) :
|
|
71
|
+
) : O(
|
|
72
72
|
/*$$scope*/
|
|
73
73
|
s[19]
|
|
74
74
|
),
|
|
75
75
|
null
|
|
76
76
|
), h && h.p && (!u || g[0] & /*$$scope*/
|
|
77
|
-
524288) &&
|
|
77
|
+
524288) && A(
|
|
78
78
|
h,
|
|
79
79
|
M,
|
|
80
80
|
s,
|
|
81
81
|
/*$$scope*/
|
|
82
82
|
s[19],
|
|
83
|
-
u ?
|
|
83
|
+
u ? P(
|
|
84
84
|
M,
|
|
85
85
|
/*$$scope*/
|
|
86
86
|
s[19],
|
|
87
87
|
g,
|
|
88
88
|
be
|
|
89
|
-
) :
|
|
89
|
+
) : O(
|
|
90
90
|
/*$$scope*/
|
|
91
91
|
s[19]
|
|
92
92
|
),
|
|
@@ -97,21 +97,21 @@ function V(s) {
|
|
|
97
97
|
s[3] ? "ModalPanicCloseButton" : ""))) && r(l, "class", w);
|
|
98
98
|
},
|
|
99
99
|
i(a) {
|
|
100
|
-
u || (F(d, a), F(f, a), a &&
|
|
101
|
-
u && (c || (c =
|
|
100
|
+
u || (F(d, a), F(f, a), a && q(() => {
|
|
101
|
+
u && (c || (c = U(t, K, { transitionDuration: (
|
|
102
102
|
/*duration*/
|
|
103
103
|
s[0]
|
|
104
104
|
) }, !0)), c.run(1));
|
|
105
105
|
}), u = !0);
|
|
106
106
|
},
|
|
107
107
|
o(a) {
|
|
108
|
-
W(d, a), W(f, a), a && (c || (c =
|
|
108
|
+
W(d, a), W(f, a), a && (c || (c = U(t, K, { transitionDuration: (
|
|
109
109
|
/*duration*/
|
|
110
110
|
s[0]
|
|
111
111
|
) }, !1)), c.run(0)), u = !1;
|
|
112
112
|
},
|
|
113
113
|
d(a) {
|
|
114
|
-
a &&
|
|
114
|
+
a && j(e), d && d.d(a), f && f.d(a), s[21](null), k(), a && c && c.end(), s[23](null), b = !1, p();
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
}
|
|
@@ -122,11 +122,11 @@ function pe(s) {
|
|
|
122
122
|
e = J("svg"), t = J("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
123
|
},
|
|
124
124
|
m(n, o) {
|
|
125
|
-
|
|
125
|
+
H(n, e, o), z(e, t);
|
|
126
126
|
},
|
|
127
|
-
p:
|
|
127
|
+
p: _e,
|
|
128
128
|
d(n) {
|
|
129
|
-
n &&
|
|
129
|
+
n && j(e);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -137,17 +137,17 @@ function Me(s) {
|
|
|
137
137
|
);
|
|
138
138
|
return {
|
|
139
139
|
c() {
|
|
140
|
-
n && n.c(), e =
|
|
140
|
+
n && n.c(), e = ae();
|
|
141
141
|
},
|
|
142
142
|
m(o, l) {
|
|
143
|
-
n && n.m(o, l),
|
|
143
|
+
n && n.m(o, l), H(o, e, l), t = !0;
|
|
144
144
|
},
|
|
145
145
|
p(o, l) {
|
|
146
146
|
/*show*/
|
|
147
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 && (
|
|
148
|
+
128 && F(n, 1)) : (n = V(o), n.c(), F(n, 1), n.m(e.parentNode, e)) : n && (ge(), W(n, 1, 1, () => {
|
|
149
149
|
n = null;
|
|
150
|
-
}),
|
|
150
|
+
}), le());
|
|
151
151
|
},
|
|
152
152
|
i(o) {
|
|
153
153
|
t || (F(n), t = !0);
|
|
@@ -156,12 +156,12 @@ function Me(s) {
|
|
|
156
156
|
W(n), t = !1;
|
|
157
157
|
},
|
|
158
158
|
d(o) {
|
|
159
|
-
o &&
|
|
159
|
+
o && j(e), n && n.d(o);
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
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, v = !1, _, y,
|
|
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, v = !1, _, y, D, G, S = !1;
|
|
165
165
|
const X = () => {
|
|
166
166
|
t(7, S = !1), t(3, g = E(a)), window.postMessage(
|
|
167
167
|
{
|
|
@@ -172,7 +172,7 @@ function ke(s, e, t) {
|
|
|
172
172
|
},
|
|
173
173
|
window.location.href
|
|
174
174
|
);
|
|
175
|
-
},
|
|
175
|
+
}, L = (i) => {
|
|
176
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" || E(a)) && t(7, S = !1), i.data.type === "ShowGameModal" && (t(7, S = !0), window.postMessage(
|
|
177
177
|
{
|
|
178
178
|
type: "GameLaunchID",
|
|
@@ -187,23 +187,23 @@ function ke(s, e, t) {
|
|
|
187
187
|
},
|
|
188
188
|
window.location.href
|
|
189
189
|
), h === "false" && window.postMessage({ type: "DisableScroll" }, window.location.href)), i.data.type === "RequestModalSize") {
|
|
190
|
-
let
|
|
190
|
+
let I = {
|
|
191
191
|
modalWidth: _ ? getComputedStyle(_).width : null,
|
|
192
192
|
modalHeight: _ ? getComputedStyle(_).height : null
|
|
193
193
|
};
|
|
194
|
-
window.postMessage({ type: "ModalSize", modalContainerSize:
|
|
194
|
+
window.postMessage({ type: "ModalSize", modalContainerSize: I }, window.location.href);
|
|
195
195
|
}
|
|
196
196
|
i.data.type === "GameStateOnResize" && (v = i.data.detailsObtained);
|
|
197
197
|
}, Q = (i) => {
|
|
198
198
|
if (v) {
|
|
199
|
-
let
|
|
199
|
+
let I = {
|
|
200
200
|
modalWidth: getComputedStyle(_).width,
|
|
201
201
|
modalHeight: getComputedStyle(_).height
|
|
202
202
|
};
|
|
203
|
-
window.postMessage({ type: "ModalSize", modalContainerSize:
|
|
203
|
+
window.postMessage({ type: "ModalSize", modalContainerSize: I }, window.location.href);
|
|
204
204
|
}
|
|
205
205
|
}, T = () => {
|
|
206
|
-
M == "true" &&
|
|
206
|
+
M == "true" && me(p, w).then(
|
|
207
207
|
(i) => {
|
|
208
208
|
i.Guid, i.UserID;
|
|
209
209
|
},
|
|
@@ -212,19 +212,19 @@ function ke(s, e, t) {
|
|
|
212
212
|
}
|
|
213
213
|
);
|
|
214
214
|
};
|
|
215
|
-
re(() => (t(3, g = E(a)), window.addEventListener("message",
|
|
216
|
-
window.removeEventListener("message",
|
|
215
|
+
re(() => (t(3, g = E(a)), window.addEventListener("message", L, !1), window.addEventListener("resize", Q, !1), () => {
|
|
216
|
+
window.removeEventListener("message", L), window.removeEventListener("resize", L);
|
|
217
217
|
}));
|
|
218
218
|
function Y(i) {
|
|
219
|
-
|
|
219
|
+
x[i ? "unshift" : "push"](() => {
|
|
220
220
|
_ = i, t(4, _);
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
function Z() {
|
|
224
|
-
|
|
224
|
+
D = this.clientWidth, G = this.clientHeight, t(5, D), t(6, G);
|
|
225
225
|
}
|
|
226
226
|
function $(i) {
|
|
227
|
-
|
|
227
|
+
x[i ? "unshift" : "push"](() => {
|
|
228
228
|
y = i, t(2, y);
|
|
229
229
|
});
|
|
230
230
|
}
|
|
@@ -233,8 +233,8 @@ function ke(s, e, t) {
|
|
|
233
233
|
}, s.$$.update = () => {
|
|
234
234
|
s.$$.dirty[0] & /*session, userid, endpoint*/
|
|
235
235
|
17920 && w && k && p && T(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
236
|
-
2052 && c && y &&
|
|
237
|
-
8196 && b && y &&
|
|
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
238
|
262148 && y && we(y, `${f}.Style`);
|
|
239
239
|
}, [
|
|
240
240
|
l,
|
|
@@ -242,8 +242,8 @@ function ke(s, e, t) {
|
|
|
242
242
|
y,
|
|
243
243
|
g,
|
|
244
244
|
_,
|
|
245
|
-
L,
|
|
246
245
|
D,
|
|
246
|
+
G,
|
|
247
247
|
S,
|
|
248
248
|
X,
|
|
249
249
|
w,
|
|
@@ -270,7 +270,7 @@ class Ce extends te {
|
|
|
270
270
|
e,
|
|
271
271
|
ke,
|
|
272
272
|
Me,
|
|
273
|
-
|
|
273
|
+
ne,
|
|
274
274
|
{
|
|
275
275
|
duration: 0,
|
|
276
276
|
session: 9,
|
|
@@ -362,7 +362,7 @@ class Ce extends te {
|
|
|
362
362
|
this.$$set({ mbsource: e }), m();
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
se(Ce, { duration: {}, session: {}, userid: {}, clientstyling: {}, identifier: {}, clientstylingurl: {}, endpoint: {}, haspanicbutton: {}, gamepagemodalurl: {}, sessioncheck: {}, integratedgameframedesktop: {}, mbsource: {} }, ["default", "close"], [], !0);
|
|
366
366
|
export {
|
|
367
367
|
Ce as default
|
|
368
368
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CkNAiTx8.cjs");function D(s,{delay:t=0,duration:i=400,easing:o=e.identity}={}){const l=+getComputedStyle(s).opacity;return{delay:t,duration:i,easing:o,css:r=>`opacity: ${r*l}`}}function R(s){e.append_styles(s,"svelte-1durwr3","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.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)}")}const q=s=>({}),L=s=>({});function G(s){let t,i,o,l,r,h,M,c,u,b,y;const k=s[20].default,d=e.create_slot(k,s,s[19],null),p=s[20].close,m=e.create_slot(p,s,s[19],L),f=m||A();return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),d&&d.c(),l=e.space(),r=e.element("span"),f&&f.c(),e.attr(o,"class","ModalContainer"),e.attr(o,"part","ModalContainer"),e.attr(r,"class",h="ModalCloseBtn "+(s[1]=="true"&&s[3]?"ModalPanicCloseButton":"")),e.attr(r,"role","button"),e.attr(i,"class","ModalWindow"),e.attr(i,"part","ModalWindow"),e.attr(i,"id","Modal"),e.add_render_callback(()=>s[22].call(i)),e.attr(t,"part","CustomStylingContainer")},m(a,g){e.insert(a,t,g),e.append(t,i),e.append(i,o),d&&d.m(o,null),e.append(i,l),e.append(i,r),f&&f.m(r,null),s[21](i),M=e.add_iframe_resize_listener(i,s[22].bind(i)),s[23](t),u=!0,b||(y=e.listen(r,"click",s[8]),b=!0)},p(a,g){s=a,d&&d.p&&(!u||g[0]&524288)&&e.update_slot_base(d,k,s,s[19],u?e.get_slot_changes(k,s[19],g,null):e.get_all_dirty_from_scope(s[19]),null),m&&m.p&&(!u||g[0]&524288)&&e.update_slot_base(m,p,s,s[19],u?e.get_slot_changes(p,s[19],g,q):e.get_all_dirty_from_scope(s[19]),L),(!u||g[0]&10&&h!==(h="ModalCloseBtn "+(s[1]=="true"&&s[3]?"ModalPanicCloseButton":"")))&&e.attr(r,"class",h)},i(a){u||(e.transition_in(d,a),e.transition_in(f,a),a&&e.add_render_callback(()=>{u&&(c||(c=e.create_bidirectional_transition(i,D,{transitionDuration:s[0]},!0)),c.run(1))}),u=!0)},o(a){e.transition_out(d,a),e.transition_out(f,a),a&&(c||(c=e.create_bidirectional_transition(i,D,{transitionDuration:s[0]},!1)),c.run(0)),u=!1},d(a){a&&e.detach(t),d&&d.d(a),f&&f.d(a),s[21](null),M(),a&&c&&c.end(),s[23](null),b=!1,y()}}}function A(s){let t,i;return{c(){t=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"stroke-linecap","round"),e.attr(i,"stroke-linejoin","round"),e.attr(i,"stroke-width","2"),e.attr(i,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,l){e.insert(o,t,l),e.append(t,i)},p:e.noop,d(o){o&&e.detach(t)}}}function U(s){let t,i,o=s[7]&&G(s);return{c(){o&&o.c(),t=e.empty()},m(l,r){o&&o.m(l,r),e.insert(l,t,r),i=!0},p(l,r){l[7]?o?(o.p(l,r),r[0]&128&&e.transition_in(o,1)):(o=G(l),o.c(),e.transition_in(o,1),o.m(t.parentNode,t)):o&&(e.group_outros(),e.transition_out(o,1,1,()=>{o=null}),e.check_outros())},i(l){i||(e.transition_in(o),i=!0)},o(l){e.transition_out(o),i=!1},d(l){l&&e.detach(t),o&&o.d(l)}}}function N(s,t,i){let{$$slots:o={},$$scope:l}=t,{duration:r=350}=t,{session:h=""}=t,{userid:M=""}=t,{clientstyling:c=""}=t,{identifier:u=""}=t,{clientstylingurl:b=""}=t,{endpoint:y=""}=t,{haspanicbutton:k="false"}=t,{gamepagemodalurl:d="false"}=t,{sessioncheck:p="true"}=t,{integratedgameframedesktop:m="false"}=t,{mbsource:f}=t,a=window.navigator.userAgent,g=!1,B=!1,_,w,S,z,C=!1;const v=()=>{i(7,C=!1),i(3,g=e.isMobile(a)),window.postMessage({type:"ModalClosed",gamepagemodalurl:d,mobileView:g,closeIntegratedGameFrameDesktop:!0},window.location.href)},F=n=>{if(n.data.type=="ShowModal"&&u==n.data.identifier&&(i(7,C=!0),window.postMessage({type:"DisableScroll"},window.location.href)),n.data.type=="ModalClosed"&&(m==="true"||e.isMobile(a))&&i(7,C=!1),n.data.type==="ShowGameModal"&&(i(7,C=!0),window.postMessage({type:"GameLaunchID",gameId:n.data.gameId},window.location.href),m==="false"&&window.postMessage({type:"DisableScroll"},window.location.href)),n.data.type==="OpenGameFrameModal"&&(i(7,C=!0),window.postMessage({type:"LaunchGameFrame",gameId:n.data.gameId,gameFunMode:n.data.gamefunmode},window.location.href),m==="false"&&window.postMessage({type:"DisableScroll"},window.location.href)),n.data.type==="RequestModalSize"){let W={modalWidth:_?getComputedStyle(_).width:null,modalHeight:_?getComputedStyle(_).height:null};window.postMessage({type:"ModalSize",modalContainerSize:W},window.location.href)}n.data.type==="GameStateOnResize"&&(B=n.data.detailsObtained)},E=n=>{if(B){let W={modalWidth:getComputedStyle(_).width,modalHeight:getComputedStyle(_).height};window.postMessage({type:"ModalSize",modalContainerSize:W},window.location.href)}},H=()=>{p=="true"&&e.checkSession(y,h).then(n=>{n.Guid,n.UserID},n=>{console.error("err on session",n)})};e.onMount(()=>(i(3,g=e.isMobile(a)),window.addEventListener("message",F,!1),window.addEventListener("resize",E,!1),()=>{window.removeEventListener("message",F),window.removeEventListener("resize",F)}));function j(n){e.binding_callbacks[n?"unshift":"push"](()=>{_=n,i(4,_)})}function O(){S=this.clientWidth,z=this.clientHeight,i(5,S),i(6,z)}function P(n){e.binding_callbacks[n?"unshift":"push"](()=>{w=n,i(2,w)})}return s.$$set=n=>{"duration"in n&&i(0,r=n.duration),"session"in n&&i(9,h=n.session),"userid"in n&&i(10,M=n.userid),"clientstyling"in n&&i(11,c=n.clientstyling),"identifier"in n&&i(12,u=n.identifier),"clientstylingurl"in n&&i(13,b=n.clientstylingurl),"endpoint"in n&&i(14,y=n.endpoint),"haspanicbutton"in n&&i(1,k=n.haspanicbutton),"gamepagemodalurl"in n&&i(15,d=n.gamepagemodalurl),"sessioncheck"in n&&i(16,p=n.sessioncheck),"integratedgameframedesktop"in n&&i(17,m=n.integratedgameframedesktop),"mbsource"in n&&i(18,f=n.mbsource),"$$scope"in n&&i(19,l=n.$$scope)},s.$$.update=()=>{s.$$.dirty[0]&17920&&h&&M&&y&&H(),s.$$.dirty[0]&2052&&c&&w&&e.setClientStyling(w,c),s.$$.dirty[0]&8196&&b&&w&&e.setClientStylingURL(w,b),s.$$.dirty[0]&262148&&w&&e.setStreamStyling(w,`${f}.Style`)},[r,k,w,g,_,S,z,C,v,h,M,c,u,b,y,d,p,m,f,l,o,j,O,P]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,U,e.safe_not_equal,{duration:0,session:9,userid:10,clientstyling:11,identifier:12,clientstylingurl:13,endpoint:14,haspanicbutton:1,gamepagemodalurl:15,sessioncheck:16,integratedgameframedesktop:17,mbsource:18},R,[-1,-1])}get duration(){return this.$$.ctx[0]}set duration(t){this.$$set({duration:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get identifier(){return this.$$.ctx[12]}set identifier(t){this.$$set({identifier:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get haspanicbutton(){return this.$$.ctx[1]}set haspanicbutton(t){this.$$set({haspanicbutton:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[15]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get sessioncheck(){return this.$$.ctx[16]}set sessioncheck(t){this.$$set({sessioncheck:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(I,{duration:{},session:{},userid:{},clientstyling:{},identifier:{},clientstylingurl:{},endpoint:{},haspanicbutton:{},gamepagemodalurl:{},sessioncheck:{},integratedgameframedesktop:{},mbsource:{}},["default","close"],[],!0);exports.default=I;
|
package/components/{CasinoMostPlayedSection-B4SHGVp4.js → CasinoMostPlayedSection-C-D6CJKY.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as $, $ as ee, S as te, i as se,
|
|
2
|
-
import "./CasinoFavoritesSection-
|
|
3
|
-
function
|
|
1
|
+
import { a as $, $ as ee, S as te, i as se, f as l, c as ae, s as ne, b as ie, e as P, y as M, d as A, z as K, G as Y, j as E, k as oe, o as le, l as re, m as me, O as ge, q as ce, r as ue, P as n, x as de, E as fe, I as he } from "./CasinoCalendar-Km8tdNHN.js";
|
|
2
|
+
import "./CasinoFavoritesSection-uCNlSq84.js";
|
|
3
|
+
function B(a, e) {
|
|
4
4
|
$(a, e);
|
|
5
5
|
}
|
|
6
6
|
function ye(a) {
|
|
7
7
|
ee.set(a);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const H = {
|
|
10
10
|
en: {
|
|
11
11
|
noGames: "No games in most played"
|
|
12
12
|
},
|
|
@@ -63,7 +63,7 @@ const B = {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
function be(a) {
|
|
66
|
-
|
|
66
|
+
ie(a, "svelte-1de9den", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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 ve(a) {
|
|
69
69
|
let e;
|
|
@@ -162,7 +162,7 @@ function ve(a) {
|
|
|
162
162
|
);
|
|
163
163
|
},
|
|
164
164
|
m(s, i) {
|
|
165
|
-
|
|
165
|
+
A(s, e, i);
|
|
166
166
|
},
|
|
167
167
|
p(s, i) {
|
|
168
168
|
i[0] & /*session*/
|
|
@@ -276,7 +276,7 @@ function ve(a) {
|
|
|
276
276
|
);
|
|
277
277
|
},
|
|
278
278
|
d(s) {
|
|
279
|
-
s &&
|
|
279
|
+
s && E(e);
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
282
|
}
|
|
@@ -287,22 +287,22 @@ function _e(a) {
|
|
|
287
287
|
), i;
|
|
288
288
|
return {
|
|
289
289
|
c() {
|
|
290
|
-
e = P("p"), i =
|
|
290
|
+
e = P("p"), i = de(s), M(e, "class", "SearchLoading");
|
|
291
291
|
},
|
|
292
292
|
m(m, r) {
|
|
293
|
-
|
|
293
|
+
A(m, e, r), K(e, i);
|
|
294
294
|
},
|
|
295
295
|
p(m, r) {
|
|
296
296
|
r[0] & /*$_*/
|
|
297
297
|
1048576 && s !== (s = /*$_*/
|
|
298
|
-
m[20]("noGames") + "") &&
|
|
298
|
+
m[20]("noGames") + "") && fe(i, s);
|
|
299
299
|
},
|
|
300
300
|
d(m) {
|
|
301
|
-
m &&
|
|
301
|
+
m && E(e);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Ge(a) {
|
|
306
306
|
let e, s;
|
|
307
307
|
function i(g, c) {
|
|
308
308
|
return (
|
|
@@ -316,41 +316,41 @@ function ke(a) {
|
|
|
316
316
|
e = P("div"), s = P("div"), r.c(), M(s, "class", "casino-most-played-section"), M(e, "class", "CasinoGamesCategorySectionContainer");
|
|
317
317
|
},
|
|
318
318
|
m(g, c) {
|
|
319
|
-
|
|
319
|
+
A(g, e, c), K(e, s), r.m(s, null), a[24](e);
|
|
320
320
|
},
|
|
321
321
|
p(g, c) {
|
|
322
322
|
m === (m = i(g)) && r ? r.p(g, c) : (r.d(1), r = m(g), r && (r.c(), r.m(s, null)));
|
|
323
323
|
},
|
|
324
|
-
i:
|
|
325
|
-
o:
|
|
324
|
+
i: Y,
|
|
325
|
+
o: Y,
|
|
326
326
|
d(g) {
|
|
327
|
-
g &&
|
|
327
|
+
g && E(e), r.d(), a[24](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function ke(a, e, s) {
|
|
332
332
|
let i;
|
|
333
|
-
|
|
334
|
-
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session:
|
|
333
|
+
oe(a, he, (t) => s(20, i = t));
|
|
334
|
+
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: O = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: _ = "" } = e, { clientstylingurl: G = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: D = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: j } = e, { favorites: U = "" } = e, { translationurl: w = "" } = e, { casinomygames: S = "false" } = e, { mostplayedperiod: C = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: z = "true" } = e, Q = window.navigator.userAgent;
|
|
335
335
|
const V = () => {
|
|
336
|
-
fetch(
|
|
336
|
+
fetch(w).then((o) => o.json()).then((o) => {
|
|
337
337
|
Object.keys(o).forEach((d) => {
|
|
338
|
-
|
|
338
|
+
B(d, o[d]);
|
|
339
339
|
});
|
|
340
340
|
}).catch((o) => {
|
|
341
341
|
console.log(o);
|
|
342
342
|
});
|
|
343
343
|
};
|
|
344
|
-
Object.keys(
|
|
345
|
-
|
|
344
|
+
Object.keys(H).forEach((t) => {
|
|
345
|
+
B(t, H[t]);
|
|
346
346
|
});
|
|
347
|
-
let N = [],
|
|
347
|
+
let N = [], I, q = !1, u;
|
|
348
348
|
const W = (t) => {
|
|
349
349
|
let o = new URL(`${m}/v1/player/${b}/games/most-played`);
|
|
350
|
-
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",
|
|
350
|
+
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", C);
|
|
351
351
|
let d = t.device;
|
|
352
|
-
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),
|
|
353
|
-
fetch(
|
|
352
|
+
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), I = k ? o : o.href, new Promise((f, y) => {
|
|
353
|
+
fetch(I).then((h) => h.json()).then((h) => {
|
|
354
354
|
h.items = h.items.filter((x) => {
|
|
355
355
|
let J = !0;
|
|
356
356
|
return x.gameCode == "OddsMatrix2" && (h.count--, J = !1), J;
|
|
@@ -362,76 +362,76 @@ function we(a, e, s) {
|
|
|
362
362
|
}, X = () => {
|
|
363
363
|
W({
|
|
364
364
|
limit: 100,
|
|
365
|
-
device:
|
|
365
|
+
device: ge(Q),
|
|
366
366
|
rounds: L
|
|
367
367
|
}).then((t) => {
|
|
368
368
|
if (t.count > 0) {
|
|
369
369
|
let o = [];
|
|
370
370
|
t.items.forEach((d) => {
|
|
371
371
|
let f = new URL(`${m}/v1/casino/games/${d.gameId}`);
|
|
372
|
-
f.searchParams.append("datasource", r),
|
|
372
|
+
f.searchParams.append("datasource", r), k ? o.push(fetch(f.href).then((y) => y.json())) : o.push(fetch(f.href).then((y) => y.json()));
|
|
373
373
|
}), Promise.all(o).then((d) => {
|
|
374
|
-
N = d.filter((f) => !("error" in f)).map((f) => f[0]),
|
|
374
|
+
N = d.filter((f) => !("error" in f)).map((f) => f[0]), S === "true" && (N = N.slice(0, JSON.parse(j))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
|
|
375
375
|
});
|
|
376
376
|
} else
|
|
377
|
-
s(19,
|
|
377
|
+
s(19, q = !0);
|
|
378
378
|
});
|
|
379
379
|
}, Z = () => {
|
|
380
380
|
ye(c);
|
|
381
381
|
};
|
|
382
|
-
|
|
382
|
+
le(() => () => {
|
|
383
383
|
});
|
|
384
384
|
function p(t) {
|
|
385
|
-
|
|
385
|
+
ce[t ? "unshift" : "push"](() => {
|
|
386
386
|
u = t, s(18, u);
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
return a.$$set = (t) => {
|
|
390
|
-
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4,
|
|
390
|
+
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, O = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, _ = t.clientstyling), "clientstylingurl" in t && s(8, G = t.clientstylingurl), "livecasino" in t && s(9, k = t.livecasino), "integratedgameframemobile" in t && s(10, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, D = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, j = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(21, w = t.translationurl), "casinomygames" in t && s(16, S = t.casinomygames), "mostplayedperiod" in t && s(22, C = t.mostplayedperiod), "mostplayedrounds" in t && s(23, L = t.mostplayedrounds), "fetchviaevent" in t && s(17, z = t.fetchviaevent);
|
|
391
391
|
}, a.$$.update = () => {
|
|
392
392
|
a.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
393
393
|
41 && m && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
394
|
-
262272 && _ && u &&
|
|
395
|
-
262400 &&
|
|
396
|
-
262208 && v && u &&
|
|
397
|
-
2097152 &&
|
|
394
|
+
262272 && _ && u && ue(u, _), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
395
|
+
262400 && G && u && re(u, G), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
396
|
+
262208 && v && u && me(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
|
|
397
|
+
2097152 && w && V(), a.$$.dirty[0] & /*lang*/
|
|
398
398
|
8 && c && Z();
|
|
399
399
|
}, [
|
|
400
400
|
m,
|
|
401
401
|
r,
|
|
402
402
|
g,
|
|
403
403
|
c,
|
|
404
|
-
|
|
404
|
+
O,
|
|
405
405
|
b,
|
|
406
406
|
v,
|
|
407
407
|
_,
|
|
408
|
+
G,
|
|
408
409
|
k,
|
|
409
|
-
w,
|
|
410
410
|
F,
|
|
411
411
|
D,
|
|
412
412
|
R,
|
|
413
413
|
T,
|
|
414
414
|
j,
|
|
415
415
|
U,
|
|
416
|
-
|
|
417
|
-
I,
|
|
418
|
-
u,
|
|
416
|
+
S,
|
|
419
417
|
z,
|
|
418
|
+
u,
|
|
419
|
+
q,
|
|
420
420
|
i,
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
w,
|
|
422
|
+
C,
|
|
423
423
|
L,
|
|
424
424
|
p
|
|
425
425
|
];
|
|
426
426
|
}
|
|
427
|
-
class
|
|
427
|
+
class we extends te {
|
|
428
428
|
constructor(e) {
|
|
429
429
|
super(), se(
|
|
430
430
|
this,
|
|
431
431
|
e,
|
|
432
|
-
we,
|
|
433
432
|
ke,
|
|
434
|
-
|
|
433
|
+
Ge,
|
|
434
|
+
ne,
|
|
435
435
|
{
|
|
436
436
|
endpoint: 0,
|
|
437
437
|
datasource: 1,
|
|
@@ -586,7 +586,7 @@ class Ge extends te {
|
|
|
586
586
|
this.$$set({ fetchviaevent: e }), l();
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
|
|
589
|
+
ae(we, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
|
|
590
590
|
export {
|
|
591
|
-
|
|
591
|
+
we as default
|
|
592
592
|
};
|
package/components/{CasinoMostPlayedSection-y-GWnOes.cjs → CasinoMostPlayedSection-QIdWMIjm.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-DqS7aKva.cjs");require("./CasinoFavoritesSection-CBb3Eo8J.cjs");function U(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const q={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-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),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[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16]),t.set_custom_element_data(e,"mbsource",n[6])},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]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[20]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function p(n){let e,a;function i(r,u){return r[19]?Z:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,u){t.insert(r,e,u),t.append(e,a),l.m(a,null),n[24](e)},p(r,u){o===(o=i(r))&&l?l.p(r,u):(l.d(1),l=o(r),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),l.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:r=""}=e,{lang:u=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:A="false"}=e,{showgamename:O=""}=e,{visiblegames:N}=e,{favorites:E=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:F="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],D,T=!1,c;const Y=s=>{let m=new URL(`${o}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),D=w?m:m.href,new Promise((g,_)=>{fetch(D).then(f=>f.json()).then(f=>{f.items=f.items.filter(Q=>{let R=!0;return Q.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},B=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${o}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",l),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(19,T=!0)})},H=()=>{V(u)};t.onMount(()=>()=>{});function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(18,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,A=s.gamepagemodalurl),"showgamename"in s&&a(13,O=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,E=s.favorites),"translationurl"in s&&a(21,G=s.translationurl),"casinomygames"in s&&a(16,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(17,F=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&u&&B(),n.$$.dirty[0]&262272&&b&&c&&t.setClientStyling(c,b),n.$$.dirty[0]&262400&&v&&c&&t.setClientStylingURL(c,v),n.$$.dirty[0]&262208&&y&&c&&t.setStreamStyling(c,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&u&&H()},[o,l,r,u,j,h,y,b,v,w,M,L,A,O,N,E,P,F,c,T,i,G,C,S,K]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,p,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:21,casinomygames:16,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:17},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 mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CkNAiTx8.cjs");require("./CasinoFavoritesSection-51a03OgV.cjs");function U(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const q={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-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),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[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16]),t.set_custom_element_data(e,"mbsource",n[6])},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]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[20]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function p(n){let e,a;function i(r,u){return r[19]?Z:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,u){t.insert(r,e,u),t.append(e,a),l.m(a,null),n[24](e)},p(r,u){o===(o=i(r))&&l?l.p(r,u):(l.d(1),l=o(r),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),l.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:r=""}=e,{lang:u=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:A="false"}=e,{showgamename:O=""}=e,{visiblegames:N}=e,{favorites:E=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:F="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],D,T=!1,c;const Y=s=>{let m=new URL(`${o}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),D=w?m:m.href,new Promise((g,_)=>{fetch(D).then(f=>f.json()).then(f=>{f.items=f.items.filter(Q=>{let R=!0;return Q.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},B=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${o}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",l),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(19,T=!0)})},H=()=>{V(u)};t.onMount(()=>()=>{});function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(18,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,A=s.gamepagemodalurl),"showgamename"in s&&a(13,O=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,E=s.favorites),"translationurl"in s&&a(21,G=s.translationurl),"casinomygames"in s&&a(16,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(17,F=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&u&&B(),n.$$.dirty[0]&262272&&b&&c&&t.setClientStyling(c,b),n.$$.dirty[0]&262400&&v&&c&&t.setClientStylingURL(c,v),n.$$.dirty[0]&262208&&y&&c&&t.setStreamStyling(c,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&u&&H()},[o,l,r,u,j,h,y,b,v,w,M,L,A,O,N,E,P,F,c,T,i,G,C,S,K]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,p,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:21,casinomygames:16,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:17},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 mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
|