@metaphor-cloud/ui 0.14.0 → 0.16.0
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 +3 -6
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Video.d.ts +49 -0
- package/dist/components/Video.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/metaphor-ui.css +1 -1
- package/dist/metaphor-ui.js +157 -100
- package/dist/themes/adapter-all.css +1 -1
- package/dist/themes/metaphor-all.css +1 -1
- package/dist/themes/um-all.css +1 -1
- package/package.json +19 -16
package/dist/metaphor-ui.js
CHANGED
|
@@ -4114,7 +4114,7 @@ function Ko({ className: e, ref: t, ...n }) {
|
|
|
4114
4114
|
function qo({ className: e, children: t, hideCloseButton: n, ref: r, ...i }) {
|
|
4115
4115
|
return /* @__PURE__ */ u(Go, { children: [/* @__PURE__ */ l(Ko, {}), /* @__PURE__ */ u(Ro, {
|
|
4116
4116
|
ref: r,
|
|
4117
|
-
className: W("fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2", "rounded-lg border border-border bg-bg-elevated p-6 shadow-xl", "data-[state=open]:animate-fade-up", "duration-200", e),
|
|
4117
|
+
className: W("fixed left-1/2 top-1/2 z-50 w-full max-w-lg -translate-x-1/2 -translate-y-1/2", "max-h-[calc(100vh-2rem)] overflow-y-auto overscroll-contain", "rounded-lg border border-border bg-bg-elevated p-6 shadow-xl", "data-[state=open]:animate-fade-up", "duration-200", e),
|
|
4118
4118
|
...i,
|
|
4119
4119
|
children: [t, !n && /* @__PURE__ */ l(Vo, {
|
|
4120
4120
|
"aria-label": "Close",
|
|
@@ -9521,14 +9521,71 @@ function Hb({ className: e, inline: t, children: n, ref: r, ...i }) {
|
|
|
9521
9521
|
});
|
|
9522
9522
|
}
|
|
9523
9523
|
//#endregion
|
|
9524
|
-
//#region src/components/
|
|
9525
|
-
var Ub =
|
|
9524
|
+
//#region src/components/Video.tsx
|
|
9525
|
+
var Ub = "https://cdn.jsdelivr.net/npm/hls.js@1.5.20/dist/hls.min.js";
|
|
9526
9526
|
function Wb() {
|
|
9527
|
-
|
|
9527
|
+
return typeof window > "u" ? Promise.reject(/* @__PURE__ */ Error("SSR")) : window.Hls ? Promise.resolve(window.Hls) : (window.__metaphorHlsLoader || (window.__metaphorHlsLoader = new Promise((e, t) => {
|
|
9528
|
+
let n = document.createElement("script");
|
|
9529
|
+
n.src = Ub, n.async = !0, n.crossOrigin = "anonymous", n.onload = () => window.Hls ? e(window.Hls) : t(/* @__PURE__ */ Error("hls.js not on window")), n.onerror = () => t(/* @__PURE__ */ Error("Failed to load hls.js")), document.head.appendChild(n);
|
|
9530
|
+
})), window.__metaphorHlsLoader);
|
|
9531
|
+
}
|
|
9532
|
+
function Gb(e) {
|
|
9533
|
+
return /\.m3u8(\?|$)/i.test(e);
|
|
9534
|
+
}
|
|
9535
|
+
function Kb({ src: t, hls: n, autoPlay: r, className: i, ref: a, ...o }) {
|
|
9536
|
+
let s = e.useRef(null);
|
|
9537
|
+
e.useImperativeHandle(a, () => s.current, []);
|
|
9538
|
+
let c = n ?? Gb(t);
|
|
9539
|
+
return e.useEffect(() => {
|
|
9540
|
+
let e = s.current;
|
|
9541
|
+
if (!e) return;
|
|
9542
|
+
let n = !1, i = null, a = () => {
|
|
9543
|
+
if (!r) return;
|
|
9544
|
+
let t = e.play();
|
|
9545
|
+
t && typeof t.catch == "function" && t.catch(() => {});
|
|
9546
|
+
};
|
|
9547
|
+
return !c || e.canPlayType("application/vnd.apple.mpegurl") ? (e.src = t, a(), () => {
|
|
9548
|
+
n = !0;
|
|
9549
|
+
}) : (Wb().then((r) => {
|
|
9550
|
+
if (!(n || !e)) {
|
|
9551
|
+
if (!r.isSupported()) {
|
|
9552
|
+
e.src = t, a();
|
|
9553
|
+
return;
|
|
9554
|
+
}
|
|
9555
|
+
i = new r(), i.loadSource(t), i.attachMedia(e), a();
|
|
9556
|
+
}
|
|
9557
|
+
}).catch(() => {
|
|
9558
|
+
n || !e || (e.src = t, a());
|
|
9559
|
+
}), () => {
|
|
9560
|
+
n = !0, i?.destroy();
|
|
9561
|
+
});
|
|
9562
|
+
}, [
|
|
9563
|
+
t,
|
|
9564
|
+
c,
|
|
9565
|
+
r
|
|
9566
|
+
]), /* @__PURE__ */ l("video", {
|
|
9567
|
+
ref: s,
|
|
9568
|
+
autoPlay: r,
|
|
9569
|
+
className: W("block", i),
|
|
9570
|
+
...o
|
|
9571
|
+
});
|
|
9572
|
+
}
|
|
9573
|
+
function qb(e, t, n) {
|
|
9574
|
+
let r = `https://${e}.cloudflarestream.com/${t}/manifest/video.m3u8`;
|
|
9575
|
+
return n ? `${r}?clientBandwidthHint=${n}` : r;
|
|
9576
|
+
}
|
|
9577
|
+
function Jb(e, t) {
|
|
9578
|
+
return `https://${e}.cloudflarestream.com/${t}/downloads/default.mp4`;
|
|
9579
|
+
}
|
|
9580
|
+
//#endregion
|
|
9581
|
+
//#region src/components/Combobox.tsx
|
|
9582
|
+
var Yb = e.createContext(null);
|
|
9583
|
+
function Xb() {
|
|
9584
|
+
let t = e.useContext(Yb);
|
|
9528
9585
|
if (!t) throw Error("Combobox.* must be used within <Combobox>");
|
|
9529
9586
|
return t;
|
|
9530
9587
|
}
|
|
9531
|
-
function
|
|
9588
|
+
function Zb({ open: t, onOpenChange: n, value: r = "", onValueChange: i, children: a }) {
|
|
9532
9589
|
let [o, s] = e.useState(!1), [c, u] = e.useState(""), d = t ?? o, f = e.useCallback((e) => {
|
|
9533
9590
|
n?.(e), s(e), e || u("");
|
|
9534
9591
|
}, [n]), p = e.useCallback((e) => {
|
|
@@ -9547,7 +9604,7 @@ function Gb({ open: t, onOpenChange: n, value: r = "", onValueChange: i, childre
|
|
|
9547
9604
|
r,
|
|
9548
9605
|
p
|
|
9549
9606
|
]);
|
|
9550
|
-
return /* @__PURE__ */ l(
|
|
9607
|
+
return /* @__PURE__ */ l(Yb.Provider, {
|
|
9551
9608
|
value: m,
|
|
9552
9609
|
children: /* @__PURE__ */ l(ng, {
|
|
9553
9610
|
open: d,
|
|
@@ -9556,9 +9613,9 @@ function Gb({ open: t, onOpenChange: n, value: r = "", onValueChange: i, childre
|
|
|
9556
9613
|
})
|
|
9557
9614
|
});
|
|
9558
9615
|
}
|
|
9559
|
-
var
|
|
9560
|
-
function
|
|
9561
|
-
let { search: r, setSearch: i, setOpen: a } =
|
|
9616
|
+
var Qb = rg;
|
|
9617
|
+
function $b({ className: e, ref: t, ...n }) {
|
|
9618
|
+
let { search: r, setSearch: i, setOpen: a } = Xb();
|
|
9562
9619
|
return /* @__PURE__ */ l("input", {
|
|
9563
9620
|
ref: t,
|
|
9564
9621
|
type: "text",
|
|
@@ -9573,7 +9630,7 @@ function qb({ className: e, ref: t, ...n }) {
|
|
|
9573
9630
|
...n
|
|
9574
9631
|
});
|
|
9575
9632
|
}
|
|
9576
|
-
function
|
|
9633
|
+
function ex({ className: e, children: t, align: n = "start", sideOffset: r = 4, ref: i, ...a }) {
|
|
9577
9634
|
return /* @__PURE__ */ l(ig, { children: /* @__PURE__ */ l(ag, {
|
|
9578
9635
|
ref: i,
|
|
9579
9636
|
align: n,
|
|
@@ -9584,8 +9641,8 @@ function Jb({ className: e, children: t, align: n = "start", sideOffset: r = 4,
|
|
|
9584
9641
|
children: t
|
|
9585
9642
|
}) });
|
|
9586
9643
|
}
|
|
9587
|
-
function
|
|
9588
|
-
let { value: a, onValueChange: o } =
|
|
9644
|
+
function tx({ className: e, children: t, value: n, ref: r, ...i }) {
|
|
9645
|
+
let { value: a, onValueChange: o } = Xb(), s = a === n;
|
|
9589
9646
|
return /* @__PURE__ */ u("button", {
|
|
9590
9647
|
ref: r,
|
|
9591
9648
|
type: "button",
|
|
@@ -9612,7 +9669,7 @@ function Yb({ className: e, children: t, value: n, ref: r, ...i }) {
|
|
|
9612
9669
|
}), t]
|
|
9613
9670
|
});
|
|
9614
9671
|
}
|
|
9615
|
-
function
|
|
9672
|
+
function nx({ className: e, ref: t, ...n }) {
|
|
9616
9673
|
return /* @__PURE__ */ l("div", {
|
|
9617
9674
|
ref: t,
|
|
9618
9675
|
className: W("py-6 text-center text-sm text-text-tertiary", e),
|
|
@@ -9621,7 +9678,7 @@ function Xb({ className: e, ref: t, ...n }) {
|
|
|
9621
9678
|
}
|
|
9622
9679
|
//#endregion
|
|
9623
9680
|
//#region src/components/AnimatedCounter.tsx
|
|
9624
|
-
function
|
|
9681
|
+
function rx({ value: t, duration: n = 600, formatter: r = (e) => Math.round(e).toLocaleString(), className: i, ref: a, ...o }) {
|
|
9625
9682
|
let [s, c] = e.useState(t), u = e.useRef(t), d = e.useRef(0);
|
|
9626
9683
|
return e.useEffect(() => {
|
|
9627
9684
|
let e = u.current, r = t;
|
|
@@ -9644,7 +9701,7 @@ function Zb({ value: t, duration: n = 600, formatter: r = (e) => Math.round(e).t
|
|
|
9644
9701
|
}
|
|
9645
9702
|
//#endregion
|
|
9646
9703
|
//#region src/components/Nav.tsx
|
|
9647
|
-
function
|
|
9704
|
+
function ix({ className: e }) {
|
|
9648
9705
|
return /* @__PURE__ */ u("svg", {
|
|
9649
9706
|
className: e,
|
|
9650
9707
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9659,7 +9716,7 @@ function Qb({ className: e }) {
|
|
|
9659
9716
|
}), /* @__PURE__ */ l("path", { d: "M12 1v2m0 18v2M4.22 4.22l1.42 1.42m12.72 12.72l1.42 1.42M1 12h2m18 0h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" })]
|
|
9660
9717
|
});
|
|
9661
9718
|
}
|
|
9662
|
-
function
|
|
9719
|
+
function ax({ className: e }) {
|
|
9663
9720
|
return /* @__PURE__ */ l("svg", {
|
|
9664
9721
|
className: e,
|
|
9665
9722
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9670,7 +9727,7 @@ function $b({ className: e }) {
|
|
|
9670
9727
|
children: /* @__PURE__ */ l("path", { d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z" })
|
|
9671
9728
|
});
|
|
9672
9729
|
}
|
|
9673
|
-
function
|
|
9730
|
+
function ox({ open: e }) {
|
|
9674
9731
|
return /* @__PURE__ */ l("svg", {
|
|
9675
9732
|
width: "10",
|
|
9676
9733
|
height: "10",
|
|
@@ -9686,7 +9743,7 @@ function ex({ open: e }) {
|
|
|
9686
9743
|
})
|
|
9687
9744
|
});
|
|
9688
9745
|
}
|
|
9689
|
-
function
|
|
9746
|
+
function sx({ href: e, className: t, onClick: n, children: r, target: i, rel: a }) {
|
|
9690
9747
|
return /* @__PURE__ */ l("a", {
|
|
9691
9748
|
href: e,
|
|
9692
9749
|
className: t,
|
|
@@ -9696,7 +9753,7 @@ function tx({ href: e, className: t, onClick: n, children: r, target: i, rel: a
|
|
|
9696
9753
|
children: r
|
|
9697
9754
|
});
|
|
9698
9755
|
}
|
|
9699
|
-
function
|
|
9756
|
+
function cx({ items: e, open: t, align: n = "left", renderLink: r, onClose: i }) {
|
|
9700
9757
|
return /* @__PURE__ */ l("div", {
|
|
9701
9758
|
className: W("absolute top-[calc(100%+12px)] min-w-[260px] w-max bg-[var(--bg-card)] border border-[var(--border)] rounded-[14px] p-2 shadow-[0_8px_32px_rgba(0,0,0,0.2)] z-[120] transition-all duration-200 max-h-[70vh] overflow-y-auto", n === "left" ? "left-0" : "right-0", t ? "opacity-100 visible translate-y-0" : "opacity-0 invisible -translate-y-2"),
|
|
9702
9759
|
children: e.map((e, t) => /* @__PURE__ */ u("div", { children: [
|
|
@@ -9719,16 +9776,16 @@ function nx({ items: e, open: t, align: n = "left", renderLink: r, onClose: i })
|
|
|
9719
9776
|
] }, t))
|
|
9720
9777
|
});
|
|
9721
9778
|
}
|
|
9722
|
-
function
|
|
9779
|
+
function lx() {
|
|
9723
9780
|
let { theme: e, resolved: t, cycleTheme: n } = Et(), r = e !== "system", i = t === "light";
|
|
9724
9781
|
return /* @__PURE__ */ u("button", {
|
|
9725
9782
|
className: W("bg-transparent border border-[var(--border)] rounded-lg p-1.5 cursor-pointer text-[var(--text-secondary)] flex items-center justify-center w-[34px] h-[34px] transition-all duration-200 flex-shrink-0 relative overflow-hidden hover:text-[var(--text-primary)] hover:border-[var(--text-tertiary)]", r && "border-[var(--accent)] shadow-[0_0_10px_var(--accent-glow-strong),0_0_3px_var(--accent-glow)]"),
|
|
9726
9783
|
onClick: n,
|
|
9727
9784
|
"aria-label": "Toggle theme",
|
|
9728
|
-
children: [/* @__PURE__ */ l(
|
|
9785
|
+
children: [/* @__PURE__ */ l(ix, { className: W("w-[18px] h-[18px] absolute transition-all duration-250", i ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2") }), /* @__PURE__ */ l(ax, { className: W("w-[18px] h-[18px] absolute transition-all duration-250", i ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0") })]
|
|
9729
9786
|
});
|
|
9730
9787
|
}
|
|
9731
|
-
function
|
|
9788
|
+
function ux({ open: e, onClick: t }) {
|
|
9732
9789
|
return /* @__PURE__ */ u("button", {
|
|
9733
9790
|
className: "hidden max-lg:flex w-[34px] h-[34px] bg-transparent border border-[var(--border)] rounded-lg cursor-pointer relative z-[110] items-center justify-center transition-colors duration-200 hover:border-[var(--text-tertiary)]",
|
|
9734
9791
|
onClick: t,
|
|
@@ -9740,7 +9797,7 @@ function ix({ open: e, onClick: t }) {
|
|
|
9740
9797
|
]
|
|
9741
9798
|
});
|
|
9742
9799
|
}
|
|
9743
|
-
function
|
|
9800
|
+
function dx({ logo: e, items: t, actions: n = [], cta: i, renderLink: a = sx, showThemeToggle: d = !0, scrollThreshold: f = 20, skipToContentId: p = "main-content", mobileFooter: m, className: h, variant: g = "floating", logoClassName: _ }) {
|
|
9744
9801
|
let v = st(f), y = ot(1024), [b, x] = s(!1), [S, C] = s(null), w = o(/* @__PURE__ */ new Map());
|
|
9745
9802
|
r(() => {
|
|
9746
9803
|
function e(e) {
|
|
@@ -9794,7 +9851,7 @@ function ax({ logo: e, items: t, actions: n = [], cta: i, renderLink: a = tx, sh
|
|
|
9794
9851
|
children: e.light
|
|
9795
9852
|
})] })
|
|
9796
9853
|
}),
|
|
9797
|
-
/* @__PURE__ */ l(
|
|
9854
|
+
/* @__PURE__ */ l(ux, {
|
|
9798
9855
|
open: b,
|
|
9799
9856
|
onClick: () => x(!b)
|
|
9800
9857
|
}),
|
|
@@ -9812,8 +9869,8 @@ function ax({ logo: e, items: t, actions: n = [], cta: i, renderLink: a = tx, sh
|
|
|
9812
9869
|
e.stopPropagation(), D(t);
|
|
9813
9870
|
},
|
|
9814
9871
|
"aria-expanded": S === t,
|
|
9815
|
-
children: [e.label, /* @__PURE__ */ l(
|
|
9816
|
-
}), /* @__PURE__ */ l(
|
|
9872
|
+
children: [e.label, /* @__PURE__ */ l(ox, { open: S === t })]
|
|
9873
|
+
}), /* @__PURE__ */ l(cx, {
|
|
9817
9874
|
items: e.children,
|
|
9818
9875
|
open: S === t,
|
|
9819
9876
|
align: "left",
|
|
@@ -9839,7 +9896,7 @@ function ax({ logo: e, items: t, actions: n = [], cta: i, renderLink: a = tx, sh
|
|
|
9839
9896
|
"aria-label": e.label,
|
|
9840
9897
|
"aria-expanded": S === t,
|
|
9841
9898
|
children: [e.icon, e.label]
|
|
9842
|
-
}), /* @__PURE__ */ l(
|
|
9899
|
+
}), /* @__PURE__ */ l(cx, {
|
|
9843
9900
|
items: e.children,
|
|
9844
9901
|
open: S === t,
|
|
9845
9902
|
align: "right",
|
|
@@ -9855,7 +9912,7 @@ function ax({ logo: e, items: t, actions: n = [], cta: i, renderLink: a = tx, sh
|
|
|
9855
9912
|
children: [e.icon, e.label]
|
|
9856
9913
|
}) }, t);
|
|
9857
9914
|
}),
|
|
9858
|
-
d && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
|
|
9915
|
+
d && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(lx, {}) }),
|
|
9859
9916
|
i && /* @__PURE__ */ l("li", { children: a({
|
|
9860
9917
|
href: i.href,
|
|
9861
9918
|
className: "px-5 py-2 rounded-full bg-[var(--accent)] text-white font-semibold text-sm transition-all hover:bg-[var(--accent-light)] hover:shadow-[0_0_20px_var(--accent-glow-strong)]",
|
|
@@ -9935,7 +9992,7 @@ function ax({ logo: e, items: t, actions: n = [], cta: i, renderLink: a = tx, sh
|
|
|
9935
9992
|
})] }),
|
|
9936
9993
|
/* @__PURE__ */ u("div", {
|
|
9937
9994
|
className: "mt-auto pt-6 border-t border-[var(--border-subtle)] flex items-center justify-between",
|
|
9938
|
-
children: [m ?? /* @__PURE__ */ l("span", {}), d && /* @__PURE__ */ l(
|
|
9995
|
+
children: [m ?? /* @__PURE__ */ l("span", {}), d && /* @__PURE__ */ l(lx, {})]
|
|
9939
9996
|
})
|
|
9940
9997
|
]
|
|
9941
9998
|
})
|
|
@@ -9943,17 +10000,17 @@ function ax({ logo: e, items: t, actions: n = [], cta: i, renderLink: a = tx, sh
|
|
|
9943
10000
|
}
|
|
9944
10001
|
//#endregion
|
|
9945
10002
|
//#region src/components/MetaHead.tsx
|
|
9946
|
-
var
|
|
10003
|
+
var fx = "data-meta-head";
|
|
9947
10004
|
function $(e, t, n) {
|
|
9948
|
-
let r = Object.entries(t).filter(([e]) => e !== "content" && e !== "href").map(([t, n]) => `${e}[${t}="${n}"]`).join(""), i = document.head.querySelector(`${r}[${
|
|
9949
|
-
i ? (t.content !== void 0 && i.setAttribute("content", t.content), t.href !== void 0 && i.setAttribute("href", t.href)) : (i = document.createElement(e), Object.entries(t).forEach(([e, t]) => i.setAttribute(e, t)), i.setAttribute(
|
|
10005
|
+
let r = Object.entries(t).filter(([e]) => e !== "content" && e !== "href").map(([t, n]) => `${e}[${t}="${n}"]`).join(""), i = document.head.querySelector(`${r}[${fx}]`);
|
|
10006
|
+
i ? (t.content !== void 0 && i.setAttribute("content", t.content), t.href !== void 0 && i.setAttribute("href", t.href)) : (i = document.createElement(e), Object.entries(t).forEach(([e, t]) => i.setAttribute(e, t)), i.setAttribute(fx, ""), document.head.appendChild(i)), n.add(i);
|
|
9950
10007
|
}
|
|
9951
|
-
function
|
|
9952
|
-
document.head.querySelectorAll(`[${
|
|
10008
|
+
function px(e) {
|
|
10009
|
+
document.head.querySelectorAll(`[${fx}]`).forEach((t) => {
|
|
9953
10010
|
e.has(t) || t.remove();
|
|
9954
10011
|
});
|
|
9955
10012
|
}
|
|
9956
|
-
function
|
|
10013
|
+
function mx({ title: e, titleTemplate: t, description: n, url: i, image: a, imageAlt: s, imageWidth: c, imageHeight: l, type: u = "website", siteName: d, locale: f, twitterCard: p = "summary_large_image", twitterSite: m, twitterCreator: h, noindex: g, nofollow: _ }) {
|
|
9957
10014
|
let v = o(void 0);
|
|
9958
10015
|
return r(() => {
|
|
9959
10016
|
let r = /* @__PURE__ */ new Set();
|
|
@@ -10023,7 +10080,7 @@ function cx({ title: e, titleTemplate: t, description: n, url: i, image: a, imag
|
|
|
10023
10080
|
return g && o.push("noindex"), _ && o.push("nofollow"), o.length > 0 && $("meta", {
|
|
10024
10081
|
name: "robots",
|
|
10025
10082
|
content: o.join(", ")
|
|
10026
|
-
}, r),
|
|
10083
|
+
}, r), px(r), () => {
|
|
10027
10084
|
v.current !== void 0 && (document.title = v.current), r.forEach((e) => e.remove());
|
|
10028
10085
|
};
|
|
10029
10086
|
}, [
|
|
@@ -10047,8 +10104,8 @@ function cx({ title: e, titleTemplate: t, description: n, url: i, image: a, imag
|
|
|
10047
10104
|
}
|
|
10048
10105
|
//#endregion
|
|
10049
10106
|
//#region src/components/StructuredData.tsx
|
|
10050
|
-
var
|
|
10051
|
-
function
|
|
10107
|
+
var hx = "data-structured-data";
|
|
10108
|
+
function gx({ data: e, context: t = "https://schema.org" }) {
|
|
10052
10109
|
let n = o(null);
|
|
10053
10110
|
return r(() => {
|
|
10054
10111
|
let r = JSON.stringify({
|
|
@@ -10058,7 +10115,7 @@ function ux({ data: e, context: t = "https://schema.org" }) {
|
|
|
10058
10115
|
if (n.current) n.current.textContent = r;
|
|
10059
10116
|
else {
|
|
10060
10117
|
let e = document.createElement("script");
|
|
10061
|
-
e.type = "application/ld+json", e.setAttribute(
|
|
10118
|
+
e.type = "application/ld+json", e.setAttribute(hx, ""), e.textContent = r, document.head.appendChild(e), n.current = e;
|
|
10062
10119
|
}
|
|
10063
10120
|
return () => {
|
|
10064
10121
|
n.current &&= (n.current.remove(), null);
|
|
@@ -10067,7 +10124,7 @@ function ux({ data: e, context: t = "https://schema.org" }) {
|
|
|
10067
10124
|
}
|
|
10068
10125
|
//#endregion
|
|
10069
10126
|
//#region src/components/Breadcrumb.tsx
|
|
10070
|
-
function
|
|
10127
|
+
function _x() {
|
|
10071
10128
|
return /* @__PURE__ */ l("svg", {
|
|
10072
10129
|
width: "16",
|
|
10073
10130
|
height: "16",
|
|
@@ -10084,15 +10141,15 @@ function dx() {
|
|
|
10084
10141
|
})
|
|
10085
10142
|
});
|
|
10086
10143
|
}
|
|
10087
|
-
function
|
|
10144
|
+
function vx({ href: e, className: t, children: n }) {
|
|
10088
10145
|
return /* @__PURE__ */ l("a", {
|
|
10089
10146
|
href: e,
|
|
10090
10147
|
className: t,
|
|
10091
10148
|
children: n
|
|
10092
10149
|
});
|
|
10093
10150
|
}
|
|
10094
|
-
function
|
|
10095
|
-
let s = t ?? /* @__PURE__ */ l(
|
|
10151
|
+
function yx({ items: e, separator: t, renderLink: n = vx, structuredData: r = !0, className: i, ref: a, ...o }) {
|
|
10152
|
+
let s = t ?? /* @__PURE__ */ l(_x, {});
|
|
10096
10153
|
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("nav", {
|
|
10097
10154
|
ref: a,
|
|
10098
10155
|
"aria-label": "Breadcrumb",
|
|
@@ -10120,7 +10177,7 @@ function px({ items: e, separator: t, renderLink: n = fx, structuredData: r = !0
|
|
|
10120
10177
|
}, r);
|
|
10121
10178
|
})
|
|
10122
10179
|
})
|
|
10123
|
-
}), r && e.length > 0 && /* @__PURE__ */ l(
|
|
10180
|
+
}), r && e.length > 0 && /* @__PURE__ */ l(gx, { data: {
|
|
10124
10181
|
"@type": "BreadcrumbList",
|
|
10125
10182
|
itemListElement: e.map((e, t) => ({
|
|
10126
10183
|
"@type": "ListItem",
|
|
@@ -10132,7 +10189,7 @@ function px({ items: e, separator: t, renderLink: n = fx, structuredData: r = !0
|
|
|
10132
10189
|
}
|
|
10133
10190
|
//#endregion
|
|
10134
10191
|
//#region src/components/Sidebar.tsx
|
|
10135
|
-
function
|
|
10192
|
+
function bx({ href: e, className: t, onClick: n, children: r }) {
|
|
10136
10193
|
return /* @__PURE__ */ l("a", {
|
|
10137
10194
|
href: e,
|
|
10138
10195
|
className: t,
|
|
@@ -10140,11 +10197,11 @@ function mx({ href: e, className: t, onClick: n, children: r }) {
|
|
|
10140
10197
|
children: r
|
|
10141
10198
|
});
|
|
10142
10199
|
}
|
|
10143
|
-
var
|
|
10144
|
-
function
|
|
10145
|
-
return e.useContext(
|
|
10200
|
+
var xx = e.createContext({ renderLink: bx });
|
|
10201
|
+
function Sx() {
|
|
10202
|
+
return e.useContext(xx);
|
|
10146
10203
|
}
|
|
10147
|
-
function
|
|
10204
|
+
function Cx({ className: t, children: n, renderLink: r = bx, width: i, resizable: a = !1, minWidth: o = 200, maxWidth: s = 480, onWidthChange: c, style: d, ref: f, ...p }) {
|
|
10148
10205
|
let m = e.useRef(null), h = f ?? m, [g, _] = e.useState(null), [v, y] = e.useState(!1);
|
|
10149
10206
|
e.useEffect(() => {
|
|
10150
10207
|
if (!v) return;
|
|
@@ -10167,7 +10224,7 @@ function _x({ className: t, children: n, renderLink: r = mx, width: i, resizable
|
|
|
10167
10224
|
i != null && _(null);
|
|
10168
10225
|
}, [i]);
|
|
10169
10226
|
let b = g == null ? i ?? "18rem" : `${g}px`;
|
|
10170
|
-
return /* @__PURE__ */ l(
|
|
10227
|
+
return /* @__PURE__ */ l(xx.Provider, {
|
|
10171
10228
|
value: { renderLink: r },
|
|
10172
10229
|
children: /* @__PURE__ */ u("aside", {
|
|
10173
10230
|
ref: h,
|
|
@@ -10188,28 +10245,28 @@ function _x({ className: t, children: n, renderLink: r = mx, width: i, resizable
|
|
|
10188
10245
|
})
|
|
10189
10246
|
});
|
|
10190
10247
|
}
|
|
10191
|
-
function
|
|
10248
|
+
function wx({ className: e, ref: t, ...n }) {
|
|
10192
10249
|
return /* @__PURE__ */ l("div", {
|
|
10193
10250
|
ref: t,
|
|
10194
10251
|
className: W("flex h-16 shrink-0 items-center px-6", e),
|
|
10195
10252
|
...n
|
|
10196
10253
|
});
|
|
10197
10254
|
}
|
|
10198
|
-
function
|
|
10255
|
+
function Tx({ className: e, ref: t, ...n }) {
|
|
10199
10256
|
return /* @__PURE__ */ l("div", {
|
|
10200
10257
|
ref: t,
|
|
10201
10258
|
className: W("flex flex-1 flex-col gap-y-6 overflow-y-auto px-4", e),
|
|
10202
10259
|
...n
|
|
10203
10260
|
});
|
|
10204
10261
|
}
|
|
10205
|
-
function
|
|
10262
|
+
function Ex({ className: e, ref: t, ...n }) {
|
|
10206
10263
|
return /* @__PURE__ */ l("div", {
|
|
10207
10264
|
ref: t,
|
|
10208
10265
|
className: W("mt-auto px-4 pb-4", e),
|
|
10209
10266
|
...n
|
|
10210
10267
|
});
|
|
10211
10268
|
}
|
|
10212
|
-
function
|
|
10269
|
+
function Dx({ className: e, label: t, children: n, ref: r, ...i }) {
|
|
10213
10270
|
return /* @__PURE__ */ u("div", {
|
|
10214
10271
|
ref: r,
|
|
10215
10272
|
className: W("space-y-1", e),
|
|
@@ -10223,8 +10280,8 @@ function xx({ className: e, label: t, children: n, ref: r, ...i }) {
|
|
|
10223
10280
|
})]
|
|
10224
10281
|
});
|
|
10225
10282
|
}
|
|
10226
|
-
function
|
|
10227
|
-
let { renderLink: s } =
|
|
10283
|
+
function Ox({ className: e, href: t, icon: n, active: r, children: i, ref: a, ...o }) {
|
|
10284
|
+
let { renderLink: s } = Sx();
|
|
10228
10285
|
return /* @__PURE__ */ l("li", {
|
|
10229
10286
|
ref: a,
|
|
10230
10287
|
className: e,
|
|
@@ -10241,7 +10298,7 @@ function Sx({ className: e, href: t, icon: n, active: r, children: i, ref: a, ..
|
|
|
10241
10298
|
}
|
|
10242
10299
|
//#endregion
|
|
10243
10300
|
//#region src/components/PageHeader.tsx
|
|
10244
|
-
function
|
|
10301
|
+
function kx({ className: e, title: t, description: n, action: r, ref: i, ...a }) {
|
|
10245
10302
|
return /* @__PURE__ */ u("div", {
|
|
10246
10303
|
ref: i,
|
|
10247
10304
|
className: W("sm:flex sm:items-center sm:justify-between", e),
|
|
@@ -10260,7 +10317,7 @@ function Cx({ className: e, title: t, description: n, action: r, ref: i, ...a })
|
|
|
10260
10317
|
}
|
|
10261
10318
|
//#endregion
|
|
10262
10319
|
//#region src/components/EmptyState.tsx
|
|
10263
|
-
function
|
|
10320
|
+
function Ax({ className: e, icon: t, title: n, description: r, action: i, ref: a, ...o }) {
|
|
10264
10321
|
return /* @__PURE__ */ u("div", {
|
|
10265
10322
|
ref: a,
|
|
10266
10323
|
className: W("text-center py-12", e),
|
|
@@ -10287,7 +10344,7 @@ function wx({ className: e, icon: t, title: n, description: r, action: i, ref: a
|
|
|
10287
10344
|
}
|
|
10288
10345
|
//#endregion
|
|
10289
10346
|
//#region src/components/Pagination.tsx
|
|
10290
|
-
function
|
|
10347
|
+
function jx({ className: e, page: t, pageSize: n, totalItems: r, totalPages: i, onPageChange: a, ref: o, ...s }) {
|
|
10291
10348
|
if (i <= 1) return null;
|
|
10292
10349
|
let c = (t - 1) * n + 1, d = Math.min(t * n, r);
|
|
10293
10350
|
return /* @__PURE__ */ u("div", {
|
|
@@ -10325,7 +10382,7 @@ function Tx({ className: e, page: t, pageSize: n, totalItems: r, totalPages: i,
|
|
|
10325
10382
|
}
|
|
10326
10383
|
//#endregion
|
|
10327
10384
|
//#region src/components/StatCard.tsx
|
|
10328
|
-
var
|
|
10385
|
+
var Mx = {
|
|
10329
10386
|
accent: {
|
|
10330
10387
|
bg: "bg-accent/10",
|
|
10331
10388
|
text: "text-accent",
|
|
@@ -10352,8 +10409,8 @@ var Ex = {
|
|
|
10352
10409
|
icon: "text-text-secondary"
|
|
10353
10410
|
}
|
|
10354
10411
|
};
|
|
10355
|
-
function
|
|
10356
|
-
let c =
|
|
10412
|
+
function Nx({ className: e, icon: t, label: n, value: r, loading: i = !1, color: a = "default", ref: o, ...s }) {
|
|
10413
|
+
let c = Mx[a];
|
|
10357
10414
|
return /* @__PURE__ */ l(Gt, {
|
|
10358
10415
|
ref: o,
|
|
10359
10416
|
className: e,
|
|
@@ -10387,13 +10444,13 @@ function Dx({ className: e, icon: t, label: n, value: r, loading: i = !1, color:
|
|
|
10387
10444
|
}
|
|
10388
10445
|
//#endregion
|
|
10389
10446
|
//#region src/components/AppShell.tsx
|
|
10390
|
-
var
|
|
10391
|
-
function
|
|
10392
|
-
let t = e.useContext(
|
|
10447
|
+
var Px = e.createContext(null);
|
|
10448
|
+
function Fx() {
|
|
10449
|
+
let t = e.useContext(Px);
|
|
10393
10450
|
if (!t) throw Error("useAppShell must be used within <AppShell>");
|
|
10394
10451
|
return t;
|
|
10395
10452
|
}
|
|
10396
|
-
function
|
|
10453
|
+
function Ix({ className: t, children: n, defaultCollapsed: r = !1, sidebarVariant: i = "overlay", sidebarWidth: a = "18rem", sidebarCollapsedWidth: o = "4rem", breakpoint: s = 1024, ref: c, ...u }) {
|
|
10397
10454
|
let [d, f] = e.useState(r), [p, m] = e.useState(!1), [h, g] = e.useState(!1), _ = ot(s);
|
|
10398
10455
|
e.useEffect(() => {
|
|
10399
10456
|
_ || m(!1);
|
|
@@ -10419,7 +10476,7 @@ function Ax({ className: t, children: n, defaultCollapsed: r = !1, sidebarVarian
|
|
|
10419
10476
|
h,
|
|
10420
10477
|
v
|
|
10421
10478
|
]);
|
|
10422
|
-
return /* @__PURE__ */ l(
|
|
10479
|
+
return /* @__PURE__ */ l(Px.Provider, {
|
|
10423
10480
|
value: y,
|
|
10424
10481
|
children: /* @__PURE__ */ l("div", {
|
|
10425
10482
|
ref: c,
|
|
@@ -10429,8 +10486,8 @@ function Ax({ className: t, children: n, defaultCollapsed: r = !1, sidebarVarian
|
|
|
10429
10486
|
})
|
|
10430
10487
|
});
|
|
10431
10488
|
}
|
|
10432
|
-
function
|
|
10433
|
-
let { collapsed: a, isMobile: o, mobileOpen: s, setMobileOpen: d, sidebarVariant: f, sidebarWidth: p, sidebarCollapsedWidth: m, registerSidebar: h } =
|
|
10489
|
+
function Lx({ className: t, children: n, ref: r, ...i }) {
|
|
10490
|
+
let { collapsed: a, isMobile: o, mobileOpen: s, setMobileOpen: d, sidebarVariant: f, sidebarWidth: p, sidebarCollapsedWidth: m, registerSidebar: h } = Fx();
|
|
10434
10491
|
if (e.useEffect(() => h(), [h]), e.useEffect(() => {
|
|
10435
10492
|
if (!s) return;
|
|
10436
10493
|
let e = (e) => {
|
|
@@ -10467,7 +10524,7 @@ function jx({ className: t, children: n, ref: r, ...i }) {
|
|
|
10467
10524
|
children: n
|
|
10468
10525
|
});
|
|
10469
10526
|
}
|
|
10470
|
-
function
|
|
10527
|
+
function Rx({ className: e, children: t, ref: n, ...r }) {
|
|
10471
10528
|
return /* @__PURE__ */ l("header", {
|
|
10472
10529
|
ref: n,
|
|
10473
10530
|
"data-appshell-nav": "",
|
|
@@ -10476,8 +10533,8 @@ function Mx({ className: e, children: t, ref: n, ...r }) {
|
|
|
10476
10533
|
children: t
|
|
10477
10534
|
});
|
|
10478
10535
|
}
|
|
10479
|
-
function
|
|
10480
|
-
let a = e.useContext(
|
|
10536
|
+
function zx({ className: t, children: n, ref: r, ...i }) {
|
|
10537
|
+
let a = e.useContext(Px), o;
|
|
10481
10538
|
return a?.hasSidebar && (a.isMobile ? a.sidebarVariant === "rail" && (o = a.sidebarCollapsedWidth) : o = a.collapsed ? a.sidebarCollapsedWidth : a.sidebarWidth), /* @__PURE__ */ l("main", {
|
|
10482
10539
|
ref: r,
|
|
10483
10540
|
"data-appshell-main": "",
|
|
@@ -10487,7 +10544,7 @@ function Nx({ className: t, children: n, ref: r, ...i }) {
|
|
|
10487
10544
|
children: n
|
|
10488
10545
|
});
|
|
10489
10546
|
}
|
|
10490
|
-
function
|
|
10547
|
+
function Bx({ className: e, children: t, ref: n, ...r }) {
|
|
10491
10548
|
return /* @__PURE__ */ l("footer", {
|
|
10492
10549
|
ref: n,
|
|
10493
10550
|
"data-appshell-footer": "",
|
|
@@ -10498,17 +10555,17 @@ function Px({ className: e, children: t, ref: n, ...r }) {
|
|
|
10498
10555
|
}
|
|
10499
10556
|
//#endregion
|
|
10500
10557
|
//#region src/hooks/use-column-resize.ts
|
|
10501
|
-
var
|
|
10502
|
-
function
|
|
10558
|
+
var Vx = 60;
|
|
10559
|
+
function Hx(e) {
|
|
10503
10560
|
if (e == null) return null;
|
|
10504
10561
|
let t = e.match(/^(\d+(?:\.\d+)?)px$/);
|
|
10505
10562
|
return t?.[1] == null ? null : parseFloat(t[1]);
|
|
10506
10563
|
}
|
|
10507
|
-
function
|
|
10564
|
+
function Ux({ columns: t, hasSelectionColumn: n, onColumnResize: r, tableRef: i }) {
|
|
10508
10565
|
let [a, o] = e.useState(() => {
|
|
10509
10566
|
let e = /* @__PURE__ */ new Map();
|
|
10510
10567
|
for (let n of t) {
|
|
10511
|
-
let t =
|
|
10568
|
+
let t = Hx(n.width);
|
|
10512
10569
|
t != null && e.set(n.id, t);
|
|
10513
10570
|
}
|
|
10514
10571
|
return e;
|
|
@@ -10540,7 +10597,7 @@ function Lx({ columns: t, hasSelectionColumn: n, onColumnResize: r, tableRef: i
|
|
|
10540
10597
|
columnId: e,
|
|
10541
10598
|
startX: n.clientX,
|
|
10542
10599
|
startWidth: i,
|
|
10543
|
-
minWidth: r.minWidth ??
|
|
10600
|
+
minWidth: r.minWidth ?? Vx,
|
|
10544
10601
|
maxWidth: r.maxWidth ?? Infinity
|
|
10545
10602
|
}, u(e), c(!0));
|
|
10546
10603
|
}, [t, a]);
|
|
@@ -10579,7 +10636,7 @@ function Lx({ columns: t, hasSelectionColumn: n, onColumnResize: r, tableRef: i
|
|
|
10579
10636
|
}
|
|
10580
10637
|
//#endregion
|
|
10581
10638
|
//#region src/components/DataTable.tsx
|
|
10582
|
-
function
|
|
10639
|
+
function Wx({ filled: e, className: t }) {
|
|
10583
10640
|
return /* @__PURE__ */ l("svg", {
|
|
10584
10641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10585
10642
|
viewBox: "0 0 16 16",
|
|
@@ -10600,7 +10657,7 @@ function Rx({ filled: e, className: t }) {
|
|
|
10600
10657
|
})
|
|
10601
10658
|
});
|
|
10602
10659
|
}
|
|
10603
|
-
function
|
|
10660
|
+
function Gx({ column: t, data: n, value: r, onChange: i, onClear: a, onToggle: o }) {
|
|
10604
10661
|
let [s, c] = e.useState(!1), d = e.useMemo(() => {
|
|
10605
10662
|
if (t.filterOptions) return t.filterOptions;
|
|
10606
10663
|
if (!t.accessorKey) return null;
|
|
@@ -10629,7 +10686,7 @@ function zx({ column: t, data: n, value: r, onChange: i, onClear: a, onToggle: o
|
|
|
10629
10686
|
},
|
|
10630
10687
|
className: W("ml-1 inline-flex items-center justify-center rounded p-0.5", "hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent", p ? "text-accent" : "text-text-secondary"),
|
|
10631
10688
|
"aria-label": `Filter ${typeof t.header == "string" ? t.header : t.id}`,
|
|
10632
|
-
children: /* @__PURE__ */ l(
|
|
10689
|
+
children: /* @__PURE__ */ l(Wx, { filled: p })
|
|
10633
10690
|
})
|
|
10634
10691
|
}), /* @__PURE__ */ u(cg, {
|
|
10635
10692
|
align: "start",
|
|
@@ -10666,24 +10723,24 @@ function zx({ column: t, data: n, value: r, onChange: i, onClear: a, onToggle: o
|
|
|
10666
10723
|
})]
|
|
10667
10724
|
});
|
|
10668
10725
|
}
|
|
10669
|
-
function
|
|
10726
|
+
function Kx({ children: e, className: t, ...n }) {
|
|
10670
10727
|
return /* @__PURE__ */ l("div", {
|
|
10671
10728
|
className: W("flex items-center gap-2", t),
|
|
10672
10729
|
...n,
|
|
10673
10730
|
children: e
|
|
10674
10731
|
});
|
|
10675
10732
|
}
|
|
10676
|
-
|
|
10677
|
-
function
|
|
10733
|
+
Kx.displayName = "DataTableToolbar";
|
|
10734
|
+
function qx({ children: e, className: t, ...n }) {
|
|
10678
10735
|
return /* @__PURE__ */ l("div", {
|
|
10679
10736
|
className: t,
|
|
10680
10737
|
...n,
|
|
10681
10738
|
children: e
|
|
10682
10739
|
});
|
|
10683
10740
|
}
|
|
10684
|
-
|
|
10685
|
-
function
|
|
10686
|
-
let [w, T] = e.useState(s ?? null), [E, D] = e.useState(""), [O, k] = e.useState({}), [A, j] = e.useState(1), [M, N] = e.useState(/* @__PURE__ */ new Set()), P = e.useMemo(() => t.filter((e) => !e.hidden), [t]), F = e.useRef(null), I = P.some((e) => e.resizable), { columnWidths: ee, resizingColumnId: te, startResize: ne } =
|
|
10741
|
+
qx.displayName = "DataTableEmpty";
|
|
10742
|
+
function Jx({ columns: t, data: n, children: r, loading: i, totalRows: a, onStateChange: o, defaultSort: s, manualSorting: c = !1, globalFilter: d = !1, manualFiltering: f = !1, pageSize: p = 20, manualPagination: m = !1, onRowClick: h, renderRowLink: g, rowClassName: _, getRowId: v, selectable: y = !1, onSelectionChange: b, onColumnResize: x, className: S, ref: C }) {
|
|
10743
|
+
let [w, T] = e.useState(s ?? null), [E, D] = e.useState(""), [O, k] = e.useState({}), [A, j] = e.useState(1), [M, N] = e.useState(/* @__PURE__ */ new Set()), P = e.useMemo(() => t.filter((e) => !e.hidden), [t]), F = e.useRef(null), I = P.some((e) => e.resizable), { columnWidths: ee, resizingColumnId: te, startResize: ne } = Ux({
|
|
10687
10744
|
columns: P,
|
|
10688
10745
|
hasSelectionColumn: y,
|
|
10689
10746
|
onColumnResize: x,
|
|
@@ -10864,7 +10921,7 @@ function Hx({ columns: t, data: n, children: r, loading: i, totalRows: a, onStat
|
|
|
10864
10921
|
className: "ml-1",
|
|
10865
10922
|
children: ge(e.id)
|
|
10866
10923
|
}),
|
|
10867
|
-
e.filterable && /* @__PURE__ */ l(
|
|
10924
|
+
e.filterable && /* @__PURE__ */ l(Gx, {
|
|
10868
10925
|
column: e,
|
|
10869
10926
|
data: n,
|
|
10870
10927
|
value: O[e.id],
|
|
@@ -10885,7 +10942,7 @@ function Hx({ columns: t, data: n, children: r, loading: i, totalRows: a, onStat
|
|
|
10885
10942
|
/* @__PURE__ */ l(My, { children: _e ? /* @__PURE__ */ l(Py, { children: /* @__PURE__ */ l(Iy, {
|
|
10886
10943
|
colSpan: P.length + +!!y,
|
|
10887
10944
|
className: "h-24",
|
|
10888
|
-
children: V ?? /* @__PURE__ */ l(
|
|
10945
|
+
children: V ?? /* @__PURE__ */ l(Ax, { title: "No results" })
|
|
10889
10946
|
}) }) : le.map((e, t) => {
|
|
10890
10947
|
let n = m ? t : (A - 1) * p + t, r = g?.(e), i = y && /* @__PURE__ */ l(Iy, {
|
|
10891
10948
|
className: "w-10",
|
|
@@ -10912,7 +10969,7 @@ function Hx({ columns: t, data: n, children: r, loading: i, totalRows: a, onStat
|
|
|
10912
10969
|
}) })
|
|
10913
10970
|
]
|
|
10914
10971
|
}),
|
|
10915
|
-
p > 0 && ce > 1 && /* @__PURE__ */ l(
|
|
10972
|
+
p > 0 && ce > 1 && /* @__PURE__ */ l(jx, {
|
|
10916
10973
|
page: A,
|
|
10917
10974
|
pageSize: p,
|
|
10918
10975
|
totalItems: se,
|
|
@@ -10924,7 +10981,7 @@ function Hx({ columns: t, data: n, children: r, loading: i, totalRows: a, onStat
|
|
|
10924
10981
|
}
|
|
10925
10982
|
//#endregion
|
|
10926
10983
|
//#region src/components/Timeline.tsx
|
|
10927
|
-
function
|
|
10984
|
+
function Yx({ className: e, children: t, ref: n, ...r }) {
|
|
10928
10985
|
return /* @__PURE__ */ l("div", {
|
|
10929
10986
|
ref: n,
|
|
10930
10987
|
className: W("relative space-y-0", e),
|
|
@@ -10932,20 +10989,20 @@ function Ux({ className: e, children: t, ref: n, ...r }) {
|
|
|
10932
10989
|
children: t
|
|
10933
10990
|
});
|
|
10934
10991
|
}
|
|
10935
|
-
var
|
|
10992
|
+
var Xx = e.createContext({
|
|
10936
10993
|
expanded: !1,
|
|
10937
10994
|
setExpanded: () => {},
|
|
10938
10995
|
expandable: !1
|
|
10939
|
-
}),
|
|
10996
|
+
}), Zx = {
|
|
10940
10997
|
default: "border-border bg-bg-elevated",
|
|
10941
10998
|
success: "border-green bg-green text-white",
|
|
10942
10999
|
danger: "border-red bg-red text-white",
|
|
10943
11000
|
warning: "border-orange bg-orange text-white",
|
|
10944
11001
|
info: "border-accent bg-accent text-white"
|
|
10945
11002
|
};
|
|
10946
|
-
function
|
|
11003
|
+
function Qx({ className: t, children: n, icon: r, variant: i = "default", timestamp: a, expandable: o = !1, defaultExpanded: s = !1, ref: c, ...d }) {
|
|
10947
11004
|
let [f, p] = e.useState(s);
|
|
10948
|
-
return /* @__PURE__ */ l(
|
|
11005
|
+
return /* @__PURE__ */ l(Xx.Provider, {
|
|
10949
11006
|
value: {
|
|
10950
11007
|
expanded: f,
|
|
10951
11008
|
setExpanded: p,
|
|
@@ -10959,7 +11016,7 @@ function Kx({ className: t, children: n, icon: r, variant: i = "default", timest
|
|
|
10959
11016
|
/* @__PURE__ */ l("div", { className: "absolute left-[0.6875rem] top-6 bottom-0 w-px bg-border last-of-type:hidden" }),
|
|
10960
11017
|
/* @__PURE__ */ l("div", {
|
|
10961
11018
|
"data-timeline-marker": "",
|
|
10962
|
-
className: W("relative z-10 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border-2",
|
|
11019
|
+
className: W("relative z-10 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border-2", Zx[i]),
|
|
10963
11020
|
children: r && /* @__PURE__ */ l("span", {
|
|
10964
11021
|
className: "h-3.5 w-3.5 [&>svg]:h-3.5 [&>svg]:w-3.5",
|
|
10965
11022
|
children: r
|
|
@@ -10976,8 +11033,8 @@ function Kx({ className: t, children: n, icon: r, variant: i = "default", timest
|
|
|
10976
11033
|
})
|
|
10977
11034
|
});
|
|
10978
11035
|
}
|
|
10979
|
-
function
|
|
10980
|
-
let { expanded: p, setExpanded: m, expandable: h } = e.useContext(
|
|
11036
|
+
function $x({ className: t, title: n, description: r, detail: i, actions: a, onClick: o, renderLink: s, ref: d, ...f }) {
|
|
11037
|
+
let { expanded: p, setExpanded: m, expandable: h } = e.useContext(Xx), g = /* @__PURE__ */ l("span", {
|
|
10981
11038
|
className: W("text-sm font-medium text-text-primary", o && "cursor-pointer hover:underline"),
|
|
10982
11039
|
onClick: o,
|
|
10983
11040
|
children: n
|
|
@@ -11010,7 +11067,7 @@ function qx({ className: t, title: n, description: r, detail: i, actions: a, onC
|
|
|
11010
11067
|
})] })]
|
|
11011
11068
|
});
|
|
11012
11069
|
}
|
|
11013
|
-
function
|
|
11070
|
+
function eS({ className: e, filters: t, value: n, onChange: r, ref: i, ...a }) {
|
|
11014
11071
|
let o = (e) => {
|
|
11015
11072
|
n.includes(e) ? r(n.filter((t) => t !== e)) : r([...n, e]);
|
|
11016
11073
|
};
|
|
@@ -11027,4 +11084,4 @@ function Jx({ className: e, filters: t, value: n, onChange: r, ref: i, ...a }) {
|
|
|
11027
11084
|
});
|
|
11028
11085
|
}
|
|
11029
11086
|
//#endregion
|
|
11030
|
-
export { Vr as Accordion, Wr as AccordionContent, Hr as AccordionItem, Ur as AccordionTrigger, cn as Alert, un as AlertDescription, Ps as AlertDialog, Us as AlertDialogAction, Ws as AlertDialogCancel, Rs as AlertDialogContent, Hs as AlertDialogDescription, Bs as AlertDialogFooter, zs as AlertDialogHeader, Ls as AlertDialogOverlay, Is as AlertDialogPortal, Vs as AlertDialogTitle, Fs as AlertDialogTrigger, ln as AlertTitle,
|
|
11087
|
+
export { Vr as Accordion, Wr as AccordionContent, Hr as AccordionItem, Ur as AccordionTrigger, cn as Alert, un as AlertDescription, Ps as AlertDialog, Us as AlertDialogAction, Ws as AlertDialogCancel, Rs as AlertDialogContent, Hs as AlertDialogDescription, Bs as AlertDialogFooter, zs as AlertDialogHeader, Ls as AlertDialogOverlay, Is as AlertDialogPortal, Vs as AlertDialogTitle, Fs as AlertDialogTrigger, ln as AlertTitle, rx as AnimatedCounter, Ix as AppShell, Bx as AppShellFooter, zx as AppShellMain, Rx as AppShellNav, Lx as AppShellSidebar, on as Badge, yx as Breadcrumb, Wt as Button, Gt as Card, Yt as CardContent, Jt as CardDescription, Xt as CardFooter, Kt as CardHeader, qt as CardTitle, Op as Checkbox, Hb as CodeBlock, Zb as Combobox, ex as ComboboxContent, nx as ComboboxEmpty, $b as ComboboxInput, tx as ComboboxItem, Qb as ComboboxTrigger, Jx as DataTable, qx as DataTableEmpty, Kx as DataTableToolbar, Ho as Dialog, Wo as DialogClose, qo as DialogContent, Zo as DialogDescription, Yo as DialogFooter, Jo as DialogHeader, Ko as DialogOverlay, Go as DialogPortal, Xo as DialogTitle, Uo as DialogTrigger, Jv as DropdownMenu, iy as DropdownMenuCheckboxItem, Qv as DropdownMenuContent, Xv as DropdownMenuGroup, $v as DropdownMenuItem, ey as DropdownMenuLabel, ry as DropdownMenuRadioGroup, ay as DropdownMenuRadioItem, ty as DropdownMenuSeparator, Zv as DropdownMenuSub, oy as DropdownMenuSubContent, ny as DropdownMenuSubTrigger, Yv as DropdownMenuTrigger, Ax as EmptyState, Zt as Input, rn as Label, mx as MetaHead, dx as Nav, kx as PageHeader, jx as Pagination, og as Popover, cg as PopoverContent, sg as PopoverTrigger, Oy as Progress, nm as RadioGroup, rm as RadioGroupItem, ip as Select, cp as SelectContent, ap as SelectGroup, up as SelectItem, lp as SelectLabel, dp as SelectSeparator, sp as SelectTrigger, op as SelectValue, vn as Separator, Cm as Sheet, Tm as SheetClose, km as SheetContent, Nm as SheetDescription, jm as SheetFooter, Am as SheetHeader, Dm as SheetOverlay, Em as SheetPortal, Mm as SheetTitle, wm as SheetTrigger, Cx as Sidebar, Tx as SidebarContent, Ex as SidebarFooter, Dx as SidebarGroup, wx as SidebarHeader, Ox as SidebarItem, ky as Skeleton, Nx as StatCard, gx as StructuredData, _m as Switch, Ay as Table, My as TableBody, Ly as TableCaption, Iy as TableCell, Ny as TableFooter, Fy as TableHead, jy as TableHeader, Py as TableRow, jc as Tabs, Pc as TabsContent, Mc as TabsList, Nc as TabsTrigger, Qt as Textarea, Tt as ThemeProvider, Yx as Timeline, $x as TimelineContent, eS as TimelineFilter, Qx as TimelineItem, Ib as Toast, Lb as ToastAction, Rb as ToastClose, Bb as ToastDescription, Nb as ToastProvider, zb as ToastTitle, Pb as ToastViewport, Vb as Toaster, Sm as Toggle, xh as Tooltip, Ch as TooltipContent, bh as TooltipProvider, Sh as TooltipTrigger, Kb as Video, sn as alertVariants, an as badgeVariants, Ut as buttonVariants, qb as cloudflareStreamHls, Jb as cloudflareStreamMp4, W as cn, Ze as createOgImageUrl, vt as dismissAll, _t as toast, xm as toggleVariants, Ct as useAlternateLinks, Fx as useAppShell, xt as useCanonical, Xb as useComboboxContext, ot as useMobile, st as useScrollNav, it as useTheme, Et as useThemeContext, yt as useToast };
|