@everymatrix/casino-lobby 1.77.0 → 1.77.2

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.
Files changed (104) hide show
  1. package/components/{CasinoCalendar-2Cpj6Bg6.js → CasinoCalendar-Dxl0GZ3V.js} +2 -2
  2. package/components/{CasinoCalendar-DV_HGN_d.cjs → CasinoCalendar-l9GnvvJt.cjs} +1 -1
  3. package/components/{CasinoCalendar-CMIWRUUm.js → CasinoCalendar-uF_NF6m7.js} +2 -2
  4. package/components/{CasinoCalendarDailyDetails-XuqvF6i3.cjs → CasinoCalendarDailyDetails-5fca8ybY.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-DA7MIM93.js → CasinoCalendarDailyDetails-CkFGHBr1.js} +2 -2
  6. package/components/{CasinoCalendarDailyDetails-B5krFnaT.js → CasinoCalendarDailyDetails-D2EcpVsk.js} +2 -2
  7. package/components/{CasinoCalendarDailyItem-DY2ge_ta.js → CasinoCalendarDailyItem-BjMHq8z0.js} +2 -2
  8. package/components/{CasinoCalendarDailyItem-BAJJIvIo.js → CasinoCalendarDailyItem-CJ4Y1TDs.js} +2 -2
  9. package/components/{CasinoCalendarDailyItem-Q79--gB8.cjs → CasinoCalendarDailyItem-CtrwuSMm.cjs} +1 -1
  10. package/components/{CasinoCategoriesSlider-Bj5sxBdL.cjs → CasinoCategoriesSlider-CsJ_SF6Z.cjs} +1 -1
  11. package/components/{CasinoCategoriesSlider-D8ihGze3.js → CasinoCategoriesSlider-D4K2b7AX.js} +2 -2
  12. package/components/{CasinoCategoriesSlider-QFkK1VfK.js → CasinoCategoriesSlider-Dw9WFkz4.js} +2 -2
  13. package/components/{CasinoCollectionsProviders-KSxevvZ5.js → CasinoCollectionsProviders-BN0zNeS7.js} +1 -1
  14. package/components/{CasinoCollectionsProviders-CyhsgC2q.cjs → CasinoCollectionsProviders-C3QOX3KF.cjs} +1 -1
  15. package/components/{CasinoCollectionsProviders-4Z4WIkbN.js → CasinoCollectionsProviders-DjFfFkmU.js} +1 -1
  16. package/components/{CasinoFavoritesSection-CnKvlpHj.cjs → CasinoFavoritesSection-C_SVbyBn.cjs} +1 -1
  17. package/components/{CasinoFavoritesSection-CeH7gEs_.js → CasinoFavoritesSection-DFYpAORF.js} +2 -2
  18. package/components/{CasinoFavoritesSection-CH6RKYbI.js → CasinoFavoritesSection-DjSYlAHs.js} +2 -2
  19. package/components/{CasinoFilter-BDFP3doT.cjs → CasinoFilter-B7H2bJ-G.cjs} +1 -1
  20. package/components/{CasinoFilter-DqvsdQLm.js → CasinoFilter-Bgc2OX7A.js} +1 -1
  21. package/components/{CasinoFilter-nIExzBTm.js → CasinoFilter-D0wftMel.js} +1 -1
  22. package/components/{CasinoGameThumbnail-Dnb_EWII.cjs → CasinoGameThumbnail-BCV2_lP-.cjs} +1 -1
  23. package/components/{CasinoGameThumbnail-vXzpFK6B.js → CasinoGameThumbnail-DAeRoqVl.js} +2 -2
  24. package/components/{CasinoGameThumbnail-DmAXBgdw.js → CasinoGameThumbnail-DDj9LrBn.js} +2 -2
  25. package/components/{CasinoGamesCategorySection-CCMbufvI.js → CasinoGamesCategorySection-BZ4VTmC0.js} +5 -5
  26. package/components/{CasinoGamesCategorySection-D8p1YH47.js → CasinoGamesCategorySection-CxjrZ9Mg.js} +5 -5
  27. package/components/{CasinoGamesCategorySection-i3CzEe6V.cjs → CasinoGamesCategorySection-D9w4jWch.cjs} +1 -1
  28. package/components/{CasinoJackpotBanner-uWhhU8zz.js → CasinoJackpotBanner-TsNpk7MF.js} +2 -2
  29. package/components/{CasinoJackpotBanner-EKq86n9z.js → CasinoJackpotBanner-VCXNOk6T.js} +2 -2
  30. package/components/{CasinoJackpotBanner-C2pEv1Zb.cjs → CasinoJackpotBanner-yvjEOEuA.cjs} +1 -1
  31. package/components/{CasinoLastPlayedSection-Cz43Ntm0.js → CasinoLastPlayedSection-BlnAstfd.js} +2 -2
  32. package/components/{CasinoLastPlayedSection-D6dhMSFC.js → CasinoLastPlayedSection-CReBS3dw.js} +2 -2
  33. package/components/{CasinoLastPlayedSection-Bkk9ZJWU.cjs → CasinoLastPlayedSection-CqanYCAJ.cjs} +1 -1
  34. package/components/{CasinoLobby-CxgUhhrv.cjs → CasinoLobby-Cn2Otkkj.cjs} +1 -1
  35. package/components/{CasinoLobby-C5W8yGx8.js → CasinoLobby-DXkNhPwn.js} +3 -3
  36. package/components/{CasinoLobby-pKt5iffv.js → CasinoLobby-i6iK4grU.js} +3 -3
  37. package/components/{CasinoMostPlayedSection-CrpSf7Wm.js → CasinoMostPlayedSection-B07bcZSb.js} +2 -2
  38. package/components/{CasinoMostPlayedSection-WUT01RfM.js → CasinoMostPlayedSection-C__zgZB_.js} +2 -2
  39. package/components/{CasinoMostPlayedSection-D2dgTPLO.cjs → CasinoMostPlayedSection-gUjt91qe.cjs} +1 -1
  40. package/components/{CasinoMyGames-D4hswNh4.js → CasinoMyGames-BjpVKSGM.js} +4 -4
  41. package/components/{CasinoMyGames-BySluNi7.cjs → CasinoMyGames-BrR9nn1l.cjs} +1 -1
  42. package/components/{CasinoMyGames-CXvY2HgK.js → CasinoMyGames-jJWJoluY.js} +4 -4
  43. package/components/{CasinoPage-CXQGupl1.cjs → CasinoPage-CpQErNFc.cjs} +1 -1
  44. package/components/{CasinoPage-DJbF4jd3.js → CasinoPage-DbA-NMXP.js} +11 -11
  45. package/components/{CasinoPage-CYgZ9Y3j.js → CasinoPage-yGjlByzR.js} +11 -11
  46. package/components/{CasinoRandomGame-C0LeVa_K.js → CasinoRandomGame-BWebIH8V.js} +1 -1
  47. package/components/{CasinoRandomGame-KqxBje-s.js → CasinoRandomGame-CSrB_Zq2.js} +1 -1
  48. package/components/{CasinoRandomGame-CN0ZsyT7.cjs → CasinoRandomGame-DJnB5Fhm.cjs} +1 -1
  49. package/components/{CasinoSearch-BSZXyGpW.js → CasinoSearch-CcHIKzRN.js} +3 -3
  50. package/components/{CasinoSearch-Bh_3dc9h.js → CasinoSearch-CwADZYFB.js} +3 -3
  51. package/components/{CasinoSearch-DKPZ8_Iy.cjs → CasinoSearch-DcUqk5L0.cjs} +1 -1
  52. package/components/{CasinoSlider-B8GaaNuP.js → CasinoSlider-CJpeC5z_.js} +1 -1
  53. package/components/{CasinoSlider-DbyJ57E6.cjs → CasinoSlider-Ctpht2Hg.cjs} +1 -1
  54. package/components/{CasinoSlider-CBsaRkSG.js → CasinoSlider-D40zgViI.js} +1 -1
  55. package/components/{CasinoSort-DUnBFMEc.js → CasinoSort-CMZayycI.js} +1 -1
  56. package/components/{CasinoSort-DdVCJHJU.js → CasinoSort-CydlqJP8.js} +1 -1
  57. package/components/{CasinoSort-5CSg7HAS.cjs → CasinoSort-DjCxKlZJ.cjs} +1 -1
  58. package/components/{CasinoWinners-BO9ep3XD.js → CasinoWinners-B-qcd_Bf.js} +2 -2
  59. package/components/{CasinoWinners-4uQChe2F.cjs → CasinoWinners-Cqmnci0O.cjs} +1 -1
  60. package/components/{CasinoWinners-D9hsy2fX.js → CasinoWinners-DcqEgS6B.js} +2 -2
  61. package/components/{GeneralAnimationLoading-DKWSPDDc.js → GeneralAnimationLoading-C8aWcUd_.js} +1 -1
  62. package/components/{GeneralAnimationLoading-DpT91_iF.cjs → GeneralAnimationLoading-Cjhmg9V_.cjs} +1 -1
  63. package/components/{GeneralAnimationLoading-yNj1-Ym_.js → GeneralAnimationLoading-Oqx65Onk.js} +1 -1
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/casino-play-random-game-3OLT0AIG.js +25 -0
  69. package/stencil/casino-play-random-game-BnjMAnCB.js +7 -0
  70. package/stencil/casino-play-random-game-CHpLVsre.cjs +1 -0
  71. package/stencil/{casino-play-random-game_2-Cr07t-U3.js → casino-play-random-game_3-5Bmo5OfX.js} +156 -67
  72. package/stencil/casino-play-random-game_3-BPrURzZF.cjs +432 -0
  73. package/stencil/{casino-play-random-game_2-rMFQqRp8.js → casino-play-random-game_3-DbmTGjC1.js} +156 -67
  74. package/stencil/index-242ac81a-BqeIndhr.js +554 -0
  75. package/stencil/index-242ac81a-CI4JxPRf.js +538 -0
  76. package/stencil/index-242ac81a-CjjM4VND.cjs +1 -0
  77. package/stencil/index-27b314b8-B6-HIs2Q.cjs +1 -0
  78. package/stencil/index-27b314b8-DWbdQG1d.js +565 -0
  79. package/stencil/index-27b314b8-rkjLfQe1.js +581 -0
  80. package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +1 -0
  81. package/stencil/ui-image-2ff23cd5-D0rXudCW.js +86 -0
  82. package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +86 -0
  83. package/stencil/ui-image-CVrTqLhl.js +25 -0
  84. package/stencil/ui-image-Cd2KxMB7.cjs +1 -0
  85. package/stencil/ui-image-adPxpjgH.js +7 -0
  86. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-B21W_djK.js} +2 -2
  87. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-CLk629jW.cjs} +1 -1
  88. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-VgK3B8gQ.js} +2 -2
  89. package/stencil/casino-play-random-game-BmY8ENyy.js +0 -25
  90. package/stencil/casino-play-random-game-Ct16KgVH.cjs +0 -1
  91. package/stencil/casino-play-random-game-rSOIFZ4R.js +0 -7
  92. package/stencil/casino-play-random-game_2-BJVoDn1D.cjs +0 -432
  93. package/stencil/index-328e660d-Cex2hzsG.js +0 -576
  94. package/stencil/index-328e660d-Dti9H7_B.js +0 -560
  95. package/stencil/index-328e660d-MaaYKutI.cjs +0 -1
  96. package/stencil/index-97d17652--F7PvMq9.js +0 -542
  97. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  98. package/stencil/index-97d17652-CCFHkzJw.js +0 -558
  99. package/stencil/ui-image-2_i-_1cj.js +0 -25
  100. package/stencil/ui-image-b7b48fe5-ByRuJtdE.js +0 -39
  101. package/stencil/ui-image-b7b48fe5-D6iig_uN.js +0 -39
  102. package/stencil/ui-image-b7b48fe5-DG83WzAo.cjs +0 -1
  103. package/stencil/ui-image-bN_3pDWc.js +0 -7
  104. package/stencil/ui-image-eY8BEG3a.cjs +0 -1
