@danxbot/ui 15.23.0 → 15.24.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 +197 -154
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Board.d.ts +21 -1
- package/dist/types/components/board/recipe.d.ts +36 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as T, Fragment as it } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import xu, { createElement as Sx, useLayoutEffect as Gn, useState as fe, useRef as ye, useId as _t, Component as wT, useCallback as Re, useEffect as
|
|
3
|
+
import xu, { createElement as Sx, useLayoutEffect as Gn, useState as fe, useRef as ye, useId as _t, Component as wT, useCallback as Re, useEffect as Fe, createContext as Mn, useContext as Tn, useMemo as Oe, memo as vu, useImperativeHandle as CT, Fragment as kh, Children as ET, isValidElement as ST, useSyncExternalStore as $r } from "react";
|
|
4
4
|
import * as Nn from "react-dom";
|
|
5
5
|
import { createPortal as kT } from "react-dom";
|
|
6
6
|
const NT = {
|
|
@@ -8621,8 +8621,8 @@ function mi(e, t = {}) {
|
|
|
8621
8621
|
// element was injected after the floating element rendered.
|
|
8622
8622
|
re.every((Ae) => !Pe(Ce, Ae)))) {
|
|
8623
8623
|
if (yt(ce) && !("touches" in ee)) {
|
|
8624
|
-
const Ae = Kr(ce), Te = In(ce), Ie = /auto|scroll/, Ne = Ae || Ie.test(Te.overflowX), Ye = Ae || Ie.test(Te.overflowY), Ue = Ne && ce.clientWidth > 0 && ce.scrollWidth > ce.clientWidth, Le = Ye && ce.clientHeight > 0 && ce.scrollHeight > ce.clientHeight, Me = Te.direction === "rtl",
|
|
8625
|
-
if (
|
|
8624
|
+
const Ae = Kr(ce), Te = In(ce), Ie = /auto|scroll/, Ne = Ae || Ie.test(Te.overflowX), Ye = Ae || Ie.test(Te.overflowY), Ue = Ne && ce.clientWidth > 0 && ce.scrollWidth > ce.clientWidth, Le = Ye && ce.clientHeight > 0 && ce.scrollHeight > ce.clientHeight, Me = Te.direction === "rtl", Ve = Le && (Me ? ee.offsetX <= ce.offsetWidth - ce.clientWidth : ee.offsetX > ce.clientWidth), We = Ue && ee.offsetY > ce.clientHeight;
|
|
8625
|
+
if (Ve || We)
|
|
8626
8626
|
return;
|
|
8627
8627
|
}
|
|
8628
8628
|
if (!Z(ee)) {
|
|
@@ -12496,7 +12496,7 @@ function m_(e, t) {
|
|
|
12496
12496
|
if (m && b && we.reference && we.floating)
|
|
12497
12497
|
return bv(we.reference, we.floating, xe, ie);
|
|
12498
12498
|
}, [m, b, we, xe, ie]);
|
|
12499
|
-
const Ue = or(Q), Le = bC(o, Ue, O), Me = Do(Q) || "center",
|
|
12499
|
+
const Ue = or(Q), Le = bC(o, Ue, O), Me = Do(Q) || "center", Ve = !!ce.hide?.referenceHidden;
|
|
12500
12500
|
ve(() => {
|
|
12501
12501
|
E && b && be && Ue !== L && k(Ue);
|
|
12502
12502
|
}, [E, b, be, Ue, L]);
|
|
@@ -12513,12 +12513,12 @@ function m_(e, t) {
|
|
|
12513
12513
|
side: Le,
|
|
12514
12514
|
align: Me,
|
|
12515
12515
|
physicalSide: Ue,
|
|
12516
|
-
anchorHidden:
|
|
12516
|
+
anchorHidden: Ve,
|
|
12517
12517
|
refs: he,
|
|
12518
12518
|
context: re,
|
|
12519
12519
|
isPositioned: be,
|
|
12520
12520
|
update: xe
|
|
12521
|
-
}), [Ne, We, Z, tt, Le, Me, Ue,
|
|
12521
|
+
}), [Ne, We, Z, tt, Le, Me, Ue, Ve, he, re, be, xe]);
|
|
12522
12522
|
}
|
|
12523
12523
|
function Ov(e) {
|
|
12524
12524
|
return e != null && "current" in e;
|
|
@@ -15538,9 +15538,9 @@ function sE(e) {
|
|
|
15538
15538
|
const t = ye(e);
|
|
15539
15539
|
t.current = e;
|
|
15540
15540
|
const [n, r] = fe(!1), [o, s] = fe(null), [i, a] = fe(null), [l, c] = fe(0), u = ye(!1), p = ye(0), f = ye(e.value), h = ye(null), m = ye([]);
|
|
15541
|
-
|
|
15541
|
+
Fe(() => {
|
|
15542
15542
|
l > 0 && t.current.refocus();
|
|
15543
|
-
}, [l]),
|
|
15543
|
+
}, [l]), Fe(
|
|
15544
15544
|
() => () => {
|
|
15545
15545
|
p.current += 1;
|
|
15546
15546
|
},
|
|
@@ -15741,7 +15741,7 @@ function rF(e, t) {
|
|
|
15741
15741
|
}
|
|
15742
15742
|
function oF(e, t, n) {
|
|
15743
15743
|
const r = ye(n);
|
|
15744
|
-
r.current = n,
|
|
15744
|
+
r.current = n, Fe(() => {
|
|
15745
15745
|
const o = e.current;
|
|
15746
15746
|
if (!o) return;
|
|
15747
15747
|
function s(i) {
|
|
@@ -15761,7 +15761,7 @@ function sF({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...
|
|
|
15761
15761
|
function g() {
|
|
15762
15762
|
c.current !== null && (clearTimeout(c.current), c.current = null);
|
|
15763
15763
|
}
|
|
15764
|
-
|
|
15764
|
+
Fe(
|
|
15765
15765
|
() => () => {
|
|
15766
15766
|
if (h.current = !0, c.current === null) return;
|
|
15767
15767
|
g();
|
|
@@ -15907,13 +15907,13 @@ function SK(e) {
|
|
|
15907
15907
|
onError: p,
|
|
15908
15908
|
close: W
|
|
15909
15909
|
}), { pending: z, refusal: F, blocked: B } = _, O = _t(), L = _t(), $ = u !== void 0, H = N && !$;
|
|
15910
|
-
|
|
15910
|
+
Fe(() => {
|
|
15911
15911
|
S && N && $ && k(!1);
|
|
15912
15912
|
}, [S, N, $, k]);
|
|
15913
15913
|
function G(ie) {
|
|
15914
15914
|
I.current = ie, typeof w == "function" ? w(ie) : w && (w.current = ie);
|
|
15915
15915
|
}
|
|
15916
|
-
|
|
15916
|
+
Fe(() => {
|
|
15917
15917
|
const ie = I.current;
|
|
15918
15918
|
if (!ie) return;
|
|
15919
15919
|
H && !D.current ? (_.begin(t, o?.(t) ?? null), V.seed(t), P.current = !0, qv(ie, t), aE(ie), ie.focus(), M(t.length === 0)) : H || (P.current && X(), qv(ie, t), M(t.length === 0)), D.current = H;
|
|
@@ -16063,7 +16063,7 @@ function kK({
|
|
|
16063
16063
|
}) {
|
|
16064
16064
|
$m("EditGutter", n, r);
|
|
16065
16065
|
const [a, l] = Gs(n, !1, r), c = ye(null), u = ye(null), p = !a && !o, [f, h] = fe(!1);
|
|
16066
|
-
uF(c, u, p), dF(c, u, a),
|
|
16066
|
+
uF(c, u, p), dF(c, u, a), Fe(() => {
|
|
16067
16067
|
p || h(!1);
|
|
16068
16068
|
}, [p]);
|
|
16069
16069
|
function m(g) {
|
|
@@ -16125,7 +16125,7 @@ function cF(e) {
|
|
|
16125
16125
|
}
|
|
16126
16126
|
function uF(e, t, n) {
|
|
16127
16127
|
const r = ye(!1);
|
|
16128
|
-
|
|
16128
|
+
Fe(() => {
|
|
16129
16129
|
const o = e.current, s = t.current;
|
|
16130
16130
|
if (!n || !o || !s) return;
|
|
16131
16131
|
function i() {
|
|
@@ -16150,7 +16150,7 @@ function uF(e, t, n) {
|
|
|
16150
16150
|
}
|
|
16151
16151
|
function dF(e, t, n) {
|
|
16152
16152
|
const r = ye(n);
|
|
16153
|
-
|
|
16153
|
+
Fe(() => {
|
|
16154
16154
|
const o = r.current && !n;
|
|
16155
16155
|
if (r.current = n, !o) return;
|
|
16156
16156
|
const s = document.activeElement;
|
|
@@ -24065,7 +24065,7 @@ function Pz(e, t) {
|
|
|
24065
24065
|
}
|
|
24066
24066
|
function Oz(e, t) {
|
|
24067
24067
|
const [n, r] = fe(0), o = ye(null);
|
|
24068
|
-
return
|
|
24068
|
+
return Fe(() => {
|
|
24069
24069
|
if (!e) return;
|
|
24070
24070
|
const s = e.root.ownerDocument, i = () => r((a) => a + 1);
|
|
24071
24071
|
return s.addEventListener("selectionchange", i), () => s.removeEventListener("selectionchange", i);
|
|
@@ -24116,7 +24116,7 @@ function Sy({ surface: e, state: t, run: n, container: r, external: o }) {
|
|
|
24116
24116
|
},
|
|
24117
24117
|
[e, r]
|
|
24118
24118
|
);
|
|
24119
|
-
|
|
24119
|
+
Fe(() => {
|
|
24120
24120
|
if (!e || !r || c) return;
|
|
24121
24121
|
const h = e.root, m = (b) => {
|
|
24122
24122
|
const x = Hz(e, b.clientX, b.clientY);
|
|
@@ -24128,7 +24128,7 @@ function Sy({ surface: e, state: t, run: n, container: r, external: o }) {
|
|
|
24128
24128
|
return h.addEventListener("pointermove", m), r.addEventListener("pointerleave", g), () => {
|
|
24129
24129
|
h.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", g);
|
|
24130
24130
|
};
|
|
24131
|
-
}, [e, r, p, c, t.caret]),
|
|
24131
|
+
}, [e, r, p, c, t.caret]), Fe(() => {
|
|
24132
24132
|
c || t.caret === null || (l(t.caret), i(p(t.caret)));
|
|
24133
24133
|
}, [t.caret, p, c]);
|
|
24134
24134
|
const f = Oe(
|
|
@@ -24340,7 +24340,7 @@ function Rr({ icon: e, label: t, onClick: n }) {
|
|
|
24340
24340
|
}
|
|
24341
24341
|
function $z({ surface: e, state: t, run: n, container: r }) {
|
|
24342
24342
|
const [o, s] = fe(null);
|
|
24343
|
-
if (
|
|
24343
|
+
if (Fe(() => {
|
|
24344
24344
|
if (!e || !r) return;
|
|
24345
24345
|
const a = e.root, l = (c) => {
|
|
24346
24346
|
const u = e.getSelection();
|
|
@@ -24584,7 +24584,7 @@ function Yz({
|
|
|
24584
24584
|
const N = ye(p);
|
|
24585
24585
|
N.current = p;
|
|
24586
24586
|
const [k, R] = fe(e.length === 0), M = _t(), I = ye(c), [P, A] = fe(null), [D, _] = fe(0), [V, z] = fe(null), F = ye(t);
|
|
24587
|
-
F.current = t,
|
|
24587
|
+
F.current = t, Fe(() => {
|
|
24588
24588
|
if (!g.current) return;
|
|
24589
24589
|
const W = new tz({
|
|
24590
24590
|
uploader: () => S.current,
|
|
@@ -24650,13 +24650,13 @@ function Yz({
|
|
|
24650
24650
|
}
|
|
24651
24651
|
}),
|
|
24652
24652
|
[r, n]
|
|
24653
|
-
),
|
|
24653
|
+
), Fe(() => {
|
|
24654
24654
|
b.current?.setSource(e), R(e.length === 0), x.current?.sync();
|
|
24655
|
-
}, [e]),
|
|
24655
|
+
}, [e]), Fe(() => {
|
|
24656
24656
|
x.current?.uploaderChanged();
|
|
24657
24657
|
}, [E]);
|
|
24658
24658
|
const B = !n && v.unstored > 0;
|
|
24659
|
-
|
|
24659
|
+
Fe(() => {
|
|
24660
24660
|
if (!B) return;
|
|
24661
24661
|
const W = (j) => {
|
|
24662
24662
|
j.preventDefault(), j.returnValue = !0;
|
|
@@ -25070,7 +25070,7 @@ function LK(e) {
|
|
|
25070
25070
|
close: () => n(!1),
|
|
25071
25071
|
refocus: () => o.current?.focus()
|
|
25072
25072
|
});
|
|
25073
|
-
return
|
|
25073
|
+
return Fe(() => {
|
|
25074
25074
|
t && r && n(!1);
|
|
25075
25075
|
}, [t, r, n]), t && !r ? /* @__PURE__ */ d(o5, { ...e, session: s, editorRef: o }) : /* @__PURE__ */ d(r5, { ...e });
|
|
25076
25076
|
}
|
|
@@ -25115,12 +25115,12 @@ function o5({
|
|
|
25115
25115
|
function E(R) {
|
|
25116
25116
|
C.current !== R && (C.current = R, v.current?.(R));
|
|
25117
25117
|
}
|
|
25118
|
-
|
|
25118
|
+
Fe(() => () => E(!1), []);
|
|
25119
25119
|
const S = s5({
|
|
25120
25120
|
shouldCommit: () => !l.isPending() && x.current === null,
|
|
25121
25121
|
commit: w
|
|
25122
25122
|
});
|
|
25123
|
-
|
|
25123
|
+
Fe(() => {
|
|
25124
25124
|
l.begin(e);
|
|
25125
25125
|
const R = c.current;
|
|
25126
25126
|
if (!R) throw new Error("InlineMarkdownEdit: the editor was not mounted when the field opened.");
|
|
@@ -25179,7 +25179,7 @@ function s5({ shouldCommit: e, commit: t }) {
|
|
|
25179
25179
|
function i() {
|
|
25180
25180
|
r.current !== null && clearTimeout(r.current), r.current = null, o.current !== null && window.removeEventListener("focus", o.current), o.current = null;
|
|
25181
25181
|
}
|
|
25182
|
-
|
|
25182
|
+
Fe(() => i, []);
|
|
25183
25183
|
function a() {
|
|
25184
25184
|
r.current !== null && clearTimeout(r.current), r.current = setTimeout(l, 0);
|
|
25185
25185
|
}
|
|
@@ -25514,7 +25514,7 @@ const d5 = {
|
|
|
25514
25514
|
const re = ne.current === "vertical", be = re ? H.current : G.current, Ce = re ? L.current : $.current;
|
|
25515
25515
|
if (!be || !Ce)
|
|
25516
25516
|
return;
|
|
25517
|
-
const Ae = re ? "y" : "x", Te = bo(Ce, "padding", Ae), Ie = bo(be, "margin", Ae), Ne = re ? be.offsetHeight : be.offsetWidth, Ue = (re ? Ce.offsetHeight : Ce.offsetWidth) - Ne - Te - Ie, Le = re ? xe.clientY - X.current : xe.clientX - W.current, Me = Ue <= 0 ? 0 : Le / Ue,
|
|
25517
|
+
const Ae = re ? "y" : "x", Te = bo(Ce, "padding", Ae), Ie = bo(be, "margin", Ae), Ne = re ? be.offsetHeight : be.offsetWidth, Ue = (re ? Ce.offsetHeight : Ce.offsetWidth) - Ne - Te - Ie, Le = re ? xe.clientY - X.current : xe.clientX - W.current, Me = Ue <= 0 ? 0 : Le / Ue, Ve = re ? Q.scrollHeight : Q.scrollWidth, We = re ? Q.clientHeight : Q.clientWidth, Ke = (re ? j.current : Z.current) + Me * (Ve - We);
|
|
25518
25518
|
re ? Q.scrollTop = Ke : Q.scrollLeft = Ke, xe.preventDefault(), J(re);
|
|
25519
25519
|
});
|
|
25520
25520
|
function ie(xe) {
|
|
@@ -25686,7 +25686,7 @@ const ok = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
25686
25686
|
const oe = se ? 0 : Gp(Z, ie), ee = se ? 0 : ie - oe, ce = de ? 0 : j, xe = se ? 0 : W;
|
|
25687
25687
|
let Q = 0, re = 0;
|
|
25688
25688
|
!de && !se && (Q = L?.offsetWidth || 0, re = $?.offsetHeight || 0);
|
|
25689
|
-
const be = h.width === 0 && h.height === 0, Ce = be ? Q : 0, Ae = be ? re : 0, Te = bo($, "padding", "x"), Ie = bo(L, "padding", "y"), Ne = bo(G, "margin", "x"), Ye = bo(H, "margin", "y"), Ue = ce - Te - Ne, Le = xe - Ie - Ye, Me = $ ? Math.min($.offsetWidth - Ce, Ue) : Ue,
|
|
25689
|
+
const be = h.width === 0 && h.height === 0, Ce = be ? Q : 0, Ae = be ? re : 0, Te = bo($, "padding", "x"), Ie = bo(L, "padding", "y"), Ne = bo(G, "margin", "x"), Ye = bo(H, "margin", "y"), Ue = ce - Te - Ne, Le = xe - Ie - Ye, Me = $ ? Math.min($.offsetWidth - Ce, Ue) : Ue, Ve = L ? Math.min(L.offsetHeight - Ae, Le) : Le, We = Math.max(jp, Me * pe), tt = Math.max(jp, Ve * le);
|
|
25690
25690
|
if (g(($e) => zl($e, {
|
|
25691
25691
|
width: We,
|
|
25692
25692
|
height: tt
|
|
@@ -27060,9 +27060,9 @@ const D5 = "data-parent", vk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27060
27060
|
Me.preventDefault();
|
|
27061
27061
|
return;
|
|
27062
27062
|
}
|
|
27063
|
-
const
|
|
27064
|
-
if (h?.(
|
|
27065
|
-
const tt =
|
|
27063
|
+
const Ve = Me.currentTarget.checked, We = Se(Mt, Me.nativeEvent);
|
|
27064
|
+
if (h?.(Ve, We), !We.isCanceled && (se?.(Ve, We), !We.isCanceled && (ce(Ve), W !== void 0 && H !== void 0 && !m && !Y))) {
|
|
27065
|
+
const tt = Ve ? [...H.value, W] : H.value.filter((Ke) => Ke !== W);
|
|
27066
27066
|
H.setValue(tt, We);
|
|
27067
27067
|
}
|
|
27068
27068
|
},
|
|
@@ -27117,22 +27117,22 @@ const D5 = "data-parent", vk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
27117
27117
|
onKeyDown(Me) {
|
|
27118
27118
|
if (Me.key !== "Enter" || (Me.preventBaseUIHandler(), Me.defaultPrevented))
|
|
27119
27119
|
return;
|
|
27120
|
-
const
|
|
27120
|
+
const Ve = re.current?.form ?? null, We = Me.currentTarget, tt = Me.nativeEvent, Ke = Me.preventDefault, et = tt.preventDefault;
|
|
27121
27121
|
let $e = !1;
|
|
27122
27122
|
Me.preventDefault = () => {
|
|
27123
27123
|
$e = !0, Ke.call(Me);
|
|
27124
27124
|
}, tt.preventDefault = () => {
|
|
27125
27125
|
$e = !0, et.call(tt);
|
|
27126
27126
|
}, et.call(tt), gt(We).queueMicrotask(() => {
|
|
27127
|
-
Me.preventDefault = Ke, tt.preventDefault = et, $e || P5(
|
|
27127
|
+
Me.preventDefault = Ke, tt.preventDefault = et, $e || P5(Ve)?.click();
|
|
27128
27128
|
});
|
|
27129
27129
|
},
|
|
27130
27130
|
onClick(Me) {
|
|
27131
27131
|
if (g || K)
|
|
27132
27132
|
return;
|
|
27133
27133
|
Me.preventDefault();
|
|
27134
|
-
const
|
|
27135
|
-
|
|
27134
|
+
const Ve = re.current;
|
|
27135
|
+
Ve && es(Ve, Me);
|
|
27136
27136
|
}
|
|
27137
27137
|
}, S, de, he, $, (Me) => oe.getValidationProps(K, Me)],
|
|
27138
27138
|
stateAttributesMapping: Ue
|
|
@@ -28722,8 +28722,8 @@ const Z5 = {
|
|
|
28722
28722
|
if (!z.current)
|
|
28723
28723
|
Te === "vertical" ? be > 0 ? Ie = "down" : be < 0 && (Ie = "up") : Te === "horizontal" ? re > 0 ? Ie = "right" : re < 0 && (Ie = "left") : Math.abs(re) >= Math.abs(be) ? Ie = re > 0 ? "right" : "left" : Ie = be > 0 ? "down" : "up", Ie && u.includes(Ie) && (z.current = Ie, F.current = Df(Ie, re, be), m(Ie));
|
|
28724
28724
|
else {
|
|
28725
|
-
const
|
|
28726
|
-
We > Dy ? (B.current = !1, m(
|
|
28725
|
+
const Ve = z.current, We = Df(Ve, Ae, Ce);
|
|
28726
|
+
We > Dy ? (B.current = !1, m(Ve)) : !(u.includes("left") && u.includes("right")) && !(u.includes("up") && u.includes("down")) && F.current - We >= Q5 && (B.current = !0);
|
|
28727
28727
|
}
|
|
28728
28728
|
const Ne = te(re, be);
|
|
28729
28729
|
let Ye = V.current.x, Ue = V.current.y;
|
|
@@ -29228,7 +29228,7 @@ const jk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29228
29228
|
const Te = ge((Le, Me) => {
|
|
29229
29229
|
if (Number.isNaN(Le) || r3(Le, W))
|
|
29230
29230
|
return !1;
|
|
29231
|
-
const
|
|
29231
|
+
const Ve = Me.event, We = Ve.constructor, tt = new We(Ve.type, Ve);
|
|
29232
29232
|
return Object.defineProperty(tt, "target", {
|
|
29233
29233
|
writable: !0,
|
|
29234
29234
|
value: {
|
|
@@ -29236,13 +29236,13 @@ const jk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29236
29236
|
name: X
|
|
29237
29237
|
}
|
|
29238
29238
|
}), Me.event = tt, P(Le, Me), Me.isCanceled ? !1 : (de.current = Me.reason, j(Le), !0);
|
|
29239
|
-
}), Ie = ge((Le, Me,
|
|
29239
|
+
}), Ie = ge((Le, Me, Ve) => {
|
|
29240
29240
|
const We = Hk(Le, Me, h, f, be, Ce);
|
|
29241
29241
|
if (Uk(We, C, m)) {
|
|
29242
|
-
const tt = "key" in
|
|
29242
|
+
const tt = "key" in Ve ? Dr : nr, Ke = Te(We, Se(tt, Ve.nativeEvent, void 0, {
|
|
29243
29243
|
activeThumbIndex: Me
|
|
29244
29244
|
}));
|
|
29245
|
-
F(!0), Ke && A(We, $n(tt,
|
|
29245
|
+
F(!0), Ke && A(We, $n(tt, Ve.nativeEvent));
|
|
29246
29246
|
}
|
|
29247
29247
|
});
|
|
29248
29248
|
process.env.NODE_ENV !== "production" && h >= f && gr("Slider `max` must be greater than `min`."), ve(() => {
|
|
@@ -29828,7 +29828,7 @@ const Qk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29828
29828
|
index: Ae
|
|
29829
29829
|
} = xr({
|
|
29830
29830
|
metadata: be
|
|
29831
|
-
}), Te = se ? m ?? Ae : 0, Ie = Te === te.length - 1, Ne = te[Te], Ye = Ea(Ne, B, F), [Ue, Le] = y.useState(), Me = Ug(),
|
|
29831
|
+
}), Te = se ? m ?? Ae : 0, Ie = Te === te.length - 1, Ne = te[Te], Ye = Ea(Ne, B, F), [Ue, Le] = y.useState(), Me = Ug(), Ve = k >= 0 && k < te.length ? k : -1, We = ge(() => {
|
|
29832
29832
|
const _e = R.current, Rt = he.current;
|
|
29833
29833
|
if (!_e || !Rt)
|
|
29834
29834
|
return;
|
|
@@ -29855,7 +29855,7 @@ const Qk = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
29855
29855
|
}, [R, We, D]);
|
|
29856
29856
|
const tt = de ? "bottom" : "insetInlineStart", Ke = de ? "left" : "top";
|
|
29857
29857
|
let et;
|
|
29858
|
-
se ? N === Te ? et = 2 :
|
|
29858
|
+
se ? N === Te ? et = 2 : Ve === Te && (et = 1) : N === Te && (et = 1);
|
|
29859
29859
|
let $e;
|
|
29860
29860
|
!D && !Number.isFinite(Ye) ? $e = Kn : $e = {
|
|
29861
29861
|
position: "absolute",
|
|
@@ -30267,7 +30267,7 @@ function tN(e, t, { isValid: n, enabled: r = !0 }) {
|
|
|
30267
30267
|
const c = jg(e, n);
|
|
30268
30268
|
return c === void 0 ? o() : c;
|
|
30269
30269
|
}), a = ye(!1);
|
|
30270
|
-
|
|
30270
|
+
Fe(() => {
|
|
30271
30271
|
if (!(!e || !r)) {
|
|
30272
30272
|
if (!a.current) {
|
|
30273
30273
|
a.current = !0;
|
|
@@ -30296,7 +30296,7 @@ function Ed({
|
|
|
30296
30296
|
const a = b3(t);
|
|
30297
30297
|
return n.includes(a ?? "") ? a : r();
|
|
30298
30298
|
});
|
|
30299
|
-
|
|
30299
|
+
Fe(() => {
|
|
30300
30300
|
y3(e, o), x3(t, o);
|
|
30301
30301
|
}, [e, t, o]);
|
|
30302
30302
|
const i = Re(() => {
|
|
@@ -30513,7 +30513,7 @@ function tq({
|
|
|
30513
30513
|
!1,
|
|
30514
30514
|
{ isValid: P3 }
|
|
30515
30515
|
), x = ye(null);
|
|
30516
|
-
|
|
30516
|
+
Fe(() => {
|
|
30517
30517
|
c !== void 0 && x.current?.scrollTo({ top: 0, behavior: "instant" });
|
|
30518
30518
|
}, [c]);
|
|
30519
30519
|
const [w, v] = fe(!1), C = /* @__PURE__ */ d(
|
|
@@ -32108,9 +32108,9 @@ function lq({
|
|
|
32108
32108
|
})).filter((m) => m.score >= 0);
|
|
32109
32109
|
return h.sort((m, g) => g.score - m.score), h.map((m) => m.item);
|
|
32110
32110
|
}, [e, s]);
|
|
32111
|
-
|
|
32111
|
+
Fe(() => {
|
|
32112
32112
|
t && (i(""), l(0));
|
|
32113
|
-
}, [t]),
|
|
32113
|
+
}, [t]), Fe(() => l(0), [s]);
|
|
32114
32114
|
function u(h) {
|
|
32115
32115
|
h.key === "ArrowDown" ? (h.preventDefault(), l((m) => (m + 1) % Math.max(c.length, 1))) : h.key === "ArrowUp" ? (h.preventDefault(), l((m) => (m - 1 + c.length) % Math.max(c.length, 1))) : h.key === "Enter" && c[a] && (h.preventDefault(), c[a].onSelect(), n(!1));
|
|
32116
32116
|
}
|
|
@@ -32224,7 +32224,7 @@ function lq({
|
|
|
32224
32224
|
}
|
|
32225
32225
|
function cq(e = "k") {
|
|
32226
32226
|
const [t, n] = fe(!1);
|
|
32227
|
-
return
|
|
32227
|
+
return Fe(() => {
|
|
32228
32228
|
function r(o) {
|
|
32229
32229
|
o.key.toLowerCase() === e && (o.metaKey || o.ctrlKey) && (o.preventDefault(), n((s) => !s));
|
|
32230
32230
|
}
|
|
@@ -32403,28 +32403,28 @@ const SN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
32403
32403
|
const de = rC(), pe = Pt(E), le = y.useRef(!1), ae = ge((Ie, Ne) => {
|
|
32404
32404
|
le.current = !1, x?.(Ie, Ne);
|
|
32405
32405
|
}), ie = y.useRef(!0), he = y.useRef(null), [we, oe] = y.useState(() => fr(J, S, E)), [ee, ce] = y.useState("numeric"), xe = ge(() => {
|
|
32406
|
-
const Ie = CN(S, E), Ne = new Set(x4), Ye = (
|
|
32407
|
-
Ne.add(Ue), Ie.forEach((
|
|
32408
|
-
|
|
32406
|
+
const Ie = CN(S, E), Ne = new Set(x4), Ye = (Ve) => Ve.forEach((We) => Ne.add(We)), Ue = Ie.find((Ve) => Ve.type === "decimal")?.value ?? Xg(S, E).decimal;
|
|
32407
|
+
Ne.add(Ue), Ie.forEach((Ve) => {
|
|
32408
|
+
Ve.type === "integer" || Ve.type === "fraction" || Ve.type === "exponentInteger" || Ve.type === "compact" || (Ye(Array.from(Ve.value)), v4.test(Ve.value) && Ne.add(" "));
|
|
32409
32409
|
});
|
|
32410
32410
|
const Le = W === "percent" || W === "unit" && E?.unit === "percent", Me = W === "percent" || W === "unit" && E?.unit === "permille";
|
|
32411
32411
|
return Le && Ye(a4), Me && Ye(l4), Ye(C4), (Y < 0 || C) && Ye(E4), Ne;
|
|
32412
32412
|
}), Q = ge((Ie) => Ie?.altKey ? i : Ie?.shiftKey ? l : $), re = ge((Ie, Ne) => {
|
|
32413
|
-
const Ye = Ne.event, Ue = Ne.direction, Le = Ne.reason.startsWith("input-") || Ne.reason === Mt, Me = !C || !Le,
|
|
32413
|
+
const Ye = Ne.event, Ue = Ne.direction, Le = Ne.reason.startsWith("input-") || Ne.reason === Mt, Me = !C || !Le, Ve = I4(Ie, Ue ? Q(Ye) * Ue : void 0, Y, K, X, pe.current, v, Ye?.altKey ?? !1, Me), We = Ve !== J || Le && (Ie !== J || ie.current === !1);
|
|
32414
32414
|
if (We) {
|
|
32415
|
-
if (b?.(
|
|
32415
|
+
if (b?.(Ve, Ne), Ne.isCanceled)
|
|
32416
32416
|
return !1;
|
|
32417
|
-
q(
|
|
32417
|
+
q(Ve), P(Ve !== A.initialValue), le.current = !0;
|
|
32418
32418
|
}
|
|
32419
|
-
return he.current =
|
|
32419
|
+
return he.current = Ve, ie.current && oe(fr(Ve, S, E)), de(), We;
|
|
32420
32420
|
}), be = ge((Ie, {
|
|
32421
32421
|
direction: Ne,
|
|
32422
32422
|
currentValue: Ye,
|
|
32423
32423
|
event: Ue,
|
|
32424
32424
|
reason: Le
|
|
32425
32425
|
}) => {
|
|
32426
|
-
const Me = Ye ?? se.current,
|
|
32427
|
-
return typeof Me != "number" ? re(0, Se(Le,
|
|
32426
|
+
const Me = Ye ?? se.current, Ve = Ue;
|
|
32427
|
+
return typeof Me != "number" ? re(0, Se(Le, Ve)) : re(Me + Ie * Ne, Se(Le, Ve, void 0, {
|
|
32428
32428
|
direction: Ne
|
|
32429
32429
|
}));
|
|
32430
32430
|
});
|
|
@@ -33484,7 +33484,7 @@ const AN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33484
33484
|
value: ut,
|
|
33485
33485
|
eventDetails: _e
|
|
33486
33486
|
} : ut.length !== f && (te.current = null), ut));
|
|
33487
|
-
}),
|
|
33487
|
+
}), Ve = ge((Xe, lt) => {
|
|
33488
33488
|
S?.(Xe, lt);
|
|
33489
33489
|
}), We = ge((Xe, lt) => {
|
|
33490
33490
|
if (Xe > ce.current.length) {
|
|
@@ -33523,7 +33523,7 @@ const AN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33523
33523
|
length: f,
|
|
33524
33524
|
mask: m,
|
|
33525
33525
|
pattern: ie,
|
|
33526
|
-
reportValueInvalid:
|
|
33526
|
+
reportValueInvalid: Ve,
|
|
33527
33527
|
readOnly: v,
|
|
33528
33528
|
required: C,
|
|
33529
33529
|
normalizeValue: x,
|
|
@@ -33531,7 +33531,7 @@ const AN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33531
33531
|
state: et,
|
|
33532
33532
|
validationType: b,
|
|
33533
33533
|
value: ee
|
|
33534
|
-
}), [Ie, i, Y, Ne, p, Ke, tt, We, we, de, _, f, m, ie, Ye, v,
|
|
33534
|
+
}), [Ie, i, Y, Ne, p, Ke, tt, We, we, de, _, f, m, ie, Ye, v, Ve, C, x, Me, et, b, ee]), xt = Ee("div", t, {
|
|
33535
33535
|
ref: [n, j],
|
|
33536
33536
|
state: et,
|
|
33537
33537
|
props: [{
|
|
@@ -33557,7 +33557,7 @@ const AN = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
33557
33557
|
if (Xe.nativeEvent.defaultPrevented || Y || v)
|
|
33558
33558
|
return;
|
|
33559
33559
|
const lt = Xe.currentTarget.value, [ut, Bt] = Jc(lt, f, b, x);
|
|
33560
|
-
Bt &&
|
|
33560
|
+
Bt && Ve(lt, $n(nr, Xe.nativeEvent));
|
|
33561
33561
|
const _e = Me(ut, Se(nr, Xe.nativeEvent));
|
|
33562
33562
|
_e != null && _e !== "" && Ye(_e.length - 1, _e);
|
|
33563
33563
|
}
|
|
@@ -34098,7 +34098,7 @@ function aB(e) {
|
|
|
34098
34098
|
id: t
|
|
34099
34099
|
}), se = iB({
|
|
34100
34100
|
locale: L
|
|
34101
|
-
}), [de, pe] = y.useState(!1), [le, ae] = y.useState(null), ie = y.useRef([]), he = y.useRef([]), we = y.useRef(null), oe = y.useRef(null), ee = y.useRef(null), ce = y.useRef(null), xe = y.useRef(null), Q = y.useRef(!0), re = y.useRef(!1), be = y.useRef(null), Ce = y.useRef(null), Ae = y.useRef(null), Te = y.useRef(Lf), Ie = y.useRef(null), Ne = y.useRef([]), Ye = y.useRef(null), Ue = W || m, Le = X ?? f, Me = u === "multiple",
|
|
34101
|
+
}), [de, pe] = y.useState(!1), [le, ae] = y.useState(null), ie = y.useRef([]), he = y.useRef([]), we = y.useRef(null), oe = y.useRef(null), ee = y.useRef(null), ce = y.useRef(null), xe = y.useRef(null), Q = y.useRef(!0), re = y.useRef(!1), be = y.useRef(null), Ce = y.useRef(null), Ae = y.useRef(null), Te = y.useRef(Lf), Ie = y.useRef(null), Ne = y.useRef([]), Ye = y.useRef(null), Ue = W || m, Le = X ?? f, Me = u === "multiple", Ve = u === "single", We = a !== void 0 || i !== void 0, tt = v !== void 0, Ke = C !== void 0;
|
|
34102
34102
|
let et;
|
|
34103
34103
|
N === "always" ? et = "always" : et = N ? "input-change" : !1;
|
|
34104
34104
|
const [$e, xt] = ln({
|
|
@@ -34106,7 +34106,7 @@ function aB(e) {
|
|
|
34106
34106
|
default: Me ? r ?? Sn : r,
|
|
34107
34107
|
name: "Combobox",
|
|
34108
34108
|
state: "selectedValue"
|
|
34109
|
-
}), Xe = y.useMemo(() => E === null ? () => !0 : E !== void 0 ? E : oB(se, I), [E, se, I]), lt = $t(() => We ? i ?? "" :
|
|
34109
|
+
}), Xe = y.useMemo(() => E === null ? () => !0 : E !== void 0 ? E : oB(se, I), [E, se, I]), lt = $t(() => We ? i ?? "" : Ve ? Xn($e, I) : "").current, [ut, Bt] = ln({
|
|
34110
34110
|
controlled: a,
|
|
34111
34111
|
default: lt,
|
|
34112
34112
|
name: "Combobox",
|
|
@@ -34116,7 +34116,7 @@ function aB(e) {
|
|
|
34116
34116
|
default: c,
|
|
34117
34117
|
name: "Combobox",
|
|
34118
34118
|
state: "open"
|
|
34119
|
-
}), It = ab(v), qe = le ?? String(ut).trim(), vt =
|
|
34119
|
+
}), It = ab(v), qe = le ?? String(ut).trim(), vt = Ve ? Xn($e, I) : "", Ht = Ve && !de && qe !== "" && vt.length === qe.length && se.contains(vt, qe), en = Ht ? "" : qe, vn = tt && Ke && Ht, qt = y.useMemo(() => v ? It ? v.flatMap((De) => De.items) : v : Sn, [v, It]), cn = y.useMemo(() => {
|
|
34120
34120
|
if (C && !vn)
|
|
34121
34121
|
return C;
|
|
34122
34122
|
if (!v)
|
|
@@ -34292,7 +34292,7 @@ function aB(e) {
|
|
|
34292
34292
|
Bt(De);
|
|
34293
34293
|
}
|
|
34294
34294
|
}), Mi = ge((De, ze) => {
|
|
34295
|
-
if (_e !== De && (ze.reason === gs && tt && tn.length === 0 && !xe.current && ze.allowPropagation(), e.onOpenChange?.(De, ze), !ze.isCanceled && (De && yr && !On && le !== null && (pe(!1), ae(null), ut !== "" && ze.reason !== nr && Cr("", Se(_n, ze.event))), !De && de && (
|
|
34295
|
+
if (_e !== De && (ze.reason === gs && tt && tn.length === 0 && !xe.current && ze.allowPropagation(), e.onOpenChange?.(De, ze), !ze.isCanceled && (De && yr && !On && le !== null && (pe(!1), ae(null), ut !== "" && ze.reason !== nr && Cr("", Se(_n, ze.event))), !De && de && (Ve ? (On || ae(qe), qe === "" && pe(!1)) : Me && (On || ae(qe), yr && wr({
|
|
34296
34296
|
activeIndex: null
|
|
34297
34297
|
}), (!yr || On) && Cr("", Se(_n, ze.event)))), Rt(De), !De && yr && (ze.reason === Jr || ze.reason === Oa) && (j(!0), Z(!1), ne === "onBlur")))) {
|
|
34298
34298
|
const Ot = u === "none" ? ut : $e;
|
|
@@ -34301,7 +34301,7 @@ function aB(e) {
|
|
|
34301
34301
|
}), pl = ge((De, ze) => {
|
|
34302
34302
|
if (s?.(De, ze), ze.isCanceled)
|
|
34303
34303
|
return;
|
|
34304
|
-
xt(De), (u === "none" && we.current && V ||
|
|
34304
|
+
xt(De), (u === "none" && we.current && V || Ve && !nt.state.inputInsidePopup) && Cr(Xn(De, I), Se(ze.reason, ze.event));
|
|
34305
34305
|
}), cT = ge((De, ze) => {
|
|
34306
34306
|
const Ot = Ct(De), At = Ae.current ?? De;
|
|
34307
34307
|
Ae.current = null;
|
|
@@ -34329,7 +34329,7 @@ function aB(e) {
|
|
|
34329
34329
|
selectedIndex: null
|
|
34330
34330
|
} : {
|
|
34331
34331
|
activeIndex: null
|
|
34332
|
-
}), Me && oe.current && oe.current.value !== "" && !re.current && Cr("", Se(_n)),
|
|
34332
|
+
}), Me && oe.current && oe.current.value !== "" && !re.current && Cr("", Se(_n)), Ve)
|
|
34333
34333
|
if (nt.state.inputInsidePopup)
|
|
34334
34334
|
oe.current && oe.current.value !== "" && Cr("", Se(_n));
|
|
34335
34335
|
else {
|
|
@@ -34429,11 +34429,11 @@ function aB(e) {
|
|
|
34429
34429
|
ut !== De && Cr(De, Se(Mt));
|
|
34430
34430
|
}
|
|
34431
34431
|
tr($e, () => {
|
|
34432
|
-
u !== "none" && (H(Le), G(fT($e)), te.change($e),
|
|
34432
|
+
u !== "none" && (H(Le), G(fT($e)), te.change($e), Ve && !We && !yr && vx());
|
|
34433
34433
|
}), tr(ut, () => {
|
|
34434
34434
|
u === "none" && (H(Le), G(ut !== Y.initialValue), te.change(ut));
|
|
34435
34435
|
}), tr(v, () => {
|
|
34436
|
-
!
|
|
34436
|
+
!Ve || We || yr || de || vx();
|
|
34437
34437
|
});
|
|
34438
34438
|
const hl = lC({
|
|
34439
34439
|
open: On ? !0 : _e,
|
|
@@ -34608,7 +34608,7 @@ function aB(e) {
|
|
|
34608
34608
|
const Dn = zt === -1 ? void 0 : Ne.current[zt];
|
|
34609
34609
|
Dn != null && pl?.(Dn, At);
|
|
34610
34610
|
}
|
|
34611
|
-
|
|
34611
|
+
Ve && (xx(), v && nn() === -1 && nt.set("forceMounted", !0)), queueMicrotask(An);
|
|
34612
34612
|
}
|
|
34613
34613
|
}),
|
|
34614
34614
|
id: J && rf == null ? `${J}-hidden-input` : void 0,
|
|
@@ -36140,7 +36140,7 @@ function NB(e) {
|
|
|
36140
36140
|
}), y.useImperativeHandle(g, () => ({
|
|
36141
36141
|
unmount: Me
|
|
36142
36142
|
}), [Me]);
|
|
36143
|
-
const
|
|
36143
|
+
const Ve = ge((qe, vt) => {
|
|
36144
36144
|
o?.(qe, vt), !vt.isCanceled && H(qe);
|
|
36145
36145
|
}), We = ge((qe) => {
|
|
36146
36146
|
const vt = nk(qe.scrollHeight, qe.clientHeight), Ht = Gp(qe.scrollTop, vt), en = Ht > 0, vn = Ht < vt;
|
|
@@ -36177,7 +36177,7 @@ function NB(e) {
|
|
|
36177
36177
|
// `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.
|
|
36178
36178
|
disabledIndices: (qe) => VE(K.current[qe]),
|
|
36179
36179
|
onMatch(qe) {
|
|
36180
|
-
G ? oe.set("activeIndex", qe) :
|
|
36180
|
+
G ? oe.set("activeIndex", qe) : Ve(te.current[qe], Se(Mt));
|
|
36181
36181
|
},
|
|
36182
36182
|
onTyping(qe) {
|
|
36183
36183
|
q.current = qe;
|
|
@@ -36212,7 +36212,7 @@ function NB(e) {
|
|
|
36212
36212
|
readOnly: f,
|
|
36213
36213
|
multiple: v,
|
|
36214
36214
|
highlightItemOnHover: N,
|
|
36215
|
-
setValue:
|
|
36215
|
+
setValue: Ve,
|
|
36216
36216
|
setOpen: Le,
|
|
36217
36217
|
listRef: K,
|
|
36218
36218
|
popupRef: W,
|
|
@@ -36231,7 +36231,7 @@ function NB(e) {
|
|
|
36231
36231
|
onOpenChangeComplete: x,
|
|
36232
36232
|
alignItemWithTriggerActiveRef: pe,
|
|
36233
36233
|
initialValueRef: Ne
|
|
36234
|
-
}), [oe, tt, h, O, f, v, N,
|
|
36234
|
+
}), [oe, tt, h, O, f, v, N, Ve, Le, ut, z, x, We]), _e = gn(b, z.inputRef), Rt = v ? void 0 : L, It = y.useMemo(() => !v || !Array.isArray($) || !L ? null : $.map((qe) => {
|
|
36235
36235
|
const vt = dr(qe, E);
|
|
36236
36236
|
return /* @__PURE__ */ d("input", {
|
|
36237
36237
|
type: "hidden",
|
|
@@ -36266,7 +36266,7 @@ function NB(e) {
|
|
|
36266
36266
|
return cr != null && cr.toLowerCase() === vn;
|
|
36267
36267
|
}));
|
|
36268
36268
|
const cn = te.current[qt];
|
|
36269
|
-
cn != null &&
|
|
36269
|
+
cn != null && Ve(cn, Ht);
|
|
36270
36270
|
}
|
|
36271
36271
|
oe.set("forceMount", !0), queueMicrotask(en);
|
|
36272
36272
|
}
|
|
@@ -36699,9 +36699,9 @@ const PB = {
|
|
|
36699
36699
|
const _e = Bt.top - ie.top + Bt.height / 2;
|
|
36700
36700
|
Me = Ue.top - he.top + Ue.height / 2 - _e;
|
|
36701
36701
|
}
|
|
36702
|
-
const
|
|
36703
|
-
let We = Math.min(Ie,
|
|
36704
|
-
const tt = Ie - xe - Q, Ke =
|
|
36702
|
+
const Ve = Ye + Me + Q + ce;
|
|
36703
|
+
let We = Math.min(Ie, Ve);
|
|
36704
|
+
const tt = Ie - xe - Q, Ke = Ve - We, et = Ne - Ae;
|
|
36705
36705
|
L.style.left = `${Vt(Le, Ce, et - he.width)}px`, L.style.height = `${We}px`, L.style.maxHeight = "none", L.style.marginTop = `${xe}px`, L.style.marginBottom = `${Q}px`, ne.style.height = "100%";
|
|
36706
36706
|
const $e = Gl(oe), xt = Ke >= $e - Ur;
|
|
36707
36707
|
xt && (We = Math.min(Ie, he.height) - (Ke - $e));
|
|
@@ -36712,7 +36712,7 @@ const PB = {
|
|
|
36712
36712
|
}
|
|
36713
36713
|
const ut = Math.max(re, We);
|
|
36714
36714
|
if (xt) {
|
|
36715
|
-
const Bt = Math.max(0, Ie -
|
|
36715
|
+
const Bt = Math.max(0, Ie - Ve);
|
|
36716
36716
|
L.style.top = he.height >= tt ? "0" : `${Bt}px`, L.style.height = `${We}px`, oe.scrollTop = Gl(oe);
|
|
36717
36717
|
} else
|
|
36718
36718
|
L.style.bottom = "0", oe.scrollTop = Ke;
|
|
@@ -38095,7 +38095,7 @@ function uw(e) {
|
|
|
38095
38095
|
}
|
|
38096
38096
|
function $R({ className: e, children: t, variant: n }) {
|
|
38097
38097
|
const r = Md({ variant: n }), o = ye(null);
|
|
38098
|
-
return
|
|
38098
|
+
return Fe(() => {
|
|
38099
38099
|
const s = o.current;
|
|
38100
38100
|
if (!s) return;
|
|
38101
38101
|
uw(s);
|
|
@@ -39079,7 +39079,7 @@ function Nq({
|
|
|
39079
39079
|
v(
|
|
39080
39080
|
Object.fromEntries(O.map((X) => [X.id, X.defaultSize ?? K]))
|
|
39081
39081
|
);
|
|
39082
|
-
}, [f, S, C, v]),
|
|
39082
|
+
}, [f, S, C, v]), Fe(() => {
|
|
39083
39083
|
Object.keys(w).length > 0 && s?.(w);
|
|
39084
39084
|
}, [w, s]);
|
|
39085
39085
|
const A = Re(
|
|
@@ -42569,19 +42569,19 @@ function F6(e) {
|
|
|
42569
42569
|
const t = ye(null);
|
|
42570
42570
|
t.current ??= new R6(e);
|
|
42571
42571
|
const n = t.current;
|
|
42572
|
-
return n.setCallbacks(e),
|
|
42572
|
+
return n.setCallbacks(e), Fe(() => T6(n), [n]), n;
|
|
42573
42573
|
}
|
|
42574
42574
|
function Vd(e) {
|
|
42575
42575
|
return $r(e.subscribe, e.getState, e.getState);
|
|
42576
42576
|
}
|
|
42577
42577
|
function V6(e, t) {
|
|
42578
42578
|
const { id: n, container: r, index: o, axis: s = "y", disabled: i = !1, activation: a } = t, [l, c] = fe(null), [u, p] = fe(null);
|
|
42579
|
-
|
|
42579
|
+
Fe(() => {
|
|
42580
42580
|
if (l)
|
|
42581
42581
|
return e.registerItem({ id: n, container: r, index: o, element: l });
|
|
42582
42582
|
}, [e, l, n, r, o]);
|
|
42583
42583
|
const f = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, h = ye(a);
|
|
42584
|
-
h.current = a,
|
|
42584
|
+
h.current = a, Fe(() => {
|
|
42585
42585
|
if (!u || i) return;
|
|
42586
42586
|
const g = M6(e, u, {
|
|
42587
42587
|
id: n,
|
|
@@ -42600,7 +42600,7 @@ function V6(e, t) {
|
|
|
42600
42600
|
}
|
|
42601
42601
|
function $6(e, t) {
|
|
42602
42602
|
const { id: n, axis: r = "y" } = t, [o, s] = fe(null);
|
|
42603
|
-
|
|
42603
|
+
Fe(() => {
|
|
42604
42604
|
if (o)
|
|
42605
42605
|
return e.registerContainer({ id: n, element: o, axis: r });
|
|
42606
42606
|
}, [e, o, n, r]);
|
|
@@ -42636,7 +42636,7 @@ function z6(e, t = {}) {
|
|
|
42636
42636
|
const [n, r] = fe(""), o = ye(t);
|
|
42637
42637
|
o.current = t;
|
|
42638
42638
|
const s = ye(null), i = ye(null), a = ye(null), l = ye(0);
|
|
42639
|
-
return
|
|
42639
|
+
return Fe(() => {
|
|
42640
42640
|
function c() {
|
|
42641
42641
|
i.current !== null && (window.clearTimeout(i.current), i.current = null, a.current = null);
|
|
42642
42642
|
}
|
|
@@ -43061,7 +43061,7 @@ function Z6(e) {
|
|
|
43061
43061
|
r.current = null, o();
|
|
43062
43062
|
}, 0));
|
|
43063
43063
|
}, [o]);
|
|
43064
|
-
return
|
|
43064
|
+
return Fe(
|
|
43065
43065
|
() => () => {
|
|
43066
43066
|
r.current !== null && (clearTimeout(r.current), r.current = null);
|
|
43067
43067
|
},
|
|
@@ -43095,7 +43095,7 @@ function Hb({
|
|
|
43095
43095
|
() => ({ threshold: u, maxSpeed: p, reducedMaxSpeed: f }),
|
|
43096
43096
|
[u, p, f]
|
|
43097
43097
|
);
|
|
43098
|
-
|
|
43098
|
+
Fe(() => D6(i, h), [i, h]);
|
|
43099
43099
|
const m = ye({
|
|
43100
43100
|
item: /* @__PURE__ */ new Map(),
|
|
43101
43101
|
container: /* @__PURE__ */ new Map()
|
|
@@ -43131,7 +43131,7 @@ function Ub({
|
|
|
43131
43131
|
children: o
|
|
43132
43132
|
}) {
|
|
43133
43133
|
const { session: s, registerLabel: i } = $d("DragDropContainer"), { setContainerRef: a, isOver: l } = $6(s, { id: e, axis: n }), c = Vd(s), u = Ss({ axis: n });
|
|
43134
|
-
|
|
43134
|
+
Fe(
|
|
43135
43135
|
() => i("container", e, t),
|
|
43136
43136
|
[i, e, t]
|
|
43137
43137
|
);
|
|
@@ -43163,7 +43163,7 @@ function jb({
|
|
|
43163
43163
|
index: t,
|
|
43164
43164
|
axis: u
|
|
43165
43165
|
}), m = Vd(s);
|
|
43166
|
-
|
|
43166
|
+
Fe(() => a("item", e, n), [a, e, n]), Fe(() => l.item(e, c, t), [l, e, c, t]);
|
|
43167
43167
|
const g = m.phase === "dragging" && m.id === e, b = Ss({ axis: u, moving: p !== null }), x = m.from && m.from.container === c && m.from.index < t ? t - 1 : t, w = !g && p?.markerAt === x, v = !g && p !== null && p.markerAt === p.restCount && x === p.restCount - 1, C = p && /* @__PURE__ */ d(NI, { shift: p, at: w ? x : p.restCount - 1 });
|
|
43168
43168
|
return (
|
|
43169
43169
|
/* A FRAGMENT, so the marker is a DIRECT CHILD of the container. Wrapping the
|
|
@@ -43237,14 +43237,14 @@ function Q6({
|
|
|
43237
43237
|
const J6 = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
43238
43238
|
function SI({ label: e, className: t, children: n }) {
|
|
43239
43239
|
const { instructionsId: r, census: o } = $d("DragDropSurface"), { axis: s } = Ld("DragDropSurface"), { id: i, setHandleRef: a, label: l } = yI("DragDropSurface"), c = vI();
|
|
43240
|
-
|
|
43240
|
+
Fe(() => c ? void 0 : o.source(i), [o, i, c]);
|
|
43241
43241
|
const u = Ss({ axis: s }), [p, f] = fe(null), [h, m] = fe(!1), g = Re(
|
|
43242
43242
|
(b) => {
|
|
43243
43243
|
f(b), a(b);
|
|
43244
43244
|
},
|
|
43245
43245
|
[a]
|
|
43246
43246
|
);
|
|
43247
|
-
return
|
|
43247
|
+
return Fe(() => {
|
|
43248
43248
|
if (!p || c) return;
|
|
43249
43249
|
const b = p.querySelector(J6);
|
|
43250
43250
|
if (m(b === null), !b) return;
|
|
@@ -43275,7 +43275,7 @@ function SI({ label: e, className: t, children: n }) {
|
|
|
43275
43275
|
}
|
|
43276
43276
|
function kI({ label: e, className: t, children: n }) {
|
|
43277
43277
|
const { instructionsId: r, census: o } = $d("DragDropHandle"), { axis: s } = Ld("DragDropHandle"), { id: i, setHandleRef: a, label: l } = yI("DragDropHandle"), c = vI();
|
|
43278
|
-
|
|
43278
|
+
Fe(() => c ? void 0 : o.source(i), [o, i, c]);
|
|
43279
43279
|
const u = Ss({ axis: s }), p = n ?? /* @__PURE__ */ d(ue, { name: "grip-vertical", size: "sm" });
|
|
43280
43280
|
return c ? /* @__PURE__ */ d("span", { "aria-hidden": "true", className: U(u.handle(), t), children: p }) : /* @__PURE__ */ d(
|
|
43281
43281
|
"span",
|
|
@@ -43939,12 +43939,15 @@ const Gb = ht({
|
|
|
43939
43939
|
/* The whole column: header + list, stacked. Width and grid placement are
|
|
43940
43940
|
the consumer's job (a page decides 3 columns vs 7, fixed vs scrolling) —
|
|
43941
43941
|
this only owns the INSIDE of one column. */
|
|
43942
|
-
column: "flex min-h-0 min-w-64 flex-col rounded-xl border
|
|
43942
|
+
column: "flex min-h-0 min-w-64 flex-col rounded-xl border",
|
|
43943
43943
|
header: [
|
|
43944
43944
|
"flex items-center justify-between gap-2 rounded-t-xl px-3 py-2.5",
|
|
43945
43945
|
"transition-[var(--tx-colors)] duration-(--dur-base)"
|
|
43946
43946
|
],
|
|
43947
|
-
label
|
|
43947
|
+
/* The label and its optional icon sit together at the header's start. */
|
|
43948
|
+
title: "flex min-w-0 items-center gap-1.5",
|
|
43949
|
+
glyph: "inline-grid shrink-0 place-items-center",
|
|
43950
|
+
label: "truncate text-2xs font-semibold tracking-widest uppercase",
|
|
43948
43951
|
/* The scrollable list itself. `role="list"` lives on THIS element in
|
|
43949
43952
|
`Board.tsx` — see its header for why the ARIA role has to sit on a
|
|
43950
43953
|
wrapper rather than on `DragDropContainer`'s own div, which this
|
|
@@ -43979,11 +43982,26 @@ const Gb = ht({
|
|
|
43979
43982
|
},
|
|
43980
43983
|
variants: {
|
|
43981
43984
|
overWip: {
|
|
43982
|
-
true: { header: "bg-danger-subtle", label: "text-danger-text" },
|
|
43985
|
+
true: { header: "bg-danger-subtle", label: "text-danger-text", glyph: "text-danger-text" },
|
|
43983
43986
|
false: {}
|
|
43987
|
+
},
|
|
43988
|
+
/* DX-3981: a lane in a caller-given colour. The tint, the card-edge
|
|
43989
|
+
override and the header fill live in `.dx-lane` / `.dx-lane-header`
|
|
43990
|
+
(components.css) over per-theme `--lane-*` tokens, so the one formula
|
|
43991
|
+
is written once and the contrast test reads the shipped CSS. Without
|
|
43992
|
+
an accent the shell keeps exactly the classes it always had. */
|
|
43993
|
+
accented: {
|
|
43994
|
+
true: { column: "dx-lane", header: "dx-lane-header" },
|
|
43995
|
+
false: { column: "border-border-subtle bg-surface-sunken" }
|
|
43984
43996
|
}
|
|
43985
43997
|
},
|
|
43986
|
-
|
|
43998
|
+
compoundVariants: [
|
|
43999
|
+
/* DX-3981: ink, never the accent as text. `text-primary` is the one ink
|
|
44000
|
+
token that clears 4.5:1 on every tinted header in both themes. */
|
|
44001
|
+
{ accented: !0, overWip: !1, class: { label: "text-primary", glyph: "text-primary" } },
|
|
44002
|
+
{ accented: !1, overWip: !1, class: { label: "text-tertiary", glyph: "text-tertiary" } }
|
|
44003
|
+
],
|
|
44004
|
+
defaultVariants: { overWip: !1, accented: !1 }
|
|
43987
44005
|
});
|
|
43988
44006
|
function Vq({
|
|
43989
44007
|
items: e,
|
|
@@ -44055,35 +44073,59 @@ function Lq({
|
|
|
44055
44073
|
emptyState: t,
|
|
44056
44074
|
className: n,
|
|
44057
44075
|
listClassName: r,
|
|
44058
|
-
|
|
44076
|
+
accent: o,
|
|
44077
|
+
icon: s,
|
|
44078
|
+
children: i
|
|
44059
44079
|
}) {
|
|
44060
|
-
const
|
|
44080
|
+
const a = Gb({ overWip: e.overWip, accented: o !== void 0 }), l = e.id;
|
|
44081
|
+
Fe(() => {
|
|
44082
|
+
o === void 0 || typeof CSS > "u" || CSS.supports("color", o) || console.warn(`[danxbot] board: column "${String(l)}" got accent "${o}", which is not a CSS colour.`);
|
|
44083
|
+
}, [o, l]);
|
|
44084
|
+
const c = Oe(
|
|
44061
44085
|
() => ({ columnId: e.id, label: e.label }),
|
|
44062
44086
|
[e.id, e.label]
|
|
44063
|
-
),
|
|
44087
|
+
), u = t ?? /* @__PURE__ */ d(
|
|
44064
44088
|
Qa,
|
|
44065
44089
|
{
|
|
44066
44090
|
title: "No cards",
|
|
44067
44091
|
description: "Drag a card here, or use its Move to… menu.",
|
|
44068
|
-
className:
|
|
44092
|
+
className: a.empty()
|
|
44093
|
+
}
|
|
44094
|
+
);
|
|
44095
|
+
return /* @__PURE__ */ T(
|
|
44096
|
+
"div",
|
|
44097
|
+
{
|
|
44098
|
+
className: U(a.column(), n),
|
|
44099
|
+
style: o === void 0 ? void 0 : { "--lane-accent": o },
|
|
44100
|
+
children: [
|
|
44101
|
+
/* @__PURE__ */ T("div", { className: a.header(), children: [
|
|
44102
|
+
s === void 0 ? /* @__PURE__ */ d("span", { className: a.label(), children: e.label }) : /* @__PURE__ */ T("span", { className: a.title(), children: [
|
|
44103
|
+
/* @__PURE__ */ d("span", { className: a.glyph(), "aria-hidden": "true", children: s }),
|
|
44104
|
+
/* @__PURE__ */ d("span", { className: a.label(), children: e.label })
|
|
44105
|
+
] }),
|
|
44106
|
+
/* @__PURE__ */ d(
|
|
44107
|
+
hU,
|
|
44108
|
+
{
|
|
44109
|
+
count: e.count,
|
|
44110
|
+
wipLimit: e.wipLimit,
|
|
44111
|
+
overWip: e.overWip,
|
|
44112
|
+
accented: o !== void 0
|
|
44113
|
+
}
|
|
44114
|
+
)
|
|
44115
|
+
] }),
|
|
44116
|
+
/* @__PURE__ */ d("div", { role: "list", "aria-label": e.label, className: a.list(), children: /* @__PURE__ */ d(
|
|
44117
|
+
Ub,
|
|
44118
|
+
{
|
|
44119
|
+
id: e.id,
|
|
44120
|
+
label: e.label,
|
|
44121
|
+
axis: "y",
|
|
44122
|
+
className: U("min-h-24 flex-1 p-2", r),
|
|
44123
|
+
children: /* @__PURE__ */ d(lU, { value: c, children: /* @__PURE__ */ d(pU, { isEmpty: e.count === 0, emptyState: u, children: i }) })
|
|
44124
|
+
}
|
|
44125
|
+
) })
|
|
44126
|
+
]
|
|
44069
44127
|
}
|
|
44070
44128
|
);
|
|
44071
|
-
return /* @__PURE__ */ T("div", { className: U(s.column(), n), children: [
|
|
44072
|
-
/* @__PURE__ */ T("div", { className: s.header(), children: [
|
|
44073
|
-
/* @__PURE__ */ d("span", { className: s.label(), children: e.label }),
|
|
44074
|
-
/* @__PURE__ */ d(hU, { count: e.count, wipLimit: e.wipLimit, overWip: e.overWip })
|
|
44075
|
-
] }),
|
|
44076
|
-
/* @__PURE__ */ d("div", { role: "list", "aria-label": e.label, className: s.list(), children: /* @__PURE__ */ d(
|
|
44077
|
-
Ub,
|
|
44078
|
-
{
|
|
44079
|
-
id: e.id,
|
|
44080
|
-
label: e.label,
|
|
44081
|
-
axis: "y",
|
|
44082
|
-
className: U("min-h-24 flex-1 p-2", r),
|
|
44083
|
-
children: /* @__PURE__ */ d(lU, { value: i, children: /* @__PURE__ */ d(pU, { isEmpty: e.count === 0, emptyState: a, children: o }) })
|
|
44084
|
-
}
|
|
44085
|
-
) })
|
|
44086
|
-
] });
|
|
44087
44129
|
}
|
|
44088
44130
|
function pU({
|
|
44089
44131
|
isEmpty: e,
|
|
@@ -44096,14 +44138,15 @@ function pU({
|
|
|
44096
44138
|
function hU({
|
|
44097
44139
|
count: e,
|
|
44098
44140
|
wipLimit: t,
|
|
44099
|
-
overWip: n
|
|
44141
|
+
overWip: n,
|
|
44142
|
+
accented: r
|
|
44100
44143
|
}) {
|
|
44101
44144
|
return /* @__PURE__ */ T(
|
|
44102
44145
|
"span",
|
|
44103
44146
|
{
|
|
44104
44147
|
className: U(
|
|
44105
44148
|
"inline-flex items-center gap-1 font-mono text-2xs",
|
|
44106
|
-
n ? "font-semibold text-danger-text" : "text-tertiary"
|
|
44149
|
+
n ? "font-semibold text-danger-text" : r ? "text-primary" : "text-tertiary"
|
|
44107
44150
|
),
|
|
44108
44151
|
children: [
|
|
44109
44152
|
n && /* @__PURE__ */ d(ue, { name: "triangle-alert", size: "xs" }),
|
|
@@ -44116,7 +44159,7 @@ function zq({ id: e, index: t, label: n, className: r, children: o }) {
|
|
|
44116
44159
|
const { columnId: s } = dU("BoardCard"), i = ye(!1), a = Re(() => (i.current = !0, () => {
|
|
44117
44160
|
i.current = !1;
|
|
44118
44161
|
}), []);
|
|
44119
|
-
|
|
44162
|
+
Fe(() => {
|
|
44120
44163
|
i.current || console.warn(
|
|
44121
44164
|
`[danxbot] board: card "${String(e)}" rendered without placing the move control it was handed. Every drag outcome must stay reachable by pointer alone without dragging (WCAG 2.2 SC 2.5.7) — a keyboard path does not satisfy it. Render the node \`BoardCard\` passes to its children function.`
|
|
44122
44165
|
);
|
|
@@ -44129,7 +44172,7 @@ function zq({ id: e, index: t, label: n, className: r, children: o }) {
|
|
|
44129
44172
|
}
|
|
44130
44173
|
function mU({ columnId: e }) {
|
|
44131
44174
|
const t = uU("BoardCardHandle"), n = fU("BoardCardHandle"), r = iU(), [o, s] = fe(!1), i = Gb(), { registerHandle: a } = n;
|
|
44132
|
-
|
|
44175
|
+
Fe(() => a(), [a]);
|
|
44133
44176
|
const c = t.columns.find((g) => g.id === e)?.count ?? 0, u = t.columns.filter((g) => g.id !== e);
|
|
44134
44177
|
function p(g) {
|
|
44135
44178
|
s(!1), t.requestMove({
|
|
@@ -45272,7 +45315,7 @@ function OU({
|
|
|
45272
45315
|
return Gn(() => {
|
|
45273
45316
|
const h = i.current;
|
|
45274
45317
|
h && (h.scrollTop = h.scrollHeight);
|
|
45275
|
-
}, []),
|
|
45318
|
+
}, []), Fe(() => {
|
|
45276
45319
|
const h = a.current;
|
|
45277
45320
|
if (!h || typeof ResizeObserver > "u") return;
|
|
45278
45321
|
const m = new ResizeObserver(() => {
|
|
@@ -45344,7 +45387,7 @@ function AU({
|
|
|
45344
45387
|
className: l
|
|
45345
45388
|
}) {
|
|
45346
45389
|
const [c, u] = fe(!1), [p, f] = fe(!1), h = e.filter((b) => !b.secondary), m = e.filter((b) => b.secondary), g = e.find((b) => b.id === t);
|
|
45347
|
-
return
|
|
45390
|
+
return Fe(() => {
|
|
45348
45391
|
if (!c || !o) return;
|
|
45349
45392
|
const b = (x) => {
|
|
45350
45393
|
if (x.metaKey || x.ctrlKey || x.altKey) return;
|
|
@@ -45352,7 +45395,7 @@ function AU({
|
|
|
45352
45395
|
!Number.isInteger(w) || w < 0 || !v || v.disabled || (x.preventDefault(), n(v.id), u(!1));
|
|
45353
45396
|
};
|
|
45354
45397
|
return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
45355
|
-
}, [c, o, h, n]),
|
|
45398
|
+
}, [c, o, h, n]), Fe(() => {
|
|
45356
45399
|
c || f(!1);
|
|
45357
45400
|
}, [c]), /* @__PURE__ */ T(
|
|
45358
45401
|
Za,
|
|
@@ -46228,7 +46271,7 @@ function Jq({
|
|
|
46228
46271
|
tj(b, e, o, s),
|
|
46229
46272
|
{ month: e, weekStartsOn: r, onMonthChange: l }
|
|
46230
46273
|
), v = ye(/* @__PURE__ */ new Map()), C = ye(!1);
|
|
46231
|
-
|
|
46274
|
+
Fe(() => {
|
|
46232
46275
|
C.current && v.current.get(Vn(w.focusedDay))?.focus();
|
|
46233
46276
|
}, [w.focusedDay]);
|
|
46234
46277
|
const E = Oe(
|
|
@@ -46495,7 +46538,7 @@ function ij(e, t = {}) {
|
|
|
46495
46538
|
}
|
|
46496
46539
|
function aj(e = {}) {
|
|
46497
46540
|
const { resolutionMs: t = 6e4, enabled: n = !0, fixed: r } = e, [o, s] = fe(() => r ?? Date.now());
|
|
46498
|
-
return
|
|
46541
|
+
return Fe(() => {
|
|
46499
46542
|
if (r !== void 0) {
|
|
46500
46543
|
s(r);
|
|
46501
46544
|
return;
|
|
@@ -46582,11 +46625,11 @@ function cj(e) {
|
|
|
46582
46625
|
const x = ye({ columns: [], origin: null, anchor: null, last: null, spoken: null, point: null }), w = Re(() => {
|
|
46583
46626
|
x.current.columns = b.current.measure();
|
|
46584
46627
|
}, []);
|
|
46585
|
-
|
|
46628
|
+
Fe(() => {
|
|
46586
46629
|
if (!u && !f) return;
|
|
46587
46630
|
const A = () => w();
|
|
46588
46631
|
return window.addEventListener("scroll", A, { capture: !0, passive: !0 }), () => window.removeEventListener("scroll", A, { capture: !0 });
|
|
46589
|
-
}, [u, f, w]),
|
|
46632
|
+
}, [u, f, w]), Fe(() => {
|
|
46590
46633
|
if (!u && !f) return;
|
|
46591
46634
|
const A = (D) => {
|
|
46592
46635
|
D.key === "Escape" && (D.preventDefault(), x.current.origin = null, x.current.anchor = null, x.current.last = null, p(null), h(null), g(!1), b.current.onAnnounce?.("Move cancelled"));
|
|
@@ -47025,7 +47068,7 @@ function eY({
|
|
|
47025
47068
|
const $ = e[0], H = dn(t, $) + a * 36e5;
|
|
47026
47069
|
return Math.max(0, Math.min(1, Na(t, $, H))) * P;
|
|
47027
47070
|
}, [_, t, a, P]);
|
|
47028
|
-
|
|
47071
|
+
Fe(() => {
|
|
47029
47072
|
const $ = S.current;
|
|
47030
47073
|
!$ || V === null || ($.scrollTop = V);
|
|
47031
47074
|
}, [V]);
|
|
@@ -47060,7 +47103,7 @@ function eY({
|
|
|
47060
47103
|
},
|
|
47061
47104
|
locale: x
|
|
47062
47105
|
});
|
|
47063
|
-
|
|
47106
|
+
Fe(() => {
|
|
47064
47107
|
if (!(!F.draft && !F.creating || !S.current))
|
|
47065
47108
|
return Bb({ getPoint: F.getPoint, onScrolled: F.onScrolled });
|
|
47066
47109
|
}, [F.draft, F.creating, F.getPoint, F.onScrolled]);
|
|
@@ -47798,7 +47841,7 @@ function Oj({
|
|
|
47798
47841
|
className: l
|
|
47799
47842
|
}) {
|
|
47800
47843
|
const [c, u] = fe(o), [p, f] = fe(s), [h, m] = fe(Ui);
|
|
47801
|
-
|
|
47844
|
+
Fe(() => {
|
|
47802
47845
|
t && (u(o), f(s), m(Ui));
|
|
47803
47846
|
}, [t]);
|
|
47804
47847
|
const g = c.trim().length > 0 && !i;
|
|
@@ -48720,7 +48763,7 @@ function gY({
|
|
|
48720
48763
|
className: i
|
|
48721
48764
|
}) {
|
|
48722
48765
|
const [a, l] = fe([]), [c, u] = fe(""), [p, f] = fe(n[0]?.id ?? ""), [h, m] = fe(void 0);
|
|
48723
|
-
|
|
48766
|
+
Fe(() => {
|
|
48724
48767
|
e && (l([]), u(""), m(void 0), f(n[0]?.id ?? ""));
|
|
48725
48768
|
}, [e]);
|
|
48726
48769
|
function g() {
|
|
@@ -52313,7 +52356,7 @@ function q9(e) {
|
|
|
52313
52356
|
), w = Re(() => {
|
|
52314
52357
|
m.current.drag = null, m.current.point = null, c(null);
|
|
52315
52358
|
}, []);
|
|
52316
|
-
|
|
52359
|
+
Fe(() => {
|
|
52317
52360
|
if (!l) return;
|
|
52318
52361
|
const R = (M) => {
|
|
52319
52362
|
if (M.key !== "Escape") return;
|
|
@@ -52324,13 +52367,13 @@ function q9(e) {
|
|
|
52324
52367
|
}), w());
|
|
52325
52368
|
};
|
|
52326
52369
|
return window.addEventListener("keydown", R), () => window.removeEventListener("keydown", R);
|
|
52327
|
-
}, [l, w]),
|
|
52370
|
+
}, [l, w]), Fe(() => {
|
|
52328
52371
|
if (!l && !u) return;
|
|
52329
52372
|
const R = () => g();
|
|
52330
52373
|
return window.addEventListener("scroll", R, { capture: !0, passive: !0 }), window.addEventListener("resize", R), () => {
|
|
52331
52374
|
window.removeEventListener("scroll", R, { capture: !0 }), window.removeEventListener("resize", R);
|
|
52332
52375
|
};
|
|
52333
|
-
}, [l, u, g]),
|
|
52376
|
+
}, [l, u, g]), Fe(() => {
|
|
52334
52377
|
if (l)
|
|
52335
52378
|
return Bb({
|
|
52336
52379
|
getPoint: () => m.current.point,
|
|
@@ -52464,7 +52507,7 @@ function _Y({
|
|
|
52464
52507
|
() => S ? { cycleMemberIds: S } : C,
|
|
52465
52508
|
[S, C]
|
|
52466
52509
|
), [R, M] = fe(null), [I, P] = fe("canvas"), A = ye(!1);
|
|
52467
|
-
|
|
52510
|
+
Fe(() => {
|
|
52468
52511
|
A.current || (A.current = !0, typeof window < "u" && window.matchMedia("(max-width: 640px)").matches && P("list"));
|
|
52469
52512
|
}, []);
|
|
52470
52513
|
const D = ye(e.nodes), _ = ye(e.edges);
|
|
@@ -52509,7 +52552,7 @@ function _Y({
|
|
|
52509
52552
|
onNodeDragEnd: m,
|
|
52510
52553
|
disabled: g
|
|
52511
52554
|
}), { clearOffsets: G } = H, Y = `${C ?? ""}:${S?.join(",") ?? ""}:${i}`, K = ye(Y);
|
|
52512
|
-
|
|
52555
|
+
Fe(() => {
|
|
52513
52556
|
K.current !== Y && (K.current = Y, G());
|
|
52514
52557
|
}, [Y, G]);
|
|
52515
52558
|
const X = Re(
|
|
@@ -52595,7 +52638,7 @@ function _Y({
|
|
|
52595
52638
|
},
|
|
52596
52639
|
[ie]
|
|
52597
52640
|
);
|
|
52598
|
-
|
|
52641
|
+
Fe(() => {
|
|
52599
52642
|
const Q = ae.current;
|
|
52600
52643
|
!Q || V.nodes.length === 0 || (Q.scrollLeft = Math.max(0, B.width / 2 - Q.clientWidth / 2), Q.scrollTop = Math.max(0, B.height / 2 - Q.clientHeight / 2));
|
|
52601
52644
|
}, [C, S, B.width, B.height]);
|
|
@@ -53010,7 +53053,7 @@ function d7(e) {
|
|
|
53010
53053
|
const L = v.current;
|
|
53011
53054
|
L.width === 0 || L.height === 0 || k(AM(S.current.contentBox, L, S.current.fitBounds));
|
|
53012
53055
|
}, [k]), I = ye(!1), [P, A] = fe(i7);
|
|
53013
|
-
|
|
53056
|
+
Fe(() => {
|
|
53014
53057
|
if (!C) return;
|
|
53015
53058
|
const L = v.current, $ = S.current.frameBox ?? S.current.contentBox, H = { ...S.current.fitBounds, padding: S.current.framePadding ?? Ar.fitPadding }, { camera: G, overflow: Y } = J9($, L, {
|
|
53016
53059
|
...H,
|
|
@@ -53112,7 +53155,7 @@ function d7(e) {
|
|
|
53112
53155
|
},
|
|
53113
53156
|
[R, B]
|
|
53114
53157
|
);
|
|
53115
|
-
return
|
|
53158
|
+
return Fe(
|
|
53116
53159
|
() => () => {
|
|
53117
53160
|
N.current !== null && window.clearTimeout(N.current);
|
|
53118
53161
|
},
|
|
@@ -53159,7 +53202,7 @@ function m0({
|
|
|
53159
53202
|
pe.observe(se), S.current.set(q, pe);
|
|
53160
53203
|
}, N.current.set(q, J), J);
|
|
53161
53204
|
}, []);
|
|
53162
|
-
|
|
53205
|
+
Fe(() => {
|
|
53163
53206
|
const q = S.current;
|
|
53164
53207
|
return () => {
|
|
53165
53208
|
for (const J of q.values()) J.disconnect();
|
|
@@ -54227,7 +54270,7 @@ function J7(e) {
|
|
|
54227
54270
|
const r = w0();
|
|
54228
54271
|
return r && e.has(r) ? /* @__PURE__ */ new Set([r]) : /* @__PURE__ */ new Set();
|
|
54229
54272
|
});
|
|
54230
|
-
return
|
|
54273
|
+
return Fe(() => {
|
|
54231
54274
|
if (typeof window > "u") return;
|
|
54232
54275
|
function r() {
|
|
54233
54276
|
const o = w0();
|
|
@@ -54801,7 +54844,7 @@ function IW(e, t, n) {
|
|
|
54801
54844
|
() => r === null ? ll : Wd(r, o),
|
|
54802
54845
|
[r, o]
|
|
54803
54846
|
), a = $r(s, i, xW);
|
|
54804
|
-
return
|
|
54847
|
+
return Fe(() => r === null ? void 0 : cx([r]), [r]), a;
|
|
54805
54848
|
}
|
|
54806
54849
|
function GY(e, t, n) {
|
|
54807
54850
|
const r = n.needs, o = Oe(() => t.map((f) => co(e.type, f)), [e.type, t.join("\0")]), s = o.join("\0"), i = Re(
|
|
@@ -54817,7 +54860,7 @@ function GY(e, t, n) {
|
|
|
54817
54860
|
const m = Object.freeze(f);
|
|
54818
54861
|
return a.current = { signature: s, needs: r, states: m }, m;
|
|
54819
54862
|
}, [s, r]), c = Oe(() => Object.freeze(o.map(() => ll)), [s]), u = Re(() => c, [c]), p = $r(i, l, u);
|
|
54820
|
-
return
|
|
54863
|
+
return Fe(() => cx(o), [s]), p;
|
|
54821
54864
|
}
|
|
54822
54865
|
function WY() {
|
|
54823
54866
|
return $r(WM, lx, SW);
|
|
@@ -55289,7 +55332,7 @@ function qY({
|
|
|
55289
55332
|
...o
|
|
55290
55333
|
}) {
|
|
55291
55334
|
const [s] = fe(() => new $W({ transport: e, tenant: t, ...o })), i = ye(t);
|
|
55292
|
-
return
|
|
55335
|
+
return Fe(() => (s.start(), () => s.stop()), [s]), Fe(() => {
|
|
55293
55336
|
i.current !== t && (i.current = t, s.setTenant(t)), n && lW(t);
|
|
55294
55337
|
}, [s, t, n]), /* @__PURE__ */ d(qM.Provider, { value: s, children: r });
|
|
55295
55338
|
}
|
|
@@ -55298,7 +55341,7 @@ function YM() {
|
|
|
55298
55341
|
}
|
|
55299
55342
|
function YY(e, t, n) {
|
|
55300
55343
|
const r = YM(), o = dx(qd(t)), s = [...n].sort().join(","), i = ye({ scope: t, events: n });
|
|
55301
|
-
i.current = { scope: t, events: n },
|
|
55344
|
+
i.current = { scope: t, events: n }, Fe(() => {
|
|
55302
55345
|
if (r)
|
|
55303
55346
|
return r.acquire(e.type, i.current.scope, i.current.events);
|
|
55304
55347
|
}, [r, e.type, o, s]);
|
|
@@ -55593,11 +55636,11 @@ function eX(e, t, n) {
|
|
|
55593
55636
|
const f = ye(o);
|
|
55594
55637
|
f.current = o;
|
|
55595
55638
|
const h = ye(!0);
|
|
55596
|
-
|
|
55639
|
+
Fe(() => (h.current = !0, () => {
|
|
55597
55640
|
h.current = !1;
|
|
55598
55641
|
}), []);
|
|
55599
55642
|
const m = ye(null);
|
|
55600
|
-
|
|
55643
|
+
Fe(() => {
|
|
55601
55644
|
if (a === null || !s) {
|
|
55602
55645
|
m.current = null;
|
|
55603
55646
|
return;
|
|
@@ -55639,14 +55682,14 @@ function tX(e, t) {
|
|
|
55639
55682
|
const g = ye(o);
|
|
55640
55683
|
g.current = o;
|
|
55641
55684
|
const b = ye(!0);
|
|
55642
|
-
|
|
55685
|
+
Fe(() => (b.current = !0, () => {
|
|
55643
55686
|
b.current = !1;
|
|
55644
|
-
}), []),
|
|
55687
|
+
}), []), Fe(
|
|
55645
55688
|
() => qW(n, { type: e.type, tag: r, createdScope: u.current }),
|
|
55646
55689
|
[n, e.type, r, c]
|
|
55647
55690
|
);
|
|
55648
55691
|
const x = Re((S) => rK(n, S), [n]), w = Re(() => sK(n), [n]), v = $r(x, w, GW), C = ye(null);
|
|
55649
|
-
|
|
55692
|
+
Fe(() => {
|
|
55650
55693
|
if (!s) {
|
|
55651
55694
|
C.current = null;
|
|
55652
55695
|
return;
|
|
@@ -55692,7 +55735,7 @@ function nX(e, t) {
|
|
|
55692
55735
|
});
|
|
55693
55736
|
}
|
|
55694
55737
|
function rX(e = 6e4) {
|
|
55695
|
-
|
|
55738
|
+
Fe(() => {
|
|
55696
55739
|
const t = setInterval(() => RW(), e);
|
|
55697
55740
|
return () => clearInterval(t);
|
|
55698
55741
|
}, [e]);
|