@stackable-labs/embeddables 1.94.2 → 1.95.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 +449 -446
- package/dist/stackable-widget.external.js +20 -20
- package/dist/stackable-widget.js +26 -26
- 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 Qc, useState as le, useRef as Me, useEffect as ce, useContext as el, createElement as hn, useMemo as Vt, forwardRef as ps, useLayoutEffect as tl, useCallback as ve } from "react";
|
|
4
4
|
import * as kn from "react-dom";
|
|
5
5
|
import ms from "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const nl = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "c2ae09f3-2f79-4a3a-9682-b134929e238f";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
12
|
-
}, dt = /* @__PURE__ */ new Map(),
|
|
12
|
+
}, dt = /* @__PURE__ */ new Map(), ol = async (e, t) => {
|
|
13
13
|
const n = dt.get(e.id);
|
|
14
14
|
if (n)
|
|
15
15
|
return n;
|
|
@@ -24,7 +24,7 @@ const tl = () => {
|
|
|
24
24
|
} else {
|
|
25
25
|
let c = "";
|
|
26
26
|
try {
|
|
27
|
-
const u =
|
|
27
|
+
const u = nl();
|
|
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,21 +66,21 @@ const tl = () => {
|
|
|
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), rl = (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,
|
|
72
|
+
}, kt = () => dt, Zn = (e) => e, sl = {
|
|
73
73
|
SUPER_ADMIN: "super_admin"
|
|
74
74
|
};
|
|
75
|
-
new Set(Object.values(
|
|
75
|
+
new Set(Object.values(sl));
|
|
76
76
|
const hs = {
|
|
77
77
|
ADMIN: "org:admin",
|
|
78
78
|
MEMBER: "org:member"
|
|
79
|
-
},
|
|
79
|
+
}, al = [
|
|
80
80
|
hs.ADMIN
|
|
81
81
|
];
|
|
82
82
|
[
|
|
83
|
-
...Object.values(
|
|
83
|
+
...Object.values(al),
|
|
84
84
|
hs.MEMBER
|
|
85
85
|
];
|
|
86
86
|
const gs = {
|
|
@@ -340,15 +340,18 @@ const gs = {
|
|
|
340
340
|
category: "composite",
|
|
341
341
|
attributes: ["className"]
|
|
342
342
|
}
|
|
343
|
-
}, Pt = gs, Gt = Object.keys(gs),
|
|
343
|
+
}, Pt = gs, Gt = Object.keys(gs), il = Object.fromEntries(
|
|
344
344
|
Gt.map((e) => [e, Pt[e].attributes])
|
|
345
345
|
);
|
|
346
346
|
Object.fromEntries(
|
|
347
347
|
Gt.filter((e) => Pt[e].attributeValues).map((e) => [e, Pt[e].attributeValues])
|
|
348
348
|
);
|
|
349
|
-
const
|
|
349
|
+
const vs = Object.fromEntries(
|
|
350
350
|
Gt.filter((e) => Pt[e].children).map((e) => [e, Pt[e].children])
|
|
351
351
|
);
|
|
352
|
+
({
|
|
353
|
+
...vs
|
|
354
|
+
});
|
|
352
355
|
Object.fromEntries(
|
|
353
356
|
Gt.map((e) => [e, Pt[e].category])
|
|
354
357
|
);
|
|
@@ -436,7 +439,7 @@ const yt = {
|
|
|
436
439
|
return window.addEventListener("message", t), () => {
|
|
437
440
|
window.removeEventListener("message", t);
|
|
438
441
|
};
|
|
439
|
-
},
|
|
442
|
+
}, bs = Qc({
|
|
440
443
|
extensions: [],
|
|
441
444
|
components: {},
|
|
442
445
|
ready: !1
|
|
@@ -461,20 +464,20 @@ const yt = {
|
|
|
461
464
|
});
|
|
462
465
|
i.current = dl(m);
|
|
463
466
|
for (const h of e)
|
|
464
|
-
h.enabled && !d && (console.log("[ExtensionProvider] Creating sandbox for", h.id, "bundleUrl:", h.bundleUrl), await
|
|
467
|
+
h.enabled && !d && (console.log("[ExtensionProvider] Creating sandbox for", h.id, "bundleUrl:", h.bundleUrl), await ol(h, l), console.log("[ExtensionProvider] Sandbox created for", h.id));
|
|
465
468
|
d || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
466
469
|
})(), () => {
|
|
467
470
|
var l;
|
|
468
471
|
d = !0;
|
|
469
472
|
for (const m of e)
|
|
470
|
-
|
|
473
|
+
rl(m.id);
|
|
471
474
|
(l = i.current) == null || l.call(i);
|
|
472
475
|
};
|
|
473
|
-
}, [e]), /* @__PURE__ */ q(
|
|
476
|
+
}, [e]), /* @__PURE__ */ q(bs.Provider, { value: { extensions: e, components: n, ready: r }, children: [
|
|
474
477
|
/* @__PURE__ */ f("div", { ref: a, style: { display: "none" } }),
|
|
475
478
|
o
|
|
476
479
|
] });
|
|
477
|
-
},
|
|
480
|
+
}, ys = () => el(bs), fl = (e) => Gt.includes(e), pl = (e, t = {}) => {
|
|
478
481
|
const { surfaceId: n, logPrefix: o = "[NodeRenderer]" } = t, r = (s, a, i = 0) => {
|
|
479
482
|
var h, b, g;
|
|
480
483
|
if (s.type === "text")
|
|
@@ -519,7 +522,7 @@ const yt = {
|
|
|
519
522
|
const n = {}, o = [];
|
|
520
523
|
if (!t)
|
|
521
524
|
return { filtered: n, stripped: o };
|
|
522
|
-
const r =
|
|
525
|
+
const r = il[e];
|
|
523
526
|
for (const [s, a] of Object.entries(t)) {
|
|
524
527
|
if (s === "data-onchange-id") {
|
|
525
528
|
n[s] = a;
|
|
@@ -529,7 +532,7 @@ const yt = {
|
|
|
529
532
|
}
|
|
530
533
|
return { filtered: n, stripped: o };
|
|
531
534
|
}, hl = (e, t) => {
|
|
532
|
-
const n =
|
|
535
|
+
const n = vs[e];
|
|
533
536
|
if (!n || !t)
|
|
534
537
|
return [];
|
|
535
538
|
const o = [];
|
|
@@ -549,7 +552,7 @@ const yt = {
|
|
|
549
552
|
fallback: r = null,
|
|
550
553
|
render: s
|
|
551
554
|
}) => {
|
|
552
|
-
const { extensions: a, components: i, ready: c } =
|
|
555
|
+
const { extensions: a, components: i, ready: c } = ys(), [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
556
|
if (ce(() => {
|
|
554
557
|
const v = m.map((w) => w.id).join(",");
|
|
555
558
|
if (l.current !== v && (l.current = v, u({})), !c || m.length === 0)
|
|
@@ -910,10 +913,10 @@ function Bl(e) {
|
|
|
910
913
|
}
|
|
911
914
|
const Hl = (e) => {
|
|
912
915
|
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 || yr), Zt = I.useRef(null), ye = I.useRef(null),
|
|
916
|
+
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 || yr), Zt = I.useRef(null), ye = I.useRef(null), Wc = y === 0, Uc = y + 1 <= g, Se = l.type, gt = l.dismissible !== !1, jc = l.className || "", Gc = l.descriptionClassName || "", Jt = I.useMemo(() => v.findIndex((ne) => ne.toastId === l.id) || 0, [
|
|
914
917
|
v,
|
|
915
918
|
l.id
|
|
916
|
-
]),
|
|
919
|
+
]), Yc = I.useMemo(() => {
|
|
917
920
|
var ne;
|
|
918
921
|
return (ne = l.closeButton) != null ? ne : T;
|
|
919
922
|
}, [
|
|
@@ -922,10 +925,10 @@ const Hl = (e) => {
|
|
|
922
925
|
]), fr = I.useMemo(() => l.duration || F || yr, [
|
|
923
926
|
l.duration,
|
|
924
927
|
F
|
|
925
|
-
]), Kn = I.useRef(0), vt = I.useRef(0), pr = I.useRef(0), bt = I.useRef(null), [
|
|
928
|
+
]), Kn = I.useRef(0), vt = I.useRef(0), pr = I.useRef(0), bt = I.useRef(null), [qc, Kc] = H.split("-"), mr = I.useMemo(() => v.reduce((ne, me, ge) => ge >= Jt ? ne : ne + me.height, 0), [
|
|
926
929
|
v,
|
|
927
930
|
Jt
|
|
928
|
-
]), hr = Nl(),
|
|
931
|
+
]), hr = Nl(), Xc = l.invert || u, Xn = Se === "loading";
|
|
929
932
|
vt.current = I.useMemo(() => Jt * O + mr, [
|
|
930
933
|
Jt,
|
|
931
934
|
mr
|
|
@@ -1014,7 +1017,7 @@ const Hl = (e) => {
|
|
|
1014
1017
|
Xe,
|
|
1015
1018
|
l.delete
|
|
1016
1019
|
]);
|
|
1017
|
-
function
|
|
1020
|
+
function Zc() {
|
|
1018
1021
|
var ne;
|
|
1019
1022
|
if (D != null && D.loading) {
|
|
1020
1023
|
var me;
|
|
@@ -1028,12 +1031,12 @@ const Hl = (e) => {
|
|
|
1028
1031
|
visible: Se === "loading"
|
|
1029
1032
|
});
|
|
1030
1033
|
}
|
|
1031
|
-
const
|
|
1034
|
+
const Jc = l.icon || (D == null ? void 0 : D[Se]) || bl(Se);
|
|
1032
1035
|
var gr, vr;
|
|
1033
1036
|
return /* @__PURE__ */ I.createElement("li", {
|
|
1034
1037
|
tabIndex: 0,
|
|
1035
1038
|
ref: ye,
|
|
1036
|
-
className: ze(W,
|
|
1039
|
+
className: ze(W, jc, 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
1040
|
"data-sonner-toast": "",
|
|
1038
1041
|
"data-rich-colors": (gr = l.richColors) != null ? gr : R,
|
|
1039
1042
|
"data-styled": !(l.jsx || l.unstyled || m),
|
|
@@ -1041,15 +1044,15 @@ const Hl = (e) => {
|
|
|
1041
1044
|
"data-promise": !!l.promise,
|
|
1042
1045
|
"data-swiped": se,
|
|
1043
1046
|
"data-removed": B,
|
|
1044
|
-
"data-visible":
|
|
1045
|
-
"data-y-position":
|
|
1046
|
-
"data-x-position":
|
|
1047
|
+
"data-visible": Uc,
|
|
1048
|
+
"data-y-position": qc,
|
|
1049
|
+
"data-x-position": Kc,
|
|
1047
1050
|
"data-index": y,
|
|
1048
|
-
"data-front":
|
|
1051
|
+
"data-front": Wc,
|
|
1049
1052
|
"data-swiping": j,
|
|
1050
1053
|
"data-dismissible": gt,
|
|
1051
1054
|
"data-type": Se,
|
|
1052
|
-
"data-invert":
|
|
1055
|
+
"data-invert": Xc,
|
|
1053
1056
|
"data-swipe-out": ee,
|
|
1054
1057
|
"data-swipe-direction": _,
|
|
1055
1058
|
"data-expanded": !!(x || K && P),
|
|
@@ -1115,7 +1118,7 @@ const Hl = (e) => {
|
|
|
1115
1118
|
}
|
|
1116
1119
|
(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
1120
|
}
|
|
1118
|
-
},
|
|
1121
|
+
}, Yc && !l.jsx && Se !== "loading" ? /* @__PURE__ */ I.createElement("button", {
|
|
1119
1122
|
"aria-label": U,
|
|
1120
1123
|
"data-disabled": Xn,
|
|
1121
1124
|
"data-close-button": !0,
|
|
@@ -1127,7 +1130,7 @@ const Hl = (e) => {
|
|
|
1127
1130
|
}, (vr = D == null ? void 0 : D.close) != null ? vr : kl) : null, (Se || l.icon || l.promise) && l.icon !== null && ((D == null ? void 0 : D[Se]) !== null || l.icon) ? /* @__PURE__ */ I.createElement("div", {
|
|
1128
1131
|
"data-icon": "",
|
|
1129
1132
|
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 ||
|
|
1133
|
+
}, l.promise || l.type === "loading" && !l.icon ? l.icon || Zc() : null, l.type !== "loading" ? Jc : null) : null, /* @__PURE__ */ I.createElement("div", {
|
|
1131
1134
|
"data-content": "",
|
|
1132
1135
|
className: ze(A == null ? void 0 : A.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
|
|
1133
1136
|
}, /* @__PURE__ */ I.createElement("div", {
|
|
@@ -1135,7 +1138,7 @@ const Hl = (e) => {
|
|
|
1135
1138
|
className: ze(A == null ? void 0 : A.title, l == null || (a = l.classNames) == null ? void 0 : a.title)
|
|
1136
1139
|
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ I.createElement("div", {
|
|
1137
1140
|
"data-description": "",
|
|
1138
|
-
className: ze(M,
|
|
1141
|
+
className: ze(M, Gc, A == null ? void 0 : A.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
|
|
1139
1142
|
}, 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
1143
|
"data-button": !0,
|
|
1141
1144
|
"data-cancel": !0,
|
|
@@ -1403,7 +1406,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1403
1406
|
}
|
|
1404
1407
|
}
|
|
1405
1408
|
return r;
|
|
1406
|
-
},
|
|
1409
|
+
}, ws = (e) => {
|
|
1407
1410
|
const t = new URLSearchParams(e);
|
|
1408
1411
|
try {
|
|
1409
1412
|
const n = Sr(t, "_stackable_dev", "dev"), o = Sr(t, "_stackable_staging", "staging"), r = /* @__PURE__ */ new Map();
|
|
@@ -1439,7 +1442,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1439
1442
|
* This source code is licensed under the ISC license.
|
|
1440
1443
|
* See the LICENSE file in the root directory of this source tree.
|
|
1441
1444
|
*/
|
|
1442
|
-
const
|
|
1445
|
+
const xs = (...e) => e.filter((t, n, o) => !!t && t.trim() !== "" && o.indexOf(t) === n).join(" ").trim();
|
|
1443
1446
|
/**
|
|
1444
1447
|
* @license lucide-react v0.577.0 - ISC
|
|
1445
1448
|
*
|
|
@@ -1521,7 +1524,7 @@ const Jl = ps(
|
|
|
1521
1524
|
height: t,
|
|
1522
1525
|
stroke: e,
|
|
1523
1526
|
strokeWidth: o ? Number(n) * 24 / Number(t) : n,
|
|
1524
|
-
className:
|
|
1527
|
+
className: xs("lucide", r),
|
|
1525
1528
|
...!s && !Zl(i) && { "aria-hidden": "true" },
|
|
1526
1529
|
...i
|
|
1527
1530
|
},
|
|
@@ -1542,7 +1545,7 @@ const ae = (e, t) => {
|
|
|
1542
1545
|
({ className: o, ...r }, s) => hn(Jl, {
|
|
1543
1546
|
ref: s,
|
|
1544
1547
|
iconNode: t,
|
|
1545
|
-
className:
|
|
1548
|
+
className: xs(
|
|
1546
1549
|
`lucide-${ql(Cr(e))}`,
|
|
1547
1550
|
`lucide-${e}`,
|
|
1548
1551
|
o
|
|
@@ -1626,14 +1629,14 @@ const id = [
|
|
|
1626
1629
|
* This source code is licensed under the ISC license.
|
|
1627
1630
|
* See the LICENSE file in the root directory of this source tree.
|
|
1628
1631
|
*/
|
|
1629
|
-
const ld = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]],
|
|
1632
|
+
const ld = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ss = ae("check", ld);
|
|
1630
1633
|
/**
|
|
1631
1634
|
* @license lucide-react v0.577.0 - ISC
|
|
1632
1635
|
*
|
|
1633
1636
|
* This source code is licensed under the ISC license.
|
|
1634
1637
|
* See the LICENSE file in the root directory of this source tree.
|
|
1635
1638
|
*/
|
|
1636
|
-
const dd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]],
|
|
1639
|
+
const dd = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Cs = ae("chevron-down", dd);
|
|
1637
1640
|
/**
|
|
1638
1641
|
* @license lucide-react v0.577.0 - ISC
|
|
1639
1642
|
*
|
|
@@ -1665,7 +1668,7 @@ const gd = [
|
|
|
1665
1668
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1666
1669
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
1667
1670
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
1668
|
-
],
|
|
1671
|
+
], Es = ae("circle-alert", gd);
|
|
1669
1672
|
/**
|
|
1670
1673
|
* @license lucide-react v0.577.0 - ISC
|
|
1671
1674
|
*
|
|
@@ -1675,7 +1678,7 @@ const gd = [
|
|
|
1675
1678
|
const vd = [
|
|
1676
1679
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1677
1680
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
1678
|
-
],
|
|
1681
|
+
], ks = ae("circle-check", vd);
|
|
1679
1682
|
/**
|
|
1680
1683
|
* @license lucide-react v0.577.0 - ISC
|
|
1681
1684
|
*
|
|
@@ -1686,7 +1689,7 @@ const bd = [
|
|
|
1686
1689
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1687
1690
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
1688
1691
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
1689
|
-
],
|
|
1692
|
+
], Ns = ae("circle-question-mark", bd);
|
|
1690
1693
|
/**
|
|
1691
1694
|
* @license lucide-react v0.577.0 - ISC
|
|
1692
1695
|
*
|
|
@@ -1819,7 +1822,7 @@ const $d = [
|
|
|
1819
1822
|
key: "1sd12s"
|
|
1820
1823
|
}
|
|
1821
1824
|
]
|
|
1822
|
-
],
|
|
1825
|
+
], Rs = ae("message-circle", $d);
|
|
1823
1826
|
/**
|
|
1824
1827
|
* @license lucide-react v0.577.0 - ISC
|
|
1825
1828
|
*
|
|
@@ -1939,7 +1942,7 @@ const Jd = [
|
|
|
1939
1942
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
1940
1943
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
1941
1944
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
1942
|
-
],
|
|
1945
|
+
], Ts = ae("sparkles", Jd);
|
|
1943
1946
|
/**
|
|
1944
1947
|
* @license lucide-react v0.577.0 - ISC
|
|
1945
1948
|
*
|
|
@@ -1985,7 +1988,7 @@ const tu = [
|
|
|
1985
1988
|
const ou = [
|
|
1986
1989
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
1987
1990
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
1988
|
-
],
|
|
1991
|
+
], Ps = ae("user", ou);
|
|
1989
1992
|
/**
|
|
1990
1993
|
* @license lucide-react v0.577.0 - ISC
|
|
1991
1994
|
*
|
|
@@ -2001,17 +2004,17 @@ const ru = [
|
|
|
2001
2004
|
}
|
|
2002
2005
|
]
|
|
2003
2006
|
], su = ae("zap", ru);
|
|
2004
|
-
function
|
|
2007
|
+
function As(e) {
|
|
2005
2008
|
var t, n, o = "";
|
|
2006
2009
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
2007
2010
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2008
2011
|
var r = e.length;
|
|
2009
|
-
for (t = 0; t < r; t++) e[t] && (n =
|
|
2012
|
+
for (t = 0; t < r; t++) e[t] && (n = As(e[t])) && (o && (o += " "), o += n);
|
|
2010
2013
|
} else for (n in e) e[n] && (o && (o += " "), o += n);
|
|
2011
2014
|
return o;
|
|
2012
2015
|
}
|
|
2013
|
-
function
|
|
2014
|
-
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t =
|
|
2016
|
+
function _s() {
|
|
2017
|
+
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = As(e)) && (o && (o += " "), o += t);
|
|
2015
2018
|
return o;
|
|
2016
2019
|
}
|
|
2017
2020
|
const au = (e, t) => {
|
|
@@ -2024,7 +2027,7 @@ const au = (e, t) => {
|
|
|
2024
2027
|
}, iu = (e, t) => ({
|
|
2025
2028
|
classGroupId: e,
|
|
2026
2029
|
validator: t
|
|
2027
|
-
}),
|
|
2030
|
+
}), Is = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
2028
2031
|
nextPart: e,
|
|
2029
2032
|
validators: t,
|
|
2030
2033
|
classGroupId: n
|
|
@@ -2038,7 +2041,7 @@ const au = (e, t) => {
|
|
|
2038
2041
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
2039
2042
|
return du(a);
|
|
2040
2043
|
const i = a.split(gn), c = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
2041
|
-
return
|
|
2044
|
+
return Ms(i, c, t);
|
|
2042
2045
|
},
|
|
2043
2046
|
getConflictingClassGroupIds: (a, i) => {
|
|
2044
2047
|
if (i) {
|
|
@@ -2048,12 +2051,12 @@ const au = (e, t) => {
|
|
|
2048
2051
|
return n[a] || Er;
|
|
2049
2052
|
}
|
|
2050
2053
|
};
|
|
2051
|
-
},
|
|
2054
|
+
}, Ms = (e, t, n) => {
|
|
2052
2055
|
if (e.length - t === 0)
|
|
2053
2056
|
return n.classGroupId;
|
|
2054
2057
|
const r = e[t], s = n.nextPart.get(r);
|
|
2055
2058
|
if (s) {
|
|
2056
|
-
const d =
|
|
2059
|
+
const d = Ms(e, t + 1, s);
|
|
2057
2060
|
if (d) return d;
|
|
2058
2061
|
}
|
|
2059
2062
|
const a = n.validators;
|
|
@@ -2075,7 +2078,7 @@ const au = (e, t) => {
|
|
|
2075
2078
|
} = e;
|
|
2076
2079
|
return fu(n, t);
|
|
2077
2080
|
}, fu = (e, t) => {
|
|
2078
|
-
const n =
|
|
2081
|
+
const n = Is();
|
|
2079
2082
|
for (const o in e) {
|
|
2080
2083
|
const r = e[o];
|
|
2081
2084
|
Fo(r, n, o, t);
|
|
@@ -2098,7 +2101,7 @@ const au = (e, t) => {
|
|
|
2098
2101
|
}
|
|
2099
2102
|
gu(e, t, n, o);
|
|
2100
2103
|
}, mu = (e, t, n) => {
|
|
2101
|
-
const o = e === "" ? t :
|
|
2104
|
+
const o = e === "" ? t : Os(t, e);
|
|
2102
2105
|
o.classGroupId = n;
|
|
2103
2106
|
}, hu = (e, t, n, o) => {
|
|
2104
2107
|
if (vu(e)) {
|
|
@@ -2110,15 +2113,15 @@ const au = (e, t) => {
|
|
|
2110
2113
|
const r = Object.entries(e), s = r.length;
|
|
2111
2114
|
for (let a = 0; a < s; a++) {
|
|
2112
2115
|
const [i, c] = r[a];
|
|
2113
|
-
Fo(c,
|
|
2116
|
+
Fo(c, Os(t, i), n, o);
|
|
2114
2117
|
}
|
|
2115
|
-
},
|
|
2118
|
+
}, Os = (e, t) => {
|
|
2116
2119
|
let n = e;
|
|
2117
2120
|
const o = t.split(gn), r = o.length;
|
|
2118
2121
|
for (let s = 0; s < r; s++) {
|
|
2119
2122
|
const a = o[s];
|
|
2120
2123
|
let i = n.nextPart.get(a);
|
|
2121
|
-
i || (i =
|
|
2124
|
+
i || (i = Is(), n.nextPart.set(a, i)), n = i;
|
|
2122
2125
|
}
|
|
2123
2126
|
return n;
|
|
2124
2127
|
}, vu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, bu = (e) => {
|
|
@@ -2263,14 +2266,14 @@ const au = (e, t) => {
|
|
|
2263
2266
|
}, ku = (...e) => {
|
|
2264
2267
|
let t = 0, n, o, r = "";
|
|
2265
2268
|
for (; t < e.length; )
|
|
2266
|
-
(n = e[t++]) && (o =
|
|
2269
|
+
(n = e[t++]) && (o = Ls(n)) && (r && (r += " "), r += o);
|
|
2267
2270
|
return r;
|
|
2268
|
-
},
|
|
2271
|
+
}, Ls = (e) => {
|
|
2269
2272
|
if (typeof e == "string")
|
|
2270
2273
|
return e;
|
|
2271
2274
|
let t, n = "";
|
|
2272
2275
|
for (let o = 0; o < e.length; o++)
|
|
2273
|
-
e[o] && (t =
|
|
2276
|
+
e[o] && (t = Ls(e[o])) && (n && (n += " "), n += t);
|
|
2274
2277
|
return n;
|
|
2275
2278
|
}, Nu = (e, ...t) => {
|
|
2276
2279
|
let n, o, r, s;
|
|
@@ -2288,18 +2291,18 @@ const au = (e, t) => {
|
|
|
2288
2291
|
}, Ru = [], pe = (e) => {
|
|
2289
2292
|
const t = (n) => n[e] || Ru;
|
|
2290
2293
|
return t.isThemeGetter = !0, t;
|
|
2291
|
-
},
|
|
2294
|
+
}, Ds = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zs = /^\((?:(\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), $s = () => !0, Ou = (e) => (
|
|
2292
2295
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2293
2296
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2294
2297
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2295
2298
|
Au.test(e) && !_u.test(e)
|
|
2296
|
-
), Bo = () => !1, Lu = (e) => Iu.test(e), Du = (e) => Mu.test(e), zu = (e) => !V(e) && !G(e), $u = (e) => ot(e,
|
|
2297
|
-
const o =
|
|
2299
|
+
), Bo = () => !1, Lu = (e) => Iu.test(e), Du = (e) => Mu.test(e), zu = (e) => !V(e) && !G(e), $u = (e) => ot(e, Hs, Bo), V = (e) => Ds.test(e), ct = (e) => ot(e, Vs, Ou), Rr = (e) => ot(e, Gu, re), Fu = (e) => ot(e, Us, $s), Bu = (e) => ot(e, Ws, Bo), Tr = (e) => ot(e, Fs, Bo), Hu = (e) => ot(e, Bs, Du), on = (e) => ot(e, js, Lu), G = (e) => zs.test(e), zt = (e) => mt(e, Vs), Vu = (e) => mt(e, Ws), Pr = (e) => mt(e, Fs), Wu = (e) => mt(e, Hs), Uu = (e) => mt(e, Bs), rn = (e) => mt(e, js, !0), ju = (e) => mt(e, Us, !0), ot = (e, t, n) => {
|
|
2300
|
+
const o = Ds.exec(e);
|
|
2298
2301
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
2299
2302
|
}, mt = (e, t, n = !1) => {
|
|
2300
|
-
const o =
|
|
2303
|
+
const o = zs.exec(e);
|
|
2301
2304
|
return o ? o[1] ? t(o[1]) : n : !1;
|
|
2302
|
-
},
|
|
2305
|
+
}, Fs = (e) => e === "position" || e === "percentage", Bs = (e) => e === "image" || e === "url", Hs = (e) => e === "length" || e === "size" || e === "bg-size", Vs = (e) => e === "length", Gu = (e) => e === "number", Ws = (e) => e === "family-name", Us = (e) => e === "number" || e === "weight", js = (e) => e === "shadow", Yu = () => {
|
|
2303
2306
|
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
2307
|
"center",
|
|
2305
2308
|
"top",
|
|
@@ -2349,7 +2352,7 @@ const au = (e, t) => {
|
|
|
2349
2352
|
aspect: ["video"],
|
|
2350
2353
|
blur: [Ue],
|
|
2351
2354
|
breakpoint: [Ue],
|
|
2352
|
-
color: [
|
|
2355
|
+
color: [$s],
|
|
2353
2356
|
container: [Ue],
|
|
2354
2357
|
"drop-shadow": [Ue],
|
|
2355
2358
|
ease: ["in", "out", "in-out"],
|
|
@@ -4928,7 +4931,7 @@ const au = (e, t) => {
|
|
|
4928
4931
|
},
|
|
4929
4932
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4930
4933
|
};
|
|
4931
|
-
}, qu = /* @__PURE__ */ Nu(Yu), X = (...e) => qu(
|
|
4934
|
+
}, qu = /* @__PURE__ */ Nu(Yu), X = (...e) => qu(_s(e));
|
|
4932
4935
|
function Bt({ className: e, ...t }) {
|
|
4933
4936
|
return /* @__PURE__ */ f(
|
|
4934
4937
|
"div",
|
|
@@ -4965,7 +4968,7 @@ function Ht({ className: e, ...t }) {
|
|
|
4965
4968
|
}
|
|
4966
4969
|
);
|
|
4967
4970
|
}
|
|
4968
|
-
const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _r =
|
|
4971
|
+
const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _r = _s, Rn = (e, t) => (n) => {
|
|
4969
4972
|
var o;
|
|
4970
4973
|
if ((t == null ? void 0 : t.variants) == null) return _r(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4971
4974
|
const { variants: r, defaultVariants: s } = t, a = Object.keys(r).map((d) => {
|
|
@@ -5000,7 +5003,7 @@ function Ir(e, t) {
|
|
|
5000
5003
|
return e(t);
|
|
5001
5004
|
e != null && (e.current = t);
|
|
5002
5005
|
}
|
|
5003
|
-
function
|
|
5006
|
+
function Gs(...e) {
|
|
5004
5007
|
return (t) => {
|
|
5005
5008
|
let n = !1;
|
|
5006
5009
|
const o = e.map((r) => {
|
|
@@ -5017,7 +5020,7 @@ function js(...e) {
|
|
|
5017
5020
|
};
|
|
5018
5021
|
}
|
|
5019
5022
|
function ie(...e) {
|
|
5020
|
-
return p.useCallback(
|
|
5023
|
+
return p.useCallback(Gs(...e), e);
|
|
5021
5024
|
}
|
|
5022
5025
|
// @__NO_SIDE_EFFECTS__
|
|
5023
5026
|
function Wt(e) {
|
|
@@ -5031,27 +5034,27 @@ function Wt(e) {
|
|
|
5031
5034
|
});
|
|
5032
5035
|
return n.displayName = `${e}.Slot`, n;
|
|
5033
5036
|
}
|
|
5034
|
-
var
|
|
5037
|
+
var Ys = /* @__PURE__ */ Wt("Slot");
|
|
5035
5038
|
// @__NO_SIDE_EFFECTS__
|
|
5036
5039
|
function Xu(e) {
|
|
5037
5040
|
const t = p.forwardRef((n, o) => {
|
|
5038
5041
|
const { children: r, ...s } = n;
|
|
5039
5042
|
if (p.isValidElement(r)) {
|
|
5040
5043
|
const a = ef(r), i = Qu(s, r.props);
|
|
5041
|
-
return r.type !== p.Fragment && (i.ref = o ?
|
|
5044
|
+
return r.type !== p.Fragment && (i.ref = o ? Gs(o, a) : a), p.cloneElement(r, i);
|
|
5042
5045
|
}
|
|
5043
5046
|
return p.Children.count(r) > 1 ? p.Children.only(null) : null;
|
|
5044
5047
|
});
|
|
5045
5048
|
return t.displayName = `${e}.SlotClone`, t;
|
|
5046
5049
|
}
|
|
5047
|
-
var
|
|
5050
|
+
var qs = Symbol("radix.slottable");
|
|
5048
5051
|
// @__NO_SIDE_EFFECTS__
|
|
5049
5052
|
function Zu(e) {
|
|
5050
5053
|
const t = ({ children: n }) => /* @__PURE__ */ f(Ie, { children: n });
|
|
5051
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
5054
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = qs, t;
|
|
5052
5055
|
}
|
|
5053
5056
|
function Ju(e) {
|
|
5054
|
-
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
5057
|
+
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === qs;
|
|
5055
5058
|
}
|
|
5056
5059
|
function Qu(e, t) {
|
|
5057
5060
|
const n = { ...t };
|
|
@@ -5097,7 +5100,7 @@ var tf = [
|
|
|
5097
5100
|
function nf(e, t) {
|
|
5098
5101
|
e && kn.flushSync(() => e.dispatchEvent(t));
|
|
5099
5102
|
}
|
|
5100
|
-
var
|
|
5103
|
+
var Ks = Object.freeze({
|
|
5101
5104
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
5102
5105
|
position: "absolute",
|
|
5103
5106
|
border: 0,
|
|
@@ -5109,18 +5112,18 @@ var qs = Object.freeze({
|
|
|
5109
5112
|
clip: "rect(0, 0, 0, 0)",
|
|
5110
5113
|
whiteSpace: "nowrap",
|
|
5111
5114
|
wordWrap: "normal"
|
|
5112
|
-
}), of = "VisuallyHidden",
|
|
5115
|
+
}), of = "VisuallyHidden", Xs = p.forwardRef(
|
|
5113
5116
|
(e, t) => /* @__PURE__ */ f(
|
|
5114
5117
|
Z.span,
|
|
5115
5118
|
{
|
|
5116
5119
|
...e,
|
|
5117
5120
|
ref: t,
|
|
5118
|
-
style: { ...
|
|
5121
|
+
style: { ...Ks, ...e.style }
|
|
5119
5122
|
}
|
|
5120
5123
|
)
|
|
5121
5124
|
);
|
|
5122
|
-
|
|
5123
|
-
var rf =
|
|
5125
|
+
Xs.displayName = of;
|
|
5126
|
+
var rf = Xs;
|
|
5124
5127
|
function xe(e, t = []) {
|
|
5125
5128
|
let n = [];
|
|
5126
5129
|
function o(s, a) {
|
|
@@ -5171,7 +5174,7 @@ function sf(...e) {
|
|
|
5171
5174
|
};
|
|
5172
5175
|
return n.scopeName = t.scopeName, n;
|
|
5173
5176
|
}
|
|
5174
|
-
function
|
|
5177
|
+
function Zs(e) {
|
|
5175
5178
|
const t = e + "CollectionProvider", [n, o] = xe(t), [r, s] = n(
|
|
5176
5179
|
t,
|
|
5177
5180
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -5340,7 +5343,7 @@ function ht(e) {
|
|
|
5340
5343
|
n((o) => o ?? String(mf++));
|
|
5341
5344
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
5342
5345
|
}
|
|
5343
|
-
var Tn = "Collapsible", [hf] = xe(Tn), [gf, Ho] = hf(Tn),
|
|
5346
|
+
var Tn = "Collapsible", [hf] = xe(Tn), [gf, Ho] = hf(Tn), Js = p.forwardRef(
|
|
5344
5347
|
(e, t) => {
|
|
5345
5348
|
const {
|
|
5346
5349
|
__scopeCollapsible: n,
|
|
@@ -5376,10 +5379,10 @@ var Tn = "Collapsible", [hf] = xe(Tn), [gf, Ho] = hf(Tn), Zs = p.forwardRef(
|
|
|
5376
5379
|
);
|
|
5377
5380
|
}
|
|
5378
5381
|
);
|
|
5379
|
-
|
|
5380
|
-
var
|
|
5382
|
+
Js.displayName = Tn;
|
|
5383
|
+
var Qs = "CollapsibleTrigger", ea = p.forwardRef(
|
|
5381
5384
|
(e, t) => {
|
|
5382
|
-
const { __scopeCollapsible: n, ...o } = e, r = Ho(
|
|
5385
|
+
const { __scopeCollapsible: n, ...o } = e, r = Ho(Qs, n);
|
|
5383
5386
|
return /* @__PURE__ */ f(
|
|
5384
5387
|
Z.button,
|
|
5385
5388
|
{
|
|
@@ -5396,14 +5399,14 @@ var Js = "CollapsibleTrigger", Qs = p.forwardRef(
|
|
|
5396
5399
|
);
|
|
5397
5400
|
}
|
|
5398
5401
|
);
|
|
5399
|
-
|
|
5400
|
-
var Vo = "CollapsibleContent",
|
|
5402
|
+
ea.displayName = Qs;
|
|
5403
|
+
var Vo = "CollapsibleContent", ta = p.forwardRef(
|
|
5401
5404
|
(e, t) => {
|
|
5402
5405
|
const { forceMount: n, ...o } = e, r = Ho(Vo, e.__scopeCollapsible);
|
|
5403
5406
|
return /* @__PURE__ */ f(De, { present: n || r.open, children: ({ present: s }) => /* @__PURE__ */ f(vf, { ...o, ref: t, present: s }) });
|
|
5404
5407
|
}
|
|
5405
5408
|
);
|
|
5406
|
-
|
|
5409
|
+
ta.displayName = Vo;
|
|
5407
5410
|
var vf = p.forwardRef((e, t) => {
|
|
5408
5411
|
const { __scopeCollapsible: n, present: o, children: r, ...s } = e, a = Ho(Vo, 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
5412
|
return p.useEffect(() => {
|
|
@@ -5440,7 +5443,7 @@ var vf = p.forwardRef((e, t) => {
|
|
|
5440
5443
|
function Wo(e) {
|
|
5441
5444
|
return e ? "open" : "closed";
|
|
5442
5445
|
}
|
|
5443
|
-
var bf =
|
|
5446
|
+
var bf = Js, yf = p.createContext(void 0);
|
|
5444
5447
|
function Yt(e) {
|
|
5445
5448
|
const t = p.useContext(yf);
|
|
5446
5449
|
return e || t || "ltr";
|
|
@@ -5463,7 +5466,7 @@ function wf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5463
5466
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
5464
5467
|
}, [n, t]);
|
|
5465
5468
|
}
|
|
5466
|
-
var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLayer.pointerDownOutside", Cf = "dismissableLayer.focusOutside", Mr,
|
|
5469
|
+
var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLayer.pointerDownOutside", Cf = "dismissableLayer.focusOutside", Mr, na = p.createContext({
|
|
5467
5470
|
layers: /* @__PURE__ */ new Set(),
|
|
5468
5471
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5469
5472
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -5477,7 +5480,7 @@ var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLa
|
|
|
5477
5480
|
onInteractOutside: a,
|
|
5478
5481
|
onDismiss: i,
|
|
5479
5482
|
...c
|
|
5480
|
-
} = e, d = p.useContext(
|
|
5483
|
+
} = e, d = p.useContext(na), [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
5484
|
const E = N.target, L = [...d.branches].some((W) => W.contains(E));
|
|
5482
5485
|
!C || L || (r == null || r(N), a == null || a(N), N.defaultPrevented || i == null || i());
|
|
5483
5486
|
}, m), T = Rf((N) => {
|
|
@@ -5517,7 +5520,7 @@ var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLa
|
|
|
5517
5520
|
);
|
|
5518
5521
|
Uo.displayName = xf;
|
|
5519
5522
|
var Ef = "DismissableLayerBranch", kf = p.forwardRef((e, t) => {
|
|
5520
|
-
const n = p.useContext(
|
|
5523
|
+
const n = p.useContext(na), o = p.useRef(null), r = ie(t, o);
|
|
5521
5524
|
return p.useEffect(() => {
|
|
5522
5525
|
const s = o.current;
|
|
5523
5526
|
if (s)
|
|
@@ -5534,7 +5537,7 @@ function Nf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5534
5537
|
const s = (i) => {
|
|
5535
5538
|
if (i.target && !o.current) {
|
|
5536
5539
|
let c = function() {
|
|
5537
|
-
|
|
5540
|
+
oa(
|
|
5538
5541
|
Sf,
|
|
5539
5542
|
n,
|
|
5540
5543
|
d,
|
|
@@ -5561,7 +5564,7 @@ function Rf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5561
5564
|
const n = be(e), o = p.useRef(!1);
|
|
5562
5565
|
return p.useEffect(() => {
|
|
5563
5566
|
const r = (s) => {
|
|
5564
|
-
s.target && !o.current &&
|
|
5567
|
+
s.target && !o.current && oa(Cf, n, { originalEvent: s }, {
|
|
5565
5568
|
discrete: !1
|
|
5566
5569
|
});
|
|
5567
5570
|
};
|
|
@@ -5575,11 +5578,11 @@ function Or() {
|
|
|
5575
5578
|
const e = new CustomEvent(yo);
|
|
5576
5579
|
document.dispatchEvent(e);
|
|
5577
5580
|
}
|
|
5578
|
-
function
|
|
5581
|
+
function oa(e, t, n, { discrete: o }) {
|
|
5579
5582
|
const r = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
5580
5583
|
t && r.addEventListener(e, t, { once: !0 }), o ? nf(r, s) : r.dispatchEvent(s);
|
|
5581
5584
|
}
|
|
5582
|
-
var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Lr = { bubbles: !1, cancelable: !0 }, Tf = "FocusScope",
|
|
5585
|
+
var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Lr = { bubbles: !1, cancelable: !0 }, Tf = "FocusScope", ra = p.forwardRef((e, t) => {
|
|
5583
5586
|
const {
|
|
5584
5587
|
loop: n = !1,
|
|
5585
5588
|
trapped: o = !1,
|
|
@@ -5622,7 +5625,7 @@ var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Lr
|
|
|
5622
5625
|
const g = document.activeElement;
|
|
5623
5626
|
if (!i.contains(g)) {
|
|
5624
5627
|
const y = new CustomEvent(Qn, Lr);
|
|
5625
|
-
i.addEventListener(Qn, d), i.dispatchEvent(y), y.defaultPrevented || (Pf(Of(
|
|
5628
|
+
i.addEventListener(Qn, d), i.dispatchEvent(y), y.defaultPrevented || (Pf(Of(sa(i)), { select: !0 }), document.activeElement === g && Qe(i));
|
|
5626
5629
|
}
|
|
5627
5630
|
return () => {
|
|
5628
5631
|
i.removeEventListener(Qn, d), setTimeout(() => {
|
|
@@ -5645,17 +5648,17 @@ var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Lr
|
|
|
5645
5648
|
);
|
|
5646
5649
|
return /* @__PURE__ */ f(Z.div, { tabIndex: -1, ...a, ref: m, onKeyDown: b });
|
|
5647
5650
|
});
|
|
5648
|
-
|
|
5651
|
+
ra.displayName = Tf;
|
|
5649
5652
|
function Pf(e, { select: t = !1 } = {}) {
|
|
5650
5653
|
const n = document.activeElement;
|
|
5651
5654
|
for (const o of e)
|
|
5652
5655
|
if (Qe(o, { select: t }), document.activeElement !== n) return;
|
|
5653
5656
|
}
|
|
5654
5657
|
function Af(e) {
|
|
5655
|
-
const t =
|
|
5658
|
+
const t = sa(e), n = Dr(t, e), o = Dr(t.reverse(), e);
|
|
5656
5659
|
return [n, o];
|
|
5657
5660
|
}
|
|
5658
|
-
function
|
|
5661
|
+
function sa(e) {
|
|
5659
5662
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
5660
5663
|
acceptNode: (o) => {
|
|
5661
5664
|
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
@@ -5738,7 +5741,7 @@ var Fe = function() {
|
|
|
5738
5741
|
return t;
|
|
5739
5742
|
}, Fe.apply(this, arguments);
|
|
5740
5743
|
};
|
|
5741
|
-
function
|
|
5744
|
+
function aa(e, t) {
|
|
5742
5745
|
var n = {};
|
|
5743
5746
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
5744
5747
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -5859,8 +5862,8 @@ function jf(e) {
|
|
|
5859
5862
|
var t = Uf(null);
|
|
5860
5863
|
return t.options = Fe({ async: !0, ssr: !1 }, e), t;
|
|
5861
5864
|
}
|
|
5862
|
-
var
|
|
5863
|
-
var t = e.sideCar, n =
|
|
5865
|
+
var ia = function(e) {
|
|
5866
|
+
var t = e.sideCar, n = aa(e, ["sideCar"]);
|
|
5864
5867
|
if (!t)
|
|
5865
5868
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
5866
5869
|
var o = t.read();
|
|
@@ -5868,21 +5871,21 @@ var aa = function(e) {
|
|
|
5868
5871
|
throw new Error("Sidecar medium not found");
|
|
5869
5872
|
return p.createElement(o, Fe({}, n));
|
|
5870
5873
|
};
|
|
5871
|
-
|
|
5874
|
+
ia.isSideCarExport = !0;
|
|
5872
5875
|
function Gf(e, t) {
|
|
5873
|
-
return e.useMedium(t),
|
|
5876
|
+
return e.useMedium(t), ia;
|
|
5874
5877
|
}
|
|
5875
|
-
var
|
|
5878
|
+
var ca = jf(), oo = function() {
|
|
5876
5879
|
}, Pn = p.forwardRef(function(e, t) {
|
|
5877
5880
|
var n = p.useRef(null), o = p.useState({
|
|
5878
5881
|
onScrollCapture: oo,
|
|
5879
5882
|
onWheelCapture: oo,
|
|
5880
5883
|
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 =
|
|
5884
|
+
}), 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 = aa(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
5885
|
return p.createElement(
|
|
5883
5886
|
p.Fragment,
|
|
5884
5887
|
null,
|
|
5885
|
-
u && p.createElement(R, { sideCar:
|
|
5888
|
+
u && p.createElement(R, { sideCar: ca, removeScrollBar: d, shards: l, noRelative: h, noIsolation: b, inert: g, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
|
|
5886
5889
|
a ? p.cloneElement(p.Children.only(i), Fe(Fe({}, N), { ref: T })) : p.createElement(w, Fe({}, N, { className: c, ref: T }), i)
|
|
5887
5890
|
);
|
|
5888
5891
|
});
|
|
@@ -5933,7 +5936,7 @@ var Zf = function() {
|
|
|
5933
5936
|
};
|
|
5934
5937
|
}, [t && n]);
|
|
5935
5938
|
};
|
|
5936
|
-
},
|
|
5939
|
+
}, la = function() {
|
|
5937
5940
|
var e = Jf(), t = function(n) {
|
|
5938
5941
|
var o = n.styles, r = n.dynamic;
|
|
5939
5942
|
return e(o, r), null;
|
|
@@ -5959,7 +5962,7 @@ var Zf = function() {
|
|
|
5959
5962
|
right: t[2],
|
|
5960
5963
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
5961
5964
|
};
|
|
5962
|
-
}, np =
|
|
5965
|
+
}, np = la(), Rt = "data-scroll-locked", op = function(e, t, n, o) {
|
|
5963
5966
|
var r = e.left, s = e.top, a = e.right, i = e.gap;
|
|
5964
5967
|
return n === void 0 && (n = "margin"), `
|
|
5965
5968
|
.`.concat($f, ` {
|
|
@@ -6034,7 +6037,7 @@ if (typeof window < "u")
|
|
|
6034
6037
|
}
|
|
6035
6038
|
var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
6036
6039
|
return e.tagName === "TEXTAREA";
|
|
6037
|
-
},
|
|
6040
|
+
}, da = function(e, t) {
|
|
6038
6041
|
if (!(e instanceof Element))
|
|
6039
6042
|
return !1;
|
|
6040
6043
|
var n = window.getComputedStyle(e);
|
|
@@ -6044,16 +6047,16 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6044
6047
|
!(n.overflowY === n.overflowX && !ap(e) && n[t] === "visible")
|
|
6045
6048
|
);
|
|
6046
6049
|
}, ip = function(e) {
|
|
6047
|
-
return
|
|
6050
|
+
return da(e, "overflowY");
|
|
6048
6051
|
}, cp = function(e) {
|
|
6049
|
-
return
|
|
6052
|
+
return da(e, "overflowX");
|
|
6050
6053
|
}, Vr = function(e, t) {
|
|
6051
6054
|
var n = t.ownerDocument, o = t;
|
|
6052
6055
|
do {
|
|
6053
6056
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
6054
|
-
var r =
|
|
6057
|
+
var r = ua(e, o);
|
|
6055
6058
|
if (r) {
|
|
6056
|
-
var s =
|
|
6059
|
+
var s = fa(e, o), a = s[1], i = s[2];
|
|
6057
6060
|
if (a > i)
|
|
6058
6061
|
return !0;
|
|
6059
6062
|
}
|
|
@@ -6074,9 +6077,9 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6074
6077
|
n,
|
|
6075
6078
|
o
|
|
6076
6079
|
];
|
|
6077
|
-
}, da = function(e, t) {
|
|
6078
|
-
return e === "v" ? ip(t) : cp(t);
|
|
6079
6080
|
}, ua = function(e, t) {
|
|
6081
|
+
return e === "v" ? ip(t) : cp(t);
|
|
6082
|
+
}, fa = function(e, t) {
|
|
6080
6083
|
return e === "v" ? lp(t) : dp(t);
|
|
6081
6084
|
}, up = function(e, t) {
|
|
6082
6085
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
@@ -6085,8 +6088,8 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6085
6088
|
do {
|
|
6086
6089
|
if (!i)
|
|
6087
6090
|
break;
|
|
6088
|
-
var h =
|
|
6089
|
-
(b || y) &&
|
|
6091
|
+
var h = fa(e, i), b = h[0], g = h[1], v = h[2], y = g - v - s * b;
|
|
6092
|
+
(b || y) && ua(e, i) && (l += y, m += b);
|
|
6090
6093
|
var w = i.parentNode;
|
|
6091
6094
|
i = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
6092
6095
|
} while (
|
|
@@ -6110,7 +6113,7 @@ var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6110
6113
|
`);
|
|
6111
6114
|
}, hp = 0, St = [];
|
|
6112
6115
|
function gp(e) {
|
|
6113
|
-
var t = p.useRef([]), n = p.useRef([0, 0]), o = p.useRef(), r = p.useState(hp++)[0], s = p.useState(
|
|
6116
|
+
var t = p.useRef([]), n = p.useRef([0, 0]), o = p.useRef(), r = p.useState(hp++)[0], s = p.useState(la)[0], a = p.useRef(e);
|
|
6114
6117
|
p.useEffect(function() {
|
|
6115
6118
|
a.current = e;
|
|
6116
6119
|
}, [e]), p.useEffect(function() {
|
|
@@ -6199,23 +6202,23 @@ function vp(e) {
|
|
|
6199
6202
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6200
6203
|
return t;
|
|
6201
6204
|
}
|
|
6202
|
-
const bp = Gf(
|
|
6203
|
-
var
|
|
6205
|
+
const bp = Gf(ca, gp);
|
|
6206
|
+
var pa = p.forwardRef(function(e, t) {
|
|
6204
6207
|
return p.createElement(Pn, Fe({}, e, { ref: t, sideCar: bp }));
|
|
6205
6208
|
});
|
|
6206
|
-
|
|
6209
|
+
pa.classNames = Pn.classNames;
|
|
6207
6210
|
var yp = function(e) {
|
|
6208
6211
|
if (typeof document > "u")
|
|
6209
6212
|
return null;
|
|
6210
6213
|
var t = Array.isArray(e) ? e[0] : e;
|
|
6211
6214
|
return t.ownerDocument.body;
|
|
6212
|
-
}, Ct = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), dn = {}, so = 0,
|
|
6213
|
-
return e && (e.host ||
|
|
6215
|
+
}, Ct = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), dn = {}, so = 0, ma = function(e) {
|
|
6216
|
+
return e && (e.host || ma(e.parentNode));
|
|
6214
6217
|
}, wp = function(e, t) {
|
|
6215
6218
|
return t.map(function(n) {
|
|
6216
6219
|
if (e.contains(n))
|
|
6217
6220
|
return n;
|
|
6218
|
-
var o =
|
|
6221
|
+
var o = ma(n);
|
|
6219
6222
|
return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
6220
6223
|
}).filter(function(n) {
|
|
6221
6224
|
return !!n;
|
|
@@ -6319,7 +6322,7 @@ function Rp() {
|
|
|
6319
6322
|
return () => {
|
|
6320
6323
|
};
|
|
6321
6324
|
}
|
|
6322
|
-
var Go = "Avatar", [Tp] = xe(Go), [Pp,
|
|
6325
|
+
var Go = "Avatar", [Tp] = xe(Go), [Pp, ha] = Tp(Go), ga = p.forwardRef(
|
|
6323
6326
|
(e, t) => {
|
|
6324
6327
|
const { __scopeAvatar: n, ...o } = e, [r, s] = p.useState("idle");
|
|
6325
6328
|
return /* @__PURE__ */ f(
|
|
@@ -6333,11 +6336,11 @@ var Go = "Avatar", [Tp] = xe(Go), [Pp, ma] = Tp(Go), ha = p.forwardRef(
|
|
|
6333
6336
|
);
|
|
6334
6337
|
}
|
|
6335
6338
|
);
|
|
6336
|
-
|
|
6337
|
-
var
|
|
6339
|
+
ga.displayName = Go;
|
|
6340
|
+
var va = "AvatarImage", ba = p.forwardRef(
|
|
6338
6341
|
(e, t) => {
|
|
6339
6342
|
const { __scopeAvatar: n, src: o, onLoadingStatusChange: r = () => {
|
|
6340
|
-
}, ...s } = e, a =
|
|
6343
|
+
}, ...s } = e, a = ha(va, n), i = Ap(o, s), c = be((d) => {
|
|
6341
6344
|
r(d), a.onImageLoadingStatusChange(d);
|
|
6342
6345
|
});
|
|
6343
6346
|
return de(() => {
|
|
@@ -6345,10 +6348,10 @@ var ga = "AvatarImage", va = p.forwardRef(
|
|
|
6345
6348
|
}, [i, c]), i === "loaded" ? /* @__PURE__ */ f(Z.img, { ...s, ref: t, src: o }) : null;
|
|
6346
6349
|
}
|
|
6347
6350
|
);
|
|
6348
|
-
|
|
6349
|
-
var
|
|
6351
|
+
ba.displayName = va;
|
|
6352
|
+
var ya = "AvatarFallback", wa = p.forwardRef(
|
|
6350
6353
|
(e, t) => {
|
|
6351
|
-
const { __scopeAvatar: n, delayMs: o, ...r } = e, s =
|
|
6354
|
+
const { __scopeAvatar: n, delayMs: o, ...r } = e, s = ha(ya, n), [a, i] = p.useState(o === void 0);
|
|
6352
6355
|
return p.useEffect(() => {
|
|
6353
6356
|
if (o !== void 0) {
|
|
6354
6357
|
const c = window.setTimeout(() => i(!0), o);
|
|
@@ -6357,7 +6360,7 @@ var ba = "AvatarFallback", ya = p.forwardRef(
|
|
|
6357
6360
|
}, [o]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ f(Z.span, { ...r, ref: t }) : null;
|
|
6358
6361
|
}
|
|
6359
6362
|
);
|
|
6360
|
-
|
|
6363
|
+
wa.displayName = ya;
|
|
6361
6364
|
function Yr(e, t) {
|
|
6362
6365
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
6363
6366
|
}
|
|
@@ -6378,7 +6381,7 @@ function Ap(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
6378
6381
|
};
|
|
6379
6382
|
}, [s, n, t]), a;
|
|
6380
6383
|
}
|
|
6381
|
-
var _p =
|
|
6384
|
+
var _p = ga, Ip = ba, Mp = wa;
|
|
6382
6385
|
function An(e) {
|
|
6383
6386
|
const t = p.useRef({ value: e, previous: e });
|
|
6384
6387
|
return p.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
@@ -6453,7 +6456,7 @@ function Dp(e) {
|
|
|
6453
6456
|
}
|
|
6454
6457
|
);
|
|
6455
6458
|
}
|
|
6456
|
-
var
|
|
6459
|
+
var xa = "CheckboxTrigger", Sa = p.forwardRef(
|
|
6457
6460
|
({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...o }, r) => {
|
|
6458
6461
|
const {
|
|
6459
6462
|
control: s,
|
|
@@ -6466,7 +6469,7 @@ var wa = "CheckboxTrigger", xa = p.forwardRef(
|
|
|
6466
6469
|
hasConsumerStoppedPropagationRef: m,
|
|
6467
6470
|
isFormControl: h,
|
|
6468
6471
|
bubbleInput: b
|
|
6469
|
-
} = Yo(
|
|
6472
|
+
} = Yo(xa, e), g = ie(r, u), v = p.useRef(c);
|
|
6470
6473
|
return p.useEffect(() => {
|
|
6471
6474
|
const y = s == null ? void 0 : s.form;
|
|
6472
6475
|
if (y) {
|
|
@@ -6480,7 +6483,7 @@ var wa = "CheckboxTrigger", xa = p.forwardRef(
|
|
|
6480
6483
|
role: "checkbox",
|
|
6481
6484
|
"aria-checked": et(c) ? "mixed" : c,
|
|
6482
6485
|
"aria-required": d,
|
|
6483
|
-
"data-state":
|
|
6486
|
+
"data-state": Ta(c),
|
|
6484
6487
|
"data-disabled": i ? "" : void 0,
|
|
6485
6488
|
disabled: i,
|
|
6486
6489
|
value: a,
|
|
@@ -6496,8 +6499,8 @@ var wa = "CheckboxTrigger", xa = p.forwardRef(
|
|
|
6496
6499
|
);
|
|
6497
6500
|
}
|
|
6498
6501
|
);
|
|
6499
|
-
|
|
6500
|
-
var
|
|
6502
|
+
Sa.displayName = xa;
|
|
6503
|
+
var Ca = p.forwardRef(
|
|
6501
6504
|
(e, t) => {
|
|
6502
6505
|
const {
|
|
6503
6506
|
__scopeCheckbox: n,
|
|
@@ -6525,7 +6528,7 @@ var Sa = p.forwardRef(
|
|
|
6525
6528
|
value: c,
|
|
6526
6529
|
internal_do_not_use_render: ({ isFormControl: m }) => /* @__PURE__ */ q(Ie, { children: [
|
|
6527
6530
|
/* @__PURE__ */ f(
|
|
6528
|
-
|
|
6531
|
+
Sa,
|
|
6529
6532
|
{
|
|
6530
6533
|
...l,
|
|
6531
6534
|
ref: t,
|
|
@@ -6533,7 +6536,7 @@ var Sa = p.forwardRef(
|
|
|
6533
6536
|
}
|
|
6534
6537
|
),
|
|
6535
6538
|
m && /* @__PURE__ */ f(
|
|
6536
|
-
|
|
6539
|
+
Ra,
|
|
6537
6540
|
{
|
|
6538
6541
|
__scopeCheckbox: n
|
|
6539
6542
|
}
|
|
@@ -6543,10 +6546,10 @@ var Sa = p.forwardRef(
|
|
|
6543
6546
|
);
|
|
6544
6547
|
}
|
|
6545
6548
|
);
|
|
6546
|
-
|
|
6547
|
-
var
|
|
6549
|
+
Ca.displayName = In;
|
|
6550
|
+
var Ea = "CheckboxIndicator", ka = p.forwardRef(
|
|
6548
6551
|
(e, t) => {
|
|
6549
|
-
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s = Yo(
|
|
6552
|
+
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s = Yo(Ea, n);
|
|
6550
6553
|
return /* @__PURE__ */ f(
|
|
6551
6554
|
De,
|
|
6552
6555
|
{
|
|
@@ -6554,7 +6557,7 @@ var Ca = "CheckboxIndicator", Ea = p.forwardRef(
|
|
|
6554
6557
|
children: /* @__PURE__ */ f(
|
|
6555
6558
|
Z.span,
|
|
6556
6559
|
{
|
|
6557
|
-
"data-state":
|
|
6560
|
+
"data-state": Ta(s.checked),
|
|
6558
6561
|
"data-disabled": s.disabled ? "" : void 0,
|
|
6559
6562
|
...r,
|
|
6560
6563
|
ref: t,
|
|
@@ -6565,8 +6568,8 @@ var Ca = "CheckboxIndicator", Ea = p.forwardRef(
|
|
|
6565
6568
|
);
|
|
6566
6569
|
}
|
|
6567
6570
|
);
|
|
6568
|
-
|
|
6569
|
-
var
|
|
6571
|
+
ka.displayName = Ea;
|
|
6572
|
+
var Na = "CheckboxBubbleInput", Ra = p.forwardRef(
|
|
6570
6573
|
({ __scopeCheckbox: e, ...t }, n) => {
|
|
6571
6574
|
const {
|
|
6572
6575
|
control: o,
|
|
@@ -6580,7 +6583,7 @@ var ka = "CheckboxBubbleInput", Na = p.forwardRef(
|
|
|
6580
6583
|
form: l,
|
|
6581
6584
|
bubbleInput: m,
|
|
6582
6585
|
setBubbleInput: h
|
|
6583
|
-
} = Yo(
|
|
6586
|
+
} = Yo(Na, e), b = ie(n, h), g = An(s), v = _n(o);
|
|
6584
6587
|
p.useEffect(() => {
|
|
6585
6588
|
const w = m;
|
|
6586
6589
|
if (!w) return;
|
|
@@ -6624,14 +6627,14 @@ var ka = "CheckboxBubbleInput", Na = p.forwardRef(
|
|
|
6624
6627
|
);
|
|
6625
6628
|
}
|
|
6626
6629
|
);
|
|
6627
|
-
|
|
6630
|
+
Ra.displayName = Na;
|
|
6628
6631
|
function zp(e) {
|
|
6629
6632
|
return typeof e == "function";
|
|
6630
6633
|
}
|
|
6631
6634
|
function et(e) {
|
|
6632
6635
|
return e === "indeterminate";
|
|
6633
6636
|
}
|
|
6634
|
-
function
|
|
6637
|
+
function Ta(e) {
|
|
6635
6638
|
return et(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
6636
6639
|
}
|
|
6637
6640
|
const $p = ["top", "right", "bottom", "left"], tt = Math.min, Ee = Math.max, vn = Math.round, un = Math.floor, He = (e) => ({
|
|
@@ -6712,7 +6715,7 @@ function Gp(e) {
|
|
|
6712
6715
|
...e
|
|
6713
6716
|
};
|
|
6714
6717
|
}
|
|
6715
|
-
function
|
|
6718
|
+
function Pa(e) {
|
|
6716
6719
|
return typeof e != "number" ? Gp(e) : {
|
|
6717
6720
|
top: e,
|
|
6718
6721
|
right: e,
|
|
@@ -6802,7 +6805,7 @@ async function Yp(e, t) {
|
|
|
6802
6805
|
elementContext: l = "floating",
|
|
6803
6806
|
altBoundary: m = !1,
|
|
6804
6807
|
padding: h = 0
|
|
6805
|
-
} = Ge(t, e), b =
|
|
6808
|
+
} = Ge(t, e), b = Pa(h), v = i[m ? l === "floating" ? "reference" : "floating" : l], y = yn(await s.getClippingRect({
|
|
6806
6809
|
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
6810
|
boundary: d,
|
|
6808
6811
|
rootBoundary: u,
|
|
@@ -6913,7 +6916,7 @@ const qp = 50, Kp = async (e, t, n) => {
|
|
|
6913
6916
|
} = Ge(e, t) || {};
|
|
6914
6917
|
if (d == null)
|
|
6915
6918
|
return {};
|
|
6916
|
-
const l =
|
|
6919
|
+
const l = Pa(u), m = {
|
|
6917
6920
|
x: n,
|
|
6918
6921
|
y: o
|
|
6919
6922
|
}, h = Xo(r), b = Ko(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));
|
|
@@ -7067,13 +7070,13 @@ const Jp = function(e) {
|
|
|
7067
7070
|
}
|
|
7068
7071
|
}
|
|
7069
7072
|
};
|
|
7070
|
-
},
|
|
7073
|
+
}, Aa = /* @__PURE__ */ new Set(["left", "top"]);
|
|
7071
7074
|
async function Qp(e, t) {
|
|
7072
7075
|
const {
|
|
7073
7076
|
placement: n,
|
|
7074
7077
|
platform: o,
|
|
7075
7078
|
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 =
|
|
7079
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Ye(n), i = Mt(n), c = Be(n) === "y", d = Aa.has(a) ? -1 : 1, u = s && c ? -1 : 1, l = Ge(t, e);
|
|
7077
7080
|
let {
|
|
7078
7081
|
mainAxis: m,
|
|
7079
7082
|
crossAxis: h,
|
|
@@ -7207,7 +7210,7 @@ const em = function(e) {
|
|
|
7207
7210
|
}
|
|
7208
7211
|
if (d) {
|
|
7209
7212
|
var y, w;
|
|
7210
|
-
const x = m === "y" ? "width" : "height", C =
|
|
7213
|
+
const x = m === "y" ? "width" : "height", C = Aa.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
7214
|
b < R ? b = R : b > T && (b = T);
|
|
7212
7215
|
}
|
|
7213
7216
|
return {
|
|
@@ -7261,7 +7264,7 @@ function Mn() {
|
|
|
7261
7264
|
return typeof window < "u";
|
|
7262
7265
|
}
|
|
7263
7266
|
function Ot(e) {
|
|
7264
|
-
return
|
|
7267
|
+
return _a(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7265
7268
|
}
|
|
7266
7269
|
function ke(e) {
|
|
7267
7270
|
var t;
|
|
@@ -7269,9 +7272,9 @@ function ke(e) {
|
|
|
7269
7272
|
}
|
|
7270
7273
|
function Ve(e) {
|
|
7271
7274
|
var t;
|
|
7272
|
-
return (t = (
|
|
7275
|
+
return (t = (_a(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7273
7276
|
}
|
|
7274
|
-
function
|
|
7277
|
+
function _a(e) {
|
|
7275
7278
|
return Mn() ? e instanceof Node || e instanceof ke(e).Node : !1;
|
|
7276
7279
|
}
|
|
7277
7280
|
function Oe(e) {
|
|
@@ -7354,14 +7357,14 @@ function nt(e) {
|
|
|
7354
7357
|
);
|
|
7355
7358
|
return Qr(t) ? t.host : t;
|
|
7356
7359
|
}
|
|
7357
|
-
function
|
|
7360
|
+
function Ia(e) {
|
|
7358
7361
|
const t = nt(e);
|
|
7359
|
-
return At(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : qe(t) && qt(t) ? t :
|
|
7362
|
+
return At(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : qe(t) && qt(t) ? t : Ia(t);
|
|
7360
7363
|
}
|
|
7361
7364
|
function Ut(e, t, n) {
|
|
7362
7365
|
var o;
|
|
7363
7366
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
7364
|
-
const r =
|
|
7367
|
+
const r = Ia(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = ke(r);
|
|
7365
7368
|
if (s) {
|
|
7366
7369
|
const i = Co(a);
|
|
7367
7370
|
return t.concat(a, a.visualViewport || [], qt(r) ? r : [], i && n ? Ut(i) : []);
|
|
@@ -7371,7 +7374,7 @@ function Ut(e, t, n) {
|
|
|
7371
7374
|
function Co(e) {
|
|
7372
7375
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
7373
7376
|
}
|
|
7374
|
-
function
|
|
7377
|
+
function Ma(e) {
|
|
7375
7378
|
const t = Le(e);
|
|
7376
7379
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
7377
7380
|
const r = qe(e), s = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = vn(n) !== s || vn(o) !== a;
|
|
@@ -7392,7 +7395,7 @@ function Tt(e) {
|
|
|
7392
7395
|
width: o,
|
|
7393
7396
|
height: r,
|
|
7394
7397
|
$: s
|
|
7395
|
-
} =
|
|
7398
|
+
} = Ma(t);
|
|
7396
7399
|
let a = (s ? vn(n.width) : n.width) / o, i = (s ? vn(n.height) : n.height) / r;
|
|
7397
7400
|
return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
7398
7401
|
x: a,
|
|
@@ -7400,7 +7403,7 @@ function Tt(e) {
|
|
|
7400
7403
|
};
|
|
7401
7404
|
}
|
|
7402
7405
|
const cm = /* @__PURE__ */ He(0);
|
|
7403
|
-
function
|
|
7406
|
+
function Oa(e) {
|
|
7404
7407
|
const t = ke(e);
|
|
7405
7408
|
return !Jo() || !t.visualViewport ? cm : {
|
|
7406
7409
|
x: t.visualViewport.offsetLeft,
|
|
@@ -7415,7 +7418,7 @@ function ut(e, t, n, o) {
|
|
|
7415
7418
|
const r = e.getBoundingClientRect(), s = Qo(e);
|
|
7416
7419
|
let a = He(1);
|
|
7417
7420
|
t && (o ? Oe(o) && (a = Tt(o)) : a = Tt(e));
|
|
7418
|
-
const i = lm(s, n, o) ?
|
|
7421
|
+
const i = lm(s, n, o) ? Oa(s) : He(0);
|
|
7419
7422
|
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
7423
|
if (s) {
|
|
7421
7424
|
const m = ke(s), h = o && Oe(o) ? ke(o) : o;
|
|
@@ -7436,7 +7439,7 @@ function Dn(e, t) {
|
|
|
7436
7439
|
const n = Ln(e).scrollLeft;
|
|
7437
7440
|
return t ? t.left + n : ut(Ve(e)).left + n;
|
|
7438
7441
|
}
|
|
7439
|
-
function
|
|
7442
|
+
function La(e, t) {
|
|
7440
7443
|
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Dn(e, n), r = n.top + t.scrollTop;
|
|
7441
7444
|
return {
|
|
7442
7445
|
x: o,
|
|
@@ -7462,7 +7465,7 @@ function dm(e) {
|
|
|
7462
7465
|
const h = ut(o);
|
|
7463
7466
|
d = Tt(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
|
|
7464
7467
|
}
|
|
7465
|
-
const m = a && !l && !s ?
|
|
7468
|
+
const m = a && !l && !s ? La(a, c) : He(0);
|
|
7466
7469
|
return {
|
|
7467
7470
|
width: n.width * d.x,
|
|
7468
7471
|
height: n.height * d.y,
|
|
@@ -7523,7 +7526,7 @@ function ts(e, t, n) {
|
|
|
7523
7526
|
else if (Oe(t))
|
|
7524
7527
|
o = mm(t, n);
|
|
7525
7528
|
else {
|
|
7526
|
-
const r =
|
|
7529
|
+
const r = Oa(e);
|
|
7527
7530
|
o = {
|
|
7528
7531
|
x: t.x - r.x,
|
|
7529
7532
|
y: t.y - r.y,
|
|
@@ -7533,9 +7536,9 @@ function ts(e, t, n) {
|
|
|
7533
7536
|
}
|
|
7534
7537
|
return yn(o);
|
|
7535
7538
|
}
|
|
7536
|
-
function
|
|
7539
|
+
function Da(e, t) {
|
|
7537
7540
|
const n = nt(e);
|
|
7538
|
-
return n === t || !Oe(n) || At(n) ? !1 : Le(n).position === "fixed" ||
|
|
7541
|
+
return n === t || !Oe(n) || At(n) ? !1 : Le(n).position === "fixed" || Da(n, t);
|
|
7539
7542
|
}
|
|
7540
7543
|
function hm(e, t) {
|
|
7541
7544
|
const n = t.get(e);
|
|
@@ -7546,7 +7549,7 @@ function hm(e, t) {
|
|
|
7546
7549
|
let a = s ? nt(e) : e;
|
|
7547
7550
|
for (; Oe(a) && !At(a); ) {
|
|
7548
7551
|
const i = Le(a), c = Zo(a);
|
|
7549
|
-
!c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || qt(a) && !c &&
|
|
7552
|
+
!c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || qt(a) && !c && Da(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = nt(a);
|
|
7550
7553
|
}
|
|
7551
7554
|
return t.set(e, o), o;
|
|
7552
7555
|
}
|
|
@@ -7574,7 +7577,7 @@ function vm(e) {
|
|
|
7574
7577
|
const {
|
|
7575
7578
|
width: t,
|
|
7576
7579
|
height: n
|
|
7577
|
-
} =
|
|
7580
|
+
} = Ma(e);
|
|
7578
7581
|
return {
|
|
7579
7582
|
width: t,
|
|
7580
7583
|
height: n
|
|
@@ -7596,7 +7599,7 @@ function bm(e, t, n) {
|
|
|
7596
7599
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
7597
7600
|
} else r && d();
|
|
7598
7601
|
s && !o && r && d();
|
|
7599
|
-
const u = r && !o && !s ?
|
|
7602
|
+
const u = r && !o && !s ? La(r, i) : He(0), l = a.left + i.scrollLeft - c.x - u.x, m = a.top + i.scrollTop - c.y - u.y;
|
|
7600
7603
|
return {
|
|
7601
7604
|
x: l,
|
|
7602
7605
|
y: m,
|
|
@@ -7615,7 +7618,7 @@ function ns(e, t) {
|
|
|
7615
7618
|
let n = e.offsetParent;
|
|
7616
7619
|
return Ve(e) === n && (n = n.ownerDocument.body), n;
|
|
7617
7620
|
}
|
|
7618
|
-
function
|
|
7621
|
+
function za(e, t) {
|
|
7619
7622
|
const n = ke(e);
|
|
7620
7623
|
if (On(e))
|
|
7621
7624
|
return n;
|
|
@@ -7634,7 +7637,7 @@ function Da(e, t) {
|
|
|
7634
7637
|
return o && At(o) && lo(o) && !Zo(o) ? n : o || im(e) || n;
|
|
7635
7638
|
}
|
|
7636
7639
|
const ym = async function(e) {
|
|
7637
|
-
const t = this.getOffsetParent ||
|
|
7640
|
+
const t = this.getOffsetParent || za, n = this.getDimensions, o = await n(e.floating);
|
|
7638
7641
|
return {
|
|
7639
7642
|
reference: bm(e.reference, await t(e.floating), e.strategy),
|
|
7640
7643
|
floating: {
|
|
@@ -7652,7 +7655,7 @@ const xm = {
|
|
|
7652
7655
|
convertOffsetParentRelativeRectToViewportRelativeRect: dm,
|
|
7653
7656
|
getDocumentElement: Ve,
|
|
7654
7657
|
getClippingRect: gm,
|
|
7655
|
-
getOffsetParent:
|
|
7658
|
+
getOffsetParent: za,
|
|
7656
7659
|
getElementRects: ym,
|
|
7657
7660
|
getClientRects: um,
|
|
7658
7661
|
getDimensions: vm,
|
|
@@ -7660,7 +7663,7 @@ const xm = {
|
|
|
7660
7663
|
isElement: Oe,
|
|
7661
7664
|
isRTL: wm
|
|
7662
7665
|
};
|
|
7663
|
-
function
|
|
7666
|
+
function $a(e, t) {
|
|
7664
7667
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
7665
7668
|
}
|
|
7666
7669
|
function Sm(e, t) {
|
|
@@ -7694,7 +7697,7 @@ function Sm(e, t) {
|
|
|
7694
7697
|
a(!1, 1e-7);
|
|
7695
7698
|
}, 1e3);
|
|
7696
7699
|
}
|
|
7697
|
-
N === 1 &&
|
|
7700
|
+
N === 1 && !$a(d, e.getBoundingClientRect()) && a(), C = !1;
|
|
7698
7701
|
}
|
|
7699
7702
|
try {
|
|
7700
7703
|
n = new IntersectionObserver(R, {
|
|
@@ -7736,7 +7739,7 @@ function Cm(e, t, n, o) {
|
|
|
7736
7739
|
c && v();
|
|
7737
7740
|
function v() {
|
|
7738
7741
|
const y = ut(e);
|
|
7739
|
-
g &&
|
|
7742
|
+
g && !$a(g, y) && n(), g = y, b = requestAnimationFrame(v);
|
|
7740
7743
|
}
|
|
7741
7744
|
return n(), () => {
|
|
7742
7745
|
var y;
|
|
@@ -7759,7 +7762,7 @@ const Em = em, km = tm, Nm = Zp, Rm = om, Tm = Jp, os = Xp, Pm = nm, Am = (e, t,
|
|
|
7759
7762
|
});
|
|
7760
7763
|
};
|
|
7761
7764
|
var _m = typeof document < "u", Im = function() {
|
|
7762
|
-
}, mn = _m ?
|
|
7765
|
+
}, mn = _m ? tl : Im;
|
|
7763
7766
|
function wn(e, t) {
|
|
7764
7767
|
if (e === t)
|
|
7765
7768
|
return !0;
|
|
@@ -7790,11 +7793,11 @@ function wn(e, t) {
|
|
|
7790
7793
|
}
|
|
7791
7794
|
return e !== e && t !== t;
|
|
7792
7795
|
}
|
|
7793
|
-
function
|
|
7796
|
+
function Fa(e) {
|
|
7794
7797
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
7795
7798
|
}
|
|
7796
7799
|
function rs(e, t) {
|
|
7797
|
-
const n =
|
|
7800
|
+
const n = Fa(e);
|
|
7798
7801
|
return Math.round(t * n) / n;
|
|
7799
7802
|
}
|
|
7800
7803
|
function uo(e) {
|
|
@@ -7888,7 +7891,7 @@ function Mm(e) {
|
|
|
7888
7891
|
return i ? {
|
|
7889
7892
|
...U,
|
|
7890
7893
|
transform: "translate(" + k + "px, " + S + "px)",
|
|
7891
|
-
|
|
7894
|
+
...Fa(A.floating) >= 1.5 && {
|
|
7892
7895
|
willChange: "transform"
|
|
7893
7896
|
}
|
|
7894
7897
|
} : {
|
|
@@ -7972,7 +7975,7 @@ const Om = (e) => {
|
|
|
7972
7975
|
options: [e, t]
|
|
7973
7976
|
};
|
|
7974
7977
|
};
|
|
7975
|
-
var Vm = "Arrow",
|
|
7978
|
+
var Vm = "Arrow", Ba = p.forwardRef((e, t) => {
|
|
7976
7979
|
const { children: n, width: o = 10, height: r = 5, ...s } = e;
|
|
7977
7980
|
return /* @__PURE__ */ f(
|
|
7978
7981
|
Z.svg,
|
|
@@ -7987,23 +7990,23 @@ var Vm = "Arrow", Fa = p.forwardRef((e, t) => {
|
|
|
7987
7990
|
}
|
|
7988
7991
|
);
|
|
7989
7992
|
});
|
|
7990
|
-
|
|
7991
|
-
var Wm =
|
|
7993
|
+
Ba.displayName = Vm;
|
|
7994
|
+
var Wm = Ba, er = "Popper", [Ha, zn] = xe(er), [Um, Va] = Ha(er), Wa = (e) => {
|
|
7992
7995
|
const { __scopePopper: t, children: n } = e, [o, r] = p.useState(null);
|
|
7993
7996
|
return /* @__PURE__ */ f(Um, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
7994
7997
|
};
|
|
7995
|
-
|
|
7996
|
-
var
|
|
7998
|
+
Wa.displayName = er;
|
|
7999
|
+
var Ua = "PopperAnchor", ja = p.forwardRef(
|
|
7997
8000
|
(e, t) => {
|
|
7998
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, s =
|
|
8001
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, s = Va(Ua, n), a = p.useRef(null), i = ie(t, a), c = p.useRef(null);
|
|
7999
8002
|
return p.useEffect(() => {
|
|
8000
8003
|
const d = c.current;
|
|
8001
8004
|
c.current = (o == null ? void 0 : o.current) || a.current, d !== c.current && s.onAnchorChange(c.current);
|
|
8002
8005
|
}), o ? null : /* @__PURE__ */ f(Z.div, { ...r, ref: i });
|
|
8003
8006
|
}
|
|
8004
8007
|
);
|
|
8005
|
-
|
|
8006
|
-
var tr = "PopperContent", [jm, Gm] =
|
|
8008
|
+
ja.displayName = Ua;
|
|
8009
|
+
var tr = "PopperContent", [jm, Gm] = Ha(tr), Ga = p.forwardRef(
|
|
8007
8010
|
(e, t) => {
|
|
8008
8011
|
var j, Y, ee, te, se, oe;
|
|
8009
8012
|
const {
|
|
@@ -8021,7 +8024,7 @@ var tr = "PopperContent", [jm, Gm] = Ba(tr), ja = p.forwardRef(
|
|
|
8021
8024
|
updatePositionStrategy: h = "optimized",
|
|
8022
8025
|
onPlaced: b,
|
|
8023
8026
|
...g
|
|
8024
|
-
} = e, v =
|
|
8027
|
+
} = e, v = Va(tr, 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
8028
|
padding: W,
|
|
8026
8029
|
boundary: M.filter(qm),
|
|
8027
8030
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -8056,7 +8059,7 @@ var tr = "PopperContent", [jm, Gm] = Ba(tr), ja = p.forwardRef(
|
|
|
8056
8059
|
Km({ arrowWidth: N, arrowHeight: E }),
|
|
8057
8060
|
m && Bm({ strategy: "referenceHidden", ...H })
|
|
8058
8061
|
]
|
|
8059
|
-
}), [k, S] =
|
|
8062
|
+
}), [k, S] = Ka(A), _ = be(b);
|
|
8060
8063
|
de(() => {
|
|
8061
8064
|
D && (_ == null || _());
|
|
8062
8065
|
}, [D, _]);
|
|
@@ -8117,14 +8120,14 @@ var tr = "PopperContent", [jm, Gm] = Ba(tr), ja = p.forwardRef(
|
|
|
8117
8120
|
);
|
|
8118
8121
|
}
|
|
8119
8122
|
);
|
|
8120
|
-
|
|
8121
|
-
var
|
|
8123
|
+
Ga.displayName = tr;
|
|
8124
|
+
var Ya = "PopperArrow", Ym = {
|
|
8122
8125
|
top: "bottom",
|
|
8123
8126
|
right: "left",
|
|
8124
8127
|
bottom: "top",
|
|
8125
8128
|
left: "right"
|
|
8126
|
-
},
|
|
8127
|
-
const { __scopePopper: o, ...r } = t, s = Gm(
|
|
8129
|
+
}, qa = p.forwardRef(function(t, n) {
|
|
8130
|
+
const { __scopePopper: o, ...r } = t, s = Gm(Ya, o), a = Ym[s.placedSide];
|
|
8128
8131
|
return (
|
|
8129
8132
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
8130
8133
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -8168,7 +8171,7 @@ var Ga = "PopperArrow", Ym = {
|
|
|
8168
8171
|
)
|
|
8169
8172
|
);
|
|
8170
8173
|
});
|
|
8171
|
-
|
|
8174
|
+
qa.displayName = Ya;
|
|
8172
8175
|
function qm(e) {
|
|
8173
8176
|
return e !== null;
|
|
8174
8177
|
}
|
|
@@ -8177,22 +8180,22 @@ var Km = (e) => ({
|
|
|
8177
8180
|
options: e,
|
|
8178
8181
|
fn(t) {
|
|
8179
8182
|
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] =
|
|
8183
|
+
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] = Ka(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
8184
|
let b = "", g = "";
|
|
8182
8185
|
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
8186
|
}
|
|
8184
8187
|
});
|
|
8185
|
-
function
|
|
8188
|
+
function Ka(e) {
|
|
8186
8189
|
const [t, n = "center"] = e.split("-");
|
|
8187
8190
|
return [t, n];
|
|
8188
8191
|
}
|
|
8189
|
-
var
|
|
8192
|
+
var Xa = Wa, Za = ja, Ja = Ga, Qa = qa, fo = "rovingFocusGroup.onEntryFocus", Xm = { bubbles: !1, cancelable: !0 }, Kt = "RovingFocusGroup", [Eo, ei, Zm] = Zs(Kt), [Jm, $n] = xe(
|
|
8190
8193
|
Kt,
|
|
8191
8194
|
[Zm]
|
|
8192
|
-
), [Qm, eh] = Jm(Kt),
|
|
8195
|
+
), [Qm, eh] = Jm(Kt), ti = p.forwardRef(
|
|
8193
8196
|
(e, t) => /* @__PURE__ */ f(Eo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(Eo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(th, { ...e, ref: t }) }) })
|
|
8194
8197
|
);
|
|
8195
|
-
|
|
8198
|
+
ti.displayName = Kt;
|
|
8196
8199
|
var th = p.forwardRef((e, t) => {
|
|
8197
8200
|
const {
|
|
8198
8201
|
__scopeRovingFocusGroup: n,
|
|
@@ -8210,7 +8213,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8210
8213
|
defaultProp: i ?? null,
|
|
8211
8214
|
onChange: c,
|
|
8212
8215
|
caller: Kt
|
|
8213
|
-
}), [y, w] = p.useState(!1), x = be(d), C =
|
|
8216
|
+
}), [y, w] = p.useState(!1), x = be(d), C = ei(n), R = p.useRef(!1), [T, N] = p.useState(0);
|
|
8214
8217
|
return p.useEffect(() => {
|
|
8215
8218
|
const E = m.current;
|
|
8216
8219
|
if (E)
|
|
@@ -8255,7 +8258,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8255
8258
|
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
8259
|
Boolean
|
|
8257
8260
|
).map((A) => A.ref.current);
|
|
8258
|
-
|
|
8261
|
+
ri(K, u);
|
|
8259
8262
|
}
|
|
8260
8263
|
}
|
|
8261
8264
|
R.current = !1;
|
|
@@ -8265,7 +8268,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8265
8268
|
)
|
|
8266
8269
|
}
|
|
8267
8270
|
);
|
|
8268
|
-
}),
|
|
8271
|
+
}), ni = "RovingFocusGroupItem", oi = p.forwardRef(
|
|
8269
8272
|
(e, t) => {
|
|
8270
8273
|
const {
|
|
8271
8274
|
__scopeRovingFocusGroup: n,
|
|
@@ -8274,7 +8277,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8274
8277
|
tabStopId: s,
|
|
8275
8278
|
children: a,
|
|
8276
8279
|
...i
|
|
8277
|
-
} = e, c = ht(), d = s || c, u = eh(
|
|
8280
|
+
} = e, c = ht(), d = s || c, u = eh(ni, n), l = u.currentTabStopId === d, m = ei(n), { onFocusableItemAdd: h, onFocusableItemRemove: b, currentTabStopId: g } = u;
|
|
8278
8281
|
return p.useEffect(() => {
|
|
8279
8282
|
if (o)
|
|
8280
8283
|
return h(), () => b();
|
|
@@ -8313,7 +8316,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8313
8316
|
const C = x.indexOf(v.currentTarget);
|
|
8314
8317
|
x = u.loop ? sh(x, C + 1) : x.slice(C + 1);
|
|
8315
8318
|
}
|
|
8316
|
-
setTimeout(() =>
|
|
8319
|
+
setTimeout(() => ri(x));
|
|
8317
8320
|
}
|
|
8318
8321
|
}),
|
|
8319
8322
|
children: typeof a == "function" ? a({ isCurrentTabStop: l, hasTabStop: g != null }) : a
|
|
@@ -8323,7 +8326,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8323
8326
|
);
|
|
8324
8327
|
}
|
|
8325
8328
|
);
|
|
8326
|
-
|
|
8329
|
+
oi.displayName = ni;
|
|
8327
8330
|
var nh = {
|
|
8328
8331
|
ArrowLeft: "prev",
|
|
8329
8332
|
ArrowUp: "prev",
|
|
@@ -8342,7 +8345,7 @@ function rh(e, t, n) {
|
|
|
8342
8345
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
8343
8346
|
return nh[o];
|
|
8344
8347
|
}
|
|
8345
|
-
function
|
|
8348
|
+
function ri(e, t = !1) {
|
|
8346
8349
|
const n = document.activeElement;
|
|
8347
8350
|
for (const o of e)
|
|
8348
8351
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
@@ -8350,7 +8353,7 @@ function oi(e, t = !1) {
|
|
|
8350
8353
|
function sh(e, t) {
|
|
8351
8354
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
8352
8355
|
}
|
|
8353
|
-
var
|
|
8356
|
+
var si = ti, ai = oi, ah = "Label", ii = p.forwardRef((e, t) => /* @__PURE__ */ f(
|
|
8354
8357
|
Z.label,
|
|
8355
8358
|
{
|
|
8356
8359
|
...e,
|
|
@@ -8361,12 +8364,12 @@ var ri = ei, si = ni, ah = "Label", ai = p.forwardRef((e, t) => /* @__PURE__ */
|
|
|
8361
8364
|
}
|
|
8362
8365
|
}
|
|
8363
8366
|
));
|
|
8364
|
-
|
|
8365
|
-
var ih =
|
|
8367
|
+
ii.displayName = ah;
|
|
8368
|
+
var ih = ii;
|
|
8366
8369
|
function ko(e, [t, n]) {
|
|
8367
8370
|
return Math.min(n, Math.max(t, e));
|
|
8368
8371
|
}
|
|
8369
|
-
var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr),
|
|
8372
|
+
var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr), ci = p.forwardRef(
|
|
8370
8373
|
(e, t) => {
|
|
8371
8374
|
const {
|
|
8372
8375
|
__scopeProgress: n,
|
|
@@ -8387,7 +8390,7 @@ var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr), ii = p.forwardR
|
|
|
8387
8390
|
"aria-valuenow": xn(c) ? c : void 0,
|
|
8388
8391
|
"aria-valuetext": d,
|
|
8389
8392
|
role: "progressbar",
|
|
8390
|
-
"data-state":
|
|
8393
|
+
"data-state": ui(c, i),
|
|
8391
8394
|
"data-value": c ?? void 0,
|
|
8392
8395
|
"data-max": i,
|
|
8393
8396
|
...a,
|
|
@@ -8396,14 +8399,14 @@ var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr), ii = p.forwardR
|
|
|
8396
8399
|
) });
|
|
8397
8400
|
}
|
|
8398
8401
|
);
|
|
8399
|
-
|
|
8400
|
-
var
|
|
8402
|
+
ci.displayName = nr;
|
|
8403
|
+
var li = "ProgressIndicator", di = p.forwardRef(
|
|
8401
8404
|
(e, t) => {
|
|
8402
|
-
const { __scopeProgress: n, ...o } = e, r = dh(
|
|
8405
|
+
const { __scopeProgress: n, ...o } = e, r = dh(li, n);
|
|
8403
8406
|
return /* @__PURE__ */ f(
|
|
8404
8407
|
Z.div,
|
|
8405
8408
|
{
|
|
8406
|
-
"data-state":
|
|
8409
|
+
"data-state": ui(r.value, r.max),
|
|
8407
8410
|
"data-value": r.value ?? void 0,
|
|
8408
8411
|
"data-max": r.max,
|
|
8409
8412
|
...o,
|
|
@@ -8412,11 +8415,11 @@ var ci = "ProgressIndicator", li = p.forwardRef(
|
|
|
8412
8415
|
);
|
|
8413
8416
|
}
|
|
8414
8417
|
);
|
|
8415
|
-
|
|
8418
|
+
di.displayName = li;
|
|
8416
8419
|
function uh(e, t) {
|
|
8417
8420
|
return `${Math.round(e / t * 100)}%`;
|
|
8418
8421
|
}
|
|
8419
|
-
function
|
|
8422
|
+
function ui(e, t) {
|
|
8420
8423
|
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
8421
8424
|
}
|
|
8422
8425
|
function xn(e) {
|
|
@@ -8439,7 +8442,7 @@ function ph(e, t) {
|
|
|
8439
8442
|
|
|
8440
8443
|
Defaulting to \`null\`.`;
|
|
8441
8444
|
}
|
|
8442
|
-
var mh =
|
|
8445
|
+
var mh = ci, hh = di, rr = "Radio", [gh, fi] = xe(rr), [vh, bh] = gh(rr), pi = p.forwardRef(
|
|
8443
8446
|
(e, t) => {
|
|
8444
8447
|
const {
|
|
8445
8448
|
__scopeRadio: n,
|
|
@@ -8459,7 +8462,7 @@ var mh = ii, hh = li, rr = "Radio", [gh, ui] = xe(rr), [vh, bh] = gh(rr), fi = p
|
|
|
8459
8462
|
type: "button",
|
|
8460
8463
|
role: "radio",
|
|
8461
8464
|
"aria-checked": r,
|
|
8462
|
-
"data-state":
|
|
8465
|
+
"data-state": vi(r),
|
|
8463
8466
|
"data-disabled": a ? "" : void 0,
|
|
8464
8467
|
disabled: a,
|
|
8465
8468
|
value: i,
|
|
@@ -8471,7 +8474,7 @@ var mh = ii, hh = li, rr = "Radio", [gh, ui] = xe(rr), [vh, bh] = gh(rr), fi = p
|
|
|
8471
8474
|
}
|
|
8472
8475
|
),
|
|
8473
8476
|
g && /* @__PURE__ */ f(
|
|
8474
|
-
|
|
8477
|
+
gi,
|
|
8475
8478
|
{
|
|
8476
8479
|
control: l,
|
|
8477
8480
|
bubbles: !b.current,
|
|
@@ -8487,14 +8490,14 @@ var mh = ii, hh = li, rr = "Radio", [gh, ui] = xe(rr), [vh, bh] = gh(rr), fi = p
|
|
|
8487
8490
|
] });
|
|
8488
8491
|
}
|
|
8489
8492
|
);
|
|
8490
|
-
|
|
8491
|
-
var
|
|
8493
|
+
pi.displayName = rr;
|
|
8494
|
+
var mi = "RadioIndicator", hi = p.forwardRef(
|
|
8492
8495
|
(e, t) => {
|
|
8493
|
-
const { __scopeRadio: n, forceMount: o, ...r } = e, s = bh(
|
|
8496
|
+
const { __scopeRadio: n, forceMount: o, ...r } = e, s = bh(mi, n);
|
|
8494
8497
|
return /* @__PURE__ */ f(De, { present: o || s.checked, children: /* @__PURE__ */ f(
|
|
8495
8498
|
Z.span,
|
|
8496
8499
|
{
|
|
8497
|
-
"data-state":
|
|
8500
|
+
"data-state": vi(s.checked),
|
|
8498
8501
|
"data-disabled": s.disabled ? "" : void 0,
|
|
8499
8502
|
...r,
|
|
8500
8503
|
ref: t
|
|
@@ -8502,8 +8505,8 @@ var pi = "RadioIndicator", mi = p.forwardRef(
|
|
|
8502
8505
|
) });
|
|
8503
8506
|
}
|
|
8504
8507
|
);
|
|
8505
|
-
|
|
8506
|
-
var yh = "RadioBubbleInput",
|
|
8508
|
+
hi.displayName = mi;
|
|
8509
|
+
var yh = "RadioBubbleInput", gi = p.forwardRef(
|
|
8507
8510
|
({
|
|
8508
8511
|
__scopeRadio: e,
|
|
8509
8512
|
control: t,
|
|
@@ -8544,14 +8547,14 @@ var yh = "RadioBubbleInput", hi = p.forwardRef(
|
|
|
8544
8547
|
);
|
|
8545
8548
|
}
|
|
8546
8549
|
);
|
|
8547
|
-
|
|
8548
|
-
function
|
|
8550
|
+
gi.displayName = yh;
|
|
8551
|
+
function vi(e) {
|
|
8549
8552
|
return e ? "checked" : "unchecked";
|
|
8550
8553
|
}
|
|
8551
8554
|
var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup", [xh] = xe(Fn, [
|
|
8552
8555
|
$n,
|
|
8553
|
-
|
|
8554
|
-
]),
|
|
8556
|
+
fi
|
|
8557
|
+
]), bi = $n(), yi = fi(), [Sh, Ch] = xh(Fn), wi = p.forwardRef(
|
|
8555
8558
|
(e, t) => {
|
|
8556
8559
|
const {
|
|
8557
8560
|
__scopeRadioGroup: n,
|
|
@@ -8565,7 +8568,7 @@ var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8565
8568
|
loop: u = !0,
|
|
8566
8569
|
onValueChange: l,
|
|
8567
8570
|
...m
|
|
8568
|
-
} = e, h =
|
|
8571
|
+
} = e, h = bi(n), b = Yt(d), [g, v] = je({
|
|
8569
8572
|
prop: s,
|
|
8570
8573
|
defaultProp: r ?? null,
|
|
8571
8574
|
onChange: l,
|
|
@@ -8581,7 +8584,7 @@ var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8581
8584
|
value: g,
|
|
8582
8585
|
onValueChange: v,
|
|
8583
8586
|
children: /* @__PURE__ */ f(
|
|
8584
|
-
|
|
8587
|
+
si,
|
|
8585
8588
|
{
|
|
8586
8589
|
asChild: !0,
|
|
8587
8590
|
...h,
|
|
@@ -8606,10 +8609,10 @@ var wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Fn = "RadioGroup",
|
|
|
8606
8609
|
);
|
|
8607
8610
|
}
|
|
8608
8611
|
);
|
|
8609
|
-
|
|
8610
|
-
var
|
|
8612
|
+
wi.displayName = Fn;
|
|
8613
|
+
var xi = "RadioGroupItem", Si = p.forwardRef(
|
|
8611
8614
|
(e, t) => {
|
|
8612
|
-
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = Ch(
|
|
8615
|
+
const { __scopeRadioGroup: n, disabled: o, ...r } = e, s = Ch(xi, n), a = s.disabled || o, i = bi(n), c = yi(n), d = p.useRef(null), u = ie(t, d), l = s.value === r.value, m = p.useRef(!1);
|
|
8613
8616
|
return p.useEffect(() => {
|
|
8614
8617
|
const h = (g) => {
|
|
8615
8618
|
wh.includes(g.key) && (m.current = !0);
|
|
@@ -8618,14 +8621,14 @@ var wi = "RadioGroupItem", xi = p.forwardRef(
|
|
|
8618
8621
|
document.removeEventListener("keydown", h), document.removeEventListener("keyup", b);
|
|
8619
8622
|
};
|
|
8620
8623
|
}, []), /* @__PURE__ */ f(
|
|
8621
|
-
|
|
8624
|
+
ai,
|
|
8622
8625
|
{
|
|
8623
8626
|
asChild: !0,
|
|
8624
8627
|
...i,
|
|
8625
8628
|
focusable: !a,
|
|
8626
8629
|
active: l,
|
|
8627
8630
|
children: /* @__PURE__ */ f(
|
|
8628
|
-
|
|
8631
|
+
pi,
|
|
8629
8632
|
{
|
|
8630
8633
|
disabled: a,
|
|
8631
8634
|
required: s.required,
|
|
@@ -8648,19 +8651,19 @@ var wi = "RadioGroupItem", xi = p.forwardRef(
|
|
|
8648
8651
|
);
|
|
8649
8652
|
}
|
|
8650
8653
|
);
|
|
8651
|
-
|
|
8652
|
-
var Eh = "RadioGroupIndicator",
|
|
8654
|
+
Si.displayName = xi;
|
|
8655
|
+
var Eh = "RadioGroupIndicator", Ci = p.forwardRef(
|
|
8653
8656
|
(e, t) => {
|
|
8654
|
-
const { __scopeRadioGroup: n, ...o } = e, r =
|
|
8655
|
-
return /* @__PURE__ */ f(
|
|
8657
|
+
const { __scopeRadioGroup: n, ...o } = e, r = yi(n);
|
|
8658
|
+
return /* @__PURE__ */ f(hi, { ...r, ...o, ref: t });
|
|
8656
8659
|
}
|
|
8657
8660
|
);
|
|
8658
|
-
|
|
8659
|
-
var kh =
|
|
8661
|
+
Ci.displayName = Eh;
|
|
8662
|
+
var kh = wi, Nh = Si, Rh = Ci;
|
|
8660
8663
|
function Th(e, t) {
|
|
8661
8664
|
return p.useReducer((n, o) => t[n][o] ?? n, e);
|
|
8662
8665
|
}
|
|
8663
|
-
var sr = "ScrollArea", [
|
|
8666
|
+
var sr = "ScrollArea", [Ei] = xe(sr), [Ph, Re] = Ei(sr), ki = p.forwardRef(
|
|
8664
8667
|
(e, t) => {
|
|
8665
8668
|
const {
|
|
8666
8669
|
__scopeScrollArea: n,
|
|
@@ -8710,10 +8713,10 @@ var sr = "ScrollArea", [Ci] = xe(sr), [Ph, Re] = Ci(sr), Ei = p.forwardRef(
|
|
|
8710
8713
|
);
|
|
8711
8714
|
}
|
|
8712
8715
|
);
|
|
8713
|
-
|
|
8714
|
-
var
|
|
8716
|
+
ki.displayName = sr;
|
|
8717
|
+
var Ni = "ScrollAreaViewport", Ri = p.forwardRef(
|
|
8715
8718
|
(e, t) => {
|
|
8716
|
-
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, a = Re(
|
|
8719
|
+
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, a = Re(Ni, n), i = p.useRef(null), c = ie(t, i, a.onViewportChange);
|
|
8717
8720
|
return /* @__PURE__ */ q(Ie, { children: [
|
|
8718
8721
|
/* @__PURE__ */ f(
|
|
8719
8722
|
"style",
|
|
@@ -8752,16 +8755,16 @@ var ki = "ScrollAreaViewport", Ni = p.forwardRef(
|
|
|
8752
8755
|
] });
|
|
8753
8756
|
}
|
|
8754
8757
|
);
|
|
8755
|
-
|
|
8756
|
-
var We = "ScrollAreaScrollbar",
|
|
8758
|
+
Ri.displayName = Ni;
|
|
8759
|
+
var We = "ScrollAreaScrollbar", Ti = p.forwardRef(
|
|
8757
8760
|
(e, t) => {
|
|
8758
8761
|
const { forceMount: n, ...o } = e, r = Re(We, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = r, i = e.orientation === "horizontal";
|
|
8759
8762
|
return p.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
8760
8763
|
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(
|
|
8764
|
+
}), [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(Pi, { ...o, ref: t, forceMount: n }) : r.type === "always" ? /* @__PURE__ */ f(ar, { ...o, ref: t }) : null;
|
|
8762
8765
|
}
|
|
8763
8766
|
);
|
|
8764
|
-
|
|
8767
|
+
Ti.displayName = We;
|
|
8765
8768
|
var Ah = p.forwardRef((e, t) => {
|
|
8766
8769
|
const { forceMount: n, ...o } = e, r = Re(We, e.__scopeScrollArea), [s, a] = p.useState(!1);
|
|
8767
8770
|
return p.useEffect(() => {
|
|
@@ -8778,7 +8781,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8778
8781
|
};
|
|
8779
8782
|
}
|
|
8780
8783
|
}, [r.scrollArea, r.scrollHideDelay]), /* @__PURE__ */ f(De, { present: n || s, children: /* @__PURE__ */ f(
|
|
8781
|
-
|
|
8784
|
+
Pi,
|
|
8782
8785
|
{
|
|
8783
8786
|
"data-state": s ? "visible" : "hidden",
|
|
8784
8787
|
...o,
|
|
@@ -8829,7 +8832,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8829
8832
|
onPointerLeave: Q(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
8830
8833
|
}
|
|
8831
8834
|
) });
|
|
8832
|
-
}),
|
|
8835
|
+
}), Pi = p.forwardRef((e, t) => {
|
|
8833
8836
|
const n = Re(We, e.__scopeScrollArea), { forceMount: o, ...r } = e, [s, a] = p.useState(!1), i = e.orientation === "horizontal", c = Hn(() => {
|
|
8834
8837
|
if (n.viewport) {
|
|
8835
8838
|
const d = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
@@ -8849,7 +8852,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8849
8852
|
content: 0,
|
|
8850
8853
|
viewport: 0,
|
|
8851
8854
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
8852
|
-
}), d =
|
|
8855
|
+
}), d = Oi(i.viewport, i.content), u = {
|
|
8853
8856
|
...o,
|
|
8854
8857
|
sizes: i,
|
|
8855
8858
|
onSizesChange: c,
|
|
@@ -8903,7 +8906,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8903
8906
|
return p.useEffect(() => {
|
|
8904
8907
|
c.current && i(getComputedStyle(c.current));
|
|
8905
8908
|
}, [c]), /* @__PURE__ */ f(
|
|
8906
|
-
|
|
8909
|
+
_i,
|
|
8907
8910
|
{
|
|
8908
8911
|
"data-orientation": "horizontal",
|
|
8909
8912
|
...r,
|
|
@@ -8921,7 +8924,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8921
8924
|
onWheelScroll: (u, l) => {
|
|
8922
8925
|
if (s.viewport) {
|
|
8923
8926
|
const m = s.viewport.scrollLeft + u.deltaX;
|
|
8924
|
-
e.onWheelScroll(m),
|
|
8927
|
+
e.onWheelScroll(m), Di(m, l) && u.preventDefault();
|
|
8925
8928
|
}
|
|
8926
8929
|
},
|
|
8927
8930
|
onResize: () => {
|
|
@@ -8942,7 +8945,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8942
8945
|
return p.useEffect(() => {
|
|
8943
8946
|
c.current && i(getComputedStyle(c.current));
|
|
8944
8947
|
}, [c]), /* @__PURE__ */ f(
|
|
8945
|
-
|
|
8948
|
+
_i,
|
|
8946
8949
|
{
|
|
8947
8950
|
"data-orientation": "vertical",
|
|
8948
8951
|
...r,
|
|
@@ -8961,7 +8964,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8961
8964
|
onWheelScroll: (u, l) => {
|
|
8962
8965
|
if (s.viewport) {
|
|
8963
8966
|
const m = s.viewport.scrollTop + u.deltaY;
|
|
8964
|
-
e.onWheelScroll(m),
|
|
8967
|
+
e.onWheelScroll(m), Di(m, l) && u.preventDefault();
|
|
8965
8968
|
}
|
|
8966
8969
|
},
|
|
8967
8970
|
onResize: () => {
|
|
@@ -8977,7 +8980,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8977
8980
|
}
|
|
8978
8981
|
}
|
|
8979
8982
|
);
|
|
8980
|
-
}), [Oh,
|
|
8983
|
+
}), [Oh, Ai] = Ei(We), _i = p.forwardRef((e, t) => {
|
|
8981
8984
|
const {
|
|
8982
8985
|
__scopeScrollArea: n,
|
|
8983
8986
|
sizes: o,
|
|
@@ -9031,14 +9034,14 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
9031
9034
|
)
|
|
9032
9035
|
}
|
|
9033
9036
|
);
|
|
9034
|
-
}), Sn = "ScrollAreaThumb",
|
|
9037
|
+
}), Sn = "ScrollAreaThumb", Ii = p.forwardRef(
|
|
9035
9038
|
(e, t) => {
|
|
9036
|
-
const { forceMount: n, ...o } = e, r =
|
|
9039
|
+
const { forceMount: n, ...o } = e, r = Ai(Sn, e.__scopeScrollArea);
|
|
9037
9040
|
return /* @__PURE__ */ f(De, { present: n || r.hasThumb, children: /* @__PURE__ */ f(Lh, { ref: t, ...o }) });
|
|
9038
9041
|
}
|
|
9039
9042
|
), Lh = p.forwardRef(
|
|
9040
9043
|
(e, t) => {
|
|
9041
|
-
const { __scopeScrollArea: n, style: o, ...r } = e, s = Re(Sn, n), a =
|
|
9044
|
+
const { __scopeScrollArea: n, style: o, ...r } = e, s = Re(Sn, n), a = Ai(Sn, n), { onThumbPositionChange: i } = a, c = ie(
|
|
9042
9045
|
t,
|
|
9043
9046
|
(l) => a.onThumbChange(l)
|
|
9044
9047
|
), d = p.useRef(void 0), u = Hn(() => {
|
|
@@ -9075,14 +9078,14 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
9075
9078
|
);
|
|
9076
9079
|
}
|
|
9077
9080
|
);
|
|
9078
|
-
|
|
9079
|
-
var ir = "ScrollAreaCorner",
|
|
9081
|
+
Ii.displayName = Sn;
|
|
9082
|
+
var ir = "ScrollAreaCorner", Mi = p.forwardRef(
|
|
9080
9083
|
(e, t) => {
|
|
9081
9084
|
const n = Re(ir, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
|
|
9082
9085
|
return n.type !== "scroll" && o ? /* @__PURE__ */ f(Dh, { ...e, ref: t }) : null;
|
|
9083
9086
|
}
|
|
9084
9087
|
);
|
|
9085
|
-
|
|
9088
|
+
Mi.displayName = ir;
|
|
9086
9089
|
var Dh = p.forwardRef((e, t) => {
|
|
9087
9090
|
const { __scopeScrollArea: n, ...o } = e, r = Re(ir, n), [s, a] = p.useState(0), [i, c] = p.useState(0), d = !!(s && i);
|
|
9088
9091
|
return _t(r.scrollbarX, () => {
|
|
@@ -9113,30 +9116,30 @@ var Dh = p.forwardRef((e, t) => {
|
|
|
9113
9116
|
function Cn(e) {
|
|
9114
9117
|
return e ? parseInt(e, 10) : 0;
|
|
9115
9118
|
}
|
|
9116
|
-
function
|
|
9119
|
+
function Oi(e, t) {
|
|
9117
9120
|
const n = e / t;
|
|
9118
9121
|
return isNaN(n) ? 0 : n;
|
|
9119
9122
|
}
|
|
9120
9123
|
function Bn(e) {
|
|
9121
|
-
const t =
|
|
9124
|
+
const t = Oi(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - n) * t;
|
|
9122
9125
|
return Math.max(o, 18);
|
|
9123
9126
|
}
|
|
9124
9127
|
function zh(e, t, n, o = "ltr") {
|
|
9125
9128
|
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
|
|
9129
|
+
return Li([c, d], l)(e);
|
|
9127
9130
|
}
|
|
9128
9131
|
function is(e, t, n = "ltr") {
|
|
9129
9132
|
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 = ko(e, c);
|
|
9130
|
-
return
|
|
9133
|
+
return Li([0, a], [0, i])(d);
|
|
9131
9134
|
}
|
|
9132
|
-
function
|
|
9135
|
+
function Li(e, t) {
|
|
9133
9136
|
return (n) => {
|
|
9134
9137
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
9135
9138
|
const o = (t[1] - t[0]) / (e[1] - e[0]);
|
|
9136
9139
|
return t[0] + o * (n - e[0]);
|
|
9137
9140
|
};
|
|
9138
9141
|
}
|
|
9139
|
-
function
|
|
9142
|
+
function Di(e, t) {
|
|
9140
9143
|
return e > 0 && e < t;
|
|
9141
9144
|
}
|
|
9142
9145
|
var $h = (e, t = () => {
|
|
@@ -9167,10 +9170,10 @@ function _t(e, t) {
|
|
|
9167
9170
|
}
|
|
9168
9171
|
}, [e, n]);
|
|
9169
9172
|
}
|
|
9170
|
-
var Fh =
|
|
9173
|
+
var Fh = ki, Bh = Ri, Hh = Mi, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh = [" ", "Enter"], ft = "Select", [Vn, Wn, Uh] = Zs(ft), [Lt] = xe(ft, [
|
|
9171
9174
|
Uh,
|
|
9172
9175
|
zn
|
|
9173
|
-
]), Un = zn(), [jh, rt] = Lt(ft), [Gh, Yh] = Lt(ft),
|
|
9176
|
+
]), Un = zn(), [jh, rt] = Lt(ft), [Gh, Yh] = Lt(ft), zi = (e) => {
|
|
9174
9177
|
const {
|
|
9175
9178
|
__scopeSelect: t,
|
|
9176
9179
|
children: n,
|
|
@@ -9197,7 +9200,7 @@ var Fh = Ei, Bh = Ni, Hh = Ii, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh =
|
|
|
9197
9200
|
onChange: c,
|
|
9198
9201
|
caller: ft
|
|
9199
9202
|
}), 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(
|
|
9203
|
+
return /* @__PURE__ */ f(Xa, { ...g, children: /* @__PURE__ */ q(
|
|
9201
9204
|
jh,
|
|
9202
9205
|
{
|
|
9203
9206
|
required: h,
|
|
@@ -9234,7 +9237,7 @@ var Fh = Ei, Bh = Ni, Hh = Ii, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh =
|
|
|
9234
9237
|
}
|
|
9235
9238
|
) }),
|
|
9236
9239
|
F ? /* @__PURE__ */ q(
|
|
9237
|
-
|
|
9240
|
+
sc,
|
|
9238
9241
|
{
|
|
9239
9242
|
"aria-hidden": !0,
|
|
9240
9243
|
required: h,
|
|
@@ -9256,11 +9259,11 @@ var Fh = Ei, Bh = Ni, Hh = Ii, Vh = [" ", "Enter", "ArrowUp", "ArrowDown"], Wh =
|
|
|
9256
9259
|
}
|
|
9257
9260
|
) });
|
|
9258
9261
|
};
|
|
9259
|
-
|
|
9260
|
-
var
|
|
9262
|
+
zi.displayName = ft;
|
|
9263
|
+
var $i = "SelectTrigger", Fi = p.forwardRef(
|
|
9261
9264
|
(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 =
|
|
9265
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = Un(n), a = rt($i, n), i = a.disabled || o, c = ie(t, a.onTriggerChange), d = Wn(n), u = p.useRef("touch"), [l, m, h] = ic((g) => {
|
|
9266
|
+
const v = d().filter((x) => !x.disabled), y = v.find((x) => x.value === a.value), w = cc(v, g, y);
|
|
9264
9267
|
w !== void 0 && a.onValueChange(w.value);
|
|
9265
9268
|
}), b = (g) => {
|
|
9266
9269
|
i || (a.onOpenChange(!0), h()), g && (a.triggerPointerDownPosRef.current = {
|
|
@@ -9268,7 +9271,7 @@ var zi = "SelectTrigger", $i = p.forwardRef(
|
|
|
9268
9271
|
y: Math.round(g.pageY)
|
|
9269
9272
|
});
|
|
9270
9273
|
};
|
|
9271
|
-
return /* @__PURE__ */ f(
|
|
9274
|
+
return /* @__PURE__ */ f(Za, { asChild: !0, ...s, children: /* @__PURE__ */ f(
|
|
9272
9275
|
Z.button,
|
|
9273
9276
|
{
|
|
9274
9277
|
type: "button",
|
|
@@ -9281,7 +9284,7 @@ var zi = "SelectTrigger", $i = p.forwardRef(
|
|
|
9281
9284
|
"data-state": a.open ? "open" : "closed",
|
|
9282
9285
|
disabled: i,
|
|
9283
9286
|
"data-disabled": i ? "" : void 0,
|
|
9284
|
-
"data-placeholder":
|
|
9287
|
+
"data-placeholder": ac(a.value) ? "" : void 0,
|
|
9285
9288
|
...r,
|
|
9286
9289
|
ref: c,
|
|
9287
9290
|
onClick: Q(r.onClick, (g) => {
|
|
@@ -9300,10 +9303,10 @@ var zi = "SelectTrigger", $i = p.forwardRef(
|
|
|
9300
9303
|
) });
|
|
9301
9304
|
}
|
|
9302
9305
|
);
|
|
9303
|
-
|
|
9304
|
-
var
|
|
9306
|
+
Fi.displayName = $i;
|
|
9307
|
+
var Bi = "SelectValue", Hi = p.forwardRef(
|
|
9305
9308
|
(e, t) => {
|
|
9306
|
-
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: a = "", ...i } = e, c = rt(
|
|
9309
|
+
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: a = "", ...i } = e, c = rt(Bi, n), { onValueNodeHasChildrenChange: d } = c, u = s !== void 0, l = ie(t, c.onValueNodeChange);
|
|
9307
9310
|
return de(() => {
|
|
9308
9311
|
d(u);
|
|
9309
9312
|
}, [d, u]), /* @__PURE__ */ f(
|
|
@@ -9312,22 +9315,22 @@ var Fi = "SelectValue", Bi = p.forwardRef(
|
|
|
9312
9315
|
...i,
|
|
9313
9316
|
ref: l,
|
|
9314
9317
|
style: { pointerEvents: "none" },
|
|
9315
|
-
children:
|
|
9318
|
+
children: ac(c.value) ? /* @__PURE__ */ f(Ie, { children: a }) : s
|
|
9316
9319
|
}
|
|
9317
9320
|
);
|
|
9318
9321
|
}
|
|
9319
9322
|
);
|
|
9320
|
-
|
|
9321
|
-
var qh = "SelectIcon",
|
|
9323
|
+
Hi.displayName = Bi;
|
|
9324
|
+
var qh = "SelectIcon", Vi = p.forwardRef(
|
|
9322
9325
|
(e, t) => {
|
|
9323
9326
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
9324
9327
|
return /* @__PURE__ */ f(Z.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
|
|
9325
9328
|
}
|
|
9326
9329
|
);
|
|
9327
|
-
|
|
9328
|
-
var Kh = "SelectPortal",
|
|
9329
|
-
|
|
9330
|
-
var pt = "SelectContent",
|
|
9330
|
+
Vi.displayName = qh;
|
|
9331
|
+
var Kh = "SelectPortal", Wi = (e) => /* @__PURE__ */ f(jo, { asChild: !0, ...e });
|
|
9332
|
+
Wi.displayName = Kh;
|
|
9333
|
+
var pt = "SelectContent", Ui = p.forwardRef(
|
|
9331
9334
|
(e, t) => {
|
|
9332
9335
|
const n = rt(pt, e.__scopeSelect), [o, r] = p.useState();
|
|
9333
9336
|
if (de(() => {
|
|
@@ -9335,15 +9338,15 @@ var pt = "SelectContent", Wi = p.forwardRef(
|
|
|
9335
9338
|
}, []), !n.open) {
|
|
9336
9339
|
const s = o;
|
|
9337
9340
|
return s ? kn.createPortal(
|
|
9338
|
-
/* @__PURE__ */ f(
|
|
9341
|
+
/* @__PURE__ */ f(ji, { scope: e.__scopeSelect, children: /* @__PURE__ */ f(Vn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ f("div", { children: e.children }) }) }),
|
|
9339
9342
|
s
|
|
9340
9343
|
) : null;
|
|
9341
9344
|
}
|
|
9342
|
-
return /* @__PURE__ */ f(
|
|
9345
|
+
return /* @__PURE__ */ f(Gi, { ...e, ref: t });
|
|
9343
9346
|
}
|
|
9344
9347
|
);
|
|
9345
|
-
|
|
9346
|
-
var _e = 10, [
|
|
9348
|
+
Ui.displayName = pt;
|
|
9349
|
+
var _e = 10, [ji, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ Wt("SelectContent.RemoveScroll"), Gi = p.forwardRef(
|
|
9347
9350
|
(e, t) => {
|
|
9348
9351
|
const {
|
|
9349
9352
|
__scopeSelect: n,
|
|
@@ -9408,8 +9411,8 @@ var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9408
9411
|
window.removeEventListener("blur", j), window.removeEventListener("resize", j);
|
|
9409
9412
|
};
|
|
9410
9413
|
}, [U]);
|
|
9411
|
-
const [S, _] =
|
|
9412
|
-
const Y = F().filter((se) => !se.disabled), ee = Y.find((se) => se.ref.current === document.activeElement), te =
|
|
9414
|
+
const [S, _] = ic((j) => {
|
|
9415
|
+
const Y = F().filter((se) => !se.disabled), ee = Y.find((se) => se.ref.current === document.activeElement), te = cc(Y, j, ee);
|
|
9413
9416
|
te && setTimeout(() => te.ref.current.focus());
|
|
9414
9417
|
}), $ = p.useCallback(
|
|
9415
9418
|
(j, Y, ee) => {
|
|
@@ -9423,7 +9426,7 @@ var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9423
9426
|
(w.value !== void 0 && w.value === Y || te) && M(j);
|
|
9424
9427
|
},
|
|
9425
9428
|
[w.value]
|
|
9426
|
-
), B = o === "popper" ? No :
|
|
9429
|
+
), B = o === "popper" ? No : Yi, J = B === No ? {
|
|
9427
9430
|
side: i,
|
|
9428
9431
|
sideOffset: c,
|
|
9429
9432
|
align: d,
|
|
@@ -9436,7 +9439,7 @@ var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9436
9439
|
avoidCollisions: v
|
|
9437
9440
|
} : {};
|
|
9438
9441
|
return /* @__PURE__ */ f(
|
|
9439
|
-
|
|
9442
|
+
ji,
|
|
9440
9443
|
{
|
|
9441
9444
|
scope: n,
|
|
9442
9445
|
content: x,
|
|
@@ -9451,8 +9454,8 @@ var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9451
9454
|
position: o,
|
|
9452
9455
|
isPositioned: H,
|
|
9453
9456
|
searchRef: S,
|
|
9454
|
-
children: /* @__PURE__ */ f(
|
|
9455
|
-
|
|
9457
|
+
children: /* @__PURE__ */ f(pa, { as: Zh, allowPinchZoom: !0, children: /* @__PURE__ */ f(
|
|
9458
|
+
ra,
|
|
9456
9459
|
{
|
|
9457
9460
|
asChild: !0,
|
|
9458
9461
|
trapped: w.open,
|
|
@@ -9513,8 +9516,8 @@ var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9513
9516
|
);
|
|
9514
9517
|
}
|
|
9515
9518
|
);
|
|
9516
|
-
|
|
9517
|
-
var Jh = "SelectItemAlignedPosition",
|
|
9519
|
+
Gi.displayName = Xh;
|
|
9520
|
+
var Jh = "SelectItemAlignedPosition", Yi = p.forwardRef((e, t) => {
|
|
9518
9521
|
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
9522
|
if (s.trigger && s.valueNode && i && d && g && v && y) {
|
|
9520
9523
|
const N = s.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(), L = s.valueNode.getBoundingClientRect(), W = y.getBoundingClientRect();
|
|
@@ -9618,7 +9621,7 @@ var Jh = "SelectItemAlignedPosition", Gi = p.forwardRef((e, t) => {
|
|
|
9618
9621
|
}
|
|
9619
9622
|
);
|
|
9620
9623
|
});
|
|
9621
|
-
|
|
9624
|
+
Yi.displayName = Jh;
|
|
9622
9625
|
var Qh = "SelectPopperPosition", No = p.forwardRef((e, t) => {
|
|
9623
9626
|
const {
|
|
9624
9627
|
__scopeSelect: n,
|
|
@@ -9627,7 +9630,7 @@ var Qh = "SelectPopperPosition", No = p.forwardRef((e, t) => {
|
|
|
9627
9630
|
...s
|
|
9628
9631
|
} = e, a = Un(n);
|
|
9629
9632
|
return /* @__PURE__ */ f(
|
|
9630
|
-
|
|
9633
|
+
Ja,
|
|
9631
9634
|
{
|
|
9632
9635
|
...a,
|
|
9633
9636
|
...s,
|
|
@@ -9648,7 +9651,7 @@ var Qh = "SelectPopperPosition", No = p.forwardRef((e, t) => {
|
|
|
9648
9651
|
);
|
|
9649
9652
|
});
|
|
9650
9653
|
No.displayName = Qh;
|
|
9651
|
-
var [eg, cr] = Lt(pt, {}), Ro = "SelectViewport",
|
|
9654
|
+
var [eg, cr] = Lt(pt, {}), Ro = "SelectViewport", qi = p.forwardRef(
|
|
9652
9655
|
(e, t) => {
|
|
9653
9656
|
const { __scopeSelect: n, nonce: o, ...r } = e, s = st(Ro, n), a = cr(Ro, n), i = ie(t, s.onViewportChange), c = p.useRef(0);
|
|
9654
9657
|
return /* @__PURE__ */ q(Ie, { children: [
|
|
@@ -9700,22 +9703,22 @@ var [eg, cr] = Lt(pt, {}), Ro = "SelectViewport", Yi = p.forwardRef(
|
|
|
9700
9703
|
] });
|
|
9701
9704
|
}
|
|
9702
9705
|
);
|
|
9703
|
-
|
|
9704
|
-
var
|
|
9706
|
+
qi.displayName = Ro;
|
|
9707
|
+
var Ki = "SelectGroup", [tg, ng] = Lt(Ki), og = p.forwardRef(
|
|
9705
9708
|
(e, t) => {
|
|
9706
9709
|
const { __scopeSelect: n, ...o } = e, r = ht();
|
|
9707
9710
|
return /* @__PURE__ */ f(tg, { scope: n, id: r, children: /* @__PURE__ */ f(Z.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
9708
9711
|
}
|
|
9709
9712
|
);
|
|
9710
|
-
og.displayName =
|
|
9711
|
-
var
|
|
9713
|
+
og.displayName = Ki;
|
|
9714
|
+
var Xi = "SelectLabel", rg = p.forwardRef(
|
|
9712
9715
|
(e, t) => {
|
|
9713
|
-
const { __scopeSelect: n, ...o } = e, r = ng(
|
|
9716
|
+
const { __scopeSelect: n, ...o } = e, r = ng(Xi, n);
|
|
9714
9717
|
return /* @__PURE__ */ f(Z.div, { id: r.id, ...o, ref: t });
|
|
9715
9718
|
}
|
|
9716
9719
|
);
|
|
9717
|
-
rg.displayName =
|
|
9718
|
-
var En = "SelectItem", [sg,
|
|
9720
|
+
rg.displayName = Xi;
|
|
9721
|
+
var En = "SelectItem", [sg, Zi] = Lt(En), Ji = p.forwardRef(
|
|
9719
9722
|
(e, t) => {
|
|
9720
9723
|
const {
|
|
9721
9724
|
__scopeSelect: n,
|
|
@@ -9798,10 +9801,10 @@ var En = "SelectItem", [sg, Xi] = Lt(En), Zi = p.forwardRef(
|
|
|
9798
9801
|
);
|
|
9799
9802
|
}
|
|
9800
9803
|
);
|
|
9801
|
-
|
|
9802
|
-
var $t = "SelectItemText",
|
|
9804
|
+
Ji.displayName = En;
|
|
9805
|
+
var $t = "SelectItemText", Qi = p.forwardRef(
|
|
9803
9806
|
(e, t) => {
|
|
9804
|
-
const { __scopeSelect: n, className: o, style: r, ...s } = e, a = rt($t, n), i = st($t, n), c =
|
|
9807
|
+
const { __scopeSelect: n, className: o, style: r, ...s } = e, a = rt($t, n), i = st($t, n), c = Zi($t, n), d = Yh($t, n), [u, l] = p.useState(null), m = ie(
|
|
9805
9808
|
t,
|
|
9806
9809
|
(y) => l(y),
|
|
9807
9810
|
c.onItemTextChange,
|
|
@@ -9819,15 +9822,15 @@ var $t = "SelectItemText", Ji = p.forwardRef(
|
|
|
9819
9822
|
] });
|
|
9820
9823
|
}
|
|
9821
9824
|
);
|
|
9822
|
-
|
|
9823
|
-
var
|
|
9825
|
+
Qi.displayName = $t;
|
|
9826
|
+
var ec = "SelectItemIndicator", tc = p.forwardRef(
|
|
9824
9827
|
(e, t) => {
|
|
9825
9828
|
const { __scopeSelect: n, ...o } = e;
|
|
9826
|
-
return
|
|
9829
|
+
return Zi(ec, n).isSelected ? /* @__PURE__ */ f(Z.span, { "aria-hidden": !0, ...o, ref: t }) : null;
|
|
9827
9830
|
}
|
|
9828
9831
|
);
|
|
9829
|
-
|
|
9830
|
-
var To = "SelectScrollUpButton",
|
|
9832
|
+
tc.displayName = ec;
|
|
9833
|
+
var To = "SelectScrollUpButton", nc = p.forwardRef((e, t) => {
|
|
9831
9834
|
const n = st(To, e.__scopeSelect), o = cr(To, e.__scopeSelect), [r, s] = p.useState(!1), a = ie(t, o.onScrollButtonChange);
|
|
9832
9835
|
return de(() => {
|
|
9833
9836
|
if (n.viewport && n.isPositioned) {
|
|
@@ -9839,7 +9842,7 @@ var To = "SelectScrollUpButton", tc = p.forwardRef((e, t) => {
|
|
|
9839
9842
|
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
9840
9843
|
}
|
|
9841
9844
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
9842
|
-
|
|
9845
|
+
rc,
|
|
9843
9846
|
{
|
|
9844
9847
|
...e,
|
|
9845
9848
|
ref: a,
|
|
@@ -9850,8 +9853,8 @@ var To = "SelectScrollUpButton", tc = p.forwardRef((e, t) => {
|
|
|
9850
9853
|
}
|
|
9851
9854
|
) : null;
|
|
9852
9855
|
});
|
|
9853
|
-
|
|
9854
|
-
var Po = "SelectScrollDownButton",
|
|
9856
|
+
nc.displayName = To;
|
|
9857
|
+
var Po = "SelectScrollDownButton", oc = p.forwardRef((e, t) => {
|
|
9855
9858
|
const n = st(Po, e.__scopeSelect), o = cr(Po, e.__scopeSelect), [r, s] = p.useState(!1), a = ie(t, o.onScrollButtonChange);
|
|
9856
9859
|
return de(() => {
|
|
9857
9860
|
if (n.viewport && n.isPositioned) {
|
|
@@ -9863,7 +9866,7 @@ var Po = "SelectScrollDownButton", nc = p.forwardRef((e, t) => {
|
|
|
9863
9866
|
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
9864
9867
|
}
|
|
9865
9868
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
9866
|
-
|
|
9869
|
+
rc,
|
|
9867
9870
|
{
|
|
9868
9871
|
...e,
|
|
9869
9872
|
ref: a,
|
|
@@ -9874,8 +9877,8 @@ var Po = "SelectScrollDownButton", nc = p.forwardRef((e, t) => {
|
|
|
9874
9877
|
}
|
|
9875
9878
|
) : null;
|
|
9876
9879
|
});
|
|
9877
|
-
|
|
9878
|
-
var
|
|
9880
|
+
oc.displayName = Po;
|
|
9881
|
+
var rc = p.forwardRef((e, t) => {
|
|
9879
9882
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = st("SelectScrollButton", n), a = p.useRef(null), i = Wn(n), c = p.useCallback(() => {
|
|
9880
9883
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
9881
9884
|
}, []);
|
|
@@ -9912,11 +9915,11 @@ ig.displayName = ag;
|
|
|
9912
9915
|
var Ao = "SelectArrow", cg = p.forwardRef(
|
|
9913
9916
|
(e, t) => {
|
|
9914
9917
|
const { __scopeSelect: n, ...o } = e, r = Un(n), s = rt(Ao, n), a = st(Ao, n);
|
|
9915
|
-
return s.open && a.position === "popper" ? /* @__PURE__ */ f(
|
|
9918
|
+
return s.open && a.position === "popper" ? /* @__PURE__ */ f(Qa, { ...r, ...o, ref: t }) : null;
|
|
9916
9919
|
}
|
|
9917
9920
|
);
|
|
9918
9921
|
cg.displayName = Ao;
|
|
9919
|
-
var lg = "SelectBubbleInput",
|
|
9922
|
+
var lg = "SelectBubbleInput", sc = p.forwardRef(
|
|
9920
9923
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
9921
9924
|
const r = p.useRef(null), s = ie(o, r), a = An(t);
|
|
9922
9925
|
return p.useEffect(() => {
|
|
@@ -9934,18 +9937,18 @@ var lg = "SelectBubbleInput", rc = p.forwardRef(
|
|
|
9934
9937
|
Z.select,
|
|
9935
9938
|
{
|
|
9936
9939
|
...n,
|
|
9937
|
-
style: { ...
|
|
9940
|
+
style: { ...Ks, ...n.style },
|
|
9938
9941
|
ref: s,
|
|
9939
9942
|
defaultValue: t
|
|
9940
9943
|
}
|
|
9941
9944
|
);
|
|
9942
9945
|
}
|
|
9943
9946
|
);
|
|
9944
|
-
|
|
9945
|
-
function
|
|
9947
|
+
sc.displayName = lg;
|
|
9948
|
+
function ac(e) {
|
|
9946
9949
|
return e === "" || e === void 0;
|
|
9947
9950
|
}
|
|
9948
|
-
function
|
|
9951
|
+
function ic(e) {
|
|
9949
9952
|
const t = be(e), n = p.useRef(""), o = p.useRef(0), r = p.useCallback(
|
|
9950
9953
|
(a) => {
|
|
9951
9954
|
const i = n.current + a;
|
|
@@ -9959,7 +9962,7 @@ function ac(e) {
|
|
|
9959
9962
|
}, []);
|
|
9960
9963
|
return p.useEffect(() => () => window.clearTimeout(o.current), []), [n, r, s];
|
|
9961
9964
|
}
|
|
9962
|
-
function
|
|
9965
|
+
function cc(e, t, n) {
|
|
9963
9966
|
const r = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
9964
9967
|
let a = dg(e, Math.max(s, 0));
|
|
9965
9968
|
r.length === 1 && (a = a.filter((d) => d !== n));
|
|
@@ -9971,7 +9974,7 @@ function ic(e, t, n) {
|
|
|
9971
9974
|
function dg(e, t) {
|
|
9972
9975
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
9973
9976
|
}
|
|
9974
|
-
var ug =
|
|
9977
|
+
var ug = zi, fg = Fi, pg = Hi, mg = Vi, hg = Wi, gg = Ui, vg = qi, bg = Ji, yg = Qi, wg = tc, xg = nc, Sg = oc, Cg = "Separator", cs = "horizontal", Eg = ["horizontal", "vertical"], lc = p.forwardRef((e, t) => {
|
|
9975
9978
|
const { decorative: n, orientation: o = cs, ...r } = e, s = kg(o) ? o : cs, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
9976
9979
|
return /* @__PURE__ */ f(
|
|
9977
9980
|
Z.div,
|
|
@@ -9983,11 +9986,11 @@ var ug = Di, fg = $i, pg = Bi, mg = Hi, hg = Vi, gg = Wi, vg = Yi, bg = Zi, yg =
|
|
|
9983
9986
|
}
|
|
9984
9987
|
);
|
|
9985
9988
|
});
|
|
9986
|
-
|
|
9989
|
+
lc.displayName = Cg;
|
|
9987
9990
|
function kg(e) {
|
|
9988
9991
|
return Eg.includes(e);
|
|
9989
9992
|
}
|
|
9990
|
-
var Ng =
|
|
9993
|
+
var Ng = lc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), dc = p.forwardRef(
|
|
9991
9994
|
(e, t) => {
|
|
9992
9995
|
const {
|
|
9993
9996
|
__scopeSwitch: n,
|
|
@@ -10014,7 +10017,7 @@ var Ng = cc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), lc = p.forwardRef(
|
|
|
10014
10017
|
role: "switch",
|
|
10015
10018
|
"aria-checked": y,
|
|
10016
10019
|
"aria-required": a,
|
|
10017
|
-
"data-state":
|
|
10020
|
+
"data-state": mc(y),
|
|
10018
10021
|
"data-disabled": i ? "" : void 0,
|
|
10019
10022
|
disabled: i,
|
|
10020
10023
|
value: c,
|
|
@@ -10026,7 +10029,7 @@ var Ng = cc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), lc = p.forwardRef(
|
|
|
10026
10029
|
}
|
|
10027
10030
|
),
|
|
10028
10031
|
v && /* @__PURE__ */ f(
|
|
10029
|
-
|
|
10032
|
+
pc,
|
|
10030
10033
|
{
|
|
10031
10034
|
control: m,
|
|
10032
10035
|
bubbles: !g.current,
|
|
@@ -10042,14 +10045,14 @@ var Ng = cc, jn = "Switch", [Rg] = xe(jn), [Tg, Pg] = Rg(jn), lc = p.forwardRef(
|
|
|
10042
10045
|
] });
|
|
10043
10046
|
}
|
|
10044
10047
|
);
|
|
10045
|
-
|
|
10046
|
-
var
|
|
10048
|
+
dc.displayName = jn;
|
|
10049
|
+
var uc = "SwitchThumb", fc = p.forwardRef(
|
|
10047
10050
|
(e, t) => {
|
|
10048
|
-
const { __scopeSwitch: n, ...o } = e, r = Pg(
|
|
10051
|
+
const { __scopeSwitch: n, ...o } = e, r = Pg(uc, n);
|
|
10049
10052
|
return /* @__PURE__ */ f(
|
|
10050
10053
|
Z.span,
|
|
10051
10054
|
{
|
|
10052
|
-
"data-state":
|
|
10055
|
+
"data-state": mc(r.checked),
|
|
10053
10056
|
"data-disabled": r.disabled ? "" : void 0,
|
|
10054
10057
|
...o,
|
|
10055
10058
|
ref: t
|
|
@@ -10057,8 +10060,8 @@ var dc = "SwitchThumb", uc = p.forwardRef(
|
|
|
10057
10060
|
);
|
|
10058
10061
|
}
|
|
10059
10062
|
);
|
|
10060
|
-
|
|
10061
|
-
var Ag = "SwitchBubbleInput",
|
|
10063
|
+
fc.displayName = uc;
|
|
10064
|
+
var Ag = "SwitchBubbleInput", pc = p.forwardRef(
|
|
10062
10065
|
({
|
|
10063
10066
|
__scopeSwitch: e,
|
|
10064
10067
|
control: t,
|
|
@@ -10099,13 +10102,13 @@ var Ag = "SwitchBubbleInput", fc = p.forwardRef(
|
|
|
10099
10102
|
);
|
|
10100
10103
|
}
|
|
10101
10104
|
);
|
|
10102
|
-
|
|
10103
|
-
function
|
|
10105
|
+
pc.displayName = Ag;
|
|
10106
|
+
function mc(e) {
|
|
10104
10107
|
return e ? "checked" : "unchecked";
|
|
10105
10108
|
}
|
|
10106
|
-
var _g =
|
|
10109
|
+
var _g = dc, Ig = fc, Gn = "Tabs", [Mg] = xe(Gn, [
|
|
10107
10110
|
$n
|
|
10108
|
-
]),
|
|
10111
|
+
]), hc = $n(), [Og, lr] = Mg(Gn), gc = p.forwardRef(
|
|
10109
10112
|
(e, t) => {
|
|
10110
10113
|
const {
|
|
10111
10114
|
__scopeTabs: n,
|
|
@@ -10145,12 +10148,12 @@ var _g = lc, Ig = uc, Gn = "Tabs", [Mg] = xe(Gn, [
|
|
|
10145
10148
|
);
|
|
10146
10149
|
}
|
|
10147
10150
|
);
|
|
10148
|
-
|
|
10149
|
-
var
|
|
10151
|
+
gc.displayName = Gn;
|
|
10152
|
+
var vc = "TabsList", bc = p.forwardRef(
|
|
10150
10153
|
(e, t) => {
|
|
10151
|
-
const { __scopeTabs: n, loop: o = !0, ...r } = e, s = lr(
|
|
10154
|
+
const { __scopeTabs: n, loop: o = !0, ...r } = e, s = lr(vc, n), a = hc(n);
|
|
10152
10155
|
return /* @__PURE__ */ f(
|
|
10153
|
-
|
|
10156
|
+
si,
|
|
10154
10157
|
{
|
|
10155
10158
|
asChild: !0,
|
|
10156
10159
|
...a,
|
|
@@ -10170,12 +10173,12 @@ var gc = "TabsList", vc = p.forwardRef(
|
|
|
10170
10173
|
);
|
|
10171
10174
|
}
|
|
10172
10175
|
);
|
|
10173
|
-
|
|
10174
|
-
var
|
|
10176
|
+
bc.displayName = vc;
|
|
10177
|
+
var yc = "TabsTrigger", wc = p.forwardRef(
|
|
10175
10178
|
(e, t) => {
|
|
10176
|
-
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a = lr(
|
|
10179
|
+
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a = lr(yc, n), i = hc(n), c = Cc(a.baseId, o), d = Ec(a.baseId, o), u = o === a.value;
|
|
10177
10180
|
return /* @__PURE__ */ f(
|
|
10178
|
-
|
|
10181
|
+
ai,
|
|
10179
10182
|
{
|
|
10180
10183
|
asChild: !0,
|
|
10181
10184
|
...i,
|
|
@@ -10210,10 +10213,10 @@ var bc = "TabsTrigger", yc = p.forwardRef(
|
|
|
10210
10213
|
);
|
|
10211
10214
|
}
|
|
10212
10215
|
);
|
|
10213
|
-
|
|
10214
|
-
var
|
|
10216
|
+
wc.displayName = yc;
|
|
10217
|
+
var xc = "TabsContent", Sc = p.forwardRef(
|
|
10215
10218
|
(e, t) => {
|
|
10216
|
-
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i = lr(
|
|
10219
|
+
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i = lr(xc, n), c = Cc(i.baseId, o), d = Ec(i.baseId, o), u = o === i.value, l = p.useRef(u);
|
|
10217
10220
|
return p.useEffect(() => {
|
|
10218
10221
|
const m = requestAnimationFrame(() => l.current = !1);
|
|
10219
10222
|
return () => cancelAnimationFrame(m);
|
|
@@ -10238,16 +10241,16 @@ var wc = "TabsContent", xc = p.forwardRef(
|
|
|
10238
10241
|
) });
|
|
10239
10242
|
}
|
|
10240
10243
|
);
|
|
10241
|
-
|
|
10242
|
-
function
|
|
10244
|
+
Sc.displayName = xc;
|
|
10245
|
+
function Cc(e, t) {
|
|
10243
10246
|
return `${e}-trigger-${t}`;
|
|
10244
10247
|
}
|
|
10245
|
-
function
|
|
10248
|
+
function Ec(e, t) {
|
|
10246
10249
|
return `${e}-content-${t}`;
|
|
10247
10250
|
}
|
|
10248
|
-
var Lg =
|
|
10251
|
+
var Lg = gc, Dg = bc, zg = wc, $g = Sc, [Yn] = xe("Tooltip", [
|
|
10249
10252
|
zn
|
|
10250
|
-
]), qn = zn(),
|
|
10253
|
+
]), qn = zn(), kc = "TooltipProvider", Fg = 700, _o = "tooltip.open", [Bg, dr] = Yn(kc), Nc = (e) => {
|
|
10251
10254
|
const {
|
|
10252
10255
|
__scopeTooltip: t,
|
|
10253
10256
|
delayDuration: n = Fg,
|
|
@@ -10282,8 +10285,8 @@ var Lg = hc, Dg = vc, zg = yc, $g = xc, [Yn] = xe("Tooltip", [
|
|
|
10282
10285
|
}
|
|
10283
10286
|
);
|
|
10284
10287
|
};
|
|
10285
|
-
|
|
10286
|
-
var jt = "Tooltip", [Hg, Xt] = Yn(jt),
|
|
10288
|
+
Nc.displayName = kc;
|
|
10289
|
+
var jt = "Tooltip", [Hg, Xt] = Yn(jt), Rc = (e) => {
|
|
10287
10290
|
const {
|
|
10288
10291
|
__scopeTooltip: t,
|
|
10289
10292
|
children: n,
|
|
@@ -10310,7 +10313,7 @@ var jt = "Tooltip", [Hg, Xt] = Yn(jt), Nc = (e) => {
|
|
|
10310
10313
|
}, [g, w]);
|
|
10311
10314
|
return p.useEffect(() => () => {
|
|
10312
10315
|
h.current && (window.clearTimeout(h.current), h.current = 0);
|
|
10313
|
-
}, []), /* @__PURE__ */ f(
|
|
10316
|
+
}, []), /* @__PURE__ */ f(Xa, { ...d, children: /* @__PURE__ */ f(
|
|
10314
10317
|
Hg,
|
|
10315
10318
|
{
|
|
10316
10319
|
scope: t,
|
|
@@ -10332,11 +10335,11 @@ var jt = "Tooltip", [Hg, Xt] = Yn(jt), Nc = (e) => {
|
|
|
10332
10335
|
}
|
|
10333
10336
|
) });
|
|
10334
10337
|
};
|
|
10335
|
-
|
|
10336
|
-
var Io = "TooltipTrigger",
|
|
10338
|
+
Rc.displayName = jt;
|
|
10339
|
+
var Io = "TooltipTrigger", Tc = p.forwardRef(
|
|
10337
10340
|
(e, t) => {
|
|
10338
10341
|
const { __scopeTooltip: n, ...o } = e, r = Xt(Io, n), s = dr(Io, 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, []);
|
|
10339
|
-
return p.useEffect(() => () => document.removeEventListener("pointerup", l), [l]), /* @__PURE__ */ f(
|
|
10342
|
+
return p.useEffect(() => () => document.removeEventListener("pointerup", l), [l]), /* @__PURE__ */ f(Za, { asChild: !0, ...a, children: /* @__PURE__ */ f(
|
|
10340
10343
|
Z.button,
|
|
10341
10344
|
{
|
|
10342
10345
|
"aria-describedby": r.open ? r.contentId : void 0,
|
|
@@ -10361,18 +10364,18 @@ var Io = "TooltipTrigger", Rc = p.forwardRef(
|
|
|
10361
10364
|
) });
|
|
10362
10365
|
}
|
|
10363
10366
|
);
|
|
10364
|
-
|
|
10367
|
+
Tc.displayName = Io;
|
|
10365
10368
|
var ur = "TooltipPortal", [Vg, Wg] = Yn(ur, {
|
|
10366
10369
|
forceMount: void 0
|
|
10367
|
-
}),
|
|
10370
|
+
}), Pc = (e) => {
|
|
10368
10371
|
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Xt(ur, t);
|
|
10369
10372
|
return /* @__PURE__ */ f(Vg, { scope: t, forceMount: n, children: /* @__PURE__ */ f(De, { present: n || s.open, children: /* @__PURE__ */ f(jo, { asChild: !0, container: r, children: o }) }) });
|
|
10370
10373
|
};
|
|
10371
|
-
|
|
10372
|
-
var It = "TooltipContent",
|
|
10374
|
+
Pc.displayName = ur;
|
|
10375
|
+
var It = "TooltipContent", Ac = p.forwardRef(
|
|
10373
10376
|
(e, t) => {
|
|
10374
10377
|
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(
|
|
10378
|
+
return /* @__PURE__ */ f(De, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ f(_c, { side: r, ...s, ref: t }) : /* @__PURE__ */ f(Ug, { side: r, ...s, ref: t }) });
|
|
10376
10379
|
}
|
|
10377
10380
|
), Ug = p.forwardRef((e, t) => {
|
|
10378
10381
|
const n = Xt(It, e.__scopeTooltip), o = dr(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(() => {
|
|
@@ -10399,8 +10402,8 @@ var It = "TooltipContent", Pc = p.forwardRef(
|
|
|
10399
10402
|
};
|
|
10400
10403
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
10401
10404
|
}
|
|
10402
|
-
}, [c, u, a, d, m]), /* @__PURE__ */ f(
|
|
10403
|
-
}), [jg, Gg] = Yn(jt, { isInside: !1 }), Yg = /* @__PURE__ */ Zu("TooltipContent"),
|
|
10405
|
+
}, [c, u, a, d, m]), /* @__PURE__ */ f(_c, { ...e, ref: s });
|
|
10406
|
+
}), [jg, Gg] = Yn(jt, { isInside: !1 }), Yg = /* @__PURE__ */ Zu("TooltipContent"), _c = p.forwardRef(
|
|
10404
10407
|
(e, t) => {
|
|
10405
10408
|
const {
|
|
10406
10409
|
__scopeTooltip: n,
|
|
@@ -10428,7 +10431,7 @@ var It = "TooltipContent", Pc = p.forwardRef(
|
|
|
10428
10431
|
onFocusOutside: (l) => l.preventDefault(),
|
|
10429
10432
|
onDismiss: u,
|
|
10430
10433
|
children: /* @__PURE__ */ q(
|
|
10431
|
-
|
|
10434
|
+
Ja,
|
|
10432
10435
|
{
|
|
10433
10436
|
"data-state": c.stateAttribute,
|
|
10434
10437
|
...d,
|
|
@@ -10452,17 +10455,17 @@ var It = "TooltipContent", Pc = p.forwardRef(
|
|
|
10452
10455
|
);
|
|
10453
10456
|
}
|
|
10454
10457
|
);
|
|
10455
|
-
|
|
10456
|
-
var
|
|
10458
|
+
Ac.displayName = It;
|
|
10459
|
+
var Ic = "TooltipArrow", Mc = p.forwardRef(
|
|
10457
10460
|
(e, t) => {
|
|
10458
10461
|
const { __scopeTooltip: n, ...o } = e, r = qn(n);
|
|
10459
10462
|
return Gg(
|
|
10460
|
-
|
|
10463
|
+
Ic,
|
|
10461
10464
|
n
|
|
10462
|
-
).isInside ? null : /* @__PURE__ */ f(
|
|
10465
|
+
).isInside ? null : /* @__PURE__ */ f(Qa, { ...r, ...o, ref: t });
|
|
10463
10466
|
}
|
|
10464
10467
|
);
|
|
10465
|
-
|
|
10468
|
+
Mc.displayName = Ic;
|
|
10466
10469
|
function qg(e, t) {
|
|
10467
10470
|
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
10471
|
switch (Math.min(n, o, r, s)) {
|
|
@@ -10555,7 +10558,7 @@ function Qg(e) {
|
|
|
10555
10558
|
}
|
|
10556
10559
|
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
10560
|
}
|
|
10558
|
-
var ev =
|
|
10561
|
+
var ev = Nc, tv = Rc, nv = Tc, ov = Pc, rv = Ac, sv = Mc;
|
|
10559
10562
|
const av = Rn(
|
|
10560
10563
|
"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
10564
|
{
|
|
@@ -10585,7 +10588,7 @@ const av = Rn(
|
|
|
10585
10588
|
}
|
|
10586
10589
|
}
|
|
10587
10590
|
);
|
|
10588
|
-
function
|
|
10591
|
+
function Oc({
|
|
10589
10592
|
className: e,
|
|
10590
10593
|
variant: t = "default",
|
|
10591
10594
|
size: n = "default",
|
|
@@ -10593,7 +10596,7 @@ function Mc({
|
|
|
10593
10596
|
...r
|
|
10594
10597
|
}) {
|
|
10595
10598
|
return /* @__PURE__ */ f(
|
|
10596
|
-
o ?
|
|
10599
|
+
o ? Ys : "button",
|
|
10597
10600
|
{
|
|
10598
10601
|
"data-slot": "button",
|
|
10599
10602
|
"data-variant": t,
|
|
@@ -10636,7 +10639,7 @@ function lv({
|
|
|
10636
10639
|
asChild: o = !1,
|
|
10637
10640
|
...r
|
|
10638
10641
|
}) {
|
|
10639
|
-
const s = o ?
|
|
10642
|
+
const s = o ? Ys : "span", a = n ? iv[n] : void 0;
|
|
10640
10643
|
return /* @__PURE__ */ f(
|
|
10641
10644
|
s,
|
|
10642
10645
|
{
|
|
@@ -10704,7 +10707,7 @@ function mv({
|
|
|
10704
10707
|
...o,
|
|
10705
10708
|
children: [
|
|
10706
10709
|
n,
|
|
10707
|
-
/* @__PURE__ */ f(mg, { asChild: !0, children: /* @__PURE__ */ f(
|
|
10710
|
+
/* @__PURE__ */ f(mg, { asChild: !0, children: /* @__PURE__ */ f(Cs, { className: "size-4 opacity-50" }) })
|
|
10708
10711
|
]
|
|
10709
10712
|
}
|
|
10710
10713
|
);
|
|
@@ -10765,7 +10768,7 @@ function gv({
|
|
|
10765
10768
|
{
|
|
10766
10769
|
"data-slot": "select-item-indicator",
|
|
10767
10770
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
10768
|
-
children: /* @__PURE__ */ f(wg, { children: /* @__PURE__ */ f(
|
|
10771
|
+
children: /* @__PURE__ */ f(wg, { children: /* @__PURE__ */ f(Ss, { className: "size-4" }) })
|
|
10769
10772
|
}
|
|
10770
10773
|
),
|
|
10771
10774
|
/* @__PURE__ */ f(yg, { children: t })
|
|
@@ -10803,7 +10806,7 @@ function bv({
|
|
|
10803
10806
|
e
|
|
10804
10807
|
),
|
|
10805
10808
|
...t,
|
|
10806
|
-
children: /* @__PURE__ */ f(
|
|
10809
|
+
children: /* @__PURE__ */ f(Cs, { className: "size-4" })
|
|
10807
10810
|
}
|
|
10808
10811
|
);
|
|
10809
10812
|
}
|
|
@@ -10812,7 +10815,7 @@ function yv({
|
|
|
10812
10815
|
...t
|
|
10813
10816
|
}) {
|
|
10814
10817
|
return /* @__PURE__ */ f(
|
|
10815
|
-
|
|
10818
|
+
Ca,
|
|
10816
10819
|
{
|
|
10817
10820
|
"data-slot": "checkbox",
|
|
10818
10821
|
className: X(
|
|
@@ -10821,11 +10824,11 @@ function yv({
|
|
|
10821
10824
|
),
|
|
10822
10825
|
...t,
|
|
10823
10826
|
children: /* @__PURE__ */ f(
|
|
10824
|
-
|
|
10827
|
+
ka,
|
|
10825
10828
|
{
|
|
10826
10829
|
"data-slot": "checkbox-indicator",
|
|
10827
10830
|
className: "grid place-content-center text-current transition-none",
|
|
10828
|
-
children: /* @__PURE__ */ f(
|
|
10831
|
+
children: /* @__PURE__ */ f(Ss, { className: "size-3.5" })
|
|
10829
10832
|
}
|
|
10830
10833
|
)
|
|
10831
10834
|
}
|
|
@@ -11043,7 +11046,7 @@ function _v({
|
|
|
11043
11046
|
...n
|
|
11044
11047
|
}) {
|
|
11045
11048
|
return /* @__PURE__ */ f(
|
|
11046
|
-
|
|
11049
|
+
Ti,
|
|
11047
11050
|
{
|
|
11048
11051
|
"data-slot": "scroll-area-scrollbar",
|
|
11049
11052
|
orientation: t,
|
|
@@ -11055,7 +11058,7 @@ function _v({
|
|
|
11055
11058
|
),
|
|
11056
11059
|
...n,
|
|
11057
11060
|
children: /* @__PURE__ */ f(
|
|
11058
|
-
|
|
11061
|
+
Ii,
|
|
11059
11062
|
{
|
|
11060
11063
|
"data-slot": "scroll-area-thumb",
|
|
11061
11064
|
className: "relative flex-1 rounded-full bg-border"
|
|
@@ -11259,7 +11262,7 @@ function Wv({
|
|
|
11259
11262
|
...e
|
|
11260
11263
|
}) {
|
|
11261
11264
|
return /* @__PURE__ */ f(
|
|
11262
|
-
|
|
11265
|
+
ea,
|
|
11263
11266
|
{
|
|
11264
11267
|
"data-slot": "collapsible-trigger",
|
|
11265
11268
|
...e
|
|
@@ -11270,38 +11273,38 @@ function Uv({
|
|
|
11270
11273
|
...e
|
|
11271
11274
|
}) {
|
|
11272
11275
|
return /* @__PURE__ */ f(
|
|
11273
|
-
|
|
11276
|
+
ta,
|
|
11274
11277
|
{
|
|
11275
11278
|
"data-slot": "collapsible-content",
|
|
11276
11279
|
...e
|
|
11277
11280
|
}
|
|
11278
11281
|
);
|
|
11279
11282
|
}
|
|
11280
|
-
const Dt = (e) => e == null ? void 0 : e === !0 || e === "true",
|
|
11283
|
+
const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Lc = {
|
|
11281
11284
|
"arrow-left": nd,
|
|
11282
11285
|
calendar: cd,
|
|
11283
|
-
"check-circle-2":
|
|
11286
|
+
"check-circle-2": ks,
|
|
11284
11287
|
"chevron-left": fd,
|
|
11285
11288
|
"chevron-right": Do,
|
|
11286
11289
|
clock: Ed,
|
|
11287
11290
|
"credit-card": Td,
|
|
11288
11291
|
"external-link": Ad,
|
|
11289
|
-
"help-circle":
|
|
11292
|
+
"help-circle": Ns,
|
|
11290
11293
|
info: Nn,
|
|
11291
11294
|
"loader-2": zo,
|
|
11292
11295
|
mail: vo,
|
|
11293
11296
|
"map-pin": zd,
|
|
11294
|
-
"message-circle":
|
|
11297
|
+
"message-circle": Rs,
|
|
11295
11298
|
"message-square": $o,
|
|
11296
11299
|
package: Wd,
|
|
11297
11300
|
phone: jd,
|
|
11298
11301
|
search: Kd,
|
|
11299
11302
|
"shopping-bag": Zd,
|
|
11300
|
-
sparkles:
|
|
11303
|
+
sparkles: Ts,
|
|
11301
11304
|
truck: nu,
|
|
11302
|
-
user:
|
|
11305
|
+
user: Ps,
|
|
11303
11306
|
"x-circle": wd,
|
|
11304
|
-
"alert-circle":
|
|
11307
|
+
"alert-circle": Es,
|
|
11305
11308
|
"book-open": rd
|
|
11306
11309
|
}, ls = {
|
|
11307
11310
|
0: "gap-0",
|
|
@@ -11314,11 +11317,11 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11314
11317
|
8: "gap-8",
|
|
11315
11318
|
10: "gap-10",
|
|
11316
11319
|
12: "gap-12"
|
|
11317
|
-
},
|
|
11320
|
+
}, Dc = {
|
|
11318
11321
|
default: "text-foreground",
|
|
11319
11322
|
muted: "text-muted-foreground",
|
|
11320
11323
|
destructive: "text-destructive"
|
|
11321
|
-
},
|
|
11324
|
+
}, zc = (e) => typeof e == "number" ? ls[String(e)] ?? "gap-2" : typeof e == "string" ? ls[e.trim()] ?? "gap-2" : "gap-2", jv = ({ children: e, className: t, onClick: n }) => /* @__PURE__ */ f(
|
|
11322
11325
|
Bt,
|
|
11323
11326
|
{
|
|
11324
11327
|
className: t,
|
|
@@ -11326,7 +11329,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11326
11329
|
children: e
|
|
11327
11330
|
}
|
|
11328
11331
|
), 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
|
-
|
|
11332
|
+
Oc,
|
|
11330
11333
|
{
|
|
11331
11334
|
className: t,
|
|
11332
11335
|
variant: o,
|
|
@@ -11339,7 +11342,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11339
11342
|
), Kv = ({ children: e, className: t, variant: n, hue: o, tone: r }) => /* @__PURE__ */ f(
|
|
11340
11343
|
lv,
|
|
11341
11344
|
{
|
|
11342
|
-
className: X(
|
|
11345
|
+
className: X(Dc[r] ?? "", t),
|
|
11343
11346
|
variant: n,
|
|
11344
11347
|
hue: o,
|
|
11345
11348
|
children: e
|
|
@@ -11462,7 +11465,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11462
11465
|
}
|
|
11463
11466
|
), hb = {
|
|
11464
11467
|
default: Nn,
|
|
11465
|
-
destructive:
|
|
11468
|
+
destructive: Es
|
|
11466
11469
|
}, gb = ({ children: e, variant: t, title: n, className: o }) => {
|
|
11467
11470
|
const r = t, s = hb[r || "default"] || Nn;
|
|
11468
11471
|
return /* @__PURE__ */ q(Fv, { variant: r, className: o, children: [
|
|
@@ -11480,14 +11483,14 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11480
11483
|
), 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
11484
|
/* @__PURE__ */ f(Do, { className: "size-4 shrink-0 transition-transform duration-200" }),
|
|
11482
11485
|
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",
|
|
11486
|
+
] }), 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", Dc[n] ?? "", t), children: e }), xb = ({ children: e, className: t, level: n }) => {
|
|
11484
11487
|
const o = `h${n || "2"}`;
|
|
11485
11488
|
return /* @__PURE__ */ f(o, { className: X("font-semibold tracking-tight", t), children: e });
|
|
11486
11489
|
}, Sb = ({ children: e, className: t, direction: n, gap: o }) => {
|
|
11487
|
-
const r = n === "row" ? "flex-row" : "flex-col", s =
|
|
11490
|
+
const r = n === "row" ? "flex-row" : "flex-col", s = zc(o);
|
|
11488
11491
|
return /* @__PURE__ */ f("div", { className: X("flex", r, s, t), children: e });
|
|
11489
11492
|
}, Cb = ({ children: e, className: t, gap: n }) => {
|
|
11490
|
-
const o =
|
|
11493
|
+
const o = zc(n);
|
|
11491
11494
|
return /* @__PURE__ */ f("div", { className: X("flex flex-row items-center", o, t), children: e });
|
|
11492
11495
|
}, Eb = ({ children: e, className: t, href: n, target: o, rel: r }) => /* @__PURE__ */ f(
|
|
11493
11496
|
"a",
|
|
@@ -11502,7 +11505,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11502
11505
|
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
11506
|
/* @__PURE__ */ f("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
11504
11507
|
] }), Nb = ({ icon: e, label: t, description: n, onClick: o, className: r }) => {
|
|
11505
|
-
const s = e, a = "size-5", i = s ?
|
|
11508
|
+
const s = e, a = "size-5", i = s ? Lc[s] : null;
|
|
11506
11509
|
return /* @__PURE__ */ q(
|
|
11507
11510
|
"button",
|
|
11508
11511
|
{
|
|
@@ -11520,7 +11523,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11520
11523
|
}
|
|
11521
11524
|
);
|
|
11522
11525
|
}, 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 =
|
|
11526
|
+
const r = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = Lc[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
11524
11527
|
return a ? /* @__PURE__ */ f(a, { className: X(r, i, n) }) : /* @__PURE__ */ f("span", { className: X("inline-block", r, i, n), "data-icon": s });
|
|
11525
11528
|
}, Tb = () => ({
|
|
11526
11529
|
"ui-card": jv,
|
|
@@ -11559,7 +11562,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11559
11562
|
"ui-collapsible": vb,
|
|
11560
11563
|
"ui-collapsible-trigger": bb,
|
|
11561
11564
|
"ui-collapsible-content": yb
|
|
11562
|
-
}), ds = "/api/ecommerce",
|
|
11565
|
+
}), ds = "/api/ecommerce", $c = async (e, t) => {
|
|
11563
11566
|
const n = t ? `${t.replace(/\/$/, "")}${ds}` : ds, o = await fetch(n, {
|
|
11564
11567
|
method: "POST",
|
|
11565
11568
|
headers: { "Content-Type": "application/json" },
|
|
@@ -11605,7 +11608,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11605
11608
|
if (typeof window > "u")
|
|
11606
11609
|
return;
|
|
11607
11610
|
const b = () => {
|
|
11608
|
-
const v =
|
|
11611
|
+
const v = ws(window.location.search);
|
|
11609
11612
|
r(v);
|
|
11610
11613
|
};
|
|
11611
11614
|
b();
|
|
@@ -11886,7 +11889,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11886
11889
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${S}`), d([]), y(!0);
|
|
11887
11890
|
return;
|
|
11888
11891
|
}
|
|
11889
|
-
const $ = await _.json(), P =
|
|
11892
|
+
const $ = await _.json(), P = ws(typeof window < "u" ? window.location.search : ""), z = await Yl($, P), { tokens: B, errors: J } = await Lb(z, n, o, S, P);
|
|
11890
11893
|
d(z), l(P), h(new Map(B)), g(J);
|
|
11891
11894
|
} catch (_) {
|
|
11892
11895
|
console.error("Failed to load extensions:", _);
|
|
@@ -12194,7 +12197,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
12194
12197
|
const U = Vt(
|
|
12195
12198
|
() => ({
|
|
12196
12199
|
// TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
|
|
12197
|
-
"data.query": async (k) =>
|
|
12200
|
+
"data.query": async (k) => $c(k, t),
|
|
12198
12201
|
"data.fetch": async (k, S) => {
|
|
12199
12202
|
const _ = m.get(k);
|
|
12200
12203
|
if (!_)
|
|
@@ -12327,7 +12330,7 @@ const Hb = ({ ...e }) => {
|
|
|
12327
12330
|
theme: t,
|
|
12328
12331
|
className: "toaster group",
|
|
12329
12332
|
icons: {
|
|
12330
|
-
success: /* @__PURE__ */ f(
|
|
12333
|
+
success: /* @__PURE__ */ f(ks, { className: "size-4" }),
|
|
12331
12334
|
info: /* @__PURE__ */ f(Nn, { className: "size-4" }),
|
|
12332
12335
|
warning: /* @__PURE__ */ f(eu, { className: "size-4" }),
|
|
12333
12336
|
error: /* @__PURE__ */ f(Hd, { className: "size-4" }),
|
|
@@ -12342,17 +12345,17 @@ const Hb = ({ ...e }) => {
|
|
|
12342
12345
|
...e
|
|
12343
12346
|
}
|
|
12344
12347
|
);
|
|
12345
|
-
}, Vb = { dark: "dark", light: "widget-theme-light" }, Wb = { dark: "dark", light: "light" },
|
|
12348
|
+
}, Vb = { dark: "dark", light: "widget-theme-light" }, Wb = { dark: "dark", light: "light" }, Fc = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ q("div", { "data-id": "widget-body", className: Vb[t], style: { position: "relative", transform: "translateZ(0)" }, children: [
|
|
12346
12349
|
/* @__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
12350
|
/* @__PURE__ */ f(Hb, { position: "bottom-center", theme: Wb[t] ?? "system", toastOptions: { descriptionClassName: "!text-muted-foreground" } })
|
|
12348
12351
|
] }), Ub = {
|
|
12349
12352
|
airplay: ed,
|
|
12350
|
-
"message-circle":
|
|
12353
|
+
"message-circle": Rs,
|
|
12351
12354
|
"message-square": $o,
|
|
12352
12355
|
headphones: Id,
|
|
12353
|
-
"help-circle":
|
|
12356
|
+
"help-circle": Ns,
|
|
12354
12357
|
bot: ad,
|
|
12355
|
-
sparkles:
|
|
12358
|
+
sparkles: Ts,
|
|
12356
12359
|
zap: su
|
|
12357
12360
|
}, 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
12361
|
/* @__PURE__ */ q("g", { id: "sl-half-right", children: [
|
|
@@ -12363,7 +12366,7 @@ const Hb = ({ ...e }) => {
|
|
|
12363
12366
|
/* @__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
12367
|
/* @__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
12368
|
] })
|
|
12366
|
-
] }),
|
|
12369
|
+
] }), Bc = 400, Yb = Bc * 0.35, Hc = ({ icon: e, isOpen: t, onClick: n }) => {
|
|
12367
12370
|
const o = Ub[e] ?? jb, [r, s] = le("idle"), a = Me(t);
|
|
12368
12371
|
ce(() => {
|
|
12369
12372
|
if (a.current === t)
|
|
@@ -12374,7 +12377,7 @@ const Hb = ({ ...e }) => {
|
|
|
12374
12377
|
}, [t]);
|
|
12375
12378
|
const i = () => r === "interstitial" ? /* @__PURE__ */ f(Gb, {}) : t ? /* @__PURE__ */ f(Nd, {}) : /* @__PURE__ */ f(o, {});
|
|
12376
12379
|
return /* @__PURE__ */ f("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ f(
|
|
12377
|
-
|
|
12380
|
+
Oc,
|
|
12378
12381
|
{
|
|
12379
12382
|
size: "icon",
|
|
12380
12383
|
className: X(
|
|
@@ -12385,7 +12388,7 @@ const Hb = ({ ...e }) => {
|
|
|
12385
12388
|
children: /* @__PURE__ */ f("span", { className: X(
|
|
12386
12389
|
"flex items-center justify-center transition-transform",
|
|
12387
12390
|
t && "rotate-180"
|
|
12388
|
-
), style: { transitionDuration: `${
|
|
12391
|
+
), style: { transitionDuration: `${Bc}ms` }, children: i() })
|
|
12389
12392
|
}
|
|
12390
12393
|
) });
|
|
12391
12394
|
}, a0 = ({ children: e, icon: t, theme: n }) => {
|
|
@@ -12403,7 +12406,7 @@ const Hb = ({ ...e }) => {
|
|
|
12403
12406
|
};
|
|
12404
12407
|
}, []), /* @__PURE__ */ q(Ie, { children: [
|
|
12405
12408
|
s && /* @__PURE__ */ f(
|
|
12406
|
-
|
|
12409
|
+
Hc,
|
|
12407
12410
|
{
|
|
12408
12411
|
isOpen: o,
|
|
12409
12412
|
icon: t,
|
|
@@ -12418,13 +12421,13 @@ const Hb = ({ ...e }) => {
|
|
|
12418
12421
|
"overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl transition-all duration-200 ease-out origin-bottom-right",
|
|
12419
12422
|
o ? "opacity-100 scale-100 translate-y-0 pointer-events-auto" : "opacity-0 scale-95 translate-y-2 pointer-events-none"
|
|
12420
12423
|
),
|
|
12421
|
-
children: /* @__PURE__ */ f(
|
|
12424
|
+
children: /* @__PURE__ */ f(Fc, { theme: n, children: e })
|
|
12422
12425
|
}
|
|
12423
12426
|
)
|
|
12424
12427
|
] });
|
|
12425
12428
|
}, i0 = {
|
|
12426
|
-
Body:
|
|
12427
|
-
Launcher:
|
|
12429
|
+
Body: Fc,
|
|
12430
|
+
Launcher: Hc
|
|
12428
12431
|
}, qb = ({ href: e, children: t }) => /* @__PURE__ */ f(
|
|
12429
12432
|
"a",
|
|
12430
12433
|
{
|
|
@@ -12444,7 +12447,7 @@ const Hb = ({ ...e }) => {
|
|
|
12444
12447
|
(async () => {
|
|
12445
12448
|
s(!0), i(null);
|
|
12446
12449
|
try {
|
|
12447
|
-
const d = await
|
|
12450
|
+
const d = await $c({
|
|
12448
12451
|
action: "getCustomer",
|
|
12449
12452
|
customerId: e
|
|
12450
12453
|
}, t);
|
|
@@ -12514,7 +12517,7 @@ const Hb = ({ ...e }) => {
|
|
|
12514
12517
|
/* @__PURE__ */ f("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: o })
|
|
12515
12518
|
] })
|
|
12516
12519
|
] }) }) });
|
|
12517
|
-
},
|
|
12520
|
+
}, Vc = (e, t) => {
|
|
12518
12521
|
ce(() => {
|
|
12519
12522
|
const n = t.current;
|
|
12520
12523
|
if (!n)
|
|
@@ -12531,7 +12534,7 @@ const Hb = ({ ...e }) => {
|
|
|
12531
12534
|
}, [e, t]);
|
|
12532
12535
|
}, Zb = ({ customization: e }) => {
|
|
12533
12536
|
const t = Me(null);
|
|
12534
|
-
return
|
|
12537
|
+
return Vc("widget_conversations", t), ce(() => {
|
|
12535
12538
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
12536
12539
|
conversationList: e
|
|
12537
12540
|
});
|
|
@@ -12544,7 +12547,7 @@ const Hb = ({ ...e }) => {
|
|
|
12544
12547
|
);
|
|
12545
12548
|
}, Jb = ({ customization: e }) => {
|
|
12546
12549
|
const t = Me(null);
|
|
12547
|
-
return
|
|
12550
|
+
return Vc("widget_messages", t), ce(() => {
|
|
12548
12551
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
12549
12552
|
messageLog: e
|
|
12550
12553
|
});
|
|
@@ -12571,7 +12574,7 @@ const Hb = ({ ...e }) => {
|
|
|
12571
12574
|
const a = Math.max(
|
|
12572
12575
|
mo,
|
|
12573
12576
|
Math.min(ho, s)
|
|
12574
|
-
), { extensions: i } =
|
|
12577
|
+
), { extensions: i } = ys(), 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
12578
|
mode: "embedded",
|
|
12576
12579
|
messageLog: { targetElement: "#widget_messages" },
|
|
12577
12580
|
conversationList: { targetElement: "#widget_conversations" }
|
|
@@ -12745,7 +12748,7 @@ const Hb = ({ ...e }) => {
|
|
|
12745
12748
|
h === "extensions" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
12746
12749
|
),
|
|
12747
12750
|
title: "My Profile",
|
|
12748
|
-
children: /* @__PURE__ */ f(
|
|
12751
|
+
children: /* @__PURE__ */ f(Ps, { className: "h-4 w-4" })
|
|
12749
12752
|
}
|
|
12750
12753
|
)
|
|
12751
12754
|
] })
|