@stackable-labs/embeddables 1.91.0 → 1.92.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/dist/react.js +586 -584
- package/dist/stackable-widget.external.js +25 -25
- package/dist/stackable-widget.js +32 -32
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as q, jsx as f, Fragment as Ie } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import I, { createContext as
|
|
3
|
+
import I, { createContext as Jc, useState as le, useRef as Me, useEffect as ce, useContext as Qc, createElement as hn, useMemo as Vt, forwardRef as ms, useLayoutEffect as el, useCallback as ve } from "react";
|
|
4
4
|
import * as kn from "react-dom";
|
|
5
5
|
import hs from "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const tl = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "2ef9f57f-a423-4074-81bf-db3b08e6972a";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
12
|
-
}, dt = /* @__PURE__ */ new Map(),
|
|
12
|
+
}, dt = /* @__PURE__ */ new Map(), nl = async (e, t) => {
|
|
13
13
|
const n = dt.get(e.id);
|
|
14
14
|
if (n)
|
|
15
15
|
return n;
|
|
@@ -24,7 +24,7 @@ const nl = () => {
|
|
|
24
24
|
} else {
|
|
25
25
|
let c = "";
|
|
26
26
|
try {
|
|
27
|
-
const u =
|
|
27
|
+
const u = tl();
|
|
28
28
|
c = await (await fetch(`${e.bundleUrl}?_b=${u}`)).text();
|
|
29
29
|
} catch (u) {
|
|
30
30
|
console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, u);
|
|
@@ -66,24 +66,26 @@ const nl = () => {
|
|
|
66
66
|
}
|
|
67
67
|
const o = n.expectedOrigin === "null" ? "*" : n.expectedOrigin;
|
|
68
68
|
n.iframe.contentWindow.postMessage(t, o);
|
|
69
|
-
}, Nt = (e) => dt.get(e),
|
|
69
|
+
}, Nt = (e) => dt.get(e), ol = (e) => {
|
|
70
70
|
const t = dt.get(e);
|
|
71
71
|
t && (t.iframe.remove(), t.messageHandlers.clear(), dt.delete(e));
|
|
72
|
-
}, kt = () => dt, Zn = (e) => e,
|
|
73
|
-
|
|
74
|
-
}
|
|
72
|
+
}, kt = () => dt, Zn = (e) => e, rl = {
|
|
73
|
+
SUPER_ADMIN: "super_admin"
|
|
74
|
+
};
|
|
75
|
+
new Set(Object.values(rl));
|
|
76
|
+
const go = {
|
|
75
77
|
ADMIN: "org:admin",
|
|
76
|
-
OWNER: "org:owner"
|
|
78
|
+
OWNER: "org:owner",
|
|
79
|
+
MEMBER: "org:member"
|
|
77
80
|
}, sl = [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
yr.OWNER
|
|
81
|
+
go.ADMIN,
|
|
82
|
+
go.OWNER
|
|
81
83
|
];
|
|
82
84
|
[
|
|
83
|
-
...Object.values(
|
|
84
|
-
|
|
85
|
+
...Object.values(sl),
|
|
86
|
+
go.MEMBER
|
|
85
87
|
];
|
|
86
|
-
const
|
|
88
|
+
const gs = {
|
|
87
89
|
"ui-card": {
|
|
88
90
|
description: "Card container for grouping related content",
|
|
89
91
|
icon: "square",
|
|
@@ -340,7 +342,7 @@ const vs = {
|
|
|
340
342
|
category: "composite",
|
|
341
343
|
attributes: ["className"]
|
|
342
344
|
}
|
|
343
|
-
}, Pt =
|
|
345
|
+
}, Pt = gs, Gt = Object.keys(gs), al = Object.fromEntries(
|
|
344
346
|
Gt.map((e) => [e, Pt[e].attributes])
|
|
345
347
|
);
|
|
346
348
|
Object.fromEntries(
|
|
@@ -436,7 +438,7 @@ const yt = {
|
|
|
436
438
|
return window.addEventListener("message", t), () => {
|
|
437
439
|
window.removeEventListener("message", t);
|
|
438
440
|
};
|
|
439
|
-
},
|
|
441
|
+
}, vs = Jc({
|
|
440
442
|
extensions: [],
|
|
441
443
|
components: {},
|
|
442
444
|
ready: !1
|
|
@@ -461,20 +463,20 @@ const yt = {
|
|
|
461
463
|
});
|
|
462
464
|
i.current = dl(m);
|
|
463
465
|
for (const h of e)
|
|
464
|
-
h.enabled && !d && (console.log("[ExtensionProvider] Creating sandbox for", h.id, "bundleUrl:", h.bundleUrl), await
|
|
466
|
+
h.enabled && !d && (console.log("[ExtensionProvider] Creating sandbox for", h.id, "bundleUrl:", h.bundleUrl), await nl(h, l), console.log("[ExtensionProvider] Sandbox created for", h.id));
|
|
465
467
|
d || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
466
468
|
})(), () => {
|
|
467
469
|
var l;
|
|
468
470
|
d = !0;
|
|
469
471
|
for (const m of e)
|
|
470
|
-
|
|
472
|
+
ol(m.id);
|
|
471
473
|
(l = i.current) == null || l.call(i);
|
|
472
474
|
};
|
|
473
|
-
}, [e]), /* @__PURE__ */ q(
|
|
475
|
+
}, [e]), /* @__PURE__ */ q(vs.Provider, { value: { extensions: e, components: n, ready: r }, children: [
|
|
474
476
|
/* @__PURE__ */ f("div", { ref: a, style: { display: "none" } }),
|
|
475
477
|
o
|
|
476
478
|
] });
|
|
477
|
-
},
|
|
479
|
+
}, bs = () => Qc(vs), fl = (e) => Gt.includes(e), pl = (e, t = {}) => {
|
|
478
480
|
const { surfaceId: n, logPrefix: o = "[NodeRenderer]" } = t, r = (s, a, i = 0) => {
|
|
479
481
|
var h, b, g;
|
|
480
482
|
if (s.type === "text")
|
|
@@ -549,7 +551,7 @@ const yt = {
|
|
|
549
551
|
fallback: r = null,
|
|
550
552
|
render: s
|
|
551
553
|
}) => {
|
|
552
|
-
const { extensions: a, components: i, ready: c } =
|
|
554
|
+
const { extensions: a, components: i, ready: c } = bs(), [d, u] = le({}), l = Me(""), m = Vt(() => a.filter((v) => v.enabled && v.manifest.targets.includes(e)), [a.map((v) => v.id).join(","), e]), h = Vt(() => pl(i, { surfaceId: e, logPrefix: "[ExtensionSlot]" }), [e, i]);
|
|
553
555
|
if (ce(() => {
|
|
554
556
|
const v = m.map((w) => w.id).join(",");
|
|
555
557
|
if (l.current !== v && (l.current = v, u({})), !c || m.length === 0)
|
|
@@ -720,7 +722,7 @@ const bl = (e) => {
|
|
|
720
722
|
return document.addEventListener("visibilitychange", n), () => window.removeEventListener("visibilitychange", n);
|
|
721
723
|
}, []), e;
|
|
722
724
|
};
|
|
723
|
-
let
|
|
725
|
+
let vo = 1;
|
|
724
726
|
class Rl {
|
|
725
727
|
constructor() {
|
|
726
728
|
this.subscribe = (t) => (this.subscribers.push(t), () => {
|
|
@@ -735,7 +737,7 @@ class Rl {
|
|
|
735
737
|
];
|
|
736
738
|
}, this.create = (t) => {
|
|
737
739
|
var n;
|
|
738
|
-
const { message: o, ...r } = t, s = typeof (t == null ? void 0 : t.id) == "number" || ((n = t.id) == null ? void 0 : n.length) > 0 ? t.id :
|
|
740
|
+
const { message: o, ...r } = t, s = typeof (t == null ? void 0 : t.id) == "number" || ((n = t.id) == null ? void 0 : n.length) > 0 ? t.id : vo++, a = this.toasts.find((c) => c.id === s), i = t.dismissible === void 0 ? !0 : t.dismissible;
|
|
739
741
|
return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), a ? this.toasts = this.toasts.map((c) => c.id === s ? (this.publish({
|
|
740
742
|
...c,
|
|
741
743
|
...t,
|
|
@@ -866,7 +868,7 @@ class Rl {
|
|
|
866
868
|
unwrap: c
|
|
867
869
|
});
|
|
868
870
|
}, this.custom = (t, n) => {
|
|
869
|
-
const o = (n == null ? void 0 : n.id) ||
|
|
871
|
+
const o = (n == null ? void 0 : n.id) || vo++;
|
|
870
872
|
return this.create({
|
|
871
873
|
jsx: t(o),
|
|
872
874
|
id: o,
|
|
@@ -876,7 +878,7 @@ class Rl {
|
|
|
876
878
|
}
|
|
877
879
|
}
|
|
878
880
|
const we = new Rl(), Tl = (e, t) => {
|
|
879
|
-
const n = (t == null ? void 0 : t.id) ||
|
|
881
|
+
const n = (t == null ? void 0 : t.id) || vo++;
|
|
880
882
|
return we.addToast({
|
|
881
883
|
title: e,
|
|
882
884
|
...t,
|
|
@@ -910,29 +912,29 @@ function Bl(e) {
|
|
|
910
912
|
}
|
|
911
913
|
const Hl = (e) => {
|
|
912
914
|
var t, n, o, r, s, a, i, c, d;
|
|
913
|
-
const { invert: u, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: T, style: N, cancelButtonStyle: E, actionButtonStyle: L, className: W = "", descriptionClassName: M = "", duration: F, position: H, gap: O, expandByDefault: K, classNames: A, icons: D, closeButtonAriaLabel: U = "Close toast" } = e, [k, S] = I.useState(null), [_, $] = I.useState(null), [P, z] = I.useState(!1), [B, J] = I.useState(!1), [j, Y] = I.useState(!1), [ee, te] = I.useState(!1), [se, oe] = I.useState(!1), [ue, fe] = I.useState(0), [at, Ke] = I.useState(0), Te = I.useRef(l.duration || F || wr), Zt = I.useRef(null), ye = I.useRef(null),
|
|
915
|
+
const { invert: u, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: T, style: N, cancelButtonStyle: E, actionButtonStyle: L, className: W = "", descriptionClassName: M = "", duration: F, position: H, gap: O, expandByDefault: K, classNames: A, icons: D, closeButtonAriaLabel: U = "Close toast" } = e, [k, S] = I.useState(null), [_, $] = I.useState(null), [P, z] = I.useState(!1), [B, J] = I.useState(!1), [j, Y] = I.useState(!1), [ee, te] = I.useState(!1), [se, oe] = I.useState(!1), [ue, fe] = I.useState(0), [at, Ke] = I.useState(0), Te = I.useRef(l.duration || F || wr), Zt = I.useRef(null), ye = I.useRef(null), Vc = y === 0, Wc = y + 1 <= g, Se = l.type, gt = l.dismissible !== !1, Uc = l.className || "", jc = l.descriptionClassName || "", Jt = I.useMemo(() => v.findIndex((ne) => ne.toastId === l.id) || 0, [
|
|
914
916
|
v,
|
|
915
917
|
l.id
|
|
916
|
-
]),
|
|
918
|
+
]), Gc = I.useMemo(() => {
|
|
917
919
|
var ne;
|
|
918
920
|
return (ne = l.closeButton) != null ? ne : T;
|
|
919
921
|
}, [
|
|
920
922
|
l.closeButton,
|
|
921
923
|
T
|
|
922
|
-
]),
|
|
924
|
+
]), pr = I.useMemo(() => l.duration || F || wr, [
|
|
923
925
|
l.duration,
|
|
924
926
|
F
|
|
925
|
-
]), Kn = I.useRef(0), vt = I.useRef(0),
|
|
927
|
+
]), Kn = I.useRef(0), vt = I.useRef(0), mr = I.useRef(0), bt = I.useRef(null), [Yc, qc] = H.split("-"), hr = I.useMemo(() => v.reduce((ne, me, ge) => ge >= Jt ? ne : ne + me.height, 0), [
|
|
926
928
|
v,
|
|
927
929
|
Jt
|
|
928
|
-
]),
|
|
929
|
-
vt.current = I.useMemo(() => Jt * O +
|
|
930
|
+
]), gr = Nl(), Kc = l.invert || u, Xn = Se === "loading";
|
|
931
|
+
vt.current = I.useMemo(() => Jt * O + hr, [
|
|
930
932
|
Jt,
|
|
931
|
-
|
|
933
|
+
hr
|
|
932
934
|
]), I.useEffect(() => {
|
|
933
|
-
Te.current =
|
|
935
|
+
Te.current = pr;
|
|
934
936
|
}, [
|
|
935
|
-
|
|
937
|
+
pr
|
|
936
938
|
]), I.useEffect(() => {
|
|
937
939
|
z(!0);
|
|
938
940
|
}, []), I.useEffect(() => {
|
|
@@ -990,12 +992,12 @@ const Hl = (e) => {
|
|
|
990
992
|
I.useEffect(() => {
|
|
991
993
|
if (l.promise && Se === "loading" || l.duration === 1 / 0 || l.type === "loading") return;
|
|
992
994
|
let ne;
|
|
993
|
-
return x || h ||
|
|
994
|
-
if (
|
|
995
|
+
return x || h || gr ? (() => {
|
|
996
|
+
if (mr.current < Kn.current) {
|
|
995
997
|
const Ce = (/* @__PURE__ */ new Date()).getTime() - Kn.current;
|
|
996
998
|
Te.current = Te.current - Ce;
|
|
997
999
|
}
|
|
998
|
-
|
|
1000
|
+
mr.current = (/* @__PURE__ */ new Date()).getTime();
|
|
999
1001
|
})() : (() => {
|
|
1000
1002
|
Te.current !== 1 / 0 && (Kn.current = (/* @__PURE__ */ new Date()).getTime(), ne = setTimeout(() => {
|
|
1001
1003
|
l.onAutoClose == null || l.onAutoClose.call(l, l), Xe();
|
|
@@ -1006,7 +1008,7 @@ const Hl = (e) => {
|
|
|
1006
1008
|
h,
|
|
1007
1009
|
l,
|
|
1008
1010
|
Se,
|
|
1009
|
-
|
|
1011
|
+
gr,
|
|
1010
1012
|
Xe
|
|
1011
1013
|
]), I.useEffect(() => {
|
|
1012
1014
|
l.delete && (Xe(), l.onDismiss == null || l.onDismiss.call(l, l));
|
|
@@ -1014,7 +1016,7 @@ const Hl = (e) => {
|
|
|
1014
1016
|
Xe,
|
|
1015
1017
|
l.delete
|
|
1016
1018
|
]);
|
|
1017
|
-
function
|
|
1019
|
+
function Xc() {
|
|
1018
1020
|
var ne;
|
|
1019
1021
|
if (D != null && D.loading) {
|
|
1020
1022
|
var me;
|
|
@@ -1028,28 +1030,28 @@ const Hl = (e) => {
|
|
|
1028
1030
|
visible: Se === "loading"
|
|
1029
1031
|
});
|
|
1030
1032
|
}
|
|
1031
|
-
const
|
|
1032
|
-
var
|
|
1033
|
+
const Zc = l.icon || (D == null ? void 0 : D[Se]) || bl(Se);
|
|
1034
|
+
var vr, br;
|
|
1033
1035
|
return /* @__PURE__ */ I.createElement("li", {
|
|
1034
1036
|
tabIndex: 0,
|
|
1035
1037
|
ref: ye,
|
|
1036
|
-
className: ze(W,
|
|
1038
|
+
className: ze(W, Uc, A == null ? void 0 : A.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, A == null ? void 0 : A.default, A == null ? void 0 : A[Se], l == null || (n = l.classNames) == null ? void 0 : n[Se]),
|
|
1037
1039
|
"data-sonner-toast": "",
|
|
1038
|
-
"data-rich-colors": (
|
|
1040
|
+
"data-rich-colors": (vr = l.richColors) != null ? vr : R,
|
|
1039
1041
|
"data-styled": !(l.jsx || l.unstyled || m),
|
|
1040
1042
|
"data-mounted": P,
|
|
1041
1043
|
"data-promise": !!l.promise,
|
|
1042
1044
|
"data-swiped": se,
|
|
1043
1045
|
"data-removed": B,
|
|
1044
|
-
"data-visible":
|
|
1045
|
-
"data-y-position":
|
|
1046
|
-
"data-x-position":
|
|
1046
|
+
"data-visible": Wc,
|
|
1047
|
+
"data-y-position": Yc,
|
|
1048
|
+
"data-x-position": qc,
|
|
1047
1049
|
"data-index": y,
|
|
1048
|
-
"data-front":
|
|
1050
|
+
"data-front": Vc,
|
|
1049
1051
|
"data-swiping": j,
|
|
1050
1052
|
"data-dismissible": gt,
|
|
1051
1053
|
"data-type": Se,
|
|
1052
|
-
"data-invert":
|
|
1054
|
+
"data-invert": Kc,
|
|
1053
1055
|
"data-swipe-out": ee,
|
|
1054
1056
|
"data-swipe-direction": _,
|
|
1055
1057
|
"data-expanded": !!(x || K && P),
|
|
@@ -1097,25 +1099,25 @@ const Hl = (e) => {
|
|
|
1097
1099
|
x: 0,
|
|
1098
1100
|
y: 0
|
|
1099
1101
|
};
|
|
1100
|
-
const
|
|
1102
|
+
const yr = (it) => 1 / (1.5 + Math.abs(it) / 20);
|
|
1101
1103
|
if (k === "y") {
|
|
1102
1104
|
if (Pe.includes("top") || Pe.includes("bottom"))
|
|
1103
1105
|
if (Pe.includes("top") && he < 0 || Pe.includes("bottom") && he > 0)
|
|
1104
1106
|
Ae.y = he;
|
|
1105
1107
|
else {
|
|
1106
|
-
const it = he *
|
|
1108
|
+
const it = he * yr(he);
|
|
1107
1109
|
Ae.y = Math.abs(it) < Math.abs(he) ? it : he;
|
|
1108
1110
|
}
|
|
1109
1111
|
} else if (k === "x" && (Pe.includes("left") || Pe.includes("right")))
|
|
1110
1112
|
if (Pe.includes("left") && Ne < 0 || Pe.includes("right") && Ne > 0)
|
|
1111
1113
|
Ae.x = Ne;
|
|
1112
1114
|
else {
|
|
1113
|
-
const it = Ne *
|
|
1115
|
+
const it = Ne * yr(Ne);
|
|
1114
1116
|
Ae.x = Math.abs(it) < Math.abs(Ne) ? it : Ne;
|
|
1115
1117
|
}
|
|
1116
1118
|
(Math.abs(Ae.x) > 0 || Math.abs(Ae.y) > 0) && oe(!0), (ge = ye.current) == null || ge.style.setProperty("--swipe-amount-x", `${Ae.x}px`), (Ce = ye.current) == null || Ce.style.setProperty("--swipe-amount-y", `${Ae.y}px`);
|
|
1117
1119
|
}
|
|
1118
|
-
},
|
|
1120
|
+
}, Gc && !l.jsx && Se !== "loading" ? /* @__PURE__ */ I.createElement("button", {
|
|
1119
1121
|
"aria-label": U,
|
|
1120
1122
|
"data-disabled": Xn,
|
|
1121
1123
|
"data-close-button": !0,
|
|
@@ -1124,10 +1126,10 @@ const Hl = (e) => {
|
|
|
1124
1126
|
Xe(), l.onDismiss == null || l.onDismiss.call(l, l);
|
|
1125
1127
|
},
|
|
1126
1128
|
className: ze(A == null ? void 0 : A.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
|
|
1127
|
-
}, (
|
|
1129
|
+
}, (br = D == null ? void 0 : D.close) != null ? br : kl) : null, (Se || l.icon || l.promise) && l.icon !== null && ((D == null ? void 0 : D[Se]) !== null || l.icon) ? /* @__PURE__ */ I.createElement("div", {
|
|
1128
1130
|
"data-icon": "",
|
|
1129
1131
|
className: ze(A == null ? void 0 : A.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
|
|
1130
|
-
}, l.promise || l.type === "loading" && !l.icon ? l.icon ||
|
|
1132
|
+
}, l.promise || l.type === "loading" && !l.icon ? l.icon || Xc() : null, l.type !== "loading" ? Zc : null) : null, /* @__PURE__ */ I.createElement("div", {
|
|
1131
1133
|
"data-content": "",
|
|
1132
1134
|
className: ze(A == null ? void 0 : A.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
|
|
1133
1135
|
}, /* @__PURE__ */ I.createElement("div", {
|
|
@@ -1135,7 +1137,7 @@ const Hl = (e) => {
|
|
|
1135
1137
|
className: ze(A == null ? void 0 : A.title, l == null || (a = l.classNames) == null ? void 0 : a.title)
|
|
1136
1138
|
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ I.createElement("div", {
|
|
1137
1139
|
"data-description": "",
|
|
1138
|
-
className: ze(M,
|
|
1140
|
+
className: ze(M, jc, A == null ? void 0 : A.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
|
|
1139
1141
|
}, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ I.isValidElement(l.cancel) ? l.cancel : l.cancel && nn(l.cancel) ? /* @__PURE__ */ I.createElement("button", {
|
|
1140
1142
|
"data-button": !0,
|
|
1141
1143
|
"data-cancel": !0,
|
|
@@ -1403,7 +1405,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1403
1405
|
}
|
|
1404
1406
|
}
|
|
1405
1407
|
return r;
|
|
1406
|
-
},
|
|
1408
|
+
}, ys = (e) => {
|
|
1407
1409
|
const t = new URLSearchParams(e);
|
|
1408
1410
|
try {
|
|
1409
1411
|
const n = Cr(t, "_stackable_dev", "dev"), o = Cr(t, "_stackable_staging", "staging"), r = /* @__PURE__ */ new Map();
|
|
@@ -1439,7 +1441,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1439
1441
|
* This source code is licensed under the ISC license.
|
|
1440
1442
|
* See the LICENSE file in the root directory of this source tree.
|
|
1441
1443
|
*/
|
|
1442
|
-
const
|
|
1444
|
+
const ws = (...e) => e.filter((t, n, o) => !!t && t.trim() !== "" && o.indexOf(t) === n).join(" ").trim();
|
|
1443
1445
|
/**
|
|
1444
1446
|
* @license lucide-react v0.577.0 - ISC
|
|
1445
1447
|
*
|
|
@@ -1521,7 +1523,7 @@ const Jl = ms(
|
|
|
1521
1523
|
height: t,
|
|
1522
1524
|
stroke: e,
|
|
1523
1525
|
strokeWidth: o ? Number(n) * 24 / Number(t) : n,
|
|
1524
|
-
className:
|
|
1526
|
+
className: ws("lucide", r),
|
|
1525
1527
|
...!s && !Zl(i) && { "aria-hidden": "true" },
|
|
1526
1528
|
...i
|
|
1527
1529
|
},
|
|
@@ -1542,7 +1544,7 @@ const ae = (e, t) => {
|
|
|
1542
1544
|
({ className: o, ...r }, s) => hn(Jl, {
|
|
1543
1545
|
ref: s,
|
|
1544
1546
|
iconNode: t,
|
|
1545
|
-
className:
|
|
1547
|
+
className: ws(
|
|
1546
1548
|
`lucide-${ql(Er(e))}`,
|
|
1547
1549
|
`lucide-${e}`,
|
|
1548
1550
|
o
|
|
@@ -1626,14 +1628,14 @@ const id = [
|
|
|
1626
1628
|
* This source code is licensed under the ISC license.
|
|
1627
1629
|
* See the LICENSE file in the root directory of this source tree.
|
|
1628
1630
|
*/
|
|
1629
|
-
const ld = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]],
|
|
1631
|
+
const ld = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], xs = ae("check", ld);
|
|
1630
1632
|
/**
|
|
1631
1633
|
* @license lucide-react v0.577.0 - ISC
|
|
1632
1634
|
*
|
|
1633
1635
|
* This source code is licensed under the ISC license.
|
|
1634
1636
|
* See the LICENSE file in the root directory of this source tree.
|
|
1635
1637
|
*/
|
|
1636
|
-
const dd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]],
|
|
1638
|
+
const dd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ss = ae("chevron-down", dd);
|
|
1637
1639
|
/**
|
|
1638
1640
|
* @license lucide-react v0.577.0 - ISC
|
|
1639
1641
|
*
|
|
@@ -1647,7 +1649,7 @@ const ud = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], fd = ae("chevron-
|
|
|
1647
1649
|
* This source code is licensed under the ISC license.
|
|
1648
1650
|
* See the LICENSE file in the root directory of this source tree.
|
|
1649
1651
|
*/
|
|
1650
|
-
const pd = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
1652
|
+
const pd = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], zo = ae("chevron-right", pd);
|
|
1651
1653
|
/**
|
|
1652
1654
|
* @license lucide-react v0.577.0 - ISC
|
|
1653
1655
|
*
|
|
@@ -1665,7 +1667,7 @@ const gd = [
|
|
|
1665
1667
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1666
1668
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
1667
1669
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
1668
|
-
],
|
|
1670
|
+
], Cs = ae("circle-alert", gd);
|
|
1669
1671
|
/**
|
|
1670
1672
|
* @license lucide-react v0.577.0 - ISC
|
|
1671
1673
|
*
|
|
@@ -1675,7 +1677,7 @@ const gd = [
|
|
|
1675
1677
|
const vd = [
|
|
1676
1678
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1677
1679
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
1678
|
-
],
|
|
1680
|
+
], Es = ae("circle-check", vd);
|
|
1679
1681
|
/**
|
|
1680
1682
|
* @license lucide-react v0.577.0 - ISC
|
|
1681
1683
|
*
|
|
@@ -1686,7 +1688,7 @@ const bd = [
|
|
|
1686
1688
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1687
1689
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
1688
1690
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
1689
|
-
],
|
|
1691
|
+
], ks = ae("circle-question-mark", bd);
|
|
1690
1692
|
/**
|
|
1691
1693
|
* @license lucide-react v0.577.0 - ISC
|
|
1692
1694
|
*
|
|
@@ -1778,7 +1780,7 @@ const Md = [
|
|
|
1778
1780
|
* This source code is licensed under the ISC license.
|
|
1779
1781
|
* See the LICENSE file in the root directory of this source tree.
|
|
1780
1782
|
*/
|
|
1781
|
-
const Od = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]],
|
|
1783
|
+
const Od = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], $o = ae("loader-circle", Od);
|
|
1782
1784
|
/**
|
|
1783
1785
|
* @license lucide-react v0.577.0 - ISC
|
|
1784
1786
|
*
|
|
@@ -1788,7 +1790,7 @@ const Od = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], zo =
|
|
|
1788
1790
|
const Ld = [
|
|
1789
1791
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
1790
1792
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
1791
|
-
],
|
|
1793
|
+
], bo = ae("mail", Ld);
|
|
1792
1794
|
/**
|
|
1793
1795
|
* @license lucide-react v0.577.0 - ISC
|
|
1794
1796
|
*
|
|
@@ -1819,7 +1821,7 @@ const $d = [
|
|
|
1819
1821
|
key: "1sd12s"
|
|
1820
1822
|
}
|
|
1821
1823
|
]
|
|
1822
|
-
],
|
|
1824
|
+
], Ns = ae("message-circle", $d);
|
|
1823
1825
|
/**
|
|
1824
1826
|
* @license lucide-react v0.577.0 - ISC
|
|
1825
1827
|
*
|
|
@@ -1834,7 +1836,7 @@ const Fd = [
|
|
|
1834
1836
|
key: "18887p"
|
|
1835
1837
|
}
|
|
1836
1838
|
]
|
|
1837
|
-
],
|
|
1839
|
+
], Fo = ae("message-square", Fd);
|
|
1838
1840
|
/**
|
|
1839
1841
|
* @license lucide-react v0.577.0 - ISC
|
|
1840
1842
|
*
|
|
@@ -1939,7 +1941,7 @@ const Jd = [
|
|
|
1939
1941
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
1940
1942
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
1941
1943
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
1942
|
-
],
|
|
1944
|
+
], Rs = ae("sparkles", Jd);
|
|
1943
1945
|
/**
|
|
1944
1946
|
* @license lucide-react v0.577.0 - ISC
|
|
1945
1947
|
*
|
|
@@ -1985,7 +1987,7 @@ const tu = [
|
|
|
1985
1987
|
const ou = [
|
|
1986
1988
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
1987
1989
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
1988
|
-
],
|
|
1990
|
+
], Ts = ae("user", ou);
|
|
1989
1991
|
/**
|
|
1990
1992
|
* @license lucide-react v0.577.0 - ISC
|
|
1991
1993
|
*
|
|
@@ -2001,17 +2003,17 @@ const ru = [
|
|
|
2001
2003
|
}
|
|
2002
2004
|
]
|
|
2003
2005
|
], su = ae("zap", ru);
|
|
2004
|
-
function
|
|
2006
|
+
function Ps(e) {
|
|
2005
2007
|
var t, n, o = "";
|
|
2006
2008
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
2007
2009
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2008
2010
|
var r = e.length;
|
|
2009
|
-
for (t = 0; t < r; t++) e[t] && (n =
|
|
2011
|
+
for (t = 0; t < r; t++) e[t] && (n = Ps(e[t])) && (o && (o += " "), o += n);
|
|
2010
2012
|
} else for (n in e) e[n] && (o && (o += " "), o += n);
|
|
2011
2013
|
return o;
|
|
2012
2014
|
}
|
|
2013
|
-
function
|
|
2014
|
-
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t =
|
|
2015
|
+
function As() {
|
|
2016
|
+
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = Ps(e)) && (o && (o += " "), o += t);
|
|
2015
2017
|
return o;
|
|
2016
2018
|
}
|
|
2017
2019
|
const au = (e, t) => {
|
|
@@ -2024,7 +2026,7 @@ const au = (e, t) => {
|
|
|
2024
2026
|
}, iu = (e, t) => ({
|
|
2025
2027
|
classGroupId: e,
|
|
2026
2028
|
validator: t
|
|
2027
|
-
}),
|
|
2029
|
+
}), _s = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
2028
2030
|
nextPart: e,
|
|
2029
2031
|
validators: t,
|
|
2030
2032
|
classGroupId: n
|
|
@@ -2038,7 +2040,7 @@ const au = (e, t) => {
|
|
|
2038
2040
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
2039
2041
|
return du(a);
|
|
2040
2042
|
const i = a.split(gn), c = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
2041
|
-
return
|
|
2043
|
+
return Is(i, c, t);
|
|
2042
2044
|
},
|
|
2043
2045
|
getConflictingClassGroupIds: (a, i) => {
|
|
2044
2046
|
if (i) {
|
|
@@ -2048,12 +2050,12 @@ const au = (e, t) => {
|
|
|
2048
2050
|
return n[a] || kr;
|
|
2049
2051
|
}
|
|
2050
2052
|
};
|
|
2051
|
-
},
|
|
2053
|
+
}, Is = (e, t, n) => {
|
|
2052
2054
|
if (e.length - t === 0)
|
|
2053
2055
|
return n.classGroupId;
|
|
2054
2056
|
const r = e[t], s = n.nextPart.get(r);
|
|
2055
2057
|
if (s) {
|
|
2056
|
-
const d =
|
|
2058
|
+
const d = Is(e, t + 1, s);
|
|
2057
2059
|
if (d) return d;
|
|
2058
2060
|
}
|
|
2059
2061
|
const a = n.validators;
|
|
@@ -2075,13 +2077,13 @@ const au = (e, t) => {
|
|
|
2075
2077
|
} = e;
|
|
2076
2078
|
return fu(n, t);
|
|
2077
2079
|
}, fu = (e, t) => {
|
|
2078
|
-
const n =
|
|
2080
|
+
const n = _s();
|
|
2079
2081
|
for (const o in e) {
|
|
2080
2082
|
const r = e[o];
|
|
2081
|
-
|
|
2083
|
+
Bo(r, n, o, t);
|
|
2082
2084
|
}
|
|
2083
2085
|
return n;
|
|
2084
|
-
},
|
|
2086
|
+
}, Bo = (e, t, n, o) => {
|
|
2085
2087
|
const r = e.length;
|
|
2086
2088
|
for (let s = 0; s < r; s++) {
|
|
2087
2089
|
const a = e[s];
|
|
@@ -2098,11 +2100,11 @@ const au = (e, t) => {
|
|
|
2098
2100
|
}
|
|
2099
2101
|
gu(e, t, n, o);
|
|
2100
2102
|
}, mu = (e, t, n) => {
|
|
2101
|
-
const o = e === "" ? t :
|
|
2103
|
+
const o = e === "" ? t : Ms(t, e);
|
|
2102
2104
|
o.classGroupId = n;
|
|
2103
2105
|
}, hu = (e, t, n, o) => {
|
|
2104
2106
|
if (vu(e)) {
|
|
2105
|
-
|
|
2107
|
+
Bo(e(o), t, n, o);
|
|
2106
2108
|
return;
|
|
2107
2109
|
}
|
|
2108
2110
|
t.validators === null && (t.validators = []), t.validators.push(iu(n, e));
|
|
@@ -2110,15 +2112,15 @@ const au = (e, t) => {
|
|
|
2110
2112
|
const r = Object.entries(e), s = r.length;
|
|
2111
2113
|
for (let a = 0; a < s; a++) {
|
|
2112
2114
|
const [i, c] = r[a];
|
|
2113
|
-
|
|
2115
|
+
Bo(c, Ms(t, i), n, o);
|
|
2114
2116
|
}
|
|
2115
|
-
},
|
|
2117
|
+
}, Ms = (e, t) => {
|
|
2116
2118
|
let n = e;
|
|
2117
2119
|
const o = t.split(gn), r = o.length;
|
|
2118
2120
|
for (let s = 0; s < r; s++) {
|
|
2119
2121
|
const a = o[s];
|
|
2120
2122
|
let i = n.nextPart.get(a);
|
|
2121
|
-
i || (i =
|
|
2123
|
+
i || (i = _s(), n.nextPart.set(a, i)), n = i;
|
|
2122
2124
|
}
|
|
2123
2125
|
return n;
|
|
2124
2126
|
}, vu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, bu = (e) => {
|
|
@@ -2145,7 +2147,7 @@ const au = (e, t) => {
|
|
|
2145
2147
|
s in n ? n[s] = a : r(s, a);
|
|
2146
2148
|
}
|
|
2147
2149
|
};
|
|
2148
|
-
},
|
|
2150
|
+
}, yo = "!", Nr = ":", yu = [], Rr = (e, t, n, o, r) => ({
|
|
2149
2151
|
modifiers: e,
|
|
2150
2152
|
hasImportantModifier: t,
|
|
2151
2153
|
baseClassName: n,
|
|
@@ -2176,12 +2178,12 @@ const au = (e, t) => {
|
|
|
2176
2178
|
}
|
|
2177
2179
|
const l = s.length === 0 ? r : r.slice(c);
|
|
2178
2180
|
let m = l, h = !1;
|
|
2179
|
-
l.endsWith(
|
|
2181
|
+
l.endsWith(yo) ? (m = l.slice(0, -1), h = !0) : (
|
|
2180
2182
|
/**
|
|
2181
2183
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
2182
2184
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
2183
2185
|
*/
|
|
2184
|
-
l.startsWith(
|
|
2186
|
+
l.startsWith(yo) && (m = l.slice(1), h = !0)
|
|
2185
2187
|
);
|
|
2186
2188
|
const b = d && d > c ? d - c : void 0;
|
|
2187
2189
|
return Rr(s, h, m, b);
|
|
@@ -2248,7 +2250,7 @@ const au = (e, t) => {
|
|
|
2248
2250
|
}
|
|
2249
2251
|
v = !1;
|
|
2250
2252
|
}
|
|
2251
|
-
const w = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), x = h ? w +
|
|
2253
|
+
const w = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), x = h ? w + yo : w, C = x + y;
|
|
2252
2254
|
if (a.indexOf(C) > -1)
|
|
2253
2255
|
continue;
|
|
2254
2256
|
a.push(C);
|
|
@@ -2263,14 +2265,14 @@ const au = (e, t) => {
|
|
|
2263
2265
|
}, ku = (...e) => {
|
|
2264
2266
|
let t = 0, n, o, r = "";
|
|
2265
2267
|
for (; t < e.length; )
|
|
2266
|
-
(n = e[t++]) && (o =
|
|
2268
|
+
(n = e[t++]) && (o = Os(n)) && (r && (r += " "), r += o);
|
|
2267
2269
|
return r;
|
|
2268
|
-
},
|
|
2270
|
+
}, Os = (e) => {
|
|
2269
2271
|
if (typeof e == "string")
|
|
2270
2272
|
return e;
|
|
2271
2273
|
let t, n = "";
|
|
2272
2274
|
for (let o = 0; o < e.length; o++)
|
|
2273
|
-
e[o] && (t =
|
|
2275
|
+
e[o] && (t = Os(e[o])) && (n && (n += " "), n += t);
|
|
2274
2276
|
return n;
|
|
2275
2277
|
}, Nu = (e, ...t) => {
|
|
2276
2278
|
let n, o, r, s;
|
|
@@ -2288,18 +2290,18 @@ const au = (e, t) => {
|
|
|
2288
2290
|
}, Ru = [], pe = (e) => {
|
|
2289
2291
|
const t = (n) => n[e] || Ru;
|
|
2290
2292
|
return t.isThemeGetter = !0, t;
|
|
2291
|
-
},
|
|
2293
|
+
}, Ls = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ds = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Tu = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Pu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Au = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, _u = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Iu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Mu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ze = (e) => Tu.test(e), re = (e) => !!e && !Number.isNaN(Number(e)), Je = (e) => !!e && Number.isInteger(Number(e)), Jn = (e) => e.endsWith("%") && re(e.slice(0, -1)), Ue = (e) => Pu.test(e), zs = () => !0, Ou = (e) => (
|
|
2292
2294
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2293
2295
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2294
2296
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2295
2297
|
Au.test(e) && !_u.test(e)
|
|
2296
|
-
),
|
|
2297
|
-
const o =
|
|
2298
|
+
), Ho = () => !1, Lu = (e) => Iu.test(e), Du = (e) => Mu.test(e), zu = (e) => !V(e) && !G(e), $u = (e) => ot(e, Bs, Ho), V = (e) => Ls.test(e), ct = (e) => ot(e, Hs, Ou), Tr = (e) => ot(e, Gu, re), Fu = (e) => ot(e, Ws, zs), Bu = (e) => ot(e, Vs, Ho), Pr = (e) => ot(e, $s, Ho), Hu = (e) => ot(e, Fs, Du), on = (e) => ot(e, Us, Lu), G = (e) => Ds.test(e), zt = (e) => mt(e, Hs), Vu = (e) => mt(e, Vs), Ar = (e) => mt(e, $s), Wu = (e) => mt(e, Bs), Uu = (e) => mt(e, Fs), rn = (e) => mt(e, Us, !0), ju = (e) => mt(e, Ws, !0), ot = (e, t, n) => {
|
|
2299
|
+
const o = Ls.exec(e);
|
|
2298
2300
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
2299
2301
|
}, mt = (e, t, n = !1) => {
|
|
2300
|
-
const o =
|
|
2302
|
+
const o = Ds.exec(e);
|
|
2301
2303
|
return o ? o[1] ? t(o[1]) : n : !1;
|
|
2302
|
-
},
|
|
2304
|
+
}, $s = (e) => e === "position" || e === "percentage", Fs = (e) => e === "image" || e === "url", Bs = (e) => e === "length" || e === "size" || e === "bg-size", Hs = (e) => e === "length", Gu = (e) => e === "number", Vs = (e) => e === "family-name", Ws = (e) => e === "number" || e === "weight", Us = (e) => e === "shadow", Yu = () => {
|
|
2303
2305
|
const e = pe("color"), t = pe("font"), n = pe("text"), o = pe("font-weight"), r = pe("tracking"), s = pe("leading"), a = pe("breakpoint"), i = pe("container"), c = pe("spacing"), d = pe("radius"), u = pe("shadow"), l = pe("inset-shadow"), m = pe("text-shadow"), h = pe("drop-shadow"), b = pe("blur"), g = pe("perspective"), v = pe("aspect"), y = pe("ease"), w = pe("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
2304
2306
|
"center",
|
|
2305
2307
|
"top",
|
|
@@ -2349,7 +2351,7 @@ const au = (e, t) => {
|
|
|
2349
2351
|
aspect: ["video"],
|
|
2350
2352
|
blur: [Ue],
|
|
2351
2353
|
breakpoint: [Ue],
|
|
2352
|
-
color: [
|
|
2354
|
+
color: [zs],
|
|
2353
2355
|
container: [Ue],
|
|
2354
2356
|
"drop-shadow": [Ue],
|
|
2355
2357
|
ease: ["in", "out", "in-out"],
|
|
@@ -4928,7 +4930,7 @@ const au = (e, t) => {
|
|
|
4928
4930
|
},
|
|
4929
4931
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4930
4932
|
};
|
|
4931
|
-
}, qu = /* @__PURE__ */ Nu(Yu), X = (...e) => qu(
|
|
4933
|
+
}, qu = /* @__PURE__ */ Nu(Yu), X = (...e) => qu(As(e));
|
|
4932
4934
|
function Bt({ className: e, ...t }) {
|
|
4933
4935
|
return /* @__PURE__ */ f(
|
|
4934
4936
|
"div",
|
|
@@ -4965,7 +4967,7 @@ function Ht({ className: e, ...t }) {
|
|
|
4965
4967
|
}
|
|
4966
4968
|
);
|
|
4967
4969
|
}
|
|
4968
|
-
const _r = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ir =
|
|
4970
|
+
const _r = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ir = As, Rn = (e, t) => (n) => {
|
|
4969
4971
|
var o;
|
|
4970
4972
|
if ((t == null ? void 0 : t.variants) == null) return Ir(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4971
4973
|
const { variants: r, defaultVariants: s } = t, a = Object.keys(r).map((d) => {
|
|
@@ -5000,7 +5002,7 @@ function Mr(e, t) {
|
|
|
5000
5002
|
return e(t);
|
|
5001
5003
|
e != null && (e.current = t);
|
|
5002
5004
|
}
|
|
5003
|
-
function
|
|
5005
|
+
function js(...e) {
|
|
5004
5006
|
return (t) => {
|
|
5005
5007
|
let n = !1;
|
|
5006
5008
|
const o = e.map((r) => {
|
|
@@ -5017,7 +5019,7 @@ function Gs(...e) {
|
|
|
5017
5019
|
};
|
|
5018
5020
|
}
|
|
5019
5021
|
function ie(...e) {
|
|
5020
|
-
return p.useCallback(
|
|
5022
|
+
return p.useCallback(js(...e), e);
|
|
5021
5023
|
}
|
|
5022
5024
|
// @__NO_SIDE_EFFECTS__
|
|
5023
5025
|
function Wt(e) {
|
|
@@ -5031,27 +5033,27 @@ function Wt(e) {
|
|
|
5031
5033
|
});
|
|
5032
5034
|
return n.displayName = `${e}.Slot`, n;
|
|
5033
5035
|
}
|
|
5034
|
-
var
|
|
5036
|
+
var Gs = /* @__PURE__ */ Wt("Slot");
|
|
5035
5037
|
// @__NO_SIDE_EFFECTS__
|
|
5036
5038
|
function Xu(e) {
|
|
5037
5039
|
const t = p.forwardRef((n, o) => {
|
|
5038
5040
|
const { children: r, ...s } = n;
|
|
5039
5041
|
if (p.isValidElement(r)) {
|
|
5040
5042
|
const a = ef(r), i = Qu(s, r.props);
|
|
5041
|
-
return r.type !== p.Fragment && (i.ref = o ?
|
|
5043
|
+
return r.type !== p.Fragment && (i.ref = o ? js(o, a) : a), p.cloneElement(r, i);
|
|
5042
5044
|
}
|
|
5043
5045
|
return p.Children.count(r) > 1 ? p.Children.only(null) : null;
|
|
5044
5046
|
});
|
|
5045
5047
|
return t.displayName = `${e}.SlotClone`, t;
|
|
5046
5048
|
}
|
|
5047
|
-
var
|
|
5049
|
+
var Ys = Symbol("radix.slottable");
|
|
5048
5050
|
// @__NO_SIDE_EFFECTS__
|
|
5049
5051
|
function Zu(e) {
|
|
5050
5052
|
const t = ({ children: n }) => /* @__PURE__ */ f(Ie, { children: n });
|
|
5051
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
5053
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = Ys, t;
|
|
5052
5054
|
}
|
|
5053
5055
|
function Ju(e) {
|
|
5054
|
-
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
5056
|
+
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ys;
|
|
5055
5057
|
}
|
|
5056
5058
|
function Qu(e, t) {
|
|
5057
5059
|
const n = { ...t };
|
|
@@ -5097,7 +5099,7 @@ var tf = [
|
|
|
5097
5099
|
function nf(e, t) {
|
|
5098
5100
|
e && kn.flushSync(() => e.dispatchEvent(t));
|
|
5099
5101
|
}
|
|
5100
|
-
var
|
|
5102
|
+
var qs = Object.freeze({
|
|
5101
5103
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
5102
5104
|
position: "absolute",
|
|
5103
5105
|
border: 0,
|
|
@@ -5109,18 +5111,18 @@ var Ks = Object.freeze({
|
|
|
5109
5111
|
clip: "rect(0, 0, 0, 0)",
|
|
5110
5112
|
whiteSpace: "nowrap",
|
|
5111
5113
|
wordWrap: "normal"
|
|
5112
|
-
}), of = "VisuallyHidden",
|
|
5114
|
+
}), of = "VisuallyHidden", Ks = p.forwardRef(
|
|
5113
5115
|
(e, t) => /* @__PURE__ */ f(
|
|
5114
5116
|
Z.span,
|
|
5115
5117
|
{
|
|
5116
5118
|
...e,
|
|
5117
5119
|
ref: t,
|
|
5118
|
-
style: { ...
|
|
5120
|
+
style: { ...qs, ...e.style }
|
|
5119
5121
|
}
|
|
5120
5122
|
)
|
|
5121
5123
|
);
|
|
5122
|
-
|
|
5123
|
-
var rf =
|
|
5124
|
+
Ks.displayName = of;
|
|
5125
|
+
var rf = Ks;
|
|
5124
5126
|
function xe(e, t = []) {
|
|
5125
5127
|
let n = [];
|
|
5126
5128
|
function o(s, a) {
|
|
@@ -5171,7 +5173,7 @@ function sf(...e) {
|
|
|
5171
5173
|
};
|
|
5172
5174
|
return n.scopeName = t.scopeName, n;
|
|
5173
5175
|
}
|
|
5174
|
-
function
|
|
5176
|
+
function Xs(e) {
|
|
5175
5177
|
const t = e + "CollectionProvider", [n, o] = xe(t), [r, s] = n(
|
|
5176
5178
|
t,
|
|
5177
5179
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -5340,7 +5342,7 @@ function ht(e) {
|
|
|
5340
5342
|
n((o) => o ?? String(mf++));
|
|
5341
5343
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
5342
5344
|
}
|
|
5343
|
-
var Tn = "Collapsible", [hf] = xe(Tn), [gf,
|
|
5345
|
+
var Tn = "Collapsible", [hf] = xe(Tn), [gf, Vo] = hf(Tn), Zs = p.forwardRef(
|
|
5344
5346
|
(e, t) => {
|
|
5345
5347
|
const {
|
|
5346
5348
|
__scopeCollapsible: n,
|
|
@@ -5366,7 +5368,7 @@ var Tn = "Collapsible", [hf] = xe(Tn), [gf, Ho] = hf(Tn), Js = p.forwardRef(
|
|
|
5366
5368
|
children: /* @__PURE__ */ f(
|
|
5367
5369
|
Z.div,
|
|
5368
5370
|
{
|
|
5369
|
-
"data-state":
|
|
5371
|
+
"data-state": Uo(c),
|
|
5370
5372
|
"data-disabled": s ? "" : void 0,
|
|
5371
5373
|
...i,
|
|
5372
5374
|
ref: t
|
|
@@ -5376,17 +5378,17 @@ var Tn = "Collapsible", [hf] = xe(Tn), [gf, Ho] = hf(Tn), Js = p.forwardRef(
|
|
|
5376
5378
|
);
|
|
5377
5379
|
}
|
|
5378
5380
|
);
|
|
5379
|
-
|
|
5380
|
-
var
|
|
5381
|
+
Zs.displayName = Tn;
|
|
5382
|
+
var Js = "CollapsibleTrigger", Qs = p.forwardRef(
|
|
5381
5383
|
(e, t) => {
|
|
5382
|
-
const { __scopeCollapsible: n, ...o } = e, r =
|
|
5384
|
+
const { __scopeCollapsible: n, ...o } = e, r = Vo(Js, n);
|
|
5383
5385
|
return /* @__PURE__ */ f(
|
|
5384
5386
|
Z.button,
|
|
5385
5387
|
{
|
|
5386
5388
|
type: "button",
|
|
5387
5389
|
"aria-controls": r.contentId,
|
|
5388
5390
|
"aria-expanded": r.open || !1,
|
|
5389
|
-
"data-state":
|
|
5391
|
+
"data-state": Uo(r.open),
|
|
5390
5392
|
"data-disabled": r.disabled ? "" : void 0,
|
|
5391
5393
|
disabled: r.disabled,
|
|
5392
5394
|
...o,
|
|
@@ -5396,16 +5398,16 @@ var Qs = "CollapsibleTrigger", ea = p.forwardRef(
|
|
|
5396
5398
|
);
|
|
5397
5399
|
}
|
|
5398
5400
|
);
|
|
5399
|
-
|
|
5400
|
-
var
|
|
5401
|
+
Qs.displayName = Js;
|
|
5402
|
+
var Wo = "CollapsibleContent", ea = p.forwardRef(
|
|
5401
5403
|
(e, t) => {
|
|
5402
|
-
const { forceMount: n, ...o } = e, r =
|
|
5404
|
+
const { forceMount: n, ...o } = e, r = Vo(Wo, e.__scopeCollapsible);
|
|
5403
5405
|
return /* @__PURE__ */ f(De, { present: n || r.open, children: ({ present: s }) => /* @__PURE__ */ f(vf, { ...o, ref: t, present: s }) });
|
|
5404
5406
|
}
|
|
5405
5407
|
);
|
|
5406
|
-
|
|
5408
|
+
ea.displayName = Wo;
|
|
5407
5409
|
var vf = p.forwardRef((e, t) => {
|
|
5408
|
-
const { __scopeCollapsible: n, present: o, children: r, ...s } = e, a =
|
|
5410
|
+
const { __scopeCollapsible: n, present: o, children: r, ...s } = e, a = Vo(Wo, n), [i, c] = p.useState(o), d = p.useRef(null), u = ie(t, d), l = p.useRef(0), m = l.current, h = p.useRef(0), b = h.current, g = a.open || i, v = p.useRef(g), y = p.useRef(void 0);
|
|
5409
5411
|
return p.useEffect(() => {
|
|
5410
5412
|
const w = requestAnimationFrame(() => v.current = !1);
|
|
5411
5413
|
return () => cancelAnimationFrame(w);
|
|
@@ -5422,7 +5424,7 @@ var vf = p.forwardRef((e, t) => {
|
|
|
5422
5424
|
}, [a.open, o]), /* @__PURE__ */ f(
|
|
5423
5425
|
Z.div,
|
|
5424
5426
|
{
|
|
5425
|
-
"data-state":
|
|
5427
|
+
"data-state": Uo(a.open),
|
|
5426
5428
|
"data-disabled": a.disabled ? "" : void 0,
|
|
5427
5429
|
id: a.contentId,
|
|
5428
5430
|
hidden: !g,
|
|
@@ -5437,10 +5439,10 @@ var vf = p.forwardRef((e, t) => {
|
|
|
5437
5439
|
}
|
|
5438
5440
|
);
|
|
5439
5441
|
});
|
|
5440
|
-
function
|
|
5442
|
+
function Uo(e) {
|
|
5441
5443
|
return e ? "open" : "closed";
|
|
5442
5444
|
}
|
|
5443
|
-
var bf =
|
|
5445
|
+
var bf = Zs, yf = p.createContext(void 0);
|
|
5444
5446
|
function Yt(e) {
|
|
5445
5447
|
const t = p.useContext(yf);
|
|
5446
5448
|
return e || t || "ltr";
|
|
@@ -5463,11 +5465,11 @@ function wf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5463
5465
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
5464
5466
|
}, [n, t]);
|
|
5465
5467
|
}
|
|
5466
|
-
var xf = "DismissableLayer",
|
|
5468
|
+
var xf = "DismissableLayer", wo = "dismissableLayer.update", Sf = "dismissableLayer.pointerDownOutside", Cf = "dismissableLayer.focusOutside", Or, ta = p.createContext({
|
|
5467
5469
|
layers: /* @__PURE__ */ new Set(),
|
|
5468
5470
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5469
5471
|
branches: /* @__PURE__ */ new Set()
|
|
5470
|
-
}),
|
|
5472
|
+
}), jo = p.forwardRef(
|
|
5471
5473
|
(e, t) => {
|
|
5472
5474
|
const {
|
|
5473
5475
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -5477,7 +5479,7 @@ var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLa
|
|
|
5477
5479
|
onInteractOutside: a,
|
|
5478
5480
|
onDismiss: i,
|
|
5479
5481
|
...c
|
|
5480
|
-
} = e, d = p.useContext(
|
|
5482
|
+
} = e, d = p.useContext(ta), [u, l] = p.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = p.useState({}), b = ie(t, (N) => l(N)), g = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), w = u ? g.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, R = Nf((N) => {
|
|
5481
5483
|
const E = N.target, L = [...d.branches].some((W) => W.contains(E));
|
|
5482
5484
|
!C || L || (r == null || r(N), a == null || a(N), N.defaultPrevented || i == null || i());
|
|
5483
5485
|
}, m), T = Rf((N) => {
|
|
@@ -5495,7 +5497,7 @@ var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLa
|
|
|
5495
5497
|
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), Lr());
|
|
5496
5498
|
}, [u, d]), p.useEffect(() => {
|
|
5497
5499
|
const N = () => h({});
|
|
5498
|
-
return document.addEventListener(
|
|
5500
|
+
return document.addEventListener(wo, N), () => document.removeEventListener(wo, N);
|
|
5499
5501
|
}, []), /* @__PURE__ */ f(
|
|
5500
5502
|
Z.div,
|
|
5501
5503
|
{
|
|
@@ -5515,9 +5517,9 @@ var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLa
|
|
|
5515
5517
|
);
|
|
5516
5518
|
}
|
|
5517
5519
|
);
|
|
5518
|
-
|
|
5520
|
+
jo.displayName = xf;
|
|
5519
5521
|
var Ef = "DismissableLayerBranch", kf = p.forwardRef((e, t) => {
|
|
5520
|
-
const n = p.useContext(
|
|
5522
|
+
const n = p.useContext(ta), o = p.useRef(null), r = ie(t, o);
|
|
5521
5523
|
return p.useEffect(() => {
|
|
5522
5524
|
const s = o.current;
|
|
5523
5525
|
if (s)
|
|
@@ -5534,7 +5536,7 @@ function Nf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5534
5536
|
const s = (i) => {
|
|
5535
5537
|
if (i.target && !o.current) {
|
|
5536
5538
|
let c = function() {
|
|
5537
|
-
|
|
5539
|
+
na(
|
|
5538
5540
|
Sf,
|
|
5539
5541
|
n,
|
|
5540
5542
|
d,
|
|
@@ -5561,7 +5563,7 @@ function Rf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5561
5563
|
const n = be(e), o = p.useRef(!1);
|
|
5562
5564
|
return p.useEffect(() => {
|
|
5563
5565
|
const r = (s) => {
|
|
5564
|
-
s.target && !o.current &&
|
|
5566
|
+
s.target && !o.current && na(Cf, n, { originalEvent: s }, {
|
|
5565
5567
|
discrete: !1
|
|
5566
5568
|
});
|
|
5567
5569
|
};
|
|
@@ -5572,14 +5574,14 @@ function Rf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5572
5574
|
};
|
|
5573
5575
|
}
|
|
5574
5576
|
function Lr() {
|
|
5575
|
-
const e = new CustomEvent(
|
|
5577
|
+
const e = new CustomEvent(wo);
|
|
5576
5578
|
document.dispatchEvent(e);
|
|
5577
5579
|
}
|
|
5578
|
-
function
|
|
5580
|
+
function na(e, t, n, { discrete: o }) {
|
|
5579
5581
|
const r = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
5580
5582
|
t && r.addEventListener(e, t, { once: !0 }), o ? nf(r, s) : r.dispatchEvent(s);
|
|
5581
5583
|
}
|
|
5582
|
-
var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Dr = { bubbles: !1, cancelable: !0 }, Tf = "FocusScope",
|
|
5584
|
+
var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Dr = { bubbles: !1, cancelable: !0 }, Tf = "FocusScope", oa = p.forwardRef((e, t) => {
|
|
5583
5585
|
const {
|
|
5584
5586
|
loop: n = !1,
|
|
5585
5587
|
trapped: o = !1,
|
|
@@ -5622,7 +5624,7 @@ var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Dr
|
|
|
5622
5624
|
const g = document.activeElement;
|
|
5623
5625
|
if (!i.contains(g)) {
|
|
5624
5626
|
const y = new CustomEvent(Qn, Dr);
|
|
5625
|
-
i.addEventListener(Qn, d), i.dispatchEvent(y), y.defaultPrevented || (Pf(Of(
|
|
5627
|
+
i.addEventListener(Qn, d), i.dispatchEvent(y), y.defaultPrevented || (Pf(Of(ra(i)), { select: !0 }), document.activeElement === g && Qe(i));
|
|
5626
5628
|
}
|
|
5627
5629
|
return () => {
|
|
5628
5630
|
i.removeEventListener(Qn, d), setTimeout(() => {
|
|
@@ -5645,17 +5647,17 @@ var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Dr
|
|
|
5645
5647
|
);
|
|
5646
5648
|
return /* @__PURE__ */ f(Z.div, { tabIndex: -1, ...a, ref: m, onKeyDown: b });
|
|
5647
5649
|
});
|
|
5648
|
-
|
|
5650
|
+
oa.displayName = Tf;
|
|
5649
5651
|
function Pf(e, { select: t = !1 } = {}) {
|
|
5650
5652
|
const n = document.activeElement;
|
|
5651
5653
|
for (const o of e)
|
|
5652
5654
|
if (Qe(o, { select: t }), document.activeElement !== n) return;
|
|
5653
5655
|
}
|
|
5654
5656
|
function Af(e) {
|
|
5655
|
-
const t =
|
|
5657
|
+
const t = ra(e), n = zr(t, e), o = zr(t.reverse(), e);
|
|
5656
5658
|
return [n, o];
|
|
5657
5659
|
}
|
|
5658
|
-
function
|
|
5660
|
+
function ra(e) {
|
|
5659
5661
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
5660
5662
|
acceptNode: (o) => {
|
|
5661
5663
|
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
@@ -5708,14 +5710,14 @@ function Fr(e, t) {
|
|
|
5708
5710
|
function Of(e) {
|
|
5709
5711
|
return e.filter((t) => t.tagName !== "A");
|
|
5710
5712
|
}
|
|
5711
|
-
var Lf = "Portal",
|
|
5713
|
+
var Lf = "Portal", Go = p.forwardRef((e, t) => {
|
|
5712
5714
|
var i;
|
|
5713
5715
|
const { container: n, ...o } = e, [r, s] = p.useState(!1);
|
|
5714
5716
|
de(() => s(!0), []);
|
|
5715
5717
|
const a = n || r && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
5716
5718
|
return a ? hs.createPortal(/* @__PURE__ */ f(Z.div, { ...o, ref: t }), a) : null;
|
|
5717
5719
|
});
|
|
5718
|
-
|
|
5720
|
+
Go.displayName = Lf;
|
|
5719
5721
|
var to = 0;
|
|
5720
5722
|
function Df() {
|
|
5721
5723
|
p.useEffect(() => {
|
|
@@ -5738,7 +5740,7 @@ var Fe = function() {
|
|
|
5738
5740
|
return t;
|
|
5739
5741
|
}, Fe.apply(this, arguments);
|
|
5740
5742
|
};
|
|
5741
|
-
function
|
|
5743
|
+
function sa(e, t) {
|
|
5742
5744
|
var n = {};
|
|
5743
5745
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
5744
5746
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -5859,8 +5861,8 @@ function jf(e) {
|
|
|
5859
5861
|
var t = Uf(null);
|
|
5860
5862
|
return t.options = Fe({ async: !0, ssr: !1 }, e), t;
|
|
5861
5863
|
}
|
|
5862
|
-
var
|
|
5863
|
-
var t = e.sideCar, n =
|
|
5864
|
+
var aa = function(e) {
|
|
5865
|
+
var t = e.sideCar, n = sa(e, ["sideCar"]);
|
|
5864
5866
|
if (!t)
|
|
5865
5867
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
5866
5868
|
var o = t.read();
|
|
@@ -5868,21 +5870,21 @@ var ia = function(e) {
|
|
|
5868
5870
|
throw new Error("Sidecar medium not found");
|
|
5869
5871
|
return p.createElement(o, Fe({}, n));
|
|
5870
5872
|
};
|
|
5871
|
-
|
|
5873
|
+
aa.isSideCarExport = !0;
|
|
5872
5874
|
function Gf(e, t) {
|
|
5873
|
-
return e.useMedium(t),
|
|
5875
|
+
return e.useMedium(t), aa;
|
|
5874
5876
|
}
|
|
5875
|
-
var
|
|
5877
|
+
var ia = jf(), oo = function() {
|
|
5876
5878
|
}, Pn = p.forwardRef(function(e, t) {
|
|
5877
5879
|
var n = p.useRef(null), o = p.useState({
|
|
5878
5880
|
onScrollCapture: oo,
|
|
5879
5881
|
onWheelCapture: oo,
|
|
5880
5882
|
onTouchMoveCapture: oo
|
|
5881
|
-
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, g = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C =
|
|
5883
|
+
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, l = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, g = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = sa(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, T = Vf([n, t]), N = Fe(Fe({}, C), r);
|
|
5882
5884
|
return p.createElement(
|
|
5883
5885
|
p.Fragment,
|
|
5884
5886
|
null,
|
|
5885
|
-
u && p.createElement(R, { sideCar:
|
|
5887
|
+
u && p.createElement(R, { sideCar: ia, removeScrollBar: d, shards: l, noRelative: h, noIsolation: b, inert: g, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
|
|
5886
5888
|
a ? p.cloneElement(p.Children.only(i), Fe(Fe({}, N), { ref: T })) : p.createElement(w, Fe({}, N, { className: c, ref: T }), i)
|
|
5887
5889
|
);
|
|
5888
5890
|
});
|
|
@@ -5933,7 +5935,7 @@ var Zf = function() {
|
|
|
5933
5935
|
};
|
|
5934
5936
|
}, [t && n]);
|
|
5935
5937
|
};
|
|
5936
|
-
},
|
|
5938
|
+
}, ca = function() {
|
|
5937
5939
|
var e = Jf(), t = function(n) {
|
|
5938
5940
|
var o = n.styles, r = n.dynamic;
|
|
5939
5941
|
return e(o, r), null;
|
|
@@ -5959,7 +5961,7 @@ var Zf = function() {
|
|
|
5959
5961
|
right: t[2],
|
|
5960
5962
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
5961
5963
|
};
|
|
5962
|
-
}, np =
|
|
5964
|
+
}, np = ca(), Rt = "data-scroll-locked", op = function(e, t, n, o) {
|
|
5963
5965
|
var r = e.left, s = e.top, a = e.right, i = e.gap;
|
|
5964
5966
|
return n === void 0 && (n = "margin"), `
|
|
5965
5967
|
.`.concat($f, ` {
|
|
@@ -6020,21 +6022,21 @@ var Zf = function() {
|
|
|
6020
6022
|
return tp(r);
|
|
6021
6023
|
}, [r]);
|
|
6022
6024
|
return p.createElement(np, { styles: op(s, !t, r, n ? "" : "!important") });
|
|
6023
|
-
},
|
|
6025
|
+
}, xo = !1;
|
|
6024
6026
|
if (typeof window < "u")
|
|
6025
6027
|
try {
|
|
6026
6028
|
var an = Object.defineProperty({}, "passive", {
|
|
6027
6029
|
get: function() {
|
|
6028
|
-
return
|
|
6030
|
+
return xo = !0, !0;
|
|
6029
6031
|
}
|
|
6030
6032
|
});
|
|
6031
6033
|
window.addEventListener("test", an, an), window.removeEventListener("test", an, an);
|
|
6032
6034
|
} catch {
|
|
6033
|
-
|
|
6035
|
+
xo = !1;
|
|
6034
6036
|
}
|
|
6035
|
-
var xt =
|
|
6037
|
+
var xt = xo ? { passive: !1 } : !1, ap = function(e) {
|
|
6036
6038
|
return e.tagName === "TEXTAREA";
|
|
6037
|
-
},
|
|
6039
|
+
}, la = function(e, t) {
|
|
6038
6040
|
if (!(e instanceof Element))
|
|
6039
6041
|
return !1;
|
|
6040
6042
|
var n = window.getComputedStyle(e);
|
|
@@ -6044,16 +6046,16 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6044
6046
|
!(n.overflowY === n.overflowX && !ap(e) && n[t] === "visible")
|
|
6045
6047
|
);
|
|
6046
6048
|
}, ip = function(e) {
|
|
6047
|
-
return
|
|
6049
|
+
return la(e, "overflowY");
|
|
6048
6050
|
}, cp = function(e) {
|
|
6049
|
-
return
|
|
6051
|
+
return la(e, "overflowX");
|
|
6050
6052
|
}, Wr = function(e, t) {
|
|
6051
6053
|
var n = t.ownerDocument, o = t;
|
|
6052
6054
|
do {
|
|
6053
6055
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
6054
|
-
var r =
|
|
6056
|
+
var r = da(e, o);
|
|
6055
6057
|
if (r) {
|
|
6056
|
-
var s =
|
|
6058
|
+
var s = ua(e, o), a = s[1], i = s[2];
|
|
6057
6059
|
if (a > i)
|
|
6058
6060
|
return !0;
|
|
6059
6061
|
}
|
|
@@ -6074,9 +6076,9 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6074
6076
|
n,
|
|
6075
6077
|
o
|
|
6076
6078
|
];
|
|
6077
|
-
},
|
|
6079
|
+
}, da = function(e, t) {
|
|
6078
6080
|
return e === "v" ? ip(t) : cp(t);
|
|
6079
|
-
},
|
|
6081
|
+
}, ua = function(e, t) {
|
|
6080
6082
|
return e === "v" ? lp(t) : dp(t);
|
|
6081
6083
|
}, up = function(e, t) {
|
|
6082
6084
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
@@ -6085,8 +6087,8 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6085
6087
|
do {
|
|
6086
6088
|
if (!i)
|
|
6087
6089
|
break;
|
|
6088
|
-
var h =
|
|
6089
|
-
(b || y) &&
|
|
6090
|
+
var h = ua(e, i), b = h[0], g = h[1], v = h[2], y = g - v - s * b;
|
|
6091
|
+
(b || y) && da(e, i) && (l += y, m += b);
|
|
6090
6092
|
var w = i.parentNode;
|
|
6091
6093
|
i = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
6092
6094
|
} while (
|
|
@@ -6110,7 +6112,7 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6110
6112
|
`);
|
|
6111
6113
|
}, hp = 0, St = [];
|
|
6112
6114
|
function gp(e) {
|
|
6113
|
-
var t = p.useRef([]), n = p.useRef([0, 0]), o = p.useRef(), r = p.useState(hp++)[0], s = p.useState(
|
|
6115
|
+
var t = p.useRef([]), n = p.useRef([0, 0]), o = p.useRef(), r = p.useState(hp++)[0], s = p.useState(ca)[0], a = p.useRef(e);
|
|
6114
6116
|
p.useEffect(function() {
|
|
6115
6117
|
a.current = e;
|
|
6116
6118
|
}, [e]), p.useEffect(function() {
|
|
@@ -6199,23 +6201,23 @@ function vp(e) {
|
|
|
6199
6201
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6200
6202
|
return t;
|
|
6201
6203
|
}
|
|
6202
|
-
const bp = Gf(
|
|
6203
|
-
var
|
|
6204
|
+
const bp = Gf(ia, gp);
|
|
6205
|
+
var fa = p.forwardRef(function(e, t) {
|
|
6204
6206
|
return p.createElement(Pn, Fe({}, e, { ref: t, sideCar: bp }));
|
|
6205
6207
|
});
|
|
6206
|
-
|
|
6208
|
+
fa.classNames = Pn.classNames;
|
|
6207
6209
|
var yp = function(e) {
|
|
6208
6210
|
if (typeof document > "u")
|
|
6209
6211
|
return null;
|
|
6210
6212
|
var t = Array.isArray(e) ? e[0] : e;
|
|
6211
6213
|
return t.ownerDocument.body;
|
|
6212
|
-
}, Ct = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), dn = {}, so = 0,
|
|
6213
|
-
return e && (e.host ||
|
|
6214
|
+
}, Ct = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), dn = {}, so = 0, pa = function(e) {
|
|
6215
|
+
return e && (e.host || pa(e.parentNode));
|
|
6214
6216
|
}, wp = function(e, t) {
|
|
6215
6217
|
return t.map(function(n) {
|
|
6216
6218
|
if (e.contains(n))
|
|
6217
6219
|
return n;
|
|
6218
|
-
var o =
|
|
6220
|
+
var o = pa(n);
|
|
6219
6221
|
return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
6220
6222
|
}).filter(function(n) {
|
|
6221
6223
|
return !!n;
|
|
@@ -6319,7 +6321,7 @@ function Rp() {
|
|
|
6319
6321
|
return () => {
|
|
6320
6322
|
};
|
|
6321
6323
|
}
|
|
6322
|
-
var
|
|
6324
|
+
var Yo = "Avatar", [Tp] = xe(Yo), [Pp, ma] = Tp(Yo), ha = p.forwardRef(
|
|
6323
6325
|
(e, t) => {
|
|
6324
6326
|
const { __scopeAvatar: n, ...o } = e, [r, s] = p.useState("idle");
|
|
6325
6327
|
return /* @__PURE__ */ f(
|
|
@@ -6333,11 +6335,11 @@ var Go = "Avatar", [Tp] = xe(Go), [Pp, ha] = Tp(Go), ga = p.forwardRef(
|
|
|
6333
6335
|
);
|
|
6334
6336
|
}
|
|
6335
6337
|
);
|
|
6336
|
-
|
|
6337
|
-
var
|
|
6338
|
+
ha.displayName = Yo;
|
|
6339
|
+
var ga = "AvatarImage", va = p.forwardRef(
|
|
6338
6340
|
(e, t) => {
|
|
6339
6341
|
const { __scopeAvatar: n, src: o, onLoadingStatusChange: r = () => {
|
|
6340
|
-
}, ...s } = e, a =
|
|
6342
|
+
}, ...s } = e, a = ma(ga, n), i = Ap(o, s), c = be((d) => {
|
|
6341
6343
|
r(d), a.onImageLoadingStatusChange(d);
|
|
6342
6344
|
});
|
|
6343
6345
|
return de(() => {
|
|
@@ -6345,10 +6347,10 @@ var va = "AvatarImage", ba = p.forwardRef(
|
|
|
6345
6347
|
}, [i, c]), i === "loaded" ? /* @__PURE__ */ f(Z.img, { ...s, ref: t, src: o }) : null;
|
|
6346
6348
|
}
|
|
6347
6349
|
);
|
|
6348
|
-
|
|
6349
|
-
var
|
|
6350
|
+
va.displayName = ga;
|
|
6351
|
+
var ba = "AvatarFallback", ya = p.forwardRef(
|
|
6350
6352
|
(e, t) => {
|
|
6351
|
-
const { __scopeAvatar: n, delayMs: o, ...r } = e, s =
|
|
6353
|
+
const { __scopeAvatar: n, delayMs: o, ...r } = e, s = ma(ba, n), [a, i] = p.useState(o === void 0);
|
|
6352
6354
|
return p.useEffect(() => {
|
|
6353
6355
|
if (o !== void 0) {
|
|
6354
6356
|
const c = window.setTimeout(() => i(!0), o);
|
|
@@ -6357,7 +6359,7 @@ var ya = "AvatarFallback", wa = p.forwardRef(
|
|
|
6357
6359
|
}, [o]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ f(Z.span, { ...r, ref: t }) : null;
|
|
6358
6360
|
}
|
|
6359
6361
|
);
|
|
6360
|
-
|
|
6362
|
+
ya.displayName = ba;
|
|
6361
6363
|
function qr(e, t) {
|
|
6362
6364
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
6363
6365
|
}
|
|
@@ -6378,7 +6380,7 @@ function Ap(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
6378
6380
|
};
|
|
6379
6381
|
}, [s, n, t]), a;
|
|
6380
6382
|
}
|
|
6381
|
-
var _p =
|
|
6383
|
+
var _p = ha, Ip = va, Mp = ya;
|
|
6382
6384
|
function An(e) {
|
|
6383
6385
|
const t = p.useRef({ value: e, previous: e });
|
|
6384
6386
|
return p.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
@@ -6405,7 +6407,7 @@ function _n(e) {
|
|
|
6405
6407
|
n(void 0);
|
|
6406
6408
|
}, [e]), t;
|
|
6407
6409
|
}
|
|
6408
|
-
var In = "Checkbox", [Op] = xe(In), [Lp,
|
|
6410
|
+
var In = "Checkbox", [Op] = xe(In), [Lp, qo] = Op(In);
|
|
6409
6411
|
function Dp(e) {
|
|
6410
6412
|
const {
|
|
6411
6413
|
__scopeCheckbox: t,
|
|
@@ -6453,7 +6455,7 @@ function Dp(e) {
|
|
|
6453
6455
|
}
|
|
6454
6456
|
);
|
|
6455
6457
|
}
|
|
6456
|
-
var
|
|
6458
|
+
var wa = "CheckboxTrigger", xa = p.forwardRef(
|
|
6457
6459
|
({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...o }, r) => {
|
|
6458
6460
|
const {
|
|
6459
6461
|
control: s,
|
|
@@ -6466,7 +6468,7 @@ var xa = "CheckboxTrigger", Sa = p.forwardRef(
|
|
|
6466
6468
|
hasConsumerStoppedPropagationRef: m,
|
|
6467
6469
|
isFormControl: h,
|
|
6468
6470
|
bubbleInput: b
|
|
6469
|
-
} =
|
|
6471
|
+
} = qo(wa, e), g = ie(r, u), v = p.useRef(c);
|
|
6470
6472
|
return p.useEffect(() => {
|
|
6471
6473
|
const y = s == null ? void 0 : s.form;
|
|
6472
6474
|
if (y) {
|
|
@@ -6480,7 +6482,7 @@ var xa = "CheckboxTrigger", Sa = p.forwardRef(
|
|
|
6480
6482
|
role: "checkbox",
|
|
6481
6483
|
"aria-checked": et(c) ? "mixed" : c,
|
|
6482
6484
|
"aria-required": d,
|
|
6483
|
-
"data-state":
|
|
6485
|
+
"data-state": Ra(c),
|
|
6484
6486
|
"data-disabled": i ? "" : void 0,
|
|
6485
6487
|
disabled: i,
|
|
6486
6488
|
value: a,
|
|
@@ -6496,8 +6498,8 @@ var xa = "CheckboxTrigger", Sa = p.forwardRef(
|
|
|
6496
6498
|
);
|
|
6497
6499
|
}
|
|
6498
6500
|
);
|
|
6499
|
-
|
|
6500
|
-
var
|
|
6501
|
+
xa.displayName = wa;
|
|
6502
|
+
var Sa = p.forwardRef(
|
|
6501
6503
|
(e, t) => {
|
|
6502
6504
|
const {
|
|
6503
6505
|
__scopeCheckbox: n,
|
|
@@ -6525,7 +6527,7 @@ var Ca = p.forwardRef(
|
|
|
6525
6527
|
value: c,
|
|
6526
6528
|
internal_do_not_use_render: ({ isFormControl: m }) => /* @__PURE__ */ q(Ie, { children: [
|
|
6527
6529
|
/* @__PURE__ */ f(
|
|
6528
|
-
|
|
6530
|
+
xa,
|
|
6529
6531
|
{
|
|
6530
6532
|
...l,
|
|
6531
6533
|
ref: t,
|
|
@@ -6533,7 +6535,7 @@ var Ca = p.forwardRef(
|
|
|
6533
6535
|
}
|
|
6534
6536
|
),
|
|
6535
6537
|
m && /* @__PURE__ */ f(
|
|
6536
|
-
|
|
6538
|
+
Na,
|
|
6537
6539
|
{
|
|
6538
6540
|
__scopeCheckbox: n
|
|
6539
6541
|
}
|
|
@@ -6543,10 +6545,10 @@ var Ca = p.forwardRef(
|
|
|
6543
6545
|
);
|
|
6544
6546
|
}
|
|
6545
6547
|
);
|
|
6546
|
-
|
|
6547
|
-
var
|
|
6548
|
+
Sa.displayName = In;
|
|
6549
|
+
var Ca = "CheckboxIndicator", Ea = p.forwardRef(
|
|
6548
6550
|
(e, t) => {
|
|
6549
|
-
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s =
|
|
6551
|
+
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s = qo(Ca, n);
|
|
6550
6552
|
return /* @__PURE__ */ f(
|
|
6551
6553
|
De,
|
|
6552
6554
|
{
|
|
@@ -6554,7 +6556,7 @@ var Ea = "CheckboxIndicator", ka = p.forwardRef(
|
|
|
6554
6556
|
children: /* @__PURE__ */ f(
|
|
6555
6557
|
Z.span,
|
|
6556
6558
|
{
|
|
6557
|
-
"data-state":
|
|
6559
|
+
"data-state": Ra(s.checked),
|
|
6558
6560
|
"data-disabled": s.disabled ? "" : void 0,
|
|
6559
6561
|
...r,
|
|
6560
6562
|
ref: t,
|
|
@@ -6565,8 +6567,8 @@ var Ea = "CheckboxIndicator", ka = p.forwardRef(
|
|
|
6565
6567
|
);
|
|
6566
6568
|
}
|
|
6567
6569
|
);
|
|
6568
|
-
|
|
6569
|
-
var
|
|
6570
|
+
Ea.displayName = Ca;
|
|
6571
|
+
var ka = "CheckboxBubbleInput", Na = p.forwardRef(
|
|
6570
6572
|
({ __scopeCheckbox: e, ...t }, n) => {
|
|
6571
6573
|
const {
|
|
6572
6574
|
control: o,
|
|
@@ -6580,7 +6582,7 @@ var Na = "CheckboxBubbleInput", Ra = p.forwardRef(
|
|
|
6580
6582
|
form: l,
|
|
6581
6583
|
bubbleInput: m,
|
|
6582
6584
|
setBubbleInput: h
|
|
6583
|
-
} =
|
|
6585
|
+
} = qo(ka, e), b = ie(n, h), g = An(s), v = _n(o);
|
|
6584
6586
|
p.useEffect(() => {
|
|
6585
6587
|
const w = m;
|
|
6586
6588
|
if (!w) return;
|
|
@@ -6624,14 +6626,14 @@ var Na = "CheckboxBubbleInput", Ra = p.forwardRef(
|
|
|
6624
6626
|
);
|
|
6625
6627
|
}
|
|
6626
6628
|
);
|
|
6627
|
-
|
|
6629
|
+
Na.displayName = ka;
|
|
6628
6630
|
function zp(e) {
|
|
6629
6631
|
return typeof e == "function";
|
|
6630
6632
|
}
|
|
6631
6633
|
function et(e) {
|
|
6632
6634
|
return e === "indeterminate";
|
|
6633
6635
|
}
|
|
6634
|
-
function
|
|
6636
|
+
function Ra(e) {
|
|
6635
6637
|
return et(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
6636
6638
|
}
|
|
6637
6639
|
const $p = ["top", "right", "bottom", "left"], tt = Math.min, Ee = Math.max, vn = Math.round, un = Math.floor, He = (e) => ({
|
|
@@ -6643,7 +6645,7 @@ const $p = ["top", "right", "bottom", "left"], tt = Math.min, Ee = Math.max, vn
|
|
|
6643
6645
|
bottom: "top",
|
|
6644
6646
|
top: "bottom"
|
|
6645
6647
|
};
|
|
6646
|
-
function
|
|
6648
|
+
function So(e, t, n) {
|
|
6647
6649
|
return Ee(e, tt(t, n));
|
|
6648
6650
|
}
|
|
6649
6651
|
function Ge(e, t) {
|
|
@@ -6655,30 +6657,30 @@ function Ye(e) {
|
|
|
6655
6657
|
function Mt(e) {
|
|
6656
6658
|
return e.split("-")[1];
|
|
6657
6659
|
}
|
|
6658
|
-
function
|
|
6660
|
+
function Ko(e) {
|
|
6659
6661
|
return e === "x" ? "y" : "x";
|
|
6660
6662
|
}
|
|
6661
|
-
function
|
|
6663
|
+
function Xo(e) {
|
|
6662
6664
|
return e === "y" ? "height" : "width";
|
|
6663
6665
|
}
|
|
6664
6666
|
function Be(e) {
|
|
6665
6667
|
const t = e[0];
|
|
6666
6668
|
return t === "t" || t === "b" ? "y" : "x";
|
|
6667
6669
|
}
|
|
6668
|
-
function
|
|
6669
|
-
return
|
|
6670
|
+
function Zo(e) {
|
|
6671
|
+
return Ko(Be(e));
|
|
6670
6672
|
}
|
|
6671
6673
|
function Bp(e, t, n) {
|
|
6672
6674
|
n === void 0 && (n = !1);
|
|
6673
|
-
const o = Mt(e), r =
|
|
6675
|
+
const o = Mt(e), r = Zo(e), s = Xo(r);
|
|
6674
6676
|
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
6675
6677
|
return t.reference[s] > t.floating[s] && (a = bn(a)), [a, bn(a)];
|
|
6676
6678
|
}
|
|
6677
6679
|
function Hp(e) {
|
|
6678
6680
|
const t = bn(e);
|
|
6679
|
-
return [
|
|
6681
|
+
return [Co(e), t, Co(t)];
|
|
6680
6682
|
}
|
|
6681
|
-
function
|
|
6683
|
+
function Co(e) {
|
|
6682
6684
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
6683
6685
|
}
|
|
6684
6686
|
const Kr = ["left", "right"], Xr = ["right", "left"], Vp = ["top", "bottom"], Wp = ["bottom", "top"];
|
|
@@ -6697,7 +6699,7 @@ function Up(e, t, n) {
|
|
|
6697
6699
|
function jp(e, t, n, o) {
|
|
6698
6700
|
const r = Mt(e);
|
|
6699
6701
|
let s = Up(Ye(e), n === "start", o);
|
|
6700
|
-
return r && (s = s.map((a) => a + "-" + r), t && (s = s.concat(s.map(
|
|
6702
|
+
return r && (s = s.map((a) => a + "-" + r), t && (s = s.concat(s.map(Co)))), s;
|
|
6701
6703
|
}
|
|
6702
6704
|
function bn(e) {
|
|
6703
6705
|
const t = Ye(e);
|
|
@@ -6712,7 +6714,7 @@ function Gp(e) {
|
|
|
6712
6714
|
...e
|
|
6713
6715
|
};
|
|
6714
6716
|
}
|
|
6715
|
-
function
|
|
6717
|
+
function Ta(e) {
|
|
6716
6718
|
return typeof e != "number" ? Gp(e) : {
|
|
6717
6719
|
top: e,
|
|
6718
6720
|
right: e,
|
|
@@ -6743,7 +6745,7 @@ function Zr(e, t, n) {
|
|
|
6743
6745
|
reference: o,
|
|
6744
6746
|
floating: r
|
|
6745
6747
|
} = e;
|
|
6746
|
-
const s = Be(t), a =
|
|
6748
|
+
const s = Be(t), a = Zo(t), i = Xo(a), c = Ye(t), d = s === "y", u = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, m = o[i] / 2 - r[i] / 2;
|
|
6747
6749
|
let h;
|
|
6748
6750
|
switch (c) {
|
|
6749
6751
|
case "top":
|
|
@@ -6802,7 +6804,7 @@ async function Yp(e, t) {
|
|
|
6802
6804
|
elementContext: l = "floating",
|
|
6803
6805
|
altBoundary: m = !1,
|
|
6804
6806
|
padding: h = 0
|
|
6805
|
-
} = Ge(t, e), b =
|
|
6807
|
+
} = Ge(t, e), b = Ta(h), v = i[m ? l === "floating" ? "reference" : "floating" : l], y = yn(await s.getClippingRect({
|
|
6806
6808
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
6807
6809
|
boundary: d,
|
|
6808
6810
|
rootBoundary: u,
|
|
@@ -6913,13 +6915,13 @@ const qp = 50, Kp = async (e, t, n) => {
|
|
|
6913
6915
|
} = Ge(e, t) || {};
|
|
6914
6916
|
if (d == null)
|
|
6915
6917
|
return {};
|
|
6916
|
-
const l =
|
|
6918
|
+
const l = Ta(u), m = {
|
|
6917
6919
|
x: n,
|
|
6918
6920
|
y: o
|
|
6919
|
-
}, h =
|
|
6921
|
+
}, h = Zo(r), b = Xo(h), g = await a.getDimensions(d), v = h === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[h] - m[h] - s.floating[b], R = m[h] - s.reference[h], T = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
6920
6922
|
let N = T ? T[x] : 0;
|
|
6921
6923
|
(!N || !await (a.isElement == null ? void 0 : a.isElement(T))) && (N = i.floating[x] || s.floating[b]);
|
|
6922
|
-
const E = C / 2 - R / 2, L = N / 2 - g[b] / 2 - 1, W = tt(l[y], L), M = tt(l[w], L), F = W, H = N - g[b] - M, O = N / 2 - g[b] / 2 + E, K =
|
|
6924
|
+
const E = C / 2 - R / 2, L = N / 2 - g[b] / 2 - 1, W = tt(l[y], L), M = tt(l[w], L), F = W, H = N - g[b] - M, O = N / 2 - g[b] / 2 + E, K = So(F, O, H), A = !c.arrow && Mt(r) != null && O !== K && s.reference[b] / 2 - (O < F ? W : M) - g[b] / 2 < 0, D = A ? O < F ? O - F : O - H : 0;
|
|
6923
6925
|
return {
|
|
6924
6926
|
[h]: m[h] + D,
|
|
6925
6927
|
data: {
|
|
@@ -7067,13 +7069,13 @@ const Jp = function(e) {
|
|
|
7067
7069
|
}
|
|
7068
7070
|
}
|
|
7069
7071
|
};
|
|
7070
|
-
},
|
|
7072
|
+
}, Pa = /* @__PURE__ */ new Set(["left", "top"]);
|
|
7071
7073
|
async function Qp(e, t) {
|
|
7072
7074
|
const {
|
|
7073
7075
|
placement: n,
|
|
7074
7076
|
platform: o,
|
|
7075
7077
|
elements: r
|
|
7076
|
-
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Ye(n), i = Mt(n), c = Be(n) === "y", d =
|
|
7078
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Ye(n), i = Mt(n), c = Be(n) === "y", d = Pa.has(a) ? -1 : 1, u = s && c ? -1 : 1, l = Ge(t, e);
|
|
7077
7079
|
let {
|
|
7078
7080
|
mainAxis: m,
|
|
7079
7081
|
crossAxis: h,
|
|
@@ -7146,15 +7148,15 @@ const em = function(e) {
|
|
|
7146
7148
|
} = Ge(e, t), u = {
|
|
7147
7149
|
x: n,
|
|
7148
7150
|
y: o
|
|
7149
|
-
}, l = await s.detectOverflow(t, d), m = Be(Ye(r)), h =
|
|
7151
|
+
}, l = await s.detectOverflow(t, d), m = Be(Ye(r)), h = Ko(m);
|
|
7150
7152
|
let b = u[h], g = u[m];
|
|
7151
7153
|
if (a) {
|
|
7152
7154
|
const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = b + l[y], C = b - l[w];
|
|
7153
|
-
b =
|
|
7155
|
+
b = So(x, b, C);
|
|
7154
7156
|
}
|
|
7155
7157
|
if (i) {
|
|
7156
7158
|
const y = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", x = g + l[y], C = g - l[w];
|
|
7157
|
-
g =
|
|
7159
|
+
g = So(x, g, C);
|
|
7158
7160
|
}
|
|
7159
7161
|
const v = c.fn({
|
|
7160
7162
|
...t,
|
|
@@ -7191,7 +7193,7 @@ const em = function(e) {
|
|
|
7191
7193
|
} = Ge(e, t), u = {
|
|
7192
7194
|
x: n,
|
|
7193
7195
|
y: o
|
|
7194
|
-
}, l = Be(r), m =
|
|
7196
|
+
}, l = Be(r), m = Ko(l);
|
|
7195
7197
|
let h = u[m], b = u[l];
|
|
7196
7198
|
const g = Ge(i, t), v = typeof g == "number" ? {
|
|
7197
7199
|
mainAxis: g,
|
|
@@ -7207,7 +7209,7 @@ const em = function(e) {
|
|
|
7207
7209
|
}
|
|
7208
7210
|
if (d) {
|
|
7209
7211
|
var y, w;
|
|
7210
|
-
const x = m === "y" ? "width" : "height", C =
|
|
7212
|
+
const x = m === "y" ? "width" : "height", C = Pa.has(Ye(r)), R = s.reference[l] - s.floating[x] + (C && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (C ? 0 : v.crossAxis), T = s.reference[l] + s.reference[x] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[l]) || 0) - (C ? v.crossAxis : 0);
|
|
7211
7213
|
b < R ? b = R : b > T && (b = T);
|
|
7212
7214
|
}
|
|
7213
7215
|
return {
|
|
@@ -7261,7 +7263,7 @@ function Mn() {
|
|
|
7261
7263
|
return typeof window < "u";
|
|
7262
7264
|
}
|
|
7263
7265
|
function Ot(e) {
|
|
7264
|
-
return
|
|
7266
|
+
return Aa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7265
7267
|
}
|
|
7266
7268
|
function ke(e) {
|
|
7267
7269
|
var t;
|
|
@@ -7269,9 +7271,9 @@ function ke(e) {
|
|
|
7269
7271
|
}
|
|
7270
7272
|
function Ve(e) {
|
|
7271
7273
|
var t;
|
|
7272
|
-
return (t = (
|
|
7274
|
+
return (t = (Aa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7273
7275
|
}
|
|
7274
|
-
function
|
|
7276
|
+
function Aa(e) {
|
|
7275
7277
|
return Mn() ? e instanceof Node || e instanceof ke(e).Node : !1;
|
|
7276
7278
|
}
|
|
7277
7279
|
function Oe(e) {
|
|
@@ -7309,14 +7311,14 @@ function On(e) {
|
|
|
7309
7311
|
}
|
|
7310
7312
|
const sm = /transform|translate|scale|rotate|perspective|filter/, am = /paint|layout|strict|content/, lt = (e) => !!e && e !== "none";
|
|
7311
7313
|
let co;
|
|
7312
|
-
function
|
|
7314
|
+
function Jo(e) {
|
|
7313
7315
|
const t = Oe(e) ? Le(e) : e;
|
|
7314
|
-
return lt(t.transform) || lt(t.translate) || lt(t.scale) || lt(t.rotate) || lt(t.perspective) || !
|
|
7316
|
+
return lt(t.transform) || lt(t.translate) || lt(t.scale) || lt(t.rotate) || lt(t.perspective) || !Qo() && (lt(t.backdropFilter) || lt(t.filter)) || sm.test(t.willChange || "") || am.test(t.contain || "");
|
|
7315
7317
|
}
|
|
7316
7318
|
function im(e) {
|
|
7317
7319
|
let t = nt(e);
|
|
7318
7320
|
for (; qe(t) && !At(t); ) {
|
|
7319
|
-
if (
|
|
7321
|
+
if (Jo(t))
|
|
7320
7322
|
return t;
|
|
7321
7323
|
if (On(t))
|
|
7322
7324
|
return null;
|
|
@@ -7324,7 +7326,7 @@ function im(e) {
|
|
|
7324
7326
|
}
|
|
7325
7327
|
return null;
|
|
7326
7328
|
}
|
|
7327
|
-
function
|
|
7329
|
+
function Qo() {
|
|
7328
7330
|
return co == null && (co = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), co;
|
|
7329
7331
|
}
|
|
7330
7332
|
function At(e) {
|
|
@@ -7354,24 +7356,24 @@ function nt(e) {
|
|
|
7354
7356
|
);
|
|
7355
7357
|
return es(t) ? t.host : t;
|
|
7356
7358
|
}
|
|
7357
|
-
function
|
|
7359
|
+
function _a(e) {
|
|
7358
7360
|
const t = nt(e);
|
|
7359
|
-
return At(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : qe(t) && qt(t) ? t :
|
|
7361
|
+
return At(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : qe(t) && qt(t) ? t : _a(t);
|
|
7360
7362
|
}
|
|
7361
7363
|
function Ut(e, t, n) {
|
|
7362
7364
|
var o;
|
|
7363
7365
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
7364
|
-
const r =
|
|
7366
|
+
const r = _a(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = ke(r);
|
|
7365
7367
|
if (s) {
|
|
7366
|
-
const i =
|
|
7368
|
+
const i = Eo(a);
|
|
7367
7369
|
return t.concat(a, a.visualViewport || [], qt(r) ? r : [], i && n ? Ut(i) : []);
|
|
7368
7370
|
} else
|
|
7369
7371
|
return t.concat(r, Ut(r, [], n));
|
|
7370
7372
|
}
|
|
7371
|
-
function
|
|
7373
|
+
function Eo(e) {
|
|
7372
7374
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
7373
7375
|
}
|
|
7374
|
-
function
|
|
7376
|
+
function Ia(e) {
|
|
7375
7377
|
const t = Le(e);
|
|
7376
7378
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
7377
7379
|
const r = qe(e), s = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = vn(n) !== s || vn(o) !== a;
|
|
@@ -7381,18 +7383,18 @@ function Ma(e) {
|
|
|
7381
7383
|
$: i
|
|
7382
7384
|
};
|
|
7383
7385
|
}
|
|
7384
|
-
function
|
|
7386
|
+
function er(e) {
|
|
7385
7387
|
return Oe(e) ? e : e.contextElement;
|
|
7386
7388
|
}
|
|
7387
7389
|
function Tt(e) {
|
|
7388
|
-
const t =
|
|
7390
|
+
const t = er(e);
|
|
7389
7391
|
if (!qe(t))
|
|
7390
7392
|
return He(1);
|
|
7391
7393
|
const n = t.getBoundingClientRect(), {
|
|
7392
7394
|
width: o,
|
|
7393
7395
|
height: r,
|
|
7394
7396
|
$: s
|
|
7395
|
-
} =
|
|
7397
|
+
} = Ia(t);
|
|
7396
7398
|
let a = (s ? vn(n.width) : n.width) / o, i = (s ? vn(n.height) : n.height) / r;
|
|
7397
7399
|
return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
7398
7400
|
x: a,
|
|
@@ -7400,9 +7402,9 @@ function Tt(e) {
|
|
|
7400
7402
|
};
|
|
7401
7403
|
}
|
|
7402
7404
|
const cm = /* @__PURE__ */ He(0);
|
|
7403
|
-
function
|
|
7405
|
+
function Ma(e) {
|
|
7404
7406
|
const t = ke(e);
|
|
7405
|
-
return !
|
|
7407
|
+
return !Qo() || !t.visualViewport ? cm : {
|
|
7406
7408
|
x: t.visualViewport.offsetLeft,
|
|
7407
7409
|
y: t.visualViewport.offsetTop
|
|
7408
7410
|
};
|
|
@@ -7412,17 +7414,17 @@ function lm(e, t, n) {
|
|
|
7412
7414
|
}
|
|
7413
7415
|
function ut(e, t, n, o) {
|
|
7414
7416
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7415
|
-
const r = e.getBoundingClientRect(), s =
|
|
7417
|
+
const r = e.getBoundingClientRect(), s = er(e);
|
|
7416
7418
|
let a = He(1);
|
|
7417
7419
|
t && (o ? Oe(o) && (a = Tt(o)) : a = Tt(e));
|
|
7418
|
-
const i = lm(s, n, o) ?
|
|
7420
|
+
const i = lm(s, n, o) ? Ma(s) : He(0);
|
|
7419
7421
|
let c = (r.left + i.x) / a.x, d = (r.top + i.y) / a.y, u = r.width / a.x, l = r.height / a.y;
|
|
7420
7422
|
if (s) {
|
|
7421
7423
|
const m = ke(s), h = o && Oe(o) ? ke(o) : o;
|
|
7422
|
-
let b = m, g =
|
|
7424
|
+
let b = m, g = Eo(b);
|
|
7423
7425
|
for (; g && o && h !== b; ) {
|
|
7424
7426
|
const v = Tt(g), y = g.getBoundingClientRect(), w = Le(g), x = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, C = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
7425
|
-
c *= v.x, d *= v.y, u *= v.x, l *= v.y, c += x, d += C, b = ke(g), g =
|
|
7427
|
+
c *= v.x, d *= v.y, u *= v.x, l *= v.y, c += x, d += C, b = ke(g), g = Eo(b);
|
|
7426
7428
|
}
|
|
7427
7429
|
}
|
|
7428
7430
|
return yn({
|
|
@@ -7436,7 +7438,7 @@ function Dn(e, t) {
|
|
|
7436
7438
|
const n = Ln(e).scrollLeft;
|
|
7437
7439
|
return t ? t.left + n : ut(Ve(e)).left + n;
|
|
7438
7440
|
}
|
|
7439
|
-
function
|
|
7441
|
+
function Oa(e, t) {
|
|
7440
7442
|
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Dn(e, n), r = n.top + t.scrollTop;
|
|
7441
7443
|
return {
|
|
7442
7444
|
x: o,
|
|
@@ -7462,7 +7464,7 @@ function dm(e) {
|
|
|
7462
7464
|
const h = ut(o);
|
|
7463
7465
|
d = Tt(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
|
|
7464
7466
|
}
|
|
7465
|
-
const m = a && !l && !s ?
|
|
7467
|
+
const m = a && !l && !s ? Oa(a, c) : He(0);
|
|
7466
7468
|
return {
|
|
7467
7469
|
width: n.width * d.x,
|
|
7468
7470
|
height: n.height * d.y,
|
|
@@ -7490,7 +7492,7 @@ function pm(e, t) {
|
|
|
7490
7492
|
let s = o.clientWidth, a = o.clientHeight, i = 0, c = 0;
|
|
7491
7493
|
if (r) {
|
|
7492
7494
|
s = r.width, a = r.height;
|
|
7493
|
-
const u =
|
|
7495
|
+
const u = Qo();
|
|
7494
7496
|
(!u || u && t === "fixed") && (i = r.offsetLeft, c = r.offsetTop);
|
|
7495
7497
|
}
|
|
7496
7498
|
const d = Dn(o);
|
|
@@ -7523,7 +7525,7 @@ function ns(e, t, n) {
|
|
|
7523
7525
|
else if (Oe(t))
|
|
7524
7526
|
o = mm(t, n);
|
|
7525
7527
|
else {
|
|
7526
|
-
const r =
|
|
7528
|
+
const r = Ma(e);
|
|
7527
7529
|
o = {
|
|
7528
7530
|
x: t.x - r.x,
|
|
7529
7531
|
y: t.y - r.y,
|
|
@@ -7533,9 +7535,9 @@ function ns(e, t, n) {
|
|
|
7533
7535
|
}
|
|
7534
7536
|
return yn(o);
|
|
7535
7537
|
}
|
|
7536
|
-
function
|
|
7538
|
+
function La(e, t) {
|
|
7537
7539
|
const n = nt(e);
|
|
7538
|
-
return n === t || !Oe(n) || At(n) ? !1 : Le(n).position === "fixed" ||
|
|
7540
|
+
return n === t || !Oe(n) || At(n) ? !1 : Le(n).position === "fixed" || La(n, t);
|
|
7539
7541
|
}
|
|
7540
7542
|
function hm(e, t) {
|
|
7541
7543
|
const n = t.get(e);
|
|
@@ -7545,8 +7547,8 @@ function hm(e, t) {
|
|
|
7545
7547
|
const s = Le(e).position === "fixed";
|
|
7546
7548
|
let a = s ? nt(e) : e;
|
|
7547
7549
|
for (; Oe(a) && !At(a); ) {
|
|
7548
|
-
const i = Le(a), c =
|
|
7549
|
-
!c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || qt(a) && !c &&
|
|
7550
|
+
const i = Le(a), c = Jo(a);
|
|
7551
|
+
!c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || qt(a) && !c && La(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = nt(a);
|
|
7550
7552
|
}
|
|
7551
7553
|
return t.set(e, o), o;
|
|
7552
7554
|
}
|
|
@@ -7574,7 +7576,7 @@ function vm(e) {
|
|
|
7574
7576
|
const {
|
|
7575
7577
|
width: t,
|
|
7576
7578
|
height: n
|
|
7577
|
-
} =
|
|
7579
|
+
} = Ia(e);
|
|
7578
7580
|
return {
|
|
7579
7581
|
width: t,
|
|
7580
7582
|
height: n
|
|
@@ -7596,7 +7598,7 @@ function bm(e, t, n) {
|
|
|
7596
7598
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
7597
7599
|
} else r && d();
|
|
7598
7600
|
s && !o && r && d();
|
|
7599
|
-
const u = r && !o && !s ?
|
|
7601
|
+
const u = r && !o && !s ? Oa(r, i) : He(0), l = a.left + i.scrollLeft - c.x - u.x, m = a.top + i.scrollTop - c.y - u.y;
|
|
7600
7602
|
return {
|
|
7601
7603
|
x: l,
|
|
7602
7604
|
y: m,
|
|
@@ -7615,7 +7617,7 @@ function os(e, t) {
|
|
|
7615
7617
|
let n = e.offsetParent;
|
|
7616
7618
|
return Ve(e) === n && (n = n.ownerDocument.body), n;
|
|
7617
7619
|
}
|
|
7618
|
-
function
|
|
7620
|
+
function Da(e, t) {
|
|
7619
7621
|
const n = ke(e);
|
|
7620
7622
|
if (On(e))
|
|
7621
7623
|
return n;
|
|
@@ -7631,10 +7633,10 @@ function za(e, t) {
|
|
|
7631
7633
|
let o = os(e, t);
|
|
7632
7634
|
for (; o && rm(o) && lo(o); )
|
|
7633
7635
|
o = os(o, t);
|
|
7634
|
-
return o && At(o) && lo(o) && !
|
|
7636
|
+
return o && At(o) && lo(o) && !Jo(o) ? n : o || im(e) || n;
|
|
7635
7637
|
}
|
|
7636
7638
|
const ym = async function(e) {
|
|
7637
|
-
const t = this.getOffsetParent ||
|
|
7639
|
+
const t = this.getOffsetParent || Da, n = this.getDimensions, o = await n(e.floating);
|
|
7638
7640
|
return {
|
|
7639
7641
|
reference: bm(e.reference, await t(e.floating), e.strategy),
|
|
7640
7642
|
floating: {
|
|
@@ -7652,7 +7654,7 @@ const xm = {
|
|
|
7652
7654
|
convertOffsetParentRelativeRectToViewportRelativeRect: dm,
|
|
7653
7655
|
getDocumentElement: Ve,
|
|
7654
7656
|
getClippingRect: gm,
|
|
7655
|
-
getOffsetParent:
|
|
7657
|
+
getOffsetParent: Da,
|
|
7656
7658
|
getElementRects: ym,
|
|
7657
7659
|
getClientRects: um,
|
|
7658
7660
|
getDimensions: vm,
|
|
@@ -7660,7 +7662,7 @@ const xm = {
|
|
|
7660
7662
|
isElement: Oe,
|
|
7661
7663
|
isRTL: wm
|
|
7662
7664
|
};
|
|
7663
|
-
function
|
|
7665
|
+
function za(e, t) {
|
|
7664
7666
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
7665
7667
|
}
|
|
7666
7668
|
function Sm(e, t) {
|
|
@@ -7694,7 +7696,7 @@ function Sm(e, t) {
|
|
|
7694
7696
|
a(!1, 1e-7);
|
|
7695
7697
|
}, 1e3);
|
|
7696
7698
|
}
|
|
7697
|
-
N === 1 &&
|
|
7699
|
+
N === 1 && !za(d, e.getBoundingClientRect()) && a(), C = !1;
|
|
7698
7700
|
}
|
|
7699
7701
|
try {
|
|
7700
7702
|
n = new IntersectionObserver(R, {
|
|
@@ -7717,7 +7719,7 @@ function Cm(e, t, n, o) {
|
|
|
7717
7719
|
elementResize: a = typeof ResizeObserver == "function",
|
|
7718
7720
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
7719
7721
|
animationFrame: c = !1
|
|
7720
|
-
} = o, d =
|
|
7722
|
+
} = o, d = er(e), u = r || s ? [...d ? Ut(d) : [], ...t ? Ut(t) : []] : [];
|
|
7721
7723
|
u.forEach((y) => {
|
|
7722
7724
|
r && y.addEventListener("scroll", n, {
|
|
7723
7725
|
passive: !0
|
|
@@ -7736,7 +7738,7 @@ function Cm(e, t, n, o) {
|
|
|
7736
7738
|
c && v();
|
|
7737
7739
|
function v() {
|
|
7738
7740
|
const y = ut(e);
|
|
7739
|
-
g &&
|
|
7741
|
+
g && !za(g, y) && n(), g = y, b = requestAnimationFrame(v);
|
|
7740
7742
|
}
|
|
7741
7743
|
return n(), () => {
|
|
7742
7744
|
var y;
|
|
@@ -7759,7 +7761,7 @@ const Em = em, km = tm, Nm = Zp, Rm = om, Tm = Jp, rs = Xp, Pm = nm, Am = (e, t,
|
|
|
7759
7761
|
});
|
|
7760
7762
|
};
|
|
7761
7763
|
var _m = typeof document < "u", Im = function() {
|
|
7762
|
-
}, mn = _m ?
|
|
7764
|
+
}, mn = _m ? el : Im;
|
|
7763
7765
|
function wn(e, t) {
|
|
7764
7766
|
if (e === t)
|
|
7765
7767
|
return !0;
|
|
@@ -7790,11 +7792,11 @@ function wn(e, t) {
|
|
|
7790
7792
|
}
|
|
7791
7793
|
return e !== e && t !== t;
|
|
7792
7794
|
}
|
|
7793
|
-
function
|
|
7795
|
+
function $a(e) {
|
|
7794
7796
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
7795
7797
|
}
|
|
7796
7798
|
function ss(e, t) {
|
|
7797
|
-
const n =
|
|
7799
|
+
const n = $a(e);
|
|
7798
7800
|
return Math.round(t * n) / n;
|
|
7799
7801
|
}
|
|
7800
7802
|
function uo(e) {
|
|
@@ -7888,7 +7890,7 @@ function Mm(e) {
|
|
|
7888
7890
|
return i ? {
|
|
7889
7891
|
...U,
|
|
7890
7892
|
transform: "translate(" + k + "px, " + S + "px)",
|
|
7891
|
-
|
|
7893
|
+
...$a(A.floating) >= 1.5 && {
|
|
7892
7894
|
willChange: "transform"
|
|
7893
7895
|
}
|
|
7894
7896
|
} : {
|
|
@@ -7972,7 +7974,7 @@ const Om = (e) => {
|
|
|
7972
7974
|
options: [e, t]
|
|
7973
7975
|
};
|
|
7974
7976
|
};
|
|
7975
|
-
var Vm = "Arrow",
|
|
7977
|
+
var Vm = "Arrow", Fa = p.forwardRef((e, t) => {
|
|
7976
7978
|
const { children: n, width: o = 10, height: r = 5, ...s } = e;
|
|
7977
7979
|
return /* @__PURE__ */ f(
|
|
7978
7980
|
Z.svg,
|
|
@@ -7987,23 +7989,23 @@ var Vm = "Arrow", Ba = p.forwardRef((e, t) => {
|
|
|
7987
7989
|
}
|
|
7988
7990
|
);
|
|
7989
7991
|
});
|
|
7990
|
-
|
|
7991
|
-
var Wm =
|
|
7992
|
+
Fa.displayName = Vm;
|
|
7993
|
+
var Wm = Fa, tr = "Popper", [Ba, zn] = xe(tr), [Um, Ha] = Ba(tr), Va = (e) => {
|
|
7992
7994
|
const { __scopePopper: t, children: n } = e, [o, r] = p.useState(null);
|
|
7993
7995
|
return /* @__PURE__ */ f(Um, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
7994
7996
|
};
|
|
7995
|
-
|
|
7996
|
-
var
|
|
7997
|
+
Va.displayName = tr;
|
|
7998
|
+
var Wa = "PopperAnchor", Ua = p.forwardRef(
|
|
7997
7999
|
(e, t) => {
|
|
7998
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, s =
|
|
8000
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, s = Ha(Wa, n), a = p.useRef(null), i = ie(t, a), c = p.useRef(null);
|
|
7999
8001
|
return p.useEffect(() => {
|
|
8000
8002
|
const d = c.current;
|
|
8001
8003
|
c.current = (o == null ? void 0 : o.current) || a.current, d !== c.current && s.onAnchorChange(c.current);
|
|
8002
8004
|
}), o ? null : /* @__PURE__ */ f(Z.div, { ...r, ref: i });
|
|
8003
8005
|
}
|
|
8004
8006
|
);
|
|
8005
|
-
|
|
8006
|
-
var
|
|
8007
|
+
Ua.displayName = Wa;
|
|
8008
|
+
var nr = "PopperContent", [jm, Gm] = Ba(nr), ja = p.forwardRef(
|
|
8007
8009
|
(e, t) => {
|
|
8008
8010
|
var j, Y, ee, te, se, oe;
|
|
8009
8011
|
const {
|
|
@@ -8021,7 +8023,7 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
|
|
|
8021
8023
|
updatePositionStrategy: h = "optimized",
|
|
8022
8024
|
onPlaced: b,
|
|
8023
8025
|
...g
|
|
8024
|
-
} = e, v =
|
|
8026
|
+
} = e, v = Ha(nr, n), [y, w] = p.useState(null), x = ie(t, (ue) => w(ue)), [C, R] = p.useState(null), T = _n(C), N = (T == null ? void 0 : T.width) ?? 0, E = (T == null ? void 0 : T.height) ?? 0, L = o + (s !== "center" ? "-" + s : ""), W = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, M = Array.isArray(d) ? d : [d], F = M.length > 0, H = {
|
|
8025
8027
|
padding: W,
|
|
8026
8028
|
boundary: M.filter(qm),
|
|
8027
8029
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -8056,7 +8058,7 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
|
|
|
8056
8058
|
Km({ arrowWidth: N, arrowHeight: E }),
|
|
8057
8059
|
m && Bm({ strategy: "referenceHidden", ...H })
|
|
8058
8060
|
]
|
|
8059
|
-
}), [k, S] =
|
|
8061
|
+
}), [k, S] = qa(A), _ = be(b);
|
|
8060
8062
|
de(() => {
|
|
8061
8063
|
D && (_ == null || _());
|
|
8062
8064
|
}, [D, _]);
|
|
@@ -8117,14 +8119,14 @@ var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
|
|
|
8117
8119
|
);
|
|
8118
8120
|
}
|
|
8119
8121
|
);
|
|
8120
|
-
|
|
8121
|
-
var
|
|
8122
|
+
ja.displayName = nr;
|
|
8123
|
+
var Ga = "PopperArrow", Ym = {
|
|
8122
8124
|
top: "bottom",
|
|
8123
8125
|
right: "left",
|
|
8124
8126
|
bottom: "top",
|
|
8125
8127
|
left: "right"
|
|
8126
|
-
},
|
|
8127
|
-
const { __scopePopper: o, ...r } = t, s = Gm(
|
|
8128
|
+
}, Ya = p.forwardRef(function(t, n) {
|
|
8129
|
+
const { __scopePopper: o, ...r } = t, s = Gm(Ga, o), a = Ym[s.placedSide];
|
|
8128
8130
|
return (
|
|
8129
8131
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
8130
8132
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -8168,7 +8170,7 @@ var Ya = "PopperArrow", Ym = {
|
|
|
8168
8170
|
)
|
|
8169
8171
|
);
|
|
8170
8172
|
});
|
|
8171
|
-
|
|
8173
|
+
Ya.displayName = Ga;
|
|
8172
8174
|
function qm(e) {
|
|
8173
8175
|
return e !== null;
|
|
8174
8176
|
}
|
|
@@ -8177,22 +8179,22 @@ var Km = (e) => ({
|
|
|
8177
8179
|
options: e,
|
|
8178
8180
|
fn(t) {
|
|
8179
8181
|
var v, y, w;
|
|
8180
|
-
const { placement: n, rects: o, middlewareData: r } = t, a = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [d, u] =
|
|
8182
|
+
const { placement: n, rects: o, middlewareData: r } = t, a = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [d, u] = qa(n), l = { start: "0%", center: "50%", end: "100%" }[u], m = (((y = r.arrow) == null ? void 0 : y.x) ?? 0) + i / 2, h = (((w = r.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
8181
8183
|
let b = "", g = "";
|
|
8182
8184
|
return d === "bottom" ? (b = a ? l : `${m}px`, g = `${-c}px`) : d === "top" ? (b = a ? l : `${m}px`, g = `${o.floating.height + c}px`) : d === "right" ? (b = `${-c}px`, g = a ? l : `${h}px`) : d === "left" && (b = `${o.floating.width + c}px`, g = a ? l : `${h}px`), { data: { x: b, y: g } };
|
|
8183
8185
|
}
|
|
8184
8186
|
});
|
|
8185
|
-
function
|
|
8187
|
+
function qa(e) {
|
|
8186
8188
|
const [t, n = "center"] = e.split("-");
|
|
8187
8189
|
return [t, n];
|
|
8188
8190
|
}
|
|
8189
|
-
var
|
|
8191
|
+
var Ka = Va, Xa = Ua, Za = ja, Ja = Ya, fo = "rovingFocusGroup.onEntryFocus", Xm = { bubbles: !1, cancelable: !0 }, Kt = "RovingFocusGroup", [ko, Qa, Zm] = Xs(Kt), [Jm, $n] = xe(
|
|
8190
8192
|
Kt,
|
|
8191
8193
|
[Zm]
|
|
8192
|
-
), [Qm, eh] = Jm(Kt),
|
|
8193
|
-
(e, t) => /* @__PURE__ */ f(
|
|
8194
|
+
), [Qm, eh] = Jm(Kt), ei = p.forwardRef(
|
|
8195
|
+
(e, t) => /* @__PURE__ */ f(ko.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(ko.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(th, { ...e, ref: t }) }) })
|
|
8194
8196
|
);
|
|
8195
|
-
|
|
8197
|
+
ei.displayName = Kt;
|
|
8196
8198
|
var th = p.forwardRef((e, t) => {
|
|
8197
8199
|
const {
|
|
8198
8200
|
__scopeRovingFocusGroup: n,
|
|
@@ -8210,7 +8212,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8210
8212
|
defaultProp: i ?? null,
|
|
8211
8213
|
onChange: c,
|
|
8212
8214
|
caller: Kt
|
|
8213
|
-
}), [y, w] = p.useState(!1), x = be(d), C =
|
|
8215
|
+
}), [y, w] = p.useState(!1), x = be(d), C = Qa(n), R = p.useRef(!1), [T, N] = p.useState(0);
|
|
8214
8216
|
return p.useEffect(() => {
|
|
8215
8217
|
const E = m.current;
|
|
8216
8218
|
if (E)
|
|
@@ -8255,7 +8257,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8255
8257
|
const M = C().filter((A) => A.focusable), F = M.find((A) => A.active), H = M.find((A) => A.id === g), K = [F, H, ...M].filter(
|
|
8256
8258
|
Boolean
|
|
8257
8259
|
).map((A) => A.ref.current);
|
|
8258
|
-
|
|
8260
|
+
oi(K, u);
|
|
8259
8261
|
}
|
|
8260
8262
|
}
|
|
8261
8263
|
R.current = !1;
|
|
@@ -8265,7 +8267,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8265
8267
|
)
|
|
8266
8268
|
}
|
|
8267
8269
|
);
|
|
8268
|
-
}),
|
|
8270
|
+
}), ti = "RovingFocusGroupItem", ni = p.forwardRef(
|
|
8269
8271
|
(e, t) => {
|
|
8270
8272
|
const {
|
|
8271
8273
|
__scopeRovingFocusGroup: n,
|
|
@@ -8274,12 +8276,12 @@ var th = p.forwardRef((e, t) => {
|
|
|
8274
8276
|
tabStopId: s,
|
|
8275
8277
|
children: a,
|
|
8276
8278
|
...i
|
|
8277
|
-
} = e, c = ht(), d = s || c, u = eh(
|
|
8279
|
+
} = e, c = ht(), d = s || c, u = eh(ti, n), l = u.currentTabStopId === d, m = Qa(n), { onFocusableItemAdd: h, onFocusableItemRemove: b, currentTabStopId: g } = u;
|
|
8278
8280
|
return p.useEffect(() => {
|
|
8279
8281
|
if (o)
|
|
8280
8282
|
return h(), () => b();
|
|
8281
8283
|
}, [o, h, b]), /* @__PURE__ */ f(
|
|
8282
|
-
|
|
8284
|
+
ko.ItemSlot,
|
|
8283
8285
|
{
|
|
8284
8286
|
scope: n,
|
|
8285
8287
|
id: d,
|
|
@@ -8313,7 +8315,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8313
8315
|
const C = x.indexOf(v.currentTarget);
|
|
8314
8316
|
x = u.loop ? sh(x, C + 1) : x.slice(C + 1);
|
|
8315
8317
|
}
|
|
8316
|
-
setTimeout(() =>
|
|
8318
|
+
setTimeout(() => oi(x));
|
|
8317
8319
|
}
|
|
8318
8320
|
}),
|
|
8319
8321
|
children: typeof a == "function" ? a({ isCurrentTabStop: l, hasTabStop: g != null }) : a
|
|
@@ -8323,7 +8325,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8323
8325
|
);
|
|
8324
8326
|
}
|
|
8325
8327
|
);
|
|
8326
|
-
|
|
8328
|
+
ni.displayName = ti;
|
|
8327
8329
|
var nh = {
|
|
8328
8330
|
ArrowLeft: "prev",
|
|
8329
8331
|
ArrowUp: "prev",
|
|
@@ -8342,7 +8344,7 @@ function rh(e, t, n) {
|
|
|
8342
8344
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
8343
8345
|
return nh[o];
|
|
8344
8346
|
}
|
|
8345
|
-
function
|
|
8347
|
+
function oi(e, t = !1) {
|
|
8346
8348
|
const n = document.activeElement;
|
|
8347
8349
|
for (const o of e)
|
|
8348
8350
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
@@ -8350,7 +8352,7 @@ function ri(e, t = !1) {
|
|
|
8350
8352
|
function sh(e, t) {
|
|
8351
8353
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
8352
8354
|
}
|
|
8353
|
-
var
|
|
8355
|
+
var ri = ei, si = ni, ah = "Label", ai = p.forwardRef((e, t) => /* @__PURE__ */ f(
|
|
8354
8356
|
Z.label,
|
|
8355
8357
|
{
|
|
8356
8358
|
...e,
|
|
@@ -8361,12 +8363,12 @@ var si = ti, ai = oi, ah = "Label", ii = p.forwardRef((e, t) => /* @__PURE__ */
|
|
|
8361
8363
|
}
|
|
8362
8364
|
}
|
|
8363
8365
|
));
|
|
8364
|
-
|
|
8365
|
-
var ih =
|
|
8366
|
-
function
|
|
8366
|
+
ai.displayName = ah;
|
|
8367
|
+
var ih = ai;
|
|
8368
|
+
function No(e, [t, n]) {
|
|
8367
8369
|
return Math.min(n, Math.max(t, e));
|
|
8368
8370
|
}
|
|
8369
|
-
var
|
|
8371
|
+
var or = "Progress", rr = 100, [ch] = xe(or), [lh, dh] = ch(or), ii = p.forwardRef(
|
|
8370
8372
|
(e, t) => {
|
|
8371
8373
|
const {
|
|
8372
8374
|
__scopeProgress: n,
|
|
@@ -8376,7 +8378,7 @@ var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr), ci = p.forwardR
|
|
|
8376
8378
|
...a
|
|
8377
8379
|
} = e;
|
|
8378
8380
|
(r || r === 0) && !as(r) && console.error(fh(`${r}`, "Progress"));
|
|
8379
|
-
const i = as(r) ? r :
|
|
8381
|
+
const i = as(r) ? r : rr;
|
|
8380
8382
|
o !== null && !is(o, i) && console.error(ph(`${o}`, "Progress"));
|
|
8381
8383
|
const c = is(o, i) ? o : null, d = xn(c) ? s(c, i) : void 0;
|
|
8382
8384
|
return /* @__PURE__ */ f(lh, { scope: n, value: c, max: i, children: /* @__PURE__ */ f(
|
|
@@ -8387,7 +8389,7 @@ var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr), ci = p.forwardR
|
|
|
8387
8389
|
"aria-valuenow": xn(c) ? c : void 0,
|
|
8388
8390
|
"aria-valuetext": d,
|
|
8389
8391
|
role: "progressbar",
|
|
8390
|
-
"data-state":
|
|
8392
|
+
"data-state": di(c, i),
|
|
8391
8393
|
"data-value": c ?? void 0,
|
|
8392
8394
|
"data-max": i,
|
|
8393
8395
|
...a,
|
|
@@ -8396,14 +8398,14 @@ var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr), ci = p.forwardR
|
|
|
8396
8398
|
) });
|
|
8397
8399
|
}
|
|
8398
8400
|
);
|
|
8399
|
-
|
|
8400
|
-
var
|
|
8401
|
+
ii.displayName = or;
|
|
8402
|
+
var ci = "ProgressIndicator", li = p.forwardRef(
|
|
8401
8403
|
(e, t) => {
|
|
8402
|
-
const { __scopeProgress: n, ...o } = e, r = dh(
|
|
8404
|
+
const { __scopeProgress: n, ...o } = e, r = dh(ci, n);
|
|
8403
8405
|
return /* @__PURE__ */ f(
|
|
8404
8406
|
Z.div,
|
|
8405
8407
|
{
|
|
8406
|
-
"data-state":
|
|
8408
|
+
"data-state": di(r.value, r.max),
|
|
8407
8409
|
"data-value": r.value ?? void 0,
|
|
8408
8410
|
"data-max": r.max,
|
|
8409
8411
|
...o,
|
|
@@ -8412,11 +8414,11 @@ var li = "ProgressIndicator", di = p.forwardRef(
|
|
|
8412
8414
|
);
|
|
8413
8415
|
}
|
|
8414
8416
|
);
|
|
8415
|
-
|
|
8417
|
+
li.displayName = ci;
|
|
8416
8418
|
function uh(e, t) {
|
|
8417
8419
|
return `${Math.round(e / t * 100)}%`;
|
|
8418
8420
|
}
|
|
8419
|
-
function
|
|
8421
|
+
function di(e, t) {
|
|
8420
8422
|
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
8421
8423
|
}
|
|
8422
8424
|
function xn(e) {
|
|
@@ -8429,17 +8431,17 @@ function is(e, t) {
|
|
|
8429
8431
|
return xn(e) && !isNaN(e) && e <= t && e >= 0;
|
|
8430
8432
|
}
|
|
8431
8433
|
function fh(e, t) {
|
|
8432
|
-
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${
|
|
8434
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${rr}\`.`;
|
|
8433
8435
|
}
|
|
8434
8436
|
function ph(e, t) {
|
|
8435
8437
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
8436
8438
|
- a positive number
|
|
8437
|
-
- less than the value passed to \`max\` (or ${
|
|
8439
|
+
- less than the value passed to \`max\` (or ${rr} if no \`max\` prop is set)
|
|
8438
8440
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
8439
8441
|
|
|
8440
8442
|
Defaulting to \`null\`.`;
|
|
8441
8443
|
}
|
|
8442
|
-
var mh =
|
|
8444
|
+
var mh = ii, hh = li, sr = "Radio", [gh, ui] = xe(sr), [vh, bh] = gh(sr), fi = p.forwardRef(
|
|
8443
8445
|
(e, t) => {
|
|
8444
8446
|
const {
|
|
8445
8447
|
__scopeRadio: n,
|
|
@@ -8459,7 +8461,7 @@ var mh = ci, hh = di, rr = "Radio", [gh, fi] = xe(rr), [vh, bh] = gh(rr), pi = p
|
|
|
8459
8461
|
type: "button",
|
|
8460
8462
|
role: "radio",
|
|
8461
8463
|
"aria-checked": r,
|
|
8462
|
-
"data-state":
|
|
8464
|
+
"data-state": gi(r),
|
|
8463
8465
|
"data-disabled": a ? "" : void 0,
|
|
8464
8466
|
disabled: a,
|
|
8465
8467
|
value: i,
|
|
@@ -8471,7 +8473,7 @@ var mh = ci, hh = di, rr = "Radio", [gh, fi] = xe(rr), [vh, bh] = gh(rr), pi = p
|
|
|
8471
8473
|
}
|
|
8472
8474
|
),
|
|
8473
8475
|
g && /* @__PURE__ */ f(
|
|
8474
|
-
|
|
8476
|
+
hi,
|
|
8475
8477
|
{
|
|
8476
8478
|
control: l,
|
|
8477
8479
|
bubbles: !b.current,
|
|
@@ -8487,14 +8489,14 @@ var mh = ci, hh = di, rr = "Radio", [gh, fi] = xe(rr), [vh, bh] = gh(rr), pi = p
|
|
|
8487
8489
|
] });
|
|
8488
8490
|
}
|
|
8489
8491
|
);
|
|
8490
|
-
|
|
8491
|
-
var
|
|
8492
|
+
fi.displayName = sr;
|
|
8493
|
+
var pi = "RadioIndicator", mi = p.forwardRef(
|
|
8492
8494
|
(e, t) => {
|
|
8493
|
-
const { __scopeRadio: n, forceMount: o, ...r } = e, s = bh(
|
|
8495
|
+
const { __scopeRadio: n, forceMount: o, ...r } = e, s = bh(pi, n);
|
|
8494
8496
|
return /* @__PURE__ */ f(De, { present: o || s.checked, children: /* @__PURE__ */ f(
|
|
8495
8497
|
Z.span,
|
|
8496
8498
|
{
|
|
8497
|
-
"data-state":
|
|
8499
|
+
"data-state": gi(s.checked),
|
|
8498
8500
|
"data-disabled": s.disabled ? "" : void 0,
|
|
8499
8501
|
...r,
|
|
8500
8502
|
ref: t
|
|
@@ -8502,8 +8504,8 @@ var mi = "RadioIndicator", hi = p.forwardRef(
|
|
|
8502
8504
|
) });
|
|
8503
8505
|
}
|
|
8504
8506
|
);
|
|
8505
|
-
|
|
8506
|
-
var yh = "RadioBubbleInput",
|
|
8507
|
+
mi.displayName = pi;
|
|
8508
|
+
var yh = "RadioBubbleInput", hi = p.forwardRef(
|
|
8507
8509
|
({
|
|
8508
8510
|
__scopeRadio: e,
|
|
8509
8511
|
control: t,
|
|
@@ -8544,14 +8546,14 @@ var yh = "RadioBubbleInput", gi = p.forwardRef(
|
|
|
8544
8546
|
);
|
|
8545
8547
|
}
|
|
8546
8548
|
);
|
|
8547
|
-
|
|
8548
|
-
function
|
|
8549
|
+
hi.displayName = yh;
|
|
8550
|
+
function gi(e) {
|
|
8549
8551
|
return e ? "checked" : "unchecked";
|
|
8550
8552
|
}
|
|
8551
8553
|
var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup", [xh] = xe(Fn, [
|
|
8552
8554
|
$n,
|
|
8553
|
-
|
|
8554
|
-
]),
|
|
8555
|
+
ui
|
|
8556
|
+
]), vi = $n(), bi = ui(), [Sh, Ch] = xh(Fn), yi = p.forwardRef(
|
|
8555
8557
|
(e, t) => {
|
|
8556
8558
|
const {
|
|
8557
8559
|
__scopeRadioGroup: n,
|
|
@@ -8565,7 +8567,7 @@ var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8565
8567
|
loop: u = !0,
|
|
8566
8568
|
onValueChange: l,
|
|
8567
8569
|
...m
|
|
8568
|
-
} = e, h =
|
|
8570
|
+
} = e, h = vi(n), b = Yt(d), [g, v] = je({
|
|
8569
8571
|
prop: s,
|
|
8570
8572
|
defaultProp: r ?? null,
|
|
8571
8573
|
onChange: l,
|
|
@@ -8581,7 +8583,7 @@ var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8581
8583
|
value: g,
|
|
8582
8584
|
onValueChange: v,
|
|
8583
8585
|
children: /* @__PURE__ */ f(
|
|
8584
|
-
|
|
8586
|
+
ri,
|
|
8585
8587
|
{
|
|
8586
8588
|
asChild: !0,
|
|
8587
8589
|
...h,
|
|
@@ -8606,10 +8608,10 @@ var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8606
8608
|
);
|
|
8607
8609
|
}
|
|
8608
8610
|
);
|
|
8609
|
-
|
|
8610
|
-
var
|
|
8611
|
+
yi.displayName = Fn;
|
|
8612
|
+
var wi = "RadioGroupItem", xi = p.forwardRef(
|
|
8611
8613
|
(e, t) => {
|
|
8612
|
-
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = Ch(
|
|
8614
|
+
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = Ch(wi, n), a = s.disabled || o, i = vi(n), c = bi(n), d = p.useRef(null), u = ie(t, d), l = s.value === r.value, m = p.useRef(!1);
|
|
8613
8615
|
return p.useEffect(() => {
|
|
8614
8616
|
const h = (g) => {
|
|
8615
8617
|
wh.includes(g.key) && (m.current = !0);
|
|
@@ -8618,14 +8620,14 @@ var xi = "RadioGroupItem", Si = p.forwardRef(
|
|
|
8618
8620
|
document.removeEventListener("keydown", h), document.removeEventListener("keyup", b);
|
|
8619
8621
|
};
|
|
8620
8622
|
}, []), /* @__PURE__ */ f(
|
|
8621
|
-
|
|
8623
|
+
si,
|
|
8622
8624
|
{
|
|
8623
8625
|
asChild: !0,
|
|
8624
8626
|
...i,
|
|
8625
8627
|
focusable: !a,
|
|
8626
8628
|
active: l,
|
|
8627
8629
|
children: /* @__PURE__ */ f(
|
|
8628
|
-
|
|
8630
|
+
fi,
|
|
8629
8631
|
{
|
|
8630
8632
|
disabled: a,
|
|
8631
8633
|
required: s.required,
|
|
@@ -8648,19 +8650,19 @@ var xi = "RadioGroupItem", Si = p.forwardRef(
|
|
|
8648
8650
|
);
|
|
8649
8651
|
}
|
|
8650
8652
|
);
|
|
8651
|
-
|
|
8652
|
-
var Eh = "RadioGroupIndicator",
|
|
8653
|
+
xi.displayName = wi;
|
|
8654
|
+
var Eh = "RadioGroupIndicator", Si = p.forwardRef(
|
|
8653
8655
|
(e, t) => {
|
|
8654
|
-
const { __scopeRadioGroup: n, ...o } = e, r =
|
|
8655
|
-
return /* @__PURE__ */ f(
|
|
8656
|
+
const { __scopeRadioGroup: n, ...o } = e, r = bi(n);
|
|
8657
|
+
return /* @__PURE__ */ f(mi, { ...r, ...o, ref: t });
|
|
8656
8658
|
}
|
|
8657
8659
|
);
|
|
8658
|
-
|
|
8659
|
-
var kh =
|
|
8660
|
+
Si.displayName = Eh;
|
|
8661
|
+
var kh = yi, Nh = xi, Rh = Si;
|
|
8660
8662
|
function Th(e, t) {
|
|
8661
8663
|
return p.useReducer((n, o) => t[n][o] ?? n, e);
|
|
8662
8664
|
}
|
|
8663
|
-
var
|
|
8665
|
+
var ar = "ScrollArea", [Ci] = xe(ar), [Ph, Re] = Ci(ar), Ei = p.forwardRef(
|
|
8664
8666
|
(e, t) => {
|
|
8665
8667
|
const {
|
|
8666
8668
|
__scopeScrollArea: n,
|
|
@@ -8710,10 +8712,10 @@ var sr = "ScrollArea", [Ei] = xe(sr), [Ph, Re] = Ei(sr), ki = p.forwardRef(
|
|
|
8710
8712
|
);
|
|
8711
8713
|
}
|
|
8712
8714
|
);
|
|
8713
|
-
|
|
8714
|
-
var
|
|
8715
|
+
Ei.displayName = ar;
|
|
8716
|
+
var ki = "ScrollAreaViewport", Ni = p.forwardRef(
|
|
8715
8717
|
(e, t) => {
|
|
8716
|
-
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, a = Re(
|
|
8718
|
+
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, a = Re(ki, n), i = p.useRef(null), c = ie(t, i, a.onViewportChange);
|
|
8717
8719
|
return /* @__PURE__ */ q(Ie, { children: [
|
|
8718
8720
|
/* @__PURE__ */ f(
|
|
8719
8721
|
"style",
|
|
@@ -8752,16 +8754,16 @@ var Ni = "ScrollAreaViewport", Ri = p.forwardRef(
|
|
|
8752
8754
|
] });
|
|
8753
8755
|
}
|
|
8754
8756
|
);
|
|
8755
|
-
|
|
8756
|
-
var We = "ScrollAreaScrollbar",
|
|
8757
|
+
Ni.displayName = ki;
|
|
8758
|
+
var We = "ScrollAreaScrollbar", Ri = p.forwardRef(
|
|
8757
8759
|
(e, t) => {
|
|
8758
8760
|
const { forceMount: n, ...o } = e, r = Re(We, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = r, i = e.orientation === "horizontal";
|
|
8759
8761
|
return p.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
8760
8762
|
i ? s(!1) : a(!1);
|
|
8761
|
-
}), [i, s, a]), r.type === "hover" ? /* @__PURE__ */ f(Ah, { ...o, ref: t, forceMount: n }) : r.type === "scroll" ? /* @__PURE__ */ f(_h, { ...o, ref: t, forceMount: n }) : r.type === "auto" ? /* @__PURE__ */ f(
|
|
8763
|
+
}), [i, s, a]), r.type === "hover" ? /* @__PURE__ */ f(Ah, { ...o, ref: t, forceMount: n }) : r.type === "scroll" ? /* @__PURE__ */ f(_h, { ...o, ref: t, forceMount: n }) : r.type === "auto" ? /* @__PURE__ */ f(Ti, { ...o, ref: t, forceMount: n }) : r.type === "always" ? /* @__PURE__ */ f(ir, { ...o, ref: t }) : null;
|
|
8762
8764
|
}
|
|
8763
8765
|
);
|
|
8764
|
-
|
|
8766
|
+
Ri.displayName = We;
|
|
8765
8767
|
var Ah = p.forwardRef((e, t) => {
|
|
8766
8768
|
const { forceMount: n, ...o } = e, r = Re(We, e.__scopeScrollArea), [s, a] = p.useState(!1);
|
|
8767
8769
|
return p.useEffect(() => {
|
|
@@ -8778,7 +8780,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8778
8780
|
};
|
|
8779
8781
|
}
|
|
8780
8782
|
}, [r.scrollArea, r.scrollHideDelay]), /* @__PURE__ */ f(De, { present: n || s, children: /* @__PURE__ */ f(
|
|
8781
|
-
|
|
8783
|
+
Ti,
|
|
8782
8784
|
{
|
|
8783
8785
|
"data-state": s ? "visible" : "hidden",
|
|
8784
8786
|
...o,
|
|
@@ -8820,7 +8822,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8820
8822
|
return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
|
|
8821
8823
|
}
|
|
8822
8824
|
}, [r.viewport, s, c, a]), /* @__PURE__ */ f(De, { present: n || i !== "hidden", children: /* @__PURE__ */ f(
|
|
8823
|
-
|
|
8825
|
+
ir,
|
|
8824
8826
|
{
|
|
8825
8827
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
8826
8828
|
...o,
|
|
@@ -8829,7 +8831,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8829
8831
|
onPointerLeave: Q(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
8830
8832
|
}
|
|
8831
8833
|
) });
|
|
8832
|
-
}),
|
|
8834
|
+
}), Ti = p.forwardRef((e, t) => {
|
|
8833
8835
|
const n = Re(We, e.__scopeScrollArea), { forceMount: o, ...r } = e, [s, a] = p.useState(!1), i = e.orientation === "horizontal", c = Hn(() => {
|
|
8834
8836
|
if (n.viewport) {
|
|
8835
8837
|
const d = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
@@ -8837,19 +8839,19 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8837
8839
|
}
|
|
8838
8840
|
}, 10);
|
|
8839
8841
|
return _t(n.viewport, c), _t(n.content, c), /* @__PURE__ */ f(De, { present: o || s, children: /* @__PURE__ */ f(
|
|
8840
|
-
|
|
8842
|
+
ir,
|
|
8841
8843
|
{
|
|
8842
8844
|
"data-state": s ? "visible" : "hidden",
|
|
8843
8845
|
...r,
|
|
8844
8846
|
ref: t
|
|
8845
8847
|
}
|
|
8846
8848
|
) });
|
|
8847
|
-
}),
|
|
8849
|
+
}), ir = p.forwardRef((e, t) => {
|
|
8848
8850
|
const { orientation: n = "vertical", ...o } = e, r = Re(We, e.__scopeScrollArea), s = p.useRef(null), a = p.useRef(0), [i, c] = p.useState({
|
|
8849
8851
|
content: 0,
|
|
8850
8852
|
viewport: 0,
|
|
8851
8853
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
8852
|
-
}), d =
|
|
8854
|
+
}), d = Mi(i.viewport, i.content), u = {
|
|
8853
8855
|
...o,
|
|
8854
8856
|
sizes: i,
|
|
8855
8857
|
onSizesChange: c,
|
|
@@ -8903,7 +8905,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8903
8905
|
return p.useEffect(() => {
|
|
8904
8906
|
c.current && i(getComputedStyle(c.current));
|
|
8905
8907
|
}, [c]), /* @__PURE__ */ f(
|
|
8906
|
-
|
|
8908
|
+
Ai,
|
|
8907
8909
|
{
|
|
8908
8910
|
"data-orientation": "horizontal",
|
|
8909
8911
|
...r,
|
|
@@ -8921,7 +8923,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8921
8923
|
onWheelScroll: (u, l) => {
|
|
8922
8924
|
if (s.viewport) {
|
|
8923
8925
|
const m = s.viewport.scrollLeft + u.deltaX;
|
|
8924
|
-
e.onWheelScroll(m),
|
|
8926
|
+
e.onWheelScroll(m), Li(m, l) && u.preventDefault();
|
|
8925
8927
|
}
|
|
8926
8928
|
},
|
|
8927
8929
|
onResize: () => {
|
|
@@ -8942,7 +8944,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8942
8944
|
return p.useEffect(() => {
|
|
8943
8945
|
c.current && i(getComputedStyle(c.current));
|
|
8944
8946
|
}, [c]), /* @__PURE__ */ f(
|
|
8945
|
-
|
|
8947
|
+
Ai,
|
|
8946
8948
|
{
|
|
8947
8949
|
"data-orientation": "vertical",
|
|
8948
8950
|
...r,
|
|
@@ -8961,7 +8963,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8961
8963
|
onWheelScroll: (u, l) => {
|
|
8962
8964
|
if (s.viewport) {
|
|
8963
8965
|
const m = s.viewport.scrollTop + u.deltaY;
|
|
8964
|
-
e.onWheelScroll(m),
|
|
8966
|
+
e.onWheelScroll(m), Li(m, l) && u.preventDefault();
|
|
8965
8967
|
}
|
|
8966
8968
|
},
|
|
8967
8969
|
onResize: () => {
|
|
@@ -8977,7 +8979,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8977
8979
|
}
|
|
8978
8980
|
}
|
|
8979
8981
|
);
|
|
8980
|
-
}), [Oh,
|
|
8982
|
+
}), [Oh, Pi] = Ci(We), Ai = p.forwardRef((e, t) => {
|
|
8981
8983
|
const {
|
|
8982
8984
|
__scopeScrollArea: n,
|
|
8983
8985
|
sizes: o,
|
|
@@ -9031,14 +9033,14 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
9031
9033
|
)
|
|
9032
9034
|
}
|
|
9033
9035
|
);
|
|
9034
|
-
}), Sn = "ScrollAreaThumb",
|
|
9036
|
+
}), Sn = "ScrollAreaThumb", _i = p.forwardRef(
|
|
9035
9037
|
(e, t) => {
|
|
9036
|
-
const { forceMount: n, ...o } = e, r =
|
|
9038
|
+
const { forceMount: n, ...o } = e, r = Pi(Sn, e.__scopeScrollArea);
|
|
9037
9039
|
return /* @__PURE__ */ f(De, { present: n || r.hasThumb, children: /* @__PURE__ */ f(Lh, { ref: t, ...o }) });
|
|
9038
9040
|
}
|
|
9039
9041
|
), Lh = p.forwardRef(
|
|
9040
9042
|
(e, t) => {
|
|
9041
|
-
const { __scopeScrollArea: n, style: o, ...r } = e, s = Re(Sn, n), a =
|
|
9043
|
+
const { __scopeScrollArea: n, style: o, ...r } = e, s = Re(Sn, n), a = Pi(Sn, n), { onThumbPositionChange: i } = a, c = ie(
|
|
9042
9044
|
t,
|
|
9043
9045
|
(l) => a.onThumbChange(l)
|
|
9044
9046
|
), d = p.useRef(void 0), u = Hn(() => {
|
|
@@ -9075,16 +9077,16 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
9075
9077
|
);
|
|
9076
9078
|
}
|
|
9077
9079
|
);
|
|
9078
|
-
|
|
9079
|
-
var
|
|
9080
|
+
_i.displayName = Sn;
|
|
9081
|
+
var cr = "ScrollAreaCorner", Ii = p.forwardRef(
|
|
9080
9082
|
(e, t) => {
|
|
9081
|
-
const n = Re(
|
|
9083
|
+
const n = Re(cr, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
|
|
9082
9084
|
return n.type !== "scroll" && o ? /* @__PURE__ */ f(Dh, { ...e, ref: t }) : null;
|
|
9083
9085
|
}
|
|
9084
9086
|
);
|
|
9085
|
-
|
|
9087
|
+
Ii.displayName = cr;
|
|
9086
9088
|
var Dh = p.forwardRef((e, t) => {
|
|
9087
|
-
const { __scopeScrollArea: n, ...o } = e, r = Re(
|
|
9089
|
+
const { __scopeScrollArea: n, ...o } = e, r = Re(cr, n), [s, a] = p.useState(0), [i, c] = p.useState(0), d = !!(s && i);
|
|
9088
9090
|
return _t(r.scrollbarX, () => {
|
|
9089
9091
|
var l;
|
|
9090
9092
|
const u = ((l = r.scrollbarX) == null ? void 0 : l.offsetHeight) || 0;
|
|
@@ -9113,30 +9115,30 @@ var Dh = p.forwardRef((e, t) => {
|
|
|
9113
9115
|
function Cn(e) {
|
|
9114
9116
|
return e ? parseInt(e, 10) : 0;
|
|
9115
9117
|
}
|
|
9116
|
-
function
|
|
9118
|
+
function Mi(e, t) {
|
|
9117
9119
|
const n = e / t;
|
|
9118
9120
|
return isNaN(n) ? 0 : n;
|
|
9119
9121
|
}
|
|
9120
9122
|
function Bn(e) {
|
|
9121
|
-
const t =
|
|
9123
|
+
const t = Mi(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - n) * t;
|
|
9122
9124
|
return Math.max(o, 18);
|
|
9123
9125
|
}
|
|
9124
9126
|
function zh(e, t, n, o = "ltr") {
|
|
9125
9127
|
const r = Bn(n), s = r / 2, a = t || s, i = r - a, c = n.scrollbar.paddingStart + a, d = n.scrollbar.size - n.scrollbar.paddingEnd - i, u = n.content - n.viewport, l = o === "ltr" ? [0, u] : [u * -1, 0];
|
|
9126
|
-
return
|
|
9128
|
+
return Oi([c, d], l)(e);
|
|
9127
9129
|
}
|
|
9128
9130
|
function cs(e, t, n = "ltr") {
|
|
9129
|
-
const o = Bn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - r, a = t.content - t.viewport, i = s - o, c = n === "ltr" ? [0, a] : [a * -1, 0], d =
|
|
9130
|
-
return
|
|
9131
|
+
const o = Bn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - r, a = t.content - t.viewport, i = s - o, c = n === "ltr" ? [0, a] : [a * -1, 0], d = No(e, c);
|
|
9132
|
+
return Oi([0, a], [0, i])(d);
|
|
9131
9133
|
}
|
|
9132
|
-
function
|
|
9134
|
+
function Oi(e, t) {
|
|
9133
9135
|
return (n) => {
|
|
9134
9136
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
9135
9137
|
const o = (t[1] - t[0]) / (e[1] - e[0]);
|
|
9136
9138
|
return t[0] + o * (n - e[0]);
|
|
9137
9139
|
};
|
|
9138
9140
|
}
|
|
9139
|
-
function
|
|
9141
|
+
function Li(e, t) {
|
|
9140
9142
|
return e > 0 && e < t;
|
|
9141
9143
|
}
|
|
9142
9144
|
var $h = (e, t = () => {
|
|
@@ -9167,10 +9169,10 @@ function _t(e, t) {
|
|
|
9167
9169
|
}
|
|
9168
9170
|
}, [e, n]);
|
|
9169
9171
|
}
|
|
9170
|
-
var Fh =
|
|
9172
|
+
var Fh = Ei, Bh = Ni, Hh = Ii, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh = [" ", "Enter"], ft = "Select", [Vn, Wn, Uh] = Xs(ft), [Lt] = xe(ft, [
|
|
9171
9173
|
Uh,
|
|
9172
9174
|
zn
|
|
9173
|
-
]), Un = zn(), [jh, rt] = Lt(ft), [Gh, Yh] = Lt(ft),
|
|
9175
|
+
]), Un = zn(), [jh, rt] = Lt(ft), [Gh, Yh] = Lt(ft), Di = (e) => {
|
|
9174
9176
|
const {
|
|
9175
9177
|
__scopeSelect: t,
|
|
9176
9178
|
children: n,
|
|
@@ -9197,7 +9199,7 @@ var Fh = ki, Bh = Ri, Hh = Mi, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh =
|
|
|
9197
9199
|
onChange: c,
|
|
9198
9200
|
caller: ft
|
|
9199
9201
|
}), M = p.useRef(null), F = v ? b || !!v.closest("form") : !0, [H, O] = p.useState(/* @__PURE__ */ new Set()), K = Array.from(H).map((A) => A.props.value).join(";");
|
|
9200
|
-
return /* @__PURE__ */ f(
|
|
9202
|
+
return /* @__PURE__ */ f(Ka, { ...g, children: /* @__PURE__ */ q(
|
|
9201
9203
|
jh,
|
|
9202
9204
|
{
|
|
9203
9205
|
required: h,
|
|
@@ -9234,7 +9236,7 @@ var Fh = ki, Bh = Ri, Hh = Mi, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh =
|
|
|
9234
9236
|
}
|
|
9235
9237
|
) }),
|
|
9236
9238
|
F ? /* @__PURE__ */ q(
|
|
9237
|
-
|
|
9239
|
+
rc,
|
|
9238
9240
|
{
|
|
9239
9241
|
"aria-hidden": !0,
|
|
9240
9242
|
required: h,
|
|
@@ -9256,11 +9258,11 @@ var Fh = ki, Bh = Ri, Hh = Mi, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh =
|
|
|
9256
9258
|
}
|
|
9257
9259
|
) });
|
|
9258
9260
|
};
|
|
9259
|
-
|
|
9260
|
-
var
|
|
9261
|
+
Di.displayName = ft;
|
|
9262
|
+
var zi = "SelectTrigger", $i = p.forwardRef(
|
|
9261
9263
|
(e, t) => {
|
|
9262
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = Un(n), a = rt(
|
|
9263
|
-
const v = d().filter((x) => !x.disabled), y = v.find((x) => x.value === a.value), w =
|
|
9264
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = Un(n), a = rt(zi, n), i = a.disabled || o, c = ie(t, a.onTriggerChange), d = Wn(n), u = p.useRef("touch"), [l, m, h] = ac((g) => {
|
|
9265
|
+
const v = d().filter((x) => !x.disabled), y = v.find((x) => x.value === a.value), w = ic(v, g, y);
|
|
9264
9266
|
w !== void 0 && a.onValueChange(w.value);
|
|
9265
9267
|
}), b = (g) => {
|
|
9266
9268
|
i || (a.onOpenChange(!0), h()), g && (a.triggerPointerDownPosRef.current = {
|
|
@@ -9268,7 +9270,7 @@ var $i = "SelectTrigger", Fi = p.forwardRef(
|
|
|
9268
9270
|
y: Math.round(g.pageY)
|
|
9269
9271
|
});
|
|
9270
9272
|
};
|
|
9271
|
-
return /* @__PURE__ */ f(
|
|
9273
|
+
return /* @__PURE__ */ f(Xa, { asChild: !0, ...s, children: /* @__PURE__ */ f(
|
|
9272
9274
|
Z.button,
|
|
9273
9275
|
{
|
|
9274
9276
|
type: "button",
|
|
@@ -9281,7 +9283,7 @@ var $i = "SelectTrigger", Fi = p.forwardRef(
|
|
|
9281
9283
|
"data-state": a.open ? "open" : "closed",
|
|
9282
9284
|
disabled: i,
|
|
9283
9285
|
"data-disabled": i ? "" : void 0,
|
|
9284
|
-
"data-placeholder":
|
|
9286
|
+
"data-placeholder": sc(a.value) ? "" : void 0,
|
|
9285
9287
|
...r,
|
|
9286
9288
|
ref: c,
|
|
9287
9289
|
onClick: Q(r.onClick, (g) => {
|
|
@@ -9300,10 +9302,10 @@ var $i = "SelectTrigger", Fi = p.forwardRef(
|
|
|
9300
9302
|
) });
|
|
9301
9303
|
}
|
|
9302
9304
|
);
|
|
9303
|
-
|
|
9304
|
-
var
|
|
9305
|
+
$i.displayName = zi;
|
|
9306
|
+
var Fi = "SelectValue", Bi = p.forwardRef(
|
|
9305
9307
|
(e, t) => {
|
|
9306
|
-
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: a = "", ...i } = e, c = rt(
|
|
9308
|
+
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: a = "", ...i } = e, c = rt(Fi, n), { onValueNodeHasChildrenChange: d } = c, u = s !== void 0, l = ie(t, c.onValueNodeChange);
|
|
9307
9309
|
return de(() => {
|
|
9308
9310
|
d(u);
|
|
9309
9311
|
}, [d, u]), /* @__PURE__ */ f(
|
|
@@ -9312,22 +9314,22 @@ var Bi = "SelectValue", Hi = p.forwardRef(
|
|
|
9312
9314
|
...i,
|
|
9313
9315
|
ref: l,
|
|
9314
9316
|
style: { pointerEvents: "none" },
|
|
9315
|
-
children:
|
|
9317
|
+
children: sc(c.value) ? /* @__PURE__ */ f(Ie, { children: a }) : s
|
|
9316
9318
|
}
|
|
9317
9319
|
);
|
|
9318
9320
|
}
|
|
9319
9321
|
);
|
|
9320
|
-
|
|
9321
|
-
var qh = "SelectIcon",
|
|
9322
|
+
Bi.displayName = Fi;
|
|
9323
|
+
var qh = "SelectIcon", Hi = p.forwardRef(
|
|
9322
9324
|
(e, t) => {
|
|
9323
9325
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
9324
9326
|
return /* @__PURE__ */ f(Z.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
|
|
9325
9327
|
}
|
|
9326
9328
|
);
|
|
9327
|
-
|
|
9328
|
-
var Kh = "SelectPortal",
|
|
9329
|
-
|
|
9330
|
-
var pt = "SelectContent",
|
|
9329
|
+
Hi.displayName = qh;
|
|
9330
|
+
var Kh = "SelectPortal", Vi = (e) => /* @__PURE__ */ f(Go, { asChild: !0, ...e });
|
|
9331
|
+
Vi.displayName = Kh;
|
|
9332
|
+
var pt = "SelectContent", Wi = p.forwardRef(
|
|
9331
9333
|
(e, t) => {
|
|
9332
9334
|
const n = rt(pt, e.__scopeSelect), [o, r] = p.useState();
|
|
9333
9335
|
if (de(() => {
|
|
@@ -9335,15 +9337,15 @@ var pt = "SelectContent", Ui = p.forwardRef(
|
|
|
9335
9337
|
}, []), !n.open) {
|
|
9336
9338
|
const s = o;
|
|
9337
9339
|
return s ? kn.createPortal(
|
|
9338
|
-
/* @__PURE__ */ f(
|
|
9340
|
+
/* @__PURE__ */ f(Ui, { scope: e.__scopeSelect, children: /* @__PURE__ */ f(Vn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ f("div", { children: e.children }) }) }),
|
|
9339
9341
|
s
|
|
9340
9342
|
) : null;
|
|
9341
9343
|
}
|
|
9342
|
-
return /* @__PURE__ */ f(
|
|
9344
|
+
return /* @__PURE__ */ f(ji, { ...e, ref: t });
|
|
9343
9345
|
}
|
|
9344
9346
|
);
|
|
9345
|
-
|
|
9346
|
-
var _e = 10, [
|
|
9347
|
+
Wi.displayName = pt;
|
|
9348
|
+
var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ Wt("SelectContent.RemoveScroll"), ji = p.forwardRef(
|
|
9347
9349
|
(e, t) => {
|
|
9348
9350
|
const {
|
|
9349
9351
|
__scopeSelect: n,
|
|
@@ -9408,8 +9410,8 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9408
9410
|
window.removeEventListener("blur", j), window.removeEventListener("resize", j);
|
|
9409
9411
|
};
|
|
9410
9412
|
}, [U]);
|
|
9411
|
-
const [S, _] =
|
|
9412
|
-
const Y = F().filter((se) => !se.disabled), ee = Y.find((se) => se.ref.current === document.activeElement), te =
|
|
9413
|
+
const [S, _] = ac((j) => {
|
|
9414
|
+
const Y = F().filter((se) => !se.disabled), ee = Y.find((se) => se.ref.current === document.activeElement), te = ic(Y, j, ee);
|
|
9413
9415
|
te && setTimeout(() => te.ref.current.focus());
|
|
9414
9416
|
}), $ = p.useCallback(
|
|
9415
9417
|
(j, Y, ee) => {
|
|
@@ -9423,7 +9425,7 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9423
9425
|
(w.value !== void 0 && w.value === Y || te) && M(j);
|
|
9424
9426
|
},
|
|
9425
9427
|
[w.value]
|
|
9426
|
-
), B = o === "popper" ?
|
|
9428
|
+
), B = o === "popper" ? Ro : Gi, J = B === Ro ? {
|
|
9427
9429
|
side: i,
|
|
9428
9430
|
sideOffset: c,
|
|
9429
9431
|
align: d,
|
|
@@ -9436,7 +9438,7 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9436
9438
|
avoidCollisions: v
|
|
9437
9439
|
} : {};
|
|
9438
9440
|
return /* @__PURE__ */ f(
|
|
9439
|
-
|
|
9441
|
+
Ui,
|
|
9440
9442
|
{
|
|
9441
9443
|
scope: n,
|
|
9442
9444
|
content: x,
|
|
@@ -9451,8 +9453,8 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9451
9453
|
position: o,
|
|
9452
9454
|
isPositioned: H,
|
|
9453
9455
|
searchRef: S,
|
|
9454
|
-
children: /* @__PURE__ */ f(
|
|
9455
|
-
|
|
9456
|
+
children: /* @__PURE__ */ f(fa, { as: Zh, allowPinchZoom: !0, children: /* @__PURE__ */ f(
|
|
9457
|
+
oa,
|
|
9456
9458
|
{
|
|
9457
9459
|
asChild: !0,
|
|
9458
9460
|
trapped: w.open,
|
|
@@ -9464,7 +9466,7 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9464
9466
|
(Y = w.trigger) == null || Y.focus({ preventScroll: !0 }), j.preventDefault();
|
|
9465
9467
|
}),
|
|
9466
9468
|
children: /* @__PURE__ */ f(
|
|
9467
|
-
|
|
9469
|
+
jo,
|
|
9468
9470
|
{
|
|
9469
9471
|
asChild: !0,
|
|
9470
9472
|
disableOutsidePointerEvents: !0,
|
|
@@ -9513,13 +9515,13 @@ var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9513
9515
|
);
|
|
9514
9516
|
}
|
|
9515
9517
|
);
|
|
9516
|
-
|
|
9517
|
-
var Jh = "SelectItemAlignedPosition",
|
|
9518
|
+
ji.displayName = Xh;
|
|
9519
|
+
var Jh = "SelectItemAlignedPosition", Gi = p.forwardRef((e, t) => {
|
|
9518
9520
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = rt(pt, n), a = st(pt, n), [i, c] = p.useState(null), [d, u] = p.useState(null), l = ie(t, (N) => u(N)), m = Wn(n), h = p.useRef(!1), b = p.useRef(!0), { viewport: g, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = a, x = p.useCallback(() => {
|
|
9519
9521
|
if (s.trigger && s.valueNode && i && d && g && v && y) {
|
|
9520
9522
|
const N = s.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(), L = s.valueNode.getBoundingClientRect(), W = y.getBoundingClientRect();
|
|
9521
9523
|
if (s.dir !== "rtl") {
|
|
9522
|
-
const se = W.left - E.left, oe = L.left - se, ue = N.left - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te =
|
|
9524
|
+
const se = W.left - E.left, oe = L.left - se, ue = N.left - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te = No(oe, [
|
|
9523
9525
|
_e,
|
|
9524
9526
|
// Prevents the content from going off the starting edge of the
|
|
9525
9527
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -9530,7 +9532,7 @@ var Jh = "SelectItemAlignedPosition", Yi = p.forwardRef((e, t) => {
|
|
|
9530
9532
|
]);
|
|
9531
9533
|
i.style.minWidth = fe + "px", i.style.left = Te + "px";
|
|
9532
9534
|
} else {
|
|
9533
|
-
const se = E.right - W.right, oe = window.innerWidth - L.right - se, ue = window.innerWidth - N.right - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te =
|
|
9535
|
+
const se = E.right - W.right, oe = window.innerWidth - L.right - se, ue = window.innerWidth - N.right - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te = No(oe, [
|
|
9534
9536
|
_e,
|
|
9535
9537
|
Math.max(_e, Ke - at)
|
|
9536
9538
|
]);
|
|
@@ -9618,8 +9620,8 @@ var Jh = "SelectItemAlignedPosition", Yi = p.forwardRef((e, t) => {
|
|
|
9618
9620
|
}
|
|
9619
9621
|
);
|
|
9620
9622
|
});
|
|
9621
|
-
|
|
9622
|
-
var Qh = "SelectPopperPosition",
|
|
9623
|
+
Gi.displayName = Jh;
|
|
9624
|
+
var Qh = "SelectPopperPosition", Ro = p.forwardRef((e, t) => {
|
|
9623
9625
|
const {
|
|
9624
9626
|
__scopeSelect: n,
|
|
9625
9627
|
align: o = "start",
|
|
@@ -9627,7 +9629,7 @@ var Qh = "SelectPopperPosition", No = p.forwardRef((e, t) => {
|
|
|
9627
9629
|
...s
|
|
9628
9630
|
} = e, a = Un(n);
|
|
9629
9631
|
return /* @__PURE__ */ f(
|
|
9630
|
-
|
|
9632
|
+
Za,
|
|
9631
9633
|
{
|
|
9632
9634
|
...a,
|
|
9633
9635
|
...s,
|
|
@@ -9647,10 +9649,10 @@ var Qh = "SelectPopperPosition", No = p.forwardRef((e, t) => {
|
|
|
9647
9649
|
}
|
|
9648
9650
|
);
|
|
9649
9651
|
});
|
|
9650
|
-
|
|
9651
|
-
var [eg,
|
|
9652
|
+
Ro.displayName = Qh;
|
|
9653
|
+
var [eg, lr] = Lt(pt, {}), To = "SelectViewport", Yi = p.forwardRef(
|
|
9652
9654
|
(e, t) => {
|
|
9653
|
-
const { __scopeSelect: n, nonce: o, ...r } = e, s = st(
|
|
9655
|
+
const { __scopeSelect: n, nonce: o, ...r } = e, s = st(To, n), a = lr(To, n), i = ie(t, s.onViewportChange), c = p.useRef(0);
|
|
9654
9656
|
return /* @__PURE__ */ q(Ie, { children: [
|
|
9655
9657
|
/* @__PURE__ */ f(
|
|
9656
9658
|
"style",
|
|
@@ -9700,22 +9702,22 @@ var [eg, cr] = Lt(pt, {}), Ro = "SelectViewport", qi = p.forwardRef(
|
|
|
9700
9702
|
] });
|
|
9701
9703
|
}
|
|
9702
9704
|
);
|
|
9703
|
-
|
|
9704
|
-
var
|
|
9705
|
+
Yi.displayName = To;
|
|
9706
|
+
var qi = "SelectGroup", [tg, ng] = Lt(qi), og = p.forwardRef(
|
|
9705
9707
|
(e, t) => {
|
|
9706
9708
|
const { __scopeSelect: n, ...o } = e, r = ht();
|
|
9707
9709
|
return /* @__PURE__ */ f(tg, { scope: n, id: r, children: /* @__PURE__ */ f(Z.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
9708
9710
|
}
|
|
9709
9711
|
);
|
|
9710
|
-
og.displayName =
|
|
9711
|
-
var
|
|
9712
|
+
og.displayName = qi;
|
|
9713
|
+
var Ki = "SelectLabel", rg = p.forwardRef(
|
|
9712
9714
|
(e, t) => {
|
|
9713
|
-
const { __scopeSelect: n, ...o } = e, r = ng(
|
|
9715
|
+
const { __scopeSelect: n, ...o } = e, r = ng(Ki, n);
|
|
9714
9716
|
return /* @__PURE__ */ f(Z.div, { id: r.id, ...o, ref: t });
|
|
9715
9717
|
}
|
|
9716
9718
|
);
|
|
9717
|
-
rg.displayName =
|
|
9718
|
-
var En = "SelectItem", [sg,
|
|
9719
|
+
rg.displayName = Ki;
|
|
9720
|
+
var En = "SelectItem", [sg, Xi] = Lt(En), Zi = p.forwardRef(
|
|
9719
9721
|
(e, t) => {
|
|
9720
9722
|
const {
|
|
9721
9723
|
__scopeSelect: n,
|
|
@@ -9798,10 +9800,10 @@ var En = "SelectItem", [sg, Zi] = Lt(En), Ji = p.forwardRef(
|
|
|
9798
9800
|
);
|
|
9799
9801
|
}
|
|
9800
9802
|
);
|
|
9801
|
-
|
|
9802
|
-
var $t = "SelectItemText",
|
|
9803
|
+
Zi.displayName = En;
|
|
9804
|
+
var $t = "SelectItemText", Ji = p.forwardRef(
|
|
9803
9805
|
(e, t) => {
|
|
9804
|
-
const { __scopeSelect: n, className: o, style: r, ...s } = e, a = rt($t, n), i = st($t, n), c =
|
|
9806
|
+
const { __scopeSelect: n, className: o, style: r, ...s } = e, a = rt($t, n), i = st($t, n), c = Xi($t, n), d = Yh($t, n), [u, l] = p.useState(null), m = ie(
|
|
9805
9807
|
t,
|
|
9806
9808
|
(y) => l(y),
|
|
9807
9809
|
c.onItemTextChange,
|
|
@@ -9819,16 +9821,16 @@ var $t = "SelectItemText", Qi = p.forwardRef(
|
|
|
9819
9821
|
] });
|
|
9820
9822
|
}
|
|
9821
9823
|
);
|
|
9822
|
-
|
|
9823
|
-
var
|
|
9824
|
+
Ji.displayName = $t;
|
|
9825
|
+
var Qi = "SelectItemIndicator", ec = p.forwardRef(
|
|
9824
9826
|
(e, t) => {
|
|
9825
9827
|
const { __scopeSelect: n, ...o } = e;
|
|
9826
|
-
return
|
|
9828
|
+
return Xi(Qi, n).isSelected ? /* @__PURE__ */ f(Z.span, { "aria-hidden": !0, ...o, ref: t }) : null;
|
|
9827
9829
|
}
|
|
9828
9830
|
);
|
|
9829
|
-
|
|
9830
|
-
var
|
|
9831
|
-
const n = st(
|
|
9831
|
+
ec.displayName = Qi;
|
|
9832
|
+
var Po = "SelectScrollUpButton", tc = p.forwardRef((e, t) => {
|
|
9833
|
+
const n = st(Po, e.__scopeSelect), o = lr(Po, e.__scopeSelect), [r, s] = p.useState(!1), a = ie(t, o.onScrollButtonChange);
|
|
9832
9834
|
return de(() => {
|
|
9833
9835
|
if (n.viewport && n.isPositioned) {
|
|
9834
9836
|
let i = function() {
|
|
@@ -9839,7 +9841,7 @@ var To = "SelectScrollUpButton", nc = p.forwardRef((e, t) => {
|
|
|
9839
9841
|
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
9840
9842
|
}
|
|
9841
9843
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
9842
|
-
|
|
9844
|
+
oc,
|
|
9843
9845
|
{
|
|
9844
9846
|
...e,
|
|
9845
9847
|
ref: a,
|
|
@@ -9850,9 +9852,9 @@ var To = "SelectScrollUpButton", nc = p.forwardRef((e, t) => {
|
|
|
9850
9852
|
}
|
|
9851
9853
|
) : null;
|
|
9852
9854
|
});
|
|
9853
|
-
|
|
9854
|
-
var
|
|
9855
|
-
const n = st(
|
|
9855
|
+
tc.displayName = Po;
|
|
9856
|
+
var Ao = "SelectScrollDownButton", nc = p.forwardRef((e, t) => {
|
|
9857
|
+
const n = st(Ao, e.__scopeSelect), o = lr(Ao, e.__scopeSelect), [r, s] = p.useState(!1), a = ie(t, o.onScrollButtonChange);
|
|
9856
9858
|
return de(() => {
|
|
9857
9859
|
if (n.viewport && n.isPositioned) {
|
|
9858
9860
|
let i = function() {
|
|
@@ -9863,7 +9865,7 @@ var Po = "SelectScrollDownButton", oc = p.forwardRef((e, t) => {
|
|
|
9863
9865
|
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
9864
9866
|
}
|
|
9865
9867
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
9866
|
-
|
|
9868
|
+
oc,
|
|
9867
9869
|
{
|
|
9868
9870
|
...e,
|
|
9869
9871
|
ref: a,
|
|
@@ -9874,8 +9876,8 @@ var Po = "SelectScrollDownButton", oc = p.forwardRef((e, t) => {
|
|
|
9874
9876
|
}
|
|
9875
9877
|
) : null;
|
|
9876
9878
|
});
|
|
9877
|
-
|
|
9878
|
-
var
|
|
9879
|
+
nc.displayName = Ao;
|
|
9880
|
+
var oc = p.forwardRef((e, t) => {
|
|
9879
9881
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = st("SelectScrollButton", n), a = p.useRef(null), i = Wn(n), c = p.useCallback(() => {
|
|
9880
9882
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
9881
9883
|
}, []);
|
|
@@ -9909,14 +9911,14 @@ var rc = p.forwardRef((e, t) => {
|
|
|
9909
9911
|
}
|
|
9910
9912
|
);
|
|
9911
9913
|
ig.displayName = ag;
|
|
9912
|
-
var
|
|
9914
|
+
var _o = "SelectArrow", cg = p.forwardRef(
|
|
9913
9915
|
(e, t) => {
|
|
9914
|
-
const { __scopeSelect: n, ...o } = e, r = Un(n), s = rt(
|
|
9915
|
-
return s.open && a.position === "popper" ? /* @__PURE__ */ f(
|
|
9916
|
+
const { __scopeSelect: n, ...o } = e, r = Un(n), s = rt(_o, n), a = st(_o, n);
|
|
9917
|
+
return s.open && a.position === "popper" ? /* @__PURE__ */ f(Ja, { ...r, ...o, ref: t }) : null;
|
|
9916
9918
|
}
|
|
9917
9919
|
);
|
|
9918
|
-
cg.displayName =
|
|
9919
|
-
var lg = "SelectBubbleInput",
|
|
9920
|
+
cg.displayName = _o;
|
|
9921
|
+
var lg = "SelectBubbleInput", rc = p.forwardRef(
|
|
9920
9922
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
9921
9923
|
const r = p.useRef(null), s = ie(o, r), a = An(t);
|
|
9922
9924
|
return p.useEffect(() => {
|
|
@@ -9934,18 +9936,18 @@ var lg = "SelectBubbleInput", sc = p.forwardRef(
|
|
|
9934
9936
|
Z.select,
|
|
9935
9937
|
{
|
|
9936
9938
|
...n,
|
|
9937
|
-
style: { ...
|
|
9939
|
+
style: { ...qs, ...n.style },
|
|
9938
9940
|
ref: s,
|
|
9939
9941
|
defaultValue: t
|
|
9940
9942
|
}
|
|
9941
9943
|
);
|
|
9942
9944
|
}
|
|
9943
9945
|
);
|
|
9944
|
-
|
|
9945
|
-
function
|
|
9946
|
+
rc.displayName = lg;
|
|
9947
|
+
function sc(e) {
|
|
9946
9948
|
return e === "" || e === void 0;
|
|
9947
9949
|
}
|
|
9948
|
-
function
|
|
9950
|
+
function ac(e) {
|
|
9949
9951
|
const t = be(e), n = p.useRef(""), o = p.useRef(0), r = p.useCallback(
|
|
9950
9952
|
(a) => {
|
|
9951
9953
|
const i = n.current + a;
|
|
@@ -9959,7 +9961,7 @@ function ic(e) {
|
|
|
9959
9961
|
}, []);
|
|
9960
9962
|
return p.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, s];
|
|
9961
9963
|
}
|
|
9962
|
-
function
|
|
9964
|
+
function ic(e, t, n) {
|
|
9963
9965
|
const r = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
9964
9966
|
let a = dg(e, Math.max(s, 0));
|
|
9965
9967
|
r.length === 1 && (a = a.filter((d) => d !== n));
|
|
@@ -9971,7 +9973,7 @@ function cc(e, t, n) {
|
|
|
9971
9973
|
function dg(e, t) {
|
|
9972
9974
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
9973
9975
|
}
|
|
9974
|
-
var ug =
|
|
9976
|
+
var ug = Di, fg = $i, pg = Bi, mg = Hi, hg = Vi, gg = Wi, vg = Yi, bg = Zi, yg = Ji, wg = ec, xg = tc, Sg = nc, Cg = "Separator", ls = "horizontal", Eg = ["horizontal", "vertical"], cc = p.forwardRef((e, t) => {
|
|
9975
9977
|
const { decorative: n, orientation: o = ls, ...r } = e, s = kg(o) ? o : ls, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
9976
9978
|
return /* @__PURE__ */ f(
|
|
9977
9979
|
Z.div,
|
|
@@ -9983,11 +9985,11 @@ var ug = zi, fg = Fi, pg = Hi, mg = Vi, hg = Wi, gg = Ui, vg = qi, bg = Ji, yg =
|
|
|
9983
9985
|
}
|
|
9984
9986
|
);
|
|
9985
9987
|
});
|
|
9986
|
-
|
|
9988
|
+
cc.displayName = Cg;
|
|
9987
9989
|
function kg(e) {
|
|
9988
9990
|
return Eg.includes(e);
|
|
9989
9991
|
}
|
|
9990
|
-
var Ng =
|
|
9992
|
+
var Ng = cc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), lc = p.forwardRef(
|
|
9991
9993
|
(e, t) => {
|
|
9992
9994
|
const {
|
|
9993
9995
|
__scopeSwitch: n,
|
|
@@ -10014,7 +10016,7 @@ var Ng = lc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), dc = p.forwardRef(
|
|
|
10014
10016
|
role: "switch",
|
|
10015
10017
|
"aria-checked": y,
|
|
10016
10018
|
"aria-required": a,
|
|
10017
|
-
"data-state":
|
|
10019
|
+
"data-state": pc(y),
|
|
10018
10020
|
"data-disabled": i ? "" : void 0,
|
|
10019
10021
|
disabled: i,
|
|
10020
10022
|
value: c,
|
|
@@ -10026,7 +10028,7 @@ var Ng = lc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), dc = p.forwardRef(
|
|
|
10026
10028
|
}
|
|
10027
10029
|
),
|
|
10028
10030
|
v && /* @__PURE__ */ f(
|
|
10029
|
-
|
|
10031
|
+
fc,
|
|
10030
10032
|
{
|
|
10031
10033
|
control: m,
|
|
10032
10034
|
bubbles: !g.current,
|
|
@@ -10042,14 +10044,14 @@ var Ng = lc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), dc = p.forwardRef(
|
|
|
10042
10044
|
] });
|
|
10043
10045
|
}
|
|
10044
10046
|
);
|
|
10045
|
-
|
|
10046
|
-
var
|
|
10047
|
+
lc.displayName = jn;
|
|
10048
|
+
var dc = "SwitchThumb", uc = p.forwardRef(
|
|
10047
10049
|
(e, t) => {
|
|
10048
|
-
const { __scopeSwitch: n, ...o } = e, r = Pg(
|
|
10050
|
+
const { __scopeSwitch: n, ...o } = e, r = Pg(dc, n);
|
|
10049
10051
|
return /* @__PURE__ */ f(
|
|
10050
10052
|
Z.span,
|
|
10051
10053
|
{
|
|
10052
|
-
"data-state":
|
|
10054
|
+
"data-state": pc(r.checked),
|
|
10053
10055
|
"data-disabled": r.disabled ? "" : void 0,
|
|
10054
10056
|
...o,
|
|
10055
10057
|
ref: t
|
|
@@ -10057,8 +10059,8 @@ var uc = "SwitchThumb", fc = p.forwardRef(
|
|
|
10057
10059
|
);
|
|
10058
10060
|
}
|
|
10059
10061
|
);
|
|
10060
|
-
|
|
10061
|
-
var Ag = "SwitchBubbleInput",
|
|
10062
|
+
uc.displayName = dc;
|
|
10063
|
+
var Ag = "SwitchBubbleInput", fc = p.forwardRef(
|
|
10062
10064
|
({
|
|
10063
10065
|
__scopeSwitch: e,
|
|
10064
10066
|
control: t,
|
|
@@ -10099,13 +10101,13 @@ var Ag = "SwitchBubbleInput", pc = p.forwardRef(
|
|
|
10099
10101
|
);
|
|
10100
10102
|
}
|
|
10101
10103
|
);
|
|
10102
|
-
|
|
10103
|
-
function
|
|
10104
|
+
fc.displayName = Ag;
|
|
10105
|
+
function pc(e) {
|
|
10104
10106
|
return e ? "checked" : "unchecked";
|
|
10105
10107
|
}
|
|
10106
|
-
var _g =
|
|
10108
|
+
var _g = lc, Ig = uc, Gn = "Tabs", [Mg] = xe(Gn, [
|
|
10107
10109
|
$n
|
|
10108
|
-
]),
|
|
10110
|
+
]), mc = $n(), [Og, dr] = Mg(Gn), hc = p.forwardRef(
|
|
10109
10111
|
(e, t) => {
|
|
10110
10112
|
const {
|
|
10111
10113
|
__scopeTabs: n,
|
|
@@ -10145,12 +10147,12 @@ var _g = dc, Ig = fc, Gn = "Tabs", [Mg] = xe(Gn, [
|
|
|
10145
10147
|
);
|
|
10146
10148
|
}
|
|
10147
10149
|
);
|
|
10148
|
-
|
|
10149
|
-
var
|
|
10150
|
+
hc.displayName = Gn;
|
|
10151
|
+
var gc = "TabsList", vc = p.forwardRef(
|
|
10150
10152
|
(e, t) => {
|
|
10151
|
-
const { __scopeTabs: n, loop: o = !0, ...r } = e, s =
|
|
10153
|
+
const { __scopeTabs: n, loop: o = !0, ...r } = e, s = dr(gc, n), a = mc(n);
|
|
10152
10154
|
return /* @__PURE__ */ f(
|
|
10153
|
-
|
|
10155
|
+
ri,
|
|
10154
10156
|
{
|
|
10155
10157
|
asChild: !0,
|
|
10156
10158
|
...a,
|
|
@@ -10170,12 +10172,12 @@ var vc = "TabsList", bc = p.forwardRef(
|
|
|
10170
10172
|
);
|
|
10171
10173
|
}
|
|
10172
10174
|
);
|
|
10173
|
-
|
|
10174
|
-
var
|
|
10175
|
+
vc.displayName = gc;
|
|
10176
|
+
var bc = "TabsTrigger", yc = p.forwardRef(
|
|
10175
10177
|
(e, t) => {
|
|
10176
|
-
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a =
|
|
10178
|
+
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a = dr(bc, n), i = mc(n), c = Sc(a.baseId, o), d = Cc(a.baseId, o), u = o === a.value;
|
|
10177
10179
|
return /* @__PURE__ */ f(
|
|
10178
|
-
|
|
10180
|
+
si,
|
|
10179
10181
|
{
|
|
10180
10182
|
asChild: !0,
|
|
10181
10183
|
...i,
|
|
@@ -10210,10 +10212,10 @@ var yc = "TabsTrigger", wc = p.forwardRef(
|
|
|
10210
10212
|
);
|
|
10211
10213
|
}
|
|
10212
10214
|
);
|
|
10213
|
-
|
|
10214
|
-
var
|
|
10215
|
+
yc.displayName = bc;
|
|
10216
|
+
var wc = "TabsContent", xc = p.forwardRef(
|
|
10215
10217
|
(e, t) => {
|
|
10216
|
-
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i =
|
|
10218
|
+
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i = dr(wc, n), c = Sc(i.baseId, o), d = Cc(i.baseId, o), u = o === i.value, l = p.useRef(u);
|
|
10217
10219
|
return p.useEffect(() => {
|
|
10218
10220
|
const m = requestAnimationFrame(() => l.current = !1);
|
|
10219
10221
|
return () => cancelAnimationFrame(m);
|
|
@@ -10238,16 +10240,16 @@ var xc = "TabsContent", Sc = p.forwardRef(
|
|
|
10238
10240
|
) });
|
|
10239
10241
|
}
|
|
10240
10242
|
);
|
|
10241
|
-
|
|
10242
|
-
function
|
|
10243
|
+
xc.displayName = wc;
|
|
10244
|
+
function Sc(e, t) {
|
|
10243
10245
|
return `${e}-trigger-${t}`;
|
|
10244
10246
|
}
|
|
10245
|
-
function
|
|
10247
|
+
function Cc(e, t) {
|
|
10246
10248
|
return `${e}-content-${t}`;
|
|
10247
10249
|
}
|
|
10248
|
-
var Lg =
|
|
10250
|
+
var Lg = hc, Dg = vc, zg = yc, $g = xc, [Yn] = xe("Tooltip", [
|
|
10249
10251
|
zn
|
|
10250
|
-
]), qn = zn(),
|
|
10252
|
+
]), qn = zn(), Ec = "TooltipProvider", Fg = 700, Io = "tooltip.open", [Bg, ur] = Yn(Ec), kc = (e) => {
|
|
10251
10253
|
const {
|
|
10252
10254
|
__scopeTooltip: t,
|
|
10253
10255
|
delayDuration: n = Fg,
|
|
@@ -10282,8 +10284,8 @@ var Lg = gc, Dg = bc, zg = wc, $g = Sc, [Yn] = xe("Tooltip", [
|
|
|
10282
10284
|
}
|
|
10283
10285
|
);
|
|
10284
10286
|
};
|
|
10285
|
-
|
|
10286
|
-
var jt = "Tooltip", [Hg, Xt] = Yn(jt),
|
|
10287
|
+
kc.displayName = Ec;
|
|
10288
|
+
var jt = "Tooltip", [Hg, Xt] = Yn(jt), Nc = (e) => {
|
|
10287
10289
|
const {
|
|
10288
10290
|
__scopeTooltip: t,
|
|
10289
10291
|
children: n,
|
|
@@ -10292,11 +10294,11 @@ var jt = "Tooltip", [Hg, Xt] = Yn(jt), Rc = (e) => {
|
|
|
10292
10294
|
onOpenChange: s,
|
|
10293
10295
|
disableHoverableContent: a,
|
|
10294
10296
|
delayDuration: i
|
|
10295
|
-
} = e, c =
|
|
10297
|
+
} = e, c = ur(jt, e.__scopeTooltip), d = qn(t), [u, l] = p.useState(null), m = ht(), h = p.useRef(0), b = a ?? c.disableHoverableContent, g = i ?? c.delayDuration, v = p.useRef(!1), [y, w] = je({
|
|
10296
10298
|
prop: o,
|
|
10297
10299
|
defaultProp: r ?? !1,
|
|
10298
10300
|
onChange: (N) => {
|
|
10299
|
-
N ? (c.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
10301
|
+
N ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Io))) : c.onClose(), s == null || s(N);
|
|
10300
10302
|
},
|
|
10301
10303
|
caller: jt
|
|
10302
10304
|
}), x = p.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), C = p.useCallback(() => {
|
|
@@ -10310,7 +10312,7 @@ var jt = "Tooltip", [Hg, Xt] = Yn(jt), Rc = (e) => {
|
|
|
10310
10312
|
}, [g, w]);
|
|
10311
10313
|
return p.useEffect(() => () => {
|
|
10312
10314
|
h.current && (window.clearTimeout(h.current), h.current = 0);
|
|
10313
|
-
}, []), /* @__PURE__ */ f(
|
|
10315
|
+
}, []), /* @__PURE__ */ f(Ka, { ...d, children: /* @__PURE__ */ f(
|
|
10314
10316
|
Hg,
|
|
10315
10317
|
{
|
|
10316
10318
|
scope: t,
|
|
@@ -10332,11 +10334,11 @@ var jt = "Tooltip", [Hg, Xt] = Yn(jt), Rc = (e) => {
|
|
|
10332
10334
|
}
|
|
10333
10335
|
) });
|
|
10334
10336
|
};
|
|
10335
|
-
|
|
10336
|
-
var
|
|
10337
|
+
Nc.displayName = jt;
|
|
10338
|
+
var Mo = "TooltipTrigger", Rc = p.forwardRef(
|
|
10337
10339
|
(e, t) => {
|
|
10338
|
-
const { __scopeTooltip: n, ...o } = e, r = Xt(
|
|
10339
|
-
return p.useEffect(() => () => document.removeEventListener("pointerup", l), [l]), /* @__PURE__ */ f(
|
|
10340
|
+
const { __scopeTooltip: n, ...o } = e, r = Xt(Mo, n), s = ur(Mo, n), a = qn(n), i = p.useRef(null), c = ie(t, i, r.onTriggerChange), d = p.useRef(!1), u = p.useRef(!1), l = p.useCallback(() => d.current = !1, []);
|
|
10341
|
+
return p.useEffect(() => () => document.removeEventListener("pointerup", l), [l]), /* @__PURE__ */ f(Xa, { asChild: !0, ...a, children: /* @__PURE__ */ f(
|
|
10340
10342
|
Z.button,
|
|
10341
10343
|
{
|
|
10342
10344
|
"aria-describedby": r.open ? r.contentId : void 0,
|
|
@@ -10361,21 +10363,21 @@ var Io = "TooltipTrigger", Tc = p.forwardRef(
|
|
|
10361
10363
|
) });
|
|
10362
10364
|
}
|
|
10363
10365
|
);
|
|
10364
|
-
|
|
10365
|
-
var
|
|
10366
|
+
Rc.displayName = Mo;
|
|
10367
|
+
var fr = "TooltipPortal", [Vg, Wg] = Yn(fr, {
|
|
10366
10368
|
forceMount: void 0
|
|
10367
|
-
}),
|
|
10368
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Xt(
|
|
10369
|
-
return /* @__PURE__ */ f(Vg, { scope: t, forceMount: n, children: /* @__PURE__ */ f(De, { present: n || s.open, children: /* @__PURE__ */ f(
|
|
10369
|
+
}), Tc = (e) => {
|
|
10370
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Xt(fr, t);
|
|
10371
|
+
return /* @__PURE__ */ f(Vg, { scope: t, forceMount: n, children: /* @__PURE__ */ f(De, { present: n || s.open, children: /* @__PURE__ */ f(Go, { asChild: !0, container: r, children: o }) }) });
|
|
10370
10372
|
};
|
|
10371
|
-
|
|
10372
|
-
var It = "TooltipContent",
|
|
10373
|
+
Tc.displayName = fr;
|
|
10374
|
+
var It = "TooltipContent", Pc = p.forwardRef(
|
|
10373
10375
|
(e, t) => {
|
|
10374
10376
|
const n = Wg(It, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, a = Xt(It, e.__scopeTooltip);
|
|
10375
|
-
return /* @__PURE__ */ f(De, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ f(
|
|
10377
|
+
return /* @__PURE__ */ f(De, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ f(Ac, { side: r, ...s, ref: t }) : /* @__PURE__ */ f(Ug, { side: r, ...s, ref: t }) });
|
|
10376
10378
|
}
|
|
10377
10379
|
), Ug = p.forwardRef((e, t) => {
|
|
10378
|
-
const n = Xt(It, e.__scopeTooltip), o =
|
|
10380
|
+
const n = Xt(It, e.__scopeTooltip), o = ur(It, e.__scopeTooltip), r = p.useRef(null), s = ie(t, r), [a, i] = p.useState(null), { trigger: c, onClose: d } = n, u = r.current, { onPointerInTransitChange: l } = o, m = p.useCallback(() => {
|
|
10379
10381
|
i(null), l(!1);
|
|
10380
10382
|
}, [l]), h = p.useCallback(
|
|
10381
10383
|
(b, g) => {
|
|
@@ -10399,8 +10401,8 @@ var It = "TooltipContent", Ac = p.forwardRef(
|
|
|
10399
10401
|
};
|
|
10400
10402
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
10401
10403
|
}
|
|
10402
|
-
}, [c, u, a, d, m]), /* @__PURE__ */ f(
|
|
10403
|
-
}), [jg, Gg] = Yn(jt, { isInside: !1 }), Yg = /* @__PURE__ */ Zu("TooltipContent"),
|
|
10404
|
+
}, [c, u, a, d, m]), /* @__PURE__ */ f(Ac, { ...e, ref: s });
|
|
10405
|
+
}), [jg, Gg] = Yn(jt, { isInside: !1 }), Yg = /* @__PURE__ */ Zu("TooltipContent"), Ac = p.forwardRef(
|
|
10404
10406
|
(e, t) => {
|
|
10405
10407
|
const {
|
|
10406
10408
|
__scopeTooltip: n,
|
|
@@ -10410,7 +10412,7 @@ var It = "TooltipContent", Ac = p.forwardRef(
|
|
|
10410
10412
|
onPointerDownOutside: a,
|
|
10411
10413
|
...i
|
|
10412
10414
|
} = e, c = Xt(It, n), d = qn(n), { onClose: u } = c;
|
|
10413
|
-
return p.useEffect(() => (document.addEventListener(
|
|
10415
|
+
return p.useEffect(() => (document.addEventListener(Io, u), () => document.removeEventListener(Io, u)), [u]), p.useEffect(() => {
|
|
10414
10416
|
if (c.trigger) {
|
|
10415
10417
|
const l = (m) => {
|
|
10416
10418
|
const h = m.target;
|
|
@@ -10419,7 +10421,7 @@ var It = "TooltipContent", Ac = p.forwardRef(
|
|
|
10419
10421
|
return window.addEventListener("scroll", l, { capture: !0 }), () => window.removeEventListener("scroll", l, { capture: !0 });
|
|
10420
10422
|
}
|
|
10421
10423
|
}, [c.trigger, u]), /* @__PURE__ */ f(
|
|
10422
|
-
|
|
10424
|
+
jo,
|
|
10423
10425
|
{
|
|
10424
10426
|
asChild: !0,
|
|
10425
10427
|
disableOutsidePointerEvents: !1,
|
|
@@ -10428,7 +10430,7 @@ var It = "TooltipContent", Ac = p.forwardRef(
|
|
|
10428
10430
|
onFocusOutside: (l) => l.preventDefault(),
|
|
10429
10431
|
onDismiss: u,
|
|
10430
10432
|
children: /* @__PURE__ */ q(
|
|
10431
|
-
|
|
10433
|
+
Za,
|
|
10432
10434
|
{
|
|
10433
10435
|
"data-state": c.stateAttribute,
|
|
10434
10436
|
...d,
|
|
@@ -10452,17 +10454,17 @@ var It = "TooltipContent", Ac = p.forwardRef(
|
|
|
10452
10454
|
);
|
|
10453
10455
|
}
|
|
10454
10456
|
);
|
|
10455
|
-
|
|
10456
|
-
var
|
|
10457
|
+
Pc.displayName = It;
|
|
10458
|
+
var _c = "TooltipArrow", Ic = p.forwardRef(
|
|
10457
10459
|
(e, t) => {
|
|
10458
10460
|
const { __scopeTooltip: n, ...o } = e, r = qn(n);
|
|
10459
10461
|
return Gg(
|
|
10460
|
-
|
|
10462
|
+
_c,
|
|
10461
10463
|
n
|
|
10462
|
-
).isInside ? null : /* @__PURE__ */ f(
|
|
10464
|
+
).isInside ? null : /* @__PURE__ */ f(Ja, { ...r, ...o, ref: t });
|
|
10463
10465
|
}
|
|
10464
10466
|
);
|
|
10465
|
-
|
|
10467
|
+
Ic.displayName = _c;
|
|
10466
10468
|
function qg(e, t) {
|
|
10467
10469
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
10468
10470
|
switch (Math.min(n, o, r, s)) {
|
|
@@ -10555,7 +10557,7 @@ function Qg(e) {
|
|
|
10555
10557
|
}
|
|
10556
10558
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
10557
10559
|
}
|
|
10558
|
-
var ev =
|
|
10560
|
+
var ev = kc, tv = Nc, nv = Rc, ov = Tc, rv = Pc, sv = Ic;
|
|
10559
10561
|
const av = Rn(
|
|
10560
10562
|
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
10561
10563
|
{
|
|
@@ -10585,7 +10587,7 @@ const av = Rn(
|
|
|
10585
10587
|
}
|
|
10586
10588
|
}
|
|
10587
10589
|
);
|
|
10588
|
-
function
|
|
10590
|
+
function Mc({
|
|
10589
10591
|
className: e,
|
|
10590
10592
|
variant: t = "default",
|
|
10591
10593
|
size: n = "default",
|
|
@@ -10593,7 +10595,7 @@ function Oc({
|
|
|
10593
10595
|
...r
|
|
10594
10596
|
}) {
|
|
10595
10597
|
return /* @__PURE__ */ f(
|
|
10596
|
-
o ?
|
|
10598
|
+
o ? Gs : "button",
|
|
10597
10599
|
{
|
|
10598
10600
|
"data-slot": "button",
|
|
10599
10601
|
"data-variant": t,
|
|
@@ -10636,7 +10638,7 @@ function lv({
|
|
|
10636
10638
|
asChild: o = !1,
|
|
10637
10639
|
...r
|
|
10638
10640
|
}) {
|
|
10639
|
-
const s = o ?
|
|
10641
|
+
const s = o ? Gs : "span", a = n ? iv[n] : void 0;
|
|
10640
10642
|
return /* @__PURE__ */ f(
|
|
10641
10643
|
s,
|
|
10642
10644
|
{
|
|
@@ -10704,7 +10706,7 @@ function mv({
|
|
|
10704
10706
|
...o,
|
|
10705
10707
|
children: [
|
|
10706
10708
|
n,
|
|
10707
|
-
/* @__PURE__ */ f(mg, { asChild: !0, children: /* @__PURE__ */ f(
|
|
10709
|
+
/* @__PURE__ */ f(mg, { asChild: !0, children: /* @__PURE__ */ f(Ss, { className: "size-4 opacity-50" }) })
|
|
10708
10710
|
]
|
|
10709
10711
|
}
|
|
10710
10712
|
);
|
|
@@ -10765,7 +10767,7 @@ function gv({
|
|
|
10765
10767
|
{
|
|
10766
10768
|
"data-slot": "select-item-indicator",
|
|
10767
10769
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
10768
|
-
children: /* @__PURE__ */ f(wg, { children: /* @__PURE__ */ f(
|
|
10770
|
+
children: /* @__PURE__ */ f(wg, { children: /* @__PURE__ */ f(xs, { className: "size-4" }) })
|
|
10769
10771
|
}
|
|
10770
10772
|
),
|
|
10771
10773
|
/* @__PURE__ */ f(yg, { children: t })
|
|
@@ -10803,7 +10805,7 @@ function bv({
|
|
|
10803
10805
|
e
|
|
10804
10806
|
),
|
|
10805
10807
|
...t,
|
|
10806
|
-
children: /* @__PURE__ */ f(
|
|
10808
|
+
children: /* @__PURE__ */ f(Ss, { className: "size-4" })
|
|
10807
10809
|
}
|
|
10808
10810
|
);
|
|
10809
10811
|
}
|
|
@@ -10812,7 +10814,7 @@ function yv({
|
|
|
10812
10814
|
...t
|
|
10813
10815
|
}) {
|
|
10814
10816
|
return /* @__PURE__ */ f(
|
|
10815
|
-
|
|
10817
|
+
Sa,
|
|
10816
10818
|
{
|
|
10817
10819
|
"data-slot": "checkbox",
|
|
10818
10820
|
className: X(
|
|
@@ -10821,11 +10823,11 @@ function yv({
|
|
|
10821
10823
|
),
|
|
10822
10824
|
...t,
|
|
10823
10825
|
children: /* @__PURE__ */ f(
|
|
10824
|
-
|
|
10826
|
+
Ea,
|
|
10825
10827
|
{
|
|
10826
10828
|
"data-slot": "checkbox-indicator",
|
|
10827
10829
|
className: "grid place-content-center text-current transition-none",
|
|
10828
|
-
children: /* @__PURE__ */ f(
|
|
10830
|
+
children: /* @__PURE__ */ f(xs, { className: "size-3.5" })
|
|
10829
10831
|
}
|
|
10830
10832
|
)
|
|
10831
10833
|
}
|
|
@@ -11043,7 +11045,7 @@ function _v({
|
|
|
11043
11045
|
...n
|
|
11044
11046
|
}) {
|
|
11045
11047
|
return /* @__PURE__ */ f(
|
|
11046
|
-
|
|
11048
|
+
Ri,
|
|
11047
11049
|
{
|
|
11048
11050
|
"data-slot": "scroll-area-scrollbar",
|
|
11049
11051
|
orientation: t,
|
|
@@ -11055,7 +11057,7 @@ function _v({
|
|
|
11055
11057
|
),
|
|
11056
11058
|
...n,
|
|
11057
11059
|
children: /* @__PURE__ */ f(
|
|
11058
|
-
|
|
11060
|
+
_i,
|
|
11059
11061
|
{
|
|
11060
11062
|
"data-slot": "scroll-area-thumb",
|
|
11061
11063
|
className: "relative flex-1 rounded-full bg-border"
|
|
@@ -11064,7 +11066,7 @@ function _v({
|
|
|
11064
11066
|
}
|
|
11065
11067
|
);
|
|
11066
11068
|
}
|
|
11067
|
-
function
|
|
11069
|
+
function Oo({
|
|
11068
11070
|
className: e,
|
|
11069
11071
|
size: t = "default",
|
|
11070
11072
|
...n
|
|
@@ -11082,7 +11084,7 @@ function Mo({
|
|
|
11082
11084
|
}
|
|
11083
11085
|
);
|
|
11084
11086
|
}
|
|
11085
|
-
function
|
|
11087
|
+
function Lo({
|
|
11086
11088
|
className: e,
|
|
11087
11089
|
...t
|
|
11088
11090
|
}) {
|
|
@@ -11095,7 +11097,7 @@ function Oo({
|
|
|
11095
11097
|
}
|
|
11096
11098
|
);
|
|
11097
11099
|
}
|
|
11098
|
-
function
|
|
11100
|
+
function Do({
|
|
11099
11101
|
className: e,
|
|
11100
11102
|
...t
|
|
11101
11103
|
}) {
|
|
@@ -11259,7 +11261,7 @@ function Wv({
|
|
|
11259
11261
|
...e
|
|
11260
11262
|
}) {
|
|
11261
11263
|
return /* @__PURE__ */ f(
|
|
11262
|
-
|
|
11264
|
+
Qs,
|
|
11263
11265
|
{
|
|
11264
11266
|
"data-slot": "collapsible-trigger",
|
|
11265
11267
|
...e
|
|
@@ -11270,38 +11272,38 @@ function Uv({
|
|
|
11270
11272
|
...e
|
|
11271
11273
|
}) {
|
|
11272
11274
|
return /* @__PURE__ */ f(
|
|
11273
|
-
|
|
11275
|
+
ea,
|
|
11274
11276
|
{
|
|
11275
11277
|
"data-slot": "collapsible-content",
|
|
11276
11278
|
...e
|
|
11277
11279
|
}
|
|
11278
11280
|
);
|
|
11279
11281
|
}
|
|
11280
|
-
const Dt = (e) => e == null ? void 0 : e === !0 || e === "true",
|
|
11282
|
+
const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
11281
11283
|
"arrow-left": nd,
|
|
11282
11284
|
calendar: cd,
|
|
11283
|
-
"check-circle-2":
|
|
11285
|
+
"check-circle-2": Es,
|
|
11284
11286
|
"chevron-left": fd,
|
|
11285
|
-
"chevron-right":
|
|
11287
|
+
"chevron-right": zo,
|
|
11286
11288
|
clock: Ed,
|
|
11287
11289
|
"credit-card": Td,
|
|
11288
11290
|
"external-link": Ad,
|
|
11289
|
-
"help-circle":
|
|
11291
|
+
"help-circle": ks,
|
|
11290
11292
|
info: Nn,
|
|
11291
|
-
"loader-2":
|
|
11292
|
-
mail:
|
|
11293
|
+
"loader-2": $o,
|
|
11294
|
+
mail: bo,
|
|
11293
11295
|
"map-pin": zd,
|
|
11294
|
-
"message-circle":
|
|
11295
|
-
"message-square":
|
|
11296
|
+
"message-circle": Ns,
|
|
11297
|
+
"message-square": Fo,
|
|
11296
11298
|
package: Wd,
|
|
11297
11299
|
phone: jd,
|
|
11298
11300
|
search: Kd,
|
|
11299
11301
|
"shopping-bag": Zd,
|
|
11300
|
-
sparkles:
|
|
11302
|
+
sparkles: Rs,
|
|
11301
11303
|
truck: nu,
|
|
11302
|
-
user:
|
|
11304
|
+
user: Ts,
|
|
11303
11305
|
"x-circle": wd,
|
|
11304
|
-
"alert-circle":
|
|
11306
|
+
"alert-circle": Cs,
|
|
11305
11307
|
"book-open": rd
|
|
11306
11308
|
}, ds = {
|
|
11307
11309
|
0: "gap-0",
|
|
@@ -11314,11 +11316,11 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11314
11316
|
8: "gap-8",
|
|
11315
11317
|
10: "gap-10",
|
|
11316
11318
|
12: "gap-12"
|
|
11317
|
-
},
|
|
11319
|
+
}, Lc = {
|
|
11318
11320
|
default: "text-foreground",
|
|
11319
11321
|
muted: "text-muted-foreground",
|
|
11320
11322
|
destructive: "text-destructive"
|
|
11321
|
-
},
|
|
11323
|
+
}, Dc = (e) => typeof e == "number" ? ds[String(e)] ?? "gap-2" : typeof e == "string" ? ds[e.trim()] ?? "gap-2" : "gap-2", jv = ({ children: e, className: t, onClick: n }) => /* @__PURE__ */ f(
|
|
11322
11324
|
Bt,
|
|
11323
11325
|
{
|
|
11324
11326
|
className: t,
|
|
@@ -11326,7 +11328,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11326
11328
|
children: e
|
|
11327
11329
|
}
|
|
11328
11330
|
), Gv = ({ children: e, className: t }) => /* @__PURE__ */ f(Ht, { className: t, children: e }), Yv = ({ children: e, className: t }) => /* @__PURE__ */ f(Ku, { className: t, children: e }), qv = ({ children: e, className: t, onClick: n, variant: o, size: r, disabled: s, title: a }) => /* @__PURE__ */ f(
|
|
11329
|
-
|
|
11331
|
+
Mc,
|
|
11330
11332
|
{
|
|
11331
11333
|
className: t,
|
|
11332
11334
|
variant: o,
|
|
@@ -11339,7 +11341,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11339
11341
|
), Kv = ({ children: e, className: t, variant: n, hue: o, tone: r }) => /* @__PURE__ */ f(
|
|
11340
11342
|
lv,
|
|
11341
11343
|
{
|
|
11342
|
-
className: X(
|
|
11344
|
+
className: X(Lc[r] ?? "", t),
|
|
11343
11345
|
variant: n,
|
|
11344
11346
|
hue: o,
|
|
11345
11347
|
children: e
|
|
@@ -11438,9 +11440,9 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11438
11440
|
return /* @__PURE__ */ f(kv, { value: o, onValueChange: r, className: n, children: e });
|
|
11439
11441
|
}, ib = ({ children: e, className: t }) => /* @__PURE__ */ f(Rv, { className: t, children: e }), cb = ({ children: e, value: t, className: n }) => /* @__PURE__ */ f(Tv, { className: n, value: t, children: e }), lb = ({ children: e, value: t, className: n }) => /* @__PURE__ */ f(Pv, { className: n, value: t, children: e }), db = ({ children: e, className: t }) => /* @__PURE__ */ f(Av, { className: t, children: e }), ub = ({ src: e, alt: t, className: n }) => {
|
|
11440
11442
|
var o;
|
|
11441
|
-
return /* @__PURE__ */ q(
|
|
11442
|
-
/* @__PURE__ */ f(
|
|
11443
|
-
/* @__PURE__ */ f(
|
|
11443
|
+
return /* @__PURE__ */ q(Oo, { className: n, children: [
|
|
11444
|
+
/* @__PURE__ */ f(Lo, { src: e, alt: t }),
|
|
11445
|
+
/* @__PURE__ */ f(Do, { children: ((o = t == null ? void 0 : t.charAt(0)) == null ? void 0 : o.toUpperCase()) || "?" })
|
|
11444
11446
|
] });
|
|
11445
11447
|
}, fb = ({ width: e, height: t, className: n }) => /* @__PURE__ */ f(
|
|
11446
11448
|
Iv,
|
|
@@ -11462,7 +11464,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11462
11464
|
}
|
|
11463
11465
|
), hb = {
|
|
11464
11466
|
default: Nn,
|
|
11465
|
-
destructive:
|
|
11467
|
+
destructive: Cs
|
|
11466
11468
|
}, gb = ({ children: e, variant: t, title: n, className: o }) => {
|
|
11467
11469
|
const r = t, s = hb[r || "default"] || Nn;
|
|
11468
11470
|
return /* @__PURE__ */ q(Fv, { variant: r, className: o, children: [
|
|
@@ -11478,16 +11480,16 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11478
11480
|
children: e
|
|
11479
11481
|
}
|
|
11480
11482
|
), bb = ({ children: e, className: t }) => /* @__PURE__ */ q(Wv, { className: X("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90", t), children: [
|
|
11481
|
-
/* @__PURE__ */ f(
|
|
11483
|
+
/* @__PURE__ */ f(zo, { className: "size-4 shrink-0 transition-transform duration-200" }),
|
|
11482
11484
|
e
|
|
11483
|
-
] }), yb = ({ children: e, className: t }) => /* @__PURE__ */ f(Uv, { className: t, children: e }), wb = ({ children: e, className: t, tone: n }) => /* @__PURE__ */ f("p", { className: X("text-sm",
|
|
11485
|
+
] }), yb = ({ children: e, className: t }) => /* @__PURE__ */ f(Uv, { className: t, children: e }), wb = ({ children: e, className: t, tone: n }) => /* @__PURE__ */ f("p", { className: X("text-sm", Lc[n] ?? "", t), children: e }), xb = ({ children: e, className: t, level: n }) => {
|
|
11484
11486
|
const o = `h${n || "2"}`;
|
|
11485
11487
|
return /* @__PURE__ */ f(o, { className: X("font-semibold tracking-tight", t), children: e });
|
|
11486
11488
|
}, Sb = ({ children: e, className: t, direction: n, gap: o }) => {
|
|
11487
|
-
const r = n === "row" ? "flex-row" : "flex-col", s =
|
|
11489
|
+
const r = n === "row" ? "flex-row" : "flex-col", s = Dc(o);
|
|
11488
11490
|
return /* @__PURE__ */ f("div", { className: X("flex", r, s, t), children: e });
|
|
11489
11491
|
}, Cb = ({ children: e, className: t, gap: n }) => {
|
|
11490
|
-
const o =
|
|
11492
|
+
const o = Dc(n);
|
|
11491
11493
|
return /* @__PURE__ */ f("div", { className: X("flex flex-row items-center", o, t), children: e });
|
|
11492
11494
|
}, Eb = ({ children: e, className: t, href: n, target: o, rel: r }) => /* @__PURE__ */ f(
|
|
11493
11495
|
"a",
|
|
@@ -11502,7 +11504,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11502
11504
|
e ? /* @__PURE__ */ f(Ht, { className: "px-6 py-3", children: /* @__PURE__ */ f("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
|
|
11503
11505
|
/* @__PURE__ */ f("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
11504
11506
|
] }), Nb = ({ icon: e, label: t, description: n, onClick: o, className: r }) => {
|
|
11505
|
-
const s = e, a = "size-5", i = s ?
|
|
11507
|
+
const s = e, a = "size-5", i = s ? Oc[s] : null;
|
|
11506
11508
|
return /* @__PURE__ */ q(
|
|
11507
11509
|
"button",
|
|
11508
11510
|
{
|
|
@@ -11515,12 +11517,12 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11515
11517
|
t ? /* @__PURE__ */ f("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
11516
11518
|
n ? /* @__PURE__ */ f("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(n) }) : null
|
|
11517
11519
|
] }),
|
|
11518
|
-
/* @__PURE__ */ f(
|
|
11520
|
+
/* @__PURE__ */ f(zo, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
|
|
11519
11521
|
]
|
|
11520
11522
|
}
|
|
11521
11523
|
);
|
|
11522
11524
|
}, Rb = ({ name: e, size: t, className: n }) => {
|
|
11523
|
-
const r = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a =
|
|
11525
|
+
const r = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = Oc[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
11524
11526
|
return a ? /* @__PURE__ */ f(a, { className: X(r, i, n) }) : /* @__PURE__ */ f("span", { className: X("inline-block", r, i, n), "data-icon": s });
|
|
11525
11527
|
}, Tb = () => ({
|
|
11526
11528
|
"ui-card": jv,
|
|
@@ -11559,7 +11561,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11559
11561
|
"ui-collapsible": vb,
|
|
11560
11562
|
"ui-collapsible-trigger": bb,
|
|
11561
11563
|
"ui-collapsible-content": yb
|
|
11562
|
-
}), us = "/api/ecommerce",
|
|
11564
|
+
}), us = "/api/ecommerce", zc = async (e, t) => {
|
|
11563
11565
|
const n = t ? `${t.replace(/\/$/, "")}${us}` : us, o = await fetch(n, {
|
|
11564
11566
|
method: "POST",
|
|
11565
11567
|
headers: { "Content-Type": "application/json" },
|
|
@@ -11605,7 +11607,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11605
11607
|
if (typeof window > "u")
|
|
11606
11608
|
return;
|
|
11607
11609
|
const b = () => {
|
|
11608
|
-
const v =
|
|
11610
|
+
const v = ys(window.location.search);
|
|
11609
11611
|
r(v);
|
|
11610
11612
|
};
|
|
11611
11613
|
b();
|
|
@@ -11886,7 +11888,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
11886
11888
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${S}`), d([]), y(!0);
|
|
11887
11889
|
return;
|
|
11888
11890
|
}
|
|
11889
|
-
const $ = await _.json(), P =
|
|
11891
|
+
const $ = await _.json(), P = ys(typeof window < "u" ? window.location.search : ""), z = await Yl($, P), { tokens: B, errors: J } = await Lb(z, n, o, S, P);
|
|
11890
11892
|
d(z), l(P), h(new Map(B)), g(J);
|
|
11891
11893
|
} catch (_) {
|
|
11892
11894
|
console.error("Failed to load extensions:", _);
|
|
@@ -12194,7 +12196,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
|
12194
12196
|
const U = Vt(
|
|
12195
12197
|
() => ({
|
|
12196
12198
|
// TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
|
|
12197
|
-
"data.query": async (k) =>
|
|
12199
|
+
"data.query": async (k) => zc(k, t),
|
|
12198
12200
|
"data.fetch": async (k, S) => {
|
|
12199
12201
|
const _ = m.get(k);
|
|
12200
12202
|
if (!_)
|
|
@@ -12327,11 +12329,11 @@ const Hb = ({ ...e }) => {
|
|
|
12327
12329
|
theme: t,
|
|
12328
12330
|
className: "toaster group",
|
|
12329
12331
|
icons: {
|
|
12330
|
-
success: /* @__PURE__ */ f(
|
|
12332
|
+
success: /* @__PURE__ */ f(Es, { className: "size-4" }),
|
|
12331
12333
|
info: /* @__PURE__ */ f(Nn, { className: "size-4" }),
|
|
12332
12334
|
warning: /* @__PURE__ */ f(eu, { className: "size-4" }),
|
|
12333
12335
|
error: /* @__PURE__ */ f(Hd, { className: "size-4" }),
|
|
12334
|
-
loading: /* @__PURE__ */ f(
|
|
12336
|
+
loading: /* @__PURE__ */ f($o, { className: "size-4 animate-spin" })
|
|
12335
12337
|
},
|
|
12336
12338
|
style: {
|
|
12337
12339
|
"--normal-bg": "var(--popover)",
|
|
@@ -12342,17 +12344,17 @@ const Hb = ({ ...e }) => {
|
|
|
12342
12344
|
...e
|
|
12343
12345
|
}
|
|
12344
12346
|
);
|
|
12345
|
-
}, Vb = { dark: "dark", light: "widget-theme-light" }, Wb = { dark: "dark", light: "light" },
|
|
12347
|
+
}, Vb = { dark: "dark", light: "widget-theme-light" }, Wb = { dark: "dark", light: "light" }, $c = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ q("div", { "data-id": "widget-body", className: Vb[t], style: { position: "relative", transform: "translateZ(0)" }, children: [
|
|
12346
12348
|
/* @__PURE__ */ f("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ f("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }),
|
|
12347
12349
|
/* @__PURE__ */ f(Hb, { position: "bottom-center", theme: Wb[t] ?? "system", toastOptions: { descriptionClassName: "!text-muted-foreground" } })
|
|
12348
12350
|
] }), Ub = {
|
|
12349
12351
|
airplay: ed,
|
|
12350
|
-
"message-circle":
|
|
12351
|
-
"message-square":
|
|
12352
|
+
"message-circle": Ns,
|
|
12353
|
+
"message-square": Fo,
|
|
12352
12354
|
headphones: Id,
|
|
12353
|
-
"help-circle":
|
|
12355
|
+
"help-circle": ks,
|
|
12354
12356
|
bot: ad,
|
|
12355
|
-
sparkles:
|
|
12357
|
+
sparkles: Rs,
|
|
12356
12358
|
zap: su
|
|
12357
12359
|
}, jb = ({ className: e }) => /* @__PURE__ */ f("svg", { className: X(e, "scale-125"), viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ f("path", { d: "M10,18 L6,22 L6,18 L10,18 Z M17,6 C19.7614237,6 22,8.23857625 22,11 C22,13.7614237 19.7614237,16 17,16 L7,16 C4.23857625,16 2,13.7614237 2,11 C2,8.23857625 4.23857625,6 7,6 Z", transform: "translate(12, 14) scale(-1, 1) translate(-12, -14)" }) }), Gb = ({ className: e }) => /* @__PURE__ */ q("svg", { className: e, viewBox: "0 0 190 190", fill: "currentColor", "aria-hidden": "true", children: [
|
|
12358
12360
|
/* @__PURE__ */ q("g", { id: "sl-half-right", children: [
|
|
@@ -12363,7 +12365,7 @@ const Hb = ({ ...e }) => {
|
|
|
12363
12365
|
/* @__PURE__ */ f("g", { transform: "translate(-160.365,27.97)", children: /* @__PURE__ */ f("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z" }) }),
|
|
12364
12366
|
/* @__PURE__ */ f("g", { transform: "translate(-160.365,27.97)", children: /* @__PURE__ */ f("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", opacity: "0.3" }) })
|
|
12365
12367
|
] })
|
|
12366
|
-
] }),
|
|
12368
|
+
] }), Fc = 400, Yb = Fc * 0.35, Bc = ({ icon: e, isOpen: t, onClick: n }) => {
|
|
12367
12369
|
const o = Ub[e] ?? jb, [r, s] = le("idle"), a = Me(t);
|
|
12368
12370
|
ce(() => {
|
|
12369
12371
|
if (a.current === t)
|
|
@@ -12374,7 +12376,7 @@ const Hb = ({ ...e }) => {
|
|
|
12374
12376
|
}, [t]);
|
|
12375
12377
|
const i = () => r === "interstitial" ? /* @__PURE__ */ f(Gb, {}) : t ? /* @__PURE__ */ f(Nd, {}) : /* @__PURE__ */ f(o, {});
|
|
12376
12378
|
return /* @__PURE__ */ f("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ f(
|
|
12377
|
-
|
|
12379
|
+
Mc,
|
|
12378
12380
|
{
|
|
12379
12381
|
size: "icon",
|
|
12380
12382
|
className: X(
|
|
@@ -12385,7 +12387,7 @@ const Hb = ({ ...e }) => {
|
|
|
12385
12387
|
children: /* @__PURE__ */ f("span", { className: X(
|
|
12386
12388
|
"flex items-center justify-center transition-transform",
|
|
12387
12389
|
t && "rotate-180"
|
|
12388
|
-
), style: { transitionDuration: `${
|
|
12390
|
+
), style: { transitionDuration: `${Fc}ms` }, children: i() })
|
|
12389
12391
|
}
|
|
12390
12392
|
) });
|
|
12391
12393
|
}, a0 = ({ children: e, icon: t, theme: n }) => {
|
|
@@ -12403,7 +12405,7 @@ const Hb = ({ ...e }) => {
|
|
|
12403
12405
|
};
|
|
12404
12406
|
}, []), /* @__PURE__ */ q(Ie, { children: [
|
|
12405
12407
|
s && /* @__PURE__ */ f(
|
|
12406
|
-
|
|
12408
|
+
Bc,
|
|
12407
12409
|
{
|
|
12408
12410
|
isOpen: o,
|
|
12409
12411
|
icon: t,
|
|
@@ -12418,13 +12420,13 @@ const Hb = ({ ...e }) => {
|
|
|
12418
12420
|
"overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl transition-all duration-200 ease-out origin-bottom-right",
|
|
12419
12421
|
o ? "opacity-100 scale-100 translate-y-0 pointer-events-auto" : "opacity-0 scale-95 translate-y-2 pointer-events-none"
|
|
12420
12422
|
),
|
|
12421
|
-
children: /* @__PURE__ */ f(
|
|
12423
|
+
children: /* @__PURE__ */ f($c, { theme: n, children: e })
|
|
12422
12424
|
}
|
|
12423
12425
|
)
|
|
12424
12426
|
] });
|
|
12425
12427
|
}, i0 = {
|
|
12426
|
-
Body:
|
|
12427
|
-
Launcher:
|
|
12428
|
+
Body: $c,
|
|
12429
|
+
Launcher: Bc
|
|
12428
12430
|
}, qb = ({ href: e, children: t }) => /* @__PURE__ */ f(
|
|
12429
12431
|
"a",
|
|
12430
12432
|
{
|
|
@@ -12444,7 +12446,7 @@ const Hb = ({ ...e }) => {
|
|
|
12444
12446
|
(async () => {
|
|
12445
12447
|
s(!0), i(null);
|
|
12446
12448
|
try {
|
|
12447
|
-
const d = await
|
|
12449
|
+
const d = await zc({
|
|
12448
12450
|
action: "getCustomer",
|
|
12449
12451
|
customerId: e
|
|
12450
12452
|
}, t);
|
|
@@ -12460,20 +12462,20 @@ const Hb = ({ ...e }) => {
|
|
|
12460
12462
|
var c, d;
|
|
12461
12463
|
const { customer: r, loading: s, error: a } = Kb(e, n);
|
|
12462
12464
|
if (s)
|
|
12463
|
-
return /* @__PURE__ */ f(Bt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ f(Ht, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ f(
|
|
12465
|
+
return /* @__PURE__ */ f(Bt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ f(Ht, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ f($o, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
12464
12466
|
if (a || !r) {
|
|
12465
12467
|
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", l = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
12466
12468
|
return /* @__PURE__ */ f(Bt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ q(Ht, { className: "p-4 pb-0 pt-2", children: [
|
|
12467
12469
|
/* @__PURE__ */ q("div", { className: "flex flex-col items-center", children: [
|
|
12468
|
-
/* @__PURE__ */ q(
|
|
12470
|
+
/* @__PURE__ */ q(Oo, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
12469
12471
|
/* @__PURE__ */ f(
|
|
12470
|
-
|
|
12472
|
+
Lo,
|
|
12471
12473
|
{
|
|
12472
12474
|
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(u)}&background=7c3aed&color=fff&size=128`,
|
|
12473
12475
|
alt: u
|
|
12474
12476
|
}
|
|
12475
12477
|
),
|
|
12476
|
-
/* @__PURE__ */ f(
|
|
12478
|
+
/* @__PURE__ */ f(Do, { className: "text-lg", children: l })
|
|
12477
12479
|
] }),
|
|
12478
12480
|
/* @__PURE__ */ q("div", { className: "text-center w-full space-y-1", children: [
|
|
12479
12481
|
/* @__PURE__ */ q("div", { children: [
|
|
@@ -12481,7 +12483,7 @@ const Hb = ({ ...e }) => {
|
|
|
12481
12483
|
/* @__PURE__ */ f("h2", { className: "text-lg font-bold text-foreground leading-tight", children: u })
|
|
12482
12484
|
] }),
|
|
12483
12485
|
t && /* @__PURE__ */ f("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
12484
|
-
/* @__PURE__ */ f(
|
|
12486
|
+
/* @__PURE__ */ f(bo, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
12485
12487
|
/* @__PURE__ */ f("span", { className: "truncate max-w-[200px]", children: t })
|
|
12486
12488
|
] }) }),
|
|
12487
12489
|
/* @__PURE__ */ f("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: o })
|
|
@@ -12492,15 +12494,15 @@ const Hb = ({ ...e }) => {
|
|
|
12492
12494
|
}
|
|
12493
12495
|
const i = `${((c = r.first_name) == null ? void 0 : c[0]) || ""}${((d = r.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
12494
12496
|
return /* @__PURE__ */ f(Bt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ f(Ht, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ q("div", { className: "flex flex-col items-center", children: [
|
|
12495
|
-
/* @__PURE__ */ q(
|
|
12497
|
+
/* @__PURE__ */ q(Oo, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
12496
12498
|
/* @__PURE__ */ f(
|
|
12497
|
-
|
|
12499
|
+
Lo,
|
|
12498
12500
|
{
|
|
12499
12501
|
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(r.name)}&background=7c3aed&color=fff&size=128`,
|
|
12500
12502
|
alt: r.name
|
|
12501
12503
|
}
|
|
12502
12504
|
),
|
|
12503
|
-
/* @__PURE__ */ f(
|
|
12505
|
+
/* @__PURE__ */ f(Do, { className: "text-lg", children: i })
|
|
12504
12506
|
] }),
|
|
12505
12507
|
/* @__PURE__ */ q("div", { className: "text-center w-full space-y-1", children: [
|
|
12506
12508
|
/* @__PURE__ */ q("div", { children: [
|
|
@@ -12508,13 +12510,13 @@ const Hb = ({ ...e }) => {
|
|
|
12508
12510
|
/* @__PURE__ */ f("h2", { className: "text-lg font-bold text-foreground leading-tight", children: r.name })
|
|
12509
12511
|
] }),
|
|
12510
12512
|
/* @__PURE__ */ f("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
12511
|
-
/* @__PURE__ */ f(
|
|
12513
|
+
/* @__PURE__ */ f(bo, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
12512
12514
|
/* @__PURE__ */ f("span", { className: "truncate max-w-[200px]", children: r.email })
|
|
12513
12515
|
] }) }),
|
|
12514
12516
|
/* @__PURE__ */ f("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: o })
|
|
12515
12517
|
] })
|
|
12516
12518
|
] }) }) });
|
|
12517
|
-
},
|
|
12519
|
+
}, Hc = (e, t) => {
|
|
12518
12520
|
ce(() => {
|
|
12519
12521
|
const n = t.current;
|
|
12520
12522
|
if (!n)
|
|
@@ -12531,7 +12533,7 @@ const Hb = ({ ...e }) => {
|
|
|
12531
12533
|
}, [e, t]);
|
|
12532
12534
|
}, Zb = ({ customization: e }) => {
|
|
12533
12535
|
const t = Me(null);
|
|
12534
|
-
return
|
|
12536
|
+
return Hc("widget_conversations", t), ce(() => {
|
|
12535
12537
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
12536
12538
|
conversationList: e
|
|
12537
12539
|
});
|
|
@@ -12544,7 +12546,7 @@ const Hb = ({ ...e }) => {
|
|
|
12544
12546
|
);
|
|
12545
12547
|
}, Jb = ({ customization: e }) => {
|
|
12546
12548
|
const t = Me(null);
|
|
12547
|
-
return
|
|
12549
|
+
return Hc("widget_messages", t), ce(() => {
|
|
12548
12550
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
12549
12551
|
messageLog: e
|
|
12550
12552
|
});
|
|
@@ -12571,7 +12573,7 @@ const Hb = ({ ...e }) => {
|
|
|
12571
12573
|
const a = Math.max(
|
|
12572
12574
|
mo,
|
|
12573
12575
|
Math.min(ho, s)
|
|
12574
|
-
), { extensions: i } =
|
|
12576
|
+
), { extensions: i } = bs(), c = Vt(() => i.some((M) => M.enabled && (M.manifest.targets.includes("slot.header") || M.manifest.targets.includes("slot.content"))), [i]), [d, u] = le(!1), [l, m] = le(!1), [h, b] = le("extensions"), [g, v] = le(a), [y, w] = le("loading"), x = Me(null), C = ve(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
12575
12577
|
mode: "embedded",
|
|
12576
12578
|
messageLog: { targetElement: "#widget_messages" },
|
|
12577
12579
|
conversationList: { targetElement: "#widget_conversations" }
|
|
@@ -12732,7 +12734,7 @@ const Hb = ({ ...e }) => {
|
|
|
12732
12734
|
h === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
12733
12735
|
),
|
|
12734
12736
|
title: "Conversations",
|
|
12735
|
-
children: /* @__PURE__ */ f(
|
|
12737
|
+
children: /* @__PURE__ */ f(Fo, { className: "h-4 w-4" })
|
|
12736
12738
|
}
|
|
12737
12739
|
),
|
|
12738
12740
|
/* @__PURE__ */ f(
|
|
@@ -12745,7 +12747,7 @@ const Hb = ({ ...e }) => {
|
|
|
12745
12747
|
h === "extensions" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
12746
12748
|
),
|
|
12747
12749
|
title: "My Profile",
|
|
12748
|
-
children: /* @__PURE__ */ f(
|
|
12750
|
+
children: /* @__PURE__ */ f(Ts, { className: "h-4 w-4" })
|
|
12749
12751
|
}
|
|
12750
12752
|
)
|
|
12751
12753
|
] })
|