@shipbench/board 0.9.0 → 0.10.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.js
CHANGED
|
@@ -4,9 +4,9 @@ var Qs = (e) => {
|
|
|
4
4
|
var Js = (e, t, n) => t.has(e) || Qs("Cannot " + n);
|
|
5
5
|
var Ze = (e, t, n) => (Js(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ea = (e, t, n) => t.has(e) ? Qs("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Bo = (e, t, n, r) => (Js(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
6
6
|
import { jsx as p, jsxs as L, Fragment as Ge } from "react/jsx-runtime";
|
|
7
|
-
import { createRoot as
|
|
7
|
+
import { createRoot as Kd } from "react-dom/client";
|
|
8
8
|
import * as S from "react";
|
|
9
|
-
import B, { createContext as vn, useRef as ce, useContext as Ft, useState as Q, useMemo as se, useId as Pn, useLayoutEffect as mr, useEffect as ue, useCallback as Qe, memo as
|
|
9
|
+
import B, { createContext as vn, useRef as ce, useContext as Ft, useState as Q, useMemo as se, useId as Pn, useLayoutEffect as mr, useEffect as ue, useCallback as Qe, memo as Yd, useReducer as qd, cloneElement as Xd, forwardRef as Zd } from "react";
|
|
10
10
|
import * as gr from "react-dom";
|
|
11
11
|
import Gd, { unstable_batchedUpdates as Nr, createPortal as Qd } from "react-dom";
|
|
12
12
|
const ta = (e) => {
|
|
@@ -34,7 +34,7 @@ function vi(e, t) {
|
|
|
34
34
|
function nf(e, t) {
|
|
35
35
|
return Date.parse(t.frontmatter.updated) - Date.parse(e.frontmatter.updated);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Yr(e, t, n) {
|
|
38
38
|
const r = {};
|
|
39
39
|
for (const [o, i] of Object.entries(e))
|
|
40
40
|
r[o] = i.filter(
|
|
@@ -50,7 +50,7 @@ function zo({
|
|
|
50
50
|
position: o,
|
|
51
51
|
doneColumn: i
|
|
52
52
|
}) {
|
|
53
|
-
const s = new Set(t.map((f) => f.slug)), a =
|
|
53
|
+
const s = new Set(t.map((f) => f.slug)), a = Yr(e, n, s);
|
|
54
54
|
if (delete a[i], r === i) return a;
|
|
55
55
|
const u = a[r] ?? [], c = new Set(u), d = t.filter(
|
|
56
56
|
(f) => f.frontmatter.status === r && f.slug !== n && !c.has(f.slug)
|
|
@@ -374,7 +374,7 @@ function Rf(e) {
|
|
|
374
374
|
}
|
|
375
375
|
const If = (e) => {
|
|
376
376
|
var t, n, r, o, i, s, a, u, c;
|
|
377
|
-
const { invert: d, toast: l, unstyled: h, interacting: f, setHeights: v, visibleToasts: m, heights: g, index: b, toasts: w, expanded: x, removeToast: k, defaultRichColors: D, closeButton: y, style: N, cancelButtonStyle: I, actionButtonStyle: C, className: O = "", descriptionClassName: R = "", duration: P, position: _, gap: A, expandByDefault: M, classNames: z, icons: H, closeButtonAriaLabel: V = "Close toast" } = e, [W, E] = B.useState(null), [de, ee] = B.useState(null), [T, q] = B.useState(!1), [re, X] = B.useState(!1), [me,
|
|
377
|
+
const { invert: d, toast: l, unstyled: h, interacting: f, setHeights: v, visibleToasts: m, heights: g, index: b, toasts: w, expanded: x, removeToast: k, defaultRichColors: D, closeButton: y, style: N, cancelButtonStyle: I, actionButtonStyle: C, className: O = "", descriptionClassName: R = "", duration: P, position: _, gap: A, expandByDefault: M, classNames: z, icons: H, closeButtonAriaLabel: V = "Close toast" } = e, [W, E] = B.useState(null), [de, ee] = B.useState(null), [T, q] = B.useState(!1), [re, X] = B.useState(!1), [me, K] = B.useState(!1), [Y, Z] = B.useState(!1), [le, te] = B.useState(!1), [ae, Ce] = B.useState(0), [Ie, Le] = B.useState(0), je = B.useRef(l.duration || P || ra), ct = B.useRef(null), He = B.useRef(null), et = b === 0, Rt = b + 1 <= m, ve = l.type, un = ve ?? "default", yt = l.dismissible !== !1, Un = l.className || "", F = l.descriptionClassName || "", j = B.useMemo(() => g.findIndex((G) => G.toastId === l.id) || 0, [
|
|
378
378
|
g,
|
|
379
379
|
l.id
|
|
380
380
|
]), J = B.useMemo(() => {
|
|
@@ -520,7 +520,7 @@ const If = (e) => {
|
|
|
520
520
|
"data-dismissible": yt,
|
|
521
521
|
"data-type": ve,
|
|
522
522
|
"data-invert": _o,
|
|
523
|
-
"data-swipe-out":
|
|
523
|
+
"data-swipe-out": Y,
|
|
524
524
|
"data-swipe-direction": de,
|
|
525
525
|
"data-expanded": !!(x || M && T),
|
|
526
526
|
"data-testid": l.testId,
|
|
@@ -534,17 +534,17 @@ const If = (e) => {
|
|
|
534
534
|
...l.style
|
|
535
535
|
},
|
|
536
536
|
onDragEnd: () => {
|
|
537
|
-
|
|
537
|
+
K(!1), E(null), Ve.current = null;
|
|
538
538
|
},
|
|
539
539
|
onPointerDown: (G) => {
|
|
540
|
-
G.button !== 2 && (Wn || !yt || (ct.current = /* @__PURE__ */ new Date(), Ce(ye.current), G.target.setPointerCapture(G.pointerId), G.target.tagName !== "BUTTON" && (
|
|
540
|
+
G.button !== 2 && (Wn || !yt || (ct.current = /* @__PURE__ */ new Date(), Ce(ye.current), G.target.setPointerCapture(G.pointerId), G.target.tagName !== "BUTTON" && (K(!0), Ve.current = {
|
|
541
541
|
x: G.clientX,
|
|
542
542
|
y: G.clientY
|
|
543
543
|
})));
|
|
544
544
|
},
|
|
545
545
|
onPointerUp: () => {
|
|
546
546
|
var G, pe, xe;
|
|
547
|
-
if (
|
|
547
|
+
if (Y || !yt) return;
|
|
548
548
|
Ve.current = null;
|
|
549
549
|
const Pe = Number(((G = He.current) == null ? void 0 : G.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Ne = Number(((pe = He.current) == null ? void 0 : pe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Se = (/* @__PURE__ */ new Date()).getTime() - ((xe = ct.current) == null ? void 0 : xe.getTime()), Te = W === "x" ? Pe : Ne, Oe = Math.abs(Te) / Se;
|
|
550
550
|
if ((W === "x" ? Ee.includes(Pe > 0 ? "right" : "left") : Ee.includes(Ne > 0 ? "bottom" : "top")) && (Math.abs(Te) >= Tf || Oe > 0.11)) {
|
|
@@ -554,7 +554,7 @@ const If = (e) => {
|
|
|
554
554
|
var Xe, mt;
|
|
555
555
|
(Xe = He.current) == null || Xe.style.setProperty("--swipe-amount-x", "0px"), (mt = He.current) == null || mt.style.setProperty("--swipe-amount-y", "0px");
|
|
556
556
|
}
|
|
557
|
-
te(!1),
|
|
557
|
+
te(!1), K(!1), E(null);
|
|
558
558
|
},
|
|
559
559
|
onPointerMove: (G) => {
|
|
560
560
|
var pe, xe, Pe;
|
|
@@ -729,9 +729,9 @@ const Pf = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
|
729
729
|
]), B.useEffect(() => {
|
|
730
730
|
const q = (re) => {
|
|
731
731
|
var X;
|
|
732
|
-
if (s.length > 0 && s.every((
|
|
733
|
-
var
|
|
734
|
-
A(!0), (
|
|
732
|
+
if (s.length > 0 && s.every((Y) => re[Y] || re.code === Y)) {
|
|
733
|
+
var K;
|
|
734
|
+
A(!0), (K = W.current) == null || K.focus();
|
|
735
735
|
}
|
|
736
736
|
re.code === "Escape" && (document.activeElement === W.current || (X = W.current) != null && X.contains(document.activeElement)) && A(!1);
|
|
737
737
|
};
|
|
@@ -759,7 +759,7 @@ const Pf = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
|
759
759
|
"data-react-aria-top-layer": !0
|
|
760
760
|
}, O.map((q, re) => {
|
|
761
761
|
var X;
|
|
762
|
-
const [me,
|
|
762
|
+
const [me, K] = q.split("-");
|
|
763
763
|
return C.length ? /* @__PURE__ */ B.createElement("ol", {
|
|
764
764
|
key: q,
|
|
765
765
|
dir: w === "auto" ? oa() : w,
|
|
@@ -769,7 +769,7 @@ const Pf = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
|
769
769
|
"data-sonner-toaster": !0,
|
|
770
770
|
"data-sonner-theme": H,
|
|
771
771
|
"data-y-position": me,
|
|
772
|
-
"data-x-position":
|
|
772
|
+
"data-x-position": K,
|
|
773
773
|
style: {
|
|
774
774
|
"--front-toast-height": `${((X = R[0]) == null ? void 0 : X.height) || 0}px`,
|
|
775
775
|
"--width": `${Ef}px`,
|
|
@@ -777,13 +777,13 @@ const Pf = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
|
777
777
|
...m,
|
|
778
778
|
...Af(d, l)
|
|
779
779
|
},
|
|
780
|
-
onBlur: (
|
|
781
|
-
ee.current && !
|
|
780
|
+
onBlur: (Y) => {
|
|
781
|
+
ee.current && !Y.currentTarget.contains(Y.relatedTarget) && (ee.current = !1, de.current && (de.current.focus({
|
|
782
782
|
preventScroll: !0
|
|
783
783
|
}), de.current = null));
|
|
784
784
|
},
|
|
785
|
-
onFocus: (
|
|
786
|
-
|
|
785
|
+
onFocus: (Y) => {
|
|
786
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, de.current = Y.relatedTarget);
|
|
787
787
|
},
|
|
788
788
|
onMouseEnter: () => A(!0),
|
|
789
789
|
onMouseMove: () => A(!0),
|
|
@@ -791,17 +791,17 @@ const Pf = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
|
791
791
|
M || A(!1);
|
|
792
792
|
},
|
|
793
793
|
onDragEnd: () => A(!1),
|
|
794
|
-
onPointerDown: (
|
|
795
|
-
|
|
794
|
+
onPointerDown: (Y) => {
|
|
795
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || z(!0);
|
|
796
796
|
},
|
|
797
797
|
onPointerUp: () => z(!1)
|
|
798
|
-
}, C.filter((
|
|
798
|
+
}, C.filter((Y) => !Y.position && re === 0 || Y.position === q).map((Y, Z) => {
|
|
799
799
|
var le, te;
|
|
800
800
|
return /* @__PURE__ */ B.createElement(If, {
|
|
801
|
-
key:
|
|
801
|
+
key: Y.id,
|
|
802
802
|
icons: k,
|
|
803
803
|
index: Z,
|
|
804
|
-
toast:
|
|
804
|
+
toast: Y,
|
|
805
805
|
defaultRichColors: f,
|
|
806
806
|
duration: (le = b == null ? void 0 : b.duration) != null ? le : v,
|
|
807
807
|
className: b == null ? void 0 : b.className,
|
|
@@ -818,8 +818,8 @@ const Pf = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
|
818
818
|
actionButtonStyle: b == null ? void 0 : b.actionButtonStyle,
|
|
819
819
|
closeButtonAriaLabel: b == null ? void 0 : b.closeButtonAriaLabel,
|
|
820
820
|
removeToast: T,
|
|
821
|
-
toasts: C.filter((ae) => ae.position ==
|
|
822
|
-
heights: R.filter((ae) => ae.position ==
|
|
821
|
+
toasts: C.filter((ae) => ae.position == Y.position),
|
|
822
|
+
heights: R.filter((ae) => ae.position == Y.position),
|
|
823
823
|
setHeights: P,
|
|
824
824
|
expandByDefault: a,
|
|
825
825
|
gap: x,
|
|
@@ -967,7 +967,7 @@ function Lf(e) {
|
|
|
967
967
|
h,
|
|
968
968
|
f
|
|
969
969
|
);
|
|
970
|
-
|
|
970
|
+
Yn(c, g, l), b && c((x) => ({
|
|
971
971
|
config: x.config ? { ...x.config, layout: b } : x.config
|
|
972
972
|
}));
|
|
973
973
|
const w = new Set(Object.keys(h));
|
|
@@ -1004,7 +1004,7 @@ function Lf(e) {
|
|
|
1004
1004
|
})), i(l);
|
|
1005
1005
|
try {
|
|
1006
1006
|
const m = await e.addComment(l, h);
|
|
1007
|
-
return
|
|
1007
|
+
return Yn(c, m, l), !0;
|
|
1008
1008
|
} catch (m) {
|
|
1009
1009
|
return Qt(
|
|
1010
1010
|
c,
|
|
@@ -1038,7 +1038,7 @@ function Lf(e) {
|
|
|
1038
1038
|
})), i(l);
|
|
1039
1039
|
try {
|
|
1040
1040
|
const w = await e.editComment(l, h, f);
|
|
1041
|
-
return
|
|
1041
|
+
return Yn(c, w, l), !0;
|
|
1042
1042
|
} catch (w) {
|
|
1043
1043
|
return Qt(
|
|
1044
1044
|
c,
|
|
@@ -1072,7 +1072,7 @@ function Lf(e) {
|
|
|
1072
1072
|
})), i(l);
|
|
1073
1073
|
try {
|
|
1074
1074
|
const g = await e.deleteComment(l, h);
|
|
1075
|
-
return
|
|
1075
|
+
return Yn(c, g, l), !0;
|
|
1076
1076
|
} catch (g) {
|
|
1077
1077
|
return Qt(
|
|
1078
1078
|
c,
|
|
@@ -1103,7 +1103,7 @@ function Lf(e) {
|
|
|
1103
1103
|
c((D) => ({ tasks: [g, ...D.tasks] })), i(v);
|
|
1104
1104
|
try {
|
|
1105
1105
|
const D = await e.createTask(l, h);
|
|
1106
|
-
|
|
1106
|
+
Yn(c, D, v);
|
|
1107
1107
|
} catch (D) {
|
|
1108
1108
|
Qt(c, b, `Create failed: ${St(D)}`);
|
|
1109
1109
|
} finally {
|
|
@@ -1117,7 +1117,7 @@ function Lf(e) {
|
|
|
1117
1117
|
selectedTaskSlug: f.selectedTaskSlug === l ? null : f.selectedTaskSlug,
|
|
1118
1118
|
config: f.config ? {
|
|
1119
1119
|
...f.config,
|
|
1120
|
-
layout:
|
|
1120
|
+
layout: Yr(f.config.layout ?? {}, l)
|
|
1121
1121
|
} : null
|
|
1122
1122
|
})), i(l);
|
|
1123
1123
|
try {
|
|
@@ -1143,7 +1143,7 @@ function Lf(e) {
|
|
|
1143
1143
|
selectedTaskSlug: w.selectedTaskSlug === l ? null : w.selectedTaskSlug,
|
|
1144
1144
|
config: w.config ? {
|
|
1145
1145
|
...w.config,
|
|
1146
|
-
layout:
|
|
1146
|
+
layout: Yr(w.config.layout ?? {}, l)
|
|
1147
1147
|
} : null
|
|
1148
1148
|
})), i(l);
|
|
1149
1149
|
try {
|
|
@@ -1329,7 +1329,7 @@ function Gt(e, t) {
|
|
|
1329
1329
|
selectedTaskSlug: e.selectedTaskSlug
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Yn(e, t, n) {
|
|
1333
1333
|
e((r) => ({
|
|
1334
1334
|
tasks: r.tasks.some((o) => o.slug === n) ? r.tasks.map((o) => o.slug === n ? t : o) : [t, ...r.tasks],
|
|
1335
1335
|
selectedTaskSlug: r.selectedTaskSlug === n ? t.slug : r.selectedTaskSlug
|
|
@@ -1344,7 +1344,7 @@ function Qt(e, t, n) {
|
|
|
1344
1344
|
) : [i, ...s.tasks] : (
|
|
1345
1345
|
// No prior task means this was a create — drop the optimistic row.
|
|
1346
1346
|
s.tasks.filter((l) => l.slug !== o)
|
|
1347
|
-
), c =
|
|
1347
|
+
), c = Yr(((d = s.config) == null ? void 0 : d.layout) ?? {}, o);
|
|
1348
1348
|
if (t.column !== null) {
|
|
1349
1349
|
const l = [...c[t.column] ?? []];
|
|
1350
1350
|
l.splice(Math.min(t.index, l.length), 0, o), c[t.column] = l;
|
|
@@ -1371,27 +1371,27 @@ function Qt(e, t, n) {
|
|
|
1371
1371
|
function St(e) {
|
|
1372
1372
|
return e instanceof Error ? e.message : "Unknown error";
|
|
1373
1373
|
}
|
|
1374
|
-
const
|
|
1374
|
+
const Kl = vn(null);
|
|
1375
1375
|
function Mf({
|
|
1376
1376
|
api: e,
|
|
1377
1377
|
children: t
|
|
1378
1378
|
}) {
|
|
1379
1379
|
const n = ce(null), r = ce(null);
|
|
1380
|
-
return (!n.current || r.current !== e) && (n.current = Lf(e), r.current = e), /* @__PURE__ */ p(
|
|
1380
|
+
return (!n.current || r.current !== e) && (n.current = Lf(e), r.current = e), /* @__PURE__ */ p(Kl.Provider, { value: n.current, children: t });
|
|
1381
1381
|
}
|
|
1382
1382
|
function U(e) {
|
|
1383
|
-
const t = Ft(
|
|
1383
|
+
const t = Ft(Kl);
|
|
1384
1384
|
if (!t)
|
|
1385
1385
|
throw new Error("useBoardStore must be used within BoardStoreProvider");
|
|
1386
1386
|
return tf(t, e);
|
|
1387
1387
|
}
|
|
1388
|
-
var
|
|
1388
|
+
var Yl = {
|
|
1389
1389
|
color: void 0,
|
|
1390
1390
|
size: void 0,
|
|
1391
1391
|
className: void 0,
|
|
1392
1392
|
style: void 0,
|
|
1393
1393
|
attr: void 0
|
|
1394
|
-
}, ia = B.createContext && /* @__PURE__ */ B.createContext(
|
|
1394
|
+
}, ia = B.createContext && /* @__PURE__ */ B.createContext(Yl), _f = ["attr", "size", "title"];
|
|
1395
1395
|
function Ff(e, t) {
|
|
1396
1396
|
if (e == null) return {};
|
|
1397
1397
|
var n, r, o = Bf(e, t);
|
|
@@ -1484,7 +1484,7 @@ function Hf(e) {
|
|
|
1484
1484
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1485
1485
|
}), i && /* @__PURE__ */ B.createElement("title", null, i), e.children);
|
|
1486
1486
|
};
|
|
1487
|
-
return ia !== void 0 ? /* @__PURE__ */ B.createElement(ia.Consumer, null, (n) => t(n)) : t(
|
|
1487
|
+
return ia !== void 0 ? /* @__PURE__ */ B.createElement(ia.Consumer, null, (n) => t(n)) : t(Yl);
|
|
1488
1488
|
}
|
|
1489
1489
|
function Xl(e) {
|
|
1490
1490
|
return Re({ attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { d: "M7.98779 1.56268C8.0409 1.27989 8.3134 1.09275 8.59619 1.14569L8.86475 1.20233C11.6292 1.83955 14.0531 4.23823 14.0532 7.70331C14.0532 9.23977 13.3539 10.4478 12.5376 11.3664C11.9526 12.0246 11.2828 12.5586 10.7446 12.968L12.3823 12.968C12.6583 12.9681 12.8822 13.192 12.8823 13.468C12.8823 13.744 12.6583 13.9678 12.3823 13.968L9.38232 13.968C9.10618 13.968 8.88232 13.7441 8.88232 13.468L8.88232 10.468C8.88242 10.1919 9.10624 9.96796 9.38232 9.96796C9.65828 9.96811 9.88223 10.192 9.88232 10.468L9.88232 12.3137L10.064 12.176C10.5978 11.7712 11.2158 11.2844 11.7583 10.674C12.4727 9.87007 13.0102 8.89839 13.0103 7.70331C13.0101 4.69155 10.8502 2.63051 8.40381 2.17108L8.30225 2.14081C8.07811 2.04924 7.94169 1.80992 7.98779 1.56268ZM0.86084 7.29706C0.860904 5.76062 1.56016 4.55258 2.37646 3.63397C2.96144 2.97579 3.63128 2.44174 4.16943 2.03241L2.53174 2.03241C2.25581 2.03224 2.03185 1.80835 2.03174 1.53241C2.03174 1.25637 2.25574 1.03258 2.53174 1.03241L5.53174 1.03241C5.80788 1.03241 6.03174 1.25627 6.03174 1.53241L6.03174 4.53241C6.03162 4.80845 5.80781 5.03241 5.53174 5.03241C5.25581 5.03224 5.03185 4.80835 5.03174 4.53241L5.03174 2.68671L4.8501 2.8244C4.3163 3.22913 3.6983 3.71593 3.15576 4.32635C2.44134 5.13029 1.90387 6.10199 1.90381 7.29706C1.90397 10.3411 4.11093 12.4148 6.58936 12.8439C6.87264 12.8932 7.06302 13.1631 7.01416 13.4465C6.96499 13.7298 6.69498 13.92 6.41162 13.8713C3.50004 13.3671 0.860998 10.9128 0.86084 7.29706Z", fill: "currentColor" }, child: [] }] })(e);
|
|
@@ -1519,10 +1519,10 @@ function Wf(e) {
|
|
|
1519
1519
|
function Ql(e) {
|
|
1520
1520
|
return Re({ attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { d: "M3.6893 6.37529C3.88335 6.24731 4.14742 6.26897 4.31821 6.43975C4.51323 6.63496 4.51323 6.95156 4.31821 7.14678L3.69907 7.76592C3.37878 8.08621 3.20737 8.25925 3.09751 8.39092L3.00473 8.51201C2.54529 9.18833 2.53677 10.0437 2.95395 10.679L3.03891 10.7933C3.14049 10.9167 3.30254 11.0803 3.61118 11.389C4.02302 11.8008 4.17689 11.9514 4.32114 12.0462L4.44223 12.1194C5.06223 12.4608 5.85391 12.4263 6.48813 11.9954L6.60923 11.9026C6.74094 11.7927 6.91473 11.6216 7.2352 11.3011L7.85337 10.6819C8.04855 10.4869 8.36517 10.487 8.5604 10.6819C8.7556 10.8771 8.75548 11.1937 8.5604 11.389L7.94223 12.0081C7.64648 12.3039 7.43399 12.5174 7.24008 12.678L7.04965 12.8226C6.11777 13.4555 4.9223 13.5259 3.96079 12.9964L3.77231 12.8821C3.52088 12.717 3.28054 12.4734 2.90415 12.097C2.62181 11.8146 2.41357 11.6085 2.25766 11.4173L2.11801 11.2278C1.468 10.2379 1.50252 8.94437 2.17758 7.95049L2.32212 7.76006C2.48279 7.56615 2.69629 7.35366 2.99204 7.05791L3.61118 6.43975L3.6893 6.37529ZM8.91391 5.37822C9.109 5.18318 9.42565 5.18352 9.62094 5.37822C9.81619 5.57347 9.81616 5.88999 9.62094 6.08525L6.08579 9.62041C5.89053 9.81567 5.57402 9.81567 5.37876 9.62041C5.18404 9.4251 5.18368 9.10846 5.37876 8.91338L8.91391 5.37822ZM8.1395 2.05889C9.1042 1.50111 10.2992 1.50903 11.2274 2.11846L11.4168 2.25811C11.6081 2.41402 11.8142 2.62226 12.0965 2.90459C12.4729 3.28097 12.7166 3.52133 12.8817 3.77275L12.9959 3.96123C13.4902 4.85869 13.4619 5.96014 12.9413 6.86064L12.8221 7.0501C12.7365 7.17616 12.6315 7.3007 12.4989 7.44268L12.0077 7.94268L11.3885 8.56084C11.1932 8.75595 10.8767 8.75605 10.6815 8.56084C10.4866 8.3656 10.4865 8.04899 10.6815 7.85381L11.3006 7.23564L11.7684 6.75908C11.8753 6.64519 11.9426 6.56569 11.995 6.48857L12.076 6.35967C12.4289 5.74954 12.4376 5.02132 12.119 4.44268L12.0457 4.32158C11.951 4.17733 11.8004 4.02345 11.3885 3.61162C11.0799 3.30299 10.9163 3.14093 10.7928 3.03936L10.6786 2.95439C10.083 2.56329 9.29401 2.54612 8.64048 2.92412L8.51157 3.00518C8.43446 3.05757 8.35494 3.12484 8.24106 3.23174L7.76548 3.69951L7.14633 4.31865C6.95112 4.5137 6.63453 4.51368 6.4393 4.31865C6.24411 4.12344 6.2442 3.80689 6.4393 3.61162L7.05747 2.99248L7.55747 2.50225C7.69965 2.36939 7.82384 2.26376 7.95005 2.17803L8.1395 2.05889Z", fill: "currentColor" }, child: [] }] })(e);
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Kf(e) {
|
|
1523
1523
|
return Re({ attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { d: "M7.49915 0.876907C11.1566 0.876907 14.1218 3.84164 14.1222 7.49898C14.1222 11.1566 11.1568 14.122 7.49915 14.122C3.84181 14.1216 0.877075 11.1564 0.877075 7.49898C0.877487 3.8419 3.84206 0.877318 7.49915 0.876907ZM7.49915 1.82613C4.36673 1.82654 1.82671 4.36657 1.82629 7.49898C1.82629 10.6317 4.36648 13.1714 7.49915 13.1718C10.6321 13.1718 13.172 10.632 13.172 7.49898C13.1716 4.36631 10.6319 1.82613 7.49915 1.82613ZM7.60071 6.00972C7.82862 6.05627 8.0001 6.25829 8.00012 6.49995V9.99995H9.00012V11H6.00012V9.99995H7.00012V6.99995H6.00012V5.99995H7.50012L7.60071 6.00972ZM7.50012 3.74995C7.91423 3.75006 8.2501 4.08583 8.25012 4.49995C8.25012 4.9141 7.91424 5.24985 7.50012 5.24995C7.08591 5.24995 6.75012 4.91417 6.75012 4.49995C6.75015 4.08576 7.08592 3.74995 7.50012 3.74995Z", fill: "currentColor" }, child: [] }] })(e);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function Yf(e) {
|
|
1526
1526
|
return Re({ attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { d: "M7.50002 3C10.6922 3 13.3435 4.70671 14.9239 7.23535C15.0124 7.37717 15.0235 7.55201 14.9571 7.70215L14.9239 7.76465C13.3435 10.2933 10.6922 12 7.50002 12C4.30788 12 1.65659 10.2933 0.0761963 7.76465C-0.0249881 7.6026 -0.0249956 7.3974 0.0761963 7.23535L0.227563 7C1.82294 4.60122 4.4078 3 7.50002 3ZM7.50002 4C4.80354 4 2.53299 5.37905 1.09963 7.5C2.53299 9.62094 4.80354 11 7.50002 11C10.1963 11 12.4661 9.62068 13.8994 7.5C12.4661 5.3793 10.1963 4 7.50002 4ZM7.50002 5.5C8.60459 5.5 9.50002 6.39543 9.50002 7.5C9.50002 8.60457 8.60459 9.5 7.50002 9.5C6.39545 9.5 5.50002 8.60457 5.50002 7.5C5.50002 6.39543 6.39545 5.5 7.50002 5.5Z", fill: "currentColor" }, child: [] }] })(e);
|
|
1527
1527
|
}
|
|
1528
1528
|
function Xt(e) {
|
|
@@ -2126,12 +2126,12 @@ function lc(...e) {
|
|
|
2126
2126
|
return n.scopeName = t.scopeName, n;
|
|
2127
2127
|
}
|
|
2128
2128
|
vt(lc, "composeContextScopes");
|
|
2129
|
-
var
|
|
2129
|
+
var Ye = globalThis != null && globalThis.document ? S.useLayoutEffect : () => {
|
|
2130
2130
|
}, mh = Object.defineProperty, gh = (e, t) => mh(e, "name", { value: t, configurable: !0 }), bh = S[" useId ".trim().toString()] || (() => {
|
|
2131
2131
|
}), vh = 0;
|
|
2132
2132
|
function Nn(e) {
|
|
2133
2133
|
const [t, n] = S.useState(bh());
|
|
2134
|
-
return
|
|
2134
|
+
return Ye(() => {
|
|
2135
2135
|
e || n((r) => r ?? String(vh++));
|
|
2136
2136
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
2137
2137
|
}
|
|
@@ -2145,7 +2145,7 @@ function cc(e) {
|
|
|
2145
2145
|
});
|
|
2146
2146
|
return typeof ha == "function" ? ha(() => {
|
|
2147
2147
|
t.current = e;
|
|
2148
|
-
}) :
|
|
2148
|
+
}) : Ye(() => {
|
|
2149
2149
|
t.current = e;
|
|
2150
2150
|
}), S.useMemo(() => ((...n) => {
|
|
2151
2151
|
var r;
|
|
@@ -2153,7 +2153,7 @@ function cc(e) {
|
|
|
2153
2153
|
}), []);
|
|
2154
2154
|
}
|
|
2155
2155
|
xh(cc, "useEffectEvent");
|
|
2156
|
-
var wh = Object.defineProperty, vr = (e, t) => wh(e, "name", { value: t, configurable: !0 }), Ch = S[" useInsertionEffect ".trim().toString()] ||
|
|
2156
|
+
var wh = Object.defineProperty, vr = (e, t) => wh(e, "name", { value: t, configurable: !0 }), Ch = S[" useInsertionEffect ".trim().toString()] || Ye;
|
|
2157
2157
|
function Qr({
|
|
2158
2158
|
prop: e,
|
|
2159
2159
|
defaultProp: t,
|
|
@@ -2688,16 +2688,16 @@ var $h = Object.defineProperty, jh = (e, t) => $h(e, "name", { value: t, configu
|
|
|
2688
2688
|
/* @__PURE__ */ jh(function(t, n) {
|
|
2689
2689
|
var u;
|
|
2690
2690
|
const { container: r, ...o } = t, [i, s] = S.useState(!1);
|
|
2691
|
-
|
|
2691
|
+
Ye(() => s(!0), []);
|
|
2692
2692
|
const a = r || i && ((u = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : u.body);
|
|
2693
2693
|
return a ? gr.createPortal(/* @__PURE__ */ p($e.div, { ...o, ref: n }), a) : null;
|
|
2694
2694
|
}, "Portal")
|
|
2695
|
-
), Hh = Object.defineProperty,
|
|
2695
|
+
), Hh = Object.defineProperty, Yt = (e, t) => Hh(e, "name", { value: t, configurable: !0 });
|
|
2696
2696
|
function Ac(e, t) {
|
|
2697
2697
|
return S.useReducer((n, r) => t[n][r] ?? n, e);
|
|
2698
2698
|
}
|
|
2699
|
-
|
|
2700
|
-
var po = /* @__PURE__ */
|
|
2699
|
+
Yt(Ac, "useStateMachine");
|
|
2700
|
+
var po = /* @__PURE__ */ Yt((e) => {
|
|
2701
2701
|
const { present: t, children: n } = e, r = Pc(t), o = typeof n == "function" ? n({ present: r.isPresent }) : S.Children.only(n), i = Lc(r.ref, Oc(o));
|
|
2702
2702
|
return typeof n == "function" || r.isPresent ? S.cloneElement(o, { ref: i }) : null;
|
|
2703
2703
|
}, "Presence");
|
|
@@ -2717,16 +2717,16 @@ function Pc(e) {
|
|
|
2717
2717
|
});
|
|
2718
2718
|
return S.useEffect(() => {
|
|
2719
2719
|
u === "mounted" ? (i.current = s.current ?? En(r.current), s.current = void 0) : i.current = "none";
|
|
2720
|
-
}, [u]),
|
|
2720
|
+
}, [u]), Ye(() => {
|
|
2721
2721
|
const d = r.current, l = o.current;
|
|
2722
2722
|
if (l !== e) {
|
|
2723
2723
|
const f = i.current, v = En(d);
|
|
2724
2724
|
e ? (s.current = v, c("MOUNT")) : v === "none" || (d == null ? void 0 : d.display) === "none" ? c("UNMOUNT") : c(l && f !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
2725
2725
|
}
|
|
2726
|
-
}, [e, c]),
|
|
2726
|
+
}, [e, c]), Ye(() => {
|
|
2727
2727
|
if (t) {
|
|
2728
2728
|
let d;
|
|
2729
|
-
const l = t.ownerDocument.defaultView ?? window, h = /* @__PURE__ */
|
|
2729
|
+
const l = t.ownerDocument.defaultView ?? window, h = /* @__PURE__ */ Yt((v) => {
|
|
2730
2730
|
const g = En(r.current).includes(CSS.escape(v.animationName));
|
|
2731
2731
|
if (v.target === t && g && (c("ANIMATION_END"), !o.current)) {
|
|
2732
2732
|
const b = t.style.animationFillMode;
|
|
@@ -2734,7 +2734,7 @@ function Pc(e) {
|
|
|
2734
2734
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = b);
|
|
2735
2735
|
});
|
|
2736
2736
|
}
|
|
2737
|
-
}, "handleAnimationEnd"), f = /* @__PURE__ */
|
|
2737
|
+
}, "handleAnimationEnd"), f = /* @__PURE__ */ Yt((v) => {
|
|
2738
2738
|
v.target === t && (i.current = En(r.current));
|
|
2739
2739
|
}, "handleAnimationStart");
|
|
2740
2740
|
return t.addEventListener("animationstart", f), t.addEventListener("animationcancel", h), t.addEventListener("animationend", h), () => {
|
|
@@ -2754,13 +2754,13 @@ function Pc(e) {
|
|
|
2754
2754
|
}, [])
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
|
-
|
|
2757
|
+
Yt(Pc, "usePresence");
|
|
2758
2758
|
function Di(e, t) {
|
|
2759
2759
|
if (typeof e == "function")
|
|
2760
2760
|
return e(t);
|
|
2761
2761
|
e != null && (e.current = t);
|
|
2762
2762
|
}
|
|
2763
|
-
|
|
2763
|
+
Yt(Di, "setRef");
|
|
2764
2764
|
function Lc(...e) {
|
|
2765
2765
|
const t = S.useRef(e);
|
|
2766
2766
|
return t.current = e, S.useCallback((n) => {
|
|
@@ -2779,17 +2779,17 @@ function Lc(...e) {
|
|
|
2779
2779
|
};
|
|
2780
2780
|
}, []);
|
|
2781
2781
|
}
|
|
2782
|
-
|
|
2782
|
+
Yt(Lc, "useStableComposedRefs");
|
|
2783
2783
|
function En(e) {
|
|
2784
2784
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2785
2785
|
}
|
|
2786
|
-
|
|
2786
|
+
Yt(En, "getAnimationName");
|
|
2787
2787
|
function Oc(e) {
|
|
2788
2788
|
var r, o;
|
|
2789
2789
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2790
2790
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2791
2791
|
}
|
|
2792
|
-
|
|
2792
|
+
Yt(Oc, "getElementRef");
|
|
2793
2793
|
var Vh = Object.defineProperty, is = (e, t) => Vh(e, "name", { value: t, configurable: !0 }), Ir = 0, Pt = null;
|
|
2794
2794
|
function Uh(e) {
|
|
2795
2795
|
return mo(), e.children;
|
|
@@ -2832,7 +2832,7 @@ function Wh(e, t, n) {
|
|
|
2832
2832
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
2833
2833
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
2834
2834
|
}
|
|
2835
|
-
var jr = "right-scroll-bar-position", Hr = "width-before-scroll-bar",
|
|
2835
|
+
var jr = "right-scroll-bar-position", Hr = "width-before-scroll-bar", Kh = "with-scroll-bars-hidden", Yh = "--removed-body-scroll-bar-size";
|
|
2836
2836
|
function Vo(e, t) {
|
|
2837
2837
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2838
2838
|
}
|
|
@@ -3043,7 +3043,7 @@ var ip = function() {
|
|
|
3043
3043
|
}, up = Bc(), Tn = "data-scroll-locked", dp = function(e, t, n, r) {
|
|
3044
3044
|
var o = e.left, i = e.top, s = e.right, a = e.gap;
|
|
3045
3045
|
return n === void 0 && (n = "margin"), `
|
|
3046
|
-
.`.concat(
|
|
3046
|
+
.`.concat(Kh, ` {
|
|
3047
3047
|
overflow: hidden `).concat(r, `;
|
|
3048
3048
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
3049
3049
|
}
|
|
@@ -3081,7 +3081,7 @@ var ip = function() {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
|
|
3083
3083
|
body[`).concat(Tn, `] {
|
|
3084
|
-
`).concat(
|
|
3084
|
+
`).concat(Yh, ": ").concat(a, `px;
|
|
3085
3085
|
}
|
|
3086
3086
|
`);
|
|
3087
3087
|
}, ya = function() {
|
|
@@ -3290,7 +3290,7 @@ var Tp = function(e) {
|
|
|
3290
3290
|
return null;
|
|
3291
3291
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3292
3292
|
return t.ownerDocument.body;
|
|
3293
|
-
}, Sn = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Or = {},
|
|
3293
|
+
}, Sn = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Or = {}, Ko = 0, Hc = function(e) {
|
|
3294
3294
|
return e && (e.host || Hc(e.parentNode));
|
|
3295
3295
|
}, Dp = function(e, t) {
|
|
3296
3296
|
return t.map(function(n) {
|
|
@@ -3321,11 +3321,11 @@ var Tp = function(e) {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
});
|
|
3323
3323
|
};
|
|
3324
|
-
return d(t), a.clear(),
|
|
3324
|
+
return d(t), a.clear(), Ko++, function() {
|
|
3325
3325
|
s.forEach(function(l) {
|
|
3326
3326
|
var h = Sn.get(l) - 1, f = i.get(l) - 1;
|
|
3327
3327
|
Sn.set(l, h), i.set(l, f), h || (Lr.has(l) || l.removeAttribute(r), Lr.delete(l)), f || l.removeAttribute(n);
|
|
3328
|
-
}),
|
|
3328
|
+
}), Ko--, Ko || (Sn = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Or = {});
|
|
3329
3329
|
};
|
|
3330
3330
|
}, Vc = function(e, t, n) {
|
|
3331
3331
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -3333,7 +3333,7 @@ var Tp = function(e) {
|
|
|
3333
3333
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Rp(r, o, n, "aria-hidden")) : function() {
|
|
3334
3334
|
return null;
|
|
3335
3335
|
};
|
|
3336
|
-
}, Ip = Object.defineProperty, pt = (e, t) => Ip(e, "name", { value: t, configurable: !0 }), as = "Dialog", [Uc,
|
|
3336
|
+
}, Ip = Object.defineProperty, pt = (e, t) => Ip(e, "name", { value: t, configurable: !0 }), as = "Dialog", [Uc, yw] = /* @__PURE__ */ _n(as), [Ap, Dt] = Uc(as), ls = /* @__PURE__ */ pt((e) => {
|
|
3337
3337
|
const {
|
|
3338
3338
|
__scopeDialog: t,
|
|
3339
3339
|
children: n,
|
|
@@ -3384,14 +3384,14 @@ var Tp = function(e) {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
);
|
|
3386
3386
|
}, "DialogTrigger")
|
|
3387
|
-
), Wc = "DialogPortal", [Op,
|
|
3387
|
+
), Wc = "DialogPortal", [Op, Kc] = Uc(Wc, {
|
|
3388
3388
|
forceMount: void 0
|
|
3389
3389
|
}), cs = /* @__PURE__ */ pt((e) => {
|
|
3390
3390
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = Dt(Wc, t);
|
|
3391
3391
|
return /* @__PURE__ */ p(Op, { scope: t, forceMount: n, children: S.Children.map(r, (s) => /* @__PURE__ */ p(po, { present: n || i.open, children: /* @__PURE__ */ p(Ic, { asChild: !0, container: o, children: s }) })) });
|
|
3392
3392
|
}, "DialogPortal"), Ai = "DialogOverlay", us = /* @__PURE__ */ S.forwardRef(
|
|
3393
3393
|
/* @__PURE__ */ pt(function(t, n) {
|
|
3394
|
-
const r =
|
|
3394
|
+
const r = Kc(Ai, t.__scopeDialog), { forceMount: o = r.forceMount, ...i } = t, s = Dt(Ai, t.__scopeDialog);
|
|
3395
3395
|
return s.modal ? /* @__PURE__ */ p(po, { present: o || s.open, children: /* @__PURE__ */ p(_p, { ...i, ref: n }) }) : null;
|
|
3396
3396
|
}, "DialogOverlay")
|
|
3397
3397
|
), Mp = /* @__PURE__ */ nn("DialogOverlay.RemoveScroll"), _p = /* @__PURE__ */ S.forwardRef(
|
|
@@ -3414,7 +3414,7 @@ var Tp = function(e) {
|
|
|
3414
3414
|
}, "DialogOverlayImpl")
|
|
3415
3415
|
), ir = "DialogContent", ds = /* @__PURE__ */ S.forwardRef(
|
|
3416
3416
|
/* @__PURE__ */ pt(function(t, n) {
|
|
3417
|
-
const r =
|
|
3417
|
+
const r = Kc(ir, t.__scopeDialog), { forceMount: o = r.forceMount, ...i } = t, s = Dt(ir, t.__scopeDialog);
|
|
3418
3418
|
return /* @__PURE__ */ p(po, { present: o || s.open, children: s.modal ? /* @__PURE__ */ p(Fp, { ...i, ref: n }) : /* @__PURE__ */ p(Bp, { ...i, ref: n }) });
|
|
3419
3419
|
}, "DialogContent")
|
|
3420
3420
|
), Fp = /* @__PURE__ */ S.forwardRef(
|
|
@@ -3425,7 +3425,7 @@ var Tp = function(e) {
|
|
|
3425
3425
|
const s = o.current;
|
|
3426
3426
|
if (s) return Vc(s);
|
|
3427
3427
|
}, []), /* @__PURE__ */ p(
|
|
3428
|
-
|
|
3428
|
+
Yc,
|
|
3429
3429
|
{
|
|
3430
3430
|
...t,
|
|
3431
3431
|
ref: i,
|
|
@@ -3451,7 +3451,7 @@ var Tp = function(e) {
|
|
|
3451
3451
|
/* @__PURE__ */ pt(function(t, n) {
|
|
3452
3452
|
const r = Dt(ir, t.__scopeDialog), o = S.useRef(!1), i = S.useRef(!1);
|
|
3453
3453
|
return /* @__PURE__ */ p(
|
|
3454
|
-
|
|
3454
|
+
Yc,
|
|
3455
3455
|
{
|
|
3456
3456
|
...t,
|
|
3457
3457
|
ref: n,
|
|
@@ -3470,7 +3470,7 @@ var Tp = function(e) {
|
|
|
3470
3470
|
}
|
|
3471
3471
|
);
|
|
3472
3472
|
}, "DialogContentNonModal")
|
|
3473
|
-
),
|
|
3473
|
+
), Yc = /* @__PURE__ */ S.forwardRef(
|
|
3474
3474
|
// blank line to reduce diff noise
|
|
3475
3475
|
/* @__PURE__ */ pt(function(t, n) {
|
|
3476
3476
|
const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, ...a } = t, u = Dt(ir, r);
|
|
@@ -3502,13 +3502,13 @@ var Tp = function(e) {
|
|
|
3502
3502
|
), zp = "DialogTitle", fs = /* @__PURE__ */ S.forwardRef(
|
|
3503
3503
|
/* @__PURE__ */ pt(function(t, n) {
|
|
3504
3504
|
const { __scopeDialog: r, ...o } = t, i = Dt(zp, r), { setTitleCount: s } = i;
|
|
3505
|
-
return
|
|
3505
|
+
return Ye(() => (s((a) => a + 1), () => s((a) => a - 1)), [s]), /* @__PURE__ */ p($e.h2, { id: i.titleId, ...o, ref: n });
|
|
3506
3506
|
}, "DialogTitle")
|
|
3507
3507
|
), $p = "DialogDescription", hs = /* @__PURE__ */ S.forwardRef(
|
|
3508
3508
|
// blank line to reduce diff noise
|
|
3509
3509
|
/* @__PURE__ */ pt(function(t, n) {
|
|
3510
3510
|
const { __scopeDialog: r, ...o } = t, i = Dt($p, r), { setDescriptionCount: s } = i;
|
|
3511
|
-
return
|
|
3511
|
+
return Ye(() => (s((a) => a + 1), () => s((a) => a - 1)), [s]), /* @__PURE__ */ p($e.p, { id: i.descriptionId, ...o, ref: n });
|
|
3512
3512
|
}, "DialogDescription")
|
|
3513
3513
|
), jp = "DialogClose", sr = /* @__PURE__ */ S.forwardRef(
|
|
3514
3514
|
/* @__PURE__ */ pt(function(t, n) {
|
|
@@ -3615,16 +3615,16 @@ function Vp(e, t) {
|
|
|
3615
3615
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
3616
3616
|
).trim();
|
|
3617
3617
|
}
|
|
3618
|
-
const Up = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Wp = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,
|
|
3618
|
+
const Up = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Wp = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Kp = {};
|
|
3619
3619
|
function ka(e, t) {
|
|
3620
|
-
return (
|
|
3620
|
+
return (Kp.jsx ? Wp : Up).test(e);
|
|
3621
3621
|
}
|
|
3622
|
-
const
|
|
3622
|
+
const Yp = /[ \t\n\f\r]/g;
|
|
3623
3623
|
function qp(e) {
|
|
3624
3624
|
return typeof e == "object" ? e.type === "text" ? Ea(e.value) : !1 : Ea(e);
|
|
3625
3625
|
}
|
|
3626
3626
|
function Ea(e) {
|
|
3627
|
-
return e.replace(
|
|
3627
|
+
return e.replace(Yp, "") === "";
|
|
3628
3628
|
}
|
|
3629
3629
|
class yr {
|
|
3630
3630
|
/**
|
|
@@ -3692,7 +3692,7 @@ const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3692
3692
|
number: $,
|
|
3693
3693
|
overloadedBoolean: Li,
|
|
3694
3694
|
spaceSeparated: we
|
|
3695
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3695
|
+
}, Symbol.toStringTag, { value: "Module" })), Yo = (
|
|
3696
3696
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
3697
3697
|
Object.keys(Oi)
|
|
3698
3698
|
);
|
|
@@ -3713,9 +3713,9 @@ class ps extends lt {
|
|
|
3713
3713
|
constructor(t, n, r, o) {
|
|
3714
3714
|
let i = -1;
|
|
3715
3715
|
if (super(t, n), Na(this, "space", o), typeof r == "number")
|
|
3716
|
-
for (; ++i <
|
|
3717
|
-
const s =
|
|
3718
|
-
Na(this,
|
|
3716
|
+
for (; ++i < Yo.length; ) {
|
|
3717
|
+
const s = Yo[i];
|
|
3718
|
+
Na(this, Yo[i], (r & Oi[s]) === Oi[s]);
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
@@ -5558,12 +5558,12 @@ function Wm(e) {
|
|
|
5558
5558
|
return ne(a) ? (e.consume(a), e.exit("chunkText"), i) : (e.consume(a), s);
|
|
5559
5559
|
}
|
|
5560
5560
|
}
|
|
5561
|
-
const
|
|
5562
|
-
tokenize:
|
|
5561
|
+
const Km = {
|
|
5562
|
+
tokenize: Ym
|
|
5563
5563
|
}, Fa = {
|
|
5564
5564
|
tokenize: qm
|
|
5565
5565
|
};
|
|
5566
|
-
function
|
|
5566
|
+
function Ym(e) {
|
|
5567
5567
|
const t = this, n = [];
|
|
5568
5568
|
let r = 0, o, i, s;
|
|
5569
5569
|
return a;
|
|
@@ -6836,9 +6836,9 @@ const Cs = {
|
|
|
6836
6836
|
resolveTo: Ug,
|
|
6837
6837
|
tokenize: Wg
|
|
6838
6838
|
}, $g = {
|
|
6839
|
-
tokenize: Yg
|
|
6840
|
-
}, jg = {
|
|
6841
6839
|
tokenize: Kg
|
|
6840
|
+
}, jg = {
|
|
6841
|
+
tokenize: Yg
|
|
6842
6842
|
}, Hg = {
|
|
6843
6843
|
tokenize: qg
|
|
6844
6844
|
};
|
|
@@ -6922,7 +6922,7 @@ function Wg(e, t, n) {
|
|
|
6922
6922
|
return i._balanced = !0, n(h);
|
|
6923
6923
|
}
|
|
6924
6924
|
}
|
|
6925
|
-
function
|
|
6925
|
+
function Kg(e, t, n) {
|
|
6926
6926
|
return r;
|
|
6927
6927
|
function r(l) {
|
|
6928
6928
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(l), e.exit("resourceMarker"), o;
|
|
@@ -6949,7 +6949,7 @@ function Yg(e, t, n) {
|
|
|
6949
6949
|
return l === 41 ? (e.enter("resourceMarker"), e.consume(l), e.exit("resourceMarker"), e.exit("resource"), t) : n(l);
|
|
6950
6950
|
}
|
|
6951
6951
|
}
|
|
6952
|
-
function
|
|
6952
|
+
function Yg(e, t, n) {
|
|
6953
6953
|
const r = this;
|
|
6954
6954
|
return o;
|
|
6955
6955
|
function o(a) {
|
|
@@ -7461,14 +7461,14 @@ function N1(e, t, n) {
|
|
|
7461
7461
|
) : de(A);
|
|
7462
7462
|
function de(X) {
|
|
7463
7463
|
return me;
|
|
7464
|
-
function me(
|
|
7465
|
-
const
|
|
7464
|
+
function me(K) {
|
|
7465
|
+
const Y = K !== null && X[K], Z = K !== null && X.null, le = [
|
|
7466
7466
|
// To do: add more extension tests.
|
|
7467
7467
|
/* c8 ignore next 2 */
|
|
7468
|
-
...Array.isArray(
|
|
7468
|
+
...Array.isArray(Y) ? Y : Y ? [Y] : [],
|
|
7469
7469
|
...Array.isArray(Z) ? Z : Z ? [Z] : []
|
|
7470
7470
|
];
|
|
7471
|
-
return ee(le)(
|
|
7471
|
+
return ee(le)(K);
|
|
7472
7472
|
}
|
|
7473
7473
|
}
|
|
7474
7474
|
function ee(X) {
|
|
@@ -7476,7 +7476,7 @@ function N1(e, t, n) {
|
|
|
7476
7476
|
}
|
|
7477
7477
|
function T(X) {
|
|
7478
7478
|
return me;
|
|
7479
|
-
function me(
|
|
7479
|
+
function me(K) {
|
|
7480
7480
|
return E = C(), W = X, X.partial || (c.currentConstruct = X), X.name && c.parser.constructs.disable.null.includes(X.name) ? re() : X.tokenize.call(
|
|
7481
7481
|
// If we do have fields, create an object w/ `context` as its
|
|
7482
7482
|
// prototype.
|
|
@@ -7485,7 +7485,7 @@ function N1(e, t, n) {
|
|
|
7485
7485
|
u,
|
|
7486
7486
|
q,
|
|
7487
7487
|
re
|
|
7488
|
-
)(
|
|
7488
|
+
)(K);
|
|
7489
7489
|
}
|
|
7490
7490
|
}
|
|
7491
7491
|
function q(X) {
|
|
@@ -7575,7 +7575,7 @@ function R1(e) {
|
|
|
7575
7575
|
),
|
|
7576
7576
|
content: o(Um),
|
|
7577
7577
|
defined: [],
|
|
7578
|
-
document: o(
|
|
7578
|
+
document: o(Km),
|
|
7579
7579
|
flow: o(u1),
|
|
7580
7580
|
lazy: {},
|
|
7581
7581
|
string: o(h1),
|
|
@@ -7698,8 +7698,8 @@ function _1(e) {
|
|
|
7698
7698
|
atxHeading: u(),
|
|
7699
7699
|
atxHeadingSequence: D,
|
|
7700
7700
|
autolink: u(),
|
|
7701
|
-
autolinkEmail:
|
|
7702
|
-
autolinkProtocol:
|
|
7701
|
+
autolinkEmail: Y,
|
|
7702
|
+
autolinkProtocol: K,
|
|
7703
7703
|
blockQuote: u(),
|
|
7704
7704
|
characterEscapeValue: O,
|
|
7705
7705
|
characterReferenceMarkerHexadecimal: re,
|
|
@@ -8042,12 +8042,12 @@ function _1(e) {
|
|
|
8042
8042
|
const j = this.stack.pop();
|
|
8043
8043
|
j.position.end = Jt(F.end);
|
|
8044
8044
|
}
|
|
8045
|
-
function
|
|
8045
|
+
function K(F) {
|
|
8046
8046
|
O.call(this, F);
|
|
8047
8047
|
const j = this.stack[this.stack.length - 1];
|
|
8048
8048
|
j.url = this.sliceSerialize(F);
|
|
8049
8049
|
}
|
|
8050
|
-
function
|
|
8050
|
+
function Y(F) {
|
|
8051
8051
|
O.call(this, F);
|
|
8052
8052
|
const j = this.stack[this.stack.length - 1];
|
|
8053
8053
|
j.url = "mailto:" + this.sliceSerialize(F);
|
|
@@ -8304,7 +8304,7 @@ function W1(e, t) {
|
|
|
8304
8304
|
};
|
|
8305
8305
|
return e.patch(t, n), e.applyData(t, n);
|
|
8306
8306
|
}
|
|
8307
|
-
function
|
|
8307
|
+
function K1(e, t) {
|
|
8308
8308
|
if (e.options.allowDangerousHtml) {
|
|
8309
8309
|
const n = { type: "raw", value: t.value };
|
|
8310
8310
|
return e.patch(t, n), e.applyData(t, n);
|
|
@@ -8320,7 +8320,7 @@ function Cu(e, t) {
|
|
|
8320
8320
|
const s = o[o.length - 1];
|
|
8321
8321
|
return s && s.type === "text" ? s.value += r : o.push({ type: "text", value: r }), o;
|
|
8322
8322
|
}
|
|
8323
|
-
function
|
|
8323
|
+
function Y1(e, t) {
|
|
8324
8324
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
8325
8325
|
if (!r)
|
|
8326
8326
|
return Cu(e, t);
|
|
@@ -8506,7 +8506,7 @@ function s0(e, t) {
|
|
|
8506
8506
|
};
|
|
8507
8507
|
return e.patch(t, n), e.applyData(t, n);
|
|
8508
8508
|
}
|
|
8509
|
-
const
|
|
8509
|
+
const Ka = 9, Ya = 32;
|
|
8510
8510
|
function a0(e) {
|
|
8511
8511
|
const t = String(e), n = /\r?\n|\r/g;
|
|
8512
8512
|
let r = n.exec(t), o = 0;
|
|
@@ -8522,12 +8522,12 @@ function qa(e, t, n) {
|
|
|
8522
8522
|
let r = 0, o = e.length;
|
|
8523
8523
|
if (t) {
|
|
8524
8524
|
let i = e.codePointAt(r);
|
|
8525
|
-
for (; i ===
|
|
8525
|
+
for (; i === Ka || i === Ya; )
|
|
8526
8526
|
r++, i = e.codePointAt(r);
|
|
8527
8527
|
}
|
|
8528
8528
|
if (n) {
|
|
8529
8529
|
let i = e.codePointAt(o - 1);
|
|
8530
|
-
for (; i ===
|
|
8530
|
+
for (; i === Ka || i === Ya; )
|
|
8531
8531
|
o--, i = e.codePointAt(o - 1);
|
|
8532
8532
|
}
|
|
8533
8533
|
return o > r ? e.slice(r, o) : "";
|
|
@@ -8553,8 +8553,8 @@ const u0 = {
|
|
|
8553
8553
|
emphasis: V1,
|
|
8554
8554
|
footnoteReference: U1,
|
|
8555
8555
|
heading: W1,
|
|
8556
|
-
html:
|
|
8557
|
-
imageReference:
|
|
8556
|
+
html: K1,
|
|
8557
|
+
imageReference: Y1,
|
|
8558
8558
|
image: q1,
|
|
8559
8559
|
inlineCode: X1,
|
|
8560
8560
|
linkReference: Z1,
|
|
@@ -9320,7 +9320,7 @@ function ji(e) {
|
|
|
9320
9320
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
9321
9321
|
e.auth === void 0);
|
|
9322
9322
|
}
|
|
9323
|
-
function
|
|
9323
|
+
function K0(e) {
|
|
9324
9324
|
if (typeof e == "string")
|
|
9325
9325
|
e = new URL(e);
|
|
9326
9326
|
else if (!ji(e)) {
|
|
@@ -9333,9 +9333,9 @@ function Y0(e) {
|
|
|
9333
9333
|
const t = new TypeError("The URL must be of scheme file");
|
|
9334
9334
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
9335
9335
|
}
|
|
9336
|
-
return
|
|
9336
|
+
return Y0(e);
|
|
9337
9337
|
}
|
|
9338
|
-
function
|
|
9338
|
+
function Y0(e) {
|
|
9339
9339
|
if (e.hostname !== "") {
|
|
9340
9340
|
const r = new TypeError(
|
|
9341
9341
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -9500,7 +9500,7 @@ class Au {
|
|
|
9500
9500
|
* Nothing.
|
|
9501
9501
|
*/
|
|
9502
9502
|
set path(t) {
|
|
9503
|
-
ji(t) && (t =
|
|
9503
|
+
ji(t) && (t = K0(t)), ni(t, "path"), this.path !== t && this.history.push(t);
|
|
9504
9504
|
}
|
|
9505
9505
|
/**
|
|
9506
9506
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -10380,84 +10380,84 @@ function Pu(e) {
|
|
|
10380
10380
|
nb.test(e.slice(0, t)) ? e : ""
|
|
10381
10381
|
);
|
|
10382
10382
|
}
|
|
10383
|
-
const lb = ".shipbench/tasks/", si = "https://board.shipbench.invalid", cb = /^([a-z][a-z0-9+.-]*):/i, ub = /^\.shipbench\/tasks\/([^/]+)\.md$/;
|
|
10384
|
-
function
|
|
10383
|
+
const lb = ".shipbench/tasks/", si = "https://board.shipbench.invalid", cb = /^([a-z][a-z0-9+.-]*):/i, ub = /^\.shipbench\/tasks\/(?:archive\/)?([^/]+)\.md$/, db = /^(?:archive\/)?([^/]+)\.md$/;
|
|
10384
|
+
function fb(e) {
|
|
10385
10385
|
try {
|
|
10386
10386
|
return decodeURIComponent(e).replace(/^\/+/, "");
|
|
10387
10387
|
} catch {
|
|
10388
10388
|
return null;
|
|
10389
10389
|
}
|
|
10390
10390
|
}
|
|
10391
|
-
function
|
|
10391
|
+
function hb(e) {
|
|
10392
10392
|
const t = e.trim();
|
|
10393
10393
|
if (!t || t.startsWith("#")) return { kind: "default" };
|
|
10394
10394
|
if (t.startsWith("//")) return { kind: "external" };
|
|
10395
10395
|
const n = cb.exec(t);
|
|
10396
10396
|
if (n)
|
|
10397
10397
|
return /^https?$/i.test(n[1]) ? { kind: "external" } : { kind: "default" };
|
|
10398
|
-
const r = t.startsWith("./") || t.startsWith("../") ? `${si}/${lb}` : `${si}/`;
|
|
10399
|
-
let
|
|
10398
|
+
const r = t.startsWith("./") || t.startsWith("../"), o = r ? `${si}/${lb}` : `${si}/`;
|
|
10399
|
+
let i;
|
|
10400
10400
|
try {
|
|
10401
|
-
|
|
10401
|
+
i = new URL(t, o);
|
|
10402
10402
|
} catch {
|
|
10403
10403
|
return { kind: "default" };
|
|
10404
10404
|
}
|
|
10405
|
-
if (
|
|
10406
|
-
const
|
|
10407
|
-
if (!
|
|
10408
|
-
const
|
|
10405
|
+
if (i.origin !== si) return { kind: "external" };
|
|
10406
|
+
const s = fb(i.pathname);
|
|
10407
|
+
if (!s) return { kind: "default" };
|
|
10408
|
+
const a = ub.exec(s) ?? (r || t.startsWith("/") ? null : db.exec(s));
|
|
10409
10409
|
return {
|
|
10410
10410
|
kind: "repo",
|
|
10411
|
-
path:
|
|
10412
|
-
suffix: `${
|
|
10413
|
-
taskSlug:
|
|
10411
|
+
path: s,
|
|
10412
|
+
suffix: `${i.search}${i.hash}`,
|
|
10413
|
+
taskSlug: a ? a[1] : null
|
|
10414
10414
|
};
|
|
10415
10415
|
}
|
|
10416
10416
|
function Lu({ children: e }) {
|
|
10417
|
-
return /* @__PURE__ */ p(ob, { components: { a:
|
|
10417
|
+
return /* @__PURE__ */ p(ob, { components: { a: mb }, children: e });
|
|
10418
10418
|
}
|
|
10419
|
-
function
|
|
10419
|
+
function pb(e) {
|
|
10420
10420
|
return e && Pu(e) || null;
|
|
10421
10421
|
}
|
|
10422
|
-
function
|
|
10423
|
-
const o =
|
|
10424
|
-
(
|
|
10422
|
+
function mb({ href: e, children: t, node: n, ...r }) {
|
|
10423
|
+
const o = hb(e ?? ""), i = U((l) => l.selectTask), s = U((l) => l.resolveRepoLink), a = o.kind === "repo" ? o.taskSlug : null, u = U(
|
|
10424
|
+
(l) => a === null ? null : l.tasks.some((h) => h.slug === a) ? "live" : l.archivedSlugs.includes(a) ? "archived" : null
|
|
10425
10425
|
);
|
|
10426
10426
|
if (!e) return /* @__PURE__ */ p(Ge, { children: t });
|
|
10427
10427
|
if (o.kind === "default")
|
|
10428
10428
|
return /* @__PURE__ */ p("a", { href: e, ...r, children: t });
|
|
10429
10429
|
if (o.kind === "external")
|
|
10430
10430
|
return /* @__PURE__ */ p("a", { href: e, rel: "noopener noreferrer", target: "_blank", ...r, children: t });
|
|
10431
|
-
if (a)
|
|
10431
|
+
if (u === "live" && a)
|
|
10432
10432
|
return /* @__PURE__ */ p(
|
|
10433
10433
|
"a",
|
|
10434
10434
|
{
|
|
10435
10435
|
href: e,
|
|
10436
10436
|
...r,
|
|
10437
|
-
onClick: (
|
|
10438
|
-
|
|
10437
|
+
onClick: (l) => {
|
|
10438
|
+
l.preventDefault(), i(a);
|
|
10439
10439
|
},
|
|
10440
10440
|
children: t
|
|
10441
10441
|
}
|
|
10442
10442
|
);
|
|
10443
|
-
const u = s ?
|
|
10444
|
-
return
|
|
10443
|
+
const c = u === "archived" ? `.shipbench/tasks/archive/${a}.md` : o.path, d = s ? pb(s(c)) : null;
|
|
10444
|
+
return d ? /* @__PURE__ */ p(
|
|
10445
10445
|
"a",
|
|
10446
10446
|
{
|
|
10447
|
-
href: `${
|
|
10447
|
+
href: `${d}${o.suffix}`,
|
|
10448
10448
|
rel: "noopener noreferrer",
|
|
10449
10449
|
target: "_blank",
|
|
10450
10450
|
...r,
|
|
10451
10451
|
children: t
|
|
10452
10452
|
}
|
|
10453
|
-
) : /* @__PURE__ */ p("span", { className: "sb-md-path", children: `${
|
|
10453
|
+
) : /* @__PURE__ */ p("span", { className: "sb-md-path", children: `${c}${o.suffix}` });
|
|
10454
10454
|
}
|
|
10455
10455
|
const ll = {
|
|
10456
10456
|
ready: { label: "Ready", Icon: Jl },
|
|
10457
10457
|
gating: { label: "Still gating", Icon: Gf },
|
|
10458
10458
|
missing: { label: "Missing", Icon: Zl }
|
|
10459
10459
|
};
|
|
10460
|
-
function
|
|
10460
|
+
function gb({
|
|
10461
10461
|
readOnly: e,
|
|
10462
10462
|
tags: t,
|
|
10463
10463
|
suggestions: n,
|
|
@@ -10509,7 +10509,7 @@ function mb({
|
|
|
10509
10509
|
D.key === "Tab" && (a.trim() || l >= 0) && w();
|
|
10510
10510
|
};
|
|
10511
10511
|
if (e)
|
|
10512
|
-
return /* @__PURE__ */ p(
|
|
10512
|
+
return /* @__PURE__ */ p(yb, { label: "Tags", children: t.length ? /* @__PURE__ */ p(
|
|
10513
10513
|
"ul",
|
|
10514
10514
|
{
|
|
10515
10515
|
className: "flex min-h-9 flex-wrap items-center gap-1.5",
|
|
@@ -10592,7 +10592,7 @@ function mb({
|
|
|
10592
10592
|
/* @__PURE__ */ p(Rs, { children: f })
|
|
10593
10593
|
] });
|
|
10594
10594
|
}
|
|
10595
|
-
function
|
|
10595
|
+
function bb({
|
|
10596
10596
|
readOnly: e,
|
|
10597
10597
|
currentTaskSlug: t,
|
|
10598
10598
|
dependencies: n,
|
|
@@ -10740,7 +10740,7 @@ function gb({
|
|
|
10740
10740
|
/* @__PURE__ */ p(Rs, { children: g })
|
|
10741
10741
|
] });
|
|
10742
10742
|
}
|
|
10743
|
-
function
|
|
10743
|
+
function vb({
|
|
10744
10744
|
readOnly: e,
|
|
10745
10745
|
currentTaskSlug: t,
|
|
10746
10746
|
related: n,
|
|
@@ -10923,7 +10923,7 @@ function cl(e, t) {
|
|
|
10923
10923
|
function ul(e, t) {
|
|
10924
10924
|
return e ? e.frontmatter.status === t ? "ready" : "gating" : "missing";
|
|
10925
10925
|
}
|
|
10926
|
-
function
|
|
10926
|
+
function yb({
|
|
10927
10927
|
label: e,
|
|
10928
10928
|
children: t
|
|
10929
10929
|
}) {
|
|
@@ -10947,18 +10947,18 @@ function Rs({ children: e }) {
|
|
|
10947
10947
|
}
|
|
10948
10948
|
);
|
|
10949
10949
|
}
|
|
10950
|
-
var
|
|
10950
|
+
var xb = Object.defineProperty, wb = (e, t) => xb(e, "name", { value: t, configurable: !0 });
|
|
10951
10951
|
function Hi(e, [t, n]) {
|
|
10952
10952
|
return Math.min(n, Math.max(t, e));
|
|
10953
10953
|
}
|
|
10954
|
-
|
|
10955
|
-
var
|
|
10954
|
+
wb(Hi, "clamp");
|
|
10955
|
+
var Cb = Object.defineProperty, Ke = (e, t) => Cb(e, "name", { value: t, configurable: !0 });
|
|
10956
10956
|
// @__NO_SIDE_EFFECTS__
|
|
10957
10957
|
function Ou(e) {
|
|
10958
10958
|
const t = e + "CollectionProvider", [n, r] = /* @__PURE__ */ _n(t), [o, i] = n(
|
|
10959
10959
|
t,
|
|
10960
10960
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
10961
|
-
), s = /* @__PURE__ */
|
|
10961
|
+
), s = /* @__PURE__ */ Ke((m) => {
|
|
10962
10962
|
const { scope: g, children: b } = m, w = S.useRef(null), x = S.useRef(/* @__PURE__ */ new Map()).current;
|
|
10963
10963
|
return /* @__PURE__ */ p(o, { scope: g, itemMap: x, collectionRef: w, children: b });
|
|
10964
10964
|
}, "CollectionProvider");
|
|
@@ -10988,13 +10988,13 @@ function Ou(e) {
|
|
|
10988
10988
|
);
|
|
10989
10989
|
}, [g.collectionRef, g.itemMap]);
|
|
10990
10990
|
}
|
|
10991
|
-
return
|
|
10991
|
+
return Ke(v, "useCollection"), [
|
|
10992
10992
|
{ Provider: s, Slot: c, ItemSlot: f },
|
|
10993
10993
|
v,
|
|
10994
10994
|
r
|
|
10995
10995
|
];
|
|
10996
10996
|
}
|
|
10997
|
-
|
|
10997
|
+
Ke(Ou, "createCollection");
|
|
10998
10998
|
var dl = /* @__PURE__ */ new WeakMap(), Me, ft, ai = (ft = class extends Map {
|
|
10999
10999
|
constructor(n) {
|
|
11000
11000
|
super(n);
|
|
@@ -11193,25 +11193,25 @@ var dl = /* @__PURE__ */ new WeakMap(), Me, ft, ai = (ft = class extends Map {
|
|
|
11193
11193
|
}
|
|
11194
11194
|
return !1;
|
|
11195
11195
|
}
|
|
11196
|
-
}, Me = new WeakMap(),
|
|
11196
|
+
}, Me = new WeakMap(), Ke(ft, "OrderedDict"), ft);
|
|
11197
11197
|
function Ur(e, t) {
|
|
11198
11198
|
if ("at" in Array.prototype)
|
|
11199
11199
|
return Array.prototype.at.call(e, t);
|
|
11200
11200
|
const n = Mu(e, t);
|
|
11201
11201
|
return n === -1 ? void 0 : e[n];
|
|
11202
11202
|
}
|
|
11203
|
-
|
|
11203
|
+
Ke(Ur, "at");
|
|
11204
11204
|
function Mu(e, t) {
|
|
11205
11205
|
const n = e.length, r = Is(t), o = r >= 0 ? r : n + r;
|
|
11206
11206
|
return o < 0 || o >= n ? -1 : o;
|
|
11207
11207
|
}
|
|
11208
|
-
|
|
11208
|
+
Ke(Mu, "toSafeIndex");
|
|
11209
11209
|
function Is(e) {
|
|
11210
11210
|
return e !== e || e === 0 ? 0 : Math.trunc(e);
|
|
11211
11211
|
}
|
|
11212
|
-
|
|
11212
|
+
Ke(Is, "toSafeInteger");
|
|
11213
11213
|
// @__NO_SIDE_EFFECTS__
|
|
11214
|
-
function
|
|
11214
|
+
function Sb(e) {
|
|
11215
11215
|
const t = e + "CollectionProvider", [n, r] = /* @__PURE__ */ _n(t), [o, i] = n(
|
|
11216
11216
|
t,
|
|
11217
11217
|
{
|
|
@@ -11219,17 +11219,17 @@ function Cb(e) {
|
|
|
11219
11219
|
collectionRef: { current: null },
|
|
11220
11220
|
collectionRefObject: { current: null },
|
|
11221
11221
|
itemMap: new ai(),
|
|
11222
|
-
setItemMap: /* @__PURE__ */
|
|
11222
|
+
setItemMap: /* @__PURE__ */ Ke(() => {
|
|
11223
11223
|
}, "setItemMap")
|
|
11224
11224
|
}
|
|
11225
|
-
), s = /* @__PURE__ */
|
|
11225
|
+
), s = /* @__PURE__ */ Ke(({ state: x, ...k }) => x ? /* @__PURE__ */ p(u, { ...k, state: x }) : /* @__PURE__ */ p(a, { ...k }), "CollectionProvider");
|
|
11226
11226
|
s.displayName = t;
|
|
11227
|
-
const a = /* @__PURE__ */
|
|
11227
|
+
const a = /* @__PURE__ */ Ke((x) => {
|
|
11228
11228
|
const k = g();
|
|
11229
11229
|
return /* @__PURE__ */ p(u, { ...x, state: k });
|
|
11230
11230
|
}, "CollectionInit");
|
|
11231
11231
|
a.displayName = t + "Init";
|
|
11232
|
-
const u = /* @__PURE__ */
|
|
11232
|
+
const u = /* @__PURE__ */ Ke((x) => {
|
|
11233
11233
|
const { scope: k, children: D, state: y } = x, N = S.useRef(null), [I, C] = S.useState(
|
|
11234
11234
|
null
|
|
11235
11235
|
), O = Ae(N, C), [R, P] = y;
|
|
@@ -11281,12 +11281,12 @@ function Cb(e) {
|
|
|
11281
11281
|
function g() {
|
|
11282
11282
|
return S.useState(new ai());
|
|
11283
11283
|
}
|
|
11284
|
-
|
|
11284
|
+
Ke(g, "useInitCollection");
|
|
11285
11285
|
function b(x) {
|
|
11286
11286
|
const { itemMap: k } = i(e + "CollectionConsumer", x);
|
|
11287
11287
|
return k;
|
|
11288
11288
|
}
|
|
11289
|
-
return
|
|
11289
|
+
return Ke(b, "useCollection"), [
|
|
11290
11290
|
{ Provider: s, Slot: l, ItemSlot: m },
|
|
11291
11291
|
{
|
|
11292
11292
|
createCollectionScope: r,
|
|
@@ -11295,7 +11295,7 @@ function Cb(e) {
|
|
|
11295
11295
|
}
|
|
11296
11296
|
];
|
|
11297
11297
|
}
|
|
11298
|
-
|
|
11298
|
+
Ke(Sb, "createCollection");
|
|
11299
11299
|
function _u(e, t) {
|
|
11300
11300
|
if (e === t) return !0;
|
|
11301
11301
|
if (typeof e != "object" || typeof t != "object" || e == null || t == null) return !1;
|
|
@@ -11305,15 +11305,15 @@ function _u(e, t) {
|
|
|
11305
11305
|
if (!Object.prototype.hasOwnProperty.call(t, o) || e[o] !== t[o]) return !1;
|
|
11306
11306
|
return !0;
|
|
11307
11307
|
}
|
|
11308
|
-
|
|
11308
|
+
Ke(_u, "shallowEqual");
|
|
11309
11309
|
function Fu(e, t) {
|
|
11310
11310
|
return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
11311
11311
|
}
|
|
11312
|
-
|
|
11312
|
+
Ke(Fu, "isElementPreceding");
|
|
11313
11313
|
function Vi(e, t) {
|
|
11314
11314
|
return !e[1].element || !t[1].element ? 0 : Fu(e[1].element, t[1].element) ? -1 : 1;
|
|
11315
11315
|
}
|
|
11316
|
-
|
|
11316
|
+
Ke(Vi, "sortByDocumentPosition");
|
|
11317
11317
|
function Bu(e) {
|
|
11318
11318
|
return new MutationObserver((n) => {
|
|
11319
11319
|
for (const r of n)
|
|
@@ -11323,17 +11323,17 @@ function Bu(e) {
|
|
|
11323
11323
|
}
|
|
11324
11324
|
});
|
|
11325
11325
|
}
|
|
11326
|
-
|
|
11327
|
-
var
|
|
11326
|
+
Ke(Bu, "getChildListObserver");
|
|
11327
|
+
var kb = Object.defineProperty, Eb = (e, t) => kb(e, "name", { value: t, configurable: !0 }), Nb = S.createContext(void 0);
|
|
11328
11328
|
function zu(e) {
|
|
11329
|
-
const t = S.useContext(
|
|
11329
|
+
const t = S.useContext(Nb);
|
|
11330
11330
|
return e || t || "ltr";
|
|
11331
11331
|
}
|
|
11332
|
-
|
|
11333
|
-
const
|
|
11332
|
+
Eb(zu, "useDirection");
|
|
11333
|
+
const Tb = ["top", "right", "bottom", "left"], rn = Math.min, Wt = Math.max, to = Math.round, Br = Math.floor, Kt = (e) => ({
|
|
11334
11334
|
x: e,
|
|
11335
11335
|
y: e
|
|
11336
|
-
}),
|
|
11336
|
+
}), Db = {
|
|
11337
11337
|
left: "right",
|
|
11338
11338
|
right: "left",
|
|
11339
11339
|
bottom: "top",
|
|
@@ -11364,42 +11364,42 @@ function _t(e) {
|
|
|
11364
11364
|
function Ls(e) {
|
|
11365
11365
|
return As(_t(e));
|
|
11366
11366
|
}
|
|
11367
|
-
function
|
|
11367
|
+
function Rb(e, t, n) {
|
|
11368
11368
|
n === void 0 && (n = !1);
|
|
11369
11369
|
const r = zn(e), o = Ls(e), i = Ps(o);
|
|
11370
11370
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
11371
11371
|
return t.reference[i] > t.floating[i] && (s = no(s)), [s, no(s)];
|
|
11372
11372
|
}
|
|
11373
|
-
function
|
|
11373
|
+
function Ib(e) {
|
|
11374
11374
|
const t = no(e);
|
|
11375
11375
|
return [Ui(e), t, Ui(t)];
|
|
11376
11376
|
}
|
|
11377
11377
|
function Ui(e) {
|
|
11378
11378
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
11379
11379
|
}
|
|
11380
|
-
const fl = ["left", "right"], hl = ["right", "left"],
|
|
11381
|
-
function
|
|
11380
|
+
const fl = ["left", "right"], hl = ["right", "left"], Ab = ["top", "bottom"], Pb = ["bottom", "top"];
|
|
11381
|
+
function Lb(e, t, n) {
|
|
11382
11382
|
switch (e) {
|
|
11383
11383
|
case "top":
|
|
11384
11384
|
case "bottom":
|
|
11385
11385
|
return n ? t ? hl : fl : t ? fl : hl;
|
|
11386
11386
|
case "left":
|
|
11387
11387
|
case "right":
|
|
11388
|
-
return t ?
|
|
11388
|
+
return t ? Ab : Pb;
|
|
11389
11389
|
default:
|
|
11390
11390
|
return [];
|
|
11391
11391
|
}
|
|
11392
11392
|
}
|
|
11393
|
-
function
|
|
11393
|
+
function Ob(e, t, n, r) {
|
|
11394
11394
|
const o = zn(e);
|
|
11395
|
-
let i =
|
|
11395
|
+
let i = Lb(on(e), n === "start", r);
|
|
11396
11396
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ui)))), i;
|
|
11397
11397
|
}
|
|
11398
11398
|
function no(e) {
|
|
11399
11399
|
const t = on(e);
|
|
11400
|
-
return
|
|
11400
|
+
return Db[t] + e.slice(t.length);
|
|
11401
11401
|
}
|
|
11402
|
-
function
|
|
11402
|
+
function Mb(e) {
|
|
11403
11403
|
var t, n, r, o;
|
|
11404
11404
|
return {
|
|
11405
11405
|
top: (t = e.top) != null ? t : 0,
|
|
@@ -11409,7 +11409,7 @@ function Ob(e) {
|
|
|
11409
11409
|
};
|
|
11410
11410
|
}
|
|
11411
11411
|
function ju(e) {
|
|
11412
|
-
return typeof e != "number" ?
|
|
11412
|
+
return typeof e != "number" ? Mb(e) : {
|
|
11413
11413
|
top: e,
|
|
11414
11414
|
right: e,
|
|
11415
11415
|
bottom: e,
|
|
@@ -11475,7 +11475,7 @@ function pl(e, t, n) {
|
|
|
11475
11475
|
const v = zn(t);
|
|
11476
11476
|
return v && (f[s] += h * (v === "end" ? 1 : -1) * (n && c ? -1 : 1)), f;
|
|
11477
11477
|
}
|
|
11478
|
-
async function
|
|
11478
|
+
async function _b(e, t) {
|
|
11479
11479
|
var n;
|
|
11480
11480
|
t === void 0 && (t = {});
|
|
11481
11481
|
const {
|
|
@@ -11517,7 +11517,7 @@ async function Mb(e, t) {
|
|
|
11517
11517
|
right: (D.right - b.right + v.right) / k.x
|
|
11518
11518
|
};
|
|
11519
11519
|
}
|
|
11520
|
-
const
|
|
11520
|
+
const Fb = 50, Bb = async (e, t, n) => {
|
|
11521
11521
|
const {
|
|
11522
11522
|
placement: r = "bottom",
|
|
11523
11523
|
strategy: o = "absolute",
|
|
@@ -11525,7 +11525,7 @@ const _b = 50, Fb = async (e, t, n) => {
|
|
|
11525
11525
|
platform: s
|
|
11526
11526
|
} = n, a = s.detectOverflow ? s : {
|
|
11527
11527
|
...s,
|
|
11528
|
-
detectOverflow:
|
|
11528
|
+
detectOverflow: _b
|
|
11529
11529
|
}, u = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
11530
11530
|
let c = await s.getElementRects({
|
|
11531
11531
|
reference: e,
|
|
@@ -11565,7 +11565,7 @@ const _b = 50, Fb = async (e, t, n) => {
|
|
|
11565
11565
|
d = x ?? d, l = k ?? l, v[b] = {
|
|
11566
11566
|
...v[b],
|
|
11567
11567
|
...D
|
|
11568
|
-
}, y && f <
|
|
11568
|
+
}, y && f < Fb && (f++, typeof y == "object" && (y.placement && (h = y.placement), y.rects && (c = y.rects === !0 ? await s.getElementRects({
|
|
11569
11569
|
reference: e,
|
|
11570
11570
|
floating: t,
|
|
11571
11571
|
strategy: o
|
|
@@ -11581,7 +11581,7 @@ const _b = 50, Fb = async (e, t, n) => {
|
|
|
11581
11581
|
strategy: o,
|
|
11582
11582
|
middlewareData: v
|
|
11583
11583
|
};
|
|
11584
|
-
},
|
|
11584
|
+
}, zb = (e) => ({
|
|
11585
11585
|
name: "arrow",
|
|
11586
11586
|
options: e,
|
|
11587
11587
|
async fn(t) {
|
|
@@ -11618,7 +11618,7 @@ const _b = 50, Fb = async (e, t, n) => {
|
|
|
11618
11618
|
reset: M
|
|
11619
11619
|
};
|
|
11620
11620
|
}
|
|
11621
|
-
}),
|
|
11621
|
+
}), $b = function(e) {
|
|
11622
11622
|
return e === void 0 && (e = {}), {
|
|
11623
11623
|
name: "flip",
|
|
11624
11624
|
options: e,
|
|
@@ -11642,12 +11642,12 @@ const _b = 50, Fb = async (e, t, n) => {
|
|
|
11642
11642
|
} = qt(e, t);
|
|
11643
11643
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
11644
11644
|
return {};
|
|
11645
|
-
const b = on(o), w = _t(a), x = on(a) === a, k = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), D = h || (x || !m ? [no(a)] :
|
|
11646
|
-
!h && y && D.push(...
|
|
11645
|
+
const b = on(o), w = _t(a), x = on(a) === a, k = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), D = h || (x || !m ? [no(a)] : Ib(a)), y = v !== "none";
|
|
11646
|
+
!h && y && D.push(...Ob(a, m, v, k));
|
|
11647
11647
|
const N = [a, ...D], I = await u.detectOverflow(t, g), C = [];
|
|
11648
11648
|
let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
11649
11649
|
if (d && C.push(I[b]), l) {
|
|
11650
|
-
const A =
|
|
11650
|
+
const A = Rb(o, s, k);
|
|
11651
11651
|
C.push(I[A[0]], I[A[1]]);
|
|
11652
11652
|
}
|
|
11653
11653
|
if (O = [...O, {
|
|
@@ -11709,9 +11709,9 @@ function ml(e, t) {
|
|
|
11709
11709
|
};
|
|
11710
11710
|
}
|
|
11711
11711
|
function gl(e) {
|
|
11712
|
-
return
|
|
11712
|
+
return Tb.some((t) => e[t] >= 0);
|
|
11713
11713
|
}
|
|
11714
|
-
const
|
|
11714
|
+
const jb = function(e) {
|
|
11715
11715
|
return e === void 0 && (e = {}), {
|
|
11716
11716
|
name: "hide",
|
|
11717
11717
|
options: e,
|
|
@@ -11754,7 +11754,7 @@ const $b = function(e) {
|
|
|
11754
11754
|
}
|
|
11755
11755
|
};
|
|
11756
11756
|
}, Hu = /* @__PURE__ */ new Set(["left", "top"]);
|
|
11757
|
-
async function
|
|
11757
|
+
async function Hb(e, t) {
|
|
11758
11758
|
const {
|
|
11759
11759
|
placement: n,
|
|
11760
11760
|
platform: r,
|
|
@@ -11781,7 +11781,7 @@ async function jb(e, t) {
|
|
|
11781
11781
|
y: f * d
|
|
11782
11782
|
};
|
|
11783
11783
|
}
|
|
11784
|
-
const
|
|
11784
|
+
const Vb = function(e) {
|
|
11785
11785
|
return e === void 0 && (e = 0), {
|
|
11786
11786
|
name: "offset",
|
|
11787
11787
|
options: e,
|
|
@@ -11792,7 +11792,7 @@ const Hb = function(e) {
|
|
|
11792
11792
|
y: i,
|
|
11793
11793
|
placement: s,
|
|
11794
11794
|
middlewareData: a
|
|
11795
|
-
} = t, u = await
|
|
11795
|
+
} = t, u = await Hb(t, e);
|
|
11796
11796
|
return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
11797
11797
|
x: o + u.x,
|
|
11798
11798
|
y: i + u.y,
|
|
@@ -11803,7 +11803,7 @@ const Hb = function(e) {
|
|
|
11803
11803
|
};
|
|
11804
11804
|
}
|
|
11805
11805
|
};
|
|
11806
|
-
},
|
|
11806
|
+
}, Ub = function(e) {
|
|
11807
11807
|
return e === void 0 && (e = {}), {
|
|
11808
11808
|
name: "shift",
|
|
11809
11809
|
options: e,
|
|
@@ -11854,7 +11854,7 @@ const Hb = function(e) {
|
|
|
11854
11854
|
};
|
|
11855
11855
|
}
|
|
11856
11856
|
};
|
|
11857
|
-
},
|
|
11857
|
+
}, Wb = function(e) {
|
|
11858
11858
|
return e === void 0 && (e = {}), {
|
|
11859
11859
|
options: e,
|
|
11860
11860
|
fn(t) {
|
|
@@ -11896,7 +11896,7 @@ const Hb = function(e) {
|
|
|
11896
11896
|
};
|
|
11897
11897
|
}
|
|
11898
11898
|
};
|
|
11899
|
-
},
|
|
11899
|
+
}, Kb = function(e) {
|
|
11900
11900
|
return e === void 0 && (e = {}), {
|
|
11901
11901
|
name: "size",
|
|
11902
11902
|
options: e,
|
|
@@ -11982,13 +11982,13 @@ function So(e) {
|
|
|
11982
11982
|
return !1;
|
|
11983
11983
|
}
|
|
11984
11984
|
}
|
|
11985
|
-
const
|
|
11985
|
+
const qb = /transform|translate|scale|rotate|perspective|filter/, Xb = /paint|layout|strict|content/, dn = (e) => !!e && e !== "none";
|
|
11986
11986
|
let li;
|
|
11987
11987
|
function Os(e) {
|
|
11988
11988
|
const t = $t(e) ? jt(e) : e;
|
|
11989
|
-
return dn(t.transform) || dn(t.translate) || dn(t.scale) || dn(t.rotate) || dn(t.perspective) || !Ms() && (dn(t.backdropFilter) || dn(t.filter)) ||
|
|
11989
|
+
return dn(t.transform) || dn(t.translate) || dn(t.scale) || dn(t.rotate) || dn(t.perspective) || !Ms() && (dn(t.backdropFilter) || dn(t.filter)) || qb.test(t.willChange || "") || Xb.test(t.contain || "");
|
|
11990
11990
|
}
|
|
11991
|
-
function
|
|
11991
|
+
function Zb(e) {
|
|
11992
11992
|
let t = mn(e);
|
|
11993
11993
|
for (; ln(t) && !cr(t); ) {
|
|
11994
11994
|
if (Os(t))
|
|
@@ -12062,7 +12062,7 @@ function _s(e) {
|
|
|
12062
12062
|
function Rn(e) {
|
|
12063
12063
|
const t = _s(e);
|
|
12064
12064
|
if (!ln(t))
|
|
12065
|
-
return
|
|
12065
|
+
return Kt(1);
|
|
12066
12066
|
const n = t.getBoundingClientRect(), {
|
|
12067
12067
|
width: r,
|
|
12068
12068
|
height: o,
|
|
@@ -12074,23 +12074,23 @@ function Rn(e) {
|
|
|
12074
12074
|
y: a
|
|
12075
12075
|
};
|
|
12076
12076
|
}
|
|
12077
|
-
const
|
|
12078
|
-
function
|
|
12077
|
+
const Gb = /* @__PURE__ */ Kt(0);
|
|
12078
|
+
function Ku(e) {
|
|
12079
12079
|
const t = at(e);
|
|
12080
|
-
return !Ms() || !t.visualViewport ?
|
|
12080
|
+
return !Ms() || !t.visualViewport ? Gb : {
|
|
12081
12081
|
x: t.visualViewport.offsetLeft,
|
|
12082
12082
|
y: t.visualViewport.offsetTop
|
|
12083
12083
|
};
|
|
12084
12084
|
}
|
|
12085
|
-
function
|
|
12085
|
+
function Qb(e, t, n) {
|
|
12086
12086
|
return t === void 0 && (t = !1), !!n && t && n === at(e);
|
|
12087
12087
|
}
|
|
12088
12088
|
function gn(e, t, n, r) {
|
|
12089
12089
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
12090
12090
|
const o = e.getBoundingClientRect(), i = _s(e);
|
|
12091
|
-
let s =
|
|
12091
|
+
let s = Kt(1);
|
|
12092
12092
|
t && (r ? $t(r) && (s = Rn(r)) : s = Rn(e));
|
|
12093
|
-
const a =
|
|
12093
|
+
const a = Qb(i, n, r) ? Ku(i) : Kt(0);
|
|
12094
12094
|
let u = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, d = o.width / s.x, l = o.height / s.y;
|
|
12095
12095
|
if (i && r) {
|
|
12096
12096
|
const h = at(i), f = $t(r) ? at(r) : r;
|
|
@@ -12111,14 +12111,14 @@ function Eo(e, t) {
|
|
|
12111
12111
|
const n = ko(e).scrollLeft;
|
|
12112
12112
|
return t ? t.left + n : gn(Zt(e)).left + n;
|
|
12113
12113
|
}
|
|
12114
|
-
function
|
|
12114
|
+
function Yu(e, t) {
|
|
12115
12115
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Eo(e, n), o = n.top + t.scrollTop;
|
|
12116
12116
|
return {
|
|
12117
12117
|
x: r,
|
|
12118
12118
|
y: o
|
|
12119
12119
|
};
|
|
12120
12120
|
}
|
|
12121
|
-
function
|
|
12121
|
+
function Jb(e) {
|
|
12122
12122
|
let {
|
|
12123
12123
|
elements: t,
|
|
12124
12124
|
rect: n,
|
|
@@ -12131,13 +12131,13 @@ function Qb(e) {
|
|
|
12131
12131
|
let u = {
|
|
12132
12132
|
scrollLeft: 0,
|
|
12133
12133
|
scrollTop: 0
|
|
12134
|
-
}, c =
|
|
12135
|
-
const d =
|
|
12134
|
+
}, c = Kt(1);
|
|
12135
|
+
const d = Kt(0), l = ln(r);
|
|
12136
12136
|
if ((l || !i) && (($n(r) !== "body" || Co(s)) && (u = ko(r)), l)) {
|
|
12137
12137
|
const f = gn(r);
|
|
12138
12138
|
c = Rn(r), d.x = f.x + r.clientLeft, d.y = f.y + r.clientTop;
|
|
12139
12139
|
}
|
|
12140
|
-
const h = s && !l && !i ?
|
|
12140
|
+
const h = s && !l && !i ? Yu(s, u) : Kt(0);
|
|
12141
12141
|
return {
|
|
12142
12142
|
width: n.width * c.x,
|
|
12143
12143
|
height: n.height * c.y,
|
|
@@ -12145,10 +12145,10 @@ function Qb(e) {
|
|
|
12145
12145
|
y: n.y * c.y - u.scrollTop * c.y + d.y + h.y
|
|
12146
12146
|
};
|
|
12147
12147
|
}
|
|
12148
|
-
function
|
|
12148
|
+
function ev(e) {
|
|
12149
12149
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
12150
12150
|
}
|
|
12151
|
-
function
|
|
12151
|
+
function tv(e) {
|
|
12152
12152
|
const t = ko(e), n = e.ownerDocument.body, r = Wt(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), o = Wt(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
12153
12153
|
let i = -t.scrollLeft + Eo(e);
|
|
12154
12154
|
const s = -t.scrollTop;
|
|
@@ -12159,8 +12159,8 @@ function ev(e) {
|
|
|
12159
12159
|
y: s
|
|
12160
12160
|
};
|
|
12161
12161
|
}
|
|
12162
|
-
const
|
|
12163
|
-
function
|
|
12162
|
+
const nv = 25;
|
|
12163
|
+
function rv(e, t, n) {
|
|
12164
12164
|
n === void 0 && (n = "viewport");
|
|
12165
12165
|
const r = n === "layoutViewport", o = at(e), i = Zt(e), s = o.visualViewport;
|
|
12166
12166
|
let a = i.clientWidth, u = i.clientHeight, c = 0, d = 0;
|
|
@@ -12170,7 +12170,7 @@ function nv(e, t, n) {
|
|
|
12170
12170
|
}
|
|
12171
12171
|
if (Eo(i) <= 0) {
|
|
12172
12172
|
const h = i.ownerDocument, f = h.body, v = getComputedStyle(f), m = h.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, g = Math.abs(i.clientWidth - f.clientWidth - m), b = getComputedStyle(i).scrollbarGutter === "stable both-edges" ? g / 2 : g;
|
|
12173
|
-
b <=
|
|
12173
|
+
b <= nv && (a -= b);
|
|
12174
12174
|
}
|
|
12175
12175
|
return {
|
|
12176
12176
|
width: a,
|
|
@@ -12179,7 +12179,7 @@ function nv(e, t, n) {
|
|
|
12179
12179
|
y: d
|
|
12180
12180
|
};
|
|
12181
12181
|
}
|
|
12182
|
-
function
|
|
12182
|
+
function ov(e, t) {
|
|
12183
12183
|
const n = gn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Rn(e), s = e.clientWidth * i.x, a = e.clientHeight * i.y, u = o * i.x, c = r * i.y;
|
|
12184
12184
|
return {
|
|
12185
12185
|
width: s,
|
|
@@ -12191,13 +12191,13 @@ function rv(e, t) {
|
|
|
12191
12191
|
function vl(e, t, n) {
|
|
12192
12192
|
let r;
|
|
12193
12193
|
if (t === "viewport" || t === "layoutViewport")
|
|
12194
|
-
r =
|
|
12194
|
+
r = rv(e, n, t);
|
|
12195
12195
|
else if (t === "document")
|
|
12196
|
-
r =
|
|
12196
|
+
r = tv(Zt(e));
|
|
12197
12197
|
else if ($t(t))
|
|
12198
|
-
r =
|
|
12198
|
+
r = ov(t, n);
|
|
12199
12199
|
else {
|
|
12200
|
-
const o =
|
|
12200
|
+
const o = Ku(e);
|
|
12201
12201
|
r = {
|
|
12202
12202
|
x: t.x - o.x,
|
|
12203
12203
|
y: t.y - o.y,
|
|
@@ -12207,7 +12207,7 @@ function vl(e, t, n) {
|
|
|
12207
12207
|
}
|
|
12208
12208
|
return ro(r);
|
|
12209
12209
|
}
|
|
12210
|
-
function
|
|
12210
|
+
function iv(e, t) {
|
|
12211
12211
|
const n = t.get(e);
|
|
12212
12212
|
if (n)
|
|
12213
12213
|
return n;
|
|
@@ -12220,14 +12220,14 @@ function ov(e, t) {
|
|
|
12220
12220
|
}
|
|
12221
12221
|
return t.set(e, r), r;
|
|
12222
12222
|
}
|
|
12223
|
-
function
|
|
12223
|
+
function sv(e) {
|
|
12224
12224
|
let {
|
|
12225
12225
|
element: t,
|
|
12226
12226
|
boundary: n,
|
|
12227
12227
|
rootBoundary: r,
|
|
12228
12228
|
strategy: o
|
|
12229
12229
|
} = e;
|
|
12230
|
-
const s = [...n === "clippingAncestors" ? So(t) ? [] :
|
|
12230
|
+
const s = [...n === "clippingAncestors" ? So(t) ? [] : iv(t, this._c) : [].concat(n), r], a = vl(t, s[0], o);
|
|
12231
12231
|
let u = a.top, c = a.right, d = a.bottom, l = a.left;
|
|
12232
12232
|
for (let h = 1; h < s.length; h++) {
|
|
12233
12233
|
const f = vl(t, s[h], o);
|
|
@@ -12240,7 +12240,7 @@ function iv(e) {
|
|
|
12240
12240
|
y: u
|
|
12241
12241
|
};
|
|
12242
12242
|
}
|
|
12243
|
-
function
|
|
12243
|
+
function av(e) {
|
|
12244
12244
|
const {
|
|
12245
12245
|
width: t,
|
|
12246
12246
|
height: n
|
|
@@ -12250,19 +12250,19 @@ function sv(e) {
|
|
|
12250
12250
|
height: n
|
|
12251
12251
|
};
|
|
12252
12252
|
}
|
|
12253
|
-
function
|
|
12253
|
+
function lv(e, t, n) {
|
|
12254
12254
|
const r = ln(t), o = Zt(t), i = n === "fixed", s = gn(e, !0, i, t);
|
|
12255
12255
|
let a = {
|
|
12256
12256
|
scrollLeft: 0,
|
|
12257
12257
|
scrollTop: 0
|
|
12258
12258
|
};
|
|
12259
|
-
const u =
|
|
12259
|
+
const u = Kt(0);
|
|
12260
12260
|
if ((r || !i) && (($n(t) !== "body" || Co(o)) && (a = ko(t)), r)) {
|
|
12261
12261
|
const h = gn(t, !0, i, t);
|
|
12262
12262
|
u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
|
|
12263
12263
|
}
|
|
12264
12264
|
!r && o && (u.x = Eo(o));
|
|
12265
|
-
const c = o && !r && !i ?
|
|
12265
|
+
const c = o && !r && !i ? Yu(o, a) : Kt(0), d = s.left + a.scrollLeft - u.x - c.x, l = s.top + a.scrollTop - u.y - c.y;
|
|
12266
12266
|
return {
|
|
12267
12267
|
x: d,
|
|
12268
12268
|
y: l,
|
|
@@ -12297,12 +12297,12 @@ function qu(e, t) {
|
|
|
12297
12297
|
let r = yl(e, t);
|
|
12298
12298
|
for (; r && Yb(r) && ci(r); )
|
|
12299
12299
|
r = yl(r, t);
|
|
12300
|
-
return r && cr(r) && ci(r) && !Os(r) ? n : r ||
|
|
12300
|
+
return r && cr(r) && ci(r) && !Os(r) ? n : r || Zb(e) || n;
|
|
12301
12301
|
}
|
|
12302
|
-
const
|
|
12302
|
+
const cv = async function(e) {
|
|
12303
12303
|
const t = this.getOffsetParent || qu, n = this.getDimensions, r = await n(e.floating);
|
|
12304
12304
|
return {
|
|
12305
|
-
reference:
|
|
12305
|
+
reference: lv(e.reference, await t(e.floating), e.strategy),
|
|
12306
12306
|
floating: {
|
|
12307
12307
|
x: 0,
|
|
12308
12308
|
y: 0,
|
|
@@ -12311,25 +12311,25 @@ const lv = async function(e) {
|
|
|
12311
12311
|
}
|
|
12312
12312
|
};
|
|
12313
12313
|
};
|
|
12314
|
-
function
|
|
12314
|
+
function uv(e) {
|
|
12315
12315
|
return jt(e).direction === "rtl";
|
|
12316
12316
|
}
|
|
12317
|
-
const
|
|
12318
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
12317
|
+
const dv = {
|
|
12318
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Jb,
|
|
12319
12319
|
getDocumentElement: Zt,
|
|
12320
|
-
getClippingRect:
|
|
12320
|
+
getClippingRect: sv,
|
|
12321
12321
|
getOffsetParent: qu,
|
|
12322
|
-
getElementRects:
|
|
12323
|
-
getClientRects:
|
|
12324
|
-
getDimensions:
|
|
12322
|
+
getElementRects: cv,
|
|
12323
|
+
getClientRects: ev,
|
|
12324
|
+
getDimensions: av,
|
|
12325
12325
|
getScale: Rn,
|
|
12326
12326
|
isElement: $t,
|
|
12327
|
-
isRTL:
|
|
12327
|
+
isRTL: uv
|
|
12328
12328
|
};
|
|
12329
12329
|
function Xu(e, t) {
|
|
12330
12330
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
12331
12331
|
}
|
|
12332
|
-
function
|
|
12332
|
+
function fv(e, t, n) {
|
|
12333
12333
|
let r = null, o;
|
|
12334
12334
|
const i = Zt(e);
|
|
12335
12335
|
function s() {
|
|
@@ -12380,7 +12380,7 @@ function dv(e, t, n) {
|
|
|
12380
12380
|
u.removeEventListener("resize", c), s();
|
|
12381
12381
|
};
|
|
12382
12382
|
}
|
|
12383
|
-
function
|
|
12383
|
+
function hv(e, t, n, r) {
|
|
12384
12384
|
r === void 0 && (r = {});
|
|
12385
12385
|
const {
|
|
12386
12386
|
ancestorScroll: o = !0,
|
|
@@ -12392,7 +12392,7 @@ function fv(e, t, n, r) {
|
|
|
12392
12392
|
d.forEach((b) => {
|
|
12393
12393
|
o && b.addEventListener("scroll", n), i && b.addEventListener("resize", n);
|
|
12394
12394
|
});
|
|
12395
|
-
const l = c && a ?
|
|
12395
|
+
const l = c && a ? fv(c, n, i) : null;
|
|
12396
12396
|
let h = -1, f = null;
|
|
12397
12397
|
s && (f = new ResizeObserver((b) => {
|
|
12398
12398
|
let [w] = b;
|
|
@@ -12414,19 +12414,19 @@ function fv(e, t, n, r) {
|
|
|
12414
12414
|
}), l == null || l(), (b = f) == null || b.disconnect(), f = null, u && cancelAnimationFrame(v);
|
|
12415
12415
|
};
|
|
12416
12416
|
}
|
|
12417
|
-
const
|
|
12417
|
+
const pv = Vb, mv = Ub, gv = $b, bv = Kb, vv = jb, xl = zb, yv = Wb, xv = (e, t, n) => {
|
|
12418
12418
|
const r = /* @__PURE__ */ new Map(), o = n ?? {}, i = {
|
|
12419
|
-
...
|
|
12419
|
+
...dv,
|
|
12420
12420
|
...o.platform,
|
|
12421
12421
|
_c: r
|
|
12422
12422
|
};
|
|
12423
|
-
return
|
|
12423
|
+
return Bb(e, t, {
|
|
12424
12424
|
...o,
|
|
12425
12425
|
platform: i
|
|
12426
12426
|
});
|
|
12427
12427
|
};
|
|
12428
|
-
var
|
|
12429
|
-
}, Wr =
|
|
12428
|
+
var wv = typeof document < "u", Cv = function() {
|
|
12429
|
+
}, Wr = wv ? mr : Cv;
|
|
12430
12430
|
function oo(e, t) {
|
|
12431
12431
|
if (e === t)
|
|
12432
12432
|
return !0;
|
|
@@ -12470,7 +12470,7 @@ function ui(e) {
|
|
|
12470
12470
|
t.current = e;
|
|
12471
12471
|
}), t;
|
|
12472
12472
|
}
|
|
12473
|
-
function
|
|
12473
|
+
function Sv(e) {
|
|
12474
12474
|
e === void 0 && (e = {});
|
|
12475
12475
|
const {
|
|
12476
12476
|
placement: t = "bottom",
|
|
@@ -12505,7 +12505,7 @@ function Cv(e) {
|
|
|
12505
12505
|
strategy: n,
|
|
12506
12506
|
middleware: h
|
|
12507
12507
|
};
|
|
12508
|
-
R.current && (V.platform = R.current),
|
|
12508
|
+
R.current && (V.platform = R.current), xv(y.current, N.current, V).then((W) => {
|
|
12509
12509
|
const E = {
|
|
12510
12510
|
...W,
|
|
12511
12511
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -12572,7 +12572,7 @@ function Cv(e) {
|
|
|
12572
12572
|
floatingStyles: H
|
|
12573
12573
|
}), [d, _, M, z, H]);
|
|
12574
12574
|
}
|
|
12575
|
-
const
|
|
12575
|
+
const kv = (e) => {
|
|
12576
12576
|
function t(n) {
|
|
12577
12577
|
return {}.hasOwnProperty.call(n, "current");
|
|
12578
12578
|
}
|
|
@@ -12593,13 +12593,6 @@ const Sv = (e) => {
|
|
|
12593
12593
|
}).fn(n) : {};
|
|
12594
12594
|
}
|
|
12595
12595
|
};
|
|
12596
|
-
}, kv = (e, t) => {
|
|
12597
|
-
const n = hv(e);
|
|
12598
|
-
return {
|
|
12599
|
-
name: n.name,
|
|
12600
|
-
fn: n.fn,
|
|
12601
|
-
options: [e, t]
|
|
12602
|
-
};
|
|
12603
12596
|
}, Ev = (e, t) => {
|
|
12604
12597
|
const n = pv(e);
|
|
12605
12598
|
return {
|
|
@@ -12607,17 +12600,17 @@ const Sv = (e) => {
|
|
|
12607
12600
|
fn: n.fn,
|
|
12608
12601
|
options: [e, t]
|
|
12609
12602
|
};
|
|
12610
|
-
}, Nv = (e, t) =>
|
|
12611
|
-
fn: vv(e).fn,
|
|
12612
|
-
options: [e, t]
|
|
12613
|
-
}), Tv = (e, t) => {
|
|
12603
|
+
}, Nv = (e, t) => {
|
|
12614
12604
|
const n = mv(e);
|
|
12615
12605
|
return {
|
|
12616
12606
|
name: n.name,
|
|
12617
12607
|
fn: n.fn,
|
|
12618
12608
|
options: [e, t]
|
|
12619
12609
|
};
|
|
12620
|
-
},
|
|
12610
|
+
}, Tv = (e, t) => ({
|
|
12611
|
+
fn: yv(e).fn,
|
|
12612
|
+
options: [e, t]
|
|
12613
|
+
}), Dv = (e, t) => {
|
|
12621
12614
|
const n = gv(e);
|
|
12622
12615
|
return {
|
|
12623
12616
|
name: n.name,
|
|
@@ -12632,17 +12625,24 @@ const Sv = (e) => {
|
|
|
12632
12625
|
options: [e, t]
|
|
12633
12626
|
};
|
|
12634
12627
|
}, Iv = (e, t) => {
|
|
12635
|
-
const n =
|
|
12628
|
+
const n = vv(e);
|
|
12629
|
+
return {
|
|
12630
|
+
name: n.name,
|
|
12631
|
+
fn: n.fn,
|
|
12632
|
+
options: [e, t]
|
|
12633
|
+
};
|
|
12634
|
+
}, Av = (e, t) => {
|
|
12635
|
+
const n = kv(e);
|
|
12636
12636
|
return {
|
|
12637
12637
|
name: n.name,
|
|
12638
12638
|
fn: n.fn,
|
|
12639
12639
|
options: [e, t]
|
|
12640
12640
|
};
|
|
12641
12641
|
};
|
|
12642
|
-
var
|
|
12642
|
+
var Pv = Object.defineProperty, Lv = (e, t) => Pv(e, "name", { value: t, configurable: !0 });
|
|
12643
12643
|
function Gu(e) {
|
|
12644
12644
|
const [t, n] = S.useState(void 0);
|
|
12645
|
-
return
|
|
12645
|
+
return Ye(() => {
|
|
12646
12646
|
if (e) {
|
|
12647
12647
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
12648
12648
|
const r = new ResizeObserver((o) => {
|
|
@@ -12662,11 +12662,11 @@ function Gu(e) {
|
|
|
12662
12662
|
n(void 0);
|
|
12663
12663
|
}, [e]), t;
|
|
12664
12664
|
}
|
|
12665
|
-
|
|
12666
|
-
var
|
|
12665
|
+
Lv(Gu, "useSize");
|
|
12666
|
+
var Ov = Object.defineProperty, tn = (e, t) => Ov(e, "name", { value: t, configurable: !0 }), Qu = "Popper", [Ju, ed] = /* @__PURE__ */ _n(Qu), [Mv, td] = Ju(Qu), _v = /* @__PURE__ */ tn((e) => {
|
|
12667
12667
|
const { __scopePopper: t, children: n } = e, [r, o] = S.useState(null), [i, s] = S.useState(void 0);
|
|
12668
12668
|
return /* @__PURE__ */ p(
|
|
12669
|
-
|
|
12669
|
+
Mv,
|
|
12670
12670
|
{
|
|
12671
12671
|
scope: t,
|
|
12672
12672
|
anchor: r,
|
|
@@ -12676,9 +12676,9 @@ var Lv = Object.defineProperty, tn = (e, t) => Lv(e, "name", { value: t, configu
|
|
|
12676
12676
|
children: n
|
|
12677
12677
|
}
|
|
12678
12678
|
);
|
|
12679
|
-
}, "Popper"),
|
|
12679
|
+
}, "Popper"), Fv = "PopperAnchor", Bv = /* @__PURE__ */ S.forwardRef(
|
|
12680
12680
|
/* @__PURE__ */ tn(function(t, n) {
|
|
12681
|
-
const { __scopePopper: r, virtualRef: o, ...i } = t, s = td(
|
|
12681
|
+
const { __scopePopper: r, virtualRef: o, ...i } = t, s = td(Fv, r), a = S.useRef(null), u = s.onAnchorChange, c = S.useCallback(
|
|
12682
12682
|
(m) => {
|
|
12683
12683
|
a.current = m, m && u(m);
|
|
12684
12684
|
},
|
|
@@ -12701,9 +12701,9 @@ var Lv = Object.defineProperty, tn = (e, t) => Lv(e, "name", { value: t, configu
|
|
|
12701
12701
|
}
|
|
12702
12702
|
);
|
|
12703
12703
|
}, "PopperAnchor")
|
|
12704
|
-
), nd = "PopperContent", [
|
|
12704
|
+
), nd = "PopperContent", [zv, xw] = Ju(nd), $v = /* @__PURE__ */ S.forwardRef(
|
|
12705
12705
|
/* @__PURE__ */ tn(function(t, n) {
|
|
12706
|
-
var
|
|
12706
|
+
var Y, Z, le, te, ae, Ce, Ie;
|
|
12707
12707
|
const {
|
|
12708
12708
|
__scopePopper: r,
|
|
12709
12709
|
side: o = "bottom",
|
|
@@ -12724,35 +12724,35 @@ var Lv = Object.defineProperty, tn = (e, t) => Lv(e, "name", { value: t, configu
|
|
|
12724
12724
|
boundary: P.filter(rd),
|
|
12725
12725
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
12726
12726
|
altBoundary: _
|
|
12727
|
-
}, { refs: M, floatingStyles: z, placement: H, isPositioned: V, middlewareData: W } =
|
|
12727
|
+
}, { refs: M, floatingStyles: z, placement: H, isPositioned: V, middlewareData: W } = Sv({
|
|
12728
12728
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
12729
12729
|
strategy: "fixed",
|
|
12730
12730
|
placement: O,
|
|
12731
|
-
whileElementsMounted: /* @__PURE__ */ tn((...Le) =>
|
|
12731
|
+
whileElementsMounted: /* @__PURE__ */ tn((...Le) => hv(...Le, {
|
|
12732
12732
|
animationFrame: v === "always"
|
|
12733
12733
|
}), "whileElementsMounted"),
|
|
12734
12734
|
elements: {
|
|
12735
12735
|
reference: b.anchor
|
|
12736
12736
|
},
|
|
12737
12737
|
middleware: [
|
|
12738
|
-
|
|
12739
|
-
c &&
|
|
12738
|
+
Ev({ mainAxis: i + C, alignmentAxis: a }),
|
|
12739
|
+
c && Nv({
|
|
12740
12740
|
mainAxis: !0,
|
|
12741
12741
|
crossAxis: !1,
|
|
12742
|
-
limiter: h === "partial" ?
|
|
12742
|
+
limiter: h === "partial" ? Tv() : void 0,
|
|
12743
12743
|
...A
|
|
12744
12744
|
}),
|
|
12745
|
-
c &&
|
|
12746
|
-
|
|
12745
|
+
c && Dv({ ...A }),
|
|
12746
|
+
Rv({
|
|
12747
12747
|
...A,
|
|
12748
12748
|
apply: /* @__PURE__ */ tn(({ elements: Le, rects: je, availableWidth: ct, availableHeight: He }) => {
|
|
12749
12749
|
const { width: et, height: Rt } = je.reference, ve = Le.floating.style;
|
|
12750
12750
|
ve.setProperty("--radix-popper-available-width", `${ct}px`), ve.setProperty("--radix-popper-available-height", `${He}px`), ve.setProperty("--radix-popper-anchor-width", `${et}px`), ve.setProperty("--radix-popper-anchor-height", `${Rt}px`);
|
|
12751
12751
|
}, "apply")
|
|
12752
12752
|
}),
|
|
12753
|
-
D &&
|
|
12754
|
-
|
|
12755
|
-
f &&
|
|
12753
|
+
D && Av({ element: D, padding: u }),
|
|
12754
|
+
jv({ arrowWidth: I, arrowHeight: C }),
|
|
12755
|
+
f && Iv({
|
|
12756
12756
|
strategy: "referenceHidden",
|
|
12757
12757
|
...A,
|
|
12758
12758
|
// `hide` detects whether the anchor (reference) is clipped, so when
|
|
@@ -12766,16 +12766,16 @@ var Lv = Object.defineProperty, tn = (e, t) => Lv(e, "name", { value: t, configu
|
|
|
12766
12766
|
})
|
|
12767
12767
|
]
|
|
12768
12768
|
}), E = b.setPlacementState;
|
|
12769
|
-
|
|
12769
|
+
Ye(() => (E(H), () => {
|
|
12770
12770
|
E(void 0);
|
|
12771
12771
|
}), [H, E]);
|
|
12772
12772
|
const [de, ee] = No(H), T = Bt(m);
|
|
12773
|
-
|
|
12773
|
+
Ye(() => {
|
|
12774
12774
|
V && (T == null || T());
|
|
12775
12775
|
}, [V, T]);
|
|
12776
|
-
const q = (
|
|
12777
|
-
return
|
|
12778
|
-
w &&
|
|
12776
|
+
const q = (Y = W.arrow) == null ? void 0 : Y.x, re = (Z = W.arrow) == null ? void 0 : Z.y, X = ((le = W.arrow) == null ? void 0 : le.centerOffset) !== 0, [me, K] = S.useState();
|
|
12777
|
+
return Ye(() => {
|
|
12778
|
+
w && K(window.getComputedStyle(w).zIndex);
|
|
12779
12779
|
}, [w]), /* @__PURE__ */ p(
|
|
12780
12780
|
"div",
|
|
12781
12781
|
{
|
|
@@ -12801,7 +12801,7 @@ var Lv = Object.defineProperty, tn = (e, t) => Lv(e, "name", { value: t, configu
|
|
|
12801
12801
|
},
|
|
12802
12802
|
dir: t.dir,
|
|
12803
12803
|
children: /* @__PURE__ */ p(
|
|
12804
|
-
|
|
12804
|
+
zv,
|
|
12805
12805
|
{
|
|
12806
12806
|
scope: r,
|
|
12807
12807
|
placedSide: de,
|
|
@@ -12836,7 +12836,7 @@ function rd(e) {
|
|
|
12836
12836
|
return e !== null;
|
|
12837
12837
|
}
|
|
12838
12838
|
tn(rd, "isNotNull");
|
|
12839
|
-
var
|
|
12839
|
+
var jv = /* @__PURE__ */ tn((e) => ({
|
|
12840
12840
|
name: "transformOrigin",
|
|
12841
12841
|
options: e,
|
|
12842
12842
|
fn(t) {
|
|
@@ -12851,12 +12851,12 @@ function No(e) {
|
|
|
12851
12851
|
return [t, n];
|
|
12852
12852
|
}
|
|
12853
12853
|
tn(No, "getSideAndAlignFromPlacement");
|
|
12854
|
-
var
|
|
12854
|
+
var Hv = _v, Vv = Bv, Uv = $v, Wv = Object.defineProperty, Kv = (e, t) => Wv(e, "name", { value: t, configurable: !0 });
|
|
12855
12855
|
function od(e) {
|
|
12856
12856
|
const t = S.useRef({ value: e, previous: e });
|
|
12857
12857
|
return S.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
12858
12858
|
}
|
|
12859
|
-
|
|
12859
|
+
Kv(od, "usePrevious");
|
|
12860
12860
|
var Yv = Object.freeze({
|
|
12861
12861
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
12862
12862
|
position: "absolute",
|
|
@@ -12869,10 +12869,10 @@ var Yv = Object.freeze({
|
|
|
12869
12869
|
clip: "rect(0, 0, 0, 0)",
|
|
12870
12870
|
whiteSpace: "nowrap",
|
|
12871
12871
|
wordWrap: "normal"
|
|
12872
|
-
}),
|
|
12873
|
-
|
|
12872
|
+
}), qv = Object.defineProperty, be = (e, t) => qv(e, "name", { value: t, configurable: !0 }), Xv = [" ", "Enter", "ArrowUp", "ArrowDown"], Zv = [" ", "Enter"], An = "Select", [To, Fs, Gv] = /* @__PURE__ */ Ou(An), [xn, ww] = /* @__PURE__ */ _n(An, [
|
|
12873
|
+
Gv,
|
|
12874
12874
|
ed
|
|
12875
|
-
]), Bs = ed(), [
|
|
12875
|
+
]), Bs = ed(), [Qv, cn] = xn(An), [Jv, ey] = xn(An);
|
|
12876
12876
|
function id(e) {
|
|
12877
12877
|
const {
|
|
12878
12878
|
__scopeSelect: t,
|
|
@@ -12939,8 +12939,8 @@ function id(e) {
|
|
|
12939
12939
|
nativeSelectKey: V,
|
|
12940
12940
|
isFormControl: A
|
|
12941
12941
|
};
|
|
12942
|
-
return /* @__PURE__ */ p(
|
|
12943
|
-
|
|
12942
|
+
return /* @__PURE__ */ p(Hv, { ...g, children: /* @__PURE__ */ p(Qv, { scope: t, ...de, children: /* @__PURE__ */ p(To.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
12943
|
+
Jv,
|
|
12944
12944
|
{
|
|
12945
12945
|
scope: t,
|
|
12946
12946
|
onNativeOptionAdd: W,
|
|
@@ -12950,7 +12950,7 @@ function id(e) {
|
|
|
12950
12950
|
) }) }) });
|
|
12951
12951
|
}
|
|
12952
12952
|
be(id, "SelectProvider");
|
|
12953
|
-
var
|
|
12953
|
+
var ty = /* @__PURE__ */ be((e) => {
|
|
12954
12954
|
const { __scopeSelect: t, children: n, ...r } = e;
|
|
12955
12955
|
return /* @__PURE__ */ p(
|
|
12956
12956
|
id,
|
|
@@ -12960,7 +12960,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
12960
12960
|
internal_do_not_use_render: ({ isFormControl: o }) => /* @__PURE__ */ L(Ge, { children: [
|
|
12961
12961
|
n,
|
|
12962
12962
|
o ? /* @__PURE__ */ p(
|
|
12963
|
-
|
|
12963
|
+
Ny,
|
|
12964
12964
|
{
|
|
12965
12965
|
__scopeSelect: t
|
|
12966
12966
|
}
|
|
@@ -12968,9 +12968,9 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
12968
12968
|
] })
|
|
12969
12969
|
}
|
|
12970
12970
|
);
|
|
12971
|
-
}, "Select"),
|
|
12971
|
+
}, "Select"), ny = "SelectTrigger", ry = /* @__PURE__ */ S.forwardRef(
|
|
12972
12972
|
/* @__PURE__ */ be(function(t, n) {
|
|
12973
|
-
const { __scopeSelect: r, disabled: o = !1, ...i } = t, s = Bs(r), a = cn(
|
|
12973
|
+
const { __scopeSelect: r, disabled: o = !1, ...i } = t, s = Bs(r), a = cn(ny, r), u = a.disabled || o, c = Ae(n, a.onTriggerChange), d = Fs(r), l = S.useRef("touch"), [h, f, v] = zs((g) => {
|
|
12974
12974
|
const b = d().filter((k) => !k.disabled), w = b.find((k) => k.value === a.value), x = $s(b, g, w);
|
|
12975
12975
|
x !== void 0 && a.onValueChange(x.value);
|
|
12976
12976
|
}), m = /* @__PURE__ */ be((g) => {
|
|
@@ -12979,7 +12979,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
12979
12979
|
y: Math.round(g.pageY)
|
|
12980
12980
|
});
|
|
12981
12981
|
}, "handleOpen");
|
|
12982
|
-
return /* @__PURE__ */ p(
|
|
12982
|
+
return /* @__PURE__ */ p(Vv, { asChild: !0, ...s, children: /* @__PURE__ */ p(
|
|
12983
12983
|
$e.button,
|
|
12984
12984
|
{
|
|
12985
12985
|
type: "button",
|
|
@@ -13005,15 +13005,15 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13005
13005
|
}),
|
|
13006
13006
|
onKeyDown: De(i.onKeyDown, (g) => {
|
|
13007
13007
|
const b = h.current !== "";
|
|
13008
|
-
!(g.ctrlKey || g.altKey || g.metaKey) && g.key.length === 1 && f(g.key), !(b && g.key === " ") &&
|
|
13008
|
+
!(g.ctrlKey || g.altKey || g.metaKey) && g.key.length === 1 && f(g.key), !(b && g.key === " ") && Xv.includes(g.key) && (m(), g.preventDefault());
|
|
13009
13009
|
})
|
|
13010
13010
|
}
|
|
13011
13011
|
) });
|
|
13012
13012
|
}, "SelectTrigger")
|
|
13013
|
-
),
|
|
13013
|
+
), oy = "SelectValue", iy = /* @__PURE__ */ S.forwardRef(
|
|
13014
13014
|
/* @__PURE__ */ be(function(t, n) {
|
|
13015
|
-
const { __scopeSelect: r, className: o, style: i, children: s, placeholder: a = "", ...u } = t, c = cn(
|
|
13016
|
-
|
|
13015
|
+
const { __scopeSelect: r, className: o, style: i, children: s, placeholder: a = "", ...u } = t, c = cn(oy, r), { onValueNodeHasChildrenChange: d } = c, l = s !== void 0, h = Ae(n, c.onValueNodeChange);
|
|
13016
|
+
Ye(() => {
|
|
13017
13017
|
d(l);
|
|
13018
13018
|
}, [d, l]);
|
|
13019
13019
|
const f = wr(c.value);
|
|
@@ -13028,30 +13028,30 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13028
13028
|
}
|
|
13029
13029
|
);
|
|
13030
13030
|
}, "SelectValue")
|
|
13031
|
-
),
|
|
13031
|
+
), sy = /* @__PURE__ */ S.forwardRef(
|
|
13032
13032
|
/* @__PURE__ */ be(function(t, n) {
|
|
13033
13033
|
const { __scopeSelect: r, children: o, ...i } = t;
|
|
13034
13034
|
return /* @__PURE__ */ p($e.span, { "aria-hidden": !0, ...i, ref: n, children: o || "▼" });
|
|
13035
13035
|
}, "SelectIcon")
|
|
13036
|
-
),
|
|
13036
|
+
), ay = "SelectPortal", [ly, cy] = xn(ay, {
|
|
13037
13037
|
forceMount: void 0
|
|
13038
|
-
}),
|
|
13038
|
+
}), uy = /* @__PURE__ */ be((e) => {
|
|
13039
13039
|
const { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
13040
|
-
return /* @__PURE__ */ p(
|
|
13041
|
-
}, "SelectPortal"), bn = "SelectContent",
|
|
13040
|
+
return /* @__PURE__ */ p(ly, { scope: e.__scopeSelect, forceMount: n, children: /* @__PURE__ */ p(Ic, { asChild: !0, ...r }) });
|
|
13041
|
+
}, "SelectPortal"), bn = "SelectContent", dy = /* @__PURE__ */ S.forwardRef(
|
|
13042
13042
|
/* @__PURE__ */ be(function(t, n) {
|
|
13043
|
-
const r =
|
|
13044
|
-
return
|
|
13043
|
+
const r = cy(bn, t.__scopeSelect), { forceMount: o = r.forceMount, ...i } = t, s = cn(bn, t.__scopeSelect), [a, u] = S.useState();
|
|
13044
|
+
return Ye(() => {
|
|
13045
13045
|
u(new DocumentFragment());
|
|
13046
|
-
}, []), /* @__PURE__ */ p(po, { present: o || s.open, children: ({ present: c }) => c ? /* @__PURE__ */ p(
|
|
13046
|
+
}, []), /* @__PURE__ */ p(po, { present: o || s.open, children: ({ present: c }) => c ? /* @__PURE__ */ p(py, { ...i, ref: n }) : /* @__PURE__ */ p(fy, { ...i, fragment: a }) });
|
|
13047
13047
|
}, "SelectContent")
|
|
13048
|
-
),
|
|
13048
|
+
), fy = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ be(function(t, n) {
|
|
13049
13049
|
const { __scopeSelect: r, children: o, fragment: i } = t;
|
|
13050
13050
|
return i ? gr.createPortal(
|
|
13051
13051
|
/* @__PURE__ */ p(sd, { scope: r, children: /* @__PURE__ */ p(To.Slot, { scope: r, children: /* @__PURE__ */ p("div", { ref: n, children: o }) }) }),
|
|
13052
13052
|
i
|
|
13053
13053
|
) : null;
|
|
13054
|
-
}, "SelectContentFragment")), kt = 10, [sd, Do] = xn(bn),
|
|
13054
|
+
}, "SelectContentFragment")), kt = 10, [sd, Do] = xn(bn), hy = /* @__PURE__ */ nn("SelectContent.RemoveScroll"), py = /* @__PURE__ */ S.forwardRef(
|
|
13055
13055
|
// blank line to reduce diff noise
|
|
13056
13056
|
/* @__PURE__ */ be(function(t, n) {
|
|
13057
13057
|
const { __scopeSelect: r } = t, {
|
|
@@ -13080,10 +13080,10 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13080
13080
|
if (k) return Vc(k);
|
|
13081
13081
|
}, [k]), mo();
|
|
13082
13082
|
const H = S.useCallback(
|
|
13083
|
-
(
|
|
13084
|
-
const [
|
|
13085
|
-
for (const ae of
|
|
13086
|
-
if (ae === te || (ae == null || ae.scrollIntoView({ block: "nearest" }), ae ===
|
|
13083
|
+
(K) => {
|
|
13084
|
+
const [Y, ...Z] = _().map((ae) => ae.ref.current), [le] = Z.slice(-1), te = document.activeElement;
|
|
13085
|
+
for (const ae of K)
|
|
13086
|
+
if (ae === te || (ae == null || ae.scrollIntoView({ block: "nearest" }), ae === Y && y && (y.scrollTop = 0), ae === le && y && (y.scrollTop = y.scrollHeight), ae == null || ae.focus(), document.activeElement !== te)) return;
|
|
13087
13087
|
},
|
|
13088
13088
|
[_, y]
|
|
13089
13089
|
), V = S.useCallback(
|
|
@@ -13096,45 +13096,45 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13096
13096
|
const { onOpenChange: W, triggerPointerDownPosRef: E } = x;
|
|
13097
13097
|
S.useEffect(() => {
|
|
13098
13098
|
if (k) {
|
|
13099
|
-
let
|
|
13100
|
-
const
|
|
13099
|
+
let K = { x: 0, y: 0 };
|
|
13100
|
+
const Y = /* @__PURE__ */ be((le) => {
|
|
13101
13101
|
var te, ae;
|
|
13102
|
-
|
|
13102
|
+
K = {
|
|
13103
13103
|
x: Math.abs(Math.round(le.pageX) - (((te = E.current) == null ? void 0 : te.x) ?? 0)),
|
|
13104
13104
|
y: Math.abs(Math.round(le.pageY) - (((ae = E.current) == null ? void 0 : ae.y) ?? 0))
|
|
13105
13105
|
};
|
|
13106
13106
|
}, "handlePointerMove"), Z = /* @__PURE__ */ be((le) => {
|
|
13107
|
-
|
|
13107
|
+
K.x <= 10 && K.y <= 10 ? le.preventDefault() : le.composedPath().includes(k) || W(!1), document.removeEventListener("pointermove", Y), E.current = null;
|
|
13108
13108
|
}, "handlePointerUp");
|
|
13109
|
-
return E.current !== null && (document.addEventListener("pointermove",
|
|
13110
|
-
document.removeEventListener("pointermove",
|
|
13109
|
+
return E.current !== null && (document.addEventListener("pointermove", Y), document.addEventListener("pointerup", Z, { capture: !0, once: !0 })), () => {
|
|
13110
|
+
document.removeEventListener("pointermove", Y), document.removeEventListener("pointerup", Z, { capture: !0 });
|
|
13111
13111
|
};
|
|
13112
13112
|
}
|
|
13113
13113
|
}, [k, W, E]), S.useEffect(() => {
|
|
13114
|
-
const
|
|
13115
|
-
return window.addEventListener("blur",
|
|
13116
|
-
window.removeEventListener("blur",
|
|
13114
|
+
const K = /* @__PURE__ */ be(() => W(!1), "close");
|
|
13115
|
+
return window.addEventListener("blur", K), window.addEventListener("resize", K), () => {
|
|
13116
|
+
window.removeEventListener("blur", K), window.removeEventListener("resize", K);
|
|
13117
13117
|
};
|
|
13118
13118
|
}, [W]);
|
|
13119
|
-
const [de, ee] = zs((
|
|
13120
|
-
const
|
|
13119
|
+
const [de, ee] = zs((K) => {
|
|
13120
|
+
const Y = _().filter((te) => !te.disabled), Z = Y.find((te) => te.ref.current === document.activeElement), le = $s(Y, K, Z);
|
|
13121
13121
|
le && setTimeout(() => {
|
|
13122
13122
|
var te;
|
|
13123
13123
|
return (te = le.ref.current) == null ? void 0 : te.focus();
|
|
13124
13124
|
});
|
|
13125
13125
|
}), T = S.useCallback(
|
|
13126
|
-
(
|
|
13126
|
+
(K, Y, Z) => {
|
|
13127
13127
|
const le = !z.current && !Z;
|
|
13128
|
-
(x.value !== void 0 && x.value ===
|
|
13128
|
+
(x.value !== void 0 && x.value === Y || le) && (O(K), le && (z.current = !0));
|
|
13129
13129
|
},
|
|
13130
13130
|
[x.value]
|
|
13131
13131
|
), q = S.useCallback(() => k == null ? void 0 : k.focus(), [k]), re = S.useCallback(
|
|
13132
|
-
(
|
|
13132
|
+
(K, Y, Z) => {
|
|
13133
13133
|
const le = !z.current && !Z;
|
|
13134
|
-
(x.value !== void 0 && x.value ===
|
|
13134
|
+
(x.value !== void 0 && x.value === Y || le) && P(K);
|
|
13135
13135
|
},
|
|
13136
13136
|
[x.value]
|
|
13137
|
-
), X = o === "popper" ? Cl :
|
|
13137
|
+
), X = o === "popper" ? Cl : my, me = X === Cl ? {
|
|
13138
13138
|
side: u,
|
|
13139
13139
|
sideOffset: c,
|
|
13140
13140
|
align: d,
|
|
@@ -13162,17 +13162,17 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13162
13162
|
position: o,
|
|
13163
13163
|
isPositioned: A,
|
|
13164
13164
|
searchRef: de,
|
|
13165
|
-
children: /* @__PURE__ */ p(ss, { as:
|
|
13165
|
+
children: /* @__PURE__ */ p(ss, { as: hy, allowPinchZoom: !0, children: /* @__PURE__ */ p(
|
|
13166
13166
|
Sc,
|
|
13167
13167
|
{
|
|
13168
13168
|
asChild: !0,
|
|
13169
13169
|
trapped: x.open,
|
|
13170
|
-
onMountAutoFocus: (
|
|
13171
|
-
|
|
13170
|
+
onMountAutoFocus: (K) => {
|
|
13171
|
+
K.preventDefault();
|
|
13172
13172
|
},
|
|
13173
|
-
onUnmountAutoFocus: De(i, (
|
|
13174
|
-
var
|
|
13175
|
-
(
|
|
13173
|
+
onUnmountAutoFocus: De(i, (K) => {
|
|
13174
|
+
var Y;
|
|
13175
|
+
(Y = x.trigger) == null || Y.focus({ preventScroll: !0 }), K.preventDefault();
|
|
13176
13176
|
}),
|
|
13177
13177
|
children: /* @__PURE__ */ p(
|
|
13178
13178
|
yc,
|
|
@@ -13181,7 +13181,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13181
13181
|
disableOutsidePointerEvents: !0,
|
|
13182
13182
|
onEscapeKeyDown: s,
|
|
13183
13183
|
onPointerDownOutside: a,
|
|
13184
|
-
onFocusOutside: (
|
|
13184
|
+
onFocusOutside: (K) => K.preventDefault(),
|
|
13185
13185
|
onDismiss: () => x.onOpenChange(!1),
|
|
13186
13186
|
children: /* @__PURE__ */ p(
|
|
13187
13187
|
X,
|
|
@@ -13190,7 +13190,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13190
13190
|
id: x.contentId,
|
|
13191
13191
|
"data-state": x.open ? "open" : "closed",
|
|
13192
13192
|
dir: x.dir,
|
|
13193
|
-
onContextMenu: (
|
|
13193
|
+
onContextMenu: (K) => K.preventDefault(),
|
|
13194
13194
|
...w,
|
|
13195
13195
|
...me,
|
|
13196
13196
|
onPlaced: () => M(!0),
|
|
@@ -13203,15 +13203,15 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13203
13203
|
outline: "none",
|
|
13204
13204
|
...w.style
|
|
13205
13205
|
},
|
|
13206
|
-
onKeyDown: De(w.onKeyDown, (
|
|
13207
|
-
const
|
|
13208
|
-
if (
|
|
13206
|
+
onKeyDown: De(w.onKeyDown, (K) => {
|
|
13207
|
+
const Y = K.ctrlKey || K.altKey || K.metaKey;
|
|
13208
|
+
if (K.key === "Tab" && K.preventDefault(), !Y && K.key.length === 1 && ee(K.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(K.key)) {
|
|
13209
13209
|
let le = _().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
13210
|
-
if (["ArrowUp", "End"].includes(
|
|
13211
|
-
const te =
|
|
13210
|
+
if (["ArrowUp", "End"].includes(K.key) && (le = le.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(K.key)) {
|
|
13211
|
+
const te = K.target, ae = le.indexOf(te);
|
|
13212
13212
|
le = le.slice(ae + 1);
|
|
13213
13213
|
}
|
|
13214
|
-
setTimeout(() => H(le)),
|
|
13214
|
+
setTimeout(() => H(le)), K.preventDefault();
|
|
13215
13215
|
}
|
|
13216
13216
|
})
|
|
13217
13217
|
}
|
|
@@ -13223,7 +13223,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13223
13223
|
}
|
|
13224
13224
|
);
|
|
13225
13225
|
}, "SelectContentImpl")
|
|
13226
|
-
),
|
|
13226
|
+
), my = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ be(function(t, n) {
|
|
13227
13227
|
const { __scopeSelect: r, onPlaced: o, ...i } = t, s = cn(bn, r), a = Do(bn, r), [u, c] = S.useState(null), [d, l] = S.useState(null), h = Ae(n, l), f = Fs(r), v = S.useRef(!1), m = S.useRef(!0), { viewport: g, selectedItem: b, selectedItemText: w, focusSelectedItem: x } = a, k = S.useCallback(() => {
|
|
13228
13228
|
if (s.trigger && s.valueNode && u && d && g && b && w) {
|
|
13229
13229
|
const I = s.trigger.getBoundingClientRect(), C = d.getBoundingClientRect(), O = s.valueNode.getBoundingClientRect(), R = w.getBoundingClientRect();
|
|
@@ -13245,15 +13245,15 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13245
13245
|
]);
|
|
13246
13246
|
u.style.minWidth = Ie + "px", u.style.right = ct + "px";
|
|
13247
13247
|
}
|
|
13248
|
-
const P = f(), _ = window.innerHeight - kt * 2, A = g.scrollHeight, M = window.getComputedStyle(d), z = parseInt(M.borderTopWidth, 10), H = parseInt(M.paddingTop, 10), V = parseInt(M.borderBottomWidth, 10), W = parseInt(M.paddingBottom, 10), E = z + H + A + W + V, de = Math.min(b.offsetHeight * 5, E), ee = window.getComputedStyle(g), T = parseInt(ee.paddingTop, 10), q = parseInt(ee.paddingBottom, 10), re = I.top + I.height / 2 - kt, X = _ - re, me = b.offsetHeight / 2,
|
|
13249
|
-
if (
|
|
13248
|
+
const P = f(), _ = window.innerHeight - kt * 2, A = g.scrollHeight, M = window.getComputedStyle(d), z = parseInt(M.borderTopWidth, 10), H = parseInt(M.paddingTop, 10), V = parseInt(M.borderBottomWidth, 10), W = parseInt(M.paddingBottom, 10), E = z + H + A + W + V, de = Math.min(b.offsetHeight * 5, E), ee = window.getComputedStyle(g), T = parseInt(ee.paddingTop, 10), q = parseInt(ee.paddingBottom, 10), re = I.top + I.height / 2 - kt, X = _ - re, me = b.offsetHeight / 2, K = b.offsetTop + me, Y = z + H + K, Z = E - Y;
|
|
13249
|
+
if (Y <= re) {
|
|
13250
13250
|
const te = P.length > 0 && b === P[P.length - 1].ref.current;
|
|
13251
13251
|
u.style.bottom = "0px";
|
|
13252
13252
|
const ae = d.clientHeight - g.offsetTop - g.offsetHeight, Ce = Math.max(
|
|
13253
13253
|
X,
|
|
13254
13254
|
me + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
13255
13255
|
(te ? q : 0) + ae + V
|
|
13256
|
-
), Ie =
|
|
13256
|
+
), Ie = Y + Ce;
|
|
13257
13257
|
u.style.height = Ie + "px";
|
|
13258
13258
|
} else {
|
|
13259
13259
|
const te = P.length > 0 && b === P[0].ref.current;
|
|
@@ -13263,7 +13263,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13263
13263
|
z + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
13264
13264
|
(te ? T : 0) + me
|
|
13265
13265
|
) + Z;
|
|
13266
|
-
u.style.height = Ce + "px", g.scrollTop =
|
|
13266
|
+
u.style.height = Ce + "px", g.scrollTop = Y - re + g.offsetTop;
|
|
13267
13267
|
}
|
|
13268
13268
|
u.style.margin = `${kt}px 0`, u.style.minHeight = de + "px", u.style.maxHeight = _ + "px", o == null || o(), requestAnimationFrame(() => v.current = !0);
|
|
13269
13269
|
}
|
|
@@ -13279,9 +13279,9 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13279
13279
|
s.dir,
|
|
13280
13280
|
o
|
|
13281
13281
|
]);
|
|
13282
|
-
|
|
13282
|
+
Ye(() => k(), [k]);
|
|
13283
13283
|
const [D, y] = S.useState();
|
|
13284
|
-
|
|
13284
|
+
Ye(() => {
|
|
13285
13285
|
d && y(window.getComputedStyle(d).zIndex);
|
|
13286
13286
|
}, [d]);
|
|
13287
13287
|
const N = S.useCallback(
|
|
@@ -13291,7 +13291,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13291
13291
|
[k, x]
|
|
13292
13292
|
);
|
|
13293
13293
|
return /* @__PURE__ */ p(
|
|
13294
|
-
|
|
13294
|
+
gy,
|
|
13295
13295
|
{
|
|
13296
13296
|
scope: r,
|
|
13297
13297
|
contentWrapper: u,
|
|
@@ -13334,7 +13334,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13334
13334
|
...s
|
|
13335
13335
|
} = t, a = Bs(r);
|
|
13336
13336
|
return /* @__PURE__ */ p(
|
|
13337
|
-
|
|
13337
|
+
Uv,
|
|
13338
13338
|
{
|
|
13339
13339
|
...a,
|
|
13340
13340
|
...s,
|
|
@@ -13353,9 +13353,9 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13353
13353
|
}
|
|
13354
13354
|
}
|
|
13355
13355
|
);
|
|
13356
|
-
}, "SelectPopperPosition")), [
|
|
13356
|
+
}, "SelectPopperPosition")), [gy, by] = xn(bn, {}), Sl = "SelectViewport", vy = /* @__PURE__ */ S.forwardRef(
|
|
13357
13357
|
/* @__PURE__ */ be(function(t, n) {
|
|
13358
|
-
const { __scopeSelect: r, nonce: o, ...i } = t, s = Do(Sl, r), a =
|
|
13358
|
+
const { __scopeSelect: r, nonce: o, ...i } = t, s = Do(Sl, r), a = by(Sl, r), u = Ae(n, s.onViewportChange), c = S.useRef(0);
|
|
13359
13359
|
return /* @__PURE__ */ L(Ge, { children: [
|
|
13360
13360
|
/* @__PURE__ */ p(
|
|
13361
13361
|
"style",
|
|
@@ -13404,7 +13404,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13404
13404
|
) })
|
|
13405
13405
|
] });
|
|
13406
13406
|
}, "SelectViewport")
|
|
13407
|
-
),
|
|
13407
|
+
), yy = "SelectGroup", [Cw, Sw] = xn(yy), Ki = "SelectItem", [xy, ad] = xn(Ki), wy = /* @__PURE__ */ S.forwardRef(
|
|
13408
13408
|
/* @__PURE__ */ be(function(t, n) {
|
|
13409
13409
|
const {
|
|
13410
13410
|
__scopeSelect: r,
|
|
@@ -13412,7 +13412,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13412
13412
|
disabled: i = !1,
|
|
13413
13413
|
textValue: s,
|
|
13414
13414
|
...a
|
|
13415
|
-
} = t, u = cn(
|
|
13415
|
+
} = t, u = cn(Ki, r), c = Do(Ki, r), d = u.value === o, [l, h] = S.useState(s ?? ""), [f, v] = S.useState(!1), m = Bt(
|
|
13416
13416
|
(k) => {
|
|
13417
13417
|
var D;
|
|
13418
13418
|
return (D = c.itemRefCallback) == null ? void 0 : D.call(c, k, o, i);
|
|
@@ -13421,7 +13421,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13421
13421
|
i || (u.onValueChange(o), u.onOpenChange(!1));
|
|
13422
13422
|
}, "handleSelect");
|
|
13423
13423
|
return /* @__PURE__ */ p(
|
|
13424
|
-
|
|
13424
|
+
xy,
|
|
13425
13425
|
{
|
|
13426
13426
|
scope: r,
|
|
13427
13427
|
value: o,
|
|
@@ -13472,7 +13472,7 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13472
13472
|
}),
|
|
13473
13473
|
onKeyDown: De(a.onKeyDown, (k) => {
|
|
13474
13474
|
var y;
|
|
13475
|
-
i || k.target !== k.currentTarget || ((y = c.searchRef) == null ? void 0 : y.current) !== "" && k.key === " " || (
|
|
13475
|
+
i || k.target !== k.currentTarget || ((y = c.searchRef) == null ? void 0 : y.current) !== "" && k.key === " " || (Zv.includes(k.key) && x(), k.key === " " && k.preventDefault());
|
|
13476
13476
|
})
|
|
13477
13477
|
}
|
|
13478
13478
|
)
|
|
@@ -13481,9 +13481,9 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13481
13481
|
}
|
|
13482
13482
|
);
|
|
13483
13483
|
}, "SelectItem")
|
|
13484
|
-
), zr = "SelectItemText",
|
|
13484
|
+
), zr = "SelectItemText", Cy = /* @__PURE__ */ S.forwardRef(
|
|
13485
13485
|
/* @__PURE__ */ be(function(t, n) {
|
|
13486
|
-
const { __scopeSelect: r, className: o, style: i, ...s } = t, a = cn(zr, r), u = Do(zr, r), c = ad(zr, r), d =
|
|
13486
|
+
const { __scopeSelect: r, className: o, style: i, ...s } = t, a = cn(zr, r), u = Do(zr, r), c = ad(zr, r), d = ey(zr, r), [l, h] = S.useState(null), f = Bt(
|
|
13487
13487
|
(x) => {
|
|
13488
13488
|
var k;
|
|
13489
13489
|
return (k = u.itemTextRefCallback) == null ? void 0 : k.call(u, x, c.value, c.disabled);
|
|
@@ -13497,21 +13497,21 @@ var ey = /* @__PURE__ */ be((e) => {
|
|
|
13497
13497
|
() => /* @__PURE__ */ p("option", { value: c.value, disabled: c.disabled, children: m }, c.value),
|
|
13498
13498
|
[c.disabled, c.value, m]
|
|
13499
13499
|
), { onNativeOptionAdd: b, onNativeOptionRemove: w } = d;
|
|
13500
|
-
return
|
|
13500
|
+
return Ye(() => (b(g), () => w(g)), [b, w, g]), /* @__PURE__ */ L(Ge, { children: [
|
|
13501
13501
|
/* @__PURE__ */ p($e.span, { id: c.textId, ...s, ref: v }),
|
|
13502
13502
|
c.isSelected && a.valueNode && !a.valueNodeHasChildren && !wr(a.value) ? gr.createPortal(s.children, a.valueNode) : null
|
|
13503
13503
|
] });
|
|
13504
13504
|
}, "SelectItemText")
|
|
13505
|
-
),
|
|
13505
|
+
), Sy = "SelectItemIndicator", ky = /* @__PURE__ */ S.forwardRef(
|
|
13506
13506
|
// blank line to reduce diff noise
|
|
13507
13507
|
/* @__PURE__ */ be(function(t, n) {
|
|
13508
13508
|
const { __scopeSelect: r, ...o } = t;
|
|
13509
|
-
return ad(
|
|
13509
|
+
return ad(Sy, r).isSelected ? /* @__PURE__ */ p($e.span, { "aria-hidden": !0, ...o, ref: n }) : null;
|
|
13510
13510
|
}, "SelectItemIndicator")
|
|
13511
|
-
),
|
|
13511
|
+
), Ey = "SelectBubbleInput", Ny = /* @__PURE__ */ S.forwardRef(
|
|
13512
13512
|
// blank line to reduce diff noise
|
|
13513
13513
|
/* @__PURE__ */ be(function({ __scopeSelect: t, ...n }, r) {
|
|
13514
|
-
const o = cn(
|
|
13514
|
+
const o = cn(Ey, t), { value: i, onValueChange: s, required: a, disabled: u, name: c, autoComplete: d, form: l } = o, { nativeOptions: h, nativeSelectKey: f } = o, v = S.useRef(null), m = Ae(r, v), g = i ?? "", b = od(g), w = Array.from(h).some(
|
|
13515
13515
|
(x) => (x.props.value ?? "") === ""
|
|
13516
13516
|
);
|
|
13517
13517
|
return S.useEffect(() => {
|
|
@@ -13586,7 +13586,7 @@ function cd(e, t) {
|
|
|
13586
13586
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
13587
13587
|
}
|
|
13588
13588
|
be(cd, "wrapArray");
|
|
13589
|
-
function
|
|
13589
|
+
function Yi({
|
|
13590
13590
|
value: e,
|
|
13591
13591
|
onValueChange: t,
|
|
13592
13592
|
options: n,
|
|
@@ -13597,13 +13597,13 @@ function Ki({
|
|
|
13597
13597
|
}) {
|
|
13598
13598
|
const a = "__none__", u = e === "" ? a : e;
|
|
13599
13599
|
return /* @__PURE__ */ L(
|
|
13600
|
-
|
|
13600
|
+
ty,
|
|
13601
13601
|
{
|
|
13602
13602
|
value: u,
|
|
13603
13603
|
onValueChange: (c) => t(c === a ? "" : c),
|
|
13604
13604
|
children: [
|
|
13605
13605
|
/* @__PURE__ */ L(
|
|
13606
|
-
|
|
13606
|
+
ry,
|
|
13607
13607
|
{
|
|
13608
13608
|
"aria-label": o,
|
|
13609
13609
|
className: "flex h-9 w-full items-center justify-between gap-2 rounded border border-sb-iron bg-sb-surface2 px-3 text-left text-[13px] text-sb-frosted outline-none transition-colors hover:border-sb-silver focus:border-sb-silver data-placeholder:text-sb-silver",
|
|
@@ -13616,19 +13616,19 @@ function Ki({
|
|
|
13616
13616
|
"aria-hidden": "true"
|
|
13617
13617
|
}
|
|
13618
13618
|
) : null,
|
|
13619
|
-
/* @__PURE__ */ p(
|
|
13619
|
+
/* @__PURE__ */ p(iy, { placeholder: r })
|
|
13620
13620
|
] }),
|
|
13621
|
-
/* @__PURE__ */ p(
|
|
13621
|
+
/* @__PURE__ */ p(sy, { className: "shrink-0 text-sb-silver", children: /* @__PURE__ */ p(ar, { className: "h-2.5 w-2.5 rotate-90" }) })
|
|
13622
13622
|
]
|
|
13623
13623
|
}
|
|
13624
13624
|
),
|
|
13625
|
-
/* @__PURE__ */ p(
|
|
13626
|
-
|
|
13625
|
+
/* @__PURE__ */ p(uy, { children: /* @__PURE__ */ p(
|
|
13626
|
+
dy,
|
|
13627
13627
|
{
|
|
13628
13628
|
className: "z-50 overflow-hidden rounded border border-sb-iron bg-sb-surface text-[13px] text-sb-frosted",
|
|
13629
13629
|
position: "popper",
|
|
13630
13630
|
sideOffset: 4,
|
|
13631
|
-
children: /* @__PURE__ */ L(
|
|
13631
|
+
children: /* @__PURE__ */ L(vy, { className: "p-1", children: [
|
|
13632
13632
|
i ? /* @__PURE__ */ p(kl, { value: a, children: i.label }) : null,
|
|
13633
13633
|
n.map((c) => /* @__PURE__ */ p(kl, { value: c.value, children: c.label }, c.value))
|
|
13634
13634
|
] })
|
|
@@ -13640,22 +13640,22 @@ function Ki({
|
|
|
13640
13640
|
}
|
|
13641
13641
|
function kl({ value: e, children: t }) {
|
|
13642
13642
|
return /* @__PURE__ */ L(
|
|
13643
|
-
|
|
13643
|
+
wy,
|
|
13644
13644
|
{
|
|
13645
13645
|
className: "relative flex h-8 cursor-default select-none items-center rounded px-2 pr-8 text-sb-silver outline-none transition-colors data-highlighted:bg-sb-surface2 data-highlighted:text-sb-frosted data-[state=checked]:text-sb-frosted",
|
|
13646
13646
|
value: e,
|
|
13647
13647
|
children: [
|
|
13648
|
-
/* @__PURE__ */ p(
|
|
13649
|
-
/* @__PURE__ */ p(
|
|
13648
|
+
/* @__PURE__ */ p(Cy, { children: t }),
|
|
13649
|
+
/* @__PURE__ */ p(ky, { className: "absolute right-2 inline-flex items-center", children: /* @__PURE__ */ p(ts, { "aria-hidden": "true", className: "h-3.5 w-3.5" }) })
|
|
13650
13650
|
]
|
|
13651
13651
|
}
|
|
13652
13652
|
);
|
|
13653
13653
|
}
|
|
13654
|
-
function
|
|
13654
|
+
function Ty() {
|
|
13655
13655
|
return typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("field-sizing", "content");
|
|
13656
13656
|
}
|
|
13657
|
-
function
|
|
13658
|
-
if (
|
|
13657
|
+
function Dy(e) {
|
|
13658
|
+
if (Ty()) {
|
|
13659
13659
|
e.style.height = "";
|
|
13660
13660
|
return;
|
|
13661
13661
|
}
|
|
@@ -13672,11 +13672,11 @@ function Ty(e) {
|
|
|
13672
13672
|
r.scrollLeft = o, r.scrollTop = i;
|
|
13673
13673
|
(n.left !== 0 || n.top !== 0) && window.scrollTo(n.left, n.top);
|
|
13674
13674
|
}
|
|
13675
|
-
function
|
|
13675
|
+
function Ry(e, t) {
|
|
13676
13676
|
const n = ce(null);
|
|
13677
13677
|
return mr(() => {
|
|
13678
13678
|
const r = n.current;
|
|
13679
|
-
t && (r == null ? void 0 : r.value) === e &&
|
|
13679
|
+
t && (r == null ? void 0 : r.value) === e && Dy(r);
|
|
13680
13680
|
}, [t, e]), n;
|
|
13681
13681
|
}
|
|
13682
13682
|
const ud = vn(null);
|
|
@@ -13686,17 +13686,17 @@ function dd(e) {
|
|
|
13686
13686
|
n.current = e;
|
|
13687
13687
|
}), ue(() => {
|
|
13688
13688
|
const r = (o) => {
|
|
13689
|
-
if (o.defaultPrevented ||
|
|
13689
|
+
if (o.defaultPrevented || Iy(o.target)) return;
|
|
13690
13690
|
const i = t == null ? void 0 : t.current;
|
|
13691
|
-
i && !
|
|
13691
|
+
i && !Ay(i) || n.current(o);
|
|
13692
13692
|
};
|
|
13693
13693
|
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
13694
13694
|
}, [t]);
|
|
13695
13695
|
}
|
|
13696
|
-
function
|
|
13696
|
+
function Iy(e) {
|
|
13697
13697
|
return e instanceof HTMLElement ? !!e.closest('input, textarea, select, [contenteditable="true"]') : !1;
|
|
13698
13698
|
}
|
|
13699
|
-
function
|
|
13699
|
+
function Ay(e) {
|
|
13700
13700
|
if (!e.isConnected) return !1;
|
|
13701
13701
|
for (let t = e; t; t = t.parentElement)
|
|
13702
13702
|
if (t.hidden || getComputedStyle(t).display === "none")
|
|
@@ -13721,7 +13721,7 @@ function qi(e, t) {
|
|
|
13721
13721
|
r(n, t ? e : null);
|
|
13722
13722
|
}, [n, e, t, r]), ue(() => () => r(n, null), [n, r]);
|
|
13723
13723
|
}
|
|
13724
|
-
function
|
|
13724
|
+
function Py({ slug: e }) {
|
|
13725
13725
|
var I;
|
|
13726
13726
|
const t = U((C) => C.config), n = U(
|
|
13727
13727
|
(C) => C.tasks.find((O) => O.slug === e)
|
|
@@ -13806,7 +13806,7 @@ function Ay({ slug: e }) {
|
|
|
13806
13806
|
}
|
|
13807
13807
|
),
|
|
13808
13808
|
y ? /* @__PURE__ */ p(
|
|
13809
|
-
|
|
13809
|
+
Ly,
|
|
13810
13810
|
{
|
|
13811
13811
|
currentIndex: y.currentIndex,
|
|
13812
13812
|
total: y.total,
|
|
@@ -13817,7 +13817,7 @@ function Ay({ slug: e }) {
|
|
|
13817
13817
|
) : null
|
|
13818
13818
|
] }),
|
|
13819
13819
|
/* @__PURE__ */ p(
|
|
13820
|
-
|
|
13820
|
+
By,
|
|
13821
13821
|
{
|
|
13822
13822
|
readOnly: d,
|
|
13823
13823
|
value: n.frontmatter.title,
|
|
@@ -13825,10 +13825,10 @@ function Ay({ slug: e }) {
|
|
|
13825
13825
|
},
|
|
13826
13826
|
n.slug
|
|
13827
13827
|
),
|
|
13828
|
-
/* @__PURE__ */ p(
|
|
13828
|
+
/* @__PURE__ */ p(Oy, { slug: n.slug })
|
|
13829
13829
|
] }),
|
|
13830
13830
|
/* @__PURE__ */ p(
|
|
13831
|
-
|
|
13831
|
+
My,
|
|
13832
13832
|
{
|
|
13833
13833
|
readOnly: d,
|
|
13834
13834
|
body: n.body,
|
|
@@ -13837,7 +13837,7 @@ function Ay({ slug: e }) {
|
|
|
13837
13837
|
`body:${n.slug}`
|
|
13838
13838
|
),
|
|
13839
13839
|
/* @__PURE__ */ p(
|
|
13840
|
-
|
|
13840
|
+
_y,
|
|
13841
13841
|
{
|
|
13842
13842
|
readOnly: d,
|
|
13843
13843
|
comments: n.comments ?? [],
|
|
@@ -13866,7 +13866,7 @@ function Ay({ slug: e }) {
|
|
|
13866
13866
|
}
|
|
13867
13867
|
) }),
|
|
13868
13868
|
/* @__PURE__ */ p(
|
|
13869
|
-
|
|
13869
|
+
zy,
|
|
13870
13870
|
{
|
|
13871
13871
|
readOnly: d,
|
|
13872
13872
|
flag: fo(n),
|
|
@@ -13891,7 +13891,7 @@ function Ay({ slug: e }) {
|
|
|
13891
13891
|
}
|
|
13892
13892
|
) }),
|
|
13893
13893
|
/* @__PURE__ */ p(
|
|
13894
|
-
|
|
13894
|
+
$y,
|
|
13895
13895
|
{
|
|
13896
13896
|
label: "Assignee",
|
|
13897
13897
|
readOnly: d,
|
|
@@ -13901,7 +13901,7 @@ function Ay({ slug: e }) {
|
|
|
13901
13901
|
}
|
|
13902
13902
|
),
|
|
13903
13903
|
/* @__PURE__ */ p(
|
|
13904
|
-
|
|
13904
|
+
gb,
|
|
13905
13905
|
{
|
|
13906
13906
|
readOnly: d,
|
|
13907
13907
|
tags: n.frontmatter.tags ?? [],
|
|
@@ -13910,7 +13910,7 @@ function Ay({ slug: e }) {
|
|
|
13910
13910
|
}
|
|
13911
13911
|
),
|
|
13912
13912
|
/* @__PURE__ */ p(
|
|
13913
|
-
|
|
13913
|
+
bb,
|
|
13914
13914
|
{
|
|
13915
13915
|
readOnly: d,
|
|
13916
13916
|
currentTaskSlug: n.slug,
|
|
@@ -13924,7 +13924,7 @@ function Ay({ slug: e }) {
|
|
|
13924
13924
|
}
|
|
13925
13925
|
),
|
|
13926
13926
|
/* @__PURE__ */ p(
|
|
13927
|
-
|
|
13927
|
+
vb,
|
|
13928
13928
|
{
|
|
13929
13929
|
readOnly: d,
|
|
13930
13930
|
currentTaskSlug: n.slug,
|
|
@@ -13998,7 +13998,7 @@ function Ay({ slug: e }) {
|
|
|
13998
13998
|
)
|
|
13999
13999
|
] });
|
|
14000
14000
|
}
|
|
14001
|
-
function
|
|
14001
|
+
function Ly({
|
|
14002
14002
|
currentIndex: e,
|
|
14003
14003
|
total: t,
|
|
14004
14004
|
previousSlug: n,
|
|
@@ -14041,7 +14041,7 @@ function Py({
|
|
|
14041
14041
|
] })
|
|
14042
14042
|
] });
|
|
14043
14043
|
}
|
|
14044
|
-
function
|
|
14044
|
+
function Oy({ slug: e }) {
|
|
14045
14045
|
const [t, n] = Q(!1), r = ce(null);
|
|
14046
14046
|
ue(() => () => {
|
|
14047
14047
|
r.current !== null && window.clearTimeout(r.current);
|
|
@@ -14077,7 +14077,7 @@ function Ly({ slug: e }) {
|
|
|
14077
14077
|
}
|
|
14078
14078
|
);
|
|
14079
14079
|
}
|
|
14080
|
-
function
|
|
14080
|
+
function My({
|
|
14081
14081
|
readOnly: e,
|
|
14082
14082
|
body: t,
|
|
14083
14083
|
onSave: n
|
|
@@ -14091,7 +14091,7 @@ function Oy({
|
|
|
14091
14091
|
keepDraft: d
|
|
14092
14092
|
} = js(t), l = r && !e;
|
|
14093
14093
|
qi("description", l && a);
|
|
14094
|
-
const h =
|
|
14094
|
+
const h = Ry(i, l), f = () => {
|
|
14095
14095
|
n(i), o(!1);
|
|
14096
14096
|
};
|
|
14097
14097
|
return /* @__PURE__ */ L("div", { className: "p-5", children: [
|
|
@@ -14104,7 +14104,7 @@ function Oy({
|
|
|
14104
14104
|
type: "button",
|
|
14105
14105
|
onClick: () => r ? f() : o(!0),
|
|
14106
14106
|
children: [
|
|
14107
|
-
r ? /* @__PURE__ */ p(
|
|
14107
|
+
r ? /* @__PURE__ */ p(Yf, { "aria-hidden": "true", className: "h-3.5 w-3.5" }) : /* @__PURE__ */ p(Gl, { "aria-hidden": "true", className: "h-3.5 w-3.5" }),
|
|
14108
14108
|
r ? "Done" : "Edit"
|
|
14109
14109
|
]
|
|
14110
14110
|
}
|
|
@@ -14140,7 +14140,7 @@ function Oy({
|
|
|
14140
14140
|
) : /* @__PURE__ */ p("div", { className: "sb-markdown max-w-none", children: t.trim() ? /* @__PURE__ */ p(Lu, { children: t }) : /* @__PURE__ */ p("p", { className: "font-mono text-[12px] text-sb-silver", children: "No description yet." }) })
|
|
14141
14141
|
] });
|
|
14142
14142
|
}
|
|
14143
|
-
function
|
|
14143
|
+
function _y({
|
|
14144
14144
|
readOnly: e,
|
|
14145
14145
|
comments: t,
|
|
14146
14146
|
unreadableUpdates: n,
|
|
@@ -14325,7 +14325,7 @@ function My({
|
|
|
14325
14325
|
b === _ ? O(`Task update ${_ + 1} text`) : /* @__PURE__ */ p("div", { className: "sb-markdown mt-2 max-w-none", children: /* @__PURE__ */ p(Lu, { children: P.text }) })
|
|
14326
14326
|
]
|
|
14327
14327
|
},
|
|
14328
|
-
|
|
14328
|
+
Fy(di(t, _))
|
|
14329
14329
|
)) }) : /* @__PURE__ */ p("p", { className: "font-mono text-[12px] text-sb-silver", children: "No task updates yet." }),
|
|
14330
14330
|
e || n ? null : /* @__PURE__ */ L(
|
|
14331
14331
|
"form",
|
|
@@ -14386,7 +14386,7 @@ function El(e, t) {
|
|
|
14386
14386
|
(r) => r.timestamp === t.timestamp && n++ === t.occurrence
|
|
14387
14387
|
);
|
|
14388
14388
|
}
|
|
14389
|
-
function
|
|
14389
|
+
function Fy(e) {
|
|
14390
14390
|
return `${e.timestamp}#${e.occurrence}`;
|
|
14391
14391
|
}
|
|
14392
14392
|
function Nl({
|
|
@@ -14400,7 +14400,7 @@ function Nl({
|
|
|
14400
14400
|
onValueChange: a
|
|
14401
14401
|
}) {
|
|
14402
14402
|
return e ? /* @__PURE__ */ p(fd, { children: s }) : /* @__PURE__ */ p(
|
|
14403
|
-
|
|
14403
|
+
Yi,
|
|
14404
14404
|
{
|
|
14405
14405
|
value: t,
|
|
14406
14406
|
ariaLabel: n,
|
|
@@ -14423,7 +14423,7 @@ function dr({
|
|
|
14423
14423
|
t
|
|
14424
14424
|
] });
|
|
14425
14425
|
}
|
|
14426
|
-
function
|
|
14426
|
+
function By({
|
|
14427
14427
|
readOnly: e,
|
|
14428
14428
|
value: t,
|
|
14429
14429
|
onChange: n
|
|
@@ -14522,7 +14522,7 @@ function Hs({
|
|
|
14522
14522
|
}
|
|
14523
14523
|
);
|
|
14524
14524
|
}
|
|
14525
|
-
function
|
|
14525
|
+
function zy({
|
|
14526
14526
|
readOnly: e,
|
|
14527
14527
|
flag: t,
|
|
14528
14528
|
raised: n,
|
|
@@ -14609,7 +14609,7 @@ function Tl({
|
|
|
14609
14609
|
}
|
|
14610
14610
|
);
|
|
14611
14611
|
}
|
|
14612
|
-
function
|
|
14612
|
+
function $y({
|
|
14613
14613
|
label: e,
|
|
14614
14614
|
readOnly: t,
|
|
14615
14615
|
value: n,
|
|
@@ -14640,7 +14640,7 @@ function zy({
|
|
|
14640
14640
|
)
|
|
14641
14641
|
] });
|
|
14642
14642
|
}
|
|
14643
|
-
function
|
|
14643
|
+
function jy() {
|
|
14644
14644
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
14645
14645
|
t[n] = arguments[n];
|
|
14646
14646
|
return se(
|
|
@@ -14690,7 +14690,7 @@ function Io(e) {
|
|
|
14690
14690
|
return t.current == null ? void 0 : t.current(...r);
|
|
14691
14691
|
}, []);
|
|
14692
14692
|
}
|
|
14693
|
-
function
|
|
14693
|
+
function Hy() {
|
|
14694
14694
|
const e = ce(null), t = Qe((r, o) => {
|
|
14695
14695
|
e.current = setInterval(r, o);
|
|
14696
14696
|
}, []), n = Qe(() => {
|
|
@@ -14758,7 +14758,7 @@ function pd(e) {
|
|
|
14758
14758
|
};
|
|
14759
14759
|
}
|
|
14760
14760
|
const In = /* @__PURE__ */ pd(1), hr = /* @__PURE__ */ pd(-1);
|
|
14761
|
-
function
|
|
14761
|
+
function Vy(e) {
|
|
14762
14762
|
return "clientX" in e && "clientY" in e;
|
|
14763
14763
|
}
|
|
14764
14764
|
function Ao(e) {
|
|
@@ -14769,7 +14769,7 @@ function Ao(e) {
|
|
|
14769
14769
|
} = rt(e.target);
|
|
14770
14770
|
return t && e instanceof t;
|
|
14771
14771
|
}
|
|
14772
|
-
function
|
|
14772
|
+
function Uy(e) {
|
|
14773
14773
|
if (!e)
|
|
14774
14774
|
return !1;
|
|
14775
14775
|
const {
|
|
@@ -14778,7 +14778,7 @@ function Vy(e) {
|
|
|
14778
14778
|
return t && e instanceof t;
|
|
14779
14779
|
}
|
|
14780
14780
|
function ao(e) {
|
|
14781
|
-
if (
|
|
14781
|
+
if (Uy(e)) {
|
|
14782
14782
|
if (e.touches && e.touches.length) {
|
|
14783
14783
|
const {
|
|
14784
14784
|
clientX: t,
|
|
@@ -14799,7 +14799,7 @@ function ao(e) {
|
|
|
14799
14799
|
};
|
|
14800
14800
|
}
|
|
14801
14801
|
}
|
|
14802
|
-
return
|
|
14802
|
+
return Vy(e) ? {
|
|
14803
14803
|
x: e.clientX,
|
|
14804
14804
|
y: e.clientY
|
|
14805
14805
|
} : null;
|
|
@@ -14844,10 +14844,10 @@ const sn = /* @__PURE__ */ Object.freeze({
|
|
|
14844
14844
|
}
|
|
14845
14845
|
}
|
|
14846
14846
|
}), Dl = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
14847
|
-
function
|
|
14847
|
+
function Wy(e) {
|
|
14848
14848
|
return e.matches(Dl) ? e : e.querySelector(Dl);
|
|
14849
14849
|
}
|
|
14850
|
-
const
|
|
14850
|
+
const Ky = {
|
|
14851
14851
|
display: "none"
|
|
14852
14852
|
};
|
|
14853
14853
|
function Yy(e) {
|
|
@@ -14857,10 +14857,10 @@ function Yy(e) {
|
|
|
14857
14857
|
} = e;
|
|
14858
14858
|
return B.createElement("div", {
|
|
14859
14859
|
id: t,
|
|
14860
|
-
style:
|
|
14860
|
+
style: Ky
|
|
14861
14861
|
}, n);
|
|
14862
14862
|
}
|
|
14863
|
-
function
|
|
14863
|
+
function qy(e) {
|
|
14864
14864
|
let {
|
|
14865
14865
|
id: t,
|
|
14866
14866
|
announcement: n,
|
|
@@ -14888,7 +14888,7 @@ function Ky(e) {
|
|
|
14888
14888
|
"aria-atomic": !0
|
|
14889
14889
|
}, n);
|
|
14890
14890
|
}
|
|
14891
|
-
function
|
|
14891
|
+
function Xy() {
|
|
14892
14892
|
const [e, t] = Q("");
|
|
14893
14893
|
return {
|
|
14894
14894
|
announce: Qe((r) => {
|
|
@@ -14898,7 +14898,7 @@ function qy() {
|
|
|
14898
14898
|
};
|
|
14899
14899
|
}
|
|
14900
14900
|
const md = /* @__PURE__ */ vn(null);
|
|
14901
|
-
function
|
|
14901
|
+
function Zy(e) {
|
|
14902
14902
|
const t = Ft(md);
|
|
14903
14903
|
ue(() => {
|
|
14904
14904
|
if (!t)
|
|
@@ -14906,7 +14906,7 @@ function Xy(e) {
|
|
|
14906
14906
|
return t(e);
|
|
14907
14907
|
}, [e, t]);
|
|
14908
14908
|
}
|
|
14909
|
-
function
|
|
14909
|
+
function Gy() {
|
|
14910
14910
|
const [e] = Q(() => /* @__PURE__ */ new Set()), t = Qe((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
14911
14911
|
return [Qe((r) => {
|
|
14912
14912
|
let {
|
|
@@ -14919,13 +14919,13 @@ function Zy() {
|
|
|
14919
14919
|
});
|
|
14920
14920
|
}, [e]), t];
|
|
14921
14921
|
}
|
|
14922
|
-
const
|
|
14922
|
+
const Qy = {
|
|
14923
14923
|
draggable: `
|
|
14924
14924
|
To pick up a draggable item, press the space bar.
|
|
14925
14925
|
While dragging, use the arrow keys to move the item.
|
|
14926
14926
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
14927
14927
|
`
|
|
14928
|
-
},
|
|
14928
|
+
}, Jy = {
|
|
14929
14929
|
onDragStart(e) {
|
|
14930
14930
|
let {
|
|
14931
14931
|
active: t
|
|
@@ -14953,20 +14953,20 @@ const Gy = {
|
|
|
14953
14953
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
14954
14954
|
}
|
|
14955
14955
|
};
|
|
14956
|
-
function
|
|
14956
|
+
function ex(e) {
|
|
14957
14957
|
let {
|
|
14958
|
-
announcements: t =
|
|
14958
|
+
announcements: t = Jy,
|
|
14959
14959
|
container: n,
|
|
14960
14960
|
hiddenTextDescribedById: r,
|
|
14961
|
-
screenReaderInstructions: o =
|
|
14961
|
+
screenReaderInstructions: o = Qy
|
|
14962
14962
|
} = e;
|
|
14963
14963
|
const {
|
|
14964
14964
|
announce: i,
|
|
14965
14965
|
announcement: s
|
|
14966
|
-
} =
|
|
14966
|
+
} = Xy(), a = kr("DndLiveRegion"), [u, c] = Q(!1);
|
|
14967
14967
|
if (ue(() => {
|
|
14968
14968
|
c(!0);
|
|
14969
|
-
}, []),
|
|
14969
|
+
}, []), Zy(se(() => ({
|
|
14970
14970
|
onDragStart(l) {
|
|
14971
14971
|
let {
|
|
14972
14972
|
active: h
|
|
@@ -15020,7 +15020,7 @@ function Jy(e) {
|
|
|
15020
15020
|
const d = B.createElement(B.Fragment, null, B.createElement(Yy, {
|
|
15021
15021
|
id: r,
|
|
15022
15022
|
value: o.draggable
|
|
15023
|
-
}), B.createElement(
|
|
15023
|
+
}), B.createElement(qy, {
|
|
15024
15024
|
id: a,
|
|
15025
15025
|
announcement: s
|
|
15026
15026
|
}));
|
|
@@ -15042,7 +15042,7 @@ function Rl(e, t) {
|
|
|
15042
15042
|
[e, t]
|
|
15043
15043
|
);
|
|
15044
15044
|
}
|
|
15045
|
-
function
|
|
15045
|
+
function tx() {
|
|
15046
15046
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
15047
15047
|
t[n] = arguments[n];
|
|
15048
15048
|
return se(
|
|
@@ -15058,7 +15058,7 @@ const Nt = /* @__PURE__ */ Object.freeze({
|
|
|
15058
15058
|
function gd(e, t) {
|
|
15059
15059
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
15060
15060
|
}
|
|
15061
|
-
function
|
|
15061
|
+
function nx(e, t) {
|
|
15062
15062
|
const n = ao(e);
|
|
15063
15063
|
if (!n)
|
|
15064
15064
|
return "0 0";
|
|
@@ -15080,7 +15080,7 @@ function bd(e, t) {
|
|
|
15080
15080
|
} = t;
|
|
15081
15081
|
return n - r;
|
|
15082
15082
|
}
|
|
15083
|
-
function
|
|
15083
|
+
function rx(e, t) {
|
|
15084
15084
|
let {
|
|
15085
15085
|
data: {
|
|
15086
15086
|
value: n
|
|
@@ -15119,7 +15119,7 @@ function vd(e, t) {
|
|
|
15119
15119
|
const [n] = e;
|
|
15120
15120
|
return n[t];
|
|
15121
15121
|
}
|
|
15122
|
-
const
|
|
15122
|
+
const ox = (e) => {
|
|
15123
15123
|
let {
|
|
15124
15124
|
collisionRect: t,
|
|
15125
15125
|
droppableRects: n,
|
|
@@ -15143,7 +15143,7 @@ const rx = (e) => {
|
|
|
15143
15143
|
}
|
|
15144
15144
|
return i.sort(bd);
|
|
15145
15145
|
};
|
|
15146
|
-
function
|
|
15146
|
+
function ix(e, t) {
|
|
15147
15147
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), s = o - r, a = i - n;
|
|
15148
15148
|
if (r < o && n < i) {
|
|
15149
15149
|
const u = t.width * t.height, c = e.width * e.height, d = s * a, l = d / (u + c - d);
|
|
@@ -15151,7 +15151,7 @@ function ox(e, t) {
|
|
|
15151
15151
|
}
|
|
15152
15152
|
return 0;
|
|
15153
15153
|
}
|
|
15154
|
-
const
|
|
15154
|
+
const sx = (e) => {
|
|
15155
15155
|
let {
|
|
15156
15156
|
collisionRect: t,
|
|
15157
15157
|
droppableRects: n,
|
|
@@ -15163,7 +15163,7 @@ const ix = (e) => {
|
|
|
15163
15163
|
id: s
|
|
15164
15164
|
} = i, a = n.get(s);
|
|
15165
15165
|
if (a) {
|
|
15166
|
-
const u =
|
|
15166
|
+
const u = ix(a, t);
|
|
15167
15167
|
u > 0 && o.push({
|
|
15168
15168
|
id: s,
|
|
15169
15169
|
data: {
|
|
@@ -15173,9 +15173,9 @@ const ix = (e) => {
|
|
|
15173
15173
|
});
|
|
15174
15174
|
}
|
|
15175
15175
|
}
|
|
15176
|
-
return o.sort(
|
|
15176
|
+
return o.sort(rx);
|
|
15177
15177
|
};
|
|
15178
|
-
function
|
|
15178
|
+
function ax(e, t) {
|
|
15179
15179
|
const {
|
|
15180
15180
|
top: n,
|
|
15181
15181
|
left: r,
|
|
@@ -15184,7 +15184,7 @@ function sx(e, t) {
|
|
|
15184
15184
|
} = t;
|
|
15185
15185
|
return n <= e.y && e.y <= o && r <= e.x && e.x <= i;
|
|
15186
15186
|
}
|
|
15187
|
-
const
|
|
15187
|
+
const lx = (e) => {
|
|
15188
15188
|
let {
|
|
15189
15189
|
droppableContainers: t,
|
|
15190
15190
|
droppableRects: n,
|
|
@@ -15197,7 +15197,7 @@ const ax = (e) => {
|
|
|
15197
15197
|
const {
|
|
15198
15198
|
id: s
|
|
15199
15199
|
} = i, a = n.get(s);
|
|
15200
|
-
if (a &&
|
|
15200
|
+
if (a && ax(r, a)) {
|
|
15201
15201
|
const c = Xi(a).reduce((l, h) => l + gd(r, h), 0), d = Number((c / 4).toFixed(4));
|
|
15202
15202
|
o.push({
|
|
15203
15203
|
id: s,
|
|
@@ -15210,7 +15210,7 @@ const ax = (e) => {
|
|
|
15210
15210
|
}
|
|
15211
15211
|
return o.sort(bd);
|
|
15212
15212
|
};
|
|
15213
|
-
function
|
|
15213
|
+
function cx(e, t, n) {
|
|
15214
15214
|
return {
|
|
15215
15215
|
...e,
|
|
15216
15216
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -15223,7 +15223,7 @@ function yd(e, t) {
|
|
|
15223
15223
|
y: e.top - t.top
|
|
15224
15224
|
} : Nt;
|
|
15225
15225
|
}
|
|
15226
|
-
function
|
|
15226
|
+
function ux(e) {
|
|
15227
15227
|
return function(n) {
|
|
15228
15228
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
15229
15229
|
o[i - 1] = arguments[i];
|
|
@@ -15238,7 +15238,7 @@ function cx(e) {
|
|
|
15238
15238
|
});
|
|
15239
15239
|
};
|
|
15240
15240
|
}
|
|
15241
|
-
const
|
|
15241
|
+
const dx = /* @__PURE__ */ ux(1);
|
|
15242
15242
|
function xd(e) {
|
|
15243
15243
|
if (e.startsWith("matrix3d(")) {
|
|
15244
15244
|
const t = e.slice(9, -1).split(/, /);
|
|
@@ -15259,7 +15259,7 @@ function xd(e) {
|
|
|
15259
15259
|
}
|
|
15260
15260
|
return null;
|
|
15261
15261
|
}
|
|
15262
|
-
function
|
|
15262
|
+
function fx(e, t, n) {
|
|
15263
15263
|
const r = xd(t);
|
|
15264
15264
|
if (!r)
|
|
15265
15265
|
return e;
|
|
@@ -15278,18 +15278,18 @@ function dx(e, t, n) {
|
|
|
15278
15278
|
left: u
|
|
15279
15279
|
};
|
|
15280
15280
|
}
|
|
15281
|
-
const
|
|
15281
|
+
const hx = {
|
|
15282
15282
|
ignoreTransform: !1
|
|
15283
15283
|
};
|
|
15284
15284
|
function Vn(e, t) {
|
|
15285
|
-
t === void 0 && (t =
|
|
15285
|
+
t === void 0 && (t = hx);
|
|
15286
15286
|
let n = e.getBoundingClientRect();
|
|
15287
15287
|
if (t.ignoreTransform) {
|
|
15288
15288
|
const {
|
|
15289
15289
|
transform: c,
|
|
15290
15290
|
transformOrigin: d
|
|
15291
15291
|
} = rt(e).getComputedStyle(e);
|
|
15292
|
-
c && (n =
|
|
15292
|
+
c && (n = fx(n, c, d));
|
|
15293
15293
|
}
|
|
15294
15294
|
const {
|
|
15295
15295
|
top: r,
|
|
@@ -15313,7 +15313,7 @@ function Il(e) {
|
|
|
15313
15313
|
ignoreTransform: !0
|
|
15314
15314
|
});
|
|
15315
15315
|
}
|
|
15316
|
-
function
|
|
15316
|
+
function px(e) {
|
|
15317
15317
|
const t = e.innerWidth, n = e.innerHeight;
|
|
15318
15318
|
return {
|
|
15319
15319
|
top: 0,
|
|
@@ -15324,10 +15324,10 @@ function hx(e) {
|
|
|
15324
15324
|
height: n
|
|
15325
15325
|
};
|
|
15326
15326
|
}
|
|
15327
|
-
function
|
|
15327
|
+
function mx(e, t) {
|
|
15328
15328
|
return t === void 0 && (t = rt(e).getComputedStyle(e)), t.position === "fixed";
|
|
15329
15329
|
}
|
|
15330
|
-
function
|
|
15330
|
+
function gx(e, t) {
|
|
15331
15331
|
t === void 0 && (t = rt(e).getComputedStyle(e));
|
|
15332
15332
|
const n = /(auto|scroll|overlay)/;
|
|
15333
15333
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
@@ -15345,7 +15345,7 @@ function Po(e, t) {
|
|
|
15345
15345
|
if (!Cr(o) || hd(o) || n.includes(o))
|
|
15346
15346
|
return n;
|
|
15347
15347
|
const i = rt(e).getComputedStyle(o);
|
|
15348
|
-
return o !== e &&
|
|
15348
|
+
return o !== e && gx(o, i) && n.push(o), mx(o, i) ? n : r(o.parentNode);
|
|
15349
15349
|
}
|
|
15350
15350
|
return e ? r(e) : n;
|
|
15351
15351
|
}
|
|
@@ -15398,18 +15398,18 @@ function Ed(e) {
|
|
|
15398
15398
|
minScroll: t
|
|
15399
15399
|
};
|
|
15400
15400
|
}
|
|
15401
|
-
const
|
|
15401
|
+
const bx = {
|
|
15402
15402
|
x: 0.2,
|
|
15403
15403
|
y: 0.2
|
|
15404
15404
|
};
|
|
15405
|
-
function
|
|
15405
|
+
function vx(e, t, n, r, o) {
|
|
15406
15406
|
let {
|
|
15407
15407
|
top: i,
|
|
15408
15408
|
left: s,
|
|
15409
15409
|
right: a,
|
|
15410
15410
|
bottom: u
|
|
15411
15411
|
} = n;
|
|
15412
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
15412
|
+
r === void 0 && (r = 10), o === void 0 && (o = bx);
|
|
15413
15413
|
const {
|
|
15414
15414
|
isTop: c,
|
|
15415
15415
|
isBottom: d,
|
|
@@ -15430,7 +15430,7 @@ function bx(e, t, n, r, o) {
|
|
|
15430
15430
|
speed: v
|
|
15431
15431
|
};
|
|
15432
15432
|
}
|
|
15433
|
-
function
|
|
15433
|
+
function yx(e) {
|
|
15434
15434
|
if (e === document.scrollingElement) {
|
|
15435
15435
|
const {
|
|
15436
15436
|
innerWidth: i,
|
|
@@ -15463,10 +15463,10 @@ function vx(e) {
|
|
|
15463
15463
|
function Nd(e) {
|
|
15464
15464
|
return e.reduce((t, n) => In(t, Zi(n)), Nt);
|
|
15465
15465
|
}
|
|
15466
|
-
function
|
|
15466
|
+
function xx(e) {
|
|
15467
15467
|
return e.reduce((t, n) => t + Cd(n), 0);
|
|
15468
15468
|
}
|
|
15469
|
-
function
|
|
15469
|
+
function wx(e) {
|
|
15470
15470
|
return e.reduce((t, n) => t + Sd(n), 0);
|
|
15471
15471
|
}
|
|
15472
15472
|
function Td(e, t) {
|
|
@@ -15483,7 +15483,7 @@ function Td(e, t) {
|
|
|
15483
15483
|
inline: "center"
|
|
15484
15484
|
});
|
|
15485
15485
|
}
|
|
15486
|
-
const
|
|
15486
|
+
const Cx = [["x", ["left", "right"], xx], ["y", ["top", "bottom"], wx]];
|
|
15487
15487
|
class Ws {
|
|
15488
15488
|
constructor(t, n) {
|
|
15489
15489
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
@@ -15491,7 +15491,7 @@ class Ws {
|
|
|
15491
15491
|
this.rect = {
|
|
15492
15492
|
...t
|
|
15493
15493
|
}, this.width = t.width, this.height = t.height;
|
|
15494
|
-
for (const [i, s, a] of
|
|
15494
|
+
for (const [i, s, a] of Cx)
|
|
15495
15495
|
for (const u of s)
|
|
15496
15496
|
Object.defineProperty(this, u, {
|
|
15497
15497
|
get: () => {
|
|
@@ -15519,7 +15519,7 @@ class nr {
|
|
|
15519
15519
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
15520
15520
|
}
|
|
15521
15521
|
}
|
|
15522
|
-
function
|
|
15522
|
+
function Sx(e) {
|
|
15523
15523
|
const {
|
|
15524
15524
|
EventTarget: t
|
|
15525
15525
|
} = rt(e);
|
|
@@ -15536,7 +15536,7 @@ var gt;
|
|
|
15536
15536
|
function Al(e) {
|
|
15537
15537
|
e.preventDefault();
|
|
15538
15538
|
}
|
|
15539
|
-
function
|
|
15539
|
+
function kx(e) {
|
|
15540
15540
|
e.stopPropagation();
|
|
15541
15541
|
}
|
|
15542
15542
|
var fe;
|
|
@@ -15547,7 +15547,7 @@ const Dd = {
|
|
|
15547
15547
|
start: [fe.Space, fe.Enter],
|
|
15548
15548
|
cancel: [fe.Esc],
|
|
15549
15549
|
end: [fe.Space, fe.Enter, fe.Tab]
|
|
15550
|
-
},
|
|
15550
|
+
}, Ex = (e, t) => {
|
|
15551
15551
|
let {
|
|
15552
15552
|
currentCoordinates: n
|
|
15553
15553
|
} = t;
|
|
@@ -15574,7 +15574,7 @@ const Dd = {
|
|
|
15574
15574
|
};
|
|
15575
15575
|
}
|
|
15576
15576
|
};
|
|
15577
|
-
class
|
|
15577
|
+
class Ks {
|
|
15578
15578
|
constructor(t) {
|
|
15579
15579
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
|
|
15580
15580
|
const {
|
|
@@ -15602,7 +15602,7 @@ class Ys {
|
|
|
15602
15602
|
options: o
|
|
15603
15603
|
} = this.props, {
|
|
15604
15604
|
keyboardCodes: i = Dd,
|
|
15605
|
-
coordinateGetter: s =
|
|
15605
|
+
coordinateGetter: s = Ex,
|
|
15606
15606
|
scrollBehavior: a = "smooth"
|
|
15607
15607
|
} = o, {
|
|
15608
15608
|
code: u
|
|
@@ -15642,7 +15642,7 @@ class Ys {
|
|
|
15642
15642
|
isBottom: k,
|
|
15643
15643
|
maxScroll: D,
|
|
15644
15644
|
minScroll: y
|
|
15645
|
-
} = Ed(m), N =
|
|
15645
|
+
} = Ed(m), N = yx(m), I = {
|
|
15646
15646
|
x: Math.min(g === fe.Right ? N.right - N.width / 2 : N.right, Math.max(g === fe.Right ? N.left : N.left + N.width / 2, l.x)),
|
|
15647
15647
|
y: Math.min(g === fe.Down ? N.bottom - N.height / 2 : N.bottom, Math.max(g === fe.Down ? N.top : N.top + N.height / 2, l.y))
|
|
15648
15648
|
}, C = g === fe.Right && !w || g === fe.Left && !x, O = g === fe.Down && !k || g === fe.Up && !b;
|
|
@@ -15702,7 +15702,7 @@ class Ys {
|
|
|
15702
15702
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
15703
15703
|
}
|
|
15704
15704
|
}
|
|
15705
|
-
|
|
15705
|
+
Ks.activators = [{
|
|
15706
15706
|
eventName: "onKeyDown",
|
|
15707
15707
|
handler: (e, t, n) => {
|
|
15708
15708
|
let {
|
|
@@ -15729,10 +15729,10 @@ function Pl(e) {
|
|
|
15729
15729
|
function Ll(e) {
|
|
15730
15730
|
return !!(e && "delay" in e);
|
|
15731
15731
|
}
|
|
15732
|
-
class
|
|
15732
|
+
class Ys {
|
|
15733
15733
|
constructor(t, n, r) {
|
|
15734
15734
|
var o;
|
|
15735
|
-
r === void 0 && (r =
|
|
15735
|
+
r === void 0 && (r = Sx(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
15736
15736
|
const {
|
|
15737
15737
|
event: i
|
|
15738
15738
|
} = t, {
|
|
@@ -15786,7 +15786,7 @@ class Ks {
|
|
|
15786
15786
|
} = this, {
|
|
15787
15787
|
onStart: n
|
|
15788
15788
|
} = this.props;
|
|
15789
|
-
t && (this.activated = !0, this.documentListeners.add(gt.Click,
|
|
15789
|
+
t && (this.activated = !0, this.documentListeners.add(gt.Click, kx, {
|
|
15790
15790
|
capture: !0
|
|
15791
15791
|
}), this.removeTextSelection(), this.documentListeners.add(gt.SelectionChange, this.removeTextSelection), n(t));
|
|
15792
15792
|
}
|
|
@@ -15841,7 +15841,7 @@ class Ks {
|
|
|
15841
15841
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
15842
15842
|
}
|
|
15843
15843
|
}
|
|
15844
|
-
const
|
|
15844
|
+
const Nx = {
|
|
15845
15845
|
cancel: {
|
|
15846
15846
|
name: "pointercancel"
|
|
15847
15847
|
},
|
|
@@ -15852,12 +15852,12 @@ const Ex = {
|
|
|
15852
15852
|
name: "pointerup"
|
|
15853
15853
|
}
|
|
15854
15854
|
};
|
|
15855
|
-
class qs extends
|
|
15855
|
+
class qs extends Ys {
|
|
15856
15856
|
constructor(t) {
|
|
15857
15857
|
const {
|
|
15858
15858
|
event: n
|
|
15859
15859
|
} = t, r = Hn(n.target);
|
|
15860
|
-
super(t,
|
|
15860
|
+
super(t, Nx, r);
|
|
15861
15861
|
}
|
|
15862
15862
|
}
|
|
15863
15863
|
qs.activators = [{
|
|
@@ -15873,7 +15873,7 @@ qs.activators = [{
|
|
|
15873
15873
|
}), !0);
|
|
15874
15874
|
}
|
|
15875
15875
|
}];
|
|
15876
|
-
const
|
|
15876
|
+
const Tx = {
|
|
15877
15877
|
move: {
|
|
15878
15878
|
name: "mousemove"
|
|
15879
15879
|
},
|
|
@@ -15885,12 +15885,12 @@ var Gi;
|
|
|
15885
15885
|
(function(e) {
|
|
15886
15886
|
e[e.RightClick = 2] = "RightClick";
|
|
15887
15887
|
})(Gi || (Gi = {}));
|
|
15888
|
-
class
|
|
15888
|
+
class Dx extends Ys {
|
|
15889
15889
|
constructor(t) {
|
|
15890
|
-
super(t,
|
|
15890
|
+
super(t, Tx, Hn(t.event.target));
|
|
15891
15891
|
}
|
|
15892
15892
|
}
|
|
15893
|
-
|
|
15893
|
+
Dx.activators = [{
|
|
15894
15894
|
eventName: "onMouseDown",
|
|
15895
15895
|
handler: (e, t) => {
|
|
15896
15896
|
let {
|
|
@@ -15914,7 +15914,7 @@ const mi = {
|
|
|
15914
15914
|
name: "touchend"
|
|
15915
15915
|
}
|
|
15916
15916
|
};
|
|
15917
|
-
class
|
|
15917
|
+
class Rx extends Ys {
|
|
15918
15918
|
constructor(t) {
|
|
15919
15919
|
super(t, mi);
|
|
15920
15920
|
}
|
|
@@ -15929,7 +15929,7 @@ class Dx extends Ks {
|
|
|
15929
15929
|
}
|
|
15930
15930
|
}
|
|
15931
15931
|
}
|
|
15932
|
-
|
|
15932
|
+
Rx.activators = [{
|
|
15933
15933
|
eventName: "onTouchStart",
|
|
15934
15934
|
handler: (e, t) => {
|
|
15935
15935
|
let {
|
|
@@ -15953,7 +15953,7 @@ var co;
|
|
|
15953
15953
|
(function(e) {
|
|
15954
15954
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
15955
15955
|
})(co || (co = {}));
|
|
15956
|
-
function
|
|
15956
|
+
function Ix(e) {
|
|
15957
15957
|
let {
|
|
15958
15958
|
acceleration: t,
|
|
15959
15959
|
activator: n = rr.Pointer,
|
|
@@ -15968,10 +15968,10 @@ function Rx(e) {
|
|
|
15968
15968
|
delta: l,
|
|
15969
15969
|
threshold: h
|
|
15970
15970
|
} = e;
|
|
15971
|
-
const f =
|
|
15971
|
+
const f = Px({
|
|
15972
15972
|
delta: l,
|
|
15973
15973
|
disabled: !i
|
|
15974
|
-
}), [v, m] =
|
|
15974
|
+
}), [v, m] = Hy(), g = ce({
|
|
15975
15975
|
x: 0,
|
|
15976
15976
|
y: 0
|
|
15977
15977
|
}), b = ce({
|
|
@@ -16011,7 +16011,7 @@ function Rx(e) {
|
|
|
16011
16011
|
const {
|
|
16012
16012
|
direction: C,
|
|
16013
16013
|
speed: O
|
|
16014
|
-
} =
|
|
16014
|
+
} = vx(y, I, w, t, h);
|
|
16015
16015
|
for (const R of ["x", "y"])
|
|
16016
16016
|
f[R][C[R]] || (O[R] = 0, C[R] = 0);
|
|
16017
16017
|
if (O.x > 0 || O.y > 0) {
|
|
@@ -16048,7 +16048,7 @@ function Rx(e) {
|
|
|
16048
16048
|
]
|
|
16049
16049
|
);
|
|
16050
16050
|
}
|
|
16051
|
-
const
|
|
16051
|
+
const Ax = {
|
|
16052
16052
|
x: {
|
|
16053
16053
|
[Ue.Backward]: !1,
|
|
16054
16054
|
[Ue.Forward]: !1
|
|
@@ -16058,7 +16058,7 @@ const Ix = {
|
|
|
16058
16058
|
[Ue.Forward]: !1
|
|
16059
16059
|
}
|
|
16060
16060
|
};
|
|
16061
|
-
function
|
|
16061
|
+
function Px(e) {
|
|
16062
16062
|
let {
|
|
16063
16063
|
delta: t,
|
|
16064
16064
|
disabled: n
|
|
@@ -16066,7 +16066,7 @@ function Ax(e) {
|
|
|
16066
16066
|
const r = so(t);
|
|
16067
16067
|
return Sr((o) => {
|
|
16068
16068
|
if (n || !r || !o)
|
|
16069
|
-
return
|
|
16069
|
+
return Ax;
|
|
16070
16070
|
const i = {
|
|
16071
16071
|
x: Math.sign(t.x - r.x),
|
|
16072
16072
|
y: Math.sign(t.y - r.y)
|
|
@@ -16083,14 +16083,14 @@ function Ax(e) {
|
|
|
16083
16083
|
};
|
|
16084
16084
|
}, [n, t, r]);
|
|
16085
16085
|
}
|
|
16086
|
-
function
|
|
16086
|
+
function Lx(e, t) {
|
|
16087
16087
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
16088
16088
|
return Sr((o) => {
|
|
16089
16089
|
var i;
|
|
16090
16090
|
return t == null ? null : (i = r ?? o) != null ? i : null;
|
|
16091
16091
|
}, [r, t]);
|
|
16092
16092
|
}
|
|
16093
|
-
function
|
|
16093
|
+
function Ox(e, t) {
|
|
16094
16094
|
return se(() => e.reduce((n, r) => {
|
|
16095
16095
|
const {
|
|
16096
16096
|
sensor: o
|
|
@@ -16110,7 +16110,7 @@ var Qi;
|
|
|
16110
16110
|
e.Optimized = "optimized";
|
|
16111
16111
|
})(Qi || (Qi = {}));
|
|
16112
16112
|
const Ol = /* @__PURE__ */ new Map();
|
|
16113
|
-
function
|
|
16113
|
+
function Mx(e, t) {
|
|
16114
16114
|
let {
|
|
16115
16115
|
dragging: n,
|
|
16116
16116
|
dependencies: r,
|
|
@@ -16182,10 +16182,10 @@ function Ox(e, t) {
|
|
|
16182
16182
|
function Xs(e, t) {
|
|
16183
16183
|
return Sr((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
16184
16184
|
}
|
|
16185
|
-
function
|
|
16185
|
+
function _x(e, t) {
|
|
16186
16186
|
return Xs(e, t);
|
|
16187
16187
|
}
|
|
16188
|
-
function
|
|
16188
|
+
function Fx(e) {
|
|
16189
16189
|
let {
|
|
16190
16190
|
callback: t,
|
|
16191
16191
|
disabled: n
|
|
@@ -16219,11 +16219,11 @@ function Lo(e) {
|
|
|
16219
16219
|
);
|
|
16220
16220
|
return ue(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
|
|
16221
16221
|
}
|
|
16222
|
-
function
|
|
16222
|
+
function Bx(e) {
|
|
16223
16223
|
return new Ws(Vn(e), e);
|
|
16224
16224
|
}
|
|
16225
16225
|
function Ml(e, t, n) {
|
|
16226
|
-
t === void 0 && (t =
|
|
16226
|
+
t === void 0 && (t = Bx);
|
|
16227
16227
|
const [r, o] = Q(null);
|
|
16228
16228
|
function i() {
|
|
16229
16229
|
o((u) => {
|
|
@@ -16237,7 +16237,7 @@ function Ml(e, t, n) {
|
|
|
16237
16237
|
return JSON.stringify(u) === JSON.stringify(d) ? u : d;
|
|
16238
16238
|
});
|
|
16239
16239
|
}
|
|
16240
|
-
const s =
|
|
16240
|
+
const s = Fx({
|
|
16241
16241
|
callback(u) {
|
|
16242
16242
|
if (e)
|
|
16243
16243
|
for (const c of u) {
|
|
@@ -16261,18 +16261,18 @@ function Ml(e, t, n) {
|
|
|
16261
16261
|
})) : (a == null || a.disconnect(), s == null || s.disconnect());
|
|
16262
16262
|
}, [e]), r;
|
|
16263
16263
|
}
|
|
16264
|
-
function
|
|
16264
|
+
function zx(e) {
|
|
16265
16265
|
const t = Xs(e);
|
|
16266
16266
|
return yd(e, t);
|
|
16267
16267
|
}
|
|
16268
16268
|
const _l = [];
|
|
16269
|
-
function
|
|
16269
|
+
function $x(e) {
|
|
16270
16270
|
const t = ce(e), n = Sr((r) => e ? r && r !== _l && e && t.current && e.parentNode === t.current.parentNode ? r : Po(e) : _l, [e]);
|
|
16271
16271
|
return ue(() => {
|
|
16272
16272
|
t.current = e;
|
|
16273
16273
|
}, [e]), n;
|
|
16274
16274
|
}
|
|
16275
|
-
function
|
|
16275
|
+
function jx(e) {
|
|
16276
16276
|
const [t, n] = Q(null), r = ce(e), o = Qe((i) => {
|
|
16277
16277
|
const s = hi(i.target);
|
|
16278
16278
|
s && n((a) => a ? (a.set(s, Zi(s)), new Map(a)) : null);
|
|
@@ -16314,7 +16314,7 @@ function Fl(e, t) {
|
|
|
16314
16314
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
16315
16315
|
}, [e]), n.current ? hr(e, n.current) : Nt;
|
|
16316
16316
|
}
|
|
16317
|
-
function
|
|
16317
|
+
function Hx(e) {
|
|
16318
16318
|
ue(
|
|
16319
16319
|
() => {
|
|
16320
16320
|
if (!Ro)
|
|
@@ -16340,7 +16340,7 @@ function jx(e) {
|
|
|
16340
16340
|
})
|
|
16341
16341
|
);
|
|
16342
16342
|
}
|
|
16343
|
-
function
|
|
16343
|
+
function Vx(e, t) {
|
|
16344
16344
|
return se(() => e.reduce((n, r) => {
|
|
16345
16345
|
let {
|
|
16346
16346
|
eventName: o,
|
|
@@ -16352,10 +16352,10 @@ function Hx(e, t) {
|
|
|
16352
16352
|
}, {}), [e, t]);
|
|
16353
16353
|
}
|
|
16354
16354
|
function Rd(e) {
|
|
16355
|
-
return se(() => e ?
|
|
16355
|
+
return se(() => e ? px(e) : null, [e]);
|
|
16356
16356
|
}
|
|
16357
16357
|
const Bl = [];
|
|
16358
|
-
function
|
|
16358
|
+
function Ux(e, t) {
|
|
16359
16359
|
t === void 0 && (t = Vn);
|
|
16360
16360
|
const [n] = e, r = Rd(n ? rt(n) : null), [o, i] = Q(Bl);
|
|
16361
16361
|
function s() {
|
|
@@ -16376,7 +16376,7 @@ function Id(e) {
|
|
|
16376
16376
|
const t = e.children[0];
|
|
16377
16377
|
return Cr(t) ? t : e;
|
|
16378
16378
|
}
|
|
16379
|
-
function
|
|
16379
|
+
function Wx(e) {
|
|
16380
16380
|
let {
|
|
16381
16381
|
measure: t
|
|
16382
16382
|
} = e;
|
|
@@ -16407,15 +16407,15 @@ function Ux(e) {
|
|
|
16407
16407
|
setRef: u
|
|
16408
16408
|
}), [n, a, u]);
|
|
16409
16409
|
}
|
|
16410
|
-
const
|
|
16410
|
+
const Kx = [{
|
|
16411
16411
|
sensor: qs,
|
|
16412
16412
|
options: {}
|
|
16413
16413
|
}, {
|
|
16414
|
-
sensor:
|
|
16414
|
+
sensor: Ks,
|
|
16415
16415
|
options: {}
|
|
16416
16416
|
}], Yx = {
|
|
16417
16417
|
current: {}
|
|
16418
|
-
},
|
|
16418
|
+
}, Kr = {
|
|
16419
16419
|
draggable: {
|
|
16420
16420
|
measure: Il
|
|
16421
16421
|
},
|
|
@@ -16449,7 +16449,7 @@ class or extends Map {
|
|
|
16449
16449
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
16450
16450
|
}
|
|
16451
16451
|
}
|
|
16452
|
-
const
|
|
16452
|
+
const qx = {
|
|
16453
16453
|
activatorEvent: null,
|
|
16454
16454
|
active: null,
|
|
16455
16455
|
activeNode: null,
|
|
@@ -16469,7 +16469,7 @@ const Kx = {
|
|
|
16469
16469
|
},
|
|
16470
16470
|
scrollableAncestors: [],
|
|
16471
16471
|
scrollableAncestorRects: [],
|
|
16472
|
-
measuringConfiguration:
|
|
16472
|
+
measuringConfiguration: Kr,
|
|
16473
16473
|
measureDroppableContainers: lo,
|
|
16474
16474
|
windowRect: null,
|
|
16475
16475
|
measuringScheduled: !1
|
|
@@ -16485,8 +16485,8 @@ const Kx = {
|
|
|
16485
16485
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
16486
16486
|
over: null,
|
|
16487
16487
|
measureDroppableContainers: lo
|
|
16488
|
-
}, Er = /* @__PURE__ */ vn(Ad), Pd = /* @__PURE__ */ vn(
|
|
16489
|
-
function
|
|
16488
|
+
}, Er = /* @__PURE__ */ vn(Ad), Pd = /* @__PURE__ */ vn(qx);
|
|
16489
|
+
function Xx() {
|
|
16490
16490
|
return {
|
|
16491
16491
|
draggable: {
|
|
16492
16492
|
active: null,
|
|
@@ -16505,7 +16505,7 @@ function qx() {
|
|
|
16505
16505
|
}
|
|
16506
16506
|
};
|
|
16507
16507
|
}
|
|
16508
|
-
function
|
|
16508
|
+
function Zx(e, t) {
|
|
16509
16509
|
switch (t.type) {
|
|
16510
16510
|
case ze.DragStart:
|
|
16511
16511
|
return {
|
|
@@ -16598,7 +16598,7 @@ function Xx(e, t) {
|
|
|
16598
16598
|
return e;
|
|
16599
16599
|
}
|
|
16600
16600
|
}
|
|
16601
|
-
function
|
|
16601
|
+
function Gx(e) {
|
|
16602
16602
|
let {
|
|
16603
16603
|
disabled: t
|
|
16604
16604
|
} = e;
|
|
@@ -16624,7 +16624,7 @@ function Zx(e) {
|
|
|
16624
16624
|
for (const d of [u.current, c.current]) {
|
|
16625
16625
|
if (!d)
|
|
16626
16626
|
continue;
|
|
16627
|
-
const l =
|
|
16627
|
+
const l = Wy(d);
|
|
16628
16628
|
if (l) {
|
|
16629
16629
|
l.focus();
|
|
16630
16630
|
break;
|
|
@@ -16644,19 +16644,19 @@ function Ld(e, t) {
|
|
|
16644
16644
|
...r
|
|
16645
16645
|
}), n) : n;
|
|
16646
16646
|
}
|
|
16647
|
-
function
|
|
16647
|
+
function Qx(e) {
|
|
16648
16648
|
return se(
|
|
16649
16649
|
() => ({
|
|
16650
16650
|
draggable: {
|
|
16651
|
-
...
|
|
16651
|
+
...Kr.draggable,
|
|
16652
16652
|
...e == null ? void 0 : e.draggable
|
|
16653
16653
|
},
|
|
16654
16654
|
droppable: {
|
|
16655
|
-
...
|
|
16655
|
+
...Kr.droppable,
|
|
16656
16656
|
...e == null ? void 0 : e.droppable
|
|
16657
16657
|
},
|
|
16658
16658
|
dragOverlay: {
|
|
16659
|
-
...
|
|
16659
|
+
...Kr.dragOverlay,
|
|
16660
16660
|
...e == null ? void 0 : e.dragOverlay
|
|
16661
16661
|
}
|
|
16662
16662
|
}),
|
|
@@ -16664,7 +16664,7 @@ function Gx(e) {
|
|
|
16664
16664
|
[e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
|
|
16665
16665
|
);
|
|
16666
16666
|
}
|
|
16667
|
-
function
|
|
16667
|
+
function Jx(e) {
|
|
16668
16668
|
let {
|
|
16669
16669
|
activeNode: t,
|
|
16670
16670
|
measure: n,
|
|
@@ -16707,20 +16707,20 @@ var en;
|
|
|
16707
16707
|
(function(e) {
|
|
16708
16708
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
16709
16709
|
})(en || (en = {}));
|
|
16710
|
-
const
|
|
16710
|
+
const e2 = /* @__PURE__ */ Yd(function(t) {
|
|
16711
16711
|
var n, r, o, i;
|
|
16712
16712
|
let {
|
|
16713
16713
|
id: s,
|
|
16714
16714
|
accessibility: a,
|
|
16715
16715
|
autoScroll: u = !0,
|
|
16716
16716
|
children: c,
|
|
16717
|
-
sensors: d =
|
|
16718
|
-
collisionDetection: l =
|
|
16717
|
+
sensors: d = Kx,
|
|
16718
|
+
collisionDetection: l = sx,
|
|
16719
16719
|
measuring: h,
|
|
16720
16720
|
modifiers: f,
|
|
16721
16721
|
...v
|
|
16722
16722
|
} = t;
|
|
16723
|
-
const m = qd(
|
|
16723
|
+
const m = qd(Zx, void 0, Xx), [g, b] = m, [w, x] = Gy(), [k, D] = Q(en.Uninitialized), y = k === en.Initialized, {
|
|
16724
16724
|
draggable: {
|
|
16725
16725
|
active: N,
|
|
16726
16726
|
nodes: I,
|
|
@@ -16740,22 +16740,22 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
16740
16740
|
data: (Be = R == null ? void 0 : R.data) != null ? Be : Yx,
|
|
16741
16741
|
rect: P
|
|
16742
16742
|
} : null;
|
|
16743
|
-
}, [N, R]), A = ce(null), [M, z] = Q(null), [H, V] = Q(null), W = fr(v, Object.values(v)), E = kr("DndDescribedBy", s), de = se(() => O.getEnabled(), [O]), ee =
|
|
16743
|
+
}, [N, R]), A = ce(null), [M, z] = Q(null), [H, V] = Q(null), W = fr(v, Object.values(v)), E = kr("DndDescribedBy", s), de = se(() => O.getEnabled(), [O]), ee = Qx(h), {
|
|
16744
16744
|
droppableRects: T,
|
|
16745
16745
|
measureDroppableContainers: q,
|
|
16746
16746
|
measuringScheduled: re
|
|
16747
|
-
} =
|
|
16747
|
+
} = Mx(de, {
|
|
16748
16748
|
dragging: y,
|
|
16749
16749
|
dependencies: [C.x, C.y],
|
|
16750
16750
|
config: ee.droppable
|
|
16751
|
-
}), X =
|
|
16752
|
-
|
|
16751
|
+
}), X = Lx(I, N), me = se(() => H ? ao(H) : null, [H]), K = It(), Y = _x(X, ee.draggable.measure);
|
|
16752
|
+
Jx({
|
|
16753
16753
|
activeNode: N != null ? I.get(N) : null,
|
|
16754
|
-
config:
|
|
16755
|
-
initialRect:
|
|
16754
|
+
config: K.layoutShiftCompensation,
|
|
16755
|
+
initialRect: Y,
|
|
16756
16756
|
measure: ee.draggable.measure
|
|
16757
16757
|
});
|
|
16758
|
-
const Z = Ml(X, ee.draggable.measure,
|
|
16758
|
+
const Z = Ml(X, ee.draggable.measure, Y), le = Ml(X ? X.parentElement : null), te = ce({
|
|
16759
16759
|
activatorEvent: null,
|
|
16760
16760
|
active: null,
|
|
16761
16761
|
activeNode: X,
|
|
@@ -16769,9 +16769,9 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
16769
16769
|
over: null,
|
|
16770
16770
|
scrollableAncestors: [],
|
|
16771
16771
|
scrollAdjustedTranslate: null
|
|
16772
|
-
}), ae = O.getNodeFor((n = te.current.over) == null ? void 0 : n.id), Ce =
|
|
16772
|
+
}), ae = O.getNodeFor((n = te.current.over) == null ? void 0 : n.id), Ce = Wx({
|
|
16773
16773
|
measure: ee.dragOverlay.measure
|
|
16774
|
-
}), Ie = (r = Ce.nodeRef.current) != null ? r : X, Le = y ? (o = Ce.rect) != null ? o : Z : null, je = !!(Ce.nodeRef.current && Ce.rect), ct =
|
|
16774
|
+
}), Ie = (r = Ce.nodeRef.current) != null ? r : X, Le = y ? (o = Ce.rect) != null ? o : Z : null, je = !!(Ce.nodeRef.current && Ce.rect), ct = zx(je ? null : Z), He = Rd(Ie ? rt(Ie) : null), et = $x(y ? ae ?? X : null), Rt = Ux(et), ve = Ld(f, {
|
|
16775
16775
|
transform: {
|
|
16776
16776
|
x: C.x - ct.x,
|
|
16777
16777
|
y: C.y - ct.y,
|
|
@@ -16788,13 +16788,13 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
16788
16788
|
scrollableAncestors: et,
|
|
16789
16789
|
scrollableAncestorRects: Rt,
|
|
16790
16790
|
windowRect: He
|
|
16791
|
-
}), un = me ? In(me, C) : null, yt =
|
|
16791
|
+
}), un = me ? In(me, C) : null, yt = jx(et), Un = Fl(yt), F = Fl(yt, [Z]), j = In(ve, Un), J = Le ? dx(Le, ve) : null, ie = _ && J ? l({
|
|
16792
16792
|
active: _,
|
|
16793
16793
|
collisionRect: J,
|
|
16794
16794
|
droppableRects: T,
|
|
16795
16795
|
droppableContainers: de,
|
|
16796
16796
|
pointerCoordinates: un
|
|
16797
|
-
}) : null, he = vd(ie, "id"), [ye, ut] = Q(null), Ve = je ? ve : In(ve, F), Ht =
|
|
16797
|
+
}) : null, he = vd(ie, "id"), [ye, ut] = Q(null), Ve = je ? ve : In(ve, F), Ht = cx(Ve, (i = ye == null ? void 0 : ye.rect) != null ? i : null, Z), xt = ce(null), Fe = Qe(
|
|
16798
16798
|
(Be, tt) => {
|
|
16799
16799
|
let {
|
|
16800
16800
|
sensor: qe,
|
|
@@ -16891,7 +16891,7 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
16891
16891
|
let mt = null;
|
|
16892
16892
|
if (Te && Xe) {
|
|
16893
16893
|
const {
|
|
16894
|
-
cancelDrop:
|
|
16894
|
+
cancelDrop: Kn
|
|
16895
16895
|
} = W.current;
|
|
16896
16896
|
mt = {
|
|
16897
16897
|
activatorEvent: pe,
|
|
@@ -16899,17 +16899,17 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
16899
16899
|
collisions: Oe,
|
|
16900
16900
|
delta: Xe,
|
|
16901
16901
|
over: Vt
|
|
16902
|
-
}, Ne === ze.DragEnd && typeof
|
|
16902
|
+
}, Ne === ze.DragEnd && typeof Kn == "function" && await Promise.resolve(Kn(mt)) && (Ne = ze.DragCancel);
|
|
16903
16903
|
}
|
|
16904
16904
|
A.current = null, Nr(() => {
|
|
16905
16905
|
b({
|
|
16906
16906
|
type: Ne
|
|
16907
16907
|
}), D(en.Uninitialized), ut(null), z(null), V(null), xt.current = null;
|
|
16908
|
-
const
|
|
16908
|
+
const Kn = Ne === ze.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
16909
16909
|
if (mt) {
|
|
16910
|
-
const Fo = W.current[
|
|
16910
|
+
const Fo = W.current[Kn];
|
|
16911
16911
|
Fo == null || Fo(mt), w({
|
|
16912
|
-
type:
|
|
16912
|
+
type: Kn,
|
|
16913
16913
|
event: mt
|
|
16914
16914
|
});
|
|
16915
16915
|
}
|
|
@@ -16934,8 +16934,8 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
16934
16934
|
Be(qe, tt.options, xe) === !0 && (G.dndKit = {
|
|
16935
16935
|
capturedBy: tt.sensor
|
|
16936
16936
|
}, A.current = Ct, Fe(qe, tt));
|
|
16937
|
-
}, [I, Fe]), Ee =
|
|
16938
|
-
|
|
16937
|
+
}, [I, Fe]), Ee = Ox(d, wt);
|
|
16938
|
+
Hx(d), Et(() => {
|
|
16939
16939
|
Z && k === en.Initializing && D(en.Initialized);
|
|
16940
16940
|
}, [Z, k]), ue(
|
|
16941
16941
|
() => {
|
|
@@ -17024,8 +17024,8 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
17024
17024
|
initial: Le,
|
|
17025
17025
|
translated: J
|
|
17026
17026
|
};
|
|
17027
|
-
}, [_, X, ie, J, I, Ie, Le, T, O, ye, et, j]),
|
|
17028
|
-
...
|
|
17027
|
+
}, [_, X, ie, J, I, Ie, Le, T, O, ye, et, j]), Ix({
|
|
17028
|
+
...K,
|
|
17029
17029
|
delta: C,
|
|
17030
17030
|
draggingRect: J,
|
|
17031
17031
|
pointerCoordinates: un,
|
|
@@ -17071,9 +17071,9 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
17071
17071
|
value: _o
|
|
17072
17072
|
}, B.createElement(Oo.Provider, {
|
|
17073
17073
|
value: Ht
|
|
17074
|
-
}, c)), B.createElement(
|
|
17074
|
+
}, c)), B.createElement(Gx, {
|
|
17075
17075
|
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
17076
|
-
})), B.createElement(
|
|
17076
|
+
})), B.createElement(ex, {
|
|
17077
17077
|
...a,
|
|
17078
17078
|
hiddenTextDescribedById: E
|
|
17079
17079
|
}));
|
|
@@ -17086,15 +17086,15 @@ const Jx = /* @__PURE__ */ Kd(function(t) {
|
|
|
17086
17086
|
enabled: qe
|
|
17087
17087
|
};
|
|
17088
17088
|
}
|
|
17089
|
-
}),
|
|
17090
|
-
function
|
|
17089
|
+
}), t2 = /* @__PURE__ */ vn(null), zl = "button", n2 = "Draggable";
|
|
17090
|
+
function r2(e) {
|
|
17091
17091
|
let {
|
|
17092
17092
|
id: t,
|
|
17093
17093
|
data: n,
|
|
17094
17094
|
disabled: r = !1,
|
|
17095
17095
|
attributes: o
|
|
17096
17096
|
} = e;
|
|
17097
|
-
const i = kr(
|
|
17097
|
+
const i = kr(n2), {
|
|
17098
17098
|
activators: s,
|
|
17099
17099
|
activatorEvent: a,
|
|
17100
17100
|
active: u,
|
|
@@ -17106,7 +17106,7 @@ function n2(e) {
|
|
|
17106
17106
|
role: f = zl,
|
|
17107
17107
|
roleDescription: v = "draggable",
|
|
17108
17108
|
tabIndex: m = 0
|
|
17109
|
-
} = o ?? {}, g = (u == null ? void 0 : u.id) === t, b = Ft(g ? Oo :
|
|
17109
|
+
} = o ?? {}, g = (u == null ? void 0 : u.id) === t, b = Ft(g ? Oo : t2), [w, x] = io(), [k, D] = io(), y = Vx(s, t), N = fr(n);
|
|
17110
17110
|
Et(
|
|
17111
17111
|
() => (l.set(t, {
|
|
17112
17112
|
id: t,
|
|
@@ -17146,7 +17146,7 @@ function n2(e) {
|
|
|
17146
17146
|
function Od() {
|
|
17147
17147
|
return Ft(Pd);
|
|
17148
17148
|
}
|
|
17149
|
-
const
|
|
17149
|
+
const o2 = "Droppable", i2 = {
|
|
17150
17150
|
timeout: 25
|
|
17151
17151
|
};
|
|
17152
17152
|
function Md(e) {
|
|
@@ -17156,7 +17156,7 @@ function Md(e) {
|
|
|
17156
17156
|
id: r,
|
|
17157
17157
|
resizeObserverConfig: o
|
|
17158
17158
|
} = e;
|
|
17159
|
-
const i = kr(
|
|
17159
|
+
const i = kr(o2), {
|
|
17160
17160
|
active: s,
|
|
17161
17161
|
dispatch: a,
|
|
17162
17162
|
over: u,
|
|
@@ -17168,7 +17168,7 @@ function Md(e) {
|
|
|
17168
17168
|
updateMeasurementsFor: m,
|
|
17169
17169
|
timeout: g
|
|
17170
17170
|
} = {
|
|
17171
|
-
...
|
|
17171
|
+
...i2,
|
|
17172
17172
|
...o
|
|
17173
17173
|
}, b = fr(m ?? r), w = Qe(
|
|
17174
17174
|
() => {
|
|
@@ -17224,7 +17224,7 @@ function Md(e) {
|
|
|
17224
17224
|
setNodeRef: y
|
|
17225
17225
|
};
|
|
17226
17226
|
}
|
|
17227
|
-
function
|
|
17227
|
+
function s2(e) {
|
|
17228
17228
|
let {
|
|
17229
17229
|
animation: t,
|
|
17230
17230
|
children: n
|
|
@@ -17245,26 +17245,26 @@ function i2(e) {
|
|
|
17245
17245
|
ref: s
|
|
17246
17246
|
}) : null);
|
|
17247
17247
|
}
|
|
17248
|
-
const
|
|
17248
|
+
const a2 = {
|
|
17249
17249
|
x: 0,
|
|
17250
17250
|
y: 0,
|
|
17251
17251
|
scaleX: 1,
|
|
17252
17252
|
scaleY: 1
|
|
17253
17253
|
};
|
|
17254
|
-
function
|
|
17254
|
+
function l2(e) {
|
|
17255
17255
|
let {
|
|
17256
17256
|
children: t
|
|
17257
17257
|
} = e;
|
|
17258
17258
|
return B.createElement(Er.Provider, {
|
|
17259
17259
|
value: Ad
|
|
17260
17260
|
}, B.createElement(Oo.Provider, {
|
|
17261
|
-
value:
|
|
17261
|
+
value: a2
|
|
17262
17262
|
}, t));
|
|
17263
17263
|
}
|
|
17264
|
-
const
|
|
17264
|
+
const c2 = {
|
|
17265
17265
|
position: "fixed",
|
|
17266
17266
|
touchAction: "none"
|
|
17267
|
-
},
|
|
17267
|
+
}, u2 = (e) => Ao(e) ? "transform 250ms ease" : void 0, d2 = /* @__PURE__ */ Zd((e, t) => {
|
|
17268
17268
|
let {
|
|
17269
17269
|
as: n,
|
|
17270
17270
|
activatorEvent: r,
|
|
@@ -17274,7 +17274,7 @@ const l2 = {
|
|
|
17274
17274
|
rect: a,
|
|
17275
17275
|
style: u,
|
|
17276
17276
|
transform: c,
|
|
17277
|
-
transition: d =
|
|
17277
|
+
transition: d = u2
|
|
17278
17278
|
} = e;
|
|
17279
17279
|
if (!a)
|
|
17280
17280
|
return null;
|
|
@@ -17283,13 +17283,13 @@ const l2 = {
|
|
|
17283
17283
|
scaleX: 1,
|
|
17284
17284
|
scaleY: 1
|
|
17285
17285
|
}, h = {
|
|
17286
|
-
...
|
|
17286
|
+
...c2,
|
|
17287
17287
|
width: a.width,
|
|
17288
17288
|
height: a.height,
|
|
17289
17289
|
top: a.top,
|
|
17290
17290
|
left: a.left,
|
|
17291
17291
|
transform: sn.Transform.toString(l),
|
|
17292
|
-
transformOrigin: o && r ?
|
|
17292
|
+
transformOrigin: o && r ? nx(r, a) : void 0,
|
|
17293
17293
|
transition: typeof d == "function" ? d(r) : d,
|
|
17294
17294
|
...u
|
|
17295
17295
|
};
|
|
@@ -17298,7 +17298,7 @@ const l2 = {
|
|
|
17298
17298
|
style: h,
|
|
17299
17299
|
ref: t
|
|
17300
17300
|
}, i);
|
|
17301
|
-
}),
|
|
17301
|
+
}), f2 = (e) => (t) => {
|
|
17302
17302
|
let {
|
|
17303
17303
|
active: n,
|
|
17304
17304
|
dragOverlay: r
|
|
@@ -17318,7 +17318,7 @@ const l2 = {
|
|
|
17318
17318
|
n.node.style.setProperty(u, c);
|
|
17319
17319
|
s != null && s.active && n.node.classList.remove(s.active);
|
|
17320
17320
|
};
|
|
17321
|
-
},
|
|
17321
|
+
}, h2 = (e) => {
|
|
17322
17322
|
let {
|
|
17323
17323
|
transform: {
|
|
17324
17324
|
initial: t,
|
|
@@ -17330,11 +17330,11 @@ const l2 = {
|
|
|
17330
17330
|
}, {
|
|
17331
17331
|
transform: sn.Transform.toString(n)
|
|
17332
17332
|
}];
|
|
17333
|
-
},
|
|
17333
|
+
}, p2 = {
|
|
17334
17334
|
duration: 250,
|
|
17335
17335
|
easing: "ease",
|
|
17336
|
-
keyframes:
|
|
17337
|
-
sideEffects: /* @__PURE__ */
|
|
17336
|
+
keyframes: h2,
|
|
17337
|
+
sideEffects: /* @__PURE__ */ f2({
|
|
17338
17338
|
styles: {
|
|
17339
17339
|
active: {
|
|
17340
17340
|
opacity: "0"
|
|
@@ -17342,7 +17342,7 @@ const l2 = {
|
|
|
17342
17342
|
}
|
|
17343
17343
|
})
|
|
17344
17344
|
};
|
|
17345
|
-
function
|
|
17345
|
+
function m2(e) {
|
|
17346
17346
|
let {
|
|
17347
17347
|
config: t,
|
|
17348
17348
|
draggableNodes: n,
|
|
@@ -17366,7 +17366,7 @@ function p2(e) {
|
|
|
17366
17366
|
} = rt(s).getComputedStyle(s), l = xd(d);
|
|
17367
17367
|
if (!l)
|
|
17368
17368
|
return;
|
|
17369
|
-
const h = typeof t == "function" ? t :
|
|
17369
|
+
const h = typeof t == "function" ? t : g2(t);
|
|
17370
17370
|
return Td(u, o.draggable.measure), h({
|
|
17371
17371
|
active: {
|
|
17372
17372
|
id: i,
|
|
@@ -17385,14 +17385,14 @@ function p2(e) {
|
|
|
17385
17385
|
});
|
|
17386
17386
|
});
|
|
17387
17387
|
}
|
|
17388
|
-
function
|
|
17388
|
+
function g2(e) {
|
|
17389
17389
|
const {
|
|
17390
17390
|
duration: t,
|
|
17391
17391
|
easing: n,
|
|
17392
17392
|
sideEffects: r,
|
|
17393
17393
|
keyframes: o
|
|
17394
17394
|
} = {
|
|
17395
|
-
...
|
|
17395
|
+
...p2,
|
|
17396
17396
|
...e
|
|
17397
17397
|
};
|
|
17398
17398
|
return (i) => {
|
|
@@ -17442,13 +17442,13 @@ function m2(e) {
|
|
|
17442
17442
|
};
|
|
17443
17443
|
}
|
|
17444
17444
|
let $l = 0;
|
|
17445
|
-
function
|
|
17445
|
+
function b2(e) {
|
|
17446
17446
|
return se(() => {
|
|
17447
17447
|
if (e != null)
|
|
17448
17448
|
return $l++, $l;
|
|
17449
17449
|
}, [e]);
|
|
17450
17450
|
}
|
|
17451
|
-
const
|
|
17451
|
+
const v2 = /* @__PURE__ */ B.memo((e) => {
|
|
17452
17452
|
let {
|
|
17453
17453
|
adjustScale: t = !1,
|
|
17454
17454
|
children: n,
|
|
@@ -17473,7 +17473,7 @@ const b2 = /* @__PURE__ */ B.memo((e) => {
|
|
|
17473
17473
|
scrollableAncestors: x,
|
|
17474
17474
|
scrollableAncestorRects: k,
|
|
17475
17475
|
windowRect: D
|
|
17476
|
-
} = Od(), y = Ft(Oo), N =
|
|
17476
|
+
} = Od(), y = Ft(Oo), N = b2(l == null ? void 0 : l.id), I = Ld(s, {
|
|
17477
17477
|
activatorEvent: d,
|
|
17478
17478
|
active: l,
|
|
17479
17479
|
activeNodeRect: h,
|
|
@@ -17485,15 +17485,15 @@ const b2 = /* @__PURE__ */ B.memo((e) => {
|
|
|
17485
17485
|
scrollableAncestorRects: k,
|
|
17486
17486
|
transform: y,
|
|
17487
17487
|
windowRect: D
|
|
17488
|
-
}), C = Xs(h), O =
|
|
17488
|
+
}), C = Xs(h), O = m2({
|
|
17489
17489
|
config: r,
|
|
17490
17490
|
draggableNodes: v,
|
|
17491
17491
|
droppableContainers: m,
|
|
17492
17492
|
measuringConfiguration: w
|
|
17493
17493
|
}), R = C ? g.setRef : void 0;
|
|
17494
|
-
return B.createElement(
|
|
17494
|
+
return B.createElement(l2, null, B.createElement(s2, {
|
|
17495
17495
|
animation: O
|
|
17496
|
-
}, l && N ? B.createElement(
|
|
17496
|
+
}, l && N ? B.createElement(d2, {
|
|
17497
17497
|
key: N,
|
|
17498
17498
|
id: l.id,
|
|
17499
17499
|
ref: R,
|
|
@@ -17514,7 +17514,7 @@ function _d(e, t, n) {
|
|
|
17514
17514
|
const r = e.slice();
|
|
17515
17515
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
17516
17516
|
}
|
|
17517
|
-
function
|
|
17517
|
+
function y2(e, t) {
|
|
17518
17518
|
return e.reduce((n, r, o) => {
|
|
17519
17519
|
const i = t.get(r);
|
|
17520
17520
|
return i && (n[o] = i), n;
|
|
@@ -17523,7 +17523,7 @@ function v2(e, t) {
|
|
|
17523
17523
|
function $r(e) {
|
|
17524
17524
|
return e !== null && e >= 0;
|
|
17525
17525
|
}
|
|
17526
|
-
function
|
|
17526
|
+
function x2(e, t) {
|
|
17527
17527
|
if (e === t)
|
|
17528
17528
|
return !0;
|
|
17529
17529
|
if (e.length !== t.length)
|
|
@@ -17533,7 +17533,7 @@ function y2(e, t) {
|
|
|
17533
17533
|
return !1;
|
|
17534
17534
|
return !0;
|
|
17535
17535
|
}
|
|
17536
|
-
function
|
|
17536
|
+
function w2(e) {
|
|
17537
17537
|
return typeof e == "boolean" ? {
|
|
17538
17538
|
draggable: e,
|
|
17539
17539
|
droppable: e
|
|
@@ -17567,7 +17567,7 @@ const Fd = (e) => {
|
|
|
17567
17567
|
droppable: !1
|
|
17568
17568
|
}
|
|
17569
17569
|
});
|
|
17570
|
-
function
|
|
17570
|
+
function C2(e) {
|
|
17571
17571
|
let {
|
|
17572
17572
|
children: t,
|
|
17573
17573
|
id: n,
|
|
@@ -17581,7 +17581,7 @@ function w2(e) {
|
|
|
17581
17581
|
droppableRects: u,
|
|
17582
17582
|
over: c,
|
|
17583
17583
|
measureDroppableContainers: d
|
|
17584
|
-
} = Od(), l = kr(Bd, n), h = a.rect !== null, f = se(() => r.map((y) => typeof y == "object" && "id" in y ? y.id : y), [r]), v = s != null, m = s ? f.indexOf(s.id) : -1, g = c ? f.indexOf(c.id) : -1, b = ce(f), w = !
|
|
17584
|
+
} = Od(), l = kr(Bd, n), h = a.rect !== null, f = se(() => r.map((y) => typeof y == "object" && "id" in y ? y.id : y), [r]), v = s != null, m = s ? f.indexOf(s.id) : -1, g = c ? f.indexOf(c.id) : -1, b = ce(f), w = !x2(f, b.current), x = g !== -1 && m === -1 || w, k = w2(i);
|
|
17585
17585
|
Et(() => {
|
|
17586
17586
|
w && v && d(f);
|
|
17587
17587
|
}, [w, f, v, d]), ue(() => {
|
|
@@ -17596,7 +17596,7 @@ function w2(e) {
|
|
|
17596
17596
|
items: f,
|
|
17597
17597
|
overIndex: g,
|
|
17598
17598
|
useDragOverlay: h,
|
|
17599
|
-
sortedRects:
|
|
17599
|
+
sortedRects: y2(f, u),
|
|
17600
17600
|
strategy: o
|
|
17601
17601
|
}),
|
|
17602
17602
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -17606,7 +17606,7 @@ function w2(e) {
|
|
|
17606
17606
|
value: D
|
|
17607
17607
|
}, t);
|
|
17608
17608
|
}
|
|
17609
|
-
const
|
|
17609
|
+
const S2 = (e) => {
|
|
17610
17610
|
let {
|
|
17611
17611
|
id: t,
|
|
17612
17612
|
items: n,
|
|
@@ -17614,7 +17614,7 @@ const C2 = (e) => {
|
|
|
17614
17614
|
overIndex: o
|
|
17615
17615
|
} = e;
|
|
17616
17616
|
return _d(n, r, o).indexOf(t);
|
|
17617
|
-
},
|
|
17617
|
+
}, k2 = (e) => {
|
|
17618
17618
|
let {
|
|
17619
17619
|
containerId: t,
|
|
17620
17620
|
isSorting: n,
|
|
@@ -17627,17 +17627,17 @@ const C2 = (e) => {
|
|
|
17627
17627
|
transition: c
|
|
17628
17628
|
} = e;
|
|
17629
17629
|
return !c || !r || a !== i && o === s ? !1 : n ? !0 : s !== o && t === u;
|
|
17630
|
-
},
|
|
17630
|
+
}, E2 = {
|
|
17631
17631
|
duration: 200,
|
|
17632
17632
|
easing: "ease"
|
|
17633
|
-
}, $d = "transform",
|
|
17633
|
+
}, $d = "transform", N2 = /* @__PURE__ */ sn.Transition.toString({
|
|
17634
17634
|
property: $d,
|
|
17635
17635
|
duration: 0,
|
|
17636
17636
|
easing: "linear"
|
|
17637
|
-
}),
|
|
17637
|
+
}), T2 = {
|
|
17638
17638
|
roleDescription: "sortable"
|
|
17639
17639
|
};
|
|
17640
|
-
function
|
|
17640
|
+
function D2(e) {
|
|
17641
17641
|
let {
|
|
17642
17642
|
disabled: t,
|
|
17643
17643
|
index: n,
|
|
@@ -17665,17 +17665,17 @@ function T2(e) {
|
|
|
17665
17665
|
i && s(null);
|
|
17666
17666
|
}, [i]), i;
|
|
17667
17667
|
}
|
|
17668
|
-
function
|
|
17668
|
+
function R2(e) {
|
|
17669
17669
|
let {
|
|
17670
|
-
animateLayoutChanges: t =
|
|
17670
|
+
animateLayoutChanges: t = k2,
|
|
17671
17671
|
attributes: n,
|
|
17672
17672
|
disabled: r,
|
|
17673
17673
|
data: o,
|
|
17674
|
-
getNewIndex: i =
|
|
17674
|
+
getNewIndex: i = S2,
|
|
17675
17675
|
id: s,
|
|
17676
17676
|
strategy: a,
|
|
17677
17677
|
resizeObserverConfig: u,
|
|
17678
|
-
transition: c =
|
|
17678
|
+
transition: c = E2
|
|
17679
17679
|
} = e;
|
|
17680
17680
|
const {
|
|
17681
17681
|
items: d,
|
|
@@ -17687,7 +17687,7 @@ function D2(e) {
|
|
|
17687
17687
|
overIndex: g,
|
|
17688
17688
|
useDragOverlay: b,
|
|
17689
17689
|
strategy: w
|
|
17690
|
-
} = Ft(zd), x =
|
|
17690
|
+
} = Ft(zd), x = I2(r, f), k = d.indexOf(s), D = se(() => ({
|
|
17691
17691
|
sortable: {
|
|
17692
17692
|
containerId: l,
|
|
17693
17693
|
index: k,
|
|
@@ -17718,29 +17718,29 @@ function D2(e) {
|
|
|
17718
17718
|
over: V,
|
|
17719
17719
|
setActivatorNodeRef: W,
|
|
17720
17720
|
transform: E
|
|
17721
|
-
} =
|
|
17721
|
+
} = r2({
|
|
17722
17722
|
id: s,
|
|
17723
17723
|
data: D,
|
|
17724
17724
|
attributes: {
|
|
17725
|
-
...
|
|
17725
|
+
...T2,
|
|
17726
17726
|
...n
|
|
17727
17727
|
},
|
|
17728
17728
|
disabled: x.draggable
|
|
17729
|
-
}), de =
|
|
17729
|
+
}), de = jy(O, M), ee = !!R, T = ee && !v && $r(h) && $r(g), q = !b && H, re = q && T ? E : null, me = T ? re ?? (a ?? w)({
|
|
17730
17730
|
rects: m,
|
|
17731
17731
|
activeNodeRect: _,
|
|
17732
17732
|
activeIndex: h,
|
|
17733
17733
|
overIndex: g,
|
|
17734
17734
|
index: k
|
|
17735
|
-
}) : null,
|
|
17735
|
+
}) : null, K = $r(h) && $r(g) ? i({
|
|
17736
17736
|
id: s,
|
|
17737
17737
|
items: d,
|
|
17738
17738
|
activeIndex: h,
|
|
17739
17739
|
overIndex: g
|
|
17740
|
-
}) : k,
|
|
17741
|
-
activeId:
|
|
17740
|
+
}) : k, Y = R == null ? void 0 : R.id, Z = ce({
|
|
17741
|
+
activeId: Y,
|
|
17742
17742
|
items: d,
|
|
17743
|
-
newIndex:
|
|
17743
|
+
newIndex: K,
|
|
17744
17744
|
containerId: l
|
|
17745
17745
|
}), le = d !== Z.current.items, te = t({
|
|
17746
17746
|
active: R,
|
|
@@ -17755,33 +17755,33 @@ function D2(e) {
|
|
|
17755
17755
|
previousContainerId: Z.current.containerId,
|
|
17756
17756
|
transition: c,
|
|
17757
17757
|
wasDragging: Z.current.activeId != null
|
|
17758
|
-
}), ae =
|
|
17758
|
+
}), ae = D2({
|
|
17759
17759
|
disabled: !te,
|
|
17760
17760
|
index: k,
|
|
17761
17761
|
node: I,
|
|
17762
17762
|
rect: N
|
|
17763
17763
|
});
|
|
17764
17764
|
return ue(() => {
|
|
17765
|
-
ee && Z.current.newIndex !==
|
|
17766
|
-
}, [ee,
|
|
17767
|
-
if (
|
|
17765
|
+
ee && Z.current.newIndex !== K && (Z.current.newIndex = K), l !== Z.current.containerId && (Z.current.containerId = l), d !== Z.current.items && (Z.current.items = d);
|
|
17766
|
+
}, [ee, K, l, d]), ue(() => {
|
|
17767
|
+
if (Y === Z.current.activeId)
|
|
17768
17768
|
return;
|
|
17769
|
-
if (
|
|
17770
|
-
Z.current.activeId =
|
|
17769
|
+
if (Y && !Z.current.activeId) {
|
|
17770
|
+
Z.current.activeId = Y;
|
|
17771
17771
|
return;
|
|
17772
17772
|
}
|
|
17773
17773
|
const Ie = setTimeout(() => {
|
|
17774
|
-
Z.current.activeId =
|
|
17774
|
+
Z.current.activeId = Y;
|
|
17775
17775
|
}, 50);
|
|
17776
17776
|
return () => clearTimeout(Ie);
|
|
17777
|
-
}, [
|
|
17777
|
+
}, [Y]), {
|
|
17778
17778
|
active: R,
|
|
17779
17779
|
activeIndex: h,
|
|
17780
17780
|
attributes: A,
|
|
17781
17781
|
data: D,
|
|
17782
17782
|
rect: N,
|
|
17783
17783
|
index: k,
|
|
17784
|
-
newIndex:
|
|
17784
|
+
newIndex: K,
|
|
17785
17785
|
items: d,
|
|
17786
17786
|
isOver: C,
|
|
17787
17787
|
isSorting: ee,
|
|
@@ -17803,7 +17803,7 @@ function D2(e) {
|
|
|
17803
17803
|
ae || // Or to prevent items jumping to back to their "new" position when items change
|
|
17804
17804
|
le && Z.current.newIndex === k
|
|
17805
17805
|
)
|
|
17806
|
-
return
|
|
17806
|
+
return N2;
|
|
17807
17807
|
if (!(q && !Ao(P) || !c) && (ee || te))
|
|
17808
17808
|
return sn.Transition.toString({
|
|
17809
17809
|
...c,
|
|
@@ -17811,7 +17811,7 @@ function D2(e) {
|
|
|
17811
17811
|
});
|
|
17812
17812
|
}
|
|
17813
17813
|
}
|
|
17814
|
-
function
|
|
17814
|
+
function I2(e, t) {
|
|
17815
17815
|
var n, r;
|
|
17816
17816
|
return typeof e == "boolean" ? {
|
|
17817
17817
|
draggable: e,
|
|
@@ -17828,7 +17828,7 @@ function uo(e) {
|
|
|
17828
17828
|
const t = e.data.current;
|
|
17829
17829
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
17830
17830
|
}
|
|
17831
|
-
const
|
|
17831
|
+
const A2 = [fe.Down, fe.Right, fe.Up, fe.Left], P2 = (e, t) => {
|
|
17832
17832
|
let {
|
|
17833
17833
|
context: {
|
|
17834
17834
|
active: n,
|
|
@@ -17839,7 +17839,7 @@ const I2 = [fe.Down, fe.Right, fe.Up, fe.Left], A2 = (e, t) => {
|
|
|
17839
17839
|
scrollableAncestors: a
|
|
17840
17840
|
}
|
|
17841
17841
|
} = t;
|
|
17842
|
-
if (
|
|
17842
|
+
if (A2.includes(e.code)) {
|
|
17843
17843
|
if (e.preventDefault(), !n || !r)
|
|
17844
17844
|
return;
|
|
17845
17845
|
const u = [];
|
|
@@ -17863,7 +17863,7 @@ const I2 = [fe.Down, fe.Right, fe.Up, fe.Left], A2 = (e, t) => {
|
|
|
17863
17863
|
break;
|
|
17864
17864
|
}
|
|
17865
17865
|
});
|
|
17866
|
-
const c =
|
|
17866
|
+
const c = ox({
|
|
17867
17867
|
collisionRect: r,
|
|
17868
17868
|
droppableRects: o,
|
|
17869
17869
|
droppableContainers: u
|
|
@@ -17872,7 +17872,7 @@ const I2 = [fe.Down, fe.Right, fe.Up, fe.Left], A2 = (e, t) => {
|
|
|
17872
17872
|
if (d === (s == null ? void 0 : s.id) && c.length > 1 && (d = c[1].id), d != null) {
|
|
17873
17873
|
const l = i.get(n.id), h = i.get(d), f = h ? o.get(h.id) : null, v = h == null ? void 0 : h.node.current;
|
|
17874
17874
|
if (v && f && l && h) {
|
|
17875
|
-
const g = Po(v).some((y, N) => a[N] !== y), b = jd(l, h), w =
|
|
17875
|
+
const g = Po(v).some((y, N) => a[N] !== y), b = jd(l, h), w = L2(l, h), x = g || !b ? {
|
|
17876
17876
|
x: 0,
|
|
17877
17877
|
y: 0
|
|
17878
17878
|
} : {
|
|
@@ -17890,7 +17890,7 @@ const I2 = [fe.Down, fe.Right, fe.Up, fe.Left], A2 = (e, t) => {
|
|
|
17890
17890
|
function jd(e, t) {
|
|
17891
17891
|
return !uo(e) || !uo(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
17892
17892
|
}
|
|
17893
|
-
function
|
|
17893
|
+
function L2(e, t) {
|
|
17894
17894
|
return !uo(e) || !uo(t) || !jd(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
17895
17895
|
}
|
|
17896
17896
|
function Mo({
|
|
@@ -17982,7 +17982,7 @@ function Mo({
|
|
|
17982
17982
|
/* @__PURE__ */ L("div", { className: "grid gap-1.5", children: [
|
|
17983
17983
|
/* @__PURE__ */ p("span", { className: "font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver", children: "Status" }),
|
|
17984
17984
|
/* @__PURE__ */ p(
|
|
17985
|
-
|
|
17985
|
+
Yi,
|
|
17986
17986
|
{
|
|
17987
17987
|
value: b,
|
|
17988
17988
|
ariaLabel: "Status",
|
|
@@ -18001,7 +18001,7 @@ function Mo({
|
|
|
18001
18001
|
/* @__PURE__ */ L("div", { className: "grid gap-1.5", children: [
|
|
18002
18002
|
/* @__PURE__ */ p("span", { className: "font-mono text-[11px] uppercase tracking-[0.14em] text-sb-silver", children: "Priority" }),
|
|
18003
18003
|
/* @__PURE__ */ p(
|
|
18004
|
-
|
|
18004
|
+
Yi,
|
|
18005
18005
|
{
|
|
18006
18006
|
value: d,
|
|
18007
18007
|
ariaLabel: "Priority",
|
|
@@ -18054,7 +18054,7 @@ function Mo({
|
|
|
18054
18054
|
] })
|
|
18055
18055
|
] });
|
|
18056
18056
|
}
|
|
18057
|
-
function
|
|
18057
|
+
function O2({
|
|
18058
18058
|
value: e,
|
|
18059
18059
|
values: t
|
|
18060
18060
|
}) {
|
|
@@ -18077,7 +18077,7 @@ function L2({
|
|
|
18077
18077
|
}
|
|
18078
18078
|
) : /* @__PURE__ */ p("span", { className: "max-w-full truncate rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver", children: e });
|
|
18079
18079
|
}
|
|
18080
|
-
const
|
|
18080
|
+
const M2 = [];
|
|
18081
18081
|
function Zs({
|
|
18082
18082
|
task: e,
|
|
18083
18083
|
status: t,
|
|
@@ -18086,7 +18086,7 @@ function Zs({
|
|
|
18086
18086
|
searchMatch: o
|
|
18087
18087
|
}) {
|
|
18088
18088
|
return n ? /* @__PURE__ */ p(
|
|
18089
|
-
|
|
18089
|
+
_2,
|
|
18090
18090
|
{
|
|
18091
18091
|
task: e,
|
|
18092
18092
|
status: t,
|
|
@@ -18095,13 +18095,13 @@ function Zs({
|
|
|
18095
18095
|
}
|
|
18096
18096
|
) : /* @__PURE__ */ p(Hd, { task: e, searchMatch: o });
|
|
18097
18097
|
}
|
|
18098
|
-
function
|
|
18098
|
+
function _2({
|
|
18099
18099
|
task: e,
|
|
18100
18100
|
status: t,
|
|
18101
18101
|
isPlaceholder: n,
|
|
18102
18102
|
searchMatch: r
|
|
18103
18103
|
}) {
|
|
18104
|
-
const { attributes: o, listeners: i, setNodeRef: s, transform: a, transition: u } =
|
|
18104
|
+
const { attributes: o, listeners: i, setNodeRef: s, transform: a, transition: u } = R2({
|
|
18105
18105
|
id: e.slug,
|
|
18106
18106
|
data: { status: t }
|
|
18107
18107
|
}), c = {
|
|
@@ -18125,7 +18125,7 @@ function Hd({
|
|
|
18125
18125
|
const r = U((d) => d.selectTask), o = U((d) => d.errorAtBySlug[e.slug]), i = U(
|
|
18126
18126
|
(d) => {
|
|
18127
18127
|
var l;
|
|
18128
|
-
return ((l = d.config) == null ? void 0 : l.priority.values) ??
|
|
18128
|
+
return ((l = d.config) == null ? void 0 : l.priority.values) ?? M2;
|
|
18129
18129
|
}
|
|
18130
18130
|
), s = U(
|
|
18131
18131
|
(d) => {
|
|
@@ -18155,10 +18155,10 @@ function Hd({
|
|
|
18155
18155
|
children: [
|
|
18156
18156
|
/* @__PURE__ */ p("h3", { className: "line-clamp-2 font-sans text-[14px] font-medium leading-5 text-sb-frosted", children: e.frontmatter.title }),
|
|
18157
18157
|
/* @__PURE__ */ p("p", { className: "mt-1 truncate font-mono text-[11px] text-sb-silver", children: e.slug }),
|
|
18158
|
-
a ? /* @__PURE__ */ p(
|
|
18158
|
+
a ? /* @__PURE__ */ p(F2, { flag: a, raised: u }) : null,
|
|
18159
18159
|
/* @__PURE__ */ L("div", { className: "mt-3 flex flex-wrap items-center gap-1.5", children: [
|
|
18160
18160
|
e.frontmatter.priority ? /* @__PURE__ */ p(
|
|
18161
|
-
|
|
18161
|
+
O2,
|
|
18162
18162
|
{
|
|
18163
18163
|
value: e.frontmatter.priority,
|
|
18164
18164
|
values: i
|
|
@@ -18190,7 +18190,7 @@ function Hd({
|
|
|
18190
18190
|
o ?? "stable"
|
|
18191
18191
|
);
|
|
18192
18192
|
}
|
|
18193
|
-
function
|
|
18193
|
+
function F2({ flag: e, raised: t }) {
|
|
18194
18194
|
return /* @__PURE__ */ L(
|
|
18195
18195
|
"p",
|
|
18196
18196
|
{
|
|
@@ -18215,7 +18215,7 @@ function _2({ flag: e, raised: t }) {
|
|
|
18215
18215
|
function jl({ label: e }) {
|
|
18216
18216
|
return /* @__PURE__ */ p("span", { className: "max-w-full truncate rounded border border-sb-iron px-1.5 py-0.5 font-mono text-[11px] text-sb-silver", children: e });
|
|
18217
18217
|
}
|
|
18218
|
-
function
|
|
18218
|
+
function B2(e, t, n) {
|
|
18219
18219
|
const r = qr(
|
|
18220
18220
|
t,
|
|
18221
18221
|
e.layout,
|
|
@@ -18246,13 +18246,13 @@ function F2(e, t, n) {
|
|
|
18246
18246
|
] : []
|
|
18247
18247
|
];
|
|
18248
18248
|
}
|
|
18249
|
-
function
|
|
18249
|
+
function z2(e, t, n) {
|
|
18250
18250
|
const r = e.findIndex((s) => s.slug === t), o = r >= 0 ? e.length - 1 : e.length, i = n < 0 || n > o ? o : n;
|
|
18251
18251
|
return r < 0 || i < r ? i : i + 1;
|
|
18252
18252
|
}
|
|
18253
|
-
const
|
|
18253
|
+
const $2 = (e) => {
|
|
18254
18254
|
var c, d, l, h, f;
|
|
18255
|
-
const { droppableContainers: t, droppableRects: n, pointerCoordinates: r } = e, o =
|
|
18255
|
+
const { droppableContainers: t, droppableRects: n, pointerCoordinates: r } = e, o = lx(e);
|
|
18256
18256
|
if (!r || o.length === 0) return o;
|
|
18257
18257
|
const i = o.find(
|
|
18258
18258
|
(v) => {
|
|
@@ -18277,8 +18277,8 @@ const z2 = (e) => {
|
|
|
18277
18277
|
(v) => r.y <= v.rect.top + v.rect.height
|
|
18278
18278
|
);
|
|
18279
18279
|
return u ? [{ id: u.id }] : o;
|
|
18280
|
-
},
|
|
18281
|
-
function
|
|
18280
|
+
}, j2 = () => null;
|
|
18281
|
+
function H2() {
|
|
18282
18282
|
var _;
|
|
18283
18283
|
const e = U((A) => A.config), t = U((A) => A.tasks), n = U((A) => A.unreadable), r = U((A) => A.searchQuery), o = U((A) => A.flaggedOnly), i = U((A) => A.setFlaggedOnly), s = U((A) => A.reorderTask), a = U((A) => A.readOnly), u = U((A) => A.openArchive), c = se(
|
|
18284
18284
|
() => ec(t, r),
|
|
@@ -18286,16 +18286,16 @@ function j2() {
|
|
|
18286
18286
|
), d = se(
|
|
18287
18287
|
() => o ? c.tasks.filter(ho) : c.tasks,
|
|
18288
18288
|
[c.tasks, o]
|
|
18289
|
-
), l = !!r.trim() || o, [h, f] = Q(null), [v, m] = Q(null), [g, b] = Q(-1), w =
|
|
18289
|
+
), l = !!r.trim() || o, [h, f] = Q(null), [v, m] = Q(null), [g, b] = Q(-1), w = tx(
|
|
18290
18290
|
Rl(qs, { activationConstraint: { distance: 6 } }),
|
|
18291
|
-
Rl(
|
|
18292
|
-
coordinateGetter:
|
|
18291
|
+
Rl(Ks, {
|
|
18292
|
+
coordinateGetter: P2
|
|
18293
18293
|
})
|
|
18294
18294
|
), x = se(
|
|
18295
18295
|
() => new Set((e == null ? void 0 : e.columns.map((A) => A.id)) ?? []),
|
|
18296
18296
|
[e]
|
|
18297
18297
|
), k = se(
|
|
18298
|
-
() => e ?
|
|
18298
|
+
() => e ? B2(e, d, x) : [],
|
|
18299
18299
|
[e, d, x]
|
|
18300
18300
|
), D = h ? d.find((A) => A.slug === h) ?? null : null, y = D ? ((_ = k.find((A) => A.id === D.frontmatter.status)) == null ? void 0 : _.tasks.findIndex((A) => A.slug === D.slug)) ?? -1 : -1, N = D !== null && v === D.frontmatter.status && g === y, I = () => {
|
|
18301
18301
|
f(null), m(null), b(-1);
|
|
@@ -18312,7 +18312,7 @@ function j2() {
|
|
|
18312
18312
|
);
|
|
18313
18313
|
}, O = (A) => {
|
|
18314
18314
|
var z, H, V, W;
|
|
18315
|
-
const M =
|
|
18315
|
+
const M = q2({
|
|
18316
18316
|
overId: A.over ? String(A.over.id) : null,
|
|
18317
18317
|
overStatus: (H = (z = A.over) == null ? void 0 : z.data.current) == null ? void 0 : H.status,
|
|
18318
18318
|
overIsColumn: ((W = (V = A.over) == null ? void 0 : V.data.current) == null ? void 0 : W.isColumn) === !0,
|
|
@@ -18324,7 +18324,7 @@ function j2() {
|
|
|
18324
18324
|
m((M == null ? void 0 : M.status) ?? null), b((M == null ? void 0 : M.position) ?? -1);
|
|
18325
18325
|
}, R = (A) => {
|
|
18326
18326
|
var H, V, W, E;
|
|
18327
|
-
const M = String(A.active.id), z =
|
|
18327
|
+
const M = String(A.active.id), z = X2({
|
|
18328
18328
|
activeSlug: M,
|
|
18329
18329
|
activeStatus: D == null ? void 0 : D.frontmatter.status,
|
|
18330
18330
|
overId: A.over ? String(A.over.id) : null,
|
|
@@ -18337,7 +18337,7 @@ function j2() {
|
|
|
18337
18337
|
I(), z && s(M, z.status, z.position);
|
|
18338
18338
|
};
|
|
18339
18339
|
if (!e)
|
|
18340
|
-
return /* @__PURE__ */ p(
|
|
18340
|
+
return /* @__PURE__ */ p(Z2, {});
|
|
18341
18341
|
const P = h !== null;
|
|
18342
18342
|
return o && !r.trim() && d.length === 0 ? /* @__PURE__ */ p("div", { className: "flex min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h)-2.5rem)] items-center justify-center", children: /* @__PURE__ */ L("div", { className: "w-full max-w-md rounded-md border border-dashed border-sb-iron px-5 py-12 text-center", children: [
|
|
18343
18343
|
/* @__PURE__ */ p(
|
|
@@ -18387,7 +18387,7 @@ function j2() {
|
|
|
18387
18387
|
k.map((A) => {
|
|
18388
18388
|
var M;
|
|
18389
18389
|
return /* @__PURE__ */ p(
|
|
18390
|
-
|
|
18390
|
+
V2,
|
|
18391
18391
|
{
|
|
18392
18392
|
id: A.id,
|
|
18393
18393
|
label: A.label,
|
|
@@ -18400,10 +18400,10 @@ function j2() {
|
|
|
18400
18400
|
);
|
|
18401
18401
|
})
|
|
18402
18402
|
] }) : /* @__PURE__ */ L(
|
|
18403
|
-
|
|
18403
|
+
e2,
|
|
18404
18404
|
{
|
|
18405
18405
|
id: "shipbench-board-dnd",
|
|
18406
|
-
collisionDetection:
|
|
18406
|
+
collisionDetection: $2,
|
|
18407
18407
|
sensors: w,
|
|
18408
18408
|
onDragStart: C,
|
|
18409
18409
|
onDragOver: O,
|
|
@@ -18416,14 +18416,14 @@ function j2() {
|
|
|
18416
18416
|
var z;
|
|
18417
18417
|
const M = A.id === pn;
|
|
18418
18418
|
return /* @__PURE__ */ p(
|
|
18419
|
-
|
|
18419
|
+
U2,
|
|
18420
18420
|
{
|
|
18421
18421
|
id: A.id,
|
|
18422
18422
|
label: A.label,
|
|
18423
18423
|
tasks: A.tasks,
|
|
18424
18424
|
searchContext: c.contextBySlug,
|
|
18425
18425
|
activeSlug: h,
|
|
18426
|
-
indicatorIndex: h && !N && !M && !A.isDone && v === A.id ?
|
|
18426
|
+
indicatorIndex: h && !N && !M && !A.isDone && v === A.id ? z2(
|
|
18427
18427
|
A.tasks,
|
|
18428
18428
|
h,
|
|
18429
18429
|
g
|
|
@@ -18439,7 +18439,7 @@ function j2() {
|
|
|
18439
18439
|
);
|
|
18440
18440
|
})
|
|
18441
18441
|
] }),
|
|
18442
|
-
/* @__PURE__ */ p(
|
|
18442
|
+
/* @__PURE__ */ p(v2, { dropAnimation: null, children: D ? /* @__PURE__ */ p(
|
|
18443
18443
|
Zs,
|
|
18444
18444
|
{
|
|
18445
18445
|
task: D,
|
|
@@ -18451,7 +18451,7 @@ function j2() {
|
|
|
18451
18451
|
}
|
|
18452
18452
|
);
|
|
18453
18453
|
}
|
|
18454
|
-
function
|
|
18454
|
+
function V2({
|
|
18455
18455
|
id: e,
|
|
18456
18456
|
label: t,
|
|
18457
18457
|
tasks: n,
|
|
@@ -18575,7 +18575,7 @@ function gi({ tail: e = !1 }) {
|
|
|
18575
18575
|
}
|
|
18576
18576
|
);
|
|
18577
18577
|
}
|
|
18578
|
-
function
|
|
18578
|
+
function U2({
|
|
18579
18579
|
id: e,
|
|
18580
18580
|
label: t,
|
|
18581
18581
|
tasks: n,
|
|
@@ -18613,7 +18613,7 @@ function V2({
|
|
|
18613
18613
|
// plain block child it would fall back to a button's shrink-to-fit width.
|
|
18614
18614
|
/* @__PURE__ */ L("div", { className: "relative flex flex-col", children: [
|
|
18615
18615
|
x === null ? null : /* @__PURE__ */ p(gi, {}),
|
|
18616
|
-
/* @__PURE__ */ p(
|
|
18616
|
+
/* @__PURE__ */ p(K2, { status: e, label: t })
|
|
18617
18617
|
] })
|
|
18618
18618
|
) : /* @__PURE__ */ p(Ud, {});
|
|
18619
18619
|
return /* @__PURE__ */ L(
|
|
@@ -18628,15 +18628,15 @@ function V2({
|
|
|
18628
18628
|
label: t,
|
|
18629
18629
|
count: n.length,
|
|
18630
18630
|
flagged: d ? 0 : n.filter(ho).length,
|
|
18631
|
-
children: c ? /* @__PURE__ */ p(
|
|
18631
|
+
children: c ? /* @__PURE__ */ p(W2, { status: e, label: t }) : null
|
|
18632
18632
|
}
|
|
18633
18633
|
),
|
|
18634
18634
|
/* @__PURE__ */ L("div", { className: "flex flex-1 flex-col gap-3 p-3", children: [
|
|
18635
18635
|
s ? /* @__PURE__ */ p(
|
|
18636
|
-
|
|
18636
|
+
C2,
|
|
18637
18637
|
{
|
|
18638
18638
|
items: b.map((y) => y.slug),
|
|
18639
|
-
strategy:
|
|
18639
|
+
strategy: j2,
|
|
18640
18640
|
children: k
|
|
18641
18641
|
}
|
|
18642
18642
|
) : k,
|
|
@@ -18654,7 +18654,7 @@ function V2({
|
|
|
18654
18654
|
}
|
|
18655
18655
|
);
|
|
18656
18656
|
}
|
|
18657
|
-
function
|
|
18657
|
+
function W2({
|
|
18658
18658
|
status: e,
|
|
18659
18659
|
label: t
|
|
18660
18660
|
}) {
|
|
@@ -18674,7 +18674,7 @@ function U2({
|
|
|
18674
18674
|
}
|
|
18675
18675
|
);
|
|
18676
18676
|
}
|
|
18677
|
-
function
|
|
18677
|
+
function K2({
|
|
18678
18678
|
status: e,
|
|
18679
18679
|
label: t
|
|
18680
18680
|
}) {
|
|
@@ -18720,7 +18720,7 @@ function Y2({
|
|
|
18720
18720
|
}
|
|
18721
18721
|
);
|
|
18722
18722
|
}
|
|
18723
|
-
function
|
|
18723
|
+
function q2({
|
|
18724
18724
|
overId: e,
|
|
18725
18725
|
overStatus: t,
|
|
18726
18726
|
overIsColumn: n,
|
|
@@ -18745,7 +18745,7 @@ function K2({
|
|
|
18745
18745
|
})
|
|
18746
18746
|
} : { status: t, position: -1 };
|
|
18747
18747
|
}
|
|
18748
|
-
function
|
|
18748
|
+
function X2({
|
|
18749
18749
|
activeSlug: e,
|
|
18750
18750
|
activeStatus: t,
|
|
18751
18751
|
overId: n,
|
|
@@ -18787,21 +18787,21 @@ function Wd({
|
|
|
18787
18787
|
}
|
|
18788
18788
|
return i;
|
|
18789
18789
|
}
|
|
18790
|
-
function
|
|
18790
|
+
function Z2() {
|
|
18791
18791
|
return /* @__PURE__ */ p("div", { className: "grid min-h-[70vh] place-items-center font-mono text-[12px] text-sb-silver", children: "Loading board..." });
|
|
18792
18792
|
}
|
|
18793
|
-
function
|
|
18793
|
+
function G2() {
|
|
18794
18794
|
const e = U((o) => o.selectedTaskSlug), t = U((o) => o.archiveViewOpen), n = U((o) => o.selectTask), r = U((o) => o.closeArchive);
|
|
18795
18795
|
return dd((o) => {
|
|
18796
18796
|
o.key === "Escape" && (t ? r() : n(null));
|
|
18797
|
-
}), /* @__PURE__ */ p("main", { className: "min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h))] px-5 py-5", children: t ? /* @__PURE__ */ p(lh, {}) : e ? /* @__PURE__ */ p(
|
|
18797
|
+
}), /* @__PURE__ */ p("main", { className: "min-h-[calc(var(--sb-viewport-h,100vh)-var(--sb-header-h))] px-5 py-5", children: t ? /* @__PURE__ */ p(lh, {}) : e ? /* @__PURE__ */ p(Py, { slug: e }) : /* @__PURE__ */ p(H2, {}) });
|
|
18798
18798
|
}
|
|
18799
|
-
const Ji = "sb-theme",
|
|
18799
|
+
const Ji = "sb-theme", Q2 = [
|
|
18800
18800
|
{ value: "system", label: "System theme", Icon: qf },
|
|
18801
18801
|
{ value: "light", label: "Light theme", Icon: Vf },
|
|
18802
18802
|
{ value: "dark", label: "Dark theme", Icon: Uf }
|
|
18803
18803
|
];
|
|
18804
|
-
function
|
|
18804
|
+
function J2() {
|
|
18805
18805
|
try {
|
|
18806
18806
|
const e = localStorage.getItem(Ji);
|
|
18807
18807
|
return e === "light" || e === "dark" ? e : "system";
|
|
@@ -18809,7 +18809,7 @@ function Q2() {
|
|
|
18809
18809
|
return "system";
|
|
18810
18810
|
}
|
|
18811
18811
|
}
|
|
18812
|
-
function
|
|
18812
|
+
function ew(e) {
|
|
18813
18813
|
const t = document.documentElement;
|
|
18814
18814
|
try {
|
|
18815
18815
|
e === "system" ? (t.removeAttribute("data-theme"), localStorage.removeItem(Ji)) : (t.dataset.theme = e, localStorage.setItem(Ji, e));
|
|
@@ -18817,9 +18817,9 @@ function J2(e) {
|
|
|
18817
18817
|
e === "system" ? t.removeAttribute("data-theme") : t.dataset.theme = e;
|
|
18818
18818
|
}
|
|
18819
18819
|
}
|
|
18820
|
-
function
|
|
18821
|
-
const [e, t] = Q(
|
|
18822
|
-
return /* @__PURE__ */ p("div", { className: "inline-flex h-9 items-center gap-0.5 rounded border border-sb-iron px-0.5", children:
|
|
18820
|
+
function tw() {
|
|
18821
|
+
const [e, t] = Q(J2);
|
|
18822
|
+
return /* @__PURE__ */ p("div", { className: "inline-flex h-9 items-center gap-0.5 rounded border border-sb-iron px-0.5", children: Q2.map(({ value: n, label: r, Icon: o }) => {
|
|
18823
18823
|
const i = e === n;
|
|
18824
18824
|
return /* @__PURE__ */ p(
|
|
18825
18825
|
"button",
|
|
@@ -18829,7 +18829,7 @@ function ew() {
|
|
|
18829
18829
|
"aria-pressed": i,
|
|
18830
18830
|
title: r,
|
|
18831
18831
|
onClick: () => {
|
|
18832
|
-
t(n),
|
|
18832
|
+
t(n), ew(n);
|
|
18833
18833
|
},
|
|
18834
18834
|
className: `rounded p-1.5 transition-colors ${i ? "bg-sb-accent/15 text-sb-accent" : "text-sb-silver hover:text-sb-frosted"}`,
|
|
18835
18835
|
children: /* @__PURE__ */ p(o, { className: "h-3.5 w-3.5", "aria-hidden": !0 })
|
|
@@ -18838,8 +18838,8 @@ function ew() {
|
|
|
18838
18838
|
);
|
|
18839
18839
|
}) });
|
|
18840
18840
|
}
|
|
18841
|
-
const
|
|
18842
|
-
function
|
|
18841
|
+
const nw = 200;
|
|
18842
|
+
function rw({
|
|
18843
18843
|
themeControl: e = !1
|
|
18844
18844
|
}) {
|
|
18845
18845
|
const t = ce(null), n = ce(null), r = U((N) => N.config), o = U((N) => N.selectedTaskSlug), i = U((N) => N.archiveViewOpen), s = U(
|
|
@@ -18867,7 +18867,7 @@ function nw({
|
|
|
18867
18867
|
}, []), ue(() => {
|
|
18868
18868
|
const N = window.setTimeout(() => {
|
|
18869
18869
|
f(w);
|
|
18870
|
-
},
|
|
18870
|
+
}, nw);
|
|
18871
18871
|
return () => window.clearTimeout(N);
|
|
18872
18872
|
}, [w, f]);
|
|
18873
18873
|
const k = () => {
|
|
@@ -18893,7 +18893,7 @@ function nw({
|
|
|
18893
18893
|
/* @__PURE__ */ p(bi, {})
|
|
18894
18894
|
] }) : null,
|
|
18895
18895
|
/* @__PURE__ */ p(
|
|
18896
|
-
|
|
18896
|
+
ow,
|
|
18897
18897
|
{
|
|
18898
18898
|
label: "Tasks",
|
|
18899
18899
|
isCurrent: !o && !i,
|
|
@@ -19000,13 +19000,13 @@ function nw({
|
|
|
19000
19000
|
}
|
|
19001
19001
|
),
|
|
19002
19002
|
v ? null : /* @__PURE__ */ p(Mo, {}),
|
|
19003
|
-
e ? /* @__PURE__ */ p(
|
|
19003
|
+
e ? /* @__PURE__ */ p(tw, {}) : null
|
|
19004
19004
|
] })
|
|
19005
19005
|
] })
|
|
19006
19006
|
}
|
|
19007
19007
|
);
|
|
19008
19008
|
}
|
|
19009
|
-
function
|
|
19009
|
+
function ow({
|
|
19010
19010
|
label: e,
|
|
19011
19011
|
isCurrent: t,
|
|
19012
19012
|
onClick: n
|
|
@@ -19024,7 +19024,7 @@ function rw({
|
|
|
19024
19024
|
function bi() {
|
|
19025
19025
|
return /* @__PURE__ */ p(ar, { className: "h-2.5 w-2.5 shrink-0 text-sb-iron" });
|
|
19026
19026
|
}
|
|
19027
|
-
const
|
|
19027
|
+
const iw = /* @__PURE__ */ p(Kf, { className: "h-4 w-4 shrink-0 text-sb-silver", "aria-hidden": !0 }), sw = /* @__PURE__ */ p(Xl, { className: "h-4 w-4 shrink-0 text-sb-silver", "aria-hidden": !0 });
|
|
19028
19028
|
function Vl() {
|
|
19029
19029
|
return /* @__PURE__ */ p(
|
|
19030
19030
|
Pf,
|
|
@@ -19041,8 +19041,8 @@ function Vl() {
|
|
|
19041
19041
|
"aria-hidden": !0
|
|
19042
19042
|
}
|
|
19043
19043
|
),
|
|
19044
|
-
info:
|
|
19045
|
-
loading:
|
|
19044
|
+
info: iw,
|
|
19045
|
+
loading: sw
|
|
19046
19046
|
},
|
|
19047
19047
|
toastOptions: {
|
|
19048
19048
|
unstyled: !0,
|
|
@@ -19060,8 +19060,8 @@ function Vl() {
|
|
|
19060
19060
|
}
|
|
19061
19061
|
);
|
|
19062
19062
|
}
|
|
19063
|
-
const
|
|
19064
|
-
function
|
|
19063
|
+
const aw = 6e4;
|
|
19064
|
+
function lw({ api: e }) {
|
|
19065
19065
|
const t = U((n) => n.refresh);
|
|
19066
19066
|
return ue(() => {
|
|
19067
19067
|
const n = () => {
|
|
@@ -19075,7 +19075,7 @@ function aw({ api: e }) {
|
|
|
19075
19075
|
return e.onTasksChanged(() => void t());
|
|
19076
19076
|
const n = window.setInterval(() => {
|
|
19077
19077
|
document.visibilityState === "visible" && t();
|
|
19078
|
-
},
|
|
19078
|
+
}, aw);
|
|
19079
19079
|
return () => window.clearInterval(n);
|
|
19080
19080
|
}, [e, t]), null;
|
|
19081
19081
|
}
|
|
@@ -19084,7 +19084,7 @@ const Ul = {
|
|
|
19084
19084
|
"new-update": "a new task update",
|
|
19085
19085
|
"edited-update": "an edited task update"
|
|
19086
19086
|
};
|
|
19087
|
-
function
|
|
19087
|
+
function cw() {
|
|
19088
19088
|
const e = U((u) => u.pendingNavigation), t = U((u) => u.dirtyDrafts), n = U((u) => u.discardAndNavigate), r = U((u) => u.keepEditing), o = ce(null), i = Object.keys(t).length > 0;
|
|
19089
19089
|
ue(() => {
|
|
19090
19090
|
if (!i) return;
|
|
@@ -19115,7 +19115,7 @@ function lw() {
|
|
|
19115
19115
|
/* @__PURE__ */ p(fs, { className: "text-base font-semibold text-sb-frosted", children: "Discard unsaved changes?" }),
|
|
19116
19116
|
/* @__PURE__ */ L(hs, { className: "mt-1 text-[13px] leading-relaxed text-sb-silver", children: [
|
|
19117
19117
|
"You have unsaved changes to ",
|
|
19118
|
-
|
|
19118
|
+
uw(a),
|
|
19119
19119
|
". Leaving this task discards them."
|
|
19120
19120
|
] }),
|
|
19121
19121
|
/* @__PURE__ */ L("div", { className: "mt-5 flex justify-end gap-2", children: [
|
|
@@ -19145,11 +19145,11 @@ function lw() {
|
|
|
19145
19145
|
}
|
|
19146
19146
|
);
|
|
19147
19147
|
}
|
|
19148
|
-
function
|
|
19148
|
+
function uw(e) {
|
|
19149
19149
|
return e.length <= 1 ? e[0] ?? "this task" : `${e.slice(0, -1).join(", ")} and ${e.at(-1)}`;
|
|
19150
19150
|
}
|
|
19151
19151
|
const Wl = "ShipBench Board";
|
|
19152
|
-
function
|
|
19152
|
+
function dw(e) {
|
|
19153
19153
|
const t = U((n) => {
|
|
19154
19154
|
var r;
|
|
19155
19155
|
return (r = n.config) == null ? void 0 : r.name;
|
|
@@ -19162,9 +19162,9 @@ function uw(e) {
|
|
|
19162
19162
|
};
|
|
19163
19163
|
}, [e, t]);
|
|
19164
19164
|
}
|
|
19165
|
-
function
|
|
19165
|
+
function fw({ api: e, themeControl: t, documentTitle: n }) {
|
|
19166
19166
|
return /* @__PURE__ */ p(Mf, { api: e, children: /* @__PURE__ */ p(
|
|
19167
|
-
|
|
19167
|
+
hw,
|
|
19168
19168
|
{
|
|
19169
19169
|
api: e,
|
|
19170
19170
|
themeControl: t,
|
|
@@ -19172,9 +19172,9 @@ function dw({ api: e, themeControl: t, documentTitle: n }) {
|
|
|
19172
19172
|
}
|
|
19173
19173
|
) });
|
|
19174
19174
|
}
|
|
19175
|
-
function
|
|
19175
|
+
function hw({ api: e, themeControl: t, documentTitle: n }) {
|
|
19176
19176
|
const r = U((c) => c.refresh), o = U((c) => c.hasLoaded), i = U((c) => c.initialLoadError), s = U((c) => c.isSyncing), a = ce(null);
|
|
19177
|
-
|
|
19177
|
+
dw(n), ue(() => {
|
|
19178
19178
|
r();
|
|
19179
19179
|
}, [r]);
|
|
19180
19180
|
const u = se(
|
|
@@ -19205,20 +19205,20 @@ function fw({ api: e, themeControl: t, documentTitle: n }) {
|
|
|
19205
19205
|
className: "sb-board-root sb-canvas-grid min-h-[var(--sb-viewport-h,100vh)] font-sans text-sb-frosted",
|
|
19206
19206
|
children: [
|
|
19207
19207
|
/* @__PURE__ */ p(Sa, {}),
|
|
19208
|
-
/* @__PURE__ */ p(
|
|
19209
|
-
/* @__PURE__ */ p(
|
|
19210
|
-
/* @__PURE__ */ p(
|
|
19211
|
-
/* @__PURE__ */ p(
|
|
19208
|
+
/* @__PURE__ */ p(lw, { api: e }),
|
|
19209
|
+
/* @__PURE__ */ p(rw, { themeControl: t }),
|
|
19210
|
+
/* @__PURE__ */ p(G2, {}),
|
|
19211
|
+
/* @__PURE__ */ p(cw, {}),
|
|
19212
19212
|
/* @__PURE__ */ p(Vl, {})
|
|
19213
19213
|
]
|
|
19214
19214
|
}
|
|
19215
19215
|
) });
|
|
19216
19216
|
}
|
|
19217
|
-
function
|
|
19218
|
-
const n =
|
|
19217
|
+
function kw(e, t) {
|
|
19218
|
+
const n = Kd(e);
|
|
19219
19219
|
return n.render(
|
|
19220
19220
|
/* @__PURE__ */ p(
|
|
19221
|
-
|
|
19221
|
+
fw,
|
|
19222
19222
|
{
|
|
19223
19223
|
api: t.api,
|
|
19224
19224
|
themeControl: t.themeControl,
|
|
@@ -19228,6 +19228,6 @@ function Sw(e, t) {
|
|
|
19228
19228
|
), n;
|
|
19229
19229
|
}
|
|
19230
19230
|
export {
|
|
19231
|
-
|
|
19232
|
-
|
|
19231
|
+
fw as Board,
|
|
19232
|
+
kw as createBoard
|
|
19233
19233
|
};
|