@sequenceholdings/atlas-ui 0.3.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -57
- package/dist/index.mjs +321 -383
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -49,7 +49,7 @@ function oe(e) {
|
|
|
49
49
|
minute: "2-digit"
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function B(e) {
|
|
53
53
|
if (e < 1e3) return `${Math.round(e)}ms`;
|
|
54
54
|
let t = Math.floor(e / 1e3);
|
|
55
55
|
if (t < 60) return `${(e / 1e3).toFixed(1)}s`;
|
|
@@ -58,12 +58,12 @@ function se(e) {
|
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region ../../../atlas/src/shared/contexts/PortalContainerContext.tsx
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
return m.useContext(
|
|
61
|
+
var se = m.createContext({ container: null });
|
|
62
|
+
function ce() {
|
|
63
|
+
return m.useContext(se).container;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return m.useContext(
|
|
65
|
+
function le() {
|
|
66
|
+
return m.useContext(se).appClassName;
|
|
67
67
|
}
|
|
68
68
|
function ue({ children: e, appClassName: t }) {
|
|
69
69
|
let [n, r] = m.useState(null), i = m.useCallback((e) => {
|
|
@@ -72,7 +72,7 @@ function ue({ children: e, appClassName: t }) {
|
|
|
72
72
|
container: n,
|
|
73
73
|
appClassName: t
|
|
74
74
|
}), [n, t]);
|
|
75
|
-
return /* @__PURE__ */ O(
|
|
75
|
+
return /* @__PURE__ */ O(se.Provider, {
|
|
76
76
|
value: a,
|
|
77
77
|
children: /* @__PURE__ */ O("div", {
|
|
78
78
|
ref: i,
|
|
@@ -634,13 +634,13 @@ function nt(e) {
|
|
|
634
634
|
return t && r.push(t), n && r.push(n), r;
|
|
635
635
|
}
|
|
636
636
|
var rt = (e) => {
|
|
637
|
-
let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = h.useState(null), [k, A] = h.useState(null), [j, M] = h.useState(!1), [N, P] = h.useState(!1), [F, I] = h.useState(!1), [L, ee] = h.useState(!1), [R, z] = h.useState(!1), [te, ne] = h.useState(0), [re, ie] = h.useState(0), ae = h.useRef(n.duration || b || Xe), oe = h.useRef(null),
|
|
637
|
+
let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = h.useState(null), [k, A] = h.useState(null), [j, M] = h.useState(!1), [N, P] = h.useState(!1), [F, I] = h.useState(!1), [L, ee] = h.useState(!1), [R, z] = h.useState(!1), [te, ne] = h.useState(0), [re, ie] = h.useState(0), ae = h.useRef(n.duration || b || Xe), oe = h.useRef(null), B = h.useRef(null), se = c === 0, ce = c + 1 <= o, le = n.type, ue = n.dismissible !== !1, de = n.className || "", fe = n.descriptionClassName || "", pe = h.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), me = h.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), V = h.useMemo(() => n.duration || b || Xe, [n.duration, b]), he = h.useRef(0), ge = h.useRef(0), _e = h.useRef(0), ve = h.useRef(null), [ye, be] = x.split("-"), xe = h.useMemo(() => s.reduce((e, t, n) => n >= pe ? e : e + t.height, 0), [s, pe]), Se = Ve(), Ce = n.invert || t, we = le === "loading";
|
|
638
638
|
ge.current = h.useMemo(() => pe * S + xe, [pe, xe]), h.useEffect(() => {
|
|
639
639
|
ae.current = V;
|
|
640
640
|
}, [V]), h.useEffect(() => {
|
|
641
641
|
M(!0);
|
|
642
642
|
}, []), h.useEffect(() => {
|
|
643
|
-
let e =
|
|
643
|
+
let e = B.current;
|
|
644
644
|
if (e) {
|
|
645
645
|
let t = e.getBoundingClientRect().height;
|
|
646
646
|
return ie(t), a((e) => [{
|
|
@@ -651,7 +651,7 @@ var rt = (e) => {
|
|
|
651
651
|
}
|
|
652
652
|
}, [a, n.id]), h.useLayoutEffect(() => {
|
|
653
653
|
if (!j) return;
|
|
654
|
-
let e =
|
|
654
|
+
let e = B.current, t = e.style.height;
|
|
655
655
|
e.style.height = "auto";
|
|
656
656
|
let r = e.getBoundingClientRect().height;
|
|
657
657
|
e.style.height = t, ie(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
|
|
@@ -683,7 +683,7 @@ var rt = (e) => {
|
|
|
683
683
|
ge
|
|
684
684
|
]);
|
|
685
685
|
h.useEffect(() => {
|
|
686
|
-
if (n.promise &&
|
|
686
|
+
if (n.promise && le === "loading" || n.duration === Infinity || n.type === "loading") return;
|
|
687
687
|
let e;
|
|
688
688
|
return u || i || Se ? (() => {
|
|
689
689
|
if (_e.current < he.current) {
|
|
@@ -698,7 +698,7 @@ var rt = (e) => {
|
|
|
698
698
|
u,
|
|
699
699
|
i,
|
|
700
700
|
n,
|
|
701
|
-
|
|
701
|
+
le,
|
|
702
702
|
Se,
|
|
703
703
|
Te
|
|
704
704
|
]), h.useEffect(() => {
|
|
@@ -707,17 +707,17 @@ var rt = (e) => {
|
|
|
707
707
|
function Ee() {
|
|
708
708
|
return T?.loading ? /*#__PURE__*/ h.createElement("div", {
|
|
709
709
|
className: tt(w?.loader, n?.classNames?.loader, "sonner-loader"),
|
|
710
|
-
"data-visible":
|
|
710
|
+
"data-visible": le === "loading"
|
|
711
711
|
}, T.loading) : /*#__PURE__*/ h.createElement(Fe, {
|
|
712
712
|
className: tt(w?.loader, n?.classNames?.loader),
|
|
713
|
-
visible:
|
|
713
|
+
visible: le === "loading"
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
|
-
let De = n.icon || T?.[
|
|
716
|
+
let De = n.icon || T?.[le] || Ne(le);
|
|
717
717
|
return /*#__PURE__*/ h.createElement("li", {
|
|
718
718
|
tabIndex: 0,
|
|
719
|
-
ref:
|
|
720
|
-
className: tt(v, de, w?.toast, n?.classNames?.toast, w?.default, w?.[
|
|
719
|
+
ref: B,
|
|
720
|
+
className: tt(v, de, w?.toast, n?.classNames?.toast, w?.default, w?.[le], n?.classNames?.[le]),
|
|
721
721
|
"data-sonner-toast": "",
|
|
722
722
|
"data-rich-colors": n.richColors ?? f,
|
|
723
723
|
"data-styled": !(n.jsx || n.unstyled || r),
|
|
@@ -725,14 +725,14 @@ var rt = (e) => {
|
|
|
725
725
|
"data-promise": !!n.promise,
|
|
726
726
|
"data-swiped": R,
|
|
727
727
|
"data-removed": N,
|
|
728
|
-
"data-visible":
|
|
728
|
+
"data-visible": ce,
|
|
729
729
|
"data-y-position": ye,
|
|
730
730
|
"data-x-position": be,
|
|
731
731
|
"data-index": c,
|
|
732
|
-
"data-front":
|
|
732
|
+
"data-front": se,
|
|
733
733
|
"data-swiping": F,
|
|
734
734
|
"data-dismissible": ue,
|
|
735
|
-
"data-type":
|
|
735
|
+
"data-type": le,
|
|
736
736
|
"data-invert": Ce,
|
|
737
737
|
"data-swipe-out": L,
|
|
738
738
|
"data-swipe-direction": k,
|
|
@@ -759,13 +759,13 @@ var rt = (e) => {
|
|
|
759
759
|
onPointerUp: () => {
|
|
760
760
|
if (L || !ue) return;
|
|
761
761
|
ve.current = null;
|
|
762
|
-
let e = Number(
|
|
762
|
+
let e = Number(B.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(B.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - oe.current?.getTime(), i = D === "x" ? e : t, a = Math.abs(i) / r;
|
|
763
763
|
if (Math.abs(i) >= $e || a > .11) {
|
|
764
764
|
ne(ge.current), n.onDismiss == null || n.onDismiss.call(n, n), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Te(), ee(!0);
|
|
765
765
|
return;
|
|
766
766
|
} else {
|
|
767
767
|
var o, s;
|
|
768
|
-
(o =
|
|
768
|
+
(o = B.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = B.current) == null || s.style.setProperty("--swipe-amount-y", "0px");
|
|
769
769
|
}
|
|
770
770
|
z(!1), I(!1), O(null);
|
|
771
771
|
},
|
|
@@ -789,9 +789,9 @@ var rt = (e) => {
|
|
|
789
789
|
let e = a * c(a);
|
|
790
790
|
s.x = Math.abs(e) < Math.abs(a) ? e : a;
|
|
791
791
|
}
|
|
792
|
-
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && z(!0), (n =
|
|
792
|
+
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && z(!0), (n = B.current) == null || n.style.setProperty("--swipe-amount-x", `${s.x}px`), (r = B.current) == null || r.style.setProperty("--swipe-amount-y", `${s.y}px`);
|
|
793
793
|
}
|
|
794
|
-
}, me && !n.jsx &&
|
|
794
|
+
}, me && !n.jsx && le !== "loading" ? /*#__PURE__*/ h.createElement("button", {
|
|
795
795
|
"aria-label": E,
|
|
796
796
|
"data-disabled": we,
|
|
797
797
|
"data-close-button": !0,
|
|
@@ -799,7 +799,7 @@ var rt = (e) => {
|
|
|
799
799
|
Te(), n.onDismiss == null || n.onDismiss.call(n, n);
|
|
800
800
|
},
|
|
801
801
|
className: tt(w?.closeButton, n?.classNames?.closeButton)
|
|
802
|
-
}, T?.close ?? Be) : null, (
|
|
802
|
+
}, T?.close ?? Be) : null, (le || n.icon || n.promise) && n.icon !== null && (T?.[le] !== null || n.icon) ? /*#__PURE__*/ h.createElement("div", {
|
|
803
803
|
"data-icon": "",
|
|
804
804
|
className: tt(w?.icon, n?.classNames?.icon)
|
|
805
805
|
}, n.promise || n.type === "loading" && !n.icon ? n.icon || Ee() : null, n.type === "loading" ? null : De) : null, /*#__PURE__*/ h.createElement("div", {
|
|
@@ -3877,7 +3877,7 @@ function ns(e) {
|
|
|
3877
3877
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
3878
3878
|
}
|
|
3879
3879
|
var rs = jo, is = Fo, as = Lo, os = Vo, ss = Uo, cs = Xo, ls = rs, us = is, ds = as, fs = m.forwardRef(({ className: e, sideOffset: t = 6, container: n, children: i, ...a }, o) => {
|
|
3880
|
-
let s =
|
|
3880
|
+
let s = ce();
|
|
3881
3881
|
return /* @__PURE__ */ O(os, {
|
|
3882
3882
|
container: (n === void 0 ? s : n) ?? void 0,
|
|
3883
3883
|
children: /* @__PURE__ */ k(ss, {
|
|
@@ -6266,7 +6266,7 @@ var cp = Mf, lp = Pf, up = If, dp = Rf, fp = Bf, pp = Hf, mp = Wf, hp = Kf, gp =
|
|
|
6266
6266
|
}));
|
|
6267
6267
|
kp.displayName = xp.displayName;
|
|
6268
6268
|
var Ap = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(up, {
|
|
6269
|
-
container:
|
|
6269
|
+
container: ce() ?? void 0,
|
|
6270
6270
|
children: /* @__PURE__ */ O(Sp, {
|
|
6271
6271
|
"data-density": "default",
|
|
6272
6272
|
ref: n,
|
|
@@ -6276,7 +6276,7 @@ var Ap = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(up, {
|
|
|
6276
6276
|
}));
|
|
6277
6277
|
Ap.displayName = Sp.displayName;
|
|
6278
6278
|
var jp = m.forwardRef(({ className: e, sideOffset: t = 4, ...n }, i) => /* @__PURE__ */ O(up, {
|
|
6279
|
-
container:
|
|
6279
|
+
container: ce() ?? void 0,
|
|
6280
6280
|
children: /* @__PURE__ */ O(dp, {
|
|
6281
6281
|
"data-density": "default",
|
|
6282
6282
|
ref: i,
|
|
@@ -8697,7 +8697,7 @@ function e_(e) {
|
|
|
8697
8697
|
return e ? "open" : "closed";
|
|
8698
8698
|
}
|
|
8699
8699
|
var t_ = Fg, n_ = Lg, r_ = zg, i_ = Ug, a_ = Gg, o_ = t_, s_ = r_, c_ = n_, l_ = m.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ O(i_, {
|
|
8700
|
-
container:
|
|
8700
|
+
container: ce() ?? void 0,
|
|
8701
8701
|
children: /* @__PURE__ */ O(a_, {
|
|
8702
8702
|
"data-density": "default",
|
|
8703
8703
|
ref: a,
|
|
@@ -9396,7 +9396,7 @@ function Jv(e) {
|
|
|
9396
9396
|
//#endregion
|
|
9397
9397
|
//#region ../../../atlas/src/shared/components/ui/use-overlay-portal-target.ts
|
|
9398
9398
|
function Yv({ container: e, escapeMfeContainment: t, fallbackId: n }) {
|
|
9399
|
-
let r =
|
|
9399
|
+
let r = ce(), i = le(), [a, o] = m.useState(null), s = !e && t ? r?.closest("[data-mfe-container]")?.getAttribute("data-overlay-portal-class") ?? null : null, c = !e && t && r?.closest("[data-mfe-container]") != null ? null : r;
|
|
9400
9400
|
return m.useLayoutEffect(() => {
|
|
9401
9401
|
if (e || c) {
|
|
9402
9402
|
o(null);
|
|
@@ -10115,22 +10115,22 @@ function rb(e) {
|
|
|
10115
10115
|
};
|
|
10116
10116
|
}
|
|
10117
10117
|
function ib({ columns: e, data: t, selectable: n = !1, getRowId: i, selectedRowIds: a, onSelectionChange: o, enableRowSelection: s, rowActions: c, getRowLabel: l, searchable: u, filters: d, toolbar: f, actions: p, footer: h, pageSize: g = 50, disablePagination: _, resizableColumns: v = !1, columnSizingStorageKey: y, defaultSort: b, manualPagination: x = !1, rowCount: S, pageIndex: C, onPageChange: w, manualSorting: T = !1, sorting: E, onSortingChange: A, manualFiltering: j = !1, columnFilters: M, onColumnFiltersChange: N, loading: P = !1, emptyMessage: F = "No data", onRowClick: I, rowHref: L, rowClassName: ee, minWidth: R, height: z, bordered: te = !0, variant: ne = "table", ariaLabel: re, className: ie }) {
|
|
10118
|
-
let ae = m.useMemo(() => u ? typeof u == "object" ? u : {} : null, [u]), [oe,
|
|
10118
|
+
let ae = m.useMemo(() => u ? typeof u == "object" ? u : {} : null, [u]), [oe, B] = m.useState(b ?? []), se = T ? E ?? [] : oe, ce = m.useCallback((e) => {
|
|
10119
10119
|
if (T) {
|
|
10120
10120
|
let t = typeof e == "function" ? e(E ?? []) : e;
|
|
10121
10121
|
A?.(t);
|
|
10122
|
-
} else
|
|
10122
|
+
} else B(e);
|
|
10123
10123
|
}, [
|
|
10124
10124
|
T,
|
|
10125
10125
|
E,
|
|
10126
10126
|
A
|
|
10127
|
-
]), [
|
|
10127
|
+
]), [le, ue] = m.useState({
|
|
10128
10128
|
pageIndex: 0,
|
|
10129
10129
|
pageSize: g
|
|
10130
10130
|
}), de = x ? {
|
|
10131
10131
|
pageIndex: C ?? 0,
|
|
10132
10132
|
pageSize: g
|
|
10133
|
-
} :
|
|
10133
|
+
} : le, fe = m.useCallback((e) => {
|
|
10134
10134
|
if (x) {
|
|
10135
10135
|
let t = {
|
|
10136
10136
|
pageIndex: C ?? 0,
|
|
@@ -10247,7 +10247,7 @@ function ib({ columns: e, data: t, selectable: n = !1, getRowId: i, selectedRowI
|
|
|
10247
10247
|
data: Me,
|
|
10248
10248
|
columns: Oe,
|
|
10249
10249
|
state: {
|
|
10250
|
-
sorting:
|
|
10250
|
+
sorting: se,
|
|
10251
10251
|
pagination: de,
|
|
10252
10252
|
...v ? { columnSizing: xe } : {},
|
|
10253
10253
|
...V ? { columnFilters: _e } : {},
|
|
@@ -10256,7 +10256,7 @@ function ib({ columns: e, data: t, selectable: n = !1, getRowId: i, selectedRowI
|
|
|
10256
10256
|
getRowId: i ? (e) => i(e) : void 0,
|
|
10257
10257
|
enableRowSelection: n ? s ? (e) => s(e.original) : !0 : !1,
|
|
10258
10258
|
onRowSelectionChange: n ? De : void 0,
|
|
10259
|
-
onSortingChange:
|
|
10259
|
+
onSortingChange: ce,
|
|
10260
10260
|
onPaginationChange: fe,
|
|
10261
10261
|
onColumnFiltersChange: V ? ve : void 0,
|
|
10262
10262
|
getFilteredRowModel: V && !j ? qh() : void 0,
|
|
@@ -12669,7 +12669,7 @@ DS.displayName = "EditorSection";
|
|
|
12669
12669
|
//#region ../../../atlas/src/shared/components/ui/sheet.tsx
|
|
12670
12670
|
var OS = av, kS = ov, AS = fv;
|
|
12671
12671
|
function jS({ container: e, ...t }) {
|
|
12672
|
-
let n =
|
|
12672
|
+
let n = ce(), r = le(), [i, a] = m.useState(null);
|
|
12673
12673
|
return m.useLayoutEffect(() => {
|
|
12674
12674
|
if (e || n) return;
|
|
12675
12675
|
let t = document.createElement("div");
|
|
@@ -12984,7 +12984,7 @@ var GC = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(LC, {
|
|
|
12984
12984
|
}));
|
|
12985
12985
|
GC.displayName = LC.displayName;
|
|
12986
12986
|
var KC = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(TC, {
|
|
12987
|
-
container:
|
|
12987
|
+
container: ce() ?? void 0,
|
|
12988
12988
|
children: /* @__PURE__ */ O(EC, {
|
|
12989
12989
|
"data-density": "default",
|
|
12990
12990
|
ref: n,
|
|
@@ -13256,7 +13256,7 @@ function ww(e) {
|
|
|
13256
13256
|
return t;
|
|
13257
13257
|
}
|
|
13258
13258
|
var Tw = dw, Ew = pw, Dw = _w, Ow = yw, kw = Tw, Aw = Ew, jw = m.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ O(Dw, {
|
|
13259
|
-
container:
|
|
13259
|
+
container: ce() ?? void 0,
|
|
13260
13260
|
children: /* @__PURE__ */ O(Ow, {
|
|
13261
13261
|
"data-density": "default",
|
|
13262
13262
|
ref: a,
|
|
@@ -16666,7 +16666,7 @@ function uA(e) {
|
|
|
16666
16666
|
...t,
|
|
16667
16667
|
today: o.today()
|
|
16668
16668
|
});
|
|
16669
|
-
let { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: p, onDayClick: m, onDayFocus: g, onDayKeyDown: _, onDayMouseEnter: v, onDayMouseLeave: b, onNextClick: x, onPrevClick: S, showWeekNumber: C, styles: E } = t, { formatCaption: D, formatDay: O, formatMonthDropdown: k, formatWeekNumber: A, formatWeekNumberHeader: j, formatWeekdayName: M, formatYearDropdown: N } = i, P = Gk(t, o), { days: F, months: I, navStart: L, navEnd: ee, previousMonth: R, nextMonth: z, goToMonth: te } = P, ne = UO(F, t, L, ee, o), { isSelected: re, select: ie, selected: ae } = aA(t, o) ?? {}, { blur: oe, focused:
|
|
16669
|
+
let { captionLayout: l, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: p, onDayClick: m, onDayFocus: g, onDayKeyDown: _, onDayMouseEnter: v, onDayMouseLeave: b, onNextClick: x, onPrevClick: S, showWeekNumber: C, styles: E } = t, { formatCaption: D, formatDay: O, formatMonthDropdown: k, formatWeekNumber: A, formatWeekNumberHeader: j, formatWeekdayName: M, formatYearDropdown: N } = i, P = Gk(t, o), { days: F, months: I, navStart: L, navEnd: ee, previousMonth: R, nextMonth: z, goToMonth: te } = P, ne = UO(F, t, L, ee, o), { isSelected: re, select: ie, selected: ae } = aA(t, o) ?? {}, { blur: oe, focused: B, isFocusTarget: se, moveFocus: ce, setFocused: le } = Zk(t, P, ne, re ?? (() => !1), o), { labelDayButton: ue, labelGridcell: de, labelGrid: fe, labelMonthDropdown: pe, labelNav: me, labelPrevious: V, labelNext: he, labelWeekday: ge, labelWeekNumber: _e, labelWeekNumberHeader: ve, labelYearDropdown: ye } = a, be = w(() => wk(o, t.ISOWeek, t.broadcastCalendar, t.today), [
|
|
16670
16670
|
o,
|
|
16671
16671
|
t.ISOWeek,
|
|
16672
16672
|
t.broadcastCalendar,
|
|
@@ -16684,14 +16684,14 @@ function uA(e) {
|
|
|
16684
16684
|
z,
|
|
16685
16685
|
x
|
|
16686
16686
|
]), we = y((e, t) => (n) => {
|
|
16687
|
-
n.preventDefault(), n.stopPropagation(),
|
|
16687
|
+
n.preventDefault(), n.stopPropagation(), le(e), !t.disabled && (ie?.(e.date, t, n), m?.(e.date, t, n));
|
|
16688
16688
|
}, [
|
|
16689
16689
|
ie,
|
|
16690
16690
|
m,
|
|
16691
|
-
|
|
16691
|
+
le
|
|
16692
16692
|
]), Te = y((e, t) => (n) => {
|
|
16693
|
-
|
|
16694
|
-
}, [g,
|
|
16693
|
+
le(e), g?.(e.date, t, n);
|
|
16694
|
+
}, [g, le]), Ee = y((e, t) => (n) => {
|
|
16695
16695
|
oe(), p?.(e.date, t, n);
|
|
16696
16696
|
}, [oe, p]), De = y((e, n) => (r) => {
|
|
16697
16697
|
let i = {
|
|
@@ -16707,11 +16707,11 @@ function uA(e) {
|
|
|
16707
16707
|
if (i[r.key]) {
|
|
16708
16708
|
r.preventDefault(), r.stopPropagation();
|
|
16709
16709
|
let [e, t] = i[r.key];
|
|
16710
|
-
|
|
16710
|
+
ce(e, t);
|
|
16711
16711
|
}
|
|
16712
16712
|
_?.(e.date, n, r);
|
|
16713
16713
|
}, [
|
|
16714
|
-
|
|
16714
|
+
ce,
|
|
16715
16715
|
_,
|
|
16716
16716
|
t.dir
|
|
16717
16717
|
]), Oe = y((e, t) => (n) => {
|
|
@@ -16739,7 +16739,7 @@ function uA(e) {
|
|
|
16739
16739
|
Pk(Pe, !!t.animate, {
|
|
16740
16740
|
classNames: c,
|
|
16741
16741
|
months: I,
|
|
16742
|
-
focused:
|
|
16742
|
+
focused: B,
|
|
16743
16743
|
dateLib: o
|
|
16744
16744
|
});
|
|
16745
16745
|
let Fe = {
|
|
@@ -16915,7 +16915,7 @@ function uA(e) {
|
|
|
16915
16915
|
role: "rowheader"
|
|
16916
16916
|
}, A(e.weekNumber, o)), e.days.map((e) => {
|
|
16917
16917
|
let { date: n } = e, i = ne(e);
|
|
16918
|
-
if (i[cO.focused] = !i.hidden && !!
|
|
16918
|
+
if (i[cO.focused] = !i.hidden && !!B?.isEqualTo(e), i[lO.selected] = re?.(n) || i.selected, LO(ae)) {
|
|
16919
16919
|
let { from: e, to: t } = ae;
|
|
16920
16920
|
i[lO.range_start] = !!(e && t && o.isSameDay(n, e)), i[lO.range_end] = !!(e && t && o.isSameDay(n, t)), i[lO.range_middle] = FO(ae, n, !0, o);
|
|
16921
16921
|
}
|
|
@@ -16945,7 +16945,7 @@ function uA(e) {
|
|
|
16945
16945
|
modifiers: i,
|
|
16946
16946
|
disabled: !i.focused && i.disabled || void 0,
|
|
16947
16947
|
"aria-disabled": i.focused && i.disabled || void 0,
|
|
16948
|
-
tabIndex:
|
|
16948
|
+
tabIndex: se(e) ? 0 : -1,
|
|
16949
16949
|
"aria-label": ue(n, i, o.options, o),
|
|
16950
16950
|
onClick: we(e, i),
|
|
16951
16951
|
onBlur: Ee(e, i),
|
|
@@ -17867,7 +17867,7 @@ var bM = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ O(pM, {
|
|
|
17867
17867
|
}));
|
|
17868
17868
|
bM.displayName = pM.displayName;
|
|
17869
17869
|
var xM = m.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, a) => /* @__PURE__ */ O(iM, {
|
|
17870
|
-
container:
|
|
17870
|
+
container: ce() ?? void 0,
|
|
17871
17871
|
children: /* @__PURE__ */ k(aM, {
|
|
17872
17872
|
"data-density": "default",
|
|
17873
17873
|
ref: a,
|
|
@@ -18805,75 +18805,13 @@ function PN(e, t, n) {
|
|
|
18805
18805
|
return MN(DN(e) ? e.from : e, DN(t) ? t.from : t);
|
|
18806
18806
|
}
|
|
18807
18807
|
//#endregion
|
|
18808
|
-
//#region ../../../atlas/src/shared/components/ui/filter-pill.tsx
|
|
18809
|
-
function FN({ label: e, options: t, selected: n, onChange: i }) {
|
|
18810
|
-
let [a, o] = E(!1), s = T(null), c = n.length > 0, l = (e) => {
|
|
18811
|
-
i(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
18812
|
-
};
|
|
18813
|
-
return t.length ? /* @__PURE__ */ k("div", {
|
|
18814
|
-
"data-slot": "filter-pill",
|
|
18815
|
-
className: "relative",
|
|
18816
|
-
children: [/* @__PURE__ */ k("button", {
|
|
18817
|
-
ref: s,
|
|
18818
|
-
type: "button",
|
|
18819
|
-
"aria-haspopup": "listbox",
|
|
18820
|
-
"aria-expanded": a,
|
|
18821
|
-
onClick: () => o(!a),
|
|
18822
|
-
className: r("flex h-9 items-center justify-between gap-2 whitespace-nowrap rounded-control border bg-card px-3 py-1 text-base md:text-sm dark:bg-input/30", "ring-offset-background transition-colors", "focus:outline-none focus:ring-1 focus:ring-ring", "disabled:cursor-not-allowed disabled:opacity-50", c ? "border-foreground text-foreground" : "border-input text-muted-foreground hover:text-foreground"),
|
|
18823
|
-
children: [/* @__PURE__ */ k("span", {
|
|
18824
|
-
className: "flex items-center gap-1.5",
|
|
18825
|
-
children: [/* @__PURE__ */ O("span", { children: e }), c && /* @__PURE__ */ O("span", {
|
|
18826
|
-
className: "inline-flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-foreground px-1 text-xs font-semibold leading-none text-background tabular-nums",
|
|
18827
|
-
"aria-label": `${n.length} selected`,
|
|
18828
|
-
children: n.length
|
|
18829
|
-
})]
|
|
18830
|
-
}), /* @__PURE__ */ O(ln, { className: r("size-icon opacity-50 transition-transform", a && "rotate-180") })]
|
|
18831
|
-
}), a && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
|
|
18832
|
-
className: "fixed inset-0 z-10",
|
|
18833
|
-
onClick: () => o(!1),
|
|
18834
|
-
"aria-hidden": !0
|
|
18835
|
-
}), /* @__PURE__ */ k("div", {
|
|
18836
|
-
role: "listbox",
|
|
18837
|
-
"aria-multiselectable": "true",
|
|
18838
|
-
className: "absolute left-0 top-full z-20 mt-1 max-h-64 w-52 overflow-auto rounded-surface border bg-popover p-1 text-popover-foreground shadow-popover",
|
|
18839
|
-
children: [n.length > 0 && /* @__PURE__ */ O("button", {
|
|
18840
|
-
type: "button",
|
|
18841
|
-
onClick: () => i([]),
|
|
18842
|
-
className: "w-full rounded-surface-nested px-2 py-1.5 text-left text-xs font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
18843
|
-
children: "Clear all"
|
|
18844
|
-
}), t.map((e) => {
|
|
18845
|
-
let t = n.includes(e);
|
|
18846
|
-
return /* @__PURE__ */ k("div", {
|
|
18847
|
-
role: "option",
|
|
18848
|
-
"aria-selected": t,
|
|
18849
|
-
tabIndex: 0,
|
|
18850
|
-
onClick: () => l(e),
|
|
18851
|
-
onKeyDown: (t) => {
|
|
18852
|
-
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(e));
|
|
18853
|
-
},
|
|
18854
|
-
className: "flex w-full cursor-pointer items-center gap-2.5 rounded-surface-nested px-2 py-1.5 text-left text-sm transition-colors hover:bg-accent focus:bg-accent focus:outline-none",
|
|
18855
|
-
children: [/* @__PURE__ */ O(Og, {
|
|
18856
|
-
checked: t,
|
|
18857
|
-
tabIndex: -1,
|
|
18858
|
-
"aria-hidden": !0,
|
|
18859
|
-
className: "pointer-events-none"
|
|
18860
|
-
}), /* @__PURE__ */ O("span", {
|
|
18861
|
-
className: r("truncate", t ? "text-foreground" : "text-muted-foreground"),
|
|
18862
|
-
children: e
|
|
18863
|
-
})]
|
|
18864
|
-
}, e);
|
|
18865
|
-
})]
|
|
18866
|
-
})] })]
|
|
18867
|
-
}) : null;
|
|
18868
|
-
}
|
|
18869
|
-
//#endregion
|
|
18870
18808
|
//#region ../../../node_modules/.pnpm/@radix-ui+react-scroll-area@1.2.10_@types+react-dom@19.2.3_@types+react@19.2.14__@types_3f2ac5445210224aefd6333ca2197426/node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
18871
|
-
function
|
|
18809
|
+
function FN(e, t) {
|
|
18872
18810
|
return m.useReducer((e, n) => t[e][n] ?? e, e);
|
|
18873
18811
|
}
|
|
18874
|
-
var
|
|
18812
|
+
var IN = "ScrollArea", [LN, RN] = On(IN), [zN, BN] = LN(IN), VN = m.forwardRef((e, t) => {
|
|
18875
18813
|
let { __scopeScrollArea: n, type: r = "hover", dir: i, scrollHideDelay: a = 600, ...o } = e, [s, c] = m.useState(null), [l, u] = m.useState(null), [d, f] = m.useState(null), [p, h] = m.useState(null), [g, _] = m.useState(null), [v, y] = m.useState(0), [b, x] = m.useState(0), [S, C] = m.useState(!1), [w, T] = m.useState(!1), E = W(t, (e) => c(e)), D = As(i);
|
|
18876
|
-
return /* @__PURE__ */ O(
|
|
18814
|
+
return /* @__PURE__ */ O(zN, {
|
|
18877
18815
|
scope: n,
|
|
18878
18816
|
type: r,
|
|
18879
18817
|
dir: D,
|
|
@@ -18906,9 +18844,9 @@ var LN = "ScrollArea", [RN, zN] = On(LN), [BN, VN] = RN(LN), HN = m.forwardRef((
|
|
|
18906
18844
|
})
|
|
18907
18845
|
});
|
|
18908
18846
|
});
|
|
18909
|
-
|
|
18910
|
-
var
|
|
18911
|
-
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o =
|
|
18847
|
+
VN.displayName = IN;
|
|
18848
|
+
var HN = "ScrollAreaViewport", UN = m.forwardRef((e, t) => {
|
|
18849
|
+
let { __scopeScrollArea: n, children: r, nonce: i, ...a } = e, o = BN(HN, n), s = W(t, m.useRef(null), o.onViewportChange);
|
|
18912
18850
|
return /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("style", {
|
|
18913
18851
|
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
|
|
18914
18852
|
nonce: i
|
|
@@ -18931,35 +18869,35 @@ var UN = "ScrollAreaViewport", WN = m.forwardRef((e, t) => {
|
|
|
18931
18869
|
})
|
|
18932
18870
|
})] });
|
|
18933
18871
|
});
|
|
18934
|
-
|
|
18935
|
-
var
|
|
18936
|
-
let { forceMount: n, ...r } = e, i =
|
|
18872
|
+
UN.displayName = HN;
|
|
18873
|
+
var WN = "ScrollAreaScrollbar", GN = m.forwardRef((e, t) => {
|
|
18874
|
+
let { forceMount: n, ...r } = e, i = BN(WN, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
|
|
18937
18875
|
return m.useEffect(() => (s ? a(!0) : o(!0), () => {
|
|
18938
18876
|
s ? a(!1) : o(!1);
|
|
18939
18877
|
}), [
|
|
18940
18878
|
s,
|
|
18941
18879
|
a,
|
|
18942
18880
|
o
|
|
18943
|
-
]), i.type === "hover" ? /* @__PURE__ */ O(
|
|
18881
|
+
]), i.type === "hover" ? /* @__PURE__ */ O(KN, {
|
|
18944
18882
|
...r,
|
|
18945
18883
|
ref: t,
|
|
18946
18884
|
forceMount: n
|
|
18947
|
-
}) : i.type === "scroll" ? /* @__PURE__ */ O(
|
|
18885
|
+
}) : i.type === "scroll" ? /* @__PURE__ */ O(qN, {
|
|
18948
18886
|
...r,
|
|
18949
18887
|
ref: t,
|
|
18950
18888
|
forceMount: n
|
|
18951
|
-
}) : i.type === "auto" ? /* @__PURE__ */ O(
|
|
18889
|
+
}) : i.type === "auto" ? /* @__PURE__ */ O(JN, {
|
|
18952
18890
|
...r,
|
|
18953
18891
|
ref: t,
|
|
18954
18892
|
forceMount: n
|
|
18955
|
-
}) : i.type === "always" ? /* @__PURE__ */ O(
|
|
18893
|
+
}) : i.type === "always" ? /* @__PURE__ */ O(YN, {
|
|
18956
18894
|
...r,
|
|
18957
18895
|
ref: t
|
|
18958
18896
|
}) : null;
|
|
18959
18897
|
});
|
|
18960
|
-
|
|
18961
|
-
var
|
|
18962
|
-
let { forceMount: n, ...r } = e, i =
|
|
18898
|
+
GN.displayName = WN;
|
|
18899
|
+
var KN = m.forwardRef((e, t) => {
|
|
18900
|
+
let { forceMount: n, ...r } = e, i = BN(WN, e.__scopeScrollArea), [a, o] = m.useState(!1);
|
|
18963
18901
|
return m.useEffect(() => {
|
|
18964
18902
|
let e = i.scrollArea, t = 0;
|
|
18965
18903
|
if (e) {
|
|
@@ -18974,14 +18912,14 @@ var qN = m.forwardRef((e, t) => {
|
|
|
18974
18912
|
}
|
|
18975
18913
|
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ O(ho, {
|
|
18976
18914
|
present: n || a,
|
|
18977
|
-
children: /* @__PURE__ */ O(
|
|
18915
|
+
children: /* @__PURE__ */ O(JN, {
|
|
18978
18916
|
"data-state": a ? "visible" : "hidden",
|
|
18979
18917
|
...r,
|
|
18980
18918
|
ref: t
|
|
18981
18919
|
})
|
|
18982
18920
|
});
|
|
18983
|
-
}),
|
|
18984
|
-
let { forceMount: n, ...r } = e, i =
|
|
18921
|
+
}), qN = m.forwardRef((e, t) => {
|
|
18922
|
+
let { forceMount: n, ...r } = e, i = BN(WN, e.__scopeScrollArea), a = e.orientation === "horizontal", o = hP(() => c("SCROLL_END"), 100), [s, c] = FN("hidden", {
|
|
18985
18923
|
hidden: { SCROLL: "scrolling" },
|
|
18986
18924
|
scrolling: {
|
|
18987
18925
|
SCROLL_END: "idle",
|
|
@@ -19022,7 +18960,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19022
18960
|
o
|
|
19023
18961
|
]), /* @__PURE__ */ O(ho, {
|
|
19024
18962
|
present: n || s !== "hidden",
|
|
19025
|
-
children: /* @__PURE__ */ O(
|
|
18963
|
+
children: /* @__PURE__ */ O(YN, {
|
|
19026
18964
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
19027
18965
|
...r,
|
|
19028
18966
|
ref: t,
|
|
@@ -19030,23 +18968,23 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19030
18968
|
onPointerLeave: G(e.onPointerLeave, () => c("POINTER_LEAVE"))
|
|
19031
18969
|
})
|
|
19032
18970
|
});
|
|
19033
|
-
}),
|
|
19034
|
-
let n =
|
|
18971
|
+
}), JN = m.forwardRef((e, t) => {
|
|
18972
|
+
let n = BN(WN, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = m.useState(!1), s = e.orientation === "horizontal", c = hP(() => {
|
|
19035
18973
|
if (n.viewport) {
|
|
19036
18974
|
let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
19037
18975
|
o(s ? e : t);
|
|
19038
18976
|
}
|
|
19039
18977
|
}, 10);
|
|
19040
|
-
return
|
|
18978
|
+
return gP(n.viewport, c), gP(n.content, c), /* @__PURE__ */ O(ho, {
|
|
19041
18979
|
present: r || a,
|
|
19042
|
-
children: /* @__PURE__ */ O(
|
|
18980
|
+
children: /* @__PURE__ */ O(YN, {
|
|
19043
18981
|
"data-state": a ? "visible" : "hidden",
|
|
19044
18982
|
...i,
|
|
19045
18983
|
ref: t
|
|
19046
18984
|
})
|
|
19047
18985
|
});
|
|
19048
|
-
}),
|
|
19049
|
-
let { orientation: n = "vertical", ...r } = e, i =
|
|
18986
|
+
}), YN = m.forwardRef((e, t) => {
|
|
18987
|
+
let { orientation: n = "vertical", ...r } = e, i = BN(WN, e.__scopeScrollArea), a = m.useRef(null), o = m.useRef(0), [s, c] = m.useState({
|
|
19050
18988
|
content: 0,
|
|
19051
18989
|
viewport: 0,
|
|
19052
18990
|
scrollbar: {
|
|
@@ -19054,7 +18992,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19054
18992
|
paddingStart: 0,
|
|
19055
18993
|
paddingEnd: 0
|
|
19056
18994
|
}
|
|
19057
|
-
}), l =
|
|
18995
|
+
}), l = cP(s.viewport, s.content), u = {
|
|
19058
18996
|
...r,
|
|
19059
18997
|
sizes: s,
|
|
19060
18998
|
onSizesChange: c,
|
|
@@ -19064,14 +19002,14 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19064
19002
|
onThumbPointerDown: (e) => o.current = e
|
|
19065
19003
|
};
|
|
19066
19004
|
function d(e, t) {
|
|
19067
|
-
return
|
|
19005
|
+
return uP(e, o.current, s, t);
|
|
19068
19006
|
}
|
|
19069
|
-
return n === "horizontal" ? /* @__PURE__ */ O(
|
|
19007
|
+
return n === "horizontal" ? /* @__PURE__ */ O(XN, {
|
|
19070
19008
|
...u,
|
|
19071
19009
|
ref: t,
|
|
19072
19010
|
onThumbPositionChange: () => {
|
|
19073
19011
|
if (i.viewport && a.current) {
|
|
19074
|
-
let e = i.viewport.scrollLeft, t =
|
|
19012
|
+
let e = i.viewport.scrollLeft, t = dP(e, s, i.dir);
|
|
19075
19013
|
a.current.style.transform = `translate3d(${t}px, 0, 0)`;
|
|
19076
19014
|
}
|
|
19077
19015
|
},
|
|
@@ -19081,12 +19019,12 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19081
19019
|
onDragScroll: (e) => {
|
|
19082
19020
|
i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
|
|
19083
19021
|
}
|
|
19084
|
-
}) : n === "vertical" ? /* @__PURE__ */ O(
|
|
19022
|
+
}) : n === "vertical" ? /* @__PURE__ */ O(ZN, {
|
|
19085
19023
|
...u,
|
|
19086
19024
|
ref: t,
|
|
19087
19025
|
onThumbPositionChange: () => {
|
|
19088
19026
|
if (i.viewport && a.current) {
|
|
19089
|
-
let e = i.viewport.scrollTop, t =
|
|
19027
|
+
let e = i.viewport.scrollTop, t = dP(e, s);
|
|
19090
19028
|
a.current.style.transform = `translate3d(0, ${t}px, 0)`;
|
|
19091
19029
|
}
|
|
19092
19030
|
},
|
|
@@ -19097,11 +19035,11 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19097
19035
|
i.viewport && (i.viewport.scrollTop = d(e));
|
|
19098
19036
|
}
|
|
19099
19037
|
}) : null;
|
|
19100
|
-
}),
|
|
19101
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a =
|
|
19038
|
+
}), XN = m.forwardRef((e, t) => {
|
|
19039
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = BN(WN, e.__scopeScrollArea), [o, s] = m.useState(), c = m.useRef(null), l = W(t, c, a.onScrollbarXChange);
|
|
19102
19040
|
return m.useEffect(() => {
|
|
19103
19041
|
c.current && s(getComputedStyle(c.current));
|
|
19104
|
-
}, [c]), /* @__PURE__ */ O(
|
|
19042
|
+
}, [c]), /* @__PURE__ */ O(eP, {
|
|
19105
19043
|
"data-orientation": "horizontal",
|
|
19106
19044
|
...i,
|
|
19107
19045
|
ref: l,
|
|
@@ -19110,7 +19048,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19110
19048
|
bottom: 0,
|
|
19111
19049
|
left: a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
19112
19050
|
right: a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
19113
|
-
"--radix-scroll-area-thumb-width":
|
|
19051
|
+
"--radix-scroll-area-thumb-width": lP(n) + "px",
|
|
19114
19052
|
...e.style
|
|
19115
19053
|
},
|
|
19116
19054
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.x),
|
|
@@ -19118,7 +19056,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19118
19056
|
onWheelScroll: (t, n) => {
|
|
19119
19057
|
if (a.viewport) {
|
|
19120
19058
|
let r = a.viewport.scrollLeft + t.deltaX;
|
|
19121
|
-
e.onWheelScroll(r),
|
|
19059
|
+
e.onWheelScroll(r), pP(r, n) && t.preventDefault();
|
|
19122
19060
|
}
|
|
19123
19061
|
},
|
|
19124
19062
|
onResize: () => {
|
|
@@ -19127,17 +19065,17 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19127
19065
|
viewport: a.viewport.offsetWidth,
|
|
19128
19066
|
scrollbar: {
|
|
19129
19067
|
size: c.current.clientWidth,
|
|
19130
|
-
paddingStart:
|
|
19131
|
-
paddingEnd:
|
|
19068
|
+
paddingStart: sP(o.paddingLeft),
|
|
19069
|
+
paddingEnd: sP(o.paddingRight)
|
|
19132
19070
|
}
|
|
19133
19071
|
});
|
|
19134
19072
|
}
|
|
19135
19073
|
});
|
|
19136
|
-
}),
|
|
19137
|
-
let { sizes: n, onSizesChange: r, ...i } = e, a =
|
|
19074
|
+
}), ZN = m.forwardRef((e, t) => {
|
|
19075
|
+
let { sizes: n, onSizesChange: r, ...i } = e, a = BN(WN, e.__scopeScrollArea), [o, s] = m.useState(), c = m.useRef(null), l = W(t, c, a.onScrollbarYChange);
|
|
19138
19076
|
return m.useEffect(() => {
|
|
19139
19077
|
c.current && s(getComputedStyle(c.current));
|
|
19140
|
-
}, [c]), /* @__PURE__ */ O(
|
|
19078
|
+
}, [c]), /* @__PURE__ */ O(eP, {
|
|
19141
19079
|
"data-orientation": "vertical",
|
|
19142
19080
|
...i,
|
|
19143
19081
|
ref: l,
|
|
@@ -19147,7 +19085,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19147
19085
|
right: a.dir === "ltr" ? 0 : void 0,
|
|
19148
19086
|
left: a.dir === "rtl" ? 0 : void 0,
|
|
19149
19087
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
19150
|
-
"--radix-scroll-area-thumb-height":
|
|
19088
|
+
"--radix-scroll-area-thumb-height": lP(n) + "px",
|
|
19151
19089
|
...e.style
|
|
19152
19090
|
},
|
|
19153
19091
|
onThumbPointerDown: (t) => e.onThumbPointerDown(t.y),
|
|
@@ -19155,7 +19093,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19155
19093
|
onWheelScroll: (t, n) => {
|
|
19156
19094
|
if (a.viewport) {
|
|
19157
19095
|
let r = a.viewport.scrollTop + t.deltaY;
|
|
19158
|
-
e.onWheelScroll(r),
|
|
19096
|
+
e.onWheelScroll(r), pP(r, n) && t.preventDefault();
|
|
19159
19097
|
}
|
|
19160
19098
|
},
|
|
19161
19099
|
onResize: () => {
|
|
@@ -19164,14 +19102,14 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19164
19102
|
viewport: a.viewport.offsetHeight,
|
|
19165
19103
|
scrollbar: {
|
|
19166
19104
|
size: c.current.clientHeight,
|
|
19167
|
-
paddingStart:
|
|
19168
|
-
paddingEnd:
|
|
19105
|
+
paddingStart: sP(o.paddingTop),
|
|
19106
|
+
paddingEnd: sP(o.paddingBottom)
|
|
19169
19107
|
}
|
|
19170
19108
|
});
|
|
19171
19109
|
}
|
|
19172
19110
|
});
|
|
19173
|
-
}), [$N
|
|
19174
|
-
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p =
|
|
19111
|
+
}), [QN, $N] = LN(WN), eP = m.forwardRef((e, t) => {
|
|
19112
|
+
let { __scopeScrollArea: n, sizes: r, hasThumb: i, onThumbChange: a, onThumbPointerUp: o, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ...f } = e, p = BN(WN, n), [h, g] = m.useState(null), _ = W(t, (e) => g(e)), v = m.useRef(null), y = m.useRef(""), b = p.viewport, x = r.content - r.viewport, S = ur(u), C = ur(c), w = hP(d, 10);
|
|
19175
19113
|
function T(e) {
|
|
19176
19114
|
v.current && l({
|
|
19177
19115
|
x: e.clientX - v.current.left,
|
|
@@ -19189,7 +19127,7 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19189
19127
|
h,
|
|
19190
19128
|
x,
|
|
19191
19129
|
S
|
|
19192
|
-
]), m.useEffect(C, [r, C]),
|
|
19130
|
+
]), m.useEffect(C, [r, C]), gP(h, w), gP(p.content, w), /* @__PURE__ */ O(QN, {
|
|
19193
19131
|
scope: n,
|
|
19194
19132
|
scrollbar: h,
|
|
19195
19133
|
hasThumb: i,
|
|
@@ -19214,24 +19152,24 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19214
19152
|
})
|
|
19215
19153
|
})
|
|
19216
19154
|
});
|
|
19217
|
-
}),
|
|
19218
|
-
let { forceMount: n, ...r } = e, i =
|
|
19155
|
+
}), tP = "ScrollAreaThumb", nP = m.forwardRef((e, t) => {
|
|
19156
|
+
let { forceMount: n, ...r } = e, i = $N(tP, e.__scopeScrollArea);
|
|
19219
19157
|
return /* @__PURE__ */ O(ho, {
|
|
19220
19158
|
present: n || i.hasThumb,
|
|
19221
|
-
children: /* @__PURE__ */ O(
|
|
19159
|
+
children: /* @__PURE__ */ O(rP, {
|
|
19222
19160
|
ref: t,
|
|
19223
19161
|
...r
|
|
19224
19162
|
})
|
|
19225
19163
|
});
|
|
19226
|
-
}),
|
|
19227
|
-
let { __scopeScrollArea: n, style: r, ...i } = e, a =
|
|
19164
|
+
}), rP = m.forwardRef((e, t) => {
|
|
19165
|
+
let { __scopeScrollArea: n, style: r, ...i } = e, a = BN(tP, n), o = $N(tP, n), { onThumbPositionChange: s } = o, c = W(t, (e) => o.onThumbChange(e)), l = m.useRef(void 0), u = hP(() => {
|
|
19228
19166
|
l.current &&= (l.current(), void 0);
|
|
19229
19167
|
}, 100);
|
|
19230
19168
|
return m.useEffect(() => {
|
|
19231
19169
|
let e = a.viewport;
|
|
19232
19170
|
if (e) {
|
|
19233
19171
|
let t = () => {
|
|
19234
|
-
u(), l.current || (l.current =
|
|
19172
|
+
u(), l.current || (l.current = mP(e, s), s());
|
|
19235
19173
|
};
|
|
19236
19174
|
return s(), e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
19237
19175
|
}
|
|
@@ -19258,21 +19196,21 @@ var qN = m.forwardRef((e, t) => {
|
|
|
19258
19196
|
onPointerUp: G(e.onPointerUp, o.onThumbPointerUp)
|
|
19259
19197
|
});
|
|
19260
19198
|
});
|
|
19261
|
-
|
|
19262
|
-
var
|
|
19263
|
-
let n =
|
|
19264
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ O(
|
|
19199
|
+
nP.displayName = tP;
|
|
19200
|
+
var iP = "ScrollAreaCorner", aP = m.forwardRef((e, t) => {
|
|
19201
|
+
let n = BN(iP, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
19202
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ O(oP, {
|
|
19265
19203
|
...e,
|
|
19266
19204
|
ref: t
|
|
19267
19205
|
}) : null;
|
|
19268
19206
|
});
|
|
19269
|
-
|
|
19270
|
-
var
|
|
19271
|
-
let { __scopeScrollArea: n, ...r } = e, i =
|
|
19272
|
-
return
|
|
19207
|
+
aP.displayName = iP;
|
|
19208
|
+
var oP = m.forwardRef((e, t) => {
|
|
19209
|
+
let { __scopeScrollArea: n, ...r } = e, i = BN(iP, n), [a, o] = m.useState(0), [s, c] = m.useState(0), l = !!(a && s);
|
|
19210
|
+
return gP(i.scrollbarX, () => {
|
|
19273
19211
|
let e = i.scrollbarX?.offsetHeight || 0;
|
|
19274
19212
|
i.onCornerHeightChange(e), c(e);
|
|
19275
|
-
}),
|
|
19213
|
+
}), gP(i.scrollbarY, () => {
|
|
19276
19214
|
let e = i.scrollbarY?.offsetWidth || 0;
|
|
19277
19215
|
i.onCornerWidthChange(e), o(e);
|
|
19278
19216
|
}), l ? /* @__PURE__ */ O(K.div, {
|
|
@@ -19289,36 +19227,36 @@ var sP = m.forwardRef((e, t) => {
|
|
|
19289
19227
|
}
|
|
19290
19228
|
}) : null;
|
|
19291
19229
|
});
|
|
19292
|
-
function
|
|
19230
|
+
function sP(e) {
|
|
19293
19231
|
return e ? parseInt(e, 10) : 0;
|
|
19294
19232
|
}
|
|
19295
|
-
function
|
|
19233
|
+
function cP(e, t) {
|
|
19296
19234
|
let n = e / t;
|
|
19297
19235
|
return isNaN(n) ? 0 : n;
|
|
19298
19236
|
}
|
|
19299
|
-
function
|
|
19300
|
-
let t =
|
|
19237
|
+
function lP(e) {
|
|
19238
|
+
let t = cP(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
19301
19239
|
return Math.max(r, 18);
|
|
19302
19240
|
}
|
|
19303
|
-
function
|
|
19304
|
-
let i =
|
|
19305
|
-
return
|
|
19241
|
+
function uP(e, t, n, r = "ltr") {
|
|
19242
|
+
let i = lP(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
19243
|
+
return fP([c, l], d)(e);
|
|
19306
19244
|
}
|
|
19307
|
-
function
|
|
19308
|
-
let r =
|
|
19309
|
-
return
|
|
19245
|
+
function dP(e, t, n = "ltr") {
|
|
19246
|
+
let r = lP(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = Zb(e, n === "ltr" ? [0, o] : [o * -1, 0]);
|
|
19247
|
+
return fP([0, o], [0, s])(c);
|
|
19310
19248
|
}
|
|
19311
|
-
function
|
|
19249
|
+
function fP(e, t) {
|
|
19312
19250
|
return (n) => {
|
|
19313
19251
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
19314
19252
|
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
19315
19253
|
return t[0] + r * (n - e[0]);
|
|
19316
19254
|
};
|
|
19317
19255
|
}
|
|
19318
|
-
function
|
|
19256
|
+
function pP(e, t) {
|
|
19319
19257
|
return e > 0 && e < t;
|
|
19320
19258
|
}
|
|
19321
|
-
var
|
|
19259
|
+
var mP = (e, t = () => {}) => {
|
|
19322
19260
|
let n = {
|
|
19323
19261
|
left: e.scrollLeft,
|
|
19324
19262
|
top: e.scrollTop
|
|
@@ -19331,13 +19269,13 @@ var hP = (e, t = () => {}) => {
|
|
|
19331
19269
|
(o || s) && t(), n = a, r = window.requestAnimationFrame(i);
|
|
19332
19270
|
})(), () => window.cancelAnimationFrame(r);
|
|
19333
19271
|
};
|
|
19334
|
-
function
|
|
19272
|
+
function hP(e, t) {
|
|
19335
19273
|
let n = ur(e), r = m.useRef(0);
|
|
19336
19274
|
return m.useEffect(() => () => window.clearTimeout(r.current), []), m.useCallback(() => {
|
|
19337
19275
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
19338
19276
|
}, [n, t]);
|
|
19339
19277
|
}
|
|
19340
|
-
function
|
|
19278
|
+
function gP(e, t) {
|
|
19341
19279
|
let n = ur(t);
|
|
19342
19280
|
An(() => {
|
|
19343
19281
|
let t = 0;
|
|
@@ -19351,88 +19289,88 @@ function _P(e, t) {
|
|
|
19351
19289
|
}
|
|
19352
19290
|
}, [e, n]);
|
|
19353
19291
|
}
|
|
19354
|
-
var
|
|
19292
|
+
var _P = VN, vP = UN, yP = aP, bP = m.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ k(_P, {
|
|
19355
19293
|
ref: i,
|
|
19356
19294
|
className: r("relative overflow-hidden", e),
|
|
19357
19295
|
...n,
|
|
19358
19296
|
children: [
|
|
19359
|
-
/* @__PURE__ */ O(
|
|
19297
|
+
/* @__PURE__ */ O(vP, {
|
|
19360
19298
|
className: "h-full w-full rounded-[inherit]",
|
|
19361
19299
|
children: t
|
|
19362
19300
|
}),
|
|
19363
|
-
/* @__PURE__ */ O(
|
|
19364
|
-
/* @__PURE__ */ O(
|
|
19301
|
+
/* @__PURE__ */ O(xP, {}),
|
|
19302
|
+
/* @__PURE__ */ O(yP, {})
|
|
19365
19303
|
]
|
|
19366
19304
|
}));
|
|
19367
|
-
|
|
19368
|
-
var
|
|
19305
|
+
bP.displayName = _P.displayName;
|
|
19306
|
+
var xP = m.forwardRef(({ className: e, orientation: t = "vertical", ...n }, i) => /* @__PURE__ */ O(GN, {
|
|
19369
19307
|
ref: i,
|
|
19370
19308
|
orientation: t,
|
|
19371
19309
|
className: r("flex touch-none select-none transition-colors", t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]", e),
|
|
19372
19310
|
...n,
|
|
19373
|
-
children: /* @__PURE__ */ O(
|
|
19311
|
+
children: /* @__PURE__ */ O(nP, { className: "relative flex-1 rounded-full bg-border" })
|
|
19374
19312
|
}));
|
|
19375
|
-
|
|
19313
|
+
xP.displayName = GN.displayName;
|
|
19376
19314
|
//#endregion
|
|
19377
19315
|
//#region ../../../atlas/src/shared/lib/iso-date.ts
|
|
19378
|
-
function
|
|
19316
|
+
function SP(e) {
|
|
19379
19317
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
19380
19318
|
}
|
|
19381
|
-
function
|
|
19319
|
+
function CP(e, t, n) {
|
|
19382
19320
|
return !Number.isFinite(e) || !Number.isFinite(t) || !Number.isFinite(n) || t < 1 || t > 12 || n < 1 ? !1 : n <= new Date(Date.UTC(e, t, 0)).getUTCDate();
|
|
19383
19321
|
}
|
|
19384
|
-
function
|
|
19385
|
-
return e ?
|
|
19322
|
+
function wP(e) {
|
|
19323
|
+
return e ? SP(e) : null;
|
|
19386
19324
|
}
|
|
19387
|
-
function
|
|
19325
|
+
function TP(e) {
|
|
19388
19326
|
if (!e) return null;
|
|
19389
19327
|
let t = e.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
19390
19328
|
if (t) {
|
|
19391
19329
|
let [, n, r, i] = t;
|
|
19392
|
-
if (!
|
|
19330
|
+
if (!CP(Number.parseInt(n, 10), Number.parseInt(r, 10), Number.parseInt(i, 10))) return null;
|
|
19393
19331
|
let a = /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
19394
19332
|
return Number.isNaN(a.getTime()) ? null : a;
|
|
19395
19333
|
}
|
|
19396
19334
|
let n = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
19397
19335
|
if (n) {
|
|
19398
19336
|
let [, e, t, r] = n;
|
|
19399
|
-
if (!
|
|
19337
|
+
if (!CP(Number.parseInt(e, 10), Number.parseInt(t, 10), Number.parseInt(r, 10))) return null;
|
|
19400
19338
|
}
|
|
19401
19339
|
let r = new Date(e);
|
|
19402
19340
|
return Number.isNaN(r.getTime()) ? null : new Date(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate());
|
|
19403
19341
|
}
|
|
19404
19342
|
//#endregion
|
|
19405
19343
|
//#region ../../../atlas/src/shared/components/ui/due-date.ts
|
|
19406
|
-
function
|
|
19344
|
+
function EP(e) {
|
|
19407
19345
|
let t = wD(e), n = /* @__PURE__ */ new Date(), r = new Date(n.getFullYear(), n.getMonth(), n.getDate()), i = new Date(t.getFullYear(), t.getMonth(), t.getDate()), a = Math.round((i.getTime() - r.getTime()) / (1440 * 60 * 1e3));
|
|
19408
19346
|
return a === 0 ? "Today" : a === 1 ? "Tomorrow" : a === -1 ? "Yesterday" : a > 1 && a < 7 ? hD(t, "EEE") : a < 0 && a > -7 ? `${Math.abs(a)}d ago` : hD(t, "MMM d");
|
|
19409
19347
|
}
|
|
19410
|
-
function
|
|
19348
|
+
function DP(e, t) {
|
|
19411
19349
|
if (!e || t) return null;
|
|
19412
19350
|
let n = /* @__PURE__ */ new Date(), r = `${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`, i = new Date(n.getFullYear(), n.getMonth(), n.getDate() + 1), a = `${i.getFullYear()}-${String(i.getMonth() + 1).padStart(2, "0")}-${String(i.getDate()).padStart(2, "0")}`;
|
|
19413
19351
|
return e < r ? "overdue" : e === r ? "today" : e === a ? "tomorrow" : null;
|
|
19414
19352
|
}
|
|
19415
19353
|
//#endregion
|
|
19416
19354
|
//#region ../../../atlas/src/shared/components/ui/task-field.tsx
|
|
19417
|
-
function
|
|
19355
|
+
function OP({ show: e = "whenSet", hasValue: t }) {
|
|
19418
19356
|
return e === "never" ? !1 : e === "always" ? !0 : t;
|
|
19419
19357
|
}
|
|
19420
|
-
function
|
|
19358
|
+
function kP(e) {
|
|
19421
19359
|
return !e.readOnly && !e.render && Array.isArray(e.options) && typeof e.onChange == "function";
|
|
19422
19360
|
}
|
|
19423
|
-
function
|
|
19361
|
+
function AP(e) {
|
|
19424
19362
|
return e.text == null ? typeof e.value == "string" ? e.value : Array.isArray(e.value) ? e.value.join(", ") : "" : e.text;
|
|
19425
19363
|
}
|
|
19426
|
-
function
|
|
19364
|
+
function jP(e) {
|
|
19427
19365
|
return e.editorValue === void 0 ? typeof e.value == "string" ? e.value : Array.isArray(e.value) ? e.value[0] ?? null : null : e.editorValue;
|
|
19428
19366
|
}
|
|
19429
|
-
var
|
|
19367
|
+
var MP = {
|
|
19430
19368
|
default: "border-border bg-accent text-muted-foreground",
|
|
19431
19369
|
danger: "border-danger/30 bg-danger-tint text-danger-text",
|
|
19432
19370
|
warning: "border-warning/30 bg-warning-tint text-warning-text",
|
|
19433
19371
|
success: "border-success/30 bg-success-tint text-success-text"
|
|
19434
|
-
},
|
|
19435
|
-
let l = r("inline-flex h-5 max-w-full items-center gap-1 rounded-badge border px-2 text-xs font-normal transition-colors", "[&>svg]:size-3.5 [&>svg]:shrink-0", t ? "border-dashed border-border bg-transparent text-muted-foreground [&>svg]:text-muted-foreground" : n === "default" ? r(
|
|
19372
|
+
}, NP = m.forwardRef(function({ icon: e, empty: t = !1, tone: n = "default", asStatic: i = !1, className: a, children: o, ...s }, c) {
|
|
19373
|
+
let l = r("inline-flex h-5 max-w-full items-center gap-1 rounded-badge border px-2 text-xs font-normal transition-colors", "[&>svg]:size-3.5 [&>svg]:shrink-0", t ? "border-dashed border-border bg-transparent text-muted-foreground [&>svg]:text-muted-foreground" : n === "default" ? r(MP.default, "[&>svg]:text-muted-foreground") : MP[n], a), u = /* @__PURE__ */ k(D, { children: [e, /* @__PURE__ */ O("span", {
|
|
19436
19374
|
className: "truncate",
|
|
19437
19375
|
children: o
|
|
19438
19376
|
})] });
|
|
@@ -19447,7 +19385,7 @@ var NP = {
|
|
|
19447
19385
|
...s,
|
|
19448
19386
|
children: u
|
|
19449
19387
|
});
|
|
19450
|
-
}),
|
|
19388
|
+
}), PP = [
|
|
19451
19389
|
{
|
|
19452
19390
|
value: "todo",
|
|
19453
19391
|
label: "To do",
|
|
@@ -19478,16 +19416,16 @@ var NP = {
|
|
|
19478
19416
|
tone: "text-muted-foreground",
|
|
19479
19417
|
icon: Rc
|
|
19480
19418
|
}
|
|
19481
|
-
],
|
|
19419
|
+
], FP = "done", IP = "todo", LP = "in_progress", RP = ["done", "cancelled"], zP = {
|
|
19482
19420
|
value: "",
|
|
19483
19421
|
label: "To do",
|
|
19484
19422
|
tone: "text-muted-foreground",
|
|
19485
19423
|
icon: zc
|
|
19486
19424
|
};
|
|
19487
|
-
function
|
|
19488
|
-
return e.find((e) => e.value === t) ??
|
|
19425
|
+
function BP(e, t) {
|
|
19426
|
+
return e.find((e) => e.value === t) ?? zP;
|
|
19489
19427
|
}
|
|
19490
|
-
function
|
|
19428
|
+
function VP(e) {
|
|
19491
19429
|
return e.map((e) => {
|
|
19492
19430
|
let t = e.icon;
|
|
19493
19431
|
return {
|
|
@@ -19500,22 +19438,22 @@ function HP(e) {
|
|
|
19500
19438
|
};
|
|
19501
19439
|
});
|
|
19502
19440
|
}
|
|
19503
|
-
var
|
|
19441
|
+
var HP = [
|
|
19504
19442
|
"in_progress",
|
|
19505
19443
|
"blocked",
|
|
19506
19444
|
"todo",
|
|
19507
19445
|
"done",
|
|
19508
19446
|
"cancelled"
|
|
19509
19447
|
];
|
|
19510
|
-
function
|
|
19448
|
+
function UP(e, t) {
|
|
19511
19449
|
let n = e.indexOf(t);
|
|
19512
19450
|
return n === -1 ? e.length : n;
|
|
19513
19451
|
}
|
|
19514
|
-
|
|
19515
|
-
var
|
|
19516
|
-
function
|
|
19517
|
-
let s =
|
|
19518
|
-
return t ? /* @__PURE__ */ O(
|
|
19452
|
+
VP(PP);
|
|
19453
|
+
var WP = "nodrag nopan min-w-0 flex-1 truncate border-0 bg-transparent text-sm font-medium outline-none transition-colors duration-200 placeholder:italic placeholder:font-normal placeholder:text-muted-foreground";
|
|
19454
|
+
function GP({ status: e, editable: t = !0, onChange: n, size: i = 16, className: a, statusOptions: o = PP }) {
|
|
19455
|
+
let s = BP(o, e), c = s.icon;
|
|
19456
|
+
return t ? /* @__PURE__ */ O(YP, {
|
|
19519
19457
|
status: e,
|
|
19520
19458
|
onChange: n,
|
|
19521
19459
|
size: i,
|
|
@@ -19527,15 +19465,15 @@ function KP({ status: e, editable: t = !0, onChange: n, size: i = 16, className:
|
|
|
19527
19465
|
className: r("shrink-0", s.tone, a)
|
|
19528
19466
|
});
|
|
19529
19467
|
}
|
|
19530
|
-
function
|
|
19531
|
-
let c = e === o || e === s, l = e === o, u =
|
|
19468
|
+
function KP({ status: e, editable: t, onChange: n, size: i = 16, statusOptions: a, completeStatus: o, incompleteStatus: s }) {
|
|
19469
|
+
let c = e === o || e === s, l = e === o, u = BP(a, o).tone, d = BP(a, s).tone;
|
|
19532
19470
|
if (!t) {
|
|
19533
|
-
let t =
|
|
19471
|
+
let t = BP(a, e);
|
|
19534
19472
|
if (c) return /* @__PURE__ */ O("span", {
|
|
19535
19473
|
role: "img",
|
|
19536
19474
|
"aria-label": t.label,
|
|
19537
19475
|
className: "inline-flex shrink-0",
|
|
19538
|
-
children: /* @__PURE__ */ O(
|
|
19476
|
+
children: /* @__PURE__ */ O(qP, {
|
|
19539
19477
|
done: l,
|
|
19540
19478
|
size: i,
|
|
19541
19479
|
completeTone: u,
|
|
@@ -19558,13 +19496,13 @@ function qP({ status: e, editable: t, onChange: n, size: i = 16, statusOptions:
|
|
|
19558
19496
|
},
|
|
19559
19497
|
onMouseDown: (e) => e.stopPropagation(),
|
|
19560
19498
|
className: "nodrag inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full p-0.5 transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
19561
|
-
children: c ? /* @__PURE__ */ O(
|
|
19499
|
+
children: c ? /* @__PURE__ */ O(qP, {
|
|
19562
19500
|
done: l,
|
|
19563
19501
|
size: i,
|
|
19564
19502
|
completeTone: u,
|
|
19565
19503
|
incompleteTone: d
|
|
19566
19504
|
}) : (() => {
|
|
19567
|
-
let t =
|
|
19505
|
+
let t = BP(a, e), n = t.icon;
|
|
19568
19506
|
return /* @__PURE__ */ O(n, {
|
|
19569
19507
|
size: i,
|
|
19570
19508
|
className: t.tone
|
|
@@ -19572,7 +19510,7 @@ function qP({ status: e, editable: t, onChange: n, size: i = 16, statusOptions:
|
|
|
19572
19510
|
})()
|
|
19573
19511
|
});
|
|
19574
19512
|
}
|
|
19575
|
-
function
|
|
19513
|
+
function qP({ done: e, size: t = 16, completeTone: n, incompleteTone: i }) {
|
|
19576
19514
|
return /* @__PURE__ */ O("span", {
|
|
19577
19515
|
"data-done": e || void 0,
|
|
19578
19516
|
"aria-hidden": "true",
|
|
@@ -19602,7 +19540,7 @@ function JP({ done: e, size: t = 16, completeTone: n, incompleteTone: i }) {
|
|
|
19602
19540
|
})
|
|
19603
19541
|
});
|
|
19604
19542
|
}
|
|
19605
|
-
function
|
|
19543
|
+
function JP({ onClick: e }) {
|
|
19606
19544
|
return /* @__PURE__ */ k(us, { children: [/* @__PURE__ */ O(ds, {
|
|
19607
19545
|
asChild: !0,
|
|
19608
19546
|
children: /* @__PURE__ */ O("button", {
|
|
@@ -19621,8 +19559,8 @@ function YP({ onClick: e }) {
|
|
|
19621
19559
|
children: "Start task"
|
|
19622
19560
|
})] });
|
|
19623
19561
|
}
|
|
19624
|
-
function
|
|
19625
|
-
let o =
|
|
19562
|
+
function YP({ status: e, onChange: t, size: n, className: i, statusOptions: a }) {
|
|
19563
|
+
let o = BP(a, e), s = o.icon;
|
|
19626
19564
|
return /* @__PURE__ */ k(Cp, {
|
|
19627
19565
|
modal: !1,
|
|
19628
19566
|
children: [/* @__PURE__ */ O(wp, {
|
|
@@ -19648,14 +19586,14 @@ function XP({ status: e, onChange: t, size: n, className: i, statusOptions: a })
|
|
|
19648
19586
|
})]
|
|
19649
19587
|
});
|
|
19650
19588
|
}
|
|
19651
|
-
function
|
|
19589
|
+
function XP(e) {
|
|
19652
19590
|
let t = (e.split("@")[0] ?? e).split(/[\s._-]+/).filter(Boolean);
|
|
19653
19591
|
return t.length >= 2 ? ((t[0]?.[0] ?? "") + (t[1]?.[0] ?? "")).toUpperCase() : (t[0] ?? e).slice(0, 2).toUpperCase();
|
|
19654
19592
|
}
|
|
19655
|
-
var
|
|
19656
|
-
function
|
|
19593
|
+
var ZP = "__unassigned__";
|
|
19594
|
+
function QP(e) {
|
|
19657
19595
|
return [{
|
|
19658
|
-
value:
|
|
19596
|
+
value: ZP,
|
|
19659
19597
|
label: "Unassigned",
|
|
19660
19598
|
icon: /* @__PURE__ */ O("span", {
|
|
19661
19599
|
className: "flex size-4 items-center justify-center rounded-full border border-dashed border-border text-muted-foreground",
|
|
@@ -19667,12 +19605,12 @@ function $P(e) {
|
|
|
19667
19605
|
icon: /* @__PURE__ */ O(rw, {
|
|
19668
19606
|
name: e.email,
|
|
19669
19607
|
colorKey: e.email,
|
|
19670
|
-
initials: (e.initials ??
|
|
19608
|
+
initials: (e.initials ?? XP(e.email)).slice(0, 2),
|
|
19671
19609
|
size: 16
|
|
19672
19610
|
})
|
|
19673
19611
|
}))];
|
|
19674
19612
|
}
|
|
19675
|
-
var
|
|
19613
|
+
var $P = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "What needs to be done?", onChange: i, onCommit: a, onDelete: o, hideOwner: s = !1, statusOnly: c = !1, due: l, assignee: u, tags: d, fields: f, statusOptions: p = PP, completeStatus: h = FP, incompleteStatus: g = IP, startStatus: _ = LP, resolvedStatuses: v = RP, className: y }, b) {
|
|
19676
19614
|
let x = e === null || e.title.trim() === "", S = e ?? {
|
|
19677
19615
|
title: "",
|
|
19678
19616
|
status: g
|
|
@@ -19680,23 +19618,23 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19680
19618
|
m.useEffect(() => {
|
|
19681
19619
|
oe(S.title);
|
|
19682
19620
|
}, [S.title]);
|
|
19683
|
-
let
|
|
19684
|
-
!t || c || x || (oe(S.title), ie(!0), queueMicrotask(() =>
|
|
19621
|
+
let B = m.useRef(null), se = m.useCallback(() => {
|
|
19622
|
+
!t || c || x || (oe(S.title), ie(!0), queueMicrotask(() => B.current?.focus()));
|
|
19685
19623
|
}, [
|
|
19686
19624
|
S.title,
|
|
19687
19625
|
t,
|
|
19688
19626
|
x,
|
|
19689
19627
|
c
|
|
19690
|
-
]),
|
|
19691
|
-
if (
|
|
19628
|
+
]), ce = m.useRef(!1), le = (e) => {
|
|
19629
|
+
if (ce.current) return;
|
|
19692
19630
|
let t = e.trim();
|
|
19693
19631
|
if (x) {
|
|
19694
19632
|
if (t === "") return;
|
|
19695
|
-
|
|
19633
|
+
ce.current = !0, a?.({
|
|
19696
19634
|
...S,
|
|
19697
19635
|
title: t
|
|
19698
19636
|
}), oe(""), queueMicrotask(() => {
|
|
19699
|
-
|
|
19637
|
+
ce.current = !1;
|
|
19700
19638
|
});
|
|
19701
19639
|
return;
|
|
19702
19640
|
}
|
|
@@ -19705,20 +19643,20 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19705
19643
|
oe(S.title);
|
|
19706
19644
|
return;
|
|
19707
19645
|
}
|
|
19708
|
-
|
|
19709
|
-
|
|
19646
|
+
ce.current = !0, i?.({ title: t }), queueMicrotask(() => {
|
|
19647
|
+
ce.current = !1;
|
|
19710
19648
|
});
|
|
19711
19649
|
}
|
|
19712
|
-
}, ue =
|
|
19650
|
+
}, ue = DP(S.dueDate, C), de = x ? /* @__PURE__ */ O("span", {
|
|
19713
19651
|
"aria-hidden": "true",
|
|
19714
19652
|
className: "inline-flex shrink-0 items-center justify-center rounded-full p-0.5 text-muted-foreground",
|
|
19715
19653
|
children: /* @__PURE__ */ O(Kc, { className: "size-icon" })
|
|
19716
|
-
}) : c ? /* @__PURE__ */ O(
|
|
19654
|
+
}) : c ? /* @__PURE__ */ O(GP, {
|
|
19717
19655
|
status: S.status,
|
|
19718
19656
|
editable: t,
|
|
19719
19657
|
onChange: (e) => i?.({ status: e }),
|
|
19720
19658
|
statusOptions: p
|
|
19721
|
-
}) : /* @__PURE__ */ O(
|
|
19659
|
+
}) : /* @__PURE__ */ O(KP, {
|
|
19722
19660
|
status: S.status,
|
|
19723
19661
|
editable: t,
|
|
19724
19662
|
onChange: (e) => i?.({ status: e }),
|
|
@@ -19726,7 +19664,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19726
19664
|
completeStatus: h,
|
|
19727
19665
|
incompleteStatus: g
|
|
19728
19666
|
}), fe = t && !c && !x, pe = x || fe && re, me = /* @__PURE__ */ O("input", {
|
|
19729
|
-
ref:
|
|
19667
|
+
ref: B,
|
|
19730
19668
|
type: "text",
|
|
19731
19669
|
value: ae,
|
|
19732
19670
|
placeholder: n,
|
|
@@ -19736,24 +19674,24 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19736
19674
|
onClick: (e) => e.stopPropagation(),
|
|
19737
19675
|
onMouseDown: (e) => e.stopPropagation(),
|
|
19738
19676
|
onBlur: () => {
|
|
19739
|
-
c || (
|
|
19677
|
+
c || (le(ae), x || ie(!1));
|
|
19740
19678
|
},
|
|
19741
19679
|
onKeyDown: (e) => {
|
|
19742
|
-
c || (e.key === "Enter" ? (e.preventDefault(),
|
|
19680
|
+
c || (e.key === "Enter" ? (e.preventDefault(), le(ae), x || B.current?.blur()) : e.key === "Escape" && (oe(S.title), B.current?.blur()));
|
|
19743
19681
|
},
|
|
19744
|
-
className: r(
|
|
19682
|
+
className: r(WP, C && "text-muted-foreground line-through")
|
|
19745
19683
|
}), V = /* @__PURE__ */ O("span", {
|
|
19746
19684
|
"data-slot": "task-row-title",
|
|
19747
19685
|
onMouseDown: fe ? (e) => e.stopPropagation() : void 0,
|
|
19748
19686
|
onDoubleClick: fe ? (e) => {
|
|
19749
|
-
e.stopPropagation(),
|
|
19687
|
+
e.stopPropagation(), se();
|
|
19750
19688
|
} : void 0,
|
|
19751
19689
|
onClick: fe ? (e) => {
|
|
19752
|
-
e.stopPropagation(),
|
|
19690
|
+
e.stopPropagation(), se();
|
|
19753
19691
|
} : void 0,
|
|
19754
19692
|
className: r("nodrag nopan min-w-0 flex-1 truncate text-sm font-medium transition-colors", fe && "cursor-text", C && "text-muted-foreground line-through"),
|
|
19755
19693
|
children: S.title
|
|
19756
|
-
}), he = pe ? me : V, ge = t && !c && _ != null && _ !== g && S.status === g ? /* @__PURE__ */ O(
|
|
19694
|
+
}), he = pe ? me : V, ge = t && !c && _ != null && _ !== g && S.status === g ? /* @__PURE__ */ O(JP, { onClick: () => i?.({ status: _ }) }) : null, _e = !!S.dueDate, ve = !c && OP({
|
|
19757
19695
|
show: w,
|
|
19758
19696
|
hasValue: _e
|
|
19759
19697
|
}), ye = t && !c && T === "inline", be = ue === "overdue" || ue === "today" ? "danger" : ue === "tomorrow" ? "warning" : "default", xe = (e) => /* @__PURE__ */ O(l_, {
|
|
@@ -19763,13 +19701,13 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19763
19701
|
onClick: (e) => e.stopPropagation(),
|
|
19764
19702
|
children: /* @__PURE__ */ O(ON, {
|
|
19765
19703
|
mode: "single",
|
|
19766
|
-
value:
|
|
19704
|
+
value: TP(S.dueDate),
|
|
19767
19705
|
now: ne,
|
|
19768
19706
|
presets: SN,
|
|
19769
19707
|
yearBias: "future",
|
|
19770
19708
|
onApply: (e) => {
|
|
19771
19709
|
let t = e instanceof Date ? e : null;
|
|
19772
|
-
i?.({ dueDate:
|
|
19710
|
+
i?.({ dueDate: wP(t) }), N(!1);
|
|
19773
19711
|
},
|
|
19774
19712
|
onClose: () => N(!1)
|
|
19775
19713
|
})
|
|
@@ -19779,21 +19717,21 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19779
19717
|
modal: !1,
|
|
19780
19718
|
children: [/* @__PURE__ */ O(s_, {
|
|
19781
19719
|
asChild: !0,
|
|
19782
|
-
children: /* @__PURE__ */ O(
|
|
19720
|
+
children: /* @__PURE__ */ O(NP, {
|
|
19783
19721
|
icon: /* @__PURE__ */ O(Mc, {}),
|
|
19784
19722
|
tone: be,
|
|
19785
19723
|
empty: !_e,
|
|
19786
19724
|
onMouseDown: (e) => e.stopPropagation(),
|
|
19787
19725
|
onClick: (e) => e.stopPropagation(),
|
|
19788
|
-
children: _e ?
|
|
19726
|
+
children: _e ? EP(S.dueDate) : "Due"
|
|
19789
19727
|
})
|
|
19790
19728
|
}), xe("start")]
|
|
19791
|
-
}) : /* @__PURE__ */ O(
|
|
19729
|
+
}) : /* @__PURE__ */ O(NP, {
|
|
19792
19730
|
icon: /* @__PURE__ */ O(Mc, {}),
|
|
19793
19731
|
tone: be,
|
|
19794
19732
|
empty: !_e,
|
|
19795
19733
|
asStatic: !0,
|
|
19796
|
-
children: _e ?
|
|
19734
|
+
children: _e ? EP(S.dueDate) : "Due"
|
|
19797
19735
|
}) : null, we = t && !c && !Se ? /* @__PURE__ */ k(o_, {
|
|
19798
19736
|
open: M,
|
|
19799
19737
|
onOpenChange: N,
|
|
@@ -19805,19 +19743,19 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19805
19743
|
className: "pointer-events-none absolute right-2 top-2 h-0 w-0"
|
|
19806
19744
|
})
|
|
19807
19745
|
}), xe("end")]
|
|
19808
|
-
}) : null, Te = !!(S.tags && S.tags.length > 0), Ee = !c &&
|
|
19746
|
+
}) : null, Te = !!(S.tags && S.tags.length > 0), Ee = !c && OP({
|
|
19809
19747
|
show: j,
|
|
19810
19748
|
hasValue: Te
|
|
19811
|
-
}) && S.tags ? S.tags.map((e) => /* @__PURE__ */ O(
|
|
19749
|
+
}) && S.tags ? S.tags.map((e) => /* @__PURE__ */ O(NP, {
|
|
19812
19750
|
asStatic: !0,
|
|
19813
19751
|
children: e
|
|
19814
|
-
}, e)) : [], De = c ? [] : (f ?? []).filter((e) =>
|
|
19752
|
+
}, e)) : [], De = c ? [] : (f ?? []).filter((e) => OP({
|
|
19815
19753
|
show: e.show,
|
|
19816
19754
|
hasValue: e.hasValue
|
|
19817
19755
|
})).map((e) => {
|
|
19818
19756
|
if (e.render) return /* @__PURE__ */ O(m.Fragment, { children: e.render() }, e.id);
|
|
19819
|
-
let n =
|
|
19820
|
-
return !t || !
|
|
19757
|
+
let n = AP(e), r = e.edit ?? "inline";
|
|
19758
|
+
return !t || !kP(e) || r === "menu" ? /* @__PURE__ */ O(NP, {
|
|
19821
19759
|
asStatic: !0,
|
|
19822
19760
|
icon: e.icon,
|
|
19823
19761
|
tone: e.tone,
|
|
@@ -19828,7 +19766,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19828
19766
|
modal: !1,
|
|
19829
19767
|
children: [/* @__PURE__ */ O(s_, {
|
|
19830
19768
|
asChild: !0,
|
|
19831
|
-
children: /* @__PURE__ */ O(
|
|
19769
|
+
children: /* @__PURE__ */ O(NP, {
|
|
19832
19770
|
icon: e.icon,
|
|
19833
19771
|
tone: e.tone,
|
|
19834
19772
|
"aria-haspopup": "listbox",
|
|
@@ -19842,7 +19780,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19842
19780
|
onClick: (e) => e.stopPropagation(),
|
|
19843
19781
|
children: /* @__PURE__ */ O(Sy, {
|
|
19844
19782
|
options: e.options ?? [],
|
|
19845
|
-
value:
|
|
19783
|
+
value: jP(e),
|
|
19846
19784
|
clearable: e.editorClearable ?? !0,
|
|
19847
19785
|
searchPlaceholder: e.editorPlaceholder ?? e.label,
|
|
19848
19786
|
className: "w-56",
|
|
@@ -19852,10 +19790,10 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19852
19790
|
})
|
|
19853
19791
|
})]
|
|
19854
19792
|
}, e.id);
|
|
19855
|
-
}), Oe = !!S.ownerEmail, H = !x &&
|
|
19793
|
+
}), Oe = !!S.ownerEmail, H = !x && OP({
|
|
19856
19794
|
show: E,
|
|
19857
19795
|
hasValue: Oe
|
|
19858
|
-
}), ke = t && !c && D === "inline", Ae = t && !c && A.length > 0, je = S.ownerEmail ? (S.ownerInitials ??
|
|
19796
|
+
}), ke = t && !c && D === "inline", Ae = t && !c && A.length > 0, je = S.ownerEmail ? (S.ownerInitials ?? XP(S.ownerEmail)).slice(0, 2) : "", Me = Oe ? /* @__PURE__ */ O(rw, {
|
|
19859
19797
|
name: S.ownerEmail,
|
|
19860
19798
|
colorKey: S.ownerEmail,
|
|
19861
19799
|
initials: je,
|
|
@@ -19864,7 +19802,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19864
19802
|
className: "flex size-5 items-center justify-center rounded-full border border-dashed border-border text-muted-foreground",
|
|
19865
19803
|
"aria-label": "Unassigned",
|
|
19866
19804
|
children: /* @__PURE__ */ O(Jc, { className: "size-icon-sm" })
|
|
19867
|
-
}), Ne =
|
|
19805
|
+
}), Ne = QP(A), Pe = /* @__PURE__ */ O(l_, {
|
|
19868
19806
|
align: "end",
|
|
19869
19807
|
className: "w-auto border-border p-0",
|
|
19870
19808
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -19914,7 +19852,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19914
19852
|
"data-draft": x || void 0,
|
|
19915
19853
|
className: r("group relative flex flex-col gap-0.5 px-2 py-2.5 text-sm transition-colors hover:bg-surface-hover", y),
|
|
19916
19854
|
onClick: () => {
|
|
19917
|
-
x && t &&
|
|
19855
|
+
x && t && B.current?.focus();
|
|
19918
19856
|
},
|
|
19919
19857
|
children: [
|
|
19920
19858
|
/* @__PURE__ */ k("div", {
|
|
@@ -19937,16 +19875,16 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19937
19875
|
}),
|
|
19938
19876
|
!x && we
|
|
19939
19877
|
]
|
|
19940
|
-
}), Re = t && !c && !x && !!i, ze = t && !c && !x && !!i, Be = t && !x && !c ? (f ?? []).filter((e) => !!e.onEditFromMenu || t &&
|
|
19878
|
+
}), Re = t && !c && !x && !!i, ze = t && !c && !x && !!i, Be = t && !x && !c ? (f ?? []).filter((e) => !!e.onEditFromMenu || t && kP(e)) : [], Ve = ze || Ae || Be.length > 0;
|
|
19941
19879
|
if (!(!x && !c && (Re || Ve || t && o))) return Le;
|
|
19942
|
-
let He = Re || !!o, U =
|
|
19880
|
+
let He = Re || !!o, U = BP(p, S.status), Ue = U.icon;
|
|
19943
19881
|
return /* @__PURE__ */ k(RC, { children: [/* @__PURE__ */ O(zC, {
|
|
19944
19882
|
asChild: !0,
|
|
19945
19883
|
children: Le
|
|
19946
19884
|
}), /* @__PURE__ */ k(KC, {
|
|
19947
19885
|
onCloseAutoFocus: (e) => {
|
|
19948
19886
|
if (ee) {
|
|
19949
|
-
e.preventDefault(),
|
|
19887
|
+
e.preventDefault(), se(), R(!1);
|
|
19950
19888
|
return;
|
|
19951
19889
|
}
|
|
19952
19890
|
I && (e.preventDefault(), N(!0), L(!1));
|
|
@@ -19978,7 +19916,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19978
19916
|
className: "p-0",
|
|
19979
19917
|
children: /* @__PURE__ */ O(Sy, {
|
|
19980
19918
|
options: e.options ?? [],
|
|
19981
|
-
value:
|
|
19919
|
+
value: jP(e),
|
|
19982
19920
|
clearable: e.editorClearable ?? !0,
|
|
19983
19921
|
searchPlaceholder: e.editorPlaceholder ?? e.label,
|
|
19984
19922
|
className: "w-56",
|
|
@@ -19989,7 +19927,7 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
19989
19927
|
Re && /* @__PURE__ */ k(HC, { children: [/* @__PURE__ */ k(WC, { children: [/* @__PURE__ */ O(Ue, { className: U.tone }), "Status"] }), /* @__PURE__ */ O(GC, {
|
|
19990
19928
|
className: "p-0",
|
|
19991
19929
|
children: /* @__PURE__ */ O(Sy, {
|
|
19992
|
-
options:
|
|
19930
|
+
options: VP(p),
|
|
19993
19931
|
value: S.status,
|
|
19994
19932
|
clearable: !1,
|
|
19995
19933
|
searchPlaceholder: "Set status…",
|
|
@@ -20008,8 +19946,8 @@ var eF = m.forwardRef(function({ task: e, editable: t = !0, placeholder: n = "Wh
|
|
|
20008
19946
|
]
|
|
20009
19947
|
})] });
|
|
20010
19948
|
});
|
|
20011
|
-
|
|
20012
|
-
function
|
|
19949
|
+
$P.displayName = "TaskRow";
|
|
19950
|
+
function eF(e, t) {
|
|
20013
19951
|
if (e === t) return !0;
|
|
20014
19952
|
let n = e?.length ?? 0;
|
|
20015
19953
|
if (n !== (t?.length ?? 0)) return !1;
|
|
@@ -20017,33 +19955,33 @@ function tF(e, t) {
|
|
|
20017
19955
|
for (let r = 0; r < n; r++) if (e[r] !== t[r]) return !1;
|
|
20018
19956
|
return !0;
|
|
20019
19957
|
}
|
|
19958
|
+
function tF(e, t) {
|
|
19959
|
+
return e === t ? !0 : !e || !t ? !1 : e.title === t.title && e.status === t.status && (e.dueDate ?? null) === (t.dueDate ?? null) && (e.ownerEmail ?? null) === (t.ownerEmail ?? null) && (e.ownerInitials ?? null) === (t.ownerInitials ?? null) && eF(e.tags, t.tags);
|
|
19960
|
+
}
|
|
20020
19961
|
function nF(e, t) {
|
|
20021
|
-
return e === t
|
|
19962
|
+
return e?.show === t?.show && e?.edit === t?.edit;
|
|
20022
19963
|
}
|
|
20023
19964
|
function rF(e, t) {
|
|
20024
|
-
return e
|
|
19965
|
+
return nF(e, t) && e?.options === t?.options;
|
|
20025
19966
|
}
|
|
20026
19967
|
function iF(e, t) {
|
|
20027
|
-
return rF(e, t) && e?.options === t?.options;
|
|
20028
|
-
}
|
|
20029
|
-
function aF(e, t) {
|
|
20030
19968
|
if (e === t) return !0;
|
|
20031
19969
|
let n = e?.length ?? 0;
|
|
20032
19970
|
if (n !== (t?.length ?? 0)) return !1;
|
|
20033
19971
|
if (!e || !t) return !0;
|
|
20034
19972
|
for (let r = 0; r < n; r++) {
|
|
20035
19973
|
let n = e[r], i = t[r];
|
|
20036
|
-
if (n.render !== i.render || n.render && (n.renderKey === void 0 || n.renderKey !== i.renderKey) || n.id !== i.id || n.label !== i.label || n.show !== i.show || (n.edit ?? "inline") !== (i.edit ?? "inline") || !!n.hasValue != !!i.hasValue || !!n.readOnly != !!i.readOnly || (n.editorValue ?? null) !== (i.editorValue ?? null) ||
|
|
19974
|
+
if (n.render !== i.render || n.render && (n.renderKey === void 0 || n.renderKey !== i.renderKey) || n.id !== i.id || n.label !== i.label || n.show !== i.show || (n.edit ?? "inline") !== (i.edit ?? "inline") || !!n.hasValue != !!i.hasValue || !!n.readOnly != !!i.readOnly || (n.editorValue ?? null) !== (i.editorValue ?? null) || AP(n) !== AP(i) || n.options !== i.options || n.onChange !== i.onChange || n.onEditFromMenu !== i.onEditFromMenu || (n.editorClearable ?? !0) !== (i.editorClearable ?? !0) || (n.editorPlaceholder ?? null) !== (i.editorPlaceholder ?? null) || n.tone !== i.tone || n.icon !== i.icon) return !1;
|
|
20037
19975
|
}
|
|
20038
19976
|
return !0;
|
|
20039
19977
|
}
|
|
20040
|
-
function
|
|
20041
|
-
return e.task === null || t.task === null ? !1 :
|
|
19978
|
+
function aF(e, t) {
|
|
19979
|
+
return e.task === null || t.task === null ? !1 : tF(e.task, t.task) && e.editable === t.editable && e.statusOnly === t.statusOnly && e.hideOwner === t.hideOwner && e.placeholder === t.placeholder && e.className === t.className && e.statusOptions === t.statusOptions && e.completeStatus === t.completeStatus && e.incompleteStatus === t.incompleteStatus && e.startStatus === t.startStatus && e.resolvedStatuses === t.resolvedStatuses && !!e.onChange == !!t.onChange && !!e.onDelete == !!t.onDelete && !!e.onCommit == !!t.onCommit && nF(e.due, t.due) && rF(e.assignee, t.assignee) && nF(e.tags, t.tags) && iF(e.fields, t.fields);
|
|
20042
19980
|
}
|
|
20043
|
-
var
|
|
19981
|
+
var oF = m.memo($P, aF);
|
|
20044
19982
|
//#endregion
|
|
20045
19983
|
//#region ../../../atlas/src/shared/components/ui/task-create-dialog.tsx
|
|
20046
|
-
function
|
|
19984
|
+
function sF({ options: e, value: t, placeholder: n, icon: r, empty: i, clearable: a = !1, onChange: o }) {
|
|
20047
19985
|
let [s, c] = m.useState(!1), l = e.find((e) => e.value === t);
|
|
20048
19986
|
return /* @__PURE__ */ k(o_, {
|
|
20049
19987
|
open: s,
|
|
@@ -20051,7 +19989,7 @@ function cF({ options: e, value: t, placeholder: n, icon: r, empty: i, clearable
|
|
|
20051
19989
|
modal: !1,
|
|
20052
19990
|
children: [/* @__PURE__ */ O(s_, {
|
|
20053
19991
|
asChild: !0,
|
|
20054
|
-
children: /* @__PURE__ */ O(
|
|
19992
|
+
children: /* @__PURE__ */ O(NP, {
|
|
20055
19993
|
icon: l?.icon ?? r,
|
|
20056
19994
|
empty: i,
|
|
20057
19995
|
children: l?.label ?? n
|
|
@@ -20072,8 +20010,8 @@ function cF({ options: e, value: t, placeholder: n, icon: r, empty: i, clearable
|
|
|
20072
20010
|
})]
|
|
20073
20011
|
});
|
|
20074
20012
|
}
|
|
20075
|
-
function
|
|
20076
|
-
let [n, r] = m.useState(!1), i = m.useMemo(() => /* @__PURE__ */ new Date(), [n]), a = e ?
|
|
20013
|
+
function cF({ value: e, onChange: t }) {
|
|
20014
|
+
let [n, r] = m.useState(!1), i = m.useMemo(() => /* @__PURE__ */ new Date(), [n]), a = e ? TP(e)?.toLocaleDateString(void 0, {
|
|
20077
20015
|
month: "short",
|
|
20078
20016
|
day: "numeric"
|
|
20079
20017
|
}) ?? "Due date" : "Due date";
|
|
@@ -20083,7 +20021,7 @@ function lF({ value: e, onChange: t }) {
|
|
|
20083
20021
|
modal: !1,
|
|
20084
20022
|
children: [/* @__PURE__ */ O(s_, {
|
|
20085
20023
|
asChild: !0,
|
|
20086
|
-
children: /* @__PURE__ */ O(
|
|
20024
|
+
children: /* @__PURE__ */ O(NP, {
|
|
20087
20025
|
icon: /* @__PURE__ */ O(Mc, {}),
|
|
20088
20026
|
empty: !e,
|
|
20089
20027
|
children: a
|
|
@@ -20094,23 +20032,23 @@ function lF({ value: e, onChange: t }) {
|
|
|
20094
20032
|
onInteractOutside: EN,
|
|
20095
20033
|
children: /* @__PURE__ */ O(ON, {
|
|
20096
20034
|
mode: "single",
|
|
20097
|
-
value:
|
|
20035
|
+
value: TP(e),
|
|
20098
20036
|
now: i,
|
|
20099
20037
|
presets: SN,
|
|
20100
20038
|
yearBias: "future",
|
|
20101
20039
|
onApply: (e) => {
|
|
20102
|
-
t(
|
|
20040
|
+
t(wP(e instanceof Date ? e : null)), r(!1);
|
|
20103
20041
|
},
|
|
20104
20042
|
onClose: () => r(!1)
|
|
20105
20043
|
})
|
|
20106
20044
|
})]
|
|
20107
20045
|
});
|
|
20108
20046
|
}
|
|
20109
|
-
function
|
|
20047
|
+
function lF(e, t) {
|
|
20110
20048
|
return t == null ? null : e.find((e) => e.value === t || e.label === t)?.value ?? null;
|
|
20111
20049
|
}
|
|
20112
|
-
function
|
|
20113
|
-
let [u, d] = m.useState(""), [f, p] = m.useState(""), [h, g] = m.useState(a), _ = m.useMemo(() =>
|
|
20050
|
+
function uF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, statusOptions: i = PP, defaultStatus: a = IP, showDescription: o = !0, createFields: s, initialFieldValues: c, onCreate: l }) {
|
|
20051
|
+
let [u, d] = m.useState(""), [f, p] = m.useState(""), [h, g] = m.useState(a), _ = m.useMemo(() => VP(i), [i]), [v, y] = m.useState(null), [b, x] = m.useState(null), [S, C] = m.useState(void 0), [w, T] = m.useState({}), E = m.useMemo(() => QP(r ?? []), [r]), D = m.useRef({
|
|
20114
20052
|
initialValues: n,
|
|
20115
20053
|
createFields: s,
|
|
20116
20054
|
initialFieldValues: c,
|
|
@@ -20126,7 +20064,7 @@ function dF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, st
|
|
|
20126
20064
|
let { initialValues: e, createFields: t, initialFieldValues: n, defaultStatus: r } = D.current;
|
|
20127
20065
|
d(""), p(""), g(e?.status ?? r), y(e?.ownerEmail ?? null), x(e?.dueDate ?? null), C(e?.tags);
|
|
20128
20066
|
let i = {};
|
|
20129
|
-
for (let e of t ?? []) i[e.id] =
|
|
20067
|
+
for (let e of t ?? []) i[e.id] = lF(e.options, n?.[e.id]);
|
|
20130
20068
|
T(i);
|
|
20131
20069
|
}, []);
|
|
20132
20070
|
m.useEffect(() => {
|
|
@@ -20177,24 +20115,24 @@ function dF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, st
|
|
|
20177
20115
|
/* @__PURE__ */ k("div", {
|
|
20178
20116
|
className: "flex flex-wrap items-center gap-2 pt-1",
|
|
20179
20117
|
children: [
|
|
20180
|
-
/* @__PURE__ */ O(
|
|
20118
|
+
/* @__PURE__ */ O(sF, {
|
|
20181
20119
|
options: _,
|
|
20182
20120
|
value: h,
|
|
20183
20121
|
placeholder: "Status",
|
|
20184
20122
|
onChange: (e) => e && g(e)
|
|
20185
20123
|
}),
|
|
20186
|
-
r && r.length > 0 && /* @__PURE__ */ O(
|
|
20124
|
+
r && r.length > 0 && /* @__PURE__ */ O(sF, {
|
|
20187
20125
|
options: E,
|
|
20188
20126
|
value: v ?? "__unassigned__",
|
|
20189
20127
|
placeholder: "Assign to…",
|
|
20190
20128
|
clearable: !0,
|
|
20191
20129
|
onChange: (e) => y(!e || e === "__unassigned__" ? null : e)
|
|
20192
20130
|
}),
|
|
20193
|
-
/* @__PURE__ */ O(
|
|
20131
|
+
/* @__PURE__ */ O(cF, {
|
|
20194
20132
|
value: b,
|
|
20195
20133
|
onChange: x
|
|
20196
20134
|
}),
|
|
20197
|
-
(s ?? []).map((e) => /* @__PURE__ */ O(
|
|
20135
|
+
(s ?? []).map((e) => /* @__PURE__ */ O(sF, {
|
|
20198
20136
|
options: e.options,
|
|
20199
20137
|
value: w[e.id] ?? null,
|
|
20200
20138
|
placeholder: e.label,
|
|
@@ -20229,7 +20167,7 @@ function dF({ open: e, onOpenChange: t, initialValues: n, assigneeOptions: r, st
|
|
|
20229
20167
|
}
|
|
20230
20168
|
//#endregion
|
|
20231
20169
|
//#region ../../../node_modules/.pnpm/@tanstack+virtual-core@3.14.0/node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
20232
|
-
function
|
|
20170
|
+
function dF(e, t, n) {
|
|
20233
20171
|
let r = n.initialDeps ?? [], i, a = !0;
|
|
20234
20172
|
function o() {
|
|
20235
20173
|
let o;
|
|
@@ -20254,26 +20192,26 @@ function fF(e, t, n) {
|
|
|
20254
20192
|
r = e;
|
|
20255
20193
|
}, o;
|
|
20256
20194
|
}
|
|
20257
|
-
function
|
|
20195
|
+
function fF(e, t) {
|
|
20258
20196
|
if (e === void 0) throw Error(`Unexpected undefined${t ? `: ${t}` : ""}`);
|
|
20259
20197
|
return e;
|
|
20260
20198
|
}
|
|
20261
|
-
var
|
|
20199
|
+
var pF = (e, t) => Math.abs(e - t) < 1.01, mF = (e, t, n) => {
|
|
20262
20200
|
let r;
|
|
20263
20201
|
return function(...i) {
|
|
20264
20202
|
e.clearTimeout(r), r = e.setTimeout(() => t.apply(this, i), n);
|
|
20265
20203
|
};
|
|
20266
|
-
},
|
|
20204
|
+
}, hF = (e) => {
|
|
20267
20205
|
let { offsetWidth: t, offsetHeight: n } = e;
|
|
20268
20206
|
return {
|
|
20269
20207
|
width: t,
|
|
20270
20208
|
height: n
|
|
20271
20209
|
};
|
|
20272
|
-
},
|
|
20210
|
+
}, gF = (e) => e, _F = (e) => {
|
|
20273
20211
|
let t = Math.max(e.startIndex - e.overscan, 0), n = Math.min(e.endIndex + e.overscan, e.count - 1), r = [];
|
|
20274
20212
|
for (let e = t; e <= n; e++) r.push(e);
|
|
20275
20213
|
return r;
|
|
20276
|
-
},
|
|
20214
|
+
}, vF = (e, t) => {
|
|
20277
20215
|
let n = e.scrollElement;
|
|
20278
20216
|
if (!n) return;
|
|
20279
20217
|
let r = e.targetWindow;
|
|
@@ -20285,7 +20223,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20285
20223
|
height: Math.round(r)
|
|
20286
20224
|
});
|
|
20287
20225
|
};
|
|
20288
|
-
if (i(
|
|
20226
|
+
if (i(hF(n)), !r.ResizeObserver) return () => {};
|
|
20289
20227
|
let a = new r.ResizeObserver((t) => {
|
|
20290
20228
|
let r = () => {
|
|
20291
20229
|
let e = t[0];
|
|
@@ -20299,43 +20237,43 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20299
20237
|
return;
|
|
20300
20238
|
}
|
|
20301
20239
|
}
|
|
20302
|
-
i(
|
|
20240
|
+
i(hF(n));
|
|
20303
20241
|
};
|
|
20304
20242
|
e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(r) : r();
|
|
20305
20243
|
});
|
|
20306
20244
|
return a.observe(n, { box: "border-box" }), () => {
|
|
20307
20245
|
a.unobserve(n);
|
|
20308
20246
|
};
|
|
20309
|
-
},
|
|
20247
|
+
}, yF = { passive: !0 }, bF = typeof window > "u" ? !0 : "onscrollend" in window, xF = (e, t) => {
|
|
20310
20248
|
let n = e.scrollElement;
|
|
20311
20249
|
if (!n) return;
|
|
20312
20250
|
let r = e.targetWindow;
|
|
20313
20251
|
if (!r) return;
|
|
20314
|
-
let i = 0, a = e.options.useScrollendEvent &&
|
|
20252
|
+
let i = 0, a = e.options.useScrollendEvent && bF ? () => void 0 : mF(r, () => {
|
|
20315
20253
|
t(i, !1);
|
|
20316
20254
|
}, e.options.isScrollingResetDelay), o = (r) => () => {
|
|
20317
20255
|
let { horizontal: o, isRtl: s } = e.options;
|
|
20318
20256
|
i = o ? n.scrollLeft * (s && -1 || 1) : n.scrollTop, a(), t(i, r);
|
|
20319
20257
|
}, s = o(!0), c = o(!1);
|
|
20320
|
-
n.addEventListener("scroll", s,
|
|
20321
|
-
let l = e.options.useScrollendEvent &&
|
|
20322
|
-
return l && n.addEventListener("scrollend", c,
|
|
20258
|
+
n.addEventListener("scroll", s, yF);
|
|
20259
|
+
let l = e.options.useScrollendEvent && bF;
|
|
20260
|
+
return l && n.addEventListener("scrollend", c, yF), () => {
|
|
20323
20261
|
n.removeEventListener("scroll", s), l && n.removeEventListener("scrollend", c);
|
|
20324
20262
|
};
|
|
20325
|
-
},
|
|
20263
|
+
}, SF = (e, t, n) => {
|
|
20326
20264
|
if (t?.borderBoxSize) {
|
|
20327
20265
|
let e = t.borderBoxSize[0];
|
|
20328
20266
|
if (e) return Math.round(e[n.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
20329
20267
|
}
|
|
20330
20268
|
return e[n.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
20331
|
-
},
|
|
20269
|
+
}, CF = (e, { adjustments: t = 0, behavior: n }, r) => {
|
|
20332
20270
|
var i, a;
|
|
20333
20271
|
let o = e + t;
|
|
20334
20272
|
(a = (i = r.scrollElement)?.scrollTo) == null || a.call(i, {
|
|
20335
20273
|
[r.options.horizontal ? "left" : "top"]: o,
|
|
20336
20274
|
behavior: n
|
|
20337
20275
|
});
|
|
20338
|
-
},
|
|
20276
|
+
}, wF = class {
|
|
20339
20277
|
constructor(e) {
|
|
20340
20278
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
20341
20279
|
var e;
|
|
@@ -20374,10 +20312,10 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20374
20312
|
scrollPaddingStart: 0,
|
|
20375
20313
|
scrollPaddingEnd: 0,
|
|
20376
20314
|
horizontal: !1,
|
|
20377
|
-
getItemKey:
|
|
20378
|
-
rangeExtractor:
|
|
20315
|
+
getItemKey: gF,
|
|
20316
|
+
rangeExtractor: _F,
|
|
20379
20317
|
onChange: () => {},
|
|
20380
|
-
measureElement:
|
|
20318
|
+
measureElement: SF,
|
|
20381
20319
|
initialRect: {
|
|
20382
20320
|
width: 0,
|
|
20383
20321
|
height: 0
|
|
@@ -20398,7 +20336,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20398
20336
|
}, this.notify = (e) => {
|
|
20399
20337
|
var t, n;
|
|
20400
20338
|
(n = (t = this.options).onChange) == null || n.call(t, this, e);
|
|
20401
|
-
}, this.maybeNotify =
|
|
20339
|
+
}, this.maybeNotify = dF(() => (this.calculateRange(), [
|
|
20402
20340
|
this.isScrolling,
|
|
20403
20341
|
this.range ? this.range.startIndex : null,
|
|
20404
20342
|
this.range ? this.range.endIndex : null
|
|
@@ -20443,7 +20381,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20443
20381
|
if (a == null || t.end > a.end ? r.set(t.lane, t) : t.end < a.end && n.set(t.lane, !0), n.size === this.options.lanes) break;
|
|
20444
20382
|
}
|
|
20445
20383
|
return r.size === this.options.lanes ? Array.from(r.values()).sort((e, t) => e.end === t.end ? e.index - t.index : e.end - t.end)[0] : void 0;
|
|
20446
|
-
}, this.getMeasurementOptions =
|
|
20384
|
+
}, this.getMeasurementOptions = dF(() => [
|
|
20447
20385
|
this.options.count,
|
|
20448
20386
|
this.options.paddingStart,
|
|
20449
20387
|
this.options.scrollMargin,
|
|
@@ -20459,7 +20397,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20459
20397
|
enabled: i,
|
|
20460
20398
|
lanes: a,
|
|
20461
20399
|
laneAssignmentMode: o
|
|
20462
|
-
}), { key: !1 }), this.getMeasurements =
|
|
20400
|
+
}), { key: !1 }), this.getMeasurements = dF(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count: e, paddingStart: t, scrollMargin: n, getItemKey: r, enabled: i, lanes: a, laneAssignmentMode: o }, s) => {
|
|
20463
20401
|
if (!i) return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
|
|
20464
20402
|
if (this.laneAssignments.size > e) for (let t of this.laneAssignments.keys()) t >= e && this.laneAssignments.delete(t);
|
|
20465
20403
|
this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e) => {
|
|
@@ -20496,12 +20434,12 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20496
20434
|
}, {
|
|
20497
20435
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
20498
20436
|
debug: () => this.options.debug
|
|
20499
|
-
}), this.calculateRange =
|
|
20437
|
+
}), this.calculateRange = dF(() => [
|
|
20500
20438
|
this.getMeasurements(),
|
|
20501
20439
|
this.getSize(),
|
|
20502
20440
|
this.getScrollOffset(),
|
|
20503
20441
|
this.options.lanes
|
|
20504
|
-
], (e, t, n, r) => this.range = e.length > 0 && t > 0 ?
|
|
20442
|
+
], (e, t, n, r) => this.range = e.length > 0 && t > 0 ? EF({
|
|
20505
20443
|
measurements: e,
|
|
20506
20444
|
outerSize: t,
|
|
20507
20445
|
scrollOffset: n,
|
|
@@ -20509,7 +20447,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20509
20447
|
}) : null, {
|
|
20510
20448
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
20511
20449
|
debug: () => this.options.debug
|
|
20512
|
-
}), this.getVirtualIndexes =
|
|
20450
|
+
}), this.getVirtualIndexes = dF(() => {
|
|
20513
20451
|
let e = null, t = null, n = this.calculateRange();
|
|
20514
20452
|
return n && (e = n.startIndex, t = n.endIndex), this.maybeNotify.updateDeps([
|
|
20515
20453
|
this.isScrolling,
|
|
@@ -20558,7 +20496,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20558
20496
|
adjustments: this.scrollAdjustments += r,
|
|
20559
20497
|
behavior: void 0
|
|
20560
20498
|
})), this.pendingMeasuredCacheIndexes.push(n.index), this.itemSizeCache = new Map(this.itemSizeCache.set(n.key, t)), this.notify(!1));
|
|
20561
|
-
}, this.getVirtualItems =
|
|
20499
|
+
}, this.getVirtualItems = dF(() => [this.getVirtualIndexes(), this.getMeasurements()], (e, t) => {
|
|
20562
20500
|
let n = [];
|
|
20563
20501
|
for (let r = 0, i = e.length; r < i; r++) {
|
|
20564
20502
|
let i = t[e[r]];
|
|
@@ -20570,7 +20508,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20570
20508
|
debug: () => this.options.debug
|
|
20571
20509
|
}), this.getVirtualItemForOffset = (e) => {
|
|
20572
20510
|
let t = this.getMeasurements();
|
|
20573
|
-
if (t.length !== 0) return
|
|
20511
|
+
if (t.length !== 0) return fF(t[TF(0, t.length - 1, (e) => fF(t[e]).start, e)]);
|
|
20574
20512
|
}, this.getMaxScrollOffset = () => {
|
|
20575
20513
|
if (!this.scrollElement) return 0;
|
|
20576
20514
|
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
@@ -20674,7 +20612,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20674
20612
|
return;
|
|
20675
20613
|
}
|
|
20676
20614
|
let e = this.scrollState.index == null ? void 0 : this.getOffsetForIndex(this.scrollState.index, this.scrollState.align), t = e ? e[0] : this.scrollState.lastTargetOffset, n = t !== this.scrollState.lastTargetOffset;
|
|
20677
|
-
if (!n &&
|
|
20615
|
+
if (!n && pF(t, this.getScrollOffset())) {
|
|
20678
20616
|
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= 1) {
|
|
20679
20617
|
this.scrollState = null;
|
|
20680
20618
|
return;
|
|
@@ -20685,7 +20623,7 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20685
20623
|
}));
|
|
20686
20624
|
this.scheduleScrollReconcile();
|
|
20687
20625
|
}
|
|
20688
|
-
},
|
|
20626
|
+
}, TF = (e, t, n, r) => {
|
|
20689
20627
|
for (; e <= t;) {
|
|
20690
20628
|
let i = (e + t) / 2 | 0, a = n(i);
|
|
20691
20629
|
if (a < r) e = i + 1;
|
|
@@ -20694,13 +20632,13 @@ var mF = (e, t) => Math.abs(e - t) < 1.01, hF = (e, t, n) => {
|
|
|
20694
20632
|
}
|
|
20695
20633
|
return e > 0 ? e - 1 : 0;
|
|
20696
20634
|
};
|
|
20697
|
-
function
|
|
20635
|
+
function EF({ measurements: e, outerSize: t, scrollOffset: n, lanes: r }) {
|
|
20698
20636
|
let i = e.length - 1, a = (t) => e[t].start;
|
|
20699
20637
|
if (e.length <= r) return {
|
|
20700
20638
|
startIndex: 0,
|
|
20701
20639
|
endIndex: i
|
|
20702
20640
|
};
|
|
20703
|
-
let o =
|
|
20641
|
+
let o = TF(0, i, a, n), s = o;
|
|
20704
20642
|
if (r === 1) for (; s < i && e[s].end < n + t;) s++;
|
|
20705
20643
|
else if (r > 1) {
|
|
20706
20644
|
let a = Array(r).fill(0);
|
|
@@ -20722,44 +20660,44 @@ function DF({ measurements: e, outerSize: t, scrollOffset: n, lanes: r }) {
|
|
|
20722
20660
|
}
|
|
20723
20661
|
//#endregion
|
|
20724
20662
|
//#region ../../../node_modules/.pnpm/@tanstack+react-virtual@3.13.24_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
20725
|
-
var
|
|
20726
|
-
function
|
|
20663
|
+
var DF = typeof document < "u" ? m.useLayoutEffect : m.useEffect;
|
|
20664
|
+
function OF({ useFlushSync: e = !0, ...t }) {
|
|
20727
20665
|
let n = m.useReducer(() => ({}), {})[1], r = {
|
|
20728
20666
|
...t,
|
|
20729
20667
|
onChange: (r, i) => {
|
|
20730
20668
|
var a;
|
|
20731
20669
|
e && i ? P(n) : n(), (a = t.onChange) == null || a.call(t, r, i);
|
|
20732
20670
|
}
|
|
20733
|
-
}, [i] = m.useState(() => new
|
|
20734
|
-
return i.setOptions(r),
|
|
20735
|
-
}
|
|
20736
|
-
function
|
|
20737
|
-
return
|
|
20738
|
-
observeElementRect:
|
|
20739
|
-
observeElementOffset:
|
|
20740
|
-
scrollToFn:
|
|
20671
|
+
}, [i] = m.useState(() => new wF(r));
|
|
20672
|
+
return i.setOptions(r), DF(() => i._didMount(), []), DF(() => i._willUpdate()), i;
|
|
20673
|
+
}
|
|
20674
|
+
function kF(e) {
|
|
20675
|
+
return OF({
|
|
20676
|
+
observeElementRect: vF,
|
|
20677
|
+
observeElementOffset: xF,
|
|
20678
|
+
scrollToFn: CF,
|
|
20741
20679
|
...e
|
|
20742
20680
|
});
|
|
20743
20681
|
}
|
|
20744
20682
|
//#endregion
|
|
20745
20683
|
//#region ../../../atlas/src/shared/components/ui/task-list.tsx
|
|
20746
|
-
function
|
|
20684
|
+
function AF(e) {
|
|
20747
20685
|
return typeof e.id == "string" && e.id.length > 0 ? e.id : null;
|
|
20748
20686
|
}
|
|
20749
|
-
var
|
|
20687
|
+
var jF = new Set([
|
|
20750
20688
|
"status",
|
|
20751
20689
|
"assignee",
|
|
20752
20690
|
"tags"
|
|
20753
20691
|
]);
|
|
20754
|
-
function
|
|
20692
|
+
function MF(e) {
|
|
20755
20693
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
20756
20694
|
}
|
|
20757
|
-
function
|
|
20695
|
+
function NF(e, t) {
|
|
20758
20696
|
let n = /* @__PURE__ */ new Set();
|
|
20759
20697
|
for (let r of e) for (let e of t(r)) n.add(e);
|
|
20760
20698
|
return [...n];
|
|
20761
20699
|
}
|
|
20762
|
-
function
|
|
20700
|
+
function PF(e) {
|
|
20763
20701
|
return {
|
|
20764
20702
|
title: e.title,
|
|
20765
20703
|
status: e.status,
|
|
@@ -20769,10 +20707,10 @@ function FF(e) {
|
|
|
20769
20707
|
tags: e.tags
|
|
20770
20708
|
};
|
|
20771
20709
|
}
|
|
20772
|
-
function
|
|
20710
|
+
function FF(e) {
|
|
20773
20711
|
return `${e.title} ${(e.tags ?? []).join(" ")} ${e.ownerEmail ?? ""}`;
|
|
20774
20712
|
}
|
|
20775
|
-
function
|
|
20713
|
+
function IF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1, getRowKey: a, onChange: o, createTask: s, onTaskUpdate: c, onTaskDelete: l, onTaskCreate: u, emptyMessage: d = "No tasks yet.", searchable: f, filterable: p, currentUserEmail: h, onVisibleTasksChange: g, groupable: _ = !0, defaultGroupBy: v = "none", groupStorageKey: y, due: b, assignee: x, tags: S, fields: C, createFields: w, statusOptions: T = PP, statusBoardOrder: E = HP, completeStatus: D = FP, incompleteStatus: A = IP, startStatus: j = LP, resolvedStatuses: M = RP, showDescription: N = !0, className: P }) {
|
|
20776
20714
|
let F = m.useRef(e);
|
|
20777
20715
|
F.current = e;
|
|
20778
20716
|
let I = m.useRef(o);
|
|
@@ -20789,7 +20727,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20789
20727
|
let t = /* @__PURE__ */ new Map();
|
|
20790
20728
|
if (C) for (let n of e) t.set(n, C(n));
|
|
20791
20729
|
return t;
|
|
20792
|
-
}, [e, C]), ne = m.useCallback((e, t) =>
|
|
20730
|
+
}, [e, C]), ne = m.useCallback((e, t) => AF(e) || (a ? a(e, t) : null), [a]), re = m.useCallback((e, t) => t == null ? e : F.current.find((e, n) => ne(e, n) === t) ?? e, [ne]), ie = m.useCallback((e, t, n) => {
|
|
20793
20731
|
let r = L.current;
|
|
20794
20732
|
if (r) {
|
|
20795
20733
|
r(re(e, t), n);
|
|
@@ -20827,11 +20765,11 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20827
20765
|
}
|
|
20828
20766
|
let r = z.current;
|
|
20829
20767
|
r && I.current?.([...F.current, r(e)]);
|
|
20830
|
-
}, []),
|
|
20768
|
+
}, []), B = t && !n && !!(u || s), se = m.useMemo(() => f ? typeof f == "object" ? f : {} : null, [f]), [ce, le] = m.useState(""), [ue, de] = m.useState({}), [fe, pe] = m.useState(!1), me = x?.options ?? [], V = m.useMemo(() => {
|
|
20831
20769
|
let t = [{
|
|
20832
20770
|
key: "status",
|
|
20833
20771
|
label: "Status",
|
|
20834
|
-
options:
|
|
20772
|
+
options: VP(T),
|
|
20835
20773
|
getValues: (e) => [e.status],
|
|
20836
20774
|
groupOrder: E
|
|
20837
20775
|
}];
|
|
@@ -20844,7 +20782,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20844
20782
|
})),
|
|
20845
20783
|
getValues: (e) => e.ownerEmail ? [e.ownerEmail] : []
|
|
20846
20784
|
});
|
|
20847
|
-
let n =
|
|
20785
|
+
let n = NF(e, (e) => e.tags ?? []);
|
|
20848
20786
|
n.length > 0 && t.push({
|
|
20849
20787
|
key: "tags",
|
|
20850
20788
|
label: "Tags",
|
|
@@ -20861,7 +20799,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20861
20799
|
label: t.label,
|
|
20862
20800
|
values: /* @__PURE__ */ new Set(),
|
|
20863
20801
|
valueLabels: /* @__PURE__ */ new Map()
|
|
20864
|
-
}, n =
|
|
20802
|
+
}, n = MF(t.value);
|
|
20865
20803
|
for (let r of n) {
|
|
20866
20804
|
e.values.add(r);
|
|
20867
20805
|
let i = t.options?.find((e) => e.value === r)?.label ?? (n.length === 1 ? t.text : void 0);
|
|
@@ -20876,7 +20814,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20876
20814
|
value: e,
|
|
20877
20815
|
label: a.get(e) ?? e
|
|
20878
20816
|
})).sort((e, t) => e.label.localeCompare(t.label)),
|
|
20879
|
-
getValues: (t) =>
|
|
20817
|
+
getValues: (t) => MF(te.get(t)?.find((t) => t.id === e)?.value)
|
|
20880
20818
|
});
|
|
20881
20819
|
return t;
|
|
20882
20820
|
}, [
|
|
@@ -20886,7 +20824,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20886
20824
|
T,
|
|
20887
20825
|
E
|
|
20888
20826
|
]), he = m.useMemo(() => {
|
|
20889
|
-
let t =
|
|
20827
|
+
let t = ce.trim().toLowerCase(), n = se?.accessor ?? FF;
|
|
20890
20828
|
return e.filter((e) => {
|
|
20891
20829
|
if (t && !n(e).toLowerCase().includes(t) || fe && h && e.ownerEmail !== h) return !1;
|
|
20892
20830
|
for (let t of V) {
|
|
@@ -20897,10 +20835,10 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20897
20835
|
});
|
|
20898
20836
|
}, [
|
|
20899
20837
|
e,
|
|
20900
|
-
|
|
20838
|
+
ce,
|
|
20901
20839
|
V,
|
|
20902
20840
|
ue,
|
|
20903
|
-
|
|
20841
|
+
se,
|
|
20904
20842
|
fe,
|
|
20905
20843
|
h
|
|
20906
20844
|
]), ge = m.useRef(g);
|
|
@@ -20950,7 +20888,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20950
20888
|
}, [be]), Oe = (e) => Ee((t) => {
|
|
20951
20889
|
let n = new Set(t);
|
|
20952
20890
|
return n.has(e) ? n.delete(e) : n.add(e), De(n), n;
|
|
20953
|
-
}), H = Se === "none" || V.some((e) => e.key === Se) ? Se : "none", ke = m.useCallback((e) => [...e].sort((e, t) =>
|
|
20891
|
+
}), H = Se === "none" || V.some((e) => e.key === Se) ? Se : "none", ke = m.useCallback((e) => [...e].sort((e, t) => UP(E, e.status) - UP(E, t.status)), [E]), Ae = m.useMemo(() => {
|
|
20954
20892
|
let e = [{
|
|
20955
20893
|
key: "__all__",
|
|
20956
20894
|
label: null,
|
|
@@ -20997,7 +20935,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
20997
20935
|
]), je = m.useMemo(() => {
|
|
20998
20936
|
let t = /* @__PURE__ */ new Map();
|
|
20999
20937
|
return e.forEach((e, n) => t.set(e, n)), t;
|
|
21000
|
-
}, [e]), [Me, Ne] = m.useState(null), Pe = m.useMemo(() => new Set((w ?? []).map((e) => e.id)), [w]), Fe = m.useCallback((e) => !e.header || H === "none" || e.key === "__none__" ? !0 :
|
|
20938
|
+
}, [e]), [Me, Ne] = m.useState(null), Pe = m.useMemo(() => new Set((w ?? []).map((e) => e.id)), [w]), Fe = m.useCallback((e) => !e.header || H === "none" || e.key === "__none__" ? !0 : jF.has(H) || Pe.has(H), [H, Pe]), Ie = (e) => {
|
|
21001
20939
|
if (!e.header || H === "none" || e.key === "__none__") {
|
|
21002
20940
|
Ne({ initial: {} });
|
|
21003
20941
|
return;
|
|
@@ -21009,19 +20947,19 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21009
20947
|
}) : Ne({ initial: {} });
|
|
21010
20948
|
};
|
|
21011
20949
|
m.useEffect(() => {
|
|
21012
|
-
if (!
|
|
20950
|
+
if (!B) return;
|
|
21013
20951
|
let e = (e) => {
|
|
21014
20952
|
(e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey && e.key.toLowerCase() === "n" && (e.preventDefault(), Ne((e) => e ?? { initial: {} }));
|
|
21015
20953
|
};
|
|
21016
20954
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
21017
|
-
}, [
|
|
21018
|
-
let Le = !!h, Re = e.length > 0, ze = (
|
|
20955
|
+
}, [B]);
|
|
20956
|
+
let Le = !!h, Re = e.length > 0, ze = (se != null || ve.length > 0 || ye || Le) && Re || B, Be = (e, t) => {
|
|
21019
20957
|
let n = je.get(e) ?? -1;
|
|
21020
20958
|
return `${t}::${ne(e, n) ?? `task-${n}`}`;
|
|
21021
20959
|
}, Ve = (e, r) => {
|
|
21022
20960
|
let a = ne(e, je.get(e) ?? -1);
|
|
21023
|
-
return /* @__PURE__ */ O(
|
|
21024
|
-
task:
|
|
20961
|
+
return /* @__PURE__ */ O(oF, {
|
|
20962
|
+
task: PF(e),
|
|
21025
20963
|
editable: t,
|
|
21026
20964
|
statusOnly: n,
|
|
21027
20965
|
hideOwner: i,
|
|
@@ -21054,7 +20992,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21054
20992
|
children: e.tasks.length
|
|
21055
20993
|
})
|
|
21056
20994
|
]
|
|
21057
|
-
}),
|
|
20995
|
+
}), B && Fe(e) && /* @__PURE__ */ O("button", {
|
|
21058
20996
|
type: "button",
|
|
21059
20997
|
"aria-label": "Add task to group",
|
|
21060
20998
|
onClick: () => Ie(e),
|
|
@@ -21093,9 +21031,9 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21093
21031
|
}, [Ae, Te]), Ke = m.useMemo(() => Ge.reduce((e, t, n) => (t.kind === "header" && e.push(n), e), []), [Ge]), qe = m.useRef(0), Je = m.useCallback((e) => {
|
|
21094
21032
|
let t = [...Ke].reverse().find((t) => e.startIndex >= t) ?? -1;
|
|
21095
21033
|
qe.current = t;
|
|
21096
|
-
let n = new Set(
|
|
21034
|
+
let n = new Set(_F(e));
|
|
21097
21035
|
return t >= 0 && n.add(t), [...n].sort((e, t) => e - t);
|
|
21098
|
-
}, [Ke]), Ye =
|
|
21036
|
+
}, [Ke]), Ye = kF({
|
|
21099
21037
|
count: Ge.length,
|
|
21100
21038
|
getScrollElement: () => U.current,
|
|
21101
21039
|
estimateSize: (e) => Ge[e]?.kind === "header" ? 36 : 48,
|
|
@@ -21121,10 +21059,10 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21121
21059
|
className: "flex shrink-0 items-center gap-2 pb-2",
|
|
21122
21060
|
style: { paddingRight: Ue },
|
|
21123
21061
|
children: [
|
|
21124
|
-
Re &&
|
|
21125
|
-
value:
|
|
21126
|
-
onChange: (e) =>
|
|
21127
|
-
placeholder:
|
|
21062
|
+
Re && se && /* @__PURE__ */ O(En, {
|
|
21063
|
+
value: ce,
|
|
21064
|
+
onChange: (e) => le(e.currentTarget.value),
|
|
21065
|
+
placeholder: se.placeholder ?? "Search tasks",
|
|
21128
21066
|
containerClassName: "w-full max-w-xs",
|
|
21129
21067
|
className: "h-8 text-body-sm"
|
|
21130
21068
|
}),
|
|
@@ -21172,7 +21110,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21172
21110
|
}, e.value))
|
|
21173
21111
|
})]
|
|
21174
21112
|
}),
|
|
21175
|
-
|
|
21113
|
+
B && /* @__PURE__ */ k(dg, {
|
|
21176
21114
|
size: "sm",
|
|
21177
21115
|
className: "h-8 shrink-0",
|
|
21178
21116
|
onClick: () => Ne({ initial: {} }),
|
|
@@ -21219,7 +21157,7 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21219
21157
|
})
|
|
21220
21158
|
})
|
|
21221
21159
|
}),
|
|
21222
|
-
|
|
21160
|
+
B && /* @__PURE__ */ O(uF, {
|
|
21223
21161
|
open: Me !== null,
|
|
21224
21162
|
onOpenChange: (e) => !e && Ne(null),
|
|
21225
21163
|
initialValues: Me?.initial,
|
|
@@ -21235,4 +21173,4 @@ function LF({ tasks: e, editable: t = !0, statusOnly: n = !1, hideOwner: i = !1,
|
|
|
21235
21173
|
});
|
|
21236
21174
|
}
|
|
21237
21175
|
//#endregion
|
|
21238
|
-
export { hb as AGENT_TINTS, yT as AlertDialog, OT as AlertDialogAction, kT as AlertDialogCancel, CT as AlertDialogContent, DT as AlertDialogDescription, TT as AlertDialogFooter, wT as AlertDialogHeader, ST as AlertDialogOverlay, xT as AlertDialogPortal, ET as AlertDialogTitle, bT as AlertDialogTrigger, PT as AppStatusBadge, Hb as AsyncActionButton, vb as AvatarTextCell, dt as Badge, Zp as Breadcrumb, Bp as BreadcrumbLinkProvider, al as BreadcrumbPrimitive, dg as Button, dA as Calendar, mt as CalendarGrid, vc as Card, Sc as CardContent, xc as CardDescription, yc as CardHeader, bc as CardTitle, f as ChartContainer, l as ChartLegend, d as ChartLegendContent, c as ChartTooltip, i as ChartTooltipContent, Og as Checkbox, Xb as CheckboxGroup, ar as ChoiceCard, or as ChoiceCardGroup, ys as CitationChip, xs as CodeBadge, Ob as CodePillCell, cy as Command, ly as CommandDialog, fy as CommandEmpty, py as CommandGroup, uy as CommandInput, hy as CommandItem, dy as CommandList, my as CommandSeparator, gy as CommandShortcut, AT as ConfirmDialog, Ab as ContentLoadingState, RC as ContextMenu, JC as ContextMenuCheckboxItem, KC as ContextMenuContent, BC as ContextMenuGroup, qC as ContextMenuItem, XC as ContextMenuLabel, VC as ContextMenuPortal, UC as ContextMenuRadioGroup, YC as ContextMenuRadioItem, ZC as ContextMenuSeparator, QC as ContextMenuShortcut, HC as ContextMenuSub, GC as ContextMenuSubContent, WC as ContextMenuSubTrigger, zC as ContextMenuTrigger,
|
|
21176
|
+
export { hb as AGENT_TINTS, yT as AlertDialog, OT as AlertDialogAction, kT as AlertDialogCancel, CT as AlertDialogContent, DT as AlertDialogDescription, TT as AlertDialogFooter, wT as AlertDialogHeader, ST as AlertDialogOverlay, xT as AlertDialogPortal, ET as AlertDialogTitle, bT as AlertDialogTrigger, PT as AppStatusBadge, Hb as AsyncActionButton, vb as AvatarTextCell, dt as Badge, Zp as Breadcrumb, Bp as BreadcrumbLinkProvider, al as BreadcrumbPrimitive, dg as Button, dA as Calendar, mt as CalendarGrid, vc as Card, Sc as CardContent, xc as CardDescription, yc as CardHeader, bc as CardTitle, f as ChartContainer, l as ChartLegend, d as ChartLegendContent, c as ChartTooltip, i as ChartTooltipContent, Og as Checkbox, Xb as CheckboxGroup, ar as ChoiceCard, or as ChoiceCardGroup, ys as CitationChip, xs as CodeBadge, Ob as CodePillCell, cy as Command, ly as CommandDialog, fy as CommandEmpty, py as CommandGroup, uy as CommandInput, hy as CommandItem, dy as CommandList, my as CommandSeparator, gy as CommandShortcut, AT as ConfirmDialog, Ab as ContentLoadingState, RC as ContextMenu, JC as ContextMenuCheckboxItem, KC as ContextMenuContent, BC as ContextMenuGroup, qC as ContextMenuItem, XC as ContextMenuLabel, VC as ContextMenuPortal, UC as ContextMenuRadioGroup, YC as ContextMenuRadioItem, ZC as ContextMenuSeparator, QC as ContextMenuShortcut, HC as ContextMenuSub, GC as ContextMenuSubContent, WC as ContextMenuSubTrigger, zC as ContextMenuTrigger, FP as DEFAULT_COMPLETE_STATUS, IP as DEFAULT_INCOMPLETE_STATUS, CN as DEFAULT_RANGE_PRESETS, RP as DEFAULT_RESOLVED_STATUSES, SN as DEFAULT_SINGLE_PRESETS, LP as DEFAULT_START_STATUS, HP as DEFAULT_STATUS_BOARD_ORDER, PP as DEFAULT_STATUS_OPTIONS, fS as DashboardShell, ib as DataTable, ib as ProDataTable, ib as Table, wN as DateField, Zv as Dialog, iy as DialogBody, ey as DialogClose, ny as DialogContent, sy as DialogDescription, ay as DialogFooter, ry as DialogHeader, ty as DialogOverlay, $v as DialogPortal, oy as DialogTitle, Qv as DialogTrigger, Cp as DropdownMenu, Np as DropdownMenuCheckboxItem, jp as DropdownMenuContent, Tp as DropdownMenuGroup, Mp as DropdownMenuItem, Fp as DropdownMenuLabel, Ep as DropdownMenuPortal, Op as DropdownMenuRadioGroup, Pp as DropdownMenuRadioItem, Ip as DropdownMenuSeparator, Lp as DropdownMenuShortcut, Dp as DropdownMenuSub, Ap as DropdownMenuSubContent, kp as DropdownMenuSubTrigger, wp as DropdownMenuTrigger, TS as EditorPageHeader, ES as EditorPagePane, DS as EditorSection, xS as EditorSideNav, SS as EditorSideNavGroup, CS as EditorSideNavItem, gS as EditorTopBar, yS as EditorTopBarActions, _S as EditorTopBarBackButton, vS as EditorTopBarIdentity, bS as EditorTopBarStatusBadge, Mb as EmptyState, iS as ErrorState, Kt as Field, qt as FieldContent, Xt as FieldDescription, Qt as FieldError, Wt as FieldGroup, Jt as FieldLabel, Ut as FieldLegend, Zt as FieldSeparator, Ht as FieldSet, Yt as FieldTitle, Ub as FileDropzone, Gb as FileDropzoneList, Yb as FilterSelect, jT as FormDialog, Ss as FormField, nw as GenericAvatar, Fb as HeatmapTable, kw as HoverCard, jw as HoverCardContent, Aw as HoverCardTrigger, Pw as InlineTextCell, Tn as Input, zb as KpiTile, Bb as KpiTileGrid, Pt as Label, Sb as LineSparklineCell, Lw as MetricAreaChart, Rb as MetricCard, mS as MetricGrid, vy as MultiSelect, xy as MultiSelectList, uS as PageSkeleton, rS as PageState, Db as PercentCell, o_ as Popover, c_ as PopoverAnchor, l_ as PopoverContent, s_ as PopoverTrigger, se as PortalContainerContext, ue as PortalContainerProvider, cb as ProDataTablePagination, lb as ProDataTableToolbar, wc as ProgressBar, Cb as ProgressBarCell, zA as RadioGroup, BA as RadioGroupItem, kb as RelativeTimeCell, Mt as RequiredMarker, wb as ResultsBarCell, dS as RouteLoading, yb as STATUS_TONES, Eb as ScoreBarCell, bP as ScrollArea, xP as ScrollBar, En as SearchInput, hS as SectionHeader, jb as SectionLoadingState, zx as SegmentedControl, hM as Select, xM as SelectContent, gM as SelectGroup, CM as SelectItem, SM as SelectLabel, bM as SelectScrollDownButton, yM as SelectScrollUpButton, wM as SelectSeparator, vM as SelectTrigger, _M as SelectValue, Vt as Separator, OS as Sheet, AS as SheetClose, PS as SheetContent, RS as SheetDescription, IS as SheetFooter, FS as SheetHeader, MS as SheetOverlay, jS as SheetPortal, LS as SheetTitle, kS as SheetTrigger, Sy as SingleSelectList, Rp as Skeleton, X as SkeletonBlock, Rx as Slider, Pb as SortableHeader, xb as SparklineCell, em as Spinner, bb as StatusDotBadge, ir as Switch, rg as TableBody, cg as TableCaption, sg as TableCell, ig as TableFooter, og as TableHead, ng as TableHeader, lg as TablePrimitive, ag as TableRow, bm as Tabs, Em as TabsContent, wm as TabsList, Tm as TabsTrigger, uF as TaskCreateDialog, NP as TaskFieldChip, IF as TaskList, oF as TaskRow, GP as TaskStatusIndicator, Rw as Textarea, Dm as Toaster, Ds as Toggle, gc as ToggleGroup, _c as ToggleGroupItem, us as Tooltip, ps as TooltipArrow, fs as TooltipContent, ls as TooltipProvider, ds as TooltipTrigger, Vb as TrendBadge, gs as TruncatedText, rw as UserAvatar, Nw as UserChip, ut as badgeVariants, Ib as buildPeriodColumns, Lb as buildTotalColumn, ug as buttonVariants, r as cn, bs as codeBadgeVariants, My as facetFilterMatches, AP as fieldChipText, jP as fieldEditorValue, Kb as formatBytes, ne as formatCompact, z as formatCurrency, te as formatCurrencyPrecise, B as formatDurationMs, ie as formatNumber, re as formatPercent, oe as formatTimestamp, Nb as heatColor, kP as isFieldEditable, ae as pctChange, Tb as scoreBand, OP as showFieldInline, Qp as spinnerVariants, UP as statusBoardRankIn, BP as statusMetaOf, VP as statusSelectOptions, _b as tintForString, Ge as toast, Es as toggleVariants, le as useAppClassName, Oe as useEditableDraft, De as useOptimisticList, ve as useOptimisticResource, je as usePersistentTabValue, ce as usePortalContainer };
|