@stackable-labs/embeddables 1.58.0 → 1.59.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/embeddables/src/components/WidgetComponent.d.ts +1 -1
- package/dist/embeddables/src/components/widget/WidgetLauncher.d.ts +3 -1
- package/dist/embeddables.css +1 -1
- package/dist/react.js +383 -366
- package/dist/stackable-widget.external.js +19 -19
- package/dist/stackable-widget.js +26 -26
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as F, jsx as p, Fragment as Ie } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import _, { createContext as ql, useState as le, useRef as We, useEffect as ce, useContext as Kl, createElement as fn, useMemo as Ft, forwardRef as
|
|
3
|
+
import _, { createContext as ql, useState as le, useRef as We, useEffect as ce, useContext as Kl, createElement as fn, useMemo as Ft, forwardRef as us, useLayoutEffect as Xl, useCallback as _e } from "react";
|
|
4
4
|
import * as Sn from "react-dom";
|
|
5
|
-
import
|
|
5
|
+
import fs from "react-dom";
|
|
6
6
|
const Zl = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "f1441140-477f-45ba-a9b1-2021c4cfc0c2";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -63,7 +63,7 @@ const Zl = () => {
|
|
|
63
63
|
}, Ct = (e) => dt.get(e), Ql = (e) => {
|
|
64
64
|
const t = dt.get(e);
|
|
65
65
|
t && (t.iframe.remove(), t.messageHandlers.clear(), dt.delete(e));
|
|
66
|
-
}, uo = () => dt,
|
|
66
|
+
}, uo = () => dt, ps = {
|
|
67
67
|
"ui-card": {
|
|
68
68
|
description: "Card container for grouping related content",
|
|
69
69
|
icon: "square",
|
|
@@ -320,7 +320,7 @@ const Zl = () => {
|
|
|
320
320
|
category: "composite",
|
|
321
321
|
attributes: ["className"]
|
|
322
322
|
}
|
|
323
|
-
}, Rt =
|
|
323
|
+
}, Rt = ps, Wt = Object.keys(ps), ec = Object.fromEntries(
|
|
324
324
|
Wt.map((e) => [e, Rt[e].attributes])
|
|
325
325
|
);
|
|
326
326
|
Object.fromEntries(
|
|
@@ -340,18 +340,18 @@ const nc = {
|
|
|
340
340
|
"actions.invoke": "actions:invoke",
|
|
341
341
|
"identity.read": "identity:read",
|
|
342
342
|
"identity.extend": "identity:extend"
|
|
343
|
-
},
|
|
343
|
+
}, ms = {
|
|
344
344
|
ADMIN: "org:super_admin"
|
|
345
|
-
},
|
|
345
|
+
}, gr = {
|
|
346
346
|
ADMIN: "org:admin",
|
|
347
347
|
OWNER: "org:owner"
|
|
348
348
|
}, oc = [
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
ms.ADMIN,
|
|
350
|
+
gr.ADMIN,
|
|
351
|
+
gr.OWNER
|
|
352
352
|
];
|
|
353
353
|
[
|
|
354
|
-
...Object.values(
|
|
354
|
+
...Object.values(ms),
|
|
355
355
|
...Object.values(oc)
|
|
356
356
|
];
|
|
357
357
|
const rc = (e) => {
|
|
@@ -426,7 +426,7 @@ const rc = (e) => {
|
|
|
426
426
|
return window.addEventListener("message", t), () => {
|
|
427
427
|
window.removeEventListener("message", t);
|
|
428
428
|
};
|
|
429
|
-
},
|
|
429
|
+
}, hs = ql({
|
|
430
430
|
extensions: [],
|
|
431
431
|
components: {},
|
|
432
432
|
ready: !1
|
|
@@ -455,11 +455,11 @@ const rc = (e) => {
|
|
|
455
455
|
Ql(c.id);
|
|
456
456
|
(u = i.current) == null || u.call(i);
|
|
457
457
|
};
|
|
458
|
-
}, [e, t]), /* @__PURE__ */ F(
|
|
458
|
+
}, [e, t]), /* @__PURE__ */ F(hs.Provider, { value: { extensions: e, components: n, ready: r }, children: [
|
|
459
459
|
/* @__PURE__ */ p("div", { ref: a, style: { display: "none" } }),
|
|
460
460
|
o
|
|
461
461
|
] });
|
|
462
|
-
},
|
|
462
|
+
}, gs = () => Kl(hs), ac = (e) => Wt.includes(e), ic = (e, t = {}) => {
|
|
463
463
|
const { surfaceId: n, logPrefix: o = "[NodeRenderer]" } = t, r = (s, a, i = 0) => {
|
|
464
464
|
var h, b, g;
|
|
465
465
|
if (s.type === "text")
|
|
@@ -526,7 +526,7 @@ const rc = (e) => {
|
|
|
526
526
|
fallback: r = null,
|
|
527
527
|
render: s
|
|
528
528
|
}) => {
|
|
529
|
-
const { extensions: a, components: i, ready: l } =
|
|
529
|
+
const { extensions: a, components: i, ready: l } = gs(), [d, u] = le({}), c = We(""), m = Ft(() => a.filter((v) => v.enabled && v.manifest.targets.includes(e)), [a.map((v) => v.id).join(","), e]), h = Ft(() => ic(i, { surfaceId: e, logPrefix: "[ExtensionSlot]" }), [e, i]);
|
|
530
530
|
if (ce(() => {
|
|
531
531
|
const v = m.map((w) => w.id).join(",");
|
|
532
532
|
if (c.current !== v && (c.current = v, u({})), !l || m.length === 0)
|
|
@@ -874,7 +874,7 @@ dc("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;
|
|
|
874
874
|
function Qt(e) {
|
|
875
875
|
return e.label !== void 0;
|
|
876
876
|
}
|
|
877
|
-
const Rc = 3, Nc = "24px", Tc = "16px",
|
|
877
|
+
const Rc = 3, Nc = "24px", Tc = "16px", vr = 4e3, Pc = 356, Ac = 14, _c = 45, Ic = 200;
|
|
878
878
|
function De(...e) {
|
|
879
879
|
return e.filter(Boolean).join(" ");
|
|
880
880
|
}
|
|
@@ -884,7 +884,7 @@ function Mc(e) {
|
|
|
884
884
|
}
|
|
885
885
|
const Oc = (e) => {
|
|
886
886
|
var t, n, o, r, s, a, i, l, d;
|
|
887
|
-
const { invert: u, toast: c, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: E, closeButton: R, style: N, cancelButtonStyle: k, actionButtonStyle: M, className: L = "", descriptionClassName: $ = "", duration: j, position: U, gap: K, expandByDefault: I, classNames: S, icons: T, closeButtonAriaLabel: A = "Close toast" } = e, [O, P] = _.useState(null), [Q, ie] = _.useState(null), [G, Z] = _.useState(!1), [Y, X] = _.useState(!1), [B,
|
|
887
|
+
const { invert: u, toast: c, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: E, closeButton: R, style: N, cancelButtonStyle: k, actionButtonStyle: M, className: L = "", descriptionClassName: $ = "", duration: j, position: U, gap: K, expandByDefault: I, classNames: S, icons: T, closeButtonAriaLabel: A = "Close toast" } = e, [O, P] = _.useState(null), [Q, ie] = _.useState(null), [G, Z] = _.useState(!1), [Y, X] = _.useState(!1), [B, V] = _.useState(!1), [J, ae] = _.useState(!1), [oe, te] = _.useState(!1), [ue, fe] = _.useState(0), [st, qe] = _.useState(0), Ne = _.useRef(c.duration || j || vr), qt = _.useRef(null), be = _.useRef(null), $l = y === 0, Fl = y + 1 <= g, xe = c.type, gt = c.dismissible !== !1, Bl = c.className || "", Hl = c.descriptionClassName || "", Kt = _.useMemo(() => v.findIndex((ee) => ee.toastId === c.id) || 0, [
|
|
888
888
|
v,
|
|
889
889
|
c.id
|
|
890
890
|
]), Vl = _.useMemo(() => {
|
|
@@ -893,20 +893,20 @@ const Oc = (e) => {
|
|
|
893
893
|
}, [
|
|
894
894
|
c.closeButton,
|
|
895
895
|
R
|
|
896
|
-
]),
|
|
896
|
+
]), cr = _.useMemo(() => c.duration || j || vr, [
|
|
897
897
|
c.duration,
|
|
898
898
|
j
|
|
899
|
-
]), Gn = _.useRef(0), vt = _.useRef(0),
|
|
899
|
+
]), Gn = _.useRef(0), vt = _.useRef(0), dr = _.useRef(0), bt = _.useRef(null), [Wl, Ul] = U.split("-"), ur = _.useMemo(() => v.reduce((ee, me, ge) => ge >= Kt ? ee : ee + me.height, 0), [
|
|
900
900
|
v,
|
|
901
901
|
Kt
|
|
902
|
-
]),
|
|
903
|
-
vt.current = _.useMemo(() => Kt * K +
|
|
902
|
+
]), fr = yc(), jl = c.invert || u, Yn = xe === "loading";
|
|
903
|
+
vt.current = _.useMemo(() => Kt * K + ur, [
|
|
904
904
|
Kt,
|
|
905
|
-
|
|
905
|
+
ur
|
|
906
906
|
]), _.useEffect(() => {
|
|
907
|
-
Ne.current =
|
|
907
|
+
Ne.current = cr;
|
|
908
908
|
}, [
|
|
909
|
-
|
|
909
|
+
cr
|
|
910
910
|
]), _.useEffect(() => {
|
|
911
911
|
Z(!0);
|
|
912
912
|
}, []), _.useEffect(() => {
|
|
@@ -964,12 +964,12 @@ const Oc = (e) => {
|
|
|
964
964
|
_.useEffect(() => {
|
|
965
965
|
if (c.promise && xe === "loading" || c.duration === 1 / 0 || c.type === "loading") return;
|
|
966
966
|
let ee;
|
|
967
|
-
return x || h ||
|
|
968
|
-
if (
|
|
967
|
+
return x || h || fr ? (() => {
|
|
968
|
+
if (dr.current < Gn.current) {
|
|
969
969
|
const Se = (/* @__PURE__ */ new Date()).getTime() - Gn.current;
|
|
970
970
|
Ne.current = Ne.current - Se;
|
|
971
971
|
}
|
|
972
|
-
|
|
972
|
+
dr.current = (/* @__PURE__ */ new Date()).getTime();
|
|
973
973
|
})() : (() => {
|
|
974
974
|
Ne.current !== 1 / 0 && (Gn.current = (/* @__PURE__ */ new Date()).getTime(), ee = setTimeout(() => {
|
|
975
975
|
c.onAutoClose == null || c.onAutoClose.call(c, c), Ke();
|
|
@@ -980,7 +980,7 @@ const Oc = (e) => {
|
|
|
980
980
|
h,
|
|
981
981
|
c,
|
|
982
982
|
xe,
|
|
983
|
-
|
|
983
|
+
fr,
|
|
984
984
|
Ke
|
|
985
985
|
]), _.useEffect(() => {
|
|
986
986
|
c.delete && (Ke(), c.onDismiss == null || c.onDismiss.call(c, c));
|
|
@@ -1003,13 +1003,13 @@ const Oc = (e) => {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
1005
|
const Yl = c.icon || (T == null ? void 0 : T[xe]) || uc(xe);
|
|
1006
|
-
var
|
|
1006
|
+
var pr, mr;
|
|
1007
1007
|
return /* @__PURE__ */ _.createElement("li", {
|
|
1008
1008
|
tabIndex: 0,
|
|
1009
1009
|
ref: be,
|
|
1010
1010
|
className: De(L, Bl, S == null ? void 0 : S.toast, c == null || (t = c.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[xe], c == null || (n = c.classNames) == null ? void 0 : n[xe]),
|
|
1011
1011
|
"data-sonner-toast": "",
|
|
1012
|
-
"data-rich-colors": (
|
|
1012
|
+
"data-rich-colors": (pr = c.richColors) != null ? pr : E,
|
|
1013
1013
|
"data-styled": !(c.jsx || c.unstyled || m),
|
|
1014
1014
|
"data-mounted": G,
|
|
1015
1015
|
"data-promise": !!c.promise,
|
|
@@ -1038,10 +1038,10 @@ const Oc = (e) => {
|
|
|
1038
1038
|
...c.style
|
|
1039
1039
|
},
|
|
1040
1040
|
onDragEnd: () => {
|
|
1041
|
-
|
|
1041
|
+
V(!1), P(null), bt.current = null;
|
|
1042
1042
|
},
|
|
1043
1043
|
onPointerDown: (ee) => {
|
|
1044
|
-
ee.button !== 2 && (Yn || !gt || (qt.current = /* @__PURE__ */ new Date(), fe(vt.current), ee.target.setPointerCapture(ee.pointerId), ee.target.tagName !== "BUTTON" && (
|
|
1044
|
+
ee.button !== 2 && (Yn || !gt || (qt.current = /* @__PURE__ */ new Date(), fe(vt.current), ee.target.setPointerCapture(ee.pointerId), ee.target.tagName !== "BUTTON" && (V(!0), bt.current = {
|
|
1045
1045
|
x: ee.clientX,
|
|
1046
1046
|
y: ee.clientY
|
|
1047
1047
|
})));
|
|
@@ -1058,7 +1058,7 @@ const Oc = (e) => {
|
|
|
1058
1058
|
var Te, Pe;
|
|
1059
1059
|
(Te = be.current) == null || Te.style.setProperty("--swipe-amount-x", "0px"), (Pe = be.current) == null || Pe.style.setProperty("--swipe-amount-y", "0px");
|
|
1060
1060
|
}
|
|
1061
|
-
te(!1),
|
|
1061
|
+
te(!1), V(!1), P(null);
|
|
1062
1062
|
},
|
|
1063
1063
|
onPointerMove: (ee) => {
|
|
1064
1064
|
var me, ge, Se;
|
|
@@ -1071,20 +1071,20 @@ const Oc = (e) => {
|
|
|
1071
1071
|
x: 0,
|
|
1072
1072
|
y: 0
|
|
1073
1073
|
};
|
|
1074
|
-
const
|
|
1074
|
+
const hr = (at) => 1 / (1.5 + Math.abs(at) / 20);
|
|
1075
1075
|
if (O === "y") {
|
|
1076
1076
|
if (Te.includes("top") || Te.includes("bottom"))
|
|
1077
1077
|
if (Te.includes("top") && he < 0 || Te.includes("bottom") && he > 0)
|
|
1078
1078
|
Pe.y = he;
|
|
1079
1079
|
else {
|
|
1080
|
-
const at = he *
|
|
1080
|
+
const at = he * hr(he);
|
|
1081
1081
|
Pe.y = Math.abs(at) < Math.abs(he) ? at : he;
|
|
1082
1082
|
}
|
|
1083
1083
|
} else if (O === "x" && (Te.includes("left") || Te.includes("right")))
|
|
1084
1084
|
if (Te.includes("left") && Ee < 0 || Te.includes("right") && Ee > 0)
|
|
1085
1085
|
Pe.x = Ee;
|
|
1086
1086
|
else {
|
|
1087
|
-
const at = Ee *
|
|
1087
|
+
const at = Ee * hr(Ee);
|
|
1088
1088
|
Pe.x = Math.abs(at) < Math.abs(Ee) ? at : Ee;
|
|
1089
1089
|
}
|
|
1090
1090
|
(Math.abs(Pe.x) > 0 || Math.abs(Pe.y) > 0) && te(!0), (ge = be.current) == null || ge.style.setProperty("--swipe-amount-x", `${Pe.x}px`), (Se = be.current) == null || Se.style.setProperty("--swipe-amount-y", `${Pe.y}px`);
|
|
@@ -1098,7 +1098,7 @@ const Oc = (e) => {
|
|
|
1098
1098
|
Ke(), c.onDismiss == null || c.onDismiss.call(c, c);
|
|
1099
1099
|
},
|
|
1100
1100
|
className: De(S == null ? void 0 : S.closeButton, c == null || (o = c.classNames) == null ? void 0 : o.closeButton)
|
|
1101
|
-
}, (
|
|
1101
|
+
}, (mr = T == null ? void 0 : T.close) != null ? mr : bc) : null, (xe || c.icon || c.promise) && c.icon !== null && ((T == null ? void 0 : T[xe]) !== null || c.icon) ? /* @__PURE__ */ _.createElement("div", {
|
|
1102
1102
|
"data-icon": "",
|
|
1103
1103
|
className: De(S == null ? void 0 : S.icon, c == null || (r = c.classNames) == null ? void 0 : r.icon)
|
|
1104
1104
|
}, c.promise || c.type === "loading" && !c.icon ? c.icon || Gl() : null, c.type !== "loading" ? Yl : null) : null, /* @__PURE__ */ _.createElement("div", {
|
|
@@ -1128,7 +1128,7 @@ const Oc = (e) => {
|
|
|
1128
1128
|
className: De(S == null ? void 0 : S.actionButton, c == null || (d = c.classNames) == null ? void 0 : d.actionButton)
|
|
1129
1129
|
}, c.action.label) : null);
|
|
1130
1130
|
};
|
|
1131
|
-
function
|
|
1131
|
+
function br() {
|
|
1132
1132
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
1133
1133
|
const e = document.documentElement.getAttribute("dir");
|
|
1134
1134
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
@@ -1164,7 +1164,7 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1164
1164
|
const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
|
|
1165
1165
|
"altKey",
|
|
1166
1166
|
"KeyT"
|
|
1167
|
-
], expand: i, closeButton: l, className: d, offset: u, mobileOffset: c, theme: m = "light", richColors: h, duration: b, style: g, visibleToasts: v = Rc, toastOptions: y, dir: w =
|
|
1167
|
+
], expand: i, closeButton: l, className: d, offset: u, mobileOffset: c, theme: m = "light", richColors: h, duration: b, style: g, visibleToasts: v = Rc, toastOptions: y, dir: w = br(), gap: x = Ac, icons: C, containerAriaLabel: E = "Notifications" } = t, [R, N] = _.useState([]), k = _.useMemo(() => o ? R.filter((G) => G.toasterId === o) : R.filter((G) => !G.toasterId), [
|
|
1168
1168
|
R,
|
|
1169
1169
|
o
|
|
1170
1170
|
]), M = _.useMemo(() => Array.from(new Set([
|
|
@@ -1189,7 +1189,7 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1189
1189
|
return;
|
|
1190
1190
|
}
|
|
1191
1191
|
setTimeout(() => {
|
|
1192
|
-
|
|
1192
|
+
fs.flushSync(() => {
|
|
1193
1193
|
N((Z) => {
|
|
1194
1194
|
const Y = Z.findIndex((X) => X.id === G.id);
|
|
1195
1195
|
return Y !== -1 ? [
|
|
@@ -1237,7 +1237,7 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1237
1237
|
]), _.useEffect(() => {
|
|
1238
1238
|
const G = (Z) => {
|
|
1239
1239
|
var Y;
|
|
1240
|
-
if (a.every((
|
|
1240
|
+
if (a.every((V) => Z[V] || Z.code === V)) {
|
|
1241
1241
|
var B;
|
|
1242
1242
|
U(!0), (B = A.current) == null || B.focus();
|
|
1243
1243
|
}
|
|
@@ -1269,7 +1269,7 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1269
1269
|
const [X, B] = G.split("-");
|
|
1270
1270
|
return k.length ? /* @__PURE__ */ _.createElement("ol", {
|
|
1271
1271
|
key: G,
|
|
1272
|
-
dir: w === "auto" ?
|
|
1272
|
+
dir: w === "auto" ? br() : w,
|
|
1273
1273
|
tabIndex: -1,
|
|
1274
1274
|
ref: A,
|
|
1275
1275
|
className: d,
|
|
@@ -1284,13 +1284,13 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1284
1284
|
...g,
|
|
1285
1285
|
...Lc(u, c)
|
|
1286
1286
|
},
|
|
1287
|
-
onBlur: (
|
|
1288
|
-
Q.current && !
|
|
1287
|
+
onBlur: (V) => {
|
|
1288
|
+
Q.current && !V.currentTarget.contains(V.relatedTarget) && (Q.current = !1, P.current && (P.current.focus({
|
|
1289
1289
|
preventScroll: !0
|
|
1290
1290
|
}), P.current = null));
|
|
1291
1291
|
},
|
|
1292
|
-
onFocus: (
|
|
1293
|
-
|
|
1292
|
+
onFocus: (V) => {
|
|
1293
|
+
V.target instanceof HTMLElement && V.target.dataset.dismissible === "false" || Q.current || (Q.current = !0, P.current = V.relatedTarget);
|
|
1294
1294
|
},
|
|
1295
1295
|
onMouseEnter: () => U(!0),
|
|
1296
1296
|
onMouseMove: () => U(!0),
|
|
@@ -1298,17 +1298,17 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1298
1298
|
K || U(!1);
|
|
1299
1299
|
},
|
|
1300
1300
|
onDragEnd: () => U(!1),
|
|
1301
|
-
onPointerDown: (
|
|
1302
|
-
|
|
1301
|
+
onPointerDown: (V) => {
|
|
1302
|
+
V.target instanceof HTMLElement && V.target.dataset.dismissible === "false" || I(!0);
|
|
1303
1303
|
},
|
|
1304
1304
|
onPointerUp: () => I(!1)
|
|
1305
|
-
}, k.filter((
|
|
1305
|
+
}, k.filter((V) => !V.position && Z === 0 || V.position === G).map((V, J) => {
|
|
1306
1306
|
var ae, oe;
|
|
1307
1307
|
return /* @__PURE__ */ _.createElement(Oc, {
|
|
1308
|
-
key:
|
|
1308
|
+
key: V.id,
|
|
1309
1309
|
icons: C,
|
|
1310
1310
|
index: J,
|
|
1311
|
-
toast:
|
|
1311
|
+
toast: V,
|
|
1312
1312
|
defaultRichColors: h,
|
|
1313
1313
|
duration: (ae = y == null ? void 0 : y.duration) != null ? ae : b,
|
|
1314
1314
|
className: y == null ? void 0 : y.className,
|
|
@@ -1325,8 +1325,8 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1325
1325
|
actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
|
|
1326
1326
|
closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
|
|
1327
1327
|
removeToast: ie,
|
|
1328
|
-
toasts: k.filter((te) => te.position ==
|
|
1329
|
-
heights: L.filter((te) => te.position ==
|
|
1328
|
+
toasts: k.filter((te) => te.position == V.position),
|
|
1329
|
+
heights: L.filter((te) => te.position == V.position),
|
|
1330
1330
|
setHeights: $,
|
|
1331
1331
|
expandByDefault: i,
|
|
1332
1332
|
gap: x,
|
|
@@ -1335,7 +1335,7 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1335
1335
|
});
|
|
1336
1336
|
})) : null;
|
|
1337
1337
|
}));
|
|
1338
|
-
}), zc = (e) => e.startsWith("http") && !e.endsWith(".js"),
|
|
1338
|
+
}), zc = (e) => e.startsWith("http") && !e.endsWith(".js"), yr = (e) => {
|
|
1339
1339
|
try {
|
|
1340
1340
|
const { hostname: t } = new URL(e);
|
|
1341
1341
|
return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
|
|
@@ -1354,16 +1354,16 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1354
1354
|
if (!r.startsWith("http")) {
|
|
1355
1355
|
try {
|
|
1356
1356
|
const s = JSON.parse($c(r));
|
|
1357
|
-
if (s.url &&
|
|
1357
|
+
if (s.url && yr(s.url))
|
|
1358
1358
|
return { extensionId: o, bundleUrl: s.url, mode: t, token: s.token };
|
|
1359
1359
|
} catch {
|
|
1360
1360
|
}
|
|
1361
1361
|
return;
|
|
1362
1362
|
}
|
|
1363
|
-
if (
|
|
1363
|
+
if (yr(r))
|
|
1364
1364
|
return { extensionId: o, bundleUrl: r, mode: t };
|
|
1365
1365
|
}
|
|
1366
|
-
},
|
|
1366
|
+
}, wr = (e, t, n) => {
|
|
1367
1367
|
const o = e.getAll(t);
|
|
1368
1368
|
if (o.length === 0) return [];
|
|
1369
1369
|
const r = [];
|
|
@@ -1375,10 +1375,10 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
1377
|
return r;
|
|
1378
|
-
},
|
|
1378
|
+
}, vs = (e) => {
|
|
1379
1379
|
const t = new URLSearchParams(e);
|
|
1380
1380
|
try {
|
|
1381
|
-
const n =
|
|
1381
|
+
const n = wr(t, "_stackable_dev", "dev"), o = wr(t, "_stackable_staging", "staging"), r = /* @__PURE__ */ new Map();
|
|
1382
1382
|
for (const s of n)
|
|
1383
1383
|
r.set(s.extensionId, s);
|
|
1384
1384
|
for (const s of o)
|
|
@@ -1410,7 +1410,7 @@ const Dc = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
|
1410
1410
|
* This source code is licensed under the ISC license.
|
|
1411
1411
|
* See the LICENSE file in the root directory of this source tree.
|
|
1412
1412
|
*/
|
|
1413
|
-
const
|
|
1413
|
+
const bs = (...e) => e.filter((t, n, o) => !!t && t.trim() !== "" && o.indexOf(t) === n).join(" ").trim();
|
|
1414
1414
|
/**
|
|
1415
1415
|
* @license lucide-react v0.577.0 - ISC
|
|
1416
1416
|
*
|
|
@@ -1434,7 +1434,7 @@ const Vc = (e) => e.replace(
|
|
|
1434
1434
|
* This source code is licensed under the ISC license.
|
|
1435
1435
|
* See the LICENSE file in the root directory of this source tree.
|
|
1436
1436
|
*/
|
|
1437
|
-
const
|
|
1437
|
+
const xr = (e) => {
|
|
1438
1438
|
const t = Vc(e);
|
|
1439
1439
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1440
1440
|
};
|
|
@@ -1473,7 +1473,7 @@ const Uc = (e) => {
|
|
|
1473
1473
|
* This source code is licensed under the ISC license.
|
|
1474
1474
|
* See the LICENSE file in the root directory of this source tree.
|
|
1475
1475
|
*/
|
|
1476
|
-
const jc =
|
|
1476
|
+
const jc = us(
|
|
1477
1477
|
({
|
|
1478
1478
|
color: e = "currentColor",
|
|
1479
1479
|
size: t = 24,
|
|
@@ -1492,7 +1492,7 @@ const jc = ds(
|
|
|
1492
1492
|
height: t,
|
|
1493
1493
|
stroke: e,
|
|
1494
1494
|
strokeWidth: o ? Number(n) * 24 / Number(t) : n,
|
|
1495
|
-
className:
|
|
1495
|
+
className: bs("lucide", r),
|
|
1496
1496
|
...!s && !Uc(i) && { "aria-hidden": "true" },
|
|
1497
1497
|
...i
|
|
1498
1498
|
},
|
|
@@ -1509,19 +1509,19 @@ const jc = ds(
|
|
|
1509
1509
|
* See the LICENSE file in the root directory of this source tree.
|
|
1510
1510
|
*/
|
|
1511
1511
|
const se = (e, t) => {
|
|
1512
|
-
const n =
|
|
1512
|
+
const n = us(
|
|
1513
1513
|
({ className: o, ...r }, s) => fn(jc, {
|
|
1514
1514
|
ref: s,
|
|
1515
1515
|
iconNode: t,
|
|
1516
|
-
className:
|
|
1517
|
-
`lucide-${Hc(
|
|
1516
|
+
className: bs(
|
|
1517
|
+
`lucide-${Hc(xr(e))}`,
|
|
1518
1518
|
`lucide-${e}`,
|
|
1519
1519
|
o
|
|
1520
1520
|
),
|
|
1521
1521
|
...r
|
|
1522
1522
|
})
|
|
1523
1523
|
);
|
|
1524
|
-
return n.displayName =
|
|
1524
|
+
return n.displayName = xr(e), n;
|
|
1525
1525
|
};
|
|
1526
1526
|
/**
|
|
1527
1527
|
* @license lucide-react v0.577.0 - ISC
|
|
@@ -1597,14 +1597,14 @@ const ed = [
|
|
|
1597
1597
|
* This source code is licensed under the ISC license.
|
|
1598
1598
|
* See the LICENSE file in the root directory of this source tree.
|
|
1599
1599
|
*/
|
|
1600
|
-
const nd = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]],
|
|
1600
|
+
const nd = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], ys = se("check", nd);
|
|
1601
1601
|
/**
|
|
1602
1602
|
* @license lucide-react v0.577.0 - ISC
|
|
1603
1603
|
*
|
|
1604
1604
|
* This source code is licensed under the ISC license.
|
|
1605
1605
|
* See the LICENSE file in the root directory of this source tree.
|
|
1606
1606
|
*/
|
|
1607
|
-
const od = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]],
|
|
1607
|
+
const od = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Io = se("chevron-down", od);
|
|
1608
1608
|
/**
|
|
1609
1609
|
* @license lucide-react v0.577.0 - ISC
|
|
1610
1610
|
*
|
|
@@ -1618,7 +1618,7 @@ const rd = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], sd = se("chevron-
|
|
|
1618
1618
|
* This source code is licensed under the ISC license.
|
|
1619
1619
|
* See the LICENSE file in the root directory of this source tree.
|
|
1620
1620
|
*/
|
|
1621
|
-
const ad = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
1621
|
+
const ad = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Mo = se("chevron-right", ad);
|
|
1622
1622
|
/**
|
|
1623
1623
|
* @license lucide-react v0.577.0 - ISC
|
|
1624
1624
|
*
|
|
@@ -1739,7 +1739,7 @@ const kd = [
|
|
|
1739
1739
|
* This source code is licensed under the ISC license.
|
|
1740
1740
|
* See the LICENSE file in the root directory of this source tree.
|
|
1741
1741
|
*/
|
|
1742
|
-
const Ed = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]],
|
|
1742
|
+
const Ed = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Oo = se("loader-circle", Ed);
|
|
1743
1743
|
/**
|
|
1744
1744
|
* @license lucide-react v0.577.0 - ISC
|
|
1745
1745
|
*
|
|
@@ -1795,7 +1795,7 @@ const Ad = [
|
|
|
1795
1795
|
key: "18887p"
|
|
1796
1796
|
}
|
|
1797
1797
|
]
|
|
1798
|
-
],
|
|
1798
|
+
], Lo = se("message-square", Ad);
|
|
1799
1799
|
/**
|
|
1800
1800
|
* @license lucide-react v0.577.0 - ISC
|
|
1801
1801
|
*
|
|
@@ -1979,7 +1979,7 @@ const Kd = (e, t) => {
|
|
|
1979
1979
|
nextPart: e,
|
|
1980
1980
|
validators: t,
|
|
1981
1981
|
classGroupId: n
|
|
1982
|
-
}), pn = "-",
|
|
1982
|
+
}), pn = "-", Sr = [], Zd = "arbitrary..", Jd = (e) => {
|
|
1983
1983
|
const t = eu(e), {
|
|
1984
1984
|
conflictingClassGroups: n,
|
|
1985
1985
|
conflictingClassGroupModifiers: o
|
|
@@ -1994,9 +1994,9 @@ const Kd = (e, t) => {
|
|
|
1994
1994
|
getConflictingClassGroupIds: (a, i) => {
|
|
1995
1995
|
if (i) {
|
|
1996
1996
|
const l = o[a], d = n[a];
|
|
1997
|
-
return l ? d ? Kd(d, l) : l : d ||
|
|
1997
|
+
return l ? d ? Kd(d, l) : l : d || Sr;
|
|
1998
1998
|
}
|
|
1999
|
-
return n[a] ||
|
|
1999
|
+
return n[a] || Sr;
|
|
2000
2000
|
}
|
|
2001
2001
|
};
|
|
2002
2002
|
}, Ps = (e, t, n) => {
|
|
@@ -2029,10 +2029,10 @@ const Kd = (e, t) => {
|
|
|
2029
2029
|
const n = Ts();
|
|
2030
2030
|
for (const o in e) {
|
|
2031
2031
|
const r = e[o];
|
|
2032
|
-
|
|
2032
|
+
Do(r, n, o, t);
|
|
2033
2033
|
}
|
|
2034
2034
|
return n;
|
|
2035
|
-
},
|
|
2035
|
+
}, Do = (e, t, n, o) => {
|
|
2036
2036
|
const r = e.length;
|
|
2037
2037
|
for (let s = 0; s < r; s++) {
|
|
2038
2038
|
const a = e[s];
|
|
@@ -2053,7 +2053,7 @@ const Kd = (e, t) => {
|
|
|
2053
2053
|
o.classGroupId = n;
|
|
2054
2054
|
}, ru = (e, t, n, o) => {
|
|
2055
2055
|
if (au(e)) {
|
|
2056
|
-
|
|
2056
|
+
Do(e(o), t, n, o);
|
|
2057
2057
|
return;
|
|
2058
2058
|
}
|
|
2059
2059
|
t.validators === null && (t.validators = []), t.validators.push(Xd(n, e));
|
|
@@ -2061,7 +2061,7 @@ const Kd = (e, t) => {
|
|
|
2061
2061
|
const r = Object.entries(e), s = r.length;
|
|
2062
2062
|
for (let a = 0; a < s; a++) {
|
|
2063
2063
|
const [i, l] = r[a];
|
|
2064
|
-
|
|
2064
|
+
Do(l, As(t, i), n, o);
|
|
2065
2065
|
}
|
|
2066
2066
|
}, As = (e, t) => {
|
|
2067
2067
|
let n = e;
|
|
@@ -2096,7 +2096,7 @@ const Kd = (e, t) => {
|
|
|
2096
2096
|
s in n ? n[s] = a : r(s, a);
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
|
-
}, mo = "!",
|
|
2099
|
+
}, mo = "!", Cr = ":", lu = [], kr = (e, t, n, o, r) => ({
|
|
2100
2100
|
modifiers: e,
|
|
2101
2101
|
hasImportantModifier: t,
|
|
2102
2102
|
baseClassName: n,
|
|
@@ -2114,7 +2114,7 @@ const Kd = (e, t) => {
|
|
|
2114
2114
|
for (let g = 0; g < u; g++) {
|
|
2115
2115
|
const v = r[g];
|
|
2116
2116
|
if (a === 0 && i === 0) {
|
|
2117
|
-
if (v ===
|
|
2117
|
+
if (v === Cr) {
|
|
2118
2118
|
s.push(r.slice(l, g)), l = g + 1;
|
|
2119
2119
|
continue;
|
|
2120
2120
|
}
|
|
@@ -2135,11 +2135,11 @@ const Kd = (e, t) => {
|
|
|
2135
2135
|
c.startsWith(mo) && (m = c.slice(1), h = !0)
|
|
2136
2136
|
);
|
|
2137
2137
|
const b = d && d > l ? d - l : void 0;
|
|
2138
|
-
return
|
|
2138
|
+
return kr(s, h, m, b);
|
|
2139
2139
|
};
|
|
2140
2140
|
if (t) {
|
|
2141
|
-
const r = t +
|
|
2142
|
-
o = (a) => a.startsWith(r) ? s(a.slice(r.length)) :
|
|
2141
|
+
const r = t + Cr, s = o;
|
|
2142
|
+
o = (a) => a.startsWith(r) ? s(a.slice(r.length)) : kr(lu, !1, a, void 0, !0);
|
|
2143
2143
|
}
|
|
2144
2144
|
if (n) {
|
|
2145
2145
|
const r = o;
|
|
@@ -2244,7 +2244,7 @@ const Kd = (e, t) => {
|
|
|
2244
2244
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2245
2245
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2246
2246
|
yu.test(e) && !wu.test(e)
|
|
2247
|
-
),
|
|
2247
|
+
), zo = () => !1, ku = (e) => xu.test(e), Eu = (e) => Su.test(e), Ru = (e) => !D(e) && !z(e), Nu = (e) => nt(e, zs, zo), D = (e) => Is.test(e), it = (e) => nt(e, $s, Cu), Er = (e) => nt(e, Lu, ne), Tu = (e) => nt(e, Bs, Os), Pu = (e) => nt(e, Fs, zo), Rr = (e) => nt(e, Ls, zo), Au = (e) => nt(e, Ds, Eu), en = (e) => nt(e, Hs, ku), z = (e) => Ms.test(e), Ot = (e) => mt(e, $s), _u = (e) => mt(e, Fs), Nr = (e) => mt(e, Ls), Iu = (e) => mt(e, zs), Mu = (e) => mt(e, Ds), tn = (e) => mt(e, Hs, !0), Ou = (e) => mt(e, Bs, !0), nt = (e, t, n) => {
|
|
2248
2248
|
const o = Is.exec(e);
|
|
2249
2249
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
2250
2250
|
}, mt = (e, t, n = !1) => {
|
|
@@ -2271,7 +2271,7 @@ const Kd = (e, t) => {
|
|
|
2271
2271
|
"left-bottom"
|
|
2272
2272
|
], E = () => [...C(), z, D], R = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], k = () => [z, D, l], M = () => [Xe, "full", "auto", ...k()], L = () => [Ze, "none", "subgrid", z, D], $ = () => ["auto", {
|
|
2273
2273
|
span: ["full", Ze, z, D]
|
|
2274
|
-
}, Ze, z, D], j = () => [Ze, "auto", z, D], U = () => ["auto", "min", "max", "fr", z, D], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...k()], T = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], A = () => [Xe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], O = () => [Xe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], P = () => [e, z, D], Q = () => [...C(),
|
|
2274
|
+
}, Ze, z, D], j = () => [Ze, "auto", z, D], U = () => ["auto", "min", "max", "fr", z, D], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...k()], T = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], A = () => [Xe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], O = () => [Xe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], P = () => [e, z, D], Q = () => [...C(), Nr, Rr, {
|
|
2275
2275
|
position: [z, D]
|
|
2276
2276
|
}], ie = () => ["no-repeat", {
|
|
2277
2277
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -2285,7 +2285,7 @@ const Kd = (e, t) => {
|
|
|
2285
2285
|
d,
|
|
2286
2286
|
z,
|
|
2287
2287
|
D
|
|
2288
|
-
], X = () => ["", ne, Ot, it], B = () => ["solid", "dashed", "dotted", "double"],
|
|
2288
|
+
], X = () => ["", ne, Ot, it], B = () => ["solid", "dashed", "dotted", "double"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => [ne, qn, Nr, Rr], ae = () => [
|
|
2289
2289
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2290
2290
|
"",
|
|
2291
2291
|
"none",
|
|
@@ -3163,7 +3163,7 @@ const Kd = (e, t) => {
|
|
|
3163
3163
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3164
3164
|
*/
|
|
3165
3165
|
"line-clamp": [{
|
|
3166
|
-
"line-clamp": [ne, "none", z,
|
|
3166
|
+
"line-clamp": [ne, "none", z, Er]
|
|
3167
3167
|
}],
|
|
3168
3168
|
/**
|
|
3169
3169
|
* Line Height
|
|
@@ -3877,14 +3877,14 @@ const Kd = (e, t) => {
|
|
|
3877
3877
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
3878
3878
|
*/
|
|
3879
3879
|
"mix-blend": [{
|
|
3880
|
-
"mix-blend": [...
|
|
3880
|
+
"mix-blend": [...V(), "plus-darker", "plus-lighter"]
|
|
3881
3881
|
}],
|
|
3882
3882
|
/**
|
|
3883
3883
|
* Background Blend Mode
|
|
3884
3884
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
3885
3885
|
*/
|
|
3886
3886
|
"bg-blend": [{
|
|
3887
|
-
"bg-blend":
|
|
3887
|
+
"bg-blend": V()
|
|
3888
3888
|
}],
|
|
3889
3889
|
/**
|
|
3890
3890
|
* Mask Clip
|
|
@@ -4804,7 +4804,7 @@ const Kd = (e, t) => {
|
|
|
4804
4804
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4805
4805
|
*/
|
|
4806
4806
|
"stroke-w": [{
|
|
4807
|
-
stroke: [ne, Ot, it,
|
|
4807
|
+
stroke: [ne, Ot, it, Er]
|
|
4808
4808
|
}],
|
|
4809
4809
|
/**
|
|
4810
4810
|
* Stroke
|
|
@@ -4879,13 +4879,13 @@ const Kd = (e, t) => {
|
|
|
4879
4879
|
},
|
|
4880
4880
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4881
4881
|
};
|
|
4882
|
-
}, zu = /* @__PURE__ */ hu(Du),
|
|
4882
|
+
}, zu = /* @__PURE__ */ hu(Du), H = (...e) => zu(Ns(e));
|
|
4883
4883
|
function zt({ className: e, ...t }) {
|
|
4884
4884
|
return /* @__PURE__ */ p(
|
|
4885
4885
|
"div",
|
|
4886
4886
|
{
|
|
4887
4887
|
"data-slot": "card",
|
|
4888
|
-
className:
|
|
4888
|
+
className: H(
|
|
4889
4889
|
"flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",
|
|
4890
4890
|
e
|
|
4891
4891
|
),
|
|
@@ -4898,7 +4898,7 @@ function $u({ className: e, ...t }) {
|
|
|
4898
4898
|
"div",
|
|
4899
4899
|
{
|
|
4900
4900
|
"data-slot": "card-header",
|
|
4901
|
-
className:
|
|
4901
|
+
className: H(
|
|
4902
4902
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
4903
4903
|
e
|
|
4904
4904
|
),
|
|
@@ -4911,18 +4911,18 @@ function $t({ className: e, ...t }) {
|
|
|
4911
4911
|
"div",
|
|
4912
4912
|
{
|
|
4913
4913
|
"data-slot": "card-content",
|
|
4914
|
-
className:
|
|
4914
|
+
className: H("px-6", e),
|
|
4915
4915
|
...t
|
|
4916
4916
|
}
|
|
4917
4917
|
);
|
|
4918
4918
|
}
|
|
4919
|
-
const
|
|
4919
|
+
const Tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Pr = Ns, kn = (e, t) => (n) => {
|
|
4920
4920
|
var o;
|
|
4921
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
4921
|
+
if ((t == null ? void 0 : t.variants) == null) return Pr(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4922
4922
|
const { variants: r, defaultVariants: s } = t, a = Object.keys(r).map((d) => {
|
|
4923
4923
|
const u = n == null ? void 0 : n[d], c = s == null ? void 0 : s[d];
|
|
4924
4924
|
if (u === null) return null;
|
|
4925
|
-
const m =
|
|
4925
|
+
const m = Tr(u) || Tr(c);
|
|
4926
4926
|
return r[d][m];
|
|
4927
4927
|
}), i = n && Object.entries(n).reduce((d, u) => {
|
|
4928
4928
|
let [c, m] = u;
|
|
@@ -4944,9 +4944,9 @@ const Nr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Tr = Ns, k
|
|
|
4944
4944
|
m
|
|
4945
4945
|
] : d;
|
|
4946
4946
|
}, []);
|
|
4947
|
-
return
|
|
4947
|
+
return Pr(e, a, l, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4948
4948
|
};
|
|
4949
|
-
function
|
|
4949
|
+
function Ar(e, t) {
|
|
4950
4950
|
if (typeof e == "function")
|
|
4951
4951
|
return e(t);
|
|
4952
4952
|
e != null && (e.current = t);
|
|
@@ -4955,14 +4955,14 @@ function Vs(...e) {
|
|
|
4955
4955
|
return (t) => {
|
|
4956
4956
|
let n = !1;
|
|
4957
4957
|
const o = e.map((r) => {
|
|
4958
|
-
const s =
|
|
4958
|
+
const s = Ar(r, t);
|
|
4959
4959
|
return !n && typeof s == "function" && (n = !0), s;
|
|
4960
4960
|
});
|
|
4961
4961
|
if (n)
|
|
4962
4962
|
return () => {
|
|
4963
4963
|
for (let r = 0; r < o.length; r++) {
|
|
4964
4964
|
const s = o[r];
|
|
4965
|
-
typeof s == "function" ? s() :
|
|
4965
|
+
typeof s == "function" ? s() : Ar(e[r], null);
|
|
4966
4966
|
}
|
|
4967
4967
|
};
|
|
4968
4968
|
};
|
|
@@ -5291,7 +5291,7 @@ function ht(e) {
|
|
|
5291
5291
|
n((o) => o ?? String(nf++));
|
|
5292
5292
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
5293
5293
|
}
|
|
5294
|
-
var En = "Collapsible", [of] = we(En), [rf,
|
|
5294
|
+
var En = "Collapsible", [of] = we(En), [rf, $o] = of(En), qs = f.forwardRef(
|
|
5295
5295
|
(e, t) => {
|
|
5296
5296
|
const {
|
|
5297
5297
|
__scopeCollapsible: n,
|
|
@@ -5317,7 +5317,7 @@ var En = "Collapsible", [of] = we(En), [rf, zo] = of(En), qs = f.forwardRef(
|
|
|
5317
5317
|
children: /* @__PURE__ */ p(
|
|
5318
5318
|
W.div,
|
|
5319
5319
|
{
|
|
5320
|
-
"data-state":
|
|
5320
|
+
"data-state": Bo(l),
|
|
5321
5321
|
"data-disabled": s ? "" : void 0,
|
|
5322
5322
|
...i,
|
|
5323
5323
|
ref: t
|
|
@@ -5330,14 +5330,14 @@ var En = "Collapsible", [of] = we(En), [rf, zo] = of(En), qs = f.forwardRef(
|
|
|
5330
5330
|
qs.displayName = En;
|
|
5331
5331
|
var Ks = "CollapsibleTrigger", Xs = f.forwardRef(
|
|
5332
5332
|
(e, t) => {
|
|
5333
|
-
const { __scopeCollapsible: n, ...o } = e, r =
|
|
5333
|
+
const { __scopeCollapsible: n, ...o } = e, r = $o(Ks, n);
|
|
5334
5334
|
return /* @__PURE__ */ p(
|
|
5335
5335
|
W.button,
|
|
5336
5336
|
{
|
|
5337
5337
|
type: "button",
|
|
5338
5338
|
"aria-controls": r.contentId,
|
|
5339
5339
|
"aria-expanded": r.open || !1,
|
|
5340
|
-
"data-state":
|
|
5340
|
+
"data-state": Bo(r.open),
|
|
5341
5341
|
"data-disabled": r.disabled ? "" : void 0,
|
|
5342
5342
|
disabled: r.disabled,
|
|
5343
5343
|
...o,
|
|
@@ -5348,15 +5348,15 @@ var Ks = "CollapsibleTrigger", Xs = f.forwardRef(
|
|
|
5348
5348
|
}
|
|
5349
5349
|
);
|
|
5350
5350
|
Xs.displayName = Ks;
|
|
5351
|
-
var
|
|
5351
|
+
var Fo = "CollapsibleContent", Zs = f.forwardRef(
|
|
5352
5352
|
(e, t) => {
|
|
5353
|
-
const { forceMount: n, ...o } = e, r =
|
|
5353
|
+
const { forceMount: n, ...o } = e, r = $o(Fo, e.__scopeCollapsible);
|
|
5354
5354
|
return /* @__PURE__ */ p(Le, { present: n || r.open, children: ({ present: s }) => /* @__PURE__ */ p(sf, { ...o, ref: t, present: s }) });
|
|
5355
5355
|
}
|
|
5356
5356
|
);
|
|
5357
|
-
Zs.displayName =
|
|
5357
|
+
Zs.displayName = Fo;
|
|
5358
5358
|
var sf = f.forwardRef((e, t) => {
|
|
5359
|
-
const { __scopeCollapsible: n, present: o, children: r, ...s } = e, a =
|
|
5359
|
+
const { __scopeCollapsible: n, present: o, children: r, ...s } = e, a = $o(Fo, n), [i, l] = f.useState(o), d = f.useRef(null), u = re(t, d), c = f.useRef(0), m = c.current, h = f.useRef(0), b = h.current, g = a.open || i, v = f.useRef(g), y = f.useRef(void 0);
|
|
5360
5360
|
return f.useEffect(() => {
|
|
5361
5361
|
const w = requestAnimationFrame(() => v.current = !1);
|
|
5362
5362
|
return () => cancelAnimationFrame(w);
|
|
@@ -5373,7 +5373,7 @@ var sf = f.forwardRef((e, t) => {
|
|
|
5373
5373
|
}, [a.open, o]), /* @__PURE__ */ p(
|
|
5374
5374
|
W.div,
|
|
5375
5375
|
{
|
|
5376
|
-
"data-state":
|
|
5376
|
+
"data-state": Bo(a.open),
|
|
5377
5377
|
"data-disabled": a.disabled ? "" : void 0,
|
|
5378
5378
|
id: a.contentId,
|
|
5379
5379
|
hidden: !g,
|
|
@@ -5388,7 +5388,7 @@ var sf = f.forwardRef((e, t) => {
|
|
|
5388
5388
|
}
|
|
5389
5389
|
);
|
|
5390
5390
|
});
|
|
5391
|
-
function
|
|
5391
|
+
function Bo(e) {
|
|
5392
5392
|
return e ? "open" : "closed";
|
|
5393
5393
|
}
|
|
5394
5394
|
var af = qs, lf = f.createContext(void 0);
|
|
@@ -5414,11 +5414,11 @@ function cf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5414
5414
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
5415
5415
|
}, [n, t]);
|
|
5416
5416
|
}
|
|
5417
|
-
var df = "DismissableLayer", ho = "dismissableLayer.update", uf = "dismissableLayer.pointerDownOutside", ff = "dismissableLayer.focusOutside",
|
|
5417
|
+
var df = "DismissableLayer", ho = "dismissableLayer.update", uf = "dismissableLayer.pointerDownOutside", ff = "dismissableLayer.focusOutside", _r, Js = f.createContext({
|
|
5418
5418
|
layers: /* @__PURE__ */ new Set(),
|
|
5419
5419
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5420
5420
|
branches: /* @__PURE__ */ new Set()
|
|
5421
|
-
}),
|
|
5421
|
+
}), Ho = f.forwardRef(
|
|
5422
5422
|
(e, t) => {
|
|
5423
5423
|
const {
|
|
5424
5424
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -5439,11 +5439,11 @@ var df = "DismissableLayer", ho = "dismissableLayer.update", uf = "dismissableLa
|
|
|
5439
5439
|
w === d.layers.size - 1 && (o == null || o(N), !N.defaultPrevented && i && (N.preventDefault(), i()));
|
|
5440
5440
|
}, m), f.useEffect(() => {
|
|
5441
5441
|
if (u)
|
|
5442
|
-
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
5443
|
-
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
5442
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (_r = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), Ir(), () => {
|
|
5443
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = _r);
|
|
5444
5444
|
};
|
|
5445
5445
|
}, [u, m, n, d]), f.useEffect(() => () => {
|
|
5446
|
-
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
5446
|
+
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), Ir());
|
|
5447
5447
|
}, [u, d]), f.useEffect(() => {
|
|
5448
5448
|
const N = () => h({});
|
|
5449
5449
|
return document.addEventListener(ho, N), () => document.removeEventListener(ho, N);
|
|
@@ -5466,7 +5466,7 @@ var df = "DismissableLayer", ho = "dismissableLayer.update", uf = "dismissableLa
|
|
|
5466
5466
|
);
|
|
5467
5467
|
}
|
|
5468
5468
|
);
|
|
5469
|
-
|
|
5469
|
+
Ho.displayName = df;
|
|
5470
5470
|
var pf = "DismissableLayerBranch", mf = f.forwardRef((e, t) => {
|
|
5471
5471
|
const n = f.useContext(Js), o = f.useRef(null), r = re(t, o);
|
|
5472
5472
|
return f.useEffect(() => {
|
|
@@ -5522,7 +5522,7 @@ function gf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5522
5522
|
onBlurCapture: () => o.current = !1
|
|
5523
5523
|
};
|
|
5524
5524
|
}
|
|
5525
|
-
function
|
|
5525
|
+
function Ir() {
|
|
5526
5526
|
const e = new CustomEvent(ho);
|
|
5527
5527
|
document.dispatchEvent(e);
|
|
5528
5528
|
}
|
|
@@ -5530,7 +5530,7 @@ function Qs(e, t, n, { discrete: o }) {
|
|
|
5530
5530
|
const r = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
5531
5531
|
t && r.addEventListener(e, t, { once: !0 }), o ? ju(r, s) : r.dispatchEvent(s);
|
|
5532
5532
|
}
|
|
5533
|
-
var Kn = "focusScope.autoFocusOnMount", Xn = "focusScope.autoFocusOnUnmount",
|
|
5533
|
+
var Kn = "focusScope.autoFocusOnMount", Xn = "focusScope.autoFocusOnUnmount", Mr = { bubbles: !1, cancelable: !0 }, vf = "FocusScope", ea = f.forwardRef((e, t) => {
|
|
5534
5534
|
const {
|
|
5535
5535
|
loop: n = !1,
|
|
5536
5536
|
trapped: o = !1,
|
|
@@ -5569,16 +5569,16 @@ var Kn = "focusScope.autoFocusOnMount", Xn = "focusScope.autoFocusOnUnmount", Ir
|
|
|
5569
5569
|
}
|
|
5570
5570
|
}, [o, i, h.paused]), f.useEffect(() => {
|
|
5571
5571
|
if (i) {
|
|
5572
|
-
|
|
5572
|
+
Lr.add(h);
|
|
5573
5573
|
const g = document.activeElement;
|
|
5574
5574
|
if (!i.contains(g)) {
|
|
5575
|
-
const y = new CustomEvent(Kn,
|
|
5575
|
+
const y = new CustomEvent(Kn, Mr);
|
|
5576
5576
|
i.addEventListener(Kn, d), i.dispatchEvent(y), y.defaultPrevented || (bf(Cf(ta(i)), { select: !0 }), document.activeElement === g && Je(i));
|
|
5577
5577
|
}
|
|
5578
5578
|
return () => {
|
|
5579
5579
|
i.removeEventListener(Kn, d), setTimeout(() => {
|
|
5580
|
-
const y = new CustomEvent(Xn,
|
|
5581
|
-
i.addEventListener(Xn, u), i.dispatchEvent(y), y.defaultPrevented || Je(g ?? document.body, { select: !0 }), i.removeEventListener(Xn, u),
|
|
5580
|
+
const y = new CustomEvent(Xn, Mr);
|
|
5581
|
+
i.addEventListener(Xn, u), i.dispatchEvent(y), y.defaultPrevented || Je(g ?? document.body, { select: !0 }), i.removeEventListener(Xn, u), Lr.remove(h);
|
|
5582
5582
|
}, 0);
|
|
5583
5583
|
};
|
|
5584
5584
|
}
|
|
@@ -5603,7 +5603,7 @@ function bf(e, { select: t = !1 } = {}) {
|
|
|
5603
5603
|
if (Je(o, { select: t }), document.activeElement !== n) return;
|
|
5604
5604
|
}
|
|
5605
5605
|
function yf(e) {
|
|
5606
|
-
const t = ta(e), n =
|
|
5606
|
+
const t = ta(e), n = Or(t, e), o = Or(t.reverse(), e);
|
|
5607
5607
|
return [n, o];
|
|
5608
5608
|
}
|
|
5609
5609
|
function ta(e) {
|
|
@@ -5616,7 +5616,7 @@ function ta(e) {
|
|
|
5616
5616
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
5617
5617
|
return t;
|
|
5618
5618
|
}
|
|
5619
|
-
function
|
|
5619
|
+
function Or(e, t) {
|
|
5620
5620
|
for (const n of e)
|
|
5621
5621
|
if (!wf(n, { upTo: t })) return n;
|
|
5622
5622
|
}
|
|
@@ -5638,45 +5638,45 @@ function Je(e, { select: t = !1 } = {}) {
|
|
|
5638
5638
|
e.focus({ preventScroll: !0 }), e !== n && xf(e) && t && e.select();
|
|
5639
5639
|
}
|
|
5640
5640
|
}
|
|
5641
|
-
var
|
|
5641
|
+
var Lr = Sf();
|
|
5642
5642
|
function Sf() {
|
|
5643
5643
|
let e = [];
|
|
5644
5644
|
return {
|
|
5645
5645
|
add(t) {
|
|
5646
5646
|
const n = e[0];
|
|
5647
|
-
t !== n && (n == null || n.pause()), e =
|
|
5647
|
+
t !== n && (n == null || n.pause()), e = Dr(e, t), e.unshift(t);
|
|
5648
5648
|
},
|
|
5649
5649
|
remove(t) {
|
|
5650
5650
|
var n;
|
|
5651
|
-
e =
|
|
5651
|
+
e = Dr(e, t), (n = e[0]) == null || n.resume();
|
|
5652
5652
|
}
|
|
5653
5653
|
};
|
|
5654
5654
|
}
|
|
5655
|
-
function
|
|
5655
|
+
function Dr(e, t) {
|
|
5656
5656
|
const n = [...e], o = n.indexOf(t);
|
|
5657
5657
|
return o !== -1 && n.splice(o, 1), n;
|
|
5658
5658
|
}
|
|
5659
5659
|
function Cf(e) {
|
|
5660
5660
|
return e.filter((t) => t.tagName !== "A");
|
|
5661
5661
|
}
|
|
5662
|
-
var kf = "Portal",
|
|
5662
|
+
var kf = "Portal", Vo = f.forwardRef((e, t) => {
|
|
5663
5663
|
var i;
|
|
5664
5664
|
const { container: n, ...o } = e, [r, s] = f.useState(!1);
|
|
5665
5665
|
de(() => s(!0), []);
|
|
5666
5666
|
const a = n || r && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
5667
|
-
return a ?
|
|
5667
|
+
return a ? fs.createPortal(/* @__PURE__ */ p(W.div, { ...o, ref: t }), a) : null;
|
|
5668
5668
|
});
|
|
5669
|
-
|
|
5669
|
+
Vo.displayName = kf;
|
|
5670
5670
|
var Zn = 0;
|
|
5671
5671
|
function Ef() {
|
|
5672
5672
|
f.useEffect(() => {
|
|
5673
5673
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
5674
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
5674
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? zr()), document.body.insertAdjacentElement("beforeend", e[1] ?? zr()), Zn++, () => {
|
|
5675
5675
|
Zn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Zn--;
|
|
5676
5676
|
};
|
|
5677
5677
|
}, []);
|
|
5678
5678
|
}
|
|
5679
|
-
function
|
|
5679
|
+
function zr() {
|
|
5680
5680
|
const e = document.createElement("span");
|
|
5681
5681
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
5682
5682
|
}
|
|
@@ -5727,7 +5727,7 @@ function Pf(e, t) {
|
|
|
5727
5727
|
})[0];
|
|
5728
5728
|
return n.callback = t, n.facade;
|
|
5729
5729
|
}
|
|
5730
|
-
var Af = typeof window < "u" ? f.useLayoutEffect : f.useEffect,
|
|
5730
|
+
var Af = typeof window < "u" ? f.useLayoutEffect : f.useEffect, $r = /* @__PURE__ */ new WeakMap();
|
|
5731
5731
|
function _f(e, t) {
|
|
5732
5732
|
var n = Pf(null, function(o) {
|
|
5733
5733
|
return e.forEach(function(r) {
|
|
@@ -5735,7 +5735,7 @@ function _f(e, t) {
|
|
|
5735
5735
|
});
|
|
5736
5736
|
});
|
|
5737
5737
|
return Af(function() {
|
|
5738
|
-
var o =
|
|
5738
|
+
var o = $r.get(n);
|
|
5739
5739
|
if (o) {
|
|
5740
5740
|
var r = new Set(o), s = new Set(e), a = n.current;
|
|
5741
5741
|
r.forEach(function(i) {
|
|
@@ -5744,7 +5744,7 @@ function _f(e, t) {
|
|
|
5744
5744
|
r.has(i) || Jn(i, a);
|
|
5745
5745
|
});
|
|
5746
5746
|
}
|
|
5747
|
-
|
|
5747
|
+
$r.set(n, e);
|
|
5748
5748
|
}, [e]), n;
|
|
5749
5749
|
}
|
|
5750
5750
|
function If(e) {
|
|
@@ -5954,13 +5954,13 @@ var Bf = function() {
|
|
|
5954
5954
|
`).concat(Tf, ": ").concat(i, `px;
|
|
5955
5955
|
}
|
|
5956
5956
|
`);
|
|
5957
|
-
},
|
|
5957
|
+
}, Fr = function() {
|
|
5958
5958
|
var e = parseInt(document.body.getAttribute(kt) || "0", 10);
|
|
5959
5959
|
return isFinite(e) ? e : 0;
|
|
5960
5960
|
}, Yf = function() {
|
|
5961
5961
|
f.useEffect(function() {
|
|
5962
|
-
return document.body.setAttribute(kt, (
|
|
5963
|
-
var e =
|
|
5962
|
+
return document.body.setAttribute(kt, (Fr() + 1).toString()), function() {
|
|
5963
|
+
var e = Fr() - 1;
|
|
5964
5964
|
e <= 0 ? document.body.removeAttribute(kt) : document.body.setAttribute(kt, e.toString());
|
|
5965
5965
|
};
|
|
5966
5966
|
}, []);
|
|
@@ -5998,7 +5998,7 @@ var wt = go ? { passive: !1 } : !1, Kf = function(e) {
|
|
|
5998
5998
|
return aa(e, "overflowY");
|
|
5999
5999
|
}, Zf = function(e) {
|
|
6000
6000
|
return aa(e, "overflowX");
|
|
6001
|
-
},
|
|
6001
|
+
}, Br = function(e, t) {
|
|
6002
6002
|
var n = t.ownerDocument, o = t;
|
|
6003
6003
|
do {
|
|
6004
6004
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
@@ -6048,9 +6048,9 @@ var wt = go ? { passive: !1 } : !1, Kf = function(e) {
|
|
|
6048
6048
|
return (u && Math.abs(c) < 1 || !u && Math.abs(m) < 1) && (d = !0), d;
|
|
6049
6049
|
}, rn = function(e) {
|
|
6050
6050
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
6051
|
-
}, Br = function(e) {
|
|
6052
|
-
return [e.deltaX, e.deltaY];
|
|
6053
6051
|
}, Hr = function(e) {
|
|
6052
|
+
return [e.deltaX, e.deltaY];
|
|
6053
|
+
}, Vr = function(e) {
|
|
6054
6054
|
return e && "current" in e ? e.current : e;
|
|
6055
6055
|
}, np = function(e, t) {
|
|
6056
6056
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -6067,7 +6067,7 @@ function sp(e) {
|
|
|
6067
6067
|
}, [e]), f.useEffect(function() {
|
|
6068
6068
|
if (e.inert) {
|
|
6069
6069
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
6070
|
-
var g = Rf([e.lockRef.current], (e.shards || []).map(
|
|
6070
|
+
var g = Rf([e.lockRef.current], (e.shards || []).map(Vr), !0).filter(Boolean);
|
|
6071
6071
|
return g.forEach(function(v) {
|
|
6072
6072
|
return v.classList.add("allow-interactivity-".concat(r));
|
|
6073
6073
|
}), function() {
|
|
@@ -6086,10 +6086,10 @@ function sp(e) {
|
|
|
6086
6086
|
var k = window.getSelection(), M = k && k.anchorNode, L = M ? M === R || M.contains(R) : !1;
|
|
6087
6087
|
if (L)
|
|
6088
6088
|
return !1;
|
|
6089
|
-
var $ =
|
|
6089
|
+
var $ = Br(N, R);
|
|
6090
6090
|
if (!$)
|
|
6091
6091
|
return !0;
|
|
6092
|
-
if ($ ? E = N : (E = N === "v" ? "h" : "v", $ =
|
|
6092
|
+
if ($ ? E = N : (E = N === "v" ? "h" : "v", $ = Br(N, R)), !$)
|
|
6093
6093
|
return !1;
|
|
6094
6094
|
if (!o.current && "changedTouches" in g && (x || C) && (o.current = E), !E)
|
|
6095
6095
|
return !0;
|
|
@@ -6098,7 +6098,7 @@ function sp(e) {
|
|
|
6098
6098
|
}, []), l = f.useCallback(function(g) {
|
|
6099
6099
|
var v = g;
|
|
6100
6100
|
if (!(!xt.length || xt[xt.length - 1] !== s)) {
|
|
6101
|
-
var y = "deltaY" in v ?
|
|
6101
|
+
var y = "deltaY" in v ? Hr(v) : rn(v), w = t.current.filter(function(E) {
|
|
6102
6102
|
return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && np(E.delta, y);
|
|
6103
6103
|
})[0];
|
|
6104
6104
|
if (w && w.should) {
|
|
@@ -6106,7 +6106,7 @@ function sp(e) {
|
|
|
6106
6106
|
return;
|
|
6107
6107
|
}
|
|
6108
6108
|
if (!w) {
|
|
6109
|
-
var x = (a.current.shards || []).map(
|
|
6109
|
+
var x = (a.current.shards || []).map(Vr).filter(Boolean).filter(function(E) {
|
|
6110
6110
|
return E.contains(v.target);
|
|
6111
6111
|
}), C = x.length > 0 ? i(v, x[0]) : !a.current.noIsolation;
|
|
6112
6112
|
C && v.cancelable && v.preventDefault();
|
|
@@ -6122,7 +6122,7 @@ function sp(e) {
|
|
|
6122
6122
|
}, []), u = f.useCallback(function(g) {
|
|
6123
6123
|
n.current = rn(g), o.current = void 0;
|
|
6124
6124
|
}, []), c = f.useCallback(function(g) {
|
|
6125
|
-
d(g.type,
|
|
6125
|
+
d(g.type, Hr(g), g.target, i(g, e.lockRef.current));
|
|
6126
6126
|
}, []), m = f.useCallback(function(g) {
|
|
6127
6127
|
d(g.type, rn(g), g.target, i(g, e.lockRef.current));
|
|
6128
6128
|
}, []);
|
|
@@ -6213,10 +6213,10 @@ var lp = function(e) {
|
|
|
6213
6213
|
* This source code is licensed under the MIT license found in the
|
|
6214
6214
|
* LICENSE file in the root directory of this source tree.
|
|
6215
6215
|
*/
|
|
6216
|
-
var
|
|
6216
|
+
var Wr;
|
|
6217
6217
|
function fp() {
|
|
6218
|
-
if (
|
|
6219
|
-
|
|
6218
|
+
if (Wr) return oo;
|
|
6219
|
+
Wr = 1;
|
|
6220
6220
|
var e = _;
|
|
6221
6221
|
function t(c, m) {
|
|
6222
6222
|
return c === m && (c !== 0 || 1 / c === 1 / m) || c !== c && m !== m;
|
|
@@ -6254,9 +6254,9 @@ function fp() {
|
|
|
6254
6254
|
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
|
|
6255
6255
|
return oo.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, oo;
|
|
6256
6256
|
}
|
|
6257
|
-
var
|
|
6257
|
+
var Ur;
|
|
6258
6258
|
function pp() {
|
|
6259
|
-
return
|
|
6259
|
+
return Ur || (Ur = 1, no.exports = fp()), no.exports;
|
|
6260
6260
|
}
|
|
6261
6261
|
var mp = pp();
|
|
6262
6262
|
function hp() {
|
|
@@ -6270,7 +6270,7 @@ function gp() {
|
|
|
6270
6270
|
return () => {
|
|
6271
6271
|
};
|
|
6272
6272
|
}
|
|
6273
|
-
var
|
|
6273
|
+
var Wo = "Avatar", [vp] = we(Wo), [bp, ua] = vp(Wo), fa = f.forwardRef(
|
|
6274
6274
|
(e, t) => {
|
|
6275
6275
|
const { __scopeAvatar: n, ...o } = e, [r, s] = f.useState("idle");
|
|
6276
6276
|
return /* @__PURE__ */ p(
|
|
@@ -6284,7 +6284,7 @@ var Vo = "Avatar", [vp] = we(Vo), [bp, ua] = vp(Vo), fa = f.forwardRef(
|
|
|
6284
6284
|
);
|
|
6285
6285
|
}
|
|
6286
6286
|
);
|
|
6287
|
-
fa.displayName =
|
|
6287
|
+
fa.displayName = Wo;
|
|
6288
6288
|
var pa = "AvatarImage", ma = f.forwardRef(
|
|
6289
6289
|
(e, t) => {
|
|
6290
6290
|
const { __scopeAvatar: n, src: o, onLoadingStatusChange: r = () => {
|
|
@@ -6309,15 +6309,15 @@ var ha = "AvatarFallback", ga = f.forwardRef(
|
|
|
6309
6309
|
}
|
|
6310
6310
|
);
|
|
6311
6311
|
ga.displayName = ha;
|
|
6312
|
-
function
|
|
6312
|
+
function jr(e, t) {
|
|
6313
6313
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
6314
6314
|
}
|
|
6315
6315
|
function yp(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
6316
6316
|
const o = hp(), r = f.useRef(null), s = o ? (r.current || (r.current = new window.Image()), r.current) : null, [a, i] = f.useState(
|
|
6317
|
-
() =>
|
|
6317
|
+
() => jr(s, e)
|
|
6318
6318
|
);
|
|
6319
6319
|
return de(() => {
|
|
6320
|
-
i(
|
|
6320
|
+
i(jr(s, e));
|
|
6321
6321
|
}, [s, e]), de(() => {
|
|
6322
6322
|
const l = (c) => () => {
|
|
6323
6323
|
i(c);
|
|
@@ -6356,7 +6356,7 @@ function Tn(e) {
|
|
|
6356
6356
|
n(void 0);
|
|
6357
6357
|
}, [e]), t;
|
|
6358
6358
|
}
|
|
6359
|
-
var Pn = "Checkbox", [Cp] = we(Pn), [kp,
|
|
6359
|
+
var Pn = "Checkbox", [Cp] = we(Pn), [kp, Uo] = Cp(Pn);
|
|
6360
6360
|
function Ep(e) {
|
|
6361
6361
|
const {
|
|
6362
6362
|
__scopeCheckbox: t,
|
|
@@ -6417,7 +6417,7 @@ var va = "CheckboxTrigger", ba = f.forwardRef(
|
|
|
6417
6417
|
hasConsumerStoppedPropagationRef: m,
|
|
6418
6418
|
isFormControl: h,
|
|
6419
6419
|
bubbleInput: b
|
|
6420
|
-
} =
|
|
6420
|
+
} = Uo(va, e), g = re(r, u), v = f.useRef(l);
|
|
6421
6421
|
return f.useEffect(() => {
|
|
6422
6422
|
const y = s == null ? void 0 : s.form;
|
|
6423
6423
|
if (y) {
|
|
@@ -6497,7 +6497,7 @@ var ya = f.forwardRef(
|
|
|
6497
6497
|
ya.displayName = Pn;
|
|
6498
6498
|
var wa = "CheckboxIndicator", xa = f.forwardRef(
|
|
6499
6499
|
(e, t) => {
|
|
6500
|
-
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s =
|
|
6500
|
+
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s = Uo(wa, n);
|
|
6501
6501
|
return /* @__PURE__ */ p(
|
|
6502
6502
|
Le,
|
|
6503
6503
|
{
|
|
@@ -6531,7 +6531,7 @@ var Sa = "CheckboxBubbleInput", Ca = f.forwardRef(
|
|
|
6531
6531
|
form: c,
|
|
6532
6532
|
bubbleInput: m,
|
|
6533
6533
|
setBubbleInput: h
|
|
6534
|
-
} =
|
|
6534
|
+
} = Uo(Sa, e), b = re(n, h), g = Nn(s), v = Tn(o);
|
|
6535
6535
|
f.useEffect(() => {
|
|
6536
6536
|
const w = m;
|
|
6537
6537
|
if (!w) return;
|
|
@@ -6606,22 +6606,22 @@ function Ge(e) {
|
|
|
6606
6606
|
function At(e) {
|
|
6607
6607
|
return e.split("-")[1];
|
|
6608
6608
|
}
|
|
6609
|
-
function
|
|
6609
|
+
function jo(e) {
|
|
6610
6610
|
return e === "x" ? "y" : "x";
|
|
6611
6611
|
}
|
|
6612
|
-
function
|
|
6612
|
+
function Go(e) {
|
|
6613
6613
|
return e === "y" ? "height" : "width";
|
|
6614
6614
|
}
|
|
6615
6615
|
function $e(e) {
|
|
6616
6616
|
const t = e[0];
|
|
6617
6617
|
return t === "t" || t === "b" ? "y" : "x";
|
|
6618
6618
|
}
|
|
6619
|
-
function
|
|
6620
|
-
return
|
|
6619
|
+
function Yo(e) {
|
|
6620
|
+
return jo($e(e));
|
|
6621
6621
|
}
|
|
6622
6622
|
function Pp(e, t, n) {
|
|
6623
6623
|
n === void 0 && (n = !1);
|
|
6624
|
-
const o = At(e), r =
|
|
6624
|
+
const o = At(e), r = Yo(e), s = Go(r);
|
|
6625
6625
|
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
6626
6626
|
return t.reference[s] > t.floating[s] && (a = hn(a)), [a, hn(a)];
|
|
6627
6627
|
}
|
|
@@ -6632,12 +6632,12 @@ function Ap(e) {
|
|
|
6632
6632
|
function bo(e) {
|
|
6633
6633
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
6634
6634
|
}
|
|
6635
|
-
const
|
|
6635
|
+
const Gr = ["left", "right"], Yr = ["right", "left"], _p = ["top", "bottom"], Ip = ["bottom", "top"];
|
|
6636
6636
|
function Mp(e, t, n) {
|
|
6637
6637
|
switch (e) {
|
|
6638
6638
|
case "top":
|
|
6639
6639
|
case "bottom":
|
|
6640
|
-
return n ? t ?
|
|
6640
|
+
return n ? t ? Yr : Gr : t ? Gr : Yr;
|
|
6641
6641
|
case "left":
|
|
6642
6642
|
case "right":
|
|
6643
6643
|
return t ? _p : Ip;
|
|
@@ -6689,12 +6689,12 @@ function gn(e) {
|
|
|
6689
6689
|
y: n
|
|
6690
6690
|
};
|
|
6691
6691
|
}
|
|
6692
|
-
function
|
|
6692
|
+
function qr(e, t, n) {
|
|
6693
6693
|
let {
|
|
6694
6694
|
reference: o,
|
|
6695
6695
|
floating: r
|
|
6696
6696
|
} = e;
|
|
6697
|
-
const s = $e(t), a =
|
|
6697
|
+
const s = $e(t), a = Yo(t), i = Go(a), l = Ge(t), d = s === "y", u = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[i] / 2 - r[i] / 2;
|
|
6698
6698
|
let h;
|
|
6699
6699
|
switch (l) {
|
|
6700
6700
|
case "top":
|
|
@@ -6799,7 +6799,7 @@ const zp = 50, $p = async (e, t, n) => {
|
|
|
6799
6799
|
}), {
|
|
6800
6800
|
x: u,
|
|
6801
6801
|
y: c
|
|
6802
|
-
} =
|
|
6802
|
+
} = qr(d, o, l), m = o, h = 0;
|
|
6803
6803
|
const b = {};
|
|
6804
6804
|
for (let g = 0; g < s.length; g++) {
|
|
6805
6805
|
const v = s[g];
|
|
@@ -6837,7 +6837,7 @@ const zp = 50, $p = async (e, t, n) => {
|
|
|
6837
6837
|
}) : R.rects), {
|
|
6838
6838
|
x: u,
|
|
6839
6839
|
y: c
|
|
6840
|
-
} =
|
|
6840
|
+
} = qr(d, m, l)), g = -1);
|
|
6841
6841
|
}
|
|
6842
6842
|
return {
|
|
6843
6843
|
x: u,
|
|
@@ -6867,7 +6867,7 @@ const zp = 50, $p = async (e, t, n) => {
|
|
|
6867
6867
|
const c = Ea(u), m = {
|
|
6868
6868
|
x: n,
|
|
6869
6869
|
y: o
|
|
6870
|
-
}, h =
|
|
6870
|
+
}, h = Yo(r), b = Go(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], E = m[h] - s.reference[h], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
6871
6871
|
let N = R ? R[x] : 0;
|
|
6872
6872
|
(!N || !await (a.isElement == null ? void 0 : a.isElement(R))) && (N = i.floating[x] || s.floating[b]);
|
|
6873
6873
|
const k = C / 2 - E / 2, M = N / 2 - g[b] / 2 - 1, L = et(c[y], M), $ = et(c[w], M), j = L, U = N - g[b] - $, K = N / 2 - g[b] / 2 + k, I = vo(j, K, U), S = !l.arrow && At(r) != null && K !== I && s.reference[b] / 2 - (K < j ? L : $) - g[b] / 2 < 0, T = S ? K < j ? K - j : K - U : 0;
|
|
@@ -6965,7 +6965,7 @@ const zp = 50, $p = async (e, t, n) => {
|
|
|
6965
6965
|
}
|
|
6966
6966
|
};
|
|
6967
6967
|
};
|
|
6968
|
-
function
|
|
6968
|
+
function Kr(e, t) {
|
|
6969
6969
|
return {
|
|
6970
6970
|
top: e.top - t.height,
|
|
6971
6971
|
right: e.right - t.width,
|
|
@@ -6973,7 +6973,7 @@ function qr(e, t) {
|
|
|
6973
6973
|
left: e.left - t.width
|
|
6974
6974
|
};
|
|
6975
6975
|
}
|
|
6976
|
-
function
|
|
6976
|
+
function Xr(e) {
|
|
6977
6977
|
return Np.some((t) => e[t] >= 0);
|
|
6978
6978
|
}
|
|
6979
6979
|
const Hp = function(e) {
|
|
@@ -6993,11 +6993,11 @@ const Hp = function(e) {
|
|
|
6993
6993
|
const a = await o.detectOverflow(t, {
|
|
6994
6994
|
...s,
|
|
6995
6995
|
elementContext: "reference"
|
|
6996
|
-
}), i =
|
|
6996
|
+
}), i = Kr(a, n.reference);
|
|
6997
6997
|
return {
|
|
6998
6998
|
data: {
|
|
6999
6999
|
referenceHiddenOffsets: i,
|
|
7000
|
-
referenceHidden:
|
|
7000
|
+
referenceHidden: Xr(i)
|
|
7001
7001
|
}
|
|
7002
7002
|
};
|
|
7003
7003
|
}
|
|
@@ -7005,11 +7005,11 @@ const Hp = function(e) {
|
|
|
7005
7005
|
const a = await o.detectOverflow(t, {
|
|
7006
7006
|
...s,
|
|
7007
7007
|
altBoundary: !0
|
|
7008
|
-
}), i =
|
|
7008
|
+
}), i = Kr(a, n.floating);
|
|
7009
7009
|
return {
|
|
7010
7010
|
data: {
|
|
7011
7011
|
escapedOffsets: i,
|
|
7012
|
-
escaped:
|
|
7012
|
+
escaped: Xr(i)
|
|
7013
7013
|
}
|
|
7014
7014
|
};
|
|
7015
7015
|
}
|
|
@@ -7097,7 +7097,7 @@ const Wp = function(e) {
|
|
|
7097
7097
|
} = je(e, t), u = {
|
|
7098
7098
|
x: n,
|
|
7099
7099
|
y: o
|
|
7100
|
-
}, c = await s.detectOverflow(t, d), m = $e(Ge(r)), h =
|
|
7100
|
+
}, c = await s.detectOverflow(t, d), m = $e(Ge(r)), h = jo(m);
|
|
7101
7101
|
let b = u[h], g = u[m];
|
|
7102
7102
|
if (a) {
|
|
7103
7103
|
const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = b + c[y], C = b - c[w];
|
|
@@ -7142,7 +7142,7 @@ const Wp = function(e) {
|
|
|
7142
7142
|
} = je(e, t), u = {
|
|
7143
7143
|
x: n,
|
|
7144
7144
|
y: o
|
|
7145
|
-
}, c = $e(r), m =
|
|
7145
|
+
}, c = $e(r), m = jo(c);
|
|
7146
7146
|
let h = u[m], b = u[c];
|
|
7147
7147
|
const g = je(i, t), v = typeof g == "number" ? {
|
|
7148
7148
|
mainAxis: g,
|
|
@@ -7231,7 +7231,7 @@ function Me(e) {
|
|
|
7231
7231
|
function Ye(e) {
|
|
7232
7232
|
return An() ? e instanceof HTMLElement || e instanceof ke(e).HTMLElement : !1;
|
|
7233
7233
|
}
|
|
7234
|
-
function
|
|
7234
|
+
function Zr(e) {
|
|
7235
7235
|
return !An() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ke(e).ShadowRoot;
|
|
7236
7236
|
}
|
|
7237
7237
|
function jt(e) {
|
|
@@ -7260,14 +7260,14 @@ function _n(e) {
|
|
|
7260
7260
|
}
|
|
7261
7261
|
const qp = /transform|translate|scale|rotate|perspective|filter/, Kp = /paint|layout|strict|content/, lt = (e) => !!e && e !== "none";
|
|
7262
7262
|
let ro;
|
|
7263
|
-
function
|
|
7263
|
+
function qo(e) {
|
|
7264
7264
|
const t = Me(e) ? Oe(e) : e;
|
|
7265
|
-
return lt(t.transform) || lt(t.translate) || lt(t.scale) || lt(t.rotate) || lt(t.perspective) || !
|
|
7265
|
+
return lt(t.transform) || lt(t.translate) || lt(t.scale) || lt(t.rotate) || lt(t.perspective) || !Ko() && (lt(t.backdropFilter) || lt(t.filter)) || qp.test(t.willChange || "") || Kp.test(t.contain || "");
|
|
7266
7266
|
}
|
|
7267
7267
|
function Xp(e) {
|
|
7268
7268
|
let t = tt(e);
|
|
7269
7269
|
for (; Ye(t) && !Nt(t); ) {
|
|
7270
|
-
if (
|
|
7270
|
+
if (qo(t))
|
|
7271
7271
|
return t;
|
|
7272
7272
|
if (_n(t))
|
|
7273
7273
|
return null;
|
|
@@ -7275,7 +7275,7 @@ function Xp(e) {
|
|
|
7275
7275
|
}
|
|
7276
7276
|
return null;
|
|
7277
7277
|
}
|
|
7278
|
-
function
|
|
7278
|
+
function Ko() {
|
|
7279
7279
|
return ro == null && (ro = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ro;
|
|
7280
7280
|
}
|
|
7281
7281
|
function Nt(e) {
|
|
@@ -7300,10 +7300,10 @@ function tt(e) {
|
|
|
7300
7300
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
7301
7301
|
e.assignedSlot || // DOM Element detected.
|
|
7302
7302
|
e.parentNode || // ShadowRoot detected.
|
|
7303
|
-
|
|
7303
|
+
Zr(e) && e.host || // Fallback.
|
|
7304
7304
|
Be(e)
|
|
7305
7305
|
);
|
|
7306
|
-
return
|
|
7306
|
+
return Zr(t) ? t.host : t;
|
|
7307
7307
|
}
|
|
7308
7308
|
function Ta(e) {
|
|
7309
7309
|
const t = tt(e);
|
|
@@ -7332,11 +7332,11 @@ function Pa(e) {
|
|
|
7332
7332
|
$: i
|
|
7333
7333
|
};
|
|
7334
7334
|
}
|
|
7335
|
-
function
|
|
7335
|
+
function Xo(e) {
|
|
7336
7336
|
return Me(e) ? e : e.contextElement;
|
|
7337
7337
|
}
|
|
7338
7338
|
function Et(e) {
|
|
7339
|
-
const t =
|
|
7339
|
+
const t = Xo(e);
|
|
7340
7340
|
if (!Ye(t))
|
|
7341
7341
|
return Fe(1);
|
|
7342
7342
|
const n = t.getBoundingClientRect(), {
|
|
@@ -7353,7 +7353,7 @@ function Et(e) {
|
|
|
7353
7353
|
const Zp = /* @__PURE__ */ Fe(0);
|
|
7354
7354
|
function Aa(e) {
|
|
7355
7355
|
const t = ke(e);
|
|
7356
|
-
return !
|
|
7356
|
+
return !Ko() || !t.visualViewport ? Zp : {
|
|
7357
7357
|
x: t.visualViewport.offsetLeft,
|
|
7358
7358
|
y: t.visualViewport.offsetTop
|
|
7359
7359
|
};
|
|
@@ -7363,7 +7363,7 @@ function Jp(e, t, n) {
|
|
|
7363
7363
|
}
|
|
7364
7364
|
function ut(e, t, n, o) {
|
|
7365
7365
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7366
|
-
const r = e.getBoundingClientRect(), s =
|
|
7366
|
+
const r = e.getBoundingClientRect(), s = Xo(e);
|
|
7367
7367
|
let a = Fe(1);
|
|
7368
7368
|
t && (o ? Me(o) && (a = Et(o)) : a = Et(e));
|
|
7369
7369
|
const i = Jp(s, n, o) ? Aa(s) : Fe(0);
|
|
@@ -7435,20 +7435,20 @@ function tm(e) {
|
|
|
7435
7435
|
y: i
|
|
7436
7436
|
};
|
|
7437
7437
|
}
|
|
7438
|
-
const
|
|
7438
|
+
const Jr = 25;
|
|
7439
7439
|
function nm(e, t) {
|
|
7440
7440
|
const n = ke(e), o = Be(e), r = n.visualViewport;
|
|
7441
7441
|
let s = o.clientWidth, a = o.clientHeight, i = 0, l = 0;
|
|
7442
7442
|
if (r) {
|
|
7443
7443
|
s = r.width, a = r.height;
|
|
7444
|
-
const u =
|
|
7444
|
+
const u = Ko();
|
|
7445
7445
|
(!u || u && t === "fixed") && (i = r.offsetLeft, l = r.offsetTop);
|
|
7446
7446
|
}
|
|
7447
7447
|
const d = Mn(o);
|
|
7448
7448
|
if (d <= 0) {
|
|
7449
7449
|
const u = o.ownerDocument, c = u.body, m = getComputedStyle(c), h = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, b = Math.abs(o.clientWidth - c.clientWidth - h);
|
|
7450
|
-
b <=
|
|
7451
|
-
} else d <=
|
|
7450
|
+
b <= Jr && (s -= b);
|
|
7451
|
+
} else d <= Jr && (s += d);
|
|
7452
7452
|
return {
|
|
7453
7453
|
width: s,
|
|
7454
7454
|
height: a,
|
|
@@ -7465,7 +7465,7 @@ function om(e, t) {
|
|
|
7465
7465
|
y: d
|
|
7466
7466
|
};
|
|
7467
7467
|
}
|
|
7468
|
-
function
|
|
7468
|
+
function Qr(e, t, n) {
|
|
7469
7469
|
let o;
|
|
7470
7470
|
if (t === "viewport")
|
|
7471
7471
|
o = nm(e, n);
|
|
@@ -7496,7 +7496,7 @@ function rm(e, t) {
|
|
|
7496
7496
|
const s = Oe(e).position === "fixed";
|
|
7497
7497
|
let a = s ? tt(e) : e;
|
|
7498
7498
|
for (; Me(a) && !Nt(a); ) {
|
|
7499
|
-
const i = Oe(a), l =
|
|
7499
|
+
const i = Oe(a), l = qo(a);
|
|
7500
7500
|
!l && i.position === "fixed" && (r = null), (s ? !l && !r : !l && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || jt(a) && !l && Ia(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = tt(a);
|
|
7501
7501
|
}
|
|
7502
7502
|
return t.set(e, o), o;
|
|
@@ -7508,10 +7508,10 @@ function sm(e) {
|
|
|
7508
7508
|
rootBoundary: o,
|
|
7509
7509
|
strategy: r
|
|
7510
7510
|
} = e;
|
|
7511
|
-
const a = [...n === "clippingAncestors" ? _n(t) ? [] : rm(t, this._c) : [].concat(n), o], i =
|
|
7511
|
+
const a = [...n === "clippingAncestors" ? _n(t) ? [] : rm(t, this._c) : [].concat(n), o], i = Qr(t, a[0], r);
|
|
7512
7512
|
let l = i.top, d = i.right, u = i.bottom, c = i.left;
|
|
7513
7513
|
for (let m = 1; m < a.length; m++) {
|
|
7514
|
-
const h =
|
|
7514
|
+
const h = Qr(t, a[m], r);
|
|
7515
7515
|
l = Ce(h.top, l), d = et(h.right, d), u = et(h.bottom, u), c = Ce(h.left, c);
|
|
7516
7516
|
}
|
|
7517
7517
|
return {
|
|
@@ -7558,7 +7558,7 @@ function im(e, t, n) {
|
|
|
7558
7558
|
function so(e) {
|
|
7559
7559
|
return Oe(e).position === "static";
|
|
7560
7560
|
}
|
|
7561
|
-
function
|
|
7561
|
+
function es(e, t) {
|
|
7562
7562
|
if (!Ye(e) || Oe(e).position === "fixed")
|
|
7563
7563
|
return null;
|
|
7564
7564
|
if (t)
|
|
@@ -7579,10 +7579,10 @@ function Ma(e, t) {
|
|
|
7579
7579
|
}
|
|
7580
7580
|
return n;
|
|
7581
7581
|
}
|
|
7582
|
-
let o =
|
|
7582
|
+
let o = es(e, t);
|
|
7583
7583
|
for (; o && Yp(o) && so(o); )
|
|
7584
|
-
o =
|
|
7585
|
-
return o && Nt(o) && so(o) && !
|
|
7584
|
+
o = es(o, t);
|
|
7585
|
+
return o && Nt(o) && so(o) && !qo(o) ? n : o || Xp(e) || n;
|
|
7586
7586
|
}
|
|
7587
7587
|
const lm = async function(e) {
|
|
7588
7588
|
const t = this.getOffsetParent || Ma, n = this.getDimensions, o = await n(e.floating);
|
|
@@ -7668,7 +7668,7 @@ function fm(e, t, n, o) {
|
|
|
7668
7668
|
elementResize: a = typeof ResizeObserver == "function",
|
|
7669
7669
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
7670
7670
|
animationFrame: l = !1
|
|
7671
|
-
} = o, d =
|
|
7671
|
+
} = o, d = Xo(e), u = r || s ? [...d ? Ht(d) : [], ...t ? Ht(t) : []] : [];
|
|
7672
7672
|
u.forEach((y) => {
|
|
7673
7673
|
r && y.addEventListener("scroll", n, {
|
|
7674
7674
|
passive: !0
|
|
@@ -7696,7 +7696,7 @@ function fm(e, t, n, o) {
|
|
|
7696
7696
|
}), c == null || c(), (y = h) == null || y.disconnect(), h = null, l && cancelAnimationFrame(b);
|
|
7697
7697
|
};
|
|
7698
7698
|
}
|
|
7699
|
-
const pm = Wp, mm = Up, hm = Bp, gm = Gp, vm = Hp,
|
|
7699
|
+
const pm = Wp, mm = Up, hm = Bp, gm = Gp, vm = Hp, ts = Fp, bm = jp, ym = (e, t, n) => {
|
|
7700
7700
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
7701
7701
|
platform: dm,
|
|
7702
7702
|
...n
|
|
@@ -7744,7 +7744,7 @@ function vn(e, t) {
|
|
|
7744
7744
|
function La(e) {
|
|
7745
7745
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
7746
7746
|
}
|
|
7747
|
-
function
|
|
7747
|
+
function ns(e, t) {
|
|
7748
7748
|
const n = La(e);
|
|
7749
7749
|
return Math.round(t * n) / n;
|
|
7750
7750
|
}
|
|
@@ -7835,7 +7835,7 @@ function Sm(e) {
|
|
|
7835
7835
|
};
|
|
7836
7836
|
if (!S.floating)
|
|
7837
7837
|
return A;
|
|
7838
|
-
const O =
|
|
7838
|
+
const O = ns(S.floating, u.x), P = ns(S.floating, u.y);
|
|
7839
7839
|
return i ? {
|
|
7840
7840
|
...A,
|
|
7841
7841
|
transform: "translate(" + O + "px, " + P + "px)",
|
|
@@ -7868,10 +7868,10 @@ const Cm = (e) => {
|
|
|
7868
7868
|
element: o,
|
|
7869
7869
|
padding: r
|
|
7870
7870
|
} = typeof e == "function" ? e(n) : e;
|
|
7871
|
-
return o && t(o) ? o.current != null ?
|
|
7871
|
+
return o && t(o) ? o.current != null ? ts({
|
|
7872
7872
|
element: o.current,
|
|
7873
7873
|
padding: r
|
|
7874
|
-
}).fn(n) : {} : o ?
|
|
7874
|
+
}).fn(n) : {} : o ? ts({
|
|
7875
7875
|
element: o,
|
|
7876
7876
|
padding: r
|
|
7877
7877
|
}).fn(n) : {};
|
|
@@ -7939,11 +7939,11 @@ var _m = "Arrow", Da = f.forwardRef((e, t) => {
|
|
|
7939
7939
|
);
|
|
7940
7940
|
});
|
|
7941
7941
|
Da.displayName = _m;
|
|
7942
|
-
var Im = Da,
|
|
7942
|
+
var Im = Da, Zo = "Popper", [za, On] = we(Zo), [Mm, $a] = za(Zo), Fa = (e) => {
|
|
7943
7943
|
const { __scopePopper: t, children: n } = e, [o, r] = f.useState(null);
|
|
7944
7944
|
return /* @__PURE__ */ p(Mm, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
7945
7945
|
};
|
|
7946
|
-
Fa.displayName =
|
|
7946
|
+
Fa.displayName = Zo;
|
|
7947
7947
|
var Ba = "PopperAnchor", Ha = f.forwardRef(
|
|
7948
7948
|
(e, t) => {
|
|
7949
7949
|
const { __scopePopper: n, virtualRef: o, ...r } = e, s = $a(Ba, n), a = f.useRef(null), i = re(t, a), l = f.useRef(null);
|
|
@@ -7954,9 +7954,9 @@ var Ba = "PopperAnchor", Ha = f.forwardRef(
|
|
|
7954
7954
|
}
|
|
7955
7955
|
);
|
|
7956
7956
|
Ha.displayName = Ba;
|
|
7957
|
-
var
|
|
7957
|
+
var Jo = "PopperContent", [Om, Lm] = za(Jo), Va = f.forwardRef(
|
|
7958
7958
|
(e, t) => {
|
|
7959
|
-
var B,
|
|
7959
|
+
var B, V, J, ae, oe, te;
|
|
7960
7960
|
const {
|
|
7961
7961
|
__scopePopper: n,
|
|
7962
7962
|
side: o = "bottom",
|
|
@@ -7972,7 +7972,7 @@ var Zo = "PopperContent", [Om, Lm] = za(Zo), Va = f.forwardRef(
|
|
|
7972
7972
|
updatePositionStrategy: h = "optimized",
|
|
7973
7973
|
onPlaced: b,
|
|
7974
7974
|
...g
|
|
7975
|
-
} = e, v = $a(
|
|
7975
|
+
} = e, v = $a(Jo, n), [y, w] = f.useState(null), x = re(t, (ue) => w(ue)), [C, E] = f.useState(null), R = Tn(C), N = (R == null ? void 0 : R.width) ?? 0, k = (R == null ? void 0 : R.height) ?? 0, M = o + (s !== "center" ? "-" + s : ""), L = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, $ = Array.isArray(d) ? d : [d], j = $.length > 0, U = {
|
|
7976
7976
|
padding: L,
|
|
7977
7977
|
boundary: $.filter(zm),
|
|
7978
7978
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -8011,7 +8011,7 @@ var Zo = "PopperContent", [Om, Lm] = za(Zo), Va = f.forwardRef(
|
|
|
8011
8011
|
de(() => {
|
|
8012
8012
|
T && (Q == null || Q());
|
|
8013
8013
|
}, [T, Q]);
|
|
8014
|
-
const ie = (B = A.arrow) == null ? void 0 : B.x, G = (
|
|
8014
|
+
const ie = (B = A.arrow) == null ? void 0 : B.x, G = (V = A.arrow) == null ? void 0 : V.y, Z = ((J = A.arrow) == null ? void 0 : J.centerOffset) !== 0, [Y, X] = f.useState();
|
|
8015
8015
|
return de(() => {
|
|
8016
8016
|
y && X(window.getComputedStyle(y).zIndex);
|
|
8017
8017
|
}, [y]), /* @__PURE__ */ p(
|
|
@@ -8068,7 +8068,7 @@ var Zo = "PopperContent", [Om, Lm] = za(Zo), Va = f.forwardRef(
|
|
|
8068
8068
|
);
|
|
8069
8069
|
}
|
|
8070
8070
|
);
|
|
8071
|
-
Va.displayName =
|
|
8071
|
+
Va.displayName = Jo;
|
|
8072
8072
|
var Wa = "PopperArrow", Dm = {
|
|
8073
8073
|
top: "bottom",
|
|
8074
8074
|
right: "left",
|
|
@@ -8317,7 +8317,7 @@ var Xm = oi;
|
|
|
8317
8317
|
function xo(e, [t, n]) {
|
|
8318
8318
|
return Math.min(n, Math.max(t, e));
|
|
8319
8319
|
}
|
|
8320
|
-
var
|
|
8320
|
+
var Qo = "Progress", er = 100, [Zm] = we(Qo), [Jm, Qm] = Zm(Qo), ri = f.forwardRef(
|
|
8321
8321
|
(e, t) => {
|
|
8322
8322
|
const {
|
|
8323
8323
|
__scopeProgress: n,
|
|
@@ -8326,10 +8326,10 @@ var Jo = "Progress", Qo = 100, [Zm] = we(Jo), [Jm, Qm] = Zm(Jo), ri = f.forwardR
|
|
|
8326
8326
|
getValueLabel: s = eh,
|
|
8327
8327
|
...a
|
|
8328
8328
|
} = e;
|
|
8329
|
-
(r || r === 0) && !
|
|
8330
|
-
const i =
|
|
8331
|
-
o !== null && !
|
|
8332
|
-
const l =
|
|
8329
|
+
(r || r === 0) && !os(r) && console.error(th(`${r}`, "Progress"));
|
|
8330
|
+
const i = os(r) ? r : er;
|
|
8331
|
+
o !== null && !rs(o, i) && console.error(nh(`${o}`, "Progress"));
|
|
8332
|
+
const l = rs(o, i) ? o : null, d = bn(l) ? s(l, i) : void 0;
|
|
8333
8333
|
return /* @__PURE__ */ p(Jm, { scope: n, value: l, max: i, children: /* @__PURE__ */ p(
|
|
8334
8334
|
W.div,
|
|
8335
8335
|
{
|
|
@@ -8347,7 +8347,7 @@ var Jo = "Progress", Qo = 100, [Zm] = we(Jo), [Jm, Qm] = Zm(Jo), ri = f.forwardR
|
|
|
8347
8347
|
) });
|
|
8348
8348
|
}
|
|
8349
8349
|
);
|
|
8350
|
-
ri.displayName =
|
|
8350
|
+
ri.displayName = Qo;
|
|
8351
8351
|
var si = "ProgressIndicator", ai = f.forwardRef(
|
|
8352
8352
|
(e, t) => {
|
|
8353
8353
|
const { __scopeProgress: n, ...o } = e, r = Qm(si, n);
|
|
@@ -8373,24 +8373,24 @@ function ii(e, t) {
|
|
|
8373
8373
|
function bn(e) {
|
|
8374
8374
|
return typeof e == "number";
|
|
8375
8375
|
}
|
|
8376
|
-
function
|
|
8376
|
+
function os(e) {
|
|
8377
8377
|
return bn(e) && !isNaN(e) && e > 0;
|
|
8378
8378
|
}
|
|
8379
|
-
function
|
|
8379
|
+
function rs(e, t) {
|
|
8380
8380
|
return bn(e) && !isNaN(e) && e <= t && e >= 0;
|
|
8381
8381
|
}
|
|
8382
8382
|
function th(e, t) {
|
|
8383
|
-
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${
|
|
8383
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${er}\`.`;
|
|
8384
8384
|
}
|
|
8385
8385
|
function nh(e, t) {
|
|
8386
8386
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
8387
8387
|
- a positive number
|
|
8388
|
-
- less than the value passed to \`max\` (or ${
|
|
8388
|
+
- less than the value passed to \`max\` (or ${er} if no \`max\` prop is set)
|
|
8389
8389
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
8390
8390
|
|
|
8391
8391
|
Defaulting to \`null\`.`;
|
|
8392
8392
|
}
|
|
8393
|
-
var oh = ri, rh = ai,
|
|
8393
|
+
var oh = ri, rh = ai, tr = "Radio", [sh, li] = we(tr), [ah, ih] = sh(tr), ci = f.forwardRef(
|
|
8394
8394
|
(e, t) => {
|
|
8395
8395
|
const {
|
|
8396
8396
|
__scopeRadio: n,
|
|
@@ -8438,7 +8438,7 @@ var oh = ri, rh = ai, er = "Radio", [sh, li] = we(er), [ah, ih] = sh(er), ci = f
|
|
|
8438
8438
|
] });
|
|
8439
8439
|
}
|
|
8440
8440
|
);
|
|
8441
|
-
ci.displayName =
|
|
8441
|
+
ci.displayName = tr;
|
|
8442
8442
|
var di = "RadioIndicator", ui = f.forwardRef(
|
|
8443
8443
|
(e, t) => {
|
|
8444
8444
|
const { __scopeRadio: n, forceMount: o, ...r } = e, s = ih(di, n);
|
|
@@ -8611,7 +8611,7 @@ var mh = gi, hh = bi, gh = yi;
|
|
|
8611
8611
|
function vh(e, t) {
|
|
8612
8612
|
return f.useReducer((n, o) => t[n][o] ?? n, e);
|
|
8613
8613
|
}
|
|
8614
|
-
var
|
|
8614
|
+
var nr = "ScrollArea", [wi] = we(nr), [bh, Re] = wi(nr), xi = f.forwardRef(
|
|
8615
8615
|
(e, t) => {
|
|
8616
8616
|
const {
|
|
8617
8617
|
__scopeScrollArea: n,
|
|
@@ -8661,7 +8661,7 @@ var tr = "ScrollArea", [wi] = we(tr), [bh, Re] = wi(tr), xi = f.forwardRef(
|
|
|
8661
8661
|
);
|
|
8662
8662
|
}
|
|
8663
8663
|
);
|
|
8664
|
-
xi.displayName =
|
|
8664
|
+
xi.displayName = nr;
|
|
8665
8665
|
var Si = "ScrollAreaViewport", Ci = f.forwardRef(
|
|
8666
8666
|
(e, t) => {
|
|
8667
8667
|
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, a = Re(Si, n), i = f.useRef(null), l = re(t, i, a.onViewportChange);
|
|
@@ -8709,7 +8709,7 @@ var He = "ScrollAreaScrollbar", ki = f.forwardRef(
|
|
|
8709
8709
|
const { forceMount: n, ...o } = e, r = Re(He, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = r, i = e.orientation === "horizontal";
|
|
8710
8710
|
return f.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
8711
8711
|
i ? s(!1) : a(!1);
|
|
8712
|
-
}), [i, s, a]), r.type === "hover" ? /* @__PURE__ */ p(yh, { ...o, ref: t, forceMount: n }) : r.type === "scroll" ? /* @__PURE__ */ p(wh, { ...o, ref: t, forceMount: n }) : r.type === "auto" ? /* @__PURE__ */ p(Ei, { ...o, ref: t, forceMount: n }) : r.type === "always" ? /* @__PURE__ */ p(
|
|
8712
|
+
}), [i, s, a]), r.type === "hover" ? /* @__PURE__ */ p(yh, { ...o, ref: t, forceMount: n }) : r.type === "scroll" ? /* @__PURE__ */ p(wh, { ...o, ref: t, forceMount: n }) : r.type === "auto" ? /* @__PURE__ */ p(Ei, { ...o, ref: t, forceMount: n }) : r.type === "always" ? /* @__PURE__ */ p(or, { ...o, ref: t }) : null;
|
|
8713
8713
|
}
|
|
8714
8714
|
);
|
|
8715
8715
|
ki.displayName = He;
|
|
@@ -8771,7 +8771,7 @@ var yh = f.forwardRef((e, t) => {
|
|
|
8771
8771
|
return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
|
|
8772
8772
|
}
|
|
8773
8773
|
}, [r.viewport, s, l, a]), /* @__PURE__ */ p(Le, { present: n || i !== "hidden", children: /* @__PURE__ */ p(
|
|
8774
|
-
|
|
8774
|
+
or,
|
|
8775
8775
|
{
|
|
8776
8776
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
8777
8777
|
...o,
|
|
@@ -8788,14 +8788,14 @@ var yh = f.forwardRef((e, t) => {
|
|
|
8788
8788
|
}
|
|
8789
8789
|
}, 10);
|
|
8790
8790
|
return Tt(n.viewport, l), Tt(n.content, l), /* @__PURE__ */ p(Le, { present: o || s, children: /* @__PURE__ */ p(
|
|
8791
|
-
|
|
8791
|
+
or,
|
|
8792
8792
|
{
|
|
8793
8793
|
"data-state": s ? "visible" : "hidden",
|
|
8794
8794
|
...r,
|
|
8795
8795
|
ref: t
|
|
8796
8796
|
}
|
|
8797
8797
|
) });
|
|
8798
|
-
}),
|
|
8798
|
+
}), or = f.forwardRef((e, t) => {
|
|
8799
8799
|
const { orientation: n = "vertical", ...o } = e, r = Re(He, e.__scopeScrollArea), s = f.useRef(null), a = f.useRef(0), [i, l] = f.useState({
|
|
8800
8800
|
content: 0,
|
|
8801
8801
|
viewport: 0,
|
|
@@ -8819,7 +8819,7 @@ var yh = f.forwardRef((e, t) => {
|
|
|
8819
8819
|
ref: t,
|
|
8820
8820
|
onThumbPositionChange: () => {
|
|
8821
8821
|
if (r.viewport && s.current) {
|
|
8822
|
-
const m = r.viewport.scrollLeft, h =
|
|
8822
|
+
const m = r.viewport.scrollLeft, h = ss(m, i, r.dir);
|
|
8823
8823
|
s.current.style.transform = `translate3d(${h}px, 0, 0)`;
|
|
8824
8824
|
}
|
|
8825
8825
|
},
|
|
@@ -8837,7 +8837,7 @@ var yh = f.forwardRef((e, t) => {
|
|
|
8837
8837
|
ref: t,
|
|
8838
8838
|
onThumbPositionChange: () => {
|
|
8839
8839
|
if (r.viewport && s.current) {
|
|
8840
|
-
const m = r.viewport.scrollTop, h =
|
|
8840
|
+
const m = r.viewport.scrollTop, h = ss(m, i);
|
|
8841
8841
|
s.current.style.transform = `translate3d(0, ${h}px, 0)`;
|
|
8842
8842
|
}
|
|
8843
8843
|
},
|
|
@@ -9027,15 +9027,15 @@ var yh = f.forwardRef((e, t) => {
|
|
|
9027
9027
|
}
|
|
9028
9028
|
);
|
|
9029
9029
|
Ti.displayName = yn;
|
|
9030
|
-
var
|
|
9030
|
+
var rr = "ScrollAreaCorner", Pi = f.forwardRef(
|
|
9031
9031
|
(e, t) => {
|
|
9032
|
-
const n = Re(
|
|
9032
|
+
const n = Re(rr, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
|
|
9033
9033
|
return n.type !== "scroll" && o ? /* @__PURE__ */ p(Eh, { ...e, ref: t }) : null;
|
|
9034
9034
|
}
|
|
9035
9035
|
);
|
|
9036
|
-
Pi.displayName =
|
|
9036
|
+
Pi.displayName = rr;
|
|
9037
9037
|
var Eh = f.forwardRef((e, t) => {
|
|
9038
|
-
const { __scopeScrollArea: n, ...o } = e, r = Re(
|
|
9038
|
+
const { __scopeScrollArea: n, ...o } = e, r = Re(rr, n), [s, a] = f.useState(0), [i, l] = f.useState(0), d = !!(s && i);
|
|
9039
9039
|
return Tt(r.scrollbarX, () => {
|
|
9040
9040
|
var c;
|
|
9041
9041
|
const u = ((c = r.scrollbarX) == null ? void 0 : c.offsetHeight) || 0;
|
|
@@ -9076,7 +9076,7 @@ function Rh(e, t, n, o = "ltr") {
|
|
|
9076
9076
|
const r = zn(n), s = r / 2, a = t || s, i = r - a, l = n.scrollbar.paddingStart + a, d = n.scrollbar.size - n.scrollbar.paddingEnd - i, u = n.content - n.viewport, c = o === "ltr" ? [0, u] : [u * -1, 0];
|
|
9077
9077
|
return _i([l, d], c)(e);
|
|
9078
9078
|
}
|
|
9079
|
-
function
|
|
9079
|
+
function ss(e, t, n = "ltr") {
|
|
9080
9080
|
const o = zn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - r, a = t.content - t.viewport, i = s - o, l = n === "ltr" ? [0, a] : [a * -1, 0], d = xo(e, l);
|
|
9081
9081
|
return _i([0, a], [0, i])(d);
|
|
9082
9082
|
}
|
|
@@ -9276,7 +9276,7 @@ var zh = "SelectIcon", $i = f.forwardRef(
|
|
|
9276
9276
|
}
|
|
9277
9277
|
);
|
|
9278
9278
|
$i.displayName = zh;
|
|
9279
|
-
var $h = "SelectPortal", Fi = (e) => /* @__PURE__ */ p(
|
|
9279
|
+
var $h = "SelectPortal", Fi = (e) => /* @__PURE__ */ p(Vo, { asChild: !0, ...e });
|
|
9280
9280
|
Fi.displayName = $h;
|
|
9281
9281
|
var pt = "SelectContent", Bi = f.forwardRef(
|
|
9282
9282
|
(e, t) => {
|
|
@@ -9324,9 +9324,9 @@ var Ae = 10, [Hi, rt] = It(pt), Fh = "SelectContentImpl", Bh = /* @__PURE__ */ B
|
|
|
9324
9324
|
}, [x]), Ef();
|
|
9325
9325
|
const S = f.useCallback(
|
|
9326
9326
|
(B) => {
|
|
9327
|
-
const [
|
|
9327
|
+
const [V, ...J] = j().map((te) => te.ref.current), [ae] = J.slice(-1), oe = document.activeElement;
|
|
9328
9328
|
for (const te of B)
|
|
9329
|
-
if (te === oe || (te == null || te.scrollIntoView({ block: "nearest" }), te ===
|
|
9329
|
+
if (te === oe || (te == null || te.scrollIntoView({ block: "nearest" }), te === V && E && (E.scrollTop = 0), te === ae && E && (E.scrollTop = E.scrollHeight), te == null || te.focus(), document.activeElement !== oe)) return;
|
|
9330
9330
|
},
|
|
9331
9331
|
[j, E]
|
|
9332
9332
|
), T = f.useCallback(
|
|
@@ -9340,17 +9340,17 @@ var Ae = 10, [Hi, rt] = It(pt), Fh = "SelectContentImpl", Bh = /* @__PURE__ */ B
|
|
|
9340
9340
|
f.useEffect(() => {
|
|
9341
9341
|
if (x) {
|
|
9342
9342
|
let B = { x: 0, y: 0 };
|
|
9343
|
-
const
|
|
9343
|
+
const V = (ae) => {
|
|
9344
9344
|
var oe, te;
|
|
9345
9345
|
B = {
|
|
9346
9346
|
x: Math.abs(Math.round(ae.pageX) - (((oe = O.current) == null ? void 0 : oe.x) ?? 0)),
|
|
9347
9347
|
y: Math.abs(Math.round(ae.pageY) - (((te = O.current) == null ? void 0 : te.y) ?? 0))
|
|
9348
9348
|
};
|
|
9349
9349
|
}, J = (ae) => {
|
|
9350
|
-
B.x <= 10 && B.y <= 10 ? ae.preventDefault() : x.contains(ae.target) || A(!1), document.removeEventListener("pointermove",
|
|
9350
|
+
B.x <= 10 && B.y <= 10 ? ae.preventDefault() : x.contains(ae.target) || A(!1), document.removeEventListener("pointermove", V), O.current = null;
|
|
9351
9351
|
};
|
|
9352
|
-
return O.current !== null && (document.addEventListener("pointermove",
|
|
9353
|
-
document.removeEventListener("pointermove",
|
|
9352
|
+
return O.current !== null && (document.addEventListener("pointermove", V), document.addEventListener("pointerup", J, { capture: !0, once: !0 })), () => {
|
|
9353
|
+
document.removeEventListener("pointermove", V), document.removeEventListener("pointerup", J, { capture: !0 });
|
|
9354
9354
|
};
|
|
9355
9355
|
}
|
|
9356
9356
|
}, [x, A, O]), f.useEffect(() => {
|
|
@@ -9360,18 +9360,18 @@ var Ae = 10, [Hi, rt] = It(pt), Fh = "SelectContentImpl", Bh = /* @__PURE__ */ B
|
|
|
9360
9360
|
};
|
|
9361
9361
|
}, [A]);
|
|
9362
9362
|
const [P, Q] = ol((B) => {
|
|
9363
|
-
const
|
|
9363
|
+
const V = j().filter((oe) => !oe.disabled), J = V.find((oe) => oe.ref.current === document.activeElement), ae = rl(V, B, J);
|
|
9364
9364
|
ae && setTimeout(() => ae.ref.current.focus());
|
|
9365
9365
|
}), ie = f.useCallback(
|
|
9366
|
-
(B,
|
|
9366
|
+
(B, V, J) => {
|
|
9367
9367
|
const ae = !I.current && !J;
|
|
9368
|
-
(w.value !== void 0 && w.value ===
|
|
9368
|
+
(w.value !== void 0 && w.value === V || ae) && (M(B), ae && (I.current = !0));
|
|
9369
9369
|
},
|
|
9370
9370
|
[w.value]
|
|
9371
9371
|
), G = f.useCallback(() => x == null ? void 0 : x.focus(), [x]), Z = f.useCallback(
|
|
9372
|
-
(B,
|
|
9372
|
+
(B, V, J) => {
|
|
9373
9373
|
const ae = !I.current && !J;
|
|
9374
|
-
(w.value !== void 0 && w.value ===
|
|
9374
|
+
(w.value !== void 0 && w.value === V || ae) && $(B);
|
|
9375
9375
|
},
|
|
9376
9376
|
[w.value]
|
|
9377
9377
|
), Y = o === "popper" ? So : Wi, X = Y === So ? {
|
|
@@ -9411,11 +9411,11 @@ var Ae = 10, [Hi, rt] = It(pt), Fh = "SelectContentImpl", Bh = /* @__PURE__ */ B
|
|
|
9411
9411
|
B.preventDefault();
|
|
9412
9412
|
},
|
|
9413
9413
|
onUnmountAutoFocus: q(r, (B) => {
|
|
9414
|
-
var
|
|
9415
|
-
(
|
|
9414
|
+
var V;
|
|
9415
|
+
(V = w.trigger) == null || V.focus({ preventScroll: !0 }), B.preventDefault();
|
|
9416
9416
|
}),
|
|
9417
9417
|
children: /* @__PURE__ */ p(
|
|
9418
|
-
|
|
9418
|
+
Ho,
|
|
9419
9419
|
{
|
|
9420
9420
|
asChild: !0,
|
|
9421
9421
|
disableOutsidePointerEvents: !0,
|
|
@@ -9444,8 +9444,8 @@ var Ae = 10, [Hi, rt] = It(pt), Fh = "SelectContentImpl", Bh = /* @__PURE__ */ B
|
|
|
9444
9444
|
...y.style
|
|
9445
9445
|
},
|
|
9446
9446
|
onKeyDown: q(y.onKeyDown, (B) => {
|
|
9447
|
-
const
|
|
9448
|
-
if (B.key === "Tab" && B.preventDefault(), !
|
|
9447
|
+
const V = B.ctrlKey || B.altKey || B.metaKey;
|
|
9448
|
+
if (B.key === "Tab" && B.preventDefault(), !V && B.key.length === 1 && Q(B.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(B.key)) {
|
|
9449
9449
|
let ae = j().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
|
|
9450
9450
|
if (["ArrowUp", "End"].includes(B.key) && (ae = ae.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(B.key)) {
|
|
9451
9451
|
const oe = B.target, te = ae.indexOf(oe);
|
|
@@ -9487,15 +9487,15 @@ var Hh = "SelectItemAlignedPosition", Wi = f.forwardRef((e, t) => {
|
|
|
9487
9487
|
]);
|
|
9488
9488
|
i.style.minWidth = fe + "px", i.style.right = Ne + "px";
|
|
9489
9489
|
}
|
|
9490
|
-
const $ = m(), j = window.innerHeight - Ae * 2, U = g.scrollHeight, K = window.getComputedStyle(d), I = parseInt(K.borderTopWidth, 10), S = parseInt(K.paddingTop, 10), T = parseInt(K.borderBottomWidth, 10), A = parseInt(K.paddingBottom, 10), O = I + S + U + A + T, P = Math.min(v.offsetHeight * 5, O), Q = window.getComputedStyle(g), ie = parseInt(Q.paddingTop, 10), G = parseInt(Q.paddingBottom, 10), Z = N.top + N.height / 2 - Ae, Y = j - Z, X = v.offsetHeight / 2, B = v.offsetTop + X,
|
|
9491
|
-
if (
|
|
9490
|
+
const $ = m(), j = window.innerHeight - Ae * 2, U = g.scrollHeight, K = window.getComputedStyle(d), I = parseInt(K.borderTopWidth, 10), S = parseInt(K.paddingTop, 10), T = parseInt(K.borderBottomWidth, 10), A = parseInt(K.paddingBottom, 10), O = I + S + U + A + T, P = Math.min(v.offsetHeight * 5, O), Q = window.getComputedStyle(g), ie = parseInt(Q.paddingTop, 10), G = parseInt(Q.paddingBottom, 10), Z = N.top + N.height / 2 - Ae, Y = j - Z, X = v.offsetHeight / 2, B = v.offsetTop + X, V = I + S + B, J = O - V;
|
|
9491
|
+
if (V <= Z) {
|
|
9492
9492
|
const oe = $.length > 0 && v === $[$.length - 1].ref.current;
|
|
9493
9493
|
i.style.bottom = "0px";
|
|
9494
9494
|
const te = d.clientHeight - g.offsetTop - g.offsetHeight, ue = Math.max(
|
|
9495
9495
|
Y,
|
|
9496
9496
|
X + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
9497
9497
|
(oe ? G : 0) + te + T
|
|
9498
|
-
), fe =
|
|
9498
|
+
), fe = V + ue;
|
|
9499
9499
|
i.style.height = fe + "px";
|
|
9500
9500
|
} else {
|
|
9501
9501
|
const oe = $.length > 0 && v === $[0].ref.current;
|
|
@@ -9505,7 +9505,7 @@ var Hh = "SelectItemAlignedPosition", Wi = f.forwardRef((e, t) => {
|
|
|
9505
9505
|
I + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
9506
9506
|
(oe ? ie : 0) + X
|
|
9507
9507
|
) + J;
|
|
9508
|
-
i.style.height = ue + "px", g.scrollTop =
|
|
9508
|
+
i.style.height = ue + "px", g.scrollTop = V - Z + g.offsetTop;
|
|
9509
9509
|
}
|
|
9510
9510
|
i.style.margin = `${Ae}px 0`, i.style.minHeight = P + "px", i.style.maxHeight = j + "px", o == null || o(), requestAnimationFrame(() => h.current = !0);
|
|
9511
9511
|
}
|
|
@@ -9599,9 +9599,9 @@ var Vh = "SelectPopperPosition", So = f.forwardRef((e, t) => {
|
|
|
9599
9599
|
);
|
|
9600
9600
|
});
|
|
9601
9601
|
So.displayName = Vh;
|
|
9602
|
-
var [Wh,
|
|
9602
|
+
var [Wh, sr] = It(pt, {}), Co = "SelectViewport", Ui = f.forwardRef(
|
|
9603
9603
|
(e, t) => {
|
|
9604
|
-
const { __scopeSelect: n, nonce: o, ...r } = e, s = rt(Co, n), a =
|
|
9604
|
+
const { __scopeSelect: n, nonce: o, ...r } = e, s = rt(Co, n), a = sr(Co, n), i = re(t, s.onViewportChange), l = f.useRef(0);
|
|
9605
9605
|
return /* @__PURE__ */ F(Ie, { children: [
|
|
9606
9606
|
/* @__PURE__ */ p(
|
|
9607
9607
|
"style",
|
|
@@ -9779,7 +9779,7 @@ var Xi = "SelectItemIndicator", Zi = f.forwardRef(
|
|
|
9779
9779
|
);
|
|
9780
9780
|
Zi.displayName = Xi;
|
|
9781
9781
|
var ko = "SelectScrollUpButton", Ji = f.forwardRef((e, t) => {
|
|
9782
|
-
const n = rt(ko, e.__scopeSelect), o =
|
|
9782
|
+
const n = rt(ko, e.__scopeSelect), o = sr(ko, e.__scopeSelect), [r, s] = f.useState(!1), a = re(t, o.onScrollButtonChange);
|
|
9783
9783
|
return de(() => {
|
|
9784
9784
|
if (n.viewport && n.isPositioned) {
|
|
9785
9785
|
let i = function() {
|
|
@@ -9803,7 +9803,7 @@ var ko = "SelectScrollUpButton", Ji = f.forwardRef((e, t) => {
|
|
|
9803
9803
|
});
|
|
9804
9804
|
Ji.displayName = ko;
|
|
9805
9805
|
var Eo = "SelectScrollDownButton", Qi = f.forwardRef((e, t) => {
|
|
9806
|
-
const n = rt(Eo, e.__scopeSelect), o =
|
|
9806
|
+
const n = rt(Eo, e.__scopeSelect), o = sr(Eo, e.__scopeSelect), [r, s] = f.useState(!1), a = re(t, o.onScrollButtonChange);
|
|
9807
9807
|
return de(() => {
|
|
9808
9808
|
if (n.viewport && n.isPositioned) {
|
|
9809
9809
|
let i = function() {
|
|
@@ -9922,8 +9922,8 @@ function rl(e, t, n) {
|
|
|
9922
9922
|
function Qh(e, t) {
|
|
9923
9923
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
9924
9924
|
}
|
|
9925
|
-
var eg = Mi, tg = Li, ng = zi, og = $i, rg = Fi, sg = Bi, ag = Ui, ig = qi, lg = Ki, cg = Zi, dg = Ji, ug = Qi, fg = "Separator",
|
|
9926
|
-
const { decorative: n, orientation: o =
|
|
9925
|
+
var eg = Mi, tg = Li, ng = zi, og = $i, rg = Fi, sg = Bi, ag = Ui, ig = qi, lg = Ki, cg = Zi, dg = Ji, ug = Qi, fg = "Separator", as = "horizontal", pg = ["horizontal", "vertical"], sl = f.forwardRef((e, t) => {
|
|
9926
|
+
const { decorative: n, orientation: o = as, ...r } = e, s = mg(o) ? o : as, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
9927
9927
|
return /* @__PURE__ */ p(
|
|
9928
9928
|
W.div,
|
|
9929
9929
|
{
|
|
@@ -10056,7 +10056,7 @@ function dl(e) {
|
|
|
10056
10056
|
}
|
|
10057
10057
|
var wg = al, xg = ll, Wn = "Tabs", [Sg] = we(Wn, [
|
|
10058
10058
|
Ln
|
|
10059
|
-
]), ul = Ln(), [Cg,
|
|
10059
|
+
]), ul = Ln(), [Cg, ar] = Sg(Wn), fl = f.forwardRef(
|
|
10060
10060
|
(e, t) => {
|
|
10061
10061
|
const {
|
|
10062
10062
|
__scopeTabs: n,
|
|
@@ -10099,7 +10099,7 @@ var wg = al, xg = ll, Wn = "Tabs", [Sg] = we(Wn, [
|
|
|
10099
10099
|
fl.displayName = Wn;
|
|
10100
10100
|
var pl = "TabsList", ml = f.forwardRef(
|
|
10101
10101
|
(e, t) => {
|
|
10102
|
-
const { __scopeTabs: n, loop: o = !0, ...r } = e, s =
|
|
10102
|
+
const { __scopeTabs: n, loop: o = !0, ...r } = e, s = ar(pl, n), a = ul(n);
|
|
10103
10103
|
return /* @__PURE__ */ p(
|
|
10104
10104
|
ti,
|
|
10105
10105
|
{
|
|
@@ -10124,7 +10124,7 @@ var pl = "TabsList", ml = f.forwardRef(
|
|
|
10124
10124
|
ml.displayName = pl;
|
|
10125
10125
|
var hl = "TabsTrigger", gl = f.forwardRef(
|
|
10126
10126
|
(e, t) => {
|
|
10127
|
-
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a =
|
|
10127
|
+
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a = ar(hl, n), i = ul(n), l = yl(a.baseId, o), d = wl(a.baseId, o), u = o === a.value;
|
|
10128
10128
|
return /* @__PURE__ */ p(
|
|
10129
10129
|
ni,
|
|
10130
10130
|
{
|
|
@@ -10164,7 +10164,7 @@ var hl = "TabsTrigger", gl = f.forwardRef(
|
|
|
10164
10164
|
gl.displayName = hl;
|
|
10165
10165
|
var vl = "TabsContent", bl = f.forwardRef(
|
|
10166
10166
|
(e, t) => {
|
|
10167
|
-
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i =
|
|
10167
|
+
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i = ar(vl, n), l = yl(i.baseId, o), d = wl(i.baseId, o), u = o === i.value, c = f.useRef(u);
|
|
10168
10168
|
return f.useEffect(() => {
|
|
10169
10169
|
const m = requestAnimationFrame(() => c.current = !1);
|
|
10170
10170
|
return () => cancelAnimationFrame(m);
|
|
@@ -10198,7 +10198,7 @@ function wl(e, t) {
|
|
|
10198
10198
|
}
|
|
10199
10199
|
var kg = fl, Eg = ml, Rg = gl, Ng = bl, [Un] = we("Tooltip", [
|
|
10200
10200
|
On
|
|
10201
|
-
]), jn = On(), xl = "TooltipProvider", Tg = 700, No = "tooltip.open", [Pg,
|
|
10201
|
+
]), jn = On(), xl = "TooltipProvider", Tg = 700, No = "tooltip.open", [Pg, ir] = Un(xl), Sl = (e) => {
|
|
10202
10202
|
const {
|
|
10203
10203
|
__scopeTooltip: t,
|
|
10204
10204
|
delayDuration: n = Tg,
|
|
@@ -10243,7 +10243,7 @@ var Vt = "Tooltip", [Ag, Yt] = Un(Vt), Cl = (e) => {
|
|
|
10243
10243
|
onOpenChange: s,
|
|
10244
10244
|
disableHoverableContent: a,
|
|
10245
10245
|
delayDuration: i
|
|
10246
|
-
} = e, l =
|
|
10246
|
+
} = e, l = ir(Vt, e.__scopeTooltip), d = jn(t), [u, c] = f.useState(null), m = ht(), h = f.useRef(0), b = a ?? l.disableHoverableContent, g = i ?? l.delayDuration, v = f.useRef(!1), [y, w] = Ue({
|
|
10247
10247
|
prop: o,
|
|
10248
10248
|
defaultProp: r ?? !1,
|
|
10249
10249
|
onChange: (N) => {
|
|
@@ -10286,7 +10286,7 @@ var Vt = "Tooltip", [Ag, Yt] = Un(Vt), Cl = (e) => {
|
|
|
10286
10286
|
Cl.displayName = Vt;
|
|
10287
10287
|
var To = "TooltipTrigger", kl = f.forwardRef(
|
|
10288
10288
|
(e, t) => {
|
|
10289
|
-
const { __scopeTooltip: n, ...o } = e, r = Yt(To, n), s =
|
|
10289
|
+
const { __scopeTooltip: n, ...o } = e, r = Yt(To, n), s = ir(To, n), a = jn(n), i = f.useRef(null), l = re(t, i, r.onTriggerChange), d = f.useRef(!1), u = f.useRef(!1), c = f.useCallback(() => d.current = !1, []);
|
|
10290
10290
|
return f.useEffect(() => () => document.removeEventListener("pointerup", c), [c]), /* @__PURE__ */ p(Ya, { asChild: !0, ...a, children: /* @__PURE__ */ p(
|
|
10291
10291
|
W.button,
|
|
10292
10292
|
{
|
|
@@ -10313,20 +10313,20 @@ var To = "TooltipTrigger", kl = f.forwardRef(
|
|
|
10313
10313
|
}
|
|
10314
10314
|
);
|
|
10315
10315
|
kl.displayName = To;
|
|
10316
|
-
var
|
|
10316
|
+
var lr = "TooltipPortal", [_g, Ig] = Un(lr, {
|
|
10317
10317
|
forceMount: void 0
|
|
10318
10318
|
}), El = (e) => {
|
|
10319
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Yt(
|
|
10320
|
-
return /* @__PURE__ */ p(_g, { scope: t, forceMount: n, children: /* @__PURE__ */ p(Le, { present: n || s.open, children: /* @__PURE__ */ p(
|
|
10319
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Yt(lr, t);
|
|
10320
|
+
return /* @__PURE__ */ p(_g, { scope: t, forceMount: n, children: /* @__PURE__ */ p(Le, { present: n || s.open, children: /* @__PURE__ */ p(Vo, { asChild: !0, container: r, children: o }) }) });
|
|
10321
10321
|
};
|
|
10322
|
-
El.displayName =
|
|
10322
|
+
El.displayName = lr;
|
|
10323
10323
|
var Pt = "TooltipContent", Rl = f.forwardRef(
|
|
10324
10324
|
(e, t) => {
|
|
10325
10325
|
const n = Ig(Pt, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, a = Yt(Pt, e.__scopeTooltip);
|
|
10326
10326
|
return /* @__PURE__ */ p(Le, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ p(Nl, { side: r, ...s, ref: t }) : /* @__PURE__ */ p(Mg, { side: r, ...s, ref: t }) });
|
|
10327
10327
|
}
|
|
10328
10328
|
), Mg = f.forwardRef((e, t) => {
|
|
10329
|
-
const n = Yt(Pt, e.__scopeTooltip), o =
|
|
10329
|
+
const n = Yt(Pt, e.__scopeTooltip), o = ir(Pt, e.__scopeTooltip), r = f.useRef(null), s = re(t, r), [a, i] = f.useState(null), { trigger: l, onClose: d } = n, u = r.current, { onPointerInTransitChange: c } = o, m = f.useCallback(() => {
|
|
10330
10330
|
i(null), c(!1);
|
|
10331
10331
|
}, [c]), h = f.useCallback(
|
|
10332
10332
|
(b, g) => {
|
|
@@ -10370,7 +10370,7 @@ var Pt = "TooltipContent", Rl = f.forwardRef(
|
|
|
10370
10370
|
return window.addEventListener("scroll", c, { capture: !0 }), () => window.removeEventListener("scroll", c, { capture: !0 });
|
|
10371
10371
|
}
|
|
10372
10372
|
}, [l.trigger, u]), /* @__PURE__ */ p(
|
|
10373
|
-
|
|
10373
|
+
Ho,
|
|
10374
10374
|
{
|
|
10375
10375
|
asChild: !0,
|
|
10376
10376
|
disableOutsidePointerEvents: !1,
|
|
@@ -10549,7 +10549,7 @@ function Al({
|
|
|
10549
10549
|
"data-slot": "button",
|
|
10550
10550
|
"data-variant": t,
|
|
10551
10551
|
"data-size": n,
|
|
10552
|
-
className:
|
|
10552
|
+
className: H(Kg({ variant: t, size: n, className: e })),
|
|
10553
10553
|
...r
|
|
10554
10554
|
}
|
|
10555
10555
|
);
|
|
@@ -10593,7 +10593,7 @@ function Jg({
|
|
|
10593
10593
|
{
|
|
10594
10594
|
"data-slot": "badge",
|
|
10595
10595
|
"data-variant": t,
|
|
10596
|
-
className:
|
|
10596
|
+
className: H(Zg({ variant: t }), a, e),
|
|
10597
10597
|
...r
|
|
10598
10598
|
}
|
|
10599
10599
|
);
|
|
@@ -10604,7 +10604,7 @@ function Qg({ className: e, type: t, ...n }) {
|
|
|
10604
10604
|
{
|
|
10605
10605
|
type: t,
|
|
10606
10606
|
"data-slot": "input",
|
|
10607
|
-
className:
|
|
10607
|
+
className: H(
|
|
10608
10608
|
"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",
|
|
10609
10609
|
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
10610
10610
|
"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
|
|
@@ -10619,7 +10619,7 @@ function ev({ className: e, ...t }) {
|
|
|
10619
10619
|
"textarea",
|
|
10620
10620
|
{
|
|
10621
10621
|
"data-slot": "textarea",
|
|
10622
|
-
className:
|
|
10622
|
+
className: H(
|
|
10623
10623
|
"flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
|
|
10624
10624
|
e
|
|
10625
10625
|
),
|
|
@@ -10648,14 +10648,14 @@ function ov({
|
|
|
10648
10648
|
{
|
|
10649
10649
|
"data-slot": "select-trigger",
|
|
10650
10650
|
"data-size": t,
|
|
10651
|
-
className:
|
|
10651
|
+
className: H(
|
|
10652
10652
|
"flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
10653
10653
|
e
|
|
10654
10654
|
),
|
|
10655
10655
|
...o,
|
|
10656
10656
|
children: [
|
|
10657
10657
|
n,
|
|
10658
|
-
/* @__PURE__ */ p(og, { asChild: !0, children: /* @__PURE__ */ p(
|
|
10658
|
+
/* @__PURE__ */ p(og, { asChild: !0, children: /* @__PURE__ */ p(Io, { className: "size-4 opacity-50" }) })
|
|
10659
10659
|
]
|
|
10660
10660
|
}
|
|
10661
10661
|
);
|
|
@@ -10671,7 +10671,7 @@ function rv({
|
|
|
10671
10671
|
sg,
|
|
10672
10672
|
{
|
|
10673
10673
|
"data-slot": "select-content",
|
|
10674
|
-
className:
|
|
10674
|
+
className: H(
|
|
10675
10675
|
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
10676
10676
|
n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
10677
10677
|
e
|
|
@@ -10684,7 +10684,7 @@ function rv({
|
|
|
10684
10684
|
/* @__PURE__ */ p(
|
|
10685
10685
|
ag,
|
|
10686
10686
|
{
|
|
10687
|
-
className:
|
|
10687
|
+
className: H(
|
|
10688
10688
|
"p-1",
|
|
10689
10689
|
n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
10690
10690
|
),
|
|
@@ -10705,7 +10705,7 @@ function sv({
|
|
|
10705
10705
|
ig,
|
|
10706
10706
|
{
|
|
10707
10707
|
"data-slot": "select-item",
|
|
10708
|
-
className:
|
|
10708
|
+
className: H(
|
|
10709
10709
|
"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
10710
10710
|
e
|
|
10711
10711
|
),
|
|
@@ -10716,7 +10716,7 @@ function sv({
|
|
|
10716
10716
|
{
|
|
10717
10717
|
"data-slot": "select-item-indicator",
|
|
10718
10718
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
10719
|
-
children: /* @__PURE__ */ p(cg, { children: /* @__PURE__ */ p(
|
|
10719
|
+
children: /* @__PURE__ */ p(cg, { children: /* @__PURE__ */ p(ys, { className: "size-4" }) })
|
|
10720
10720
|
}
|
|
10721
10721
|
),
|
|
10722
10722
|
/* @__PURE__ */ p(lg, { children: t })
|
|
@@ -10732,7 +10732,7 @@ function av({
|
|
|
10732
10732
|
dg,
|
|
10733
10733
|
{
|
|
10734
10734
|
"data-slot": "select-scroll-up-button",
|
|
10735
|
-
className:
|
|
10735
|
+
className: H(
|
|
10736
10736
|
"flex cursor-default items-center justify-center py-1",
|
|
10737
10737
|
e
|
|
10738
10738
|
),
|
|
@@ -10749,12 +10749,12 @@ function iv({
|
|
|
10749
10749
|
ug,
|
|
10750
10750
|
{
|
|
10751
10751
|
"data-slot": "select-scroll-down-button",
|
|
10752
|
-
className:
|
|
10752
|
+
className: H(
|
|
10753
10753
|
"flex cursor-default items-center justify-center py-1",
|
|
10754
10754
|
e
|
|
10755
10755
|
),
|
|
10756
10756
|
...t,
|
|
10757
|
-
children: /* @__PURE__ */ p(
|
|
10757
|
+
children: /* @__PURE__ */ p(Io, { className: "size-4" })
|
|
10758
10758
|
}
|
|
10759
10759
|
);
|
|
10760
10760
|
}
|
|
@@ -10766,7 +10766,7 @@ function lv({
|
|
|
10766
10766
|
ya,
|
|
10767
10767
|
{
|
|
10768
10768
|
"data-slot": "checkbox",
|
|
10769
|
-
className:
|
|
10769
|
+
className: H(
|
|
10770
10770
|
"peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",
|
|
10771
10771
|
e
|
|
10772
10772
|
),
|
|
@@ -10776,7 +10776,7 @@ function lv({
|
|
|
10776
10776
|
{
|
|
10777
10777
|
"data-slot": "checkbox-indicator",
|
|
10778
10778
|
className: "grid place-content-center text-current transition-none",
|
|
10779
|
-
children: /* @__PURE__ */ p(
|
|
10779
|
+
children: /* @__PURE__ */ p(ys, { className: "size-3.5" })
|
|
10780
10780
|
}
|
|
10781
10781
|
)
|
|
10782
10782
|
}
|
|
@@ -10792,7 +10792,7 @@ function cv({
|
|
|
10792
10792
|
{
|
|
10793
10793
|
"data-slot": "switch",
|
|
10794
10794
|
"data-size": t,
|
|
10795
|
-
className:
|
|
10795
|
+
className: H(
|
|
10796
10796
|
"peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",
|
|
10797
10797
|
e
|
|
10798
10798
|
),
|
|
@@ -10801,7 +10801,7 @@ function cv({
|
|
|
10801
10801
|
xg,
|
|
10802
10802
|
{
|
|
10803
10803
|
"data-slot": "switch-thumb",
|
|
10804
|
-
className:
|
|
10804
|
+
className: H(
|
|
10805
10805
|
"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground"
|
|
10806
10806
|
)
|
|
10807
10807
|
}
|
|
@@ -10817,7 +10817,7 @@ function dv({
|
|
|
10817
10817
|
Xm,
|
|
10818
10818
|
{
|
|
10819
10819
|
"data-slot": "label",
|
|
10820
|
-
className:
|
|
10820
|
+
className: H(
|
|
10821
10821
|
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
10822
10822
|
e
|
|
10823
10823
|
),
|
|
@@ -10833,7 +10833,7 @@ function uv({
|
|
|
10833
10833
|
mh,
|
|
10834
10834
|
{
|
|
10835
10835
|
"data-slot": "radio-group",
|
|
10836
|
-
className:
|
|
10836
|
+
className: H("grid gap-3", e),
|
|
10837
10837
|
...t
|
|
10838
10838
|
}
|
|
10839
10839
|
);
|
|
@@ -10846,7 +10846,7 @@ function fv({
|
|
|
10846
10846
|
hh,
|
|
10847
10847
|
{
|
|
10848
10848
|
"data-slot": "radio-group-item",
|
|
10849
|
-
className:
|
|
10849
|
+
className: H(
|
|
10850
10850
|
"aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
|
|
10851
10851
|
e
|
|
10852
10852
|
),
|
|
@@ -10874,7 +10874,7 @@ function pv({
|
|
|
10874
10874
|
"data-slot": "separator",
|
|
10875
10875
|
decorative: n,
|
|
10876
10876
|
orientation: t,
|
|
10877
|
-
className:
|
|
10877
|
+
className: H(
|
|
10878
10878
|
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
10879
10879
|
e
|
|
10880
10880
|
),
|
|
@@ -10893,7 +10893,7 @@ function mv({
|
|
|
10893
10893
|
"data-slot": "tabs",
|
|
10894
10894
|
"data-orientation": t,
|
|
10895
10895
|
orientation: t,
|
|
10896
|
-
className:
|
|
10896
|
+
className: H(
|
|
10897
10897
|
"group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
|
|
10898
10898
|
e
|
|
10899
10899
|
),
|
|
@@ -10925,7 +10925,7 @@ function gv({
|
|
|
10925
10925
|
{
|
|
10926
10926
|
"data-slot": "tabs-list",
|
|
10927
10927
|
"data-variant": t,
|
|
10928
|
-
className:
|
|
10928
|
+
className: H(hv({ variant: t }), e),
|
|
10929
10929
|
...n
|
|
10930
10930
|
}
|
|
10931
10931
|
);
|
|
@@ -10938,7 +10938,7 @@ function vv({
|
|
|
10938
10938
|
Rg,
|
|
10939
10939
|
{
|
|
10940
10940
|
"data-slot": "tabs-trigger",
|
|
10941
|
-
className:
|
|
10941
|
+
className: H(
|
|
10942
10942
|
"cursor-pointer relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
10943
10943
|
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent",
|
|
10944
10944
|
"data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground",
|
|
@@ -10957,7 +10957,7 @@ function bv({
|
|
|
10957
10957
|
Ng,
|
|
10958
10958
|
{
|
|
10959
10959
|
"data-slot": "tabs-content",
|
|
10960
|
-
className:
|
|
10960
|
+
className: H("flex-1 outline-none", e),
|
|
10961
10961
|
...t
|
|
10962
10962
|
}
|
|
10963
10963
|
);
|
|
@@ -10971,7 +10971,7 @@ function yv({
|
|
|
10971
10971
|
Th,
|
|
10972
10972
|
{
|
|
10973
10973
|
"data-slot": "scroll-area",
|
|
10974
|
-
className:
|
|
10974
|
+
className: H("relative", e),
|
|
10975
10975
|
...n,
|
|
10976
10976
|
children: [
|
|
10977
10977
|
/* @__PURE__ */ p(
|
|
@@ -10998,7 +10998,7 @@ function wv({
|
|
|
10998
10998
|
{
|
|
10999
10999
|
"data-slot": "scroll-area-scrollbar",
|
|
11000
11000
|
orientation: t,
|
|
11001
|
-
className:
|
|
11001
|
+
className: H(
|
|
11002
11002
|
"flex touch-none p-px transition-colors select-none",
|
|
11003
11003
|
t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
11004
11004
|
t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
@@ -11025,7 +11025,7 @@ function Po({
|
|
|
11025
11025
|
{
|
|
11026
11026
|
"data-slot": "avatar",
|
|
11027
11027
|
"data-size": t,
|
|
11028
|
-
className:
|
|
11028
|
+
className: H(
|
|
11029
11029
|
"group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
|
|
11030
11030
|
e
|
|
11031
11031
|
),
|
|
@@ -11041,7 +11041,7 @@ function Ao({
|
|
|
11041
11041
|
xp,
|
|
11042
11042
|
{
|
|
11043
11043
|
"data-slot": "avatar-image",
|
|
11044
|
-
className:
|
|
11044
|
+
className: H("aspect-square size-full", e),
|
|
11045
11045
|
...t
|
|
11046
11046
|
}
|
|
11047
11047
|
);
|
|
@@ -11054,7 +11054,7 @@ function _o({
|
|
|
11054
11054
|
Sp,
|
|
11055
11055
|
{
|
|
11056
11056
|
"data-slot": "avatar-fallback",
|
|
11057
|
-
className:
|
|
11057
|
+
className: H(
|
|
11058
11058
|
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
11059
11059
|
e
|
|
11060
11060
|
),
|
|
@@ -11067,7 +11067,7 @@ function xv({ className: e, ...t }) {
|
|
|
11067
11067
|
"div",
|
|
11068
11068
|
{
|
|
11069
11069
|
"data-slot": "skeleton",
|
|
11070
|
-
className:
|
|
11070
|
+
className: H("animate-pulse rounded-md bg-accent", e),
|
|
11071
11071
|
...t
|
|
11072
11072
|
}
|
|
11073
11073
|
);
|
|
@@ -11106,7 +11106,7 @@ function Ev({
|
|
|
11106
11106
|
{
|
|
11107
11107
|
"data-slot": "tooltip-content",
|
|
11108
11108
|
sideOffset: t,
|
|
11109
|
-
className:
|
|
11109
|
+
className: H(
|
|
11110
11110
|
"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
11111
11111
|
e
|
|
11112
11112
|
),
|
|
@@ -11127,7 +11127,7 @@ function Rv({
|
|
|
11127
11127
|
oh,
|
|
11128
11128
|
{
|
|
11129
11129
|
"data-slot": "progress",
|
|
11130
|
-
className:
|
|
11130
|
+
className: H(
|
|
11131
11131
|
"relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
11132
11132
|
e
|
|
11133
11133
|
),
|
|
@@ -11167,7 +11167,7 @@ function Tv({
|
|
|
11167
11167
|
{
|
|
11168
11168
|
"data-slot": "alert",
|
|
11169
11169
|
role: "alert",
|
|
11170
|
-
className:
|
|
11170
|
+
className: H(Nv({ variant: t }), e),
|
|
11171
11171
|
...n
|
|
11172
11172
|
}
|
|
11173
11173
|
);
|
|
@@ -11177,7 +11177,7 @@ function Pv({ className: e, ...t }) {
|
|
|
11177
11177
|
"div",
|
|
11178
11178
|
{
|
|
11179
11179
|
"data-slot": "alert-title",
|
|
11180
|
-
className:
|
|
11180
|
+
className: H(
|
|
11181
11181
|
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
11182
11182
|
e
|
|
11183
11183
|
),
|
|
@@ -11193,7 +11193,7 @@ function Av({
|
|
|
11193
11193
|
"div",
|
|
11194
11194
|
{
|
|
11195
11195
|
"data-slot": "alert-description",
|
|
11196
|
-
className:
|
|
11196
|
+
className: H(
|
|
11197
11197
|
"col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",
|
|
11198
11198
|
e
|
|
11199
11199
|
),
|
|
@@ -11233,17 +11233,17 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11233
11233
|
calendar: td,
|
|
11234
11234
|
"check-circle-2": xs,
|
|
11235
11235
|
"chevron-left": sd,
|
|
11236
|
-
"chevron-right":
|
|
11236
|
+
"chevron-right": Mo,
|
|
11237
11237
|
clock: vd,
|
|
11238
11238
|
"credit-card": yd,
|
|
11239
11239
|
"external-link": xd,
|
|
11240
11240
|
"help-circle": Ss,
|
|
11241
11241
|
info: Cn,
|
|
11242
|
-
"loader-2":
|
|
11242
|
+
"loader-2": Oo,
|
|
11243
11243
|
mail: po,
|
|
11244
11244
|
"map-pin": Td,
|
|
11245
11245
|
"message-circle": Cs,
|
|
11246
|
-
"message-square":
|
|
11246
|
+
"message-square": Lo,
|
|
11247
11247
|
package: Od,
|
|
11248
11248
|
phone: Dd,
|
|
11249
11249
|
search: $d,
|
|
@@ -11254,7 +11254,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11254
11254
|
"x-circle": pd,
|
|
11255
11255
|
"alert-circle": ws,
|
|
11256
11256
|
"book-open": Zc
|
|
11257
|
-
},
|
|
11257
|
+
}, is = {
|
|
11258
11258
|
0: "gap-0",
|
|
11259
11259
|
1: "gap-1",
|
|
11260
11260
|
2: "gap-2",
|
|
@@ -11269,7 +11269,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11269
11269
|
default: "text-foreground",
|
|
11270
11270
|
muted: "text-muted-foreground",
|
|
11271
11271
|
destructive: "text-destructive"
|
|
11272
|
-
}, Ml = (e) => typeof e == "number" ?
|
|
11272
|
+
}, Ml = (e) => typeof e == "number" ? is[String(e)] ?? "gap-2" : typeof e == "string" ? is[e.trim()] ?? "gap-2" : "gap-2", Ov = ({ children: e, className: t, onClick: n }) => /* @__PURE__ */ p(
|
|
11273
11273
|
zt,
|
|
11274
11274
|
{
|
|
11275
11275
|
className: t,
|
|
@@ -11290,7 +11290,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11290
11290
|
), $v = ({ children: e, className: t, variant: n, hue: o, tone: r }) => /* @__PURE__ */ p(
|
|
11291
11291
|
Jg,
|
|
11292
11292
|
{
|
|
11293
|
-
className:
|
|
11293
|
+
className: H(Il[r] ?? "", t),
|
|
11294
11294
|
variant: n,
|
|
11295
11295
|
hue: o,
|
|
11296
11296
|
children: e
|
|
@@ -11428,18 +11428,18 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11428
11428
|
className: n,
|
|
11429
11429
|
children: e
|
|
11430
11430
|
}
|
|
11431
|
-
), ib = ({ children: e, className: t }) => /* @__PURE__ */ F(Iv, { className:
|
|
11432
|
-
/* @__PURE__ */ p(
|
|
11431
|
+
), ib = ({ children: e, className: t }) => /* @__PURE__ */ F(Iv, { className: H("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90", t), children: [
|
|
11432
|
+
/* @__PURE__ */ p(Mo, { className: "size-4 shrink-0 transition-transform duration-200" }),
|
|
11433
11433
|
e
|
|
11434
|
-
] }), lb = ({ children: e, className: t }) => /* @__PURE__ */ p(Mv, { className: t, children: e }), cb = ({ children: e, className: t, tone: n }) => /* @__PURE__ */ p("p", { className:
|
|
11434
|
+
] }), lb = ({ children: e, className: t }) => /* @__PURE__ */ p(Mv, { className: t, children: e }), cb = ({ children: e, className: t, tone: n }) => /* @__PURE__ */ p("p", { className: H("text-sm", Il[n] ?? "", t), children: e }), db = ({ children: e, className: t, level: n }) => {
|
|
11435
11435
|
const o = `h${n || "2"}`;
|
|
11436
|
-
return /* @__PURE__ */ p(o, { className:
|
|
11436
|
+
return /* @__PURE__ */ p(o, { className: H("font-semibold tracking-tight", t), children: e });
|
|
11437
11437
|
}, ub = ({ children: e, className: t, direction: n, gap: o }) => {
|
|
11438
11438
|
const r = n === "row" ? "flex-row" : "flex-col", s = Ml(o);
|
|
11439
|
-
return /* @__PURE__ */ p("div", { className:
|
|
11439
|
+
return /* @__PURE__ */ p("div", { className: H("flex", r, s, t), children: e });
|
|
11440
11440
|
}, fb = ({ children: e, className: t, gap: n }) => {
|
|
11441
11441
|
const o = Ml(n);
|
|
11442
|
-
return /* @__PURE__ */ p("div", { className:
|
|
11442
|
+
return /* @__PURE__ */ p("div", { className: H("flex flex-row items-center", o, t), children: e });
|
|
11443
11443
|
}, pb = ({ children: e, className: t, href: n, target: o, rel: r }) => /* @__PURE__ */ p(
|
|
11444
11444
|
"a",
|
|
11445
11445
|
{
|
|
@@ -11449,7 +11449,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11449
11449
|
className: t,
|
|
11450
11450
|
children: e
|
|
11451
11451
|
}
|
|
11452
|
-
), mb = ({ title: e, children: t, className: n }) => /* @__PURE__ */ F(zt, { className:
|
|
11452
|
+
), mb = ({ title: e, children: t, className: n }) => /* @__PURE__ */ F(zt, { className: H("overflow-hidden p-0 gap-0 shadow-sm", n), children: [
|
|
11453
11453
|
e ? /* @__PURE__ */ p($t, { className: "px-6 py-3", children: /* @__PURE__ */ p("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
|
|
11454
11454
|
/* @__PURE__ */ p("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
11455
11455
|
] }), hb = ({ icon: e, label: t, description: n, onClick: o, className: r }) => {
|
|
@@ -11458,7 +11458,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11458
11458
|
"button",
|
|
11459
11459
|
{
|
|
11460
11460
|
type: "button",
|
|
11461
|
-
className:
|
|
11461
|
+
className: H("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70", r),
|
|
11462
11462
|
onClick: o,
|
|
11463
11463
|
children: [
|
|
11464
11464
|
i && /* @__PURE__ */ p(i, { className: `${a} shrink-0 text-muted-foreground` }),
|
|
@@ -11466,13 +11466,13 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11466
11466
|
t ? /* @__PURE__ */ p("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
11467
11467
|
n ? /* @__PURE__ */ p("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(n) }) : null
|
|
11468
11468
|
] }),
|
|
11469
|
-
/* @__PURE__ */ p(
|
|
11469
|
+
/* @__PURE__ */ p(Mo, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
|
|
11470
11470
|
]
|
|
11471
11471
|
}
|
|
11472
11472
|
);
|
|
11473
11473
|
}, gb = ({ name: e, size: t, className: n }) => {
|
|
11474
11474
|
const r = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = _l[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
11475
|
-
return a ? /* @__PURE__ */ p(a, { className:
|
|
11475
|
+
return a ? /* @__PURE__ */ p(a, { className: H(r, i, n) }) : /* @__PURE__ */ p("span", { className: H("inline-block", r, i, n), "data-icon": s });
|
|
11476
11476
|
}, vb = () => ({
|
|
11477
11477
|
"ui-card": Ov,
|
|
11478
11478
|
"ui-card-content": Lv,
|
|
@@ -11510,8 +11510,8 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11510
11510
|
"ui-collapsible": ab,
|
|
11511
11511
|
"ui-collapsible-trigger": ib,
|
|
11512
11512
|
"ui-collapsible-content": lb
|
|
11513
|
-
}),
|
|
11514
|
-
const n = t ? `${t.replace(/\/$/, "")}${
|
|
11513
|
+
}), ls = "/api/ecommerce", Ol = async (e, t) => {
|
|
11514
|
+
const n = t ? `${t.replace(/\/$/, "")}${ls}` : ls, o = await fetch(n, {
|
|
11515
11515
|
method: "POST",
|
|
11516
11516
|
headers: { "Content-Type": "application/json" },
|
|
11517
11517
|
body: JSON.stringify(e)
|
|
@@ -11524,10 +11524,10 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11524
11524
|
/* @__PURE__ */ p("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ p("path", { d: "M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z", fill: "rgb(232,218,234)" }) }),
|
|
11525
11525
|
/* @__PURE__ */ p("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ p("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", fill: "rgb(15,13,25)" }) }),
|
|
11526
11526
|
/* @__PURE__ */ p("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ p("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", fill: "rgb(252,248,161)" }) })
|
|
11527
|
-
] }),
|
|
11528
|
-
if (typeof document > "u" || document.getElementById(
|
|
11527
|
+
] }), cs = "stackable-dev-badge-styles", yb = () => {
|
|
11528
|
+
if (typeof document > "u" || document.getElementById(cs)) return;
|
|
11529
11529
|
const e = document.createElement("style");
|
|
11530
|
-
e.id =
|
|
11530
|
+
e.id = cs, e.textContent = `
|
|
11531
11531
|
@keyframes stackable-icon-wiggle {
|
|
11532
11532
|
0% { transform: rotate(0deg); }
|
|
11533
11533
|
70% { transform: rotate(200deg); }
|
|
@@ -11553,7 +11553,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11553
11553
|
}, [m]), ce(() => {
|
|
11554
11554
|
if (typeof window > "u") return;
|
|
11555
11555
|
const b = () => {
|
|
11556
|
-
const v =
|
|
11556
|
+
const v = vs(window.location.search);
|
|
11557
11557
|
r(v);
|
|
11558
11558
|
};
|
|
11559
11559
|
b();
|
|
@@ -11814,7 +11814,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _l = {
|
|
|
11814
11814
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${S}`), d([]), y(!0);
|
|
11815
11815
|
return;
|
|
11816
11816
|
}
|
|
11817
|
-
const A = await T.json(), O =
|
|
11817
|
+
const A = await T.json(), O = vs(typeof window < "u" ? window.location.search : ""), P = await Bc(A, O), { tokens: Q, errors: ie } = await kb(P, n, o, O);
|
|
11818
11818
|
d(P), c(O), h(new Map(Q)), g(ie);
|
|
11819
11819
|
} catch (T) {
|
|
11820
11820
|
console.error("Failed to load extensions:", T);
|
|
@@ -12177,7 +12177,7 @@ const Ab = ({ ...e }) => {
|
|
|
12177
12177
|
info: /* @__PURE__ */ p(Cn, { className: "size-4" }),
|
|
12178
12178
|
warning: /* @__PURE__ */ p(Wd, { className: "size-4" }),
|
|
12179
12179
|
error: /* @__PURE__ */ p(Id, { className: "size-4" }),
|
|
12180
|
-
loading: /* @__PURE__ */ p(
|
|
12180
|
+
loading: /* @__PURE__ */ p(Oo, { className: "size-4 animate-spin" })
|
|
12181
12181
|
},
|
|
12182
12182
|
style: {
|
|
12183
12183
|
"--normal-bg": "var(--popover)",
|
|
@@ -12191,24 +12191,33 @@ const Ab = ({ ...e }) => {
|
|
|
12191
12191
|
}, _b = { dark: "dark", light: "widget-theme-light" }, Ib = { dark: "dark", light: "light" }, Ll = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ F("div", { "data-id": "widget-body", className: _b[t], style: { position: "relative", transform: "translateZ(0)" }, children: [
|
|
12192
12192
|
/* @__PURE__ */ p("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ p("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }),
|
|
12193
12193
|
/* @__PURE__ */ p(Ab, { position: "bottom-center", theme: Ib[t] ?? "system", toastOptions: { descriptionClassName: "!text-muted-foreground" } })
|
|
12194
|
-
] }), Mb = ({ className: e }) => /* @__PURE__ */ p("svg", { className: e, viewBox: "
|
|
12194
|
+
] }), Mb = ({ className: e }) => /* @__PURE__ */ p("svg", { className: e, viewBox: "1 4 22 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ p("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)" }) }), Ob = {
|
|
12195
12195
|
airplay: Yc,
|
|
12196
12196
|
"message-circle": Cs,
|
|
12197
|
-
"message-square":
|
|
12197
|
+
"message-square": Lo,
|
|
12198
12198
|
headphones: Cd,
|
|
12199
12199
|
"help-circle": Ss,
|
|
12200
12200
|
bot: Qc,
|
|
12201
12201
|
sparkles: ks,
|
|
12202
12202
|
zap: qd
|
|
12203
|
-
}, Dl = ({ onClick: e, icon: t, iconName: n }) => {
|
|
12204
|
-
const
|
|
12203
|
+
}, Dl = ({ onClick: e, icon: t, iconName: n, isOpen: o }) => {
|
|
12204
|
+
const r = t ?? Ob[n] ?? Mb;
|
|
12205
12205
|
return /* @__PURE__ */ p("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ p(
|
|
12206
12206
|
Al,
|
|
12207
12207
|
{
|
|
12208
|
-
className: "h-12 w-12 rounded-full",
|
|
12209
12208
|
size: "icon",
|
|
12209
|
+
className: "h-12 w-12 rounded-full cursor-pointer",
|
|
12210
12210
|
onClick: e,
|
|
12211
|
-
children: /* @__PURE__ */
|
|
12211
|
+
children: /* @__PURE__ */ F("span", { className: "relative h-6 w-6", children: [
|
|
12212
|
+
/* @__PURE__ */ p(r, { className: H(
|
|
12213
|
+
"absolute inset-0 h-6 w-6 transition-all duration-300",
|
|
12214
|
+
o ? "rotate-90 scale-0 opacity-0" : "rotate-0 scale-100 opacity-100"
|
|
12215
|
+
) }),
|
|
12216
|
+
/* @__PURE__ */ p(Io, { className: H(
|
|
12217
|
+
"absolute inset-0 h-6 w-6 transition-all duration-300",
|
|
12218
|
+
o ? "rotate-0 scale-100 opacity-100" : "-rotate-90 scale-0 opacity-0"
|
|
12219
|
+
) })
|
|
12220
|
+
] })
|
|
12212
12221
|
}
|
|
12213
12222
|
) });
|
|
12214
12223
|
}, Yb = ({ children: e, icon: t, iconName: n, theme: o }) => {
|
|
@@ -12225,12 +12234,20 @@ const Ab = ({ ...e }) => {
|
|
|
12225
12234
|
window.removeEventListener("ext-action-open", m), window.removeEventListener("ext-action-close", h), window.removeEventListener("ext-action-toggle", c), window.removeEventListener("ext-action-show", b), window.removeEventListener("ext-action-hide", g);
|
|
12226
12235
|
};
|
|
12227
12236
|
}, []), /* @__PURE__ */ F(Ie, { children: [
|
|
12228
|
-
a && /* @__PURE__ */ p(
|
|
12237
|
+
a && /* @__PURE__ */ p(
|
|
12238
|
+
Dl,
|
|
12239
|
+
{
|
|
12240
|
+
isOpen: r,
|
|
12241
|
+
icon: t,
|
|
12242
|
+
iconName: n,
|
|
12243
|
+
onClick: u
|
|
12244
|
+
}
|
|
12245
|
+
),
|
|
12229
12246
|
l && /* @__PURE__ */ p(
|
|
12230
12247
|
"div",
|
|
12231
12248
|
{
|
|
12232
12249
|
"data-id": "widget-container",
|
|
12233
|
-
className:
|
|
12250
|
+
className: H(
|
|
12234
12251
|
"overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl transition-all duration-200 ease-out origin-bottom-right",
|
|
12235
12252
|
r ? "opacity-100 scale-100 translate-y-0 pointer-events-auto" : "opacity-0 scale-95 translate-y-2 pointer-events-none"
|
|
12236
12253
|
),
|
|
@@ -12276,7 +12293,7 @@ const Ab = ({ ...e }) => {
|
|
|
12276
12293
|
var l, d;
|
|
12277
12294
|
const { customer: r, loading: s, error: a } = Db(e, n);
|
|
12278
12295
|
if (s)
|
|
12279
|
-
return /* @__PURE__ */ p(zt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ p($t, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ p(
|
|
12296
|
+
return /* @__PURE__ */ p(zt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ p($t, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ p(Oo, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
12280
12297
|
if (a || !r) {
|
|
12281
12298
|
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", c = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
12282
12299
|
return /* @__PURE__ */ p(zt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ F($t, { className: "p-4 pb-0 pt-2", children: [
|
|
@@ -12382,7 +12399,7 @@ const Ab = ({ ...e }) => {
|
|
|
12382
12399
|
const a = Math.max(
|
|
12383
12400
|
lo,
|
|
12384
12401
|
Math.min(co, s)
|
|
12385
|
-
), { extensions: i } =
|
|
12402
|
+
), { extensions: i } = gs(), l = Ft(() => i.some((k) => k.enabled && (k.manifest.targets.includes("slot.header") || k.manifest.targets.includes("slot.content"))), [i]), [d, u] = le("extensions"), [c, m] = le(a), [h, b] = le(!1), [g, v] = le("loading"), [y, w] = le(!1), x = We(null), C = _e(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
12386
12403
|
mode: "embedded",
|
|
12387
12404
|
messageLog: { targetElement: "#widget_messages" },
|
|
12388
12405
|
conversationList: { targetElement: "#widget_conversations" }
|
|
@@ -12470,7 +12487,7 @@ const Ab = ({ ...e }) => {
|
|
|
12470
12487
|
"button",
|
|
12471
12488
|
{
|
|
12472
12489
|
onClick: () => u("extensions"),
|
|
12473
|
-
className:
|
|
12490
|
+
className: H(
|
|
12474
12491
|
// eslint-disable-next-line @stylistic/max-len
|
|
12475
12492
|
"rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
|
|
12476
12493
|
d === "extensions" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
@@ -12483,20 +12500,20 @@ const Ab = ({ ...e }) => {
|
|
|
12483
12500
|
"button",
|
|
12484
12501
|
{
|
|
12485
12502
|
onClick: () => u("conversations"),
|
|
12486
|
-
className:
|
|
12503
|
+
className: H(
|
|
12487
12504
|
// eslint-disable-next-line @stylistic/max-len
|
|
12488
12505
|
"rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
|
|
12489
12506
|
d === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
12490
12507
|
),
|
|
12491
12508
|
title: "Conversations",
|
|
12492
|
-
children: /* @__PURE__ */ p(
|
|
12509
|
+
children: /* @__PURE__ */ p(Lo, { className: "h-4 w-4" })
|
|
12493
12510
|
}
|
|
12494
12511
|
)
|
|
12495
12512
|
] })
|
|
12496
12513
|
] })
|
|
12497
12514
|
] }),
|
|
12498
12515
|
/* @__PURE__ */ F("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
12499
|
-
/* @__PURE__ */ F("div", { className:
|
|
12516
|
+
/* @__PURE__ */ F("div", { className: H("flex flex-col gap-2", d === "conversations" && "hidden"), children: [
|
|
12500
12517
|
/* @__PURE__ */ p(zb, { customerId: o, customerEmail: r, queryApiBase: n, children: /* @__PURE__ */ p(
|
|
12501
12518
|
Jt,
|
|
12502
12519
|
{
|
|
@@ -12514,7 +12531,7 @@ const Ab = ({ ...e }) => {
|
|
|
12514
12531
|
}
|
|
12515
12532
|
)
|
|
12516
12533
|
] }),
|
|
12517
|
-
/* @__PURE__ */ p("div", { className:
|
|
12534
|
+
/* @__PURE__ */ p("div", { className: H(
|
|
12518
12535
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
12519
12536
|
d === "extensions" && "hidden"
|
|
12520
12537
|
), children: g === "error" ? /* @__PURE__ */ p("div", { className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ p("p", { children: "Error loading conversations." }) }) : /* @__PURE__ */ p($b, {}) })
|
|
@@ -12564,7 +12581,7 @@ const Ab = ({ ...e }) => {
|
|
|
12564
12581
|
/* @__PURE__ */ p(
|
|
12565
12582
|
"div",
|
|
12566
12583
|
{
|
|
12567
|
-
className:
|
|
12584
|
+
className: H(
|
|
12568
12585
|
"group/resize absolute z-20 flex items-center justify-center",
|
|
12569
12586
|
h ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
|
|
12570
12587
|
),
|
|
@@ -12579,7 +12596,7 @@ const Ab = ({ ...e }) => {
|
|
|
12579
12596
|
children: /* @__PURE__ */ p(
|
|
12580
12597
|
"div",
|
|
12581
12598
|
{
|
|
12582
|
-
className:
|
|
12599
|
+
className: H(
|
|
12583
12600
|
"rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",
|
|
12584
12601
|
h ? "h-20 w-0.5" : "h-0.5 w-20",
|
|
12585
12602
|
y ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
|
|
@@ -12591,27 +12608,27 @@ const Ab = ({ ...e }) => {
|
|
|
12591
12608
|
y && /* @__PURE__ */ p(
|
|
12592
12609
|
"div",
|
|
12593
12610
|
{
|
|
12594
|
-
className:
|
|
12611
|
+
className: H("absolute inset-0 z-40", h ? "cursor-col-resize" : "cursor-row-resize"),
|
|
12595
12612
|
onMouseUp: () => w(!1)
|
|
12596
12613
|
}
|
|
12597
12614
|
)
|
|
12598
12615
|
] })
|
|
12599
12616
|
] })
|
|
12600
12617
|
] });
|
|
12601
|
-
}, Bb = "ze-snippet",
|
|
12618
|
+
}, Bb = "ze-snippet", ds = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, Hb = (e, t = {}) => {
|
|
12602
12619
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
12603
12620
|
return Promise.resolve();
|
|
12604
12621
|
const { autorender: n = !1, scriptId: o = Bb } = t;
|
|
12605
12622
|
window.zEMessenger = { autorender: n };
|
|
12606
12623
|
const r = document.getElementById(o);
|
|
12607
12624
|
if (r) {
|
|
12608
|
-
if (r.getAttribute("src") ===
|
|
12625
|
+
if (r.getAttribute("src") === ds(e))
|
|
12609
12626
|
return Promise.resolve();
|
|
12610
12627
|
r.remove();
|
|
12611
12628
|
}
|
|
12612
12629
|
return new Promise((s, a) => {
|
|
12613
12630
|
const i = document.createElement("script");
|
|
12614
|
-
i.id = o, i.src =
|
|
12631
|
+
i.id = o, i.src = ds(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
12615
12632
|
});
|
|
12616
12633
|
}, Xb = ({ config: e }) => (ce(() => {
|
|
12617
12634
|
e.snippetKey && Hb(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|