@stackable-labs/embeddables 1.93.0 → 1.94.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.js +309 -311
- package/dist/stackable-widget.external.js +13 -13
- package/dist/stackable-widget.js +20 -20
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as q, jsx as f, Fragment as Ie } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import I, { createContext as Jc, useState as le, useRef as Me, useEffect as ce, useContext as Qc, createElement as hn, useMemo as Vt, forwardRef as
|
|
3
|
+
import I, { createContext as Jc, useState as le, useRef as Me, useEffect as ce, useContext as Qc, createElement as hn, useMemo as Vt, forwardRef as ps, useLayoutEffect as el, useCallback as ve } from "react";
|
|
4
4
|
import * as kn from "react-dom";
|
|
5
|
-
import
|
|
5
|
+
import ms from "react-dom";
|
|
6
6
|
const tl = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "a2469482-5802-410f-a255-8c10b30693bb";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -73,17 +73,15 @@ const tl = () => {
|
|
|
73
73
|
SUPER_ADMIN: "super_admin"
|
|
74
74
|
};
|
|
75
75
|
new Set(Object.values(rl));
|
|
76
|
-
const
|
|
76
|
+
const hs = {
|
|
77
77
|
ADMIN: "org:admin",
|
|
78
|
-
OWNER: "org:owner",
|
|
79
78
|
MEMBER: "org:member"
|
|
80
79
|
}, sl = [
|
|
81
|
-
|
|
82
|
-
go.OWNER
|
|
80
|
+
hs.ADMIN
|
|
83
81
|
];
|
|
84
82
|
[
|
|
85
83
|
...Object.values(sl),
|
|
86
|
-
|
|
84
|
+
hs.MEMBER
|
|
87
85
|
];
|
|
88
86
|
const gs = {
|
|
89
87
|
"ui-card": {
|
|
@@ -722,7 +720,7 @@ const bl = (e) => {
|
|
|
722
720
|
return document.addEventListener("visibilitychange", n), () => window.removeEventListener("visibilitychange", n);
|
|
723
721
|
}, []), e;
|
|
724
722
|
};
|
|
725
|
-
let
|
|
723
|
+
let go = 1;
|
|
726
724
|
class Rl {
|
|
727
725
|
constructor() {
|
|
728
726
|
this.subscribe = (t) => (this.subscribers.push(t), () => {
|
|
@@ -737,7 +735,7 @@ class Rl {
|
|
|
737
735
|
];
|
|
738
736
|
}, this.create = (t) => {
|
|
739
737
|
var n;
|
|
740
|
-
const { message: o, ...r } = t, s = typeof (t == null ? void 0 : t.id) == "number" || ((n = t.id) == null ? void 0 : n.length) > 0 ? t.id :
|
|
738
|
+
const { message: o, ...r } = t, s = typeof (t == null ? void 0 : t.id) == "number" || ((n = t.id) == null ? void 0 : n.length) > 0 ? t.id : go++, a = this.toasts.find((c) => c.id === s), i = t.dismissible === void 0 ? !0 : t.dismissible;
|
|
741
739
|
return this.dismissedToasts.has(s) && this.dismissedToasts.delete(s), a ? this.toasts = this.toasts.map((c) => c.id === s ? (this.publish({
|
|
742
740
|
...c,
|
|
743
741
|
...t,
|
|
@@ -868,7 +866,7 @@ class Rl {
|
|
|
868
866
|
unwrap: c
|
|
869
867
|
});
|
|
870
868
|
}, this.custom = (t, n) => {
|
|
871
|
-
const o = (n == null ? void 0 : n.id) ||
|
|
869
|
+
const o = (n == null ? void 0 : n.id) || go++;
|
|
872
870
|
return this.create({
|
|
873
871
|
jsx: t(o),
|
|
874
872
|
id: o,
|
|
@@ -878,7 +876,7 @@ class Rl {
|
|
|
878
876
|
}
|
|
879
877
|
}
|
|
880
878
|
const we = new Rl(), Tl = (e, t) => {
|
|
881
|
-
const n = (t == null ? void 0 : t.id) ||
|
|
879
|
+
const n = (t == null ? void 0 : t.id) || go++;
|
|
882
880
|
return we.addToast({
|
|
883
881
|
title: e,
|
|
884
882
|
...t,
|
|
@@ -902,7 +900,7 @@ vl("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;
|
|
|
902
900
|
function nn(e) {
|
|
903
901
|
return e.label !== void 0;
|
|
904
902
|
}
|
|
905
|
-
const Ml = 3, Ol = "24px", Ll = "16px",
|
|
903
|
+
const Ml = 3, Ol = "24px", Ll = "16px", yr = 4e3, Dl = 356, zl = 14, $l = 45, Fl = 200;
|
|
906
904
|
function ze(...e) {
|
|
907
905
|
return e.filter(Boolean).join(" ");
|
|
908
906
|
}
|
|
@@ -912,7 +910,7 @@ function Bl(e) {
|
|
|
912
910
|
}
|
|
913
911
|
const Hl = (e) => {
|
|
914
912
|
var t, n, o, r, s, a, i, c, d;
|
|
915
|
-
const { invert: u, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: T, style: N, cancelButtonStyle: E, actionButtonStyle: L, className: W = "", descriptionClassName: M = "", duration: F, position: H, gap: O, expandByDefault: K, classNames: A, icons: D, closeButtonAriaLabel: U = "Close toast" } = e, [k, S] = I.useState(null), [_, $] = I.useState(null), [P, z] = I.useState(!1), [B, J] = I.useState(!1), [j, Y] = I.useState(!1), [ee, te] = I.useState(!1), [se, oe] = I.useState(!1), [ue, fe] = I.useState(0), [at, Ke] = I.useState(0), Te = I.useRef(l.duration || F ||
|
|
913
|
+
const { invert: u, toast: l, unstyled: m, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: T, style: N, cancelButtonStyle: E, actionButtonStyle: L, className: W = "", descriptionClassName: M = "", duration: F, position: H, gap: O, expandByDefault: K, classNames: A, icons: D, closeButtonAriaLabel: U = "Close toast" } = e, [k, S] = I.useState(null), [_, $] = I.useState(null), [P, z] = I.useState(!1), [B, J] = I.useState(!1), [j, Y] = I.useState(!1), [ee, te] = I.useState(!1), [se, oe] = I.useState(!1), [ue, fe] = I.useState(0), [at, Ke] = I.useState(0), Te = I.useRef(l.duration || F || yr), Zt = I.useRef(null), ye = I.useRef(null), Vc = y === 0, Wc = y + 1 <= g, Se = l.type, gt = l.dismissible !== !1, Uc = l.className || "", jc = l.descriptionClassName || "", Jt = I.useMemo(() => v.findIndex((ne) => ne.toastId === l.id) || 0, [
|
|
916
914
|
v,
|
|
917
915
|
l.id
|
|
918
916
|
]), Gc = I.useMemo(() => {
|
|
@@ -921,20 +919,20 @@ const Hl = (e) => {
|
|
|
921
919
|
}, [
|
|
922
920
|
l.closeButton,
|
|
923
921
|
T
|
|
924
|
-
]),
|
|
922
|
+
]), fr = I.useMemo(() => l.duration || F || yr, [
|
|
925
923
|
l.duration,
|
|
926
924
|
F
|
|
927
|
-
]), Kn = I.useRef(0), vt = I.useRef(0),
|
|
925
|
+
]), Kn = I.useRef(0), vt = I.useRef(0), pr = I.useRef(0), bt = I.useRef(null), [Yc, qc] = H.split("-"), mr = I.useMemo(() => v.reduce((ne, me, ge) => ge >= Jt ? ne : ne + me.height, 0), [
|
|
928
926
|
v,
|
|
929
927
|
Jt
|
|
930
|
-
]),
|
|
931
|
-
vt.current = I.useMemo(() => Jt * O +
|
|
928
|
+
]), hr = Nl(), Kc = l.invert || u, Xn = Se === "loading";
|
|
929
|
+
vt.current = I.useMemo(() => Jt * O + mr, [
|
|
932
930
|
Jt,
|
|
933
|
-
|
|
931
|
+
mr
|
|
934
932
|
]), I.useEffect(() => {
|
|
935
|
-
Te.current =
|
|
933
|
+
Te.current = fr;
|
|
936
934
|
}, [
|
|
937
|
-
|
|
935
|
+
fr
|
|
938
936
|
]), I.useEffect(() => {
|
|
939
937
|
z(!0);
|
|
940
938
|
}, []), I.useEffect(() => {
|
|
@@ -992,12 +990,12 @@ const Hl = (e) => {
|
|
|
992
990
|
I.useEffect(() => {
|
|
993
991
|
if (l.promise && Se === "loading" || l.duration === 1 / 0 || l.type === "loading") return;
|
|
994
992
|
let ne;
|
|
995
|
-
return x || h ||
|
|
996
|
-
if (
|
|
993
|
+
return x || h || hr ? (() => {
|
|
994
|
+
if (pr.current < Kn.current) {
|
|
997
995
|
const Ce = (/* @__PURE__ */ new Date()).getTime() - Kn.current;
|
|
998
996
|
Te.current = Te.current - Ce;
|
|
999
997
|
}
|
|
1000
|
-
|
|
998
|
+
pr.current = (/* @__PURE__ */ new Date()).getTime();
|
|
1001
999
|
})() : (() => {
|
|
1002
1000
|
Te.current !== 1 / 0 && (Kn.current = (/* @__PURE__ */ new Date()).getTime(), ne = setTimeout(() => {
|
|
1003
1001
|
l.onAutoClose == null || l.onAutoClose.call(l, l), Xe();
|
|
@@ -1008,7 +1006,7 @@ const Hl = (e) => {
|
|
|
1008
1006
|
h,
|
|
1009
1007
|
l,
|
|
1010
1008
|
Se,
|
|
1011
|
-
|
|
1009
|
+
hr,
|
|
1012
1010
|
Xe
|
|
1013
1011
|
]), I.useEffect(() => {
|
|
1014
1012
|
l.delete && (Xe(), l.onDismiss == null || l.onDismiss.call(l, l));
|
|
@@ -1031,13 +1029,13 @@ const Hl = (e) => {
|
|
|
1031
1029
|
});
|
|
1032
1030
|
}
|
|
1033
1031
|
const Zc = l.icon || (D == null ? void 0 : D[Se]) || bl(Se);
|
|
1034
|
-
var
|
|
1032
|
+
var gr, vr;
|
|
1035
1033
|
return /* @__PURE__ */ I.createElement("li", {
|
|
1036
1034
|
tabIndex: 0,
|
|
1037
1035
|
ref: ye,
|
|
1038
1036
|
className: ze(W, Uc, A == null ? void 0 : A.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, A == null ? void 0 : A.default, A == null ? void 0 : A[Se], l == null || (n = l.classNames) == null ? void 0 : n[Se]),
|
|
1039
1037
|
"data-sonner-toast": "",
|
|
1040
|
-
"data-rich-colors": (
|
|
1038
|
+
"data-rich-colors": (gr = l.richColors) != null ? gr : R,
|
|
1041
1039
|
"data-styled": !(l.jsx || l.unstyled || m),
|
|
1042
1040
|
"data-mounted": P,
|
|
1043
1041
|
"data-promise": !!l.promise,
|
|
@@ -1099,20 +1097,20 @@ const Hl = (e) => {
|
|
|
1099
1097
|
x: 0,
|
|
1100
1098
|
y: 0
|
|
1101
1099
|
};
|
|
1102
|
-
const
|
|
1100
|
+
const br = (it) => 1 / (1.5 + Math.abs(it) / 20);
|
|
1103
1101
|
if (k === "y") {
|
|
1104
1102
|
if (Pe.includes("top") || Pe.includes("bottom"))
|
|
1105
1103
|
if (Pe.includes("top") && he < 0 || Pe.includes("bottom") && he > 0)
|
|
1106
1104
|
Ae.y = he;
|
|
1107
1105
|
else {
|
|
1108
|
-
const it = he *
|
|
1106
|
+
const it = he * br(he);
|
|
1109
1107
|
Ae.y = Math.abs(it) < Math.abs(he) ? it : he;
|
|
1110
1108
|
}
|
|
1111
1109
|
} else if (k === "x" && (Pe.includes("left") || Pe.includes("right")))
|
|
1112
1110
|
if (Pe.includes("left") && Ne < 0 || Pe.includes("right") && Ne > 0)
|
|
1113
1111
|
Ae.x = Ne;
|
|
1114
1112
|
else {
|
|
1115
|
-
const it = Ne *
|
|
1113
|
+
const it = Ne * br(Ne);
|
|
1116
1114
|
Ae.x = Math.abs(it) < Math.abs(Ne) ? it : Ne;
|
|
1117
1115
|
}
|
|
1118
1116
|
(Math.abs(Ae.x) > 0 || Math.abs(Ae.y) > 0) && oe(!0), (ge = ye.current) == null || ge.style.setProperty("--swipe-amount-x", `${Ae.x}px`), (Ce = ye.current) == null || Ce.style.setProperty("--swipe-amount-y", `${Ae.y}px`);
|
|
@@ -1126,7 +1124,7 @@ const Hl = (e) => {
|
|
|
1126
1124
|
Xe(), l.onDismiss == null || l.onDismiss.call(l, l);
|
|
1127
1125
|
},
|
|
1128
1126
|
className: ze(A == null ? void 0 : A.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
|
|
1129
|
-
}, (
|
|
1127
|
+
}, (vr = D == null ? void 0 : D.close) != null ? vr : kl) : null, (Se || l.icon || l.promise) && l.icon !== null && ((D == null ? void 0 : D[Se]) !== null || l.icon) ? /* @__PURE__ */ I.createElement("div", {
|
|
1130
1128
|
"data-icon": "",
|
|
1131
1129
|
className: ze(A == null ? void 0 : A.icon, l == null || (r = l.classNames) == null ? void 0 : r.icon)
|
|
1132
1130
|
}, l.promise || l.type === "loading" && !l.icon ? l.icon || Xc() : null, l.type !== "loading" ? Zc : null) : null, /* @__PURE__ */ I.createElement("div", {
|
|
@@ -1156,7 +1154,7 @@ const Hl = (e) => {
|
|
|
1156
1154
|
className: ze(A == null ? void 0 : A.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
|
|
1157
1155
|
}, l.action.label) : null);
|
|
1158
1156
|
};
|
|
1159
|
-
function
|
|
1157
|
+
function wr() {
|
|
1160
1158
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
1161
1159
|
const e = document.documentElement.getAttribute("dir");
|
|
1162
1160
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
@@ -1192,7 +1190,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1192
1190
|
const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
|
|
1193
1191
|
"altKey",
|
|
1194
1192
|
"KeyT"
|
|
1195
|
-
], expand: i, closeButton: c, className: d, offset: u, mobileOffset: l, theme: m = "light", richColors: h, duration: b, style: g, visibleToasts: v = Ml, toastOptions: y, dir: w =
|
|
1193
|
+
], expand: i, closeButton: c, className: d, offset: u, mobileOffset: l, theme: m = "light", richColors: h, duration: b, style: g, visibleToasts: v = Ml, toastOptions: y, dir: w = wr(), gap: x = zl, icons: C, containerAriaLabel: R = "Notifications" } = t, [T, N] = I.useState([]), E = I.useMemo(() => o ? T.filter((P) => P.toasterId === o) : T.filter((P) => !P.toasterId), [
|
|
1196
1194
|
T,
|
|
1197
1195
|
o
|
|
1198
1196
|
]), L = I.useMemo(() => Array.from(new Set([
|
|
@@ -1217,7 +1215,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1217
1215
|
return;
|
|
1218
1216
|
}
|
|
1219
1217
|
setTimeout(() => {
|
|
1220
|
-
|
|
1218
|
+
ms.flushSync(() => {
|
|
1221
1219
|
N((z) => {
|
|
1222
1220
|
const B = z.findIndex((J) => J.id === P.id);
|
|
1223
1221
|
return B !== -1 ? [
|
|
@@ -1297,7 +1295,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1297
1295
|
const [J, j] = P.split("-");
|
|
1298
1296
|
return E.length ? /* @__PURE__ */ I.createElement("ol", {
|
|
1299
1297
|
key: P,
|
|
1300
|
-
dir: w === "auto" ?
|
|
1298
|
+
dir: w === "auto" ? wr() : w,
|
|
1301
1299
|
tabIndex: -1,
|
|
1302
1300
|
ref: U,
|
|
1303
1301
|
className: d,
|
|
@@ -1363,7 +1361,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1363
1361
|
});
|
|
1364
1362
|
})) : null;
|
|
1365
1363
|
}));
|
|
1366
|
-
}), Ul = (e) => e.startsWith("http") && !e.endsWith(".js"),
|
|
1364
|
+
}), Ul = (e) => e.startsWith("http") && !e.endsWith(".js"), xr = (e) => {
|
|
1367
1365
|
try {
|
|
1368
1366
|
const { hostname: t } = new URL(e);
|
|
1369
1367
|
return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
|
|
@@ -1383,16 +1381,16 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1383
1381
|
if (!r.startsWith("http")) {
|
|
1384
1382
|
try {
|
|
1385
1383
|
const s = JSON.parse(jl(r));
|
|
1386
|
-
if (s.url &&
|
|
1384
|
+
if (s.url && xr(s.url))
|
|
1387
1385
|
return { extensionId: o, bundleUrl: s.url, mode: t, token: s.token };
|
|
1388
1386
|
} catch {
|
|
1389
1387
|
}
|
|
1390
1388
|
return;
|
|
1391
1389
|
}
|
|
1392
|
-
if (
|
|
1390
|
+
if (xr(r))
|
|
1393
1391
|
return { extensionId: o, bundleUrl: r, mode: t };
|
|
1394
1392
|
}
|
|
1395
|
-
},
|
|
1393
|
+
}, Sr = (e, t, n) => {
|
|
1396
1394
|
const o = e.getAll(t);
|
|
1397
1395
|
if (o.length === 0)
|
|
1398
1396
|
return [];
|
|
@@ -1408,7 +1406,7 @@ const Wl = /* @__PURE__ */ I.forwardRef(function(t, n) {
|
|
|
1408
1406
|
}, ys = (e) => {
|
|
1409
1407
|
const t = new URLSearchParams(e);
|
|
1410
1408
|
try {
|
|
1411
|
-
const n =
|
|
1409
|
+
const n = Sr(t, "_stackable_dev", "dev"), o = Sr(t, "_stackable_staging", "staging"), r = /* @__PURE__ */ new Map();
|
|
1412
1410
|
for (const s of n)
|
|
1413
1411
|
r.set(s.extensionId, s);
|
|
1414
1412
|
for (const s of o)
|
|
@@ -1465,7 +1463,7 @@ const Kl = (e) => e.replace(
|
|
|
1465
1463
|
* This source code is licensed under the ISC license.
|
|
1466
1464
|
* See the LICENSE file in the root directory of this source tree.
|
|
1467
1465
|
*/
|
|
1468
|
-
const
|
|
1466
|
+
const Cr = (e) => {
|
|
1469
1467
|
const t = Kl(e);
|
|
1470
1468
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1471
1469
|
};
|
|
@@ -1504,7 +1502,7 @@ const Zl = (e) => {
|
|
|
1504
1502
|
* This source code is licensed under the ISC license.
|
|
1505
1503
|
* See the LICENSE file in the root directory of this source tree.
|
|
1506
1504
|
*/
|
|
1507
|
-
const Jl =
|
|
1505
|
+
const Jl = ps(
|
|
1508
1506
|
({
|
|
1509
1507
|
color: e = "currentColor",
|
|
1510
1508
|
size: t = 24,
|
|
@@ -1540,19 +1538,19 @@ const Jl = ms(
|
|
|
1540
1538
|
* See the LICENSE file in the root directory of this source tree.
|
|
1541
1539
|
*/
|
|
1542
1540
|
const ae = (e, t) => {
|
|
1543
|
-
const n =
|
|
1541
|
+
const n = ps(
|
|
1544
1542
|
({ className: o, ...r }, s) => hn(Jl, {
|
|
1545
1543
|
ref: s,
|
|
1546
1544
|
iconNode: t,
|
|
1547
1545
|
className: ws(
|
|
1548
|
-
`lucide-${ql(
|
|
1546
|
+
`lucide-${ql(Cr(e))}`,
|
|
1549
1547
|
`lucide-${e}`,
|
|
1550
1548
|
o
|
|
1551
1549
|
),
|
|
1552
1550
|
...r
|
|
1553
1551
|
})
|
|
1554
1552
|
);
|
|
1555
|
-
return n.displayName =
|
|
1553
|
+
return n.displayName = Cr(e), n;
|
|
1556
1554
|
};
|
|
1557
1555
|
/**
|
|
1558
1556
|
* @license lucide-react v0.577.0 - ISC
|
|
@@ -1649,7 +1647,7 @@ const ud = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], fd = ae("chevron-
|
|
|
1649
1647
|
* This source code is licensed under the ISC license.
|
|
1650
1648
|
* See the LICENSE file in the root directory of this source tree.
|
|
1651
1649
|
*/
|
|
1652
|
-
const pd = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
1650
|
+
const pd = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Do = ae("chevron-right", pd);
|
|
1653
1651
|
/**
|
|
1654
1652
|
* @license lucide-react v0.577.0 - ISC
|
|
1655
1653
|
*
|
|
@@ -1780,7 +1778,7 @@ const Md = [
|
|
|
1780
1778
|
* This source code is licensed under the ISC license.
|
|
1781
1779
|
* See the LICENSE file in the root directory of this source tree.
|
|
1782
1780
|
*/
|
|
1783
|
-
const Od = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]],
|
|
1781
|
+
const Od = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], zo = ae("loader-circle", Od);
|
|
1784
1782
|
/**
|
|
1785
1783
|
* @license lucide-react v0.577.0 - ISC
|
|
1786
1784
|
*
|
|
@@ -1790,7 +1788,7 @@ const Od = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], $o =
|
|
|
1790
1788
|
const Ld = [
|
|
1791
1789
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
1792
1790
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
1793
|
-
],
|
|
1791
|
+
], vo = ae("mail", Ld);
|
|
1794
1792
|
/**
|
|
1795
1793
|
* @license lucide-react v0.577.0 - ISC
|
|
1796
1794
|
*
|
|
@@ -1836,7 +1834,7 @@ const Fd = [
|
|
|
1836
1834
|
key: "18887p"
|
|
1837
1835
|
}
|
|
1838
1836
|
]
|
|
1839
|
-
],
|
|
1837
|
+
], $o = ae("message-square", Fd);
|
|
1840
1838
|
/**
|
|
1841
1839
|
* @license lucide-react v0.577.0 - ISC
|
|
1842
1840
|
*
|
|
@@ -2030,7 +2028,7 @@ const au = (e, t) => {
|
|
|
2030
2028
|
nextPart: e,
|
|
2031
2029
|
validators: t,
|
|
2032
2030
|
classGroupId: n
|
|
2033
|
-
}), gn = "-",
|
|
2031
|
+
}), gn = "-", Er = [], cu = "arbitrary..", lu = (e) => {
|
|
2034
2032
|
const t = uu(e), {
|
|
2035
2033
|
conflictingClassGroups: n,
|
|
2036
2034
|
conflictingClassGroupModifiers: o
|
|
@@ -2045,9 +2043,9 @@ const au = (e, t) => {
|
|
|
2045
2043
|
getConflictingClassGroupIds: (a, i) => {
|
|
2046
2044
|
if (i) {
|
|
2047
2045
|
const c = o[a], d = n[a];
|
|
2048
|
-
return c ? d ? au(d, c) : c : d ||
|
|
2046
|
+
return c ? d ? au(d, c) : c : d || Er;
|
|
2049
2047
|
}
|
|
2050
|
-
return n[a] ||
|
|
2048
|
+
return n[a] || Er;
|
|
2051
2049
|
}
|
|
2052
2050
|
};
|
|
2053
2051
|
}, Is = (e, t, n) => {
|
|
@@ -2080,10 +2078,10 @@ const au = (e, t) => {
|
|
|
2080
2078
|
const n = _s();
|
|
2081
2079
|
for (const o in e) {
|
|
2082
2080
|
const r = e[o];
|
|
2083
|
-
|
|
2081
|
+
Fo(r, n, o, t);
|
|
2084
2082
|
}
|
|
2085
2083
|
return n;
|
|
2086
|
-
},
|
|
2084
|
+
}, Fo = (e, t, n, o) => {
|
|
2087
2085
|
const r = e.length;
|
|
2088
2086
|
for (let s = 0; s < r; s++) {
|
|
2089
2087
|
const a = e[s];
|
|
@@ -2104,7 +2102,7 @@ const au = (e, t) => {
|
|
|
2104
2102
|
o.classGroupId = n;
|
|
2105
2103
|
}, hu = (e, t, n, o) => {
|
|
2106
2104
|
if (vu(e)) {
|
|
2107
|
-
|
|
2105
|
+
Fo(e(o), t, n, o);
|
|
2108
2106
|
return;
|
|
2109
2107
|
}
|
|
2110
2108
|
t.validators === null && (t.validators = []), t.validators.push(iu(n, e));
|
|
@@ -2112,7 +2110,7 @@ const au = (e, t) => {
|
|
|
2112
2110
|
const r = Object.entries(e), s = r.length;
|
|
2113
2111
|
for (let a = 0; a < s; a++) {
|
|
2114
2112
|
const [i, c] = r[a];
|
|
2115
|
-
|
|
2113
|
+
Fo(c, Ms(t, i), n, o);
|
|
2116
2114
|
}
|
|
2117
2115
|
}, Ms = (e, t) => {
|
|
2118
2116
|
let n = e;
|
|
@@ -2147,7 +2145,7 @@ const au = (e, t) => {
|
|
|
2147
2145
|
s in n ? n[s] = a : r(s, a);
|
|
2148
2146
|
}
|
|
2149
2147
|
};
|
|
2150
|
-
},
|
|
2148
|
+
}, bo = "!", kr = ":", yu = [], Nr = (e, t, n, o, r) => ({
|
|
2151
2149
|
modifiers: e,
|
|
2152
2150
|
hasImportantModifier: t,
|
|
2153
2151
|
baseClassName: n,
|
|
@@ -2165,7 +2163,7 @@ const au = (e, t) => {
|
|
|
2165
2163
|
for (let g = 0; g < u; g++) {
|
|
2166
2164
|
const v = r[g];
|
|
2167
2165
|
if (a === 0 && i === 0) {
|
|
2168
|
-
if (v ===
|
|
2166
|
+
if (v === kr) {
|
|
2169
2167
|
s.push(r.slice(c, g)), c = g + 1;
|
|
2170
2168
|
continue;
|
|
2171
2169
|
}
|
|
@@ -2178,19 +2176,19 @@ const au = (e, t) => {
|
|
|
2178
2176
|
}
|
|
2179
2177
|
const l = s.length === 0 ? r : r.slice(c);
|
|
2180
2178
|
let m = l, h = !1;
|
|
2181
|
-
l.endsWith(
|
|
2179
|
+
l.endsWith(bo) ? (m = l.slice(0, -1), h = !0) : (
|
|
2182
2180
|
/**
|
|
2183
2181
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
2184
2182
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
2185
2183
|
*/
|
|
2186
|
-
l.startsWith(
|
|
2184
|
+
l.startsWith(bo) && (m = l.slice(1), h = !0)
|
|
2187
2185
|
);
|
|
2188
2186
|
const b = d && d > c ? d - c : void 0;
|
|
2189
|
-
return
|
|
2187
|
+
return Nr(s, h, m, b);
|
|
2190
2188
|
};
|
|
2191
2189
|
if (t) {
|
|
2192
|
-
const r = t +
|
|
2193
|
-
o = (a) => a.startsWith(r) ? s(a.slice(r.length)) :
|
|
2190
|
+
const r = t + kr, s = o;
|
|
2191
|
+
o = (a) => a.startsWith(r) ? s(a.slice(r.length)) : Nr(yu, !1, a, void 0, !0);
|
|
2194
2192
|
}
|
|
2195
2193
|
if (n) {
|
|
2196
2194
|
const r = o;
|
|
@@ -2250,7 +2248,7 @@ const au = (e, t) => {
|
|
|
2250
2248
|
}
|
|
2251
2249
|
v = !1;
|
|
2252
2250
|
}
|
|
2253
|
-
const w = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), x = h ? w +
|
|
2251
|
+
const w = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), x = h ? w + bo : w, C = x + y;
|
|
2254
2252
|
if (a.indexOf(C) > -1)
|
|
2255
2253
|
continue;
|
|
2256
2254
|
a.push(C);
|
|
@@ -2295,7 +2293,7 @@ const au = (e, t) => {
|
|
|
2295
2293
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2296
2294
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2297
2295
|
Au.test(e) && !_u.test(e)
|
|
2298
|
-
),
|
|
2296
|
+
), Bo = () => !1, Lu = (e) => Iu.test(e), Du = (e) => Mu.test(e), zu = (e) => !V(e) && !G(e), $u = (e) => ot(e, Bs, Bo), V = (e) => Ls.test(e), ct = (e) => ot(e, Hs, Ou), Rr = (e) => ot(e, Gu, re), Fu = (e) => ot(e, Ws, zs), Bu = (e) => ot(e, Vs, Bo), Tr = (e) => ot(e, $s, Bo), Hu = (e) => ot(e, Fs, Du), on = (e) => ot(e, Us, Lu), G = (e) => Ds.test(e), zt = (e) => mt(e, Hs), Vu = (e) => mt(e, Vs), Pr = (e) => mt(e, $s), Wu = (e) => mt(e, Bs), Uu = (e) => mt(e, Fs), rn = (e) => mt(e, Us, !0), ju = (e) => mt(e, Ws, !0), ot = (e, t, n) => {
|
|
2299
2297
|
const o = Ls.exec(e);
|
|
2300
2298
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
2301
2299
|
}, mt = (e, t, n = !1) => {
|
|
@@ -2322,7 +2320,7 @@ const au = (e, t) => {
|
|
|
2322
2320
|
"left-bottom"
|
|
2323
2321
|
], R = () => [...C(), G, V], T = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], E = () => [G, V, c], L = () => [Ze, "full", "auto", ...E()], W = () => [Je, "none", "subgrid", G, V], M = () => ["auto", {
|
|
2324
2322
|
span: ["full", Je, G, V]
|
|
2325
|
-
}, Je, G, V], F = () => [Je, "auto", G, V], H = () => ["auto", "min", "max", "fr", G, V], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...E()], D = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], U = () => [Ze, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], k = () => [Ze, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], S = () => [e, G, V], _ = () => [...C(),
|
|
2323
|
+
}, Je, G, V], F = () => [Je, "auto", G, V], H = () => ["auto", "min", "max", "fr", G, V], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...E()], D = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], U = () => [Ze, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], k = () => [Ze, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], S = () => [e, G, V], _ = () => [...C(), Pr, Tr, {
|
|
2326
2324
|
position: [G, V]
|
|
2327
2325
|
}], $ = () => ["no-repeat", {
|
|
2328
2326
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -2336,7 +2334,7 @@ const au = (e, t) => {
|
|
|
2336
2334
|
d,
|
|
2337
2335
|
G,
|
|
2338
2336
|
V
|
|
2339
|
-
], J = () => ["", re, zt, ct], j = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ee = () => [re, Jn,
|
|
2337
|
+
], J = () => ["", re, zt, ct], j = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ee = () => [re, Jn, Pr, Tr], te = () => [
|
|
2340
2338
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2341
2339
|
"",
|
|
2342
2340
|
"none",
|
|
@@ -3214,7 +3212,7 @@ const au = (e, t) => {
|
|
|
3214
3212
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3215
3213
|
*/
|
|
3216
3214
|
"line-clamp": [{
|
|
3217
|
-
"line-clamp": [re, "none", G,
|
|
3215
|
+
"line-clamp": [re, "none", G, Rr]
|
|
3218
3216
|
}],
|
|
3219
3217
|
/**
|
|
3220
3218
|
* Line Height
|
|
@@ -4855,7 +4853,7 @@ const au = (e, t) => {
|
|
|
4855
4853
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4856
4854
|
*/
|
|
4857
4855
|
"stroke-w": [{
|
|
4858
|
-
stroke: [re, zt, ct,
|
|
4856
|
+
stroke: [re, zt, ct, Rr]
|
|
4859
4857
|
}],
|
|
4860
4858
|
/**
|
|
4861
4859
|
* Stroke
|
|
@@ -4967,13 +4965,13 @@ function Ht({ className: e, ...t }) {
|
|
|
4967
4965
|
}
|
|
4968
4966
|
);
|
|
4969
4967
|
}
|
|
4970
|
-
const
|
|
4968
|
+
const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _r = As, Rn = (e, t) => (n) => {
|
|
4971
4969
|
var o;
|
|
4972
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
4970
|
+
if ((t == null ? void 0 : t.variants) == null) return _r(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4973
4971
|
const { variants: r, defaultVariants: s } = t, a = Object.keys(r).map((d) => {
|
|
4974
4972
|
const u = n == null ? void 0 : n[d], l = s == null ? void 0 : s[d];
|
|
4975
4973
|
if (u === null) return null;
|
|
4976
|
-
const m =
|
|
4974
|
+
const m = Ar(u) || Ar(l);
|
|
4977
4975
|
return r[d][m];
|
|
4978
4976
|
}), i = n && Object.entries(n).reduce((d, u) => {
|
|
4979
4977
|
let [l, m] = u;
|
|
@@ -4995,9 +4993,9 @@ const _r = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ir = As, R
|
|
|
4995
4993
|
m
|
|
4996
4994
|
] : d;
|
|
4997
4995
|
}, []);
|
|
4998
|
-
return
|
|
4996
|
+
return _r(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4999
4997
|
};
|
|
5000
|
-
function
|
|
4998
|
+
function Ir(e, t) {
|
|
5001
4999
|
if (typeof e == "function")
|
|
5002
5000
|
return e(t);
|
|
5003
5001
|
e != null && (e.current = t);
|
|
@@ -5006,14 +5004,14 @@ function js(...e) {
|
|
|
5006
5004
|
return (t) => {
|
|
5007
5005
|
let n = !1;
|
|
5008
5006
|
const o = e.map((r) => {
|
|
5009
|
-
const s =
|
|
5007
|
+
const s = Ir(r, t);
|
|
5010
5008
|
return !n && typeof s == "function" && (n = !0), s;
|
|
5011
5009
|
});
|
|
5012
5010
|
if (n)
|
|
5013
5011
|
return () => {
|
|
5014
5012
|
for (let r = 0; r < o.length; r++) {
|
|
5015
5013
|
const s = o[r];
|
|
5016
|
-
typeof s == "function" ? s() :
|
|
5014
|
+
typeof s == "function" ? s() : Ir(e[r], null);
|
|
5017
5015
|
}
|
|
5018
5016
|
};
|
|
5019
5017
|
};
|
|
@@ -5342,7 +5340,7 @@ function ht(e) {
|
|
|
5342
5340
|
n((o) => o ?? String(mf++));
|
|
5343
5341
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
5344
5342
|
}
|
|
5345
|
-
var Tn = "Collapsible", [hf] = xe(Tn), [gf,
|
|
5343
|
+
var Tn = "Collapsible", [hf] = xe(Tn), [gf, Ho] = hf(Tn), Zs = p.forwardRef(
|
|
5346
5344
|
(e, t) => {
|
|
5347
5345
|
const {
|
|
5348
5346
|
__scopeCollapsible: n,
|
|
@@ -5368,7 +5366,7 @@ var Tn = "Collapsible", [hf] = xe(Tn), [gf, Vo] = hf(Tn), Zs = p.forwardRef(
|
|
|
5368
5366
|
children: /* @__PURE__ */ f(
|
|
5369
5367
|
Z.div,
|
|
5370
5368
|
{
|
|
5371
|
-
"data-state":
|
|
5369
|
+
"data-state": Wo(c),
|
|
5372
5370
|
"data-disabled": s ? "" : void 0,
|
|
5373
5371
|
...i,
|
|
5374
5372
|
ref: t
|
|
@@ -5381,14 +5379,14 @@ var Tn = "Collapsible", [hf] = xe(Tn), [gf, Vo] = hf(Tn), Zs = p.forwardRef(
|
|
|
5381
5379
|
Zs.displayName = Tn;
|
|
5382
5380
|
var Js = "CollapsibleTrigger", Qs = p.forwardRef(
|
|
5383
5381
|
(e, t) => {
|
|
5384
|
-
const { __scopeCollapsible: n, ...o } = e, r =
|
|
5382
|
+
const { __scopeCollapsible: n, ...o } = e, r = Ho(Js, n);
|
|
5385
5383
|
return /* @__PURE__ */ f(
|
|
5386
5384
|
Z.button,
|
|
5387
5385
|
{
|
|
5388
5386
|
type: "button",
|
|
5389
5387
|
"aria-controls": r.contentId,
|
|
5390
5388
|
"aria-expanded": r.open || !1,
|
|
5391
|
-
"data-state":
|
|
5389
|
+
"data-state": Wo(r.open),
|
|
5392
5390
|
"data-disabled": r.disabled ? "" : void 0,
|
|
5393
5391
|
disabled: r.disabled,
|
|
5394
5392
|
...o,
|
|
@@ -5399,15 +5397,15 @@ var Js = "CollapsibleTrigger", Qs = p.forwardRef(
|
|
|
5399
5397
|
}
|
|
5400
5398
|
);
|
|
5401
5399
|
Qs.displayName = Js;
|
|
5402
|
-
var
|
|
5400
|
+
var Vo = "CollapsibleContent", ea = p.forwardRef(
|
|
5403
5401
|
(e, t) => {
|
|
5404
|
-
const { forceMount: n, ...o } = e, r = Vo
|
|
5402
|
+
const { forceMount: n, ...o } = e, r = Ho(Vo, e.__scopeCollapsible);
|
|
5405
5403
|
return /* @__PURE__ */ f(De, { present: n || r.open, children: ({ present: s }) => /* @__PURE__ */ f(vf, { ...o, ref: t, present: s }) });
|
|
5406
5404
|
}
|
|
5407
5405
|
);
|
|
5408
|
-
ea.displayName =
|
|
5406
|
+
ea.displayName = Vo;
|
|
5409
5407
|
var vf = p.forwardRef((e, t) => {
|
|
5410
|
-
const { __scopeCollapsible: n, present: o, children: r, ...s } = e, a = Vo
|
|
5408
|
+
const { __scopeCollapsible: n, present: o, children: r, ...s } = e, a = Ho(Vo, n), [i, c] = p.useState(o), d = p.useRef(null), u = ie(t, d), l = p.useRef(0), m = l.current, h = p.useRef(0), b = h.current, g = a.open || i, v = p.useRef(g), y = p.useRef(void 0);
|
|
5411
5409
|
return p.useEffect(() => {
|
|
5412
5410
|
const w = requestAnimationFrame(() => v.current = !1);
|
|
5413
5411
|
return () => cancelAnimationFrame(w);
|
|
@@ -5424,7 +5422,7 @@ var vf = p.forwardRef((e, t) => {
|
|
|
5424
5422
|
}, [a.open, o]), /* @__PURE__ */ f(
|
|
5425
5423
|
Z.div,
|
|
5426
5424
|
{
|
|
5427
|
-
"data-state":
|
|
5425
|
+
"data-state": Wo(a.open),
|
|
5428
5426
|
"data-disabled": a.disabled ? "" : void 0,
|
|
5429
5427
|
id: a.contentId,
|
|
5430
5428
|
hidden: !g,
|
|
@@ -5439,7 +5437,7 @@ var vf = p.forwardRef((e, t) => {
|
|
|
5439
5437
|
}
|
|
5440
5438
|
);
|
|
5441
5439
|
});
|
|
5442
|
-
function
|
|
5440
|
+
function Wo(e) {
|
|
5443
5441
|
return e ? "open" : "closed";
|
|
5444
5442
|
}
|
|
5445
5443
|
var bf = Zs, yf = p.createContext(void 0);
|
|
@@ -5465,11 +5463,11 @@ function wf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5465
5463
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
5466
5464
|
}, [n, t]);
|
|
5467
5465
|
}
|
|
5468
|
-
var xf = "DismissableLayer",
|
|
5466
|
+
var xf = "DismissableLayer", yo = "dismissableLayer.update", Sf = "dismissableLayer.pointerDownOutside", Cf = "dismissableLayer.focusOutside", Mr, ta = p.createContext({
|
|
5469
5467
|
layers: /* @__PURE__ */ new Set(),
|
|
5470
5468
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5471
5469
|
branches: /* @__PURE__ */ new Set()
|
|
5472
|
-
}),
|
|
5470
|
+
}), Uo = p.forwardRef(
|
|
5473
5471
|
(e, t) => {
|
|
5474
5472
|
const {
|
|
5475
5473
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -5490,14 +5488,14 @@ var xf = "DismissableLayer", wo = "dismissableLayer.update", Sf = "dismissableLa
|
|
|
5490
5488
|
w === d.layers.size - 1 && (o == null || o(N), !N.defaultPrevented && i && (N.preventDefault(), i()));
|
|
5491
5489
|
}, m), p.useEffect(() => {
|
|
5492
5490
|
if (u)
|
|
5493
|
-
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
5494
|
-
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
5491
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Mr = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), Or(), () => {
|
|
5492
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Mr);
|
|
5495
5493
|
};
|
|
5496
5494
|
}, [u, m, n, d]), p.useEffect(() => () => {
|
|
5497
|
-
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
5495
|
+
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), Or());
|
|
5498
5496
|
}, [u, d]), p.useEffect(() => {
|
|
5499
5497
|
const N = () => h({});
|
|
5500
|
-
return document.addEventListener(
|
|
5498
|
+
return document.addEventListener(yo, N), () => document.removeEventListener(yo, N);
|
|
5501
5499
|
}, []), /* @__PURE__ */ f(
|
|
5502
5500
|
Z.div,
|
|
5503
5501
|
{
|
|
@@ -5517,7 +5515,7 @@ var xf = "DismissableLayer", wo = "dismissableLayer.update", Sf = "dismissableLa
|
|
|
5517
5515
|
);
|
|
5518
5516
|
}
|
|
5519
5517
|
);
|
|
5520
|
-
|
|
5518
|
+
Uo.displayName = xf;
|
|
5521
5519
|
var Ef = "DismissableLayerBranch", kf = p.forwardRef((e, t) => {
|
|
5522
5520
|
const n = p.useContext(ta), o = p.useRef(null), r = ie(t, o);
|
|
5523
5521
|
return p.useEffect(() => {
|
|
@@ -5573,15 +5571,15 @@ function Rf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5573
5571
|
onBlurCapture: () => o.current = !1
|
|
5574
5572
|
};
|
|
5575
5573
|
}
|
|
5576
|
-
function
|
|
5577
|
-
const e = new CustomEvent(
|
|
5574
|
+
function Or() {
|
|
5575
|
+
const e = new CustomEvent(yo);
|
|
5578
5576
|
document.dispatchEvent(e);
|
|
5579
5577
|
}
|
|
5580
5578
|
function na(e, t, n, { discrete: o }) {
|
|
5581
5579
|
const r = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
5582
5580
|
t && r.addEventListener(e, t, { once: !0 }), o ? nf(r, s) : r.dispatchEvent(s);
|
|
5583
5581
|
}
|
|
5584
|
-
var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount",
|
|
5582
|
+
var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Lr = { bubbles: !1, cancelable: !0 }, Tf = "FocusScope", oa = p.forwardRef((e, t) => {
|
|
5585
5583
|
const {
|
|
5586
5584
|
loop: n = !1,
|
|
5587
5585
|
trapped: o = !1,
|
|
@@ -5620,16 +5618,16 @@ var Qn = "focusScope.autoFocusOnMount", eo = "focusScope.autoFocusOnUnmount", Dr
|
|
|
5620
5618
|
}
|
|
5621
5619
|
}, [o, i, h.paused]), p.useEffect(() => {
|
|
5622
5620
|
if (i) {
|
|
5623
|
-
|
|
5621
|
+
zr.add(h);
|
|
5624
5622
|
const g = document.activeElement;
|
|
5625
5623
|
if (!i.contains(g)) {
|
|
5626
|
-
const y = new CustomEvent(Qn,
|
|
5624
|
+
const y = new CustomEvent(Qn, Lr);
|
|
5627
5625
|
i.addEventListener(Qn, d), i.dispatchEvent(y), y.defaultPrevented || (Pf(Of(ra(i)), { select: !0 }), document.activeElement === g && Qe(i));
|
|
5628
5626
|
}
|
|
5629
5627
|
return () => {
|
|
5630
5628
|
i.removeEventListener(Qn, d), setTimeout(() => {
|
|
5631
|
-
const y = new CustomEvent(eo,
|
|
5632
|
-
i.addEventListener(eo, u), i.dispatchEvent(y), y.defaultPrevented || Qe(g ?? document.body, { select: !0 }), i.removeEventListener(eo, u),
|
|
5629
|
+
const y = new CustomEvent(eo, Lr);
|
|
5630
|
+
i.addEventListener(eo, u), i.dispatchEvent(y), y.defaultPrevented || Qe(g ?? document.body, { select: !0 }), i.removeEventListener(eo, u), zr.remove(h);
|
|
5633
5631
|
}, 0);
|
|
5634
5632
|
};
|
|
5635
5633
|
}
|
|
@@ -5654,7 +5652,7 @@ function Pf(e, { select: t = !1 } = {}) {
|
|
|
5654
5652
|
if (Qe(o, { select: t }), document.activeElement !== n) return;
|
|
5655
5653
|
}
|
|
5656
5654
|
function Af(e) {
|
|
5657
|
-
const t = ra(e), n =
|
|
5655
|
+
const t = ra(e), n = Dr(t, e), o = Dr(t.reverse(), e);
|
|
5658
5656
|
return [n, o];
|
|
5659
5657
|
}
|
|
5660
5658
|
function ra(e) {
|
|
@@ -5667,7 +5665,7 @@ function ra(e) {
|
|
|
5667
5665
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
5668
5666
|
return t;
|
|
5669
5667
|
}
|
|
5670
|
-
function
|
|
5668
|
+
function Dr(e, t) {
|
|
5671
5669
|
for (const n of e)
|
|
5672
5670
|
if (!_f(n, { upTo: t })) return n;
|
|
5673
5671
|
}
|
|
@@ -5689,45 +5687,45 @@ function Qe(e, { select: t = !1 } = {}) {
|
|
|
5689
5687
|
e.focus({ preventScroll: !0 }), e !== n && If(e) && t && e.select();
|
|
5690
5688
|
}
|
|
5691
5689
|
}
|
|
5692
|
-
var
|
|
5690
|
+
var zr = Mf();
|
|
5693
5691
|
function Mf() {
|
|
5694
5692
|
let e = [];
|
|
5695
5693
|
return {
|
|
5696
5694
|
add(t) {
|
|
5697
5695
|
const n = e[0];
|
|
5698
|
-
t !== n && (n == null || n.pause()), e =
|
|
5696
|
+
t !== n && (n == null || n.pause()), e = $r(e, t), e.unshift(t);
|
|
5699
5697
|
},
|
|
5700
5698
|
remove(t) {
|
|
5701
5699
|
var n;
|
|
5702
|
-
e =
|
|
5700
|
+
e = $r(e, t), (n = e[0]) == null || n.resume();
|
|
5703
5701
|
}
|
|
5704
5702
|
};
|
|
5705
5703
|
}
|
|
5706
|
-
function
|
|
5704
|
+
function $r(e, t) {
|
|
5707
5705
|
const n = [...e], o = n.indexOf(t);
|
|
5708
5706
|
return o !== -1 && n.splice(o, 1), n;
|
|
5709
5707
|
}
|
|
5710
5708
|
function Of(e) {
|
|
5711
5709
|
return e.filter((t) => t.tagName !== "A");
|
|
5712
5710
|
}
|
|
5713
|
-
var Lf = "Portal",
|
|
5711
|
+
var Lf = "Portal", jo = p.forwardRef((e, t) => {
|
|
5714
5712
|
var i;
|
|
5715
5713
|
const { container: n, ...o } = e, [r, s] = p.useState(!1);
|
|
5716
5714
|
de(() => s(!0), []);
|
|
5717
5715
|
const a = n || r && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
5718
|
-
return a ?
|
|
5716
|
+
return a ? ms.createPortal(/* @__PURE__ */ f(Z.div, { ...o, ref: t }), a) : null;
|
|
5719
5717
|
});
|
|
5720
|
-
|
|
5718
|
+
jo.displayName = Lf;
|
|
5721
5719
|
var to = 0;
|
|
5722
5720
|
function Df() {
|
|
5723
5721
|
p.useEffect(() => {
|
|
5724
5722
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
5725
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
5723
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Fr()), document.body.insertAdjacentElement("beforeend", e[1] ?? Fr()), to++, () => {
|
|
5726
5724
|
to === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), to--;
|
|
5727
5725
|
};
|
|
5728
5726
|
}, []);
|
|
5729
5727
|
}
|
|
5730
|
-
function
|
|
5728
|
+
function Fr() {
|
|
5731
5729
|
const e = document.createElement("span");
|
|
5732
5730
|
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;
|
|
5733
5731
|
}
|
|
@@ -5778,7 +5776,7 @@ function Bf(e, t) {
|
|
|
5778
5776
|
})[0];
|
|
5779
5777
|
return n.callback = t, n.facade;
|
|
5780
5778
|
}
|
|
5781
|
-
var Hf = typeof window < "u" ? p.useLayoutEffect : p.useEffect,
|
|
5779
|
+
var Hf = typeof window < "u" ? p.useLayoutEffect : p.useEffect, Br = /* @__PURE__ */ new WeakMap();
|
|
5782
5780
|
function Vf(e, t) {
|
|
5783
5781
|
var n = Bf(null, function(o) {
|
|
5784
5782
|
return e.forEach(function(r) {
|
|
@@ -5786,7 +5784,7 @@ function Vf(e, t) {
|
|
|
5786
5784
|
});
|
|
5787
5785
|
});
|
|
5788
5786
|
return Hf(function() {
|
|
5789
|
-
var o =
|
|
5787
|
+
var o = Br.get(n);
|
|
5790
5788
|
if (o) {
|
|
5791
5789
|
var r = new Set(o), s = new Set(e), a = n.current;
|
|
5792
5790
|
r.forEach(function(i) {
|
|
@@ -5795,7 +5793,7 @@ function Vf(e, t) {
|
|
|
5795
5793
|
r.has(i) || no(i, a);
|
|
5796
5794
|
});
|
|
5797
5795
|
}
|
|
5798
|
-
|
|
5796
|
+
Br.set(n, e);
|
|
5799
5797
|
}, [e]), n;
|
|
5800
5798
|
}
|
|
5801
5799
|
function Wf(e) {
|
|
@@ -6005,13 +6003,13 @@ var Zf = function() {
|
|
|
6005
6003
|
`).concat(Ff, ": ").concat(i, `px;
|
|
6006
6004
|
}
|
|
6007
6005
|
`);
|
|
6008
|
-
},
|
|
6006
|
+
}, Hr = function() {
|
|
6009
6007
|
var e = parseInt(document.body.getAttribute(Rt) || "0", 10);
|
|
6010
6008
|
return isFinite(e) ? e : 0;
|
|
6011
6009
|
}, rp = function() {
|
|
6012
6010
|
p.useEffect(function() {
|
|
6013
|
-
return document.body.setAttribute(Rt, (
|
|
6014
|
-
var e =
|
|
6011
|
+
return document.body.setAttribute(Rt, (Hr() + 1).toString()), function() {
|
|
6012
|
+
var e = Hr() - 1;
|
|
6015
6013
|
e <= 0 ? document.body.removeAttribute(Rt) : document.body.setAttribute(Rt, e.toString());
|
|
6016
6014
|
};
|
|
6017
6015
|
}, []);
|
|
@@ -6022,19 +6020,19 @@ var Zf = function() {
|
|
|
6022
6020
|
return tp(r);
|
|
6023
6021
|
}, [r]);
|
|
6024
6022
|
return p.createElement(np, { styles: op(s, !t, r, n ? "" : "!important") });
|
|
6025
|
-
},
|
|
6023
|
+
}, wo = !1;
|
|
6026
6024
|
if (typeof window < "u")
|
|
6027
6025
|
try {
|
|
6028
6026
|
var an = Object.defineProperty({}, "passive", {
|
|
6029
6027
|
get: function() {
|
|
6030
|
-
return
|
|
6028
|
+
return wo = !0, !0;
|
|
6031
6029
|
}
|
|
6032
6030
|
});
|
|
6033
6031
|
window.addEventListener("test", an, an), window.removeEventListener("test", an, an);
|
|
6034
6032
|
} catch {
|
|
6035
|
-
|
|
6033
|
+
wo = !1;
|
|
6036
6034
|
}
|
|
6037
|
-
var xt =
|
|
6035
|
+
var xt = wo ? { passive: !1 } : !1, ap = function(e) {
|
|
6038
6036
|
return e.tagName === "TEXTAREA";
|
|
6039
6037
|
}, la = function(e, t) {
|
|
6040
6038
|
if (!(e instanceof Element))
|
|
@@ -6049,7 +6047,7 @@ var xt = xo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6049
6047
|
return la(e, "overflowY");
|
|
6050
6048
|
}, cp = function(e) {
|
|
6051
6049
|
return la(e, "overflowX");
|
|
6052
|
-
},
|
|
6050
|
+
}, Vr = function(e, t) {
|
|
6053
6051
|
var n = t.ownerDocument, o = t;
|
|
6054
6052
|
do {
|
|
6055
6053
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
@@ -6099,9 +6097,9 @@ var xt = xo ? { passive: !1 } : !1, ap = function(e) {
|
|
|
6099
6097
|
return (u && Math.abs(l) < 1 || !u && Math.abs(m) < 1) && (d = !0), d;
|
|
6100
6098
|
}, cn = function(e) {
|
|
6101
6099
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
6102
|
-
},
|
|
6100
|
+
}, Wr = function(e) {
|
|
6103
6101
|
return [e.deltaX, e.deltaY];
|
|
6104
|
-
},
|
|
6102
|
+
}, Ur = function(e) {
|
|
6105
6103
|
return e && "current" in e ? e.current : e;
|
|
6106
6104
|
}, pp = function(e, t) {
|
|
6107
6105
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -6118,7 +6116,7 @@ function gp(e) {
|
|
|
6118
6116
|
}, [e]), p.useEffect(function() {
|
|
6119
6117
|
if (e.inert) {
|
|
6120
6118
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
6121
|
-
var g = zf([e.lockRef.current], (e.shards || []).map(
|
|
6119
|
+
var g = zf([e.lockRef.current], (e.shards || []).map(Ur), !0).filter(Boolean);
|
|
6122
6120
|
return g.forEach(function(v) {
|
|
6123
6121
|
return v.classList.add("allow-interactivity-".concat(r));
|
|
6124
6122
|
}), function() {
|
|
@@ -6137,10 +6135,10 @@ function gp(e) {
|
|
|
6137
6135
|
var E = window.getSelection(), L = E && E.anchorNode, W = L ? L === T || L.contains(T) : !1;
|
|
6138
6136
|
if (W)
|
|
6139
6137
|
return !1;
|
|
6140
|
-
var M =
|
|
6138
|
+
var M = Vr(N, T);
|
|
6141
6139
|
if (!M)
|
|
6142
6140
|
return !0;
|
|
6143
|
-
if (M ? R = N : (R = N === "v" ? "h" : "v", M =
|
|
6141
|
+
if (M ? R = N : (R = N === "v" ? "h" : "v", M = Vr(N, T)), !M)
|
|
6144
6142
|
return !1;
|
|
6145
6143
|
if (!o.current && "changedTouches" in g && (x || C) && (o.current = R), !R)
|
|
6146
6144
|
return !0;
|
|
@@ -6149,7 +6147,7 @@ function gp(e) {
|
|
|
6149
6147
|
}, []), c = p.useCallback(function(g) {
|
|
6150
6148
|
var v = g;
|
|
6151
6149
|
if (!(!St.length || St[St.length - 1] !== s)) {
|
|
6152
|
-
var y = "deltaY" in v ?
|
|
6150
|
+
var y = "deltaY" in v ? Wr(v) : cn(v), w = t.current.filter(function(R) {
|
|
6153
6151
|
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && pp(R.delta, y);
|
|
6154
6152
|
})[0];
|
|
6155
6153
|
if (w && w.should) {
|
|
@@ -6157,7 +6155,7 @@ function gp(e) {
|
|
|
6157
6155
|
return;
|
|
6158
6156
|
}
|
|
6159
6157
|
if (!w) {
|
|
6160
|
-
var x = (a.current.shards || []).map(
|
|
6158
|
+
var x = (a.current.shards || []).map(Ur).filter(Boolean).filter(function(R) {
|
|
6161
6159
|
return R.contains(v.target);
|
|
6162
6160
|
}), C = x.length > 0 ? i(v, x[0]) : !a.current.noIsolation;
|
|
6163
6161
|
C && v.cancelable && v.preventDefault();
|
|
@@ -6173,7 +6171,7 @@ function gp(e) {
|
|
|
6173
6171
|
}, []), u = p.useCallback(function(g) {
|
|
6174
6172
|
n.current = cn(g), o.current = void 0;
|
|
6175
6173
|
}, []), l = p.useCallback(function(g) {
|
|
6176
|
-
d(g.type,
|
|
6174
|
+
d(g.type, Wr(g), g.target, i(g, e.lockRef.current));
|
|
6177
6175
|
}, []), m = p.useCallback(function(g) {
|
|
6178
6176
|
d(g.type, cn(g), g.target, i(g, e.lockRef.current));
|
|
6179
6177
|
}, []);
|
|
@@ -6264,10 +6262,10 @@ var yp = function(e) {
|
|
|
6264
6262
|
* This source code is licensed under the MIT license found in the
|
|
6265
6263
|
* LICENSE file in the root directory of this source tree.
|
|
6266
6264
|
*/
|
|
6267
|
-
var
|
|
6265
|
+
var jr;
|
|
6268
6266
|
function Cp() {
|
|
6269
|
-
if (
|
|
6270
|
-
|
|
6267
|
+
if (jr) return io;
|
|
6268
|
+
jr = 1;
|
|
6271
6269
|
var e = I;
|
|
6272
6270
|
function t(l, m) {
|
|
6273
6271
|
return l === m && (l !== 0 || 1 / l === 1 / m) || l !== l && m !== m;
|
|
@@ -6305,9 +6303,9 @@ function Cp() {
|
|
|
6305
6303
|
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
|
|
6306
6304
|
return io.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, io;
|
|
6307
6305
|
}
|
|
6308
|
-
var
|
|
6306
|
+
var Gr;
|
|
6309
6307
|
function Ep() {
|
|
6310
|
-
return
|
|
6308
|
+
return Gr || (Gr = 1, ao.exports = Cp()), ao.exports;
|
|
6311
6309
|
}
|
|
6312
6310
|
var kp = Ep();
|
|
6313
6311
|
function Np() {
|
|
@@ -6321,7 +6319,7 @@ function Rp() {
|
|
|
6321
6319
|
return () => {
|
|
6322
6320
|
};
|
|
6323
6321
|
}
|
|
6324
|
-
var
|
|
6322
|
+
var Go = "Avatar", [Tp] = xe(Go), [Pp, ma] = Tp(Go), ha = p.forwardRef(
|
|
6325
6323
|
(e, t) => {
|
|
6326
6324
|
const { __scopeAvatar: n, ...o } = e, [r, s] = p.useState("idle");
|
|
6327
6325
|
return /* @__PURE__ */ f(
|
|
@@ -6335,7 +6333,7 @@ var Yo = "Avatar", [Tp] = xe(Yo), [Pp, ma] = Tp(Yo), ha = p.forwardRef(
|
|
|
6335
6333
|
);
|
|
6336
6334
|
}
|
|
6337
6335
|
);
|
|
6338
|
-
ha.displayName =
|
|
6336
|
+
ha.displayName = Go;
|
|
6339
6337
|
var ga = "AvatarImage", va = p.forwardRef(
|
|
6340
6338
|
(e, t) => {
|
|
6341
6339
|
const { __scopeAvatar: n, src: o, onLoadingStatusChange: r = () => {
|
|
@@ -6360,15 +6358,15 @@ var ba = "AvatarFallback", ya = p.forwardRef(
|
|
|
6360
6358
|
}
|
|
6361
6359
|
);
|
|
6362
6360
|
ya.displayName = ba;
|
|
6363
|
-
function
|
|
6361
|
+
function Yr(e, t) {
|
|
6364
6362
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
6365
6363
|
}
|
|
6366
6364
|
function Ap(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
6367
6365
|
const o = Np(), r = p.useRef(null), s = o ? (r.current || (r.current = new window.Image()), r.current) : null, [a, i] = p.useState(
|
|
6368
|
-
() =>
|
|
6366
|
+
() => Yr(s, e)
|
|
6369
6367
|
);
|
|
6370
6368
|
return de(() => {
|
|
6371
|
-
i(
|
|
6369
|
+
i(Yr(s, e));
|
|
6372
6370
|
}, [s, e]), de(() => {
|
|
6373
6371
|
const c = (l) => () => {
|
|
6374
6372
|
i(l);
|
|
@@ -6407,7 +6405,7 @@ function _n(e) {
|
|
|
6407
6405
|
n(void 0);
|
|
6408
6406
|
}, [e]), t;
|
|
6409
6407
|
}
|
|
6410
|
-
var In = "Checkbox", [Op] = xe(In), [Lp,
|
|
6408
|
+
var In = "Checkbox", [Op] = xe(In), [Lp, Yo] = Op(In);
|
|
6411
6409
|
function Dp(e) {
|
|
6412
6410
|
const {
|
|
6413
6411
|
__scopeCheckbox: t,
|
|
@@ -6468,7 +6466,7 @@ var wa = "CheckboxTrigger", xa = p.forwardRef(
|
|
|
6468
6466
|
hasConsumerStoppedPropagationRef: m,
|
|
6469
6467
|
isFormControl: h,
|
|
6470
6468
|
bubbleInput: b
|
|
6471
|
-
} =
|
|
6469
|
+
} = Yo(wa, e), g = ie(r, u), v = p.useRef(c);
|
|
6472
6470
|
return p.useEffect(() => {
|
|
6473
6471
|
const y = s == null ? void 0 : s.form;
|
|
6474
6472
|
if (y) {
|
|
@@ -6548,7 +6546,7 @@ var Sa = p.forwardRef(
|
|
|
6548
6546
|
Sa.displayName = In;
|
|
6549
6547
|
var Ca = "CheckboxIndicator", Ea = p.forwardRef(
|
|
6550
6548
|
(e, t) => {
|
|
6551
|
-
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s =
|
|
6549
|
+
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s = Yo(Ca, n);
|
|
6552
6550
|
return /* @__PURE__ */ f(
|
|
6553
6551
|
De,
|
|
6554
6552
|
{
|
|
@@ -6582,7 +6580,7 @@ var ka = "CheckboxBubbleInput", Na = p.forwardRef(
|
|
|
6582
6580
|
form: l,
|
|
6583
6581
|
bubbleInput: m,
|
|
6584
6582
|
setBubbleInput: h
|
|
6585
|
-
} =
|
|
6583
|
+
} = Yo(ka, e), b = ie(n, h), g = An(s), v = _n(o);
|
|
6586
6584
|
p.useEffect(() => {
|
|
6587
6585
|
const w = m;
|
|
6588
6586
|
if (!w) return;
|
|
@@ -6645,7 +6643,7 @@ const $p = ["top", "right", "bottom", "left"], tt = Math.min, Ee = Math.max, vn
|
|
|
6645
6643
|
bottom: "top",
|
|
6646
6644
|
top: "bottom"
|
|
6647
6645
|
};
|
|
6648
|
-
function
|
|
6646
|
+
function xo(e, t, n) {
|
|
6649
6647
|
return Ee(e, tt(t, n));
|
|
6650
6648
|
}
|
|
6651
6649
|
function Ge(e, t) {
|
|
@@ -6657,38 +6655,38 @@ function Ye(e) {
|
|
|
6657
6655
|
function Mt(e) {
|
|
6658
6656
|
return e.split("-")[1];
|
|
6659
6657
|
}
|
|
6660
|
-
function
|
|
6658
|
+
function qo(e) {
|
|
6661
6659
|
return e === "x" ? "y" : "x";
|
|
6662
6660
|
}
|
|
6663
|
-
function
|
|
6661
|
+
function Ko(e) {
|
|
6664
6662
|
return e === "y" ? "height" : "width";
|
|
6665
6663
|
}
|
|
6666
6664
|
function Be(e) {
|
|
6667
6665
|
const t = e[0];
|
|
6668
6666
|
return t === "t" || t === "b" ? "y" : "x";
|
|
6669
6667
|
}
|
|
6670
|
-
function
|
|
6671
|
-
return
|
|
6668
|
+
function Xo(e) {
|
|
6669
|
+
return qo(Be(e));
|
|
6672
6670
|
}
|
|
6673
6671
|
function Bp(e, t, n) {
|
|
6674
6672
|
n === void 0 && (n = !1);
|
|
6675
|
-
const o = Mt(e), r =
|
|
6673
|
+
const o = Mt(e), r = Xo(e), s = Ko(r);
|
|
6676
6674
|
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
6677
6675
|
return t.reference[s] > t.floating[s] && (a = bn(a)), [a, bn(a)];
|
|
6678
6676
|
}
|
|
6679
6677
|
function Hp(e) {
|
|
6680
6678
|
const t = bn(e);
|
|
6681
|
-
return [
|
|
6679
|
+
return [So(e), t, So(t)];
|
|
6682
6680
|
}
|
|
6683
|
-
function
|
|
6681
|
+
function So(e) {
|
|
6684
6682
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
6685
6683
|
}
|
|
6686
|
-
const
|
|
6684
|
+
const qr = ["left", "right"], Kr = ["right", "left"], Vp = ["top", "bottom"], Wp = ["bottom", "top"];
|
|
6687
6685
|
function Up(e, t, n) {
|
|
6688
6686
|
switch (e) {
|
|
6689
6687
|
case "top":
|
|
6690
6688
|
case "bottom":
|
|
6691
|
-
return n ? t ?
|
|
6689
|
+
return n ? t ? Kr : qr : t ? qr : Kr;
|
|
6692
6690
|
case "left":
|
|
6693
6691
|
case "right":
|
|
6694
6692
|
return t ? Vp : Wp;
|
|
@@ -6699,7 +6697,7 @@ function Up(e, t, n) {
|
|
|
6699
6697
|
function jp(e, t, n, o) {
|
|
6700
6698
|
const r = Mt(e);
|
|
6701
6699
|
let s = Up(Ye(e), n === "start", o);
|
|
6702
|
-
return r && (s = s.map((a) => a + "-" + r), t && (s = s.concat(s.map(
|
|
6700
|
+
return r && (s = s.map((a) => a + "-" + r), t && (s = s.concat(s.map(So)))), s;
|
|
6703
6701
|
}
|
|
6704
6702
|
function bn(e) {
|
|
6705
6703
|
const t = Ye(e);
|
|
@@ -6740,12 +6738,12 @@ function yn(e) {
|
|
|
6740
6738
|
y: n
|
|
6741
6739
|
};
|
|
6742
6740
|
}
|
|
6743
|
-
function
|
|
6741
|
+
function Xr(e, t, n) {
|
|
6744
6742
|
let {
|
|
6745
6743
|
reference: o,
|
|
6746
6744
|
floating: r
|
|
6747
6745
|
} = e;
|
|
6748
|
-
const s = Be(t), a =
|
|
6746
|
+
const s = Be(t), a = Xo(t), i = Ko(a), c = Ye(t), d = s === "y", u = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, m = o[i] / 2 - r[i] / 2;
|
|
6749
6747
|
let h;
|
|
6750
6748
|
switch (c) {
|
|
6751
6749
|
case "top":
|
|
@@ -6850,7 +6848,7 @@ const qp = 50, Kp = async (e, t, n) => {
|
|
|
6850
6848
|
}), {
|
|
6851
6849
|
x: u,
|
|
6852
6850
|
y: l
|
|
6853
|
-
} =
|
|
6851
|
+
} = Xr(d, o, c), m = o, h = 0;
|
|
6854
6852
|
const b = {};
|
|
6855
6853
|
for (let g = 0; g < s.length; g++) {
|
|
6856
6854
|
const v = s[g];
|
|
@@ -6888,7 +6886,7 @@ const qp = 50, Kp = async (e, t, n) => {
|
|
|
6888
6886
|
}) : T.rects), {
|
|
6889
6887
|
x: u,
|
|
6890
6888
|
y: l
|
|
6891
|
-
} =
|
|
6889
|
+
} = Xr(d, m, c)), g = -1);
|
|
6892
6890
|
}
|
|
6893
6891
|
return {
|
|
6894
6892
|
x: u,
|
|
@@ -6918,10 +6916,10 @@ const qp = 50, Kp = async (e, t, n) => {
|
|
|
6918
6916
|
const l = Ta(u), m = {
|
|
6919
6917
|
x: n,
|
|
6920
6918
|
y: o
|
|
6921
|
-
}, h =
|
|
6919
|
+
}, h = Xo(r), b = Ko(h), g = await a.getDimensions(d), v = h === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[h] - m[h] - s.floating[b], R = m[h] - s.reference[h], T = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
6922
6920
|
let N = T ? T[x] : 0;
|
|
6923
6921
|
(!N || !await (a.isElement == null ? void 0 : a.isElement(T))) && (N = i.floating[x] || s.floating[b]);
|
|
6924
|
-
const E = C / 2 - R / 2, L = N / 2 - g[b] / 2 - 1, W = tt(l[y], L), M = tt(l[w], L), F = W, H = N - g[b] - M, O = N / 2 - g[b] / 2 + E, K =
|
|
6922
|
+
const E = C / 2 - R / 2, L = N / 2 - g[b] / 2 - 1, W = tt(l[y], L), M = tt(l[w], L), F = W, H = N - g[b] - M, O = N / 2 - g[b] / 2 + E, K = xo(F, O, H), A = !c.arrow && Mt(r) != null && O !== K && s.reference[b] / 2 - (O < F ? W : M) - g[b] / 2 < 0, D = A ? O < F ? O - F : O - H : 0;
|
|
6925
6923
|
return {
|
|
6926
6924
|
[h]: m[h] + D,
|
|
6927
6925
|
data: {
|
|
@@ -7016,7 +7014,7 @@ const qp = 50, Kp = async (e, t, n) => {
|
|
|
7016
7014
|
}
|
|
7017
7015
|
};
|
|
7018
7016
|
};
|
|
7019
|
-
function
|
|
7017
|
+
function Zr(e, t) {
|
|
7020
7018
|
return {
|
|
7021
7019
|
top: e.top - t.height,
|
|
7022
7020
|
right: e.right - t.width,
|
|
@@ -7024,7 +7022,7 @@ function Jr(e, t) {
|
|
|
7024
7022
|
left: e.left - t.width
|
|
7025
7023
|
};
|
|
7026
7024
|
}
|
|
7027
|
-
function
|
|
7025
|
+
function Jr(e) {
|
|
7028
7026
|
return $p.some((t) => e[t] >= 0);
|
|
7029
7027
|
}
|
|
7030
7028
|
const Jp = function(e) {
|
|
@@ -7044,11 +7042,11 @@ const Jp = function(e) {
|
|
|
7044
7042
|
const a = await o.detectOverflow(t, {
|
|
7045
7043
|
...s,
|
|
7046
7044
|
elementContext: "reference"
|
|
7047
|
-
}), i =
|
|
7045
|
+
}), i = Zr(a, n.reference);
|
|
7048
7046
|
return {
|
|
7049
7047
|
data: {
|
|
7050
7048
|
referenceHiddenOffsets: i,
|
|
7051
|
-
referenceHidden:
|
|
7049
|
+
referenceHidden: Jr(i)
|
|
7052
7050
|
}
|
|
7053
7051
|
};
|
|
7054
7052
|
}
|
|
@@ -7056,11 +7054,11 @@ const Jp = function(e) {
|
|
|
7056
7054
|
const a = await o.detectOverflow(t, {
|
|
7057
7055
|
...s,
|
|
7058
7056
|
altBoundary: !0
|
|
7059
|
-
}), i =
|
|
7057
|
+
}), i = Zr(a, n.floating);
|
|
7060
7058
|
return {
|
|
7061
7059
|
data: {
|
|
7062
7060
|
escapedOffsets: i,
|
|
7063
|
-
escaped:
|
|
7061
|
+
escaped: Jr(i)
|
|
7064
7062
|
}
|
|
7065
7063
|
};
|
|
7066
7064
|
}
|
|
@@ -7148,15 +7146,15 @@ const em = function(e) {
|
|
|
7148
7146
|
} = Ge(e, t), u = {
|
|
7149
7147
|
x: n,
|
|
7150
7148
|
y: o
|
|
7151
|
-
}, l = await s.detectOverflow(t, d), m = Be(Ye(r)), h =
|
|
7149
|
+
}, l = await s.detectOverflow(t, d), m = Be(Ye(r)), h = qo(m);
|
|
7152
7150
|
let b = u[h], g = u[m];
|
|
7153
7151
|
if (a) {
|
|
7154
7152
|
const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = b + l[y], C = b - l[w];
|
|
7155
|
-
b =
|
|
7153
|
+
b = xo(x, b, C);
|
|
7156
7154
|
}
|
|
7157
7155
|
if (i) {
|
|
7158
7156
|
const y = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", x = g + l[y], C = g - l[w];
|
|
7159
|
-
g =
|
|
7157
|
+
g = xo(x, g, C);
|
|
7160
7158
|
}
|
|
7161
7159
|
const v = c.fn({
|
|
7162
7160
|
...t,
|
|
@@ -7193,7 +7191,7 @@ const em = function(e) {
|
|
|
7193
7191
|
} = Ge(e, t), u = {
|
|
7194
7192
|
x: n,
|
|
7195
7193
|
y: o
|
|
7196
|
-
}, l = Be(r), m =
|
|
7194
|
+
}, l = Be(r), m = qo(l);
|
|
7197
7195
|
let h = u[m], b = u[l];
|
|
7198
7196
|
const g = Ge(i, t), v = typeof g == "number" ? {
|
|
7199
7197
|
mainAxis: g,
|
|
@@ -7282,7 +7280,7 @@ function Oe(e) {
|
|
|
7282
7280
|
function qe(e) {
|
|
7283
7281
|
return Mn() ? e instanceof HTMLElement || e instanceof ke(e).HTMLElement : !1;
|
|
7284
7282
|
}
|
|
7285
|
-
function
|
|
7283
|
+
function Qr(e) {
|
|
7286
7284
|
return !Mn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ke(e).ShadowRoot;
|
|
7287
7285
|
}
|
|
7288
7286
|
function qt(e) {
|
|
@@ -7311,14 +7309,14 @@ function On(e) {
|
|
|
7311
7309
|
}
|
|
7312
7310
|
const sm = /transform|translate|scale|rotate|perspective|filter/, am = /paint|layout|strict|content/, lt = (e) => !!e && e !== "none";
|
|
7313
7311
|
let co;
|
|
7314
|
-
function
|
|
7312
|
+
function Zo(e) {
|
|
7315
7313
|
const t = Oe(e) ? Le(e) : e;
|
|
7316
|
-
return lt(t.transform) || lt(t.translate) || lt(t.scale) || lt(t.rotate) || lt(t.perspective) || !
|
|
7314
|
+
return lt(t.transform) || lt(t.translate) || lt(t.scale) || lt(t.rotate) || lt(t.perspective) || !Jo() && (lt(t.backdropFilter) || lt(t.filter)) || sm.test(t.willChange || "") || am.test(t.contain || "");
|
|
7317
7315
|
}
|
|
7318
7316
|
function im(e) {
|
|
7319
7317
|
let t = nt(e);
|
|
7320
7318
|
for (; qe(t) && !At(t); ) {
|
|
7321
|
-
if (
|
|
7319
|
+
if (Zo(t))
|
|
7322
7320
|
return t;
|
|
7323
7321
|
if (On(t))
|
|
7324
7322
|
return null;
|
|
@@ -7326,7 +7324,7 @@ function im(e) {
|
|
|
7326
7324
|
}
|
|
7327
7325
|
return null;
|
|
7328
7326
|
}
|
|
7329
|
-
function
|
|
7327
|
+
function Jo() {
|
|
7330
7328
|
return co == null && (co = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), co;
|
|
7331
7329
|
}
|
|
7332
7330
|
function At(e) {
|
|
@@ -7351,10 +7349,10 @@ function nt(e) {
|
|
|
7351
7349
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
7352
7350
|
e.assignedSlot || // DOM Element detected.
|
|
7353
7351
|
e.parentNode || // ShadowRoot detected.
|
|
7354
|
-
|
|
7352
|
+
Qr(e) && e.host || // Fallback.
|
|
7355
7353
|
Ve(e)
|
|
7356
7354
|
);
|
|
7357
|
-
return
|
|
7355
|
+
return Qr(t) ? t.host : t;
|
|
7358
7356
|
}
|
|
7359
7357
|
function _a(e) {
|
|
7360
7358
|
const t = nt(e);
|
|
@@ -7365,12 +7363,12 @@ function Ut(e, t, n) {
|
|
|
7365
7363
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
7366
7364
|
const r = _a(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = ke(r);
|
|
7367
7365
|
if (s) {
|
|
7368
|
-
const i =
|
|
7366
|
+
const i = Co(a);
|
|
7369
7367
|
return t.concat(a, a.visualViewport || [], qt(r) ? r : [], i && n ? Ut(i) : []);
|
|
7370
7368
|
} else
|
|
7371
7369
|
return t.concat(r, Ut(r, [], n));
|
|
7372
7370
|
}
|
|
7373
|
-
function
|
|
7371
|
+
function Co(e) {
|
|
7374
7372
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
7375
7373
|
}
|
|
7376
7374
|
function Ia(e) {
|
|
@@ -7383,11 +7381,11 @@ function Ia(e) {
|
|
|
7383
7381
|
$: i
|
|
7384
7382
|
};
|
|
7385
7383
|
}
|
|
7386
|
-
function
|
|
7384
|
+
function Qo(e) {
|
|
7387
7385
|
return Oe(e) ? e : e.contextElement;
|
|
7388
7386
|
}
|
|
7389
7387
|
function Tt(e) {
|
|
7390
|
-
const t =
|
|
7388
|
+
const t = Qo(e);
|
|
7391
7389
|
if (!qe(t))
|
|
7392
7390
|
return He(1);
|
|
7393
7391
|
const n = t.getBoundingClientRect(), {
|
|
@@ -7404,7 +7402,7 @@ function Tt(e) {
|
|
|
7404
7402
|
const cm = /* @__PURE__ */ He(0);
|
|
7405
7403
|
function Ma(e) {
|
|
7406
7404
|
const t = ke(e);
|
|
7407
|
-
return !
|
|
7405
|
+
return !Jo() || !t.visualViewport ? cm : {
|
|
7408
7406
|
x: t.visualViewport.offsetLeft,
|
|
7409
7407
|
y: t.visualViewport.offsetTop
|
|
7410
7408
|
};
|
|
@@ -7414,17 +7412,17 @@ function lm(e, t, n) {
|
|
|
7414
7412
|
}
|
|
7415
7413
|
function ut(e, t, n, o) {
|
|
7416
7414
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7417
|
-
const r = e.getBoundingClientRect(), s =
|
|
7415
|
+
const r = e.getBoundingClientRect(), s = Qo(e);
|
|
7418
7416
|
let a = He(1);
|
|
7419
7417
|
t && (o ? Oe(o) && (a = Tt(o)) : a = Tt(e));
|
|
7420
7418
|
const i = lm(s, n, o) ? Ma(s) : He(0);
|
|
7421
7419
|
let c = (r.left + i.x) / a.x, d = (r.top + i.y) / a.y, u = r.width / a.x, l = r.height / a.y;
|
|
7422
7420
|
if (s) {
|
|
7423
7421
|
const m = ke(s), h = o && Oe(o) ? ke(o) : o;
|
|
7424
|
-
let b = m, g =
|
|
7422
|
+
let b = m, g = Co(b);
|
|
7425
7423
|
for (; g && o && h !== b; ) {
|
|
7426
7424
|
const v = Tt(g), y = g.getBoundingClientRect(), w = Le(g), x = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, C = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
7427
|
-
c *= v.x, d *= v.y, u *= v.x, l *= v.y, c += x, d += C, b = ke(g), g =
|
|
7425
|
+
c *= v.x, d *= v.y, u *= v.x, l *= v.y, c += x, d += C, b = ke(g), g = Co(b);
|
|
7428
7426
|
}
|
|
7429
7427
|
}
|
|
7430
7428
|
return yn({
|
|
@@ -7486,20 +7484,20 @@ function fm(e) {
|
|
|
7486
7484
|
y: i
|
|
7487
7485
|
};
|
|
7488
7486
|
}
|
|
7489
|
-
const
|
|
7487
|
+
const es = 25;
|
|
7490
7488
|
function pm(e, t) {
|
|
7491
7489
|
const n = ke(e), o = Ve(e), r = n.visualViewport;
|
|
7492
7490
|
let s = o.clientWidth, a = o.clientHeight, i = 0, c = 0;
|
|
7493
7491
|
if (r) {
|
|
7494
7492
|
s = r.width, a = r.height;
|
|
7495
|
-
const u =
|
|
7493
|
+
const u = Jo();
|
|
7496
7494
|
(!u || u && t === "fixed") && (i = r.offsetLeft, c = r.offsetTop);
|
|
7497
7495
|
}
|
|
7498
7496
|
const d = Dn(o);
|
|
7499
7497
|
if (d <= 0) {
|
|
7500
7498
|
const u = o.ownerDocument, l = u.body, m = getComputedStyle(l), h = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, b = Math.abs(o.clientWidth - l.clientWidth - h);
|
|
7501
|
-
b <=
|
|
7502
|
-
} else d <=
|
|
7499
|
+
b <= es && (s -= b);
|
|
7500
|
+
} else d <= es && (s += d);
|
|
7503
7501
|
return {
|
|
7504
7502
|
width: s,
|
|
7505
7503
|
height: a,
|
|
@@ -7516,7 +7514,7 @@ function mm(e, t) {
|
|
|
7516
7514
|
y: d
|
|
7517
7515
|
};
|
|
7518
7516
|
}
|
|
7519
|
-
function
|
|
7517
|
+
function ts(e, t, n) {
|
|
7520
7518
|
let o;
|
|
7521
7519
|
if (t === "viewport")
|
|
7522
7520
|
o = pm(e, n);
|
|
@@ -7547,7 +7545,7 @@ function hm(e, t) {
|
|
|
7547
7545
|
const s = Le(e).position === "fixed";
|
|
7548
7546
|
let a = s ? nt(e) : e;
|
|
7549
7547
|
for (; Oe(a) && !At(a); ) {
|
|
7550
|
-
const i = Le(a), c =
|
|
7548
|
+
const i = Le(a), c = Zo(a);
|
|
7551
7549
|
!c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || qt(a) && !c && La(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = nt(a);
|
|
7552
7550
|
}
|
|
7553
7551
|
return t.set(e, o), o;
|
|
@@ -7559,10 +7557,10 @@ function gm(e) {
|
|
|
7559
7557
|
rootBoundary: o,
|
|
7560
7558
|
strategy: r
|
|
7561
7559
|
} = e;
|
|
7562
|
-
const a = [...n === "clippingAncestors" ? On(t) ? [] : hm(t, this._c) : [].concat(n), o], i =
|
|
7560
|
+
const a = [...n === "clippingAncestors" ? On(t) ? [] : hm(t, this._c) : [].concat(n), o], i = ts(t, a[0], r);
|
|
7563
7561
|
let c = i.top, d = i.right, u = i.bottom, l = i.left;
|
|
7564
7562
|
for (let m = 1; m < a.length; m++) {
|
|
7565
|
-
const h =
|
|
7563
|
+
const h = ts(t, a[m], r);
|
|
7566
7564
|
c = Ee(h.top, c), d = tt(h.right, d), u = tt(h.bottom, u), l = Ee(h.left, l);
|
|
7567
7565
|
}
|
|
7568
7566
|
return {
|
|
@@ -7609,7 +7607,7 @@ function bm(e, t, n) {
|
|
|
7609
7607
|
function lo(e) {
|
|
7610
7608
|
return Le(e).position === "static";
|
|
7611
7609
|
}
|
|
7612
|
-
function
|
|
7610
|
+
function ns(e, t) {
|
|
7613
7611
|
if (!qe(e) || Le(e).position === "fixed")
|
|
7614
7612
|
return null;
|
|
7615
7613
|
if (t)
|
|
@@ -7630,10 +7628,10 @@ function Da(e, t) {
|
|
|
7630
7628
|
}
|
|
7631
7629
|
return n;
|
|
7632
7630
|
}
|
|
7633
|
-
let o =
|
|
7631
|
+
let o = ns(e, t);
|
|
7634
7632
|
for (; o && rm(o) && lo(o); )
|
|
7635
|
-
o =
|
|
7636
|
-
return o && At(o) && lo(o) && !
|
|
7633
|
+
o = ns(o, t);
|
|
7634
|
+
return o && At(o) && lo(o) && !Zo(o) ? n : o || im(e) || n;
|
|
7637
7635
|
}
|
|
7638
7636
|
const ym = async function(e) {
|
|
7639
7637
|
const t = this.getOffsetParent || Da, n = this.getDimensions, o = await n(e.floating);
|
|
@@ -7719,7 +7717,7 @@ function Cm(e, t, n, o) {
|
|
|
7719
7717
|
elementResize: a = typeof ResizeObserver == "function",
|
|
7720
7718
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
7721
7719
|
animationFrame: c = !1
|
|
7722
|
-
} = o, d =
|
|
7720
|
+
} = o, d = Qo(e), u = r || s ? [...d ? Ut(d) : [], ...t ? Ut(t) : []] : [];
|
|
7723
7721
|
u.forEach((y) => {
|
|
7724
7722
|
r && y.addEventListener("scroll", n, {
|
|
7725
7723
|
passive: !0
|
|
@@ -7747,7 +7745,7 @@ function Cm(e, t, n, o) {
|
|
|
7747
7745
|
}), l == null || l(), (y = h) == null || y.disconnect(), h = null, c && cancelAnimationFrame(b);
|
|
7748
7746
|
};
|
|
7749
7747
|
}
|
|
7750
|
-
const Em = em, km = tm, Nm = Zp, Rm = om, Tm = Jp,
|
|
7748
|
+
const Em = em, km = tm, Nm = Zp, Rm = om, Tm = Jp, os = Xp, Pm = nm, Am = (e, t, n) => {
|
|
7751
7749
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
7752
7750
|
platform: xm,
|
|
7753
7751
|
...n
|
|
@@ -7795,7 +7793,7 @@ function wn(e, t) {
|
|
|
7795
7793
|
function $a(e) {
|
|
7796
7794
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
7797
7795
|
}
|
|
7798
|
-
function
|
|
7796
|
+
function rs(e, t) {
|
|
7799
7797
|
const n = $a(e);
|
|
7800
7798
|
return Math.round(t * n) / n;
|
|
7801
7799
|
}
|
|
@@ -7886,7 +7884,7 @@ function Mm(e) {
|
|
|
7886
7884
|
};
|
|
7887
7885
|
if (!A.floating)
|
|
7888
7886
|
return U;
|
|
7889
|
-
const k =
|
|
7887
|
+
const k = rs(A.floating, u.x), S = rs(A.floating, u.y);
|
|
7890
7888
|
return i ? {
|
|
7891
7889
|
...U,
|
|
7892
7890
|
transform: "translate(" + k + "px, " + S + "px)",
|
|
@@ -7919,10 +7917,10 @@ const Om = (e) => {
|
|
|
7919
7917
|
element: o,
|
|
7920
7918
|
padding: r
|
|
7921
7919
|
} = typeof e == "function" ? e(n) : e;
|
|
7922
|
-
return o && t(o) ? o.current != null ?
|
|
7920
|
+
return o && t(o) ? o.current != null ? os({
|
|
7923
7921
|
element: o.current,
|
|
7924
7922
|
padding: r
|
|
7925
|
-
}).fn(n) : {} : o ?
|
|
7923
|
+
}).fn(n) : {} : o ? os({
|
|
7926
7924
|
element: o,
|
|
7927
7925
|
padding: r
|
|
7928
7926
|
}).fn(n) : {};
|
|
@@ -7990,11 +7988,11 @@ var Vm = "Arrow", Fa = p.forwardRef((e, t) => {
|
|
|
7990
7988
|
);
|
|
7991
7989
|
});
|
|
7992
7990
|
Fa.displayName = Vm;
|
|
7993
|
-
var Wm = Fa,
|
|
7991
|
+
var Wm = Fa, er = "Popper", [Ba, zn] = xe(er), [Um, Ha] = Ba(er), Va = (e) => {
|
|
7994
7992
|
const { __scopePopper: t, children: n } = e, [o, r] = p.useState(null);
|
|
7995
7993
|
return /* @__PURE__ */ f(Um, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
7996
7994
|
};
|
|
7997
|
-
Va.displayName =
|
|
7995
|
+
Va.displayName = er;
|
|
7998
7996
|
var Wa = "PopperAnchor", Ua = p.forwardRef(
|
|
7999
7997
|
(e, t) => {
|
|
8000
7998
|
const { __scopePopper: n, virtualRef: o, ...r } = e, s = Ha(Wa, n), a = p.useRef(null), i = ie(t, a), c = p.useRef(null);
|
|
@@ -8005,7 +8003,7 @@ var Wa = "PopperAnchor", Ua = p.forwardRef(
|
|
|
8005
8003
|
}
|
|
8006
8004
|
);
|
|
8007
8005
|
Ua.displayName = Wa;
|
|
8008
|
-
var
|
|
8006
|
+
var tr = "PopperContent", [jm, Gm] = Ba(tr), ja = p.forwardRef(
|
|
8009
8007
|
(e, t) => {
|
|
8010
8008
|
var j, Y, ee, te, se, oe;
|
|
8011
8009
|
const {
|
|
@@ -8023,7 +8021,7 @@ var nr = "PopperContent", [jm, Gm] = Ba(nr), ja = p.forwardRef(
|
|
|
8023
8021
|
updatePositionStrategy: h = "optimized",
|
|
8024
8022
|
onPlaced: b,
|
|
8025
8023
|
...g
|
|
8026
|
-
} = e, v = Ha(
|
|
8024
|
+
} = e, v = Ha(tr, n), [y, w] = p.useState(null), x = ie(t, (ue) => w(ue)), [C, R] = p.useState(null), T = _n(C), N = (T == null ? void 0 : T.width) ?? 0, E = (T == null ? void 0 : T.height) ?? 0, L = o + (s !== "center" ? "-" + s : ""), W = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, M = Array.isArray(d) ? d : [d], F = M.length > 0, H = {
|
|
8027
8025
|
padding: W,
|
|
8028
8026
|
boundary: M.filter(qm),
|
|
8029
8027
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -8119,7 +8117,7 @@ var nr = "PopperContent", [jm, Gm] = Ba(nr), ja = p.forwardRef(
|
|
|
8119
8117
|
);
|
|
8120
8118
|
}
|
|
8121
8119
|
);
|
|
8122
|
-
ja.displayName =
|
|
8120
|
+
ja.displayName = tr;
|
|
8123
8121
|
var Ga = "PopperArrow", Ym = {
|
|
8124
8122
|
top: "bottom",
|
|
8125
8123
|
right: "left",
|
|
@@ -8188,11 +8186,11 @@ function qa(e) {
|
|
|
8188
8186
|
const [t, n = "center"] = e.split("-");
|
|
8189
8187
|
return [t, n];
|
|
8190
8188
|
}
|
|
8191
|
-
var Ka = Va, Xa = Ua, Za = ja, Ja = Ya, fo = "rovingFocusGroup.onEntryFocus", Xm = { bubbles: !1, cancelable: !0 }, Kt = "RovingFocusGroup", [
|
|
8189
|
+
var Ka = Va, Xa = Ua, Za = ja, Ja = Ya, fo = "rovingFocusGroup.onEntryFocus", Xm = { bubbles: !1, cancelable: !0 }, Kt = "RovingFocusGroup", [Eo, Qa, Zm] = Xs(Kt), [Jm, $n] = xe(
|
|
8192
8190
|
Kt,
|
|
8193
8191
|
[Zm]
|
|
8194
8192
|
), [Qm, eh] = Jm(Kt), ei = p.forwardRef(
|
|
8195
|
-
(e, t) => /* @__PURE__ */ f(
|
|
8193
|
+
(e, t) => /* @__PURE__ */ f(Eo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(Eo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(th, { ...e, ref: t }) }) })
|
|
8196
8194
|
);
|
|
8197
8195
|
ei.displayName = Kt;
|
|
8198
8196
|
var th = p.forwardRef((e, t) => {
|
|
@@ -8281,7 +8279,7 @@ var th = p.forwardRef((e, t) => {
|
|
|
8281
8279
|
if (o)
|
|
8282
8280
|
return h(), () => b();
|
|
8283
8281
|
}, [o, h, b]), /* @__PURE__ */ f(
|
|
8284
|
-
|
|
8282
|
+
Eo.ItemSlot,
|
|
8285
8283
|
{
|
|
8286
8284
|
scope: n,
|
|
8287
8285
|
id: d,
|
|
@@ -8365,10 +8363,10 @@ var ri = ei, si = ni, ah = "Label", ai = p.forwardRef((e, t) => /* @__PURE__ */
|
|
|
8365
8363
|
));
|
|
8366
8364
|
ai.displayName = ah;
|
|
8367
8365
|
var ih = ai;
|
|
8368
|
-
function
|
|
8366
|
+
function ko(e, [t, n]) {
|
|
8369
8367
|
return Math.min(n, Math.max(t, e));
|
|
8370
8368
|
}
|
|
8371
|
-
var
|
|
8369
|
+
var nr = "Progress", or = 100, [ch] = xe(nr), [lh, dh] = ch(nr), ii = p.forwardRef(
|
|
8372
8370
|
(e, t) => {
|
|
8373
8371
|
const {
|
|
8374
8372
|
__scopeProgress: n,
|
|
@@ -8377,10 +8375,10 @@ var or = "Progress", rr = 100, [ch] = xe(or), [lh, dh] = ch(or), ii = p.forwardR
|
|
|
8377
8375
|
getValueLabel: s = uh,
|
|
8378
8376
|
...a
|
|
8379
8377
|
} = e;
|
|
8380
|
-
(r || r === 0) && !
|
|
8381
|
-
const i =
|
|
8382
|
-
o !== null && !
|
|
8383
|
-
const c =
|
|
8378
|
+
(r || r === 0) && !ss(r) && console.error(fh(`${r}`, "Progress"));
|
|
8379
|
+
const i = ss(r) ? r : or;
|
|
8380
|
+
o !== null && !as(o, i) && console.error(ph(`${o}`, "Progress"));
|
|
8381
|
+
const c = as(o, i) ? o : null, d = xn(c) ? s(c, i) : void 0;
|
|
8384
8382
|
return /* @__PURE__ */ f(lh, { scope: n, value: c, max: i, children: /* @__PURE__ */ f(
|
|
8385
8383
|
Z.div,
|
|
8386
8384
|
{
|
|
@@ -8398,7 +8396,7 @@ var or = "Progress", rr = 100, [ch] = xe(or), [lh, dh] = ch(or), ii = p.forwardR
|
|
|
8398
8396
|
) });
|
|
8399
8397
|
}
|
|
8400
8398
|
);
|
|
8401
|
-
ii.displayName =
|
|
8399
|
+
ii.displayName = nr;
|
|
8402
8400
|
var ci = "ProgressIndicator", li = p.forwardRef(
|
|
8403
8401
|
(e, t) => {
|
|
8404
8402
|
const { __scopeProgress: n, ...o } = e, r = dh(ci, n);
|
|
@@ -8424,24 +8422,24 @@ function di(e, t) {
|
|
|
8424
8422
|
function xn(e) {
|
|
8425
8423
|
return typeof e == "number";
|
|
8426
8424
|
}
|
|
8427
|
-
function
|
|
8425
|
+
function ss(e) {
|
|
8428
8426
|
return xn(e) && !isNaN(e) && e > 0;
|
|
8429
8427
|
}
|
|
8430
|
-
function
|
|
8428
|
+
function as(e, t) {
|
|
8431
8429
|
return xn(e) && !isNaN(e) && e <= t && e >= 0;
|
|
8432
8430
|
}
|
|
8433
8431
|
function fh(e, t) {
|
|
8434
|
-
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${
|
|
8432
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${or}\`.`;
|
|
8435
8433
|
}
|
|
8436
8434
|
function ph(e, t) {
|
|
8437
8435
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
8438
8436
|
- a positive number
|
|
8439
|
-
- less than the value passed to \`max\` (or ${
|
|
8437
|
+
- less than the value passed to \`max\` (or ${or} if no \`max\` prop is set)
|
|
8440
8438
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
8441
8439
|
|
|
8442
8440
|
Defaulting to \`null\`.`;
|
|
8443
8441
|
}
|
|
8444
|
-
var mh = ii, hh = li,
|
|
8442
|
+
var mh = ii, hh = li, rr = "Radio", [gh, ui] = xe(rr), [vh, bh] = gh(rr), fi = p.forwardRef(
|
|
8445
8443
|
(e, t) => {
|
|
8446
8444
|
const {
|
|
8447
8445
|
__scopeRadio: n,
|
|
@@ -8489,7 +8487,7 @@ var mh = ii, hh = li, sr = "Radio", [gh, ui] = xe(sr), [vh, bh] = gh(sr), fi = p
|
|
|
8489
8487
|
] });
|
|
8490
8488
|
}
|
|
8491
8489
|
);
|
|
8492
|
-
fi.displayName =
|
|
8490
|
+
fi.displayName = rr;
|
|
8493
8491
|
var pi = "RadioIndicator", mi = p.forwardRef(
|
|
8494
8492
|
(e, t) => {
|
|
8495
8493
|
const { __scopeRadio: n, forceMount: o, ...r } = e, s = bh(pi, n);
|
|
@@ -8662,7 +8660,7 @@ var kh = yi, Nh = xi, Rh = Si;
|
|
|
8662
8660
|
function Th(e, t) {
|
|
8663
8661
|
return p.useReducer((n, o) => t[n][o] ?? n, e);
|
|
8664
8662
|
}
|
|
8665
|
-
var
|
|
8663
|
+
var sr = "ScrollArea", [Ci] = xe(sr), [Ph, Re] = Ci(sr), Ei = p.forwardRef(
|
|
8666
8664
|
(e, t) => {
|
|
8667
8665
|
const {
|
|
8668
8666
|
__scopeScrollArea: n,
|
|
@@ -8712,7 +8710,7 @@ var ar = "ScrollArea", [Ci] = xe(ar), [Ph, Re] = Ci(ar), Ei = p.forwardRef(
|
|
|
8712
8710
|
);
|
|
8713
8711
|
}
|
|
8714
8712
|
);
|
|
8715
|
-
Ei.displayName =
|
|
8713
|
+
Ei.displayName = sr;
|
|
8716
8714
|
var ki = "ScrollAreaViewport", Ni = p.forwardRef(
|
|
8717
8715
|
(e, t) => {
|
|
8718
8716
|
const { __scopeScrollArea: n, children: o, nonce: r, ...s } = e, a = Re(ki, n), i = p.useRef(null), c = ie(t, i, a.onViewportChange);
|
|
@@ -8760,7 +8758,7 @@ var We = "ScrollAreaScrollbar", Ri = p.forwardRef(
|
|
|
8760
8758
|
const { forceMount: n, ...o } = e, r = Re(We, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = r, i = e.orientation === "horizontal";
|
|
8761
8759
|
return p.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
8762
8760
|
i ? s(!1) : a(!1);
|
|
8763
|
-
}), [i, s, a]), r.type === "hover" ? /* @__PURE__ */ f(Ah, { ...o, ref: t, forceMount: n }) : r.type === "scroll" ? /* @__PURE__ */ f(_h, { ...o, ref: t, forceMount: n }) : r.type === "auto" ? /* @__PURE__ */ f(Ti, { ...o, ref: t, forceMount: n }) : r.type === "always" ? /* @__PURE__ */ f(
|
|
8761
|
+
}), [i, s, a]), r.type === "hover" ? /* @__PURE__ */ f(Ah, { ...o, ref: t, forceMount: n }) : r.type === "scroll" ? /* @__PURE__ */ f(_h, { ...o, ref: t, forceMount: n }) : r.type === "auto" ? /* @__PURE__ */ f(Ti, { ...o, ref: t, forceMount: n }) : r.type === "always" ? /* @__PURE__ */ f(ar, { ...o, ref: t }) : null;
|
|
8764
8762
|
}
|
|
8765
8763
|
);
|
|
8766
8764
|
Ri.displayName = We;
|
|
@@ -8822,7 +8820,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8822
8820
|
return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
|
|
8823
8821
|
}
|
|
8824
8822
|
}, [r.viewport, s, c, a]), /* @__PURE__ */ f(De, { present: n || i !== "hidden", children: /* @__PURE__ */ f(
|
|
8825
|
-
|
|
8823
|
+
ar,
|
|
8826
8824
|
{
|
|
8827
8825
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
8828
8826
|
...o,
|
|
@@ -8839,14 +8837,14 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8839
8837
|
}
|
|
8840
8838
|
}, 10);
|
|
8841
8839
|
return _t(n.viewport, c), _t(n.content, c), /* @__PURE__ */ f(De, { present: o || s, children: /* @__PURE__ */ f(
|
|
8842
|
-
|
|
8840
|
+
ar,
|
|
8843
8841
|
{
|
|
8844
8842
|
"data-state": s ? "visible" : "hidden",
|
|
8845
8843
|
...r,
|
|
8846
8844
|
ref: t
|
|
8847
8845
|
}
|
|
8848
8846
|
) });
|
|
8849
|
-
}),
|
|
8847
|
+
}), ar = p.forwardRef((e, t) => {
|
|
8850
8848
|
const { orientation: n = "vertical", ...o } = e, r = Re(We, e.__scopeScrollArea), s = p.useRef(null), a = p.useRef(0), [i, c] = p.useState({
|
|
8851
8849
|
content: 0,
|
|
8852
8850
|
viewport: 0,
|
|
@@ -8870,7 +8868,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8870
8868
|
ref: t,
|
|
8871
8869
|
onThumbPositionChange: () => {
|
|
8872
8870
|
if (r.viewport && s.current) {
|
|
8873
|
-
const m = r.viewport.scrollLeft, h =
|
|
8871
|
+
const m = r.viewport.scrollLeft, h = is(m, i, r.dir);
|
|
8874
8872
|
s.current.style.transform = `translate3d(${h}px, 0, 0)`;
|
|
8875
8873
|
}
|
|
8876
8874
|
},
|
|
@@ -8888,7 +8886,7 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
8888
8886
|
ref: t,
|
|
8889
8887
|
onThumbPositionChange: () => {
|
|
8890
8888
|
if (r.viewport && s.current) {
|
|
8891
|
-
const m = r.viewport.scrollTop, h =
|
|
8889
|
+
const m = r.viewport.scrollTop, h = is(m, i);
|
|
8892
8890
|
s.current.style.transform = `translate3d(0, ${h}px, 0)`;
|
|
8893
8891
|
}
|
|
8894
8892
|
},
|
|
@@ -9078,15 +9076,15 @@ var Ah = p.forwardRef((e, t) => {
|
|
|
9078
9076
|
}
|
|
9079
9077
|
);
|
|
9080
9078
|
_i.displayName = Sn;
|
|
9081
|
-
var
|
|
9079
|
+
var ir = "ScrollAreaCorner", Ii = p.forwardRef(
|
|
9082
9080
|
(e, t) => {
|
|
9083
|
-
const n = Re(
|
|
9081
|
+
const n = Re(ir, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
|
|
9084
9082
|
return n.type !== "scroll" && o ? /* @__PURE__ */ f(Dh, { ...e, ref: t }) : null;
|
|
9085
9083
|
}
|
|
9086
9084
|
);
|
|
9087
|
-
Ii.displayName =
|
|
9085
|
+
Ii.displayName = ir;
|
|
9088
9086
|
var Dh = p.forwardRef((e, t) => {
|
|
9089
|
-
const { __scopeScrollArea: n, ...o } = e, r = Re(
|
|
9087
|
+
const { __scopeScrollArea: n, ...o } = e, r = Re(ir, n), [s, a] = p.useState(0), [i, c] = p.useState(0), d = !!(s && i);
|
|
9090
9088
|
return _t(r.scrollbarX, () => {
|
|
9091
9089
|
var l;
|
|
9092
9090
|
const u = ((l = r.scrollbarX) == null ? void 0 : l.offsetHeight) || 0;
|
|
@@ -9127,8 +9125,8 @@ function zh(e, t, n, o = "ltr") {
|
|
|
9127
9125
|
const r = Bn(n), s = r / 2, a = t || s, i = r - a, c = n.scrollbar.paddingStart + a, d = n.scrollbar.size - n.scrollbar.paddingEnd - i, u = n.content - n.viewport, l = o === "ltr" ? [0, u] : [u * -1, 0];
|
|
9128
9126
|
return Oi([c, d], l)(e);
|
|
9129
9127
|
}
|
|
9130
|
-
function
|
|
9131
|
-
const o = Bn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - r, a = t.content - t.viewport, i = s - o, c = n === "ltr" ? [0, a] : [a * -1, 0], d =
|
|
9128
|
+
function is(e, t, n = "ltr") {
|
|
9129
|
+
const o = Bn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - r, a = t.content - t.viewport, i = s - o, c = n === "ltr" ? [0, a] : [a * -1, 0], d = ko(e, c);
|
|
9132
9130
|
return Oi([0, a], [0, i])(d);
|
|
9133
9131
|
}
|
|
9134
9132
|
function Oi(e, t) {
|
|
@@ -9327,7 +9325,7 @@ var qh = "SelectIcon", Hi = p.forwardRef(
|
|
|
9327
9325
|
}
|
|
9328
9326
|
);
|
|
9329
9327
|
Hi.displayName = qh;
|
|
9330
|
-
var Kh = "SelectPortal", Vi = (e) => /* @__PURE__ */ f(
|
|
9328
|
+
var Kh = "SelectPortal", Vi = (e) => /* @__PURE__ */ f(jo, { asChild: !0, ...e });
|
|
9331
9329
|
Vi.displayName = Kh;
|
|
9332
9330
|
var pt = "SelectContent", Wi = p.forwardRef(
|
|
9333
9331
|
(e, t) => {
|
|
@@ -9425,7 +9423,7 @@ var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9425
9423
|
(w.value !== void 0 && w.value === Y || te) && M(j);
|
|
9426
9424
|
},
|
|
9427
9425
|
[w.value]
|
|
9428
|
-
), B = o === "popper" ?
|
|
9426
|
+
), B = o === "popper" ? No : Gi, J = B === No ? {
|
|
9429
9427
|
side: i,
|
|
9430
9428
|
sideOffset: c,
|
|
9431
9429
|
align: d,
|
|
@@ -9466,7 +9464,7 @@ var _e = 10, [Ui, st] = Lt(pt), Xh = "SelectContentImpl", Zh = /* @__PURE__ */ W
|
|
|
9466
9464
|
(Y = w.trigger) == null || Y.focus({ preventScroll: !0 }), j.preventDefault();
|
|
9467
9465
|
}),
|
|
9468
9466
|
children: /* @__PURE__ */ f(
|
|
9469
|
-
|
|
9467
|
+
Uo,
|
|
9470
9468
|
{
|
|
9471
9469
|
asChild: !0,
|
|
9472
9470
|
disableOutsidePointerEvents: !0,
|
|
@@ -9521,7 +9519,7 @@ var Jh = "SelectItemAlignedPosition", Gi = p.forwardRef((e, t) => {
|
|
|
9521
9519
|
if (s.trigger && s.valueNode && i && d && g && v && y) {
|
|
9522
9520
|
const N = s.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(), L = s.valueNode.getBoundingClientRect(), W = y.getBoundingClientRect();
|
|
9523
9521
|
if (s.dir !== "rtl") {
|
|
9524
|
-
const se = W.left - E.left, oe = L.left - se, ue = N.left - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te =
|
|
9522
|
+
const se = W.left - E.left, oe = L.left - se, ue = N.left - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te = ko(oe, [
|
|
9525
9523
|
_e,
|
|
9526
9524
|
// Prevents the content from going off the starting edge of the
|
|
9527
9525
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -9532,7 +9530,7 @@ var Jh = "SelectItemAlignedPosition", Gi = p.forwardRef((e, t) => {
|
|
|
9532
9530
|
]);
|
|
9533
9531
|
i.style.minWidth = fe + "px", i.style.left = Te + "px";
|
|
9534
9532
|
} else {
|
|
9535
|
-
const se = E.right - W.right, oe = window.innerWidth - L.right - se, ue = window.innerWidth - N.right - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te =
|
|
9533
|
+
const se = E.right - W.right, oe = window.innerWidth - L.right - se, ue = window.innerWidth - N.right - oe, fe = N.width + ue, at = Math.max(fe, E.width), Ke = window.innerWidth - _e, Te = ko(oe, [
|
|
9536
9534
|
_e,
|
|
9537
9535
|
Math.max(_e, Ke - at)
|
|
9538
9536
|
]);
|
|
@@ -9621,7 +9619,7 @@ var Jh = "SelectItemAlignedPosition", Gi = p.forwardRef((e, t) => {
|
|
|
9621
9619
|
);
|
|
9622
9620
|
});
|
|
9623
9621
|
Gi.displayName = Jh;
|
|
9624
|
-
var Qh = "SelectPopperPosition",
|
|
9622
|
+
var Qh = "SelectPopperPosition", No = p.forwardRef((e, t) => {
|
|
9625
9623
|
const {
|
|
9626
9624
|
__scopeSelect: n,
|
|
9627
9625
|
align: o = "start",
|
|
@@ -9649,10 +9647,10 @@ var Qh = "SelectPopperPosition", Ro = p.forwardRef((e, t) => {
|
|
|
9649
9647
|
}
|
|
9650
9648
|
);
|
|
9651
9649
|
});
|
|
9652
|
-
|
|
9653
|
-
var [eg,
|
|
9650
|
+
No.displayName = Qh;
|
|
9651
|
+
var [eg, cr] = Lt(pt, {}), Ro = "SelectViewport", Yi = p.forwardRef(
|
|
9654
9652
|
(e, t) => {
|
|
9655
|
-
const { __scopeSelect: n, nonce: o, ...r } = e, s = st(
|
|
9653
|
+
const { __scopeSelect: n, nonce: o, ...r } = e, s = st(Ro, n), a = cr(Ro, n), i = ie(t, s.onViewportChange), c = p.useRef(0);
|
|
9656
9654
|
return /* @__PURE__ */ q(Ie, { children: [
|
|
9657
9655
|
/* @__PURE__ */ f(
|
|
9658
9656
|
"style",
|
|
@@ -9702,7 +9700,7 @@ var [eg, lr] = Lt(pt, {}), To = "SelectViewport", Yi = p.forwardRef(
|
|
|
9702
9700
|
] });
|
|
9703
9701
|
}
|
|
9704
9702
|
);
|
|
9705
|
-
Yi.displayName =
|
|
9703
|
+
Yi.displayName = Ro;
|
|
9706
9704
|
var qi = "SelectGroup", [tg, ng] = Lt(qi), og = p.forwardRef(
|
|
9707
9705
|
(e, t) => {
|
|
9708
9706
|
const { __scopeSelect: n, ...o } = e, r = ht();
|
|
@@ -9829,8 +9827,8 @@ var Qi = "SelectItemIndicator", ec = p.forwardRef(
|
|
|
9829
9827
|
}
|
|
9830
9828
|
);
|
|
9831
9829
|
ec.displayName = Qi;
|
|
9832
|
-
var
|
|
9833
|
-
const n = st(
|
|
9830
|
+
var To = "SelectScrollUpButton", tc = p.forwardRef((e, t) => {
|
|
9831
|
+
const n = st(To, e.__scopeSelect), o = cr(To, e.__scopeSelect), [r, s] = p.useState(!1), a = ie(t, o.onScrollButtonChange);
|
|
9834
9832
|
return de(() => {
|
|
9835
9833
|
if (n.viewport && n.isPositioned) {
|
|
9836
9834
|
let i = function() {
|
|
@@ -9852,9 +9850,9 @@ var Po = "SelectScrollUpButton", tc = p.forwardRef((e, t) => {
|
|
|
9852
9850
|
}
|
|
9853
9851
|
) : null;
|
|
9854
9852
|
});
|
|
9855
|
-
tc.displayName =
|
|
9856
|
-
var
|
|
9857
|
-
const n = st(
|
|
9853
|
+
tc.displayName = To;
|
|
9854
|
+
var Po = "SelectScrollDownButton", nc = p.forwardRef((e, t) => {
|
|
9855
|
+
const n = st(Po, e.__scopeSelect), o = cr(Po, e.__scopeSelect), [r, s] = p.useState(!1), a = ie(t, o.onScrollButtonChange);
|
|
9858
9856
|
return de(() => {
|
|
9859
9857
|
if (n.viewport && n.isPositioned) {
|
|
9860
9858
|
let i = function() {
|
|
@@ -9876,7 +9874,7 @@ var Ao = "SelectScrollDownButton", nc = p.forwardRef((e, t) => {
|
|
|
9876
9874
|
}
|
|
9877
9875
|
) : null;
|
|
9878
9876
|
});
|
|
9879
|
-
nc.displayName =
|
|
9877
|
+
nc.displayName = Po;
|
|
9880
9878
|
var oc = p.forwardRef((e, t) => {
|
|
9881
9879
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, s = st("SelectScrollButton", n), a = p.useRef(null), i = Wn(n), c = p.useCallback(() => {
|
|
9882
9880
|
a.current !== null && (window.clearInterval(a.current), a.current = null);
|
|
@@ -9911,13 +9909,13 @@ var oc = p.forwardRef((e, t) => {
|
|
|
9911
9909
|
}
|
|
9912
9910
|
);
|
|
9913
9911
|
ig.displayName = ag;
|
|
9914
|
-
var
|
|
9912
|
+
var Ao = "SelectArrow", cg = p.forwardRef(
|
|
9915
9913
|
(e, t) => {
|
|
9916
|
-
const { __scopeSelect: n, ...o } = e, r = Un(n), s = rt(
|
|
9914
|
+
const { __scopeSelect: n, ...o } = e, r = Un(n), s = rt(Ao, n), a = st(Ao, n);
|
|
9917
9915
|
return s.open && a.position === "popper" ? /* @__PURE__ */ f(Ja, { ...r, ...o, ref: t }) : null;
|
|
9918
9916
|
}
|
|
9919
9917
|
);
|
|
9920
|
-
cg.displayName =
|
|
9918
|
+
cg.displayName = Ao;
|
|
9921
9919
|
var lg = "SelectBubbleInput", rc = p.forwardRef(
|
|
9922
9920
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
9923
9921
|
const r = p.useRef(null), s = ie(o, r), a = An(t);
|
|
@@ -9973,8 +9971,8 @@ function ic(e, t, n) {
|
|
|
9973
9971
|
function dg(e, t) {
|
|
9974
9972
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
9975
9973
|
}
|
|
9976
|
-
var ug = Di, fg = $i, pg = Bi, mg = Hi, hg = Vi, gg = Wi, vg = Yi, bg = Zi, yg = Ji, wg = ec, xg = tc, Sg = nc, Cg = "Separator",
|
|
9977
|
-
const { decorative: n, orientation: o =
|
|
9974
|
+
var ug = Di, fg = $i, pg = Bi, mg = Hi, hg = Vi, gg = Wi, vg = Yi, bg = Zi, yg = Ji, wg = ec, xg = tc, Sg = nc, Cg = "Separator", cs = "horizontal", Eg = ["horizontal", "vertical"], cc = p.forwardRef((e, t) => {
|
|
9975
|
+
const { decorative: n, orientation: o = cs, ...r } = e, s = kg(o) ? o : cs, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
9978
9976
|
return /* @__PURE__ */ f(
|
|
9979
9977
|
Z.div,
|
|
9980
9978
|
{
|
|
@@ -10107,7 +10105,7 @@ function pc(e) {
|
|
|
10107
10105
|
}
|
|
10108
10106
|
var _g = lc, Ig = uc, Gn = "Tabs", [Mg] = xe(Gn, [
|
|
10109
10107
|
$n
|
|
10110
|
-
]), mc = $n(), [Og,
|
|
10108
|
+
]), mc = $n(), [Og, lr] = Mg(Gn), hc = p.forwardRef(
|
|
10111
10109
|
(e, t) => {
|
|
10112
10110
|
const {
|
|
10113
10111
|
__scopeTabs: n,
|
|
@@ -10150,7 +10148,7 @@ var _g = lc, Ig = uc, Gn = "Tabs", [Mg] = xe(Gn, [
|
|
|
10150
10148
|
hc.displayName = Gn;
|
|
10151
10149
|
var gc = "TabsList", vc = p.forwardRef(
|
|
10152
10150
|
(e, t) => {
|
|
10153
|
-
const { __scopeTabs: n, loop: o = !0, ...r } = e, s =
|
|
10151
|
+
const { __scopeTabs: n, loop: o = !0, ...r } = e, s = lr(gc, n), a = mc(n);
|
|
10154
10152
|
return /* @__PURE__ */ f(
|
|
10155
10153
|
ri,
|
|
10156
10154
|
{
|
|
@@ -10175,7 +10173,7 @@ var gc = "TabsList", vc = p.forwardRef(
|
|
|
10175
10173
|
vc.displayName = gc;
|
|
10176
10174
|
var bc = "TabsTrigger", yc = p.forwardRef(
|
|
10177
10175
|
(e, t) => {
|
|
10178
|
-
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a =
|
|
10176
|
+
const { __scopeTabs: n, value: o, disabled: r = !1, ...s } = e, a = lr(bc, n), i = mc(n), c = Sc(a.baseId, o), d = Cc(a.baseId, o), u = o === a.value;
|
|
10179
10177
|
return /* @__PURE__ */ f(
|
|
10180
10178
|
si,
|
|
10181
10179
|
{
|
|
@@ -10215,7 +10213,7 @@ var bc = "TabsTrigger", yc = p.forwardRef(
|
|
|
10215
10213
|
yc.displayName = bc;
|
|
10216
10214
|
var wc = "TabsContent", xc = p.forwardRef(
|
|
10217
10215
|
(e, t) => {
|
|
10218
|
-
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i =
|
|
10216
|
+
const { __scopeTabs: n, value: o, forceMount: r, children: s, ...a } = e, i = lr(wc, n), c = Sc(i.baseId, o), d = Cc(i.baseId, o), u = o === i.value, l = p.useRef(u);
|
|
10219
10217
|
return p.useEffect(() => {
|
|
10220
10218
|
const m = requestAnimationFrame(() => l.current = !1);
|
|
10221
10219
|
return () => cancelAnimationFrame(m);
|
|
@@ -10249,7 +10247,7 @@ function Cc(e, t) {
|
|
|
10249
10247
|
}
|
|
10250
10248
|
var Lg = hc, Dg = vc, zg = yc, $g = xc, [Yn] = xe("Tooltip", [
|
|
10251
10249
|
zn
|
|
10252
|
-
]), qn = zn(), Ec = "TooltipProvider", Fg = 700,
|
|
10250
|
+
]), qn = zn(), Ec = "TooltipProvider", Fg = 700, _o = "tooltip.open", [Bg, dr] = Yn(Ec), kc = (e) => {
|
|
10253
10251
|
const {
|
|
10254
10252
|
__scopeTooltip: t,
|
|
10255
10253
|
delayDuration: n = Fg,
|
|
@@ -10294,11 +10292,11 @@ var jt = "Tooltip", [Hg, Xt] = Yn(jt), Nc = (e) => {
|
|
|
10294
10292
|
onOpenChange: s,
|
|
10295
10293
|
disableHoverableContent: a,
|
|
10296
10294
|
delayDuration: i
|
|
10297
|
-
} = e, c =
|
|
10295
|
+
} = e, c = dr(jt, e.__scopeTooltip), d = qn(t), [u, l] = p.useState(null), m = ht(), h = p.useRef(0), b = a ?? c.disableHoverableContent, g = i ?? c.delayDuration, v = p.useRef(!1), [y, w] = je({
|
|
10298
10296
|
prop: o,
|
|
10299
10297
|
defaultProp: r ?? !1,
|
|
10300
10298
|
onChange: (N) => {
|
|
10301
|
-
N ? (c.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
10299
|
+
N ? (c.onOpen(), document.dispatchEvent(new CustomEvent(_o))) : c.onClose(), s == null || s(N);
|
|
10302
10300
|
},
|
|
10303
10301
|
caller: jt
|
|
10304
10302
|
}), x = p.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), C = p.useCallback(() => {
|
|
@@ -10335,9 +10333,9 @@ var jt = "Tooltip", [Hg, Xt] = Yn(jt), Nc = (e) => {
|
|
|
10335
10333
|
) });
|
|
10336
10334
|
};
|
|
10337
10335
|
Nc.displayName = jt;
|
|
10338
|
-
var
|
|
10336
|
+
var Io = "TooltipTrigger", Rc = p.forwardRef(
|
|
10339
10337
|
(e, t) => {
|
|
10340
|
-
const { __scopeTooltip: n, ...o } = e, r = Xt(
|
|
10338
|
+
const { __scopeTooltip: n, ...o } = e, r = Xt(Io, n), s = dr(Io, n), a = qn(n), i = p.useRef(null), c = ie(t, i, r.onTriggerChange), d = p.useRef(!1), u = p.useRef(!1), l = p.useCallback(() => d.current = !1, []);
|
|
10341
10339
|
return p.useEffect(() => () => document.removeEventListener("pointerup", l), [l]), /* @__PURE__ */ f(Xa, { asChild: !0, ...a, children: /* @__PURE__ */ f(
|
|
10342
10340
|
Z.button,
|
|
10343
10341
|
{
|
|
@@ -10363,21 +10361,21 @@ var Mo = "TooltipTrigger", Rc = p.forwardRef(
|
|
|
10363
10361
|
) });
|
|
10364
10362
|
}
|
|
10365
10363
|
);
|
|
10366
|
-
Rc.displayName =
|
|
10367
|
-
var
|
|
10364
|
+
Rc.displayName = Io;
|
|
10365
|
+
var ur = "TooltipPortal", [Vg, Wg] = Yn(ur, {
|
|
10368
10366
|
forceMount: void 0
|
|
10369
10367
|
}), Tc = (e) => {
|
|
10370
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Xt(
|
|
10371
|
-
return /* @__PURE__ */ f(Vg, { scope: t, forceMount: n, children: /* @__PURE__ */ f(De, { present: n || s.open, children: /* @__PURE__ */ f(
|
|
10368
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Xt(ur, t);
|
|
10369
|
+
return /* @__PURE__ */ f(Vg, { scope: t, forceMount: n, children: /* @__PURE__ */ f(De, { present: n || s.open, children: /* @__PURE__ */ f(jo, { asChild: !0, container: r, children: o }) }) });
|
|
10372
10370
|
};
|
|
10373
|
-
Tc.displayName =
|
|
10371
|
+
Tc.displayName = ur;
|
|
10374
10372
|
var It = "TooltipContent", Pc = p.forwardRef(
|
|
10375
10373
|
(e, t) => {
|
|
10376
10374
|
const n = Wg(It, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, a = Xt(It, e.__scopeTooltip);
|
|
10377
10375
|
return /* @__PURE__ */ f(De, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ f(Ac, { side: r, ...s, ref: t }) : /* @__PURE__ */ f(Ug, { side: r, ...s, ref: t }) });
|
|
10378
10376
|
}
|
|
10379
10377
|
), Ug = p.forwardRef((e, t) => {
|
|
10380
|
-
const n = Xt(It, e.__scopeTooltip), o =
|
|
10378
|
+
const n = Xt(It, e.__scopeTooltip), o = dr(It, e.__scopeTooltip), r = p.useRef(null), s = ie(t, r), [a, i] = p.useState(null), { trigger: c, onClose: d } = n, u = r.current, { onPointerInTransitChange: l } = o, m = p.useCallback(() => {
|
|
10381
10379
|
i(null), l(!1);
|
|
10382
10380
|
}, [l]), h = p.useCallback(
|
|
10383
10381
|
(b, g) => {
|
|
@@ -10412,7 +10410,7 @@ var It = "TooltipContent", Pc = p.forwardRef(
|
|
|
10412
10410
|
onPointerDownOutside: a,
|
|
10413
10411
|
...i
|
|
10414
10412
|
} = e, c = Xt(It, n), d = qn(n), { onClose: u } = c;
|
|
10415
|
-
return p.useEffect(() => (document.addEventListener(
|
|
10413
|
+
return p.useEffect(() => (document.addEventListener(_o, u), () => document.removeEventListener(_o, u)), [u]), p.useEffect(() => {
|
|
10416
10414
|
if (c.trigger) {
|
|
10417
10415
|
const l = (m) => {
|
|
10418
10416
|
const h = m.target;
|
|
@@ -10421,7 +10419,7 @@ var It = "TooltipContent", Pc = p.forwardRef(
|
|
|
10421
10419
|
return window.addEventListener("scroll", l, { capture: !0 }), () => window.removeEventListener("scroll", l, { capture: !0 });
|
|
10422
10420
|
}
|
|
10423
10421
|
}, [c.trigger, u]), /* @__PURE__ */ f(
|
|
10424
|
-
|
|
10422
|
+
Uo,
|
|
10425
10423
|
{
|
|
10426
10424
|
asChild: !0,
|
|
10427
10425
|
disableOutsidePointerEvents: !1,
|
|
@@ -11066,7 +11064,7 @@ function _v({
|
|
|
11066
11064
|
}
|
|
11067
11065
|
);
|
|
11068
11066
|
}
|
|
11069
|
-
function
|
|
11067
|
+
function Mo({
|
|
11070
11068
|
className: e,
|
|
11071
11069
|
size: t = "default",
|
|
11072
11070
|
...n
|
|
@@ -11084,7 +11082,7 @@ function Oo({
|
|
|
11084
11082
|
}
|
|
11085
11083
|
);
|
|
11086
11084
|
}
|
|
11087
|
-
function
|
|
11085
|
+
function Oo({
|
|
11088
11086
|
className: e,
|
|
11089
11087
|
...t
|
|
11090
11088
|
}) {
|
|
@@ -11097,7 +11095,7 @@ function Lo({
|
|
|
11097
11095
|
}
|
|
11098
11096
|
);
|
|
11099
11097
|
}
|
|
11100
|
-
function
|
|
11098
|
+
function Lo({
|
|
11101
11099
|
className: e,
|
|
11102
11100
|
...t
|
|
11103
11101
|
}) {
|
|
@@ -11284,17 +11282,17 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11284
11282
|
calendar: cd,
|
|
11285
11283
|
"check-circle-2": Es,
|
|
11286
11284
|
"chevron-left": fd,
|
|
11287
|
-
"chevron-right":
|
|
11285
|
+
"chevron-right": Do,
|
|
11288
11286
|
clock: Ed,
|
|
11289
11287
|
"credit-card": Td,
|
|
11290
11288
|
"external-link": Ad,
|
|
11291
11289
|
"help-circle": ks,
|
|
11292
11290
|
info: Nn,
|
|
11293
|
-
"loader-2":
|
|
11294
|
-
mail:
|
|
11291
|
+
"loader-2": zo,
|
|
11292
|
+
mail: vo,
|
|
11295
11293
|
"map-pin": zd,
|
|
11296
11294
|
"message-circle": Ns,
|
|
11297
|
-
"message-square":
|
|
11295
|
+
"message-square": $o,
|
|
11298
11296
|
package: Wd,
|
|
11299
11297
|
phone: jd,
|
|
11300
11298
|
search: Kd,
|
|
@@ -11305,7 +11303,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11305
11303
|
"x-circle": wd,
|
|
11306
11304
|
"alert-circle": Cs,
|
|
11307
11305
|
"book-open": rd
|
|
11308
|
-
},
|
|
11306
|
+
}, ls = {
|
|
11309
11307
|
0: "gap-0",
|
|
11310
11308
|
1: "gap-1",
|
|
11311
11309
|
2: "gap-2",
|
|
@@ -11320,7 +11318,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11320
11318
|
default: "text-foreground",
|
|
11321
11319
|
muted: "text-muted-foreground",
|
|
11322
11320
|
destructive: "text-destructive"
|
|
11323
|
-
}, Dc = (e) => typeof e == "number" ?
|
|
11321
|
+
}, Dc = (e) => typeof e == "number" ? ls[String(e)] ?? "gap-2" : typeof e == "string" ? ls[e.trim()] ?? "gap-2" : "gap-2", jv = ({ children: e, className: t, onClick: n }) => /* @__PURE__ */ f(
|
|
11324
11322
|
Bt,
|
|
11325
11323
|
{
|
|
11326
11324
|
className: t,
|
|
@@ -11440,9 +11438,9 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11440
11438
|
return /* @__PURE__ */ f(kv, { value: o, onValueChange: r, className: n, children: e });
|
|
11441
11439
|
}, ib = ({ children: e, className: t }) => /* @__PURE__ */ f(Rv, { className: t, children: e }), cb = ({ children: e, value: t, className: n }) => /* @__PURE__ */ f(Tv, { className: n, value: t, children: e }), lb = ({ children: e, value: t, className: n }) => /* @__PURE__ */ f(Pv, { className: n, value: t, children: e }), db = ({ children: e, className: t }) => /* @__PURE__ */ f(Av, { className: t, children: e }), ub = ({ src: e, alt: t, className: n }) => {
|
|
11442
11440
|
var o;
|
|
11443
|
-
return /* @__PURE__ */ q(
|
|
11444
|
-
/* @__PURE__ */ f(
|
|
11445
|
-
/* @__PURE__ */ f(
|
|
11441
|
+
return /* @__PURE__ */ q(Mo, { className: n, children: [
|
|
11442
|
+
/* @__PURE__ */ f(Oo, { src: e, alt: t }),
|
|
11443
|
+
/* @__PURE__ */ f(Lo, { children: ((o = t == null ? void 0 : t.charAt(0)) == null ? void 0 : o.toUpperCase()) || "?" })
|
|
11446
11444
|
] });
|
|
11447
11445
|
}, fb = ({ width: e, height: t, className: n }) => /* @__PURE__ */ f(
|
|
11448
11446
|
Iv,
|
|
@@ -11480,7 +11478,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11480
11478
|
children: e
|
|
11481
11479
|
}
|
|
11482
11480
|
), bb = ({ children: e, className: t }) => /* @__PURE__ */ q(Wv, { className: X("flex items-center gap-1 cursor-pointer text-sm font-medium [&[data-state=open]>svg]:rotate-90", t), children: [
|
|
11483
|
-
/* @__PURE__ */ f(
|
|
11481
|
+
/* @__PURE__ */ f(Do, { className: "size-4 shrink-0 transition-transform duration-200" }),
|
|
11484
11482
|
e
|
|
11485
11483
|
] }), yb = ({ children: e, className: t }) => /* @__PURE__ */ f(Uv, { className: t, children: e }), wb = ({ children: e, className: t, tone: n }) => /* @__PURE__ */ f("p", { className: X("text-sm", Lc[n] ?? "", t), children: e }), xb = ({ children: e, className: t, level: n }) => {
|
|
11486
11484
|
const o = `h${n || "2"}`;
|
|
@@ -11517,7 +11515,7 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11517
11515
|
t ? /* @__PURE__ */ f("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
11518
11516
|
n ? /* @__PURE__ */ f("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(n) }) : null
|
|
11519
11517
|
] }),
|
|
11520
|
-
/* @__PURE__ */ f(
|
|
11518
|
+
/* @__PURE__ */ f(Do, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
|
|
11521
11519
|
]
|
|
11522
11520
|
}
|
|
11523
11521
|
);
|
|
@@ -11561,8 +11559,8 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11561
11559
|
"ui-collapsible": vb,
|
|
11562
11560
|
"ui-collapsible-trigger": bb,
|
|
11563
11561
|
"ui-collapsible-content": yb
|
|
11564
|
-
}),
|
|
11565
|
-
const n = t ? `${t.replace(/\/$/, "")}${
|
|
11562
|
+
}), ds = "/api/ecommerce", zc = async (e, t) => {
|
|
11563
|
+
const n = t ? `${t.replace(/\/$/, "")}${ds}` : ds, o = await fetch(n, {
|
|
11566
11564
|
method: "POST",
|
|
11567
11565
|
headers: { "Content-Type": "application/json" },
|
|
11568
11566
|
body: JSON.stringify(e)
|
|
@@ -11575,11 +11573,11 @@ const Dt = (e) => e == null ? void 0 : e === !0 || e === "true", Oc = {
|
|
|
11575
11573
|
/* @__PURE__ */ f("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ f("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)" }) }),
|
|
11576
11574
|
/* @__PURE__ */ f("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ f("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z", fill: "rgb(15,13,25)" }) }),
|
|
11577
11575
|
/* @__PURE__ */ f("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ f("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", fill: "rgb(252,248,161)" }) })
|
|
11578
|
-
] }),
|
|
11579
|
-
if (typeof document > "u" || document.getElementById(
|
|
11576
|
+
] }), us = "stackable-dev-badge-styles", Ab = () => {
|
|
11577
|
+
if (typeof document > "u" || document.getElementById(us))
|
|
11580
11578
|
return;
|
|
11581
11579
|
const e = document.createElement("style");
|
|
11582
|
-
e.id =
|
|
11580
|
+
e.id = us, e.textContent = `
|
|
11583
11581
|
@keyframes stackable-icon-wiggle {
|
|
11584
11582
|
0% { transform: rotate(0deg); }
|
|
11585
11583
|
70% { transform: rotate(200deg); }
|
|
@@ -12333,7 +12331,7 @@ const Hb = ({ ...e }) => {
|
|
|
12333
12331
|
info: /* @__PURE__ */ f(Nn, { className: "size-4" }),
|
|
12334
12332
|
warning: /* @__PURE__ */ f(eu, { className: "size-4" }),
|
|
12335
12333
|
error: /* @__PURE__ */ f(Hd, { className: "size-4" }),
|
|
12336
|
-
loading: /* @__PURE__ */ f(
|
|
12334
|
+
loading: /* @__PURE__ */ f(zo, { className: "size-4 animate-spin" })
|
|
12337
12335
|
},
|
|
12338
12336
|
style: {
|
|
12339
12337
|
"--normal-bg": "var(--popover)",
|
|
@@ -12350,7 +12348,7 @@ const Hb = ({ ...e }) => {
|
|
|
12350
12348
|
] }), Ub = {
|
|
12351
12349
|
airplay: ed,
|
|
12352
12350
|
"message-circle": Ns,
|
|
12353
|
-
"message-square":
|
|
12351
|
+
"message-square": $o,
|
|
12354
12352
|
headphones: Id,
|
|
12355
12353
|
"help-circle": ks,
|
|
12356
12354
|
bot: ad,
|
|
@@ -12462,20 +12460,20 @@ const Hb = ({ ...e }) => {
|
|
|
12462
12460
|
var c, d;
|
|
12463
12461
|
const { customer: r, loading: s, error: a } = Kb(e, n);
|
|
12464
12462
|
if (s)
|
|
12465
|
-
return /* @__PURE__ */ f(Bt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ f(Ht, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ f(
|
|
12463
|
+
return /* @__PURE__ */ f(Bt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ f(Ht, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ f(zo, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
12466
12464
|
if (a || !r) {
|
|
12467
12465
|
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", l = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
12468
12466
|
return /* @__PURE__ */ f(Bt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ q(Ht, { className: "p-4 pb-0 pt-2", children: [
|
|
12469
12467
|
/* @__PURE__ */ q("div", { className: "flex flex-col items-center", children: [
|
|
12470
|
-
/* @__PURE__ */ q(
|
|
12468
|
+
/* @__PURE__ */ q(Mo, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
12471
12469
|
/* @__PURE__ */ f(
|
|
12472
|
-
|
|
12470
|
+
Oo,
|
|
12473
12471
|
{
|
|
12474
12472
|
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(u)}&background=7c3aed&color=fff&size=128`,
|
|
12475
12473
|
alt: u
|
|
12476
12474
|
}
|
|
12477
12475
|
),
|
|
12478
|
-
/* @__PURE__ */ f(
|
|
12476
|
+
/* @__PURE__ */ f(Lo, { className: "text-lg", children: l })
|
|
12479
12477
|
] }),
|
|
12480
12478
|
/* @__PURE__ */ q("div", { className: "text-center w-full space-y-1", children: [
|
|
12481
12479
|
/* @__PURE__ */ q("div", { children: [
|
|
@@ -12483,7 +12481,7 @@ const Hb = ({ ...e }) => {
|
|
|
12483
12481
|
/* @__PURE__ */ f("h2", { className: "text-lg font-bold text-foreground leading-tight", children: u })
|
|
12484
12482
|
] }),
|
|
12485
12483
|
t && /* @__PURE__ */ f("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
12486
|
-
/* @__PURE__ */ f(
|
|
12484
|
+
/* @__PURE__ */ f(vo, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
12487
12485
|
/* @__PURE__ */ f("span", { className: "truncate max-w-[200px]", children: t })
|
|
12488
12486
|
] }) }),
|
|
12489
12487
|
/* @__PURE__ */ f("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: o })
|
|
@@ -12494,15 +12492,15 @@ const Hb = ({ ...e }) => {
|
|
|
12494
12492
|
}
|
|
12495
12493
|
const i = `${((c = r.first_name) == null ? void 0 : c[0]) || ""}${((d = r.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
12496
12494
|
return /* @__PURE__ */ f(Bt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ f(Ht, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ q("div", { className: "flex flex-col items-center", children: [
|
|
12497
|
-
/* @__PURE__ */ q(
|
|
12495
|
+
/* @__PURE__ */ q(Mo, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
12498
12496
|
/* @__PURE__ */ f(
|
|
12499
|
-
|
|
12497
|
+
Oo,
|
|
12500
12498
|
{
|
|
12501
12499
|
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(r.name)}&background=7c3aed&color=fff&size=128`,
|
|
12502
12500
|
alt: r.name
|
|
12503
12501
|
}
|
|
12504
12502
|
),
|
|
12505
|
-
/* @__PURE__ */ f(
|
|
12503
|
+
/* @__PURE__ */ f(Lo, { className: "text-lg", children: i })
|
|
12506
12504
|
] }),
|
|
12507
12505
|
/* @__PURE__ */ q("div", { className: "text-center w-full space-y-1", children: [
|
|
12508
12506
|
/* @__PURE__ */ q("div", { children: [
|
|
@@ -12510,7 +12508,7 @@ const Hb = ({ ...e }) => {
|
|
|
12510
12508
|
/* @__PURE__ */ f("h2", { className: "text-lg font-bold text-foreground leading-tight", children: r.name })
|
|
12511
12509
|
] }),
|
|
12512
12510
|
/* @__PURE__ */ f("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
12513
|
-
/* @__PURE__ */ f(
|
|
12511
|
+
/* @__PURE__ */ f(vo, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
12514
12512
|
/* @__PURE__ */ f("span", { className: "truncate max-w-[200px]", children: r.email })
|
|
12515
12513
|
] }) }),
|
|
12516
12514
|
/* @__PURE__ */ f("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: o })
|
|
@@ -12734,7 +12732,7 @@ const Hb = ({ ...e }) => {
|
|
|
12734
12732
|
h === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
12735
12733
|
),
|
|
12736
12734
|
title: "Conversations",
|
|
12737
|
-
children: /* @__PURE__ */ f(
|
|
12735
|
+
children: /* @__PURE__ */ f($o, { className: "h-4 w-4" })
|
|
12738
12736
|
}
|
|
12739
12737
|
),
|
|
12740
12738
|
/* @__PURE__ */ f(
|
|
@@ -12856,20 +12854,20 @@ const Hb = ({ ...e }) => {
|
|
|
12856
12854
|
] })
|
|
12857
12855
|
] })
|
|
12858
12856
|
] });
|
|
12859
|
-
}, Qb = "ze-snippet",
|
|
12857
|
+
}, Qb = "ze-snippet", fs = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, e0 = (e, t = {}) => {
|
|
12860
12858
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
12861
12859
|
return Promise.resolve();
|
|
12862
12860
|
const { autorender: n = !1, scriptId: o = Qb } = t;
|
|
12863
12861
|
window.zEMessenger = { autorender: n };
|
|
12864
12862
|
const r = document.getElementById(o);
|
|
12865
12863
|
if (r) {
|
|
12866
|
-
if (r.getAttribute("src") ===
|
|
12864
|
+
if (r.getAttribute("src") === fs(e))
|
|
12867
12865
|
return Promise.resolve();
|
|
12868
12866
|
r.remove();
|
|
12869
12867
|
}
|
|
12870
12868
|
return new Promise((s, a) => {
|
|
12871
12869
|
const i = document.createElement("script");
|
|
12872
|
-
i.id = o, i.src =
|
|
12870
|
+
i.id = o, i.src = fs(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
12873
12871
|
});
|
|
12874
12872
|
}, l0 = ({ config: e }) => (ce(() => {
|
|
12875
12873
|
e.snippetKey && e0(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|