@everymatrix/casino-lobby 1.46.1 → 1.47.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-9cVNHt1-.cjs → CasinoCalendar-B3jjGeXh.cjs} +5 -5
- package/components/{CasinoCalendar-3HRZGpnG.js → CasinoCalendar-BuNYmxT2.js} +43 -48
- package/components/{CasinoCalendarDailyDetails-MwTyCObT.js → CasinoCalendarDailyDetails-CXA-hOPw.js} +1 -1
- package/components/{CasinoCalendarDailyDetails-Dcf0TKzH.cjs → CasinoCalendarDailyDetails-D1jKEWfR.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-B-h-76yh.js → CasinoCalendarDailyItem-CXBzGC5j.js} +1 -1
- package/components/{CasinoCalendarDailyItem-Cahte_IM.cjs → CasinoCalendarDailyItem-zl4-e9DC.cjs} +1 -1
- package/components/{CasinoCategoriesSlider-B3Aneyii.js → CasinoCategoriesSlider-BusDUIsJ.js} +2 -2
- package/components/{CasinoCategoriesSlider-AAgG2_xb.cjs → CasinoCategoriesSlider-C0zvzKUl.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-BvEenHqO.cjs → CasinoCollectionsProviders-CHDbSVYn.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-D-DgSMvu.js → CasinoCollectionsProviders-rLy8aW01.js} +1 -1
- package/components/{CasinoFavoritesSection-BqD5E07c.cjs → CasinoFavoritesSection-RMtaQmk3.cjs} +1 -1
- package/components/{CasinoFavoritesSection-DvEsLHfg.js → CasinoFavoritesSection-uqcus7J_.js} +2 -2
- package/components/{CasinoFilter-Bdc0mE0X.cjs → CasinoFilter-BMNiE4RM.cjs} +1 -1
- package/components/{CasinoFilter-BWEtfBml.js → CasinoFilter-DvTOnHYj.js} +1 -1
- package/components/{CasinoGamePage-C4GA4fUE.js → CasinoGamePage-DAsfOU8X.js} +1 -1
- package/components/{CasinoGamePage-AiLzsSGU.cjs → CasinoGamePage-oxi03_5O.cjs} +1 -1
- package/components/{CasinoGameThumbnail-BOdBhhkI.js → CasinoGameThumbnail-CIjludJv.js} +2 -2
- package/components/{CasinoGameThumbnail-ssiYMbtr.cjs → CasinoGameThumbnail-aayeTjp3.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-kk_bJDeP.cjs → CasinoGamesCategorySection-CbKid5So.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-D_mxWhRi.js → CasinoGamesCategorySection-DmNsoS_K.js} +5 -5
- package/components/{CasinoJackpotBanner-BftFjZpI.cjs → CasinoJackpotBanner-AjhcDuUc.cjs} +1 -1
- package/components/{CasinoJackpotBanner-D1RCyJGt.js → CasinoJackpotBanner-hWTETjFb.js} +1 -1
- package/components/{CasinoLastPlayedSection-DJ2FxLNe.js → CasinoLastPlayedSection-B1ezatY7.js} +2 -2
- package/components/{CasinoLastPlayedSection-Bz5Qb3Ib.cjs → CasinoLastPlayedSection-B9y4sMJw.cjs} +1 -1
- package/components/{CasinoLobby-DrNupA3v.cjs → CasinoLobby-DQp8R35R.cjs} +1 -1
- package/components/{CasinoLobby-CES-96FR.js → CasinoLobby-fdlZEYrv.js} +5 -5
- package/components/{CasinoModal-DqBbtAjA.cjs → CasinoModal-B71hMJhL.cjs} +1 -1
- package/components/{CasinoModal-CZbdtmLm.js → CasinoModal-C0mMA0JZ.js} +1 -1
- package/components/{CasinoMostPlayedSection-CNNXVH17.js → CasinoMostPlayedSection-CQWFs5qH.js} +2 -2
- package/components/{CasinoMostPlayedSection-Bat5kmHE.cjs → CasinoMostPlayedSection-DgiDKdly.cjs} +1 -1
- package/components/{CasinoMyGames-Df-GsccB.js → CasinoMyGames-B1qu8JUd.js} +4 -4
- package/components/{CasinoMyGames-Bmn2f_Ow.cjs → CasinoMyGames-BxbclHBX.cjs} +1 -1
- package/components/CasinoPage-1snYAINT.cjs +1 -0
- package/components/{CasinoPage-Cec_LYGK.js → CasinoPage-dHpPzlUR.js} +417 -417
- package/components/{CasinoRandomGame-BSD5DYtt.js → CasinoRandomGame-C2aJSdJJ.js} +1 -1
- package/components/{CasinoRandomGame-CNdoKY0C.cjs → CasinoRandomGame-DAhFi06u.cjs} +1 -1
- package/components/{CasinoSearch-D_Me-I1t.cjs → CasinoSearch-CY-mTY8I.cjs} +1 -1
- package/components/{CasinoSearch-TES6haMv.js → CasinoSearch-CYWXVXo2.js} +3 -3
- package/components/{CasinoSlider-kzZxK81G.cjs → CasinoSlider-DU8y1oGD.cjs} +1 -1
- package/components/{CasinoSlider-D5B-CjPM.js → CasinoSlider-reGFKOnL.js} +1 -1
- package/components/{CasinoSort-9pQqbHyF.cjs → CasinoSort--SQX874a.cjs} +1 -1
- package/components/{CasinoSort-T6UQhFka.js → CasinoSort-CcG6ImMT.js} +1 -1
- package/components/{CasinoWinners-CD5HS4Gb.cjs → CasinoWinners-B1LRzKTu.cjs} +1 -1
- package/components/{CasinoWinners-auSd-4D9.js → CasinoWinners-CA6s2Z0J.js} +2 -2
- package/components/{GeneralAnimationLoading-DRiG33XR.js → GeneralAnimationLoading-DG0Zw3Hq.js} +1 -1
- package/components/{GeneralAnimationLoading-CIYgtCsE.cjs → GeneralAnimationLoading-DmhAiTlH.cjs} +1 -1
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/package.json +3 -2
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/casino-play-random-game-DJ_HpP4O.cjs +371 -0
- package/stencil/casino-play-random-game-c-goQ4iU.js +577 -0
- package/stencil/index-7666b794-CHdM2q8W.cjs +1 -0
- package/stencil/index-7666b794-KI7j9CY0.js +571 -0
- package/components/CasinoPage-CnPyTaPP.cjs +0 -1
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
var p = (n, e, a) => new Promise((t, o) => {
|
|
2
|
+
var m = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
c(a.next(r));
|
|
5
|
+
} catch (h) {
|
|
6
|
+
o(h);
|
|
7
|
+
}
|
|
8
|
+
}, d = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
c(a.throw(r));
|
|
11
|
+
} catch (h) {
|
|
12
|
+
o(h);
|
|
13
|
+
}
|
|
14
|
+
}, c = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(m, d);
|
|
15
|
+
c((a = a.apply(n, e)).next());
|
|
16
|
+
});
|
|
17
|
+
import { b as u, p as f, r as w, h as i, g as x } from "./index-7666b794-KI7j9CY0.js";
|
|
18
|
+
import { g as y } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
|
+
var G = () => {
|
|
20
|
+
const n = import.meta.url, e = {};
|
|
21
|
+
return n !== "" && (e.resourcesUrl = new URL(".", n).href), f(e);
|
|
22
|
+
};
|
|
23
|
+
G().then((n) => p(void 0, null, function* () {
|
|
24
|
+
return yield y(), u([["casino-play-random-game", [[1, "casino-play-random-game", { endpoint: [513], datasource: [513], language: [513], specificCategory: [513, "specific-category"], iconVisible: [513, "icon-visible"], iconVisibleOnAnim: [513, "icon-visible-on-anim"], launchByGameCard: [513, "launch-by-game-card"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], hasErrors: [32], limitStylingAppends: [32], isLoading: [32], gamesToShow: [32], selectedGame: [32], animationDone: [32], animationStarted: [32] }, null, { endpoint: ["watchEndpoint"], datasource: ["watchEndpoint"], language: ["watchEndpoint"], translationUrl: ["handleNewTranslations"], iconVisible: ["handleIsIconVisible"] }]]]], n);
|
|
25
|
+
}));
|
|
26
|
+
const b = () => {
|
|
27
|
+
let n = window.navigator.userAgent;
|
|
28
|
+
return n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
29
|
+
}, v = "en", l = {
|
|
30
|
+
en: {
|
|
31
|
+
error: "Error",
|
|
32
|
+
randomGameLoading: "Loading ...",
|
|
33
|
+
playRandomGame: "Play a random game",
|
|
34
|
+
playNowRandomGame: "Play now",
|
|
35
|
+
spinRandomGame: "Spin"
|
|
36
|
+
},
|
|
37
|
+
ro: {
|
|
38
|
+
error: "Error",
|
|
39
|
+
randomGameLoading: "Loading ...",
|
|
40
|
+
playRandomGame: "Play a random game",
|
|
41
|
+
playNowRandomGame: "Play now",
|
|
42
|
+
spinRandomGame: "Spin"
|
|
43
|
+
},
|
|
44
|
+
fr: {
|
|
45
|
+
error: "Error",
|
|
46
|
+
randomGameLoading: "Loading ...",
|
|
47
|
+
playRandomGame: "Play a random game",
|
|
48
|
+
playNowRandomGame: "Play now",
|
|
49
|
+
spinRandomGame: "Spin"
|
|
50
|
+
},
|
|
51
|
+
hr: {
|
|
52
|
+
error: "Greška",
|
|
53
|
+
randomGameLoading: "Učitavanje ...",
|
|
54
|
+
playRandomGame: "Igraj nasumičnu igru",
|
|
55
|
+
playNowRandomGame: "Igraj sada",
|
|
56
|
+
spinRandomGame: "Zavrti"
|
|
57
|
+
},
|
|
58
|
+
hu: {
|
|
59
|
+
error: "Error",
|
|
60
|
+
randomGameLoading: "Loading ...",
|
|
61
|
+
playRandomGame: "Play a random game",
|
|
62
|
+
playNowRandomGame: "Play now",
|
|
63
|
+
spinRandomGame: "Spin"
|
|
64
|
+
},
|
|
65
|
+
tr: {
|
|
66
|
+
error: "Hata",
|
|
67
|
+
randomGameLoading: "Yükleniyor...",
|
|
68
|
+
playRandomGame: "Rasgele bir oyun oyna",
|
|
69
|
+
playNowRandomGame: "Şimdi Oyna",
|
|
70
|
+
spinRandomGame: "DEĞİŞTİR"
|
|
71
|
+
}
|
|
72
|
+
}, g = (n) => new Promise((e) => {
|
|
73
|
+
fetch(n).then((a) => a.json()).then((a) => {
|
|
74
|
+
Object.keys(a).forEach((t) => {
|
|
75
|
+
l[t] || (l[t] = {});
|
|
76
|
+
for (let o in a[t])
|
|
77
|
+
l[t][o] = a[t][o];
|
|
78
|
+
}), e(!0);
|
|
79
|
+
});
|
|
80
|
+
}), s = (n, e) => {
|
|
81
|
+
const a = e;
|
|
82
|
+
return l[a !== void 0 && a in l ? a : v][n];
|
|
83
|
+
}, R = `:host {
|
|
84
|
+
display: block;
|
|
85
|
+
font-family: inherit;
|
|
86
|
+
-webkit-transform: translate3d(0, 0, 0);
|
|
87
|
+
transform: translate3d(0, 0, 0);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host * {
|
|
91
|
+
-webkit-transform: translate3d(0, 0, 0);
|
|
92
|
+
transform: translate3d(0, 0, 0);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.RandomGameWrapper {
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: var(--emw--size-4x-medium, 700px);
|
|
98
|
+
background: transparent;
|
|
99
|
+
position: relative;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.GameContainerGradient {
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 10%;
|
|
106
|
+
left: -5px;
|
|
107
|
+
width: 100vw;
|
|
108
|
+
height: 80%;
|
|
109
|
+
background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.5) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.5) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
z-index: 1;
|
|
112
|
+
filter: blur(10px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.GamesContainer {
|
|
116
|
+
display: flex;
|
|
117
|
+
height: var(--emw--size-4x-medium, 600px);
|
|
118
|
+
flex-direction: row;
|
|
119
|
+
flex-wrap: nowrap;
|
|
120
|
+
justify-content: flex-start;
|
|
121
|
+
align-items: center;
|
|
122
|
+
align-content: flex-start;
|
|
123
|
+
gap: var(--emw--spacing-large, 20px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.RandomGameCard {
|
|
127
|
+
position: relative;
|
|
128
|
+
width: var(--emw--size-3x-medium, 300px);
|
|
129
|
+
height: var(--emw--size-4x-medium, 420px);
|
|
130
|
+
border-radius: var(--emw--border-radius-large, 20px);
|
|
131
|
+
top: 8%;
|
|
132
|
+
filter: blur(5px);
|
|
133
|
+
}
|
|
134
|
+
.RandomGameCard .RandomGameVendor {
|
|
135
|
+
position: absolute;
|
|
136
|
+
font-size: var(--emw--font-size-x-small, 12px);
|
|
137
|
+
bottom: var(--emw--spacing-small-minus, 10px);
|
|
138
|
+
left: var(--emw--spacing-small-minus, 10px);
|
|
139
|
+
color: var(--emw--color-typography, #FFFFFF);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.TheRandomGame {
|
|
143
|
+
animation-name: ZoomFadeIn;
|
|
144
|
+
animation-duration: 0.5s;
|
|
145
|
+
animation-fill-mode: forwards;
|
|
146
|
+
-webkit-animation-name: ZoomFadeIn;
|
|
147
|
+
-webkit-animation-duration: 0.5s;
|
|
148
|
+
-webkit-animation-fill-mode: forwards;
|
|
149
|
+
opacity: 1;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
filter: blur(0);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.RandomGameImage {
|
|
155
|
+
width: inherit;
|
|
156
|
+
height: inherit;
|
|
157
|
+
object-fit: cover;
|
|
158
|
+
border-radius: var(--emw--border-radius-large, 20px);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.RandomGameDetails {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: row;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
align-items: center;
|
|
166
|
+
color: var(--emw--color-typography, #FFFFFF);
|
|
167
|
+
font-size: var(--emw--font-size-small, 14px);
|
|
168
|
+
width: 100%;
|
|
169
|
+
}
|
|
170
|
+
.RandomGameDetails .RandomGameTitle {
|
|
171
|
+
line-height: 18px;
|
|
172
|
+
}
|
|
173
|
+
.RandomGameDetails .RandomGameInfo {
|
|
174
|
+
border-radius: 50%;
|
|
175
|
+
width: var(--emw--spacing-medium, 16px);
|
|
176
|
+
height: var(--emw--spacing-medium, 16px);
|
|
177
|
+
font-size: var(--emw--font-size-x-small, 12px);
|
|
178
|
+
font-weight: var(--emw--font-weight-normal, 400);
|
|
179
|
+
border: solid 1px var(--emw--color-typography, #FFFFFF);
|
|
180
|
+
text-align: center;
|
|
181
|
+
margin: var(--emw--spacing-2x-small, 4px) 0;
|
|
182
|
+
line-height: 14px;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
}
|
|
185
|
+
.RandomGameDetails .RandomGamePlay {
|
|
186
|
+
background: var(--emw--color-primary, #4bd004);
|
|
187
|
+
color: var(--emw--color-typography, #FFFFFF);
|
|
188
|
+
border: none;
|
|
189
|
+
border-radius: var(--emw--border-radius-medium, 5px);
|
|
190
|
+
width: 200px;
|
|
191
|
+
height: 40px;
|
|
192
|
+
font-size: var(--emw--font-size-small, 14px);
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.ButtonWrapper {
|
|
197
|
+
position: absolute;
|
|
198
|
+
top: 50%;
|
|
199
|
+
left: 50%;
|
|
200
|
+
transform: translate(-50%, -50%);
|
|
201
|
+
z-index: 20;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ButtonContainer {
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-direction: column;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
align-items: center;
|
|
209
|
+
gap: 10px;
|
|
210
|
+
width: 100%;
|
|
211
|
+
position: relative;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ButtonIcon {
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: column;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
align-items: center;
|
|
219
|
+
gap: var(--emw--spacing-2x-small, 5px);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.QustionMark {
|
|
223
|
+
position: absolute;
|
|
224
|
+
font-family: sans-serif;
|
|
225
|
+
font-size: 120px;
|
|
226
|
+
font-weight: 900;
|
|
227
|
+
color: color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 10%);
|
|
228
|
+
text-shadow: 0px 12px 0px color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 50%);
|
|
229
|
+
left: 50%;
|
|
230
|
+
top: -20%;
|
|
231
|
+
transform: translateX(-50%);
|
|
232
|
+
z-index: 10;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.HexagonMarkShadow {
|
|
236
|
+
width: 100px;
|
|
237
|
+
height: 115px;
|
|
238
|
+
display: flex;
|
|
239
|
+
justify-content: center;
|
|
240
|
+
align-items: center;
|
|
241
|
+
background: color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 70%);
|
|
242
|
+
clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.HexagonMark {
|
|
246
|
+
position: absolute;
|
|
247
|
+
width: var(--emw--size-medium, 90px);
|
|
248
|
+
height: 105px;
|
|
249
|
+
background: linear-gradient(to bottom, color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 20%) 0%, var(--emw--categories-color-secondary, var(--emw--color-secondary, #eeac4a)) 100%);
|
|
250
|
+
clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.RandomButtons {
|
|
254
|
+
display: flex;
|
|
255
|
+
flex-direction: row;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
align-items: center;
|
|
258
|
+
gap: var(--emw--spacing-2x-small, 5px);
|
|
259
|
+
width: 100%;
|
|
260
|
+
position: relative;
|
|
261
|
+
z-index: 10;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.RandomButton {
|
|
265
|
+
font-size: var(--emw--font-size-large, 20px);
|
|
266
|
+
text-transform: uppercase;
|
|
267
|
+
width: max-content;
|
|
268
|
+
border-radius: var(--emw--button-border-radius, 50px);
|
|
269
|
+
padding: var(--emw--spacing-large, 20px) var(--emw--spacing-2x-large, 40px);
|
|
270
|
+
border: solid 3px var(--emw--button-border-color, #063B17);
|
|
271
|
+
color: var(--emw--button-text-color, #FFFFFF);
|
|
272
|
+
opacity: 1;
|
|
273
|
+
animation: ButtonEffect 3s linear infinite;
|
|
274
|
+
background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));
|
|
275
|
+
background-size: 300% 100%;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
position: relative;
|
|
278
|
+
z-index: 10;
|
|
279
|
+
}
|
|
280
|
+
.RandomButton:hover {
|
|
281
|
+
opacity: 0.8;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.HideAnimation {
|
|
285
|
+
filter: blur(5px);
|
|
286
|
+
animation: AnimateButton 0.2s forwards;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.Flip {
|
|
290
|
+
animation-name: Flip, Blur;
|
|
291
|
+
animation-duration: 0.75s, 3s;
|
|
292
|
+
animation-iteration-count: infinite, 1;
|
|
293
|
+
-webkit-animation-name: Flip, Blur;
|
|
294
|
+
-webkit-animation-duration: 0.75s, 3s;
|
|
295
|
+
-webkit-animation-iteration-count: infinite, 1;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@keyframes ButtonEffect {
|
|
299
|
+
0% {
|
|
300
|
+
background-position: 0% 50%;
|
|
301
|
+
}
|
|
302
|
+
33% {
|
|
303
|
+
background-position: 100% 50%;
|
|
304
|
+
}
|
|
305
|
+
66% {
|
|
306
|
+
background-position: 200% 50%;
|
|
307
|
+
}
|
|
308
|
+
100% {
|
|
309
|
+
background-position: 300% 50%;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
@keyframes ZoomFadeIn {
|
|
313
|
+
0% {
|
|
314
|
+
transform: scale(0.2) translateY(0);
|
|
315
|
+
filter: blur(5px);
|
|
316
|
+
opacity: 0.3;
|
|
317
|
+
}
|
|
318
|
+
50% {
|
|
319
|
+
transform: scale(1.1) translateY(-30px);
|
|
320
|
+
filter: blur(2px);
|
|
321
|
+
opacity: 0.7;
|
|
322
|
+
}
|
|
323
|
+
100% {
|
|
324
|
+
transform: scale(1) translateY(-30px);
|
|
325
|
+
filter: blur(0px);
|
|
326
|
+
opacity: 1;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
@keyframes AnimateButton {
|
|
330
|
+
0% {
|
|
331
|
+
opacity: 0.7;
|
|
332
|
+
}
|
|
333
|
+
50% {
|
|
334
|
+
opacity: 0.4;
|
|
335
|
+
}
|
|
336
|
+
100% {
|
|
337
|
+
opacity: 0;
|
|
338
|
+
display: none;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
@keyframes Flip {
|
|
342
|
+
0% {
|
|
343
|
+
transform: rotateY(0deg);
|
|
344
|
+
}
|
|
345
|
+
50% {
|
|
346
|
+
transform: rotateY(180deg);
|
|
347
|
+
}
|
|
348
|
+
100% {
|
|
349
|
+
transform: rotateY(360deg);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
@keyframes Blur {
|
|
353
|
+
0% {
|
|
354
|
+
filter: blur(0);
|
|
355
|
+
}
|
|
356
|
+
50% {
|
|
357
|
+
filter: blur(1px);
|
|
358
|
+
}
|
|
359
|
+
100% {
|
|
360
|
+
filter: blur(3px);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
@container (max-width: 475px) {
|
|
364
|
+
.GamesContainer {
|
|
365
|
+
height: inherit;
|
|
366
|
+
gap: var(--emw--spacing-2x-small, 5px);
|
|
367
|
+
}
|
|
368
|
+
.RandomGameWrapper {
|
|
369
|
+
width: 100%;
|
|
370
|
+
height: 300px;
|
|
371
|
+
overflow: hidden;
|
|
372
|
+
background: transparent;
|
|
373
|
+
position: relative;
|
|
374
|
+
}
|
|
375
|
+
.GameContainerGradient {
|
|
376
|
+
position: absolute;
|
|
377
|
+
top: 10%;
|
|
378
|
+
left: -5px;
|
|
379
|
+
width: 100vw;
|
|
380
|
+
height: 80%;
|
|
381
|
+
background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.2) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.2) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);
|
|
382
|
+
pointer-events: none;
|
|
383
|
+
z-index: 1;
|
|
384
|
+
filter: blur(5px);
|
|
385
|
+
}
|
|
386
|
+
.RandomGameCard {
|
|
387
|
+
width: 100px;
|
|
388
|
+
height: 150px;
|
|
389
|
+
top: 0%;
|
|
390
|
+
border-radius: var(--emw--border-radius-medium, 4px);
|
|
391
|
+
filter: blur(5px);
|
|
392
|
+
}
|
|
393
|
+
.RandomGameImage {
|
|
394
|
+
width: 102px;
|
|
395
|
+
height: inherit;
|
|
396
|
+
top: 0%;
|
|
397
|
+
}
|
|
398
|
+
.RandomGameDetails {
|
|
399
|
+
font-size: 14px;
|
|
400
|
+
width: 100%;
|
|
401
|
+
}
|
|
402
|
+
.RandomGameDetails .RandomGameTitle {
|
|
403
|
+
line-height: 18px;
|
|
404
|
+
width: 75%;
|
|
405
|
+
}
|
|
406
|
+
.RandomGameDetails .RandomGameInfo {
|
|
407
|
+
border-radius: 50%;
|
|
408
|
+
width: 16px;
|
|
409
|
+
height: 16px;
|
|
410
|
+
font-size: var(--emw--font-size-x-small, 12px);
|
|
411
|
+
line-height: 14px;
|
|
412
|
+
}
|
|
413
|
+
.RandomGameDetails .RandomGamePlay {
|
|
414
|
+
background: var(--emw--color-primary, #52d004);
|
|
415
|
+
color: var(--emw--color-typography, #FFFFFF);
|
|
416
|
+
border: none;
|
|
417
|
+
border-radius: 5px;
|
|
418
|
+
width: 200px;
|
|
419
|
+
height: 40px;
|
|
420
|
+
font-size: 14px;
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
}
|
|
423
|
+
.RandomGameCard .RandomGameVendor {
|
|
424
|
+
font-size: var(--emw--font-size-x-small, 12px);
|
|
425
|
+
bottom: 5px;
|
|
426
|
+
right: 5px;
|
|
427
|
+
}
|
|
428
|
+
.RandomButtons {
|
|
429
|
+
display: flex;
|
|
430
|
+
flex-direction: column;
|
|
431
|
+
justify-content: center;
|
|
432
|
+
align-items: center;
|
|
433
|
+
gap: 5px;
|
|
434
|
+
width: 100%;
|
|
435
|
+
}
|
|
436
|
+
.RandomButton {
|
|
437
|
+
font-size: var(--emw--font-size-x-small, 12px);
|
|
438
|
+
padding: 10px 15px;
|
|
439
|
+
border: solid 1px var(--emw--button-border-color, #063B17);
|
|
440
|
+
}
|
|
441
|
+
.QustionMark {
|
|
442
|
+
font-size: 100px;
|
|
443
|
+
font-weight: 700;
|
|
444
|
+
}
|
|
445
|
+
.HexagonMarkShadow {
|
|
446
|
+
width: 80px;
|
|
447
|
+
height: 95px;
|
|
448
|
+
}
|
|
449
|
+
.HexagonMark {
|
|
450
|
+
width: 70px;
|
|
451
|
+
height: 85px;
|
|
452
|
+
}
|
|
453
|
+
}`, k = R, C = class {
|
|
454
|
+
constructor(n) {
|
|
455
|
+
w(this, n), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
|
|
456
|
+
let a = e.length, t;
|
|
457
|
+
for (; a !== 0; )
|
|
458
|
+
t = Math.floor(Math.random() * a), a--, [e[a], e[t]] = [e[t], e[a]];
|
|
459
|
+
return e;
|
|
460
|
+
}, this.setClientStyling = () => {
|
|
461
|
+
let e = document.createElement("style");
|
|
462
|
+
e.innerHTML = this.clientStyling, this.host.shadowRoot.prepend(e);
|
|
463
|
+
}, this.setClientStylingURL = () => {
|
|
464
|
+
let e = new URL(this.clientStylingUrl), a = document.createElement("style");
|
|
465
|
+
fetch(e.href).then((t) => t.text()).then((t) => {
|
|
466
|
+
a.innerHTML = t, this.clientStyling = t, setTimeout(() => {
|
|
467
|
+
this.host.shadowRoot.prepend(a);
|
|
468
|
+
}, 1);
|
|
469
|
+
});
|
|
470
|
+
}, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.limitStylingAppends = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
|
|
471
|
+
}
|
|
472
|
+
watchEndpoint(n, e) {
|
|
473
|
+
n && n != e && this.endpoint && this.fetchGameList();
|
|
474
|
+
}
|
|
475
|
+
handleNewTranslations() {
|
|
476
|
+
this.isLoading = !0, g(this.translationUrl).then(() => {
|
|
477
|
+
this.isLoading = !1;
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
handleIsIconVisible() {
|
|
481
|
+
this.iconVisibility = this.iconVisible === "true";
|
|
482
|
+
}
|
|
483
|
+
connectedCallback() {
|
|
484
|
+
this.handleIsIconVisible();
|
|
485
|
+
}
|
|
486
|
+
componentWillLoad() {
|
|
487
|
+
if (this.translationUrl.length > 2 && g(this.translationUrl), this.endpoint && this.language && this.datasource)
|
|
488
|
+
return this.fetchGameList();
|
|
489
|
+
}
|
|
490
|
+
componentDidLoad() {
|
|
491
|
+
!this.limitStylingAppends && this.host && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
|
|
492
|
+
}
|
|
493
|
+
fetchGameList() {
|
|
494
|
+
let n = new URL(`${this.endpoint}/v1/casino/games`);
|
|
495
|
+
return n.searchParams.append("platform", b()), n.searchParams.append("datasource", this.datasource), n.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), n.searchParams.append("expand", "vendor"), n.searchParams.append("pagination", "offset=0,limit=423"), n.searchParams.append("language", this.language), this.specificCategory && n.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((e, a) => {
|
|
496
|
+
this.isLoading = !0, fetch(n.href).then((t) => t.json()).then((t) => {
|
|
497
|
+
this.gamesToShow = this.setUpGames(t == null ? void 0 : t.items), e(!0);
|
|
498
|
+
}).catch((t) => {
|
|
499
|
+
console.error(t), this.hasErrors = !0, a(t);
|
|
500
|
+
}).finally(() => {
|
|
501
|
+
this.isLoading = !1;
|
|
502
|
+
});
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
setUpGames(n) {
|
|
506
|
+
const e = this.shuffle(n).slice(0, 40);
|
|
507
|
+
return e.concat(e);
|
|
508
|
+
}
|
|
509
|
+
selectRandomGame() {
|
|
510
|
+
const n = this.gamesToShow.length / 2;
|
|
511
|
+
this.selectedGameIndex = Math.floor(Math.random() * (n - 3)), this.selectedGameIndex += n, this.selectedGameEl = this.gameContainer.children[this.selectedGameIndex];
|
|
512
|
+
}
|
|
513
|
+
playRandomGame() {
|
|
514
|
+
this.animateGames(), typeof gtag == "function" && gtag("event", "PlayRandomGame", {
|
|
515
|
+
context: "CasinoPlayRandomGame"
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
respin() {
|
|
519
|
+
this.animateGames(), typeof gtag == "function" && gtag("event", "RespinRandomGame", {
|
|
520
|
+
context: "CasinoPlayRandomGame"
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
animateGames() {
|
|
524
|
+
this.iconVisibility = this.iconVisibleOnAnim === "true", this.animationStarted = !0, this.animationDone = !1, this.animation && this.animation.cancel(), this.selectedGameEl && (this.selectedGameEl.classList.remove("TheRandomGame"), this.selectedGame = null, this.selectedGameIndex = null), this.selectRandomGame();
|
|
525
|
+
const n = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), e = parseInt(n, 10), a = this.selectedGameEl.offsetWidth, t = this.gameContainer.offsetWidth, o = (a + e) * this.selectedGameIndex + // Width of game cards up to the selected
|
|
526
|
+
a / 2 - // Additional half card width to center to the selected game
|
|
527
|
+
t / 2, m = [
|
|
528
|
+
{ transform: "translateX(0px)", scale: 1 },
|
|
529
|
+
{ scale: 0.75 },
|
|
530
|
+
{ transform: `translateX(-${o}px)`, scale: 1 }
|
|
531
|
+
], d = {
|
|
532
|
+
duration: 3e3,
|
|
533
|
+
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
534
|
+
fill: "forwards"
|
|
535
|
+
};
|
|
536
|
+
this.animation = this.gameContainer.animate(m, d), this.animation.onfinish = () => {
|
|
537
|
+
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
playGame() {
|
|
541
|
+
this.selectedGame && (window.postMessage({ type: "PlayRandomGame", gameId: this.selectedGame.id, launchUrl: this.selectedGame.launchUrl, gameName: this.selectedGame.name, subVendor: this.selectedGame.subVendor }, window.location.href), typeof gtag == "function" && gtag("event", "OpenRandomGame", {
|
|
542
|
+
context: "CasinoPlayRandomGame"
|
|
543
|
+
}));
|
|
544
|
+
}
|
|
545
|
+
showGameInfo() {
|
|
546
|
+
window.postMessage({ type: "InfoRandomGame", gameId: this.selectedGame.id, launchUrl: this.selectedGame.launchUrl, gameName: this.selectedGame.name, subVendor: this.selectedGame.subVendor }, window.location.href), typeof gtag == "function" && gtag("event", "OpenRandomGameInfo", {
|
|
547
|
+
context: "CasinoPlayRandomGame"
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
renderGameDetails() {
|
|
551
|
+
return i("div", { class: "RandomButtonsWrapper" }, i("div", { class: "RandomGameDetails" }, i("span", { class: "RandomGameTitle" }, this.selectedGame.name), i("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), i("div", { class: "RandomButtons" }, i("button", { class: "RandomButton On", onClick: () => this.respin() }, s("spinRandomGame", this.language)), !this.launchByGameCard && i("button", { class: "RandomButton On", onClick: () => this.playGame() }, s("playNowRandomGame", this.language))));
|
|
552
|
+
}
|
|
553
|
+
render() {
|
|
554
|
+
if (this.hasErrors)
|
|
555
|
+
return i("div", { class: "RandomGameError" }, i("div", { class: "Title" }, s("error", this.language)));
|
|
556
|
+
if (this.isLoading)
|
|
557
|
+
return i("div", { class: "RandomGameLoading" }, i("div", { class: "Title" }, s("randomGameLoading", this.language)));
|
|
558
|
+
if (!this.isLoading)
|
|
559
|
+
return i("div", { class: "RandomGameWrapper" }, i("div", { class: "GameContainerGradient" }), i("div", { class: "GamesContainer", ref: (n) => this.gameContainer = n }, this.gamesToShow && this.gamesToShow.map((n, e) => i("div", { class: "RandomGameCard", key: e, onClick: this.launchByGameCard === "true" ? () => this.playGame() : null }, i("div", { class: "RandomGameVendor" }, n.vendor.name), i("img", { class: "RandomGameImage", src: n.thumbnail, alt: n.name, title: n.name }), this.selectedGame && this.selectedGameIndex === e && this.renderGameDetails()))), i("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, i("div", { class: "ButtonContainer" }, this.iconVisibility && i("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, i("div", { class: "QustionMark" }, "?"), i("div", { class: "HexagonMarkShadow" }), i("div", { class: "HexagonMark" })), !this.animationStarted && i("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, s("playRandomGame", this.language)))));
|
|
560
|
+
}
|
|
561
|
+
get host() {
|
|
562
|
+
return x(this);
|
|
563
|
+
}
|
|
564
|
+
static get watchers() {
|
|
565
|
+
return {
|
|
566
|
+
endpoint: ["watchEndpoint"],
|
|
567
|
+
datasource: ["watchEndpoint"],
|
|
568
|
+
language: ["watchEndpoint"],
|
|
569
|
+
translationUrl: ["handleNewTranslations"],
|
|
570
|
+
iconVisible: ["handleIsIconVisible"]
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
C.style = k;
|
|
575
|
+
export {
|
|
576
|
+
C as casino_play_random_game
|
|
577
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var x=(e,t,n)=>new Promise((s,r)=>{var a=o=>{try{i(n.next(o))}catch(c){r(c)}},l=o=>{try{i(n.throw(o))}catch(c){r(c)}},i=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,l);i((n=n.apply(e,t)).next())});const me="casino-play-random-game",_={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!1,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!0,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!1,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!1,propMutable:!1,propNumber:!1,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!1,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!1,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!1,vdomText:!0,vdomXlink:!1,watchCallback:!0};var Se=Object.defineProperty,Ee=(e,t)=>{for(var n in t)Se(e,n,{get:t[n],enumerable:!0})},H=new WeakMap,E=e=>H.get(e),be=(e,t)=>H.set(t.$lazyInstance$=e,t),ke=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],H.set(e,n)},G=(e,t)=>t in e,k=(e,t)=>(0,console.error)(e,t),I=new Map,we=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const a=I.get(r);if(a)return a[s];{const l=i=>(I.set(r,i),i[s]);switch(r){case"casino-play-random-game":return Promise.resolve().then(()=>require("./casino-play-random-game-DJ_HpP4O.cjs")).then(l,k)}}return import(`./${r}.entry.js`).then(l=>(I.set(r,l),l[s]),k)},O=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",C=typeof window!="undefined"?window:{},m=C.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,Q=[],se=[],Le=(e,t)=>n=>{e.push(n),U||(U=!0,h.$flags$&4?F(D):h.raf(D))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){k(n)}e.length=0},D=()=>{Y(Q),Y(se),(U=Q.length>0)&&h.raf(D)},F=e=>te().then(e),Pe=Le(se),J={},Ae=e=>e!=null,q=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var _e={};Ee(_e,{err:()=>re,map:()=>Oe,ok:()=>R,unwrap:()=>je,unwrapErr:()=>Ce});var R=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Oe(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>R(s)):R(n)}if(e.isErr){const n=e.value;return re(n)}throw"should never get here"}var je=e=>{if(e.isOk)return e.value;throw e.value},Ce=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},Ie=(e,t)=>()=>{},le=(e,t,...n)=>{let s=null,r=null,a=!1,l=!1;const i=[],o=$=>{for(let f=0;f<$.length;f++)s=$[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!q(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?z(null,s):s),l=a)};if(o(n),t){t.key&&(r=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(f=>$[f]).join(" "))}}const c=z(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=r,c},z=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},Ue={},De=e=>e&&e.$tag$===Ue,Re=(e,t)=>e!=null&&!q(e)&&t&1?String(e):e,ze=e=>E(e).$hostElement$,Be=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},K=new WeakMap,He=(e,t,n)=>{let s=O.get(e);xe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,O.set(e,s)},Fe=(e,t,n)=>{var s;const r=ae(t),a=O.get(r);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=K.get(e),i;if(l||K.set(e,l=new Set),!l.has(r)){{i=m.createElement("style"),i.innerHTML=a;const o=(s=h.$nonce$)!=null?s:ne(m);o!=null&&i.setAttribute("nonce",o),(!(t.$flags$&1)||t.$flags$&1&&e.nodeName!=="HEAD")&&e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=ee),l&&l.add(r)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r},qe=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=S("attachStyles",t.$tagName$),a=Fe(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&s&2&&(n["s-sc"]=a,n.classList.add(a+"-h")),r()},ae=(e,t)=>"sc-"+e.$tagName$,N=(e,t,n,s,r,a)=>{if(n!==s){let l=G(e,t),i=t.toLowerCase();if(t==="class"){const o=e.classList,c=Z(n),$=Z(s);o.remove(...c.filter(f=>f&&!$.includes(f))),o.add(...$.filter(f=>f&&!c.includes(f)))}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(C,i)?t=i.slice(2):t=i[2]+t.slice(3),n||s){const o=t.endsWith(oe);t=t.replace(Me,""),n&&h.rel(e,t,n,o),s&&h.ael(e,t,s,o)}}else{const o=q(s);if((l||o&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const c=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=c)&&(e[t]=c)}}catch(c){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||r)&&!o&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],oe="Capture",Me=new RegExp(oe+"$"),ie=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||J,a=t.$attrs$||J;for(const l of V(Object.keys(r)))l in a||N(s,l,r[l],void 0,n,t.$flags$);for(const l of V(Object.keys(a)))N(s,l,r[l],a[l],n,t.$flags$)};function V(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var P,W,ce=!1,$e=!1,j=(e,t,n,s)=>{const r=t.$children$[n];let a=0,l,i;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(!ce&&_.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),ie(null,r,$e),!!l.getRootNode().querySelector("body")&&_.scoped&&Ae(P)&&l["s-si"]!==P&&l.classList.add(l["s-si"]=P),r.$children$)for(a=0;a<r.$children$.length;++a)i=j(e,r,a),i&&l.appendChild(i);return l["s-hn"]=W,l},fe=(e,t,n,s,r,a)=>{let l=e,i;for(l.shadowRoot&&l.tagName===W&&(l=l.shadowRoot);r<=a;++r)s[r]&&(i=j(null,n,r),i&&(s[r].$elm$=i,A(l,i,t)))},de=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const a=r.$elm$;ue(r),a&&a.remove()}}},Xe=(e,t,n,s,r=!1)=>{let a=0,l=0,i=0,o=0,c=t.length-1,$=t[0],f=t[c],d=s.length-1,u=s[0],p=s[d],v,y;for(;a<=c&&l<=d;)if($==null)$=t[++a];else if(f==null)f=t[--c];else if(u==null)u=s[++l];else if(p==null)p=s[--d];else if(L($,u,r))w($,u,r),$=t[++a],u=s[++l];else if(L(f,p,r))w(f,p,r),f=t[--c],p=s[--d];else if(L($,p,r))w($,p,r),A(e,$.$elm$,f.$elm$.nextSibling),$=t[++a],p=s[--d];else if(L(f,u,r))w(f,u,r),A(e,f.$elm$,$.$elm$),f=t[--c],u=s[++l];else{for(i=-1,o=a;o<=c;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===u.$key$){i=o;break}i>=0?(y=t[i],y.$tag$!==u.$tag$?v=j(t&&t[l],n,i):(w(y,u,r),t[i]=void 0,v=y.$elm$),u=s[++l]):(v=j(t&&t[l],n,l),u=s[++l]),v&&A($.$elm$.parentNode,v,$.$elm$)}a>c?fe(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&de(t,a,c)},L=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,w=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,l=t.$text$;l===null?(ie(e,t,$e),r!==null&&a!==null?Xe(s,r,t,a,n):a!==null?(e.$text$!==null&&(s.textContent=""),fe(s,null,t,a,0,a.length-1)):!n&&_.updatable&&r!==null&&de(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},ue=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ue)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Ge=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,a=e.$vnode$||z(null,null),l=De(t)?t:le(null,null,t);if(W=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([i,o])=>l.$attrs$[o]=s[i])),n&&l.$attrs$)for(const i of Object.keys(l.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(l.$attrs$[i]=s[i]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,P=s["s-sc"],ce=(r.$flags$&1)!==0,w(a,l,n)},pe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},M=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return pe(e,e.$ancestorComponent$),Pe(()=>Qe(e,t))},Qe=(e,t)=>{const n=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=X(r,"componentWillLoad")),s(),Ye(a,()=>Ke(e,r,t))},Ye=(e,t)=>Je(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Je=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ke=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&qe(e);const i=S("render",e.$cmpMeta$.$tagName$);Ne(e,t,r,n),l&&(l.map(o=>o()),r["s-rc"]=void 0),i(),a();{const o=(s=r["s-p"])!=null?s:[],c=()=>Ze(e);o.length===0?c():(Promise.all(o).then(c),e.$flags$|=4,o.length=0)}}),Ne=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ge(e,t,s)}catch(r){k(r,e.$hostElement$)}return null},Ze=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,a=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,he(n),X(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),a||ve()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&F(()=>M(e,!1)),e.$flags$&=-517},ve=e=>{he(m.documentElement),F(()=>Be(C,"appload",{detail:{namespace:me}}))},X=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){k(s)}},he=e=>{var t;return e.classList.add((t=_.hydratedSelectorName)!=null?t:"hydrated")},Ve=(e,t)=>E(e).$instanceValues$.get(t),et=(e,t,n,s)=>{const r=E(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=r.$hostElement$,l=r.$instanceValues$.get(t),i=r.$flags$,o=r.$lazyInstance$;n=Re(n,s.$members$[t][0]);const c=Number.isNaN(l)&&Number.isNaN(n),$=n!==l&&!c;if((!(i&8)||l===void 0)&&$&&(r.$instanceValues$.set(t,n),o)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(d=>{try{o[d](n,l,t)}catch(u){k(u,a)}})}(i&18)===2&&M(r,!1)}},ge=(e,t,n)=>{var s,r;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[o]])=>{(o&31||n&2&&o&32)&&Object.defineProperty(a,i,{get(){return Ve(this,i)},set(c){et(this,i,c,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;a.attributeChangedCallback=function(o,c,$){h.jmp(()=>{var f;const d=i.get(o);if(this.hasOwnProperty(d))$=this[d],delete this[d];else{if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==$)return;if(d==null){const u=E(this),p=u==null?void 0:u.$flags$;if(p&&!(p&8)&&p&128&&$!==c){const v=u.$lazyInstance$,y=(f=t.$watchers$)==null?void 0:f[o];y==null||y.forEach(g=>{v[g]!=null&&v[g].call(v,$,c,o)})}return}}this[d]=$===null&&typeof this[d]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([o,c])=>c[0]&15).map(([o,c])=>{var $;const f=c[1]||o;return i.set(f,o),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([o,f])),f})]))}}return e},tt=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const o=we(n);if(o&&"then"in o){const $=Ie();r=yield o,$()}else r=o;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,ge(r,n,2),r.isProxied=!0);const c=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch($){k($)}t.$flags$&=-9,t.$flags$|=128,c(),B(t.$lazyInstance$)}else{r=e.constructor;const o=e.localName;customElements.whenDefined(o).then(()=>t.$flags$|=128)}if(r&&r.style){let o;typeof r.style=="string"&&(o=r.style);const c=ae(n);if(!O.has(c)){const $=S("registerStyles",n.$tagName$);He(c,o,!!(n.$flags$&1)),$()}}}const a=t.$ancestorComponent$,l=()=>M(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),B=e=>{X(e,"connectedCallback")},st=e=>{if(!(h.$flags$&1)){const t=E(e),n=t.$cmpMeta$,s=S("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$?B(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>B(t.$lazyInstance$));else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){pe(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[a]])=>{if(a&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),tt(e,t,n)}s()}},nt=e=>{},rt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>nt())}}),lt=(e,t={})=>{var n;const s=S(),r=[],a=t.exclude||[],l=C.customElements,i=m.head,o=i.querySelector("meta[charset]"),c=m.createElement("style"),$=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(p=>{p[1].map(v=>{var y;const g={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};g.$flags$&4&&(u=!0),g.$members$=v[2],g.$attrsToReflect$=[],g.$watchers$=(y=v[4])!=null?y:{};const T=g.$tagName$,ye=class extends HTMLElement{constructor(b){if(super(b),this.hasRegisteredEventListeners=!1,b=this,ke(b,g),g.$flags$&1){if(!b.shadowRoot)b.attachShadow({mode:"open"});else if(b.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${b.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?$.push(this):h.jmp(()=>st(this))}disconnectedCallback(){h.jmp(()=>rt(this))}componentOnReady(){return E(this).$onReadyPromise$}};g.$lazyBundleId$=p[0],!a.includes(T)&&!l.get(T)&&(r.push(T),l.define(T,ge(ye,g,1)))})}),r.length>0&&(u&&(c.textContent+=ee),c.textContent+=r.sort()+Te,c.innerHTML.length)){c.setAttribute("data-styles","");const p=(n=h.$nonce$)!=null?n:ne(m);p!=null&&c.setAttribute("nonce",p),i.insertBefore(c,o?o.nextSibling:i.firstChild)}d=!1,$.length?$.map(p=>p.connectedCallback()):h.jmp(()=>f=setTimeout(ve,30)),s()};exports.bootstrapLazy=lt;exports.getElement=ze;exports.h=le;exports.promiseResolve=te;exports.registerInstance=be;
|