@onereach/idw-ui-components 0.7.1 → 0.7.3
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/README.md +1 -1
- package/dist/cjs/index.js +11 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +358 -337
- package/dist/esm/index.js.map +1 -1
- package/dist/types/idw-card/renderer/CardRenderer.vue.d.ts.map +1 -1
- package/dist/types/idw-card/renderer/JsonCardBody.vue.d.ts +2 -1
- package/dist/types/idw-card/renderer/JsonCardBody.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -158,10 +158,10 @@ function hr(e, t) {
|
|
|
158
158
|
if (!n || !r) return () => {
|
|
159
159
|
};
|
|
160
160
|
const o = r.getComputedStyle(n), s = parseFloat(o.paddingTop) || 0, i = parseFloat(o.paddingBottom) || 0, a = () => {
|
|
161
|
-
const
|
|
162
|
-
return { top:
|
|
161
|
+
const f = n.getBoundingClientRect();
|
|
162
|
+
return { top: f.top + n.clientTop + s, bottom: f.top + n.clientTop + n.clientHeight - i };
|
|
163
163
|
}, l = Math.max(0, e.getBoundingClientRect().top - a().top), c = () => {
|
|
164
|
-
const
|
|
164
|
+
const f = e.getBoundingClientRect(), { top: h, bottom: v } = a(), S = Math.max(h, Math.min(h + l, v - (f.bottom - f.top))), k = f.top - S;
|
|
165
165
|
Math.abs(k) > 0.5 && (n.scrollTop += k);
|
|
166
166
|
};
|
|
167
167
|
if (!t)
|
|
@@ -170,13 +170,13 @@ function hr(e, t) {
|
|
|
170
170
|
let u = 0, p = !0;
|
|
171
171
|
const m = () => {
|
|
172
172
|
p = !1, r.cancelAnimationFrame(u);
|
|
173
|
-
for (const
|
|
174
|
-
},
|
|
175
|
-
c(), u = r.requestAnimationFrame(
|
|
173
|
+
for (const f of ["wheel", "touchstart", "pointerdown"]) n.removeEventListener(f, m);
|
|
174
|
+
}, d = () => {
|
|
175
|
+
c(), u = r.requestAnimationFrame(d);
|
|
176
176
|
};
|
|
177
|
-
for (const
|
|
178
|
-
return
|
|
179
|
-
|
|
177
|
+
for (const f of ["wheel", "touchstart", "pointerdown"]) n.addEventListener(f, m, { passive: !0 });
|
|
178
|
+
return d(), (f = !0) => {
|
|
179
|
+
f && p && c(), m();
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
const _s = {
|
|
@@ -348,7 +348,7 @@ const _s = {
|
|
|
348
348
|
let l = a.value, c = !1, u;
|
|
349
349
|
const p = V();
|
|
350
350
|
let m;
|
|
351
|
-
const
|
|
351
|
+
const d = V(), f = V();
|
|
352
352
|
let h, v = 0, S, k = () => {
|
|
353
353
|
};
|
|
354
354
|
const T = V(!1), O = z(() => o.view === "fullscreen"), R = z(() => O.value || !o.expandable || a.value);
|
|
@@ -396,7 +396,7 @@ const _s = {
|
|
|
396
396
|
function jt(N) {
|
|
397
397
|
if (!o.expandable || O.value || N === l) return;
|
|
398
398
|
l = N, N && (c = !1);
|
|
399
|
-
const Z =
|
|
399
|
+
const Z = d.value, $ = Z == null ? void 0 : Z.getBoundingClientRect().height, pe = ++v;
|
|
400
400
|
clearTimeout(S), k(!1), k = () => {
|
|
401
401
|
}, Z && $ !== void 0 && (Z.style.height = `${$}px`), h == null || h.cancel(), h = void 0;
|
|
402
402
|
const Pe = Z == null ? void 0 : Z.ownerDocument.defaultView, mt = !Pe || !(Z != null && Z.animate) || Pe.matchMedia("(prefers-reduced-motion: reduce)").matches, pt = !N && !mt && u !== void 0;
|
|
@@ -414,10 +414,10 @@ const _s = {
|
|
|
414
414
|
var dr;
|
|
415
415
|
if (pe !== v) return;
|
|
416
416
|
ht();
|
|
417
|
-
const Zt = (dr =
|
|
417
|
+
const Zt = (dr = f.value) == null ? void 0 : dr.querySelector(":scope > [data-feed-chrome]:last-child");
|
|
418
418
|
Pe && (Zt != null && Zt.animate) && Zt.animate([{ opacity: 0 }, { opacity: 1 }], { duration: Rt.footerIn, easing: "linear" });
|
|
419
419
|
});
|
|
420
|
-
}, ve = pt ? u : (((cr =
|
|
420
|
+
}, ve = pt ? u : (((cr = f.value) == null ? void 0 : cr.getBoundingClientRect().height) ?? $) + 2;
|
|
421
421
|
if (mt || $ === ve) {
|
|
422
422
|
yt(), N && hr(Z, !1);
|
|
423
423
|
return;
|
|
@@ -440,7 +440,7 @@ const _s = {
|
|
|
440
440
|
N !== void 0 && jt(N);
|
|
441
441
|
}, { flush: "sync" }), xe(a, (N) => {
|
|
442
442
|
var Z, $;
|
|
443
|
-
!N && c && (($ = (Z =
|
|
443
|
+
!N && c && (($ = (Z = d.value) == null ? void 0 : Z.querySelector("[data-feed-opener]")) == null || $.focus({ preventScroll: !0 })), c = !1;
|
|
444
444
|
}, { flush: "post" }), tt(() => {
|
|
445
445
|
++v, clearTimeout(S), k(!1), h == null || h.cancel(), m == null || m.cancel();
|
|
446
446
|
});
|
|
@@ -453,7 +453,7 @@ const _s = {
|
|
|
453
453
|
function ts(N) {
|
|
454
454
|
Ke(!0), N.detail === 0 && yn(() => {
|
|
455
455
|
var Z, $;
|
|
456
|
-
return ($ = (Z =
|
|
456
|
+
return ($ = (Z = d.value) == null ? void 0 : Z.querySelector("h3")) == null ? void 0 : $.focus({ preventScroll: !0 });
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
459
|
function pn() {
|
|
@@ -472,7 +472,7 @@ const _s = {
|
|
|
472
472
|
var $, pe, Pe, mt, pt, ht, yt;
|
|
473
473
|
return y(), x("article", {
|
|
474
474
|
ref_key: "root",
|
|
475
|
-
ref:
|
|
475
|
+
ref: d,
|
|
476
476
|
class: D(["feed-item-base group/feed relative flex min-w-0 flex-col overflow-hidden rounded-[24px] border", C.value]),
|
|
477
477
|
"data-view": e.view,
|
|
478
478
|
"aria-labelledby": E.value,
|
|
@@ -490,7 +490,7 @@ const _s = {
|
|
|
490
490
|
}, null, 8, ua)) : j("", !0),
|
|
491
491
|
I("div", {
|
|
492
492
|
ref_key: "layout",
|
|
493
|
-
ref:
|
|
493
|
+
ref: f,
|
|
494
494
|
class: D(["flex w-full min-h-0 shrink-0 flex-col", R.value && !O.value ? "max-h-[calc(42.5rem-2px)]" : ""])
|
|
495
495
|
}, [
|
|
496
496
|
I("header", {
|
|
@@ -1036,11 +1036,11 @@ const Xa = { class: "idw-card-action-bar flex min-w-0 flex-wrap items-center gap
|
|
|
1036
1036
|
class: D(o.value ? "min-w-0" : ["flex flex-col", a(p.width)]),
|
|
1037
1037
|
style: ye(o.value ? i : void 0)
|
|
1038
1038
|
}, [
|
|
1039
|
-
(y(!0), x(ee, null, ce(p.items, (
|
|
1040
|
-
key:
|
|
1041
|
-
element:
|
|
1039
|
+
(y(!0), x(ee, null, ce(p.items, (d, f) => (y(), P(rn, {
|
|
1040
|
+
key: d.id || f,
|
|
1041
|
+
element: d,
|
|
1042
1042
|
"host-config": e.hostConfig,
|
|
1043
|
-
style: ye(l(
|
|
1043
|
+
style: ye(l(d)),
|
|
1044
1044
|
onAction: u[0] || (u[0] = (h) => r("action", h)),
|
|
1045
1045
|
onSkillClick: u[1] || (u[1] = (h) => r("skill-click"))
|
|
1046
1046
|
}, null, 8, ["element", "host-config", "style"]))), 128))
|
|
@@ -1378,10 +1378,10 @@ const Il = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, El = {
|
|
|
1378
1378
|
function m(b) {
|
|
1379
1379
|
return b.type === "Input.ChoiceSet" ? b.choices : b.options;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function d(b) {
|
|
1382
1382
|
return b.type === "Input.Select" || b.type === "Input.RadioGroup" || b.type === "Input.CheckboxGroup" || b.type === "Input.ChoiceSet";
|
|
1383
1383
|
}
|
|
1384
|
-
const
|
|
1384
|
+
const f = z(() => d(t.element) ? m(t.element).map((b) => ({
|
|
1385
1385
|
label: p(b),
|
|
1386
1386
|
value: b.value,
|
|
1387
1387
|
disabled: b.disabled
|
|
@@ -1461,7 +1461,7 @@ const Il = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, El = {
|
|
|
1461
1461
|
}, null, 8, ["model-value", "label", "required", "disabled"])) : e.element.type === "Input.Select" || e.element.type === "Input.ChoiceSet" && e.element.style !== "expanded" ? (y(), P(g(ys), {
|
|
1462
1462
|
key: 5,
|
|
1463
1463
|
"model-value": c.value,
|
|
1464
|
-
options:
|
|
1464
|
+
options: f.value,
|
|
1465
1465
|
multiple: h.value,
|
|
1466
1466
|
"enable-search": v.value,
|
|
1467
1467
|
"enable-clear": e.element.type === "Input.Select" ? e.element.enableClear : void 0,
|
|
@@ -1475,7 +1475,7 @@ const Il = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, El = {
|
|
|
1475
1475
|
}, null, 8, ["model-value", "options", "multiple", "enable-search", "enable-clear", "label", "placeholder", "hint", "error", "required", "disabled"])) : e.element.type === "Input.CheckboxGroup" || e.element.type === "Input.ChoiceSet" && e.element.style === "expanded" && h.value ? (y(), P(g(gs), {
|
|
1476
1476
|
key: 6,
|
|
1477
1477
|
"model-value": Array.isArray(o.value) ? o.value : [],
|
|
1478
|
-
options:
|
|
1478
|
+
options: f.value,
|
|
1479
1479
|
direction: S.value,
|
|
1480
1480
|
readonly: k.value,
|
|
1481
1481
|
label: e.element.label,
|
|
@@ -1486,7 +1486,7 @@ const Il = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, El = {
|
|
|
1486
1486
|
}, null, 8, ["model-value", "options", "direction", "readonly", "label", "hint", "error", "disabled"])) : e.element.type === "Input.RadioGroup" || e.element.type === "Input.ChoiceSet" ? (y(), P(g(vs), {
|
|
1487
1487
|
key: 7,
|
|
1488
1488
|
"model-value": u.value,
|
|
1489
|
-
options:
|
|
1489
|
+
options: f.value,
|
|
1490
1490
|
direction: S.value,
|
|
1491
1491
|
readonly: k.value,
|
|
1492
1492
|
label: e.element.label,
|
|
@@ -1811,11 +1811,11 @@ function Mo(e) {
|
|
|
1811
1811
|
k.pause();
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function d(k) {
|
|
1815
1815
|
const T = t.value, O = Math.min(1, Math.max(0, k));
|
|
1816
1816
|
i.value = O, s.value = O === 0, T && (T.volume = O, T.muted = O === 0);
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function f(k) {
|
|
1819
1819
|
const T = t.value;
|
|
1820
1820
|
!T || !Number.isFinite(T.duration) || T.duration <= 0 || (T.currentTime = Math.min(1, Math.max(0, k)) * T.duration, r.value = T.currentTime);
|
|
1821
1821
|
}
|
|
@@ -1829,7 +1829,7 @@ function Mo(e) {
|
|
|
1829
1829
|
function v(k) {
|
|
1830
1830
|
const T = k.currentTarget, O = (b) => {
|
|
1831
1831
|
const C = T.getBoundingClientRect(), B = C.width > 0 ? (b.clientX - C.left) / C.width : 0;
|
|
1832
|
-
|
|
1832
|
+
f(B);
|
|
1833
1833
|
};
|
|
1834
1834
|
O(k);
|
|
1835
1835
|
const R = (b) => O(b), E = () => {
|
|
@@ -1858,7 +1858,7 @@ function Mo(e) {
|
|
|
1858
1858
|
timeLabel: u,
|
|
1859
1859
|
sync: p,
|
|
1860
1860
|
toggle: m,
|
|
1861
|
-
setVolume:
|
|
1861
|
+
setVolume: d,
|
|
1862
1862
|
nudge: h,
|
|
1863
1863
|
onSeek: v,
|
|
1864
1864
|
onError: S
|
|
@@ -1875,33 +1875,33 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
1875
1875
|
emits: ["volume"],
|
|
1876
1876
|
setup(e, { emit: t }) {
|
|
1877
1877
|
const n = e, r = t, o = V(), s = V(), i = V(!1), a = z(() => n.muted ? 0 : n.volume), l = z(() => `${a.value * 100}%`), c = z(() => a.value === 0 ? "volume_off" : "volume_up");
|
|
1878
|
-
function u(
|
|
1879
|
-
const
|
|
1880
|
-
if (!
|
|
1878
|
+
function u(d) {
|
|
1879
|
+
const f = s.value;
|
|
1880
|
+
if (!f)
|
|
1881
1881
|
return;
|
|
1882
|
-
const h =
|
|
1882
|
+
const h = f.getBoundingClientRect(), v = h.height > 0 ? (h.bottom - d.clientY) / h.height : 0;
|
|
1883
1883
|
r("volume", v);
|
|
1884
1884
|
}
|
|
1885
|
-
function p(
|
|
1886
|
-
u(
|
|
1887
|
-
const
|
|
1888
|
-
window.removeEventListener("pointermove",
|
|
1885
|
+
function p(d) {
|
|
1886
|
+
u(d);
|
|
1887
|
+
const f = (v) => u(v), h = () => {
|
|
1888
|
+
window.removeEventListener("pointermove", f), window.removeEventListener("pointerup", h);
|
|
1889
1889
|
};
|
|
1890
|
-
window.addEventListener("pointermove",
|
|
1890
|
+
window.addEventListener("pointermove", f), window.addEventListener("pointerup", h);
|
|
1891
1891
|
}
|
|
1892
|
-
function m(
|
|
1893
|
-
var
|
|
1894
|
-
(
|
|
1892
|
+
function m(d) {
|
|
1893
|
+
var f;
|
|
1894
|
+
(f = o.value) != null && f.contains(d.target) || (i.value = !1);
|
|
1895
1895
|
}
|
|
1896
|
-
return xe(i, (
|
|
1897
|
-
if (
|
|
1896
|
+
return xe(i, (d) => {
|
|
1897
|
+
if (d) {
|
|
1898
1898
|
document.addEventListener("pointerdown", m);
|
|
1899
1899
|
return;
|
|
1900
1900
|
}
|
|
1901
1901
|
document.removeEventListener("pointerdown", m);
|
|
1902
1902
|
}), tt(() => {
|
|
1903
1903
|
document.removeEventListener("pointerdown", m);
|
|
1904
|
-
}), (
|
|
1904
|
+
}), (d, f) => (y(), x("div", {
|
|
1905
1905
|
ref_key: "root",
|
|
1906
1906
|
ref: o,
|
|
1907
1907
|
class: "idw-card-volume"
|
|
@@ -1911,7 +1911,7 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
1911
1911
|
"aria-label": "Volume",
|
|
1912
1912
|
"aria-expanded": i.value,
|
|
1913
1913
|
disabled: e.disabled,
|
|
1914
|
-
onClick:
|
|
1914
|
+
onClick: f[0] || (f[0] = (h) => i.value = !i.value)
|
|
1915
1915
|
}, [
|
|
1916
1916
|
q(g(ge), {
|
|
1917
1917
|
icon: c.value,
|
|
@@ -1936,11 +1936,11 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
1936
1936
|
"aria-valuemax": 100,
|
|
1937
1937
|
"aria-valuenow": Math.round(a.value * 100),
|
|
1938
1938
|
onKeydown: [
|
|
1939
|
-
|
|
1940
|
-
|
|
1939
|
+
f[1] || (f[1] = nt(Me((h) => r("volume", a.value + 0.05), ["prevent"]), ["up"])),
|
|
1940
|
+
f[2] || (f[2] = nt(Me((h) => r("volume", a.value - 0.05), ["prevent"]), ["down"]))
|
|
1941
1941
|
]
|
|
1942
1942
|
}, [
|
|
1943
|
-
|
|
1943
|
+
f[3] || (f[3] = I("span", { class: "idw-card-volume-rail" }, null, -1)),
|
|
1944
1944
|
I("span", {
|
|
1945
1945
|
class: "idw-card-volume-fill",
|
|
1946
1946
|
style: ye({ height: l.value })
|
|
@@ -1982,8 +1982,8 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
1982
1982
|
buffered: u,
|
|
1983
1983
|
timeLabel: p,
|
|
1984
1984
|
sync: m,
|
|
1985
|
-
toggle:
|
|
1986
|
-
setVolume:
|
|
1985
|
+
toggle: d,
|
|
1986
|
+
setVolume: f,
|
|
1987
1987
|
nudge: h,
|
|
1988
1988
|
onSeek: v,
|
|
1989
1989
|
onError: S
|
|
@@ -2018,7 +2018,7 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2018
2018
|
"aria-label": g(r) ? "Pause" : "Play",
|
|
2019
2019
|
disabled: g(l),
|
|
2020
2020
|
onClick: E[8] || (E[8] = //@ts-ignore
|
|
2021
|
-
(...b) => g(
|
|
2021
|
+
(...b) => g(d) && g(d)(...b))
|
|
2022
2022
|
}, [
|
|
2023
2023
|
q(g(ge), {
|
|
2024
2024
|
icon: O.value,
|
|
@@ -2063,7 +2063,7 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2063
2063
|
class: "shrink-0 text-on-background dark:text-on-background-dark",
|
|
2064
2064
|
volume: g(a),
|
|
2065
2065
|
muted: g(i),
|
|
2066
|
-
onVolume: g(
|
|
2066
|
+
onVolume: g(f)
|
|
2067
2067
|
}, null, 8, ["volume", "muted", "onVolume"])
|
|
2068
2068
|
]))
|
|
2069
2069
|
]));
|
|
@@ -2093,8 +2093,8 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2093
2093
|
unavailable: u,
|
|
2094
2094
|
progress: p,
|
|
2095
2095
|
timeLabel: m,
|
|
2096
|
-
sync:
|
|
2097
|
-
toggle:
|
|
2096
|
+
sync: d,
|
|
2097
|
+
toggle: f,
|
|
2098
2098
|
setVolume: h,
|
|
2099
2099
|
nudge: v,
|
|
2100
2100
|
onSeek: S,
|
|
@@ -2132,19 +2132,19 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2132
2132
|
title: e.title,
|
|
2133
2133
|
playsinline: "",
|
|
2134
2134
|
onClick: b[0] || (b[0] = //@ts-ignore
|
|
2135
|
-
(...C) => g(d) && g(d)(...C)),
|
|
2136
|
-
onTimeupdate: b[1] || (b[1] = //@ts-ignore
|
|
2137
2135
|
(...C) => g(f) && g(f)(...C)),
|
|
2136
|
+
onTimeupdate: b[1] || (b[1] = //@ts-ignore
|
|
2137
|
+
(...C) => g(d) && g(d)(...C)),
|
|
2138
2138
|
onLoadedmetadata: b[2] || (b[2] = //@ts-ignore
|
|
2139
|
-
(...C) => g(
|
|
2139
|
+
(...C) => g(d) && g(d)(...C)),
|
|
2140
2140
|
onPlay: b[3] || (b[3] = //@ts-ignore
|
|
2141
|
-
(...C) => g(
|
|
2141
|
+
(...C) => g(d) && g(d)(...C)),
|
|
2142
2142
|
onPause: b[4] || (b[4] = //@ts-ignore
|
|
2143
|
-
(...C) => g(
|
|
2143
|
+
(...C) => g(d) && g(d)(...C)),
|
|
2144
2144
|
onEnded: b[5] || (b[5] = //@ts-ignore
|
|
2145
|
-
(...C) => g(
|
|
2145
|
+
(...C) => g(d) && g(d)(...C)),
|
|
2146
2146
|
onVolumechange: b[6] || (b[6] = //@ts-ignore
|
|
2147
|
-
(...C) => g(
|
|
2147
|
+
(...C) => g(d) && g(d)(...C)),
|
|
2148
2148
|
onError: b[7] || (b[7] = //@ts-ignore
|
|
2149
2149
|
(...C) => g(k) && g(k)(...C))
|
|
2150
2150
|
}, null, 40, Yl),
|
|
@@ -2158,7 +2158,7 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2158
2158
|
"aria-label": g(s) ? "Pause" : "Play",
|
|
2159
2159
|
disabled: g(u),
|
|
2160
2160
|
onClick: b[8] || (b[8] = //@ts-ignore
|
|
2161
|
-
(...C) => g(
|
|
2161
|
+
(...C) => g(f) && g(f)(...C))
|
|
2162
2162
|
}, [
|
|
2163
2163
|
q(g(ge), {
|
|
2164
2164
|
icon: g(s) ? "pause" : "play_arrow",
|
|
@@ -2217,7 +2217,7 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2217
2217
|
class: "idw-card-video-play absolute left-1/2 top-1/2 z-10 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
|
|
2218
2218
|
"aria-label": g(s) ? "Pause" : "Play",
|
|
2219
2219
|
onClick: b[12] || (b[12] = //@ts-ignore
|
|
2220
|
-
(...C) => g(
|
|
2220
|
+
(...C) => g(f) && g(f)(...C))
|
|
2221
2221
|
}, [
|
|
2222
2222
|
q(g(ge), {
|
|
2223
2223
|
icon: g(s) ? "pause" : "play_arrow",
|
|
@@ -2429,8 +2429,8 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2429
2429
|
emits: ["action", "skill-click"],
|
|
2430
2430
|
setup(e, { emit: t }) {
|
|
2431
2431
|
const n = e, r = t, o = Ro(), s = z(() => o.isHidden(n.element.id, n.element.isVisible)), i = z(() => {
|
|
2432
|
-
const
|
|
2433
|
-
return Ja[
|
|
2432
|
+
const d = n.element.spacing ?? qa;
|
|
2433
|
+
return Ja[d];
|
|
2434
2434
|
}), a = z(() => n.element.type !== "Container" ? "" : Lo[n.element.tone ?? "default"]), l = z(() => Is(n.element) ? n.element : void 0), c = {
|
|
2435
2435
|
center: "justify-center",
|
|
2436
2436
|
end: "justify-end"
|
|
@@ -2440,14 +2440,14 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2440
2440
|
}, p = z(() => n.element.type === "Html" && n.hostConfig.embedSize === "fill"), m = z(() => {
|
|
2441
2441
|
if (p.value)
|
|
2442
2442
|
return "min-h-0 flex-1 flex-col";
|
|
2443
|
-
const
|
|
2444
|
-
if (
|
|
2445
|
-
const h =
|
|
2446
|
-
return ["flex flex-1 flex-col", u[
|
|
2443
|
+
const d = n.element.horizontalAlignment ?? "start", f = n.element.verticalAlignment ?? "start";
|
|
2444
|
+
if (f === "center" || f === "end") {
|
|
2445
|
+
const h = d === "center" ? "items-center" : d === "end" ? "items-end" : "";
|
|
2446
|
+
return ["flex flex-1 flex-col", u[f], h];
|
|
2447
2447
|
}
|
|
2448
|
-
return
|
|
2448
|
+
return d === "center" || d === "end" ? ["flex", c[d]] : "";
|
|
2449
2449
|
});
|
|
2450
|
-
return Gn(), (
|
|
2450
|
+
return Gn(), (d, f) => s.value ? j("", !0) : (y(), x("div", {
|
|
2451
2451
|
key: 0,
|
|
2452
2452
|
class: D(["idw-card-element w-full min-w-0", [
|
|
2453
2453
|
i.value,
|
|
@@ -2474,14 +2474,14 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2474
2474
|
key: 4,
|
|
2475
2475
|
element: e.element,
|
|
2476
2476
|
"host-config": e.hostConfig,
|
|
2477
|
-
onAction:
|
|
2478
|
-
onSkillClick:
|
|
2477
|
+
onAction: f[0] || (f[0] = (h) => r("action", h)),
|
|
2478
|
+
onSkillClick: f[1] || (f[1] = (h) => r("skill-click"))
|
|
2479
2479
|
}, null, 8, ["element", "host-config"])) : e.element.type === "ColumnSet" ? (y(), P(_a, {
|
|
2480
2480
|
key: 5,
|
|
2481
2481
|
element: e.element,
|
|
2482
2482
|
"host-config": e.hostConfig,
|
|
2483
|
-
onAction:
|
|
2484
|
-
onSkillClick:
|
|
2483
|
+
onAction: f[2] || (f[2] = (h) => r("action", h)),
|
|
2484
|
+
onSkillClick: f[3] || (f[3] = (h) => r("skill-click"))
|
|
2485
2485
|
}, null, 8, ["element", "host-config"])) : e.element.type === "Html" ? (y(), P(yl, {
|
|
2486
2486
|
key: 6,
|
|
2487
2487
|
element: e.element,
|
|
@@ -2498,12 +2498,12 @@ const Zl = ["aria-expanded", "disabled"], Rl = ["aria-valuenow"], Bo = /* @__PUR
|
|
|
2498
2498
|
}, null, 8, ["element"])) : e.element.type === "Skill" ? (y(), P(mu, {
|
|
2499
2499
|
key: 10,
|
|
2500
2500
|
element: e.element,
|
|
2501
|
-
onAction:
|
|
2501
|
+
onAction: f[4] || (f[4] = (h) => r("action", h))
|
|
2502
2502
|
}, null, 8, ["element"])) : e.element.type === "ActionSet" ? (y(), P(Ka, {
|
|
2503
2503
|
key: 11,
|
|
2504
2504
|
element: e.element,
|
|
2505
2505
|
"host-config": e.hostConfig,
|
|
2506
|
-
onAction:
|
|
2506
|
+
onAction: f[5] || (f[5] = (h) => r("action", h))
|
|
2507
2507
|
}, null, 8, ["element", "host-config"])) : e.element.type === "Progress" ? (y(), P(du, {
|
|
2508
2508
|
key: 12,
|
|
2509
2509
|
element: e.element
|
|
@@ -2819,11 +2819,11 @@ function An(e, t, n) {
|
|
|
2819
2819
|
(r = e[o]).schema ?? (r.schema = n);
|
|
2820
2820
|
}
|
|
2821
2821
|
function Be(e, t, n) {
|
|
2822
|
-
var l, c, u, p, m,
|
|
2822
|
+
var l, c, u, p, m, d, f, h, v, S;
|
|
2823
2823
|
var r;
|
|
2824
2824
|
const o = (c = (l = e.inst) == null ? void 0 : l._zod) == null ? void 0 : c.traits;
|
|
2825
2825
|
o != null && o.has("$ZodType") && (o.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
|
|
2826
|
-
const s = e.schema !== e.inst ? (p = (u = e.schema) == null ? void 0 : u._zod.def) == null ? void 0 : p.error : void 0, i = e.message ? e.message : vt((
|
|
2826
|
+
const s = e.schema !== e.inst ? (p = (u = e.schema) == null ? void 0 : u._zod.def) == null ? void 0 : p.error : void 0, i = e.message ? e.message : vt((f = (d = (m = e.inst) == null ? void 0 : m._zod.def) == null ? void 0 : d.error) == null ? void 0 : f.call(d, e)) ?? vt(s == null ? void 0 : s(e)) ?? vt((h = t == null ? void 0 : t.error) == null ? void 0 : h.call(t, e)) ?? vt((v = n.customError) == null ? void 0 : v.call(n, e)) ?? vt((S = n.localeError) == null ? void 0 : S.call(n, e)) ?? "Invalid input", a = {};
|
|
2827
2827
|
for (const k of Object.keys(e))
|
|
2828
2828
|
k === "inst" || k === "schema" || k === "continue" || k === "input" || k === "__proto__" || (a[k] = e[k]);
|
|
2829
2829
|
return a.path ?? (a.path = []), a.message = i, t != null && t.reportInput && (a.input = e.input), a;
|
|
@@ -2988,19 +2988,19 @@ function w(e, t, n, r) {
|
|
|
2988
2988
|
}
|
|
2989
2989
|
s.prototype = o;
|
|
2990
2990
|
const i = n, a = i && /* @__PURE__ */ new WeakSet();
|
|
2991
|
-
function l(m,
|
|
2991
|
+
function l(m, d) {
|
|
2992
2992
|
if (m._zod) {
|
|
2993
2993
|
if (m._zod.traits.has(e))
|
|
2994
2994
|
return;
|
|
2995
2995
|
} else {
|
|
2996
|
-
kn.value = new s(
|
|
2996
|
+
kn.value = new s(d);
|
|
2997
2997
|
try {
|
|
2998
2998
|
Object.defineProperty(m, "_zod", kn);
|
|
2999
2999
|
} finally {
|
|
3000
3000
|
kn.value = void 0;
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
|
-
if (m._zod.traits.add(e), t(m,
|
|
3003
|
+
if (m._zod.traits.add(e), t(m, d), a) {
|
|
3004
3004
|
const h = Object.getPrototypeOf(m), v = m._zod.constr.prototype;
|
|
3005
3005
|
let S = h;
|
|
3006
3006
|
for (; S && S !== v; )
|
|
@@ -3008,9 +3008,9 @@ function w(e, t, n, r) {
|
|
|
3008
3008
|
const k = S ?? h;
|
|
3009
3009
|
a.has(k) || (a.add(k), Du(k, i));
|
|
3010
3010
|
}
|
|
3011
|
-
const
|
|
3012
|
-
for (const h in
|
|
3013
|
-
Object.prototype.hasOwnProperty.call(
|
|
3011
|
+
const f = p.prototype;
|
|
3012
|
+
for (const h in f)
|
|
3013
|
+
Object.prototype.hasOwnProperty.call(f, h) && (h in m || (m[h] = f[h].bind(m)));
|
|
3014
3014
|
}
|
|
3015
3015
|
const c = (r == null ? void 0 : r.Parent) ?? Object;
|
|
3016
3016
|
class u extends c {
|
|
@@ -3018,21 +3018,21 @@ function w(e, t, n, r) {
|
|
|
3018
3018
|
Object.defineProperty(u, "name", { value: e });
|
|
3019
3019
|
function p(m) {
|
|
3020
3020
|
var v;
|
|
3021
|
-
const
|
|
3022
|
-
l(
|
|
3023
|
-
const
|
|
3024
|
-
if (
|
|
3025
|
-
for (const S of
|
|
3021
|
+
const d = r != null && r.Parent ? Gu(u) : this;
|
|
3022
|
+
l(d, m);
|
|
3023
|
+
const f = d._zod.deferred;
|
|
3024
|
+
if (f) {
|
|
3025
|
+
for (const S of f)
|
|
3026
3026
|
S();
|
|
3027
|
-
|
|
3027
|
+
d._zod.deferred = void 0;
|
|
3028
3028
|
}
|
|
3029
3029
|
const h = (v = globalThis.__zod_globalConfig) == null ? void 0 : v.postProcessor;
|
|
3030
|
-
return h && h(
|
|
3030
|
+
return h && h(d), d;
|
|
3031
3031
|
}
|
|
3032
3032
|
return Object.defineProperty(p, "init", { value: l }), Object.defineProperty(p, Symbol.hasInstance, {
|
|
3033
3033
|
value: (m) => {
|
|
3034
|
-
var
|
|
3035
|
-
return r != null && r.Parent && m instanceof r.Parent ? !0 : (
|
|
3034
|
+
var d, f;
|
|
3035
|
+
return r != null && r.Parent && m instanceof r.Parent ? !0 : (f = (d = m == null ? void 0 : m._zod) == null ? void 0 : d.traits) == null ? void 0 : f.has(e);
|
|
3036
3036
|
}
|
|
3037
3037
|
}), Object.defineProperty(p, "name", { value: e }), p;
|
|
3038
3038
|
}
|
|
@@ -3534,23 +3534,23 @@ const od = {
|
|
|
3534
3534
|
if (l.memo)
|
|
3535
3535
|
return l;
|
|
3536
3536
|
let p = Ne(l), m;
|
|
3537
|
-
for (const
|
|
3538
|
-
if (
|
|
3539
|
-
if (Mu(l) || !
|
|
3537
|
+
for (const d of c) {
|
|
3538
|
+
if (d._zod.def.when) {
|
|
3539
|
+
if (Mu(l) || !d._zod.def.when(l))
|
|
3540
3540
|
continue;
|
|
3541
3541
|
} else if (p)
|
|
3542
3542
|
continue;
|
|
3543
|
-
const
|
|
3543
|
+
const f = l.issues.length, h = d._zod.check(l);
|
|
3544
3544
|
if (h instanceof Promise && (u == null ? void 0 : u.async) === !1)
|
|
3545
3545
|
throw new Ge();
|
|
3546
3546
|
if (m || h instanceof Promise)
|
|
3547
3547
|
m = (m ?? Promise.resolve()).then(async () => {
|
|
3548
|
-
await h, l.issues.length !==
|
|
3548
|
+
await h, l.issues.length !== f && (An(l.issues, f, e), p || (p = Ne(l, f)));
|
|
3549
3549
|
});
|
|
3550
3550
|
else {
|
|
3551
|
-
if (l.issues.length ===
|
|
3551
|
+
if (l.issues.length === f)
|
|
3552
3552
|
continue;
|
|
3553
|
-
An(l.issues,
|
|
3553
|
+
An(l.issues, f, e), p || (p = Ne(l, f));
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
3556
|
return m ? m.then(() => l) : l;
|
|
@@ -4016,25 +4016,25 @@ function li(e) {
|
|
|
4016
4016
|
}
|
|
4017
4017
|
function ui(e, t, n, r, o, s, i) {
|
|
4018
4018
|
const a = [], l = o.keySet, c = o.catchall._zod, u = c.def.type, p = c.optin, m = c.optout;
|
|
4019
|
-
let
|
|
4020
|
-
for (const
|
|
4021
|
-
if (i && n.issues.length !==
|
|
4022
|
-
if (Ne(n,
|
|
4019
|
+
let d = 0;
|
|
4020
|
+
for (const f in t) {
|
|
4021
|
+
if (i && n.issues.length !== d) {
|
|
4022
|
+
if (Ne(n, d))
|
|
4023
4023
|
break;
|
|
4024
|
-
|
|
4024
|
+
d = n.issues.length;
|
|
4025
4025
|
}
|
|
4026
|
-
if (l.has(
|
|
4026
|
+
if (l.has(f))
|
|
4027
4027
|
continue;
|
|
4028
|
-
if (
|
|
4029
|
-
u === "never" && a.push(
|
|
4028
|
+
if (f === "__proto__") {
|
|
4029
|
+
u === "never" && a.push(f);
|
|
4030
4030
|
continue;
|
|
4031
4031
|
}
|
|
4032
4032
|
if (u === "never") {
|
|
4033
|
-
a.push(
|
|
4033
|
+
a.push(f);
|
|
4034
4034
|
continue;
|
|
4035
4035
|
}
|
|
4036
|
-
const h = c.run({ value: t[
|
|
4037
|
-
h instanceof Promise ? e.push(h.then((v) => $t(v, n,
|
|
4036
|
+
const h = c.run({ value: t[f], issues: [] }, r);
|
|
4037
|
+
h instanceof Promise ? e.push(h.then((v) => $t(v, n, f, t, p, m))) : $t(h, n, f, t, p, m);
|
|
4038
4038
|
}
|
|
4039
4039
|
return a.length && n.issues.push({
|
|
4040
4040
|
code: "unrecognized_keys",
|
|
@@ -4059,12 +4059,12 @@ const Hd = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
4059
4059
|
U(e, "propValues", (c) => {
|
|
4060
4060
|
const u = c.def.shape, p = {};
|
|
4061
4061
|
for (const m in u) {
|
|
4062
|
-
const
|
|
4063
|
-
if (
|
|
4062
|
+
const d = u[m]._zod;
|
|
4063
|
+
if (d.values) {
|
|
4064
4064
|
Object.prototype.hasOwnProperty.call(p, m) || qe(p, m, /* @__PURE__ */ new Set());
|
|
4065
|
-
for (const
|
|
4066
|
-
p[m].add(
|
|
4067
|
-
|
|
4065
|
+
for (const f of d.values)
|
|
4066
|
+
p[m].add(f);
|
|
4067
|
+
d.optin !== void 0 && p[m].add(void 0);
|
|
4068
4068
|
}
|
|
4069
4069
|
}
|
|
4070
4070
|
return p;
|
|
@@ -4083,26 +4083,26 @@ const Hd = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
4083
4083
|
inst: e
|
|
4084
4084
|
}), c;
|
|
4085
4085
|
c.value = l ? l.alloc(e, c, {}, u) : {};
|
|
4086
|
-
const m = [],
|
|
4086
|
+
const m = [], d = a.shape, f = u == null ? void 0 : u.abortEarly;
|
|
4087
4087
|
let h = c.issues.length;
|
|
4088
4088
|
for (const v of a.allKeys) {
|
|
4089
|
-
if (
|
|
4089
|
+
if (f && c.issues.length !== h) {
|
|
4090
4090
|
if (Ne(c, h))
|
|
4091
4091
|
break;
|
|
4092
4092
|
h = c.issues.length;
|
|
4093
4093
|
}
|
|
4094
4094
|
if (v === "__proto__")
|
|
4095
4095
|
continue;
|
|
4096
|
-
const S =
|
|
4096
|
+
const S = d[v], k = S._zod.optin, T = S._zod.optout, O = S._zod.run({ value: p[v], issues: [] }, u);
|
|
4097
4097
|
O instanceof Promise ? m.push(O.then((R) => $t(R, c, v, p, k, T))) : $t(O, c, v, p, k, T);
|
|
4098
4098
|
}
|
|
4099
|
-
return i ? ui(m, p, c, u, o.value, e,
|
|
4099
|
+
return i ? ui(m, p, c, u, o.value, e, f === !0) : m.length ? Promise.all(m).then(() => c) : c;
|
|
4100
4100
|
};
|
|
4101
4101
|
}), Xd = /* @__PURE__ */ w("$ZodObjectJIT", (e, t) => {
|
|
4102
4102
|
Hd.init(e, t);
|
|
4103
|
-
const n = e._zod.parse, r = Hn(() => li(t)), o = Ce.memoizer, s = (
|
|
4103
|
+
const n = e._zod.parse, r = Hn(() => li(t)), o = Ce.memoizer, s = (d) => {
|
|
4104
4104
|
var R, E;
|
|
4105
|
-
const
|
|
4105
|
+
const f = r.value, h = f.symbolKeys, v = new rd(["payload", "ctx"], { shape: d, inst: e, memo: o, syms: h }), S = (b) => `shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`, k = (b, C) => `
|
|
4106
4106
|
let ${b}_ab = false;
|
|
4107
4107
|
for (let i = 0; i < ${b}.issues.length; i++) {
|
|
4108
4108
|
const iss = ${b}.issues[i];
|
|
@@ -4117,13 +4117,13 @@ const Hd = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
4117
4117
|
v.write("const input = payload.value;");
|
|
4118
4118
|
const T = /* @__PURE__ */ Object.create(null);
|
|
4119
4119
|
let O = 0;
|
|
4120
|
-
for (const b of
|
|
4120
|
+
for (const b of f.allKeys)
|
|
4121
4121
|
T[b] = `key_${O++}`;
|
|
4122
4122
|
v.write(o ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
|
|
4123
|
-
for (const b of
|
|
4123
|
+
for (const b of f.allKeys) {
|
|
4124
4124
|
if (b === "__proto__")
|
|
4125
4125
|
continue;
|
|
4126
|
-
const C = T[b], B = typeof b == "symbol" ? `syms[${h.indexOf(b)}]` : zu(b), W = `${B} in input`, X =
|
|
4126
|
+
const C = T[b], B = typeof b == "symbol" ? `syms[${h.indexOf(b)}]` : zu(b), W = `${B} in input`, X = d[b], re = (R = X == null ? void 0 : X._zod) == null ? void 0 : R.optin, oe = re !== void 0, Ie = ((E = X == null ? void 0 : X._zod) == null ? void 0 : E.optout) === "optional";
|
|
4127
4127
|
if (v.write(`const ${C} = ${S(B)};`), oe && Ie) {
|
|
4128
4128
|
const je = re === "optional" ? `${C}_present` : `${C}.value !== undefined || ${C}_present`;
|
|
4129
4129
|
v.write(`
|
|
@@ -4173,15 +4173,15 @@ const Hd = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
4173
4173
|
let i;
|
|
4174
4174
|
const a = Xt, l = !Ce.jitless, u = l && Iu.value, p = t.catchall;
|
|
4175
4175
|
let m;
|
|
4176
|
-
e._zod.parse = (
|
|
4176
|
+
e._zod.parse = (d, f) => {
|
|
4177
4177
|
m ?? (m = r.value);
|
|
4178
|
-
const h =
|
|
4179
|
-
return a(h) ? l && u && (
|
|
4178
|
+
const h = d.value;
|
|
4179
|
+
return a(h) ? l && u && (f == null ? void 0 : f.async) === !1 && f.jitless !== !0 ? (i || (i = s(t.shape)), d = i(d, f), p ? ui([], h, d, f, m, e, (f == null ? void 0 : f.abortEarly) === !0) : d) : n(d, f) : (d.issues.push({
|
|
4180
4180
|
expected: "object",
|
|
4181
4181
|
code: "invalid_type",
|
|
4182
4182
|
input: h,
|
|
4183
4183
|
inst: e
|
|
4184
|
-
}),
|
|
4184
|
+
}), d);
|
|
4185
4185
|
};
|
|
4186
4186
|
});
|
|
4187
4187
|
function jr(e, t, n, r) {
|
|
@@ -4275,17 +4275,17 @@ function Lr(e, t, n) {
|
|
|
4275
4275
|
const r = /* @__PURE__ */ new Map();
|
|
4276
4276
|
let o;
|
|
4277
4277
|
const s = /* @__PURE__ */ new Map(), i = (c, u) => {
|
|
4278
|
-
var m,
|
|
4278
|
+
var m, d;
|
|
4279
4279
|
let p;
|
|
4280
4280
|
if (c.code === "unrecognized_keys" && !((m = c.path) != null && m.length))
|
|
4281
4281
|
o ?? (o = c), p = c.keys;
|
|
4282
|
-
else if (c.code === "invalid_key" && c.origin === "record" && ((
|
|
4283
|
-
const
|
|
4284
|
-
s.has(
|
|
4282
|
+
else if (c.code === "invalid_key" && c.origin === "record" && ((d = c.path) == null ? void 0 : d.length) === 1) {
|
|
4283
|
+
const f = String(c.path[0]);
|
|
4284
|
+
s.has(f) || s.set(f, c), p = [f];
|
|
4285
4285
|
} else
|
|
4286
4286
|
return !1;
|
|
4287
|
-
for (const
|
|
4288
|
-
r.has(
|
|
4287
|
+
for (const f of p)
|
|
4288
|
+
r.has(f) || r.set(f, {}), r.get(f)[u] = !0;
|
|
4289
4289
|
return !0;
|
|
4290
4290
|
};
|
|
4291
4291
|
for (const c of t.issues)
|
|
@@ -4334,7 +4334,7 @@ const $d = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
4334
4334
|
r.issues.push({
|
|
4335
4335
|
code: "invalid_key",
|
|
4336
4336
|
origin: "record",
|
|
4337
|
-
issues: p.issues.map((
|
|
4337
|
+
issues: p.issues.map((f) => Be(f, o, Te())),
|
|
4338
4338
|
input: u,
|
|
4339
4339
|
path: [u],
|
|
4340
4340
|
inst: e
|
|
@@ -4344,10 +4344,10 @@ const $d = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
4344
4344
|
const m = p.value;
|
|
4345
4345
|
if (m === "__proto__")
|
|
4346
4346
|
continue;
|
|
4347
|
-
const
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
})) : (
|
|
4347
|
+
const d = t.valueType._zod.run({ value: s[u], issues: [] }, o);
|
|
4348
|
+
d instanceof Promise ? i.push(d.then((f) => {
|
|
4349
|
+
f.issues.length && r.issues.push(..._e(u, f.issues)), r.value[m] = f.value;
|
|
4350
|
+
})) : (d.issues.length && r.issues.push(..._e(u, d.issues)), r.value[m] = d.value);
|
|
4351
4351
|
}
|
|
4352
4352
|
let c;
|
|
4353
4353
|
for (const u in s)
|
|
@@ -4375,16 +4375,16 @@ const $d = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
4375
4375
|
if (u instanceof Promise)
|
|
4376
4376
|
throw new Error("Async schemas not supported in object keys currently");
|
|
4377
4377
|
if (typeof c == "string" && nr.test(c) && u.issues.length) {
|
|
4378
|
-
const
|
|
4379
|
-
if (
|
|
4378
|
+
const f = t.keyType._zod.run({ value: Number(c), issues: [] }, o);
|
|
4379
|
+
if (f instanceof Promise)
|
|
4380
4380
|
throw new Error("Async schemas not supported in object keys currently");
|
|
4381
|
-
|
|
4381
|
+
f.issues.length === 0 && (u = f);
|
|
4382
4382
|
}
|
|
4383
4383
|
if (u.issues.length) {
|
|
4384
4384
|
t.mode === "loose" ? r.value[c] = s[c] : a ? (l = l ?? [], l.push(c)) : r.issues.push({
|
|
4385
4385
|
code: "invalid_key",
|
|
4386
4386
|
origin: "record",
|
|
4387
|
-
issues: u.issues.map((
|
|
4387
|
+
issues: u.issues.map((f) => Be(f, o, Te())),
|
|
4388
4388
|
input: c,
|
|
4389
4389
|
path: [c],
|
|
4390
4390
|
inst: e
|
|
@@ -4394,10 +4394,10 @@ const $d = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
4394
4394
|
const m = u.value;
|
|
4395
4395
|
if (m === "__proto__")
|
|
4396
4396
|
continue;
|
|
4397
|
-
const
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
})) : (
|
|
4397
|
+
const d = t.valueType._zod.run({ value: s[c], issues: [] }, o);
|
|
4398
|
+
d instanceof Promise ? i.push(d.then((f) => {
|
|
4399
|
+
f.issues.length && r.issues.push(..._e(c, f.issues)), r.value[m] = f.value;
|
|
4400
|
+
})) : (d.issues.length && r.issues.push(..._e(c, d.issues)), r.value[m] = d.value);
|
|
4401
4401
|
}
|
|
4402
4402
|
l && l.length > 0 && r.issues.push({
|
|
4403
4403
|
code: "unrecognized_keys",
|
|
@@ -4624,13 +4624,13 @@ function Jt(e, t, n) {
|
|
|
4624
4624
|
p > o && (o = p);
|
|
4625
4625
|
}
|
|
4626
4626
|
}, i = (u, p) => {
|
|
4627
|
-
var
|
|
4627
|
+
var d;
|
|
4628
4628
|
let m = kt;
|
|
4629
|
-
for (const
|
|
4630
|
-
const h = Object.getOwnPropertyDescriptor(u,
|
|
4629
|
+
for (const f of Reflect.ownKeys(u)) {
|
|
4630
|
+
const h = Object.getOwnPropertyDescriptor(u, f);
|
|
4631
4631
|
if (!h.enumerable)
|
|
4632
4632
|
continue;
|
|
4633
|
-
const v = h.get ? qt : (
|
|
4633
|
+
const v = h.get ? qt : (d = h.value) != null && d._zod ? Jt(h.value, t) : kt;
|
|
4634
4634
|
v > m && (m = v);
|
|
4635
4635
|
}
|
|
4636
4636
|
return m;
|
|
@@ -4721,8 +4721,8 @@ function Jt(e, t, n) {
|
|
|
4721
4721
|
if (m._zod)
|
|
4722
4722
|
s(m);
|
|
4723
4723
|
else if (Array.isArray(m))
|
|
4724
|
-
for (const
|
|
4725
|
-
s(
|
|
4724
|
+
for (const d of m)
|
|
4725
|
+
s(d);
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
4728
4728
|
}
|
|
@@ -4774,13 +4774,13 @@ const Ft = [], yf = {
|
|
|
4774
4774
|
p || (p = { buckets: /* @__PURE__ */ new WeakMap(), backEdges: void 0 }, c[Zn] = p);
|
|
4775
4775
|
let m;
|
|
4776
4776
|
o === c ? m = s : (m = hf(p, e), o = c, s = m);
|
|
4777
|
-
const
|
|
4778
|
-
if (
|
|
4779
|
-
return l.value =
|
|
4777
|
+
const d = m.get(u);
|
|
4778
|
+
if (d)
|
|
4779
|
+
return l.value = d.value, d.issues ? d.issues.length && l.issues.push(...Sn(d.issues)) : (l.memo = !0, p.backEdges ?? (p.backEdges = /* @__PURE__ */ new WeakSet()), p.backEdges.add(d.value)), l;
|
|
4780
4780
|
Bt = m;
|
|
4781
|
-
const
|
|
4781
|
+
const f = Ft.length, h = i(l, c);
|
|
4782
4782
|
Bt = void 0;
|
|
4783
|
-
const v = Ft.length >
|
|
4783
|
+
const v = Ft.length > f ? Ft.pop() : void 0;
|
|
4784
4784
|
return h instanceof Promise ? h.then((S) => (v && (v.issues = S.issues.length ? Sn(S.issues) : Vr), S)) : (v && (v.issues = h.issues.length ? Sn(h.issues) : Vr), h);
|
|
4785
4785
|
};
|
|
4786
4786
|
e._zod.parse = a, e._zod.run === i && (e._zod.run = a);
|
|
@@ -5481,13 +5481,13 @@ function te(e, t, n = { path: [], schemaPath: [] }) {
|
|
|
5481
5481
|
if (e._zod.processJSONSchema)
|
|
5482
5482
|
e._zod.processJSONSchema(t, i.schema, m);
|
|
5483
5483
|
else {
|
|
5484
|
-
const
|
|
5484
|
+
const f = i.schema, h = t.processors[o.type];
|
|
5485
5485
|
if (!h)
|
|
5486
5486
|
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);
|
|
5487
|
-
h(e, t,
|
|
5487
|
+
h(e, t, f, m);
|
|
5488
5488
|
}
|
|
5489
|
-
const
|
|
5490
|
-
|
|
5489
|
+
const d = e._zod.parent;
|
|
5490
|
+
d && (i.ref || (i.ref = d), te(d, t, m), t.seen.get(d).isParent = !0);
|
|
5491
5491
|
}
|
|
5492
5492
|
const l = t.metadataRegistry.get(e);
|
|
5493
5493
|
return l && xt(i.schema, l), t.io === "input" && le(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && "_prefault" in i.schema && ((r = i.schema).default ?? (r.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
|
|
@@ -5522,20 +5522,20 @@ function gi(e, t) {
|
|
|
5522
5522
|
const k = u[1].defId ?? u[1].schema.id ?? `schema${e.counter++}`;
|
|
5523
5523
|
return u[1].defId = k, { defId: k, ref: `${S("__shared")}#/${p}/${Yr(k)}` };
|
|
5524
5524
|
}
|
|
5525
|
-
const m = "#",
|
|
5525
|
+
const m = "#", d = `${m}/${p}/`;
|
|
5526
5526
|
if (u[1] === n && !u[1].schema.id)
|
|
5527
5527
|
return { ref: m };
|
|
5528
|
-
const
|
|
5529
|
-
return { defId:
|
|
5528
|
+
const f = u[1].schema.id ?? `__schema${e.counter++}`;
|
|
5529
|
+
return { defId: f, ref: d + Yr(f) };
|
|
5530
5530
|
}, s = (u) => {
|
|
5531
5531
|
if (u[1].schema.$ref)
|
|
5532
5532
|
return;
|
|
5533
|
-
const p = u[1], { ref: m, defId:
|
|
5534
|
-
p.def = { ...p.schema },
|
|
5535
|
-
const
|
|
5536
|
-
for (const h in
|
|
5537
|
-
delete
|
|
5538
|
-
|
|
5533
|
+
const p = u[1], { ref: m, defId: d } = o(u);
|
|
5534
|
+
p.def = { ...p.schema }, d && (p.defId = d);
|
|
5535
|
+
const f = p.schema;
|
|
5536
|
+
for (const h in f)
|
|
5537
|
+
delete f[h];
|
|
5538
|
+
f.$ref = m;
|
|
5539
5539
|
};
|
|
5540
5540
|
if (e.cycles === "throw")
|
|
5541
5541
|
for (const u of e.seen.entries()) {
|
|
@@ -5552,8 +5552,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5552
5552
|
continue;
|
|
5553
5553
|
}
|
|
5554
5554
|
if (e.external) {
|
|
5555
|
-
const
|
|
5556
|
-
if (t !== u[0] &&
|
|
5555
|
+
const d = (l = e.external.registry.get(u[0])) == null ? void 0 : l.id;
|
|
5556
|
+
if (t !== u[0] && d) {
|
|
5557
5557
|
s(u);
|
|
5558
5558
|
continue;
|
|
5559
5559
|
}
|
|
@@ -5667,28 +5667,28 @@ function ki(e, t) {
|
|
|
5667
5667
|
const m = e.seen.get(p);
|
|
5668
5668
|
if (m.ref === null)
|
|
5669
5669
|
return;
|
|
5670
|
-
const
|
|
5670
|
+
const d = m.def ?? m.schema, f = { ...d }, h = m.ref;
|
|
5671
5671
|
if (m.ref = null, h) {
|
|
5672
5672
|
r(h);
|
|
5673
5673
|
const S = e.seen.get(h), k = S.schema;
|
|
5674
|
-
if (k.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (
|
|
5675
|
-
for (const O in
|
|
5676
|
-
O === "$ref" || O === "allOf" || O in
|
|
5674
|
+
if (k.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (d.allOf = d.allOf ?? [], d.allOf.push(k)) : xt(d, k), xt(d, f), p._zod.parent === h)
|
|
5675
|
+
for (const O in d)
|
|
5676
|
+
O === "$ref" || O === "allOf" || O in f || delete d[O];
|
|
5677
5677
|
if (k.$ref && S.def)
|
|
5678
|
-
for (const O in
|
|
5679
|
-
O === "$ref" || O === "allOf" || O in S.def && JSON.stringify(
|
|
5678
|
+
for (const O in d)
|
|
5679
|
+
O === "$ref" || O === "allOf" || O in S.def && JSON.stringify(d[O]) === JSON.stringify(S.def[O]) && delete d[O];
|
|
5680
5680
|
}
|
|
5681
5681
|
const v = p._zod.parent;
|
|
5682
5682
|
if (v && v !== h) {
|
|
5683
5683
|
r(v);
|
|
5684
5684
|
const S = e.seen.get(v);
|
|
5685
|
-
if (S != null && S.schema.$ref && (
|
|
5686
|
-
for (const k in
|
|
5687
|
-
k === "$ref" || k === "allOf" || k in S.def && JSON.stringify(
|
|
5685
|
+
if (S != null && S.schema.$ref && (d.$ref = S.schema.$ref, S.def))
|
|
5686
|
+
for (const k in d)
|
|
5687
|
+
k === "$ref" || k === "allOf" || k in S.def && JSON.stringify(d[k]) === JSON.stringify(S.def[k]) && delete d[k];
|
|
5688
5688
|
}
|
|
5689
5689
|
e.override({
|
|
5690
5690
|
zodSchema: p,
|
|
5691
|
-
jsonSchema:
|
|
5691
|
+
jsonSchema: d,
|
|
5692
5692
|
path: m.path ?? []
|
|
5693
5693
|
});
|
|
5694
5694
|
};
|
|
@@ -5703,16 +5703,16 @@ function ki(e, t) {
|
|
|
5703
5703
|
if (e.intersections.length) {
|
|
5704
5704
|
const p = /* @__PURE__ */ new Map();
|
|
5705
5705
|
for (const m of e.seen.values())
|
|
5706
|
-
for (const
|
|
5707
|
-
const
|
|
5708
|
-
if (!Array.isArray(
|
|
5706
|
+
for (const d of [m.schema, m.def]) {
|
|
5707
|
+
const f = d == null ? void 0 : d.allOf;
|
|
5708
|
+
if (!Array.isArray(f))
|
|
5709
5709
|
continue;
|
|
5710
|
-
const h = p.get(
|
|
5711
|
-
h ? h.push(
|
|
5710
|
+
const h = p.get(f);
|
|
5711
|
+
h ? h.push(d) : p.set(f, [d]);
|
|
5712
5712
|
}
|
|
5713
5713
|
for (const m of e.intersections)
|
|
5714
|
-
for (const
|
|
5715
|
-
vm(
|
|
5714
|
+
for (const d of p.get(m) ?? [])
|
|
5715
|
+
vm(d);
|
|
5716
5716
|
}
|
|
5717
5717
|
}
|
|
5718
5718
|
const o = {};
|
|
@@ -5869,12 +5869,12 @@ const km = {
|
|
|
5869
5869
|
}, xm = (e, t, n, r) => {
|
|
5870
5870
|
const o = n, { minimum: s, maximum: i, multipleOf: a, exclusiveMaximum: l, exclusiveMinimum: c, isInt: u } = Oe(e);
|
|
5871
5871
|
o.type = u ? "integer" : "number";
|
|
5872
|
-
const p = typeof c == "number" && c >= (s ?? Number.NEGATIVE_INFINITY), m = typeof l == "number" && l <= (i ?? Number.POSITIVE_INFINITY),
|
|
5873
|
-
if (p ?
|
|
5874
|
-
const
|
|
5872
|
+
const p = typeof c == "number" && c >= (s ?? Number.NEGATIVE_INFINITY), m = typeof l == "number" && l <= (i ?? Number.POSITIVE_INFINITY), d = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
5873
|
+
if (p ? d ? (o.minimum = c, o.exclusiveMinimum = !0) : o.exclusiveMinimum = c : typeof s == "number" && (o.minimum = s), m ? d ? (o.maximum = l, o.exclusiveMaximum = !0) : o.exclusiveMaximum = l : typeof i == "number" && (o.maximum = i), a) {
|
|
5874
|
+
const f = /* @__PURE__ */ new Set();
|
|
5875
5875
|
for (const S of a)
|
|
5876
|
-
Number.isFinite(S) && S !== 0 ?
|
|
5877
|
-
const [h, ...v] =
|
|
5876
|
+
Number.isFinite(S) && S !== 0 ? f.add(Math.abs(S)) : De(e, t, o, r, `A multipleOf divisor of ${S} cannot be represented in JSON Schema`);
|
|
5877
|
+
const [h, ...v] = f;
|
|
5878
5878
|
h !== void 0 && (o.multipleOf = h), v.length && (o.allOf = [...o.allOf ?? [], ...v.map((S) => ({ multipleOf: S }))]);
|
|
5879
5879
|
}
|
|
5880
5880
|
}, Om = (e, t, n, r) => {
|
|
@@ -5969,12 +5969,12 @@ const Lm = (e, t, n, r) => {
|
|
|
5969
5969
|
n.allOf = l, t.intersections.push(l);
|
|
5970
5970
|
};
|
|
5971
5971
|
function Mn(e, t, n) {
|
|
5972
|
-
var
|
|
5972
|
+
var f;
|
|
5973
5973
|
if (t.$ref) {
|
|
5974
5974
|
if (n.has(t))
|
|
5975
5975
|
return t;
|
|
5976
5976
|
n.add(t);
|
|
5977
|
-
const h = (
|
|
5977
|
+
const h = (f = e.get(t)) == null ? void 0 : f.def;
|
|
5978
5978
|
if (!h)
|
|
5979
5979
|
return t;
|
|
5980
5980
|
const v = Mn(e, h, n);
|
|
@@ -5990,8 +5990,8 @@ function Mn(e, t, n) {
|
|
|
5990
5990
|
const r = Array.isArray(t.type) ? t.type : [t.type], o = !r.includes("string") && r.some((h) => h === "number" || h === "integer"), s = t.enum ?? (t.const !== void 0 ? [t.const] : void 0);
|
|
5991
5991
|
if (!o && !(s != null && s.some((h) => typeof h == "number")))
|
|
5992
5992
|
return t;
|
|
5993
|
-
const { minimum: i, maximum: a, exclusiveMinimum: l, exclusiveMaximum: c, multipleOf: u, format: p, id: m, ...
|
|
5994
|
-
return
|
|
5993
|
+
const { minimum: i, maximum: a, exclusiveMinimum: l, exclusiveMaximum: c, multipleOf: u, format: p, id: m, ...d } = t;
|
|
5994
|
+
return d.enum ? d.enum = d.enum.map((h) => typeof h == "number" ? String(h) : h) : typeof d.const == "number" && (d.const = String(d.const)), o && (d.type = "string", s || (d.pattern = (r.includes("number") ? nr : Dc).source)), d;
|
|
5995
5995
|
}
|
|
5996
5996
|
const Bn = /* @__PURE__ */ new WeakMap();
|
|
5997
5997
|
function Mm(e) {
|
|
@@ -7778,7 +7778,7 @@ function ny(e, t) {
|
|
|
7778
7778
|
)), i.push(
|
|
7779
7779
|
"Each line is a JSON patch operation (add, remove, replace). Start with /root, then stream /elements and /state patches interleaved so the UI fills in progressively as it streams."
|
|
7780
7780
|
), i.push(""), i.push("Example output (each line is a separate JSON object):"), i.push("");
|
|
7781
|
-
const a = e.data.components, l = e.schema.definition.spec, c = l.kind === "object" ? l.inner : void 0, u = c == null ? void 0 : c.elements, p = (u == null ? void 0 : u.kind) === "record" ? u.inner : void 0, m = (p == null ? void 0 : p.kind) === "object" ? p.inner : void 0,
|
|
7781
|
+
const a = e.data.components, l = e.schema.definition.spec, c = l.kind === "object" ? l.inner : void 0, u = c == null ? void 0 : c.elements, p = (u == null ? void 0 : u.kind) === "record" ? u.inner : void 0, m = (p == null ? void 0 : p.kind) === "object" ? p.inner : void 0, d = (m == null ? void 0 : m.slots) !== void 0, f = e.componentNames, h = f[0] || "Component", v = f.length > 1 ? f[1] : h, S = a == null ? void 0 : a[h], k = a == null ? void 0 : a[v], T = S ? go(S) : {}, O = k ? go(k) : {}, R = k != null && k.props ? ry(k.props) : null, E = R ? { ...O, [R]: { $item: "title" } } : O, b = [
|
|
7782
7782
|
JSON.stringify({ op: "add", path: "/root", value: "main" }),
|
|
7783
7783
|
JSON.stringify({
|
|
7784
7784
|
op: "add",
|
|
@@ -7875,7 +7875,7 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
7875
7875
|
if (C) {
|
|
7876
7876
|
i.push(`AVAILABLE COMPONENTS (${e.componentNames.length}):`), i.push("");
|
|
7877
7877
|
for (const [K, ne] of Object.entries(C)) {
|
|
7878
|
-
const Nt = ne.props ? Se(ne.props) : "{}", Qe = ne.slots ?? [], ft = Qe.filter((mn) => mn !== "default"), Ee = Qe.includes("default"), At =
|
|
7878
|
+
const Nt = ne.props ? Se(ne.props) : "{}", Qe = ne.slots ?? [], ft = Qe.filter((mn) => mn !== "default"), Ee = Qe.includes("default"), At = d ? [
|
|
7879
7879
|
Ee ? "accepts children" : "",
|
|
7880
7880
|
ft.length > 0 ? `slots: ${ft.join(", ")}` : ""
|
|
7881
7881
|
].filter(Boolean).join("; ") : Qe.length > 0 ? "accepts children" : "", jt = At ? ` [${At}]` : "", Ke = ne.events && ne.events.length > 0 ? ` [events: ${ne.events.join(", ")}]` : "", fn = ne.description ? ` - ${ne.description}` : "";
|
|
@@ -8232,8 +8232,8 @@ function Ze(e, t = !1) {
|
|
|
8232
8232
|
const u = c._def, p = bo(vo(u)), m = p === "optional" || p === "nullable";
|
|
8233
8233
|
if (t)
|
|
8234
8234
|
if (a.push(l), m) {
|
|
8235
|
-
const
|
|
8236
|
-
i[l] = { anyOf: [
|
|
8235
|
+
const d = Ze(c, t);
|
|
8236
|
+
i[l] = { anyOf: [d, { type: "null" }] };
|
|
8237
8237
|
} else
|
|
8238
8238
|
i[l] = Ze(c, t);
|
|
8239
8239
|
else
|
|
@@ -8418,15 +8418,15 @@ var Wi = /* @__PURE__ */ Symbol("json-render:state"), iy = L({
|
|
|
8418
8418
|
let m = e.initialState && Object.keys(e.initialState).length > 0 ? Dn(e.initialState) : {};
|
|
8419
8419
|
xe(
|
|
8420
8420
|
() => e.initialState,
|
|
8421
|
-
(
|
|
8422
|
-
if (!
|
|
8423
|
-
const
|
|
8421
|
+
(d) => {
|
|
8422
|
+
if (!d) return;
|
|
8423
|
+
const f = Object.keys(d).length > 0 ? Dn(d) : {}, h = /* @__PURE__ */ new Set([
|
|
8424
8424
|
...Object.keys(m),
|
|
8425
|
-
...Object.keys(
|
|
8425
|
+
...Object.keys(f)
|
|
8426
8426
|
]), v = {};
|
|
8427
8427
|
for (const S of h)
|
|
8428
|
-
m[S] !==
|
|
8429
|
-
m =
|
|
8428
|
+
m[S] !== f[S] && (v[S] = S in f ? f[S] : void 0);
|
|
8429
|
+
m = f, Object.keys(v).length > 0 && o.update(v);
|
|
8430
8430
|
}
|
|
8431
8431
|
);
|
|
8432
8432
|
}
|
|
@@ -8439,19 +8439,19 @@ var Wi = /* @__PURE__ */ Symbol("json-render:state"), iy = L({
|
|
|
8439
8439
|
), Ue(Wi, {
|
|
8440
8440
|
state: s,
|
|
8441
8441
|
get: (m) => o.get(m),
|
|
8442
|
-
set: (m,
|
|
8442
|
+
set: (m, d) => {
|
|
8443
8443
|
var h;
|
|
8444
|
-
const
|
|
8445
|
-
o.set(m,
|
|
8444
|
+
const f = o.getSnapshot();
|
|
8445
|
+
o.set(m, d), !n && o.getSnapshot() !== f && ((h = a.value) == null || h.call(a, [{ path: m, value: d }]));
|
|
8446
8446
|
},
|
|
8447
8447
|
update: (m) => {
|
|
8448
|
-
var
|
|
8449
|
-
const
|
|
8450
|
-
if (o.update(m), !n && o.getSnapshot() !==
|
|
8448
|
+
var f;
|
|
8449
|
+
const d = o.getSnapshot();
|
|
8450
|
+
if (o.update(m), !n && o.getSnapshot() !== d) {
|
|
8451
8451
|
const h = [];
|
|
8452
8452
|
for (const [v, S] of Object.entries(m))
|
|
8453
|
-
ie(
|
|
8454
|
-
h.length > 0 && ((
|
|
8453
|
+
ie(d, v) !== S && h.push({ path: v, value: S });
|
|
8454
|
+
h.length > 0 && ((f = a.value) == null || f.call(a, h));
|
|
8455
8455
|
}
|
|
8456
8456
|
},
|
|
8457
8457
|
getSnapshot: () => o.getSnapshot()
|
|
@@ -8528,17 +8528,17 @@ var cy = L({
|
|
|
8528
8528
|
m && uy(m, p) || (o.value = { ...o.value, [u]: p });
|
|
8529
8529
|
}, i = (u, p) => {
|
|
8530
8530
|
var v;
|
|
8531
|
-
const m = n.value,
|
|
8532
|
-
let
|
|
8533
|
-
for (const S of
|
|
8534
|
-
if (
|
|
8535
|
-
|
|
8531
|
+
const m = n.value, d = u.split("/").filter(Boolean);
|
|
8532
|
+
let f = m;
|
|
8533
|
+
for (const S of d)
|
|
8534
|
+
if (f != null && typeof f == "object")
|
|
8535
|
+
f = f[S];
|
|
8536
8536
|
else {
|
|
8537
|
-
|
|
8537
|
+
f = void 0;
|
|
8538
8538
|
break;
|
|
8539
8539
|
}
|
|
8540
8540
|
const h = Uh(p, {
|
|
8541
|
-
value:
|
|
8541
|
+
value: f,
|
|
8542
8542
|
stateModel: m,
|
|
8543
8543
|
customFunctions: e.customFunctions
|
|
8544
8544
|
});
|
|
@@ -8635,40 +8635,40 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8635
8635
|
const { get: n, set: r, getSnapshot: o } = Et(), s = dy(), i = V(e.handlers ?? {}), a = V(/* @__PURE__ */ new Set()), l = V(null);
|
|
8636
8636
|
xe(
|
|
8637
8637
|
() => e.handlers,
|
|
8638
|
-
(
|
|
8639
|
-
|
|
8638
|
+
(d) => {
|
|
8639
|
+
d && (i.value = d);
|
|
8640
8640
|
}
|
|
8641
8641
|
);
|
|
8642
|
-
const c = (
|
|
8643
|
-
i.value = { ...i.value, [
|
|
8644
|
-
}, u = async (
|
|
8642
|
+
const c = (d, f) => {
|
|
8643
|
+
i.value = { ...i.value, [d]: f };
|
|
8644
|
+
}, u = async (d) => {
|
|
8645
8645
|
var T;
|
|
8646
|
-
const
|
|
8646
|
+
const f = Bh(d, o()), h = Nh(), v = Date.now();
|
|
8647
8647
|
Th({
|
|
8648
8648
|
id: h,
|
|
8649
|
-
name:
|
|
8650
|
-
params:
|
|
8649
|
+
name: f.action,
|
|
8650
|
+
params: f.params,
|
|
8651
8651
|
at: v
|
|
8652
8652
|
});
|
|
8653
8653
|
let S = !0, k;
|
|
8654
8654
|
try {
|
|
8655
|
-
if (
|
|
8656
|
-
const E =
|
|
8655
|
+
if (f.action === "setState" && f.params) {
|
|
8656
|
+
const E = f.params.statePath, b = f.params.value;
|
|
8657
8657
|
E && r(E, b);
|
|
8658
8658
|
return;
|
|
8659
8659
|
}
|
|
8660
|
-
if (
|
|
8661
|
-
const E =
|
|
8660
|
+
if (f.action === "pushState" && f.params) {
|
|
8661
|
+
const E = f.params.statePath, b = f.params.value;
|
|
8662
8662
|
if (E) {
|
|
8663
8663
|
const C = qn(b, n), B = n(E) ?? [];
|
|
8664
8664
|
r(E, [...B, C]);
|
|
8665
|
-
const W =
|
|
8665
|
+
const W = f.params.clearStatePath;
|
|
8666
8666
|
W && r(W, "");
|
|
8667
8667
|
}
|
|
8668
8668
|
return;
|
|
8669
8669
|
}
|
|
8670
|
-
if (
|
|
8671
|
-
const E =
|
|
8670
|
+
if (f.action === "removeState" && f.params) {
|
|
8671
|
+
const E = f.params.statePath, b = f.params.index;
|
|
8672
8672
|
if (E !== void 0 && b !== void 0) {
|
|
8673
8673
|
const C = n(E) ?? [];
|
|
8674
8674
|
r(
|
|
@@ -8678,7 +8678,7 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8678
8678
|
}
|
|
8679
8679
|
return;
|
|
8680
8680
|
}
|
|
8681
|
-
if (
|
|
8681
|
+
if (f.action === "validateForm") {
|
|
8682
8682
|
const E = s == null ? void 0 : s.validateAll;
|
|
8683
8683
|
if (!E) {
|
|
8684
8684
|
console.warn(
|
|
@@ -8689,19 +8689,19 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8689
8689
|
const b = E(), C = {};
|
|
8690
8690
|
for (const [W, X] of Object.entries(s.fieldStates))
|
|
8691
8691
|
X.result && !X.result.valid && (C[W] = X.result.errors);
|
|
8692
|
-
const B = ((T =
|
|
8692
|
+
const B = ((T = f.params) == null ? void 0 : T.statePath) || "/formValidation";
|
|
8693
8693
|
r(B, { valid: b, errors: C });
|
|
8694
8694
|
return;
|
|
8695
8695
|
}
|
|
8696
|
-
if (
|
|
8697
|
-
const E =
|
|
8696
|
+
if (f.action === "push" && f.params) {
|
|
8697
|
+
const E = f.params.screen;
|
|
8698
8698
|
if (E) {
|
|
8699
8699
|
const b = n("/currentScreen"), C = n("/navStack") ?? [];
|
|
8700
8700
|
b ? r("/navStack", [...C, b]) : r("/navStack", [...C, ""]), r("/currentScreen", E);
|
|
8701
8701
|
}
|
|
8702
8702
|
return;
|
|
8703
8703
|
}
|
|
8704
|
-
if (
|
|
8704
|
+
if (f.action === "pop") {
|
|
8705
8705
|
const E = n("/navStack") ?? [];
|
|
8706
8706
|
if (E.length > 0) {
|
|
8707
8707
|
const b = E[E.length - 1];
|
|
@@ -8709,15 +8709,15 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8709
8709
|
}
|
|
8710
8710
|
return;
|
|
8711
8711
|
}
|
|
8712
|
-
const O = i.value[
|
|
8712
|
+
const O = i.value[f.action];
|
|
8713
8713
|
if (!O) {
|
|
8714
|
-
console.warn(`No handler registered for action: ${
|
|
8714
|
+
console.warn(`No handler registered for action: ${f.action}`);
|
|
8715
8715
|
return;
|
|
8716
8716
|
}
|
|
8717
|
-
if (
|
|
8717
|
+
if (f.confirm) {
|
|
8718
8718
|
await new Promise((b, C) => {
|
|
8719
8719
|
l.value = {
|
|
8720
|
-
action:
|
|
8720
|
+
action: f,
|
|
8721
8721
|
handler: O,
|
|
8722
8722
|
resolve: () => {
|
|
8723
8723
|
l.value = null, b();
|
|
@@ -8728,10 +8728,10 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8728
8728
|
};
|
|
8729
8729
|
});
|
|
8730
8730
|
const E = new Set(a.value);
|
|
8731
|
-
E.add(
|
|
8731
|
+
E.add(f.action), a.value = E;
|
|
8732
8732
|
try {
|
|
8733
8733
|
await ho({
|
|
8734
|
-
action:
|
|
8734
|
+
action: f,
|
|
8735
8735
|
handler: O,
|
|
8736
8736
|
setState: r,
|
|
8737
8737
|
navigate: e.navigate,
|
|
@@ -8741,15 +8741,15 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8741
8741
|
});
|
|
8742
8742
|
} finally {
|
|
8743
8743
|
const b = new Set(a.value);
|
|
8744
|
-
b.delete(
|
|
8744
|
+
b.delete(f.action), a.value = b;
|
|
8745
8745
|
}
|
|
8746
8746
|
return;
|
|
8747
8747
|
}
|
|
8748
8748
|
const R = new Set(a.value);
|
|
8749
|
-
R.add(
|
|
8749
|
+
R.add(f.action), a.value = R;
|
|
8750
8750
|
try {
|
|
8751
8751
|
await ho({
|
|
8752
|
-
action:
|
|
8752
|
+
action: f,
|
|
8753
8753
|
handler: O,
|
|
8754
8754
|
setState: r,
|
|
8755
8755
|
navigate: e.navigate,
|
|
@@ -8759,7 +8759,7 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8759
8759
|
});
|
|
8760
8760
|
} finally {
|
|
8761
8761
|
const E = new Set(a.value);
|
|
8762
|
-
E.delete(
|
|
8762
|
+
E.delete(f.action), a.value = E;
|
|
8763
8763
|
}
|
|
8764
8764
|
} catch (O) {
|
|
8765
8765
|
throw S = !1, k = O, O;
|
|
@@ -8767,7 +8767,7 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8767
8767
|
const O = Date.now();
|
|
8768
8768
|
Ph({
|
|
8769
8769
|
id: h,
|
|
8770
|
-
name:
|
|
8770
|
+
name: f.action,
|
|
8771
8771
|
ok: S,
|
|
8772
8772
|
at: O,
|
|
8773
8773
|
durationMs: O - v,
|
|
@@ -8787,17 +8787,17 @@ var Hi = /* @__PURE__ */ Symbol("json-render:actions"), fy = L({
|
|
|
8787
8787
|
},
|
|
8788
8788
|
execute: u,
|
|
8789
8789
|
confirm: () => {
|
|
8790
|
-
var
|
|
8791
|
-
return (
|
|
8790
|
+
var d;
|
|
8791
|
+
return (d = l.value) == null ? void 0 : d.resolve();
|
|
8792
8792
|
},
|
|
8793
8793
|
cancel: () => {
|
|
8794
|
-
var
|
|
8795
|
-
return (
|
|
8794
|
+
var d;
|
|
8795
|
+
return (d = l.value) == null ? void 0 : d.reject();
|
|
8796
8796
|
},
|
|
8797
8797
|
registerHandler: c
|
|
8798
8798
|
}), () => {
|
|
8799
|
-
var
|
|
8800
|
-
return (
|
|
8799
|
+
var d;
|
|
8800
|
+
return (d = t.default) == null ? void 0 : d.call(t);
|
|
8801
8801
|
};
|
|
8802
8802
|
}
|
|
8803
8803
|
});
|
|
@@ -9066,51 +9066,51 @@ var lr = L({
|
|
|
9066
9066
|
},
|
|
9067
9067
|
setup(e) {
|
|
9068
9068
|
const t = wy(), n = Ki(), { ctx: r } = ay(), { execute: o } = Xi(), { getSnapshot: s, state: i } = Et(), a = gy(), l = by(), c = z(() => {
|
|
9069
|
-
const
|
|
9069
|
+
const d = n ? {
|
|
9070
9070
|
...r.value,
|
|
9071
9071
|
repeatItem: n.item,
|
|
9072
9072
|
repeatIndex: n.index,
|
|
9073
9073
|
repeatBasePath: n.basePath
|
|
9074
9074
|
} : { ...r.value };
|
|
9075
|
-
return
|
|
9076
|
-
}), u = async (
|
|
9075
|
+
return d.functions = a.value, d.directives = l.value, d;
|
|
9076
|
+
}), u = async (d) => {
|
|
9077
9077
|
var v;
|
|
9078
|
-
const
|
|
9079
|
-
if (!
|
|
9080
|
-
const h = Array.isArray(
|
|
9078
|
+
const f = (v = e.element.on) == null ? void 0 : v[d];
|
|
9079
|
+
if (!f) return;
|
|
9080
|
+
const h = Array.isArray(f) ? f : [f];
|
|
9081
9081
|
await So(
|
|
9082
9082
|
h,
|
|
9083
9083
|
c.value,
|
|
9084
9084
|
s,
|
|
9085
9085
|
o
|
|
9086
9086
|
);
|
|
9087
|
-
}, p = (
|
|
9087
|
+
}, p = (d) => {
|
|
9088
9088
|
var S;
|
|
9089
|
-
const
|
|
9090
|
-
if (!
|
|
9089
|
+
const f = (S = e.element.on) == null ? void 0 : S[d];
|
|
9090
|
+
if (!f)
|
|
9091
9091
|
return { emit: () => {
|
|
9092
9092
|
}, shouldPreventDefault: !1, bound: !1 };
|
|
9093
|
-
const v = (Array.isArray(
|
|
9093
|
+
const v = (Array.isArray(f) ? f : [f]).some((k) => k.preventDefault);
|
|
9094
9094
|
return {
|
|
9095
9095
|
emit: () => {
|
|
9096
|
-
u(
|
|
9096
|
+
u(d);
|
|
9097
9097
|
},
|
|
9098
9098
|
shouldPreventDefault: v,
|
|
9099
9099
|
bound: !0
|
|
9100
9100
|
};
|
|
9101
9101
|
}, m = z(() => {
|
|
9102
|
-
const
|
|
9103
|
-
if (!
|
|
9104
|
-
const
|
|
9105
|
-
for (const h of Object.keys(
|
|
9106
|
-
|
|
9107
|
-
return
|
|
9102
|
+
const d = e.element.watch;
|
|
9103
|
+
if (!d) return;
|
|
9104
|
+
const f = {};
|
|
9105
|
+
for (const h of Object.keys(d))
|
|
9106
|
+
f[h] = ie(i.value, h);
|
|
9107
|
+
return f;
|
|
9108
9108
|
});
|
|
9109
9109
|
return xe(
|
|
9110
9110
|
m,
|
|
9111
|
-
(
|
|
9111
|
+
(d, f, h) => {
|
|
9112
9112
|
const v = e.element.watch;
|
|
9113
|
-
if (!v || !
|
|
9113
|
+
if (!v || !d) return;
|
|
9114
9114
|
let S = !1;
|
|
9115
9115
|
h(() => {
|
|
9116
9116
|
S = !0;
|
|
@@ -9119,7 +9119,7 @@ var lr = L({
|
|
|
9119
9119
|
(async () => {
|
|
9120
9120
|
for (const T of k) {
|
|
9121
9121
|
if (S) break;
|
|
9122
|
-
if (
|
|
9122
|
+
if (f && d[T] === f[T]) continue;
|
|
9123
9123
|
const O = v[T];
|
|
9124
9124
|
if (!O) continue;
|
|
9125
9125
|
const R = Array.isArray(O) ? O : [O];
|
|
@@ -9136,9 +9136,9 @@ var lr = L({
|
|
|
9136
9136
|
{ deep: !0 }
|
|
9137
9137
|
), () => {
|
|
9138
9138
|
var W;
|
|
9139
|
-
const
|
|
9140
|
-
if (!(e.element.visible === void 0 ? !0 : at(e.element.visible,
|
|
9141
|
-
const h = e.element.props, v = Ih(h,
|
|
9139
|
+
const d = c.value;
|
|
9140
|
+
if (!(e.element.visible === void 0 ? !0 : at(e.element.visible, d))) return null;
|
|
9141
|
+
const h = e.element.props, v = Ih(h, d), S = Ch(h, d), k = S !== e.element.props ? { ...e.element, props: S } : e.element, T = e.registry[k.type] ?? e.fallback;
|
|
9142
9142
|
if (!T)
|
|
9143
9143
|
return console.warn(
|
|
9144
9144
|
`[json-render] No renderer for component type: ${k.type}`
|
|
@@ -9414,49 +9414,69 @@ const Cy = /* @__PURE__ */ L({
|
|
|
9414
9414
|
__name: "JsonCardBody",
|
|
9415
9415
|
props: {
|
|
9416
9416
|
document: {},
|
|
9417
|
+
card: {},
|
|
9417
9418
|
hostConfig: {}
|
|
9418
9419
|
},
|
|
9419
9420
|
emits: ["action", "skill-click"],
|
|
9420
9421
|
setup(e, { emit: t }) {
|
|
9421
|
-
const n = e, r = t, o = {
|
|
9422
|
+
const n = e, r = t, o = z(() => {
|
|
9423
|
+
const l = n.document.root, c = n.document.elements[l].children ?? [];
|
|
9424
|
+
return {
|
|
9425
|
+
root: l,
|
|
9426
|
+
elements: {
|
|
9427
|
+
[l]: {
|
|
9428
|
+
type: "IdwCard",
|
|
9429
|
+
props: { actions: n.card.actions },
|
|
9430
|
+
children: c
|
|
9431
|
+
},
|
|
9432
|
+
...Object.fromEntries(c.map((u, p) => {
|
|
9433
|
+
const { type: m, ...d } = n.card.body[p];
|
|
9434
|
+
return [u, {
|
|
9435
|
+
type: m,
|
|
9436
|
+
props: d
|
|
9437
|
+
}];
|
|
9438
|
+
}))
|
|
9439
|
+
}
|
|
9440
|
+
};
|
|
9441
|
+
}), s = {
|
|
9422
9442
|
type: Object,
|
|
9423
9443
|
required: !0
|
|
9424
|
-
},
|
|
9444
|
+
}, i = L({
|
|
9425
9445
|
inheritAttrs: !1,
|
|
9426
|
-
props: { element:
|
|
9427
|
-
setup: (
|
|
9446
|
+
props: { element: s },
|
|
9447
|
+
setup: (l) => () => Y(rn, {
|
|
9428
9448
|
element: {
|
|
9429
|
-
...
|
|
9430
|
-
type:
|
|
9449
|
+
...l.element.props,
|
|
9450
|
+
type: l.element.type
|
|
9431
9451
|
},
|
|
9432
9452
|
hostConfig: n.hostConfig,
|
|
9433
|
-
onAction: (
|
|
9453
|
+
onAction: (c) => r("action", c),
|
|
9434
9454
|
onSkillClick: () => r("skill-click")
|
|
9435
9455
|
})
|
|
9436
|
-
}),
|
|
9437
|
-
...Object.fromEntries(Es.map((
|
|
9456
|
+
}), a = {
|
|
9457
|
+
...Object.fromEntries(Es.map((l) => [l, i])),
|
|
9438
9458
|
IdwCard: L({
|
|
9439
9459
|
inheritAttrs: !1,
|
|
9440
|
-
props: { element:
|
|
9441
|
-
setup: (
|
|
9442
|
-
var
|
|
9460
|
+
props: { element: s },
|
|
9461
|
+
setup: (l, { slots: c }) => () => {
|
|
9462
|
+
var u, p;
|
|
9443
9463
|
return Y(ee, [
|
|
9444
|
-
(
|
|
9445
|
-
(
|
|
9464
|
+
(u = c.default) == null ? void 0 : u.call(c),
|
|
9465
|
+
(p = l.element.props.actions) != null && p.length ? Y(Yn, {
|
|
9446
9466
|
class: "mt-md",
|
|
9447
|
-
actions:
|
|
9467
|
+
actions: l.element.props.actions,
|
|
9448
9468
|
completedActionTitle: n.hostConfig.completedActionTitle,
|
|
9449
|
-
onAction: (
|
|
9469
|
+
onAction: (m) => r("action", m)
|
|
9450
9470
|
}) : null
|
|
9451
9471
|
]);
|
|
9452
9472
|
}
|
|
9453
9473
|
})
|
|
9454
9474
|
};
|
|
9455
|
-
return (
|
|
9475
|
+
return (l, c) => (y(), P(g(zy), { registry: a }, {
|
|
9456
9476
|
default: be(() => [
|
|
9457
9477
|
q(g(xy), {
|
|
9458
|
-
spec:
|
|
9459
|
-
registry:
|
|
9478
|
+
spec: o.value,
|
|
9479
|
+
registry: a
|
|
9460
9480
|
}, null, 8, ["spec"])
|
|
9461
9481
|
]),
|
|
9462
9482
|
_: 1
|
|
@@ -9494,11 +9514,11 @@ const Cy = /* @__PURE__ */ L({
|
|
|
9494
9514
|
isVisible: S
|
|
9495
9515
|
}, u.value)
|
|
9496
9516
|
});
|
|
9497
|
-
const
|
|
9517
|
+
const d = z(() => {
|
|
9498
9518
|
if (!s.value.success)
|
|
9499
9519
|
return s.value.fallbackText || "This card could not be displayed.";
|
|
9500
9520
|
});
|
|
9501
|
-
function
|
|
9521
|
+
function f() {
|
|
9502
9522
|
if (!i.value)
|
|
9503
9523
|
return !0;
|
|
9504
9524
|
let v = !0;
|
|
@@ -9518,7 +9538,7 @@ const Cy = /* @__PURE__ */ L({
|
|
|
9518
9538
|
const k = { ...p.value };
|
|
9519
9539
|
k[v.title] ? delete k[v.title] : k[v.title] = v.card, p.value = k;
|
|
9520
9540
|
}
|
|
9521
|
-
(v.verb === "submit" || v.verb === "approve" || v.verb === "reject") && !
|
|
9541
|
+
(v.verb === "submit" || v.verb === "approve" || v.verb === "reject") && !f() || r("action", {
|
|
9522
9542
|
...v,
|
|
9523
9543
|
inputs: { ...l }
|
|
9524
9544
|
});
|
|
@@ -9537,10 +9557,11 @@ const Cy = /* @__PURE__ */ L({
|
|
|
9537
9557
|
a.value ? (y(), P(Cy, {
|
|
9538
9558
|
key: 0,
|
|
9539
9559
|
document: a.value,
|
|
9560
|
+
card: i.value,
|
|
9540
9561
|
"host-config": o.value,
|
|
9541
9562
|
onAction: h,
|
|
9542
9563
|
onSkillClick: S[0] || (S[0] = (O) => r("skill-click"))
|
|
9543
|
-
}, null, 8, ["document", "host-config"])) : (y(), x(ee, { key: 1 }, [
|
|
9564
|
+
}, null, 8, ["document", "card", "host-config"])) : (y(), x(ee, { key: 1 }, [
|
|
9544
9565
|
(y(!0), x(ee, null, ce(i.value.body, (O, R) => (y(), P(rn, {
|
|
9545
9566
|
key: O.id || R,
|
|
9546
9567
|
element: O,
|
|
@@ -9564,7 +9585,7 @@ const Cy = /* @__PURE__ */ L({
|
|
|
9564
9585
|
onAction: S[2] || (S[2] = (E) => r("action", E)),
|
|
9565
9586
|
onSkillClick: S[3] || (S[3] = (E) => r("skill-click"))
|
|
9566
9587
|
}, null, 8, ["source", "host-config"]))), 128))
|
|
9567
|
-
], 64)) : (y(), x("p", Iy, F(
|
|
9588
|
+
], 64)) : (y(), x("p", Iy, F(d.value), 1))
|
|
9568
9589
|
], 2);
|
|
9569
9590
|
};
|
|
9570
9591
|
}
|
|
@@ -9667,36 +9688,36 @@ const Ty = /* @__PURE__ */ L({
|
|
|
9667
9688
|
emits: ["reach-bottom", "fullscreen", "start-skill", "skill-click", "action", "control-click", "expand", "collapse", "update:item-expanded"],
|
|
9668
9689
|
setup(e, { emit: t }) {
|
|
9669
9690
|
const n = e, r = t, o = Jn(), s = z(() => !!o.header), i = z(() => !!o.empty), a = z(() => !n.loading && n.items.length === 0), l = V(!1);
|
|
9670
|
-
function c(
|
|
9671
|
-
return
|
|
9691
|
+
function c(d) {
|
|
9692
|
+
return d.type === "html" || d.type === "file";
|
|
9672
9693
|
}
|
|
9673
|
-
function u(
|
|
9674
|
-
return typeof
|
|
9694
|
+
function u(d) {
|
|
9695
|
+
return typeof d.fullscreenControl == "boolean" ? d.fullscreenControl : c(d);
|
|
9675
9696
|
}
|
|
9676
|
-
function p(
|
|
9677
|
-
var
|
|
9678
|
-
if (
|
|
9679
|
-
return
|
|
9680
|
-
if (
|
|
9681
|
-
return
|
|
9682
|
-
}
|
|
9683
|
-
function m(
|
|
9684
|
-
const
|
|
9685
|
-
if (!
|
|
9697
|
+
function p(d) {
|
|
9698
|
+
var f;
|
|
9699
|
+
if (d.mediaSrc)
|
|
9700
|
+
return d.mediaSrc;
|
|
9701
|
+
if (d.type === "skill" && ((f = d.skill) != null && f.image))
|
|
9702
|
+
return d.skill.image;
|
|
9703
|
+
}
|
|
9704
|
+
function m(d) {
|
|
9705
|
+
const f = d.target;
|
|
9706
|
+
if (!f || n.loading || n.loadingMore)
|
|
9686
9707
|
return;
|
|
9687
|
-
const v =
|
|
9708
|
+
const v = f.scrollHeight - f.scrollTop - f.clientHeight <= n.reachBottomOffset;
|
|
9688
9709
|
v && !l.value && r("reach-bottom"), l.value = v;
|
|
9689
9710
|
}
|
|
9690
|
-
return (
|
|
9711
|
+
return (d, f) => (y(), x("section", Py, [
|
|
9691
9712
|
s.value ? (y(), x("div", Ny, [
|
|
9692
|
-
fe(
|
|
9713
|
+
fe(d.$slots, "header")
|
|
9693
9714
|
])) : j("", !0),
|
|
9694
9715
|
I("div", {
|
|
9695
9716
|
class: "feed-list__scroll flex min-h-0 flex-1 flex-col gap-y-sm overflow-y-auto",
|
|
9696
9717
|
onScrollPassive: m
|
|
9697
9718
|
}, [
|
|
9698
9719
|
e.loading ? (y(), x("div", Ay, [
|
|
9699
|
-
fe(
|
|
9720
|
+
fe(d.$slots, "loading", {}, () => [
|
|
9700
9721
|
q(g(En), {
|
|
9701
9722
|
variant: "circular",
|
|
9702
9723
|
color: "primary",
|
|
@@ -9705,7 +9726,7 @@ const Ty = /* @__PURE__ */ L({
|
|
|
9705
9726
|
])
|
|
9706
9727
|
])) : (y(), x(ee, { key: 1 }, [
|
|
9707
9728
|
a.value ? (y(), x("div", jy, [
|
|
9708
|
-
i.value ? fe(
|
|
9729
|
+
i.value ? fe(d.$slots, "empty", {}, void 0, void 0, 0) : (y(), x(ee, { key: 1 }, [
|
|
9709
9730
|
de(F(e.emptyLabel), 1)
|
|
9710
9731
|
], 64))
|
|
9711
9732
|
])) : j("", !0),
|
|
@@ -9751,30 +9772,30 @@ const Ty = /* @__PURE__ */ L({
|
|
|
9751
9772
|
]),
|
|
9752
9773
|
_: 2
|
|
9753
9774
|
}, [
|
|
9754
|
-
|
|
9775
|
+
d.$slots.actions ? {
|
|
9755
9776
|
name: "actions",
|
|
9756
9777
|
fn: be(() => [
|
|
9757
|
-
fe(
|
|
9778
|
+
fe(d.$slots, "actions", { item: h })
|
|
9758
9779
|
]),
|
|
9759
9780
|
key: "0"
|
|
9760
9781
|
} : void 0,
|
|
9761
|
-
|
|
9782
|
+
d.$slots.controls ? {
|
|
9762
9783
|
name: "controls",
|
|
9763
9784
|
fn: be(() => [
|
|
9764
|
-
fe(
|
|
9785
|
+
fe(d.$slots, "controls", { item: h })
|
|
9765
9786
|
]),
|
|
9766
9787
|
key: "1"
|
|
9767
9788
|
} : void 0,
|
|
9768
|
-
|
|
9789
|
+
d.$slots.footer ? {
|
|
9769
9790
|
name: "footer",
|
|
9770
9791
|
fn: be(() => [
|
|
9771
|
-
fe(
|
|
9792
|
+
fe(d.$slots, "footer", { item: h })
|
|
9772
9793
|
]),
|
|
9773
9794
|
key: "2"
|
|
9774
9795
|
} : void 0
|
|
9775
9796
|
]), 1032, ["id", "class", "title", "short-content", "timestamp", "timestamp-datetime", "source", "author-prefix", "type-label", "status", "media-src", "media-alt", "summary", "summary-label", "engagement", "is-new", "highlighted", "expandable", "fullscreen-control", "mention-control", "share-control", "more-control", "control-labels", "onFullscreen", "onControlClick", "onExpand", "onCollapse", "onUpdate:expanded"]))), 128)),
|
|
9776
9797
|
e.loadingMore ? (y(), x("div", Ly, [
|
|
9777
|
-
fe(
|
|
9798
|
+
fe(d.$slots, "loading-more", {}, () => [
|
|
9778
9799
|
q(g(En), {
|
|
9779
9800
|
variant: "circular",
|
|
9780
9801
|
color: "primary",
|