@everymatrix/casino-tournaments-list-controller 1.77.18 → 1.77.20
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/CasinoTournamentsListController-C_yh1dRY.cjs +28 -0
- package/components/{CasinoTournamentsListController-9GpvN-cU.js → CasinoTournamentsListController-Cvufxxw6.js} +1455 -1384
- package/components/{CasinoTournamentsListController-CmPRdMx4.js → CasinoTournamentsListController-DeCDXQJs.js} +2166 -2177
- package/components/{CasinoTournamentsThumbnail-CfmPohld.cjs → CasinoTournamentsThumbnail-CjUK_Y0T.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-DHcrIxd-.js → CasinoTournamentsThumbnail-D9mZjvAm.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-DDkT22lO.js → CasinoTournamentsThumbnail-ut-XdtB8.js} +2 -2
- package/components/{CasinoTournamentsThumbnailController-DRnB-3-H.js → CasinoTournamentsThumbnailController-B55l9rTy.js} +543 -612
- package/components/CasinoTournamentsThumbnailController-BXlYi_jc.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailController-MlvOLFWR.js → CasinoTournamentsThumbnailController-CasnwEar.js} +510 -579
- package/components/{CasinoTournamentsThumbnailDuration-DEWie4Bz.cjs → CasinoTournamentsThumbnailDuration-B7NpOQTM.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-8CaygNeP.js → CasinoTournamentsThumbnailDuration-BXQ8ow_7.js} +10 -10
- package/components/{CasinoTournamentsThumbnailDuration-DI72Vb2q.js → CasinoTournamentsThumbnailDuration-Fgbj4W9w.js} +10 -10
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bvi3agBk.cjs → CasinoTournamentsThumbnailGamesSlider-BvcRMeXB.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bp2jb-5i.js → CasinoTournamentsThumbnailGamesSlider-DqJZOKCv.js} +47 -47
- package/components/{CasinoTournamentsThumbnailGamesSlider-DoVfyQTt.js → CasinoTournamentsThumbnailGamesSlider-RGa8LwNf.js} +47 -47
- package/components/{CasinoTournamentsThumbnailPrizes-BR4fIGJb.js → CasinoTournamentsThumbnailPrizes-BcjLlrNI.js} +6 -6
- package/components/{CasinoTournamentsThumbnailPrizes-CnSTDH80.cjs → CasinoTournamentsThumbnailPrizes-ChlDKR4R.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DYV37yVW.js → CasinoTournamentsThumbnailPrizes-YX_RxyBM.js} +6 -6
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-B0NIExnR.js} +2 -2
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-D6HPqRtr.js} +2 -2
- package/stencil/index-97d17652-DNpK20ur.cjs +1 -0
- package/stencil/{ui-image-CXqPvnQ2.js → ui-image-B374V2Sk.js} +1 -1
- package/stencil/{ui-image-Bk8cIvcH.cjs → ui-image-BBrwf8a4.cjs} +1 -1
- package/stencil/{ui-image-DgbODkuX.js → ui-image-CQSJVNNX.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Cdo33umq.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-DbQ7SENq.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-L-CYescb.js} +2 -2
- package/components/CasinoTournamentsListController-DXzweeLN.cjs +0 -15
- package/components/CasinoTournamentsThumbnailController-C-jtQzUd.cjs +0 -16
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as _e, S as be, i as ve, s as ke, f as T, c as Ne, n as R, d as
|
|
2
|
-
import { g as
|
|
1
|
+
import { b as _e, S as be, i as ve, s as ke, f as T, c as Ne, n as R, d as W, g as G, j as N, l as Se, o as Te, J as Y, K as Be, r as ne, L as C, I as K, h as b, M as Fe, p as L, k as H, e as c, N as Me, u as U, m as Pe, w as Z, t as Ee, z as je, A as Le, B as ze, C as Ae, D as Ce } from "./CasinoTournamentsListController-DeCDXQJs.js";
|
|
2
|
+
import { g as He } from "./CasinoTournamentsThumbnailController-B55l9rTy.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -51,19 +51,19 @@ function ee(e) {
|
|
|
51
51
|
i[r] = te($(e, g, r));
|
|
52
52
|
return {
|
|
53
53
|
c() {
|
|
54
|
-
n = N("div"), t = N("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a =
|
|
54
|
+
n = N("div"), t = N("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = H(), d = N("main"), h = N("div");
|
|
55
55
|
for (let r = 0; r < i.length; r += 1)
|
|
56
56
|
i[r].c();
|
|
57
|
-
y =
|
|
57
|
+
y = H(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), C(
|
|
58
58
|
t,
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
61
61
|
e[8]
|
|
62
62
|
), c(h, "class", "items"), c(h, "part", "items"), K(h, "transform", "translateX(" + /*offset*/
|
|
63
|
-
e[2] + "px)"),
|
|
63
|
+
e[2] + "px)"), Me(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
65
|
e[29].call(d)
|
|
66
|
-
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"),
|
|
66
|
+
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"), C(
|
|
67
67
|
s,
|
|
68
68
|
"disabled",
|
|
69
69
|
/*atEnd*/
|
|
@@ -71,21 +71,21 @@ function ee(e) {
|
|
|
71
71
|
), c(n, "class", "TournamentsGamesSlider"), c(n, "part", "TournamentsGamesSlider");
|
|
72
72
|
},
|
|
73
73
|
m(r, m) {
|
|
74
|
-
|
|
74
|
+
G(r, n, m), b(n, t), b(n, a), b(n, d), b(d, h);
|
|
75
75
|
for (let u = 0; u < i.length; u += 1)
|
|
76
76
|
i[u] && i[u].m(h, null);
|
|
77
|
-
e[28](h), p =
|
|
77
|
+
e[28](h), p = Fe(
|
|
78
78
|
d,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
80
|
e[29].bind(d)
|
|
81
81
|
), b(n, y), b(n, s), e[31](n), w || (_ = [
|
|
82
|
-
|
|
82
|
+
L(
|
|
83
83
|
t,
|
|
84
84
|
"click",
|
|
85
85
|
/*click_handler*/
|
|
86
86
|
e[24]
|
|
87
87
|
),
|
|
88
|
-
|
|
88
|
+
L(
|
|
89
89
|
s,
|
|
90
90
|
"click",
|
|
91
91
|
/*click_handler_2*/
|
|
@@ -95,7 +95,7 @@ function ee(e) {
|
|
|
95
95
|
},
|
|
96
96
|
p(r, m) {
|
|
97
97
|
if (m[0] & /*atStart*/
|
|
98
|
-
256 &&
|
|
98
|
+
256 && C(
|
|
99
99
|
t,
|
|
100
100
|
"disabled",
|
|
101
101
|
/*atStart*/
|
|
@@ -118,7 +118,7 @@ function ee(e) {
|
|
|
118
118
|
m[0] & /*offset*/
|
|
119
119
|
4 && K(h, "transform", "translateX(" + /*offset*/
|
|
120
120
|
r[2] + "px)"), m[0] & /*atEnd*/
|
|
121
|
-
512 &&
|
|
121
|
+
512 && C(
|
|
122
122
|
s,
|
|
123
123
|
"disabled",
|
|
124
124
|
/*atEnd*/
|
|
@@ -126,7 +126,7 @@ function ee(e) {
|
|
|
126
126
|
);
|
|
127
127
|
},
|
|
128
128
|
d(r) {
|
|
129
|
-
r &&
|
|
129
|
+
r && W(n), Be(i, r), e[28](null), p(), e[31](null), w = !1, ne(_);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -155,7 +155,7 @@ function te(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
158
|
-
n = N("div"), t = N("span"), d = Ee(a), y =
|
|
158
|
+
n = N("div"), t = N("span"), d = Ee(a), y = H(), s = N("img"), i = H(), c(t, "class", h = "PlayNowButton " + /*hover*/
|
|
159
159
|
(e[5] && /*hoverIndex*/
|
|
160
160
|
e[6] == /*i*/
|
|
161
161
|
e[51] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -167,10 +167,10 @@ function te(e) {
|
|
|
167
167
|
e[49].name), c(n, "class", "item"), c(n, "part", "item");
|
|
168
168
|
},
|
|
169
169
|
m(v, o) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
G(v, n, o), b(n, t), b(t, d), b(n, y), b(n, s), b(n, i), r || (m = [
|
|
171
|
+
L(n, "click", u),
|
|
172
|
+
L(n, "mouseenter", k),
|
|
173
|
+
L(
|
|
174
174
|
n,
|
|
175
175
|
"mouseleave",
|
|
176
176
|
/*mouseleave_handler*/
|
|
@@ -181,7 +181,7 @@ function te(e) {
|
|
|
181
181
|
p(v, o) {
|
|
182
182
|
e = v, o[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") &&
|
|
184
|
+
e[10]("playNow") + "") && Pe(d, a), o[0] & /*hover, hoverIndex*/
|
|
185
185
|
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
@@ -198,7 +198,7 @@ function te(e) {
|
|
|
198
198
|
e[49].name) && c(s, "title", g);
|
|
199
199
|
},
|
|
200
200
|
d(v) {
|
|
201
|
-
v &&
|
|
201
|
+
v && W(n), r = !1, ne(m);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
@@ -213,7 +213,7 @@ function Ie(e) {
|
|
|
213
213
|
n = N("div"), t && t.c();
|
|
214
214
|
},
|
|
215
215
|
m(a, d) {
|
|
216
|
-
|
|
216
|
+
G(a, n, d), t && t.m(n, null), e[32](n);
|
|
217
217
|
},
|
|
218
218
|
p(a, d) {
|
|
219
219
|
/*games*/
|
|
@@ -223,15 +223,15 @@ function Ie(e) {
|
|
|
223
223
|
i: R,
|
|
224
224
|
o: R,
|
|
225
225
|
d(a) {
|
|
226
|
-
a &&
|
|
226
|
+
a && W(n), t && t.d(), e[32](null);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
|
-
function
|
|
231
|
+
function We(e, n, t) {
|
|
232
232
|
let a, d, h;
|
|
233
|
-
Se(e,
|
|
234
|
-
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S,
|
|
233
|
+
Se(e, Ce, (l) => t(10, h = l));
|
|
234
|
+
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S, z = null, A = null, D = !1, I, M, P = 0, B;
|
|
235
235
|
const le = () => {
|
|
236
236
|
fetch(_).then((f) => f.json()).then((f) => {
|
|
237
237
|
Object.keys(f).forEach((j) => {
|
|
@@ -250,14 +250,14 @@ function Ge(e, n, t) {
|
|
|
250
250
|
t(5, D = !1), t(6, I = -1);
|
|
251
251
|
}, se = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
252
252
|
const f = se(l)[0];
|
|
253
|
-
|
|
253
|
+
z = f.clientX, A = f.clientY;
|
|
254
254
|
}, X = (l) => {
|
|
255
|
-
if (!
|
|
255
|
+
if (!z || !A)
|
|
256
256
|
return;
|
|
257
|
-
let f = l.touches[0].clientX, j = l.touches[0].clientY,
|
|
258
|
-
Math.abs(
|
|
257
|
+
let f = l.touches[0].clientX, j = l.touches[0].clientY, F = z - f, we = A - j;
|
|
258
|
+
Math.abs(F) > Math.abs(we) && (F > 0 ? E(1) : E(-1)), z = null, A = null;
|
|
259
259
|
}, E = (l) => {
|
|
260
|
-
l > 0 && !d ? (t(2, o -= k), t(2, o = o <
|
|
260
|
+
l > 0 && !d ? (t(2, o -= k), t(2, o = o < P ? P : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
|
|
261
261
|
}, x = (l) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
@@ -270,20 +270,20 @@ function Ge(e, n, t) {
|
|
|
270
270
|
);
|
|
271
271
|
}, re = () => {
|
|
272
272
|
let l = new URL(p), f = new Headers();
|
|
273
|
-
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform",
|
|
274
|
-
t(1, v =
|
|
273
|
+
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", He(u)), fetch(l, { method: "GET", headers: f }).then((F) => F.json()).then((F) => {
|
|
274
|
+
t(1, v = F.item.games.items), F.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, ae = () => {
|
|
277
277
|
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { passive: !0 });
|
|
278
278
|
}, ie = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
281
|
-
t(23,
|
|
281
|
+
t(23, P = (M.scrollWidth - M.clientWidth) * -1), t(16, s = new String(M.scrollWidth / v.length)), k = parseInt(y, 10) * parseFloat(s, 2).toFixed(2);
|
|
282
282
|
},
|
|
283
283
|
1e3
|
|
284
284
|
);
|
|
285
285
|
}, oe = () => {
|
|
286
|
-
|
|
286
|
+
B > 0 && B < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(B / s).toString());
|
|
287
287
|
};
|
|
288
288
|
Te(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
|
|
289
289
|
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
@@ -291,11 +291,11 @@ function Ge(e, n, t) {
|
|
|
291
291
|
const ce = () => E(-1), ue = (l) => x(l), me = (l) => q(l), de = () => J();
|
|
292
292
|
function he(l) {
|
|
293
293
|
U[l ? "unshift" : "push"](() => {
|
|
294
|
-
|
|
294
|
+
M = l, t(7, M);
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
function ge() {
|
|
298
|
-
|
|
298
|
+
B = this.clientWidth, t(4, B);
|
|
299
299
|
}
|
|
300
300
|
const fe = () => E(1);
|
|
301
301
|
function pe(l) {
|
|
@@ -313,24 +313,24 @@ function Ge(e, n, t) {
|
|
|
313
313
|
}, e.$$.update = () => {
|
|
314
314
|
e.$$.dirty[0] & /*offset*/
|
|
315
315
|
4 && t(8, a = o === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
316
|
-
8388612 && t(9, d = o <=
|
|
317
|
-
16 &&
|
|
316
|
+
8388612 && t(9, d = o <= P), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
317
|
+
16 && B && oe(), e.$$.dirty[0] & /*tournamenturl*/
|
|
318
318
|
131072 && p && re(), e.$$.dirty[0] & /*slider*/
|
|
319
319
|
8 && S && ae(), e.$$.dirty[0] & /*translationurl*/
|
|
320
320
|
524288 && _ && le(), e.$$.dirty[0] & /*games*/
|
|
321
321
|
2 && v.length && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
322
322
|
1048577 && g && m && je(m, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
323
|
-
2097153 && i && m &&
|
|
324
|
-
4194305 && r && m &&
|
|
323
|
+
2097153 && i && m && Le(m, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
324
|
+
4194305 && r && m && ze(m, `${r}.Style`);
|
|
325
325
|
}, t(2, o = 0), [
|
|
326
326
|
m,
|
|
327
327
|
v,
|
|
328
328
|
o,
|
|
329
329
|
S,
|
|
330
|
-
|
|
330
|
+
B,
|
|
331
331
|
D,
|
|
332
332
|
I,
|
|
333
|
-
|
|
333
|
+
M,
|
|
334
334
|
a,
|
|
335
335
|
d,
|
|
336
336
|
h,
|
|
@@ -346,7 +346,7 @@ function Ge(e, n, t) {
|
|
|
346
346
|
g,
|
|
347
347
|
i,
|
|
348
348
|
r,
|
|
349
|
-
|
|
349
|
+
P,
|
|
350
350
|
ce,
|
|
351
351
|
ue,
|
|
352
352
|
me,
|
|
@@ -358,12 +358,12 @@ function Ge(e, n, t) {
|
|
|
358
358
|
ye
|
|
359
359
|
];
|
|
360
360
|
}
|
|
361
|
-
class
|
|
361
|
+
class Ge extends be {
|
|
362
362
|
constructor(n) {
|
|
363
363
|
super(), ve(
|
|
364
364
|
this,
|
|
365
365
|
n,
|
|
366
|
-
|
|
366
|
+
We,
|
|
367
367
|
Ie,
|
|
368
368
|
ke,
|
|
369
369
|
{
|
|
@@ -429,7 +429,7 @@ class We extends be {
|
|
|
429
429
|
this.$$set({ mbsource: n }), T();
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
Ae(Ge, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
433
433
|
export {
|
|
434
|
-
|
|
434
|
+
Ge as default
|
|
435
435
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as C, S as L, i as Z, s as j, f as _, c as B, n as F, d as w, m as b, g as T, h as d, j as g, k as v, t as y, e as p, l as I, o as R,
|
|
1
|
+
import { b as C, S as L, i as Z, s as j, f as _, c as B, n as F, d as w, m as b, g as T, h as d, j as g, k as v, t as y, e as p, l as I, o as R, J as S, K as O, u as D, z as U, A as V, B as W, C as q, D as J } from "./CasinoTournamentsListController-DeCDXQJs.js";
|
|
2
2
|
function N(l, e) {
|
|
3
3
|
C(l, e);
|
|
4
4
|
}
|
|
@@ -59,7 +59,7 @@ const M = {
|
|
|
59
59
|
place: "place"
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function K(l) {
|
|
63
63
|
B(l, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
|
|
64
64
|
}
|
|
65
65
|
function H(l, e, t) {
|
|
@@ -177,7 +177,7 @@ function x(l) {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function G(l) {
|
|
181
181
|
let e, t, i, r, n, c = (
|
|
182
182
|
/*$_*/
|
|
183
183
|
l[2]("prizes") + ""
|
|
@@ -207,7 +207,7 @@ function K(l) {
|
|
|
207
207
|
}
|
|
208
208
|
function Q(l, e, t) {
|
|
209
209
|
let i;
|
|
210
|
-
I(l,
|
|
210
|
+
I(l, J, (a) => t(2, i = a));
|
|
211
211
|
let { tourid: r = "" } = e, { clientstyling: n = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, { mbsource: f } = e, o, u;
|
|
212
212
|
const m = () => {
|
|
213
213
|
fetch(s).then((h) => h.json()).then((h) => {
|
|
@@ -258,7 +258,7 @@ class X extends L {
|
|
|
258
258
|
this,
|
|
259
259
|
e,
|
|
260
260
|
Q,
|
|
261
|
-
|
|
261
|
+
G,
|
|
262
262
|
j,
|
|
263
263
|
{
|
|
264
264
|
tourid: 3,
|
|
@@ -267,7 +267,7 @@ class X extends L {
|
|
|
267
267
|
translationurl: 6,
|
|
268
268
|
mbsource: 7
|
|
269
269
|
},
|
|
270
|
-
|
|
270
|
+
K
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
get tourid() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-C_yh1dRY.cjs");function _(l,t){e.addMessages(l,t)}const y={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},"en-us":{prizes:"Prizes",noprizes:"No available prizes",place:"place"}};function k(l){e.append_styles(l,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function P(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function b(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=w(P(l,n,r));let a=null;return n.length||(a=v(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=P(r,n,s);i[s]?i[s].p(d,c):(i[s]=w(d),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(r,c):n.length?a&&(a.d(1),a=null):(a=v(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function v(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function w(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,p,u=l[12].name+"",f,g;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),p=e.text(": "),f=e.text(u),g=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,o){e.insert(m,t,o),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,p),e.append(n,f),e.append(t,g)},p(m,o){o&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),o&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),o&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function S(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,p=l[1]&&b(l);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),r=e.element("p"),s=e.text(c),d=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),p&&p.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?p?p.p(u,f):(p=b(u),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),p&&p.d(),l[8](null)}}}function F(l,t,n){let i;e.component_subscribe(l,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,p,u;const f=()=>{fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(z=>{_(z,h[z])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(o=>{_(o,y[o])});const g=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,u=o.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function m(o){e.binding_callbacks[o?"unshift":"push"](()=>{p=o,n(0,p)})}return l.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,r=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl),"mbsource"in o&&n(7,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&p&&e.setClientStyling(p,r),l.$$.dirty&33&&c&&p&&e.setClientStylingURL(p,c),l.$$.dirty&129&&d&&p&&e.setStreamStyling(p,`${d}.Style`),l.$$.dirty&64&&s&&f()},[p,u,i,a,r,c,s,d,m]}class T extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,S,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},k)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(T,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as C, S as L, i as Z, s as j, f as _, c as B, n as F, d as w, m as b, g as T, h as d, j as g, k as v, t as y, e as p, l as I, o as R,
|
|
1
|
+
import { b as C, S as L, i as Z, s as j, f as _, c as B, n as F, d as w, m as b, g as T, h as d, j as g, k as v, t as y, e as p, l as I, o as R, J as S, K as O, u as D, z as U, A as V, B as W, C as q, D as J } from "./CasinoTournamentsListController-Cvufxxw6.js";
|
|
2
2
|
function N(l, e) {
|
|
3
3
|
C(l, e);
|
|
4
4
|
}
|
|
@@ -59,7 +59,7 @@ const M = {
|
|
|
59
59
|
place: "place"
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function K(l) {
|
|
63
63
|
B(l, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
|
|
64
64
|
}
|
|
65
65
|
function H(l, e, t) {
|
|
@@ -177,7 +177,7 @@ function x(l) {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function G(l) {
|
|
181
181
|
let e, t, i, r, n, c = (
|
|
182
182
|
/*$_*/
|
|
183
183
|
l[2]("prizes") + ""
|
|
@@ -207,7 +207,7 @@ function K(l) {
|
|
|
207
207
|
}
|
|
208
208
|
function Q(l, e, t) {
|
|
209
209
|
let i;
|
|
210
|
-
I(l,
|
|
210
|
+
I(l, J, (a) => t(2, i = a));
|
|
211
211
|
let { tourid: r = "" } = e, { clientstyling: n = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, { mbsource: f } = e, o, u;
|
|
212
212
|
const m = () => {
|
|
213
213
|
fetch(s).then((h) => h.json()).then((h) => {
|
|
@@ -258,7 +258,7 @@ class X extends L {
|
|
|
258
258
|
this,
|
|
259
259
|
e,
|
|
260
260
|
Q,
|
|
261
|
-
|
|
261
|
+
G,
|
|
262
262
|
j,
|
|
263
263
|
{
|
|
264
264
|
tourid: 3,
|
|
@@ -267,7 +267,7 @@ class X extends L {
|
|
|
267
267
|
translationurl: 6,
|
|
268
268
|
mbsource: 7
|
|
269
269
|
},
|
|
270
|
-
|
|
270
|
+
K
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
get tourid() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-C_yh1dRY.cjs")).then(e=>e.CasinoTournamentsListController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-Cvufxxw6.js").then((e) => e.O).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ var ve = Object.defineProperty, ge = (e, t) => {
|
|
|
42
42
|
case "ui-image_2":
|
|
43
43
|
return import(
|
|
44
44
|
/* webpackMode: "lazy" */
|
|
45
|
-
"./ui-image_2-
|
|
45
|
+
"./ui-image_2-L-CYescb.js"
|
|
46
46
|
).then(l, k);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -197,7 +197,7 @@ var Pe = (e) => {
|
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
199
|
const a = q(s);
|
|
200
|
-
if (
|
|
200
|
+
if (l || a && s !== null)
|
|
201
201
|
try {
|
|
202
202
|
if (e.tagName.includes("-"))
|
|
203
203
|
e[t] = s;
|
|
@@ -26,7 +26,7 @@ var de = Object.defineProperty, ve = (e, t) => {
|
|
|
26
26
|
case "ui-image_2":
|
|
27
27
|
return import(
|
|
28
28
|
/* webpackMode: "lazy" */
|
|
29
|
-
"./ui-image_2-
|
|
29
|
+
"./ui-image_2-DbQ7SENq.js"
|
|
30
30
|
).then(l, k);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -181,7 +181,7 @@ var xe = (e) => {
|
|
|
181
181
|
}
|
|
182
182
|
} else {
|
|
183
183
|
const i = C(s);
|
|
184
|
-
if (
|
|
184
|
+
if (l || i && s !== null)
|
|
185
185
|
try {
|
|
186
186
|
if (e.tagName.includes("-"))
|
|
187
187
|
e[t] = s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{$(n.next(a))}catch(o){r(o)}},l=a=>{try{$(n.throw(a))}catch(o){r(o)}},$=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);$((n=n.apply(e,t)).next())});const ge="ui-image",he={hydratedSelectorName:"hydrated"};var pe=Object.defineProperty,ye=(e,t)=>{for(var n in t)pe(e,n,{get:t[n],enumerable:!0})},B=new WeakMap,E=e=>B.get(e),me=(e,t)=>B.set(t.$lazyInstance$=e,t),Se=(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"]=[],B.set(e,n)},D=(e,t)=>t in e,k=(e,t)=>(0,console.error)(e,t),w=new Map,Ee=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=w.get(r);if(i)return i[s];{const l=$=>(w.set(r,$),$[s]);switch(r){case"ui-image_2":return Promise.resolve().then(()=>require("./ui-image_2-Cdo33umq.cjs")).then(l,k)}}return import(`./${r}.entry.js`).then(l=>(w.set(r,l),l[s]),k)},A=new Map,ke="{visibility:hidden}.hydrated{visibility:inherit}",Q="slot-fb{display:contents}slot-fb[hidden]{display:none}",j=typeof window!="undefined"?window:{},m=j.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)},Z=e=>Promise.resolve(e),be=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),I=!1,W=[],R=[],Pe=(e,t)=>n=>{e.push(n),I||(I=!0,h.$flags$&4?C(U):h.raf(U))},M=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){k(n)}e.length=0},U=()=>{M(W),M(R),(I=W.length>0)&&h.raf(U)},C=e=>Z().then(e),xe=Pe(R),G={},q=e=>(e=typeof e,e==="object"||e==="function");function N(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 Te={};ye(Te,{err:()=>V,map:()=>_e,ok:()=>H,unwrap:()=>Ae,unwrapErr:()=>Le});var H=e=>({isOk:!0,isErr:!1,value:e}),V=e=>({isOk:!1,isErr:!0,value:e});function _e(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>H(s)):H(n)}if(e.isErr){const n=e.value;return V(n)}throw"should never get here"}var Ae=e=>{if(e.isOk)return e.value;throw e.value},Le=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},je=(e,t)=>()=>{},ee=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const $=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!q(s))&&(s=String(s)),i&&l?$[$.length-1].$text$+=s:$.push(i?z(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const o=z(e,null);return o.$attrs$=t,$.length>0&&(o.$children$=$),o.$key$=r,o},z=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},te={},Oe=e=>e&&e.$tag$===te,we=(e,t)=>e!=null&&!q(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Ie=e=>E(e).$hostElement$,Ue=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},X=new WeakMap,He=(e,t,n)=>{let s=A.get(e);be&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,A.set(e,s)},ze=(e,t,n)=>{var s;const r=se(t),i=A.get(r);if(e=e.nodeType===11?e:m,i)if(typeof i=="string"){e=e.head||e;let l=X.get(e),$;if(l||X.set(e,l=new Set),!l.has(r)){{$=m.createElement("style"),$.innerHTML=i;const a=(s=h.$nonce$)!=null?s:N(m);a!=null&&$.setAttribute("nonce",a),e.insertBefore($,e.querySelector("link"))}t.$flags$&4&&($.innerHTML+=Q),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},Be=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=S("attachStyles",t.$tagName$);ze(n.getRootNode(),t),s()},se=(e,t)=>"sc-"+e.$tagName$,Y=(e,t,n,s,r,i)=>{if(n!==s){let l=D(e,t),$=t.toLowerCase();if(t==="class"){const a=e.classList,o=J(n),c=J(s);a.remove(...o.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!o.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}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):D(j,$)?t=$.slice(2):t=$[2]+t.slice(3),n||s){const a=t.endsWith(ne);t=t.replace(qe,""),n&&h.rel(e,t,n,a),s&&h.ael(e,t,s,a)}}else{const a=q(s);if(l||a&&s!==null)try{if(e.tagName.includes("-"))e[t]=s;else{const o=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=o)&&(e[t]=o)}}catch(o){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Ce=/\s/,J=e=>e?e.split(Ce):[],ne="Capture",qe=new RegExp(ne+"$"),re=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||G,i=t.$attrs$||G;for(const l of K(Object.keys(r)))l in i||Y(s,l,r[l],void 0,n,t.$flags$);for(const l of K(Object.keys(i)))Y(s,l,r[l],i[l],n,t.$flags$)};function K(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var le,ae=!1,L=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,$;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(r.$tag$),re(null,r,ae),r.$children$)for(i=0;i<r.$children$.length;++i)$=L(e,r,i),$&&l.appendChild($);return l["s-hn"]=le,l},ie=(e,t,n,s,r,i)=>{let l=e,$;for(;r<=i;++r)s[r]&&($=L(null,n,r),$&&(s[r].$elm$=$,_(l,$,t)))},$e=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;oe(r),i&&i.remove()}}},Fe=(e,t,n,s,r=!1)=>{let i=0,l=0,$=0,a=0,o=t.length-1,c=t[0],f=t[o],u=s.length-1,d=s[0],v=s[u],g,p;for(;i<=o&&l<=u;)if(c==null)c=t[++i];else if(f==null)f=t[--o];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(T(c,d,r))b(c,d,r),c=t[++i],d=s[++l];else if(T(f,v,r))b(f,v,r),f=t[--o],v=s[--u];else if(T(c,v,r))b(c,v,r),_(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--u];else if(T(f,d,r))b(f,d,r),_(e,f.$elm$,c.$elm$),f=t[--o],d=s[++l];else{for($=-1,a=i;a<=o;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){$=a;break}$>=0?(p=t[$],p.$tag$!==d.$tag$?g=L(t&&t[l],n,$):(b(p,d,r),t[$]=void 0,g=p.$elm$),d=s[++l]):(g=L(t&&t[l],n,l),d=s[++l]),g&&_(c.$elm$.parentNode,g,c.$elm$)}i>o?ie(e,s[u+1]==null?null:s[u+1].$elm$,n,s,l,u):l>u&&$e(t,i,o)},T=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,b=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$text$;l===null?(re(e,t,ae),r!==null&&i!==null?Fe(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),ie(s,null,t,i,0,i.length-1)):r!==null&&$e(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},oe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(oe)},_=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),De=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$vnode$||z(null,null),i=Oe(t)?t:ee(null,null,t);if(le=s.tagName,n&&i.$attrs$)for(const l of Object.keys(i.$attrs$))s.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(i.$attrs$[l]=s[l]);i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=r.$elm$=s,b(r,i,n)},ce=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},F=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ce(e,e.$ancestorComponent$),xe(()=>We(e,t))},We=(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 i;return s(),Me(i,()=>Xe(e,r,t))},Me=(e,t)=>Ge(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Xe=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&Be(e);const $=S("render",e.$cmpMeta$.$tagName$);Ye(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),$(),i();{const a=(s=r["s-p"])!=null?s:[],o=()=>Je(e);a.length===0?o():(Promise.all(a).then(o),e.$flags$|=4,a.length=0)}}),Ye=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,De(e,t,s)}catch(r){k(r,e.$hostElement$)}return null},Je=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ue(n),Ke(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||fe()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&C(()=>F(e,!1)),e.$flags$&=-517},fe=e=>{ue(m.documentElement),C(()=>Ue(j,"appload",{detail:{namespace:ge}}))},Ke=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){k(s)}},ue=e=>{var t;return e.classList.add((t=he.hydratedSelectorName)!=null?t:"hydrated")},Qe=(e,t)=>E(e).$instanceValues$.get(t),Ze=(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 i=r.$hostElement$,l=r.$instanceValues$.get(t),$=r.$flags$,a=r.$lazyInstance$;n=we(n,s.$members$[t][0]);const o=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!o;if((!($&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&$&128){const f=s.$watchers$[t];f&&f.map(u=>{try{a[u](n,l,t)}catch(d){k(d,i)}})}($&18)===2&&F(r,!1)}},de=(e,t,n)=>{var s,r;const i=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(([$,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,$,{get(){return Qe(this,$)},set(o){Ze(this,$,o,t)},configurable:!0,enumerable:!0})}),n&1){const $=new Map;i.attributeChangedCallback=function(a,o,c){h.jmp(()=>{var f;const u=$.get(a);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=E(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==o){const g=d.$lazyInstance$,p=(f=t.$watchers$)==null?void 0:f[a];p==null||p.forEach(y=>{g[y]!=null&&g[y].call(g,c,o,a)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,o])=>o[0]&15).map(([a,o])=>{const c=o[1]||a;return $.set(c,a),c})]))}}return e},Re=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=Ee(n);if(a&&"then"in a){const c=je();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,de(r,n,2),r.isProxied=!0);const o=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){k(c)}t.$flags$&=-9,t.$flags$|=128,o()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const o=se(n);if(!A.has(o)){const c=S("registerStyles",n.$tagName$);He(o,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>F(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),Ne=e=>{},Ve=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$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ne());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ce(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Re(e,t,n)}s()}},et=e=>{},tt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>et())}}),st=(e,t={})=>{var n;const s=S(),r=[],i=t.exclude||[],l=j.customElements,$=m.head,a=$.querySelector("meta[charset]"),o=m.createElement("style"),c=[];let f,u=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(g=>{var p;const y={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};y.$flags$&4&&(d=!0),y.$members$=g[2],y.$watchers$=(p=g[4])!=null?p:{};const P=y.$tagName$,ve=class extends HTMLElement{constructor(O){super(O),this.hasRegisteredEventListeners=!1,O=this,Se(O,y)}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):h.jmp(()=>Ve(this))}disconnectedCallback(){h.jmp(()=>tt(this))}componentOnReady(){return E(this).$onReadyPromise$}};y.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,de(ve,y,1)))})}),r.length>0&&(d&&(o.textContent+=Q),o.textContent+=r.sort()+ke,o.innerHTML.length)){o.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:N(m);v!=null&&o.setAttribute("nonce",v),$.insertBefore(o,a?a.nextSibling:$.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(fe,30)),s()};exports.Host=te;exports.bootstrapLazy=st;exports.getElement=Ie;exports.h=ee;exports.promiseResolve=Z;exports.registerInstance=me;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=(t,r,i)=>new Promise((d,s)=>{var l=e=>{try{n(i.next(e))}catch(a){s(a)}},m=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(l,m);n((i=i.apply(t,r)).next())});const u=require("./index-97d17652-
|
|
1
|
+
"use strict";var c=(t,r,i)=>new Promise((d,s)=>{var l=e=>{try{n(i.next(e))}catch(a){s(a)}},m=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(l,m);n((i=i.apply(t,r)).next())});const u=require("./index-97d17652-DNpK20ur.cjs"),g=require("./app-globals-0f993ce5-DgOnOgxM.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-BBrwf8a4.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),u.promiseResolve(r)};h().then(t=>c(exports,null,function*(){return yield g.globalScripts(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));
|
|
@@ -14,7 +14,7 @@ var n = (r, e, a) => new Promise((m, s) => {
|
|
|
14
14
|
}, i = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(g, u);
|
|
15
15
|
i((a = a.apply(r, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as c, p as l } from "./index-97d17652-
|
|
17
|
+
import { b as c, p as l } from "./index-97d17652-B0NIExnR.js";
|
|
18
18
|
import { g as d } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
|
19
19
|
var h = () => {
|
|
20
20
|
const r = import.meta.url, e = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as s, H as n, g as a } from "./index-97d17652
|
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-B0NIExnR.js";
|
|
2
2
|
const d = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = d, h = class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./index-97d17652-
|
|
1
|
+
"use strict";const i=require("./index-97d17652-DNpK20ur.cjs"),r=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",d=r,n=class{constructor(e){i.registerInstance(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver(e=>{e.forEach(t=>{if(t.isIntersecting){const s=t.target.__uxComponent;s&&(s.shouldLoad=!0,s.handleSrc()),window.EMUxObserver.unobserve(t.target)}})},{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return i.h(i.Host,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&i.h("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i.getElement(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=d;exports.UiImage=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as s, H as n, g as a } from "./index-97d17652-
|
|
1
|
+
import { r, h as s, H as n, g as a } from "./index-97d17652-D6HPqRtr.js";
|
|
2
2
|
const d = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = d, h = class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
r(this, e), this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.imgLoaded = !1, this.shouldLoad = !1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-b7b48fe5-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-b7b48fe5-DaWM2RbJ.cjs"),t=require("./index-97d17652-DNpK20ur.cjs"),s=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",a=s,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
2
2
|
:host {
|
|
3
3
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
4
4
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as m } from "./ui-image-b7b48fe5-
|
|
2
|
-
import { r, h as t, H as n } from "./index-97d17652
|
|
1
|
+
import { U as m } from "./ui-image-b7b48fe5-c0NIgcTj.js";
|
|
2
|
+
import { r, h as t, H as n } from "./index-97d17652-D6HPqRtr.js";
|
|
3
3
|
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
r(this, e), this.stylingValue = {
|