@oomol-lab/open-flow 0.1.0-alpha.16 → 0.1.0-alpha.17
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e, o as t, r as n, t as r } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
2
|
import { a as i, c as a, d as o, f as s, i as c, l, n as u, r as d, s as f, t as p, u as m } from "./dist-C46JByB-.js";
|
|
3
3
|
import { a as h, c as g, i as _, n as v, o as y, r as b, s as x, t as S } from "./main-DmjVyuWr.js";
|
|
4
|
-
import { $n as C, $t as w, A as T, B as E, Bn as D, Br as O, Bt as k, C as A, Cr as j, Ct as M, D as N, Dr as P, E as F, Er as I, Et as L, G as
|
|
4
|
+
import { $n as C, $t as w, A as T, B as E, Bn as D, Br as O, Bt as k, C as A, Cr as j, Ct as M, D as N, Dr as P, E as F, Er as I, Et as L, G as ee, Gt as te, H as R, Ht as z, I as ne, It as re, K as ie, Kt as ae, L as oe, Lr as se, Lt as ce, N as le, Nt as ue, O as de, On as fe, Or as pe, Pt as me, Qn as he, Qt as ge, R as _e, Rt as ve, S as ye, Sr as be, T as xe, U as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wt as De, X as Oe, Xn as ke, Y as Ae, Yn as je, Z as Me, Zn as Ne, Zt as Pe, _ as Fe, a as Ie, an as Le, ar as Re, at as ze, b as Be, br as Ve, bt as He, c as Ue, cr as B, ct as We, d as Ge, dr as Ke, dt as qe, en as Je, er as Ye, et as Xe, f as Ze, fr as V, ft as Qe, g as $e, gr as et, h as tt, hr as nt, ir as rt, it, jn as at, k as ot, kt as st, l as ct, lr as lt, mr as ut, mt as dt, n as ft, nn as pt, nr as mt, o as ht, on as gt, or as _t, ot as vt, p as yt, pr as bt, pt as xt, r as St, rn as Ct, rr as wt, rt as Tt, s as Et, t as Dt, tn as Ot, tr as kt, u as At, ur as jt, ut as Mt, v as Nt, vr as Pt, w as Ft, wr as It, x as Lt, xt as Rt, y as zt, yr as Bt, yt as Vt, z as Ht, zn as Ut, zt as Wt } from "./useOpenInteractionType-BmBaSEl4.js";
|
|
5
5
|
import { $ as Gt, $t as Kt, At as qt, Bt as Jt, Ct as Yt, Dt as Xt, E as Zt, Ft as Qt, G as $t, Gt as en, Ht as tn, It as nn, J as rn, K as an, Kt as on, Lt as sn, M as cn, Mt as ln, Nt as un, Ot as dn, P as fn, Pt as pn, Q as mn, Qt as hn, Rt as gn, S as _n, St as vn, Tt as yn, Ut as bn, Vt as xn, W as Sn, Wt as Cn, X as wn, Y as Tn, Yt as En, Z as Dn, _t as On, ct as kn, dt as An, en as jn, et as Mn, ft as Nn, gt as Pn, ht as Fn, it as In, kt as Ln, lt as Rn, mt as zn, nt as Bn, ot as Vn, pt as Hn, q as Un, qt as Wn, r as Gn, rt as Kn, st as qn, tn as Jn, tt as Yn, ut as Xn, vt as Zn, xt as Qn, zt as $n } from "./flowChanges-B-JaKseF.js";
|
|
6
6
|
import { r as er, t as tr } from "./languages-DgJehE1g.js";
|
|
7
7
|
import { $ as nr, $t as rr, A as ir, At as ar, B as or, Bt as sr, C as cr, Cn as lr, Ct as ur, D as dr, Dt as fr, E as pr, Et as mr, F as hr, Ft as gr, G as _r, Gt as vr, H as yr, Ht as br, I as xr, It as Sr, J as Cr, Jt as wr, K as Tr, Kt as Er, L as Dr, Lt as Or, M as kr, Mt as Ar, N as jr, Nt as Mr, O as Nr, Ot as Pr, P as Fr, Pt as Ir, Q as Lr, Qt as Rr, R as zr, Rt as Br, Sn as Vr, St as Hr, T as Ur, Tn as Wr, Tt as Gr, U as Kr, Ut as qr, V as Jr, Vt as Yr, W as Xr, Wt as Zr, X as Qr, Xt as $r, Y as ei, Yt as ti, Z as ni, Zt as ri, _ as ii, _n as ai, _t as oi, a as si, an as ci, at as li, b as ui, bn as di, c as fi, cn as pi, ct as mi, d as hi, dn as gi, dt as _i, en as vi, et as yi, f as bi, fn as xi, ft as Si, g as Ci, gn as wi, gt as Ti, h as Ei, hn as Di, ht as Oi, i as ki, in as Ai, it as ji, j as Mi, jt as Ni, k as Pi, kt as Fi, l as Ii, ln as Li, lt as Ri, m as zi, mn as Bi, mt as Vi, nn as Hi, nt as Ui, o as Wi, on as Gi, ot as Ki, p as qi, pn as Ji, pt as Yi, q as Xi, qt as Zi, r as Qi, rn as $i, rt as ea, s as ta, sn as na, st as ra, t as ia, tn as aa, tt as oa, u as sa, un as ca, ut as la, v as ua, vn as da, vt as fa, w as pa, wn as ma, wt as ha, x as ga, xn as _a, xt as va, y as ya, yn as ba, yt as xa, z as Sa, zt as Ca } from "./flowRunInputEditorStore-BUwR9Vbp.js";
|
|
@@ -64,7 +64,7 @@ var Za = /*#__PURE__*/ H.createContext({
|
|
|
64
64
|
});
|
|
65
65
|
process.env.NODE_ENV !== "production" && (Za.displayName = "FloatingDelayGroupContext");
|
|
66
66
|
function Qa(e) {
|
|
67
|
-
let { children: t, delay: n, timeoutMs: r = 0 } = e, i = H.useRef(n), a = H.useRef(n), o = H.useRef(null), s = H.useRef(null), c =
|
|
67
|
+
let { children: t, delay: n, timeoutMs: r = 0 } = e, i = H.useRef(n), a = H.useRef(n), o = H.useRef(null), s = H.useRef(null), c = te();
|
|
68
68
|
return /*#__PURE__*/ Y(Za.Provider, {
|
|
69
69
|
value: H.useMemo(() => ({
|
|
70
70
|
hasProvider: !0,
|
|
@@ -895,7 +895,7 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
895
895
|
}, I = (e, t, n) => {
|
|
896
896
|
let r = { Ht: t };
|
|
897
897
|
return M(r), t && !n && j(r, i), r;
|
|
898
|
-
}, [L,
|
|
898
|
+
}, [L, ee] = y ? nu(g, N) : [], te = !b && tu(g, P, { ft: !0 }), [R, z] = $l(g, !1, I, {
|
|
899
899
|
ct: m,
|
|
900
900
|
et: m
|
|
901
901
|
}), ne = b && Ao && new Ao(((e) => {
|
|
@@ -908,7 +908,7 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
908
908
|
return [
|
|
909
909
|
() => {
|
|
910
910
|
ne && ne.observe(g);
|
|
911
|
-
let e =
|
|
911
|
+
let e = te && te(), t = L && L(), n = R(), r = O.G(((e) => {
|
|
912
912
|
let [, t] = A();
|
|
913
913
|
j({
|
|
914
914
|
Et: e,
|
|
@@ -936,7 +936,7 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
936
936
|
l = e(), c = t;
|
|
937
937
|
}
|
|
938
938
|
if (S && (j.O(), Ro(x) || Po(x) ? (i = x, a = !1, o = Vl, s = Hl) : Vo(x) ? (i = x.mutation, a = x.resize, o = x.event, s = x.env) : (i = !1, a = !1, o = !1, s = !1)), w) {
|
|
939
|
-
let e =
|
|
939
|
+
let e = z(), t = ee && ee(), n = c && c();
|
|
940
940
|
e && ws(r, I(e[0], e[1], w)), t && ws(r, N(t[0], w)), n && ws(r, F(n[0], w));
|
|
941
941
|
}
|
|
942
942
|
return M(r), r;
|
|
@@ -1067,20 +1067,20 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1067
1067
|
let { Rt: t } = n, r = _c(h)[c] - _c(g)[c], i = 1 / T * e / r;
|
|
1068
1068
|
D(i * t[l]);
|
|
1069
1069
|
}, k = r[i], A = v(), j = C(), M = A[a], N = w(A, j) + M / 2, P = k - j[o] - N, F = m ? 0 : P, I = (e) => {
|
|
1070
|
-
Qo(
|
|
1071
|
-
}, L = m || e,
|
|
1070
|
+
Qo(te), _.releasePointerCapture(e.pointerId);
|
|
1071
|
+
}, L = m || e, ee = p(), te = [
|
|
1072
1072
|
Ec(f, t, I),
|
|
1073
1073
|
Ec(f, "selectstart", ((e) => Oc(e)), { D: !1 }),
|
|
1074
1074
|
Ec(h, t, I),
|
|
1075
1075
|
L && Ec(h, "pointermove", ((e) => O(F + e[i] - k))),
|
|
1076
1076
|
L && (() => {
|
|
1077
1077
|
let e = jc(d);
|
|
1078
|
-
|
|
1078
|
+
ee();
|
|
1079
1079
|
let t = jc(d), n = {
|
|
1080
1080
|
x: t.x - e.x,
|
|
1081
1081
|
y: t.y - e.y
|
|
1082
1082
|
};
|
|
1083
|
-
(xo(n.x) > 3 || xo(n.y) > 3) && (p(), Ac(d, e), x(n), y(
|
|
1083
|
+
(xo(n.x) > 3 || xo(n.y) > 3) && (p(), Ac(d, e), x(n), y(ee));
|
|
1084
1084
|
})
|
|
1085
1085
|
];
|
|
1086
1086
|
if (_.setPointerCapture(r.pointerId), e) O(P);
|
|
@@ -1088,9 +1088,9 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1088
1088
|
let e = Wc(Ll);
|
|
1089
1089
|
if (e) {
|
|
1090
1090
|
let { Vt: t } = n, r = e(D, O, vs(w), P, t[l], S, !!s, ((e) => {
|
|
1091
|
-
e ?
|
|
1091
|
+
e ? ee() : qo(te, ee);
|
|
1092
1092
|
}));
|
|
1093
|
-
qo(
|
|
1093
|
+
qo(te, r), qo(u, vs(r, !0));
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
@@ -1160,11 +1160,11 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1160
1160
|
})));
|
|
1161
1161
|
}, L = (e) => {
|
|
1162
1162
|
g(e) && (s = !0, !n.Kt && l && F(!0));
|
|
1163
|
-
}, R = (e) => {
|
|
1164
|
-
g(e) && (s = !1, !n.Kt && l && F(!1));
|
|
1165
1163
|
}, ee = (e) => {
|
|
1164
|
+
g(e) && (s = !1, !n.Kt && l && F(!1));
|
|
1165
|
+
}, te = (e) => {
|
|
1166
1166
|
A(Tl, e, !0), A(Tl, e, !1);
|
|
1167
|
-
},
|
|
1167
|
+
}, R = [
|
|
1168
1168
|
w,
|
|
1169
1169
|
b,
|
|
1170
1170
|
S,
|
|
@@ -1172,7 +1172,7 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1172
1172
|
() => f(),
|
|
1173
1173
|
Ec(D, "pointerover", L, { A: !0 }),
|
|
1174
1174
|
Ec(D, "pointerenter", L),
|
|
1175
|
-
Ec(D, "pointerleave",
|
|
1175
|
+
Ec(D, "pointerleave", ee),
|
|
1176
1176
|
Ec(D, "pointermove", h(((e) => {
|
|
1177
1177
|
g(e) && c && I();
|
|
1178
1178
|
}))),
|
|
@@ -1181,17 +1181,17 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1181
1181
|
M(), I();
|
|
1182
1182
|
})), o(e), P();
|
|
1183
1183
|
})))
|
|
1184
|
-
],
|
|
1184
|
+
], z = Wc(Il);
|
|
1185
1185
|
return [
|
|
1186
|
-
() => vs(Qo, qo(
|
|
1186
|
+
() => vs(Qo, qo(R, E())),
|
|
1187
1187
|
({ Dt: e, It: t, Zt: n, tn: a }) => {
|
|
1188
|
-
let { nn: o, sn: s, en: m, cn: g } = a || {}, { Ct: _, ft: v } = n || {}, { B: y } = r, { M: b, P: S } = Zl(), { rn: C, j: w } = i, [T, E] = e("showNativeOverlaidScrollbars"), [D, I] = e("scrollbars.theme"), [L,
|
|
1188
|
+
let { nn: o, sn: s, en: m, cn: g } = a || {}, { Ct: _, ft: v } = n || {}, { B: y } = r, { M: b, P: S } = Zl(), { rn: C, j: w } = i, [T, E] = e("showNativeOverlaidScrollbars"), [D, I] = e("scrollbars.theme"), [L, ee] = e("scrollbars.visibility"), [R, ne] = e("scrollbars.autoHide"), [re, ie] = e("scrollbars.autoHideSuspend"), [ae] = e("scrollbars.autoHideDelay"), [oe, se] = e("scrollbars.dragScroll"), [ce, le] = e("scrollbars.clickScroll"), [ue, de] = e("overflow"), fe = v && !t, pe = o || s || g || _ || t, me = m || ee || de, he = T && b.x && b.y, ge = !S && !z, _e = he || ge, ve = (e, t, n) => {
|
|
1189
1189
|
let r = e.includes(fs) && (L === us || L === "auto" && t === fs);
|
|
1190
1190
|
return A(xl, r, n), r;
|
|
1191
1191
|
};
|
|
1192
|
-
if (p = ae, (E || ge) && A(ml, _e), I && (A(d), A(D, !0), d = D), (ie || fe) && (
|
|
1193
|
-
f = Ec(O, fs, h(vs(
|
|
1194
|
-
}))) :
|
|
1192
|
+
if (p = ae, (E || ge) && A(ml, _e), I && (A(d), A(D, !0), d = D), (ie || fe) && (te(!re), fe && re && (w.x || w.y ? (f(), x((() => {
|
|
1193
|
+
f = Ec(O, fs, h(vs(te, !0)), { A: !0 });
|
|
1194
|
+
}))) : te(!0))), ne && (c = R === "move", l = R === "leave", u = R === "never", F(u, !0)), se && A(kl, oe), le && A(Ol, !!ce), me) {
|
|
1195
1195
|
let e = ve(ue.x, C.x, !0), t = ve(ue.y, C.y, !1);
|
|
1196
1196
|
A(Sl, !(e && t));
|
|
1197
1197
|
}
|
|
@@ -1226,15 +1226,15 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1226
1226
|
yt: (e) => Rs(k, el, e),
|
|
1227
1227
|
wt: (e, t) => Ls(k, el, e, t),
|
|
1228
1228
|
St: () => Ls(I, el, al, !0)
|
|
1229
|
-
}, { dt:
|
|
1230
|
-
Ns(
|
|
1229
|
+
}, { dt: ee, vt: te, ln: R, L: z, ht: ne } = L, re = [() => {
|
|
1230
|
+
Ns(te, [Qc, Yc]), Ns(ee, Yc), m && Ns(g, [Yc, Qc]);
|
|
1231
1231
|
}], ie = Ks([
|
|
1232
1232
|
ne,
|
|
1233
|
-
te,
|
|
1234
1233
|
z,
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1234
|
+
R,
|
|
1235
|
+
te,
|
|
1236
|
+
ee
|
|
1237
|
+
].find(((e) => e && !P(e)))), ae = E ? ee : ne || z, oe = vs(Qo, re);
|
|
1238
1238
|
return [
|
|
1239
1239
|
L,
|
|
1240
1240
|
() => {
|
|
@@ -1243,11 +1243,11 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1243
1243
|
}, i = (e) => Ec(e, "focusin focusout focus blur", kc, {
|
|
1244
1244
|
I: !0,
|
|
1245
1245
|
D: !1
|
|
1246
|
-
}), a = "tabindex", o = As(
|
|
1247
|
-
return Ms(
|
|
1248
|
-
let e = Ys(), t = P(
|
|
1249
|
-
Ns(
|
|
1250
|
-
}]), n && !T && (Is(
|
|
1246
|
+
}), a = "tabindex", o = As(z, a), s = i(t);
|
|
1247
|
+
return Ms(te, Qc, T ? "" : $c), Ms(R, cl, ""), Ms(z, el, ""), Ms(ne, ll, ""), T || (Ms(z, a, o || "-1"), m && Ms(g, Zc, "")), Qs(ae, ie), Qs(te, R), Qs(R || te, !T && z), Qs(z, ne), qo(re, [s, () => {
|
|
1248
|
+
let e = Ys(), t = P(z), n = t && e === z ? ee : e, s = i(n);
|
|
1249
|
+
Ns(R, cl), Ns(ne, ll), Ns(z, el), m && Ns(g, Zc), o ? Ms(z, a, o) : Ns(z, a), P(ne) && r(ne), t && r(z), P(R) && r(R), Ic(n), s();
|
|
1250
|
+
}]), n && !T && (Is(z, el, ol), qo(re, vs(Ns, z, el))), Ic(!T && m && t === ee && e.top === e ? z : t), s(), ie = 0, oe;
|
|
1251
1251
|
},
|
|
1252
1252
|
oe
|
|
1253
1253
|
];
|
|
@@ -1377,17 +1377,17 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1377
1377
|
us,
|
|
1378
1378
|
ds,
|
|
1379
1379
|
fs
|
|
1380
|
-
].map(((t) =>
|
|
1381
|
-
u(n), u(Cs(e).map(((t) =>
|
|
1380
|
+
].map(((t) => te(Pl(t), e))), n = t(!0).concat(t()).join(" ");
|
|
1381
|
+
u(n), u(Cs(e).map(((t) => te(e[t], t === "x"))).join(" "), !0);
|
|
1382
1382
|
}, [T, E] = go(_, vs(bc, a)), [D, O] = go(_, vs(yc, a)), [k, A] = go(_), [j] = go(v), [M, N] = go(_), [P] = go(v), [F] = go({
|
|
1383
1383
|
i: (e, t) => ms(e, t, Zo(Ko(Cs(e), Cs(t)))),
|
|
1384
1384
|
o: {}
|
|
1385
1385
|
}), [I, L] = go({
|
|
1386
1386
|
i: (e, t) => gs(e.T, t.T) && gs(e.k, t.k),
|
|
1387
1387
|
o: Mc()
|
|
1388
|
-
}),
|
|
1388
|
+
}), ee = Wc(Il), te = (e, t) => `${t ? tl : nl}${ps(e)}`;
|
|
1389
1389
|
return ({ Dt: o, Zt: s, fn: c, It: l }, { dn: h }) => {
|
|
1390
|
-
let { _t: g, Ht: _, xt: v, Ct:
|
|
1390
|
+
let { _t: g, Ht: _, xt: v, Ct: te, ft: R, Et: z } = s || {}, { X: ne, Y: re, W: ie } = ee && ee.R(e, t, c, n, o) || {}, [ae, oe] = jl(o, n), [se, ce] = o("overflow"), le = Ml(se.x), ue = Ml(se.y), de = g || h || v || te || z || oe, fe = E(l), pe = O(l), me = A(l), he = N(l);
|
|
1391
1391
|
if (oe && f && u(ol, !ae), de) {
|
|
1392
1392
|
Rs(r, Qc, Xc) && y(!0);
|
|
1393
1393
|
let e = re && re(), [t] = fe = T(l), [n] = pe = D(l), i = vc(a), o = p && gc(d()), s = {
|
|
@@ -1402,7 +1402,7 @@ var pl = "os-trinsic-observer", ml = "os-theme-none", hl = "os-scrollbar", gl =
|
|
|
1402
1402
|
let [ge, _e] = he, [ve, ye] = me, [be, xe] = pe, [Se, Ce] = fe, [we] = j({
|
|
1403
1403
|
x: ve.w > 0,
|
|
1404
1404
|
y: ve.h > 0
|
|
1405
|
-
}), Te = le && ue && (we.x || we.y) || le && we.x && !we.y || ue && we.y && !we.x, Ee = h ||
|
|
1405
|
+
}), Te = le && ue && (we.x || we.y) || le && we.x && !we.y || ue && we.y && !we.x, Ee = h || te || z || Ce || xe || _e || ye || ce || oe || de || _ && p, [De] = o("update.flowDirectionStyles"), [Oe, ke] = F(De ? De(a) || {} : b(), l), [Ae, je] = te || R || ke || l ? I(x(Oe, !!De), l) : L(), Me = C(we, se);
|
|
1406
1406
|
y(!1), Ee && (w(Me), Me = Fl(a, we), ie && ne && (ne(Me, be, Se), lc(a, ie(Me))));
|
|
1407
1407
|
let [Ne, Pe] = P(Me);
|
|
1408
1408
|
return Ls(r, Qc, Xc, Te), Ls(i, cl, Xc, Te), ws(t, {
|
|
@@ -2638,7 +2638,7 @@ var xd = function(e) {
|
|
|
2638
2638
|
return e.index = "data-index", e.activationDirection = "data-activation-direction", e.orientation = "data-orientation", e.hidden = "data-hidden", e[e.startingStyle = Te.startingStyle] = "startingStyle", e[e.endingStyle = Te.endingStyle] = "endingStyle", e;
|
|
2639
2639
|
}({}), Sd = {
|
|
2640
2640
|
...md,
|
|
2641
|
-
...
|
|
2641
|
+
...z
|
|
2642
2642
|
}, Cd = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
2643
2643
|
let { className: n, value: r, render: i, keepMounted: a = !1, style: o, ...s } = e, { value: c, getTabIdByPanelValue: l, orientation: u, tabActivationDirection: d, registerMountedTabPanel: f, unregisterMountedTabPanel: p } = fd(), m = he(), h = H.useMemo(() => ({
|
|
2644
2644
|
id: m,
|
|
@@ -3301,7 +3301,7 @@ function Yd({ ariaLabel: e, disabled: t, errorLabel: n, loadingLabel: r, locatio
|
|
|
3301
3301
|
let t = u.current, n, r, i, a = !1;
|
|
3302
3302
|
y(!1), x(!0);
|
|
3303
3303
|
let s = import("./typeScriptSession-mPCiA9sV.js").then(({ loadTypeScriptExtension: e }) => e(c, _.current)).catch(() => void 0);
|
|
3304
|
-
return Promise.all([import("./esm-
|
|
3304
|
+
return Promise.all([import("./esm-BvLgIUt2.js"), Jd(c)]).then(([{ githubDark: n, githubLight: r }, l]) => {
|
|
3305
3305
|
if (i = l, a) {
|
|
3306
3306
|
i(), i = void 0;
|
|
3307
3307
|
return;
|
|
@@ -10355,30 +10355,30 @@ function Ow(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i,
|
|
|
10355
10355
|
if (!j || !A) return;
|
|
10356
10356
|
let N = ww(i, A, r, c, t);
|
|
10357
10357
|
if (!N) return;
|
|
10358
|
-
let P = TC(e, j), F = !1, I = null, L = !1,
|
|
10359
|
-
function
|
|
10358
|
+
let P = TC(e, j), F = !1, I = null, L = !1, ee = null;
|
|
10359
|
+
function te() {
|
|
10360
10360
|
if (!u || !j) return;
|
|
10361
10361
|
let [e, t] = KS(P, j, S);
|
|
10362
10362
|
f({
|
|
10363
10363
|
x: e,
|
|
10364
10364
|
y: t
|
|
10365
|
-
}), E = requestAnimationFrame(
|
|
10365
|
+
}), E = requestAnimationFrame(te);
|
|
10366
10366
|
}
|
|
10367
|
-
let
|
|
10367
|
+
let R = {
|
|
10368
10368
|
...N,
|
|
10369
10369
|
nodeId: i,
|
|
10370
10370
|
type: A,
|
|
10371
10371
|
position: N.position
|
|
10372
|
-
},
|
|
10372
|
+
}, z = c.get(i), ne = {
|
|
10373
10373
|
inProgress: !0,
|
|
10374
10374
|
isValid: null,
|
|
10375
|
-
from: qC(
|
|
10376
|
-
fromHandle:
|
|
10377
|
-
fromPosition:
|
|
10378
|
-
fromNode:
|
|
10375
|
+
from: qC(z, R, DS.Left, !0),
|
|
10376
|
+
fromHandle: R,
|
|
10377
|
+
fromPosition: R.position,
|
|
10378
|
+
fromNode: z,
|
|
10379
10379
|
to: P,
|
|
10380
10380
|
toHandle: null,
|
|
10381
|
-
toPosition: OS[
|
|
10381
|
+
toPosition: OS[R.position],
|
|
10382
10382
|
toNode: null,
|
|
10383
10383
|
pointer: P
|
|
10384
10384
|
};
|
|
@@ -10396,12 +10396,12 @@ function Ow(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i,
|
|
|
10396
10396
|
if (!(r * r + i * i > C * C)) return;
|
|
10397
10397
|
re();
|
|
10398
10398
|
}
|
|
10399
|
-
if (!x() || !
|
|
10399
|
+
if (!x() || !R) {
|
|
10400
10400
|
ae(e);
|
|
10401
10401
|
return;
|
|
10402
10402
|
}
|
|
10403
10403
|
let a = b();
|
|
10404
|
-
P = TC(e, j), D = Cw(aC(P, a, !1, [1, 1]), n, c,
|
|
10404
|
+
P = TC(e, j), D = Cw(aC(P, a, !1, [1, 1]), n, c, R), F ||= (te(), !0);
|
|
10405
10405
|
let s = kw(e, {
|
|
10406
10406
|
handle: D,
|
|
10407
10407
|
connectionMode: t,
|
|
@@ -10414,8 +10414,8 @@ function Ow(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i,
|
|
|
10414
10414
|
flowId: d,
|
|
10415
10415
|
nodeLookup: c
|
|
10416
10416
|
});
|
|
10417
|
-
|
|
10418
|
-
let u = c.get(i), f = u ? qC(u,
|
|
10417
|
+
ee = s.handleDomNode, I = s.connection, L = Ew(!!D, s.isValid);
|
|
10418
|
+
let u = c.get(i), f = u ? qC(u, R, DS.Left, !0) : ne.from, p = {
|
|
10419
10419
|
...ne,
|
|
10420
10420
|
from: f,
|
|
10421
10421
|
isValid: L,
|
|
@@ -10424,7 +10424,7 @@ function Ow(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i,
|
|
|
10424
10424
|
y: s.toHandle.y
|
|
10425
10425
|
}, a) : P,
|
|
10426
10426
|
toHandle: s.toHandle,
|
|
10427
|
-
toPosition: L && s.toHandle ? s.toHandle.position : OS[
|
|
10427
|
+
toPosition: L && s.toHandle ? s.toHandle.position : OS[R.position],
|
|
10428
10428
|
toNode: s.toHandle ? c.get(s.toHandle.nodeId) : null,
|
|
10429
10429
|
pointer: P
|
|
10430
10430
|
};
|
|
@@ -10433,14 +10433,14 @@ function Ow(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i,
|
|
|
10433
10433
|
function ae(e) {
|
|
10434
10434
|
if (!("touches" in e && e.touches.length > 0)) {
|
|
10435
10435
|
if (M) {
|
|
10436
|
-
(D ||
|
|
10436
|
+
(D || ee) && I && L && h?.(I);
|
|
10437
10437
|
let { inProgress: t, ...n } = ne, r = {
|
|
10438
10438
|
...n,
|
|
10439
10439
|
toPosition: ne.toHandle ? ne.toPosition : null
|
|
10440
10440
|
};
|
|
10441
10441
|
g?.(e, r), a && v?.(e, r);
|
|
10442
10442
|
}
|
|
10443
|
-
p(), cancelAnimationFrame(E), F = !1, L = !1, I = null,
|
|
10443
|
+
p(), cancelAnimationFrame(E), F = !1, L = !1, I = null, ee = null, T.removeEventListener("mousemove", ie), T.removeEventListener("mouseup", ae), T.removeEventListener("touchmove", ie), T.removeEventListener("touchend", ae);
|
|
10444
10444
|
}
|
|
10445
10445
|
}
|
|
10446
10446
|
T.addEventListener("mousemove", ie), T.addEventListener("mouseup", ae), T.addEventListener("touchmove", ie), T.addEventListener("touchend", ae);
|
|
@@ -11772,7 +11772,7 @@ function DE({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = CS.Full
|
|
|
11772
11772
|
nodesSelectionActive: !1
|
|
11773
11773
|
});
|
|
11774
11774
|
}
|
|
11775
|
-
function
|
|
11775
|
+
function ee() {
|
|
11776
11776
|
if (!i || !T.current) return;
|
|
11777
11777
|
let [e, t] = KS(A.current, T.current, S);
|
|
11778
11778
|
x({
|
|
@@ -11780,18 +11780,18 @@ function DE({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = CS.Full
|
|
|
11780
11780
|
y: t
|
|
11781
11781
|
}).then((e) => {
|
|
11782
11782
|
if (!k.current || !e) {
|
|
11783
|
-
g.current = requestAnimationFrame(
|
|
11783
|
+
g.current = requestAnimationFrame(ee);
|
|
11784
11784
|
return;
|
|
11785
11785
|
}
|
|
11786
11786
|
let { x: t, y: n } = A.current;
|
|
11787
|
-
L(t, n), g.current = requestAnimationFrame(
|
|
11787
|
+
L(t, n), g.current = requestAnimationFrame(ee);
|
|
11788
11788
|
});
|
|
11789
11789
|
}
|
|
11790
|
-
let
|
|
11790
|
+
let te = () => {
|
|
11791
11791
|
cancelAnimationFrame(g.current), g.current = 0, j.current = !1;
|
|
11792
11792
|
};
|
|
11793
|
-
W(() => () =>
|
|
11794
|
-
let
|
|
11793
|
+
W(() => () => te(), []);
|
|
11794
|
+
let R = (e) => {
|
|
11795
11795
|
let { userSelectionRect: n, transform: r, resetSelectedElements: i } = _.getState();
|
|
11796
11796
|
if (!T.current || !n) return;
|
|
11797
11797
|
let { x: o, y: c } = TC(e.nativeEvent, T.current);
|
|
@@ -11808,8 +11808,8 @@ function DE({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = CS.Full
|
|
|
11808
11808
|
if (Math.hypot(o - l.x, c - l.y) <= n) return;
|
|
11809
11809
|
i(), s?.(e);
|
|
11810
11810
|
}
|
|
11811
|
-
k.current = !0, j.current ||= (
|
|
11812
|
-
},
|
|
11811
|
+
k.current = !0, j.current ||= (ee(), !0), L(o, c);
|
|
11812
|
+
}, z = (e) => {
|
|
11813
11813
|
if (!C) {
|
|
11814
11814
|
e.target === w.current && _.getState().connection.inProgress && (O.current = !0);
|
|
11815
11815
|
return;
|
|
@@ -11817,9 +11817,9 @@ function DE({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = CS.Full
|
|
|
11817
11817
|
e.button === 0 && (e.target?.releasePointerCapture?.(e.pointerId), !v && e.target === w.current && _.getState().userSelectionRect && M?.(e), _.setState({
|
|
11818
11818
|
userSelectionActive: !1,
|
|
11819
11819
|
userSelectionRect: null
|
|
11820
|
-
}), k.current && (c?.(e), _.setState({ nodesSelectionActive: E.current.size > 0 })),
|
|
11820
|
+
}), k.current && (c?.(e), _.setState({ nodesSelectionActive: E.current.size > 0 })), te());
|
|
11821
11821
|
}, ne = (e) => {
|
|
11822
|
-
e.target?.releasePointerCapture?.(e.pointerId),
|
|
11822
|
+
e.target?.releasePointerCapture?.(e.pointerId), te();
|
|
11823
11823
|
}, re = r === !0 || Array.isArray(r) && r.includes(0);
|
|
11824
11824
|
return X("div", {
|
|
11825
11825
|
className: Pg(["react-flow__pane", {
|
|
@@ -11831,8 +11831,8 @@ function DE({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = CS.Full
|
|
|
11831
11831
|
onContextMenu: TE(N, w),
|
|
11832
11832
|
onWheel: TE(P, w),
|
|
11833
11833
|
onPointerEnter: C ? void 0 : f,
|
|
11834
|
-
onPointerMove: C ?
|
|
11835
|
-
onPointerUp:
|
|
11834
|
+
onPointerMove: C ? R : p,
|
|
11835
|
+
onPointerUp: z,
|
|
11836
11836
|
onPointerCancel: C ? ne : void 0,
|
|
11837
11837
|
onPointerDownCapture: C ? I : void 0,
|
|
11838
11838
|
onClickCapture: C ? F : void 0,
|
|
@@ -12191,7 +12191,7 @@ var QE = typeof window < "u" ? window : void 0, $E = (e) => ({
|
|
|
12191
12191
|
userSelectionActive: e.userSelectionActive
|
|
12192
12192
|
});
|
|
12193
12193
|
function eD({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: a, onPaneScroll: o, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: h, zoomActivationKeyCode: g, elementsSelectable: _, zoomOnScroll: v, zoomOnPinch: y, panOnScroll: b, panOnScrollSpeed: x, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: w, autoPanOnSelection: T, defaultViewport: E, translateExtent: D, minZoom: O, maxZoom: k, preventScrolling: A, onSelectionContextMenu: j, noWheelClassName: M, noPanClassName: N, disableKeyboardA11y: P, onViewportChange: F, isControlledViewport: I }) {
|
|
12194
|
-
let { nodesSelectionActive: L, userSelectionActive:
|
|
12194
|
+
let { nodesSelectionActive: L, userSelectionActive: ee } = gT($E, fT), te = GT(l, { target: QE }), R = GT(h, { target: QE }), z = R || w, ne = R || b, re = u && z !== !0, ie = te || ee || re;
|
|
12195
12195
|
return vE({
|
|
12196
12196
|
deleteKeyCode: c,
|
|
12197
12197
|
multiSelectionKeyCode: m
|
|
@@ -12204,7 +12204,7 @@ function eD({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove:
|
|
|
12204
12204
|
panOnScrollSpeed: x,
|
|
12205
12205
|
panOnScrollMode: S,
|
|
12206
12206
|
zoomOnDoubleClick: C,
|
|
12207
|
-
panOnDrag: !
|
|
12207
|
+
panOnDrag: !te && z,
|
|
12208
12208
|
defaultViewport: E,
|
|
12209
12209
|
translateExtent: D,
|
|
12210
12210
|
minZoom: O,
|
|
@@ -12226,11 +12226,11 @@ function eD({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove:
|
|
|
12226
12226
|
onPaneMouseLeave: i,
|
|
12227
12227
|
onPaneContextMenu: a,
|
|
12228
12228
|
onPaneScroll: o,
|
|
12229
|
-
panOnDrag:
|
|
12229
|
+
panOnDrag: z,
|
|
12230
12230
|
autoPanOnSelection: T,
|
|
12231
12231
|
isSelecting: !!ie,
|
|
12232
12232
|
selectionMode: d,
|
|
12233
|
-
selectionKeyPressed:
|
|
12233
|
+
selectionKeyPressed: te,
|
|
12234
12234
|
paneClickDistance: s,
|
|
12235
12235
|
selectionOnDrag: re,
|
|
12236
12236
|
children: [e, L && Y(ZE, {
|
|
@@ -12315,7 +12315,7 @@ function sD({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
12315
12315
|
nodeClickDistance: _
|
|
12316
12316
|
}), M = jE();
|
|
12317
12317
|
if (y.hidden) return null;
|
|
12318
|
-
let N = pC(y), P = YE(y), F = T || w || t || n || r || i, I = n ? (e) => n(e, { ...b.userNode }) : void 0, L = r ? (e) => r(e, { ...b.userNode }) : void 0,
|
|
12318
|
+
let N = pC(y), P = YE(y), F = T || w || t || n || r || i, I = n ? (e) => n(e, { ...b.userNode }) : void 0, L = r ? (e) => r(e, { ...b.userNode }) : void 0, ee = i ? (e) => i(e, { ...b.userNode }) : void 0, te = a ? (e) => a(e, { ...b.userNode }) : void 0, R = o ? (e) => o(e, { ...b.userNode }) : void 0, z = (n) => {
|
|
12319
12319
|
let { selectNodesOnDrag: r, nodeDragThreshold: i } = O.getState();
|
|
12320
12320
|
T && (!r || !w || i > 0) && OE({
|
|
12321
12321
|
id: e,
|
|
@@ -12382,10 +12382,10 @@ function sD({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
12382
12382
|
"data-testid": `rf__node-${e}`,
|
|
12383
12383
|
onMouseEnter: I,
|
|
12384
12384
|
onMouseMove: L,
|
|
12385
|
-
onMouseLeave:
|
|
12386
|
-
onContextMenu:
|
|
12387
|
-
onClick:
|
|
12388
|
-
onDoubleClick:
|
|
12385
|
+
onMouseLeave: ee,
|
|
12386
|
+
onContextMenu: te,
|
|
12387
|
+
onClick: z,
|
|
12388
|
+
onDoubleClick: R,
|
|
12389
12389
|
onKeyDown: D ? ne : void 0,
|
|
12390
12390
|
tabIndex: D ? 0 : void 0,
|
|
12391
12391
|
onFocus: D ? re : void 0,
|
|
@@ -12897,7 +12897,7 @@ function qD({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
12897
12897
|
} : y;
|
|
12898
12898
|
let x = y.type || "default", S = h?.[x] || BD[x];
|
|
12899
12899
|
S === void 0 && (_?.("011", _S.error011(x)), x = "default", S = h?.default || BD.default);
|
|
12900
|
-
let C = !!(y.focusable || t && y.focusable === void 0), w = d !== void 0 && (y.reconnectable || n && y.reconnectable === void 0), T = !!(y.selectable || r && y.selectable === void 0), E = K(null), [D, O] = q(!1), [k, A] = q(!1), j = _T(), { zIndex: M = y.zIndex, sourceX: N, sourceY: P, targetX: F, targetY: I, sourcePosition: L, targetPosition:
|
|
12900
|
+
let C = !!(y.focusable || t && y.focusable === void 0), w = d !== void 0 && (y.reconnectable || n && y.reconnectable === void 0), T = !!(y.selectable || r && y.selectable === void 0), E = K(null), [D, O] = q(!1), [k, A] = q(!1), j = _T(), { zIndex: M = y.zIndex, sourceX: N, sourceY: P, targetX: F, targetY: I, sourcePosition: L, targetPosition: ee } = gT(U((t) => {
|
|
12901
12901
|
let n = t.nodeLookup.get(y.source), r = t.nodeLookup.get(y.target);
|
|
12902
12902
|
if (!n || !r) return VD;
|
|
12903
12903
|
let i = GC({
|
|
@@ -12927,9 +12927,9 @@ function qD({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
12927
12927
|
y.targetHandle,
|
|
12928
12928
|
y.selected,
|
|
12929
12929
|
y.zIndex
|
|
12930
|
-
]), fT),
|
|
12930
|
+
]), fT), te = G(() => y.markerStart ? `url('#${YC(y.markerStart, m)}')` : void 0, [y.markerStart, m]), R = G(() => y.markerEnd ? `url('#${YC(y.markerEnd, m)}')` : void 0, [y.markerEnd, m]);
|
|
12931
12931
|
if (y.hidden || N === null || P === null || F === null || I === null) return null;
|
|
12932
|
-
let
|
|
12932
|
+
let z = (t) => {
|
|
12933
12933
|
let { addSelectedEdges: n, unselectNodesAndEdges: r, multiSelectionActive: a } = j.getState();
|
|
12934
12934
|
T && (j.setState({ nodesSelectionActive: !1 }), y.selected && a ? (r({
|
|
12935
12935
|
nodes: [],
|
|
@@ -12962,7 +12962,7 @@ function qD({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
12962
12962
|
selectable: T
|
|
12963
12963
|
}
|
|
12964
12964
|
]),
|
|
12965
|
-
onClick:
|
|
12965
|
+
onClick: z,
|
|
12966
12966
|
onDoubleClick: ne,
|
|
12967
12967
|
onContextMenu: re,
|
|
12968
12968
|
onMouseEnter: ie,
|
|
@@ -13003,13 +13003,13 @@ function qD({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
13003
13003
|
targetX: F,
|
|
13004
13004
|
targetY: I,
|
|
13005
13005
|
sourcePosition: L,
|
|
13006
|
-
targetPosition:
|
|
13006
|
+
targetPosition: ee,
|
|
13007
13007
|
data: y.data,
|
|
13008
13008
|
style: y.style,
|
|
13009
13009
|
sourceHandleId: y.sourceHandle,
|
|
13010
13010
|
targetHandleId: y.targetHandle,
|
|
13011
|
-
markerStart:
|
|
13012
|
-
markerEnd:
|
|
13011
|
+
markerStart: te,
|
|
13012
|
+
markerEnd: R,
|
|
13013
13013
|
pathOptions: "pathOptions" in y ? y.pathOptions : void 0,
|
|
13014
13014
|
interactionWidth: y.interactionWidth
|
|
13015
13015
|
}), w && Y(KD, {
|
|
@@ -13024,7 +13024,7 @@ function qD({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
13024
13024
|
targetX: F,
|
|
13025
13025
|
targetY: I,
|
|
13026
13026
|
sourcePosition: L,
|
|
13027
|
-
targetPosition:
|
|
13027
|
+
targetPosition: ee,
|
|
13028
13028
|
setUpdateHover: O,
|
|
13029
13029
|
setReconnecting: A
|
|
13030
13030
|
})]
|
|
@@ -13215,9 +13215,9 @@ function dO() {
|
|
|
13215
13215
|
}
|
|
13216
13216
|
}, []);
|
|
13217
13217
|
}
|
|
13218
|
-
function fO({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: g, connectionLineContainerStyle: _, selectionKeyCode: v, selectionOnDrag: y, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: w, onlyRenderVisibleElements: T, elementsSelectable: E, defaultViewport: D, translateExtent: O, minZoom: k, maxZoom: A, preventScrolling: j, defaultMarkerColor: M, zoomOnScroll: N, zoomOnPinch: P, panOnScroll: F, panOnScrollSpeed: I, panOnScrollMode: L, zoomOnDoubleClick:
|
|
13218
|
+
function fO({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: g, connectionLineContainerStyle: _, selectionKeyCode: v, selectionOnDrag: y, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: w, onlyRenderVisibleElements: T, elementsSelectable: E, defaultViewport: D, translateExtent: O, minZoom: k, maxZoom: A, preventScrolling: j, defaultMarkerColor: M, zoomOnScroll: N, zoomOnPinch: P, panOnScroll: F, panOnScrollSpeed: I, panOnScrollMode: L, zoomOnDoubleClick: ee, panOnDrag: te, autoPanOnSelection: R, onPaneClick: z, onPaneMouseEnter: ne, onPaneMouseMove: re, onPaneMouseLeave: ie, onPaneScroll: ae, onPaneContextMenu: oe, paneClickDistance: se, nodeClickDistance: ce, onEdgeContextMenu: le, onEdgeMouseEnter: ue, onEdgeMouseMove: de, onEdgeMouseLeave: fe, reconnectRadius: pe, onReconnect: me, onReconnectStart: he, onReconnectEnd: ge, noDragClassName: _e, noWheelClassName: ve, noPanClassName: ye, disableKeyboardA11y: be, nodeExtent: xe, rfId: Se, viewport: Ce, onViewportChange: we, nodesDraggable: Te }) {
|
|
13219
13219
|
return uO(e), uO(t), dO(), eO(n), nO(Ce), Y(tD, {
|
|
13220
|
-
onPaneClick:
|
|
13220
|
+
onPaneClick: z,
|
|
13221
13221
|
onPaneMouseEnter: ne,
|
|
13222
13222
|
onPaneMouseMove: re,
|
|
13223
13223
|
onPaneMouseLeave: ie,
|
|
@@ -13236,12 +13236,12 @@ function fO({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick
|
|
|
13236
13236
|
elementsSelectable: E,
|
|
13237
13237
|
zoomOnScroll: N,
|
|
13238
13238
|
zoomOnPinch: P,
|
|
13239
|
-
zoomOnDoubleClick:
|
|
13239
|
+
zoomOnDoubleClick: ee,
|
|
13240
13240
|
panOnScroll: F,
|
|
13241
13241
|
panOnScrollSpeed: I,
|
|
13242
13242
|
panOnScrollMode: L,
|
|
13243
|
-
panOnDrag:
|
|
13244
|
-
autoPanOnSelection:
|
|
13243
|
+
panOnDrag: te,
|
|
13244
|
+
autoPanOnSelection: R,
|
|
13245
13245
|
defaultViewport: D,
|
|
13246
13246
|
translateExtent: O,
|
|
13247
13247
|
minZoom: k,
|
|
@@ -13638,7 +13638,7 @@ var yO = {
|
|
|
13638
13638
|
position: "relative",
|
|
13639
13639
|
zIndex: 0
|
|
13640
13640
|
};
|
|
13641
|
-
function bO({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: a, edgeTypes: o, onNodeClick: s, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: d, onMoveEnd: f, onConnect: p, onConnectStart: m, onConnectEnd: h, onClickConnectStart: g, onClickConnectEnd: _, onNodeMouseEnter: v, onNodeMouseMove: y, onNodeMouseLeave: b, onNodeContextMenu: x, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: w, onNodeDragStop: T, onNodesDelete: E, onEdgesDelete: D, onDelete: O, onSelectionChange: k, onSelectionDragStart: A, onSelectionDrag: j, onSelectionDragStop: M, onSelectionContextMenu: N, onSelectionStart: P, onSelectionEnd: F, onBeforeDelete: I, connectionMode: L, connectionLineType:
|
|
13641
|
+
function bO({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: a, edgeTypes: o, onNodeClick: s, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: d, onMoveEnd: f, onConnect: p, onConnectStart: m, onConnectEnd: h, onClickConnectStart: g, onClickConnectEnd: _, onNodeMouseEnter: v, onNodeMouseMove: y, onNodeMouseLeave: b, onNodeContextMenu: x, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: w, onNodeDragStop: T, onNodesDelete: E, onEdgesDelete: D, onDelete: O, onSelectionChange: k, onSelectionDragStart: A, onSelectionDrag: j, onSelectionDragStop: M, onSelectionContextMenu: N, onSelectionStart: P, onSelectionEnd: F, onBeforeDelete: I, connectionMode: L, connectionLineType: ee = TS.Bezier, connectionLineStyle: te, connectionLineComponent: R, connectionLineContainerStyle: z, deleteKeyCode: ne = "Backspace", selectionKeyCode: re = "Shift", selectionOnDrag: ie = !1, selectionMode: ae = CS.Full, panActivationKeyCode: oe = "Space", multiSelectionKeyCode: se = dC() ? "Meta" : "Control", zoomActivationKeyCode: ce = dC() ? "Meta" : "Control", snapToGrid: le, snapGrid: ue, onlyRenderVisibleElements: de = !1, selectNodesOnDrag: fe, nodesDraggable: pe, autoPanOnNodeFocus: me, nodesConnectable: he, nodesFocusable: ge, nodeOrigin: _e = IT, edgesFocusable: ve, edgesReconnectable: ye, elementsSelectable: be = !0, defaultViewport: xe = LT, minZoom: Se = .5, maxZoom: Ce = 2, translateExtent: we = vS, preventScrolling: Te = !0, nodeExtent: Ee, defaultMarkerColor: De = "#b1b1b7", zoomOnScroll: Oe = !0, zoomOnPinch: ke = !0, panOnScroll: Ae = !1, panOnScrollSpeed: je = .5, panOnScrollMode: Me = SS.Free, zoomOnDoubleClick: Ne = !0, panOnDrag: Pe = !0, onPaneClick: Fe, onPaneMouseEnter: Ie, onPaneMouseMove: Le, onPaneMouseLeave: Re, onPaneScroll: ze, onPaneContextMenu: Be, paneClickDistance: Ve = 1, nodeClickDistance: He = 0, children: Ue, onReconnect: B, onReconnectStart: We, onReconnectEnd: Ge, onEdgeContextMenu: Ke, onEdgeDoubleClick: qe, onEdgeMouseEnter: Je, onEdgeMouseMove: Ye, onEdgeMouseLeave: Xe, reconnectRadius: Ze = 10, onNodesChange: V, onEdgesChange: Qe, noDragClassName: $e = "nodrag", noWheelClassName: et = "nowheel", noPanClassName: tt = "nopan", fitView: nt, fitViewOptions: rt, connectOnClick: it, attributionPosition: at, proOptions: ot, defaultEdgeOptions: st, elevateNodesOnSelect: ct = !0, elevateEdgesOnSelect: lt = !1, disableKeyboardA11y: ut = !1, autoPanOnConnect: dt, autoPanOnNodeDrag: ft, autoPanOnSelection: pt = !0, autoPanSpeed: mt, connectionRadius: ht, isValidConnection: gt, onError: _t, style: vt, id: yt, nodeDragThreshold: bt, connectionDragThreshold: xt, viewport: St, onViewportChange: Ct, width: wt, height: Tt, colorMode: Et = "light", debug: Dt, onScroll: Ot, ariaLabelConfig: kt, zIndexMode: At = "basic", ...jt }, Mt) {
|
|
13642
13642
|
let Nt = yt || "1", Pt = UT(Et), Ft = U((e) => {
|
|
13643
13643
|
e.currentTarget.scrollTo({
|
|
13644
13644
|
top: 0,
|
|
@@ -13747,10 +13747,10 @@ function bO({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
|
|
|
13747
13747
|
onNodeDoubleClick: S,
|
|
13748
13748
|
nodeTypes: a,
|
|
13749
13749
|
edgeTypes: o,
|
|
13750
|
-
connectionLineType:
|
|
13751
|
-
connectionLineStyle:
|
|
13752
|
-
connectionLineComponent:
|
|
13753
|
-
connectionLineContainerStyle:
|
|
13750
|
+
connectionLineType: ee,
|
|
13751
|
+
connectionLineStyle: te,
|
|
13752
|
+
connectionLineComponent: R,
|
|
13753
|
+
connectionLineContainerStyle: z,
|
|
13754
13754
|
selectionKeyCode: re,
|
|
13755
13755
|
selectionOnDrag: ie,
|
|
13756
13756
|
selectionMode: ae,
|
|
@@ -14123,7 +14123,7 @@ var ZO = Na(XO), QO = Na(YO), $O = 200, ek = 150, tk = (e) => !e.hidden, nk = (e
|
|
|
14123
14123
|
};
|
|
14124
14124
|
}, rk = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, ik = (e, t) => rk(e.viewBB, t.viewBB) && rk(e.boundingRect, t.boundingRect) && e.rfId === t.rfId && e.panZoom === t.panZoom && e.translateExtent === t.translateExtent && e.flowWidth === t.flowWidth && e.flowHeight === t.flowHeight && e.ariaLabelConfig === t.ariaLabelConfig, ak = "react-flow__minimap-desc";
|
|
14125
14125
|
function ok({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClassName: i = "", nodeBorderRadius: a = 5, nodeStrokeWidth: o, nodeComponent: s, bgColor: c, maskColor: l, maskStrokeColor: u, maskStrokeWidth: d, position: f = "bottom-right", onClick: p, onNodeClick: m, pannable: h = !1, zoomable: g = !1, ariaLabel: _, inversePan: v, zoomStep: y = 1, offsetScale: b = 5 }) {
|
|
14126
|
-
let x = _T(), S = K(null), { boundingRect: C, viewBB: w, rfId: T, panZoom: E, translateExtent: D, flowWidth: O, flowHeight: k, ariaLabelConfig: A } = gT(nk, ik), j = e?.width ?? $O, M = e?.height ?? ek, N = C.width / j, P = C.height / M, F = Math.max(N, P), I = F * j, L = F * M,
|
|
14126
|
+
let x = _T(), S = K(null), { boundingRect: C, viewBB: w, rfId: T, panZoom: E, translateExtent: D, flowWidth: O, flowHeight: k, ariaLabelConfig: A } = gT(nk, ik), j = e?.width ?? $O, M = e?.height ?? ek, N = C.width / j, P = C.height / M, F = Math.max(N, P), I = F * j, L = F * M, ee = b * F, te = C.x - (I - C.width) / 2 - ee, R = C.y - (L - C.height) / 2 - ee, z = I + ee * 2, ne = L + ee * 2, re = `${ak}-${T}`, ie = K(0), ae = K();
|
|
14127
14127
|
ie.current = F, W(() => {
|
|
14128
14128
|
if (S.current && E) return ae.current = jw({
|
|
14129
14129
|
domNode: S.current,
|
|
@@ -14179,7 +14179,7 @@ function ok({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClas
|
|
|
14179
14179
|
children: X("svg", {
|
|
14180
14180
|
width: j,
|
|
14181
14181
|
height: M,
|
|
14182
|
-
viewBox: `${
|
|
14182
|
+
viewBox: `${te} ${R} ${z} ${ne}`,
|
|
14183
14183
|
className: "react-flow__minimap-svg",
|
|
14184
14184
|
role: "img",
|
|
14185
14185
|
"aria-labelledby": re,
|
|
@@ -14201,7 +14201,7 @@ function ok({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClas
|
|
|
14201
14201
|
}),
|
|
14202
14202
|
Y("path", {
|
|
14203
14203
|
className: "react-flow__minimap-mask",
|
|
14204
|
-
d: `M${
|
|
14204
|
+
d: `M${te - ee},${R - ee}h${z + ee * 2}v${ne + ee * 2}h${-z - ee * 2}z
|
|
14205
14205
|
M${w.x},${w.y}h${w.width}v${w.height}h${-w.width}z`,
|
|
14206
14206
|
fillRule: "evenodd",
|
|
14207
14207
|
pointerEvents: "none"
|
|
@@ -21815,7 +21815,7 @@ process.env.NODE_ENV !== "production" && (Fj.displayName = "TooltipPositioner");
|
|
|
21815
21815
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/tooltip/popup/TooltipPopup.js
|
|
21816
21816
|
var Ij = {
|
|
21817
21817
|
...qe,
|
|
21818
|
-
...
|
|
21818
|
+
...z
|
|
21819
21819
|
}, Lj = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
21820
21820
|
let { className: n, render: r, style: i, ...a } = e, o = bj(), { side: s, align: c } = Pj(), l = o.useState("open"), u = o.useState("instantType"), d = o.useState("transitionStatus"), f = o.useState("popupProps"), p = o.useState("floatingRootContext");
|
|
21821
21821
|
Wt({
|
|
@@ -22930,16 +22930,16 @@ var dN = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
22930
22930
|
P
|
|
22931
22931
|
],
|
|
22932
22932
|
stateAttributesMapping: I
|
|
22933
|
-
}), { preFocusGuardRef:
|
|
22933
|
+
}), { preFocusGuardRef: ee, handlePreFocusGuardFocus: te, handleFocusTargetFocus: R } = Yn(h, b);
|
|
22934
22934
|
return _ && !D ? /*#__PURE__*/ X(H.Fragment, { children: [
|
|
22935
22935
|
/*#__PURE__*/ Y(Tt, {
|
|
22936
|
-
ref:
|
|
22937
|
-
onFocus:
|
|
22936
|
+
ref: ee,
|
|
22937
|
+
onFocus: te
|
|
22938
22938
|
}),
|
|
22939
22939
|
/*#__PURE__*/ Y(H.Fragment, { children: L }, g),
|
|
22940
22940
|
/*#__PURE__*/ Y(Tt, {
|
|
22941
22941
|
ref: h.context.triggerFocusTargetRef,
|
|
22942
|
-
onFocus:
|
|
22942
|
+
onFocus: R
|
|
22943
22943
|
})
|
|
22944
22944
|
] }) : /*#__PURE__*/ Y(H.Fragment, { children: L }, g);
|
|
22945
22945
|
});
|
|
@@ -22978,7 +22978,7 @@ function gN() {
|
|
|
22978
22978
|
//#endregion
|
|
22979
22979
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js
|
|
22980
22980
|
var _N = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
22981
|
-
let { render: n, className: r, anchor: i, positionMethod: a = "absolute", side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d = 5, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m = !1, collisionAvoidance: h = Xe, style: g, ..._ } = e, { store: v } = aN(), y = pN(), b =
|
|
22981
|
+
let { render: n, className: r, anchor: i, positionMethod: a = "absolute", side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d = 5, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m = !1, collisionAvoidance: h = Xe, style: g, ..._ } = e, { store: v } = aN(), y = pN(), b = ee(), x = v.useState("floatingRootContext"), S = v.useState("mounted"), C = v.useState("open"), w = v.useState("openChangeReason"), T = v.useState("activeTriggerElement"), E = v.useState("modal"), D = v.useState("openMethod"), O = v.useState("positionerElement"), A = v.useState("instantType"), j = v.useState("transitionStatus"), M = v.useState("hasViewport"), N = H.useRef(null), P = k(O, !1, !1), F = An({
|
|
22982
22982
|
anchor: i,
|
|
22983
22983
|
floatingRootContext: x,
|
|
22984
22984
|
positionMethod: a,
|
|
@@ -23021,13 +23021,13 @@ var _N = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
23021
23021
|
instant: A
|
|
23022
23022
|
};
|
|
23023
23023
|
kn(C && E === !0 && w !== "trigger-hover", D === "touch", O, T);
|
|
23024
|
-
let
|
|
23024
|
+
let te = H.useCallback((e) => {
|
|
23025
23025
|
v.set("positionerElement", e);
|
|
23026
|
-
}, [v]),
|
|
23026
|
+
}, [v]), R = Rn(e, L, {
|
|
23027
23027
|
styles: F.positionerStyles,
|
|
23028
23028
|
transitionStatus: j,
|
|
23029
23029
|
props: _,
|
|
23030
|
-
refs: [t,
|
|
23030
|
+
refs: [t, te],
|
|
23031
23031
|
hidden: !S,
|
|
23032
23032
|
inert: !C
|
|
23033
23033
|
});
|
|
@@ -23039,7 +23039,7 @@ var _N = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
23039
23039
|
cutout: T
|
|
23040
23040
|
}), /*#__PURE__*/ Y(Se, {
|
|
23041
23041
|
id: b,
|
|
23042
|
-
children:
|
|
23042
|
+
children: R
|
|
23043
23043
|
})]
|
|
23044
23044
|
});
|
|
23045
23045
|
});
|
|
@@ -23068,7 +23068,7 @@ function bN(e) {
|
|
|
23068
23068
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js
|
|
23069
23069
|
var xN = {
|
|
23070
23070
|
...qe,
|
|
23071
|
-
...
|
|
23071
|
+
...z
|
|
23072
23072
|
}, SN = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
23073
23073
|
let { className: n, render: r, initialFocus: i, finalFocus: a, style: o, ...s } = e, { store: c } = aN(), l = gN(), u = On(!0) != null, { context: d, hasClosePart: f } = yN(), p = c.useState("open"), m = c.useState("openMethod"), h = c.useState("instantType"), g = c.useState("transitionStatus"), _ = c.useState("popupProps"), v = c.useState("titleElementId"), y = c.useState("descriptionElementId"), b = c.useState("modal"), x = c.useState("mounted"), S = c.useState("openChangeReason"), C = c.useState("activeTriggerElement"), w = c.useState("floatingRootContext");
|
|
23074
23074
|
Wt({
|
|
@@ -23117,7 +23117,7 @@ var xN = {
|
|
|
23117
23117
|
],
|
|
23118
23118
|
stateAttributesMapping: xN
|
|
23119
23119
|
});
|
|
23120
|
-
return /*#__PURE__*/ Y(
|
|
23120
|
+
return /*#__PURE__*/ Y(R, {
|
|
23121
23121
|
context: w,
|
|
23122
23122
|
openInteractionType: m,
|
|
23123
23123
|
modal: M,
|
|
@@ -24213,7 +24213,7 @@ function oI(e, t, n, { motionEnter: r = !0, motionAppear: i = !0, motionLeave: a
|
|
|
24213
24213
|
};
|
|
24214
24214
|
default: return {};
|
|
24215
24215
|
}
|
|
24216
|
-
}, I = H.useMemo(() => F(D), [D]), [L,
|
|
24216
|
+
}, I = H.useMemo(() => F(D), [D]), [L, ee] = aI(D, !e, (e) => {
|
|
24217
24217
|
if (e === "prepare") {
|
|
24218
24218
|
let e = I[LF];
|
|
24219
24219
|
return e ? e(A()) : !1;
|
|
@@ -24222,17 +24222,17 @@ function oI(e, t, n, { motionEnter: r = !0, motionAppear: i = !0, motionLeave: a
|
|
|
24222
24222
|
N({ deadline: !0 });
|
|
24223
24223
|
}, o))), e === "prepared" && M(), !0;
|
|
24224
24224
|
});
|
|
24225
|
-
j.current = iI(
|
|
24226
|
-
let
|
|
24225
|
+
j.current = iI(ee);
|
|
24226
|
+
let te = K(null);
|
|
24227
24227
|
eI(() => {
|
|
24228
|
-
if (O.current &&
|
|
24228
|
+
if (O.current && te.current === t) return;
|
|
24229
24229
|
S(t);
|
|
24230
24230
|
let n = O.current;
|
|
24231
24231
|
O.current = !0;
|
|
24232
24232
|
let o;
|
|
24233
24233
|
!n && t && i && (o = NF), n && t && r && (o = PF), (n && !t && a || !n && s && !t && a) && (o = FF);
|
|
24234
24234
|
let c = F(o);
|
|
24235
|
-
o && (e || c.prepare) ? (w(o), L()) : w(MF),
|
|
24235
|
+
o && (e || c.prepare) ? (w(o), L()) : w(MF), te.current = t;
|
|
24236
24236
|
}, [t]), W(() => {
|
|
24237
24237
|
(D === "appear" && !i || D === "enter" && !r || D === "leave" && !a) && w(MF);
|
|
24238
24238
|
}, [
|
|
@@ -24242,22 +24242,22 @@ function oI(e, t, n, { motionEnter: r = !0, motionAppear: i = !0, motionLeave: a
|
|
|
24242
24242
|
]), W(() => () => {
|
|
24243
24243
|
O.current = !1, clearTimeout(k.current);
|
|
24244
24244
|
}, []);
|
|
24245
|
-
let
|
|
24245
|
+
let R = H.useRef(!1);
|
|
24246
24246
|
W(() => {
|
|
24247
|
-
x && (
|
|
24247
|
+
x && (R.current = !0), x !== void 0 && D === "none" && ((R.current || x) && b?.(x), R.current = !0);
|
|
24248
24248
|
}, [x, D]);
|
|
24249
|
-
let
|
|
24250
|
-
I.prepare &&
|
|
24249
|
+
let z = T[0];
|
|
24250
|
+
I.prepare && ee === "start" && (z = {
|
|
24251
24251
|
transition: "none",
|
|
24252
|
-
...
|
|
24252
|
+
...z
|
|
24253
24253
|
});
|
|
24254
24254
|
let ne = T[1];
|
|
24255
24255
|
return [
|
|
24256
24256
|
C,
|
|
24257
|
-
|
|
24258
|
-
|
|
24257
|
+
ee,
|
|
24258
|
+
z,
|
|
24259
24259
|
x ?? t,
|
|
24260
|
-
!O.current && D === "none" && e && i ? "NONE" :
|
|
24260
|
+
!O.current && D === "none" && e && i ? "NONE" : ee === "start" || ee === "active" ? ne === ee : !0
|
|
24261
24261
|
];
|
|
24262
24262
|
}
|
|
24263
24263
|
//#endregion
|
|
@@ -24534,7 +24534,7 @@ function TI() {
|
|
|
24534
24534
|
}, TI.apply(this, arguments);
|
|
24535
24535
|
}
|
|
24536
24536
|
var EI = /*#__PURE__*/ H.forwardRef((e, t) => {
|
|
24537
|
-
let { onEsc: n, popup: r, className: i, prefixCls: a, style: o, target: s, onVisibleChanged: c, open: l, keepDom: u, fresh: d, onClick: f, mask: p, arrow: m, arrowPos: h, align: g, motion: _, maskMotion: v, mobile: y, forceRender: b, getPopupContainer: x, autoDestroy: S, portal: C, children: w, zIndex: T, onMouseEnter: E, onMouseLeave: D, onPointerEnter: O, onPointerDownCapture: k, ready: A, offsetX: j, offsetY: M, offsetR: N, offsetB: P, onAlign: F, onPrepare: I, onResize: L, stretch:
|
|
24537
|
+
let { onEsc: n, popup: r, className: i, prefixCls: a, style: o, target: s, onVisibleChanged: c, open: l, keepDom: u, fresh: d, onClick: f, mask: p, arrow: m, arrowPos: h, align: g, motion: _, maskMotion: v, mobile: y, forceRender: b, getPopupContainer: x, autoDestroy: S, portal: C, children: w, zIndex: T, onMouseEnter: E, onMouseLeave: D, onPointerEnter: O, onPointerDownCapture: k, ready: A, offsetX: j, offsetY: M, offsetR: N, offsetB: P, onAlign: F, onPrepare: I, onResize: L, stretch: ee, targetWidth: te, targetHeight: R } = e, z = typeof r == "function" ? r() : r, ne = l || u, re = !!y, [ie, ae, oe] = H.useMemo(() => y ? [
|
|
24538
24538
|
y.mask,
|
|
24539
24539
|
y.maskMotion,
|
|
24540
24540
|
y.motion
|
|
@@ -24560,7 +24560,7 @@ var EI = /*#__PURE__*/ H.forwardRef((e, t) => {
|
|
|
24560
24560
|
}), de = wI(re, A, l, g, N, P, j, M);
|
|
24561
24561
|
if (!ce) return null;
|
|
24562
24562
|
let fe = {};
|
|
24563
|
-
return
|
|
24563
|
+
return ee && (ee.includes("height") && R ? fe.height = R : ee.includes("minHeight") && R && (fe.minHeight = R), ee.includes("width") && te ? fe.width = te : ee.includes("minWidth") && te && (fe.minWidth = te)), l || (fe.pointerEvents = "none"), /*#__PURE__*/ H.createElement(C, {
|
|
24564
24564
|
open: b || ne,
|
|
24565
24565
|
getContainer: x && (() => x(s)),
|
|
24566
24566
|
autoDestroy: S,
|
|
@@ -24614,7 +24614,7 @@ var EI = /*#__PURE__*/ H.forwardRef((e, t) => {
|
|
|
24614
24614
|
arrow: m,
|
|
24615
24615
|
arrowPos: h,
|
|
24616
24616
|
align: g
|
|
24617
|
-
}), /*#__PURE__*/ H.createElement(CI, { cache: !l && !d },
|
|
24617
|
+
}), /*#__PURE__*/ H.createElement(CI, { cache: !l && !d }, z));
|
|
24618
24618
|
})), w);
|
|
24619
24619
|
});
|
|
24620
24620
|
process.env.NODE_ENV !== "production" && (EI.displayName = "Popup");
|
|
@@ -24770,9 +24770,9 @@ function WI(e, t, n, r, i, a, o, s) {
|
|
|
24770
24770
|
top: -A,
|
|
24771
24771
|
right: O - j,
|
|
24772
24772
|
bottom: k - A
|
|
24773
|
-
}, { htmlRegion:
|
|
24774
|
-
|
|
24775
|
-
let
|
|
24773
|
+
}, { htmlRegion: ee } = b, te = "visible", R = "visibleFirst";
|
|
24774
|
+
ee !== "scroll" && ee !== R && (ee = te);
|
|
24775
|
+
let z = ee === R, ne = LI(L, d), re = LI(I, d), ie = ee === te ? re : ne, ae = z ? re : ie;
|
|
24776
24776
|
e.style.left = "auto", e.style.top = "auto", e.style.right = "0", e.style.bottom = "0";
|
|
24777
24777
|
let oe = e.getBoundingClientRect();
|
|
24778
24778
|
e.style.left = p, e.style.top = m, e.style.right = h, e.style.bottom = g, e.style.overflow = _, e.style.overflowX = v, e.style.overflowY = y, e.parentElement?.removeChild(x);
|
|
@@ -24795,26 +24795,26 @@ function WI(e, t, n, r, i, a, o, s) {
|
|
|
24795
24795
|
let e = we;
|
|
24796
24796
|
Ue ? e -= M - P : e = Oe.y - je.y - fe;
|
|
24797
24797
|
let t = Te(Ce, e), n = Te(Ce, e, re);
|
|
24798
|
-
t > Ee || t === Ee && (!
|
|
24798
|
+
t > Ee || t === Ee && (!z || n >= De) ? (f.current.bt = !0, we = e, fe = -fe, Se = [HI(Se[0], 0), HI(Se[1], 0)]) : f.current.bt = !1;
|
|
24799
24799
|
}
|
|
24800
24800
|
if (He && ve[0] === "b" && (Le < ae.top || f.current.tb)) {
|
|
24801
24801
|
let e = we;
|
|
24802
24802
|
Ue ? e += M - P : e = Ae.y - ke.y - fe;
|
|
24803
24803
|
let t = Te(Ce, e), n = Te(Ce, e, re);
|
|
24804
|
-
t > Ee || t === Ee && (!
|
|
24804
|
+
t > Ee || t === Ee && (!z || n >= De) ? (f.current.tb = !0, we = e, fe = -fe, Se = [HI(Se[0], 0), HI(Se[1], 0)]) : f.current.tb = !1;
|
|
24805
24805
|
}
|
|
24806
24806
|
let B = Ie(Me), We = ve[1] === _e[1];
|
|
24807
24807
|
if (B && ve[1] === "l" && (Be > ae.right || f.current.rl)) {
|
|
24808
24808
|
let e = Ce;
|
|
24809
24809
|
We ? e -= N - F : e = Oe.x - je.x - de;
|
|
24810
24810
|
let t = Te(e, we), n = Te(e, we, re);
|
|
24811
|
-
t > Ee || t === Ee && (!
|
|
24811
|
+
t > Ee || t === Ee && (!z || n >= De) ? (f.current.rl = !0, Ce = e, de = -de, Se = [HI(Se[0], 1), HI(Se[1], 1)]) : f.current.rl = !1;
|
|
24812
24812
|
}
|
|
24813
24813
|
if (B && ve[1] === "r" && (ze < ae.left || f.current.lr)) {
|
|
24814
24814
|
let e = Ce;
|
|
24815
24815
|
We ? e += N - F : e = Ae.x - ke.x - de;
|
|
24816
24816
|
let t = Te(e, we), n = Te(e, we, re);
|
|
24817
|
-
t > Ee || t === Ee && (!
|
|
24817
|
+
t > Ee || t === Ee && (!z || n >= De) ? (f.current.lr = !0, Ce = e, de = -de, Se = [HI(Se[0], 1), HI(Se[1], 1)]) : f.current.lr = !1;
|
|
24818
24818
|
}
|
|
24819
24819
|
xe.points = [UI(Se[0]), UI(Se[1])], Ve();
|
|
24820
24820
|
let Ge = Pe === !0 ? 0 : Pe;
|
|
@@ -24947,7 +24947,7 @@ function qI(e, t, n, r, i, a, o, s) {
|
|
|
24947
24947
|
//#region ../../node_modules/.bun/@rc-component+trigger@3.10.1+6dbf9a050bc9aadb/node_modules/@rc-component/trigger/es/index.js
|
|
24948
24948
|
function JI(e = hF) {
|
|
24949
24949
|
let t = /*#__PURE__*/ H.forwardRef((t, n) => {
|
|
24950
|
-
let { prefixCls: r = "rc-trigger-popup", children: i, action: a = "hover", showAction: o, hideAction: s, disabled: c = !1, popupVisible: l, defaultPopupVisible: u, onOpenChange: d, afterOpenChange: f, onPopupVisibleChange: p, afterPopupVisibleChange: m, mouseEnterDelay: h, mouseLeaveDelay: g = .1, focusDelay: _, blurDelay: v, mask: y, maskClosable: b = !0, getPopupContainer: x, forceRender: S, autoDestroy: C, popup: w, popupClassName: T, uniqueContainerClassName: E, uniqueContainerStyle: D, popupStyle: O, popupPlacement: k, builtinPlacements: A = {}, popupAlign: j, zIndex: M, stretch: N, getPopupClassNameFromAlign: P, fresh: F, unique: I, alignPoint: L, onPopupClick:
|
|
24950
|
+
let { prefixCls: r = "rc-trigger-popup", children: i, action: a = "hover", showAction: o, hideAction: s, disabled: c = !1, popupVisible: l, defaultPopupVisible: u, onOpenChange: d, afterOpenChange: f, onPopupVisibleChange: p, afterPopupVisibleChange: m, mouseEnterDelay: h, mouseLeaveDelay: g = .1, focusDelay: _, blurDelay: v, mask: y, maskClosable: b = !0, getPopupContainer: x, forceRender: S, autoDestroy: C, popup: w, popupClassName: T, uniqueContainerClassName: E, uniqueContainerStyle: D, popupStyle: O, popupPlacement: k, builtinPlacements: A = {}, popupAlign: j, zIndex: M, stretch: N, getPopupClassNameFromAlign: P, fresh: F, unique: I, alignPoint: L, onPopupClick: ee, onPopupAlign: te, arrow: R, popupMotion: z, maskMotion: ne, mobile: re, ...ie } = t, ae = C || !1, oe = l === void 0, se = !!re, ce = H.useRef({}), le = H.useContext(DI), ue = H.useMemo(() => ({ registerSubPopup: (e, t) => {
|
|
24951
24951
|
ce.current[e] = t, le?.registerSubPopup(e, t);
|
|
24952
24952
|
} }), [le]), de = H.useContext(OI), fe = eP(), [pe, me] = H.useState(null), he = H.useRef(null), ge = zN((e) => {
|
|
24953
24953
|
he.current = e, MP(e) && pe !== e && me(e), le?.registerSubPopup(fe, e);
|
|
@@ -24957,7 +24957,7 @@ function JI(e = hF) {
|
|
|
24957
24957
|
}), xe = {}, Se = zN((e) => {
|
|
24958
24958
|
let t = _e;
|
|
24959
24959
|
return t?.contains(e) || LP(t)?.host === e || e === t || pe?.contains(e) || LP(pe)?.host === e || e === pe || Object.values(ce.current).some((t) => t?.contains(e) || e === t);
|
|
24960
|
-
}), Ce =
|
|
24960
|
+
}), Ce = R ? { ...R === !0 ? {} : R } : null, [we, Te] = WN(u || !1, l), Ee = we || !1, De = Ee && !c, Oe = H.useMemo(() => {
|
|
24961
24961
|
let e = typeof i == "function" ? i({ open: De }) : i;
|
|
24962
24962
|
return H.Children.only(e);
|
|
24963
24963
|
}, [i, De]), ke = Oe?.props || {}, Ae = zN(() => De), je = zN((e = 0) => ({
|
|
@@ -24975,7 +24975,7 @@ function JI(e = hF) {
|
|
|
24975
24975
|
zIndex: M,
|
|
24976
24976
|
mask: y,
|
|
24977
24977
|
maskClosable: b,
|
|
24978
|
-
popupMotion:
|
|
24978
|
+
popupMotion: z,
|
|
24979
24979
|
maskMotion: ne,
|
|
24980
24980
|
arrow: Ce,
|
|
24981
24981
|
getPopupContainer: x,
|
|
@@ -25016,7 +25016,7 @@ function JI(e = hF) {
|
|
|
25016
25016
|
}, [De]);
|
|
25017
25017
|
let [ze, Be] = H.useState(null), [Ve, He] = H.useState(null), Ue = (e) => {
|
|
25018
25018
|
He([e.clientX, e.clientY]);
|
|
25019
|
-
}, [B, We, Ge, Ke, qe, Je, Ye, Xe, Ze, Qe, $e] = WI(De, pe, L && Ve !== null ? Ve : _e, k, A, j,
|
|
25019
|
+
}, [B, We, Ge, Ke, qe, Je, Ye, Xe, Ze, Qe, $e] = WI(De, pe, L && Ve !== null ? Ve : _e, k, A, j, te, se), [et, tt] = AI(a, o, s), nt = et.has("click"), rt = tt.has("click") || tt.has("contextMenu"), it = zN(() => {
|
|
25020
25020
|
Le || $e();
|
|
25021
25021
|
});
|
|
25022
25022
|
KI(De, _e, pe, it, () => {
|
|
@@ -25128,10 +25128,10 @@ function JI(e = hF) {
|
|
|
25128
25128
|
open: De,
|
|
25129
25129
|
keepDom: Le,
|
|
25130
25130
|
fresh: F,
|
|
25131
|
-
onClick:
|
|
25131
|
+
onClick: ee,
|
|
25132
25132
|
onPointerDownCapture: vt,
|
|
25133
25133
|
mask: y,
|
|
25134
|
-
motion:
|
|
25134
|
+
motion: z,
|
|
25135
25135
|
maskMotion: ne,
|
|
25136
25136
|
onVisibleChanged: ft,
|
|
25137
25137
|
onPrepare: pt,
|
|
@@ -26157,16 +26157,16 @@ var WR = [function(e, t, n, r) {
|
|
|
26157
26157
|
function L(e) {
|
|
26158
26158
|
return x(e) === u;
|
|
26159
26159
|
}
|
|
26160
|
-
function
|
|
26160
|
+
function ee(e) {
|
|
26161
26161
|
return x(e) === c;
|
|
26162
26162
|
}
|
|
26163
|
-
function
|
|
26163
|
+
function te(e) {
|
|
26164
26164
|
return x(e) === s;
|
|
26165
26165
|
}
|
|
26166
|
-
function
|
|
26166
|
+
function R(e) {
|
|
26167
26167
|
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
26168
26168
|
}
|
|
26169
|
-
function
|
|
26169
|
+
function z(e) {
|
|
26170
26170
|
return x(e) === d;
|
|
26171
26171
|
}
|
|
26172
26172
|
function ne(e) {
|
|
@@ -26190,7 +26190,7 @@ var WR = [function(e, t, n, r) {
|
|
|
26190
26190
|
function ce(e) {
|
|
26191
26191
|
return x(e) === f;
|
|
26192
26192
|
}
|
|
26193
|
-
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer =
|
|
26193
|
+
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = ee, e.isContextProvider = te, e.isElement = R, e.isForwardRef = z, e.isFragment = ne, e.isLazy = re, e.isMemo = ie, e.isPortal = ae, e.isProfiler = oe, e.isStrictMode = se, e.isSuspense = ce, e.isValidElementType = b, e.typeOf = x;
|
|
26194
26194
|
})();
|
|
26195
26195
|
})), JR = /* @__PURE__ */ r(((e, t) => {
|
|
26196
26196
|
t.exports = process.env.NODE_ENV === "production" ? KR() : qR();
|
|
@@ -29318,29 +29318,29 @@ var rU = /*#__PURE__*/ function(e) {
|
|
|
29318
29318
|
return e ? { [rU.checked]: "" } : { [rU.unchecked]: "" };
|
|
29319
29319
|
}
|
|
29320
29320
|
}, aU = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
29321
|
-
let { checked: n, className: r, defaultChecked: i, "aria-labelledby": a, form: o, id: s, inputRef: c, name: l, nativeButton: u = !1, onCheckedChange: d, readOnly: f = !1, required: p = !1, disabled: m = !1, render: h, uncheckedValue: g, value: _, style: v, ...y } = e, { clearErrors: b } = Jn(), { state: x, setTouched: S, setDirty: C, validityData: w, setFilled: T, setFocused: E, shouldValidateOnChange: D, validationMode: O, disabled: k, name: A, validation: M } = Ye(), { labelId: N } = Ne(), F = k || m, I = A ?? l, L = P(d),
|
|
29321
|
+
let { checked: n, className: r, defaultChecked: i, "aria-labelledby": a, form: o, id: s, inputRef: c, name: l, nativeButton: u = !1, onCheckedChange: d, readOnly: f = !1, required: p = !1, disabled: m = !1, render: h, uncheckedValue: g, value: _, style: v, ...y } = e, { clearErrors: b } = Jn(), { state: x, setTouched: S, setDirty: C, validityData: w, setFilled: T, setFocused: E, shouldValidateOnChange: D, validationMode: O, disabled: k, name: A, validation: M } = Ye(), { labelId: N } = Ne(), F = k || m, I = A ?? l, L = P(d), ee = H.useRef(null), te = Pt(ee, c, M.inputRef), R = H.useRef(null), z = he(), ne = ke({
|
|
29322
29322
|
id: s,
|
|
29323
29323
|
implicit: !1,
|
|
29324
|
-
controlRef:
|
|
29324
|
+
controlRef: R
|
|
29325
29325
|
}), ie = u ? void 0 : ne, [ae, oe] = ce({
|
|
29326
29326
|
controlled: n,
|
|
29327
29327
|
default: !!i,
|
|
29328
29328
|
name: "Switch",
|
|
29329
29329
|
state: "checked"
|
|
29330
29330
|
});
|
|
29331
|
-
re(
|
|
29332
|
-
id:
|
|
29331
|
+
re(R, {
|
|
29332
|
+
id: z,
|
|
29333
29333
|
value: ae
|
|
29334
29334
|
}), It(() => {
|
|
29335
|
-
|
|
29336
|
-
}, [
|
|
29335
|
+
ee.current && T(ee.current.checked);
|
|
29336
|
+
}, [ee, T]), ft(ae, () => {
|
|
29337
29337
|
b(I), C(ae !== w.initialValue), T(ae), D() ? M.commit(ae) : M.commit(ae, !0);
|
|
29338
29338
|
});
|
|
29339
29339
|
let { getButtonProps: se, buttonRef: le } = Bt({
|
|
29340
29340
|
disabled: F,
|
|
29341
29341
|
native: u
|
|
29342
|
-
}), ue = Wa(a, N,
|
|
29343
|
-
id: u ? ne :
|
|
29342
|
+
}), ue = Wa(a, N, ee, !u, ie), de = {
|
|
29343
|
+
id: u ? ne : z,
|
|
29344
29344
|
role: "switch",
|
|
29345
29345
|
"aria-checked": ae,
|
|
29346
29346
|
"aria-readonly": f || void 0,
|
|
@@ -29350,11 +29350,11 @@ var rU = /*#__PURE__*/ function(e) {
|
|
|
29350
29350
|
F || E(!0);
|
|
29351
29351
|
},
|
|
29352
29352
|
onBlur() {
|
|
29353
|
-
let e =
|
|
29353
|
+
let e = ee.current;
|
|
29354
29354
|
!e || F || (S(!0), E(!1), O === "onBlur" && M.commit(e.checked));
|
|
29355
29355
|
},
|
|
29356
29356
|
onClick(e) {
|
|
29357
|
-
f || F || (e.preventDefault(),
|
|
29357
|
+
f || F || (e.preventDefault(), ee.current?.dispatchEvent(new PointerEvent("click", {
|
|
29358
29358
|
bubbles: !0,
|
|
29359
29359
|
shiftKey: e.shiftKey,
|
|
29360
29360
|
ctrlKey: e.ctrlKey,
|
|
@@ -29373,7 +29373,7 @@ var rU = /*#__PURE__*/ function(e) {
|
|
|
29373
29373
|
tabIndex: -1,
|
|
29374
29374
|
type: "checkbox",
|
|
29375
29375
|
"aria-hidden": !0,
|
|
29376
|
-
ref:
|
|
29376
|
+
ref: te,
|
|
29377
29377
|
onChange(e) {
|
|
29378
29378
|
if (e.nativeEvent.defaultPrevented) return;
|
|
29379
29379
|
if (f) {
|
|
@@ -29384,13 +29384,13 @@ var rU = /*#__PURE__*/ function(e) {
|
|
|
29384
29384
|
L?.(t, n), !n.isCanceled && oe(t);
|
|
29385
29385
|
},
|
|
29386
29386
|
onFocus() {
|
|
29387
|
-
|
|
29387
|
+
R.current?.focus();
|
|
29388
29388
|
}
|
|
29389
29389
|
}, M.getInputValidationProps, _ === void 0 ? nt : { value: _ }), [
|
|
29390
29390
|
ae,
|
|
29391
29391
|
F,
|
|
29392
29392
|
o,
|
|
29393
|
-
|
|
29393
|
+
te,
|
|
29394
29394
|
ie,
|
|
29395
29395
|
I,
|
|
29396
29396
|
L,
|
|
@@ -29415,7 +29415,7 @@ var rU = /*#__PURE__*/ function(e) {
|
|
|
29415
29415
|
state: pe,
|
|
29416
29416
|
ref: [
|
|
29417
29417
|
t,
|
|
29418
|
-
|
|
29418
|
+
R,
|
|
29419
29419
|
le
|
|
29420
29420
|
],
|
|
29421
29421
|
props: [
|
|
@@ -30365,34 +30365,34 @@ function oW() {
|
|
|
30365
30365
|
//#endregion
|
|
30366
30366
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRoot.js
|
|
30367
30367
|
var sW = "data-parent", cW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
30368
|
-
let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": a, disabled: o = !1, form: s, id: c, indeterminate: l = !1, inputRef: u, name: d, onCheckedChange: f, parent: p = !1, readOnly: m = !1, render: h, required: g = !1, uncheckedValue: _, value: v, nativeButton: y = !1, style: b, ...x } = e, { clearErrors: S } = Jn(), { disabled: C, name: w, setDirty: T, setFilled: E, setFocused: D, setTouched: O, state: k, validationMode: A, validityData: M, shouldValidateOnChange: N, validation: F } = Ye(), I = Ja(), { labelId: L, controlId:
|
|
30368
|
+
let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": a, disabled: o = !1, form: s, id: c, indeterminate: l = !1, inputRef: u, name: d, onCheckedChange: f, parent: p = !1, readOnly: m = !1, render: h, required: g = !1, uncheckedValue: _, value: v, nativeButton: y = !1, style: b, ...x } = e, { clearErrors: S } = Jn(), { disabled: C, name: w, setDirty: T, setFilled: E, setFocused: D, setTouched: O, state: k, validationMode: A, validityData: M, shouldValidateOnChange: N, validation: F } = Ye(), I = Ja(), { labelId: L, controlId: ee, registerControlId: te, getDescriptionProps: R } = Ne(), z = Xa(), ne = z?.parent, ie = ne && z.allValues, ae = C || I.disabled || z?.disabled || o, oe = w ?? d, se = v ?? oe, le = he(), ue = he(), de = ee;
|
|
30369
30369
|
ie ? de = p ? ue : `${ne.id}-${se}` : c && (de = c);
|
|
30370
30370
|
let fe = {};
|
|
30371
|
-
ie && (p ? fe =
|
|
30372
|
-
let me = P(f), { checked: ge = n, indeterminate: _e = l, onCheckedChange: ve, ...ye } = fe, be =
|
|
30371
|
+
ie && (p ? fe = z.parent.getParentProps() : se && (fe = z.parent.getChildProps(se)));
|
|
30372
|
+
let me = P(f), { checked: ge = n, indeterminate: _e = l, onCheckedChange: ve, ...ye } = fe, be = z?.value, xe = z?.setValue, Se = z?.defaultValue, Ce = H.useRef(null), we = pe(() => Symbol("checkbox-control")), Te = H.useRef(!1), { getButtonProps: Ee, buttonRef: De } = Bt({
|
|
30373
30373
|
disabled: ae,
|
|
30374
30374
|
native: y
|
|
30375
|
-
}), Oe =
|
|
30375
|
+
}), Oe = z?.validation ?? F, [ke, Ae] = ce({
|
|
30376
30376
|
controlled: se && be && !p ? be.includes(se) : ge,
|
|
30377
30377
|
default: se && Se && !p ? Se.includes(se) : i,
|
|
30378
30378
|
name: "Checkbox",
|
|
30379
30379
|
state: "checked"
|
|
30380
30380
|
});
|
|
30381
30381
|
It(() => {
|
|
30382
|
-
|
|
30382
|
+
te !== et && (Te.current = !0, te(we.current, de));
|
|
30383
30383
|
}, [
|
|
30384
30384
|
de,
|
|
30385
|
+
z,
|
|
30385
30386
|
te,
|
|
30386
|
-
ee,
|
|
30387
30387
|
p,
|
|
30388
30388
|
we
|
|
30389
30389
|
]), H.useEffect(() => {
|
|
30390
30390
|
let e = we.current;
|
|
30391
30391
|
return () => {
|
|
30392
|
-
!Te.current ||
|
|
30392
|
+
!Te.current || te === et || (Te.current = !1, te(e, void 0));
|
|
30393
30393
|
};
|
|
30394
|
-
}, [
|
|
30395
|
-
enabled: !
|
|
30394
|
+
}, [te, we]), re(Ce, {
|
|
30395
|
+
enabled: !z,
|
|
30396
30396
|
id: le,
|
|
30397
30397
|
value: ke
|
|
30398
30398
|
});
|
|
@@ -30404,7 +30404,7 @@ var sW = "data-parent", cW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
30404
30404
|
_e,
|
|
30405
30405
|
E
|
|
30406
30406
|
]), ft(ke, () => {
|
|
30407
|
-
|
|
30407
|
+
z && !p || (S(oe), E(ke), T(ke !== M.initialValue), N() ? Oe.commit(ke) : Oe.commit(ke, !0));
|
|
30408
30408
|
});
|
|
30409
30409
|
let Fe = j({
|
|
30410
30410
|
checked: ke,
|
|
@@ -30433,7 +30433,7 @@ var sW = "data-parent", cW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
30433
30433
|
onFocus() {
|
|
30434
30434
|
Ce.current?.focus();
|
|
30435
30435
|
}
|
|
30436
|
-
}, v === void 0 ? nt : { value: (
|
|
30436
|
+
}, v === void 0 ? nt : { value: (z ? ke && v : v) || "" }, R, z ? Oe.getValidationProps : Oe.getInputValidationProps), Ie = ie ? !!ge : ke, Le = ie && _e || l;
|
|
30437
30437
|
H.useEffect(() => {
|
|
30438
30438
|
if (!ne || !se) return;
|
|
30439
30439
|
let e = ne.disabledStatesRef.current;
|
|
@@ -30465,7 +30465,7 @@ var sW = "data-parent", cW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
30465
30465
|
De,
|
|
30466
30466
|
Ce,
|
|
30467
30467
|
t,
|
|
30468
|
-
|
|
30468
|
+
z?.registerControlRef
|
|
30469
30469
|
],
|
|
30470
30470
|
props: [
|
|
30471
30471
|
{
|
|
@@ -30481,7 +30481,7 @@ var sW = "data-parent", cW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
30481
30481
|
},
|
|
30482
30482
|
onBlur() {
|
|
30483
30483
|
let e = je.current;
|
|
30484
|
-
e && (O(!0), D(!1), A === "onBlur" && Oe.commit(
|
|
30484
|
+
e && (O(!0), D(!1), A === "onBlur" && Oe.commit(z ? be : e.checked));
|
|
30485
30485
|
},
|
|
30486
30486
|
onClick(e) {
|
|
30487
30487
|
m || ae || (e.preventDefault(), je.current?.dispatchEvent(new PointerEvent("click", {
|
|
@@ -30493,7 +30493,7 @@ var sW = "data-parent", cW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
30493
30493
|
})));
|
|
30494
30494
|
}
|
|
30495
30495
|
},
|
|
30496
|
-
|
|
30496
|
+
R,
|
|
30497
30497
|
Oe.getValidationProps,
|
|
30498
30498
|
x,
|
|
30499
30499
|
ye,
|
|
@@ -30505,7 +30505,7 @@ var sW = "data-parent", cW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
30505
30505
|
value: Re,
|
|
30506
30506
|
children: [
|
|
30507
30507
|
Ve,
|
|
30508
|
-
!ke && !
|
|
30508
|
+
!ke && !z && oe && !p && _ !== void 0 && /*#__PURE__*/ Y("input", {
|
|
30509
30509
|
type: "hidden",
|
|
30510
30510
|
form: s,
|
|
30511
30511
|
name: oe,
|
|
@@ -30535,7 +30535,7 @@ var lW = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
|
30535
30535
|
});
|
|
30536
30536
|
let m = iW(s), h = H.useMemo(() => ({
|
|
30537
30537
|
...m,
|
|
30538
|
-
...
|
|
30538
|
+
...z,
|
|
30539
30539
|
...kt
|
|
30540
30540
|
}), [m]), g = a || l, _ = bt("span", e, {
|
|
30541
30541
|
ref: [t, f],
|
|
@@ -32834,7 +32834,7 @@ function OK({ store: e, panelWidth$: t, reactFlowStore: n, presentation: r = "ha
|
|
|
32834
32834
|
a
|
|
32835
32835
|
]), L = U((t) => {
|
|
32836
32836
|
F.value || (t === e.name ? F.set(void 0) : o?.(t));
|
|
32837
|
-
}, [e, o]),
|
|
32837
|
+
}, [e, o]), ee = x(F);
|
|
32838
32838
|
if (r === "form") {
|
|
32839
32839
|
let e = ur(aa(M)?.required).filter(lr), t = aa(N), n = e.filter((e) => t?.[e] === void 0), r = j == null ? void 0 : n.length > 0 ? _("inputHandleEditor.requiredFieldsUnset", { fields: n.join(", ") }) : j.type === "typeError" ? _("inputHandleEditor.typeError", { expected: Qr(S) || S }) : j.message.startsWith("$") ? _(`inputHandleEditor.${j.message.slice(1)}`) : _("inputHandleEditor.validationError", { message: j.message });
|
|
32840
32840
|
return /* @__PURE__ */ X(J, { children: [r != null && /* @__PURE__ */ X("div", {
|
|
@@ -32883,14 +32883,14 @@ function OK({ store: e, panelWidth$: t, reactFlowStore: n, presentation: r = "ha
|
|
|
32883
32883
|
expanded: D ? null : T ? !y : null,
|
|
32884
32884
|
onExpandedChange: (e) => m(v.collapsed$, !e),
|
|
32885
32885
|
name: /* @__PURE__ */ Y(qj, {
|
|
32886
|
-
open: !!
|
|
32886
|
+
open: !!ee,
|
|
32887
32887
|
placement: "left",
|
|
32888
|
-
title:
|
|
32888
|
+
title: ee,
|
|
32889
32889
|
children: /* @__PURE__ */ Y("div", {
|
|
32890
32890
|
className: tW.handleNameWrapper,
|
|
32891
32891
|
children: /* @__PURE__ */ Y(nN, {
|
|
32892
32892
|
selectOnFocus: !0,
|
|
32893
|
-
className: V(
|
|
32893
|
+
className: V(ee && tW.renameError),
|
|
32894
32894
|
value: e.name,
|
|
32895
32895
|
title: e.name + (E ? `\n${E}` : ""),
|
|
32896
32896
|
readOnly: !g.canEditSchema,
|
|
@@ -34047,7 +34047,7 @@ var Dq = {
|
|
|
34047
34047
|
}
|
|
34048
34048
|
}
|
|
34049
34049
|
`, b = o.forwardRef(function(e, n) {
|
|
34050
|
-
var r = e.autoFocus, i = e.disabled, b = e.form, S = e.highlight, C = e.ignoreTabKey, w = C !== void 0 && C, T = e.insertSpaces, E = T === void 0 || T, D = e.maxLength, O = e.minLength, k = e.name, A = e.onBlur, j = e.onClick, M = e.onFocus, N = e.onKeyDown, P = e.onKeyUp, F = e.onValueChange, I = e.padding, L = I === void 0 ? 0 : I,
|
|
34050
|
+
var r = e.autoFocus, i = e.disabled, b = e.form, S = e.highlight, C = e.ignoreTabKey, w = C !== void 0 && C, T = e.insertSpaces, E = T === void 0 || T, D = e.maxLength, O = e.minLength, k = e.name, A = e.onBlur, j = e.onClick, M = e.onFocus, N = e.onKeyDown, P = e.onKeyUp, F = e.onValueChange, I = e.padding, L = I === void 0 ? 0 : I, ee = e.placeholder, te = e.preClassName, R = e.readOnly, z = e.required, ne = e.style, re = e.tabSize, ie = re === void 0 ? 2 : re, ae = e.textareaClassName, oe = e.textareaId, se = e.value, ce = a(e, [
|
|
34051
34051
|
"autoFocus",
|
|
34052
34052
|
"disabled",
|
|
34053
34053
|
"form",
|
|
@@ -34144,7 +34144,7 @@ var Dq = {
|
|
|
34144
34144
|
}
|
|
34145
34145
|
};
|
|
34146
34146
|
}, []), o.createElement("div", t({}, ce, { style: t(t({}, x.container), ne) }), o.createElement("pre", t({
|
|
34147
|
-
className:
|
|
34147
|
+
className: te,
|
|
34148
34148
|
"aria-hidden": "true",
|
|
34149
34149
|
style: t(t(t({}, x.editor), x.highlight), me)
|
|
34150
34150
|
}, typeof he == "string" ? { dangerouslySetInnerHTML: { __html: he + "<br />" } } : { children: he })), o.createElement("textarea", {
|
|
@@ -34242,9 +34242,9 @@ var Dq = {
|
|
|
34242
34242
|
maxLength: D,
|
|
34243
34243
|
minLength: O,
|
|
34244
34244
|
name: k,
|
|
34245
|
-
placeholder:
|
|
34246
|
-
readOnly:
|
|
34247
|
-
required:
|
|
34245
|
+
placeholder: ee,
|
|
34246
|
+
readOnly: R,
|
|
34247
|
+
required: z,
|
|
34248
34248
|
autoFocus: r,
|
|
34249
34249
|
autoCapitalize: "off",
|
|
34250
34250
|
autoComplete: "off",
|
|
@@ -37718,17 +37718,17 @@ var $X = ({ filteredIcons: e, collection: t, color: n, categories: r, onClick: i
|
|
|
37718
37718
|
let L = U((e) => {
|
|
37719
37719
|
let t = e.target.dataset.tab;
|
|
37720
37720
|
t && (g(PX = t), A(!1));
|
|
37721
|
-
}, []),
|
|
37721
|
+
}, []), ee = U(() => {
|
|
37722
37722
|
u && u();
|
|
37723
|
-
}, [u]),
|
|
37723
|
+
}, [u]), te = U(() => {
|
|
37724
37724
|
let e = M?.[h];
|
|
37725
37725
|
if (l && e) {
|
|
37726
37726
|
let t = Object.keys(e.icons.icons), n = t[Math.floor(Math.random() * t.length)], r = WX[Math.floor(Math.random() * WX.length)];
|
|
37727
37727
|
l(h, n, r, !0);
|
|
37728
37728
|
}
|
|
37729
|
-
}, [h, l]),
|
|
37729
|
+
}, [h, l]), R = U(() => {
|
|
37730
37730
|
A((e) => !e);
|
|
37731
|
-
}, []),
|
|
37731
|
+
}, []), z = U((e) => {
|
|
37732
37732
|
let t = e.target.dataset.color;
|
|
37733
37733
|
t && O(FX = t);
|
|
37734
37734
|
}, []), ne = U((e) => {
|
|
@@ -37776,7 +37776,7 @@ var $X = ({ filteredIcons: e, collection: t, color: n, categories: r, onClick: i
|
|
|
37776
37776
|
/* @__PURE__ */ Y("button", {
|
|
37777
37777
|
"aria-label": m("close"),
|
|
37778
37778
|
className: WJ.close,
|
|
37779
|
-
onClick:
|
|
37779
|
+
onClick: ee,
|
|
37780
37780
|
type: "button",
|
|
37781
37781
|
children: /* @__PURE__ */ Y(Vu, {
|
|
37782
37782
|
collection: "carbon",
|
|
@@ -37800,7 +37800,7 @@ var $X = ({ filteredIcons: e, collection: t, color: n, categories: r, onClick: i
|
|
|
37800
37800
|
/* @__PURE__ */ Y("button", {
|
|
37801
37801
|
"aria-label": m("random"),
|
|
37802
37802
|
className: WJ.shuffle,
|
|
37803
|
-
onClick:
|
|
37803
|
+
onClick: te,
|
|
37804
37804
|
title: m("random"),
|
|
37805
37805
|
type: "button",
|
|
37806
37806
|
children: /* @__PURE__ */ Y(Vu, {
|
|
@@ -37812,7 +37812,7 @@ var $X = ({ filteredIcons: e, collection: t, color: n, categories: r, onClick: i
|
|
|
37812
37812
|
"aria-expanded": k,
|
|
37813
37813
|
"aria-label": m("color"),
|
|
37814
37814
|
className: WJ["pick-colors"],
|
|
37815
|
-
onClick:
|
|
37815
|
+
onClick: R,
|
|
37816
37816
|
type: "button",
|
|
37817
37817
|
children: /* @__PURE__ */ Y(Vu, {
|
|
37818
37818
|
collection: "carbon",
|
|
@@ -37821,7 +37821,7 @@ var $X = ({ filteredIcons: e, collection: t, color: n, categories: r, onClick: i
|
|
|
37821
37821
|
})
|
|
37822
37822
|
}),
|
|
37823
37823
|
/* @__PURE__ */ Y("div", {
|
|
37824
|
-
onClick:
|
|
37824
|
+
onClick: z,
|
|
37825
37825
|
className: WJ.colors,
|
|
37826
37826
|
style: j && k ? {} : { display: "none" },
|
|
37827
37827
|
children: WX.map((e) => /* @__PURE__ */ Y("button", {
|
|
@@ -38027,7 +38027,7 @@ function pZ(e) {
|
|
|
38027
38027
|
//#endregion
|
|
38028
38028
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/context-menu/trigger/ContextMenuTrigger.js
|
|
38029
38029
|
var mZ = 500, hZ = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
38030
|
-
let { render: n, className: r, style: i, ...a } = e, { setAnchor: o, actionsRef: s, internalBackdropRef: c, backdropRef: l, positionerRef: u, allowMouseUpTriggerRef: d, initialCursorPointRef: f, rootId: p } = pn(!1), { store: m } = nn(!1), h = m.useState("open"), g = m.useState("disabled"), _ = H.useRef(null), v = H.useRef(null), y =
|
|
38030
|
+
let { render: n, className: r, style: i, ...a } = e, { setAnchor: o, actionsRef: s, internalBackdropRef: c, backdropRef: l, positionerRef: u, allowMouseUpTriggerRef: d, initialCursorPointRef: f, rootId: p } = pn(!1), { store: m } = nn(!1), h = m.useState("open"), g = m.useState("disabled"), _ = H.useRef(null), v = H.useRef(null), y = te(), b = te(), x = H.useRef(!1);
|
|
38031
38031
|
function S(e, t, n) {
|
|
38032
38032
|
let r = n.type.startsWith("touch");
|
|
38033
38033
|
f.current = {
|
|
@@ -39649,7 +39649,7 @@ var e$ = /* @__PURE__ */ Na(function({ nodeStore: e, inputConnected: t = !1, out
|
|
|
39649
39649
|
E.hasOutput,
|
|
39650
39650
|
O
|
|
39651
39651
|
]);
|
|
39652
|
-
let
|
|
39652
|
+
let ee = r || e.nodeType == Ur.ErrorNode ? /* @__PURE__ */ Y("span", {
|
|
39653
39653
|
className: V(XQ.icon, XQ.errorIcon),
|
|
39654
39654
|
children: /* @__PURE__ */ Y("i", { className: r ? "i-codicon:warning" : D })
|
|
39655
39655
|
}) : /* @__PURE__ */ Y("span", {
|
|
@@ -39684,8 +39684,8 @@ var e$ = /* @__PURE__ */ Na(function({ nodeStore: e, inputConnected: t = !1, out
|
|
|
39684
39684
|
r ? /* @__PURE__ */ Y(qj, {
|
|
39685
39685
|
placement: "top",
|
|
39686
39686
|
title: i("nodeStatus.hasError"),
|
|
39687
|
-
children:
|
|
39688
|
-
}) :
|
|
39687
|
+
children: ee
|
|
39688
|
+
}) : ee,
|
|
39689
39689
|
/* @__PURE__ */ X("span", {
|
|
39690
39690
|
className: XQ.identity,
|
|
39691
39691
|
children: [/* @__PURE__ */ Y("strong", {
|
|
@@ -40949,21 +40949,23 @@ var D1 = [0], O1 = [1], k1 = [20, 20], A1 = { hideAttribution: !0 }, j1 = 200, M
|
|
|
40949
40949
|
e.displayMode$ && /* @__PURE__ */ Y(f1, { displayMode$: e.displayMode$ })
|
|
40950
40950
|
] });
|
|
40951
40951
|
}), R1 = (e) => {
|
|
40952
|
-
let t = hE(), n = EO();
|
|
40953
|
-
La(() => e.onInstance?.(t), [t, e.onInstance])
|
|
40954
|
-
|
|
40955
|
-
|
|
40956
|
-
|
|
40957
|
-
|
|
40958
|
-
|
|
40959
|
-
|
|
40960
|
-
|
|
40952
|
+
let t = hE(), n = EO(), r = K(!0);
|
|
40953
|
+
La(() => e.onInstance?.(t), [t, e.onInstance]), W(() => (r.current = !0, () => {
|
|
40954
|
+
r.current = !1;
|
|
40955
|
+
}), []);
|
|
40956
|
+
let [a, o] = q(!0), [s, c, l] = p1(), [u, d] = q(null), f = G(() => u && t.screenToFlowPosition({
|
|
40957
|
+
x: u.event.clientX,
|
|
40958
|
+
y: u.event.clientY
|
|
40959
|
+
}), [u, t]), [p, m] = q(null), h = G(() => p && t.screenToFlowPosition({
|
|
40960
|
+
x: p.event.clientX,
|
|
40961
|
+
y: p.event.clientY
|
|
40962
|
+
}), [p, t]), [g, _] = q(null), [v, y] = q(null), b = K(0);
|
|
40961
40963
|
W(() => () => {
|
|
40962
|
-
cancelAnimationFrame(
|
|
40964
|
+
cancelAnimationFrame(b.current);
|
|
40963
40965
|
}, []), W(() => {
|
|
40964
|
-
|
|
40966
|
+
y(e.addNodeRequest == null ? null : { position: e.addNodeRequest.position });
|
|
40965
40967
|
}, [e.addNodeRequest]);
|
|
40966
|
-
let
|
|
40968
|
+
let S = U((n, r) => {
|
|
40967
40969
|
if (e.onAddNode && e.provideAddNodeMenuItems && !r.isValid && r.from && r.fromNode && r.fromHandle?.id && "clientX" in n) {
|
|
40968
40970
|
let i = t.screenToFlowPosition({
|
|
40969
40971
|
x: n.clientX,
|
|
@@ -40992,31 +40994,31 @@ var D1 = [0], O1 = [1], k1 = [20, 20], A1 = { hideAttribution: !0 }, j1 = 200, M
|
|
|
40992
40994
|
sourceHandle: r.fromHandle.id
|
|
40993
40995
|
}
|
|
40994
40996
|
};
|
|
40995
|
-
cancelAnimationFrame(
|
|
40997
|
+
cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => y(a));
|
|
40996
40998
|
}
|
|
40997
40999
|
}, [
|
|
40998
41000
|
t,
|
|
40999
41001
|
e.onAddHandle,
|
|
41000
41002
|
e.onAddNode,
|
|
41001
41003
|
e.provideAddNodeMenuItems
|
|
41002
|
-
]),
|
|
41004
|
+
]), C = $i(e.editable), w = x(e.interactiveMode$), T = w === "mouse", E = x(e.displayMode$) == "overview", { nodes: D, edges: O } = x(e.graph$), k = G(() => JSON.stringify([E, O.map((e) => [
|
|
41003
41005
|
e.id,
|
|
41004
41006
|
e.source,
|
|
41005
41007
|
e.sourceHandle,
|
|
41006
41008
|
e.target,
|
|
41007
41009
|
e.targetHandle
|
|
41008
|
-
])]), [
|
|
41010
|
+
])]), [E, O]), [A, j] = q(() => O.length == 0 ? k : "");
|
|
41009
41011
|
W(() => {
|
|
41010
|
-
let e = requestAnimationFrame(() =>
|
|
41012
|
+
let e = requestAnimationFrame(() => j(k));
|
|
41011
41013
|
return () => cancelAnimationFrame(e);
|
|
41012
|
-
}, [
|
|
41013
|
-
let
|
|
41014
|
-
|
|
41015
|
-
let
|
|
41014
|
+
}, [k]);
|
|
41015
|
+
let M = A == k ? O : [], N = K([]);
|
|
41016
|
+
N.current = D.map((e) => e.id);
|
|
41017
|
+
let P = K(!1), [F, I] = q(!1), [L, ee] = q(!1), te = U(() => ee(!0), []);
|
|
41016
41018
|
W(() => {
|
|
41017
41019
|
let r = 0, i, a = 0, o = () => {
|
|
41018
41020
|
let n = e.onDisplayModeMeasured?.();
|
|
41019
|
-
n === !1 && a++ < 5 ? r = requestAnimationFrame(o) : n === "relayout" && (
|
|
41021
|
+
n === !1 && a++ < 5 ? r = requestAnimationFrame(o) : n === "relayout" && (te(), i = setTimeout(() => {
|
|
41020
41022
|
t.fitView({
|
|
41021
41023
|
padding: .15,
|
|
41022
41024
|
duration: 150,
|
|
@@ -41024,48 +41026,53 @@ var D1 = [0], O1 = [1], k1 = [20, 20], A1 = { hideAttribution: !0 }, j1 = 200, M
|
|
|
41024
41026
|
});
|
|
41025
41027
|
}, 100));
|
|
41026
41028
|
}, s = requestAnimationFrame(() => {
|
|
41027
|
-
n(
|
|
41029
|
+
n(N.current), r = requestAnimationFrame(o);
|
|
41028
41030
|
}), c, l = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
41029
|
-
return
|
|
41031
|
+
return P.current && !l ? (I(!0), c = setTimeout(() => I(!1), j1)) : P.current = !0, d(null), y(null), () => {
|
|
41030
41032
|
cancelAnimationFrame(s), cancelAnimationFrame(r), i && clearTimeout(i), c && clearTimeout(c);
|
|
41031
41033
|
};
|
|
41032
41034
|
}, [
|
|
41033
|
-
|
|
41034
|
-
|
|
41035
|
+
te,
|
|
41036
|
+
E,
|
|
41035
41037
|
e.onDisplayModeMeasured,
|
|
41036
41038
|
t,
|
|
41037
41039
|
n
|
|
41038
41040
|
]);
|
|
41039
|
-
let
|
|
41040
|
-
z.current =
|
|
41041
|
-
let
|
|
41041
|
+
let R = x(e.viewport$), z = K(R);
|
|
41042
|
+
z.current = R || z.current;
|
|
41043
|
+
let ne = U((t) => {
|
|
41044
|
+
let n = e.viewport$.value;
|
|
41045
|
+
(n == null || n.x != t.x || n.y != t.y || n.zoom != t.zoom) && e.viewport$.set(t);
|
|
41046
|
+
}, [e.viewport$]), re = U((t) => {
|
|
41047
|
+
r.current && e.onInit?.(t);
|
|
41048
|
+
}, [e.onInit]), ie = gT(M1, N1), ae = G(() => i(e.viewport$, (e) => l$(e || z.current, ie), { equal: P1 }), [e.viewport$, ie]), oe = x(e.focused$), se = oe === void 0 ? a : oe;
|
|
41042
41049
|
W(() => {
|
|
41043
|
-
if (
|
|
41044
|
-
let e = setTimeout(() =>
|
|
41050
|
+
if (L) {
|
|
41051
|
+
let e = setTimeout(() => ee(!1), 200);
|
|
41045
41052
|
return () => clearTimeout(e);
|
|
41046
41053
|
}
|
|
41047
|
-
}, [
|
|
41048
|
-
let
|
|
41049
|
-
|
|
41054
|
+
}, [L]);
|
|
41055
|
+
let ce = U((t) => {
|
|
41056
|
+
l(t, D), e.onNodesChange(t);
|
|
41050
41057
|
}, [
|
|
41051
|
-
|
|
41058
|
+
l,
|
|
41052
41059
|
e.onNodesChange,
|
|
41053
|
-
|
|
41054
|
-
]),
|
|
41055
|
-
let n =
|
|
41060
|
+
D
|
|
41061
|
+
]), le = U((t) => {
|
|
41062
|
+
let n = D.find((e) => e.id === t.source);
|
|
41056
41063
|
if (t.targetHandle) {
|
|
41057
|
-
let e = (
|
|
41064
|
+
let e = (D.find((e) => e.id === t.target)?.data?.store)?.display$.inputs_from?.value?.find((e) => e.handle === Of(t.targetHandle))?.from_node ?? [], r = e.some((e) => D.some((t) => Ef(t.id) === e.node_id && t.type === Ur.TriggerNode));
|
|
41058
41065
|
if (n?.type === Ur.TriggerNode && e.length > 0 || r) return !1;
|
|
41059
41066
|
}
|
|
41060
41067
|
if (n?.type === Ur.ValueNode && t.targetHandle) {
|
|
41061
|
-
let e =
|
|
41068
|
+
let e = D.find((e) => e.id === t.target);
|
|
41062
41069
|
if (e?.type === Ur.TaskNode) {
|
|
41063
41070
|
let n = e.data?.store;
|
|
41064
41071
|
if (n) return !n.handleHasValueNodeConnected(Of(t.targetHandle));
|
|
41065
41072
|
}
|
|
41066
41073
|
}
|
|
41067
41074
|
return e.isValidConnection?.(t) ?? !0;
|
|
41068
|
-
}, [
|
|
41075
|
+
}, [D, e.isValidConnection]), ue = U((n) => {
|
|
41069
41076
|
let r = Nu(n.dataTransfer);
|
|
41070
41077
|
if (r != "" && e.onDropAddItem != null) {
|
|
41071
41078
|
n.preventDefault(), e.onDropAddItem(r, t.screenToFlowPosition({
|
|
@@ -41093,122 +41100,122 @@ var D1 = [0], O1 = [1], k1 = [20, 20], A1 = { hideAttribution: !0 }, j1 = 200, M
|
|
|
41093
41100
|
t,
|
|
41094
41101
|
e.onAddNode,
|
|
41095
41102
|
e.onDropAddItem
|
|
41096
|
-
]),
|
|
41097
|
-
return W(() => () =>
|
|
41098
|
-
value:
|
|
41103
|
+
]), de = G(() => new u$(), []);
|
|
41104
|
+
return W(() => () => de.dispose(), [de]), /* @__PURE__ */ Y(d$.Provider, {
|
|
41105
|
+
value: de,
|
|
41099
41106
|
children: /* @__PURE__ */ Y(a$.Provider, {
|
|
41100
|
-
value:
|
|
41107
|
+
value: ae,
|
|
41101
41108
|
children: /* @__PURE__ */ X(xO, {
|
|
41102
|
-
className: V(E$.flow, vf,
|
|
41109
|
+
className: V(E$.flow, vf, w, L && "oo-designer-fitting-view", F && E$.switchingDisplayMode),
|
|
41103
41110
|
style: { "--display-mode-transition-duration": `${j1}ms` },
|
|
41104
41111
|
colorMode: e.dark ? "dark" : "light",
|
|
41105
41112
|
tabIndex: -1,
|
|
41106
41113
|
proOptions: A1,
|
|
41107
41114
|
nodeTypes: e.nodeTypes,
|
|
41108
41115
|
edgeTypes: e.edgeTypes,
|
|
41109
|
-
nodes:
|
|
41110
|
-
edges:
|
|
41116
|
+
nodes: D,
|
|
41117
|
+
edges: M,
|
|
41111
41118
|
onBeforeDelete: e.onBeforeDelete,
|
|
41112
|
-
onNodesChange:
|
|
41113
|
-
onEdgesChange:
|
|
41114
|
-
fitView: e.fitView || !
|
|
41119
|
+
onNodesChange: ce,
|
|
41120
|
+
onEdgesChange: E ? void 0 : e.onEdgesChange,
|
|
41121
|
+
fitView: e.fitView || !R,
|
|
41115
41122
|
fitViewOptions: e.fitViewOptions,
|
|
41116
|
-
viewport:
|
|
41123
|
+
viewport: R,
|
|
41124
|
+
onViewportChange: ne,
|
|
41117
41125
|
maxZoom: 3,
|
|
41118
41126
|
minZoom: .1,
|
|
41119
|
-
nodesConnectable: !
|
|
41120
|
-
onEdgeContextMenu:
|
|
41127
|
+
nodesConnectable: !E && C && e.onConnect != null,
|
|
41128
|
+
onEdgeContextMenu: E ? void 0 : (e, t) => (e.preventDefault(), d({
|
|
41121
41129
|
edge: t,
|
|
41122
41130
|
event: e
|
|
41123
41131
|
})),
|
|
41124
|
-
onSelectionContextMenu: (e, t) => (e.preventDefault(),
|
|
41132
|
+
onSelectionContextMenu: (e, t) => (e.preventDefault(), m({
|
|
41125
41133
|
nodes: t,
|
|
41126
41134
|
event: e
|
|
41127
41135
|
})),
|
|
41128
|
-
onPaneContextMenu: (e) => (e.preventDefault(),
|
|
41136
|
+
onPaneContextMenu: (e) => (e.preventDefault(), _(t.screenToFlowPosition({
|
|
41129
41137
|
x: e.clientX,
|
|
41130
41138
|
y: e.clientY
|
|
41131
41139
|
}))),
|
|
41132
|
-
onConnectEnd:
|
|
41133
|
-
isValidConnection:
|
|
41134
|
-
onConnect: !
|
|
41135
|
-
onDragOver:
|
|
41136
|
-
onDrop:
|
|
41137
|
-
onMove: (t, n) => e.viewport$.set(n),
|
|
41140
|
+
onConnectEnd: E ? void 0 : S,
|
|
41141
|
+
isValidConnection: le,
|
|
41142
|
+
onConnect: !E && C ? e.onConnect : void 0,
|
|
41143
|
+
onDragOver: C && (e.onAddNode != null || e.onDropAddItem != null) ? z1 : void 0,
|
|
41144
|
+
onDrop: C && (e.onAddNode != null || e.onDropAddItem != null) ? ue : void 0,
|
|
41138
41145
|
onMoveEnd: e.onMoveEnd,
|
|
41139
41146
|
onNodeDragStop: e.onNodeDragStop,
|
|
41140
41147
|
onSelectionChange: e.onSelectionChange,
|
|
41141
|
-
onFocus: () =>
|
|
41142
|
-
onBlur: () =>
|
|
41143
|
-
deleteKeyCode:
|
|
41148
|
+
onFocus: () => o(!0),
|
|
41149
|
+
onBlur: () => o(!1),
|
|
41150
|
+
deleteKeyCode: C && se && (e.canDeleteNodes ?? !0) ? ["Backspace", "Delete"] : null,
|
|
41144
41151
|
zoomActivationKeyCode: null,
|
|
41145
41152
|
zoomOnDoubleClick: !1,
|
|
41146
41153
|
selectionMode: CS.Partial,
|
|
41147
|
-
panOnDrag:
|
|
41148
|
-
panOnScroll: !
|
|
41149
|
-
zoomOnScroll:
|
|
41150
|
-
selectionKeyCode: $i(
|
|
41151
|
-
selectionOnDrag: !
|
|
41154
|
+
panOnDrag: T ? D1 : O1,
|
|
41155
|
+
panOnScroll: !T,
|
|
41156
|
+
zoomOnScroll: T,
|
|
41157
|
+
selectionKeyCode: $i(T) && "Shift",
|
|
41158
|
+
selectionOnDrag: !T,
|
|
41152
41159
|
connectOnClick: !1,
|
|
41153
|
-
onInit:
|
|
41160
|
+
onInit: re,
|
|
41154
41161
|
connectionLineComponent: e1,
|
|
41155
|
-
"aria-readonly": !
|
|
41162
|
+
"aria-readonly": !C,
|
|
41156
41163
|
children: [
|
|
41157
41164
|
/* @__PURE__ */ Y(L1, {
|
|
41158
41165
|
showSettings$: e.showSettings$,
|
|
41159
41166
|
miniMapExpanded$: e.miniMapExpanded$,
|
|
41160
41167
|
displayMode$: e.displayMode$,
|
|
41161
41168
|
interactiveMode$: e.interactiveMode$,
|
|
41162
|
-
onBeforeFitView:
|
|
41169
|
+
onBeforeFitView: te,
|
|
41163
41170
|
onRelayout: e.onRelayout,
|
|
41164
41171
|
onFitView: e.onFitView,
|
|
41165
41172
|
dottedBackground: e.dottedBackground
|
|
41166
41173
|
}),
|
|
41167
41174
|
/* @__PURE__ */ Y(_1, {
|
|
41168
|
-
horizontal:
|
|
41169
|
-
vertical:
|
|
41175
|
+
horizontal: s,
|
|
41176
|
+
vertical: c
|
|
41170
41177
|
}),
|
|
41171
41178
|
/* @__PURE__ */ Y(E1, {
|
|
41172
|
-
zoom:
|
|
41173
|
-
editable: !
|
|
41179
|
+
zoom: R?.zoom,
|
|
41180
|
+
editable: !E && e.editable
|
|
41174
41181
|
}),
|
|
41175
41182
|
e.children,
|
|
41176
41183
|
/* @__PURE__ */ X(TO, { children: [
|
|
41177
|
-
|
|
41178
|
-
position:
|
|
41179
|
-
edge:
|
|
41180
|
-
onClose: () =>
|
|
41184
|
+
u && f && /* @__PURE__ */ Y(H1, {
|
|
41185
|
+
position: f,
|
|
41186
|
+
edge: u.edge,
|
|
41187
|
+
onClose: () => d(null),
|
|
41181
41188
|
onDelete: () => e.onEdgesChange([{
|
|
41182
41189
|
type: "remove",
|
|
41183
|
-
id:
|
|
41190
|
+
id: u.edge.id
|
|
41184
41191
|
}])
|
|
41185
41192
|
}),
|
|
41186
|
-
(e.canDeleteNodes ?? !0) &&
|
|
41187
|
-
position:
|
|
41188
|
-
nodes:
|
|
41189
|
-
onClose: () =>
|
|
41193
|
+
(e.canDeleteNodes ?? !0) && p && h && /* @__PURE__ */ Y(W1, {
|
|
41194
|
+
position: h,
|
|
41195
|
+
nodes: p.nodes,
|
|
41196
|
+
onClose: () => m(null),
|
|
41190
41197
|
onDelete: async () => {
|
|
41191
41198
|
await e.onBeforeDelete({
|
|
41192
|
-
nodes:
|
|
41199
|
+
nodes: p.nodes,
|
|
41193
41200
|
edges: []
|
|
41194
|
-
}) && e.onNodesChange(
|
|
41201
|
+
}) && e.onNodesChange(p.nodes.map((e) => ({
|
|
41195
41202
|
type: "remove",
|
|
41196
41203
|
id: e.id
|
|
41197
41204
|
})));
|
|
41198
41205
|
},
|
|
41199
41206
|
duplicateNodes: e.duplicateNodes
|
|
41200
41207
|
}),
|
|
41201
|
-
|
|
41202
|
-
position:
|
|
41203
|
-
onClose: () =>
|
|
41208
|
+
g && (e.onPaste || e.provideAddNodeMenuItems) && /* @__PURE__ */ Y(K1, {
|
|
41209
|
+
position: g,
|
|
41210
|
+
onClose: () => _(null),
|
|
41204
41211
|
onPaste: e.onPaste,
|
|
41205
|
-
onAddNode: e.provideAddNodeMenuItems && (() =>
|
|
41212
|
+
onAddNode: e.provideAddNodeMenuItems && (() => y({ position: g }))
|
|
41206
41213
|
}),
|
|
41207
|
-
|
|
41208
|
-
position:
|
|
41209
|
-
fromSource:
|
|
41210
|
-
connection:
|
|
41211
|
-
onClose: () =>
|
|
41214
|
+
v && e.provideAddNodeMenuItems && e.onAddNode && /* @__PURE__ */ Y(q1, {
|
|
41215
|
+
position: v.position,
|
|
41216
|
+
fromSource: v.fromSource,
|
|
41217
|
+
connection: v.connection,
|
|
41218
|
+
onClose: () => y(null),
|
|
41212
41219
|
provideItems: e.provideAddNodeMenuItems,
|
|
41213
41220
|
provideAsyncItems: e.provideAsyncAddNodeMenuItems,
|
|
41214
41221
|
onAddNode: e.onAddNode,
|
|
@@ -41787,21 +41794,22 @@ var s0 = class {
|
|
|
41787
41794
|
#e;
|
|
41788
41795
|
#t;
|
|
41789
41796
|
#n;
|
|
41790
|
-
#r
|
|
41791
|
-
#i;
|
|
41792
|
-
#a
|
|
41793
|
-
#o;
|
|
41794
|
-
#s
|
|
41795
|
-
#c;
|
|
41796
|
-
#l
|
|
41797
|
-
#u;
|
|
41797
|
+
#r;
|
|
41798
|
+
#i = /* @__PURE__ */ new Map();
|
|
41799
|
+
#a;
|
|
41800
|
+
#o = /* @__PURE__ */ new Map();
|
|
41801
|
+
#s;
|
|
41802
|
+
#c = /* @__PURE__ */ new Map();
|
|
41803
|
+
#l;
|
|
41804
|
+
#u = /* @__PURE__ */ new Set();
|
|
41798
41805
|
#d;
|
|
41799
41806
|
#f;
|
|
41800
41807
|
#p;
|
|
41808
|
+
#m;
|
|
41801
41809
|
constructor(e, t, n, r, i) {
|
|
41802
|
-
this.#e = r, this.#t = i, this.#
|
|
41810
|
+
this.#e = r, this.#t = i, this.#a = s(n);
|
|
41803
41811
|
let a = uf(null, { onDeleted: da }), o = uf(null, { onDeleted: da }), c = s(e.viewport);
|
|
41804
|
-
this.#
|
|
41812
|
+
this.#l = s(e.runStatus == "running" ? AA.Running : AA.Idle), this.#d = s(o0(e.nodes)), this.#f = s(e.variableNames ?? []), this.#p = s(e.variableNamesLoaded ?? !1), this.#m = s(e.variableNamesLoading ?? !1);
|
|
41805
41813
|
let l = new Bf({
|
|
41806
41814
|
commentNodeStores: o,
|
|
41807
41815
|
viewport: c,
|
|
@@ -41810,7 +41818,7 @@ var s0 = class {
|
|
|
41810
41818
|
this.store = new jA({
|
|
41811
41819
|
readonly: !t,
|
|
41812
41820
|
displayMode: s("detail"),
|
|
41813
|
-
lang$: this.#
|
|
41821
|
+
lang$: this.#a,
|
|
41814
41822
|
rfCommand: MA(a),
|
|
41815
41823
|
designerUIStore: l,
|
|
41816
41824
|
nodes: a,
|
|
@@ -41819,11 +41827,11 @@ var s0 = class {
|
|
|
41819
41827
|
miniMapExpanded: s(),
|
|
41820
41828
|
interactiveMode: s("touchpad"),
|
|
41821
41829
|
settingsPanelWidth: s(),
|
|
41822
|
-
runStatus: this.#
|
|
41823
|
-
variableInputs: this.#
|
|
41824
|
-
variableNames: this.#
|
|
41825
|
-
variableNamesLoaded: this.#
|
|
41826
|
-
variableNamesLoading: this.#
|
|
41830
|
+
runStatus: this.#l,
|
|
41831
|
+
variableInputs: this.#d,
|
|
41832
|
+
variableNames: this.#f,
|
|
41833
|
+
variableNamesLoaded: this.#p,
|
|
41834
|
+
variableNamesLoading: this.#m,
|
|
41827
41835
|
display$: {
|
|
41828
41836
|
description: s(),
|
|
41829
41837
|
icon: s(),
|
|
@@ -41851,16 +41859,16 @@ var s0 = class {
|
|
|
41851
41859
|
onOpenVariables: () => this.#t.onOpenVariables?.(),
|
|
41852
41860
|
onDeleteNodes: (e) => {
|
|
41853
41861
|
let t = [...e].map((e) => e.nodeId), n = new Set(t);
|
|
41854
|
-
for (let [e, t] of this.#
|
|
41862
|
+
for (let [e, t] of this.#c) (n.has(t.source) || n.has(t.target)) && this.#c.delete(e);
|
|
41855
41863
|
this.#t.onDeleteNodes(t);
|
|
41856
41864
|
},
|
|
41857
41865
|
onDisconnect: (e) => {
|
|
41858
41866
|
for (let t of e) {
|
|
41859
41867
|
if (t.from.type != "from_node" || t.to.type != "to_node") continue;
|
|
41860
41868
|
let e = S0(t.from.source.node_id, t.from.source.output_handle, t.to.target.node_id, t.to.target.input_handle);
|
|
41861
|
-
this.#
|
|
41869
|
+
this.#c.set(e.id, e);
|
|
41862
41870
|
}
|
|
41863
|
-
this.#n == null && this.#
|
|
41871
|
+
this.#n == null && this.#c.size > 0 && (this.#n = setTimeout(() => this.#g(), 0));
|
|
41864
41872
|
},
|
|
41865
41873
|
onDuplicate: async (e, t) => {
|
|
41866
41874
|
let n = Object.fromEntries(e.flatMap((e) => {
|
|
@@ -41870,37 +41878,49 @@ var s0 = class {
|
|
|
41870
41878
|
this.#t.onDuplicate(e, t, n);
|
|
41871
41879
|
},
|
|
41872
41880
|
onPaste: (e) => this.#t.onPaste(e),
|
|
41873
|
-
provideAddNodeMenuItems: (e) => this.#
|
|
41881
|
+
provideAddNodeMenuItems: (e) => this.#_(e),
|
|
41874
41882
|
provideAsyncAddNodeMenuItems: async (e, t, n) => {
|
|
41875
41883
|
let r = await this.#t.provideAddItems?.(t, n);
|
|
41876
|
-
return r == null ? void 0 : this.#
|
|
41884
|
+
return r == null ? void 0 : this.#v(r, e);
|
|
41877
41885
|
}
|
|
41878
|
-
}), this.store.dispose.add(a), this.store.dispose.add(o), this.store.dispose.add(this.#
|
|
41886
|
+
}), this.store.dispose.add(a), this.store.dispose.add(o), this.store.dispose.add(this.#a), this.#y(e), l.loadDesignerUIData({ layouts: e.layouts }, "detail"), this.store.switchDisplayMode("overview");
|
|
41879
41887
|
}
|
|
41880
|
-
|
|
41881
|
-
this.#n != null && clearTimeout(this.#n), this.#n = void 0, this.#
|
|
41888
|
+
#h() {
|
|
41889
|
+
this.#n != null && clearTimeout(this.#n), this.#n = void 0, this.#c.clear();
|
|
41890
|
+
}
|
|
41891
|
+
mount() {
|
|
41892
|
+
return this.#r != null && clearTimeout(this.#r), this.#r = void 0, () => {
|
|
41893
|
+
this.#h(), this.#r = setTimeout(() => {
|
|
41894
|
+
this.#r = void 0, this.store.dispose();
|
|
41895
|
+
}, 0);
|
|
41896
|
+
};
|
|
41897
|
+
}
|
|
41898
|
+
setCallbacks(e) {
|
|
41899
|
+
Object.assign(this.#t, e);
|
|
41882
41900
|
}
|
|
41883
41901
|
focusNode(e, t) {
|
|
41884
41902
|
this.store.rfCommand.send("focusNode", e, { duration: t });
|
|
41885
41903
|
}
|
|
41886
|
-
#
|
|
41904
|
+
#g() {
|
|
41887
41905
|
this.#n = void 0;
|
|
41888
|
-
let e = [...this.#
|
|
41889
|
-
this.#
|
|
41906
|
+
let e = [...this.#c.values()];
|
|
41907
|
+
this.#c.clear();
|
|
41890
41908
|
for (let t of e) this.#t.onDisconnect(t);
|
|
41891
41909
|
}
|
|
41892
|
-
reconcile(e, t, n, r
|
|
41893
|
-
this.#e = r,
|
|
41894
|
-
|
|
41895
|
-
|
|
41896
|
-
|
|
41897
|
-
|
|
41910
|
+
reconcile(e, t, n, r) {
|
|
41911
|
+
this.#e = r, this.store.$.editable.value != t && this.store.$$.editable.set(t), this.#a.value != n && this.#a.set(n), this.#y(e);
|
|
41912
|
+
}
|
|
41913
|
+
setSelection(e) {
|
|
41914
|
+
let t = new Set(e), n = t.size != this.#u.size || [...t].some((e) => !this.#u.has(e));
|
|
41915
|
+
if (this.#u = t, n) for (let [e, n] of this.#i) {
|
|
41916
|
+
let r = t.has(e);
|
|
41917
|
+
n.store.$.selected.value != r && n.store.$$.selected.set(r);
|
|
41898
41918
|
}
|
|
41899
41919
|
}
|
|
41900
|
-
#
|
|
41901
|
-
return this.#
|
|
41920
|
+
#_(e) {
|
|
41921
|
+
return this.#v(this.#e, e);
|
|
41902
41922
|
}
|
|
41903
|
-
#
|
|
41923
|
+
#v(e, t) {
|
|
41904
41924
|
let n = [], r, i = (e, n) => t == null ? void 0 : (t.side == "left" ? n : e).map((e) => ({
|
|
41905
41925
|
description: e.description,
|
|
41906
41926
|
json_schema: e.jsonSchema,
|
|
@@ -41926,28 +41946,28 @@ var s0 = class {
|
|
|
41926
41946
|
});
|
|
41927
41947
|
return n;
|
|
41928
41948
|
}
|
|
41929
|
-
#
|
|
41949
|
+
#y(e) {
|
|
41930
41950
|
let t = e.runStatus == "running" ? AA.Running : AA.Idle;
|
|
41931
|
-
this.#
|
|
41932
|
-
let n = o0(e.nodes), r = this.#
|
|
41951
|
+
this.#l.value != t && this.#l.set(t);
|
|
41952
|
+
let n = o0(e.nodes), r = this.#d.value;
|
|
41933
41953
|
(n.size != r.size || [...n].some(([e, t]) => {
|
|
41934
41954
|
let n = r.get(e);
|
|
41935
41955
|
return n == null || n.compatible != t.compatible || n.enabled != t.enabled || n.name != t.name;
|
|
41936
|
-
})) && this.#
|
|
41937
|
-
let i = e.variableNames ?? [], a = this.#
|
|
41938
|
-
(i.length != a.length || i.some((e, t) => e != a[t])) && this.#
|
|
41956
|
+
})) && this.#d.set(n);
|
|
41957
|
+
let i = e.variableNames ?? [], a = this.#f.value;
|
|
41958
|
+
(i.length != a.length || i.some((e, t) => e != a[t])) && this.#f.set(i);
|
|
41939
41959
|
let o = e.variableNamesLoaded ?? !1;
|
|
41940
|
-
this.#
|
|
41960
|
+
this.#p.value != o && this.#p.set(o);
|
|
41941
41961
|
let s = e.variableNamesLoading ?? !1;
|
|
41942
|
-
this.#
|
|
41962
|
+
this.#m.value != s && this.#m.set(s), (this.#s == null || this.#s.x != e.viewport.x || this.#s.y != e.viewport.y || this.#s.zoom != e.viewport.zoom) && (this.store.$$.viewport.set(e.viewport), this.#s = { ...e.viewport });
|
|
41943
41963
|
let c = c0(e.nodes), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
|
|
41944
41964
|
for (let t of e.nodes) {
|
|
41945
|
-
let e = [...c.get(t.id) ?? []].toSorted(), { position: n, ...r } = t, i = JSON.stringify([r, e]), a = this.#
|
|
41965
|
+
let e = [...c.get(t.id) ?? []].toSorted(), { position: n, ...r } = t, i = JSON.stringify([r, e]), a = this.#i.get(t.id), o = !1;
|
|
41946
41966
|
if (a?.kind != t.kind && (a = void 0), a?.kind != "comment" && a?.editable != this.store.$.editable.value && (a = void 0), t.kind == "comment") {
|
|
41947
41967
|
if (a?.kind != "comment") a = v0(t, i, this.store.designerUIStore, this.store, this.#t), o = !0;
|
|
41948
41968
|
else {
|
|
41949
41969
|
a.contentKey != i && (a = y0(a, t, i));
|
|
41950
|
-
let e = this.#
|
|
41970
|
+
let e = this.#o.get(t.id);
|
|
41951
41971
|
(e == null || e.x != n.x || e.y != n.y) && a.store.$$.position.set(n);
|
|
41952
41972
|
}
|
|
41953
41973
|
u.set(t.id, a.store);
|
|
@@ -41955,12 +41975,12 @@ var s0 = class {
|
|
|
41955
41975
|
else {
|
|
41956
41976
|
if (a.kind == "comment") throw Error("Unexpected Comment node entry.");
|
|
41957
41977
|
a.contentKey != i && (a = x0(a, t, e, i));
|
|
41958
|
-
let r = this.#
|
|
41978
|
+
let r = this.#o.get(t.id);
|
|
41959
41979
|
(r == null || r.x != n.x || r.y != n.y) && a.store.$$.position.set(n);
|
|
41960
41980
|
}
|
|
41961
|
-
o && this.#
|
|
41981
|
+
o && this.#u.has(t.id) && a.store.$$.selected.set(!0), l.set(t.id, a), a.kind != "comment" && d.set(t.id, a.store), f.set(t.id, n);
|
|
41962
41982
|
}
|
|
41963
|
-
(d.size != this.store.$.nodes.size || [...d].some(([e, t]) => this.store.$.nodes.get(e) !== t)) && this.store.$$.nodes.replace(d), (u.size != this.store.$.commentNodes.size || [...u].some(([e, t]) => this.store.$.commentNodes.get(e) !== t)) && this.store.$$.commentNodes.replace(u), this.#
|
|
41983
|
+
(d.size != this.store.$.nodes.size || [...d].some(([e, t]) => this.store.$.nodes.get(e) !== t)) && this.store.$$.nodes.replace(d), (u.size != this.store.$.commentNodes.size || [...u].some(([e, t]) => this.store.$.commentNodes.get(e) !== t)) && this.store.$$.commentNodes.replace(u), this.#i = l, this.#o = f;
|
|
41964
41984
|
}
|
|
41965
41985
|
};
|
|
41966
41986
|
function c0(e) {
|
|
@@ -42459,9 +42479,15 @@ function w0(e) {
|
|
|
42459
42479
|
}) ?? !0, []), c = U((e, t) => {
|
|
42460
42480
|
n.current.onAddNode(e, t);
|
|
42461
42481
|
}, []);
|
|
42462
|
-
return W(() =>
|
|
42463
|
-
t.reconcile(e.model, e.editable, e.language ?? "en", e.addItems
|
|
42464
|
-
}, [
|
|
42482
|
+
return W(() => t.mount(), [t]), La(() => t.setCallbacks(C0(e))), La(() => {
|
|
42483
|
+
t.reconcile(e.model, e.editable, e.language ?? "en", e.addItems);
|
|
42484
|
+
}, [
|
|
42485
|
+
t,
|
|
42486
|
+
e.addItems,
|
|
42487
|
+
e.editable,
|
|
42488
|
+
e.language,
|
|
42489
|
+
e.model
|
|
42490
|
+
]), La(() => t.setSelection(e.selectedNodeIds), [t, e.selectedNodeIds]), W(() => {
|
|
42465
42491
|
if (e.focusNodeRequest != null) {
|
|
42466
42492
|
let n = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
42467
42493
|
t.focusNode(e.focusNodeRequest.nodeId, n ? 0 : 150);
|
|
@@ -42477,7 +42503,7 @@ function w0(e) {
|
|
|
42477
42503
|
onNodeDragStop: a,
|
|
42478
42504
|
onDropAddItem: c,
|
|
42479
42505
|
onSelectionChange: o
|
|
42480
|
-
});
|
|
42506
|
+
}, e.identity);
|
|
42481
42507
|
}
|
|
42482
42508
|
//#endregion
|
|
42483
42509
|
//#region src/json-schema-subset/utils.ts
|
|
@@ -44761,24 +44787,24 @@ function $3(e) {
|
|
|
44761
44787
|
let t = e.target;
|
|
44762
44788
|
t instanceof Element && t.closest("a, button, input, label, select, textarea, [contenteditable=\"true\"], .react-select-container") || e.currentTarget.focus({ preventScroll: !0 });
|
|
44763
44789
|
}
|
|
44764
|
-
var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeRequest: r, inspectorOpen: i, model: a, onAddNode: o, onConnect: s, onChangeComment: c, onChangeCondition: l, onChangeNodeDescription: u, onChangeNodeIcon: d, onChangeNodeTitle: f, onChangeInput: p, onChangeInputVariable: m, onChangeTaskPorts: g, onChangeTriggerConfig: v, onChangeTriggerSchedule: y, onChangeWebhook: b, onChangeValue: x, onCopy: S, onDeleteEdge: C, onDeleteNodes: w, onDuplicate: T, onMoveNodes: E, onMoveViewport: D, onOpenBlocks: O, onOpenInspector: k, onOpenVariables: A, onPaste: j, provideAddNodeOptions: M, onSelectNodes: N, onToggleInspector: P, selectedNodeIds: F, target: I, theme: L },
|
|
44765
|
-
let
|
|
44790
|
+
var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeRequest: r, inspectorOpen: i, model: a, onAddNode: o, onConnect: s, onChangeComment: c, onChangeCondition: l, onChangeNodeDescription: u, onChangeNodeIcon: d, onChangeNodeTitle: f, onChangeInput: p, onChangeInputVariable: m, onChangeTaskPorts: g, onChangeTriggerConfig: v, onChangeTriggerSchedule: y, onChangeWebhook: b, onChangeValue: x, onCopy: S, onDeleteEdge: C, onDeleteNodes: w, onDuplicate: T, onMoveNodes: E, onMoveViewport: D, onOpenBlocks: O, onOpenInspector: k, onOpenVariables: A, onPaste: j, provideAddNodeOptions: M, onSelectNodes: N, onToggleInspector: P, selectedNodeIds: F, target: I, theme: L }, ee) {
|
|
44791
|
+
let te = _(), R = h(), [z, ne] = q(), [re, ie] = q(), ae = K(null), oe = K(/* @__PURE__ */ new Map()), se = K(0), ce = G(() => _n(e), [e]), le = G(() => {
|
|
44766
44792
|
let t = [...Q3(e)];
|
|
44767
44793
|
if (I?.kind != "flow") return t;
|
|
44768
44794
|
let n = t.findLastIndex((e) => e.type == "trigger"), r = n < 0 ? t.length : n + 1;
|
|
44769
44795
|
return t.splice(r, 0, {
|
|
44770
|
-
description:
|
|
44771
|
-
group:
|
|
44796
|
+
description: R("addNode.triggerBrowseDescription"),
|
|
44797
|
+
group: R("addNode.triggers"),
|
|
44772
44798
|
icon: ":carbon:events:",
|
|
44773
44799
|
id: Y3,
|
|
44774
44800
|
inputs: [],
|
|
44775
|
-
label:
|
|
44801
|
+
label: R("addNode.triggerBrowse"),
|
|
44776
44802
|
outputs: [],
|
|
44777
44803
|
type: "trigger"
|
|
44778
44804
|
}), t;
|
|
44779
44805
|
}, [
|
|
44780
44806
|
e,
|
|
44781
|
-
|
|
44807
|
+
R,
|
|
44782
44808
|
I?.kind
|
|
44783
44809
|
]), ue = K(!1), de = G(() => {
|
|
44784
44810
|
let e = new Map(a.nodes.map((e) => [e.id, e]));
|
|
@@ -44799,7 +44825,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44799
44825
|
}, [a.nodes]);
|
|
44800
44826
|
W(() => {
|
|
44801
44827
|
se.current++, ie(void 0), ne(void 0), oe.current.clear();
|
|
44802
|
-
}, [I?.kind == "subflow" ? I.id : void 0, I?.kind]), Ia(
|
|
44828
|
+
}, [I?.kind == "subflow" ? I.id : void 0, I?.kind]), Ia(ee, () => ({
|
|
44803
44829
|
focusCanvas: () => ae.current?.focus({ preventScroll: !0 }),
|
|
44804
44830
|
registerAddNodeOption: (e) => oe.current.set(e.id, e)
|
|
44805
44831
|
}), []);
|
|
@@ -44824,7 +44850,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44824
44850
|
}
|
|
44825
44851
|
};
|
|
44826
44852
|
return /* @__PURE__ */ X("section", {
|
|
44827
|
-
"aria-label":
|
|
44853
|
+
"aria-label": R("designer.flowDesigner"),
|
|
44828
44854
|
className: "canvas-panel workbench-designer",
|
|
44829
44855
|
onKeyDown: (e) => {
|
|
44830
44856
|
if (n || I == null || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) return;
|
|
@@ -44836,7 +44862,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44836
44862
|
tabIndex: 0,
|
|
44837
44863
|
children: [
|
|
44838
44864
|
/* @__PURE__ */ Y(w0, {
|
|
44839
|
-
addNodeRequest:
|
|
44865
|
+
addNodeRequest: z,
|
|
44840
44866
|
addItems: le,
|
|
44841
44867
|
className: "workbench-designer-canvas",
|
|
44842
44868
|
dark: L == "dark",
|
|
@@ -44844,7 +44870,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44844
44870
|
focusNodeRequest: r,
|
|
44845
44871
|
identity: I == null ? "empty" : I.kind == "flow" ? "flow" : `subflow:${I.id}`,
|
|
44846
44872
|
isValidConnection: de,
|
|
44847
|
-
language:
|
|
44873
|
+
language: te,
|
|
44848
44874
|
model: a,
|
|
44849
44875
|
onAddNode: async (e, t, n) => {
|
|
44850
44876
|
if (e == Y3) {
|
|
@@ -44890,7 +44916,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44890
44916
|
/* @__PURE__ */ X(VU, {
|
|
44891
44917
|
className: "designer-overlay top-left",
|
|
44892
44918
|
variant: "secondary",
|
|
44893
|
-
children: [/* @__PURE__ */ Y("span", { className: "status-dot neutral" }),
|
|
44919
|
+
children: [/* @__PURE__ */ Y("span", { className: "status-dot neutral" }), R("designer.draftBadge", { kind: R(I?.kind == "subflow" ? "common.subflow" : "common.flow") })]
|
|
44894
44920
|
}),
|
|
44895
44921
|
/* @__PURE__ */ X("div", {
|
|
44896
44922
|
className: "designer-actions designer-overlay top-right",
|
|
@@ -44900,7 +44926,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44900
44926
|
disabled: n || I == null,
|
|
44901
44927
|
onClick: (e) => O(e.currentTarget),
|
|
44902
44928
|
size: "default",
|
|
44903
|
-
title:
|
|
44929
|
+
title: R("designer.openBlocks"),
|
|
44904
44930
|
type: "button",
|
|
44905
44931
|
variant: "outline",
|
|
44906
44932
|
children: [
|
|
@@ -44909,7 +44935,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44909
44935
|
name: "plus"
|
|
44910
44936
|
}),
|
|
44911
44937
|
" ",
|
|
44912
|
-
|
|
44938
|
+
R("designer.addNode")
|
|
44913
44939
|
]
|
|
44914
44940
|
}),
|
|
44915
44941
|
(F.length > 0 || re != null) && /* @__PURE__ */ Y(B, {
|
|
@@ -44920,14 +44946,14 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44920
44946
|
size: "default",
|
|
44921
44947
|
type: "button",
|
|
44922
44948
|
variant: "destructive",
|
|
44923
|
-
children:
|
|
44949
|
+
children: R("designer.delete")
|
|
44924
44950
|
}),
|
|
44925
44951
|
/* @__PURE__ */ Y(B, {
|
|
44926
|
-
"aria-label":
|
|
44952
|
+
"aria-label": R("designer.toggleInspector"),
|
|
44927
44953
|
"aria-expanded": i,
|
|
44928
44954
|
onClick: (e) => P(e.currentTarget),
|
|
44929
44955
|
size: "icon",
|
|
44930
|
-
title:
|
|
44956
|
+
title: R("designer.toggleInspector"),
|
|
44931
44957
|
type: "button",
|
|
44932
44958
|
variant: "outline",
|
|
44933
44959
|
children: /* @__PURE__ */ Y(dt, { name: "panel" })
|
|
@@ -44944,10 +44970,10 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44944
44970
|
size: 22
|
|
44945
44971
|
})
|
|
44946
44972
|
}),
|
|
44947
|
-
/* @__PURE__ */ Y("strong", { children:
|
|
44973
|
+
/* @__PURE__ */ Y("strong", { children: R("designer.emptyTitle", { kind: R(I.kind == "flow" ? "common.flow" : "common.subflow") }) }),
|
|
44948
44974
|
/* @__PURE__ */ Y("span", {
|
|
44949
44975
|
className: "canvas-empty-description",
|
|
44950
|
-
children:
|
|
44976
|
+
children: R("designer.emptyDescription")
|
|
44951
44977
|
}),
|
|
44952
44978
|
/* @__PURE__ */ X(B, {
|
|
44953
44979
|
disabled: n,
|
|
@@ -44959,7 +44985,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44959
44985
|
name: "plus"
|
|
44960
44986
|
}),
|
|
44961
44987
|
" ",
|
|
44962
|
-
|
|
44988
|
+
R("designer.addFirstNode")
|
|
44963
44989
|
]
|
|
44964
44990
|
}),
|
|
44965
44991
|
me.length > 0 && /* @__PURE__ */ Y("div", {
|
|
@@ -44975,7 +45001,7 @@ var e6 = Aa(function({ addNodeOptions: e, blocksOpen: t, disabled: n, focusNodeR
|
|
|
44975
45001
|
}),
|
|
44976
45002
|
/* @__PURE__ */ Y("span", {
|
|
44977
45003
|
className: "canvas-empty-shortcut",
|
|
44978
|
-
children:
|
|
45004
|
+
children: R("designer.quickSearchHint")
|
|
44979
45005
|
})
|
|
44980
45006
|
]
|
|
44981
45007
|
})
|
|
@@ -45513,7 +45539,7 @@ function L6({ store: e }) {
|
|
|
45513
45539
|
tabIndex: 0,
|
|
45514
45540
|
children: n("publication.selectFlow")
|
|
45515
45541
|
});
|
|
45516
|
-
let
|
|
45542
|
+
let ee = p?.valid == 0, te = v?.publication?.publicationId;
|
|
45517
45543
|
return /* @__PURE__ */ X("section", {
|
|
45518
45544
|
"aria-labelledby": "workspace-tab-publications",
|
|
45519
45545
|
className: "publication-view",
|
|
@@ -45549,8 +45575,8 @@ function L6({ store: e }) {
|
|
|
45549
45575
|
className: "publication-precondition",
|
|
45550
45576
|
children: [m != null && /* @__PURE__ */ X("div", {
|
|
45551
45577
|
className: "publication-publish-action",
|
|
45552
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("strong", { children: n(v?.hasUnpublishedChanges ? "workspace.unpublishedChanges" : "publication.upToDate") }), v?.hasUnpublishedChanges && /* @__PURE__ */ Y("span", { children: n(
|
|
45553
|
-
disabled: c != null ||
|
|
45578
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("strong", { children: n(v?.hasUnpublishedChanges ? "workspace.unpublishedChanges" : "publication.upToDate") }), v?.hasUnpublishedChanges && /* @__PURE__ */ Y("span", { children: n(ee ? "workspace.fixIssuesToPublish" : "publication.publishDescription") })] }), v?.hasUnpublishedChanges && /* @__PURE__ */ X(B, {
|
|
45579
|
+
disabled: c != null || ee,
|
|
45554
45580
|
onClick: () => void e.publications.publish(),
|
|
45555
45581
|
children: [/* @__PURE__ */ Y(dt, {
|
|
45556
45582
|
"data-icon": "inline-start",
|
|
@@ -45764,7 +45790,7 @@ function L6({ store: e }) {
|
|
|
45764
45790
|
/* @__PURE__ */ Y("th", { children: n("publication.createdAt") }),
|
|
45765
45791
|
/* @__PURE__ */ Y("th", { "aria-label": n("publication.actions") })
|
|
45766
45792
|
] }) }), /* @__PURE__ */ Y("tbody", { children: T.map((r) => {
|
|
45767
|
-
let i = r.publicationId ==
|
|
45793
|
+
let i = r.publicationId == te, a = I == r.publicationId;
|
|
45768
45794
|
return /* @__PURE__ */ X(Ea, { children: [/* @__PURE__ */ X("tr", { children: [
|
|
45769
45795
|
/* @__PURE__ */ X("td", { children: [/* @__PURE__ */ X("span", {
|
|
45770
45796
|
className: "publication-operation",
|
|
@@ -45782,7 +45808,7 @@ function L6({ store: e }) {
|
|
|
45782
45808
|
dateTime: r.createdAt,
|
|
45783
45809
|
children: new Date(r.createdAt).toLocaleString(t)
|
|
45784
45810
|
}) }),
|
|
45785
|
-
/* @__PURE__ */ Y("td", { children: !i &&
|
|
45811
|
+
/* @__PURE__ */ Y("td", { children: !i && te != null && /* @__PURE__ */ Y(B, {
|
|
45786
45812
|
disabled: c != null,
|
|
45787
45813
|
onClick: () => L(a ? void 0 : r.publicationId),
|
|
45788
45814
|
size: "sm",
|
|
@@ -47319,9 +47345,9 @@ function G8({ onClose: e, onToggle: t, open: n, store: r, visible: i }) {
|
|
|
47319
47345
|
});
|
|
47320
47346
|
}
|
|
47321
47347
|
function K8({ onCloseRuns: e, onToggleRuns: t, runDrawerOpen: n, runDrawerVisible: r, store: i, theme: a }) {
|
|
47322
|
-
let o = h(), s = x(i.workspace.$.addNodeOptions), c = x(i.$.busy), l = x(i.$.designer), u = x(i.workspace.$.diagnosticFocus), d = x(i.workspace.$.draft), f = x(i.workspace.$.inspectorDiagnostics), p = x(i.workspace.$.nodeFocus), m = x(i.workspace.$.flowId), g = x(i.workspace.$.revision), _ = x(i.$.selectedDesignerNode), v = x(i.workspace.$.selection), y = x(i.workspace.$.selectedNodeIds), b = x(i.workspace.$.target), S = x(i.workspace.$.targetName), C = x(i.connectors.$.selectedAction), w = x(i.connectors.$.selectedActionError), T = x(i.connectors.$.actionLoading), E = x(i.connectors.$.selectedAuthorizationPending), D = x(i.connectors.$.selectedConnection), O = x(i.connectors.$.selectedConnectionError), k = x(i.connectors.$.connectionLoading), A = x(i.connectors.$.selectedActiveConnections), j = x(i.triggers.$.selectedAuthorizationPending), M = x(i.triggers.$.selectedConnection), N = x(i.triggers.$.selectedConnectionError), P = x(i.triggers.$.connectionLoading), F = x(i.triggers.$.selectedActiveConnections), [I, L] = q(), [
|
|
47348
|
+
let o = h(), s = x(i.workspace.$.addNodeOptions), c = x(i.$.busy), l = x(i.$.designer), u = x(i.workspace.$.diagnosticFocus), d = x(i.workspace.$.draft), f = x(i.workspace.$.inspectorDiagnostics), p = x(i.workspace.$.nodeFocus), m = x(i.workspace.$.flowId), g = x(i.workspace.$.revision), _ = x(i.$.selectedDesignerNode), v = x(i.workspace.$.selection), y = x(i.workspace.$.selectedNodeIds), b = x(i.workspace.$.target), S = x(i.workspace.$.targetName), C = x(i.connectors.$.selectedAction), w = x(i.connectors.$.selectedActionError), T = x(i.connectors.$.actionLoading), E = x(i.connectors.$.selectedAuthorizationPending), D = x(i.connectors.$.selectedConnection), O = x(i.connectors.$.selectedConnectionError), k = x(i.connectors.$.connectionLoading), A = x(i.connectors.$.selectedActiveConnections), j = x(i.triggers.$.selectedAuthorizationPending), M = x(i.triggers.$.selectedConnection), N = x(i.triggers.$.selectedConnectionError), P = x(i.triggers.$.connectionLoading), F = x(i.triggers.$.selectedActiveConnections), [I, L] = q(), [ee, te] = q(0), R = K(!1), z = K(0), ne = K(null), re = K(!1), ie = K();
|
|
47323
47349
|
W(() => {
|
|
47324
|
-
|
|
47350
|
+
R.current = !1, z.current = 0, re.current = !1, ie.current = void 0, L(void 0);
|
|
47325
47351
|
}, [
|
|
47326
47352
|
m,
|
|
47327
47353
|
b?.kind == "subflow" ? b.id : void 0,
|
|
@@ -47334,10 +47360,10 @@ function K8({ onCloseRuns: e, onToggleRuns: t, runDrawerOpen: n, runDrawerVisibl
|
|
|
47334
47360
|
e?.isConnected ? e.focus({ preventScroll: !0 }) : ne.current?.focusCanvas();
|
|
47335
47361
|
}, 0);
|
|
47336
47362
|
}, se = (e) => {
|
|
47337
|
-
ie.current = e, re.current = !1, L("blocks"),
|
|
47363
|
+
ie.current = e, re.current = !1, L("blocks"), te((e) => e + 1);
|
|
47338
47364
|
}, ce = () => {
|
|
47339
|
-
if (
|
|
47340
|
-
|
|
47365
|
+
if (R.current) {
|
|
47366
|
+
R.current = !1;
|
|
47341
47367
|
return;
|
|
47342
47368
|
}
|
|
47343
47369
|
ie.current = void 0, re.current = !1, L("inspector");
|
|
@@ -47348,17 +47374,17 @@ function K8({ onCloseRuns: e, onToggleRuns: t, runDrawerOpen: n, runDrawerVisibl
|
|
|
47348
47374
|
}
|
|
47349
47375
|
ie.current = e, re.current = !0, L("inspector");
|
|
47350
47376
|
}, ue = async (e) => {
|
|
47351
|
-
let t =
|
|
47377
|
+
let t = z.current * 32, n = {
|
|
47352
47378
|
x: (92 + t - l.viewport.x) / l.viewport.zoom,
|
|
47353
47379
|
y: (92 + t - l.viewport.y) / l.viewport.zoom
|
|
47354
47380
|
};
|
|
47355
|
-
|
|
47381
|
+
R.current = !0;
|
|
47356
47382
|
let r = !1;
|
|
47357
47383
|
try {
|
|
47358
47384
|
let t = await i.addNode(e, n);
|
|
47359
|
-
return t != null && (r = !0,
|
|
47385
|
+
return t != null && (r = !0, z.current++, L(e.kind == "connector" || e.kind == "trigger" ? "inspector" : "blocks")), t;
|
|
47360
47386
|
} finally {
|
|
47361
|
-
r || (
|
|
47387
|
+
r || (R.current = !1);
|
|
47362
47388
|
}
|
|
47363
47389
|
}, de = I != null && b != null && (I == "blocks" || g != null);
|
|
47364
47390
|
return /* @__PURE__ */ X("div", {
|
|
@@ -47416,7 +47442,7 @@ function K8({ onCloseRuns: e, onToggleRuns: t, runDrawerOpen: n, runDrawerVisibl
|
|
|
47416
47442
|
children: I == "blocks" ? /* @__PURE__ */ Y(cd, {
|
|
47417
47443
|
browseOptions: i.browseAddNodeOptions,
|
|
47418
47444
|
disabled: ae,
|
|
47419
|
-
focusRequest:
|
|
47445
|
+
focusRequest: ee,
|
|
47420
47446
|
onAdd: ue,
|
|
47421
47447
|
onRegisterDragOption: (e) => ne.current?.registerAddNodeOption(e),
|
|
47422
47448
|
options: s,
|