buildgrid-ui 1.15.22 → 1.15.24
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/buildgrid-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
|
-
import F, { forwardRef as lr, createElement as Da, useLayoutEffect as $g, useState as pe, useEffect as
|
|
2
|
+
import F, { forwardRef as lr, createElement as Da, useLayoutEffect as $g, useState as pe, useEffect as Te, useRef as Ye, useImperativeHandle as Ci, isValidElement as ta, useMemo as Et, useCallback as he, useReducer as Fg, Fragment as Ll } from "react";
|
|
3
3
|
import * as xo from "react-dom";
|
|
4
4
|
import Si from "react-dom";
|
|
5
5
|
function zl(e) {
|
|
@@ -5565,7 +5565,7 @@ const wy = [
|
|
|
5565
5565
|
const Sy = [
|
|
5566
5566
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
5567
5567
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
5568
|
-
],
|
|
5568
|
+
], Ze = de("x", Sy), vc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xc = Ei, Rt = (e, t) => (n) => {
|
|
5569
5569
|
var r;
|
|
5570
5570
|
if (t?.variants == null) return xc(e, n?.class, n?.className);
|
|
5571
5571
|
const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((u) => {
|
|
@@ -5628,7 +5628,7 @@ function ky({
|
|
|
5628
5628
|
"Search: ",
|
|
5629
5629
|
e,
|
|
5630
5630
|
/* @__PURE__ */ s.jsx(
|
|
5631
|
-
|
|
5631
|
+
Ze,
|
|
5632
5632
|
{
|
|
5633
5633
|
className: "h-3 w-3 cursor-pointer hover:text-destructive",
|
|
5634
5634
|
onClick: a
|
|
@@ -5643,7 +5643,7 @@ function ky({
|
|
|
5643
5643
|
": ",
|
|
5644
5644
|
g?.label || p,
|
|
5645
5645
|
/* @__PURE__ */ s.jsx(
|
|
5646
|
-
|
|
5646
|
+
Ze,
|
|
5647
5647
|
{
|
|
5648
5648
|
className: "h-3 w-3 cursor-pointer hover:text-destructive",
|
|
5649
5649
|
onClick: () => i(u)
|
|
@@ -5658,7 +5658,7 @@ function ky({
|
|
|
5658
5658
|
" ",
|
|
5659
5659
|
n.direction === "asc" ? "↑" : "↓",
|
|
5660
5660
|
/* @__PURE__ */ s.jsx(
|
|
5661
|
-
|
|
5661
|
+
Ze,
|
|
5662
5662
|
{
|
|
5663
5663
|
className: "h-3 w-3 cursor-pointer hover:text-destructive",
|
|
5664
5664
|
onClick: c
|
|
@@ -5737,7 +5737,7 @@ function Ry(...e) {
|
|
|
5737
5737
|
}
|
|
5738
5738
|
var je = globalThis?.document ? d.useLayoutEffect : () => {
|
|
5739
5739
|
}, jy = d[" useInsertionEffect ".trim().toString()] || je;
|
|
5740
|
-
function
|
|
5740
|
+
function _e({
|
|
5741
5741
|
prop: e,
|
|
5742
5742
|
defaultProp: t,
|
|
5743
5743
|
onChange: n = () => {
|
|
@@ -6762,7 +6762,7 @@ function Co() {
|
|
|
6762
6762
|
function On(e) {
|
|
6763
6763
|
return Cd(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6764
6764
|
}
|
|
6765
|
-
function
|
|
6765
|
+
function Ge(e) {
|
|
6766
6766
|
var t;
|
|
6767
6767
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6768
6768
|
}
|
|
@@ -6771,16 +6771,16 @@ function wt(e) {
|
|
|
6771
6771
|
return (t = (Cd(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6772
6772
|
}
|
|
6773
6773
|
function Cd(e) {
|
|
6774
|
-
return Co() ? e instanceof Node || e instanceof
|
|
6774
|
+
return Co() ? e instanceof Node || e instanceof Ge(e).Node : !1;
|
|
6775
6775
|
}
|
|
6776
6776
|
function ct(e) {
|
|
6777
|
-
return Co() ? e instanceof Element || e instanceof
|
|
6777
|
+
return Co() ? e instanceof Element || e instanceof Ge(e).Element : !1;
|
|
6778
6778
|
}
|
|
6779
6779
|
function yt(e) {
|
|
6780
|
-
return Co() ? e instanceof HTMLElement || e instanceof
|
|
6780
|
+
return Co() ? e instanceof HTMLElement || e instanceof Ge(e).HTMLElement : !1;
|
|
6781
6781
|
}
|
|
6782
6782
|
function _c(e) {
|
|
6783
|
-
return !Co() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
6783
|
+
return !Co() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ge(e).ShadowRoot;
|
|
6784
6784
|
}
|
|
6785
6785
|
const gw = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
6786
6786
|
function pr(e) {
|
|
@@ -6830,7 +6830,7 @@ function jn(e) {
|
|
|
6830
6830
|
return Ew.has(On(e));
|
|
6831
6831
|
}
|
|
6832
6832
|
function lt(e) {
|
|
6833
|
-
return
|
|
6833
|
+
return Ge(e).getComputedStyle(e);
|
|
6834
6834
|
}
|
|
6835
6835
|
function Eo(e) {
|
|
6836
6836
|
return ct(e) ? {
|
|
@@ -6860,7 +6860,7 @@ function Sd(e) {
|
|
|
6860
6860
|
function or(e, t, n) {
|
|
6861
6861
|
var r;
|
|
6862
6862
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6863
|
-
const o = Sd(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i =
|
|
6863
|
+
const o = Sd(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Ge(o);
|
|
6864
6864
|
if (a) {
|
|
6865
6865
|
const c = Ha(i);
|
|
6866
6866
|
return t.concat(i, i.visualViewport || [], pr(o) ? o : [], c && n ? or(c) : []);
|
|
@@ -6900,14 +6900,14 @@ function En(e) {
|
|
|
6900
6900
|
}
|
|
6901
6901
|
const kw = /* @__PURE__ */ xt(0);
|
|
6902
6902
|
function kd(e) {
|
|
6903
|
-
const t =
|
|
6903
|
+
const t = Ge(e);
|
|
6904
6904
|
return !Oi() || !t.visualViewport ? kw : {
|
|
6905
6905
|
x: t.visualViewport.offsetLeft,
|
|
6906
6906
|
y: t.visualViewport.offsetTop
|
|
6907
6907
|
};
|
|
6908
6908
|
}
|
|
6909
6909
|
function Nw(e, t, n) {
|
|
6910
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
6910
|
+
return t === void 0 && (t = !1), !n || t && n !== Ge(e) ? !1 : t;
|
|
6911
6911
|
}
|
|
6912
6912
|
function rn(e, t, n, r) {
|
|
6913
6913
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -6917,11 +6917,11 @@ function rn(e, t, n, r) {
|
|
|
6917
6917
|
const c = Nw(a, n, r) ? kd(a) : xt(0);
|
|
6918
6918
|
let l = (o.left + c.x) / i.x, u = (o.top + c.y) / i.y, p = o.width / i.x, f = o.height / i.y;
|
|
6919
6919
|
if (a) {
|
|
6920
|
-
const g =
|
|
6920
|
+
const g = Ge(a), m = r && ct(r) ? Ge(r) : r;
|
|
6921
6921
|
let v = g, h = Ha(v);
|
|
6922
6922
|
for (; h && r && m !== v; ) {
|
|
6923
6923
|
const x = En(h), b = h.getBoundingClientRect(), y = lt(h), w = b.left + (h.clientLeft + parseFloat(y.paddingLeft)) * x.x, S = b.top + (h.clientTop + parseFloat(y.paddingTop)) * x.y;
|
|
6924
|
-
l *= x.x, u *= x.y, p *= x.x, f *= x.y, l += w, u += S, v =
|
|
6924
|
+
l *= x.x, u *= x.y, p *= x.x, f *= x.y, l += w, u += S, v = Ge(h), h = Ha(v);
|
|
6925
6925
|
}
|
|
6926
6926
|
}
|
|
6927
6927
|
return to({
|
|
@@ -6988,7 +6988,7 @@ function Pw(e) {
|
|
|
6988
6988
|
};
|
|
6989
6989
|
}
|
|
6990
6990
|
function Tw(e, t) {
|
|
6991
|
-
const n =
|
|
6991
|
+
const n = Ge(e), r = wt(e), o = n.visualViewport;
|
|
6992
6992
|
let a = r.clientWidth, i = r.clientHeight, c = 0, l = 0;
|
|
6993
6993
|
if (o) {
|
|
6994
6994
|
a = o.width, i = o.height;
|
|
@@ -7112,7 +7112,7 @@ function Ac(e, t) {
|
|
|
7112
7112
|
return wt(e) === n && (n = n.ownerDocument.body), n;
|
|
7113
7113
|
}
|
|
7114
7114
|
function jd(e, t) {
|
|
7115
|
-
const n =
|
|
7115
|
+
const n = Ge(e);
|
|
7116
7116
|
if (So(e))
|
|
7117
7117
|
return n;
|
|
7118
7118
|
if (!yt(e)) {
|
|
@@ -7768,7 +7768,7 @@ var S0 = d.forwardRef((e, t) => {
|
|
|
7768
7768
|
onEntryFocus: u,
|
|
7769
7769
|
preventScrollOnEntryFocus: p = !1,
|
|
7770
7770
|
...f
|
|
7771
|
-
} = e, g = d.useRef(null), m = ae(t, g), v = jt(a), [h, x] =
|
|
7771
|
+
} = e, g = d.useRef(null), m = ae(t, g), v = jt(a), [h, x] = _e({
|
|
7772
7772
|
prop: i,
|
|
7773
7773
|
defaultProp: c ?? null,
|
|
7774
7774
|
onChange: l,
|
|
@@ -8516,14 +8516,14 @@ var Vi = "MenuPortal", [w1, au] = pn(Vi, {
|
|
|
8516
8516
|
return /* @__PURE__ */ s.jsx(w1, { scope: t, forceMount: n, children: /* @__PURE__ */ s.jsx(Me, { present: n || a.open, children: /* @__PURE__ */ s.jsx(gr, { asChild: !0, container: o, children: r }) }) });
|
|
8517
8517
|
};
|
|
8518
8518
|
iu.displayName = Vi;
|
|
8519
|
-
var
|
|
8519
|
+
var Qe = "MenuContent", [C1, Wi] = pn(Qe), su = d.forwardRef(
|
|
8520
8520
|
(e, t) => {
|
|
8521
|
-
const n = au(
|
|
8521
|
+
const n = au(Qe, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ht(Qe, e.__scopeMenu), i = wr(Qe, e.__scopeMenu);
|
|
8522
8522
|
return /* @__PURE__ */ s.jsx(ar.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(Me, { present: r || a.open, children: /* @__PURE__ */ s.jsx(ar.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ s.jsx(S1, { ...o, ref: t }) : /* @__PURE__ */ s.jsx(E1, { ...o, ref: t }) }) }) });
|
|
8523
8523
|
}
|
|
8524
8524
|
), S1 = d.forwardRef(
|
|
8525
8525
|
(e, t) => {
|
|
8526
|
-
const n = Ht(
|
|
8526
|
+
const n = Ht(Qe, e.__scopeMenu), r = d.useRef(null), o = ae(t, r);
|
|
8527
8527
|
return d.useEffect(() => {
|
|
8528
8528
|
const a = r.current;
|
|
8529
8529
|
if (a) return Po(a);
|
|
@@ -8545,7 +8545,7 @@ var Ze = "MenuContent", [C1, Wi] = pn(Ze), su = d.forwardRef(
|
|
|
8545
8545
|
);
|
|
8546
8546
|
}
|
|
8547
8547
|
), E1 = d.forwardRef((e, t) => {
|
|
8548
|
-
const n = Ht(
|
|
8548
|
+
const n = Ht(Qe, e.__scopeMenu);
|
|
8549
8549
|
return /* @__PURE__ */ s.jsx(
|
|
8550
8550
|
Hi,
|
|
8551
8551
|
{
|
|
@@ -8574,7 +8574,7 @@ var Ze = "MenuContent", [C1, Wi] = pn(Ze), su = d.forwardRef(
|
|
|
8574
8574
|
onDismiss: m,
|
|
8575
8575
|
disableOutsideScroll: v,
|
|
8576
8576
|
...h
|
|
8577
|
-
} = e, x = Ht(
|
|
8577
|
+
} = e, x = Ht(Qe, n), b = wr(Qe, n), y = yr(n), w = nu(n), S = v1(n), [C, P] = d.useState(null), N = d.useRef(null), R = ae(t, N, x.onContentChange), A = d.useRef(0), z = d.useRef(""), H = d.useRef(0), Q = d.useRef(null), te = d.useRef("right"), Y = d.useRef(0), J = v ? xr : d.Fragment, U = v ? { as: k1, allowPinchZoom: !0 } : void 0, X = (D) => {
|
|
8578
8578
|
const E = z.current + D, O = S().filter((j) => !j.disabled), k = document.activeElement, T = O.find((j) => j.ref.current === k)?.textValue, M = O.map((j) => j.textValue), $ = $1(M, E, T), B = O.find((j) => j.textValue === $)?.ref.current;
|
|
8579
8579
|
(function j(V) {
|
|
8580
8580
|
z.current = V, window.clearTimeout(A.current), V !== "" && (A.current = window.setTimeout(() => j(""), 1e3));
|
|
@@ -8688,7 +8688,7 @@ var Ze = "MenuContent", [C1, Wi] = pn(Ze), su = d.forwardRef(
|
|
|
8688
8688
|
);
|
|
8689
8689
|
}
|
|
8690
8690
|
);
|
|
8691
|
-
su.displayName =
|
|
8691
|
+
su.displayName = Qe;
|
|
8692
8692
|
var N1 = "MenuGroup", Ui = d.forwardRef(
|
|
8693
8693
|
(e, t) => {
|
|
8694
8694
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -8965,7 +8965,7 @@ var Kn = "MenuSubTrigger", wu = d.forwardRef(
|
|
|
8965
8965
|
wu.displayName = Kn;
|
|
8966
8966
|
var Cu = "MenuSubContent", Su = d.forwardRef(
|
|
8967
8967
|
(e, t) => {
|
|
8968
|
-
const n = au(
|
|
8968
|
+
const n = au(Qe, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = Ht(Qe, e.__scopeMenu), i = wr(Qe, e.__scopeMenu), c = bu(Cu, e.__scopeMenu), l = d.useRef(null), u = ae(t, l);
|
|
8969
8969
|
return /* @__PURE__ */ s.jsx(ar.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(Me, { present: r || a.open, children: /* @__PURE__ */ s.jsx(ar.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(
|
|
8970
8970
|
Hi,
|
|
8971
8971
|
{
|
|
@@ -9052,7 +9052,7 @@ var z1 = ou, B1 = Bi, V1 = iu, W1 = su, H1 = Ui, U1 = cu, Y1 = _o, G1 = du, q1 =
|
|
|
9052
9052
|
defaultOpen: a,
|
|
9053
9053
|
onOpenChange: i,
|
|
9054
9054
|
modal: c = !0
|
|
9055
|
-
} = e, l = Fe(t), u = d.useRef(null), [p, f] =
|
|
9055
|
+
} = e, l = Fe(t), u = d.useRef(null), [p, f] = _e({
|
|
9056
9056
|
prop: o,
|
|
9057
9057
|
defaultProp: a ?? !1,
|
|
9058
9058
|
onChange: i,
|
|
@@ -9191,7 +9191,7 @@ var fC = "DropdownMenuArrow", mC = d.forwardRef(
|
|
|
9191
9191
|
);
|
|
9192
9192
|
mC.displayName = fC;
|
|
9193
9193
|
var hC = (e) => {
|
|
9194
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: a } = e, i = Fe(t), [c, l] =
|
|
9194
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: a } = e, i = Fe(t), [c, l] = _e({
|
|
9195
9195
|
prop: r,
|
|
9196
9196
|
defaultProp: a ?? !1,
|
|
9197
9197
|
onChange: o,
|
|
@@ -9427,12 +9427,12 @@ var rp = np, MC = [" ", "Enter", "ArrowUp", "ArrowDown"], AC = [" ", "Enter"], o
|
|
|
9427
9427
|
disabled: g,
|
|
9428
9428
|
required: m,
|
|
9429
9429
|
form: v
|
|
9430
|
-
} = e, h = Io(t), [x, b] = d.useState(null), [y, w] = d.useState(null), [S, C] = d.useState(!1), P = jt(u), [N, R] =
|
|
9430
|
+
} = e, h = Io(t), [x, b] = d.useState(null), [y, w] = d.useState(null), [S, C] = d.useState(!1), P = jt(u), [N, R] = _e({
|
|
9431
9431
|
prop: r,
|
|
9432
9432
|
defaultProp: o ?? !1,
|
|
9433
9433
|
onChange: a,
|
|
9434
9434
|
caller: on
|
|
9435
|
-
}), [A, z] =
|
|
9435
|
+
}), [A, z] = _e({
|
|
9436
9436
|
prop: i,
|
|
9437
9437
|
defaultProp: c,
|
|
9438
9438
|
onChange: l,
|
|
@@ -9582,7 +9582,7 @@ var an = "SelectContent", dp = d.forwardRef(
|
|
|
9582
9582
|
}
|
|
9583
9583
|
);
|
|
9584
9584
|
dp.displayName = an;
|
|
9585
|
-
var
|
|
9585
|
+
var it = 10, [up, Yt] = Fn(an), LC = "SelectContentImpl", zC = /* @__PURE__ */ $t("SelectContent.RemoveScroll"), pp = d.forwardRef(
|
|
9586
9586
|
(e, t) => {
|
|
9587
9587
|
const {
|
|
9588
9588
|
__scopeSelect: n,
|
|
@@ -9756,24 +9756,24 @@ var BC = "SelectItemAlignedPosition", fp = d.forwardRef((e, t) => {
|
|
|
9756
9756
|
if (a.trigger && a.valueNode && c && u && h && x && b) {
|
|
9757
9757
|
const N = a.trigger.getBoundingClientRect(), R = u.getBoundingClientRect(), A = a.valueNode.getBoundingClientRect(), z = b.getBoundingClientRect();
|
|
9758
9758
|
if (a.dir !== "rtl") {
|
|
9759
|
-
const oe = z.left - R.left, L = A.left - oe, fe = N.left - L, Ce = N.width + fe, $e = Math.max(Ce, R.width), Be = window.innerWidth -
|
|
9760
|
-
|
|
9759
|
+
const oe = z.left - R.left, L = A.left - oe, fe = N.left - L, Ce = N.width + fe, $e = Math.max(Ce, R.width), Be = window.innerWidth - it, Z = ao(L, [
|
|
9760
|
+
it,
|
|
9761
9761
|
// Prevents the content from going off the starting edge of the
|
|
9762
9762
|
// viewport. It may still go off the ending edge, but this can be
|
|
9763
9763
|
// controlled by the user since they may want to manage overflow in a
|
|
9764
9764
|
// specific way.
|
|
9765
9765
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
9766
|
-
Math.max(
|
|
9766
|
+
Math.max(it, Be - $e)
|
|
9767
9767
|
]);
|
|
9768
9768
|
c.style.minWidth = Ce + "px", c.style.left = Z + "px";
|
|
9769
9769
|
} else {
|
|
9770
|
-
const oe = R.right - z.right, L = window.innerWidth - A.right - oe, fe = window.innerWidth - N.right - L, Ce = N.width + fe, $e = Math.max(Ce, R.width), Be = window.innerWidth -
|
|
9771
|
-
|
|
9772
|
-
Math.max(
|
|
9770
|
+
const oe = R.right - z.right, L = window.innerWidth - A.right - oe, fe = window.innerWidth - N.right - L, Ce = N.width + fe, $e = Math.max(Ce, R.width), Be = window.innerWidth - it, Z = ao(L, [
|
|
9771
|
+
it,
|
|
9772
|
+
Math.max(it, Be - $e)
|
|
9773
9773
|
]);
|
|
9774
9774
|
c.style.minWidth = Ce + "px", c.style.right = Z + "px";
|
|
9775
9775
|
}
|
|
9776
|
-
const H = g(), Q = window.innerHeight -
|
|
9776
|
+
const H = g(), Q = window.innerHeight - it * 2, te = h.scrollHeight, Y = window.getComputedStyle(u), J = parseInt(Y.borderTopWidth, 10), U = parseInt(Y.paddingTop, 10), X = parseInt(Y.borderBottomWidth, 10), I = parseInt(Y.paddingBottom, 10), D = J + U + te + I + X, E = Math.min(x.offsetHeight * 5, D), O = window.getComputedStyle(h), k = parseInt(O.paddingTop, 10), T = parseInt(O.paddingBottom, 10), M = N.top + N.height / 2 - it, $ = Q - M, B = x.offsetHeight / 2, j = x.offsetTop + B, V = J + U + j, q = D - V;
|
|
9777
9777
|
if (V <= M) {
|
|
9778
9778
|
const oe = H.length > 0 && x === H[H.length - 1].ref.current;
|
|
9779
9779
|
c.style.bottom = "0px";
|
|
@@ -9793,7 +9793,7 @@ var BC = "SelectItemAlignedPosition", fp = d.forwardRef((e, t) => {
|
|
|
9793
9793
|
) + q;
|
|
9794
9794
|
c.style.height = fe + "px", h.scrollTop = V - M + h.offsetTop;
|
|
9795
9795
|
}
|
|
9796
|
-
c.style.margin = `${
|
|
9796
|
+
c.style.margin = `${it}px 0`, c.style.minHeight = E + "px", c.style.maxHeight = Q + "px", r?.(), requestAnimationFrame(() => m.current = !0);
|
|
9797
9797
|
}
|
|
9798
9798
|
}, [
|
|
9799
9799
|
g,
|
|
@@ -9860,7 +9860,7 @@ var VC = "SelectPopperPosition", Ka = d.forwardRef((e, t) => {
|
|
|
9860
9860
|
const {
|
|
9861
9861
|
__scopeSelect: n,
|
|
9862
9862
|
align: r = "start",
|
|
9863
|
-
collisionPadding: o =
|
|
9863
|
+
collisionPadding: o = it,
|
|
9864
9864
|
...a
|
|
9865
9865
|
} = e, i = Io(n);
|
|
9866
9866
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -9923,7 +9923,7 @@ var [WC, Ki] = Fn(an, {}), Xa = "SelectViewport", mp = d.forwardRef(
|
|
|
9923
9923
|
if (g?.current && f) {
|
|
9924
9924
|
const m = Math.abs(l.current - p.scrollTop);
|
|
9925
9925
|
if (m > 0) {
|
|
9926
|
-
const v = window.innerHeight -
|
|
9926
|
+
const v = window.innerHeight - it * 2, h = parseFloat(f.style.minHeight), x = parseFloat(f.style.height), b = Math.max(h, x);
|
|
9927
9927
|
if (b < v) {
|
|
9928
9928
|
const y = b + m, w = Math.min(v, y), S = y - w;
|
|
9929
9929
|
f.style.height = w + "px", f.style.bottom === "0px" && (p.scrollTop = S > 0 ? S : 0, f.style.justifyContent = "flex-end");
|
|
@@ -10382,7 +10382,7 @@ function pS(e) {
|
|
|
10382
10382
|
value: p = "on",
|
|
10383
10383
|
// @ts-expect-error
|
|
10384
10384
|
internal_do_not_use_render: f
|
|
10385
|
-
} = e, [g, m] =
|
|
10385
|
+
} = e, [g, m] = _e({
|
|
10386
10386
|
prop: n,
|
|
10387
10387
|
defaultProp: o ?? !1,
|
|
10388
10388
|
onChange: l,
|
|
@@ -10692,7 +10692,7 @@ function hS({
|
|
|
10692
10692
|
})
|
|
10693
10693
|
] });
|
|
10694
10694
|
}
|
|
10695
|
-
const
|
|
10695
|
+
const Ke = ({ className: e, repeat: t = 1, ...n }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: Array.from({ length: t ?? 1 }).map((r, o) => /* @__PURE__ */ s.jsx(
|
|
10696
10696
|
"div",
|
|
10697
10697
|
{
|
|
10698
10698
|
className: _(
|
|
@@ -10706,8 +10706,8 @@ const qe = ({ className: e, repeat: t = 1, ...n }) => /* @__PURE__ */ s.jsx(s.Fr
|
|
|
10706
10706
|
)) });
|
|
10707
10707
|
function gS({ columns: e, rows: t = 5 }) {
|
|
10708
10708
|
return /* @__PURE__ */ s.jsx("div", { className: "rounded-md border", children: /* @__PURE__ */ s.jsxs(ji, { children: [
|
|
10709
|
-
/* @__PURE__ */ s.jsx(Pi, { children: /* @__PURE__ */ s.jsx(er, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ s.jsx(Zr, { children: /* @__PURE__ */ s.jsx(
|
|
10710
|
-
/* @__PURE__ */ s.jsx(Ti, { children: Array.from({ length: t }).map((n, r) => /* @__PURE__ */ s.jsx(er, { children: Array.from({ length: e }).map((o, a) => /* @__PURE__ */ s.jsx(tr, { children: /* @__PURE__ */ s.jsx(
|
|
10709
|
+
/* @__PURE__ */ s.jsx(Pi, { children: /* @__PURE__ */ s.jsx(er, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ s.jsx(Zr, { children: /* @__PURE__ */ s.jsx(Ke, { className: "h-4 w-20" }) }, r)) }) }),
|
|
10710
|
+
/* @__PURE__ */ s.jsx(Ti, { children: Array.from({ length: t }).map((n, r) => /* @__PURE__ */ s.jsx(er, { children: Array.from({ length: e }).map((o, a) => /* @__PURE__ */ s.jsx(tr, { children: /* @__PURE__ */ s.jsx(Ke, { className: "h-4 w-full" }) }, a)) }, r)) })
|
|
10711
10711
|
] }) });
|
|
10712
10712
|
}
|
|
10713
10713
|
function vS(e, t, n) {
|
|
@@ -10729,7 +10729,7 @@ var $o = "Collapsible", [xS, Xp] = Pe($o), [bS, ts] = xS($o), Zp = d.forwardRef(
|
|
|
10729
10729
|
disabled: a,
|
|
10730
10730
|
onOpenChange: i,
|
|
10731
10731
|
...c
|
|
10732
|
-
} = e, [l, u] =
|
|
10732
|
+
} = e, [l, u] = _e({
|
|
10733
10733
|
prop: r,
|
|
10734
10734
|
defaultProp: o ?? !1,
|
|
10735
10735
|
onChange: i,
|
|
@@ -10842,7 +10842,7 @@ var [nf, RS] = Fo(dt), [rf, jS] = Fo(
|
|
|
10842
10842
|
},
|
|
10843
10843
|
collapsible: a = !1,
|
|
10844
10844
|
...i
|
|
10845
|
-
} = e, [c, l] =
|
|
10845
|
+
} = e, [c, l] = _e({
|
|
10846
10846
|
prop: n,
|
|
10847
10847
|
defaultProp: r ?? "",
|
|
10848
10848
|
onChange: o,
|
|
@@ -10866,7 +10866,7 @@ var [nf, RS] = Fo(dt), [rf, jS] = Fo(
|
|
|
10866
10866
|
onValueChange: o = () => {
|
|
10867
10867
|
},
|
|
10868
10868
|
...a
|
|
10869
|
-
} = e, [i, c] =
|
|
10869
|
+
} = e, [i, c] = _e({
|
|
10870
10870
|
prop: n,
|
|
10871
10871
|
defaultProp: r ?? [],
|
|
10872
10872
|
onChange: o,
|
|
@@ -11124,7 +11124,7 @@ function ZT({
|
|
|
11124
11124
|
className: i
|
|
11125
11125
|
}) {
|
|
11126
11126
|
const [c, l] = pe(!1), [u, p] = pe(!1), f = zS[e], g = f.icon;
|
|
11127
|
-
|
|
11127
|
+
Te(() => {
|
|
11128
11128
|
const v = setTimeout(() => l(!0), 10);
|
|
11129
11129
|
return () => clearTimeout(v);
|
|
11130
11130
|
}, []);
|
|
@@ -11178,7 +11178,7 @@ function ZT({
|
|
|
11178
11178
|
),
|
|
11179
11179
|
onClick: m,
|
|
11180
11180
|
"aria-label": "Close alert",
|
|
11181
|
-
children: /* @__PURE__ */ s.jsx(
|
|
11181
|
+
children: /* @__PURE__ */ s.jsx(Ze, { className: "h-4 w-4" })
|
|
11182
11182
|
}
|
|
11183
11183
|
)
|
|
11184
11184
|
] })
|
|
@@ -11193,7 +11193,7 @@ var zo = "Dialog", [hf, gf] = Pe(zo), [BS, ut] = hf(zo), vf = (e) => {
|
|
|
11193
11193
|
defaultOpen: o,
|
|
11194
11194
|
onOpenChange: a,
|
|
11195
11195
|
modal: i = !0
|
|
11196
|
-
} = e, c = d.useRef(null), l = d.useRef(null), [u, p] =
|
|
11196
|
+
} = e, c = d.useRef(null), l = d.useRef(null), [u, p] = _e({
|
|
11197
11197
|
prop: r,
|
|
11198
11198
|
defaultProp: o ?? !1,
|
|
11199
11199
|
onChange: a,
|
|
@@ -11600,24 +11600,24 @@ const t_ = lr(function(t, n) {
|
|
|
11600
11600
|
defaultSelectedOption: i
|
|
11601
11601
|
} = t, [c, l] = pe(i?.label || ""), [u, p] = pe([]), [f, g] = pe(!1), [m, v] = pe(-1), [h, x] = pe("down"), [b, y] = pe(
|
|
11602
11602
|
i || null
|
|
11603
|
-
), w =
|
|
11603
|
+
), w = Ye(null), S = Ye(null), C = Ye(null);
|
|
11604
11604
|
Ci(n, () => ({
|
|
11605
11605
|
clearSelection: () => {
|
|
11606
11606
|
y(null), l(""), a(null);
|
|
11607
11607
|
}
|
|
11608
|
-
})),
|
|
11608
|
+
})), Te(() => {
|
|
11609
11609
|
const A = (z) => {
|
|
11610
11610
|
w.current && !w.current.contains(z.target) && g(!1);
|
|
11611
11611
|
};
|
|
11612
11612
|
return document.addEventListener("click", A), () => {
|
|
11613
11613
|
document.removeEventListener("click", A);
|
|
11614
11614
|
};
|
|
11615
|
-
}, []),
|
|
11615
|
+
}, []), Te(() => {
|
|
11616
11616
|
const A = r.filter(
|
|
11617
11617
|
(z) => Xx(z.label, c)
|
|
11618
11618
|
);
|
|
11619
11619
|
p(A), v(-1);
|
|
11620
|
-
}, [c, r]),
|
|
11620
|
+
}, [c, r]), Te(() => {
|
|
11621
11621
|
if (f && S.current) {
|
|
11622
11622
|
const A = S.current.getBoundingClientRect(), z = window.innerHeight - A.bottom, H = A.top, Q = Math.min(u.length * 40, 240);
|
|
11623
11623
|
x(
|
|
@@ -11649,7 +11649,7 @@ const t_ = lr(function(t, n) {
|
|
|
11649
11649
|
break;
|
|
11650
11650
|
}
|
|
11651
11651
|
};
|
|
11652
|
-
return
|
|
11652
|
+
return Te(() => {
|
|
11653
11653
|
f && C.current && m >= 0 && C.current.children[m].scrollIntoView({ block: "nearest" });
|
|
11654
11654
|
}, [m, f]), /* @__PURE__ */ s.jsxs("div", { ref: w, className: "relative w-full", children: [
|
|
11655
11655
|
/* @__PURE__ */ s.jsx(
|
|
@@ -11675,7 +11675,7 @@ const t_ = lr(function(t, n) {
|
|
|
11675
11675
|
onClick: () => {
|
|
11676
11676
|
y(null), l(""), a(null);
|
|
11677
11677
|
},
|
|
11678
|
-
children: /* @__PURE__ */ s.jsx(
|
|
11678
|
+
children: /* @__PURE__ */ s.jsx(Ze, { className: "w-5 h-5" })
|
|
11679
11679
|
}
|
|
11680
11680
|
) : null
|
|
11681
11681
|
}
|
|
@@ -12741,7 +12741,7 @@ const Yo = d.forwardRef(({ className: e, children: t, showCloseButton: n = !0, .
|
|
|
12741
12741
|
children: [
|
|
12742
12742
|
t,
|
|
12743
12743
|
n && /* @__PURE__ */ s.jsxs(Ln, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
12744
|
-
/* @__PURE__ */ s.jsx(
|
|
12744
|
+
/* @__PURE__ */ s.jsx(Ze, { className: "h-4 w-4" }),
|
|
12745
12745
|
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Close" })
|
|
12746
12746
|
] })
|
|
12747
12747
|
]
|
|
@@ -12878,7 +12878,7 @@ const Lk = F.forwardRef(
|
|
|
12878
12878
|
className: i,
|
|
12879
12879
|
value: c = 0,
|
|
12880
12880
|
...l
|
|
12881
|
-
} = e, u =
|
|
12881
|
+
} = e, u = Ye(null);
|
|
12882
12882
|
Ci(t, () => u.current);
|
|
12883
12883
|
const [p, f] = pe(""), g = (h) => {
|
|
12884
12884
|
const x = h.toFixed(2).split("."), b = x[0].replace(/\B(?=(\d{3})+(?!\d))/g, o);
|
|
@@ -12897,7 +12897,7 @@ const Lk = F.forwardRef(
|
|
|
12897
12897
|
u.current.value.length
|
|
12898
12898
|
);
|
|
12899
12899
|
};
|
|
12900
|
-
return
|
|
12900
|
+
return Te(() => {
|
|
12901
12901
|
f(g(+c));
|
|
12902
12902
|
}, [c]), /* @__PURE__ */ s.jsx(
|
|
12903
12903
|
ss,
|
|
@@ -12943,7 +12943,7 @@ var Go = "Popover", [Cm, i_] = Pe(Go, [
|
|
|
12943
12943
|
defaultOpen: o,
|
|
12944
12944
|
onOpenChange: a,
|
|
12945
12945
|
modal: i = !1
|
|
12946
|
-
} = e, c = Nr(t), l = d.useRef(null), [u, p] = d.useState(!1), [f, g] =
|
|
12946
|
+
} = e, c = Nr(t), l = d.useRef(null), [u, p] = d.useState(!1), [f, g] = _e({
|
|
12947
12947
|
prop: r,
|
|
12948
12948
|
defaultProp: o ?? !1,
|
|
12949
12949
|
onChange: a,
|
|
@@ -13290,7 +13290,7 @@ const Xc = Rt("mx-1", {
|
|
|
13290
13290
|
] }),
|
|
13291
13291
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
13292
13292
|
/* @__PURE__ */ s.jsx(
|
|
13293
|
-
|
|
13293
|
+
Ze,
|
|
13294
13294
|
{
|
|
13295
13295
|
className: "h-4 mx-2 cursor-pointer text-muted-foreground",
|
|
13296
13296
|
onClick: (N) => {
|
|
@@ -13389,7 +13389,7 @@ sN.displayName = "MultiSelect";
|
|
|
13389
13389
|
var fn = "NavigationMenu", [ys, $m, cN] = ln(fn), [ai, lN, dN] = ln(fn), [ws, c_] = Pe(
|
|
13390
13390
|
fn,
|
|
13391
13391
|
[cN, dN]
|
|
13392
|
-
), [uN,
|
|
13392
|
+
), [uN, Je] = ws(fn), [pN, fN] = ws(fn), Fm = d.forwardRef(
|
|
13393
13393
|
(e, t) => {
|
|
13394
13394
|
const {
|
|
13395
13395
|
__scopeNavigationMenu: n,
|
|
@@ -13401,7 +13401,7 @@ var fn = "NavigationMenu", [ys, $m, cN] = ln(fn), [ai, lN, dN] = ln(fn), [ws, c_
|
|
|
13401
13401
|
orientation: l = "horizontal",
|
|
13402
13402
|
dir: u,
|
|
13403
13403
|
...p
|
|
13404
|
-
} = e, [f, g] = d.useState(null), m = ae(t, (A) => g(A)), v = jt(u), h = d.useRef(0), x = d.useRef(0), b = d.useRef(0), [y, w] = d.useState(!0), [S, C] =
|
|
13404
|
+
} = e, [f, g] = d.useState(null), m = ae(t, (A) => g(A)), v = jt(u), h = d.useRef(0), x = d.useRef(0), b = d.useRef(0), [y, w] = d.useState(!0), [S, C] = _e({
|
|
13405
13405
|
prop: r,
|
|
13406
13406
|
onChange: (A) => {
|
|
13407
13407
|
const z = A !== "", H = c > 0;
|
|
@@ -13474,7 +13474,7 @@ var ii = "NavigationMenuSub", mN = d.forwardRef(
|
|
|
13474
13474
|
defaultValue: a,
|
|
13475
13475
|
orientation: i = "horizontal",
|
|
13476
13476
|
...c
|
|
13477
|
-
} = e, l =
|
|
13477
|
+
} = e, l = Je(ii, n), [u, p] = _e({
|
|
13478
13478
|
prop: r,
|
|
13479
13479
|
onChange: o,
|
|
13480
13480
|
defaultProp: a ?? "",
|
|
@@ -13546,7 +13546,7 @@ var Lm = (e) => {
|
|
|
13546
13546
|
);
|
|
13547
13547
|
}, zm = "NavigationMenuList", Bm = d.forwardRef(
|
|
13548
13548
|
(e, t) => {
|
|
13549
|
-
const { __scopeNavigationMenu: n, ...r } = e, o =
|
|
13549
|
+
const { __scopeNavigationMenu: n, ...r } = e, o = Je(zm, n), a = /* @__PURE__ */ s.jsx(G.ul, { "data-orientation": o.orientation, ...r, ref: t });
|
|
13550
13550
|
return /* @__PURE__ */ s.jsx(G.div, { style: { position: "relative" }, ref: o.onIndicatorTrackChange, children: /* @__PURE__ */ s.jsx(ys.Slot, { scope: n, children: o.isRootMenu ? /* @__PURE__ */ s.jsx(Zm, { asChild: !0, children: a }) : a }) });
|
|
13551
13551
|
}
|
|
13552
13552
|
);
|
|
@@ -13586,7 +13586,7 @@ var Vm = "NavigationMenuItem", [hN, Wm] = ws(Vm), Hm = d.forwardRef(
|
|
|
13586
13586
|
);
|
|
13587
13587
|
Hm.displayName = Vm;
|
|
13588
13588
|
var si = "NavigationMenuTrigger", Um = d.forwardRef((e, t) => {
|
|
13589
|
-
const { __scopeNavigationMenu: n, disabled: r, ...o } = e, a =
|
|
13589
|
+
const { __scopeNavigationMenu: n, disabled: r, ...o } = e, a = Je(si, e.__scopeNavigationMenu), i = Wm(si, e.__scopeNavigationMenu), c = d.useRef(null), l = ae(c, i.triggerRef, t), u = Jm(a.baseId, i.value), p = eh(a.baseId, i.value), f = d.useRef(!1), g = d.useRef(!1), m = i.value === a.value;
|
|
13590
13590
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
13591
13591
|
/* @__PURE__ */ s.jsx(ys.ItemSlot, { scope: n, value: i.value, children: /* @__PURE__ */ s.jsx(Qm, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
13592
13592
|
G.button,
|
|
@@ -13674,7 +13674,7 @@ var gN = "NavigationMenuLink", Zc = "navigationMenu.linkSelect", Ym = d.forwardR
|
|
|
13674
13674
|
);
|
|
13675
13675
|
Ym.displayName = gN;
|
|
13676
13676
|
var Cs = "NavigationMenuIndicator", Gm = d.forwardRef((e, t) => {
|
|
13677
|
-
const { forceMount: n, ...r } = e, o =
|
|
13677
|
+
const { forceMount: n, ...r } = e, o = Je(Cs, e.__scopeNavigationMenu), a = !!o.value;
|
|
13678
13678
|
return o.indicatorTrack ? Si.createPortal(
|
|
13679
13679
|
/* @__PURE__ */ s.jsx(Me, { present: n || a, children: /* @__PURE__ */ s.jsx(vN, { ...r, ref: t }) }),
|
|
13680
13680
|
o.indicatorTrack
|
|
@@ -13682,7 +13682,7 @@ var Cs = "NavigationMenuIndicator", Gm = d.forwardRef((e, t) => {
|
|
|
13682
13682
|
});
|
|
13683
13683
|
Gm.displayName = Cs;
|
|
13684
13684
|
var vN = d.forwardRef((e, t) => {
|
|
13685
|
-
const { __scopeNavigationMenu: n, ...r } = e, o =
|
|
13685
|
+
const { __scopeNavigationMenu: n, ...r } = e, o = Je(Cs, n), a = $m(n), [i, c] = d.useState(
|
|
13686
13686
|
null
|
|
13687
13687
|
), [l, u] = d.useState(null), p = o.orientation === "horizontal", f = !!o.value;
|
|
13688
13688
|
d.useEffect(() => {
|
|
@@ -13719,7 +13719,7 @@ var vN = d.forwardRef((e, t) => {
|
|
|
13719
13719
|
}
|
|
13720
13720
|
) : null;
|
|
13721
13721
|
}), Tn = "NavigationMenuContent", qm = d.forwardRef((e, t) => {
|
|
13722
|
-
const { forceMount: n, ...r } = e, o =
|
|
13722
|
+
const { forceMount: n, ...r } = e, o = Je(Tn, e.__scopeNavigationMenu), a = Wm(Tn, e.__scopeNavigationMenu), i = ae(a.contentRef, t), c = a.value === o.value, l = {
|
|
13723
13723
|
value: a.value,
|
|
13724
13724
|
triggerRef: a.triggerRef,
|
|
13725
13725
|
focusProxyRef: a.focusProxyRef,
|
|
@@ -13749,7 +13749,7 @@ var vN = d.forwardRef((e, t) => {
|
|
|
13749
13749
|
});
|
|
13750
13750
|
qm.displayName = Tn;
|
|
13751
13751
|
var xN = d.forwardRef((e, t) => {
|
|
13752
|
-
const n =
|
|
13752
|
+
const n = Je(Tn, e.__scopeNavigationMenu), { onViewportContentChange: r, onViewportContentRemove: o } = n;
|
|
13753
13753
|
return je(() => {
|
|
13754
13754
|
r(e.value, {
|
|
13755
13755
|
ref: t,
|
|
@@ -13766,7 +13766,7 @@ var xN = d.forwardRef((e, t) => {
|
|
|
13766
13766
|
onRootContentClose: c,
|
|
13767
13767
|
onContentFocusOutside: l,
|
|
13768
13768
|
...u
|
|
13769
|
-
} = e, p =
|
|
13769
|
+
} = e, p = Je(Tn, n), f = d.useRef(null), g = ae(f, t), m = Jm(p.baseId, r), v = eh(p.baseId, r), h = $m(n), x = d.useRef(null), { onItemDismiss: b } = p;
|
|
13770
13770
|
d.useEffect(() => {
|
|
13771
13771
|
const w = f.current;
|
|
13772
13772
|
if (p.isRootMenu && w) {
|
|
@@ -13829,12 +13829,12 @@ var xN = d.forwardRef((e, t) => {
|
|
|
13829
13829
|
}
|
|
13830
13830
|
) });
|
|
13831
13831
|
}), Ss = "NavigationMenuViewport", Xm = d.forwardRef((e, t) => {
|
|
13832
|
-
const { forceMount: n, ...r } = e, a = !!
|
|
13832
|
+
const { forceMount: n, ...r } = e, a = !!Je(Ss, e.__scopeNavigationMenu).value;
|
|
13833
13833
|
return /* @__PURE__ */ s.jsx(Me, { present: n || a, children: /* @__PURE__ */ s.jsx(bN, { ...r, ref: t }) });
|
|
13834
13834
|
});
|
|
13835
13835
|
Xm.displayName = Ss;
|
|
13836
13836
|
var bN = d.forwardRef((e, t) => {
|
|
13837
|
-
const { __scopeNavigationMenu: n, children: r, ...o } = e, a =
|
|
13837
|
+
const { __scopeNavigationMenu: n, children: r, ...o } = e, a = Je(Ss, n), i = ae(t, a.onViewportChange), c = fN(
|
|
13838
13838
|
Tn,
|
|
13839
13839
|
e.__scopeNavigationMenu
|
|
13840
13840
|
), [l, u] = d.useState(null), [p, f] = d.useState(null), g = l ? l?.width + "px" : void 0, m = l ? l?.height + "px" : void 0, v = !!a.value, h = v ? a.value : a.previousValue;
|
|
@@ -13872,12 +13872,12 @@ var bN = d.forwardRef((e, t) => {
|
|
|
13872
13872
|
);
|
|
13873
13873
|
}), yN = "FocusGroup", Zm = d.forwardRef(
|
|
13874
13874
|
(e, t) => {
|
|
13875
|
-
const { __scopeNavigationMenu: n, ...r } = e, o =
|
|
13875
|
+
const { __scopeNavigationMenu: n, ...r } = e, o = Je(yN, n);
|
|
13876
13876
|
return /* @__PURE__ */ s.jsx(ai.Provider, { scope: n, children: /* @__PURE__ */ s.jsx(ai.Slot, { scope: n, children: /* @__PURE__ */ s.jsx(G.div, { dir: o.dir, ...r, ref: t }) }) });
|
|
13877
13877
|
}
|
|
13878
13878
|
), Qc = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], wN = "FocusGroupItem", Qm = d.forwardRef(
|
|
13879
13879
|
(e, t) => {
|
|
13880
|
-
const { __scopeNavigationMenu: n, ...r } = e, o = lN(n), a =
|
|
13880
|
+
const { __scopeNavigationMenu: n, ...r } = e, o = lN(n), a = Je(wN, n);
|
|
13881
13881
|
return /* @__PURE__ */ s.jsx(ai.ItemSlot, { scope: n, children: /* @__PURE__ */ s.jsx(
|
|
13882
13882
|
G.button,
|
|
13883
13883
|
{
|
|
@@ -14450,7 +14450,7 @@ var XN = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], qo = "RadioGroup",
|
|
|
14450
14450
|
loop: p = !0,
|
|
14451
14451
|
onValueChange: f,
|
|
14452
14452
|
...g
|
|
14453
|
-
} = e, m = ph(n), v = jt(u), [h, x] =
|
|
14453
|
+
} = e, m = ph(n), v = jt(u), [h, x] = _e({
|
|
14454
14454
|
prop: a,
|
|
14455
14455
|
defaultProp: o ?? null,
|
|
14456
14456
|
onChange: f,
|
|
@@ -14615,7 +14615,7 @@ function C_({
|
|
|
14615
14615
|
children: [
|
|
14616
14616
|
t,
|
|
14617
14617
|
/* @__PURE__ */ s.jsxs(Ln, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
14618
|
-
/* @__PURE__ */ s.jsx(
|
|
14618
|
+
/* @__PURE__ */ s.jsx(Ze, { className: "size-4" }),
|
|
14619
14619
|
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Close" })
|
|
14620
14620
|
] })
|
|
14621
14621
|
]
|
|
@@ -14695,7 +14695,7 @@ var yh = ["PageUp", "PageDown"], wh = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
14695
14695
|
inverted: m = !1,
|
|
14696
14696
|
form: v,
|
|
14697
14697
|
...h
|
|
14698
|
-
} = e, x = d.useRef(/* @__PURE__ */ new Set()), b = d.useRef(0), w = i === "horizontal" ? lR : dR, [S = [], C] =
|
|
14698
|
+
} = e, x = d.useRef(/* @__PURE__ */ new Set()), b = d.useRef(0), w = i === "horizontal" ? lR : dR, [S = [], C] = _e({
|
|
14699
14699
|
prop: p,
|
|
14700
14700
|
defaultProp: u,
|
|
14701
14701
|
onChange: (H) => {
|
|
@@ -15196,7 +15196,7 @@ var Xo = "Switch", [NR, __] = Pe(Xo), [RR, jR] = NR(Xo), Dh = d.forwardRef(
|
|
|
15196
15196
|
onCheckedChange: u,
|
|
15197
15197
|
form: p,
|
|
15198
15198
|
...f
|
|
15199
|
-
} = e, [g, m] = d.useState(null), v = ae(t, (w) => m(w)), h = d.useRef(!1), x = g ? p || !!g.closest("form") : !0, [b, y] =
|
|
15199
|
+
} = e, [g, m] = d.useState(null), v = ae(t, (w) => m(w)), h = d.useRef(!1), x = g ? p || !!g.closest("form") : !0, [b, y] = _e({
|
|
15200
15200
|
prop: o,
|
|
15201
15201
|
defaultProp: a ?? !1,
|
|
15202
15202
|
onChange: u,
|
|
@@ -15333,7 +15333,7 @@ var Zo = "Tabs", [MR, M_] = Pe(Zo, [
|
|
|
15333
15333
|
dir: c,
|
|
15334
15334
|
activationMode: l = "automatic",
|
|
15335
15335
|
...u
|
|
15336
|
-
} = e, p = jt(c), [f, g] =
|
|
15336
|
+
} = e, p = jt(c), [f, g] = _e({
|
|
15337
15337
|
prop: r,
|
|
15338
15338
|
onChange: o,
|
|
15339
15339
|
defaultProp: a ?? "",
|
|
@@ -15534,6 +15534,89 @@ function O_({
|
|
|
15534
15534
|
}
|
|
15535
15535
|
);
|
|
15536
15536
|
}
|
|
15537
|
+
function $_({
|
|
15538
|
+
value: e = [],
|
|
15539
|
+
onChange: t,
|
|
15540
|
+
separator: n = ",",
|
|
15541
|
+
placeholder: r = "Type and press Enter or comma to add tags...",
|
|
15542
|
+
className: o,
|
|
15543
|
+
initialValue: a = "",
|
|
15544
|
+
helperText: i = "Press Enter or comma to add tags"
|
|
15545
|
+
}) {
|
|
15546
|
+
const [c, l] = pe(""), u = Ye(null);
|
|
15547
|
+
Te(() => {
|
|
15548
|
+
if (a && e.length === 0) {
|
|
15549
|
+
let x;
|
|
15550
|
+
Array.isArray(a) ? x = a.filter((b) => b.trim() !== "") : x = a.split(n).filter((b) => b.trim() !== ""), x.length > 0 && t?.(x);
|
|
15551
|
+
}
|
|
15552
|
+
}, [a, n, t, e]);
|
|
15553
|
+
const p = e, f = (x) => {
|
|
15554
|
+
const b = x.trim();
|
|
15555
|
+
if (b && !p.includes(b)) {
|
|
15556
|
+
const y = [...p, b];
|
|
15557
|
+
t?.(y);
|
|
15558
|
+
}
|
|
15559
|
+
l("");
|
|
15560
|
+
}, g = (x) => {
|
|
15561
|
+
const b = p.filter((y, w) => w !== x);
|
|
15562
|
+
t?.(b);
|
|
15563
|
+
}, m = (x) => {
|
|
15564
|
+
x.key === "Enter" || x.key === "," ? (x.preventDefault(), f(c)) : x.key === "Backspace" && c === "" && p.length > 0 && g(p.length - 1);
|
|
15565
|
+
}, v = (x) => {
|
|
15566
|
+
const b = x.target.value;
|
|
15567
|
+
if (b.includes(",")) {
|
|
15568
|
+
const y = b.split(","), w = y[0], S = y.slice(1).join(",");
|
|
15569
|
+
f(w), l(S);
|
|
15570
|
+
} else
|
|
15571
|
+
l(b);
|
|
15572
|
+
}, h = (x) => {
|
|
15573
|
+
x.target === x.currentTarget && u.current?.focus();
|
|
15574
|
+
};
|
|
15575
|
+
return /* @__PURE__ */ s.jsxs("div", { className: _("w-full", o), children: [
|
|
15576
|
+
/* @__PURE__ */ s.jsx(
|
|
15577
|
+
"div",
|
|
15578
|
+
{
|
|
15579
|
+
onClick: h,
|
|
15580
|
+
className: "w-full min-h-[80px] px-3 py-2 border border-input bg-background text-foreground rounded-md focus-within:ring-2 focus-within:ring-ring focus-within:border-transparent cursor-text",
|
|
15581
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "flex flex-wrap gap-2 items-center", children: [
|
|
15582
|
+
p.map((x, b) => /* @__PURE__ */ s.jsxs(
|
|
15583
|
+
"div",
|
|
15584
|
+
{
|
|
15585
|
+
className: "inline-flex items-center gap-1 px-2 py-1 bg-secondary text-secondary-foreground rounded-full text-sm",
|
|
15586
|
+
children: [
|
|
15587
|
+
/* @__PURE__ */ s.jsx("span", { children: x }),
|
|
15588
|
+
/* @__PURE__ */ s.jsx(
|
|
15589
|
+
"button",
|
|
15590
|
+
{
|
|
15591
|
+
type: "button",
|
|
15592
|
+
onClick: () => g(b),
|
|
15593
|
+
className: "hover:bg-secondary-foreground/20 rounded-full p-0.5 transition-colors",
|
|
15594
|
+
"aria-label": `Remove ${x} tag`,
|
|
15595
|
+
children: /* @__PURE__ */ s.jsx(Ze, { className: "h-3 w-3" })
|
|
15596
|
+
}
|
|
15597
|
+
)
|
|
15598
|
+
]
|
|
15599
|
+
},
|
|
15600
|
+
b
|
|
15601
|
+
)),
|
|
15602
|
+
/* @__PURE__ */ s.jsx(
|
|
15603
|
+
"input",
|
|
15604
|
+
{
|
|
15605
|
+
ref: u,
|
|
15606
|
+
type: "text",
|
|
15607
|
+
value: c,
|
|
15608
|
+
onChange: v,
|
|
15609
|
+
onKeyDown: m,
|
|
15610
|
+
placeholder: p.length === 0 ? r : "",
|
|
15611
|
+
className: "flex-1 min-w-[120px] bg-transparent border-none outline-none text-foreground placeholder:text-muted-foreground"
|
|
15612
|
+
}
|
|
15613
|
+
)
|
|
15614
|
+
] })
|
|
15615
|
+
}
|
|
15616
|
+
),
|
|
15617
|
+
i && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-muted-foreground mt-2", children: i })
|
|
15618
|
+
] });
|
|
15619
|
+
}
|
|
15537
15620
|
const zR = d.forwardRef(
|
|
15538
15621
|
({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
15539
15622
|
"textarea",
|
|
@@ -15630,7 +15713,7 @@ function Lr(e) {
|
|
|
15630
15713
|
return e.label !== void 0;
|
|
15631
15714
|
}
|
|
15632
15715
|
var rj = 3, oj = "32px", aj = "16px", nl = 4e3, ij = 356, sj = 14, cj = 20, lj = 200;
|
|
15633
|
-
function
|
|
15716
|
+
function at(...e) {
|
|
15634
15717
|
return e.filter(Boolean).join(" ");
|
|
15635
15718
|
}
|
|
15636
15719
|
function dj(e) {
|
|
@@ -15639,11 +15722,11 @@ function dj(e) {
|
|
|
15639
15722
|
}
|
|
15640
15723
|
var uj = (e) => {
|
|
15641
15724
|
var t, n, r, o, a, i, c, l, u, p, f;
|
|
15642
|
-
let { invert: g, toast: m, unstyled: v, interacting: h, setHeights: x, visibleToasts: b, heights: y, index: w, toasts: S, expanded: C, removeToast: P, defaultRichColors: N, closeButton: R, style: A, cancelButtonStyle: z, actionButtonStyle: H, className: Q = "", descriptionClassName: te = "", duration: Y, position: J, gap: U, loadingIcon: X, expandByDefault: I, classNames: D, icons: E, closeButtonAriaLabel: O = "Close toast", pauseWhenPageIsHidden: k } = e, [T, M] = F.useState(null), [$, B] = F.useState(null), [j, V] = F.useState(!1), [q, K] = F.useState(!1), [oe, L] = F.useState(!1), [fe, Ce] = F.useState(!1), [$e, Be] = F.useState(!1), [Z, se] = F.useState(0), [ce, Se] = F.useState(0), Ie = F.useRef(m.duration || Y || nl),
|
|
15725
|
+
let { invert: g, toast: m, unstyled: v, interacting: h, setHeights: x, visibleToasts: b, heights: y, index: w, toasts: S, expanded: C, removeToast: P, defaultRichColors: N, closeButton: R, style: A, cancelButtonStyle: z, actionButtonStyle: H, className: Q = "", descriptionClassName: te = "", duration: Y, position: J, gap: U, loadingIcon: X, expandByDefault: I, classNames: D, icons: E, closeButtonAriaLabel: O = "Close toast", pauseWhenPageIsHidden: k } = e, [T, M] = F.useState(null), [$, B] = F.useState(null), [j, V] = F.useState(!1), [q, K] = F.useState(!1), [oe, L] = F.useState(!1), [fe, Ce] = F.useState(!1), [$e, Be] = F.useState(!1), [Z, se] = F.useState(0), [ce, Se] = F.useState(0), Ie = F.useRef(m.duration || Y || nl), qe = F.useRef(null), Oe = F.useRef(null), ee = w === 0, ie = w + 1 <= b, me = m.type, Ee = m.dismissible !== !1, Le = m.className || "", Kt = m.descriptionClassName || "", et = F.useMemo(() => y.findIndex((le) => le.toastId === m.id) || 0, [y, m.id]), Bn = F.useMemo(() => {
|
|
15643
15726
|
var le;
|
|
15644
15727
|
return (le = m.closeButton) != null ? le : R;
|
|
15645
|
-
}, [m.closeButton, R]), mn = F.useMemo(() => m.duration || Y || nl, [m.duration, Y]), Xt = F.useRef(0),
|
|
15646
|
-
|
|
15728
|
+
}, [m.closeButton, R]), mn = F.useMemo(() => m.duration || Y || nl, [m.duration, Y]), Xt = F.useRef(0), tt = F.useRef(0), hn = F.useRef(0), pt = F.useRef(null), [Vn, Wn] = J.split("-"), jr = F.useMemo(() => y.reduce((le, ye, ke) => ke >= et ? le : le + ye.height, 0), [y, et]), zs = KR(), Ig = m.invert || g, ea = me === "loading";
|
|
15729
|
+
tt.current = F.useMemo(() => et * U + jr, [et, jr]), F.useEffect(() => {
|
|
15647
15730
|
Ie.current = mn;
|
|
15648
15731
|
}, [mn]), F.useEffect(() => {
|
|
15649
15732
|
V(!0);
|
|
@@ -15651,20 +15734,20 @@ var uj = (e) => {
|
|
|
15651
15734
|
let le = Oe.current;
|
|
15652
15735
|
if (le) {
|
|
15653
15736
|
let ye = le.getBoundingClientRect().height;
|
|
15654
|
-
return Se(ye), x((ke) => [{ toastId: m.id, height: ye, position: m.position }, ...ke]), () => x((ke) => ke.filter((
|
|
15737
|
+
return Se(ye), x((ke) => [{ toastId: m.id, height: ye, position: m.position }, ...ke]), () => x((ke) => ke.filter((nt) => nt.toastId !== m.id));
|
|
15655
15738
|
}
|
|
15656
15739
|
}, [x, m.id]), F.useLayoutEffect(() => {
|
|
15657
15740
|
if (!j) return;
|
|
15658
15741
|
let le = Oe.current, ye = le.style.height;
|
|
15659
15742
|
le.style.height = "auto";
|
|
15660
15743
|
let ke = le.getBoundingClientRect().height;
|
|
15661
|
-
le.style.height = ye, Se(ke), x((
|
|
15744
|
+
le.style.height = ye, Se(ke), x((nt) => nt.find((rt) => rt.toastId === m.id) ? nt.map((rt) => rt.toastId === m.id ? { ...rt, height: ke } : rt) : [{ toastId: m.id, height: ke, position: m.position }, ...nt]);
|
|
15662
15745
|
}, [j, m.title, m.description, x, m.id]);
|
|
15663
15746
|
let Tt = F.useCallback(() => {
|
|
15664
|
-
K(!0), se(
|
|
15747
|
+
K(!0), se(tt.current), x((le) => le.filter((ye) => ye.toastId !== m.id)), setTimeout(() => {
|
|
15665
15748
|
P(m);
|
|
15666
15749
|
}, lj);
|
|
15667
|
-
}, [m, P, x,
|
|
15750
|
+
}, [m, P, x, tt]);
|
|
15668
15751
|
F.useEffect(() => {
|
|
15669
15752
|
if (m.promise && me === "loading" || m.duration === 1 / 0 || m.type === "loading") return;
|
|
15670
15753
|
let le;
|
|
@@ -15683,40 +15766,40 @@ var uj = (e) => {
|
|
|
15683
15766
|
}, [Tt, m.delete]);
|
|
15684
15767
|
function Og() {
|
|
15685
15768
|
var le, ye, ke;
|
|
15686
|
-
return E != null && E.loading ? F.createElement("div", { className:
|
|
15769
|
+
return E != null && E.loading ? F.createElement("div", { className: at(D?.loader, (le = m?.classNames) == null ? void 0 : le.loader, "sonner-loader"), "data-visible": me === "loading" }, E.loading) : X ? F.createElement("div", { className: at(D?.loader, (ye = m?.classNames) == null ? void 0 : ye.loader, "sonner-loader"), "data-visible": me === "loading" }, X) : F.createElement(WR, { className: at(D?.loader, (ke = m?.classNames) == null ? void 0 : ke.loader), visible: me === "loading" });
|
|
15687
15770
|
}
|
|
15688
|
-
return F.createElement("li", { tabIndex: 0, ref: Oe, className:
|
|
15771
|
+
return F.createElement("li", { tabIndex: 0, ref: Oe, className: at(Q, Le, D?.toast, (t = m?.classNames) == null ? void 0 : t.toast, D?.default, D?.[me], (n = m?.classNames) == null ? void 0 : n[me]), "data-sonner-toast": "", "data-rich-colors": (r = m.richColors) != null ? r : N, "data-styled": !(m.jsx || m.unstyled || v), "data-mounted": j, "data-promise": !!m.promise, "data-swiped": $e, "data-removed": q, "data-visible": ie, "data-y-position": Vn, "data-x-position": Wn, "data-index": w, "data-front": ee, "data-swiping": oe, "data-dismissible": Ee, "data-type": me, "data-invert": Ig, "data-swipe-out": fe, "data-swipe-direction": $, "data-expanded": !!(C || I && j), style: { "--index": w, "--toasts-before": w, "--z-index": S.length - w, "--offset": `${q ? Z : tt.current}px`, "--initial-height": I ? "auto" : `${ce}px`, ...A, ...m.style }, onDragEnd: () => {
|
|
15689
15772
|
L(!1), M(null), pt.current = null;
|
|
15690
15773
|
}, onPointerDown: (le) => {
|
|
15691
|
-
ea || !Ee || (
|
|
15774
|
+
ea || !Ee || (qe.current = /* @__PURE__ */ new Date(), se(tt.current), le.target.setPointerCapture(le.pointerId), le.target.tagName !== "BUTTON" && (L(!0), pt.current = { x: le.clientX, y: le.clientY }));
|
|
15692
15775
|
}, onPointerUp: () => {
|
|
15693
|
-
var le, ye, ke,
|
|
15776
|
+
var le, ye, ke, nt;
|
|
15694
15777
|
if (fe || !Ee) return;
|
|
15695
15778
|
pt.current = null;
|
|
15696
|
-
let
|
|
15697
|
-
if (Math.abs(
|
|
15698
|
-
se(
|
|
15779
|
+
let rt = Number(((le = Oe.current) == null ? void 0 : le.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), _t = Number(((ye = Oe.current) == null ? void 0 : ye.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Zt = (/* @__PURE__ */ new Date()).getTime() - ((ke = qe.current) == null ? void 0 : ke.getTime()), ot = T === "x" ? rt : _t, Mt = Math.abs(ot) / Zt;
|
|
15780
|
+
if (Math.abs(ot) >= cj || Mt > 0.11) {
|
|
15781
|
+
se(tt.current), (nt = m.onDismiss) == null || nt.call(m, m), B(T === "x" ? rt > 0 ? "right" : "left" : _t > 0 ? "down" : "up"), Tt(), Ce(!0), Be(!1);
|
|
15699
15782
|
return;
|
|
15700
15783
|
}
|
|
15701
15784
|
L(!1), M(null);
|
|
15702
15785
|
}, onPointerMove: (le) => {
|
|
15703
|
-
var ye, ke,
|
|
15786
|
+
var ye, ke, nt, rt;
|
|
15704
15787
|
if (!pt.current || !Ee || ((ye = window.getSelection()) == null ? void 0 : ye.toString().length) > 0) return;
|
|
15705
|
-
let _t = le.clientY - pt.current.y, Zt = le.clientX - pt.current.x,
|
|
15788
|
+
let _t = le.clientY - pt.current.y, Zt = le.clientX - pt.current.x, ot = (ke = e.swipeDirections) != null ? ke : dj(J);
|
|
15706
15789
|
!T && (Math.abs(Zt) > 1 || Math.abs(_t) > 1) && M(Math.abs(Zt) > Math.abs(_t) ? "x" : "y");
|
|
15707
15790
|
let Mt = { x: 0, y: 0 };
|
|
15708
|
-
T === "y" ? (
|
|
15791
|
+
T === "y" ? (ot.includes("top") || ot.includes("bottom")) && (ot.includes("top") && _t < 0 || ot.includes("bottom") && _t > 0) && (Mt.y = _t) : T === "x" && (ot.includes("left") || ot.includes("right")) && (ot.includes("left") && Zt < 0 || ot.includes("right") && Zt > 0) && (Mt.x = Zt), (Math.abs(Mt.x) > 0 || Math.abs(Mt.y) > 0) && Be(!0), (nt = Oe.current) == null || nt.style.setProperty("--swipe-amount-x", `${Mt.x}px`), (rt = Oe.current) == null || rt.style.setProperty("--swipe-amount-y", `${Mt.y}px`);
|
|
15709
15792
|
} }, Bn && !m.jsx ? F.createElement("button", { "aria-label": O, "data-disabled": ea, "data-close-button": !0, onClick: ea || !Ee ? () => {
|
|
15710
15793
|
} : () => {
|
|
15711
15794
|
var le;
|
|
15712
15795
|
Tt(), (le = m.onDismiss) == null || le.call(m, m);
|
|
15713
|
-
}, className:
|
|
15796
|
+
}, className: at(D?.closeButton, (o = m?.classNames) == null ? void 0 : o.closeButton) }, (a = E?.close) != null ? a : qR) : null, m.jsx || ta(m.title) ? m.jsx ? m.jsx : typeof m.title == "function" ? m.title() : m.title : F.createElement(F.Fragment, null, me || m.icon || m.promise ? F.createElement("div", { "data-icon": "", className: at(D?.icon, (i = m?.classNames) == null ? void 0 : i.icon) }, m.promise || m.type === "loading" && !m.icon ? m.icon || Og() : null, m.type !== "loading" ? m.icon || E?.[me] || BR(me) : null) : null, F.createElement("div", { "data-content": "", className: at(D?.content, (c = m?.classNames) == null ? void 0 : c.content) }, F.createElement("div", { "data-title": "", className: at(D?.title, (l = m?.classNames) == null ? void 0 : l.title) }, typeof m.title == "function" ? m.title() : m.title), m.description ? F.createElement("div", { "data-description": "", className: at(te, Kt, D?.description, (u = m?.classNames) == null ? void 0 : u.description) }, typeof m.description == "function" ? m.description() : m.description) : null), ta(m.cancel) ? m.cancel : m.cancel && Lr(m.cancel) ? F.createElement("button", { "data-button": !0, "data-cancel": !0, style: m.cancelButtonStyle || z, onClick: (le) => {
|
|
15714
15797
|
var ye, ke;
|
|
15715
15798
|
Lr(m.cancel) && Ee && ((ke = (ye = m.cancel).onClick) == null || ke.call(ye, le), Tt());
|
|
15716
|
-
}, className:
|
|
15799
|
+
}, className: at(D?.cancelButton, (p = m?.classNames) == null ? void 0 : p.cancelButton) }, m.cancel.label) : null, ta(m.action) ? m.action : m.action && Lr(m.action) ? F.createElement("button", { "data-button": !0, "data-action": !0, style: m.actionButtonStyle || H, onClick: (le) => {
|
|
15717
15800
|
var ye, ke;
|
|
15718
15801
|
Lr(m.action) && ((ke = (ye = m.action).onClick) == null || ke.call(ye, le), !le.defaultPrevented && Tt());
|
|
15719
|
-
}, className:
|
|
15802
|
+
}, className: at(D?.actionButton, (f = m?.classNames) == null ? void 0 : f.actionButton) }, m.action.label) : null));
|
|
15720
15803
|
};
|
|
15721
15804
|
function rl() {
|
|
15722
15805
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
@@ -15806,7 +15889,7 @@ var fj = lr(function(e, t) {
|
|
|
15806
15889
|
})) : null;
|
|
15807
15890
|
}));
|
|
15808
15891
|
});
|
|
15809
|
-
const zr = ({ onClick: e }) => /* @__PURE__ */ s.jsx(ge, { onClick: () => e(), variant: "ghost", size: "xl", className: "ml-auto px-3", children: /* @__PURE__ */ s.jsx(
|
|
15892
|
+
const zr = ({ onClick: e }) => /* @__PURE__ */ s.jsx(ge, { onClick: () => e(), variant: "ghost", size: "xl", className: "ml-auto px-3", children: /* @__PURE__ */ s.jsx(Ze, { className: "!h-6 !w-6" }) }), F_ = {
|
|
15810
15893
|
...St,
|
|
15811
15894
|
success: (e, t) => {
|
|
15812
15895
|
const n = St.success(e, {
|
|
@@ -15836,7 +15919,7 @@ const zr = ({ onClick: e }) => /* @__PURE__ */ s.jsx(ge, { onClick: () => e(), v
|
|
|
15836
15919
|
});
|
|
15837
15920
|
return n;
|
|
15838
15921
|
}
|
|
15839
|
-
},
|
|
15922
|
+
}, L_ = ({ ...e }) => /* @__PURE__ */ s.jsx(
|
|
15840
15923
|
fj,
|
|
15841
15924
|
{
|
|
15842
15925
|
className: "toaster group",
|
|
@@ -15854,7 +15937,7 @@ const zr = ({ onClick: e }) => /* @__PURE__ */ s.jsx(ge, { onClick: () => e(), v
|
|
|
15854
15937
|
}
|
|
15855
15938
|
);
|
|
15856
15939
|
var Xh = "Toggle", As = d.forwardRef((e, t) => {
|
|
15857
|
-
const { pressed: n, defaultPressed: r, onPressedChange: o, ...a } = e, [i, c] =
|
|
15940
|
+
const { pressed: n, defaultPressed: r, onPressedChange: o, ...a } = e, [i, c] = _e({
|
|
15858
15941
|
prop: n,
|
|
15859
15942
|
onChange: o,
|
|
15860
15943
|
defaultProp: r ?? !1,
|
|
@@ -15905,7 +15988,7 @@ const Qh = Rt(
|
|
|
15905
15988
|
}
|
|
15906
15989
|
));
|
|
15907
15990
|
mj.displayName = Zh.displayName;
|
|
15908
|
-
var qt = "ToggleGroup", [Jh,
|
|
15991
|
+
var qt = "ToggleGroup", [Jh, z_] = Pe(qt, [
|
|
15909
15992
|
Wt
|
|
15910
15993
|
]), eg = Wt(), Ds = F.forwardRef((e, t) => {
|
|
15911
15994
|
const { type: n, ...r } = e;
|
|
@@ -15927,7 +16010,7 @@ var [tg, ng] = Jh(qt), hj = F.forwardRef((e, t) => {
|
|
|
15927
16010
|
onValueChange: o = () => {
|
|
15928
16011
|
},
|
|
15929
16012
|
...a
|
|
15930
|
-
} = e, [i, c] =
|
|
16013
|
+
} = e, [i, c] = _e({
|
|
15931
16014
|
prop: n,
|
|
15932
16015
|
defaultProp: r ?? "",
|
|
15933
16016
|
onChange: o,
|
|
@@ -15951,7 +16034,7 @@ var [tg, ng] = Jh(qt), hj = F.forwardRef((e, t) => {
|
|
|
15951
16034
|
onValueChange: o = () => {
|
|
15952
16035
|
},
|
|
15953
16036
|
...a
|
|
15954
|
-
} = e, [i, c] =
|
|
16037
|
+
} = e, [i, c] = _e({
|
|
15955
16038
|
prop: n,
|
|
15956
16039
|
defaultProp: r ?? [],
|
|
15957
16040
|
onChange: o,
|
|
@@ -16064,7 +16147,7 @@ const yj = d.forwardRef(({ className: e, children: t, variant: n, size: r, ...o
|
|
|
16064
16147
|
);
|
|
16065
16148
|
});
|
|
16066
16149
|
yj.displayName = ig.displayName;
|
|
16067
|
-
var [Qo,
|
|
16150
|
+
var [Qo, B_] = Pe("Tooltip", [
|
|
16068
16151
|
Vt
|
|
16069
16152
|
]), Jo = Vt(), cg = "TooltipProvider", wj = 700, mi = "tooltip.open", [Cj, Is] = Qo(cg), lg = (e) => {
|
|
16070
16153
|
const {
|
|
@@ -16111,7 +16194,7 @@ var sr = "Tooltip", [Sj, Rr] = Qo(sr), dg = (e) => {
|
|
|
16111
16194
|
onOpenChange: a,
|
|
16112
16195
|
disableHoverableContent: i,
|
|
16113
16196
|
delayDuration: c
|
|
16114
|
-
} = e, l = Is(sr, e.__scopeTooltip), u = Jo(t), [p, f] = d.useState(null), g = Ne(), m = d.useRef(0), v = i ?? l.disableHoverableContent, h = c ?? l.delayDuration, x = d.useRef(!1), [b, y] =
|
|
16197
|
+
} = e, l = Is(sr, e.__scopeTooltip), u = Jo(t), [p, f] = d.useState(null), g = Ne(), m = d.useRef(0), v = i ?? l.disableHoverableContent, h = c ?? l.delayDuration, x = d.useRef(!1), [b, y] = _e({
|
|
16115
16198
|
prop: r,
|
|
16116
16199
|
defaultProp: o ?? !1,
|
|
16117
16200
|
onChange: (N) => {
|
|
@@ -16387,15 +16470,15 @@ function Vj({
|
|
|
16387
16470
|
}
|
|
16388
16471
|
);
|
|
16389
16472
|
}
|
|
16390
|
-
function
|
|
16473
|
+
function V_({ ...e }) {
|
|
16391
16474
|
return /* @__PURE__ */ s.jsx(Vj, { children: /* @__PURE__ */ s.jsx($j, { "data-slot": "tooltip", ...e }) });
|
|
16392
16475
|
}
|
|
16393
|
-
function
|
|
16476
|
+
function W_({
|
|
16394
16477
|
...e
|
|
16395
16478
|
}) {
|
|
16396
16479
|
return /* @__PURE__ */ s.jsx(Fj, { "data-slot": "tooltip-trigger", ...e });
|
|
16397
16480
|
}
|
|
16398
|
-
function
|
|
16481
|
+
function H_({
|
|
16399
16482
|
className: e,
|
|
16400
16483
|
sideOffset: t = 0,
|
|
16401
16484
|
children: n,
|
|
@@ -16418,7 +16501,7 @@ function W_({
|
|
|
16418
16501
|
}
|
|
16419
16502
|
) });
|
|
16420
16503
|
}
|
|
16421
|
-
const
|
|
16504
|
+
const U_ = () => {
|
|
16422
16505
|
const [e, t] = pe([]);
|
|
16423
16506
|
return [e, (a) => {
|
|
16424
16507
|
t([...e, a]);
|
|
@@ -16430,7 +16513,7 @@ const H_ = () => {
|
|
|
16430
16513
|
c.filter((l) => l[a] !== i), t(c);
|
|
16431
16514
|
}];
|
|
16432
16515
|
};
|
|
16433
|
-
function
|
|
16516
|
+
function Y_() {
|
|
16434
16517
|
const [e, t] = pe(null);
|
|
16435
16518
|
return [e, async (r) => {
|
|
16436
16519
|
if (!navigator?.clipboard)
|
|
@@ -16444,7 +16527,7 @@ function U_() {
|
|
|
16444
16527
|
}
|
|
16445
16528
|
function Wj(e, t = 250) {
|
|
16446
16529
|
const [n, r] = pe(e);
|
|
16447
|
-
return
|
|
16530
|
+
return Te(
|
|
16448
16531
|
() => {
|
|
16449
16532
|
const o = setTimeout(() => {
|
|
16450
16533
|
r(e);
|
|
@@ -16470,7 +16553,7 @@ const vg = d.createContext(void 0), al = {
|
|
|
16470
16553
|
confirm: { icon: hc, className: "text-blue-500" },
|
|
16471
16554
|
custom: { icon: hc, className: "text-gray-500" }
|
|
16472
16555
|
};
|
|
16473
|
-
function
|
|
16556
|
+
function G_({ children: e }) {
|
|
16474
16557
|
const [t, n] = d.useState({
|
|
16475
16558
|
isOpen: !1,
|
|
16476
16559
|
options: null
|
|
@@ -16593,16 +16676,16 @@ function Y_({ children: e }) {
|
|
|
16593
16676
|
) })
|
|
16594
16677
|
] });
|
|
16595
16678
|
}
|
|
16596
|
-
function
|
|
16679
|
+
function q_() {
|
|
16597
16680
|
const e = d.useContext(vg);
|
|
16598
16681
|
if (e === void 0)
|
|
16599
16682
|
throw new Error("useDialog must be used within a DialogProvider");
|
|
16600
16683
|
return e;
|
|
16601
16684
|
}
|
|
16602
|
-
const
|
|
16685
|
+
const K_ = (e = !1) => {
|
|
16603
16686
|
const [t, n] = d.useState(e), r = d.useCallback(() => n(!0), []), o = d.useCallback(() => n(!1), []), a = d.useCallback(() => n((i) => !i), []);
|
|
16604
16687
|
return { isOpen: t, open: r, close: o, toggle: a };
|
|
16605
|
-
},
|
|
16688
|
+
}, X_ = (e = !1) => {
|
|
16606
16689
|
const [t, n] = d.useState(e), r = d.useCallback(() => n(!0), []), o = d.useCallback(() => n(!1), []);
|
|
16607
16690
|
return [t, r, o];
|
|
16608
16691
|
};
|
|
@@ -17196,7 +17279,7 @@ var iP = Bt.ArrayBuffer, Ea = Bt.FileReader, Jt = Bt.URL || Bt.webkitURL, sP = /
|
|
|
17196
17279
|
}
|
|
17197
17280
|
}]), e;
|
|
17198
17281
|
}();
|
|
17199
|
-
const
|
|
17282
|
+
const Z_ = () => ({ compressImage: async (n, r) => await new Promise((o, a) => {
|
|
17200
17283
|
new lP(
|
|
17201
17284
|
n,
|
|
17202
17285
|
r ?? {
|
|
@@ -17219,7 +17302,7 @@ const X_ = () => ({ compressImage: async (n, r) => await new Promise((o, a) => {
|
|
|
17219
17302
|
}), formatFileSize: (n) => {
|
|
17220
17303
|
var r = n === 0 ? 0 : Math.floor(Math.log(n) / Math.log(1024));
|
|
17221
17304
|
return +(n / Math.pow(1024, r)).toFixed(2) * 1 + " " + ["B", "kB", "MB", "GB", "TB"][r];
|
|
17222
|
-
} }),
|
|
17305
|
+
} }), Q_ = function(e, t) {
|
|
17223
17306
|
const [n, r] = pe(!1);
|
|
17224
17307
|
function o({ key: i }) {
|
|
17225
17308
|
i === e && r(!0);
|
|
@@ -17227,13 +17310,13 @@ const X_ = () => ({ compressImage: async (n, r) => await new Promise((o, a) => {
|
|
|
17227
17310
|
const a = ({ key: i }) => {
|
|
17228
17311
|
i === e && r(!1);
|
|
17229
17312
|
};
|
|
17230
|
-
return
|
|
17313
|
+
return Te(() => (window.addEventListener("keydown", o), window.addEventListener("keyup", a), () => {
|
|
17231
17314
|
window.removeEventListener("keydown", o), window.removeEventListener("keyup", a);
|
|
17232
|
-
})),
|
|
17315
|
+
})), Te(() => {
|
|
17233
17316
|
n && t?.(n);
|
|
17234
17317
|
}, [n]), n;
|
|
17235
17318
|
};
|
|
17236
|
-
function
|
|
17319
|
+
function J_(e, t) {
|
|
17237
17320
|
const [n, r] = pe(() => {
|
|
17238
17321
|
try {
|
|
17239
17322
|
const i = window.localStorage.getItem(e);
|
|
@@ -17257,9 +17340,9 @@ function Q_(e, t) {
|
|
|
17257
17340
|
}
|
|
17258
17341
|
}];
|
|
17259
17342
|
}
|
|
17260
|
-
function
|
|
17343
|
+
function eM(e) {
|
|
17261
17344
|
const [t, n] = pe(!1);
|
|
17262
|
-
return
|
|
17345
|
+
return Te(() => {
|
|
17263
17346
|
const r = window.matchMedia(e);
|
|
17264
17347
|
r.matches !== t && n(r.matches);
|
|
17265
17348
|
const o = () => n(r.matches);
|
|
@@ -17267,7 +17350,7 @@ function J_(e) {
|
|
|
17267
17350
|
}, [t, e]), t;
|
|
17268
17351
|
}
|
|
17269
17352
|
const ka = 768;
|
|
17270
|
-
function
|
|
17353
|
+
function tM() {
|
|
17271
17354
|
const [e, t] = d.useState(void 0);
|
|
17272
17355
|
return d.useEffect(() => {
|
|
17273
17356
|
const n = window.matchMedia(`(max-width: ${ka - 1}px)`), r = () => {
|
|
@@ -17276,9 +17359,9 @@ function eM() {
|
|
|
17276
17359
|
return n.addEventListener("change", r), t(window.innerWidth < ka), () => n.removeEventListener("change", r);
|
|
17277
17360
|
}, []), !!e;
|
|
17278
17361
|
}
|
|
17279
|
-
const
|
|
17362
|
+
const nM = () => {
|
|
17280
17363
|
const [e, t] = pe(null), [n, r] = pe(!1);
|
|
17281
|
-
return
|
|
17364
|
+
return Te(() => ((() => {
|
|
17282
17365
|
const i = window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone;
|
|
17283
17366
|
r(i);
|
|
17284
17367
|
})(), window.addEventListener("beforeinstallprompt", (i) => {
|
|
@@ -17404,8 +17487,8 @@ function dP({
|
|
|
17404
17487
|
}), x.field && x.direction) {
|
|
17405
17488
|
const { field: se, direction: ce } = x;
|
|
17406
17489
|
Z.sort((Se, Ie) => {
|
|
17407
|
-
const
|
|
17408
|
-
return
|
|
17490
|
+
const qe = Se[se], Oe = Ie[se];
|
|
17491
|
+
return qe == null && Oe == null ? 0 : qe == null ? ce === "asc" ? -1 : 1 : Oe == null ? ce === "asc" ? 1 : -1 : typeof qe == "string" && typeof Oe == "string" ? ce === "asc" ? qe.localeCompare(Oe) : Oe.localeCompare(qe) : ce === "asc" ? qe - Oe : Oe - qe;
|
|
17409
17492
|
});
|
|
17410
17493
|
}
|
|
17411
17494
|
return Z;
|
|
@@ -17520,19 +17603,19 @@ function dP({
|
|
|
17520
17603
|
]
|
|
17521
17604
|
), i ? /* @__PURE__ */ s.jsxs("div", { className: `space-y-4 ${a}`, children: [
|
|
17522
17605
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
17523
|
-
/* @__PURE__ */ s.jsx(
|
|
17524
|
-
r.map((Z, se) => /* @__PURE__ */ s.jsx(
|
|
17525
|
-
/* @__PURE__ */ s.jsx(
|
|
17606
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-10 w-full max-w-sm" }),
|
|
17607
|
+
r.map((Z, se) => /* @__PURE__ */ s.jsx(Ke, { className: "h-10 w-30" }, se)),
|
|
17608
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-10 w-32 ml-auto" })
|
|
17526
17609
|
] }),
|
|
17527
17610
|
/* @__PURE__ */ s.jsx(gS, { columns: Ce.length + 1, rows: o }),
|
|
17528
17611
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
17529
|
-
/* @__PURE__ */ s.jsx(
|
|
17612
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-4 w-48" }),
|
|
17530
17613
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
17531
|
-
/* @__PURE__ */ s.jsx(
|
|
17532
|
-
/* @__PURE__ */ s.jsx(
|
|
17533
|
-
/* @__PURE__ */ s.jsx(
|
|
17534
|
-
/* @__PURE__ */ s.jsx(
|
|
17535
|
-
/* @__PURE__ */ s.jsx(
|
|
17614
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-8 w-20" }),
|
|
17615
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-8 w-8" }),
|
|
17616
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-8 w-8" }),
|
|
17617
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-8 w-8" }),
|
|
17618
|
+
/* @__PURE__ */ s.jsx(Ke, { className: "h-8 w-20" })
|
|
17536
17619
|
] })
|
|
17537
17620
|
] })
|
|
17538
17621
|
] }) : /* @__PURE__ */ s.jsxs("div", { className: `space-y-4 ${a}`, children: [
|
|
@@ -17567,7 +17650,7 @@ function dP({
|
|
|
17567
17650
|
c?.export?.label ?? "Export CSV"
|
|
17568
17651
|
] }) : null,
|
|
17569
17652
|
!c?.clearFilters?.hide && fe && /* @__PURE__ */ s.jsxs(ge, { variant: "outline", onClick: k, children: [
|
|
17570
|
-
/* @__PURE__ */ s.jsx(
|
|
17653
|
+
/* @__PURE__ */ s.jsx(Ze, { className: "h-4 w-4 mr-2" }),
|
|
17571
17654
|
c?.clearFilters?.label ?? "Clear All"
|
|
17572
17655
|
] })
|
|
17573
17656
|
] }),
|
|
@@ -17644,7 +17727,7 @@ function dP({
|
|
|
17644
17727
|
)
|
|
17645
17728
|
] });
|
|
17646
17729
|
}
|
|
17647
|
-
const
|
|
17730
|
+
const rM = F.forwardRef(dP), uP = (e) => {
|
|
17648
17731
|
const { notFoundText: t, notFoundAction: n, icon: r, className: o } = e;
|
|
17649
17732
|
return /* @__PURE__ */ s.jsxs(
|
|
17650
17733
|
"div",
|
|
@@ -20205,7 +20288,7 @@ function Dg() {
|
|
|
20205
20288
|
return typeof x == "function" ? x : Dl;
|
|
20206
20289
|
}, [x]), te = Et(function() {
|
|
20207
20290
|
return typeof h == "function" ? h : Dl;
|
|
20208
|
-
}, [h]), Y =
|
|
20291
|
+
}, [h]), Y = Ye(null), J = Ye(null), U = Fg(mT, wi), X = Aa(U, 2), I = X[0], D = X[1], E = I.isFocused, O = I.isFileDialogActive, k = Ye(typeof window < "u" && window.isSecureContext && b && ZP()), T = function() {
|
|
20209
20292
|
!k.current && O && setTimeout(function() {
|
|
20210
20293
|
if (J.current) {
|
|
20211
20294
|
var ie = J.current.files;
|
|
@@ -20215,19 +20298,19 @@ function Dg() {
|
|
|
20215
20298
|
}
|
|
20216
20299
|
}, 300);
|
|
20217
20300
|
};
|
|
20218
|
-
|
|
20301
|
+
Te(function() {
|
|
20219
20302
|
return window.addEventListener("focus", T, !1), function() {
|
|
20220
20303
|
window.removeEventListener("focus", T, !1);
|
|
20221
20304
|
};
|
|
20222
20305
|
}, [J, O, te, k]);
|
|
20223
|
-
var M =
|
|
20306
|
+
var M = Ye([]), $ = function(ie) {
|
|
20224
20307
|
Y.current && Y.current.contains(ie.target) || (ie.preventDefault(), M.current = []);
|
|
20225
20308
|
};
|
|
20226
|
-
|
|
20309
|
+
Te(function() {
|
|
20227
20310
|
return w && (document.addEventListener("dragover", Ml, !1), document.addEventListener("drop", $, !1)), function() {
|
|
20228
20311
|
w && (document.removeEventListener("dragover", Ml), document.removeEventListener("drop", $));
|
|
20229
20312
|
};
|
|
20230
|
-
}, [Y, w]),
|
|
20313
|
+
}, [Y, w]), Te(function() {
|
|
20231
20314
|
return !r && y && Y.current && Y.current.focus(), function() {
|
|
20232
20315
|
};
|
|
20233
20316
|
}, [Y, y, r]);
|
|
@@ -20278,7 +20361,7 @@ function Dg() {
|
|
|
20278
20361
|
}, [Y, p, N]), K = he(function(ee, ie) {
|
|
20279
20362
|
var me = [], Ee = [];
|
|
20280
20363
|
ee.forEach(function(Le) {
|
|
20281
|
-
var Kt = jg(Le, z),
|
|
20364
|
+
var Kt = jg(Le, z), et = Aa(Kt, 2), Bn = et[0], mn = et[1], Xt = Pg(Le, i, a), tt = Aa(Xt, 2), hn = tt[0], pt = tt[1], Vn = A ? A(Le) : null;
|
|
20282
20365
|
if (Bn && hn && !Vn)
|
|
20283
20366
|
me.push(Le);
|
|
20284
20367
|
else {
|
|
@@ -20356,26 +20439,26 @@ function Dg() {
|
|
|
20356
20439
|
N && ie.stopPropagation();
|
|
20357
20440
|
}, Ie = Et(function() {
|
|
20358
20441
|
return function() {
|
|
20359
|
-
var ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ie = ee.refKey, me = ie === void 0 ? "ref" : ie, Ee = ee.role, Le = ee.onKeyDown, Kt = ee.onFocus,
|
|
20442
|
+
var ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ie = ee.refKey, me = ie === void 0 ? "ref" : ie, Ee = ee.role, Le = ee.onKeyDown, Kt = ee.onFocus, et = ee.onBlur, Bn = ee.onClick, mn = ee.onDragEnter, Xt = ee.onDragOver, tt = ee.onDragLeave, hn = ee.onDrop, pt = vo(ee, oT);
|
|
20360
20443
|
return Re(Re(yi({
|
|
20361
20444
|
onKeyDown: se(ft(Le, fe)),
|
|
20362
20445
|
onFocus: se(ft(Kt, Ce)),
|
|
20363
|
-
onBlur: se(ft(
|
|
20446
|
+
onBlur: se(ft(et, $e)),
|
|
20364
20447
|
onClick: Z(ft(Bn, Be)),
|
|
20365
20448
|
onDragEnter: ce(ft(mn, j)),
|
|
20366
20449
|
onDragOver: ce(ft(Xt, V)),
|
|
20367
|
-
onDragLeave: ce(ft(
|
|
20450
|
+
onDragLeave: ce(ft(tt, q)),
|
|
20368
20451
|
onDrop: ce(ft(hn, oe)),
|
|
20369
20452
|
role: typeof Ee == "string" && Ee !== "" ? Ee : "presentation"
|
|
20370
20453
|
}, me, Y), !r && !C ? {
|
|
20371
20454
|
tabIndex: 0
|
|
20372
20455
|
} : {}), pt);
|
|
20373
20456
|
};
|
|
20374
|
-
}, [Y, fe, Ce, $e, Be, j, V, q, oe, C, P, r]),
|
|
20457
|
+
}, [Y, fe, Ce, $e, Be, j, V, q, oe, C, P, r]), qe = he(function(ee) {
|
|
20375
20458
|
ee.stopPropagation();
|
|
20376
20459
|
}, []), Oe = Et(function() {
|
|
20377
20460
|
return function() {
|
|
20378
|
-
var ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ie = ee.refKey, me = ie === void 0 ? "ref" : ie, Ee = ee.onChange, Le = ee.onClick, Kt = vo(ee, aT),
|
|
20461
|
+
var ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ie = ee.refKey, me = ie === void 0 ? "ref" : ie, Ee = ee.onChange, Le = ee.onClick, Kt = vo(ee, aT), et = yi({
|
|
20379
20462
|
accept: z,
|
|
20380
20463
|
multiple: c,
|
|
20381
20464
|
type: "file",
|
|
@@ -20392,10 +20475,10 @@ function Dg() {
|
|
|
20392
20475
|
whiteSpace: "nowrap"
|
|
20393
20476
|
},
|
|
20394
20477
|
onChange: Z(ft(Ee, oe)),
|
|
20395
|
-
onClick: Z(ft(Le,
|
|
20478
|
+
onClick: Z(ft(Le, qe)),
|
|
20396
20479
|
tabIndex: -1
|
|
20397
20480
|
}, me, J);
|
|
20398
|
-
return Re(Re({},
|
|
20481
|
+
return Re(Re({}, et), Kt);
|
|
20399
20482
|
};
|
|
20400
20483
|
}, [J, n, c, oe, r]);
|
|
20401
20484
|
return Re(Re({}, I), {}, {
|
|
@@ -20455,7 +20538,7 @@ const Il = {
|
|
|
20455
20538
|
showPreview: !0,
|
|
20456
20539
|
showProgress: !0
|
|
20457
20540
|
};
|
|
20458
|
-
function
|
|
20541
|
+
function oM({
|
|
20459
20542
|
config: e = Il,
|
|
20460
20543
|
onFilesChange: t,
|
|
20461
20544
|
onFileUpload: n,
|
|
@@ -20576,14 +20659,14 @@ function rM({
|
|
|
20576
20659
|
size: "sm",
|
|
20577
20660
|
onClick: () => h(y.id),
|
|
20578
20661
|
disabled: c,
|
|
20579
|
-
children: /* @__PURE__ */ s.jsx(
|
|
20662
|
+
children: /* @__PURE__ */ s.jsx(Ze, { className: "h-4 w-4" })
|
|
20580
20663
|
}
|
|
20581
20664
|
)
|
|
20582
20665
|
] }, y.id))
|
|
20583
20666
|
] })
|
|
20584
20667
|
] });
|
|
20585
20668
|
}
|
|
20586
|
-
function
|
|
20669
|
+
function aM(e) {
|
|
20587
20670
|
const { triggerElement: t, steps: n } = e, [r, o] = pe(!1), [a, i] = pe(0), c = () => {
|
|
20588
20671
|
i((u) => u < n.length - 1 ? u + 1 : u);
|
|
20589
20672
|
}, l = () => {
|
|
@@ -20632,7 +20715,7 @@ function oM(e) {
|
|
|
20632
20715
|
] })
|
|
20633
20716
|
] });
|
|
20634
20717
|
}
|
|
20635
|
-
const
|
|
20718
|
+
const iM = (e) => /* @__PURE__ */ s.jsx("div", { className: "unreset", dangerouslySetInnerHTML: { __html: e.children } }), hT = (e) => {
|
|
20636
20719
|
const { execCommand: t } = e, n = () => {
|
|
20637
20720
|
const a = document.createElement("input");
|
|
20638
20721
|
a.type = "file", a.accept = "image/*", a.onchange = async (i) => {
|
|
@@ -20723,18 +20806,18 @@ const aM = (e) => /* @__PURE__ */ s.jsx("div", { className: "unreset", dangerous
|
|
|
20723
20806
|
/* @__PURE__ */ s.jsx(ge, { variant: "outline", size: "icon", onClick: n, type: "button", children: /* @__PURE__ */ s.jsx(hd, { size: 16 }) }),
|
|
20724
20807
|
/* @__PURE__ */ s.jsx(ge, { variant: "outline", size: "icon", onClick: r, type: "button", children: /* @__PURE__ */ s.jsx(ty, { size: 16 }) })
|
|
20725
20808
|
] });
|
|
20726
|
-
},
|
|
20809
|
+
}, sM = ({
|
|
20727
20810
|
initialValue: e = "",
|
|
20728
20811
|
onChange: t,
|
|
20729
20812
|
className: n
|
|
20730
20813
|
}) => {
|
|
20731
|
-
const r =
|
|
20732
|
-
|
|
20814
|
+
const r = Ye(null);
|
|
20815
|
+
Te(() => {
|
|
20733
20816
|
const i = new MutationObserver(() => {
|
|
20734
20817
|
t?.(r.current ? r.current.innerHTML : "");
|
|
20735
20818
|
});
|
|
20736
20819
|
r.current && i.observe(r.current, { childList: !0 });
|
|
20737
|
-
}, []),
|
|
20820
|
+
}, []), Te(() => {
|
|
20738
20821
|
r.current && (r.current.innerHTML = e);
|
|
20739
20822
|
}, []);
|
|
20740
20823
|
const o = () => {
|
|
@@ -20754,9 +20837,9 @@ const aM = (e) => /* @__PURE__ */ s.jsx("div", { className: "unreset", dangerous
|
|
|
20754
20837
|
}
|
|
20755
20838
|
)
|
|
20756
20839
|
] });
|
|
20757
|
-
},
|
|
20758
|
-
const { observerOptions: t, images: n, classNames: r } = e, [o, a] = pe([]), i =
|
|
20759
|
-
return
|
|
20840
|
+
}, cM = (e) => {
|
|
20841
|
+
const { observerOptions: t, images: n, classNames: r } = e, [o, a] = pe([]), i = Ye(null);
|
|
20842
|
+
return Te(() => {
|
|
20760
20843
|
const c = {
|
|
20761
20844
|
root: document.querySelector(".image-gallery"),
|
|
20762
20845
|
rootMargin: "0px",
|
|
@@ -20771,7 +20854,7 @@ const aM = (e) => /* @__PURE__ */ s.jsx("div", { className: "unreset", dangerous
|
|
|
20771
20854
|
}
|
|
20772
20855
|
});
|
|
20773
20856
|
}, c), () => i.current?.disconnect();
|
|
20774
|
-
}, []),
|
|
20857
|
+
}, []), Te(() => {
|
|
20775
20858
|
document.querySelectorAll(".image-cell").forEach((l) => i.current?.observe(l));
|
|
20776
20859
|
}, [n]), /* @__PURE__ */ s.jsx(
|
|
20777
20860
|
"div",
|
|
@@ -20802,7 +20885,7 @@ const aM = (e) => /* @__PURE__ */ s.jsx("div", { className: "unreset", dangerous
|
|
|
20802
20885
|
))
|
|
20803
20886
|
}
|
|
20804
20887
|
);
|
|
20805
|
-
},
|
|
20888
|
+
}, lM = (e) => {
|
|
20806
20889
|
const {
|
|
20807
20890
|
currentMonth: t,
|
|
20808
20891
|
currentYear: n,
|
|
@@ -20879,7 +20962,7 @@ const aM = (e) => /* @__PURE__ */ s.jsx("div", { className: "unreset", dangerous
|
|
|
20879
20962
|
lg: { left: "pl-10", right: "pr-10" },
|
|
20880
20963
|
xl: { left: "pl-12", right: "pr-12" }
|
|
20881
20964
|
};
|
|
20882
|
-
function
|
|
20965
|
+
function dM({
|
|
20883
20966
|
value: e,
|
|
20884
20967
|
defaultValue: t = 0,
|
|
20885
20968
|
onChange: n,
|
|
@@ -21003,7 +21086,7 @@ const Fl = ({
|
|
|
21003
21086
|
counterText: c,
|
|
21004
21087
|
showItemsCounter: i
|
|
21005
21088
|
}
|
|
21006
|
-
) }),
|
|
21089
|
+
) }), uM = (e) => {
|
|
21007
21090
|
const {
|
|
21008
21091
|
data: t = [],
|
|
21009
21092
|
perPage: n = 50,
|
|
@@ -21015,10 +21098,10 @@ const Fl = ({
|
|
|
21015
21098
|
showItemsCounter: l = !0,
|
|
21016
21099
|
loadingVariant: u = "loader"
|
|
21017
21100
|
} = e, [p, f] = pe(t);
|
|
21018
|
-
|
|
21101
|
+
Te(() => {
|
|
21019
21102
|
f(t), m(1);
|
|
21020
21103
|
}, [t]);
|
|
21021
|
-
const [g, m] = pe(r), v = Math.ceil(p.length / n), h = (g - 1) * n, x = g * n, b = p.slice(h, x), y = c ? /* @__PURE__ */ s.jsx("section", { className: "w-full", children: u === "loader" ? /* @__PURE__ */ s.jsx(kR, { size: "lg" }) : /* @__PURE__ */ s.jsx(
|
|
21104
|
+
const [g, m] = pe(r), v = Math.ceil(p.length / n), h = (g - 1) * n, x = g * n, b = p.slice(h, x), y = c ? /* @__PURE__ */ s.jsx("section", { className: "w-full", children: u === "loader" ? /* @__PURE__ */ s.jsx(kR, { size: "lg" }) : /* @__PURE__ */ s.jsx(Ke, { className: "h-12 w-full", repeat: n }) }) : p.length === 0 ? i : void 0;
|
|
21022
21105
|
return /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-4 items-end", children: [
|
|
21023
21106
|
/* @__PURE__ */ s.jsx(
|
|
21024
21107
|
Fl,
|
|
@@ -21048,7 +21131,7 @@ const Fl = ({
|
|
|
21048
21131
|
}
|
|
21049
21132
|
)
|
|
21050
21133
|
] });
|
|
21051
|
-
},
|
|
21134
|
+
}, pM = ({
|
|
21052
21135
|
fixed: e,
|
|
21053
21136
|
isOpen: t,
|
|
21054
21137
|
onToggle: n,
|
|
@@ -21057,12 +21140,12 @@ const Fl = ({
|
|
|
21057
21140
|
direction: a = "left",
|
|
21058
21141
|
blockClickOutSide: i = !1
|
|
21059
21142
|
}) => {
|
|
21060
|
-
const [c, l] = pe(!0), u =
|
|
21143
|
+
const [c, l] = pe(!0), u = Ye(null), p = Ye(null), f = t !== void 0 ? t : c, g = () => {
|
|
21061
21144
|
e || (n ? n(!1) : l(!1), p.current?.focus());
|
|
21062
21145
|
}, m = (y) => {
|
|
21063
21146
|
u.current && !u.current.contains(y.target) && !e && !i && g();
|
|
21064
21147
|
};
|
|
21065
|
-
|
|
21148
|
+
Te(() => {
|
|
21066
21149
|
if (!e)
|
|
21067
21150
|
return document.addEventListener("mousedown", m), () => {
|
|
21068
21151
|
document.removeEventListener("mousedown", m);
|
|
@@ -21124,7 +21207,7 @@ const Fl = ({
|
|
|
21124
21207
|
),
|
|
21125
21208
|
e && /* @__PURE__ */ s.jsx("div", { className: "min-w-72 relative" })
|
|
21126
21209
|
] });
|
|
21127
|
-
},
|
|
21210
|
+
}, fM = ({
|
|
21128
21211
|
children: e,
|
|
21129
21212
|
className: t
|
|
21130
21213
|
}) => /* @__PURE__ */ s.jsx(
|
|
@@ -21134,16 +21217,16 @@ const Fl = ({
|
|
|
21134
21217
|
"aria-label": "Sidebar header",
|
|
21135
21218
|
children: e
|
|
21136
21219
|
}
|
|
21137
|
-
),
|
|
21220
|
+
), mM = ({
|
|
21138
21221
|
children: e,
|
|
21139
21222
|
className: t
|
|
21140
|
-
}) => /* @__PURE__ */ s.jsx("div", { className: _("p-4", t), "aria-label": "Sidebar body", children: e }),
|
|
21223
|
+
}) => /* @__PURE__ */ s.jsx("div", { className: _("p-4", t), "aria-label": "Sidebar body", children: e }), hM = ({
|
|
21141
21224
|
children: e,
|
|
21142
21225
|
className: t
|
|
21143
|
-
}) => /* @__PURE__ */ s.jsx("nav", { "aria-label": "Sidebar navigation", className: t, children: e }),
|
|
21226
|
+
}) => /* @__PURE__ */ s.jsx("nav", { "aria-label": "Sidebar navigation", className: t, children: e }), gM = ({
|
|
21144
21227
|
children: e,
|
|
21145
21228
|
className: t
|
|
21146
|
-
}) => /* @__PURE__ */ s.jsx("ul", { className: _("flex flex-col gap-2 my-4 px-4", t), children: e }),
|
|
21229
|
+
}) => /* @__PURE__ */ s.jsx("ul", { className: _("flex flex-col gap-2 my-4 px-4", t), children: e }), vM = ({
|
|
21147
21230
|
children: e,
|
|
21148
21231
|
className: t,
|
|
21149
21232
|
onClick: n
|
|
@@ -21157,7 +21240,7 @@ const Fl = ({
|
|
|
21157
21240
|
onClick: n,
|
|
21158
21241
|
children: e
|
|
21159
21242
|
}
|
|
21160
|
-
),
|
|
21243
|
+
), xM = ({
|
|
21161
21244
|
children: e,
|
|
21162
21245
|
className: t
|
|
21163
21246
|
}) => /* @__PURE__ */ s.jsx("footer", { className: _("mt-auto p-4 text-sm", t), "aria-label": "Sidebar footer", children: e });
|
|
@@ -21205,7 +21288,7 @@ export {
|
|
|
21205
21288
|
bm as CommandSeparator,
|
|
21206
21289
|
Fk as CommandShortcut,
|
|
21207
21290
|
Lk as CurrencyInput,
|
|
21208
|
-
|
|
21291
|
+
rM as DataTable,
|
|
21209
21292
|
ms as Dialog,
|
|
21210
21293
|
o_ as DialogClose,
|
|
21211
21294
|
Yo as DialogContent,
|
|
@@ -21214,7 +21297,7 @@ export {
|
|
|
21214
21297
|
hs as DialogHeader,
|
|
21215
21298
|
hm as DialogOverlay,
|
|
21216
21299
|
Ok as DialogPortal,
|
|
21217
|
-
|
|
21300
|
+
G_ as DialogProvider,
|
|
21218
21301
|
gs as DialogTitle,
|
|
21219
21302
|
Ik as DialogTrigger,
|
|
21220
21303
|
SC as DropdownMenu,
|
|
@@ -21233,14 +21316,14 @@ export {
|
|
|
21233
21316
|
kC as DropdownMenuSubTrigger,
|
|
21234
21317
|
EC as DropdownMenuTrigger,
|
|
21235
21318
|
uP as EmptyItems,
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
|
|
21239
|
-
|
|
21319
|
+
oM as FileUploadDropzone,
|
|
21320
|
+
aM as HelpCarousel,
|
|
21321
|
+
iM as HtmlTextArea,
|
|
21322
|
+
sM as HtmlTextEditor,
|
|
21240
21323
|
Cr as Input,
|
|
21241
21324
|
Vk as Label,
|
|
21242
|
-
|
|
21243
|
-
|
|
21325
|
+
cM as LazyImageGallery,
|
|
21326
|
+
lM as MonthNavigator,
|
|
21244
21327
|
sN as MultiSelect,
|
|
21245
21328
|
l_ as NavigationMenu,
|
|
21246
21329
|
f_ as NavigationMenuContent,
|
|
@@ -21250,8 +21333,8 @@ export {
|
|
|
21250
21333
|
d_ as NavigationMenuList,
|
|
21251
21334
|
p_ as NavigationMenuTrigger,
|
|
21252
21335
|
MN as NavigationMenuViewport,
|
|
21253
|
-
|
|
21254
|
-
|
|
21336
|
+
dM as NumberStepper,
|
|
21337
|
+
uM as PaginatedItems,
|
|
21255
21338
|
AN as Pagination,
|
|
21256
21339
|
DN as PaginationContent,
|
|
21257
21340
|
wg as PaginationControls,
|
|
@@ -21287,14 +21370,14 @@ export {
|
|
|
21287
21370
|
S_ as SheetHeader,
|
|
21288
21371
|
k_ as SheetTitle,
|
|
21289
21372
|
y_ as SheetTrigger,
|
|
21290
|
-
|
|
21291
|
-
|
|
21292
|
-
|
|
21293
|
-
|
|
21294
|
-
|
|
21295
|
-
|
|
21296
|
-
|
|
21297
|
-
|
|
21373
|
+
pM as Sidebar,
|
|
21374
|
+
mM as SidebarBody,
|
|
21375
|
+
xM as SidebarFooter,
|
|
21376
|
+
fM as SidebarHeader,
|
|
21377
|
+
gM as SidebarList,
|
|
21378
|
+
vM as SidebarListItem,
|
|
21379
|
+
hM as SidebarNav,
|
|
21380
|
+
Ke as Skeleton,
|
|
21298
21381
|
j_ as Slider,
|
|
21299
21382
|
kR as Spinner,
|
|
21300
21383
|
_R as Switch,
|
|
@@ -21310,15 +21393,16 @@ export {
|
|
|
21310
21393
|
O_ as TabsContent,
|
|
21311
21394
|
D_ as TabsList,
|
|
21312
21395
|
I_ as TabsTrigger,
|
|
21396
|
+
$_ as TagInput,
|
|
21313
21397
|
zR as Textarea,
|
|
21314
|
-
|
|
21398
|
+
L_ as Toaster,
|
|
21315
21399
|
mj as Toggle,
|
|
21316
21400
|
bj as ToggleGroup,
|
|
21317
21401
|
yj as ToggleGroupItem,
|
|
21318
|
-
|
|
21319
|
-
|
|
21402
|
+
V_ as Tooltip,
|
|
21403
|
+
H_ as TooltipContent,
|
|
21320
21404
|
Vj as TooltipProvider,
|
|
21321
|
-
|
|
21405
|
+
W_ as TooltipTrigger,
|
|
21322
21406
|
Ey as badgeVariants,
|
|
21323
21407
|
Ri as buttonVariants,
|
|
21324
21408
|
FT as capitalize,
|
|
@@ -21351,18 +21435,18 @@ export {
|
|
|
21351
21435
|
AT as sortNormalize,
|
|
21352
21436
|
P_ as spinnerColors,
|
|
21353
21437
|
T_ as spinnerSizes,
|
|
21354
|
-
|
|
21438
|
+
F_ as toast,
|
|
21355
21439
|
Qh as toggleVariants,
|
|
21356
|
-
|
|
21357
|
-
|
|
21440
|
+
U_ as useArray,
|
|
21441
|
+
Y_ as useCopyToClipboard,
|
|
21358
21442
|
Wj as useDebounce,
|
|
21359
|
-
|
|
21360
|
-
|
|
21361
|
-
|
|
21362
|
-
|
|
21363
|
-
|
|
21364
|
-
|
|
21365
|
-
|
|
21366
|
-
|
|
21367
|
-
|
|
21443
|
+
q_ as useDialog,
|
|
21444
|
+
K_ as useDisclosure,
|
|
21445
|
+
X_ as useDisclosureBool,
|
|
21446
|
+
Z_ as useFileUtilities,
|
|
21447
|
+
tM as useIsMobile,
|
|
21448
|
+
Q_ as useKeyPress,
|
|
21449
|
+
J_ as useLocalStorage,
|
|
21450
|
+
eM as useMediaQuery,
|
|
21451
|
+
nM as usePWAInstall
|
|
21368
21452
|
};
|