@everymatrix/casino-lobby 1.77.5 → 1.77.7
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-uF_NF6m7.js → CasinoCalendar-BNI_iKQP.js} +2 -2
- package/components/{CasinoCalendar-l9GnvvJt.cjs → CasinoCalendar-DjBrvYIz.cjs} +1 -1
- package/components/{CasinoCalendar-Dxl0GZ3V.js → CasinoCalendar-kw0DkXq1.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-CkFGHBr1.js → CasinoCalendarDailyDetails-BflhR7MY.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-5fca8ybY.cjs → CasinoCalendarDailyDetails-Dt0MqiAp.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-D2EcpVsk.js → CasinoCalendarDailyDetails-oeyaoOLM.js} +2 -2
- package/components/{CasinoCalendarDailyItem-BjMHq8z0.js → CasinoCalendarDailyItem-CS6f0DtO.js} +2 -2
- package/components/{CasinoCalendarDailyItem-CJ4Y1TDs.js → CasinoCalendarDailyItem-D3lZVn-2.js} +2 -2
- package/components/{CasinoCalendarDailyItem-CtrwuSMm.cjs → CasinoCalendarDailyItem-DaUDXmO2.cjs} +1 -1
- package/components/{CasinoCategoriesSlider-CsJ_SF6Z.cjs → CasinoCategoriesSlider-DLI72owY.cjs} +1 -1
- package/components/{CasinoCategoriesSlider-D4K2b7AX.js → CasinoCategoriesSlider-DlUDZMwT.js} +2 -2
- package/components/{CasinoCategoriesSlider-Dw9WFkz4.js → CasinoCategoriesSlider-Dsv9ed3T.js} +2 -2
- package/components/{CasinoCollectionsProviders-BN0zNeS7.js → CasinoCollectionsProviders-BAahjSw7.js} +1 -1
- package/components/{CasinoCollectionsProviders-C3QOX3KF.cjs → CasinoCollectionsProviders-JKZW3cX9.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-DjFfFkmU.js → CasinoCollectionsProviders-ebrAdBga.js} +1 -1
- package/components/{CasinoFavoritesSection-DFYpAORF.js → CasinoFavoritesSection-BM8O0jg5.js} +2 -2
- package/components/{CasinoFavoritesSection-DjSYlAHs.js → CasinoFavoritesSection-CymlR0sJ.js} +2 -2
- package/components/{CasinoFavoritesSection-C_SVbyBn.cjs → CasinoFavoritesSection-DusKH-_c.cjs} +1 -1
- package/components/{CasinoFilter-B7H2bJ-G.cjs → CasinoFilter-Bg_F2DlX.cjs} +1 -1
- package/components/{CasinoFilter-Bgc2OX7A.js → CasinoFilter-UvcfSoyC.js} +1 -1
- package/components/{CasinoFilter-D0wftMel.js → CasinoFilter-aL3dz0hq.js} +1 -1
- package/components/{CasinoGameThumbnail-BCV2_lP-.cjs → CasinoGameThumbnail-C6Sqi2Gn.cjs} +1 -1
- package/components/{CasinoGameThumbnail-DDj9LrBn.js → CasinoGameThumbnail-CQS06FLM.js} +2 -2
- package/components/{CasinoGameThumbnail-DAeRoqVl.js → CasinoGameThumbnail-DDJheC8I.js} +2 -2
- package/components/{CasinoGamesCategorySection-CxjrZ9Mg.js → CasinoGamesCategorySection-BzvGFmBF.js} +5 -5
- package/components/{CasinoGamesCategorySection-BZ4VTmC0.js → CasinoGamesCategorySection-CbDpvlpz.js} +5 -5
- package/components/{CasinoGamesCategorySection-D9w4jWch.cjs → CasinoGamesCategorySection-DNulqo78.cjs} +1 -1
- package/components/{CasinoJackpotBanner-yvjEOEuA.cjs → CasinoJackpotBanner-CA0Gx_dN.cjs} +1 -1
- package/components/{CasinoJackpotBanner-TsNpk7MF.js → CasinoJackpotBanner-Cgt6qnjN.js} +2 -2
- package/components/{CasinoJackpotBanner-VCXNOk6T.js → CasinoJackpotBanner-CoZTLmMJ.js} +2 -2
- package/components/{CasinoLastPlayedSection-BlnAstfd.js → CasinoLastPlayedSection-C8TGgPub.js} +2 -2
- package/components/{CasinoLastPlayedSection-CqanYCAJ.cjs → CasinoLastPlayedSection-C__fszM6.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-CReBS3dw.js → CasinoLastPlayedSection-Cw-_Evqw.js} +2 -2
- package/components/{CasinoLobby-i6iK4grU.js → CasinoLobby-Bw0d-MzV.js} +3 -3
- package/components/{CasinoLobby-DXkNhPwn.js → CasinoLobby-DZtbSXtN.js} +3 -3
- package/components/{CasinoLobby-Cn2Otkkj.cjs → CasinoLobby-N3SA7nc4.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-B07bcZSb.js → CasinoMostPlayedSection-DX7zpItF.js} +2 -2
- package/components/{CasinoMostPlayedSection-C__zgZB_.js → CasinoMostPlayedSection-DljDNfny.js} +2 -2
- package/components/{CasinoMostPlayedSection-gUjt91qe.cjs → CasinoMostPlayedSection-OBp76c-k.cjs} +1 -1
- package/components/{CasinoMyGames-BrR9nn1l.cjs → CasinoMyGames-3hdEu9Kh.cjs} +1 -1
- package/components/{CasinoMyGames-jJWJoluY.js → CasinoMyGames-BfenXM6V.js} +4 -4
- package/components/{CasinoMyGames-BjpVKSGM.js → CasinoMyGames-CYpE8Vt7.js} +4 -4
- package/components/{CasinoPage-yGjlByzR.js → CasinoPage-C_sNHc5Y.js} +11 -11
- package/components/{CasinoPage-DbA-NMXP.js → CasinoPage-DFLl7bBN.js} +11 -11
- package/components/{CasinoPage-CpQErNFc.cjs → CasinoPage-qkXoIQEF.cjs} +1 -1
- package/components/{CasinoRandomGame-BWebIH8V.js → CasinoRandomGame-CA2GnFpy.js} +1 -1
- package/components/{CasinoRandomGame-DJnB5Fhm.cjs → CasinoRandomGame-DCJm8AW2.cjs} +1 -1
- package/components/{CasinoRandomGame-CSrB_Zq2.js → CasinoRandomGame-fuYLqZjQ.js} +1 -1
- package/components/{CasinoSearch-CwADZYFB.js → CasinoSearch-CFFdo--j.js} +3 -3
- package/components/{CasinoSearch-CcHIKzRN.js → CasinoSearch-CylEX2iJ.js} +3 -3
- package/components/{CasinoSearch-DcUqk5L0.cjs → CasinoSearch-DhVwJOUt.cjs} +1 -1
- package/components/{CasinoSlider-Ctpht2Hg.cjs → CasinoSlider-BJNGhIC2.cjs} +1 -1
- package/components/{CasinoSlider-D40zgViI.js → CasinoSlider-BNXLZgDw.js} +1 -1
- package/components/{CasinoSlider-CJpeC5z_.js → CasinoSlider-DM6QKKTt.js} +1 -1
- package/components/{CasinoSort-CMZayycI.js → CasinoSort-B2Qc9SQD.js} +1 -1
- package/components/{CasinoSort-CydlqJP8.js → CasinoSort-Cy9CsobH.js} +1 -1
- package/components/{CasinoSort-DjCxKlZJ.cjs → CasinoSort-DXbZS93w.cjs} +1 -1
- package/components/{CasinoWinners-B-qcd_Bf.js → CasinoWinners-C7MHQEel.js} +2 -2
- package/components/{CasinoWinners-DcqEgS6B.js → CasinoWinners-DwOwhna2.js} +2 -2
- package/components/{CasinoWinners-Cqmnci0O.cjs → CasinoWinners-vtNo9Qcw.cjs} +1 -1
- package/components/{GeneralAnimationLoading-C8aWcUd_.js → GeneralAnimationLoading-B_aYZuNR.js} +1 -1
- package/components/{GeneralAnimationLoading-Oqx65Onk.js → GeneralAnimationLoading-DL1NzjpT.js} +1 -1
- package/components/{GeneralAnimationLoading-Cjhmg9V_.cjs → GeneralAnimationLoading-DkGvUwyz.cjs} +1 -1
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-3OLT0AIG.js → casino-play-random-game-BJFjsA5t.js} +1 -1
- package/stencil/{casino-play-random-game-CHpLVsre.cjs → casino-play-random-game-Dc8mmoVc.cjs} +1 -1
- package/stencil/{casino-play-random-game-BnjMAnCB.js → casino-play-random-game-IBntzp9u.js} +1 -1
- package/stencil/{casino-play-random-game_3-BPrURzZF.cjs → casino-play-random-game_3-CWb_GLFH.cjs} +2 -2
- package/stencil/{casino-play-random-game_3-DbmTGjC1.js → casino-play-random-game_3-NoHe4Dqj.js} +31 -46
- package/stencil/{casino-play-random-game_3-5Bmo5OfX.js → casino-play-random-game_3-Rwyc5VQ-.js} +31 -46
- package/stencil/index-256b7d4e-7jcaQ7rC.js +543 -0
- package/stencil/index-256b7d4e-BnoVkrXr.cjs +1 -0
- package/stencil/index-256b7d4e-CSg5Fmgt.js +559 -0
- package/stencil/{index-27b314b8-DWbdQG1d.js → index-27b314b8-5_ilcOjJ.js} +1 -1
- package/stencil/{index-27b314b8-B6-HIs2Q.cjs → index-27b314b8-BgJpabNL.cjs} +1 -1
- package/stencil/{index-27b314b8-rkjLfQe1.js → index-27b314b8-DSDDLaZx.js} +1 -1
- package/stencil/ui-image-8975d115-BIwRmPA-.cjs +1 -0
- package/stencil/ui-image-8975d115-C8pJTCfZ.js +71 -0
- package/stencil/ui-image-8975d115-DxO6YS6C.js +71 -0
- package/stencil/{ui-image-CVrTqLhl.js → ui-image-B3uO8jRI.js} +1 -1
- package/stencil/{ui-image-adPxpjgH.js → ui-image-D3NyvObj.js} +1 -1
- package/stencil/{ui-image-Cd2KxMB7.cjs → ui-image-DxINavDC.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-CXGY1IY3.cjs} +1 -1
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-DwuycSdC.js} +2 -2
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-rhY_9uoo.js} +2 -2
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
- package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +0 -1
- package/stencil/ui-image-2ff23cd5-D0rXudCW.js +0 -86
- package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +0 -86
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { r as n, h as t, H as r, g as a } from "./index-256b7d4e-CSg5Fmgt.js";
|
|
2
|
+
const h = ".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 = h, d = class {
|
|
3
|
+
constructor(i) {
|
|
4
|
+
n(this, i), this.hasStarted = !1, this._onLoad = () => {
|
|
5
|
+
this.imgLoaded = !0;
|
|
6
|
+
}, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
7
|
+
}
|
|
8
|
+
onSrcChange() {
|
|
9
|
+
this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
10
|
+
}
|
|
11
|
+
onLoadingChange(i, e) {
|
|
12
|
+
i !== e && (this.cleanupObserver(), i === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
this.loading !== "eager" && this.setupObserver();
|
|
16
|
+
}
|
|
17
|
+
disconnectedCallback() {
|
|
18
|
+
this.cleanupObserver(), this.imgEl && (this.imgEl.src = "");
|
|
19
|
+
}
|
|
20
|
+
canUseIO() {
|
|
21
|
+
return typeof window != "undefined" && "IntersectionObserver" in window;
|
|
22
|
+
}
|
|
23
|
+
setupObserver() {
|
|
24
|
+
if (this.loading !== "eager") {
|
|
25
|
+
if (!this.canUseIO()) {
|
|
26
|
+
this.beginLoad();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.io = new IntersectionObserver((i) => {
|
|
30
|
+
var e;
|
|
31
|
+
for (const s of i)
|
|
32
|
+
if (s.isIntersecting) {
|
|
33
|
+
this.beginLoad(), (e = this.io) === null || e === void 0 || e.unobserve(s.target), this.cleanupObserver();
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
cleanupObserver() {
|
|
40
|
+
var i;
|
|
41
|
+
(i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
|
|
42
|
+
}
|
|
43
|
+
beginLoad() {
|
|
44
|
+
this.hasStarted || this.imgEl && this.src && (this.hasStarted = !0, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0));
|
|
45
|
+
}
|
|
46
|
+
get showSkeleton() {
|
|
47
|
+
return this.loading !== "eager" && !this.imgLoaded;
|
|
48
|
+
}
|
|
49
|
+
renderEager() {
|
|
50
|
+
return t(r, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
|
|
51
|
+
}
|
|
52
|
+
renderLazy() {
|
|
53
|
+
return t(r, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (i) => this.imgEl = i, src: void 0, decoding: "async", style: this.styles, onLoad: this._onLoad, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
57
|
+
}
|
|
58
|
+
get el() {
|
|
59
|
+
return a(this);
|
|
60
|
+
}
|
|
61
|
+
static get watchers() {
|
|
62
|
+
return {
|
|
63
|
+
src: ["onSrcChange"],
|
|
64
|
+
loading: ["onLoadingChange"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
d.style = o;
|
|
69
|
+
export {
|
|
70
|
+
d as U
|
|
71
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { r as n, h as t, H as r, g as a } from "./index-256b7d4e-7jcaQ7rC.js";
|
|
2
|
+
const h = ".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 = h, d = class {
|
|
3
|
+
constructor(i) {
|
|
4
|
+
n(this, i), this.hasStarted = !1, this._onLoad = () => {
|
|
5
|
+
this.imgLoaded = !0;
|
|
6
|
+
}, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
7
|
+
}
|
|
8
|
+
onSrcChange() {
|
|
9
|
+
this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
10
|
+
}
|
|
11
|
+
onLoadingChange(i, e) {
|
|
12
|
+
i !== e && (this.cleanupObserver(), i === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
this.loading !== "eager" && this.setupObserver();
|
|
16
|
+
}
|
|
17
|
+
disconnectedCallback() {
|
|
18
|
+
this.cleanupObserver(), this.imgEl && (this.imgEl.src = "");
|
|
19
|
+
}
|
|
20
|
+
canUseIO() {
|
|
21
|
+
return typeof window < "u" && "IntersectionObserver" in window;
|
|
22
|
+
}
|
|
23
|
+
setupObserver() {
|
|
24
|
+
if (this.loading !== "eager") {
|
|
25
|
+
if (!this.canUseIO()) {
|
|
26
|
+
this.beginLoad();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.io = new IntersectionObserver((i) => {
|
|
30
|
+
var e;
|
|
31
|
+
for (const s of i)
|
|
32
|
+
if (s.isIntersecting) {
|
|
33
|
+
this.beginLoad(), (e = this.io) === null || e === void 0 || e.unobserve(s.target), this.cleanupObserver();
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
cleanupObserver() {
|
|
40
|
+
var i;
|
|
41
|
+
(i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
|
|
42
|
+
}
|
|
43
|
+
beginLoad() {
|
|
44
|
+
this.hasStarted || this.imgEl && this.src && (this.hasStarted = !0, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0));
|
|
45
|
+
}
|
|
46
|
+
get showSkeleton() {
|
|
47
|
+
return this.loading !== "eager" && !this.imgLoaded;
|
|
48
|
+
}
|
|
49
|
+
renderEager() {
|
|
50
|
+
return t(r, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
|
|
51
|
+
}
|
|
52
|
+
renderLazy() {
|
|
53
|
+
return t(r, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (i) => this.imgEl = i, src: void 0, decoding: "async", style: this.styles, onLoad: this._onLoad, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
57
|
+
}
|
|
58
|
+
get el() {
|
|
59
|
+
return a(this);
|
|
60
|
+
}
|
|
61
|
+
static get watchers() {
|
|
62
|
+
return {
|
|
63
|
+
src: ["onSrcChange"],
|
|
64
|
+
loading: ["onLoadingChange"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
d.style = o;
|
|
69
|
+
export {
|
|
70
|
+
d as U
|
|
71
|
+
};
|
|
@@ -14,7 +14,7 @@ var s = (r, a, e) => new Promise((g, n) => {
|
|
|
14
14
|
}, i = (t) => t.done ? g(t.value) : Promise.resolve(t.value).then(m, u);
|
|
15
15
|
i((e = e.apply(r, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as c, p as l } from "./index-
|
|
17
|
+
import { b as c, p as l } from "./index-256b7d4e-CSg5Fmgt.js";
|
|
18
18
|
import { a as d } from "./app-globals-0f993ce5-DfNOCk8l.js";
|
|
19
19
|
var h = () => {
|
|
20
20
|
const r = import.meta.url, a = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=(t,r,i)=>new Promise((d,s)=>{var g=e=>{try{n(i.next(e))}catch(a){s(a)}},l=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,l);n((i=i.apply(t,r)).next())});const u=require("./index-
|
|
1
|
+
"use strict";var c=(t,r,i)=>new Promise((d,s)=>{var g=e=>{try{n(i.next(e))}catch(a){s(a)}},l=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,l);n((i=i.apply(t,r)).next())});const u=require("./index-256b7d4e-BnoVkrXr.cjs"),m=require("./app-globals-0f993ce5-4b17CI_n.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-DxINavDC.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 m.globalScripts$1(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],loading:[1],imgLoaded:[32]},null,{src:["onSrcChange"],loading:["onLoadingChange"]}],[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)}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-8975d115-BIwRmPA-.cjs"),t=require("./index-256b7d4e-BnoVkrXr.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-
|
|
2
|
-
import { r, h as t, H as n } from "./index-
|
|
1
|
+
import { U as m } from "./ui-image-8975d115-C8pJTCfZ.js";
|
|
2
|
+
import { r, h as t, H as n } from "./index-256b7d4e-CSg5Fmgt.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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as m } from "./ui-image-
|
|
2
|
-
import { r, h as t, H as n } from "./index-
|
|
1
|
+
import { U as m } from "./ui-image-8975d115-DxO6YS6C.js";
|
|
2
|
+
import { r, h as t, H as n } from "./index-256b7d4e-7jcaQ7rC.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 = {
|