@@ -0,0 +1,581 @@
1
+ var P = (e, t, n) => new Promise((s, r) => {
2
+ var i = (a) => {
3
+ try {
4
+ o(n.next(a));
5
+ } catch ($) {
6
+ r($);
7
+ }
8
+ }, l = (a) => {
9
+ try {
10
+ o(n.throw(a));
11
+ } catch ($) {
12
+ r($);
13
+ }
14
+ }, o = (a) => a.done ? s(a.value) : Promise.resolve(a.value).then(i, l);
15
+ o((n = n.apply(e, t)).next());
16
+ });
17
+ const ge = "casino-play-random-game", ye = (
18
+ /* casino-play-random-game */
19
+ { hydratedSelectorName: "hydrated" }
20
+ );
21
+ var me = Object.defineProperty, Se = (e, t) => {
22
+ for (var n in t)
23
+ me(e, n, { get: t[n], enumerable: !0 });
24
+ }, R = /* @__PURE__ */ new WeakMap(), E = (e) => R.get(e), rt = (e, t) => R.set(t.$lazyInstance$ = e, t), Ee = (e, t) => {
25
+ const n = {
26
+ $flags$: 0,
27
+ $hostElement$: e,
28
+ $cmpMeta$: t,
29
+ $instanceValues$: /* @__PURE__ */ new Map()
30
+ };
31
+ return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], R.set(e, n);
32
+ }, G = (e, t) => t in e, b = (e, t) => (0, console.error)(e, t), U = /* @__PURE__ */ new Map(), ke = (e, t, n) => {
33
+ const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
34
+ if (!r)
35
+ return;
36
+ const i = U.get(r);
37
+ if (i)
38
+ return i[s];
39
+ {
40
+ const l = (o) => (U.set(r, o), o[s]);
41
+ switch (r) {
42
+ case "casino-play-random-game_3":
43
+ return import(
44
+ /* webpackMode: "lazy" */
45
+ "./casino-play-random-game_3-5Bmo5OfX.js"
46
+ ).then(l, b);
47
+ }
48
+ }
49
+ return import(
50
+ /* @vite-ignore */
51
+ /* webpackInclude: /\.entry\.js$/ */
52
+ /* webpackExclude: /\.system\.entry\.js$/ */
53
+ /* webpackMode: "lazy" */
54
+ `./${r}.entry.js`
55
+ ).then((l) => (U.set(r, l), l[s]), b);
56
+ }, L = /* @__PURE__ */ new Map(), be = "{visibility:hidden}.hydrated{visibility:inherit}", ee = "slot-fb{display:contents}slot-fb[hidden]{display:none}", j = typeof window != "undefined" ? window : {}, m = j.document || { head: {} }, h = {
57
+ $flags$: 0,
58
+ $resourcesUrl$: "",
59
+ jmp: (e) => e(),
60
+ raf: (e) => requestAnimationFrame(e),
61
+ ael: (e, t, n, s) => e.addEventListener(t, n, s),
62
+ rel: (e, t, n, s) => e.removeEventListener(t, n, s),
63
+ ce: (e, t) => new CustomEvent(e, t)
64
+ }, we = (e) => Promise.resolve(e), xe = /* @__PURE__ */ (() => {
65
+ try {
66
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
67
+ } catch (e) {
68
+ }
69
+ return !1;
70
+ })(), z = !1, X = [], te = [], Pe = (e, t) => (n) => {
71
+ e.push(n), z || (z = !0, h.$flags$ & 4 ? D(H) : h.raf(H));
72
+ }, Y = (e) => {
73
+ for (let t = 0; t < e.length; t++)
74
+ try {
75
+ e[t](performance.now());
76
+ } catch (n) {
77
+ b(n);
78
+ }
79
+ e.length = 0;
80
+ }, H = () => {
81
+ Y(X), Y(te), (z = X.length > 0) && h.raf(H);
82
+ }, D = (e) => we().then(e), Te = /* @__PURE__ */ Pe(te), J = {}, _e = (e) => e != null, F = (e) => (e = typeof e, e === "object" || e === "function");
83
+ function se(e) {
84
+ var t, n, s;
85
+ 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;
86
+ }
87
+ var Ae = {};
88
+ Se(Ae, {
89
+ err: () => ne,
90
+ map: () => Le,
91
+ ok: () => C,
92
+ unwrap: () => Ie,
93
+ unwrapErr: () => je
94
+ });
95
+ var C = (e) => ({
96
+ isOk: !0,
97
+ isErr: !1,
98
+ value: e
99
+ }), ne = (e) => ({
100
+ isOk: !1,
101
+ isErr: !0,
102
+ value: e
103
+ });
104
+ function Le(e, t) {
105
+ if (e.isOk) {
106
+ const n = t(e.value);
107
+ return n instanceof Promise ? n.then((s) => C(s)) : C(n);
108
+ }
109
+ if (e.isErr) {
110
+ const n = e.value;
111
+ return ne(n);
112
+ }
113
+ throw "should never get here";
114
+ }
115
+ var Ie = (e) => {
116
+ if (e.isOk)
117
+ return e.value;
118
+ throw e.value;
119
+ }, je = (e) => {
120
+ if (e.isErr)
121
+ return e.value;
122
+ throw e.value;
123
+ }, S = (e, t = "") => () => {
124
+ }, Oe = (e, t) => () => {
125
+ }, Ue = (e, t, ...n) => {
126
+ let s = null, r = null, i = !1, l = !1;
127
+ const o = [], a = (c) => {
128
+ for (let f = 0; f < c.length; f++)
129
+ s = c[f], Array.isArray(s) ? a(s) : s != null && typeof s != "boolean" && ((i = typeof e != "function" && !F(s)) && (s = String(s)), i && l ? o[o.length - 1].$text$ += s : o.push(i ? B(null, s) : s), l = i);
130
+ };
131
+ if (a(n), t) {
132
+ t.key && (r = t.key);
133
+ {
134
+ const c = t.className || t.class;
135
+ c && (t.class = typeof c != "object" ? c : Object.keys(c).filter((f) => c[f]).join(" "));
136
+ }
137
+ }
138
+ const $ = B(e, null);
139
+ return $.$attrs$ = t, o.length > 0 && ($.$children$ = o), $.$key$ = r, $;
140
+ }, B = (e, t) => {
141
+ const n = {
142
+ $flags$: 0,
143
+ $tag$: e,
144
+ $text$: t,
145
+ $elm$: null,
146
+ $children$: null
147
+ };
148
+ return n.$attrs$ = null, n.$key$ = null, n;
149
+ }, ze = {}, He = (e) => e && e.$tag$ === ze, Ce = (e, t) => e != null && !F(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Be = (e) => E(e).$hostElement$, lt = (e, t, n) => {
150
+ const s = Be(e);
151
+ return {
152
+ emit: (r) => re(s, t, {
153
+ bubbles: !0,
154
+ composed: !0,
155
+ cancelable: !0,
156
+ detail: r
157
+ })
158
+ };
159
+ }, re = (e, t, n) => {
160
+ const s = h.ce(t, n);
161
+ return e.dispatchEvent(s), s;
162
+ }, K = /* @__PURE__ */ new WeakMap(), qe = (e, t, n) => {
163
+ let s = L.get(e);
164
+ xe && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, L.set(e, s);
165
+ }, Re = (e, t, n) => {
166
+ var s;
167
+ const r = le(t), i = L.get(r);
168
+ if (e = e.nodeType === 11 ? e : m, i)
169
+ if (typeof i == "string") {
170
+ e = e.head || e;
171
+ let l = K.get(e), o;
172
+ if (l || K.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
173
+ {
174
+ o = m.createElement("style"), o.innerHTML = i;
175
+ const a = (s = h.$nonce$) != null ? s : se(m);
176
+ a != null && o.setAttribute("nonce", a), e.insertBefore(o, e.querySelector("link"));
177
+ }
178
+ t.$flags$ & 4 && (o.innerHTML += ee), l && l.add(r);
179
+ }
180
+ } else
181
+ e.adoptedStyleSheets.includes(i) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i]);
182
+ return r;
183
+ }, De = (e) => {
184
+ const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = S("attachStyles", t.$tagName$), i = Re(
185
+ n.shadowRoot ? n.shadowRoot : n.getRootNode(),
186
+ t
187
+ );
188
+ s & 10 && (n["s-sc"] = i, n.classList.add(i + "-h")), r();
189
+ }, le = (e, t) => "sc-" + e.$tagName$, Q = (e, t, n, s, r, i) => {
190
+ if (n !== s) {
191
+ let l = G(e, t), o = t.toLowerCase();
192
+ if (t === "class") {
193
+ const a = e.classList, $ = Z(n), c = Z(s);
194
+ a.remove(...$.filter((f) => f && !c.includes(f))), a.add(...c.filter((f) => f && !$.includes(f)));
195
+ } else if (t === "style") {
196
+ for (const a in n)
197
+ (!s || s[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
198
+ for (const a in s)
199
+ (!n || s[a] !== n[a]) && (a.includes("-") ? e.style.setProperty(a, s[a]) : e.style[a] = s[a]);
200
+ } else if (t !== "key")
201
+ if (t === "ref")
202
+ s && s(e);
203
+ else if (!l && t[0] === "o" && t[1] === "n") {
204
+ if (t[2] === "-" ? t = t.slice(3) : G(j, o) ? t = o.slice(2) : t = o[2] + t.slice(3), n || s) {
205
+ const a = t.endsWith(ae);
206
+ t = t.replace(Me, ""), n && h.rel(e, t, n, a), s && h.ael(e, t, s, a);
207
+ }
208
+ } else {
209
+ const a = F(s);
210
+ if ((l || a && s !== null) && !r)
211
+ try {
212
+ if (e.tagName.includes("-"))
213
+ e[t] = s;
214
+ else {
215
+ const $ = s == null ? "" : s;
216
+ t === "list" ? l = !1 : (n == null || e[t] != $) && (e[t] = $);
217
+ }
218
+ } catch ($) {
219
+ }
220
+ 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));
221
+ }
222
+ }
223
+ }, Fe = /\s/, Z = (e) => e ? e.split(Fe) : [], ae = "Capture", Me = new RegExp(ae + "$"), ie = (e, t, n) => {
224
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || J, i = t.$attrs$ || J;
225
+ for (const l of N(Object.keys(r)))
226
+ l in i || Q(s, l, r[l], void 0, n, t.$flags$);
227
+ for (const l of N(Object.keys(i)))
228
+ Q(s, l, r[l], i[l], n, t.$flags$);
229
+ };
230
+ function N(e) {
231
+ return e.includes("ref") ? (
232
+ // we need to sort these to ensure that `'ref'` is the last attr
233
+ [...e.filter((t) => t !== "ref"), "ref"]
234
+ ) : (
235
+ // no need to sort, return the original array
236
+ e
237
+ );
238
+ }
239
+ var _, M, oe = !1, I = (e, t, n, s) => {
240
+ const r = t.$children$[n];
241
+ let i = 0, l, o;
242
+ if (r.$text$ !== null)
243
+ l = r.$elm$ = m.createTextNode(r.$text$);
244
+ else if (l = r.$elm$ = m.createElement(
245
+ r.$tag$
246
+ ), ie(null, r, oe), _e(_) && l["s-si"] !== _ && l.classList.add(l["s-si"] = _), r.$children$)
247
+ for (i = 0; i < r.$children$.length; ++i)
248
+ o = I(e, r, i), o && l.appendChild(o);
249
+ return l["s-hn"] = M, l;
250
+ }, $e = (e, t, n, s, r, i) => {
251
+ let l = e, o;
252
+ for (l.shadowRoot && l.tagName === M && (l = l.shadowRoot); r <= i; ++r)
253
+ s[r] && (o = I(null, n, r), o && (s[r].$elm$ = o, A(l, o, t)));
254
+ }, ce = (e, t, n) => {
255
+ for (let s = t; s <= n; ++s) {
256
+ const r = e[s];
257
+ if (r) {
258
+ const i = r.$elm$;
259
+ fe(r), i && i.remove();
260
+ }
261
+ }
262
+ }, We = (e, t, n, s, r = !1) => {
263
+ let i = 0, l = 0, o = 0, a = 0, $ = t.length - 1, c = t[0], f = t[$], d = s.length - 1, u = s[0], v = s[d], p, y;
264
+ for (; i <= $ && l <= d; )
265
+ if (c == null)
266
+ c = t[++i];
267
+ else if (f == null)
268
+ f = t[--$];
269
+ else if (u == null)
270
+ u = s[++l];
271
+ else if (v == null)
272
+ v = s[--d];
273
+ else if (T(c, u, r))
274
+ w(c, u, r), c = t[++i], u = s[++l];
275
+ else if (T(f, v, r))
276
+ w(f, v, r), f = t[--$], v = s[--d];
277
+ else if (T(c, v, r))
278
+ w(c, v, r), A(e, c.$elm$, f.$elm$.nextSibling), c = t[++i], v = s[--d];
279
+ else if (T(f, u, r))
280
+ w(f, u, r), A(e, f.$elm$, c.$elm$), f = t[--$], u = s[++l];
281
+ else {
282
+ for (o = -1, a = i; a <= $; ++a)
283
+ if (t[a] && t[a].$key$ !== null && t[a].$key$ === u.$key$) {
284
+ o = a;
285
+ break;
286
+ }
287
+ o >= 0 ? (y = t[o], y.$tag$ !== u.$tag$ ? p = I(t && t[l], n, o) : (w(y, u, r), t[o] = void 0, p = y.$elm$), u = s[++l]) : (p = I(t && t[l], n, l), u = s[++l]), p && A(c.$elm$.parentNode, p, c.$elm$);
288
+ }
289
+ i > $ ? $e(
290
+ e,
291
+ s[d + 1] == null ? null : s[d + 1].$elm$,
292
+ n,
293
+ s,
294
+ l,
295
+ d
296
+ ) : l > d && ce(t, i, $);
297
+ }, T = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, w = (e, t, n = !1) => {
298
+ const s = t.$elm$ = e.$elm$, r = e.$children$, i = t.$children$, l = t.$text$;
299
+ l === null ? (ie(e, t, oe), r !== null && i !== null ? We(s, r, t, i, n) : i !== null ? (e.$text$ !== null && (s.textContent = ""), $e(s, null, t, i, 0, i.length - 1)) : r !== null && ce(r, 0, r.length - 1)) : e.$text$ !== l && (s.data = l);
300
+ }, fe = (e) => {
301
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(fe);
302
+ }, A = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Ge = (e, t, n = !1) => {
303
+ const s = e.$hostElement$, r = e.$cmpMeta$, i = e.$vnode$ || B(null, null), l = He(t) ? t : Ue(null, null, t);
304
+ if (M = s.tagName, r.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, r.$attrsToReflect$.map(
305
+ ([o, a]) => l.$attrs$[a] = s[o]
306
+ )), n && l.$attrs$)
307
+ for (const o of Object.keys(l.$attrs$))
308
+ s.hasAttribute(o) && !["key", "ref", "style", "class"].includes(o) && (l.$attrs$[o] = s[o]);
309
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = i.$elm$ = s.shadowRoot || s, _ = s["s-sc"], r.$flags$ & 1, w(i, l, n);
310
+ }, de = (e, t) => {
311
+ t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
312
+ }, W = (e, t) => {
313
+ if (e.$flags$ |= 16, e.$flags$ & 4) {
314
+ e.$flags$ |= 512;
315
+ return;
316
+ }
317
+ return de(e, e.$ancestorComponent$), Te(() => Xe(e, t));
318
+ }, Xe = (e, t) => {
319
+ const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
320
+ if (!r)
321
+ throw new Error(
322
+ `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`
323
+ );
324
+ let i;
325
+ return t && (i = O(r, "componentWillLoad")), s(), Ye(i, () => Ke(e, r, t));
326
+ }, Ye = (e, t) => Je(e) ? e.then(t).catch((n) => {
327
+ console.error(n), t();
328
+ }) : t(), Je = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ke = (e, t, n) => P(void 0, null, function* () {
329
+ var s;
330
+ const r = e.$hostElement$, i = S("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
331
+ n && De(e);
332
+ const o = S("render", e.$cmpMeta$.$tagName$);
333
+ Qe(e, t, r, n), l && (l.map((a) => a()), r["s-rc"] = void 0), o(), i();
334
+ {
335
+ const a = (s = r["s-p"]) != null ? s : [], $ = () => Ze(e);
336
+ a.length === 0 ? $() : (Promise.all(a).then($), e.$flags$ |= 4, a.length = 0);
337
+ }
338
+ }), Qe = (e, t, n, s) => {
339
+ try {
340
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ge(e, t, s);
341
+ } catch (r) {
342
+ b(r, e.$hostElement$);
343
+ }
344
+ return null;
345
+ }, Ze = (e) => {
346
+ const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, i = e.$ancestorComponent$;
347
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, ve(n), O(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), i || ue()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && D(() => W(e, !1)), e.$flags$ &= -517;
348
+ }, ue = (e) => {
349
+ ve(m.documentElement), D(() => re(j, "appload", { detail: { namespace: ge } }));
350
+ }, O = (e, t, n) => {
351
+ if (e && e[t])
352
+ try {
353
+ return e[t](n);
354
+ } catch (s) {
355
+ b(s);
356
+ }
357
+ }, ve = (e) => {
358
+ var t;
359
+ return e.classList.add((t = ye.hydratedSelectorName) != null ? t : "hydrated");
360
+ }, Ne = (e, t) => E(e).$instanceValues$.get(t), Ve = (e, t, n, s) => {
361
+ const r = E(e);
362
+ if (!r)
363
+ throw new Error(
364
+ `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).`
365
+ );
366
+ const i = r.$hostElement$, l = r.$instanceValues$.get(t), o = r.$flags$, a = r.$lazyInstance$;
367
+ n = Ce(n, s.$members$[t][0]);
368
+ const $ = Number.isNaN(l) && Number.isNaN(n), c = n !== l && !$;
369
+ if ((!(o & 8) || l === void 0) && c && (r.$instanceValues$.set(t, n), a)) {
370
+ if (s.$watchers$ && o & 128) {
371
+ const f = s.$watchers$[t];
372
+ f && f.map((d) => {
373
+ try {
374
+ a[d](n, l, t);
375
+ } catch (u) {
376
+ b(u, i);
377
+ }
378
+ });
379
+ }
380
+ (o & 18) === 2 && W(r, !1);
381
+ }
382
+ }, pe = (e, t, n) => {
383
+ var s, r;
384
+ const i = e.prototype;
385
+ if (t.$members$ || t.$watchers$ || e.watchers) {
386
+ e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
387
+ const l = Object.entries((s = t.$members$) != null ? s : {});
388
+ if (l.map(([o, [a]]) => {
389
+ (a & 31 || n & 2 && a & 32) && Object.defineProperty(i, o, {
390
+ get() {
391
+ return Ne(this, o);
392
+ },
393
+ set($) {
394
+ Ve(this, o, $, t);
395
+ },
396
+ configurable: !0,
397
+ enumerable: !0
398
+ });
399
+ }), n & 1) {
400
+ const o = /* @__PURE__ */ new Map();
401
+ i.attributeChangedCallback = function(a, $, c) {
402
+ h.jmp(() => {
403
+ var f;
404
+ const d = o.get(a);
405
+ if (this.hasOwnProperty(d))
406
+ c = this[d], delete this[d];
407
+ else {
408
+ if (i.hasOwnProperty(d) && typeof this[d] == "number" && this[d] == c)
409
+ return;
410
+ if (d == null) {
411
+ const u = E(this), v = u == null ? void 0 : u.$flags$;
412
+ if (v && !(v & 8) && v & 128 && c !== $) {
413
+ const p = u.$lazyInstance$, y = (f = t.$watchers$) == null ? void 0 : f[a];
414
+ y == null || y.forEach((g) => {
415
+ p[g] != null && p[g].call(p, c, $, a);
416
+ });
417
+ }
418
+ return;
419
+ }
420
+ }
421
+ this[d] = c === null && typeof this[d] == "boolean" ? !1 : c;
422
+ });
423
+ }, e.observedAttributes = Array.from(
424
+ /* @__PURE__ */ new Set([
425
+ ...Object.keys((r = t.$watchers$) != null ? r : {}),
426
+ ...l.filter(
427
+ ([a, $]) => $[0] & 15
428
+ /* HasAttribute */
429
+ ).map(([a, $]) => {
430
+ var c;
431
+ const f = $[1] || a;
432
+ return o.set(f, a), $[0] & 512 && ((c = t.$attrsToReflect$) == null || c.push([a, f])), f;
433
+ })
434
+ ])
435
+ );
436
+ }
437
+ }
438
+ return e;
439
+ }, et = (e, t, n, s) => P(void 0, null, function* () {
440
+ let r;
441
+ if (!(t.$flags$ & 32)) {
442
+ if (t.$flags$ |= 32, n.$lazyBundleId$) {
443
+ const a = ke(n);
444
+ if (a && "then" in a) {
445
+ const c = Oe();
446
+ r = yield a, c();
447
+ } else
448
+ r = a;
449
+ if (!r)
450
+ throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
451
+ r.isProxied || (n.$watchers$ = r.watchers, pe(
452
+ r,
453
+ n,
454
+ 2
455
+ /* proxyState */
456
+ ), r.isProxied = !0);
457
+ const $ = S("createInstance", n.$tagName$);
458
+ t.$flags$ |= 8;
459
+ try {
460
+ new r(t);
461
+ } catch (c) {
462
+ b(c);
463
+ }
464
+ t.$flags$ &= -9, t.$flags$ |= 128, $(), q(t.$lazyInstance$);
465
+ } else {
466
+ r = e.constructor;
467
+ const a = e.localName;
468
+ customElements.whenDefined(a).then(
469
+ () => t.$flags$ |= 128
470
+ /* isWatchReady */
471
+ );
472
+ }
473
+ if (r && r.style) {
474
+ let a;
475
+ typeof r.style == "string" && (a = r.style);
476
+ const $ = le(n);
477
+ if (!L.has($)) {
478
+ const c = S("registerStyles", n.$tagName$);
479
+ qe($, a, !!(n.$flags$ & 1)), c();
480
+ }
481
+ }
482
+ }
483
+ const i = t.$ancestorComponent$, l = () => W(t, !0);
484
+ i && i["s-rc"] ? i["s-rc"].push(l) : l();
485
+ }), q = (e) => {
486
+ O(e, "connectedCallback");
487
+ }, tt = (e) => {
488
+ if (!(h.$flags$ & 1)) {
489
+ const t = E(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
490
+ if (t.$flags$ & 1)
491
+ t != null && t.$lazyInstance$ ? q(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => q(t.$lazyInstance$));
492
+ else {
493
+ t.$flags$ |= 1;
494
+ {
495
+ let r = e;
496
+ for (; r = r.parentNode || r.host; )
497
+ if (r["s-p"]) {
498
+ de(t, t.$ancestorComponent$ = r);
499
+ break;
500
+ }
501
+ }
502
+ n.$members$ && Object.entries(n.$members$).map(([r, [i]]) => {
503
+ if (i & 31 && e.hasOwnProperty(r)) {
504
+ const l = e[r];
505
+ delete e[r], e[r] = l;
506
+ }
507
+ }), et(e, t, n);
508
+ }
509
+ s();
510
+ }
511
+ }, V = (e) => {
512
+ O(e, "disconnectedCallback");
513
+ }, st = (e) => P(void 0, null, function* () {
514
+ if (!(h.$flags$ & 1)) {
515
+ const t = E(e);
516
+ t != null && t.$lazyInstance$ ? V(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => V(t.$lazyInstance$));
517
+ }
518
+ }), at = (e, t = {}) => {
519
+ var n;
520
+ const s = S(), r = [], i = t.exclude || [], l = j.customElements, o = m.head, a = /* @__PURE__ */ o.querySelector("meta[charset]"), $ = /* @__PURE__ */ m.createElement("style"), c = [];
521
+ let f, d = !0;
522
+ Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
523
+ let u = !1;
524
+ if (e.map((v) => {
525
+ v[1].map((p) => {
526
+ var y;
527
+ const g = {
528
+ $flags$: p[0],
529
+ $tagName$: p[1],
530
+ $members$: p[2],
531
+ $listeners$: p[3]
532
+ };
533
+ g.$flags$ & 4 && (u = !0), g.$members$ = p[2], g.$attrsToReflect$ = [], g.$watchers$ = (y = p[4]) != null ? y : {};
534
+ const x = g.$tagName$, he = class extends HTMLElement {
535
+ // StencilLazyHost
536
+ constructor(k) {
537
+ if (super(k), this.hasRegisteredEventListeners = !1, k = this, Ee(k, g), g.$flags$ & 1) {
538
+ if (!k.shadowRoot)
539
+ k.attachShadow({ mode: "open" });
540
+ else if (k.shadowRoot.mode !== "open")
541
+ throw new Error(
542
+ `Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`
543
+ );
544
+ }
545
+ }
546
+ connectedCallback() {
547
+ E(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? c.push(this) : h.jmp(() => tt(this));
548
+ }
549
+ disconnectedCallback() {
550
+ h.jmp(() => st(this));
551
+ }
552
+ componentOnReady() {
553
+ return E(this).$onReadyPromise$;
554
+ }
555
+ };
556
+ g.$lazyBundleId$ = v[0], !i.includes(x) && !l.get(x) && (r.push(x), l.define(
557
+ x,
558
+ pe(
559
+ he,
560
+ g,
561
+ 1
562
+ /* isElementConstructor */
563
+ )
564
+ ));
565
+ });
566
+ }), r.length > 0 && (u && ($.textContent += ee), $.textContent += r.sort() + be, $.innerHTML.length)) {
567
+ $.setAttribute("data-styles", "");
568
+ const v = (n = h.$nonce$) != null ? n : se(m);
569
+ v != null && $.setAttribute("nonce", v), o.insertBefore($, a ? a.nextSibling : o.firstChild);
570
+ }
571
+ d = !1, c.length ? c.map((v) => v.connectedCallback()) : h.jmp(() => f = setTimeout(ue, 30)), s();
572
+ };
573
+ export {
574
+ ze as H,
575
+ at as b,
576
+ lt as c,
577
+ Be as g,
578
+ Ue as h,
579
+ we as p,
580
+ rt as r
581
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("./index-242ac81a-CjjM4VND.cjs"),n=".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}",a=n,r=class{constructor(e){i.registerInstance(this,e),this.hasStarted=!1,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}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,this.hasStarted=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(e,t){e!==t&&(this.cleanupObserver(),this.detachImgHandlers(),e==="eager"?(this.imgEl&&this.src&&(this.imgEl.src=this.src),this.hasStarted=!0):(this.imgLoaded=!1,this.hasStarted=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.detachImgHandlers()}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(e=>{var t;for(const s of e)if(s.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(s.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.io=void 0}wireOnceHandlers(){this.imgEl&&(this.detachImgHandlers(),this._onLoad=()=>{var e;this.currentSrc&&(!((e=this.imgEl)===null||e===void 0)&&e.currentSrc)&&!this.imgEl.currentSrc.includes(this.currentSrc)||(this.imgLoaded=!0)},this._onError=()=>{console.error("Load image failed:",this.src)},this.imgEl.addEventListener("load",this._onLoad,{once:!0}),this.imgEl.addEventListener("error",this._onError,{once:!0}))}detachImgHandlers(){this.imgEl&&(this._onLoad&&this.imgEl.removeEventListener("load",this._onLoad),this._onError&&this.imgEl.removeEventListener("error",this._onError),this._onLoad=void 0,this._onError=void 0)}beginLoad(){if(!this.hasStarted&&this.imgEl&&this.src){if(this.hasStarted=!0,this.wireOnceHandlers(),this.imgEl.complete&&this.imgEl.naturalWidth>0){this.imgLoaded=!0;return}this.currentSrc=this.src,this.imgEl.src=this.src,this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0)}}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return i.h(i.Host,{class:"HostContainer"},i.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return i.h(i.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&i.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{ref:e=>this.imgEl=e,src:void 0,decoding:"async",style:this.styles,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return i.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};r.style=a;exports.UiImage=r;
@@ -0,0 +1,86 @@
1
+ import { r as n, h as t, H as r, g as a } from "./index-242ac81a-CI4JxPRf.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(e) {
4
+ n(this, e), this.hasStarted = !1, 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;
5
+ }
6
+ onSrcChange() {
7
+ this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
8
+ }
9
+ onLoadingChange(e, i) {
10
+ e !== i && (this.cleanupObserver(), this.detachImgHandlers(), e === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
11
+ }
12
+ componentDidLoad() {
13
+ this.loading !== "eager" && this.setupObserver();
14
+ }
15
+ disconnectedCallback() {
16
+ this.cleanupObserver(), this.detachImgHandlers();
17
+ }
18
+ canUseIO() {
19
+ return typeof window < "u" && "IntersectionObserver" in window;
20
+ }
21
+ setupObserver() {
22
+ if (this.loading !== "eager") {
23
+ if (!this.canUseIO()) {
24
+ this.beginLoad();
25
+ return;
26
+ }
27
+ this.io = new IntersectionObserver((e) => {
28
+ var i;
29
+ for (const s of e)
30
+ if (s.isIntersecting) {
31
+ this.beginLoad(), (i = this.io) === null || i === void 0 || i.unobserve(s.target), this.cleanupObserver();
32
+ break;
33
+ }
34
+ }, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
35
+ }
36
+ }
37
+ cleanupObserver() {
38
+ var e;
39
+ (e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
40
+ }
41
+ wireOnceHandlers() {
42
+ this.imgEl && (this.detachImgHandlers(), this._onLoad = () => {
43
+ var e;
44
+ this.currentSrc && (!((e = this.imgEl) === null || e === void 0) && e.currentSrc) && !this.imgEl.currentSrc.includes(this.currentSrc) || (this.imgLoaded = !0);
45
+ }, this._onError = () => {
46
+ console.error("Load image failed:", this.src);
47
+ }, this.imgEl.addEventListener("load", this._onLoad, { once: !0 }), this.imgEl.addEventListener("error", this._onError, { once: !0 }));
48
+ }
49
+ detachImgHandlers() {
50
+ this.imgEl && (this._onLoad && this.imgEl.removeEventListener("load", this._onLoad), this._onError && this.imgEl.removeEventListener("error", this._onError), this._onLoad = void 0, this._onError = void 0);
51
+ }
52
+ beginLoad() {
53
+ if (!this.hasStarted && this.imgEl && this.src) {
54
+ if (this.hasStarted = !0, this.wireOnceHandlers(), this.imgEl.complete && this.imgEl.naturalWidth > 0) {
55
+ this.imgLoaded = !0;
56
+ return;
57
+ }
58
+ this.currentSrc = this.src, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
59
+ }
60
+ }
61
+ get showSkeleton() {
62
+ return this.loading !== "eager" && !this.imgLoaded;
63
+ }
64
+ renderEager() {
65
+ 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" }));
66
+ }
67
+ renderLazy() {
68
+ 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: (e) => this.imgEl = e, src: void 0, decoding: "async", style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
69
+ }
70
+ render() {
71
+ return this.loading === "eager" ? this.renderEager() : this.renderLazy();
72
+ }
73
+ get el() {
74
+ return a(this);
75
+ }
76
+ static get watchers() {
77
+ return {
78
+ src: ["onSrcChange"],
79
+ loading: ["onLoadingChange"]
80
+ };
81
+ }
82
+ };
83
+ d.style = o;
84
+ export {
85
+ d as U
86
+ };