@factorialco/f0-react 6.96.0 → 6.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatPdfThumbnail-CuuqFVhC.js → ChatPdfThumbnail-BIQ9-LNj.js} +1 -1
- package/dist/{CoachmarkProvider-rjnE_FRE.js → CoachmarkProvider-Dh92mV-E.js} +483 -473
- package/dist/{DocumentToolbar-C393ncUe.js → DocumentToolbar-Lx1rgoev.js} +1 -1
- package/dist/{DocxViewer-BrU_taB7.js → DocxViewer-BNEb2gje.js} +1 -1
- package/dist/{F0AiProcessingOverlay-BFrr2A5p.js → F0AiProcessingOverlay-CYeH4k6v.js} +437 -420
- package/dist/{LocationMap-zScBfMGw.js → LocationMap-BxEyT58U.js} +1 -1
- package/dist/{SheetViewer-EL3WYxYz.js → SheetViewer-C8_TrNj-.js} +1 -1
- package/dist/{TextViewer-CVpJuGei.js → TextViewer-CL5RJMDE.js} +1 -1
- package/dist/ai.js +1 -1
- package/dist/component-status.js +1 -1
- package/dist/{experimental-C5D9LyWw.js → experimental-B0hcBiWP.js} +4 -4
- package/dist/experimental.d.ts +3 -0
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +3 -0
- package/dist/f0.js +6 -6
- package/dist/{index-Cl_MkUAb.js → index-CUYf8mue.js} +2 -2
- package/dist/{pdfWorker-C0vVB8w1.js → pdfWorker-BWVTNGHk.js} +1 -1
- package/icons/app/PinOff.d.ts +4 -0
- package/icons/app/PinOff.d.ts.map +1 -0
- package/icons/app/PinOff.js +5 -0
- package/icons/app/index.d.ts +1 -0
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +1 -0
- package/package.json +2 -2
|
@@ -38,8 +38,8 @@ function Ak(e = {}) {
|
|
|
38
38
|
const {
|
|
39
39
|
eventStore: $,
|
|
40
40
|
ownerDocument: L
|
|
41
|
-
} = n.internalEngine(), W = !!n.internalEngine().options.watchDrag,
|
|
42
|
-
$.add(L, "visibilitychange", v), W && n.on("pointerDown", x), W && !t.stopOnInteraction && n.on("pointerUp", b), t.stopOnMouseEnter && $.add(
|
|
41
|
+
} = n.internalEngine(), W = !!n.internalEngine().options.watchDrag, H = sH(n, t.rootNode);
|
|
42
|
+
$.add(L, "visibilitychange", v), W && n.on("pointerDown", x), W && !t.stopOnInteraction && n.on("pointerUp", b), t.stopOnMouseEnter && $.add(H, "mouseenter", _), t.stopOnMouseEnter && !t.stopOnInteraction && $.add(H, "mouseleave", k), t.stopOnFocusIn && n.on("slideFocusStart", y), t.stopOnFocusIn && !t.stopOnInteraction && $.add(n.containerNode(), "focusout", g), t.playOnInit && g();
|
|
43
43
|
}
|
|
44
44
|
function u() {
|
|
45
45
|
n.off("pointerDown", x).off("pointerUp", b).off("slideFocusStart", y), y(), i = !0, a = !1;
|
|
@@ -754,20 +754,20 @@ function RH(e, t, n, i, r, o, s, a, l, c, d, f, u, h, p, g, y, v, w) {
|
|
|
754
754
|
const Q = z ? n : t;
|
|
755
755
|
E.add(Q, "touchmove", U, k).add(Q, "touchend", V).add(Q, "mousemove", U, k).add(Q, "mouseup", V);
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function H(Q) {
|
|
758
758
|
const ce = Q.nodeName || "";
|
|
759
759
|
return _.includes(ce);
|
|
760
760
|
}
|
|
761
761
|
function ne() {
|
|
762
762
|
return (p ? T : A)[z ? "mouse" : "touch"];
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function j(Q, ce) {
|
|
765
765
|
const ye = f.add(Ik(Q) * -1), be = d.byDistance(Q, !p).distance;
|
|
766
766
|
return p || rn(Q) < S ? be : y && ce ? be * 0.5 : d.byIndex(ye.get(), 0).distance;
|
|
767
767
|
}
|
|
768
768
|
function Y(Q) {
|
|
769
769
|
const ce = bb(Q, i);
|
|
770
|
-
z = ce, F = p && ce && !Q.buttons && D, D = Gd(r.get(), s.get()) >= 2, !(ce && Q.button !== 0) && (
|
|
770
|
+
z = ce, F = p && ce && !Q.buttons && D, D = Gd(r.get(), s.get()) >= 2, !(ce && Q.button !== 0) && (H(Q.target) || (I = !0, o.pointerDown(Q), c.useFriction(0).useDuration(0), r.set(s), W(), N = o.readPoint(Q), M = o.readPoint(Q, x), u.emit("pointerDown")));
|
|
771
771
|
}
|
|
772
772
|
function U(Q) {
|
|
773
773
|
if (!bb(Q, i) && Q.touches.length >= 2) return V(Q);
|
|
@@ -778,7 +778,7 @@ function RH(e, t, n, i, r, o, s, a, l, c, d, f, u, h, p, g, y, v, w) {
|
|
|
778
778
|
_e > g && (F = !0), c.useFriction(0.3).useDuration(0.75), a.start(), r.add(b(q)), Q.preventDefault();
|
|
779
779
|
}
|
|
780
780
|
function V(Q) {
|
|
781
|
-
const ye = d.byDistance(0, !1).index !== f.get(), be = o.pointerUp(Q) * ne(), _e =
|
|
781
|
+
const ye = d.byDistance(0, !1).index !== f.get(), be = o.pointerUp(Q) * ne(), _e = j(b(be), ye), ve = OH(be, _e), q = O - 10 * ve, re = v + ve / 50;
|
|
782
782
|
R = !1, I = !1, E.clear(), c.useDuration(q).useFriction(re), l.distance(_e, !p), z = !1, u.emit("pointerUp");
|
|
783
783
|
}
|
|
784
784
|
function J(Q) {
|
|
@@ -1418,11 +1418,11 @@ function nV(e, t, n, i, r, o, s) {
|
|
|
1418
1418
|
endGap: $
|
|
1419
1419
|
} = eV(T, S, A, n, I, r), L = tV(T, O, y, f, S, A, z, $, C), {
|
|
1420
1420
|
snaps: W,
|
|
1421
|
-
snapsAligned:
|
|
1421
|
+
snapsAligned: H
|
|
1422
1422
|
} = qH(T, N, S, A, L), ne = -Nr(W) + Nr(F), {
|
|
1423
|
-
snapsContained:
|
|
1423
|
+
snapsContained: j,
|
|
1424
1424
|
scrollContainLimit: Y
|
|
1425
|
-
} = HH(O, ne,
|
|
1425
|
+
} = HH(O, ne, H, w, C), U = M ? j : H, {
|
|
1426
1426
|
limit: V
|
|
1427
1427
|
} = VH(ne, U, f), J = hO(Zu(U), d, f), ie = J.clone(), Z = Of(n), Q = ({
|
|
1428
1428
|
dragHandler: tt,
|
|
@@ -1655,13 +1655,13 @@ function km(e, t, n) {
|
|
|
1655
1655
|
function W() {
|
|
1656
1656
|
return v.indexPrevious.get();
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function H() {
|
|
1659
1659
|
return v.slidesInView.get();
|
|
1660
1660
|
}
|
|
1661
1661
|
function ne() {
|
|
1662
1662
|
return v.slidesInView.get(!1);
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function j() {
|
|
1665
1665
|
return _;
|
|
1666
1666
|
}
|
|
1667
1667
|
function Y() {
|
|
@@ -1685,7 +1685,7 @@ function km(e, t, n) {
|
|
|
1685
1685
|
off: h,
|
|
1686
1686
|
on: u,
|
|
1687
1687
|
emit: p,
|
|
1688
|
-
plugins:
|
|
1688
|
+
plugins: j,
|
|
1689
1689
|
previousScrollSnap: W,
|
|
1690
1690
|
reInit: g,
|
|
1691
1691
|
rootNode: U,
|
|
@@ -1696,7 +1696,7 @@ function km(e, t, n) {
|
|
|
1696
1696
|
scrollTo: N,
|
|
1697
1697
|
selectedScrollSnap: L,
|
|
1698
1698
|
slideNodes: J,
|
|
1699
|
-
slidesInView:
|
|
1699
|
+
slidesInView: H,
|
|
1700
1700
|
slidesNotInView: ne
|
|
1701
1701
|
};
|
|
1702
1702
|
return A(t, n), setTimeout(() => l.emit("init"), 0), ie;
|
|
@@ -4956,9 +4956,9 @@ const JW = /* @__PURE__ */ At(function(t) {
|
|
|
4956
4956
|
rect: O
|
|
4957
4957
|
} : null;
|
|
4958
4958
|
}, [C, T]), N = B(null), [M, I] = X(null), [R, F] = X(null), z = Mf(p, Object.values(p)), $ = th("DndDescribedBy", s), L = K(() => A.getEnabled(), [A]), W = YW(u), {
|
|
4959
|
-
droppableRects:
|
|
4959
|
+
droppableRects: H,
|
|
4960
4960
|
measureDroppableContainers: ne,
|
|
4961
|
-
measuringScheduled:
|
|
4961
|
+
measuringScheduled: j
|
|
4962
4962
|
} = IW(L, {
|
|
4963
4963
|
dragging: k,
|
|
4964
4964
|
dependencies: [S.x, S.y],
|
|
@@ -4976,7 +4976,7 @@ const JW = /* @__PURE__ */ At(function(t) {
|
|
|
4976
4976
|
activeNode: Y,
|
|
4977
4977
|
collisionRect: null,
|
|
4978
4978
|
collisions: null,
|
|
4979
|
-
droppableRects:
|
|
4979
|
+
droppableRects: H,
|
|
4980
4980
|
draggableNodes: E,
|
|
4981
4981
|
draggingNode: null,
|
|
4982
4982
|
draggingNodeRect: null,
|
|
@@ -5006,7 +5006,7 @@ const JW = /* @__PURE__ */ At(function(t) {
|
|
|
5006
5006
|
}), le = U ? Gl(U, S) : null, ue = $W(oe), ge = b4(ue), Ce = b4(ue, [ie]), Pe = Gl(se, ge), He = _e ? lW(_e, se) : null, st = D && He ? f({
|
|
5007
5007
|
active: D,
|
|
5008
5008
|
collisionRect: He,
|
|
5009
|
-
droppableRects:
|
|
5009
|
+
droppableRects: H,
|
|
5010
5010
|
droppableContainers: L,
|
|
5011
5011
|
pointerCoordinates: le
|
|
5012
5012
|
}) : null, tt = IO(st, "id"), [rt, Se] = X(null), et = ve ? se : Gl(se, Ce), pe = sW(et, (o = rt?.rect) != null ? o : null, ie), fe = B(null), me = ee(
|
|
@@ -5227,7 +5227,7 @@ const JW = /* @__PURE__ */ At(function(t) {
|
|
|
5227
5227
|
activeNode: Y,
|
|
5228
5228
|
collisionRect: He,
|
|
5229
5229
|
collisions: st,
|
|
5230
|
-
droppableRects:
|
|
5230
|
+
droppableRects: H,
|
|
5231
5231
|
draggableNodes: E,
|
|
5232
5232
|
draggingNode: be,
|
|
5233
5233
|
draggingNodeRect: _e,
|
|
@@ -5239,7 +5239,7 @@ const JW = /* @__PURE__ */ At(function(t) {
|
|
|
5239
5239
|
initial: _e,
|
|
5240
5240
|
translated: He
|
|
5241
5241
|
};
|
|
5242
|
-
}, [D, Y, st, He, E, be, _e,
|
|
5242
|
+
}, [D, Y, st, He, E, be, _e, H, A, rt, oe, Pe]), NW({
|
|
5243
5243
|
...V,
|
|
5244
5244
|
delta: S,
|
|
5245
5245
|
draggingRect: He,
|
|
@@ -5257,15 +5257,15 @@ const JW = /* @__PURE__ */ At(function(t) {
|
|
|
5257
5257
|
dragOverlay: ye,
|
|
5258
5258
|
draggableNodes: E,
|
|
5259
5259
|
droppableContainers: A,
|
|
5260
|
-
droppableRects:
|
|
5260
|
+
droppableRects: H,
|
|
5261
5261
|
over: rt,
|
|
5262
5262
|
measureDroppableContainers: ne,
|
|
5263
5263
|
scrollableAncestors: oe,
|
|
5264
5264
|
scrollableAncestorRects: de,
|
|
5265
5265
|
measuringConfiguration: W,
|
|
5266
|
-
measuringScheduled:
|
|
5266
|
+
measuringScheduled: j,
|
|
5267
5267
|
windowRect: re
|
|
5268
|
-
}), [D, Y, ie, R, st, Z, ye, E, A,
|
|
5268
|
+
}), [D, Y, ie, R, st, Z, ye, E, A, H, rt, ne, oe, de, W, j, re]), Je = K(() => ({
|
|
5269
5269
|
activatorEvent: R,
|
|
5270
5270
|
activators: we,
|
|
5271
5271
|
active: D,
|
|
@@ -5983,7 +5983,7 @@ function AU(e) {
|
|
|
5983
5983
|
...n
|
|
5984
5984
|
},
|
|
5985
5985
|
disabled: x.draggable
|
|
5986
|
-
}), L = BV(A, M), W = !!T,
|
|
5986
|
+
}), L = BV(A, M), W = !!T, H = W && !p && Fh(u) && Fh(y), ne = !v && R, j = ne && H ? $ : null, U = H ? j ?? (a ?? w)({
|
|
5987
5987
|
rects: g,
|
|
5988
5988
|
activeNodeRect: D,
|
|
5989
5989
|
activeIndex: u,
|
|
@@ -11672,7 +11672,7 @@ function V6e(e) {
|
|
|
11672
11672
|
const { activeIndex: I, activeItem: R, previousItem: F, nextItem: z } = K(
|
|
11673
11673
|
() => rY({ records: E, activeItemId: g, idProvider: u }),
|
|
11674
11674
|
[E, g, u]
|
|
11675
|
-
), $ = K(() => I === -1 || !i ? null : i.type === "pages" ? (i.currentPage - 1) * i.perPage + I : I, [I, i]), L = K(() => i ? i.type === "pages" ? i.currentPage < i.pagesCount : i.type === "infinite-scroll" ? i.hasMore : !1 : !1, [i]), W = K(() => i && i.type === "pages" ? i.currentPage > 1 : !1, [i]),
|
|
11675
|
+
), $ = K(() => I === -1 || !i ? null : i.type === "pages" ? (i.currentPage - 1) * i.perPage + I : I, [I, i]), L = K(() => i ? i.type === "pages" ? i.currentPage < i.pagesCount : i.type === "infinite-scroll" ? i.hasMore : !1 : !1, [i]), W = K(() => i && i.type === "pages" ? i.currentPage > 1 : !1, [i]), H = K(() => I === -1 ? !1 : I < E.length - 1 ? !0 : L, [I, E.length, L]), ne = K(() => I === -1 ? !1 : I > 0 ? !0 : W, [I, W]), j = ee(() => {
|
|
11676
11676
|
if (!(y.current !== null || s) && I !== -1) {
|
|
11677
11677
|
if (I < E.length - 1) {
|
|
11678
11678
|
const Z = E[I + 1];
|
|
@@ -11802,9 +11802,9 @@ function V6e(e) {
|
|
|
11802
11802
|
previousItem: F,
|
|
11803
11803
|
nextItem: z,
|
|
11804
11804
|
activeItemUrl: J,
|
|
11805
|
-
goToNext:
|
|
11805
|
+
goToNext: j,
|
|
11806
11806
|
goToPrevious: Y,
|
|
11807
|
-
hasNext:
|
|
11807
|
+
hasNext: H,
|
|
11808
11808
|
hasPrevious: ne,
|
|
11809
11809
|
setActiveItemId: C,
|
|
11810
11810
|
isNavigating: U,
|
|
@@ -12076,7 +12076,7 @@ function T9({
|
|
|
12076
12076
|
}, W = K(
|
|
12077
12077
|
() => T.calendarView || "day",
|
|
12078
12078
|
[T]
|
|
12079
|
-
), [
|
|
12079
|
+
), [H, ne] = X(s || void 0), j = K(() => {
|
|
12080
12080
|
const U = (o ?? {})[S] || [];
|
|
12081
12081
|
if (!v?.value)
|
|
12082
12082
|
return [];
|
|
@@ -12112,9 +12112,9 @@ function T9({
|
|
|
12112
12112
|
};
|
|
12113
12113
|
return ae(() => {
|
|
12114
12114
|
a?.(
|
|
12115
|
-
|
|
12115
|
+
H ? j[+H]?.dateValue : void 0
|
|
12116
12116
|
);
|
|
12117
|
-
}, [
|
|
12117
|
+
}, [H, a, j]), /* @__PURE__ */ P(xy, { open: p.open, onOpenChange: p.onOpenChange, children: [
|
|
12118
12118
|
/* @__PURE__ */ m(hk, { asChild: d, children: r }),
|
|
12119
12119
|
/* @__PURE__ */ m(
|
|
12120
12120
|
ky,
|
|
@@ -12170,7 +12170,7 @@ function T9({
|
|
|
12170
12170
|
periods: h
|
|
12171
12171
|
}
|
|
12172
12172
|
),
|
|
12173
|
-
|
|
12173
|
+
j.length > 0 ? /* @__PURE__ */ P("div", { className: "mt-4 flex flex-col gap-2", children: [
|
|
12174
12174
|
/* @__PURE__ */ m("div", { className: "text-gray-500 text-sm", children: g.date.compareTo }),
|
|
12175
12175
|
/* @__PURE__ */ m(
|
|
12176
12176
|
Fi,
|
|
@@ -12178,13 +12178,13 @@ function T9({
|
|
|
12178
12178
|
label: g.date.compareTo,
|
|
12179
12179
|
hideLabel: !0,
|
|
12180
12180
|
placeholder: g.date.compareTo,
|
|
12181
|
-
options:
|
|
12181
|
+
options: j.map((U) => ({
|
|
12182
12182
|
label: U.label,
|
|
12183
12183
|
value: U.value,
|
|
12184
12184
|
description: U.description ?? ""
|
|
12185
12185
|
})),
|
|
12186
12186
|
onChange: Y,
|
|
12187
|
-
value:
|
|
12187
|
+
value: H
|
|
12188
12188
|
}
|
|
12189
12189
|
)
|
|
12190
12190
|
] }) : null
|
|
@@ -13179,13 +13179,13 @@ const AY = () => ET("(max-width: 560px)", {
|
|
|
13179
13179
|
U ? b.current.set(Y, U) : b.current.delete(Y);
|
|
13180
13180
|
},
|
|
13181
13181
|
[]
|
|
13182
|
-
),
|
|
13182
|
+
), H = (o && o.trim().length > 0 ? o : void 0) || r || void 0;
|
|
13183
13183
|
ae(() => {
|
|
13184
|
-
process.env.NODE_ENV !== "production" && !
|
|
13184
|
+
process.env.NODE_ENV !== "production" && !H && !_.current && (_.current = !0, console.warn(
|
|
13185
13185
|
"F0DurationInput: provide a non-empty label or ariaLabel for accessibility."
|
|
13186
13186
|
));
|
|
13187
|
-
}, [
|
|
13188
|
-
const ne = h?.type ?? "default",
|
|
13187
|
+
}, [H]);
|
|
13188
|
+
const ne = h?.type ?? "default", j = !s && r.length > 0;
|
|
13189
13189
|
return /* @__PURE__ */ P(
|
|
13190
13190
|
"div",
|
|
13191
13191
|
{
|
|
@@ -13196,7 +13196,7 @@ const AY = () => ET("(max-width: 560px)", {
|
|
|
13196
13196
|
p && "cursor-not-allowed"
|
|
13197
13197
|
),
|
|
13198
13198
|
children: [
|
|
13199
|
-
|
|
13199
|
+
j ? /* @__PURE__ */ m(
|
|
13200
13200
|
NT,
|
|
13201
13201
|
{
|
|
13202
13202
|
label: r,
|
|
@@ -13222,7 +13222,7 @@ const AY = () => ET("(max-width: 560px)", {
|
|
|
13222
13222
|
),
|
|
13223
13223
|
onClick: L,
|
|
13224
13224
|
role: "group",
|
|
13225
|
-
"aria-label":
|
|
13225
|
+
"aria-label": H,
|
|
13226
13226
|
"aria-describedby": n,
|
|
13227
13227
|
"aria-invalid": i,
|
|
13228
13228
|
"aria-disabled": p || void 0,
|
|
@@ -14144,7 +14144,7 @@ function tX(e = {}) {
|
|
|
14144
14144
|
error: Re((re || n).errors, q),
|
|
14145
14145
|
isValidating: !!Re(n.validatingFields, q),
|
|
14146
14146
|
isTouched: !!Re((re || n).touchedFields, q)
|
|
14147
|
-
}),
|
|
14147
|
+
}), H = (q) => {
|
|
14148
14148
|
q && nf(q).forEach((re) => xn(n.errors, re)), f.state.next({
|
|
14149
14149
|
errors: q ? n.errors : {}
|
|
14150
14150
|
});
|
|
@@ -14159,7 +14159,7 @@ function tX(e = {}) {
|
|
|
14159
14159
|
errors: n.errors,
|
|
14160
14160
|
isValid: !1
|
|
14161
14161
|
}), oe && oe.shouldFocus && de && de.focus && de.focus();
|
|
14162
|
-
},
|
|
14162
|
+
}, j = (q, re) => Kr(q) ? f.values.subscribe({
|
|
14163
14163
|
next: (oe) => q(D(void 0, re), oe)
|
|
14164
14164
|
}) : D(q, re, !0), Y = (q, re = {}) => {
|
|
14165
14165
|
for (const oe of q ? nf(q) : a.mount)
|
|
@@ -14388,12 +14388,12 @@ function tX(e = {}) {
|
|
|
14388
14388
|
trigger: $,
|
|
14389
14389
|
register: V,
|
|
14390
14390
|
handleSubmit: Z,
|
|
14391
|
-
watch:
|
|
14391
|
+
watch: j,
|
|
14392
14392
|
setValue: R,
|
|
14393
14393
|
getValues: L,
|
|
14394
14394
|
reset: ye,
|
|
14395
14395
|
resetField: Q,
|
|
14396
|
-
clearErrors:
|
|
14396
|
+
clearErrors: H,
|
|
14397
14397
|
unregister: Y,
|
|
14398
14398
|
setError: ne,
|
|
14399
14399
|
setFocus: (q, re = {}) => {
|
|
@@ -16834,17 +16834,17 @@ function iJ({
|
|
|
16834
16834
|
null
|
|
16835
16835
|
), [R, F] = X(
|
|
16836
16836
|
null
|
|
16837
|
-
), z = B(null), $ = B(!1), L = B(null), W = B(null),
|
|
16837
|
+
), z = B(null), $ = B(!1), L = B(null), W = B(null), H = B(null), ne = B(null), j = B(null), Y = B(0), U = B(0), V = B(!1), J = B(null), ie = ee(
|
|
16838
16838
|
(ve, q) => {
|
|
16839
|
-
|
|
16840
|
-
const oe = (o ? A : y).findIndex((ge) => ge.id === ve), de =
|
|
16841
|
-
|
|
16839
|
+
H.current && (clearTimeout(H.current), H.current = null);
|
|
16840
|
+
const oe = (o ? A : y).findIndex((ge) => ge.id === ve), de = j.current !== null && oe < j.current;
|
|
16841
|
+
j.current = oe;
|
|
16842
16842
|
const se = `${ve}-${q}`, le = D && M ? `${D}-${M}` : null;
|
|
16843
16843
|
if (se === le)
|
|
16844
16844
|
return;
|
|
16845
16845
|
ne.current = { itemId: ve, position: q };
|
|
16846
16846
|
const ue = de ? 50 : 30;
|
|
16847
|
-
|
|
16847
|
+
H.current = setTimeout(() => {
|
|
16848
16848
|
const ge = ne.current;
|
|
16849
16849
|
if (ge) {
|
|
16850
16850
|
N(ge.itemId), I(ge.position), L.current = ge.itemId, W.current = ge.position;
|
|
@@ -16853,7 +16853,7 @@ function iJ({
|
|
|
16853
16853
|
const He = (o ? A : y)[0];
|
|
16854
16854
|
ge.itemId === He?.id && ge.position === "before" && (V.current = !0);
|
|
16855
16855
|
}
|
|
16856
|
-
|
|
16856
|
+
H.current = null;
|
|
16857
16857
|
}, ue);
|
|
16858
16858
|
},
|
|
16859
16859
|
[
|
|
@@ -16865,40 +16865,40 @@ function iJ({
|
|
|
16865
16865
|
]
|
|
16866
16866
|
);
|
|
16867
16867
|
ae(() => () => {
|
|
16868
|
-
|
|
16868
|
+
H.current && clearTimeout(H.current);
|
|
16869
16869
|
}, []);
|
|
16870
16870
|
const Z = ee(() => {
|
|
16871
16871
|
if ($.current)
|
|
16872
16872
|
return;
|
|
16873
|
-
|
|
16873
|
+
H.current && clearTimeout(H.current);
|
|
16874
16874
|
const ve = V.current ? 1e3 : 800;
|
|
16875
|
-
|
|
16875
|
+
H.current = setTimeout(() => {
|
|
16876
16876
|
if ($.current) {
|
|
16877
|
-
|
|
16877
|
+
H.current = null;
|
|
16878
16878
|
return;
|
|
16879
16879
|
}
|
|
16880
16880
|
const q = Date.now(), re = q - Y.current, oe = q - U.current, de = V.current ? 800 : 500;
|
|
16881
16881
|
if (oe < de) {
|
|
16882
|
-
|
|
16882
|
+
H.current = null;
|
|
16883
16883
|
return;
|
|
16884
16884
|
}
|
|
16885
16885
|
const se = V.current ? 800 : 500;
|
|
16886
16886
|
if (re < se) {
|
|
16887
|
-
|
|
16887
|
+
H.current = null;
|
|
16888
16888
|
return;
|
|
16889
16889
|
}
|
|
16890
16890
|
if (V.current) {
|
|
16891
16891
|
const ue = (o ? A : y)[0];
|
|
16892
16892
|
if (D === ue?.id && M === "before") {
|
|
16893
16893
|
if (oe < 2e3) {
|
|
16894
|
-
|
|
16894
|
+
H.current = null;
|
|
16895
16895
|
return;
|
|
16896
16896
|
}
|
|
16897
16897
|
V.current = !1;
|
|
16898
16898
|
} else
|
|
16899
16899
|
V.current = !1;
|
|
16900
16900
|
}
|
|
16901
|
-
|
|
16901
|
+
j.current = null, Y.current = 0, N(null), I(null), L.current = null, W.current = null, H.current = null;
|
|
16902
16902
|
}, ve);
|
|
16903
16903
|
}, [
|
|
16904
16904
|
D,
|
|
@@ -16910,7 +16910,7 @@ function iJ({
|
|
|
16910
16910
|
(ve, q) => {
|
|
16911
16911
|
$.current = !0;
|
|
16912
16912
|
const re = z.current;
|
|
16913
|
-
if (V.current = !1, N(null), I(null), L.current = null, W.current = null,
|
|
16913
|
+
if (V.current = !1, N(null), I(null), L.current = null, W.current = null, H.current && (clearTimeout(H.current), H.current = null), !re || re === ve) {
|
|
16914
16914
|
z.current = null, O(null), N(null), I(null);
|
|
16915
16915
|
return;
|
|
16916
16916
|
}
|
|
@@ -16951,22 +16951,22 @@ function iJ({
|
|
|
16951
16951
|
F(null);
|
|
16952
16952
|
}, 300));
|
|
16953
16953
|
}
|
|
16954
|
-
V.current = !1, z.current = null, $.current = !0,
|
|
16954
|
+
V.current = !1, z.current = null, $.current = !0, j.current = null, Y.current = 0, U.current = 0, J.current && (clearTimeout(J.current), J.current = null), O(null), setTimeout(() => {
|
|
16955
16955
|
$.current = !1;
|
|
16956
16956
|
}, 600);
|
|
16957
16957
|
},
|
|
16958
16958
|
[x, S]
|
|
16959
16959
|
), ce = ee(() => {
|
|
16960
|
-
|
|
16960
|
+
H.current && (clearTimeout(H.current), H.current = null), J.current && (clearTimeout(J.current), J.current = null);
|
|
16961
16961
|
}, []), ye = ee(
|
|
16962
16962
|
(ve) => {
|
|
16963
16963
|
ce(), z.current = ve, $.current = !1, ne.current = null, O(ve);
|
|
16964
16964
|
},
|
|
16965
16965
|
[ce]
|
|
16966
16966
|
), be = ee(() => {
|
|
16967
|
-
V.current = !1, $.current = !1, ne.current = null,
|
|
16967
|
+
V.current = !1, $.current = !1, ne.current = null, j.current = null, Y.current = 0, U.current = 0, ce(), N(null), I(null), L.current = null, W.current = null, O(null), z.current = null;
|
|
16968
16968
|
}, [ce]), _e = ee(() => {
|
|
16969
|
-
|
|
16969
|
+
H.current && (clearTimeout(H.current), H.current = null), V.current = !1;
|
|
16970
16970
|
const ve = L.current || ne.current?.itemId, q = W.current || ne.current?.position;
|
|
16971
16971
|
!$.current && ve && q && z.current && z.current !== ve && requestAnimationFrame(() => {
|
|
16972
16972
|
requestAnimationFrame(() => {
|
|
@@ -16977,7 +16977,7 @@ function iJ({
|
|
|
16977
16977
|
});
|
|
16978
16978
|
}), J.current && (clearTimeout(J.current), J.current = null);
|
|
16979
16979
|
const re = setTimeout(() => {
|
|
16980
|
-
$.current || (ne.current = null,
|
|
16980
|
+
$.current || (ne.current = null, j.current = null, Y.current = 0, U.current = 0, N(null), I(null), L.current = null, W.current = null, O(null), z.current = null), J.current === re && (J.current = null);
|
|
16981
16981
|
}, 500);
|
|
16982
16982
|
J.current = re;
|
|
16983
16983
|
}, [Q]);
|
|
@@ -24658,8 +24658,8 @@ const lte = (e, t) => /* @__PURE__ */ m(
|
|
|
24658
24658
|
}
|
|
24659
24659
|
),
|
|
24660
24660
|
x ? h.map((z, $) => {
|
|
24661
|
-
const L = z, W = e.source.itemsWithChildren?.(L),
|
|
24662
|
-
if (
|
|
24661
|
+
const L = z, W = e.source.itemsWithChildren?.(L), H = $ === 0, ne = $ === h.length - 1, j = (e.nestedRowProps?.depth ?? 0) + 1, Y = () => {
|
|
24662
|
+
if (H)
|
|
24663
24663
|
return (Z) => {
|
|
24664
24664
|
A(Z);
|
|
24665
24665
|
};
|
|
@@ -24682,7 +24682,7 @@ const lte = (e, t) => /* @__PURE__ */ m(
|
|
|
24682
24682
|
nestedRowProps: {
|
|
24683
24683
|
...e.nestedRowProps,
|
|
24684
24684
|
parentHasChildren: !0,
|
|
24685
|
-
depth:
|
|
24685
|
+
depth: j,
|
|
24686
24686
|
isLastChild: U
|
|
24687
24687
|
},
|
|
24688
24688
|
fromVisualization: e.fromVisualization
|
|
@@ -24835,13 +24835,13 @@ const lte = (e, t) => /* @__PURE__ */ m(
|
|
|
24835
24835
|
visualization: "table",
|
|
24836
24836
|
i18n: F,
|
|
24837
24837
|
tableAlign: de.align ?? "left"
|
|
24838
|
-
}), W = `table-row-${d}-${c}`, { getStickyPosition:
|
|
24838
|
+
}), W = `table-row-${d}-${c}`, { getStickyPosition: H } = RI(
|
|
24839
24839
|
a,
|
|
24840
24840
|
s,
|
|
24841
24841
|
!!e.selectable
|
|
24842
24842
|
), {
|
|
24843
24843
|
hasItemActions: ne,
|
|
24844
|
-
hasMobileItemActions:
|
|
24844
|
+
hasMobileItemActions: j,
|
|
24845
24845
|
primaryItemActions: Y,
|
|
24846
24846
|
dropdownItemActions: U,
|
|
24847
24847
|
mobileDropdownItemActions: V,
|
|
@@ -24958,7 +24958,7 @@ const lte = (e, t) => /* @__PURE__ */ m(
|
|
|
24958
24958
|
onClick: O,
|
|
24959
24959
|
width: oe.width,
|
|
24960
24960
|
minWidth: oe.minWidth,
|
|
24961
|
-
sticky:
|
|
24961
|
+
sticky: H(de),
|
|
24962
24962
|
loading: u,
|
|
24963
24963
|
nestedRowProps: {
|
|
24964
24964
|
...h,
|
|
@@ -25021,7 +25021,7 @@ const lte = (e, t) => /* @__PURE__ */ m(
|
|
|
25021
25021
|
)
|
|
25022
25022
|
}
|
|
25023
25023
|
) }),
|
|
25024
|
-
|
|
25024
|
+
j ? /* @__PURE__ */ m(
|
|
25025
25025
|
In,
|
|
25026
25026
|
{
|
|
25027
25027
|
width: 68,
|
|
@@ -25585,9 +25585,9 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
25585
25585
|
);
|
|
25586
25586
|
const {
|
|
25587
25587
|
data: W,
|
|
25588
|
-
paginationInfo:
|
|
25588
|
+
paginationInfo: H,
|
|
25589
25589
|
setPage: ne,
|
|
25590
|
-
isInitialLoading:
|
|
25590
|
+
isInitialLoading: j,
|
|
25591
25591
|
isLoadingMore: Y,
|
|
25592
25592
|
loadMore: U,
|
|
25593
25593
|
summaries: V,
|
|
@@ -25607,20 +25607,20 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
25607
25607
|
() => w === !1 ? { ...ve, itemActions: void 0 } : ve,
|
|
25608
25608
|
[ve, w]
|
|
25609
25609
|
), re = (he) => _e.itemsWithChildren?.(he) ? _e : void 0, oe = K(() => Lz(), []), { loadingIndicatorRef: de } = x2(
|
|
25610
|
-
|
|
25610
|
+
H,
|
|
25611
25611
|
Q,
|
|
25612
25612
|
Y,
|
|
25613
25613
|
U
|
|
25614
25614
|
);
|
|
25615
25615
|
ae(() => {
|
|
25616
25616
|
o({
|
|
25617
|
-
totalItems:
|
|
25617
|
+
totalItems: H?.total || W.records.length,
|
|
25618
25618
|
filters: t.currentFilters,
|
|
25619
25619
|
search: t.currentSearch,
|
|
25620
|
-
isInitialLoading:
|
|
25620
|
+
isInitialLoading: j,
|
|
25621
25621
|
data: W.records
|
|
25622
25622
|
});
|
|
25623
|
-
}, [
|
|
25623
|
+
}, [H?.total, W.records]);
|
|
25624
25624
|
const se = D.length, le = (he, Ee) => "id" in he && he.id !== void 0 && he.id !== null ? `id:${String(he.id)}` : `index:${String(Ee)}`, ue = W?.type === "flat" ? W.records.map((he, Ee) => `row-${le(he, Ee)}`) : [], ge = kte(ue, J), Ce = Cte(), {
|
|
25625
25625
|
selectedItems: Pe,
|
|
25626
25626
|
allSelectedStatus: He,
|
|
@@ -25631,7 +25631,7 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
25631
25631
|
handleSelectGroupChange: et
|
|
25632
25632
|
} = Ey({
|
|
25633
25633
|
data: W,
|
|
25634
|
-
paginationInfo:
|
|
25634
|
+
paginationInfo: H,
|
|
25635
25635
|
source: t,
|
|
25636
25636
|
onSelectItems: r,
|
|
25637
25637
|
selectionMode: "multi",
|
|
@@ -25671,7 +25671,7 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
25671
25671
|
), Tt = W?.records.some(
|
|
25672
25672
|
(he) => t.itemsWithChildren?.(he)
|
|
25673
25673
|
);
|
|
25674
|
-
if (
|
|
25674
|
+
if (j)
|
|
25675
25675
|
return /* @__PURE__ */ m(Gb.Skeleton, { columns: It });
|
|
25676
25676
|
t.sortings || M.forEach((he) => {
|
|
25677
25677
|
he.sorting && console.warn(
|
|
@@ -25679,9 +25679,9 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
25679
25679
|
);
|
|
25680
25680
|
});
|
|
25681
25681
|
const nn = He.selectedCount > 0 || He.checked, Zt = Ce.ids.length > 0 ? Ce.ids : (W?.records ?? []).filter((he) => !t.selectionDisabled?.(he)).map((he) => t.selectable?.(he)).filter((he) => he !== void 0), on = t.disableSelectAll ?? !1, Ln = Zt.length > 0 && Zt.every((he) => Pe.has(he)), sn = Math.max(
|
|
25682
|
-
|
|
25682
|
+
H?.total ?? 0,
|
|
25683
25683
|
Zt.length
|
|
25684
|
-
), qt = He.checked && !He.indeterminate || Ln, Fn = !on && !!t.allPagesSelection && (!He.checked || He.indeterminate) &&
|
|
25684
|
+
), qt = He.checked && !He.indeterminate || Ln, Fn = !on && !!t.allPagesSelection && (!He.checked || He.indeterminate) && H?.total !== void 0 && sn > He.selectedCount, $n = M.length + (ce ? be : 0), Ue = He.selectedCount === 1 ? C.status.selected.singular : C.status.selected.plural;
|
|
25685
25685
|
return /* @__PURE__ */ m("div", { className: "flex h-full min-h-0 flex-col gap-4", children: /* @__PURE__ */ P(
|
|
25686
25686
|
nte,
|
|
25687
25687
|
{
|
|
@@ -26033,7 +26033,7 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
26033
26033
|
);
|
|
26034
26034
|
return y ? /* @__PURE__ */ m(y, { item: he, index: Ee, children: Qt }, ze) : Qt;
|
|
26035
26035
|
}) : null,
|
|
26036
|
-
|
|
26036
|
+
H?.type === "infinite-scroll" && Y ? Array.from({ length: 5 }).map((he, Ee) => /* @__PURE__ */ m(yi, { children: Array.from({ length: It }).map(
|
|
26037
26037
|
(ze, lt) => /* @__PURE__ */ m(
|
|
26038
26038
|
In,
|
|
26039
26039
|
{
|
|
@@ -26042,7 +26042,7 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
26042
26042
|
`skeleton-cell-${Ee}-${lt}`
|
|
26043
26043
|
)
|
|
26044
26044
|
) }, `skeleton-row-${Ee}`)) : null,
|
|
26045
|
-
wm(
|
|
26045
|
+
wm(H) && H.hasMore ? /* @__PURE__ */ m("tr", { children: /* @__PURE__ */ m(
|
|
26046
26046
|
"td",
|
|
26047
26047
|
{
|
|
26048
26048
|
colSpan: M.length + (t.selectable ? 1 : 0) + (ce ? 1 : 0),
|
|
@@ -26205,7 +26205,7 @@ const _te = 220, Ste = (e, t, n, i = !0) => {
|
|
|
26205
26205
|
/* @__PURE__ */ m(
|
|
26206
26206
|
w2,
|
|
26207
26207
|
{
|
|
26208
|
-
paginationInfo:
|
|
26208
|
+
paginationInfo: H,
|
|
26209
26209
|
setPage: ne,
|
|
26210
26210
|
className: "pb-4"
|
|
26211
26211
|
}
|
|
@@ -27799,11 +27799,11 @@ function pM() {
|
|
|
27799
27799
|
}).on("interrupt.zoom end.zoom", function() {
|
|
27800
27800
|
k(this, arguments).event(R).end();
|
|
27801
27801
|
}).tween("zoom", function() {
|
|
27802
|
-
var F = this, z = arguments, $ = k(F, z).event(R), L = t.apply(F, z), W = I == null ? b(L) : typeof I == "function" ? I.apply(F, z) : I,
|
|
27802
|
+
var F = this, z = arguments, $ = k(F, z).event(R), L = t.apply(F, z), W = I == null ? b(L) : typeof I == "function" ? I.apply(F, z) : I, H = Math.max(L[1][0] - L[0][0], L[1][1] - L[0][1]), ne = F.__zoom, j = typeof M == "function" ? M.apply(F, z) : M, Y = l(ne.invert(W).concat(H / ne.k), j.invert(W).concat(H / j.k));
|
|
27803
27803
|
return function(U) {
|
|
27804
|
-
if (U === 1) U =
|
|
27804
|
+
if (U === 1) U = j;
|
|
27805
27805
|
else {
|
|
27806
|
-
var V = Y(U), J =
|
|
27806
|
+
var V = Y(U), J = H / V[2];
|
|
27807
27807
|
U = new To(J, W[0] - V[0] * J, W[1] - V[1] * J);
|
|
27808
27808
|
}
|
|
27809
27809
|
$.zoom(null, U);
|
|
@@ -27860,16 +27860,16 @@ function pM() {
|
|
|
27860
27860
|
}
|
|
27861
27861
|
function S(N, ...M) {
|
|
27862
27862
|
if (u || !e.apply(this, arguments)) return;
|
|
27863
|
-
var I = N.currentTarget, R = k(this, M, !0).event(N), F = Mi(N.view).on("mousemove.zoom", W, !0).on("mouseup.zoom",
|
|
27863
|
+
var I = N.currentTarget, R = k(this, M, !0).event(N), F = Mi(N.view).on("mousemove.zoom", W, !0).on("mouseup.zoom", H, !0), z = wr(N, I), $ = N.clientX, L = N.clientY;
|
|
27864
27864
|
iM(N.view), qv(N), R.mouse = [z, this.__zoom.invert(z)], qp(this), R.start();
|
|
27865
27865
|
function W(ne) {
|
|
27866
27866
|
if (Dd(ne), !R.moved) {
|
|
27867
|
-
var
|
|
27868
|
-
R.moved =
|
|
27867
|
+
var j = ne.clientX - $, Y = ne.clientY - L;
|
|
27868
|
+
R.moved = j * j + Y * Y > g;
|
|
27869
27869
|
}
|
|
27870
27870
|
R.event(ne).zoom("mouse", n(x(R.that.__zoom, R.mouse[0] = wr(ne, I), R.mouse[1]), R.extent, s));
|
|
27871
27871
|
}
|
|
27872
|
-
function
|
|
27872
|
+
function H(ne) {
|
|
27873
27873
|
F.on("mousemove.zoom mouseup.zoom", null), rM(ne.view, R.moved), Dd(ne), R.event(ne).end();
|
|
27874
27874
|
}
|
|
27875
27875
|
}
|
|
@@ -27895,8 +27895,8 @@ function pM() {
|
|
|
27895
27895
|
for (Dd(N), z = 0; z < F; ++z)
|
|
27896
27896
|
$ = R[z], L = wr($, this), I.touch0 && I.touch0[2] === $.identifier ? I.touch0[0] = L : I.touch1 && I.touch1[2] === $.identifier && (I.touch1[0] = L);
|
|
27897
27897
|
if ($ = I.that.__zoom, I.touch1) {
|
|
27898
|
-
var
|
|
27899
|
-
$ = w($, Math.sqrt(U / V)), L = [(
|
|
27898
|
+
var H = I.touch0[0], ne = I.touch0[1], j = I.touch1[0], Y = I.touch1[1], U = (U = j[0] - H[0]) * U + (U = j[1] - H[1]) * U, V = (V = Y[0] - ne[0]) * V + (V = Y[1] - ne[1]) * V;
|
|
27899
|
+
$ = w($, Math.sqrt(U / V)), L = [(H[0] + j[0]) / 2, (H[1] + j[1]) / 2], W = [(ne[0] + Y[0]) / 2, (ne[1] + Y[1]) / 2];
|
|
27900
27900
|
} else if (I.touch0) L = I.touch0[0], W = I.touch0[1];
|
|
27901
27901
|
else return;
|
|
27902
27902
|
I.zoom("touch", n(x($, L, W), I.extent, s));
|
|
@@ -28918,8 +28918,8 @@ function yoe({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
|
|
|
28918
28918
|
function E({ x: O, y: D }) {
|
|
28919
28919
|
const { nodeLookup: N, nodeExtent: M, snapGrid: I, snapToGrid: R, nodeOrigin: F, onNodeDrag: z, onSelectionDrag: $, onError: L, updateNodePositions: W } = t();
|
|
28920
28920
|
o = { x: O, y: D };
|
|
28921
|
-
let
|
|
28922
|
-
const ne = a.size > 1,
|
|
28921
|
+
let H = !1;
|
|
28922
|
+
const ne = a.size > 1, j = ne && M ? cw(cd(a)) : null, Y = ne && R ? goe({
|
|
28923
28923
|
dragItems: a,
|
|
28924
28924
|
snapGrid: I,
|
|
28925
28925
|
x: O,
|
|
@@ -28934,8 +28934,8 @@ function yoe({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
|
|
|
28934
28934
|
y: Math.round(J.y + Y.y)
|
|
28935
28935
|
} : mh(J, I));
|
|
28936
28936
|
let ie = null;
|
|
28937
|
-
if (ne && M && !V.extent &&
|
|
28938
|
-
const { positionAbsolute: ce } = V.internals, ye = ce.x -
|
|
28937
|
+
if (ne && M && !V.extent && j) {
|
|
28938
|
+
const { positionAbsolute: ce } = V.internals, ye = ce.x - j.x + M[0][0], be = ce.x + V.measured.width - j.x2 + M[1][0], _e = ce.y - j.y + M[0][1], ve = ce.y + V.measured.height - j.y2 + M[1][1];
|
|
28939
28939
|
ie = [
|
|
28940
28940
|
[ye, _e],
|
|
28941
28941
|
[be, ve]
|
|
@@ -28949,9 +28949,9 @@ function yoe({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
|
|
|
28949
28949
|
nodeOrigin: F,
|
|
28950
28950
|
onError: L
|
|
28951
28951
|
});
|
|
28952
|
-
|
|
28952
|
+
H = H || V.position.x !== Z.x || V.position.y !== Z.y, V.position = Z, V.internals.positionAbsolute = Q;
|
|
28953
28953
|
}
|
|
28954
|
-
if (p = p ||
|
|
28954
|
+
if (p = p || H, !!H && (W(a, !0), g && (i || z || !k && $))) {
|
|
28955
28955
|
const [U, V] = Gv({
|
|
28956
28956
|
nodeId: k,
|
|
28957
28957
|
dragItems: a,
|
|
@@ -28974,14 +28974,14 @@ function yoe({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
|
|
|
28974
28974
|
function A(O) {
|
|
28975
28975
|
const { nodeLookup: D, multiSelectionActive: N, nodesDraggable: M, transform: I, snapGrid: R, snapToGrid: F, selectNodesOnDrag: z, onNodeDragStart: $, onSelectionDragStart: L, unselectNodesAndEdges: W } = t();
|
|
28976
28976
|
f = !0, (!z || !_) && !N && k && (D.get(k)?.selected || W()), _ && z && k && e?.(k);
|
|
28977
|
-
const
|
|
28978
|
-
if (o =
|
|
28979
|
-
const [ne,
|
|
28977
|
+
const H = af(O.sourceEvent, { transform: I, snapGrid: R, snapToGrid: F, containerBounds: d });
|
|
28978
|
+
if (o = H, a = moe(D, M, H, k), a.size > 0 && (n || $ || !k && L)) {
|
|
28979
|
+
const [ne, j] = Gv({
|
|
28980
28980
|
nodeId: k,
|
|
28981
28981
|
dragItems: a,
|
|
28982
28982
|
nodeLookup: D
|
|
28983
28983
|
});
|
|
28984
|
-
n?.(O.sourceEvent, a, ne,
|
|
28984
|
+
n?.(O.sourceEvent, a, ne, j), $?.(O.sourceEvent, ne, j), k || L?.(O.sourceEvent, j);
|
|
28985
28985
|
}
|
|
28986
28986
|
}
|
|
28987
28987
|
const T = oM().clickDistance(C).on("start", (O) => {
|
|
@@ -29082,25 +29082,25 @@ function koe(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
|
|
|
29082
29082
|
if (!R)
|
|
29083
29083
|
return;
|
|
29084
29084
|
let F = Cr(e, M), z = !1, $ = null, L = !1, W = null;
|
|
29085
|
-
function
|
|
29085
|
+
function H() {
|
|
29086
29086
|
if (!d || !M)
|
|
29087
29087
|
return;
|
|
29088
29088
|
const [Z, Q] = kM(F, M, k);
|
|
29089
|
-
u({ x: Z, y: Q }), A = requestAnimationFrame(
|
|
29089
|
+
u({ x: Z, y: Q }), A = requestAnimationFrame(H);
|
|
29090
29090
|
}
|
|
29091
29091
|
const ne = {
|
|
29092
29092
|
...R,
|
|
29093
29093
|
nodeId: r,
|
|
29094
29094
|
type: N,
|
|
29095
29095
|
position: R.position
|
|
29096
|
-
},
|
|
29096
|
+
}, j = l.get(r);
|
|
29097
29097
|
let U = {
|
|
29098
29098
|
inProgress: !0,
|
|
29099
29099
|
isValid: null,
|
|
29100
|
-
from: Ka(
|
|
29100
|
+
from: Ka(j, ne, Le.Left, !0),
|
|
29101
29101
|
fromHandle: ne,
|
|
29102
29102
|
fromPosition: ne.position,
|
|
29103
|
-
fromNode:
|
|
29103
|
+
fromNode: j,
|
|
29104
29104
|
to: F,
|
|
29105
29105
|
toHandle: null,
|
|
29106
29106
|
toPosition: SC[ne.position],
|
|
@@ -29123,7 +29123,7 @@ function koe(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
|
|
|
29123
29123
|
return;
|
|
29124
29124
|
}
|
|
29125
29125
|
const Q = b();
|
|
29126
|
-
F = Cr(Z, M), T = woe(gh(F, Q, !1, [1, 1]), n, l, ne), z || (
|
|
29126
|
+
F = Cr(Z, M), T = woe(gh(F, Q, !1, [1, 1]), n, l, ne), z || (H(), z = !0);
|
|
29127
29127
|
const ce = BM(Z, {
|
|
29128
29128
|
handle: T,
|
|
29129
29129
|
connectionMode: t,
|
|
@@ -29352,9 +29352,9 @@ function Doe({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
|
|
|
29352
29352
|
f?.interpolate(O?.interpolate === "linear" ? lv : Rp).transform(Yv(u, O?.duration, O?.ease, () => D(!0)), T);
|
|
29353
29353
|
}) : Promise.resolve(!1);
|
|
29354
29354
|
}
|
|
29355
|
-
function y({ noWheelClassName: T, noPanClassName: O, onPaneContextMenu: D, userSelectionActive: N, panOnScroll: M, panOnDrag: I, panOnScrollMode: R, panOnScrollSpeed: F, preventScrolling: z, zoomOnPinch: $, zoomOnScroll: L, zoomOnDoubleClick: W, zoomActivationKeyPressed:
|
|
29355
|
+
function y({ noWheelClassName: T, noPanClassName: O, onPaneContextMenu: D, userSelectionActive: N, panOnScroll: M, panOnDrag: I, panOnScrollMode: R, panOnScrollSpeed: F, preventScrolling: z, zoomOnPinch: $, zoomOnScroll: L, zoomOnDoubleClick: W, zoomActivationKeyPressed: H, lib: ne, onTransformChange: j, connectionInProgress: Y, paneClickDistance: U, selectionOnDrag: V }) {
|
|
29356
29356
|
N && !c.isZoomingOrPanning && v();
|
|
29357
|
-
const J = M && !
|
|
29357
|
+
const J = M && !H && !N;
|
|
29358
29358
|
f.clickDistance(V ? 1 / 0 : !Sr(U) || U < 0 ? 0 : U);
|
|
29359
29359
|
const ie = J ? Coe({
|
|
29360
29360
|
zoomPanValues: c,
|
|
@@ -29384,7 +29384,7 @@ function Doe({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
|
|
|
29384
29384
|
panOnDrag: I,
|
|
29385
29385
|
onPaneContextMenu: !!D,
|
|
29386
29386
|
onPanZoom: o,
|
|
29387
|
-
onTransformChange:
|
|
29387
|
+
onTransformChange: j
|
|
29388
29388
|
});
|
|
29389
29389
|
f.on("zoom", ce);
|
|
29390
29390
|
const ye = Toe({
|
|
@@ -29398,7 +29398,7 @@ function Doe({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
|
|
|
29398
29398
|
f.on("end", ye);
|
|
29399
29399
|
}
|
|
29400
29400
|
const Z = Ooe({
|
|
29401
|
-
zoomActivationKeyPressed:
|
|
29401
|
+
zoomActivationKeyPressed: H,
|
|
29402
29402
|
panOnDrag: I,
|
|
29403
29403
|
zoomOnScroll: L,
|
|
29404
29404
|
panOnScroll: M,
|
|
@@ -29628,21 +29628,21 @@ function Foe({ domNode: e, nodeId: t, getStoreItems: n, onChange: i, onEnd: r })
|
|
|
29628
29628
|
}), R = [];
|
|
29629
29629
|
if (!x)
|
|
29630
29630
|
return;
|
|
29631
|
-
const { x: F, y: z, width: $, height: L } = v, W = {},
|
|
29631
|
+
const { x: F, y: z, width: $, height: L } = v, W = {}, H = x.origin ?? M, { width: ne, height: j, x: Y, y: U } = Moe(w, s.controlDirection, I, s.boundaries, s.keepAspectRatio, H, C, E), V = ne !== $, J = j !== L, ie = Y !== F && V, Z = U !== z && J;
|
|
29632
29632
|
if (!ie && !Z && !V && !J)
|
|
29633
29633
|
return;
|
|
29634
|
-
if ((ie || Z ||
|
|
29634
|
+
if ((ie || Z || H[0] === 1 || H[1] === 1) && (W.x = ie ? Y : v.x, W.y = Z ? U : v.y, v.x = W.x, v.y = W.y, _.length > 0)) {
|
|
29635
29635
|
const be = Y - F, _e = U - z;
|
|
29636
29636
|
for (const ve of _)
|
|
29637
29637
|
ve.position = {
|
|
29638
|
-
x: ve.position.x - be +
|
|
29639
|
-
y: ve.position.y - _e +
|
|
29638
|
+
x: ve.position.x - be + H[0] * (ne - $),
|
|
29639
|
+
y: ve.position.y - _e + H[1] * (j - L)
|
|
29640
29640
|
}, R.push(ve);
|
|
29641
29641
|
}
|
|
29642
|
-
if ((V || J) && (W.width = V && (!s.resizeDirection || s.resizeDirection === "horizontal") ? ne : v.width, W.height = J && (!s.resizeDirection || s.resizeDirection === "vertical") ?
|
|
29643
|
-
const be =
|
|
29642
|
+
if ((V || J) && (W.width = V && (!s.resizeDirection || s.resizeDirection === "horizontal") ? ne : v.width, W.height = J && (!s.resizeDirection || s.resizeDirection === "vertical") ? j : v.height, v.width = W.width, v.height = W.height), k && x.expandParent) {
|
|
29643
|
+
const be = H[0] * (W.width ?? 0);
|
|
29644
29644
|
W.x && W.x < be && (v.x = be, w.x = w.x - (W.x - be));
|
|
29645
|
-
const _e =
|
|
29645
|
+
const _e = H[1] * (W.height ?? 0);
|
|
29646
29646
|
W.y && W.y < _e && (v.y = _e, w.y = w.y - (W.y - _e));
|
|
29647
29647
|
}
|
|
29648
29648
|
const Q = Ioe({
|
|
@@ -30562,19 +30562,19 @@ function Ose({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Zf.Ful
|
|
|
30562
30562
|
if (!$ && !!F.target.closest(".nokey") || !e || !(o && $ || t) || F.button !== 0 || !F.isPrimary)
|
|
30563
30563
|
return;
|
|
30564
30564
|
F.target?.setPointerCapture?.(F.pointerId), S.current = !1;
|
|
30565
|
-
const { x:
|
|
30565
|
+
const { x: H, y: ne } = Cr(F.nativeEvent, k.current);
|
|
30566
30566
|
g.setState({
|
|
30567
30567
|
userSelectionRect: {
|
|
30568
30568
|
width: 0,
|
|
30569
30569
|
height: 0,
|
|
30570
|
-
startX:
|
|
30570
|
+
startX: H,
|
|
30571
30571
|
startY: ne,
|
|
30572
|
-
x:
|
|
30572
|
+
x: H,
|
|
30573
30573
|
y: ne
|
|
30574
30574
|
}
|
|
30575
30575
|
}), $ || (F.stopPropagation(), F.preventDefault());
|
|
30576
30576
|
}, M = (F) => {
|
|
30577
|
-
const { userSelectionRect: z, transform: $, nodeLookup: L, edgeLookup: W, connectionLookup:
|
|
30577
|
+
const { userSelectionRect: z, transform: $, nodeLookup: L, edgeLookup: W, connectionLookup: H, triggerNodeChanges: ne, triggerEdgeChanges: j, defaultEdgeOptions: Y, resetSelectedElements: U } = g.getState();
|
|
30578
30578
|
if (!k.current || !z)
|
|
30579
30579
|
return;
|
|
30580
30580
|
const { x: V, y: J } = Cr(F.nativeEvent, k.current), { startX: ie, startY: Z } = z;
|
|
@@ -30596,7 +30596,7 @@ function Ose({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Zf.Ful
|
|
|
30596
30596
|
C.current = new Set(A2(L, Q, $, n === Zf.Partial, !0).map((_e) => _e.id)), E.current = /* @__PURE__ */ new Set();
|
|
30597
30597
|
const be = Y?.selectable ?? !0;
|
|
30598
30598
|
for (const _e of C.current) {
|
|
30599
|
-
const ve =
|
|
30599
|
+
const ve = H.get(_e);
|
|
30600
30600
|
if (ve)
|
|
30601
30601
|
for (const { edgeId: q } of ve.values()) {
|
|
30602
30602
|
const re = W.get(q);
|
|
@@ -30609,7 +30609,7 @@ function Ose({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Zf.Ful
|
|
|
30609
30609
|
}
|
|
30610
30610
|
if (!NC(ye, E.current)) {
|
|
30611
30611
|
const _e = Wl(W, E.current);
|
|
30612
|
-
|
|
30612
|
+
j(_e);
|
|
30613
30613
|
}
|
|
30614
30614
|
g.setState({
|
|
30615
30615
|
userSelectionRect: Q,
|
|
@@ -30757,14 +30757,14 @@ function Rse({ type: e = "source", position: t = Le.Top, isValidConnection: n, i
|
|
|
30757
30757
|
}
|
|
30758
30758
|
I ? d?.(M) : f?.(M);
|
|
30759
30759
|
}, N = (M) => {
|
|
30760
|
-
const { onClickConnectStart: I, onClickConnectEnd: R, connectionClickStartHandle: F, connectionMode: z, isValidConnection: $, lib: L, rfId: W, nodeLookup:
|
|
30760
|
+
const { onClickConnectStart: I, onClickConnectEnd: R, connectionClickStartHandle: F, connectionMode: z, isValidConnection: $, lib: L, rfId: W, nodeLookup: H, connection: ne } = y.getState();
|
|
30761
30761
|
if (!v || !F && !r)
|
|
30762
30762
|
return;
|
|
30763
30763
|
if (!F) {
|
|
30764
30764
|
I?.(M.nativeEvent, { nodeId: v, handleId: p, handleType: e }), y.setState({ connectionClickStartHandle: { nodeId: v, type: e, id: p } });
|
|
30765
30765
|
return;
|
|
30766
30766
|
}
|
|
30767
|
-
const
|
|
30767
|
+
const j = NM(M.target), Y = n || $, { connection: U, isValid: V } = uw.isValid(M.nativeEvent, {
|
|
30768
30768
|
handle: {
|
|
30769
30769
|
nodeId: v,
|
|
30770
30770
|
id: p,
|
|
@@ -30776,9 +30776,9 @@ function Rse({ type: e = "source", position: t = Le.Top, isValidConnection: n, i
|
|
|
30776
30776
|
fromType: F.type,
|
|
30777
30777
|
isValidConnection: Y,
|
|
30778
30778
|
flowId: W,
|
|
30779
|
-
doc:
|
|
30779
|
+
doc: j,
|
|
30780
30780
|
lib: L,
|
|
30781
|
-
nodeLookup:
|
|
30781
|
+
nodeLookup: H
|
|
30782
30782
|
});
|
|
30783
30783
|
V && U && O(U);
|
|
30784
30784
|
const J = structuredClone(ne);
|
|
@@ -30883,8 +30883,8 @@ function Hse({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y
|
|
|
30883
30883
|
}
|
|
30884
30884
|
const i5 = typeof window < "u" ? window : void 0, Vse = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive });
|
|
30885
30885
|
function QM({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: i, onPaneMouseLeave: r, onPaneContextMenu: o, onPaneScroll: s, paneClickDistance: a, deleteKeyCode: l, selectionKeyCode: c, selectionOnDrag: d, selectionMode: f, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: p, panActivationKeyCode: g, zoomActivationKeyCode: y, elementsSelectable: v, zoomOnScroll: w, zoomOnPinch: x, panOnScroll: b, panOnScrollSpeed: _, panOnScrollMode: k, zoomOnDoubleClick: C, panOnDrag: E, defaultViewport: S, translateExtent: A, minZoom: T, maxZoom: O, preventScrolling: D, onSelectionContextMenu: N, noWheelClassName: M, noPanClassName: I, disableKeyboardA11y: R, onViewportChange: F, isControlledViewport: z }) {
|
|
30886
|
-
const { nodesSelectionActive: $, userSelectionActive: L } = ht(Vse, Xt), W = tu(c, { target: i5 }),
|
|
30887
|
-
return _se({ deleteKeyCode: l, multiSelectionKeyCode: p }), m(Ese, { onPaneContextMenu: o, elementsSelectable: v, zoomOnScroll: w, zoomOnPinch: x, panOnScroll:
|
|
30886
|
+
const { nodesSelectionActive: $, userSelectionActive: L } = ht(Vse, Xt), W = tu(c, { target: i5 }), H = tu(g, { target: i5 }), ne = H || E, j = H || b, Y = d && ne !== !0, U = W || L || Y;
|
|
30887
|
+
return _se({ deleteKeyCode: l, multiSelectionKeyCode: p }), m(Ese, { onPaneContextMenu: o, elementsSelectable: v, zoomOnScroll: w, zoomOnPinch: x, panOnScroll: j, panOnScrollSpeed: _, panOnScrollMode: k, zoomOnDoubleClick: C, panOnDrag: !W && ne, defaultViewport: S, translateExtent: A, minZoom: T, maxZoom: O, zoomActivationKeyCode: y, preventScrolling: D, noWheelClassName: M, noPanClassName: I, onViewportChange: F, isControlledViewport: z, paneClickDistance: a, selectionOnDrag: Y, children: P(Ose, { onSelectionStart: u, onSelectionEnd: h, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: i, onPaneMouseLeave: r, onPaneContextMenu: o, onPaneScroll: s, panOnDrag: ne, isSelecting: !!U, selectionMode: f, selectionKeyPressed: W, paneClickDistance: a, selectionOnDrag: Y, children: [e, $ && m(Hse, { onSelectionContextMenu: N, noPanClassName: I, disableKeyboardA11y: R })] }) });
|
|
30888
30888
|
}
|
|
30889
30889
|
QM.displayName = "FlowRenderer";
|
|
30890
30890
|
const Wse = At(QM), Use = (e) => (t) => e ? A2(t.nodeLookup, { x: 0, y: 0, width: t.width, height: t.height }, t.transform, !0).map((n) => n.id) : Array.from(t.nodeLookup.keys());
|
|
@@ -30943,7 +30943,7 @@ function Xse({ id: e, onClick: t, onMouseEnter: n, onMouseMove: i, onMouseLeave:
|
|
|
30943
30943
|
}), I = ZM();
|
|
30944
30944
|
if (x.hidden)
|
|
30945
30945
|
return null;
|
|
30946
|
-
const R = Qo(x), F = zse(x), z = S || E || t || n || i || r, $ = n ? (V) => n(V, { ...b.userNode }) : void 0, L = i ? (V) => i(V, { ...b.userNode }) : void 0, W = r ? (V) => r(V, { ...b.userNode }) : void 0,
|
|
30946
|
+
const R = Qo(x), F = zse(x), z = S || E || t || n || i || r, $ = n ? (V) => n(V, { ...b.userNode }) : void 0, L = i ? (V) => i(V, { ...b.userNode }) : void 0, W = r ? (V) => r(V, { ...b.userNode }) : void 0, H = o ? (V) => o(V, { ...b.userNode }) : void 0, ne = s ? (V) => s(V, { ...b.userNode }) : void 0, j = (V) => {
|
|
30947
30947
|
const { selectNodesOnDrag: J, nodeDragThreshold: ie } = O.getState();
|
|
30948
30948
|
S && (!J || !E || ie > 0) && pw({
|
|
30949
30949
|
id: e,
|
|
@@ -31007,7 +31007,7 @@ function Xse({ id: e, onClick: t, onMouseEnter: n, onMouseMove: i, onMouseLeave:
|
|
|
31007
31007
|
visibility: D ? "visible" : "hidden",
|
|
31008
31008
|
...x.style,
|
|
31009
31009
|
...F
|
|
31010
|
-
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: $, onMouseMove: L, onMouseLeave: W, onContextMenu:
|
|
31010
|
+
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: $, onMouseMove: L, onMouseLeave: W, onContextMenu: H, onClick: j, onDoubleClick: ne, onKeyDown: T ? Y : void 0, tabIndex: T ? 0 : void 0, onFocus: T ? U : void 0, role: x.ariaRole ?? (T ? "group" : void 0), "aria-roledescription": "node", "aria-describedby": p ? void 0 : `${UM}-${g}`, "aria-label": x.ariaLabel, ...x.domAttributes, children: m(Ise, { value: e, children: m(C, { id: e, data: x.data, type: k, positionAbsoluteX: b.positionAbsolute.x, positionAbsoluteY: b.positionAbsolute.y, selected: x.selected ?? !1, selectable: S, draggable: E, deletable: x.deletable ?? !0, isConnectable: A, sourcePosition: x.sourcePosition, targetPosition: x.targetPosition, dragging: M, dragHandle: x.dragHandle, zIndex: b.z, parentId: x.parentId, ...R }) }) });
|
|
31011
31011
|
}
|
|
31012
31012
|
var Jse = At(Xse);
|
|
31013
31013
|
const Zse = (e) => ({
|
|
@@ -31313,10 +31313,10 @@ function pae({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
|
|
|
31313
31313
|
}),
|
|
31314
31314
|
...be || a5
|
|
31315
31315
|
};
|
|
31316
|
-
}, [x.source, x.target, x.sourceHandle, x.targetHandle, x.selected, x.zIndex]), Xt),
|
|
31316
|
+
}, [x.source, x.target, x.sourceHandle, x.targetHandle, x.selected, x.zIndex]), Xt), H = K(() => x.markerStart ? `url('#${dw(x.markerStart, p)}')` : void 0, [x.markerStart, p]), ne = K(() => x.markerEnd ? `url('#${dw(x.markerEnd, p)}')` : void 0, [x.markerEnd, p]);
|
|
31317
31317
|
if (x.hidden || R === null || F === null || z === null || $ === null)
|
|
31318
31318
|
return null;
|
|
31319
|
-
const
|
|
31319
|
+
const j = (Q) => {
|
|
31320
31320
|
const { addSelectedEdges: ce, unselectNodesAndEdges: ye, multiSelectionActive: be } = M.getState();
|
|
31321
31321
|
S && (M.setState({ nodesSelectionActive: !1 }), x.selected && be ? (ye({ nodes: [], edges: [x] }), A.current?.blur()) : ce([e])), r && r(Q, x);
|
|
31322
31322
|
}, Y = o ? (Q) => {
|
|
@@ -31347,7 +31347,7 @@ function pae({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
|
|
|
31347
31347
|
updating: T,
|
|
31348
31348
|
selectable: S
|
|
31349
31349
|
}
|
|
31350
|
-
]), onClick:
|
|
31350
|
+
]), onClick: j, onDoubleClick: Y, onContextMenu: U, onMouseEnter: V, onMouseMove: J, onMouseLeave: ie, onKeyDown: C ? Z : void 0, tabIndex: C ? 0 : void 0, role: x.ariaRole ?? (C ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": x.ariaLabel === null ? void 0 : x.ariaLabel || `Edge from ${x.source} to ${x.target}`, "aria-describedby": C ? `${qM}-${p}` : void 0, ref: A, ...x.domAttributes, children: [!D && m(k, { id: e, source: x.source, target: x.target, type: x.type, selected: x.selected, animated: x.animated, selectable: S, deletable: x.deletable ?? !0, label: x.label, labelStyle: x.labelStyle, labelShowBg: x.labelShowBg, labelBgStyle: x.labelBgStyle, labelBgPadding: x.labelBgPadding, labelBgBorderRadius: x.labelBgBorderRadius, sourceX: R, sourceY: F, targetX: z, targetY: $, sourcePosition: L, targetPosition: W, data: x.data, style: x.style, sourceHandleId: x.sourceHandle, targetHandleId: x.targetHandle, markerStart: H, markerEnd: ne, pathOptions: "pathOptions" in x ? x.pathOptions : void 0, interactionWidth: x.interactionWidth }), E && m(hae, { edge: x, isReconnectable: E, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: R, sourceY: F, targetX: z, targetY: $, sourcePosition: L, targetPosition: W, setUpdateHover: O, setReconnecting: N })] }) });
|
|
31351
31351
|
}
|
|
31352
31352
|
var mae = At(pae);
|
|
31353
31353
|
const gae = (e) => ({
|
|
@@ -31462,8 +31462,8 @@ function Tae() {
|
|
|
31462
31462
|
}
|
|
31463
31463
|
}, []);
|
|
31464
31464
|
}
|
|
31465
|
-
function yP({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: i, onEdgeClick: r, onNodeDoubleClick: o, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: p, connectionLineStyle: g, connectionLineComponent: y, connectionLineContainerStyle: v, selectionKeyCode: w, selectionOnDrag: x, selectionMode: b, multiSelectionKeyCode: _, panActivationKeyCode: k, zoomActivationKeyCode: C, deleteKeyCode: E, onlyRenderVisibleElements: S, elementsSelectable: A, defaultViewport: T, translateExtent: O, minZoom: D, maxZoom: N, preventScrolling: M, defaultMarkerColor: I, zoomOnScroll: R, zoomOnPinch: F, panOnScroll: z, panOnScrollSpeed: $, panOnScrollMode: L, zoomOnDoubleClick: W, panOnDrag:
|
|
31466
|
-
return d5(e), d5(t), Tae(), wae(n), kae(Ce), m(Wse, { onPaneClick: ne, onPaneMouseEnter:
|
|
31465
|
+
function yP({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: i, onEdgeClick: r, onNodeDoubleClick: o, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: p, connectionLineStyle: g, connectionLineComponent: y, connectionLineContainerStyle: v, selectionKeyCode: w, selectionOnDrag: x, selectionMode: b, multiSelectionKeyCode: _, panActivationKeyCode: k, zoomActivationKeyCode: C, deleteKeyCode: E, onlyRenderVisibleElements: S, elementsSelectable: A, defaultViewport: T, translateExtent: O, minZoom: D, maxZoom: N, preventScrolling: M, defaultMarkerColor: I, zoomOnScroll: R, zoomOnPinch: F, panOnScroll: z, panOnScrollSpeed: $, panOnScrollMode: L, zoomOnDoubleClick: W, panOnDrag: H, onPaneClick: ne, onPaneMouseEnter: j, onPaneMouseMove: Y, onPaneMouseLeave: U, onPaneScroll: V, onPaneContextMenu: J, paneClickDistance: ie, nodeClickDistance: Z, onEdgeContextMenu: Q, onEdgeMouseEnter: ce, onEdgeMouseMove: ye, onEdgeMouseLeave: be, reconnectRadius: _e, onReconnect: ve, onReconnectStart: q, onReconnectEnd: re, noDragClassName: oe, noWheelClassName: de, noPanClassName: se, disableKeyboardA11y: le, nodeExtent: ue, rfId: ge, viewport: Ce, onViewportChange: Pe }) {
|
|
31466
|
+
return d5(e), d5(t), Tae(), wae(n), kae(Ce), m(Wse, { onPaneClick: ne, onPaneMouseEnter: j, onPaneMouseMove: Y, onPaneMouseLeave: U, onPaneContextMenu: J, onPaneScroll: V, paneClickDistance: ie, deleteKeyCode: E, selectionKeyCode: w, selectionOnDrag: x, selectionMode: b, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: _, panActivationKeyCode: k, zoomActivationKeyCode: C, elementsSelectable: A, zoomOnScroll: R, zoomOnPinch: F, zoomOnDoubleClick: W, panOnScroll: z, panOnScrollSpeed: $, panOnScrollMode: L, panOnDrag: H, defaultViewport: T, translateExtent: O, minZoom: D, maxZoom: N, onSelectionContextMenu: f, preventScrolling: M, noDragClassName: oe, noWheelClassName: de, noPanClassName: se, disableKeyboardA11y: le, onViewportChange: Pe, isControlledViewport: !!Ce, children: P(bae, { children: [m(yae, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: s, onReconnect: ve, onReconnectStart: q, onReconnectEnd: re, onlyRenderVisibleElements: S, onEdgeContextMenu: Q, onEdgeMouseEnter: ce, onEdgeMouseMove: ye, onEdgeMouseLeave: be, reconnectRadius: _e, defaultMarkerColor: I, noPanClassName: se, disableKeyboardA11y: le, rfId: ge }), m(Nae, { style: g, type: p, component: y, containerStyle: v }), m("div", { className: "react-flow__edgelabel-renderer" }), m(Qse, { nodeTypes: e, onNodeClick: i, onNodeDoubleClick: o, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: Z, onlyRenderVisibleElements: S, noPanClassName: se, noDragClassName: oe, disableKeyboardA11y: le, nodeExtent: ue, rfId: ge }), m("div", { className: "react-flow__viewport-portal" })] }) });
|
|
31467
31467
|
}
|
|
31468
31468
|
yP.displayName = "GraphView";
|
|
31469
31469
|
const Oae = At(yP), f5 = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, width: r, height: o, fitView: s, fitViewOptions: a, minZoom: l = 0.5, maxZoom: c = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: u = "basic" } = {}) => {
|
|
@@ -31782,11 +31782,11 @@ const Mae = {
|
|
|
31782
31782
|
position: "relative",
|
|
31783
31783
|
zIndex: 0
|
|
31784
31784
|
};
|
|
31785
|
-
function Pae({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, className: r, nodeTypes: o, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: _, onNodeDoubleClick: k, onNodeDragStart: C, onNodeDrag: E, onNodeDragStop: S, onNodesDelete: A, onEdgesDelete: T, onDelete: O, onSelectionChange: D, onSelectionDragStart: N, onSelectionDrag: M, onSelectionDragStop: I, onSelectionContextMenu: R, onSelectionStart: F, onSelectionEnd: z, onBeforeDelete: $, connectionMode: L, connectionLineType: W = Ts.Bezier, connectionLineStyle:
|
|
31785
|
+
function Pae({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, className: r, nodeTypes: o, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: _, onNodeDoubleClick: k, onNodeDragStart: C, onNodeDrag: E, onNodeDragStop: S, onNodesDelete: A, onEdgesDelete: T, onDelete: O, onSelectionChange: D, onSelectionDragStart: N, onSelectionDrag: M, onSelectionDragStop: I, onSelectionContextMenu: R, onSelectionStart: F, onSelectionEnd: z, onBeforeDelete: $, connectionMode: L, connectionLineType: W = Ts.Bezier, connectionLineStyle: H, connectionLineComponent: ne, connectionLineContainerStyle: j, deleteKeyCode: Y = "Backspace", selectionKeyCode: U = "Shift", selectionOnDrag: V = !1, selectionMode: J = Zf.Full, panActivationKeyCode: ie = "Space", multiSelectionKeyCode: Z = eu() ? "Meta" : "Control", zoomActivationKeyCode: Q = eu() ? "Meta" : "Control", snapToGrid: ce, snapGrid: ye, onlyRenderVisibleElements: be = !1, selectNodesOnDrag: _e, nodesDraggable: ve, autoPanOnNodeFocus: q, nodesConnectable: re, nodesFocusable: oe, nodeOrigin: de = GM, edgesFocusable: se, edgesReconnectable: le, elementsSelectable: ue = !0, defaultViewport: ge = lse, minZoom: Ce = 0.5, maxZoom: Pe = 2, translateExtent: He = Jf, preventScrolling: st = !0, nodeExtent: tt, defaultMarkerColor: rt = "#b1b1b7", zoomOnScroll: Se = !0, zoomOnPinch: et = !0, panOnScroll: pe = !1, panOnScrollSpeed: fe = 0.5, panOnScrollMode: me = Ia.Free, zoomOnDoubleClick: Ae = !0, panOnDrag: we = !0, onPaneClick: De, onPaneMouseEnter: Je, onPaneMouseMove: ft, onPaneMouseLeave: Ke, onPaneScroll: ot, onPaneContextMenu: gt, paneClickDistance: yt = 1, nodeClickDistance: vt = 0, children: It, onReconnect: xt, onReconnectStart: Pt, onReconnectEnd: Tt, onEdgeContextMenu: nn, onEdgeDoubleClick: Zt, onEdgeMouseEnter: on, onEdgeMouseMove: Ln, onEdgeMouseLeave: sn, reconnectRadius: qt = 10, onNodesChange: Fn, onEdgesChange: $n, noDragClassName: Ue = "nodrag", noWheelClassName: he = "nowheel", noPanClassName: Ee = "nopan", fitView: ze, fitViewOptions: lt, connectOnClick: Qt, attributionPosition: Bn, proOptions: ui, defaultEdgeOptions: vl, elevateNodesOnSelect: ns = !0, elevateEdgesOnSelect: vd = !1, disableKeyboardA11y: lo = !1, autoPanOnConnect: bl, autoPanOnNodeDrag: is, autoPanSpeed: ji, connectionRadius: rs, isValidConnection: co, onError: bd, style: sa, id: wl, nodeDragThreshold: aa, connectionDragThreshold: dr, viewport: zr, onViewportChange: ss, width: as, height: wd, colorMode: xd = "light", debug: xl, onScroll: jr, ariaLabelConfig: fr, zIndexMode: ls = "basic", ...zn }, kl) {
|
|
31786
31786
|
const jn = wl || "1", cs = use(xd), Hr = ee((ur) => {
|
|
31787
31787
|
ur.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), jr?.(ur);
|
|
31788
31788
|
}, [jr]);
|
|
31789
|
-
return m("div", { "data-testid": "rf__wrapper", ...zn, onScroll: Hr, style: { ...sa, ...Mae }, ref: kl, className: vn(["react-flow", r, cs]), id: wl, role: "application", children: P(Iae, { nodes: e, edges: t, width: as, height: wd, fitView: ze, fitViewOptions: lt, minZoom: Ce, maxZoom: Pe, nodeOrigin: de, nodeExtent: tt, zIndexMode: ls, children: [m(fse, { nodes: e, edges: t, defaultNodes: n, defaultEdges: i, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, nodesDraggable: ve, autoPanOnNodeFocus: q, nodesConnectable: re, nodesFocusable: oe, edgesFocusable: se, edgesReconnectable: le, elementsSelectable: ue, elevateNodesOnSelect: ns, elevateEdgesOnSelect: vd, minZoom: Ce, maxZoom: Pe, nodeExtent: tt, onNodesChange: Fn, onEdgesChange: $n, snapToGrid: ce, snapGrid: ye, connectionMode: L, translateExtent: He, connectOnClick: Qt, defaultEdgeOptions: vl, fitView: ze, fitViewOptions: lt, onNodesDelete: A, onEdgesDelete: T, onDelete: O, onNodeDragStart: C, onNodeDrag: E, onNodeDragStop: S, onSelectionDrag: M, onSelectionDragStart: N, onSelectionDragStop: I, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: Ee, nodeOrigin: de, rfId: jn, autoPanOnConnect: bl, autoPanOnNodeDrag: is, autoPanSpeed: ji, onError: bd, connectionRadius: rs, isValidConnection: co, selectNodesOnDrag: _e, nodeDragThreshold: aa, connectionDragThreshold: dr, onBeforeDelete: $, debug: xl, ariaLabelConfig: fr, zIndexMode: ls }), m(Oae, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: _, onNodeDoubleClick: k, nodeTypes: o, edgeTypes: s, connectionLineType: W, connectionLineStyle:
|
|
31789
|
+
return m("div", { "data-testid": "rf__wrapper", ...zn, onScroll: Hr, style: { ...sa, ...Mae }, ref: kl, className: vn(["react-flow", r, cs]), id: wl, role: "application", children: P(Iae, { nodes: e, edges: t, width: as, height: wd, fitView: ze, fitViewOptions: lt, minZoom: Ce, maxZoom: Pe, nodeOrigin: de, nodeExtent: tt, zIndexMode: ls, children: [m(fse, { nodes: e, edges: t, defaultNodes: n, defaultEdges: i, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, nodesDraggable: ve, autoPanOnNodeFocus: q, nodesConnectable: re, nodesFocusable: oe, edgesFocusable: se, edgesReconnectable: le, elementsSelectable: ue, elevateNodesOnSelect: ns, elevateEdgesOnSelect: vd, minZoom: Ce, maxZoom: Pe, nodeExtent: tt, onNodesChange: Fn, onEdgesChange: $n, snapToGrid: ce, snapGrid: ye, connectionMode: L, translateExtent: He, connectOnClick: Qt, defaultEdgeOptions: vl, fitView: ze, fitViewOptions: lt, onNodesDelete: A, onEdgesDelete: T, onDelete: O, onNodeDragStart: C, onNodeDrag: E, onNodeDragStop: S, onSelectionDrag: M, onSelectionDragStart: N, onSelectionDragStop: I, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: Ee, nodeOrigin: de, rfId: jn, autoPanOnConnect: bl, autoPanOnNodeDrag: is, autoPanSpeed: ji, onError: bd, connectionRadius: rs, isValidConnection: co, selectNodesOnDrag: _e, nodeDragThreshold: aa, connectionDragThreshold: dr, onBeforeDelete: $, debug: xl, ariaLabelConfig: fr, zIndexMode: ls }), m(Oae, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: _, onNodeDoubleClick: k, nodeTypes: o, edgeTypes: s, connectionLineType: W, connectionLineStyle: H, connectionLineComponent: ne, connectionLineContainerStyle: j, selectionKeyCode: U, selectionOnDrag: V, selectionMode: J, deleteKeyCode: Y, multiSelectionKeyCode: Z, panActivationKeyCode: ie, zoomActivationKeyCode: Q, onlyRenderVisibleElements: be, defaultViewport: ge, translateExtent: He, minZoom: Ce, maxZoom: Pe, preventScrolling: st, zoomOnScroll: Se, zoomOnPinch: et, zoomOnDoubleClick: Ae, panOnScroll: pe, panOnScrollSpeed: fe, panOnScrollMode: me, panOnDrag: we, onPaneClick: De, onPaneMouseEnter: Je, onPaneMouseMove: ft, onPaneMouseLeave: Ke, onPaneScroll: ot, onPaneContextMenu: gt, paneClickDistance: yt, nodeClickDistance: vt, onSelectionContextMenu: R, onSelectionStart: F, onSelectionEnd: z, onReconnect: xt, onReconnectStart: Pt, onReconnectEnd: Tt, onEdgeContextMenu: nn, onEdgeDoubleClick: Zt, onEdgeMouseEnter: on, onEdgeMouseMove: Ln, onEdgeMouseLeave: sn, reconnectRadius: qt, defaultMarkerColor: rt, noDragClassName: Ue, noWheelClassName: he, noPanClassName: Ee, rfId: jn, disableKeyboardA11y: lo, nodeExtent: tt, viewport: zr, onViewportChange: ss }), m(ase, { onSelectionChange: D }), It, m(nse, { proOptions: ui, position: Bn }), m(tse, { rfId: jn, disableKeyboardA11y: lo })] }) });
|
|
31790
31790
|
}
|
|
31791
31791
|
var Rae = YM(Pae);
|
|
31792
31792
|
function Lae({ dimensions: e, lineWidth: t, variant: n, className: i }) {
|
|
@@ -31971,7 +31971,7 @@ function xP({
|
|
|
31971
31971
|
zoomStep: x = 1,
|
|
31972
31972
|
offsetScale: b = 5
|
|
31973
31973
|
}) {
|
|
31974
|
-
const _ = Jt(), k = B(null), { boundingRect: C, viewBB: E, rfId: S, panZoom: A, translateExtent: T, flowWidth: O, flowHeight: D, ariaLabelConfig: N } = ht(ile, Xt), M = e?.width ?? ele, I = e?.height ?? tle, R = C.width / M, F = C.height / I, z = Math.max(R, F), $ = z * M, L = z * I, W = b * z,
|
|
31974
|
+
const _ = Jt(), k = B(null), { boundingRect: C, viewBB: E, rfId: S, panZoom: A, translateExtent: T, flowWidth: O, flowHeight: D, ariaLabelConfig: N } = ht(ile, Xt), M = e?.width ?? ele, I = e?.height ?? tle, R = C.width / M, F = C.height / I, z = Math.max(R, F), $ = z * M, L = z * I, W = b * z, H = C.x - ($ - C.width) / 2 - W, ne = C.y - (L - C.height) / 2 - W, j = $ + W * 2, Y = L + W * 2, U = `${rle}-${S}`, V = B(0), J = B();
|
|
31975
31975
|
V.current = z, ae(() => {
|
|
31976
31976
|
if (k.current && A)
|
|
31977
31977
|
return J.current = _oe({
|
|
@@ -32009,7 +32009,7 @@ function xP({
|
|
|
32009
32009
|
"--xy-minimap-node-background-color-props": typeof i == "string" ? i : void 0,
|
|
32010
32010
|
"--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0,
|
|
32011
32011
|
"--xy-minimap-node-stroke-width-props": typeof s == "number" ? s : void 0
|
|
32012
|
-
}, className: vn(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: P("svg", { width: M, height: I, viewBox: `${
|
|
32012
|
+
}, className: vn(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: P("svg", { width: M, height: I, viewBox: `${H} ${ne} ${j} ${Y}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": U, ref: k, onClick: ie, children: [Q && m("title", { id: U, children: Q }), m(Qae, { onClick: Z, nodeColor: i, nodeStrokeColor: n, nodeBorderRadius: o, nodeClassName: r, nodeStrokeWidth: s, nodeComponent: a }), m("path", { className: "react-flow__minimap-mask", d: `M${H - W},${ne - W}h${j + W * 2}v${Y + W * 2}h${-j - W * 2}z
|
|
32013
32013
|
M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) });
|
|
32014
32014
|
}
|
|
32015
32015
|
xP.displayName = "MiniMap";
|
|
@@ -32039,7 +32039,7 @@ function ale({ nodeId: e, position: t, variant: n = _c.Handle, className: i, sty
|
|
|
32039
32039
|
onChange: (T, O) => {
|
|
32040
32040
|
const { triggerNodeChanges: D, nodeLookup: N, parentLookup: M, nodeOrigin: I } = b.getState(), R = [], F = { x: T.x, y: T.y }, z = N.get(x);
|
|
32041
32041
|
if (z && z.expandParent && z.parentId) {
|
|
32042
|
-
const $ = z.origin ?? I, L = T.width ?? z.measured.width ?? 0, W = T.height ?? z.measured.height ?? 0,
|
|
32042
|
+
const $ = z.origin ?? I, L = T.width ?? z.measured.width ?? 0, W = T.height ?? z.measured.height ?? 0, H = {
|
|
32043
32043
|
id: z.id,
|
|
32044
32044
|
parentId: z.parentId,
|
|
32045
32045
|
rect: {
|
|
@@ -32050,7 +32050,7 @@ function ale({ nodeId: e, position: t, variant: n = _c.Handle, className: i, sty
|
|
|
32050
32050
|
y: T.y ?? z.position.y
|
|
32051
32051
|
}, { width: L, height: W }, z.parentId, N, $)
|
|
32052
32052
|
}
|
|
32053
|
-
}, ne = R2([
|
|
32053
|
+
}, ne = R2([H], N, M, I);
|
|
32054
32054
|
R.push(...ne), F.x = T.x ? Math.max($[0] * L, T.x) : void 0, F.y = T.y ? Math.max($[1] * W, T.y) : void 0;
|
|
32055
32055
|
}
|
|
32056
32056
|
if (F.x !== void 0 && F.y !== void 0) {
|
|
@@ -32976,20 +32976,20 @@ function lce(e, t, n, i) {
|
|
|
32976
32976
|
$.stackNodes && g.add($.id);
|
|
32977
32977
|
const y = n === "LR" || n === "RL", v = n === "BT" || n === "RL", w = y ? r : o, x = y ? o : r, b = w + s, _ = a * 2, k = /* @__PURE__ */ new Map(), C = ($) => g.has($) ? [] : u.get($) ?? [];
|
|
32978
32978
|
function E($, L, W) {
|
|
32979
|
-
const
|
|
32980
|
-
if (
|
|
32979
|
+
const H = C($);
|
|
32980
|
+
if (H.length === 0) {
|
|
32981
32981
|
const ye = L + x / 2;
|
|
32982
32982
|
return k.set($, { cross: ye, depth: W }), { crossEnd: L + x, centerCross: ye };
|
|
32983
32983
|
}
|
|
32984
|
-
let ne = L,
|
|
32985
|
-
|
|
32984
|
+
let ne = L, j = 0, Y = 0;
|
|
32985
|
+
H.forEach((ye, be) => {
|
|
32986
32986
|
const _e = E(ye, ne, W + 1);
|
|
32987
|
-
be === 0 && (
|
|
32987
|
+
be === 0 && (j = _e.centerCross), Y = _e.centerCross;
|
|
32988
32988
|
const ve = C(ye).length > 0;
|
|
32989
32989
|
ne = _e.crossEnd + (ve ? _ : a);
|
|
32990
32990
|
});
|
|
32991
|
-
const U =
|
|
32992
|
-
let ie = (
|
|
32991
|
+
const U = H[H.length - 1], V = C(U).length > 0, J = ne - (V ? _ : a);
|
|
32992
|
+
let ie = (j + Y) / 2;
|
|
32993
32993
|
const Z = ie - x / 2, Q = ie + x / 2;
|
|
32994
32994
|
let ce = J;
|
|
32995
32995
|
if (Z < L) {
|
|
@@ -33001,11 +33001,11 @@ function lce(e, t, n, i) {
|
|
|
33001
33001
|
function S($, L) {
|
|
33002
33002
|
const W = [$];
|
|
33003
33003
|
for (; W.length > 0; ) {
|
|
33004
|
-
const
|
|
33004
|
+
const H = W.pop(), ne = k.get(H);
|
|
33005
33005
|
ne && (ne.cross += L);
|
|
33006
|
-
const
|
|
33007
|
-
if (
|
|
33008
|
-
for (const Y of
|
|
33006
|
+
const j = u.get(H);
|
|
33007
|
+
if (j)
|
|
33008
|
+
for (const Y of j)
|
|
33009
33009
|
W.push(Y);
|
|
33010
33010
|
}
|
|
33011
33011
|
}
|
|
@@ -33013,30 +33013,30 @@ function lce(e, t, n, i) {
|
|
|
33013
33013
|
for (const $ of p) {
|
|
33014
33014
|
E($, 0, 0);
|
|
33015
33015
|
let L = 1 / 0, W = -1 / 0;
|
|
33016
|
-
const
|
|
33017
|
-
const
|
|
33018
|
-
if (
|
|
33019
|
-
const U =
|
|
33016
|
+
const H = (ne) => {
|
|
33017
|
+
const j = k.get(ne);
|
|
33018
|
+
if (j) {
|
|
33019
|
+
const U = j.cross - x / 2, V = j.cross + x / 2;
|
|
33020
33020
|
U < L && (L = U), V > W && (W = V);
|
|
33021
33021
|
}
|
|
33022
33022
|
const Y = u.get(ne);
|
|
33023
33023
|
if (Y)
|
|
33024
33024
|
for (const U of Y)
|
|
33025
|
-
|
|
33025
|
+
H(U);
|
|
33026
33026
|
};
|
|
33027
|
-
|
|
33027
|
+
H($), A.push({ rootId: $, minCross: L, maxCross: W });
|
|
33028
33028
|
}
|
|
33029
33029
|
let T = 0;
|
|
33030
33030
|
for (const { rootId: $, minCross: L, maxCross: W } of A) {
|
|
33031
|
-
const
|
|
33032
|
-
|
|
33031
|
+
const H = T - L;
|
|
33032
|
+
H !== 0 && S($, H), T += W - L + l;
|
|
33033
33033
|
}
|
|
33034
33034
|
for (const $ of g) {
|
|
33035
33035
|
const L = k.get($);
|
|
33036
33036
|
if (!L)
|
|
33037
33037
|
continue;
|
|
33038
|
-
(u.get($) ?? []).forEach((
|
|
33039
|
-
k.set(
|
|
33038
|
+
(u.get($) ?? []).forEach((H, ne) => {
|
|
33039
|
+
k.set(H, {
|
|
33040
33040
|
cross: L.cross,
|
|
33041
33041
|
depth: L.depth + 1,
|
|
33042
33042
|
stackIndex: ne
|
|
@@ -33051,7 +33051,7 @@ function lce(e, t, n, i) {
|
|
|
33051
33051
|
const L = $.id.startsWith("expander-");
|
|
33052
33052
|
let W = k.get($.id);
|
|
33053
33053
|
!W && L && $.parentId && (W = k.get($.parentId));
|
|
33054
|
-
const
|
|
33054
|
+
const H = W?.cross ?? 0, ne = W?.depth ?? 0, j = W?.stackIndex, Y = j !== void 0, U = L ? nce : Y && y ? c : r, V = L ? ice : Y && !y ? c : o, J = (v ? O - ne : ne) * b, ie = Y ? j * (c + d) : 0, Z = s * (1 - CP), Q = Y ? v ? J + w - c / 2 - ie + Z : J + c / 2 + ie - Z : J + w / 2, ce = L ? H : R(H), ye = Math.round(Q), be = y ? ye : ce, _e = y ? ce : ye, ve = Math.round(be - U / 2), q = Math.round(_e - V / 2);
|
|
33055
33055
|
return ve < D && (D = ve), q < N && (N = q), ve + U > M && (M = ve + U), q + V > I && (I = q + V), { id: $.id, x: ve, y: q, width: U, height: V };
|
|
33056
33056
|
}), z = t.map(($) => ({
|
|
33057
33057
|
id: $.id,
|
|
@@ -33183,13 +33183,13 @@ function pce({
|
|
|
33183
33183
|
stackedNodeHeight: $,
|
|
33184
33184
|
stackedNodeGap: h,
|
|
33185
33185
|
snapGrid: _P
|
|
33186
|
-
}), W = p ?? L,
|
|
33186
|
+
}), W = p ?? L, H = K(
|
|
33187
33187
|
() => W.computeLayout(D, N, y),
|
|
33188
33188
|
[W, D, N, y]
|
|
33189
33189
|
), ne = K(
|
|
33190
|
-
() => new Map(
|
|
33191
|
-
[
|
|
33192
|
-
),
|
|
33190
|
+
() => new Map(H.nodes.map((de) => [de.id, de])),
|
|
33191
|
+
[H.nodes]
|
|
33192
|
+
), j = K(
|
|
33193
33193
|
() => Lle(
|
|
33194
33194
|
_,
|
|
33195
33195
|
S,
|
|
@@ -33198,7 +33198,7 @@ function pce({
|
|
|
33198
33198
|
[_, S, ne, y]
|
|
33199
33199
|
), Y = K(() => {
|
|
33200
33200
|
const de = [];
|
|
33201
|
-
for (const [se, le] of
|
|
33201
|
+
for (const [se, le] of j.groups) {
|
|
33202
33202
|
const ue = ne.get(se);
|
|
33203
33203
|
if (!ue)
|
|
33204
33204
|
continue;
|
|
@@ -33212,9 +33212,9 @@ function pce({
|
|
|
33212
33212
|
});
|
|
33213
33213
|
}
|
|
33214
33214
|
return de;
|
|
33215
|
-
}, [
|
|
33216
|
-
() => $le(
|
|
33217
|
-
[
|
|
33215
|
+
}, [j, ne]), U = K(
|
|
33216
|
+
() => $le(H.nodes),
|
|
33217
|
+
[H.nodes]
|
|
33218
33218
|
), V = ee(
|
|
33219
33219
|
(de) => ne.get(de),
|
|
33220
33220
|
[ne]
|
|
@@ -33227,13 +33227,13 @@ function pce({
|
|
|
33227
33227
|
const de = i.current;
|
|
33228
33228
|
if (!de)
|
|
33229
33229
|
return { dx: 0, dy: 0 };
|
|
33230
|
-
const se =
|
|
33230
|
+
const se = H.nodes.find((ue) => ue.id === de), le = ce.current.get(de);
|
|
33231
33231
|
return le && se ? { dx: le.x - se.x, dy: le.y - se.y } : { dx: 0, dy: 0 };
|
|
33232
|
-
}, [
|
|
33232
|
+
}, [H.nodes, i]);
|
|
33233
33233
|
fn(() => {
|
|
33234
33234
|
const { dx: de, dy: se } = ye;
|
|
33235
33235
|
ce.current = new Map(
|
|
33236
|
-
|
|
33236
|
+
H.nodes.map((ue) => [ue.id, { x: ue.x, y: ue.y }])
|
|
33237
33237
|
);
|
|
33238
33238
|
const le = i.current;
|
|
33239
33239
|
if (le) {
|
|
@@ -33242,7 +33242,7 @@ function pce({
|
|
|
33242
33242
|
ue !== void 0 && n.has(le) && ue.childrenCount > 0 && ue.children.length === 0 || (i.current = null);
|
|
33243
33243
|
}
|
|
33244
33244
|
}, [
|
|
33245
|
-
|
|
33245
|
+
H.nodes,
|
|
33246
33246
|
ye,
|
|
33247
33247
|
t,
|
|
33248
33248
|
n,
|
|
@@ -33253,7 +33253,7 @@ function pce({
|
|
|
33253
33253
|
if (!x || !J)
|
|
33254
33254
|
return null;
|
|
33255
33255
|
const de = d ?? 256, se = /* @__PURE__ */ new Set();
|
|
33256
|
-
for (const ge of
|
|
33256
|
+
for (const ge of H.nodes)
|
|
33257
33257
|
Rle(
|
|
33258
33258
|
ge.x,
|
|
33259
33259
|
ge.y,
|
|
@@ -33273,7 +33273,7 @@ function pce({
|
|
|
33273
33273
|
Ce !== Pe && (se.add(ge.source), se.add(ge.target));
|
|
33274
33274
|
}
|
|
33275
33275
|
for (const ge of Array.from(se)) {
|
|
33276
|
-
const Ce =
|
|
33276
|
+
const Ce = j.previousRow.get(ge);
|
|
33277
33277
|
Ce && se.add(Ce);
|
|
33278
33278
|
}
|
|
33279
33279
|
return se;
|
|
@@ -33281,11 +33281,11 @@ function pce({
|
|
|
33281
33281
|
x,
|
|
33282
33282
|
J,
|
|
33283
33283
|
T,
|
|
33284
|
-
|
|
33284
|
+
H.nodes,
|
|
33285
33285
|
d,
|
|
33286
33286
|
z,
|
|
33287
33287
|
t,
|
|
33288
|
-
|
|
33288
|
+
j
|
|
33289
33289
|
]), _e = B(/* @__PURE__ */ new Map()), ve = K(() => {
|
|
33290
33290
|
const de = d ?? 256, se = z, le = 1, ue = (Se) => !be || be.has(Se), ge = be !== null, Ce = Le.Bottom, Pe = Le.Top, He = (Se, et, pe = et) => {
|
|
33291
33291
|
const fe = (me) => me === Le.Top ? { x: Se / 2, y: 0 } : me === Le.Bottom ? { x: Se / 2, y: pe } : me === Le.Left ? { x: 0, y: pe / 2 } : { x: Se, y: pe / 2 };
|
|
@@ -33310,7 +33310,7 @@ function pce({
|
|
|
33310
33310
|
se,
|
|
33311
33311
|
f ?? nu
|
|
33312
33312
|
), tt = [];
|
|
33313
|
-
for (const Se of
|
|
33313
|
+
for (const Se of j.groups.values())
|
|
33314
33314
|
[...Se.rows.keys()].some(ue) && tt.push({
|
|
33315
33315
|
id: Se.id,
|
|
33316
33316
|
type: "stackGroup",
|
|
@@ -33347,7 +33347,7 @@ function pce({
|
|
|
33347
33347
|
const ot = Se.children.map((gt) => gt.id).filter((gt) => ue(gt));
|
|
33348
33348
|
Ae = ot.length > 0 ? ot : void 0;
|
|
33349
33349
|
}
|
|
33350
|
-
const we = S.has(Se.id), De =
|
|
33350
|
+
const we = S.has(Se.id), De = j.groupOf.get(Se.id), Je = De ? j.groups.get(Se.parentId ?? "")?.rows.get(Se.id) : void 0, ft = Je ? Je.width : we ? et?.width ?? de : de, Ke = Je ? Je.height : we ? et?.height ?? se : se;
|
|
33351
33351
|
rt.push({
|
|
33352
33352
|
id: Se.id,
|
|
33353
33353
|
type: "graphNode",
|
|
@@ -33445,7 +33445,7 @@ function pce({
|
|
|
33445
33445
|
}, [
|
|
33446
33446
|
be,
|
|
33447
33447
|
ne,
|
|
33448
|
-
|
|
33448
|
+
j,
|
|
33449
33449
|
_,
|
|
33450
33450
|
O,
|
|
33451
33451
|
n,
|
|
@@ -33474,9 +33474,9 @@ function pce({
|
|
|
33474
33474
|
}, [ve, q]), oe = K(() => {
|
|
33475
33475
|
const de = new Set(
|
|
33476
33476
|
_.filter((ue) => n.has(ue.id) && ue.children.length > 0).map((ue) => ue.id)
|
|
33477
|
-
), se = (ue) =>
|
|
33477
|
+
), se = (ue) => j.previousRow.get(ue.target) ?? ue.source, le = (ue) => !be || be.has(se(ue)) && be.has(ue.target);
|
|
33478
33478
|
return T.filter(le).map((ue) => {
|
|
33479
|
-
const ge =
|
|
33479
|
+
const ge = j.previousRow.get(ue.target), Ce = se(ue), He = !!(ue.onEdgeClick || ue.onEdgeHover) && ue.id === w, st = ue.data;
|
|
33480
33480
|
return {
|
|
33481
33481
|
id: ue.id,
|
|
33482
33482
|
source: Ce,
|
|
@@ -33501,7 +33501,7 @@ function pce({
|
|
|
33501
33501
|
w,
|
|
33502
33502
|
be,
|
|
33503
33503
|
S,
|
|
33504
|
-
|
|
33504
|
+
j
|
|
33505
33505
|
]);
|
|
33506
33506
|
return {
|
|
33507
33507
|
visibleTreeNodes: _,
|
|
@@ -34146,9 +34146,9 @@ function Mce(e) {
|
|
|
34146
34146
|
canvasFooterActions: $,
|
|
34147
34147
|
showControls: L = !1,
|
|
34148
34148
|
onZoomLevelChange: W,
|
|
34149
|
-
onViewportChange:
|
|
34149
|
+
onViewportChange: H,
|
|
34150
34150
|
renderEdge: ne,
|
|
34151
|
-
nodeTagTypes:
|
|
34151
|
+
nodeTagTypes: j,
|
|
34152
34152
|
visibleTagTypes: Y,
|
|
34153
34153
|
defaultVisibleTagTypes: U,
|
|
34154
34154
|
reserveTagRow: V,
|
|
@@ -34162,7 +34162,7 @@ function Mce(e) {
|
|
|
34162
34162
|
controlLabels: _e,
|
|
34163
34163
|
currentUserNodeId: ve,
|
|
34164
34164
|
onFocusUser: q
|
|
34165
|
-
} = e, re = Be(), oe = dd(), [de, se] = X(null), [le, ue] = X(null), ge = B(null), Ce = B(null), Pe = "TB", He = Y ?? U ??
|
|
34165
|
+
} = e, re = Be(), oe = dd(), [de, se] = X(null), [le, ue] = X(null), ge = B(null), Ce = B(null), Pe = "TB", He = Y ?? U ?? j ?? mle, st = K(
|
|
34166
34166
|
() => new Set(He),
|
|
34167
34167
|
[He]
|
|
34168
34168
|
), tt = B(c);
|
|
@@ -34226,7 +34226,7 @@ function Mce(e) {
|
|
|
34226
34226
|
zoomThresholds: f,
|
|
34227
34227
|
currentUserNodeId: ve,
|
|
34228
34228
|
onZoomLevelChange: W,
|
|
34229
|
-
onViewportChange:
|
|
34229
|
+
onViewportChange: H,
|
|
34230
34230
|
nodeWindowingActive: Z ?? !1,
|
|
34231
34231
|
getContentBounds: on,
|
|
34232
34232
|
getNodePosition: Ln,
|
|
@@ -34278,7 +34278,7 @@ function Mce(e) {
|
|
|
34278
34278
|
onAnchorReflow: bd,
|
|
34279
34279
|
resolvedEdgesProp: me,
|
|
34280
34280
|
stableRenderNode: rt,
|
|
34281
|
-
nodeTagTypes:
|
|
34281
|
+
nodeTagTypes: j,
|
|
34282
34282
|
visibleTagTypesSet: st,
|
|
34283
34283
|
reserveTagRow: V,
|
|
34284
34284
|
nodeWidthProp: M,
|
|
@@ -34455,7 +34455,7 @@ function Mce(e) {
|
|
|
34455
34455
|
() => ({
|
|
34456
34456
|
renderEdge: ne,
|
|
34457
34457
|
// Only publish a Set when the consumer opted in via `nodeTagTypes`.
|
|
34458
|
-
visibleTagTypes:
|
|
34458
|
+
visibleTagTypes: j ? st : void 0,
|
|
34459
34459
|
deferredLoading: Ih || void 0,
|
|
34460
34460
|
dataLoadingEnabled: ce !== void 0 || void 0,
|
|
34461
34461
|
tagRowHeight: dr,
|
|
@@ -34465,7 +34465,7 @@ function Mce(e) {
|
|
|
34465
34465
|
}),
|
|
34466
34466
|
[
|
|
34467
34467
|
ne,
|
|
34468
|
-
|
|
34468
|
+
j,
|
|
34469
34469
|
st,
|
|
34470
34470
|
Ih,
|
|
34471
34471
|
ce,
|
|
@@ -34983,7 +34983,7 @@ const Wce = oo({
|
|
|
34983
34983
|
"aria-owns": h || void 0,
|
|
34984
34984
|
onClick: d,
|
|
34985
34985
|
onKeyDown: F
|
|
34986
|
-
}, $ = e === "compact", L = e === "dot", W = e === "detail",
|
|
34986
|
+
}, $ = e === "compact", L = e === "dot", W = e === "detail", H = v ? w ? v.filter((J) => w.has(tg(J))) : v : void 0, ne = W && !!H && H.length > 0, j = (J) => ne ? /* @__PURE__ */ m(
|
|
34987
34987
|
"div",
|
|
34988
34988
|
{
|
|
34989
34989
|
className: G(
|
|
@@ -35000,7 +35000,7 @@ const Wce = oo({
|
|
|
35000
35000
|
initial: N ? !1 : { opacity: 0, filter: "blur(3px)" },
|
|
35001
35001
|
animate: { opacity: 1, filter: "blur(0px)" },
|
|
35002
35002
|
transition: N ? { duration: 0 } : { duration: 0.12, ease: [0.23, 1, 0.32, 1] },
|
|
35003
|
-
children: /* @__PURE__ */ m(Vce, { tags:
|
|
35003
|
+
children: /* @__PURE__ */ m(Vce, { tags: H })
|
|
35004
35004
|
}
|
|
35005
35005
|
)
|
|
35006
35006
|
},
|
|
@@ -35021,9 +35021,9 @@ const Wce = oo({
|
|
|
35021
35021
|
height: S
|
|
35022
35022
|
}
|
|
35023
35023
|
),
|
|
35024
|
-
|
|
35024
|
+
j("max-w-full")
|
|
35025
35025
|
] });
|
|
35026
|
-
const Y = p != null && p.type !== "person", U = L ? !!(g || y ||
|
|
35026
|
+
const Y = p != null && p.type !== "person", U = L ? !!(g || y || H?.length) : $ ? !!(y || H?.length) : !1, V = /* @__PURE__ */ P(
|
|
35027
35027
|
"div",
|
|
35028
35028
|
{
|
|
35029
35029
|
...z,
|
|
@@ -35219,7 +35219,7 @@ const Wce = oo({
|
|
|
35219
35219
|
children: /* @__PURE__ */ m("div", { className: "flex items-center gap-1", children: b })
|
|
35220
35220
|
}
|
|
35221
35221
|
) : null,
|
|
35222
|
-
|
|
35222
|
+
j("max-w-[256px]")
|
|
35223
35223
|
]
|
|
35224
35224
|
}
|
|
35225
35225
|
);
|
|
@@ -35230,7 +35230,7 @@ const Wce = oo({
|
|
|
35230
35230
|
avatar: p,
|
|
35231
35231
|
title: typeof g == "string" ? g : void 0,
|
|
35232
35232
|
subtitle: typeof y == "string" ? y : void 0,
|
|
35233
|
-
tags:
|
|
35233
|
+
tags: H,
|
|
35234
35234
|
tagLabels: x
|
|
35235
35235
|
}
|
|
35236
35236
|
) : V;
|
|
@@ -35416,25 +35416,25 @@ function rde(e, t, n) {
|
|
|
35416
35416
|
[_]
|
|
35417
35417
|
), C = ee(
|
|
35418
35418
|
async (L) => {
|
|
35419
|
-
const W = i.current,
|
|
35419
|
+
const W = i.current, H = W.dataAdapter, ne = W.currentSortings ? [
|
|
35420
35420
|
{
|
|
35421
35421
|
field: String(W.currentSortings.field),
|
|
35422
35422
|
order: W.currentSortings.order
|
|
35423
35423
|
}
|
|
35424
|
-
] : [],
|
|
35424
|
+
] : [], j = {
|
|
35425
35425
|
filters: { ...W.currentFilters, ...L },
|
|
35426
35426
|
sortings: ne,
|
|
35427
35427
|
navigationFilters: W.currentNavigationFilters
|
|
35428
|
-
}, Y = "perPage" in
|
|
35429
|
-
return
|
|
35430
|
-
|
|
35431
|
-
...
|
|
35428
|
+
}, Y = "perPage" in H && typeof H.perPage == "number" ? H.perPage : Xce;
|
|
35429
|
+
return H.paginationType === void 0 ? Qh(H.fetchData(j)) : H.paginationType === "pages" ? Qh(
|
|
35430
|
+
H.fetchData({
|
|
35431
|
+
...j,
|
|
35432
35432
|
pagination: { currentPage: 1, perPage: Y }
|
|
35433
35433
|
})
|
|
35434
|
-
) :
|
|
35435
|
-
|
|
35434
|
+
) : H.paginationType === "infinite-scroll" ? Qh(
|
|
35435
|
+
H.fetchData({ ...j, pagination: { cursor: null, perPage: Y } })
|
|
35436
35436
|
) : Qh(
|
|
35437
|
-
|
|
35437
|
+
H.fetchData({ ...j, pagination: {} })
|
|
35438
35438
|
);
|
|
35439
35439
|
},
|
|
35440
35440
|
[]
|
|
@@ -35444,14 +35444,14 @@ function rde(e, t, n) {
|
|
|
35444
35444
|
return l.current.filter((W) => W.parentId === L);
|
|
35445
35445
|
b.current.add(L);
|
|
35446
35446
|
try {
|
|
35447
|
-
const
|
|
35447
|
+
const H = (await C(
|
|
35448
35448
|
r.current.childrenFilters(L)
|
|
35449
35449
|
)).map((ne) => k(ne, L));
|
|
35450
|
-
return a((ne) => Zce(ne,
|
|
35450
|
+
return a((ne) => Zce(ne, H, L)), H;
|
|
35451
35451
|
} catch (W) {
|
|
35452
35452
|
b.current.delete(L);
|
|
35453
|
-
const
|
|
35454
|
-
return x(
|
|
35453
|
+
const H = Zh(W);
|
|
35454
|
+
return x(H), o.current.onLoadError(H), [];
|
|
35455
35455
|
}
|
|
35456
35456
|
},
|
|
35457
35457
|
[C, k]
|
|
@@ -35460,17 +35460,17 @@ function rde(e, t, n) {
|
|
|
35460
35460
|
let W = l.current.filter(
|
|
35461
35461
|
(ne) => ne.parentId === null && L.has(ne.id) && i0(ne)
|
|
35462
35462
|
);
|
|
35463
|
-
const
|
|
35463
|
+
const H = /* @__PURE__ */ new Set();
|
|
35464
35464
|
for (; W.length > 0; ) {
|
|
35465
|
-
const ne = W.filter((U) => !
|
|
35466
|
-
if (ne.forEach((U) =>
|
|
35465
|
+
const ne = W.filter((U) => !H.has(U.id));
|
|
35466
|
+
if (ne.forEach((U) => H.add(U.id)), ne.length === 0)
|
|
35467
35467
|
break;
|
|
35468
|
-
const
|
|
35468
|
+
const j = await Promise.all(
|
|
35469
35469
|
ne.map(
|
|
35470
35470
|
(U) => E(U.id).then((V) => ({ children: V }))
|
|
35471
35471
|
)
|
|
35472
35472
|
), Y = [];
|
|
35473
|
-
for (const { children: U } of
|
|
35473
|
+
for (const { children: U } of j)
|
|
35474
35474
|
for (const V of U)
|
|
35475
35475
|
L.has(V.id) && i0(V) && Y.push(V);
|
|
35476
35476
|
W = Y;
|
|
@@ -35484,17 +35484,17 @@ function rde(e, t, n) {
|
|
|
35484
35484
|
[S]
|
|
35485
35485
|
), T = ee(
|
|
35486
35486
|
async (L) => {
|
|
35487
|
-
const W = r.current,
|
|
35488
|
-
|
|
35489
|
-
const Y = new Set(
|
|
35490
|
-
const ie = W.getParentId ? W.getParentId(V) : J > 0 ? _(
|
|
35487
|
+
const W = r.current, H = W.loadNodePath ? await W.loadNodePath(L) : [];
|
|
35488
|
+
H.length > 0 && a((j) => {
|
|
35489
|
+
const Y = new Set(j.map((V) => V.id)), U = H.filter((V) => !Y.has(_(V))).map((V, J) => {
|
|
35490
|
+
const ie = W.getParentId ? W.getParentId(V) : J > 0 ? _(H[J - 1]) : null;
|
|
35491
35491
|
return k(V, ie);
|
|
35492
35492
|
});
|
|
35493
|
-
return U.length > 0 ? [...
|
|
35493
|
+
return U.length > 0 ? [...j, ...U] : j;
|
|
35494
35494
|
});
|
|
35495
|
-
const ne =
|
|
35495
|
+
const ne = H.map(_).filter((j) => j !== L);
|
|
35496
35496
|
return await Promise.all(
|
|
35497
|
-
[...ne, L].map((
|
|
35497
|
+
[...ne, L].map((j) => E(j))
|
|
35498
35498
|
), ne;
|
|
35499
35499
|
},
|
|
35500
35500
|
[_, k, E]
|
|
@@ -35504,8 +35504,8 @@ function rde(e, t, n) {
|
|
|
35504
35504
|
const W = await T(L);
|
|
35505
35505
|
A(/* @__PURE__ */ new Set([...f.current, ...W])), h(L), g(/* @__PURE__ */ new Set([L]));
|
|
35506
35506
|
} catch (W) {
|
|
35507
|
-
const
|
|
35508
|
-
x(
|
|
35507
|
+
const H = Zh(W);
|
|
35508
|
+
x(H), o.current.onLoadError(H);
|
|
35509
35509
|
}
|
|
35510
35510
|
},
|
|
35511
35511
|
[T, A]
|
|
@@ -35516,14 +35516,14 @@ function rde(e, t, n) {
|
|
|
35516
35516
|
const W = r.current.loadNodeData;
|
|
35517
35517
|
if (!W)
|
|
35518
35518
|
return;
|
|
35519
|
-
const
|
|
35520
|
-
ne.length !== 0 && W(ne).then((
|
|
35519
|
+
const H = new Map(l.current.map((j) => [j.id, j])), ne = L.filter((j) => H.get(j)?.dataLoaded === !1);
|
|
35520
|
+
ne.length !== 0 && W(ne).then((j) => {
|
|
35521
35521
|
const Y = new Map(
|
|
35522
|
-
|
|
35522
|
+
j.map((U) => [_(U), U])
|
|
35523
35523
|
);
|
|
35524
35524
|
a((U) => Jce(U, Y));
|
|
35525
|
-
}).catch((
|
|
35526
|
-
const Y = Zh(
|
|
35525
|
+
}).catch((j) => {
|
|
35526
|
+
const Y = Zh(j);
|
|
35527
35527
|
x(Y), o.current.onLoadError(Y);
|
|
35528
35528
|
});
|
|
35529
35529
|
},
|
|
@@ -35532,30 +35532,30 @@ function rde(e, t, n) {
|
|
|
35532
35532
|
(L, W) => {
|
|
35533
35533
|
if (L.length === 0 && W.length === 0)
|
|
35534
35534
|
return;
|
|
35535
|
-
const
|
|
35535
|
+
const H = r.current;
|
|
35536
35536
|
a((ne) => {
|
|
35537
|
-
const
|
|
35538
|
-
for (const ce of ede(Q,
|
|
35539
|
-
const ye =
|
|
35540
|
-
ye != null && U.add(ye),
|
|
35537
|
+
const j = new Map(ne.map((Q) => [Q.id, Q])), Y = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set(), V = (Q) => {
|
|
35538
|
+
for (const ce of ede(Q, j)) {
|
|
35539
|
+
const ye = j.get(ce)?.parentId;
|
|
35540
|
+
ye != null && U.add(ye), j.delete(ce), b.current.delete(ce), Y.add(ce);
|
|
35541
35541
|
}
|
|
35542
35542
|
};
|
|
35543
35543
|
if (V(W), nde({
|
|
35544
35544
|
records: L,
|
|
35545
|
-
byId:
|
|
35545
|
+
byId: j,
|
|
35546
35546
|
touchedParents: U,
|
|
35547
35547
|
getId: _,
|
|
35548
|
-
getParentId:
|
|
35549
|
-
getChildrenCount:
|
|
35550
|
-
stackNodes:
|
|
35551
|
-
hydrates: !!
|
|
35552
|
-
}), V(tde(
|
|
35548
|
+
getParentId: H.getParentId,
|
|
35549
|
+
getChildrenCount: H.getChildrenCount,
|
|
35550
|
+
stackNodes: H.stackNodes,
|
|
35551
|
+
hydrates: !!H.loadNodeData
|
|
35552
|
+
}), V(tde(j)), ide(j, U, b.current), Y.size > 0) {
|
|
35553
35553
|
const Q = f.current, ce = new Set(
|
|
35554
35554
|
[...Q].filter((ye) => !Y.has(ye))
|
|
35555
35555
|
);
|
|
35556
35556
|
ce.size !== Q.size && d(ce);
|
|
35557
35557
|
}
|
|
35558
|
-
const J = ne.map((Q) =>
|
|
35558
|
+
const J = ne.map((Q) => j.get(Q.id)).filter((Q) => !!Q), ie = new Set(J.map((Q) => Q.id)), Z = [...j.values()].filter(
|
|
35559
35559
|
(Q) => !ie.has(Q.id)
|
|
35560
35560
|
);
|
|
35561
35561
|
return [...J, ...Z];
|
|
@@ -35565,20 +35565,20 @@ function rde(e, t, n) {
|
|
|
35565
35565
|
), I = ee(async () => {
|
|
35566
35566
|
v(!0), x(null), a([]), l.current = [], b.current = /* @__PURE__ */ new Set();
|
|
35567
35567
|
try {
|
|
35568
|
-
const L = Math.max(0, r.current.defaultExpandDepth ?? 1),
|
|
35568
|
+
const L = Math.max(0, r.current.defaultExpandDepth ?? 1), H = (await C(
|
|
35569
35569
|
r.current.childrenFilters(null)
|
|
35570
35570
|
)).map((U) => k(U, null));
|
|
35571
|
-
a(
|
|
35571
|
+
a(H), l.current = H;
|
|
35572
35572
|
const ne = /* @__PURE__ */ new Set();
|
|
35573
|
-
let
|
|
35574
|
-
for (let U = 0; U < L &&
|
|
35575
|
-
const V =
|
|
35573
|
+
let j = H;
|
|
35574
|
+
for (let U = 0; U < L && j.length > 0; U++) {
|
|
35575
|
+
const V = j.filter(i0);
|
|
35576
35576
|
if (V.length === 0)
|
|
35577
35577
|
break;
|
|
35578
35578
|
const J = await Promise.all(
|
|
35579
35579
|
V.map((ie) => E(ie.id))
|
|
35580
35580
|
);
|
|
35581
|
-
V.forEach((ie) => ne.add(ie.id)),
|
|
35581
|
+
V.forEach((ie) => ne.add(ie.id)), j = V.flatMap((ie, Z) => J[Z]);
|
|
35582
35582
|
}
|
|
35583
35583
|
const Y = r.current.focusOnEntry;
|
|
35584
35584
|
if (Y && r.current.loadNodePath)
|
|
@@ -35589,11 +35589,11 @@ function rde(e, t, n) {
|
|
|
35589
35589
|
} catch {
|
|
35590
35590
|
}
|
|
35591
35591
|
d(ne), o.current.onLoadData({
|
|
35592
|
-
totalItems:
|
|
35592
|
+
totalItems: H.length,
|
|
35593
35593
|
filters: i.current.currentFilters,
|
|
35594
35594
|
search: i.current.currentSearch,
|
|
35595
35595
|
isInitialLoading: !1,
|
|
35596
|
-
data:
|
|
35596
|
+
data: H.map((U) => U.data)
|
|
35597
35597
|
});
|
|
35598
35598
|
} catch (L) {
|
|
35599
35599
|
const W = Zh(L);
|
|
@@ -35664,9 +35664,9 @@ const ode = ({
|
|
|
35664
35664
|
onLoadError: W
|
|
35665
35665
|
}) => {
|
|
35666
35666
|
const {
|
|
35667
|
-
nodes:
|
|
35667
|
+
nodes: H,
|
|
35668
35668
|
expandedNodes: ne,
|
|
35669
|
-
setExpandedNodes:
|
|
35669
|
+
setExpandedNodes: j,
|
|
35670
35670
|
focusedNode: Y,
|
|
35671
35671
|
highlightedNodes: U,
|
|
35672
35672
|
revealNode: V,
|
|
@@ -35730,9 +35730,9 @@ const ode = ({
|
|
|
35730
35730
|
$P,
|
|
35731
35731
|
{
|
|
35732
35732
|
ref: Q,
|
|
35733
|
-
nodes:
|
|
35733
|
+
nodes: H,
|
|
35734
35734
|
expandedNodes: ne,
|
|
35735
|
-
onExpandedNodesChange:
|
|
35735
|
+
onExpandedNodesChange: j,
|
|
35736
35736
|
focusedNode: Y,
|
|
35737
35737
|
initialFocusNodeId: x,
|
|
35738
35738
|
highlightedNodes: U,
|
|
@@ -36551,8 +36551,8 @@ function Rde({
|
|
|
36551
36551
|
return fD({
|
|
36552
36552
|
onDropTargetChange: ({ location: N, source: M }) => {
|
|
36553
36553
|
const I = N.current.dropTargets.some((W) => {
|
|
36554
|
-
const
|
|
36555
|
-
return
|
|
36554
|
+
const H = W.data;
|
|
36555
|
+
return H.type === "list-droppable" && H.id === e;
|
|
36556
36556
|
});
|
|
36557
36557
|
c(I);
|
|
36558
36558
|
const R = String(M.data.id), z = String(
|
|
@@ -36561,13 +36561,13 @@ function Rde({
|
|
|
36561
36561
|
N.initial.dropTargets.find(
|
|
36562
36562
|
(W) => W.data.type === "list-droppable"
|
|
36563
36563
|
)?.data?.id ?? ""
|
|
36564
|
-
), $ = String(z) === String(e), L = r.items.findIndex((W,
|
|
36564
|
+
), $ = String(z) === String(e), L = r.items.findIndex((W, H) => String(r.getKey(W, H)) === R);
|
|
36565
36565
|
if (I && $ ? T(L) : (!I || !$) && T(-1), I && w && r.items.length === 0 ? (S(!0), _(null), C(null)) : I && w && r.items.length > 0 && S(!1), I && w) {
|
|
36566
36566
|
const W = p.current || o.current;
|
|
36567
36567
|
if (W) {
|
|
36568
|
-
const
|
|
36569
|
-
if (typeof ne == "number" && typeof
|
|
36570
|
-
const Y =
|
|
36568
|
+
const H = W.getBoundingClientRect(), ne = N.current.input?.clientY, j = N.current.input?.clientX;
|
|
36569
|
+
if (typeof ne == "number" && typeof j == "number") {
|
|
36570
|
+
const Y = H.top + H.height / 2, U = ne - Y, V = 24, J = 300, ie = H.height / 2;
|
|
36571
36571
|
let Z = 0;
|
|
36572
36572
|
if (Math.abs(U) > V) {
|
|
36573
36573
|
const ye = Math.min(
|
|
@@ -36610,17 +36610,17 @@ function Rde({
|
|
|
36610
36610
|
c(!1), S(!1);
|
|
36611
36611
|
const I = String(M.data.id);
|
|
36612
36612
|
M.data.data;
|
|
36613
|
-
const R = r.items.findIndex((
|
|
36613
|
+
const R = r.items.findIndex((j, Y) => String(r.getKey(j, Y)) === I), z = String(
|
|
36614
36614
|
M.data.data?.laneId ?? ""
|
|
36615
36615
|
) || String(
|
|
36616
36616
|
N.initial.dropTargets.find(
|
|
36617
|
-
(
|
|
36617
|
+
(j) => j.data.type === "list-droppable"
|
|
36618
36618
|
)?.data?.id ?? ""
|
|
36619
36619
|
), $ = String(z) !== String(e);
|
|
36620
36620
|
if (!$ && R >= 0) {
|
|
36621
|
-
const
|
|
36622
|
-
if (
|
|
36623
|
-
const Y =
|
|
36621
|
+
const j = N.current.dropTargets.find((Y) => Y.data.type === "list-card-target");
|
|
36622
|
+
if (j) {
|
|
36623
|
+
const Y = j.data.index, U = j.data.closestEdge;
|
|
36624
36624
|
if (Y !== void 0 && U && (Y === R || Y === R - 1 && U === "bottom" || Y === R + 1 && U === "top"))
|
|
36625
36625
|
return;
|
|
36626
36626
|
}
|
|
@@ -36629,13 +36629,13 @@ function Rde({
|
|
|
36629
36629
|
_(null), C(null);
|
|
36630
36630
|
return;
|
|
36631
36631
|
}
|
|
36632
|
-
if (!N.current.dropTargets.some((
|
|
36633
|
-
const Y =
|
|
36632
|
+
if (!N.current.dropTargets.some((j) => {
|
|
36633
|
+
const Y = j.data;
|
|
36634
36634
|
return Y.type === "list-droppable" && Y.id === e;
|
|
36635
36635
|
}))
|
|
36636
36636
|
return;
|
|
36637
36637
|
let W = null;
|
|
36638
|
-
const { type:
|
|
36638
|
+
const { type: H, cardTarget: ne } = D(
|
|
36639
36639
|
N.current.dropTargets
|
|
36640
36640
|
);
|
|
36641
36641
|
if ($ ? ne && ne.data ? W = Mde({
|
|
@@ -36653,7 +36653,7 @@ function Rde({
|
|
|
36653
36653
|
fromLaneId: z,
|
|
36654
36654
|
toLaneId: e,
|
|
36655
36655
|
sourceId: I
|
|
36656
|
-
}) :
|
|
36656
|
+
}) : H === "sameLaneOverCard" && ne && ne.data ? W = Dde({
|
|
36657
36657
|
cardTarget: ne,
|
|
36658
36658
|
fromLaneId: z,
|
|
36659
36659
|
toLaneId: e,
|
|
@@ -36670,8 +36670,8 @@ function Rde({
|
|
|
36670
36670
|
sourceId: I
|
|
36671
36671
|
}), !!W) {
|
|
36672
36672
|
if (!$ && W.indexOfTarget !== void 0) {
|
|
36673
|
-
const
|
|
36674
|
-
if (
|
|
36673
|
+
const j = W.indexOfTarget, Y = W.position;
|
|
36674
|
+
if (j === R && Y === "above" || j === R && Y === "below" || j === R - 1 && Y === "below" || j === R + 1 && Y === "above")
|
|
36675
36675
|
return;
|
|
36676
36676
|
}
|
|
36677
36677
|
await n?.(W), _(null), C(null);
|
|
@@ -36729,10 +36729,10 @@ function Rde({
|
|
|
36729
36729
|
return;
|
|
36730
36730
|
const L = $.offsetHeight, W = D.style.height;
|
|
36731
36731
|
D.style.height = "auto";
|
|
36732
|
-
const
|
|
36732
|
+
const H = O.scrollHeight;
|
|
36733
36733
|
D.style.height = W;
|
|
36734
36734
|
let ne;
|
|
36735
|
-
L < 100 ? ne = Math.max(
|
|
36735
|
+
L < 100 ? ne = Math.max(H, 400) : ne = Math.min(H, L), (M === null || Math.abs(ne - M) > 1) && (M = ne, f(ne));
|
|
36736
36736
|
};
|
|
36737
36737
|
I();
|
|
36738
36738
|
const R = () => {
|
|
@@ -36864,22 +36864,22 @@ function x5(e) {
|
|
|
36864
36864
|
const S = c.find((A) => A.id === C);
|
|
36865
36865
|
return S ? S.items.findIndex((A, T) => String(i(A, T, C)) === String(E)) : -1;
|
|
36866
36866
|
}, k = async (C) => {
|
|
36867
|
-
const { fromLaneId: E, toLaneId: S, sourceId: A, indexOfTarget: T, position: O } = C, D = c, N = D.findIndex((
|
|
36867
|
+
const { fromLaneId: E, toLaneId: S, sourceId: A, indexOfTarget: T, position: O } = C, D = c, N = D.findIndex((H) => H.id === S);
|
|
36868
36868
|
if (N === -1)
|
|
36869
36869
|
return Promise.reject(new Error("Lane not found"));
|
|
36870
36870
|
const M = () => {
|
|
36871
|
-
const
|
|
36872
|
-
i(Y, U, D[
|
|
36873
|
-
) === String(A)), ne = D.findIndex((
|
|
36871
|
+
const H = (j) => D[j].items.findIndex((Y, U) => String(
|
|
36872
|
+
i(Y, U, D[j].id)
|
|
36873
|
+
) === String(A)), ne = D.findIndex((j) => j.id === E);
|
|
36874
36874
|
if (ne !== -1) {
|
|
36875
|
-
const
|
|
36876
|
-
if (
|
|
36877
|
-
return { laneIdx: ne, itemIndex:
|
|
36875
|
+
const j = H(ne);
|
|
36876
|
+
if (j !== -1)
|
|
36877
|
+
return { laneIdx: ne, itemIndex: j };
|
|
36878
36878
|
}
|
|
36879
|
-
for (let
|
|
36880
|
-
const Y = j
|
|
36879
|
+
for (let j = 0; j < D.length; j++) {
|
|
36880
|
+
const Y = H(j);
|
|
36881
36881
|
if (Y !== -1)
|
|
36882
|
-
return { laneIdx:
|
|
36882
|
+
return { laneIdx: j, itemIndex: Y };
|
|
36883
36883
|
}
|
|
36884
36884
|
return { laneIdx: -1, itemIndex: -1 };
|
|
36885
36885
|
}, { laneIdx: I, itemIndex: R } = M();
|
|
@@ -36888,44 +36888,44 @@ function x5(e) {
|
|
|
36888
36888
|
const F = D[I].items[R];
|
|
36889
36889
|
let z = 0;
|
|
36890
36890
|
T == null ? z = 0 : z = T + (O === "below" ? 1 : 0);
|
|
36891
|
-
const $ = E === S, L = D.map((
|
|
36891
|
+
const $ = E === S, L = D.map((H, ne) => {
|
|
36892
36892
|
if (ne === I && $) {
|
|
36893
|
-
const
|
|
36894
|
-
|
|
36893
|
+
const j = [...H.items];
|
|
36894
|
+
j.splice(R, 1);
|
|
36895
36895
|
const Y = R < z ? z - 1 : z;
|
|
36896
|
-
return
|
|
36896
|
+
return j.splice(Y, 0, F), { ...H, items: j };
|
|
36897
36897
|
}
|
|
36898
36898
|
if (ne === I) {
|
|
36899
|
-
const
|
|
36900
|
-
|
|
36901
|
-
const Y = typeof
|
|
36902
|
-
return { ...
|
|
36899
|
+
const j = [...H.items];
|
|
36900
|
+
j.splice(R, 1);
|
|
36901
|
+
const Y = typeof H.total == "number" && !$ ? Math.max(0, H.total - 1) : H.total;
|
|
36902
|
+
return { ...H, items: j, total: Y };
|
|
36903
36903
|
}
|
|
36904
36904
|
if (ne === N) {
|
|
36905
|
-
const
|
|
36906
|
-
|
|
36907
|
-
const U = typeof
|
|
36908
|
-
return { ...
|
|
36905
|
+
const j = [...H.items], Y = Math.max(0, Math.min(z, j.length));
|
|
36906
|
+
j.splice(Y, 0, F);
|
|
36907
|
+
const U = typeof H.total == "number" && !$ ? H.total + 1 : H.total;
|
|
36908
|
+
return { ...H, items: j, total: U };
|
|
36909
36909
|
}
|
|
36910
|
-
return
|
|
36910
|
+
return H;
|
|
36911
36911
|
});
|
|
36912
36912
|
d(L);
|
|
36913
36913
|
const W = L.map(
|
|
36914
|
-
(
|
|
36914
|
+
(H) => `${H.id}:[${H.items.map((ne, j) => i(ne, j, H.id)).join(",")}]`
|
|
36915
36915
|
).join("|");
|
|
36916
36916
|
u.current = W, f.current = W;
|
|
36917
36917
|
try {
|
|
36918
|
-
const
|
|
36918
|
+
const H = T == null ? null : D[N].items[T], ne = await o?.onMove?.(
|
|
36919
36919
|
E,
|
|
36920
36920
|
S,
|
|
36921
36921
|
F,
|
|
36922
|
-
|
|
36923
|
-
record:
|
|
36922
|
+
H ? {
|
|
36923
|
+
record: H,
|
|
36924
36924
|
position: O ?? "above"
|
|
36925
36925
|
} : null
|
|
36926
36926
|
);
|
|
36927
|
-
return ne && d((
|
|
36928
|
-
const Y =
|
|
36927
|
+
return ne && d((j) => {
|
|
36928
|
+
const Y = j.map((V) => {
|
|
36929
36929
|
if (V.id !== S)
|
|
36930
36930
|
return V;
|
|
36931
36931
|
const J = [...V.items], ie = J.findIndex((Z, Q) => String(i(Z, Q, S)) === String(A));
|
|
@@ -36935,8 +36935,8 @@ function x5(e) {
|
|
|
36935
36935
|
).join("|");
|
|
36936
36936
|
return f.current = U, Y;
|
|
36937
36937
|
}), ne;
|
|
36938
|
-
} catch (
|
|
36939
|
-
throw d(D), u.current = null,
|
|
36938
|
+
} catch (H) {
|
|
36939
|
+
throw d(D), u.current = null, H;
|
|
36940
36940
|
}
|
|
36941
36941
|
};
|
|
36942
36942
|
return /* @__PURE__ */ P(
|
|
@@ -37088,16 +37088,16 @@ const r0 = ({
|
|
|
37088
37088
|
selectableGroups: u = !0
|
|
37089
37089
|
}) => {
|
|
37090
37090
|
const { lanesProvider: h, lanesHooks: p } = fde(a, {
|
|
37091
|
-
onError: (
|
|
37091
|
+
onError: (j) => c(j)
|
|
37092
37092
|
}), g = a.idProvider, y = ll(), v = a.currentSortings === null, { totalItemsAggregated: w, isInitialLoadingAggregated: x } = K(() => {
|
|
37093
|
-
const
|
|
37094
|
-
if (
|
|
37093
|
+
const j = Object.values(p), Y = j.length === e.length;
|
|
37094
|
+
if (j.length === 0 || !Y)
|
|
37095
37095
|
return {
|
|
37096
37096
|
totalItemsAggregated: void 0,
|
|
37097
37097
|
isInitialLoadingAggregated: !0
|
|
37098
37098
|
};
|
|
37099
37099
|
let U = 0, V = !1;
|
|
37100
|
-
for (const J of
|
|
37100
|
+
for (const J of j) {
|
|
37101
37101
|
const ie = J.paginationInfo?.total ?? J.data.records.length;
|
|
37102
37102
|
U += typeof ie == "number" ? ie : 0, J.isInitialLoading && (V = !0);
|
|
37103
37103
|
}
|
|
@@ -37106,7 +37106,7 @@ const r0 = ({
|
|
|
37106
37106
|
isInitialLoadingAggregated: V
|
|
37107
37107
|
};
|
|
37108
37108
|
}, [p, e.length]), b = K(
|
|
37109
|
-
() => Object.values(p).some((
|
|
37109
|
+
() => Object.values(p).some((j) => j.isInitialLoading),
|
|
37110
37110
|
[p]
|
|
37111
37111
|
);
|
|
37112
37112
|
ae(() => {
|
|
@@ -37115,7 +37115,7 @@ const r0 = ({
|
|
|
37115
37115
|
filters: a.currentFilters,
|
|
37116
37116
|
search: a.currentSearch,
|
|
37117
37117
|
isInitialLoading: x,
|
|
37118
|
-
data: Object.values(p).flatMap((
|
|
37118
|
+
data: Object.values(p).flatMap((j) => j.data.records)
|
|
37119
37119
|
});
|
|
37120
37120
|
}, [
|
|
37121
37121
|
w,
|
|
@@ -37124,50 +37124,50 @@ const r0 = ({
|
|
|
37124
37124
|
a.currentFilters,
|
|
37125
37125
|
a.currentSearch
|
|
37126
37126
|
]);
|
|
37127
|
-
const _ = K(() => e.map((
|
|
37128
|
-
id:
|
|
37129
|
-
data: p[
|
|
37127
|
+
const _ = K(() => e.map((j) => ({
|
|
37128
|
+
id: j.id,
|
|
37129
|
+
data: p[j.id]?.data || {
|
|
37130
37130
|
type: "flat",
|
|
37131
37131
|
records: [],
|
|
37132
37132
|
groups: []
|
|
37133
37133
|
},
|
|
37134
|
-
paginationInfo: p[
|
|
37135
|
-
})), [e, p]), { lanesSelectProvider: k, lanesUseSelectable: C } = pde(_, a, (
|
|
37136
|
-
l?.(
|
|
37134
|
+
paginationInfo: p[j.id]?.paginationInfo || null
|
|
37135
|
+
})), [e, p]), { lanesSelectProvider: k, lanesUseSelectable: C } = pde(_, a, (j, Y) => {
|
|
37136
|
+
l?.(j, Y);
|
|
37137
37137
|
}), E = ee(
|
|
37138
|
-
(
|
|
37138
|
+
(j, Y) => {
|
|
37139
37139
|
if (g)
|
|
37140
|
-
return String(g(
|
|
37141
|
-
const U =
|
|
37140
|
+
return String(g(j, Y));
|
|
37141
|
+
const U = j?.id;
|
|
37142
37142
|
return U != null ? String(U) : String(Y);
|
|
37143
37143
|
},
|
|
37144
37144
|
[g]
|
|
37145
37145
|
), S = ee(
|
|
37146
|
-
(
|
|
37146
|
+
(j, Y, U, V) => {
|
|
37147
37147
|
const J = String(
|
|
37148
|
-
g ? g(
|
|
37149
|
-
), ie = a.selectable ? a.selectable(
|
|
37148
|
+
g ? g(j, Y) : j?.id ?? Y
|
|
37149
|
+
), ie = a.selectable ? a.selectable(j) : j.id, Z = C && V ? C.get(V) : void 0, Q = (typeof ie == "string" || typeof ie == "number") && Z && Z?.selectedItems.has(ie), ce = a.itemUrl ? a.itemUrl(j) : void 0, ye = a.itemOnClick ? a.itemOnClick(j) : void 0;
|
|
37150
37150
|
return /* @__PURE__ */ m(
|
|
37151
37151
|
Nde,
|
|
37152
37152
|
{
|
|
37153
|
-
drag: { id: J, type: "list-card", data: { ...
|
|
37154
|
-
id: String(
|
|
37153
|
+
drag: { id: J, type: "list-card", data: { ...j, laneId: V } },
|
|
37154
|
+
id: String(j.id),
|
|
37155
37155
|
index: Y,
|
|
37156
37156
|
total: U,
|
|
37157
37157
|
laneId: V,
|
|
37158
37158
|
showIndicator: v,
|
|
37159
|
-
title: t ? t(
|
|
37160
|
-
description: n ? n(
|
|
37161
|
-
avatar: i ? i(
|
|
37159
|
+
title: t ? t(j) : String(Y),
|
|
37160
|
+
description: n ? n(j) : void 0,
|
|
37161
|
+
avatar: i ? i(j) : void 0,
|
|
37162
37162
|
draggable: o !== void 0,
|
|
37163
|
-
metadata: r ? [...r(
|
|
37163
|
+
metadata: r ? [...r(j)] : void 0,
|
|
37164
37164
|
compact: !0,
|
|
37165
37165
|
forceVerticalMetadata: !0,
|
|
37166
37166
|
selectable: a.selectable !== void 0,
|
|
37167
37167
|
selected: Q,
|
|
37168
|
-
"data-testid": `kanban-card-${String(
|
|
37168
|
+
"data-testid": `kanban-card-${String(j.id)}`,
|
|
37169
37169
|
onSelect: (be) => {
|
|
37170
|
-
Z && Z.handleSelectItemChange(
|
|
37170
|
+
Z && Z.handleSelectItemChange(j, be);
|
|
37171
37171
|
},
|
|
37172
37172
|
onClick: ye,
|
|
37173
37173
|
link: ce
|
|
@@ -37189,14 +37189,14 @@ const r0 = ({
|
|
|
37189
37189
|
r
|
|
37190
37190
|
]
|
|
37191
37191
|
), A = K(
|
|
37192
|
-
() => e.map((
|
|
37193
|
-
const Y = p[
|
|
37192
|
+
() => e.map((j) => {
|
|
37193
|
+
const Y = p[j.id], U = Y?.paginationInfo?.total, V = Lde(Y?.paginationInfo) && Y?.paginationInfo?.hasMore;
|
|
37194
37194
|
return {
|
|
37195
|
-
id:
|
|
37196
|
-
title:
|
|
37195
|
+
id: j.id,
|
|
37196
|
+
title: j.title,
|
|
37197
37197
|
items: Y?.data?.records ?? [],
|
|
37198
|
-
variant:
|
|
37199
|
-
color:
|
|
37198
|
+
variant: j.variant,
|
|
37199
|
+
color: j.color,
|
|
37200
37200
|
total: U,
|
|
37201
37201
|
hasMore: V,
|
|
37202
37202
|
loading: Y ? Y.isInitialLoading : !0,
|
|
@@ -37206,25 +37206,25 @@ const r0 = ({
|
|
|
37206
37206
|
}),
|
|
37207
37207
|
[e, p]
|
|
37208
37208
|
), T = !!a.currentGrouping, O = Uz(), D = a.currentGrouping?.order ?? "asc", N = a.currentGrouping?.field, M = a.dataAdapter?.paginationType, I = K(() => {
|
|
37209
|
-
const
|
|
37210
|
-
return
|
|
37211
|
-
}, [a.currentGrouping?.field, a.grouping]), R = K(() => new Set(e.map((
|
|
37209
|
+
const j = a.currentGrouping?.field;
|
|
37210
|
+
return j == null ? void 0 : a.grouping?.groupBy?.[j];
|
|
37211
|
+
}, [a.currentGrouping?.field, a.grouping]), R = K(() => new Set(e.map((j) => j.id)), [e]), F = K(() => {
|
|
37212
37212
|
if (!T)
|
|
37213
37213
|
return [];
|
|
37214
|
-
const
|
|
37214
|
+
const j = /* @__PURE__ */ new Set();
|
|
37215
37215
|
for (const Y of e) {
|
|
37216
37216
|
const U = p[Y.id]?.data;
|
|
37217
37217
|
if (U?.type === "grouped")
|
|
37218
37218
|
for (const V of U.groups)
|
|
37219
|
-
|
|
37219
|
+
j.add(V.key);
|
|
37220
37220
|
}
|
|
37221
|
-
return Array.from(
|
|
37221
|
+
return Array.from(j).sort((Y, U) => {
|
|
37222
37222
|
const V = Y.localeCompare(U, void 0, { numeric: !0 });
|
|
37223
37223
|
return D === "desc" ? -V : V;
|
|
37224
37224
|
});
|
|
37225
|
-
}, [T, e, p, D]), z = K(() => T ? F.map((
|
|
37226
|
-
const U = (f ? f(
|
|
37227
|
-
const Z = p[ie.id], ce = (Z?.data?.type === "grouped" ? Z.data.groups.find((ye) => ye.key ===
|
|
37225
|
+
}, [T, e, p, D]), z = K(() => T ? F.map((j) => {
|
|
37226
|
+
const U = (f ? f(j) : e).filter((ie) => R.has(ie.id)).map((ie) => {
|
|
37227
|
+
const Z = p[ie.id], ce = (Z?.data?.type === "grouped" ? Z.data.groups.find((ye) => ye.key === j) : void 0)?.records ?? [];
|
|
37228
37228
|
return {
|
|
37229
37229
|
id: ie.id,
|
|
37230
37230
|
title: ie.title,
|
|
@@ -37237,8 +37237,8 @@ const r0 = ({
|
|
|
37237
37237
|
loadingMore: !1,
|
|
37238
37238
|
fetchMore: void 0
|
|
37239
37239
|
};
|
|
37240
|
-
}), V = I ? I.label(
|
|
37241
|
-
return { key:
|
|
37240
|
+
}), V = I ? I.label(j, a.currentFilters) : j, J = I?.itemCount ? I.itemCount(j, a.currentFilters) : U.reduce((ie, Z) => ie + Z.items.length, 0);
|
|
37241
|
+
return { key: j, label: V, itemCount: J, lanes: U };
|
|
37242
37242
|
}) : [], [
|
|
37243
37243
|
T,
|
|
37244
37244
|
F,
|
|
@@ -37251,11 +37251,11 @@ const r0 = ({
|
|
|
37251
37251
|
]), $ = K(() => {
|
|
37252
37252
|
if (!T || !f)
|
|
37253
37253
|
return [];
|
|
37254
|
-
const
|
|
37254
|
+
const j = /* @__PURE__ */ new Set();
|
|
37255
37255
|
for (const Y of F)
|
|
37256
37256
|
for (const U of f(Y))
|
|
37257
|
-
R.has(U.id) ||
|
|
37258
|
-
return Array.from(
|
|
37257
|
+
R.has(U.id) || j.add(U.id);
|
|
37258
|
+
return Array.from(j);
|
|
37259
37259
|
}, [T, f, F, R]);
|
|
37260
37260
|
ae(() => {
|
|
37261
37261
|
!O || !T || (N != null && !I && console.error(
|
|
@@ -37273,11 +37273,11 @@ const r0 = ({
|
|
|
37273
37273
|
I,
|
|
37274
37274
|
$
|
|
37275
37275
|
]);
|
|
37276
|
-
const L = a.grouping?.collapsible, W = a.grouping?.defaultOpenGroups, { openGroups:
|
|
37277
|
-
z.map((
|
|
37278
|
-
key:
|
|
37279
|
-
label:
|
|
37280
|
-
itemCount:
|
|
37276
|
+
const L = a.grouping?.collapsible, W = a.grouping?.defaultOpenGroups, { openGroups: H, setGroupOpen: ne } = Ny(
|
|
37277
|
+
z.map((j) => ({
|
|
37278
|
+
key: j.key,
|
|
37279
|
+
label: j.label,
|
|
37280
|
+
itemCount: j.itemCount,
|
|
37281
37281
|
records: []
|
|
37282
37282
|
})),
|
|
37283
37283
|
W
|
|
@@ -37307,13 +37307,13 @@ const r0 = ({
|
|
|
37307
37307
|
loading: b
|
|
37308
37308
|
}
|
|
37309
37309
|
)
|
|
37310
|
-
) : z.map((
|
|
37310
|
+
) : z.map((j) => {
|
|
37311
37311
|
const Y = u && a.selectable !== void 0;
|
|
37312
37312
|
let U = 0, V = 0;
|
|
37313
|
-
for (const ie of
|
|
37313
|
+
for (const ie of j.lanes) {
|
|
37314
37314
|
if (ie.id === void 0)
|
|
37315
37315
|
continue;
|
|
37316
|
-
const Z = C.get(ie.id)?.groupAllSelectedStatus[
|
|
37316
|
+
const Z = C.get(ie.id)?.groupAllSelectedStatus[j.key];
|
|
37317
37317
|
U += Z?.selectedCount ?? 0, V += Z?.unselectedCount ?? 0;
|
|
37318
37318
|
}
|
|
37319
37319
|
const J = U === 0 ? !1 : V === 0 ? !0 : "indeterminate";
|
|
@@ -37321,7 +37321,7 @@ const r0 = ({
|
|
|
37321
37321
|
"div",
|
|
37322
37322
|
{
|
|
37323
37323
|
className: "flex flex-col gap-2",
|
|
37324
|
-
"data-testid": `kanban-group-${
|
|
37324
|
+
"data-testid": `kanban-group-${j.key}`,
|
|
37325
37325
|
children: [
|
|
37326
37326
|
/* @__PURE__ */ m(
|
|
37327
37327
|
Ay,
|
|
@@ -37334,18 +37334,18 @@ const r0 = ({
|
|
|
37334
37334
|
(L || Y) && "cursor-pointer select-none transition-colors hover:bg-f1-background-hover"
|
|
37335
37335
|
),
|
|
37336
37336
|
showOpenChange: L,
|
|
37337
|
-
label:
|
|
37338
|
-
itemCount:
|
|
37337
|
+
label: j.label,
|
|
37338
|
+
itemCount: j.itemCount,
|
|
37339
37339
|
selectable: Y,
|
|
37340
37340
|
select: J,
|
|
37341
|
-
onSelectChange: (ie) =>
|
|
37342
|
-
Z.id !== void 0 && C.get(Z.id)?.handleSelectGroupChange(
|
|
37341
|
+
onSelectChange: (ie) => j.lanes.forEach((Z) => {
|
|
37342
|
+
Z.id !== void 0 && C.get(Z.id)?.handleSelectGroupChange(j.key, ie);
|
|
37343
37343
|
}),
|
|
37344
|
-
open: j
|
|
37345
|
-
onOpenChange: (ie) => ne(
|
|
37344
|
+
open: H[j.key],
|
|
37345
|
+
onOpenChange: (ie) => ne(j.key, ie)
|
|
37346
37346
|
}
|
|
37347
37347
|
),
|
|
37348
|
-
/* @__PURE__ */ m(Yt, { children: !L || j
|
|
37348
|
+
/* @__PURE__ */ m(Yt, { children: !L || H[j.key] ? /* @__PURE__ */ m(
|
|
37349
37349
|
Xe.div,
|
|
37350
37350
|
{
|
|
37351
37351
|
initial: { height: 0, opacity: 0 },
|
|
@@ -37358,7 +37358,7 @@ const r0 = ({
|
|
|
37358
37358
|
children: /* @__PURE__ */ m(
|
|
37359
37359
|
r0,
|
|
37360
37360
|
{
|
|
37361
|
-
lanes:
|
|
37361
|
+
lanes: j.lanes,
|
|
37362
37362
|
heightMode: "content",
|
|
37363
37363
|
renderCard: S,
|
|
37364
37364
|
getKey: E,
|
|
@@ -37373,7 +37373,7 @@ const r0 = ({
|
|
|
37373
37373
|
) : null })
|
|
37374
37374
|
]
|
|
37375
37375
|
},
|
|
37376
|
-
`kanban-group-${
|
|
37376
|
+
`kanban-group-${j.key}`
|
|
37377
37377
|
);
|
|
37378
37378
|
})
|
|
37379
37379
|
}
|
|
@@ -38017,10 +38017,16 @@ const Jde = [
|
|
|
38017
38017
|
`Invalid storage key format: "${e}". Key must follow the format "name/version" where name can be a path (e.g., "employees/list/") and version must start with "v" (e.g., "v1", "v2.1").`
|
|
38018
38018
|
);
|
|
38019
38019
|
const a = K(
|
|
38020
|
-
// Settings and
|
|
38021
|
-
// consumer's `features` allowlist:
|
|
38022
|
-
// capability and must persist whenever a storage key
|
|
38023
|
-
|
|
38020
|
+
// Settings, the views and which one is selected are always included,
|
|
38021
|
+
// regardless of the consumer's `features` allowlist: views are a
|
|
38022
|
+
// first-class, always-on capability and must persist whenever a storage key
|
|
38023
|
+
// is present.
|
|
38024
|
+
() => [
|
|
38025
|
+
...Zde(t),
|
|
38026
|
+
"settings",
|
|
38027
|
+
"customPresets",
|
|
38028
|
+
"selectedPresetId"
|
|
38029
|
+
],
|
|
38024
38030
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- This is intentional
|
|
38025
38031
|
[JSON.stringify(t)]
|
|
38026
38032
|
), l = K(() => !i && !!e, [i, e]);
|
|
@@ -39134,7 +39140,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39134
39140
|
currentSortings: $,
|
|
39135
39141
|
setCurrentSortings: L,
|
|
39136
39142
|
sortings: W
|
|
39137
|
-
} = e, [
|
|
39143
|
+
} = e, [H, ne] = X(g), [j, Y] = X(
|
|
39138
39144
|
void 0
|
|
39139
39145
|
), [U, V] = X([]), [J, ie] = X(null), [Z] = X(() => {
|
|
39140
39146
|
if (typeof window > "u")
|
|
@@ -39158,19 +39164,19 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39158
39164
|
sourceCurrentFilters: v,
|
|
39159
39165
|
sourceSetCurrentFilters: w,
|
|
39160
39166
|
visualizations: t,
|
|
39161
|
-
currentVisualization:
|
|
39167
|
+
currentVisualization: H,
|
|
39162
39168
|
storageKey: d
|
|
39163
39169
|
}), oe = B(null), [de, se] = X(!1), le = Ude(
|
|
39164
39170
|
e.dataAdapter,
|
|
39165
39171
|
l
|
|
39166
|
-
), ue = "perPage" in e.dataAdapter && e.dataAdapter.perPage === "auto" && e.dataAdapter.paginationType === "pages" && !l, ge = t[
|
|
39172
|
+
), ue = "perPage" in e.dataAdapter && e.dataAdapter.perPage === "auto" && e.dataAdapter.paginationType === "pages" && !l, ge = t[H]?.type === "list" ? Kde : Y2, Ce = Xde(oe, le, {
|
|
39167
39173
|
rowHeight: ge,
|
|
39168
39174
|
ready: de,
|
|
39169
|
-
measureKey:
|
|
39175
|
+
measureKey: H
|
|
39170
39176
|
});
|
|
39171
39177
|
ae(() => {
|
|
39172
39178
|
le && se(!1);
|
|
39173
|
-
}, [
|
|
39179
|
+
}, [H]), ae(() => {
|
|
39174
39180
|
ue && console.warn(
|
|
39175
39181
|
'[OneDataCollection] perPage: "auto" requires the fullHeight prop — falling back to the default page size.'
|
|
39176
39182
|
);
|
|
@@ -39190,7 +39196,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39190
39196
|
Pe
|
|
39191
39197
|
]), st = B($), tt = B(R), rt = B(be), { emitSortingChange: Se } = nj({
|
|
39192
39198
|
defaultSorting: st.current,
|
|
39193
|
-
currentVisualization: re ?
|
|
39199
|
+
currentVisualization: re ? H : void 0
|
|
39194
39200
|
});
|
|
39195
39201
|
ae(() => {
|
|
39196
39202
|
Se($);
|
|
@@ -39206,7 +39212,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39206
39212
|
[M]
|
|
39207
39213
|
), me = h && typeof h == "object" ? h.filename : d ? `${d}_export` : void 0, Ae = Efe({
|
|
39208
39214
|
source: He,
|
|
39209
|
-
currentVisualization: t[
|
|
39215
|
+
currentVisualization: t[H],
|
|
39210
39216
|
filename: me,
|
|
39211
39217
|
enabled: !!h
|
|
39212
39218
|
}), we = K(
|
|
@@ -39368,14 +39374,14 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39368
39374
|
filters: be,
|
|
39369
39375
|
sortings: $,
|
|
39370
39376
|
grouping: R,
|
|
39371
|
-
visualization:
|
|
39377
|
+
visualization: H,
|
|
39372
39378
|
settings: fr
|
|
39373
39379
|
}),
|
|
39374
39380
|
[
|
|
39375
39381
|
be,
|
|
39376
39382
|
$,
|
|
39377
39383
|
R,
|
|
39378
|
-
|
|
39384
|
+
H,
|
|
39379
39385
|
fr
|
|
39380
39386
|
]
|
|
39381
39387
|
), cs = ee(
|
|
@@ -39398,13 +39404,13 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39398
39404
|
[]
|
|
39399
39405
|
), la = ee(
|
|
39400
39406
|
(ke) => {
|
|
39401
|
-
L(ke.sortings), F(ke.grouping), ls(ke.settings), ke.visualization !==
|
|
39407
|
+
L(ke.sortings), F(ke.grouping), ls(ke.settings), ke.visualization !== H ? (Vr.current = {
|
|
39402
39408
|
filters: ke.filters,
|
|
39403
39409
|
visualization: ke.visualization
|
|
39404
39410
|
}, ne(ke.visualization)) : _e(ke.filters);
|
|
39405
39411
|
},
|
|
39406
39412
|
[
|
|
39407
|
-
|
|
39413
|
+
H,
|
|
39408
39414
|
_e,
|
|
39409
39415
|
L,
|
|
39410
39416
|
F,
|
|
@@ -39413,20 +39419,20 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39413
39419
|
);
|
|
39414
39420
|
fn(() => {
|
|
39415
39421
|
const ke = Vr.current;
|
|
39416
|
-
ke && ke.visualization ===
|
|
39417
|
-
}, [
|
|
39422
|
+
ke && ke.visualization === H && (Vr.current = null, _e(ke.filters));
|
|
39423
|
+
}, [H, _e]);
|
|
39418
39424
|
const Dh = ee(
|
|
39419
39425
|
(ke) => {
|
|
39420
|
-
if (ur.current = !1, ke ===
|
|
39426
|
+
if (ur.current = !1, ke === j) {
|
|
39421
39427
|
la(Hr.current ?? Oh()), Hr.current = null, Y(void 0);
|
|
39422
39428
|
return;
|
|
39423
39429
|
}
|
|
39424
39430
|
const je = zn.find((_t) => _t.id === ke);
|
|
39425
|
-
je && (
|
|
39431
|
+
je && (j || (Hr.current = jn), la(cs(je)), Y(ke));
|
|
39426
39432
|
},
|
|
39427
39433
|
[
|
|
39428
39434
|
zn,
|
|
39429
|
-
|
|
39435
|
+
j,
|
|
39430
39436
|
jn,
|
|
39431
39437
|
la,
|
|
39432
39438
|
Oh,
|
|
@@ -39434,7 +39440,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39434
39440
|
]
|
|
39435
39441
|
), ds = B(null);
|
|
39436
39442
|
ae(() => {
|
|
39437
|
-
const ke =
|
|
39443
|
+
const ke = j ? zn.find((_t) => _t.id === j) : void 0;
|
|
39438
39444
|
if (!ke) {
|
|
39439
39445
|
ds.current = null;
|
|
39440
39446
|
return;
|
|
@@ -39452,7 +39458,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39452
39458
|
}
|
|
39453
39459
|
Ms(jn, je.snapshot) || (ds.current = null, Hr.current = null, ur.current = !0, Y(void 0));
|
|
39454
39460
|
}
|
|
39455
|
-
}, [
|
|
39461
|
+
}, [j, zn, jn, cs]);
|
|
39456
39462
|
const [fs, X1] = X(
|
|
39457
39463
|
null
|
|
39458
39464
|
), J1 = K(() => {
|
|
@@ -39462,10 +39468,10 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39462
39468
|
{ ...je, visualization: void 0 },
|
|
39463
39469
|
{ ..._t, visualization: void 0 }
|
|
39464
39470
|
);
|
|
39465
|
-
return
|
|
39471
|
+
return j && zn.some((je) => je.id === j) || fs === null ? "none" : !ke(jn, fs) || ur.current && !Ms(jn, fs) ? "save" : "none";
|
|
39466
39472
|
}, [
|
|
39467
39473
|
p,
|
|
39468
|
-
|
|
39474
|
+
j,
|
|
39469
39475
|
zn,
|
|
39470
39476
|
jn,
|
|
39471
39477
|
fs
|
|
@@ -39481,7 +39487,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39481
39487
|
filter: be,
|
|
39482
39488
|
sortings: $,
|
|
39483
39489
|
grouping: R,
|
|
39484
|
-
visualization:
|
|
39490
|
+
visualization: H,
|
|
39485
39491
|
settings: fr
|
|
39486
39492
|
}, Ot = {
|
|
39487
39493
|
// Title-derived id (doubles as the readable `dc_view` URL value).
|
|
@@ -39500,7 +39506,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39500
39506
|
be,
|
|
39501
39507
|
$,
|
|
39502
39508
|
R,
|
|
39503
|
-
|
|
39509
|
+
H,
|
|
39504
39510
|
fr,
|
|
39505
39511
|
zn
|
|
39506
39512
|
]
|
|
@@ -39601,7 +39607,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39601
39607
|
setValue: C
|
|
39602
39608
|
},
|
|
39603
39609
|
visualization: {
|
|
39604
|
-
value:
|
|
39610
|
+
value: H,
|
|
39605
39611
|
setValue: ne
|
|
39606
39612
|
},
|
|
39607
39613
|
search: {
|
|
@@ -39616,6 +39622,10 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39616
39622
|
value: U,
|
|
39617
39623
|
setValue: V
|
|
39618
39624
|
},
|
|
39625
|
+
selectedPresetId: {
|
|
39626
|
+
value: j,
|
|
39627
|
+
setValue: Y
|
|
39628
|
+
},
|
|
39619
39629
|
...re ? {
|
|
39620
39630
|
visualizationFilters: {
|
|
39621
39631
|
value: ve,
|
|
@@ -39635,9 +39645,9 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39635
39645
|
search: S,
|
|
39636
39646
|
sortings: $,
|
|
39637
39647
|
defaultSortings: st.current,
|
|
39638
|
-
visualization:
|
|
39648
|
+
visualization: H,
|
|
39639
39649
|
visualizationKeys: t.map((ke) => ke.type),
|
|
39640
|
-
selectedPresetId:
|
|
39650
|
+
selectedPresetId: j,
|
|
39641
39651
|
setFilters: _e,
|
|
39642
39652
|
setSearch: A,
|
|
39643
39653
|
setSortings: L,
|
|
@@ -39652,7 +39662,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39652
39662
|
s?.({
|
|
39653
39663
|
filters: be,
|
|
39654
39664
|
sortings: $,
|
|
39655
|
-
visualization:
|
|
39665
|
+
visualization: H,
|
|
39656
39666
|
grouping: R,
|
|
39657
39667
|
search: S,
|
|
39658
39668
|
navigationFilters: _,
|
|
@@ -39664,7 +39674,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39664
39674
|
S,
|
|
39665
39675
|
_,
|
|
39666
39676
|
$,
|
|
39667
|
-
|
|
39677
|
+
H,
|
|
39668
39678
|
R,
|
|
39669
39679
|
fr,
|
|
39670
39680
|
ve
|
|
@@ -39736,7 +39746,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39736
39746
|
presetsLoading: xd,
|
|
39737
39747
|
onChange: (ke) => _e(ke),
|
|
39738
39748
|
resultCount: co,
|
|
39739
|
-
selectedPresetId:
|
|
39749
|
+
selectedPresetId: j,
|
|
39740
39750
|
onSelectPreset: Dh,
|
|
39741
39751
|
editablePresetIds: ev,
|
|
39742
39752
|
onEditPreset: tv,
|
|
@@ -39772,7 +39782,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39772
39782
|
Wde,
|
|
39773
39783
|
{
|
|
39774
39784
|
visualizations: t,
|
|
39775
|
-
currentVisualization:
|
|
39785
|
+
currentVisualization: H,
|
|
39776
39786
|
onVisualizationChange: ne,
|
|
39777
39787
|
hideLabels: Qt
|
|
39778
39788
|
}
|
|
@@ -39781,7 +39791,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39781
39791
|
zfe,
|
|
39782
39792
|
{
|
|
39783
39793
|
visualizations: t,
|
|
39784
|
-
currentVisualization:
|
|
39794
|
+
currentVisualization: H,
|
|
39785
39795
|
grouping: z,
|
|
39786
39796
|
currentGrouping: R,
|
|
39787
39797
|
onGroupingChange: F,
|
|
@@ -39829,7 +39839,7 @@ const ww = "dc_shared_view", Dfe = (e) => {
|
|
|
39829
39839
|
children: !le || Ce !== void 0 ? /* @__PURE__ */ m(
|
|
39830
39840
|
Hde,
|
|
39831
39841
|
{
|
|
39832
|
-
visualization: t[
|
|
39842
|
+
visualization: t[H],
|
|
39833
39843
|
source: He,
|
|
39834
39844
|
onSelectItems: rs,
|
|
39835
39845
|
onLoadData: as,
|
|
@@ -40290,7 +40300,7 @@ function nue({
|
|
|
40290
40300
|
z.current = JSON.stringify(me), t.onChange(me);
|
|
40291
40301
|
},
|
|
40292
40302
|
[t, O]
|
|
40293
|
-
), L = e.onRemove, W = e.confirmRemove,
|
|
40303
|
+
), L = e.onRemove, W = e.confirmRemove, H = ee(
|
|
40294
40304
|
async (fe) => {
|
|
40295
40305
|
const { __key: me, ...Ae } = fe, we = O(Ae), De = W ? W(we) : {
|
|
40296
40306
|
type: "critical",
|
|
@@ -40352,7 +40362,7 @@ function nue({
|
|
|
40352
40362
|
},
|
|
40353
40363
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- itemShape derives from field.itemSchema
|
|
40354
40364
|
[e.itemSchema]
|
|
40355
|
-
),
|
|
40365
|
+
), j = !!e.disabled, Y = ee(
|
|
40356
40366
|
(fe) => {
|
|
40357
40367
|
if (!e.editableIds)
|
|
40358
40368
|
return !0;
|
|
@@ -40436,7 +40446,7 @@ function nue({
|
|
|
40436
40446
|
l,
|
|
40437
40447
|
t
|
|
40438
40448
|
]
|
|
40439
|
-
), ye = e.maxItems != null && N.length >= e.maxItems, be = e.canAddItems !== !1, _e = (fe, me) => S ? "display-only" :
|
|
40449
|
+
), ye = e.maxItems != null && N.length >= e.maxItems, be = e.canAddItems !== !1, _e = (fe, me) => S ? "display-only" : j || !Y(fe) ? "disabled" : me, ve = k.map((fe) => {
|
|
40440
40450
|
if (e.columns?.[fe]?.hidden)
|
|
40441
40451
|
return null;
|
|
40442
40452
|
const me = R5(_[fe]);
|
|
@@ -40516,7 +40526,7 @@ function nue({
|
|
|
40516
40526
|
// Route through the confirm + persist path so custom actions that
|
|
40517
40527
|
// call remove() also confirm and hit onRemove.
|
|
40518
40528
|
remove: () => {
|
|
40519
|
-
|
|
40529
|
+
H(fe);
|
|
40520
40530
|
}
|
|
40521
40531
|
})
|
|
40522
40532
|
}));
|
|
@@ -40529,7 +40539,7 @@ function nue({
|
|
|
40529
40539
|
return { hasInvalidRow: fe, hasInvalidExistingRow: me };
|
|
40530
40540
|
}, [N, e.itemSchema, O]), ue = be ? {
|
|
40531
40541
|
label: l,
|
|
40532
|
-
disabled:
|
|
40542
|
+
disabled: j || ye || se,
|
|
40533
40543
|
disabledTooltip: ye ? o.addBlockedMaxHint : se ? le ? o.addBlockedErrorHint : o.addBlockedHint : void 0,
|
|
40534
40544
|
// When enabled, hint the create dialog's description on hover.
|
|
40535
40545
|
tooltip: d,
|
|
@@ -40553,9 +40563,9 @@ function nue({
|
|
|
40553
40563
|
), Pe = ee(
|
|
40554
40564
|
(fe) => {
|
|
40555
40565
|
const me = ge(fe);
|
|
40556
|
-
me &&
|
|
40566
|
+
me && H(me);
|
|
40557
40567
|
},
|
|
40558
|
-
[ge,
|
|
40568
|
+
[ge, H]
|
|
40559
40569
|
), He = ee(
|
|
40560
40570
|
(fe) => {
|
|
40561
40571
|
const me = ge(fe);
|
|
@@ -40597,12 +40607,12 @@ function nue({
|
|
|
40597
40607
|
// Route through the confirm + persist path so custom actions that
|
|
40598
40608
|
// call remove() also confirm and hit onRemove.
|
|
40599
40609
|
remove: () => {
|
|
40600
|
-
|
|
40610
|
+
H(N[me]);
|
|
40601
40611
|
}
|
|
40602
40612
|
})
|
|
40603
40613
|
}));
|
|
40604
40614
|
},
|
|
40605
|
-
[oe, N, $, t,
|
|
40615
|
+
[oe, N, $, t, H]
|
|
40606
40616
|
), et = e.validation ? b2(e.validation, "entitiesList") : !1, pe = /* @__PURE__ */ P("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
40607
40617
|
/* @__PURE__ */ P("label", { className: "text-base font-medium leading-normal text-f1-foreground-secondary", children: [
|
|
40608
40618
|
e.label,
|
|
@@ -40633,9 +40643,9 @@ function nue({
|
|
|
40633
40643
|
listItem: e.listItem,
|
|
40634
40644
|
canEditRow: He,
|
|
40635
40645
|
canRemoveRow: st,
|
|
40636
|
-
onEditRow: fe ||
|
|
40637
|
-
onRowClick: fe ||
|
|
40638
|
-
onRemoveRow:
|
|
40646
|
+
onEditRow: fe || j ? void 0 : Ce,
|
|
40647
|
+
onRowClick: fe || j ? void 0 : Ce,
|
|
40648
|
+
onRemoveRow: j ? void 0 : Pe,
|
|
40639
40649
|
isRemovePending: F,
|
|
40640
40650
|
getRowActions: oe ? Se : void 0,
|
|
40641
40651
|
getRowHref: fe ? rt : void 0,
|
|
@@ -40667,7 +40677,7 @@ function nue({
|
|
|
40667
40677
|
sortableRows: e.sortable !== !1,
|
|
40668
40678
|
onReorderRows: ({ items: fe }) => $(fe),
|
|
40669
40679
|
onRemoveRow: (fe) => {
|
|
40670
|
-
|
|
40680
|
+
H(fe);
|
|
40671
40681
|
},
|
|
40672
40682
|
onEditRow: S ? (fe) => ce("edit", fe) : void 0,
|
|
40673
40683
|
canEditRow: Y,
|
|
@@ -40675,7 +40685,7 @@ function nue({
|
|
|
40675
40685
|
rowActions: de,
|
|
40676
40686
|
editLabel: h,
|
|
40677
40687
|
removeLabel: g,
|
|
40678
|
-
disabled:
|
|
40688
|
+
disabled: j || I.size > 0
|
|
40679
40689
|
}
|
|
40680
40690
|
),
|
|
40681
40691
|
q ? /* @__PURE__ */ m("p", { className: "text-sm font-medium text-f1-foreground-critical", children: q }) : null
|
|
@@ -41037,7 +41047,7 @@ function due({
|
|
|
41037
41047
|
(ie) => ie.key === U ? { ...ie, error: V } : ie
|
|
41038
41048
|
)
|
|
41039
41049
|
);
|
|
41040
|
-
}, []),
|
|
41050
|
+
}, []), H = u ? b.dropzoneActive : e.description ?? (p ? b.dropzoneMultiple : b.dropzone), ne = !!(n || w || i === "error"), j = ne || i === "warning" || i === "info", Y = lue({
|
|
41041
41051
|
isDragOver: u,
|
|
41042
41052
|
hasCriticalStatus: ne,
|
|
41043
41053
|
statusType: i
|
|
@@ -41051,11 +41061,11 @@ function due({
|
|
|
41051
41061
|
cue,
|
|
41052
41062
|
{
|
|
41053
41063
|
disabled: e.disabled,
|
|
41054
|
-
text:
|
|
41064
|
+
text: H,
|
|
41055
41065
|
acceptedTypesLabel: T,
|
|
41056
41066
|
acceptedTypesTemplate: b.acceptedTypes,
|
|
41057
41067
|
statusClasses: Y,
|
|
41058
|
-
plain: !
|
|
41068
|
+
plain: !j,
|
|
41059
41069
|
dragOver: u,
|
|
41060
41070
|
onDragOver: N,
|
|
41061
41071
|
onDragLeave: M,
|
|
@@ -43950,7 +43960,7 @@ const x8 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2
|
|
|
43950
43960
|
}, W = (Z) => {
|
|
43951
43961
|
const Q = yj(Z, $.current);
|
|
43952
43962
|
M(Q), r?.(Q, vj(Z, $.current));
|
|
43953
|
-
},
|
|
43963
|
+
}, H = K(() => {
|
|
43954
43964
|
const Z = {
|
|
43955
43965
|
country: T.phoneInput.country
|
|
43956
43966
|
};
|
|
@@ -43961,7 +43971,7 @@ const x8 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2
|
|
|
43961
43971
|
const Z = (a ?? []).map(Rh).filter((Q) => !!Q);
|
|
43962
43972
|
if (Z.length)
|
|
43963
43973
|
return [...Z, "|", "..."];
|
|
43964
|
-
}, [a]),
|
|
43974
|
+
}, [a]), j = K(
|
|
43965
43975
|
() => (a ?? []).map(Rh).find(Boolean) ?? "ES",
|
|
43966
43976
|
[a]
|
|
43967
43977
|
), Y = K(() => {
|
|
@@ -44035,12 +44045,12 @@ const x8 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2
|
|
|
44035
44045
|
defaultCountry: F ?? I,
|
|
44036
44046
|
countries: Y,
|
|
44037
44047
|
countryOptionsOrder: ne,
|
|
44038
|
-
labels:
|
|
44048
|
+
labels: H,
|
|
44039
44049
|
initialValueFormat: "national",
|
|
44040
44050
|
countrySelectComponent: dpe,
|
|
44041
44051
|
countrySelectProps: { size: b, selectCountryRef: U },
|
|
44042
44052
|
inputComponent: w8,
|
|
44043
|
-
placeholder: c ?? (F ? fpe(F) : upe(
|
|
44053
|
+
placeholder: c ?? (F ? fpe(F) : upe(j)),
|
|
44044
44054
|
disabled: y,
|
|
44045
44055
|
readOnly: v,
|
|
44046
44056
|
required: g,
|
|
@@ -56979,15 +56989,15 @@ function Uve(e) {
|
|
|
56979
56989
|
function qve(e) {
|
|
56980
56990
|
var t = e.state, n = e.options, i = e.name;
|
|
56981
56991
|
if (!t.modifiersData[i]._skip) {
|
|
56982
|
-
for (var r = n.mainAxis, o = r === void 0 ? !0 : r, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, f = n.rootBoundary, u = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, y = t.options.placement, v = Zr(y), w = v === y, x = l || (w || !p ? [Zp(y)] : Uve(y)), b = [y].concat(x).reduce(function(ne,
|
|
56983
|
-
return ne.concat(Zr(
|
|
56984
|
-
placement:
|
|
56992
|
+
for (var r = n.mainAxis, o = r === void 0 ? !0 : r, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, f = n.rootBoundary, u = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, y = t.options.placement, v = Zr(y), w = v === y, x = l || (w || !p ? [Zp(y)] : Uve(y)), b = [y].concat(x).reduce(function(ne, j) {
|
|
56993
|
+
return ne.concat(Zr(j) === S3 ? Wve(t, {
|
|
56994
|
+
placement: j,
|
|
56985
56995
|
boundary: d,
|
|
56986
56996
|
rootBoundary: f,
|
|
56987
56997
|
padding: c,
|
|
56988
56998
|
flipVariations: p,
|
|
56989
56999
|
allowedAutoPlacements: g
|
|
56990
|
-
}) :
|
|
57000
|
+
}) : j);
|
|
56991
57001
|
}, []), _ = t.rects.reference, k = t.rects.popper, C = /* @__PURE__ */ new Map(), E = !0, S = b[0], A = 0; A < b.length; A++) {
|
|
56992
57002
|
var T = b[A], O = Zr(T), D = Lc(T) === Mc, N = [Si, ar].indexOf(O) >= 0, M = N ? "width" : "height", I = vu(t, {
|
|
56993
57003
|
placement: T,
|
|
@@ -57007,19 +57017,19 @@ function qve(e) {
|
|
|
57007
57017
|
C.set(T, z);
|
|
57008
57018
|
}
|
|
57009
57019
|
if (E)
|
|
57010
|
-
for (var $ = p ? 3 : 1, L = function(
|
|
57020
|
+
for (var $ = p ? 3 : 1, L = function(j) {
|
|
57011
57021
|
var Y = b.find(function(U) {
|
|
57012
57022
|
var V = C.get(U);
|
|
57013
57023
|
if (V)
|
|
57014
|
-
return V.slice(0,
|
|
57024
|
+
return V.slice(0, j).every(function(J) {
|
|
57015
57025
|
return J;
|
|
57016
57026
|
});
|
|
57017
57027
|
});
|
|
57018
57028
|
if (Y)
|
|
57019
57029
|
return S = Y, "break";
|
|
57020
57030
|
}, W = $; W > 0; W--) {
|
|
57021
|
-
var
|
|
57022
|
-
if (
|
|
57031
|
+
var H = L(W);
|
|
57032
|
+
if (H === "break") break;
|
|
57023
57033
|
}
|
|
57024
57034
|
t.placement !== S && (t.modifiersData[i]._skip = !0, t.placement = S, t.reset = !0);
|
|
57025
57035
|
}
|
|
@@ -57136,10 +57146,10 @@ function n0e(e) {
|
|
|
57136
57146
|
};
|
|
57137
57147
|
if (k) {
|
|
57138
57148
|
if (o) {
|
|
57139
|
-
var D, N = b === "y" ? Si : Ci, M = b === "y" ? ar : lr, I = b === "y" ? "height" : "width", R = k[b], F = R + y[N], z = R - y[M], $ = h ? -E[I] / 2 : 0, L = w === Mc ? C[I] : E[I], W = w === Mc ? -E[I] : -C[I],
|
|
57149
|
+
var D, N = b === "y" ? Si : Ci, M = b === "y" ? ar : lr, I = b === "y" ? "height" : "width", R = k[b], F = R + y[N], z = R - y[M], $ = h ? -E[I] / 2 : 0, L = w === Mc ? C[I] : E[I], W = w === Mc ? -E[I] : -C[I], H = t.elements.arrow, ne = h && H ? E3(H) : {
|
|
57140
57150
|
width: 0,
|
|
57141
57151
|
height: 0
|
|
57142
|
-
},
|
|
57152
|
+
}, j = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : p7(), Y = j[N], U = j[M], V = mf(0, C[I], ne[I]), J = x ? C[I] / 2 - $ - V - Y - A.mainAxis : L - V - Y - A.mainAxis, ie = x ? -C[I] / 2 + $ + V + U + A.mainAxis : W + V + U + A.mainAxis, Z = t.elements.arrow && _h(t.elements.arrow), Q = Z ? b === "y" ? Z.clientTop || 0 : Z.clientLeft || 0 : 0, ce = (D = T?.[b]) != null ? D : 0, ye = R + J - ce - Q, be = R + ie - ce, _e = mf(h ? bg(F, ye) : F, R, h ? Fa(z, be) : z);
|
|
57143
57153
|
k[b] = _e, O[b] = _e - R;
|
|
57144
57154
|
}
|
|
57145
57155
|
if (a) {
|
|
@@ -57835,19 +57845,19 @@ function H0e(e, t) {
|
|
|
57835
57845
|
}
|
|
57836
57846
|
}
|
|
57837
57847
|
}
|
|
57838
|
-
function
|
|
57848
|
+
function H() {
|
|
57839
57849
|
l = !0;
|
|
57840
57850
|
}
|
|
57841
57851
|
function ne() {
|
|
57842
57852
|
l = !1;
|
|
57843
57853
|
}
|
|
57844
|
-
function
|
|
57854
|
+
function j() {
|
|
57845
57855
|
var pe = N();
|
|
57846
|
-
pe.addEventListener("mousedown", W, !0), pe.addEventListener("touchend", W, ga), pe.addEventListener("touchstart", ne, ga), pe.addEventListener("touchmove",
|
|
57856
|
+
pe.addEventListener("mousedown", W, !0), pe.addEventListener("touchend", W, ga), pe.addEventListener("touchstart", ne, ga), pe.addEventListener("touchmove", H, ga);
|
|
57847
57857
|
}
|
|
57848
57858
|
function Y() {
|
|
57849
57859
|
var pe = N();
|
|
57850
|
-
pe.removeEventListener("mousedown", W, !0), pe.removeEventListener("touchend", W, ga), pe.removeEventListener("touchstart", ne, ga), pe.removeEventListener("touchmove",
|
|
57860
|
+
pe.removeEventListener("mousedown", W, !0), pe.removeEventListener("touchend", W, ga), pe.removeEventListener("touchstart", ne, ga), pe.removeEventListener("touchmove", H, ga);
|
|
57851
57861
|
}
|
|
57852
57862
|
function U(pe, fe) {
|
|
57853
57863
|
J(pe, function() {
|
|
@@ -58017,7 +58027,7 @@ function H0e(e, t) {
|
|
|
58017
58027
|
return wg(k.querySelectorAll("[data-tippy-root]"));
|
|
58018
58028
|
}
|
|
58019
58029
|
function se(pe) {
|
|
58020
|
-
b.clearDelayTimeouts(), pe && F("onTrigger", [b, pe]),
|
|
58030
|
+
b.clearDelayTimeouts(), pe && F("onTrigger", [b, pe]), j();
|
|
58021
58031
|
var fe = I(!0), me = A(), Ae = me[0], we = me[1];
|
|
58022
58032
|
Gr.isTouch && Ae === "hold" && we && (fe = we), fe ? i = setTimeout(function() {
|
|
58023
58033
|
b.show();
|
|
@@ -58068,7 +58078,7 @@ function H0e(e, t) {
|
|
|
58068
58078
|
process.env.NODE_ENV !== "production" && Co(b.state.isDestroyed, Il("show"));
|
|
58069
58079
|
var pe = b.state.isVisible, fe = b.state.isDestroyed, me = !b.state.isEnabled, Ae = Gr.isTouch && !b.props.touch, we = N0(b.props.duration, 0, Ri.duration);
|
|
58070
58080
|
if (!(pe || fe || me || Ae) && !D().hasAttribute("disabled") && (F("onShow", [b], !1), b.props.onShow(b) !== !1)) {
|
|
58071
|
-
if (b.state.isVisible = !0, O() && (k.style.visibility = "visible"), R(),
|
|
58081
|
+
if (b.state.isVisible = !0, O() && (k.style.visibility = "visible"), R(), j(), b.state.isMounted || (k.style.transition = "none"), O()) {
|
|
58072
58082
|
var De = M(), Je = De.box, ft = De.content;
|
|
58073
58083
|
A0([Je, ft], 0);
|
|
58074
58084
|
}
|
|
@@ -59370,7 +59380,7 @@ const xg = ({
|
|
|
59370
59380
|
if (ie && !Z) {
|
|
59371
59381
|
const Q = x.current?.getBoundingClientRect();
|
|
59372
59382
|
if (Q && a) {
|
|
59373
|
-
const ce = N, ye = Q.left + A, be = Q.bottom + O +
|
|
59383
|
+
const ce = N, ye = Q.left + A, be = Q.bottom + O + j;
|
|
59374
59384
|
z({ left: ye, top: be, width: ce });
|
|
59375
59385
|
}
|
|
59376
59386
|
R({
|
|
@@ -59389,7 +59399,7 @@ const xg = ({
|
|
|
59389
59399
|
]), ae(() => {
|
|
59390
59400
|
l?.(k);
|
|
59391
59401
|
}, [k, l]);
|
|
59392
|
-
const W = I?.alignOffset ?? A,
|
|
59402
|
+
const W = I?.alignOffset ?? A, H = I?.sideOffset ?? O, ne = I?.menuWidth ?? N, j = 0, Y = a && L && b.current && !!F, U = () => {
|
|
59393
59403
|
b.current = !1, C(!1);
|
|
59394
59404
|
}, V = {
|
|
59395
59405
|
onSelect: ({
|
|
@@ -59462,7 +59472,7 @@ const xg = ({
|
|
|
59462
59472
|
{
|
|
59463
59473
|
side: "bottom",
|
|
59464
59474
|
align: "start",
|
|
59465
|
-
sideOffset:
|
|
59475
|
+
sideOffset: H + j,
|
|
59466
59476
|
alignOffset: W,
|
|
59467
59477
|
collisionPadding: 10,
|
|
59468
59478
|
onEscapeKeyDown: J,
|
|
@@ -68654,8 +68664,8 @@ function zL({ pluginKey: e = G2e, editor: t, char: n = "@", allowSpaces: i = !1,
|
|
|
68654
68664
|
// this can be used for building popups without a DOM node
|
|
68655
68665
|
clientRect: $ ? () => {
|
|
68656
68666
|
var L;
|
|
68657
|
-
const { decorationId: W } = (L = this.key) === null || L === void 0 ? void 0 : L.getState(t.state),
|
|
68658
|
-
return
|
|
68667
|
+
const { decorationId: W } = (L = this.key) === null || L === void 0 ? void 0 : L.getState(t.state), H = v.dom.querySelector(`[data-decoration-id="${W}"]`);
|
|
68668
|
+
return H?.getBoundingClientRect() || null;
|
|
68659
68669
|
} : null
|
|
68660
68670
|
}, I && ((_ = g?.onBeforeStart) === null || _ === void 0 || _.call(g, p)), R && ((k = g?.onBeforeUpdate) === null || k === void 0 || k.call(g, p)), (R || I) && (p.items = await d({
|
|
68661
68671
|
editor: t,
|
|
@@ -71817,7 +71827,7 @@ const X3e = ({
|
|
|
71817
71827
|
loading: v = !1,
|
|
71818
71828
|
onTranscribe: w
|
|
71819
71829
|
}, x) {
|
|
71820
|
-
const b = Be(), _ = Go(), k = B(null), C = B(null), E = B(null), S = B(null), [A, T] = X(!1), [O, D] = X(!0), [N, M] = X(!1), [I, R] = X(!1), [F, z] = X(0), [$, L] = X(a?.files || []), [W,
|
|
71830
|
+
const b = Be(), _ = Go(), k = B(null), C = B(null), E = B(null), S = B(null), [A, T] = X(!1), [O, D] = X(!0), [N, M] = X(!1), [I, R] = X(!1), [F, z] = X(0), [$, L] = X(a?.files || []), [W, H] = X(
|
|
71821
71831
|
t?.users || []
|
|
71822
71832
|
);
|
|
71823
71833
|
ae(() => (N ? (document.body.style.overflow = "hidden", R(!0)) : (document.body.style.overflow = "", R(!1)), () => {
|
|
@@ -71843,7 +71853,7 @@ const X3e = ({
|
|
|
71843
71853
|
const le = !se;
|
|
71844
71854
|
return p && p(le), le;
|
|
71845
71855
|
});
|
|
71846
|
-
},
|
|
71856
|
+
}, j = ee(
|
|
71847
71857
|
({ editor: se }) => {
|
|
71848
71858
|
y_e({ editor: se, onChange: l });
|
|
71849
71859
|
},
|
|
@@ -71852,7 +71862,7 @@ const X3e = ({
|
|
|
71852
71862
|
() => u_e({
|
|
71853
71863
|
mentionsConfig: t,
|
|
71854
71864
|
mentionSuggestions: W,
|
|
71855
|
-
setMentionSuggestions:
|
|
71865
|
+
setMentionSuggestions: H,
|
|
71856
71866
|
placeholder: c,
|
|
71857
71867
|
maxCharacters: s,
|
|
71858
71868
|
plainHtmlMode: u
|
|
@@ -71860,7 +71870,7 @@ const X3e = ({
|
|
|
71860
71870
|
[
|
|
71861
71871
|
t,
|
|
71862
71872
|
W,
|
|
71863
|
-
|
|
71873
|
+
H,
|
|
71864
71874
|
c,
|
|
71865
71875
|
s,
|
|
71866
71876
|
u
|
|
@@ -71869,7 +71879,7 @@ const X3e = ({
|
|
|
71869
71879
|
extensions: Y,
|
|
71870
71880
|
content: a?.content || "",
|
|
71871
71881
|
editable: !g,
|
|
71872
|
-
onUpdate:
|
|
71882
|
+
onUpdate: j,
|
|
71873
71883
|
onFocus: () => {
|
|
71874
71884
|
U.current = !0;
|
|
71875
71885
|
},
|
|
@@ -73607,11 +73617,11 @@ function z_e({
|
|
|
73607
73617
|
const A = E.formState.errors.root, { isSubmitting: T, isDirty: O } = E.formState, D = Object.keys(E.formState.errors).filter(($) => $ !== "root").length > 0, N = B(null), M = ee(
|
|
73608
73618
|
async ($) => {
|
|
73609
73619
|
const L = { ...$ };
|
|
73610
|
-
for (const
|
|
73611
|
-
L[
|
|
73620
|
+
for (const H of Object.keys(L))
|
|
73621
|
+
L[H] === null && (L[H] = void 0);
|
|
73612
73622
|
const W = await o(L);
|
|
73613
|
-
W.success ? E.reset($) : (W.errors && Object.entries(W.errors).forEach(([
|
|
73614
|
-
E.setError(
|
|
73623
|
+
W.success ? E.reset($) : (W.errors && Object.entries(W.errors).forEach(([H, ne]) => {
|
|
73624
|
+
E.setError(H, { message: ne });
|
|
73615
73625
|
}), W.rootMessage && E.setError("root", { message: W.rootMessage }));
|
|
73616
73626
|
},
|
|
73617
73627
|
[o, E]
|
|
@@ -73621,8 +73631,8 @@ function z_e({
|
|
|
73621
73631
|
const $ = {
|
|
73622
73632
|
submit: () => new Promise((L, W) => {
|
|
73623
73633
|
E.handleSubmit(
|
|
73624
|
-
async (
|
|
73625
|
-
await M(
|
|
73634
|
+
async (H) => {
|
|
73635
|
+
await M(H), L();
|
|
73626
73636
|
},
|
|
73627
73637
|
() => {
|
|
73628
73638
|
W(new Error("Form validation failed"));
|
|
@@ -73632,20 +73642,20 @@ function z_e({
|
|
|
73632
73642
|
reset: () => E.reset(),
|
|
73633
73643
|
isDirty: () => E.formState.isDirty,
|
|
73634
73644
|
getValues: () => E.getValues(),
|
|
73635
|
-
setValue: (L, W,
|
|
73645
|
+
setValue: (L, W, H) => {
|
|
73636
73646
|
E.setValue(
|
|
73637
73647
|
L,
|
|
73638
73648
|
W,
|
|
73639
73649
|
{
|
|
73640
|
-
shouldValidate:
|
|
73641
|
-
shouldDirty:
|
|
73650
|
+
shouldValidate: H?.shouldValidate ?? !0,
|
|
73651
|
+
shouldDirty: H?.shouldDirty ?? !0
|
|
73642
73652
|
}
|
|
73643
73653
|
);
|
|
73644
73654
|
},
|
|
73645
73655
|
setValues: (L, W) => {
|
|
73646
|
-
for (const [
|
|
73656
|
+
for (const [H, ne] of Object.entries(L))
|
|
73647
73657
|
E.setValue(
|
|
73648
|
-
|
|
73658
|
+
H,
|
|
73649
73659
|
ne,
|
|
73650
73660
|
{
|
|
73651
73661
|
shouldValidate: !1,
|
|
@@ -74312,13 +74322,13 @@ function fF(e) {
|
|
|
74312
74322
|
for (const ze of Ee.section.fields)
|
|
74313
74323
|
ze.type === "field" ? he(ze.field) : ze.type === "row" && ze.fields.forEach(he);
|
|
74314
74324
|
return Ue;
|
|
74315
|
-
}, [z]), W = L.size > 0,
|
|
74316
|
-
|
|
74317
|
-
const [ne,
|
|
74325
|
+
}, [z]), W = L.size > 0, H = B(L);
|
|
74326
|
+
H.current = L;
|
|
74327
|
+
const [ne, j] = X(
|
|
74318
74328
|
$[0]
|
|
74319
74329
|
), Y = B(null), U = ee(
|
|
74320
74330
|
(Ue) => {
|
|
74321
|
-
|
|
74331
|
+
j(Ue);
|
|
74322
74332
|
const he = Y.current, Ee = Ua(i, Ue), ze = document.getElementById(Ee);
|
|
74323
74333
|
ze && he && he.scrollTo({
|
|
74324
74334
|
top: ze.offsetTop - he.offsetTop,
|
|
@@ -74433,7 +74443,7 @@ function fF(e) {
|
|
|
74433
74443
|
if (!Z.formState.isSubmitting) {
|
|
74434
74444
|
if (!C) {
|
|
74435
74445
|
const ze = Ee?.split(".")[0];
|
|
74436
|
-
if (!ze || !
|
|
74446
|
+
if (!ze || !H.current.has(ze))
|
|
74437
74447
|
return;
|
|
74438
74448
|
}
|
|
74439
74449
|
rt.current && clearTimeout(rt.current), rt.current = setTimeout(() => {
|
|
@@ -82304,12 +82314,12 @@ const D5e = (e, t) => {
|
|
|
82304
82314
|
{ type: "paragraph" }
|
|
82305
82315
|
]).run();
|
|
82306
82316
|
},
|
|
82307
|
-
insertTranscript: (L, W,
|
|
82317
|
+
insertTranscript: (L, W, H) => {
|
|
82308
82318
|
D && D.chain().focus().insertContentAt(D.state.doc.content.size, [
|
|
82309
82319
|
{
|
|
82310
82320
|
type: "transcript",
|
|
82311
82321
|
attrs: {
|
|
82312
|
-
data: { title: L, users: W, messages:
|
|
82322
|
+
data: { title: L, users: W, messages: H },
|
|
82313
82323
|
isOpen: !1
|
|
82314
82324
|
}
|
|
82315
82325
|
},
|
|
@@ -82337,12 +82347,12 @@ const D5e = (e, t) => {
|
|
|
82337
82347
|
const L = x.current;
|
|
82338
82348
|
if (!L || !D)
|
|
82339
82349
|
return;
|
|
82340
|
-
const { pos: W, nodeSize:
|
|
82350
|
+
const { pos: W, nodeSize: H } = L, ne = D.state.doc.nodeAt(W);
|
|
82341
82351
|
if (ne && ne.content.size === 0)
|
|
82342
82352
|
D.chain().focus().setTextSelection(W + 1).insertContent("/").run();
|
|
82343
82353
|
else {
|
|
82344
|
-
const
|
|
82345
|
-
D.chain().focus().insertContentAt(
|
|
82354
|
+
const j = W + H;
|
|
82355
|
+
D.chain().focus().insertContentAt(j, { type: "paragraph" }).setTextSelection(j + 1).insertContent("/").run();
|
|
82346
82356
|
}
|
|
82347
82357
|
}, [D]), z = c || d && d.length > 0 || u && u.length > 0 || f && f.length > 0 || h, $ = l || k;
|
|
82348
82358
|
return D ? /* @__PURE__ */ P(
|