@everymatrix/casino-page 1.87.25 → 1.87.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCalendar-Bk2VWsYP.js +572 -0
- package/components/CasinoCalendar-CuMdPVUL.js +574 -0
- package/components/CasinoCalendar-NysJ_MQc.cjs +2 -0
- package/components/{CasinoCalendarDailyDetails-C9QkDeeW.js → CasinoCalendarDailyDetails-BMRyShgB.js} +84 -84
- package/components/CasinoCalendarDailyDetails-Ctd7GG23.cjs +1 -0
- package/components/{CasinoCalendarDailyDetails-DG8jTkOb.js → CasinoCalendarDailyDetails-DpRL4rZD.js} +84 -84
- package/components/CasinoCalendarDailyItem-Bwv-TV7n.cjs +1 -0
- package/components/{CasinoCalendarDailyItem-H9bFOk6V.js → CasinoCalendarDailyItem-O-m4LUQU.js} +118 -118
- package/components/{CasinoCalendarDailyItem-77QxCgOg.js → CasinoCalendarDailyItem-kbMnL8LX.js} +118 -118
- package/components/CasinoCollectionsProviders-DxCAKrxO.cjs +1 -0
- package/components/{CasinoCollectionsProviders-BRaAIVvV.js → CasinoCollectionsProviders-I8uaw4CX.js} +65 -65
- package/components/{CasinoCollectionsProviders-DOGIidgs.js → CasinoCollectionsProviders-bBtLlyhP.js} +93 -93
- package/components/CasinoFavoritesSection-BKpylL-E.cjs +1 -0
- package/components/{CasinoFavoritesSection-C-WTpxpq.js → CasinoFavoritesSection-D1NR_VbM.js} +47 -63
- package/components/{CasinoFavoritesSection-CZ-q50oD.js → CasinoFavoritesSection-DVEeqd8t.js} +44 -60
- package/components/CasinoFilter-BuCRML3F.cjs +1 -0
- package/components/{CasinoFilter-Dd_ByQUb.js → CasinoFilter-C-8LktQ9.js} +223 -224
- package/components/{CasinoFilter-BqfBTs3X.js → CasinoFilter-JysfGnIT.js} +251 -250
- package/components/CasinoGameThumbnail-CTIJhcZN.js +1847 -0
- package/components/CasinoGameThumbnail-MpCIIvr2.cjs +38 -0
- package/components/CasinoGameThumbnail-vCdzZgSQ.js +1831 -0
- package/components/CasinoGamesCategorySection-CQTfYAer.cjs +10 -0
- package/components/CasinoGamesCategorySection-C_uyd_r_.js +5729 -0
- package/components/CasinoGamesCategorySection-Cavp2XcF.js +5697 -0
- package/components/{CasinoJackpotBanner-BuCeq-FN.js → CasinoJackpotBanner-C6568dXk.js} +176 -176
- package/components/{CasinoJackpotBanner-Ba0HSy7J.js → CasinoJackpotBanner-CLADRgxD.js} +154 -154
- package/components/CasinoJackpotBanner-C_Gf1vLe.cjs +1 -0
- package/components/{CasinoLastPlayedSection-DJ9HO253.js → CasinoLastPlayedSection-Daix__De.js} +71 -72
- package/components/{CasinoLastPlayedSection-C5vsXbz8.js → CasinoLastPlayedSection-fA_Nko5c.js} +68 -69
- package/components/CasinoLastPlayedSection-i9eM46ud.cjs +1 -0
- package/components/CasinoMostPlayedSection-7F-BgAlY.cjs +1 -0
- package/components/{CasinoMostPlayedSection-_rcZwydD.js → CasinoMostPlayedSection-BG98a19d.js} +64 -65
- package/components/{CasinoMostPlayedSection-Cj9P1O_g.js → CasinoMostPlayedSection-DjDWyNmN.js} +66 -67
- package/components/{CasinoMyGames-BCWaO0Ph.js → CasinoMyGames-DbWMDQDz.js} +46 -46
- package/components/CasinoMyGames-FxQZFPn1.cjs +1 -0
- package/components/{CasinoMyGames-DA-mPnwJ.js → CasinoMyGames-fh1A5kRZ.js} +46 -46
- package/components/CasinoPage-CEwUBRwz.js +8914 -0
- package/components/CasinoPage-D1gCtQ9f.cjs +18 -0
- package/components/CasinoPage-DuLO92lO.js +8959 -0
- package/components/CasinoRandomGame-B6nMcOFW.cjs +2 -0
- package/components/{CasinoRandomGame-Dicpdv5N.js → CasinoRandomGame-BXeDL44i.js} +118 -118
- package/components/{CasinoRandomGame-Mzhi_geU.js → CasinoRandomGame-fp8-6pxV.js} +116 -116
- package/components/{CasinoSearch-BkcRkT-Z.js → CasinoSearch-CT_Q7Eg2.js} +75 -75
- package/components/{CasinoSearch-CFh1KpPL.js → CasinoSearch-D25EUsHS.js} +75 -75
- package/components/CasinoSearch-DSNlggOc.cjs +1 -0
- package/components/CasinoSort-5sOVz1es.cjs +1 -0
- package/components/{CasinoSort-DuvD0KkH.js → CasinoSort-CoBXSITn.js} +102 -102
- package/components/{CasinoSort-DHqu-YG-.js → CasinoSort-l3IilL10.js} +116 -116
- package/components/{CasinoWinners-C0aKkeDL.js → CasinoWinners-BeLObVW8.js} +105 -105
- package/components/{CasinoWinners-DdSjlEaj.js → CasinoWinners-mCHa7x4u.js} +108 -108
- package/components/CasinoWinners-pE3a77v3.cjs +1 -0
- package/components/GeneralAnimationLoading-BJ87LnuC.cjs +1 -0
- package/components/{GeneralAnimationLoading-DhrziAD2.js → GeneralAnimationLoading-BaLCQhkc.js} +23 -23
- package/components/{GeneralAnimationLoading-B00sPlMG.js → GeneralAnimationLoading-SLNmfkn9.js} +22 -22
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +7 -7
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{app-globals-0f993ce5-4b17CI_n.cjs → app-globals-0f993ce5-3HCMFTIi.cjs} +1 -1
- package/stencil/{app-globals-0f993ce5-DfNOCk8l.js → app-globals-0f993ce5-DYjuqKIH.js} +2 -2
- package/stencil/{casino-play-random-game-rhXCh2EW.js → casino-play-random-game-BnjM-0qi.js} +2 -2
- package/stencil/{casino-play-random-game-CSy8nXT0.js → casino-play-random-game-DRQxeH3W.js} +2 -2
- package/stencil/{casino-play-random-game-PuRF3mXV.cjs → casino-play-random-game-dt2t2wAq.cjs} +1 -1
- package/stencil/{casino-play-random-game_2-CZQxP9GA.js → casino-play-random-game_2-BvZbjHRJ.js} +92 -64
- package/stencil/{casino-play-random-game_2-CBAgufN5.cjs → casino-play-random-game_2-ZYQBmsCp.cjs} +3 -3
- package/stencil/{casino-play-random-game_2-BBgMV3ws.js → casino-play-random-game_2-aWmRrJVX.js} +91 -64
- package/stencil/{index-328e660d-BLQrzwBv.cjs → index-328e660d-BN7c7sEP.cjs} +1 -1
- package/stencil/{index-328e660d-Belout2l.js → index-328e660d-CJOt0Yr_.js} +1 -1
- package/stencil/{index-328e660d-BqUO7ccV.js → index-328e660d-CZwFIIV5.js} +1 -1
- package/stencil/{index-b2193545-DuCTLpV-.cjs → index-b2193545-BYDm8FOU.cjs} +1 -1
- package/stencil/{index-b2193545-DG7pnr-7.js → index-b2193545-CVvOSay7.js} +1 -1
- package/stencil/{index-b2193545-BZAG_Jnw.js → index-b2193545-DkSkdO8p.js} +1 -1
- package/stencil/{ui-image-BmLAbwvr.cjs → ui-image-BNLichPz.cjs} +1 -1
- package/stencil/{ui-image-DDulMZDF.js → ui-image-D8_P6p7o.js} +1 -1
- package/stencil/{ui-image-DwWgscwP.js → ui-image-KAOdlRk_.js} +1 -1
- package/stencil/{ui-skeleton-DgZQnowa.js → ui-skeleton-CbcQXFpx.js} +3 -3
- package/stencil/{ui-skeleton-D_tu1FGi.js → ui-skeleton-DgkQtSrH.js} +3 -3
- package/stencil/{ui-skeleton-BWEKzqTN.cjs → ui-skeleton-TOJItxHv.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-D2rWx_KU.js → ui-skeleton-ed169f8f-BD9hI4Jz.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Ti6Ksz7V.cjs → ui-skeleton-ed169f8f-CGu6WFdq.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Bs1q2JQr.js → ui-skeleton-ed169f8f-CaxkPCnR.js} +1 -1
- package/components/CasinoCalendar-4k288rHh.cjs +0 -19
- package/components/CasinoCalendar-BNbVJJdG.js +0 -5140
- package/components/CasinoCalendar-DAKxxPPx.js +0 -5101
- package/components/CasinoCalendarDailyDetails-CerVlpW4.cjs +0 -1
- package/components/CasinoCalendarDailyItem-B7YANGR4.cjs +0 -1
- package/components/CasinoCollectionsProviders-OZw09qnR.cjs +0 -1
- package/components/CasinoFavoritesSection-DYzKNVZJ.cjs +0 -1
- package/components/CasinoFilter-BP97bmoQ.cjs +0 -1
- package/components/CasinoGameThumbnail-CySg8Qzs.js +0 -4359
- package/components/CasinoGameThumbnail-W0nETKCH.cjs +0 -47
- package/components/CasinoGameThumbnail-ge_yVb-v.js +0 -4375
- package/components/CasinoGamesCategorySection-B2CXUJ-V.js +0 -3217
- package/components/CasinoGamesCategorySection-B8IjpDwj.js +0 -3185
- package/components/CasinoGamesCategorySection-DCjn0aiz.cjs +0 -1
- package/components/CasinoJackpotBanner-DRtiH_Mn.cjs +0 -1
- package/components/CasinoLastPlayedSection-CP4YzhAu.cjs +0 -1
- package/components/CasinoMostPlayedSection-DPG3YsM6.cjs +0 -1
- package/components/CasinoMyGames-Bqyyy2Me.cjs +0 -1
- package/components/CasinoPage-BNU69s1m.js +0 -4353
- package/components/CasinoPage-BRSRsp5F.js +0 -4334
- package/components/CasinoPage-D-FENg4m.cjs +0 -1
- package/components/CasinoRandomGame-DRGWOXO6.cjs +0 -2
- package/components/CasinoSearch-D14Ak2E9.cjs +0 -1
- package/components/CasinoSort-BVyHskml.cjs +0 -1
- package/components/CasinoWinners-5S4Rqt23.cjs +0 -1
- package/components/GeneralAnimationLoading-wnzFPEVd.cjs +0 -1
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
import { a as V, $ as J, S as K, i as Q, s as X, f as _, b as Y, n as D, d as v, c as b, e as h, g as p, h as Z, j as x, r as $, k as ee, u as te, m as L, v as ne, w as P, A as le, q as ie, t as ae, y as a, D as re, E as se, F as oe, G as de, H as ce } from "./CasinoPage-DuLO92lO.js";
|
|
2
|
+
function j(n, e) {
|
|
3
|
+
V(n, e);
|
|
4
|
+
}
|
|
5
|
+
function ue(n) {
|
|
6
|
+
J.set(n);
|
|
7
|
+
}
|
|
8
|
+
const O = {
|
|
9
|
+
en: {
|
|
10
|
+
error: "500 Error - Internal Server Error"
|
|
11
|
+
},
|
|
12
|
+
hr: {
|
|
13
|
+
error: "500 Error - Internal Server Error"
|
|
14
|
+
},
|
|
15
|
+
"pt-br": {
|
|
16
|
+
error: "500 Error - Internal Server Error"
|
|
17
|
+
},
|
|
18
|
+
"es-mx": {
|
|
19
|
+
error: "500 Error - Internal Server Error"
|
|
20
|
+
},
|
|
21
|
+
tr: {
|
|
22
|
+
error: "500 Error - Internal Server Error"
|
|
23
|
+
},
|
|
24
|
+
"en-us": {
|
|
25
|
+
error: "500 Error - Internal Server Error"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
if (typeof window != "undefined") {
|
|
29
|
+
let n = function(e) {
|
|
30
|
+
return function(...t) {
|
|
31
|
+
try {
|
|
32
|
+
return e.apply(this, t);
|
|
33
|
+
} catch (r) {
|
|
34
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
35
|
+
return !1;
|
|
36
|
+
throw r;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
customElements.define = n(customElements.define), import("./CasinoCalendarDailyDetails-DpRL4rZD.js").then(({ default: e }) => {
|
|
41
|
+
!customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", e.element);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (typeof window != "undefined") {
|
|
45
|
+
let n = function(e) {
|
|
46
|
+
return function(...t) {
|
|
47
|
+
try {
|
|
48
|
+
return e.apply(this, t);
|
|
49
|
+
} catch (r) {
|
|
50
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
51
|
+
return !1;
|
|
52
|
+
throw r;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
customElements.define = n(customElements.define), import("./CasinoCalendarDailyItem-O-m4LUQU.js").then(({ default: e }) => {
|
|
57
|
+
!customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", e.element);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function fe(n) {
|
|
61
|
+
Y(n, "svelte-5u3c97", `.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
|
|
62
|
+
}.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
63
|
+
}
|
|
64
|
+
function A(n, e, t) {
|
|
65
|
+
const r = n.slice();
|
|
66
|
+
return r[26] = e[t], r[28] = t, r;
|
|
67
|
+
}
|
|
68
|
+
function ye(n) {
|
|
69
|
+
let e, t, r, d = P(
|
|
70
|
+
/*calendarCollections*/
|
|
71
|
+
n[6]
|
|
72
|
+
), i = [];
|
|
73
|
+
for (let l = 0; l < d.length; l += 1)
|
|
74
|
+
i[l] = R(A(n, d, l));
|
|
75
|
+
let c = (
|
|
76
|
+
/*calendarModalOpened*/
|
|
77
|
+
n[11] == !0 && N(n)
|
|
78
|
+
);
|
|
79
|
+
return {
|
|
80
|
+
c() {
|
|
81
|
+
e = h("div");
|
|
82
|
+
for (let l = 0; l < i.length; l += 1)
|
|
83
|
+
i[l].c();
|
|
84
|
+
t = ie(), c && c.c(), p(e, "class", r = "CasinoCalendarItem " + /*mobileView*/
|
|
85
|
+
(n[10] ? "Mobile" : "") + " svelte-5u3c97");
|
|
86
|
+
},
|
|
87
|
+
m(l, u) {
|
|
88
|
+
b(l, e, u);
|
|
89
|
+
for (let s = 0; s < i.length; s += 1)
|
|
90
|
+
i[s] && i[s].m(e, null);
|
|
91
|
+
L(e, t), c && c.m(e, null);
|
|
92
|
+
},
|
|
93
|
+
p(l, u) {
|
|
94
|
+
if (u & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
|
|
95
|
+
95) {
|
|
96
|
+
d = P(
|
|
97
|
+
/*calendarCollections*/
|
|
98
|
+
l[6]
|
|
99
|
+
);
|
|
100
|
+
let s;
|
|
101
|
+
for (s = 0; s < d.length; s += 1) {
|
|
102
|
+
const f = A(l, d, s);
|
|
103
|
+
i[s] ? i[s].p(f, u) : (i[s] = R(f), i[s].c(), i[s].m(e, t));
|
|
104
|
+
}
|
|
105
|
+
for (; s < i.length; s += 1)
|
|
106
|
+
i[s].d(1);
|
|
107
|
+
i.length = d.length;
|
|
108
|
+
}
|
|
109
|
+
/*calendarModalOpened*/
|
|
110
|
+
l[11] == !0 ? c ? c.p(l, u) : (c = N(l), c.c(), c.m(e, null)) : c && (c.d(1), c = null), u & /*mobileView*/
|
|
111
|
+
1024 && r !== (r = "CasinoCalendarItem " + /*mobileView*/
|
|
112
|
+
(l[10] ? "Mobile" : "") + " svelte-5u3c97") && p(e, "class", r);
|
|
113
|
+
},
|
|
114
|
+
d(l) {
|
|
115
|
+
l && v(e), le(i, l), c && c.d();
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function me(n) {
|
|
120
|
+
let e;
|
|
121
|
+
return {
|
|
122
|
+
c() {
|
|
123
|
+
e = h("div"), p(e, "class", "LoadingSpinner svelte-5u3c97");
|
|
124
|
+
},
|
|
125
|
+
m(t, r) {
|
|
126
|
+
b(t, e, r);
|
|
127
|
+
},
|
|
128
|
+
p: D,
|
|
129
|
+
d(t) {
|
|
130
|
+
t && v(e);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function ge(n) {
|
|
135
|
+
let e, t = (
|
|
136
|
+
/*$_*/
|
|
137
|
+
n[12]("error") + ""
|
|
138
|
+
), r;
|
|
139
|
+
return {
|
|
140
|
+
c() {
|
|
141
|
+
e = h("p"), r = ne(t), p(e, "class", "SearchLoading svelte-5u3c97");
|
|
142
|
+
},
|
|
143
|
+
m(d, i) {
|
|
144
|
+
b(d, e, i), L(e, r);
|
|
145
|
+
},
|
|
146
|
+
p(d, i) {
|
|
147
|
+
i & /*$_*/
|
|
148
|
+
4096 && t !== (t = /*$_*/
|
|
149
|
+
d[12]("error") + "") && te(r, t);
|
|
150
|
+
},
|
|
151
|
+
d(d) {
|
|
152
|
+
d && v(e);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function R(n) {
|
|
157
|
+
let e, t, r, d, i, c;
|
|
158
|
+
return {
|
|
159
|
+
c() {
|
|
160
|
+
e = h("casino-calendar-daily-item"), a(e, "dailybackground", t = /*dailyCalendarData*/
|
|
161
|
+
n[26].dailyBackground), a(e, "dailyicon", r = /*dailyCalendarData*/
|
|
162
|
+
n[26].dailyIcon), a(e, "dailyday", d = /*dailyCalendarData*/
|
|
163
|
+
n[26].dailyDay), a(e, "dailydescription", i = /*dailyCalendarData*/
|
|
164
|
+
n[26].dailyDescription), a(e, "dailybuttontitle", c = /*dailyCalendarData*/
|
|
165
|
+
n[26].dailyButtonTitle), a(
|
|
166
|
+
e,
|
|
167
|
+
"index",
|
|
168
|
+
/*index*/
|
|
169
|
+
n[28]
|
|
170
|
+
), a(
|
|
171
|
+
e,
|
|
172
|
+
"lang",
|
|
173
|
+
/*lang*/
|
|
174
|
+
n[0]
|
|
175
|
+
), a(
|
|
176
|
+
e,
|
|
177
|
+
"clientstyling",
|
|
178
|
+
/*clientstyling*/
|
|
179
|
+
n[1]
|
|
180
|
+
), a(
|
|
181
|
+
e,
|
|
182
|
+
"clientstylingurl",
|
|
183
|
+
/*clientstylingurl*/
|
|
184
|
+
n[2]
|
|
185
|
+
), a(
|
|
186
|
+
e,
|
|
187
|
+
"mbsource",
|
|
188
|
+
/*mbsource*/
|
|
189
|
+
n[4]
|
|
190
|
+
), a(
|
|
191
|
+
e,
|
|
192
|
+
"translationurl",
|
|
193
|
+
/*translationurl*/
|
|
194
|
+
n[3]
|
|
195
|
+
), a(e, "class", "svelte-5u3c97");
|
|
196
|
+
},
|
|
197
|
+
m(l, u) {
|
|
198
|
+
b(l, e, u);
|
|
199
|
+
},
|
|
200
|
+
p(l, u) {
|
|
201
|
+
u & /*calendarCollections*/
|
|
202
|
+
64 && t !== (t = /*dailyCalendarData*/
|
|
203
|
+
l[26].dailyBackground) && a(e, "dailybackground", t), u & /*calendarCollections*/
|
|
204
|
+
64 && r !== (r = /*dailyCalendarData*/
|
|
205
|
+
l[26].dailyIcon) && a(e, "dailyicon", r), u & /*calendarCollections*/
|
|
206
|
+
64 && d !== (d = /*dailyCalendarData*/
|
|
207
|
+
l[26].dailyDay) && a(e, "dailyday", d), u & /*calendarCollections*/
|
|
208
|
+
64 && i !== (i = /*dailyCalendarData*/
|
|
209
|
+
l[26].dailyDescription) && a(e, "dailydescription", i), u & /*calendarCollections*/
|
|
210
|
+
64 && c !== (c = /*dailyCalendarData*/
|
|
211
|
+
l[26].dailyButtonTitle) && a(e, "dailybuttontitle", c), u & /*lang*/
|
|
212
|
+
1 && a(
|
|
213
|
+
e,
|
|
214
|
+
"lang",
|
|
215
|
+
/*lang*/
|
|
216
|
+
l[0]
|
|
217
|
+
), u & /*clientstyling*/
|
|
218
|
+
2 && a(
|
|
219
|
+
e,
|
|
220
|
+
"clientstyling",
|
|
221
|
+
/*clientstyling*/
|
|
222
|
+
l[1]
|
|
223
|
+
), u & /*clientstylingurl*/
|
|
224
|
+
4 && a(
|
|
225
|
+
e,
|
|
226
|
+
"clientstylingurl",
|
|
227
|
+
/*clientstylingurl*/
|
|
228
|
+
l[2]
|
|
229
|
+
), u & /*mbsource*/
|
|
230
|
+
16 && a(
|
|
231
|
+
e,
|
|
232
|
+
"mbsource",
|
|
233
|
+
/*mbsource*/
|
|
234
|
+
l[4]
|
|
235
|
+
), u & /*translationurl*/
|
|
236
|
+
8 && a(
|
|
237
|
+
e,
|
|
238
|
+
"translationurl",
|
|
239
|
+
/*translationurl*/
|
|
240
|
+
l[3]
|
|
241
|
+
);
|
|
242
|
+
},
|
|
243
|
+
d(l) {
|
|
244
|
+
l && v(e);
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function N(n) {
|
|
249
|
+
let e, t, r, d, i, c, l, u;
|
|
250
|
+
return {
|
|
251
|
+
c() {
|
|
252
|
+
e = h("div"), t = h("casino-calendar-daily-details"), a(t, "dailybackground", r = /*calendarCollections*/
|
|
253
|
+
n[6][
|
|
254
|
+
/*selectedIndex*/
|
|
255
|
+
n[7]
|
|
256
|
+
].dailyBackground), a(t, "dailybuttontitle", d = /*calendarCollections*/
|
|
257
|
+
n[6][
|
|
258
|
+
/*selectedIndex*/
|
|
259
|
+
n[7]
|
|
260
|
+
].dailyButtonTitle), a(t, "dailyday", i = /*calendarCollections*/
|
|
261
|
+
n[6][
|
|
262
|
+
/*selectedIndex*/
|
|
263
|
+
n[7]
|
|
264
|
+
].dailyDay), a(t, "dailydescription", c = /*calendarCollections*/
|
|
265
|
+
n[6][
|
|
266
|
+
/*selectedIndex*/
|
|
267
|
+
n[7]
|
|
268
|
+
].dailyDescription), a(t, "dailyicon", l = /*calendarCollections*/
|
|
269
|
+
n[6][
|
|
270
|
+
/*selectedIndex*/
|
|
271
|
+
n[7]
|
|
272
|
+
].dailyIcon), a(t, "dailytitle", u = /*calendarCollections*/
|
|
273
|
+
n[6][
|
|
274
|
+
/*selectedIndex*/
|
|
275
|
+
n[7]
|
|
276
|
+
].dailyTitle), a(
|
|
277
|
+
t,
|
|
278
|
+
"lang",
|
|
279
|
+
/*lang*/
|
|
280
|
+
n[0]
|
|
281
|
+
), a(
|
|
282
|
+
t,
|
|
283
|
+
"clientstyling",
|
|
284
|
+
/*clientstyling*/
|
|
285
|
+
n[1]
|
|
286
|
+
), a(
|
|
287
|
+
t,
|
|
288
|
+
"clientstylingurl",
|
|
289
|
+
/*clientstylingurl*/
|
|
290
|
+
n[2]
|
|
291
|
+
), a(
|
|
292
|
+
t,
|
|
293
|
+
"mbsource",
|
|
294
|
+
/*mbsource*/
|
|
295
|
+
n[4]
|
|
296
|
+
), a(
|
|
297
|
+
t,
|
|
298
|
+
"translationurl",
|
|
299
|
+
/*translationurl*/
|
|
300
|
+
n[3]
|
|
301
|
+
), a(t, "class", "svelte-5u3c97"), p(e, "class", "CalendarDetailsWrapper svelte-5u3c97");
|
|
302
|
+
},
|
|
303
|
+
m(s, f) {
|
|
304
|
+
b(s, e, f), L(e, t);
|
|
305
|
+
},
|
|
306
|
+
p(s, f) {
|
|
307
|
+
f & /*calendarCollections, selectedIndex*/
|
|
308
|
+
192 && r !== (r = /*calendarCollections*/
|
|
309
|
+
s[6][
|
|
310
|
+
/*selectedIndex*/
|
|
311
|
+
s[7]
|
|
312
|
+
].dailyBackground) && a(t, "dailybackground", r), f & /*calendarCollections, selectedIndex*/
|
|
313
|
+
192 && d !== (d = /*calendarCollections*/
|
|
314
|
+
s[6][
|
|
315
|
+
/*selectedIndex*/
|
|
316
|
+
s[7]
|
|
317
|
+
].dailyButtonTitle) && a(t, "dailybuttontitle", d), f & /*calendarCollections, selectedIndex*/
|
|
318
|
+
192 && i !== (i = /*calendarCollections*/
|
|
319
|
+
s[6][
|
|
320
|
+
/*selectedIndex*/
|
|
321
|
+
s[7]
|
|
322
|
+
].dailyDay) && a(t, "dailyday", i), f & /*calendarCollections, selectedIndex*/
|
|
323
|
+
192 && c !== (c = /*calendarCollections*/
|
|
324
|
+
s[6][
|
|
325
|
+
/*selectedIndex*/
|
|
326
|
+
s[7]
|
|
327
|
+
].dailyDescription) && a(t, "dailydescription", c), f & /*calendarCollections, selectedIndex*/
|
|
328
|
+
192 && l !== (l = /*calendarCollections*/
|
|
329
|
+
s[6][
|
|
330
|
+
/*selectedIndex*/
|
|
331
|
+
s[7]
|
|
332
|
+
].dailyIcon) && a(t, "dailyicon", l), f & /*calendarCollections, selectedIndex*/
|
|
333
|
+
192 && u !== (u = /*calendarCollections*/
|
|
334
|
+
s[6][
|
|
335
|
+
/*selectedIndex*/
|
|
336
|
+
s[7]
|
|
337
|
+
].dailyTitle) && a(t, "dailytitle", u), f & /*lang*/
|
|
338
|
+
1 && a(
|
|
339
|
+
t,
|
|
340
|
+
"lang",
|
|
341
|
+
/*lang*/
|
|
342
|
+
s[0]
|
|
343
|
+
), f & /*clientstyling*/
|
|
344
|
+
2 && a(
|
|
345
|
+
t,
|
|
346
|
+
"clientstyling",
|
|
347
|
+
/*clientstyling*/
|
|
348
|
+
s[1]
|
|
349
|
+
), f & /*clientstylingurl*/
|
|
350
|
+
4 && a(
|
|
351
|
+
t,
|
|
352
|
+
"clientstylingurl",
|
|
353
|
+
/*clientstylingurl*/
|
|
354
|
+
s[2]
|
|
355
|
+
), f & /*mbsource*/
|
|
356
|
+
16 && a(
|
|
357
|
+
t,
|
|
358
|
+
"mbsource",
|
|
359
|
+
/*mbsource*/
|
|
360
|
+
s[4]
|
|
361
|
+
), f & /*translationurl*/
|
|
362
|
+
8 && a(
|
|
363
|
+
t,
|
|
364
|
+
"translationurl",
|
|
365
|
+
/*translationurl*/
|
|
366
|
+
s[3]
|
|
367
|
+
);
|
|
368
|
+
},
|
|
369
|
+
d(s) {
|
|
370
|
+
s && v(e);
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function _e(n) {
|
|
375
|
+
let e;
|
|
376
|
+
function t(i, c) {
|
|
377
|
+
var l;
|
|
378
|
+
if (
|
|
379
|
+
/*hasErrors*/
|
|
380
|
+
i[9]
|
|
381
|
+
)
|
|
382
|
+
return ge;
|
|
383
|
+
if (
|
|
384
|
+
/*isLoading*/
|
|
385
|
+
i[8]
|
|
386
|
+
)
|
|
387
|
+
return me;
|
|
388
|
+
if (
|
|
389
|
+
/*calendarCollections*/
|
|
390
|
+
(l = i[6]) != null && l.length
|
|
391
|
+
)
|
|
392
|
+
return ye;
|
|
393
|
+
}
|
|
394
|
+
let r = t(n), d = r && r(n);
|
|
395
|
+
return {
|
|
396
|
+
c() {
|
|
397
|
+
e = h("div"), d && d.c(), p(e, "class", "svelte-5u3c97");
|
|
398
|
+
},
|
|
399
|
+
m(i, c) {
|
|
400
|
+
b(i, e, c), d && d.m(e, null), n[16](e);
|
|
401
|
+
},
|
|
402
|
+
p(i, [c]) {
|
|
403
|
+
r === (r = t(i)) && d ? d.p(i, c) : (d && d.d(1), d = r && r(i), d && (d.c(), d.m(e, null)));
|
|
404
|
+
},
|
|
405
|
+
i: D,
|
|
406
|
+
o: D,
|
|
407
|
+
d(i) {
|
|
408
|
+
i && v(e), d && d.d(), n[16](null);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
function he(n, e, t) {
|
|
413
|
+
let r;
|
|
414
|
+
Z(n, ce, (o) => t(12, r = o));
|
|
415
|
+
let { cmsendpoint: d = "" } = e, { env: i = "" } = e, { userroles: c = "" } = e, { lang: l = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f } = e, { mbsource: E } = e, m, k, w = 0, S = !0, I = !1, M = !1, B = window.navigator.userAgent, C = !1, U;
|
|
416
|
+
const W = () => {
|
|
417
|
+
ue(l);
|
|
418
|
+
};
|
|
419
|
+
Object.keys(O).forEach((o) => {
|
|
420
|
+
j(o, O[o]);
|
|
421
|
+
});
|
|
422
|
+
const q = () => {
|
|
423
|
+
let o = f;
|
|
424
|
+
if (o)
|
|
425
|
+
return fetch(o).then((y) => y.json()).then((y) => {
|
|
426
|
+
Object.keys(y).forEach((g) => {
|
|
427
|
+
j(g, y[g]);
|
|
428
|
+
});
|
|
429
|
+
}).catch((y) => {
|
|
430
|
+
console.log(y);
|
|
431
|
+
});
|
|
432
|
+
}, H = () => {
|
|
433
|
+
t(8, S = !0);
|
|
434
|
+
let o = new URL(`${d}/${l}/daily-calendar`);
|
|
435
|
+
o.searchParams.append("userRoles", c), o.searchParams.append("env", i);
|
|
436
|
+
let y = ae(B);
|
|
437
|
+
y && (y === "PC" ? o.searchParams.append("device", "dk") : y === "iPad" || y === "iPhone" ? o.searchParams.append("device", "ios") : o.searchParams.append("device", "mtWeb")), fetch(o.href).then((g) => g.json()).then((g) => {
|
|
438
|
+
t(6, k = g);
|
|
439
|
+
}).catch((g) => {
|
|
440
|
+
console.log(g), t(9, I = !0);
|
|
441
|
+
}).finally(() => {
|
|
442
|
+
z(), t(8, S = !1);
|
|
443
|
+
});
|
|
444
|
+
}, z = () => {
|
|
445
|
+
const o = m.getRootNode().host;
|
|
446
|
+
o.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: o } }));
|
|
447
|
+
}, F = () => {
|
|
448
|
+
H();
|
|
449
|
+
}, T = (o) => {
|
|
450
|
+
var y;
|
|
451
|
+
o.data && o.data.type == "OpenCalendar" && (t(7, w = o.data.index), t(11, C = !0), window.postMessage(
|
|
452
|
+
{
|
|
453
|
+
type: "ShowModal",
|
|
454
|
+
selectedIndex: w,
|
|
455
|
+
identifier: "Calendar"
|
|
456
|
+
},
|
|
457
|
+
window.location.href
|
|
458
|
+
), window.postMessage({
|
|
459
|
+
type: "DailyEventsData",
|
|
460
|
+
data: (y = k[w]) == null ? void 0 : y.dailyEvents
|
|
461
|
+
})), o.data && o.data.type == "ModalClosed" && t(11, C = !1);
|
|
462
|
+
};
|
|
463
|
+
x(() => (window.addEventListener("message", T, !1), $(B) && t(10, M = !0), () => {
|
|
464
|
+
window.removeEventListener("message", T);
|
|
465
|
+
}));
|
|
466
|
+
function G(o) {
|
|
467
|
+
ee[o ? "unshift" : "push"](() => {
|
|
468
|
+
m = o, t(5, m);
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
return n.$$set = (o) => {
|
|
472
|
+
"cmsendpoint" in o && t(13, d = o.cmsendpoint), "env" in o && t(14, i = o.env), "userroles" in o && t(15, c = o.userroles), "lang" in o && t(0, l = o.lang), "clientstyling" in o && t(1, u = o.clientstyling), "clientstylingurl" in o && t(2, s = o.clientstylingurl), "translationurl" in o && t(3, f = o.translationurl), "mbsource" in o && t(4, E = o.mbsource);
|
|
473
|
+
}, n.$$.update = () => {
|
|
474
|
+
n.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
475
|
+
57345 && d && l && i && c && F(), n.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
476
|
+
34 && u && m && re(m, u), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
477
|
+
36 && s && m && se(m, s), n.$$.dirty & /*customStylingContainer, mbsource*/
|
|
478
|
+
48 && m && oe(m, `${E}.Style`, U), n.$$.dirty & /*lang*/
|
|
479
|
+
1 && l && W(), n.$$.dirty & /*lang, translationurl*/
|
|
480
|
+
9 && l && f && q();
|
|
481
|
+
}, [
|
|
482
|
+
l,
|
|
483
|
+
u,
|
|
484
|
+
s,
|
|
485
|
+
f,
|
|
486
|
+
E,
|
|
487
|
+
m,
|
|
488
|
+
k,
|
|
489
|
+
w,
|
|
490
|
+
S,
|
|
491
|
+
I,
|
|
492
|
+
M,
|
|
493
|
+
C,
|
|
494
|
+
r,
|
|
495
|
+
d,
|
|
496
|
+
i,
|
|
497
|
+
c,
|
|
498
|
+
G
|
|
499
|
+
];
|
|
500
|
+
}
|
|
501
|
+
class pe extends K {
|
|
502
|
+
constructor(e) {
|
|
503
|
+
super(), Q(
|
|
504
|
+
this,
|
|
505
|
+
e,
|
|
506
|
+
he,
|
|
507
|
+
_e,
|
|
508
|
+
X,
|
|
509
|
+
{
|
|
510
|
+
cmsendpoint: 13,
|
|
511
|
+
env: 14,
|
|
512
|
+
userroles: 15,
|
|
513
|
+
lang: 0,
|
|
514
|
+
clientstyling: 1,
|
|
515
|
+
clientstylingurl: 2,
|
|
516
|
+
translationurl: 3,
|
|
517
|
+
mbsource: 4
|
|
518
|
+
},
|
|
519
|
+
fe
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
get cmsendpoint() {
|
|
523
|
+
return this.$$.ctx[13];
|
|
524
|
+
}
|
|
525
|
+
set cmsendpoint(e) {
|
|
526
|
+
this.$$set({ cmsendpoint: e }), _();
|
|
527
|
+
}
|
|
528
|
+
get env() {
|
|
529
|
+
return this.$$.ctx[14];
|
|
530
|
+
}
|
|
531
|
+
set env(e) {
|
|
532
|
+
this.$$set({ env: e }), _();
|
|
533
|
+
}
|
|
534
|
+
get userroles() {
|
|
535
|
+
return this.$$.ctx[15];
|
|
536
|
+
}
|
|
537
|
+
set userroles(e) {
|
|
538
|
+
this.$$set({ userroles: e }), _();
|
|
539
|
+
}
|
|
540
|
+
get lang() {
|
|
541
|
+
return this.$$.ctx[0];
|
|
542
|
+
}
|
|
543
|
+
set lang(e) {
|
|
544
|
+
this.$$set({ lang: e }), _();
|
|
545
|
+
}
|
|
546
|
+
get clientstyling() {
|
|
547
|
+
return this.$$.ctx[1];
|
|
548
|
+
}
|
|
549
|
+
set clientstyling(e) {
|
|
550
|
+
this.$$set({ clientstyling: e }), _();
|
|
551
|
+
}
|
|
552
|
+
get clientstylingurl() {
|
|
553
|
+
return this.$$.ctx[2];
|
|
554
|
+
}
|
|
555
|
+
set clientstylingurl(e) {
|
|
556
|
+
this.$$set({ clientstylingurl: e }), _();
|
|
557
|
+
}
|
|
558
|
+
get translationurl() {
|
|
559
|
+
return this.$$.ctx[3];
|
|
560
|
+
}
|
|
561
|
+
set translationurl(e) {
|
|
562
|
+
this.$$set({ translationurl: e }), _();
|
|
563
|
+
}
|
|
564
|
+
get mbsource() {
|
|
565
|
+
return this.$$.ctx[4];
|
|
566
|
+
}
|
|
567
|
+
set mbsource(e) {
|
|
568
|
+
this.$$set({ mbsource: e }), _();
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
de(pe, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
572
|
+
export {
|
|
573
|
+
pe as default
|
|
574
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPage-D1gCtQ9f.cjs");function C(a,t){e.addMessages(a,t)}function N(a){e.$locale.set(a)}const D={en:{error:"500 Error - Internal Server Error"},hr:{error:"500 Error - Internal Server Error"},"pt-br":{error:"500 Error - Internal Server Error"},"es-mx":{error:"500 Error - Internal Server Error"},tr:{error:"500 Error - Internal Server Error"},"en-us":{error:"500 Error - Internal Server Error"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoCalendarDailyDetails-Ctd7GG23.cjs")).then(({default:t})=>{!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoCalendarDailyItem-Bwv-TV7n.cjs")).then(({default:t})=>{!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",t.element)})}function U(a){e.append_styles(a,"svelte-5u3c97",`.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
|
|
2
|
+
}.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`)}function L(a,t,n){const s=a.slice();return s[26]=t[n],s[28]=n,s}function W(a){let t,n,s,d=e.ensure_array_like(a[6]),i=[];for(let l=0;l<d.length;l+=1)i[l]=I(L(a,d,l));let c=a[11]==!0&&M(a);return{c(){t=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();n=e.space(),c&&c.c(),e.attr(t,"class",s="CasinoCalendarItem "+(a[10]?"Mobile":"")+" svelte-5u3c97")},m(l,u){e.insert(l,t,u);for(let r=0;r<i.length;r+=1)i[r]&&i[r].m(t,null);e.append(t,n),c&&c.m(t,null)},p(l,u){if(u&95){d=e.ensure_array_like(l[6]);let r;for(r=0;r<d.length;r+=1){const _=L(l,d,r);i[r]?i[r].p(_,u):(i[r]=I(_),i[r].c(),i[r].m(t,n))}for(;r<i.length;r+=1)i[r].d(1);i.length=d.length}l[11]==!0?c?c.p(l,u):(c=M(l),c.c(),c.m(t,null)):c&&(c.d(1),c=null),u&1024&&s!==(s="CasinoCalendarItem "+(l[10]?"Mobile":"")+" svelte-5u3c97")&&e.attr(t,"class",s)},d(l){l&&e.detach(t),e.destroy_each(i,l),c&&c.d()}}}function z(a){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner svelte-5u3c97")},m(n,s){e.insert(n,t,s)},p:e.noop,d(n){n&&e.detach(t)}}}function H(a){let t,n=a[12]("error")+"",s;return{c(){t=e.element("p"),s=e.text(n),e.attr(t,"class","SearchLoading svelte-5u3c97")},m(d,i){e.insert(d,t,i),e.append(t,s)},p(d,i){i&4096&&n!==(n=d[12]("error")+"")&&e.set_data(s,n)},d(d){d&&e.detach(t)}}}function I(a){let t,n,s,d,i,c;return{c(){t=e.element("casino-calendar-daily-item"),e.set_custom_element_data(t,"dailybackground",n=a[26].dailyBackground),e.set_custom_element_data(t,"dailyicon",s=a[26].dailyIcon),e.set_custom_element_data(t,"dailyday",d=a[26].dailyDay),e.set_custom_element_data(t,"dailydescription",i=a[26].dailyDescription),e.set_custom_element_data(t,"dailybuttontitle",c=a[26].dailyButtonTitle),e.set_custom_element_data(t,"index",a[28]),e.set_custom_element_data(t,"lang",a[0]),e.set_custom_element_data(t,"clientstyling",a[1]),e.set_custom_element_data(t,"clientstylingurl",a[2]),e.set_custom_element_data(t,"mbsource",a[4]),e.set_custom_element_data(t,"translationurl",a[3]),e.set_custom_element_data(t,"class","svelte-5u3c97")},m(l,u){e.insert(l,t,u)},p(l,u){u&64&&n!==(n=l[26].dailyBackground)&&e.set_custom_element_data(t,"dailybackground",n),u&64&&s!==(s=l[26].dailyIcon)&&e.set_custom_element_data(t,"dailyicon",s),u&64&&d!==(d=l[26].dailyDay)&&e.set_custom_element_data(t,"dailyday",d),u&64&&i!==(i=l[26].dailyDescription)&&e.set_custom_element_data(t,"dailydescription",i),u&64&&c!==(c=l[26].dailyButtonTitle)&&e.set_custom_element_data(t,"dailybuttontitle",c),u&1&&e.set_custom_element_data(t,"lang",l[0]),u&2&&e.set_custom_element_data(t,"clientstyling",l[1]),u&4&&e.set_custom_element_data(t,"clientstylingurl",l[2]),u&16&&e.set_custom_element_data(t,"mbsource",l[4]),u&8&&e.set_custom_element_data(t,"translationurl",l[3])},d(l){l&&e.detach(t)}}}function M(a){let t,n,s,d,i,c,l,u;return{c(){t=e.element("div"),n=e.element("casino-calendar-daily-details"),e.set_custom_element_data(n,"dailybackground",s=a[6][a[7]].dailyBackground),e.set_custom_element_data(n,"dailybuttontitle",d=a[6][a[7]].dailyButtonTitle),e.set_custom_element_data(n,"dailyday",i=a[6][a[7]].dailyDay),e.set_custom_element_data(n,"dailydescription",c=a[6][a[7]].dailyDescription),e.set_custom_element_data(n,"dailyicon",l=a[6][a[7]].dailyIcon),e.set_custom_element_data(n,"dailytitle",u=a[6][a[7]].dailyTitle),e.set_custom_element_data(n,"lang",a[0]),e.set_custom_element_data(n,"clientstyling",a[1]),e.set_custom_element_data(n,"clientstylingurl",a[2]),e.set_custom_element_data(n,"mbsource",a[4]),e.set_custom_element_data(n,"translationurl",a[3]),e.set_custom_element_data(n,"class","svelte-5u3c97"),e.attr(t,"class","CalendarDetailsWrapper svelte-5u3c97")},m(r,_){e.insert(r,t,_),e.append(t,n)},p(r,_){_&192&&s!==(s=r[6][r[7]].dailyBackground)&&e.set_custom_element_data(n,"dailybackground",s),_&192&&d!==(d=r[6][r[7]].dailyButtonTitle)&&e.set_custom_element_data(n,"dailybuttontitle",d),_&192&&i!==(i=r[6][r[7]].dailyDay)&&e.set_custom_element_data(n,"dailyday",i),_&192&&c!==(c=r[6][r[7]].dailyDescription)&&e.set_custom_element_data(n,"dailydescription",c),_&192&&l!==(l=r[6][r[7]].dailyIcon)&&e.set_custom_element_data(n,"dailyicon",l),_&192&&u!==(u=r[6][r[7]].dailyTitle)&&e.set_custom_element_data(n,"dailytitle",u),_&1&&e.set_custom_element_data(n,"lang",r[0]),_&2&&e.set_custom_element_data(n,"clientstyling",r[1]),_&4&&e.set_custom_element_data(n,"clientstylingurl",r[2]),_&16&&e.set_custom_element_data(n,"mbsource",r[4]),_&8&&e.set_custom_element_data(n,"translationurl",r[3])},d(r){r&&e.detach(t)}}}function V(a){let t;function n(i,c){var l;if(i[9])return H;if(i[8])return z;if((l=i[6])!=null&&l.length)return W}let s=n(a),d=s&&s(a);return{c(){t=e.element("div"),d&&d.c(),e.attr(t,"class","svelte-5u3c97")},m(i,c){e.insert(i,t,c),d&&d.m(t,null),a[16](t)},p(i,[c]){s===(s=n(i))&&d?d.p(i,c):(d&&d.d(1),d=s&&s(i),d&&(d.c(),d.m(t,null)))},i:e.noop,o:e.noop,d(i){i&&e.detach(t),d&&d.d(),a[16](null)}}}function F(a,t,n){let s;e.component_subscribe(a,e.$format,o=>n(12,s=o));let{cmsendpoint:d=""}=t,{env:i=""}=t,{userroles:c=""}=t,{lang:l="en"}=t,{clientstyling:u=""}=t,{clientstylingurl:r=""}=t,{translationurl:_}=t,{mbsource:h}=t,f,p,g=0,v=!0,w=!1,E=!1,k=window.navigator.userAgent,b=!1,B;const T=()=>{N(l)};Object.keys(D).forEach(o=>{C(o,D[o])});const O=()=>{let o=_;if(o)return fetch(o).then(m=>m.json()).then(m=>{Object.keys(m).forEach(y=>{C(y,m[y])})}).catch(m=>{console.log(m)})},j=()=>{n(8,v=!0);let o=new URL(`${d}/${l}/daily-calendar`);o.searchParams.append("userRoles",c),o.searchParams.append("env",i);let m=e.getDevice(k);m&&(m==="PC"?o.searchParams.append("device","dk"):m==="iPad"||m==="iPhone"?o.searchParams.append("device","ios"):o.searchParams.append("device","mtWeb")),fetch(o.href).then(y=>y.json()).then(y=>{n(6,p=y)}).catch(y=>{console.log(y),n(9,w=!0)}).finally(()=>{A(),n(8,v=!1)})},A=()=>{const o=f.getRootNode().host;o.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:o}}))},R=()=>{j()},S=o=>{var m;o.data&&o.data.type=="OpenCalendar"&&(n(7,g=o.data.index),n(11,b=!0),window.postMessage({type:"ShowModal",selectedIndex:g,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:(m=p[g])==null?void 0:m.dailyEvents})),o.data&&o.data.type=="ModalClosed"&&n(11,b=!1)};e.onMount(()=>(window.addEventListener("message",S,!1),e.isMobile(k)&&n(10,E=!0),()=>{window.removeEventListener("message",S)}));function q(o){e.binding_callbacks[o?"unshift":"push"](()=>{f=o,n(5,f)})}return a.$$set=o=>{"cmsendpoint"in o&&n(13,d=o.cmsendpoint),"env"in o&&n(14,i=o.env),"userroles"in o&&n(15,c=o.userroles),"lang"in o&&n(0,l=o.lang),"clientstyling"in o&&n(1,u=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"translationurl"in o&&n(3,_=o.translationurl),"mbsource"in o&&n(4,h=o.mbsource)},a.$$.update=()=>{a.$$.dirty&57345&&d&&l&&i&&c&&R(),a.$$.dirty&34&&u&&f&&e.setClientStyling(f,u),a.$$.dirty&36&&r&&f&&e.setClientStylingURL(f,r),a.$$.dirty&48&&f&&e.setStreamStyling(f,`${h}.Style`,B),a.$$.dirty&1&&l&&T(),a.$$.dirty&9&&l&&_&&O()},[l,u,r,_,h,f,p,g,v,w,E,b,s,d,i,c,q]}class P extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,V,e.safe_not_equal,{cmsendpoint:13,env:14,userroles:15,lang:0,clientstyling:1,clientstylingurl:2,translationurl:3,mbsource:4},U)}get cmsendpoint(){return this.$$.ctx[13]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[14]}set env(t){this.$$set({env:t}),e.flush()}get userroles(){return this.$$.ctx[15]}set userroles(t){this.$$set({userroles:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[3]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(P,{cmsendpoint:{},env:{},userroles:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=P;
|