@keycloak/keycloak-admin-ui 26.7.5 → 26.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/lib/.vite/manifest.json +52 -42
- package/lib/{AddDefaultTrust-BvsWwMDh.js → AddDefaultTrust-CmFBoVLh.js} +8 -8
- package/lib/{AddDefaultTrust-BvsWwMDh.js.map → AddDefaultTrust-CmFBoVLh.js.map} +1 -1
- package/lib/{AddJWTAuthorizationGrant-ByBPPwyK.js → AddJWTAuthorizationGrant-10wBuQUL.js} +12 -12
- package/lib/{AddJWTAuthorizationGrant-ByBPPwyK.js.map → AddJWTAuthorizationGrant-10wBuQUL.js.map} +1 -1
- package/lib/{AddKubernetesConnect-D4xTogVo.js → AddKubernetesConnect-CcEeza2C.js} +14 -11
- package/lib/AddKubernetesConnect-CcEeza2C.js.map +1 -0
- package/lib/{AddOAuth2-BDmTZ-YA.js → AddOAuth2-BBzSU5dK.js} +13 -13
- package/lib/{AddOAuth2-BDmTZ-YA.js.map → AddOAuth2-BBzSU5dK.js.map} +1 -1
- package/lib/AddOid4Vp-bpNno26D.js +73 -0
- package/lib/AddOid4Vp-bpNno26D.js.map +1 -0
- package/lib/{AddSpiffeConnect-B6_E1i6Z.js → AddSpiffeConnect-DDjtR--d.js} +8 -8
- package/lib/{AddSpiffeConnect-B6_E1i6Z.js.map → AddSpiffeConnect-DDjtR--d.js.map} +1 -1
- package/lib/{CreateFlow-C5QWzOsy.js → CreateFlow-BE5SrsQ8.js} +2 -2
- package/lib/{CreateFlow-C5QWzOsy.js.map → CreateFlow-BE5SrsQ8.js.map} +1 -1
- package/lib/DetailOrganization-Bu32j7ib.js +420 -0
- package/lib/DetailOrganization-Bu32j7ib.js.map +1 -0
- package/lib/{ExecutorForm-n3e9Qvrl.js → ExecutorForm-Dh_cpjdf.js} +23 -23
- package/lib/{ExecutorForm-n3e9Qvrl.js.map → ExecutorForm-Dh_cpjdf.js.map} +1 -1
- package/lib/{FlowDetails-CnVZXaRP.js → FlowDetails-CFTkvTDA.js} +243 -226
- package/lib/{FlowDetails-CnVZXaRP.js.map → FlowDetails-CFTkvTDA.js.map} +1 -1
- package/lib/{NewOrganization-D4X_bhyD.js → NewOrganization-D_Mml2TC.js} +13 -13
- package/lib/NewOrganization-D_Mml2TC.js.map +1 -0
- package/lib/{PermissionConfigurationDetails-UjUwrvYu.js → PermissionConfigurationDetails-n1d3Hq-O.js} +92 -91
- package/lib/PermissionConfigurationDetails-n1d3Hq-O.js.map +1 -0
- package/lib/PermissionDetails-DL0juJDV.js +437 -0
- package/lib/PermissionDetails-DL0juJDV.js.map +1 -0
- package/lib/{RealmSection-BTCX9rHA.js → RealmSection-CQax8V1F.js} +26 -26
- package/lib/{RealmSection-BTCX9rHA.js.map → RealmSection-CQax8V1F.js.map} +1 -1
- package/lib/{ResourceDetails-C3cyeLL5.js → ResourceDetails-D_029Hz8.js} +24 -24
- package/lib/{ResourceDetails-C3cyeLL5.js.map → ResourceDetails-D_029Hz8.js.map} +1 -1
- package/lib/{ScopeDetails-C16qMBw-.js → ScopeDetails-BUCey3vn.js} +17 -17
- package/lib/{ScopeDetails-C16qMBw-.js.map → ScopeDetails-BUCey3vn.js.map} +1 -1
- package/lib/{ScopePicker-DbxK9g9R.js → ScopePicker-lTpi2ES9.js} +18 -18
- package/lib/{ScopePicker-DbxK9g9R.js.map → ScopePicker-lTpi2ES9.js.map} +1 -1
- package/lib/{WorkflowDetailForm-d5rClboG.js → WorkflowDetailForm-BeobAJDg.js} +31 -31
- package/lib/{WorkflowDetailForm-d5rClboG.js.map → WorkflowDetailForm-BeobAJDg.js.map} +1 -1
- package/lib/{WorkflowsSection-DRU3QF93.js → WorkflowsSection-ZFKvDu9e.js} +16 -16
- package/lib/{WorkflowsSection-DRU3QF93.js.map → WorkflowsSection-ZFKvDu9e.js.map} +1 -1
- package/lib/apps/admin-ui/src/authentication/constants.d.ts +3 -1
- package/lib/apps/admin-ui/src/client-scopes/details/oid4vciAttributes.d.ts +8 -3
- package/lib/apps/admin-ui/src/clients/ssf/tabs/CreateStreamForm.d.ts +18 -0
- package/lib/apps/admin-ui/src/clients/ssf/utils.d.ts +13 -0
- package/lib/apps/admin-ui/src/components/client/ClientSelect.d.ts +3 -4
- package/lib/apps/admin-ui/src/components/client/ClientSelectModal.d.ts +8 -0
- package/lib/apps/admin-ui/src/components/group/GroupPickerDialog.d.ts +8 -2
- package/lib/apps/admin-ui/src/components/role-mapping/RoleMapping.d.ts +1 -32
- package/lib/apps/admin-ui/src/components/role-mapping/resource.d.ts +9 -1
- package/lib/apps/admin-ui/src/context/identity-provider/IdentityProviderContext.d.ts +12 -0
- package/lib/apps/admin-ui/src/identity-providers/add/AddOid4Vp.d.ts +1 -0
- package/lib/apps/admin-ui/src/identity-providers/add/IdpDomainsTab.d.ts +5 -0
- package/lib/apps/admin-ui/src/identity-providers/add/IdpOrganizationsTab.d.ts +6 -0
- package/lib/apps/admin-ui/src/identity-providers/add/Oid4VpSettings.d.ts +1 -0
- package/lib/apps/admin-ui/src/identity-providers/routes/IdentityProvider.d.ts +1 -1
- package/lib/apps/admin-ui/src/identity-providers/routes/IdentityProviderOid4Vp.d.ts +7 -0
- package/lib/apps/admin-ui/src/organizations/DomainsTab.d.ts +1 -0
- package/lib/apps/admin-ui/src/organizations/IdentityProviderSelect.d.ts +4 -1
- package/lib/apps/admin-ui/src/organizations/MembershipTypeToggle.d.ts +9 -0
- package/lib/apps/admin-ui/src/organizations/OrganizationForm.d.ts +4 -1
- package/lib/apps/admin-ui/src/organizations/routes/EditOrganization.d.ts +1 -1
- package/lib/apps/admin-ui/src/realm-settings/ssf/SsfTransmitterDisableConfirmDialog.d.ts +1 -1
- package/lib/apps/admin-ui/src/utils/useIsFeatureEnabled.d.ts +3 -1
- package/lib/{index-C-D-m0EP.js → index-DAVLcnp3.js} +24150 -23208
- package/lib/{index-C-D-m0EP.js.map → index-DAVLcnp3.js.map} +1 -1
- package/lib/keycloak-admin-ui.js +75 -75
- package/package.json +4 -4
- package/lib/AddKubernetesConnect-D4xTogVo.js.map +0 -1
- package/lib/DetailOrganization-amJJPyq-.js +0 -204
- package/lib/DetailOrganization-amJJPyq-.js.map +0 -1
- package/lib/NewOrganization-D4X_bhyD.js.map +0 -1
- package/lib/PermissionConfigurationDetails-UjUwrvYu.js.map +0 -1
- package/lib/PermissionDetails-gUH5Lf-7.js +0 -413
- package/lib/PermissionDetails-gUH5Lf-7.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as T, jsxs as te, Fragment as be } from "react/jsx-runtime";
|
|
2
|
-
import { g as At, _ as Sc, T as Js, h as Cc, i as Nc, s as kc, L as
|
|
2
|
+
import { g as At, _ as Sc, T as Js, h as Cc, i as Nc, s as kc, L as So, C as Mc, u as pt, K as Co, b as Rn, M as Jt, j as en, F as Dn, k as tn, N as Lc, B as ge, l as Qe, e as je, m as Ic, n as Tt, o as Oc, p as Ac, P as ea, R as Tc, q as En, G as ei, I as Rc, r as oo, v as ti, w as Dc, x as Pc, y as $c, z as Fc, D as zc, E as ta, H as Ge, J as Vc, O as Pn, Q as Hc, S as Bc, U as at, W as na, X as io, Y as qc, Z as Gc, $ as Yc, a0 as jc, A as Wc, a1 as ra, a2 as Xc, a3 as Zc, a4 as Uc, a5 as Kc, a6 as Qc, a7 as Jc, a8 as eu, a9 as ze, a as tu, aa as ni, t as nu, ab as ru, f as ou, ac as iu, V as su, ad as au, ae as lu, af as Un, ag as cu, ah as ri, ai as uu, aj as du, ak as fu, al as hu } from "./index-DAVLcnp3.js";
|
|
3
3
|
import * as pu from "react";
|
|
4
4
|
import $, { useEffect as oe, useState as re, useMemo as Ne, forwardRef as oa, useCallback as de, useContext as $n, memo as ae, createContext as ia, useRef as Q } from "react";
|
|
5
5
|
import { useTranslation as _e, Trans as oi } from "react-i18next";
|
|
@@ -62,9 +62,9 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
62
62
|
icon: Lu
|
|
63
63
|
}, Ou = () => {
|
|
64
64
|
const { t: e } = _e();
|
|
65
|
-
return /* @__PURE__ */ T(
|
|
65
|
+
return /* @__PURE__ */ T(So, { icon: /* @__PURE__ */ T(Mc, { className: Iu.icon }), children: e("buildIn") });
|
|
66
66
|
}, Au = ({ flow: e, toggleDialog: t }) => {
|
|
67
|
-
const { adminClient: n } = pt(), { t: r } = _e(), { addAlert: o, addError: s } =
|
|
67
|
+
const { adminClient: n } = pt(), { t: r } = _e(), { addAlert: o, addError: s } = Co(), i = Rn({ mode: "onChange" }), { reset: a, handleSubmit: c } = i;
|
|
68
68
|
oe(() => a(e), [e]);
|
|
69
69
|
const d = async (l) => {
|
|
70
70
|
try {
|
|
@@ -133,7 +133,7 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
n.id
|
|
136
|
-
)) }) }),
|
|
136
|
+
)) }) }), No = ({ name: e, type: t, onSelect: n }) => {
|
|
137
137
|
const { adminClient: r } = pt(), { t: o } = _e(), [s, i] = re(), [a, c] = re(), [d, l] = re(10), [u, f] = re(0), [h, g] = re(""), y = Ic();
|
|
138
138
|
Tt(
|
|
139
139
|
async () => {
|
|
@@ -214,7 +214,7 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
214
214
|
)
|
|
215
215
|
}
|
|
216
216
|
);
|
|
217
|
-
}, ii = ["basic-flow", "form-flow"],
|
|
217
|
+
}, ii = ["basic-flow", "form-flow"], ko = ({
|
|
218
218
|
name: e,
|
|
219
219
|
onConfirm: t,
|
|
220
220
|
onCancel: n
|
|
@@ -280,7 +280,7 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
282
|
/* @__PURE__ */ T(
|
|
283
|
-
|
|
283
|
+
ei,
|
|
284
284
|
{
|
|
285
285
|
name: "type",
|
|
286
286
|
menuAppendTo: "parent",
|
|
@@ -293,7 +293,7 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
295
|
i && i.length > 1 && /* @__PURE__ */ T(
|
|
296
|
-
|
|
296
|
+
ei,
|
|
297
297
|
{
|
|
298
298
|
name: "provider",
|
|
299
299
|
label: o("provider"),
|
|
@@ -318,7 +318,7 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
318
318
|
const { t: r } = _e(), [o, s] = re();
|
|
319
319
|
return /* @__PURE__ */ te(be, { children: [
|
|
320
320
|
o === "addExecution" && /* @__PURE__ */ T(
|
|
321
|
-
|
|
321
|
+
No,
|
|
322
322
|
{
|
|
323
323
|
name: e.alias,
|
|
324
324
|
type: e.providerId === "client-flow" ? "client" : "basic",
|
|
@@ -328,7 +328,7 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
328
328
|
}
|
|
329
329
|
),
|
|
330
330
|
o === "addSubFlow" && /* @__PURE__ */ T(
|
|
331
|
-
|
|
331
|
+
ko,
|
|
332
332
|
{
|
|
333
333
|
name: e.alias,
|
|
334
334
|
onCancel: () => s(void 0),
|
|
@@ -344,12 +344,12 @@ const Lu = "_icon_1gmts_2", Iu = {
|
|
|
344
344
|
instructions: r("emptyExecutionInstructions")
|
|
345
345
|
}
|
|
346
346
|
),
|
|
347
|
-
/* @__PURE__ */ T("div", { className: "keycloak__empty-execution-state__block", children: Ru.map((i) => /* @__PURE__ */ te(
|
|
347
|
+
/* @__PURE__ */ T("div", { className: "keycloak__empty-execution-state__block", children: Ru.map((i) => /* @__PURE__ */ te(oo, { className: "keycloak__empty-execution-state__help", children: [
|
|
348
348
|
/* @__PURE__ */ te(ti, { flex: { default: "flex_1" }, children: [
|
|
349
349
|
/* @__PURE__ */ T(Dc, { headingLevel: "h2", size: Pc.md, children: r(`${i}Title`) }),
|
|
350
350
|
/* @__PURE__ */ T("p", { children: r(i) })
|
|
351
351
|
] }),
|
|
352
|
-
/* @__PURE__ */ T(
|
|
352
|
+
/* @__PURE__ */ T(oo, { alignSelf: { default: "alignSelfCenter" }, children: /* @__PURE__ */ T(ti, { children: /* @__PURE__ */ T(
|
|
353
353
|
ge,
|
|
354
354
|
{
|
|
355
355
|
"data-testid": i,
|
|
@@ -711,10 +711,10 @@ function pi(e, t, n) {
|
|
|
711
711
|
}
|
|
712
712
|
return n != null && e.push({ name: t, value: n }), e;
|
|
713
713
|
}
|
|
714
|
-
var
|
|
714
|
+
var so = "http://www.w3.org/1999/xhtml";
|
|
715
715
|
const gi = {
|
|
716
716
|
svg: "http://www.w3.org/2000/svg",
|
|
717
|
-
xhtml:
|
|
717
|
+
xhtml: so,
|
|
718
718
|
xlink: "http://www.w3.org/1999/xlink",
|
|
719
719
|
xml: "http://www.w3.org/XML/1998/namespace",
|
|
720
720
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
@@ -726,7 +726,7 @@ function zn(e) {
|
|
|
726
726
|
function ed(e) {
|
|
727
727
|
return function() {
|
|
728
728
|
var t = this.ownerDocument, n = this.namespaceURI;
|
|
729
|
-
return n ===
|
|
729
|
+
return n === so && t.documentElement.namespaceURI === so ? t.createElement(e) : t.createElementNS(n, e);
|
|
730
730
|
};
|
|
731
731
|
}
|
|
732
732
|
function td(e) {
|
|
@@ -740,13 +740,13 @@ function ua(e) {
|
|
|
740
740
|
}
|
|
741
741
|
function nd() {
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Mo(e) {
|
|
744
744
|
return e == null ? nd : function() {
|
|
745
745
|
return this.querySelector(e);
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
function rd(e) {
|
|
749
|
-
typeof e != "function" && (e =
|
|
749
|
+
typeof e != "function" && (e = Mo(e));
|
|
750
750
|
for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o)
|
|
751
751
|
for (var s = t[o], i = s.length, a = r[o] = new Array(i), c, d, l = 0; l < i; ++l)
|
|
752
752
|
(c = s[l]) && (d = e.call(c, c.__data__, l, s)) && ("__data__" in c && (d.__data__ = c.__data__), a[l] = d);
|
|
@@ -1033,7 +1033,7 @@ function Ud(e, t) {
|
|
|
1033
1033
|
function ma(e) {
|
|
1034
1034
|
return e.trim().split(/^|\s+/);
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Lo(e) {
|
|
1037
1037
|
return e.classList || new ya(e);
|
|
1038
1038
|
}
|
|
1039
1039
|
function ya(e) {
|
|
@@ -1053,10 +1053,10 @@ ya.prototype = {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
1055
|
function wa(e, t) {
|
|
1056
|
-
for (var n =
|
|
1056
|
+
for (var n = Lo(e), r = -1, o = t.length; ++r < o; ) n.add(t[r]);
|
|
1057
1057
|
}
|
|
1058
1058
|
function va(e, t) {
|
|
1059
|
-
for (var n =
|
|
1059
|
+
for (var n = Lo(e), r = -1, o = t.length; ++r < o; ) n.remove(t[r]);
|
|
1060
1060
|
}
|
|
1061
1061
|
function Kd(e) {
|
|
1062
1062
|
return function() {
|
|
@@ -1076,7 +1076,7 @@ function Jd(e, t) {
|
|
|
1076
1076
|
function ef(e, t) {
|
|
1077
1077
|
var n = ma(e + "");
|
|
1078
1078
|
if (arguments.length < 2) {
|
|
1079
|
-
for (var r =
|
|
1079
|
+
for (var r = Lo(this.node()), o = -1, s = n.length; ++o < s; ) if (!r.contains(n[o])) return !1;
|
|
1080
1080
|
return !0;
|
|
1081
1081
|
}
|
|
1082
1082
|
return this.each((typeof t == "function" ? Jd : t ? Kd : Qd)(n, t));
|
|
@@ -1137,7 +1137,7 @@ function gf() {
|
|
|
1137
1137
|
return null;
|
|
1138
1138
|
}
|
|
1139
1139
|
function mf(e, t) {
|
|
1140
|
-
var n = typeof e == "function" ? e : ua(e), r = t == null ? gf : typeof t == "function" ? t :
|
|
1140
|
+
var n = typeof e == "function" ? e : ua(e), r = t == null ? gf : typeof t == "function" ? t : Mo(t);
|
|
1141
1141
|
return this.select(function() {
|
|
1142
1142
|
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
1143
1143
|
});
|
|
@@ -1322,7 +1322,7 @@ function _a(e, t) {
|
|
|
1322
1322
|
}, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
|
|
1323
1323
|
}
|
|
1324
1324
|
const ln = (e) => () => e;
|
|
1325
|
-
function
|
|
1325
|
+
function ao(e, {
|
|
1326
1326
|
sourceEvent: t,
|
|
1327
1327
|
subject: n,
|
|
1328
1328
|
target: r,
|
|
@@ -1348,7 +1348,7 @@ function so(e, {
|
|
|
1348
1348
|
_: { value: l }
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
|
-
|
|
1351
|
+
ao.prototype.on = function() {
|
|
1352
1352
|
var e = this._.on.apply(this._, arguments);
|
|
1353
1353
|
return e === this._ ? this : e;
|
|
1354
1354
|
};
|
|
@@ -1406,7 +1406,7 @@ function zf() {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
function x(b, C, S, R, E, _) {
|
|
1408
1408
|
var N = s.copy(), M = ke(_ || S, C), O, F, v;
|
|
1409
|
-
if ((v = n.call(b, new
|
|
1409
|
+
if ((v = n.call(b, new ao("beforestart", {
|
|
1410
1410
|
sourceEvent: S,
|
|
1411
1411
|
target: f,
|
|
1412
1412
|
identifier: E,
|
|
@@ -1433,7 +1433,7 @@ function zf() {
|
|
|
1433
1433
|
N.call(
|
|
1434
1434
|
L,
|
|
1435
1435
|
b,
|
|
1436
|
-
new
|
|
1436
|
+
new ao(L, {
|
|
1437
1437
|
sourceEvent: z,
|
|
1438
1438
|
subject: v,
|
|
1439
1439
|
target: f,
|
|
@@ -1464,7 +1464,7 @@ function zf() {
|
|
|
1464
1464
|
return arguments.length ? (u = (b = +b) * b, f) : Math.sqrt(u);
|
|
1465
1465
|
}, f;
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function Io(e, t, n) {
|
|
1468
1468
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
1469
1469
|
}
|
|
1470
1470
|
function Sa(e, t) {
|
|
@@ -1624,7 +1624,7 @@ var jt = 0.7, Sn = 1 / jt, kt = "\\s*([+-]?\\d+)\\s*", Wt = "\\s*([+-]?(?:\\d*\\
|
|
|
1624
1624
|
yellow: 16776960,
|
|
1625
1625
|
yellowgreen: 10145074
|
|
1626
1626
|
};
|
|
1627
|
-
|
|
1627
|
+
Io(rn, Xt, {
|
|
1628
1628
|
copy(e) {
|
|
1629
1629
|
return Object.assign(new this.constructor(), this, e);
|
|
1630
1630
|
},
|
|
@@ -1664,13 +1664,13 @@ function cn(e, t, n, r) {
|
|
|
1664
1664
|
function Zf(e) {
|
|
1665
1665
|
return e instanceof rn || (e = Xt(e)), e ? (e = e.rgb(), new xe(e.r, e.g, e.b, e.opacity)) : new xe();
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function lo(e, t, n, r) {
|
|
1668
1668
|
return arguments.length === 1 ? Zf(e) : new xe(e, t, n, r ?? 1);
|
|
1669
1669
|
}
|
|
1670
1670
|
function xe(e, t, n, r) {
|
|
1671
1671
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1672
1672
|
}
|
|
1673
|
-
|
|
1673
|
+
Io(xe, lo, Sa(rn, {
|
|
1674
1674
|
brighter(e) {
|
|
1675
1675
|
return e = e == null ? Sn : Math.pow(Sn, e), new xe(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1676
1676
|
},
|
|
@@ -1729,7 +1729,7 @@ function Kf(e, t, n, r) {
|
|
|
1729
1729
|
function Me(e, t, n, r) {
|
|
1730
1730
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1731
1731
|
}
|
|
1732
|
-
|
|
1732
|
+
Io(Me, Kf, Sa(rn, {
|
|
1733
1733
|
brighter(e) {
|
|
1734
1734
|
return e = e == null ? Sn : Math.pow(Sn, e), new Me(this.h, this.s, this.l * e, this.opacity);
|
|
1735
1735
|
},
|
|
@@ -1788,7 +1788,7 @@ function ka(e, t) {
|
|
|
1788
1788
|
const Si = (function e(t) {
|
|
1789
1789
|
var n = eh(t);
|
|
1790
1790
|
function r(o, s) {
|
|
1791
|
-
var i = n((o =
|
|
1791
|
+
var i = n((o = lo(o)).r, (s = lo(s)).r), a = n(o.g, s.g), c = n(o.b, s.b), d = ka(o.opacity, s.opacity);
|
|
1792
1792
|
return function(l) {
|
|
1793
1793
|
return o.r = i(l), o.g = a(l), o.b = c(l), o.opacity = d(l), o + "";
|
|
1794
1794
|
};
|
|
@@ -1800,7 +1800,7 @@ function We(e, t) {
|
|
|
1800
1800
|
return e * (1 - n) + t * n;
|
|
1801
1801
|
};
|
|
1802
1802
|
}
|
|
1803
|
-
var
|
|
1803
|
+
var co = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, rr = new RegExp(co.source, "g");
|
|
1804
1804
|
function th(e) {
|
|
1805
1805
|
return function() {
|
|
1806
1806
|
return e;
|
|
@@ -1812,15 +1812,15 @@ function nh(e) {
|
|
|
1812
1812
|
};
|
|
1813
1813
|
}
|
|
1814
1814
|
function rh(e, t) {
|
|
1815
|
-
var n =
|
|
1816
|
-
for (e = e + "", t = t + ""; (r =
|
|
1815
|
+
var n = co.lastIndex = rr.lastIndex = 0, r, o, s, i = -1, a = [], c = [];
|
|
1816
|
+
for (e = e + "", t = t + ""; (r = co.exec(e)) && (o = rr.exec(t)); )
|
|
1817
1817
|
(s = o.index) > n && (s = t.slice(n, s), a[i] ? a[i] += s : a[++i] = s), (r = r[0]) === (o = o[0]) ? a[i] ? a[i] += o : a[++i] = o : (a[++i] = null, c.push({ i, x: We(r, o) })), n = rr.lastIndex;
|
|
1818
1818
|
return n < t.length && (s = t.slice(n), a[i] ? a[i] += s : a[++i] = s), a.length < 2 ? c[0] ? nh(c[0].x) : th(t) : (t = c.length, function(d) {
|
|
1819
1819
|
for (var l = 0, u; l < t; ++l) a[(u = c[l]).i] = u.x(d);
|
|
1820
1820
|
return a.join("");
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
|
-
var Ci = 180 / Math.PI,
|
|
1823
|
+
var Ci = 180 / Math.PI, uo = {
|
|
1824
1824
|
translateX: 0,
|
|
1825
1825
|
translateY: 0,
|
|
1826
1826
|
rotate: 0,
|
|
@@ -1842,10 +1842,10 @@ function Ma(e, t, n, r, o, s) {
|
|
|
1842
1842
|
var dn;
|
|
1843
1843
|
function oh(e) {
|
|
1844
1844
|
const t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
1845
|
-
return t.isIdentity ?
|
|
1845
|
+
return t.isIdentity ? uo : Ma(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
1846
1846
|
}
|
|
1847
1847
|
function ih(e) {
|
|
1848
|
-
return e == null || (dn || (dn = document.createElementNS("http://www.w3.org/2000/svg", "g")), dn.setAttribute("transform", e), !(e = dn.transform.baseVal.consolidate())) ?
|
|
1848
|
+
return e == null || (dn || (dn = document.createElementNS("http://www.w3.org/2000/svg", "g")), dn.setAttribute("transform", e), !(e = dn.transform.baseVal.consolidate())) ? uo : (e = e.matrix, Ma(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
1849
1849
|
}
|
|
1850
1850
|
function La(e, t, n, r) {
|
|
1851
1851
|
function o(d) {
|
|
@@ -1919,7 +1919,7 @@ const dh = (function e(t, n, r) {
|
|
|
1919
1919
|
var It = 0, Bt = 0, $t = 0, Ia = 1e3, Nn, qt, kn = 0, ft = 0, Vn = 0, Zt = typeof performance == "object" && performance.now ? performance : Date, Oa = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
1920
1920
|
setTimeout(e, 17);
|
|
1921
1921
|
};
|
|
1922
|
-
function
|
|
1922
|
+
function Oo() {
|
|
1923
1923
|
return ft || (Oa(fh), ft = Zt.now() + Vn);
|
|
1924
1924
|
}
|
|
1925
1925
|
function fh() {
|
|
@@ -1932,10 +1932,10 @@ Mn.prototype = Aa.prototype = {
|
|
|
1932
1932
|
constructor: Mn,
|
|
1933
1933
|
restart: function(e, t, n) {
|
|
1934
1934
|
if (typeof e != "function") throw new TypeError("callback is not a function");
|
|
1935
|
-
n = (n == null ?
|
|
1935
|
+
n = (n == null ? Oo() : +n) + (t == null ? 0 : +t), !this._next && qt !== this && (qt ? qt._next = this : Nn = this, qt = this), this._call = e, this._time = n, fo();
|
|
1936
1936
|
},
|
|
1937
1937
|
stop: function() {
|
|
1938
|
-
this._call && (this._call = null, this._time = 1 / 0,
|
|
1938
|
+
this._call && (this._call = null, this._time = 1 / 0, fo());
|
|
1939
1939
|
}
|
|
1940
1940
|
};
|
|
1941
1941
|
function Aa(e, t, n) {
|
|
@@ -1943,7 +1943,7 @@ function Aa(e, t, n) {
|
|
|
1943
1943
|
return r.restart(e, t, n), r;
|
|
1944
1944
|
}
|
|
1945
1945
|
function hh() {
|
|
1946
|
-
|
|
1946
|
+
Oo(), ++It;
|
|
1947
1947
|
for (var e = Nn, t; e; )
|
|
1948
1948
|
(t = ft - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
1949
1949
|
--It;
|
|
@@ -1963,9 +1963,9 @@ function ph() {
|
|
|
1963
1963
|
function gh() {
|
|
1964
1964
|
for (var e, t = Nn, n, r = 1 / 0; t; )
|
|
1965
1965
|
t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : Nn = n);
|
|
1966
|
-
qt = e,
|
|
1966
|
+
qt = e, fo(r);
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1968
|
+
function fo(e) {
|
|
1969
1969
|
if (!It) {
|
|
1970
1970
|
Bt && (Bt = clearTimeout(Bt));
|
|
1971
1971
|
var t = e - ft;
|
|
@@ -1978,7 +1978,7 @@ function Mi(e, t, n) {
|
|
|
1978
1978
|
r.stop(), e(o + t);
|
|
1979
1979
|
}, t, n), r;
|
|
1980
1980
|
}
|
|
1981
|
-
var mh = Fn("start", "end", "cancel", "interrupt"), yh = [], Ta = 0, Li = 1,
|
|
1981
|
+
var mh = Fn("start", "end", "cancel", "interrupt"), yh = [], Ta = 0, Li = 1, ho = 2, vn = 3, Ii = 4, po = 5, bn = 6;
|
|
1982
1982
|
function Hn(e, t, n, r, o, s) {
|
|
1983
1983
|
var i = e.__transition;
|
|
1984
1984
|
if (!i) e.__transition = {};
|
|
@@ -1999,7 +1999,7 @@ function Hn(e, t, n, r, o, s) {
|
|
|
1999
1999
|
state: Ta
|
|
2000
2000
|
});
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2002
|
+
function Ao(e, t) {
|
|
2003
2003
|
var n = Ae(e, t);
|
|
2004
2004
|
if (n.state > Ta) throw new Error("too late; already scheduled");
|
|
2005
2005
|
return n;
|
|
@@ -2030,16 +2030,16 @@ function wh(e, t, n) {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
if (Mi(function() {
|
|
2032
2032
|
n.state === vn && (n.state = Ii, n.timer.restart(a, n.delay, n.time), a(d));
|
|
2033
|
-
}), n.state =
|
|
2033
|
+
}), n.state = ho, n.on.call("start", e, e.__data__, n.index, n.group), n.state === ho) {
|
|
2034
2034
|
for (n.state = vn, o = new Array(f = n.tween.length), l = 0, u = -1; l < f; ++l)
|
|
2035
2035
|
(h = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (o[++u] = h);
|
|
2036
2036
|
o.length = u + 1;
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
2039
|
function a(d) {
|
|
2040
|
-
for (var l = d < n.duration ? n.ease.call(null, d / n.duration) : (n.timer.restart(c), n.state =
|
|
2040
|
+
for (var l = d < n.duration ? n.ease.call(null, d / n.duration) : (n.timer.restart(c), n.state = po, 1), u = -1, f = o.length; ++u < f; )
|
|
2041
2041
|
o[u].call(e, l);
|
|
2042
|
-
n.state ===
|
|
2042
|
+
n.state === po && (n.on.call("end", e, e.__data__, n.index, n.group), c());
|
|
2043
2043
|
}
|
|
2044
2044
|
function c() {
|
|
2045
2045
|
n.state = bn, n.timer.stop(), delete r[t];
|
|
@@ -2056,7 +2056,7 @@ function xn(e, t) {
|
|
|
2056
2056
|
s = !1;
|
|
2057
2057
|
continue;
|
|
2058
2058
|
}
|
|
2059
|
-
o = r.state >
|
|
2059
|
+
o = r.state > ho && r.state < po, r.state = bn, r.timer.stop(), r.on.call(o ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[i];
|
|
2060
2060
|
}
|
|
2061
2061
|
s && delete e.__transition;
|
|
2062
2062
|
}
|
|
@@ -2108,7 +2108,7 @@ function Eh(e, t) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
return this.each((t == null ? bh : xh)(n, e, t));
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function To(e, t, n) {
|
|
2112
2112
|
var r = e._id;
|
|
2113
2113
|
return e.each(function() {
|
|
2114
2114
|
var o = Pe(this, r);
|
|
@@ -2161,7 +2161,7 @@ function Mh(e, t, n) {
|
|
|
2161
2161
|
}
|
|
2162
2162
|
function Lh(e, t) {
|
|
2163
2163
|
var n = zn(e), r = n === "transform" ? ah : Ra;
|
|
2164
|
-
return this.attrTween(e, typeof t == "function" ? (n.local ? Mh : kh)(n, r,
|
|
2164
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? Mh : kh)(n, r, To(this, "attr." + e, t)) : t == null ? (n.local ? Sh : _h)(n) : (n.local ? Nh : Ch)(n, r, t));
|
|
2165
2165
|
}
|
|
2166
2166
|
function Ih(e, t) {
|
|
2167
2167
|
return function(n) {
|
|
@@ -2199,12 +2199,12 @@ function Rh(e, t) {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
function Dh(e, t) {
|
|
2201
2201
|
return function() {
|
|
2202
|
-
|
|
2202
|
+
Ao(this, e).delay = +t.apply(this, arguments);
|
|
2203
2203
|
};
|
|
2204
2204
|
}
|
|
2205
2205
|
function Ph(e, t) {
|
|
2206
2206
|
return t = +t, function() {
|
|
2207
|
-
|
|
2207
|
+
Ao(this, e).delay = t;
|
|
2208
2208
|
};
|
|
2209
2209
|
}
|
|
2210
2210
|
function $h(e) {
|
|
@@ -2269,7 +2269,7 @@ function Wh(e) {
|
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
function Xh(e, t, n) {
|
|
2272
|
-
var r, o, s = Wh(t) ?
|
|
2272
|
+
var r, o, s = Wh(t) ? Ao : Pe;
|
|
2273
2273
|
return function() {
|
|
2274
2274
|
var i = s(this, e), a = i.on;
|
|
2275
2275
|
a !== r && (o = (r = a).copy()).on(t, n), i.on = o;
|
|
@@ -2291,7 +2291,7 @@ function Kh() {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
function Qh(e) {
|
|
2293
2293
|
var t = this._name, n = this._id;
|
|
2294
|
-
typeof e != "function" && (e =
|
|
2294
|
+
typeof e != "function" && (e = Mo(e));
|
|
2295
2295
|
for (var r = this._groups, o = r.length, s = new Array(o), i = 0; i < o; ++i)
|
|
2296
2296
|
for (var a = r[i], c = a.length, d = s[i] = new Array(c), l, u, f = 0; f < c; ++f)
|
|
2297
2297
|
(l = a[f]) && (u = e.call(l, l.__data__, f, a)) && ("__data__" in l && (u.__data__ = l.__data__), d[f] = u, Hn(d[f], t, n, f, d, Ae(l, n)));
|
|
@@ -2348,7 +2348,7 @@ function ip(e, t) {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
function sp(e, t, n) {
|
|
2350
2350
|
var r = (e += "") == "transform" ? sh : Ra;
|
|
2351
|
-
return t == null ? this.styleTween(e, np(e, r)).on("end.style." + e, Da(e)) : typeof t == "function" ? this.styleTween(e, op(e, r,
|
|
2351
|
+
return t == null ? this.styleTween(e, np(e, r)).on("end.style." + e, Da(e)) : typeof t == "function" ? this.styleTween(e, op(e, r, To(this, "style." + e, t))).each(ip(this._id, e)) : this.styleTween(e, rp(e, r, t), n).on("end.style." + e, null);
|
|
2352
2352
|
}
|
|
2353
2353
|
function ap(e, t, n) {
|
|
2354
2354
|
return function(r) {
|
|
@@ -2382,7 +2382,7 @@ function dp(e) {
|
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
2384
2384
|
function fp(e) {
|
|
2385
|
-
return this.tween("text", typeof e == "function" ? dp(
|
|
2385
|
+
return this.tween("text", typeof e == "function" ? dp(To(this, "text", e)) : up(e == null ? "" : e + ""));
|
|
2386
2386
|
}
|
|
2387
2387
|
function hp(e) {
|
|
2388
2388
|
return function(t) {
|
|
@@ -2488,7 +2488,7 @@ function xp(e, t) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
function Ep(e) {
|
|
2490
2490
|
var t, n;
|
|
2491
|
-
e instanceof qe ? (t = e._id, e = e._name) : (t = Pa(), (n = bp).time =
|
|
2491
|
+
e instanceof qe ? (t = e._id, e = e._name) : (t = Pa(), (n = bp).time = Oo(), e = e == null ? null : e + "");
|
|
2492
2492
|
for (var r = this._groups, o = r.length, s = 0; s < o; ++s)
|
|
2493
2493
|
for (var i = r[s], a = i.length, c, d = 0; d < a; ++d)
|
|
2494
2494
|
(c = i[d]) && Hn(c, e, t, d, i, n || xp(c, t));
|
|
@@ -2808,13 +2808,13 @@ const pe = () => {
|
|
|
2808
2808
|
destroy: e.destroy
|
|
2809
2809
|
}), [e]);
|
|
2810
2810
|
}, Ip = (e) => e.userSelectionActive ? "none" : "all";
|
|
2811
|
-
function
|
|
2811
|
+
function Ro({ position: e, children: t, className: n, style: r, ...o }) {
|
|
2812
2812
|
const s = le(Ip), i = `${e}`.split("-");
|
|
2813
2813
|
return $.createElement("div", { className: me(["react-flow__panel", n, ...i]), style: { ...r, pointerEvents: s }, ...o }, t);
|
|
2814
2814
|
}
|
|
2815
2815
|
function Op({ proOptions: e, position: t = "bottom-right" }) {
|
|
2816
2816
|
return e?.hideAttribution ? null : $.createElement(
|
|
2817
|
-
|
|
2817
|
+
Ro,
|
|
2818
2818
|
{ position: t, className: "react-flow__attribution", "data-message": "Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro" },
|
|
2819
2819
|
$.createElement("a", { href: "https://reactflow.dev", target: "_blank", rel: "noopener noreferrer", "aria-label": "React Flow attribution" }, "React Flow")
|
|
2820
2820
|
);
|
|
@@ -2840,10 +2840,10 @@ const Ap = ({ x: e, y: t, label: n, labelStyle: r = {}, labelShowBg: o = !0, lab
|
|
|
2840
2840
|
);
|
|
2841
2841
|
};
|
|
2842
2842
|
var Tp = ae(Ap);
|
|
2843
|
-
const
|
|
2843
|
+
const Do = (e) => ({
|
|
2844
2844
|
width: e.offsetWidth,
|
|
2845
2845
|
height: e.offsetHeight
|
|
2846
|
-
}), Ot = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n),
|
|
2846
|
+
}), Ot = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), Po = (e = { x: 0, y: 0 }, t) => ({
|
|
2847
2847
|
x: Ot(e.x, t[0][0], t[1][0]),
|
|
2848
2848
|
y: Ot(e.y, t[0][1], t[1][1])
|
|
2849
2849
|
}), Ai = (e, t, n) => e < t ? Ot(Math.abs(e - t), 1, 50) / 50 : e > n ? -Ot(Math.abs(e - n), 1, 50) / 50 : 0, za = (e, t) => {
|
|
@@ -2868,13 +2868,13 @@ const Ro = (e) => ({
|
|
|
2868
2868
|
...e.positionAbsolute || { x: 0, y: 0 },
|
|
2869
2869
|
width: e.width || 0,
|
|
2870
2870
|
height: e.height || 0
|
|
2871
|
-
}), Rp = (e, t) => Ba(Ha(Ut(e), Ut(t))),
|
|
2871
|
+
}), Rp = (e, t) => Ba(Ha(Ut(e), Ut(t))), go = (e, t) => {
|
|
2872
2872
|
const n = Math.max(0, Math.min(e.x + e.width, t.x + t.width) - Math.max(e.x, t.x)), r = Math.max(0, Math.min(e.y + e.height, t.y + t.height) - Math.max(e.y, t.y));
|
|
2873
2873
|
return Math.ceil(n * r);
|
|
2874
2874
|
}, Dp = (e) => Ce(e.width) && Ce(e.height) && Ce(e.x) && Ce(e.y), Ce = (e) => !isNaN(e) && isFinite(e), ue = /* @__PURE__ */ Symbol.for("internals"), qa = ["Enter", " ", "Escape"], Ga = (e, t) => {
|
|
2875
2875
|
process.env.NODE_ENV === "development" && console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`);
|
|
2876
2876
|
}, Pp = (e) => "nativeEvent" in e;
|
|
2877
|
-
function
|
|
2877
|
+
function mo(e) {
|
|
2878
2878
|
const n = (Pp(e) ? e.nativeEvent : e).composedPath?.()?.[0] || e.target;
|
|
2879
2879
|
return ["INPUT", "SELECT", "TEXTAREA"].includes(n?.nodeName) || n?.hasAttribute("contenteditable") || !!n?.closest(".nokey");
|
|
2880
2880
|
}
|
|
@@ -2965,7 +2965,7 @@ function Xa({ sourceX: e, sourceY: t, sourcePosition: n = X.Bottom, targetX: r,
|
|
|
2965
2965
|
h
|
|
2966
2966
|
];
|
|
2967
2967
|
}
|
|
2968
|
-
const
|
|
2968
|
+
const $o = ae(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition: o = X.Bottom, targetPosition: s = X.Top, label: i, labelStyle: a, labelShowBg: c, labelBgStyle: d, labelBgPadding: l, labelBgBorderRadius: u, style: f, markerEnd: h, markerStart: g, interactionWidth: y }) => {
|
|
2969
2969
|
const [p, m, w] = Xa({
|
|
2970
2970
|
sourceX: e,
|
|
2971
2971
|
sourceY: t,
|
|
@@ -2976,7 +2976,7 @@ const Po = ae(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition:
|
|
|
2976
2976
|
});
|
|
2977
2977
|
return $.createElement(on, { path: p, labelX: m, labelY: w, label: i, labelStyle: a, labelShowBg: c, labelBgStyle: d, labelBgPadding: l, labelBgBorderRadius: u, style: f, markerEnd: h, markerStart: g, interactionWidth: y });
|
|
2978
2978
|
});
|
|
2979
|
-
|
|
2979
|
+
$o.displayName = "SimpleBezierEdge";
|
|
2980
2980
|
const Di = {
|
|
2981
2981
|
[X.Left]: { x: -1, y: 0 },
|
|
2982
2982
|
[X.Right]: { x: 1, y: 0 },
|
|
@@ -3041,7 +3041,7 @@ function Vp(e, t, n, r) {
|
|
|
3041
3041
|
const a = e.x < n.x ? 1 : -1, c = e.y < n.y ? -1 : 1;
|
|
3042
3042
|
return `L ${s},${i + o * c}Q ${s},${i} ${s + o * a},${i}`;
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function yo({ sourceX: e, sourceY: t, sourcePosition: n = X.Bottom, targetX: r, targetY: o, targetPosition: s = X.Top, borderRadius: i = 5, centerX: a, centerY: c, offset: d = 20 }) {
|
|
3045
3045
|
const [l, u, f, h, g] = zp({
|
|
3046
3046
|
source: { x: e, y: t },
|
|
3047
3047
|
sourcePosition: n,
|
|
@@ -3056,7 +3056,7 @@ function mo({ sourceX: e, sourceY: t, sourcePosition: n = X.Bottom, targetX: r,
|
|
|
3056
3056
|
}, ""), u, f, h, g];
|
|
3057
3057
|
}
|
|
3058
3058
|
const qn = ae(({ sourceX: e, sourceY: t, targetX: n, targetY: r, label: o, labelStyle: s, labelShowBg: i, labelBgStyle: a, labelBgPadding: c, labelBgBorderRadius: d, style: l, sourcePosition: u = X.Bottom, targetPosition: f = X.Top, markerEnd: h, markerStart: g, pathOptions: y, interactionWidth: p }) => {
|
|
3059
|
-
const [m, w, x] =
|
|
3059
|
+
const [m, w, x] = yo({
|
|
3060
3060
|
sourceX: e,
|
|
3061
3061
|
sourceY: t,
|
|
3062
3062
|
sourcePosition: u,
|
|
@@ -3069,8 +3069,8 @@ const qn = ae(({ sourceX: e, sourceY: t, targetX: n, targetY: r, label: o, label
|
|
|
3069
3069
|
return $.createElement(on, { path: m, labelX: w, labelY: x, label: o, labelStyle: s, labelShowBg: i, labelBgStyle: a, labelBgPadding: c, labelBgBorderRadius: d, style: l, markerEnd: h, markerStart: g, interactionWidth: p });
|
|
3070
3070
|
});
|
|
3071
3071
|
qn.displayName = "SmoothStepEdge";
|
|
3072
|
-
const
|
|
3073
|
-
|
|
3072
|
+
const Fo = ae((e) => $.createElement(qn, { ...e, pathOptions: Ne(() => ({ borderRadius: 0, offset: e.pathOptions?.offset }), [e.pathOptions?.offset]) }));
|
|
3073
|
+
Fo.displayName = "StepEdge";
|
|
3074
3074
|
function Hp({ sourceX: e, sourceY: t, targetX: n, targetY: r }) {
|
|
3075
3075
|
const [o, s, i, a] = ja({
|
|
3076
3076
|
sourceX: e,
|
|
@@ -3080,11 +3080,11 @@ function Hp({ sourceX: e, sourceY: t, targetX: n, targetY: r }) {
|
|
|
3080
3080
|
});
|
|
3081
3081
|
return [`M ${e},${t}L ${n},${r}`, o, s, i, a];
|
|
3082
3082
|
}
|
|
3083
|
-
const
|
|
3083
|
+
const zo = ae(({ sourceX: e, sourceY: t, targetX: n, targetY: r, label: o, labelStyle: s, labelShowBg: i, labelBgStyle: a, labelBgPadding: c, labelBgBorderRadius: d, style: l, markerEnd: u, markerStart: f, interactionWidth: h }) => {
|
|
3084
3084
|
const [g, y, p] = Hp({ sourceX: e, sourceY: t, targetX: n, targetY: r });
|
|
3085
3085
|
return $.createElement(on, { path: g, labelX: y, labelY: p, label: o, labelStyle: s, labelShowBg: i, labelBgStyle: a, labelBgPadding: c, labelBgBorderRadius: d, style: l, markerEnd: u, markerStart: f, interactionWidth: h });
|
|
3086
3086
|
});
|
|
3087
|
-
|
|
3087
|
+
zo.displayName = "StraightEdge";
|
|
3088
3088
|
function hn(e, t) {
|
|
3089
3089
|
return e >= 0 ? 0.5 * e : t * 25 * Math.sqrt(-e);
|
|
3090
3090
|
}
|
|
@@ -3100,7 +3100,7 @@ function $i({ pos: e, x1: t, y1: n, x2: r, y2: o, c: s }) {
|
|
|
3100
3100
|
return [t, n + hn(o - n, s)];
|
|
3101
3101
|
}
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3103
|
+
function Vo({ sourceX: e, sourceY: t, sourcePosition: n = X.Bottom, targetX: r, targetY: o, targetPosition: s = X.Top, curvature: i = 0.25 }) {
|
|
3104
3104
|
const [a, c] = $i({
|
|
3105
3105
|
pos: n,
|
|
3106
3106
|
x1: e,
|
|
@@ -3134,7 +3134,7 @@ function zo({ sourceX: e, sourceY: t, sourcePosition: n = X.Bottom, targetX: r,
|
|
|
3134
3134
|
];
|
|
3135
3135
|
}
|
|
3136
3136
|
const On = ae(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition: o = X.Bottom, targetPosition: s = X.Top, label: i, labelStyle: a, labelShowBg: c, labelBgStyle: d, labelBgPadding: l, labelBgBorderRadius: u, style: f, markerEnd: h, markerStart: g, pathOptions: y, interactionWidth: p }) => {
|
|
3137
|
-
const [m, w, x] =
|
|
3137
|
+
const [m, w, x] = Vo({
|
|
3138
3138
|
sourceX: e,
|
|
3139
3139
|
sourceY: t,
|
|
3140
3140
|
sourcePosition: o,
|
|
@@ -3146,9 +3146,9 @@ const On = ae(({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourcePosition:
|
|
|
3146
3146
|
return $.createElement(on, { path: m, labelX: w, labelY: x, label: i, labelStyle: a, labelShowBg: c, labelBgStyle: d, labelBgPadding: l, labelBgBorderRadius: u, style: f, markerEnd: h, markerStart: g, interactionWidth: p });
|
|
3147
3147
|
});
|
|
3148
3148
|
On.displayName = "BezierEdge";
|
|
3149
|
-
const
|
|
3150
|
-
|
|
3151
|
-
const qp = () => $n(
|
|
3149
|
+
const Ho = ia(null), Bp = Ho.Provider;
|
|
3150
|
+
Ho.Consumer;
|
|
3151
|
+
const qp = () => $n(Ho), Gp = (e) => "id" in e && "source" in e && "target" in e, Yp = ({ source: e, sourceHandle: t, target: n, targetHandle: r }) => `reactflow__edge-${e}${t || ""}-${n}${r || ""}`, wo = (e, t) => typeof e > "u" ? "" : typeof e == "string" ? e : `${t ? `${t}__` : ""}${Object.keys(e).sort().map((r) => `${r}=${e[r]}`).join("&")}`, jp = (e, t) => t.some((n) => n.source === e.source && n.target === e.target && (n.sourceHandle === e.sourceHandle || !n.sourceHandle && !e.sourceHandle) && (n.targetHandle === e.targetHandle || !n.targetHandle && !e.targetHandle)), Wp = (e, t) => {
|
|
3152
3152
|
if (!e.source || !e.target)
|
|
3153
3153
|
return Ga("006", Ie.error006()), t;
|
|
3154
3154
|
let n;
|
|
@@ -3156,7 +3156,7 @@ const qp = () => $n(Vo), Gp = (e) => "id" in e && "source" in e && "target" in e
|
|
|
3156
3156
|
...e,
|
|
3157
3157
|
id: Yp(e)
|
|
3158
3158
|
}, jp(n, t) ? t : t.concat(n);
|
|
3159
|
-
},
|
|
3159
|
+
}, vo = ({ x: e, y: t }, [n, r, o], s, [i, a]) => {
|
|
3160
3160
|
const c = {
|
|
3161
3161
|
x: (e - n) / o,
|
|
3162
3162
|
y: (t - r) / o
|
|
@@ -3218,7 +3218,7 @@ const qp = () => $n(Vo), Gp = (e) => "id" in e && "source" in e && "target" in e
|
|
|
3218
3218
|
y: y.y,
|
|
3219
3219
|
width: u || 0,
|
|
3220
3220
|
height: f || 0
|
|
3221
|
-
}, m =
|
|
3221
|
+
}, m = go(c, p), w = typeof u > "u" || typeof f > "u" || u === null || f === null, x = s && m > 0, b = (u || 0) * (f || 0);
|
|
3222
3222
|
(w || x || m >= b || l.dragging) && d.push(l);
|
|
3223
3223
|
}), d;
|
|
3224
3224
|
}, Ka = (e, t) => {
|
|
@@ -3242,7 +3242,7 @@ function Xp(e, t, n, r, o, s) {
|
|
|
3242
3242
|
if (d) {
|
|
3243
3243
|
const g = d.getAttribute("data-nodeid");
|
|
3244
3244
|
if (g) {
|
|
3245
|
-
const y =
|
|
3245
|
+
const y = Bo(void 0, d), p = d.getAttribute("data-handleid"), m = s({ nodeId: g, id: p, type: y });
|
|
3246
3246
|
if (m) {
|
|
3247
3247
|
const w = o.find((x) => x.nodeId === g && x.type === y && x.id === p);
|
|
3248
3248
|
return {
|
|
@@ -3287,7 +3287,7 @@ function el(e, t, n, r, o, s, i) {
|
|
|
3287
3287
|
handleDomNode: c
|
|
3288
3288
|
};
|
|
3289
3289
|
if (c) {
|
|
3290
|
-
const l =
|
|
3290
|
+
const l = Bo(void 0, c), u = c.getAttribute("data-nodeid"), f = c.getAttribute("data-handleid"), h = c.classList.contains("connectable"), g = c.classList.contains("connectableend"), y = {
|
|
3291
3291
|
source: a ? u : n,
|
|
3292
3292
|
sourceHandle: a ? f : r,
|
|
3293
3293
|
target: a ? n : u,
|
|
@@ -3311,7 +3311,7 @@ function Up({ nodes: e, nodeId: t, handleId: n, handleType: r }) {
|
|
|
3311
3311
|
return o;
|
|
3312
3312
|
}, []);
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function Bo(e, t) {
|
|
3315
3315
|
return e || (t?.classList.contains("target") ? "target" : t?.classList.contains("source") ? "source" : null);
|
|
3316
3316
|
}
|
|
3317
3317
|
function ir(e) {
|
|
@@ -3324,7 +3324,7 @@ function Kp(e, t) {
|
|
|
3324
3324
|
function tl({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getState: s, setState: i, isValidConnection: a, edgeUpdaterType: c, onReconnectEnd: d }) {
|
|
3325
3325
|
const l = Va(e.target), { connectionMode: u, domNode: f, autoPanOnConnect: h, connectionRadius: g, onConnectStart: y, panBy: p, getNodes: m, cancelConnection: w } = s();
|
|
3326
3326
|
let x = 0, b;
|
|
3327
|
-
const { x: C, y: S } = Ke(e), R = l?.elementFromPoint(C, S), E =
|
|
3327
|
+
const { x: C, y: S } = Ke(e), R = l?.elementFromPoint(C, S), E = Bo(c, R), _ = f?.getBoundingClientRect();
|
|
3328
3328
|
if (!_ || !E)
|
|
3329
3329
|
return;
|
|
3330
3330
|
let N, M = Ke(e, _), O = !1, F = null, v = !1, A = null;
|
|
@@ -3356,7 +3356,7 @@ function tl({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getSt
|
|
|
3356
3356
|
function G(H) {
|
|
3357
3357
|
const { transform: q } = s();
|
|
3358
3358
|
M = Ke(H, _);
|
|
3359
|
-
const { handle: j, validHandleResult: k } = Xp(H, l,
|
|
3359
|
+
const { handle: j, validHandleResult: k } = Xp(H, l, vo(M, q, !1, [1, 1]), g, L, (I) => el(I, u, n, t, o ? "target" : "source", a, l));
|
|
3360
3360
|
if (b = j, O || (z(), O = !0), A = k.handleDomNode, F = k.connection, v = k.isValid, i({
|
|
3361
3361
|
connectionPosition: b && v ? Za({
|
|
3362
3362
|
x: b.x,
|
|
@@ -3453,7 +3453,7 @@ const rl = ({ data: e, isConnectable: t, targetPosition: n = X.Top, sourcePositi
|
|
|
3453
3453
|
$.createElement(Je, { type: "source", position: r, isConnectable: t })
|
|
3454
3454
|
);
|
|
3455
3455
|
rl.displayName = "DefaultNode";
|
|
3456
|
-
var
|
|
3456
|
+
var bo = ae(rl);
|
|
3457
3457
|
const ol = ({ data: e, isConnectable: t, sourcePosition: n = X.Bottom }) => $.createElement(
|
|
3458
3458
|
$.Fragment,
|
|
3459
3459
|
null,
|
|
@@ -3470,8 +3470,8 @@ const sl = ({ data: e, isConnectable: t, targetPosition: n = X.Top }) => $.creat
|
|
|
3470
3470
|
);
|
|
3471
3471
|
sl.displayName = "OutputNode";
|
|
3472
3472
|
var al = ae(sl);
|
|
3473
|
-
const
|
|
3474
|
-
|
|
3473
|
+
const qo = () => null;
|
|
3474
|
+
qo.displayName = "GroupNode";
|
|
3475
3475
|
const eg = (e) => ({
|
|
3476
3476
|
selectedNodes: e.getNodes().filter((t) => t.selected),
|
|
3477
3477
|
selectedEdges: e.edges.filter((t) => t.selected).map((t) => ({ ...t }))
|
|
@@ -3563,12 +3563,12 @@ var Qt = (e = null, t = { actInsideInputWithModifier: !0 }) => {
|
|
|
3563
3563
|
const c = typeof document < "u" ? document : null, d = t?.target || c;
|
|
3564
3564
|
if (e !== null) {
|
|
3565
3565
|
const l = (h) => {
|
|
3566
|
-
if (o.current = h.ctrlKey || h.metaKey || h.shiftKey, (!o.current || o.current && !t.actInsideInputWithModifier) &&
|
|
3566
|
+
if (o.current = h.ctrlKey || h.metaKey || h.shiftKey, (!o.current || o.current && !t.actInsideInputWithModifier) && mo(h))
|
|
3567
3567
|
return !1;
|
|
3568
3568
|
const y = Bi(h.code, a);
|
|
3569
3569
|
s.current.add(h[y]), Hi(i, s.current, !1) && (h.preventDefault(), r(!0));
|
|
3570
3570
|
}, u = (h) => {
|
|
3571
|
-
if ((!o.current || o.current && !t.actInsideInputWithModifier) &&
|
|
3571
|
+
if ((!o.current || o.current && !t.actInsideInputWithModifier) && mo(h))
|
|
3572
3572
|
return !1;
|
|
3573
3573
|
const y = Bi(h.code, a);
|
|
3574
3574
|
Hi(i, s.current, !0) ? (r(!1), s.current.clear()) : s.current.delete(h[y]), h.key === "Meta" && s.current.clear(), o.current = !1;
|
|
@@ -3715,7 +3715,7 @@ const Et = () => {
|
|
|
3715
3715
|
// @deprecated Use `screenToFlowPosition`.
|
|
3716
3716
|
project: (o) => {
|
|
3717
3717
|
const { transform: s, snapToGrid: i, snapGrid: a } = e.getState();
|
|
3718
|
-
return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),
|
|
3718
|
+
return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"), vo(o, s, i, a);
|
|
3719
3719
|
},
|
|
3720
3720
|
screenToFlowPosition: (o) => {
|
|
3721
3721
|
const { transform: s, snapToGrid: i, snapGrid: a, domNode: c } = e.getState();
|
|
@@ -3725,7 +3725,7 @@ const Et = () => {
|
|
|
3725
3725
|
x: o.x - d,
|
|
3726
3726
|
y: o.y - l
|
|
3727
3727
|
};
|
|
3728
|
-
return
|
|
3728
|
+
return vo(u, s, i, a);
|
|
3729
3729
|
},
|
|
3730
3730
|
flowToScreenPosition: (o) => {
|
|
3731
3731
|
const { transform: s, domNode: i } = e.getState();
|
|
@@ -3740,7 +3740,7 @@ const Et = () => {
|
|
|
3740
3740
|
viewportInitialized: !0
|
|
3741
3741
|
} : hg, [t, n]);
|
|
3742
3742
|
};
|
|
3743
|
-
function
|
|
3743
|
+
function Go() {
|
|
3744
3744
|
const e = gg(), t = pe(), n = de(() => t.getState().getNodes().map((y) => ({ ...y })), []), r = de((y) => t.getState().nodeInternals.get(y), []), o = de(() => {
|
|
3745
3745
|
const { edges: y = [] } = t.getState();
|
|
3746
3746
|
return y.map((p) => ({ ...p }));
|
|
@@ -3820,14 +3820,14 @@ function qo() {
|
|
|
3820
3820
|
return w ? (m || t.getState().getNodes()).filter((C) => {
|
|
3821
3821
|
if (!b && (C.id === x.id || !C.positionAbsolute))
|
|
3822
3822
|
return !1;
|
|
3823
|
-
const S = Ti(C), R =
|
|
3823
|
+
const S = Ti(C), R = go(S, w);
|
|
3824
3824
|
return p && R > 0 || R >= w.width * w.height;
|
|
3825
3825
|
}) : [];
|
|
3826
3826
|
}, []), g = de((y, p, m = !0) => {
|
|
3827
3827
|
const [w] = f(y);
|
|
3828
3828
|
if (!w)
|
|
3829
3829
|
return !1;
|
|
3830
|
-
const x =
|
|
3830
|
+
const x = go(w, p);
|
|
3831
3831
|
return m && x > 0 || x >= w.width * w.height;
|
|
3832
3832
|
}, []);
|
|
3833
3833
|
return Ne(() => ({
|
|
@@ -3862,7 +3862,7 @@ function qo() {
|
|
|
3862
3862
|
}
|
|
3863
3863
|
const mg = { actInsideInputWithModifier: !1 };
|
|
3864
3864
|
var yg = ({ deleteKeyCode: e, multiSelectionKeyCode: t }) => {
|
|
3865
|
-
const n = pe(), { deleteElements: r } =
|
|
3865
|
+
const n = pe(), { deleteElements: r } = Go(), o = Qt(e, mg), s = Qt(t);
|
|
3866
3866
|
oe(() => {
|
|
3867
3867
|
if (o) {
|
|
3868
3868
|
const { edges: i, getNodes: a } = n.getState(), c = a().filter((l) => l.selected), d = i.filter((l) => l.selected);
|
|
@@ -3879,7 +3879,7 @@ function wg(e) {
|
|
|
3879
3879
|
const r = () => {
|
|
3880
3880
|
if (!e.current)
|
|
3881
3881
|
return;
|
|
3882
|
-
const o =
|
|
3882
|
+
const o = Do(e.current);
|
|
3883
3883
|
(o.height === 0 || o.width === 0) && t.getState().onError?.("004", Ie.error004()), t.setState({ width: o.width || 500, height: o.height || 500 });
|
|
3884
3884
|
};
|
|
3885
3885
|
return r(), window.addEventListener("resize", r), e.current && (n = new ResizeObserver(() => r()), n.observe(e.current)), () => {
|
|
@@ -3887,7 +3887,7 @@ function wg(e) {
|
|
|
3887
3887
|
};
|
|
3888
3888
|
}, []);
|
|
3889
3889
|
}
|
|
3890
|
-
const
|
|
3890
|
+
const Yo = {
|
|
3891
3891
|
position: "absolute",
|
|
3892
3892
|
width: "100%",
|
|
3893
3893
|
height: "100%",
|
|
@@ -4013,7 +4013,7 @@ const Go = {
|
|
|
4013
4013
|
u,
|
|
4014
4014
|
l,
|
|
4015
4015
|
A
|
|
4016
|
-
]), $.createElement("div", { className: "react-flow__renderer", ref: _, style:
|
|
4016
|
+
]), $.createElement("div", { className: "react-flow__renderer", ref: _, style: Yo }, w);
|
|
4017
4017
|
}, Eg = (e) => ({
|
|
4018
4018
|
userSelectionActive: e.userSelectionActive,
|
|
4019
4019
|
userSelectionRect: e.userSelectionRect
|
|
@@ -4157,7 +4157,7 @@ const ar = (e, t) => (n) => {
|
|
|
4157
4157
|
}, O = w && (e || m);
|
|
4158
4158
|
return $.createElement(
|
|
4159
4159
|
"div",
|
|
4160
|
-
{ className: me(["react-flow__pane", { dragging: x, selection: e }]), onClick: O ? void 0 : ar(C, f), onContextMenu: ar(S, f), onWheel: ar(R, f), onMouseEnter: O ? void 0 : c, onMouseDown: O ? E : void 0, onMouseMove: O ? _ : d, onMouseUp: O ? N : void 0, onMouseLeave: O ? M : l, ref: f, style:
|
|
4160
|
+
{ className: me(["react-flow__pane", { dragging: x, selection: e }]), onClick: O ? void 0 : ar(C, f), onContextMenu: ar(S, f), onWheel: ar(R, f), onMouseEnter: O ? void 0 : c, onMouseDown: O ? E : void 0, onMouseMove: O ? _ : d, onMouseUp: O ? N : void 0, onMouseLeave: O ? M : l, ref: f, style: Yo },
|
|
4161
4161
|
u,
|
|
4162
4162
|
$.createElement(_g, null)
|
|
4163
4163
|
);
|
|
@@ -4233,7 +4233,7 @@ function wl(e, t, n, r, o = [0, 0], s) {
|
|
|
4233
4233
|
const u = n.get(c);
|
|
4234
4234
|
d = dt(u, o).positionAbsolute;
|
|
4235
4235
|
}
|
|
4236
|
-
const l = a && a !== "parent" ?
|
|
4236
|
+
const l = a && a !== "parent" ? Po(t, a) : t;
|
|
4237
4237
|
return {
|
|
4238
4238
|
position: {
|
|
4239
4239
|
x: l.x - d.x,
|
|
@@ -4265,7 +4265,7 @@ const Wi = (e, t, n, r) => {
|
|
|
4265
4265
|
position: c.getAttribute("data-handlepos"),
|
|
4266
4266
|
x: (d.left - i.left - a.x) / n,
|
|
4267
4267
|
y: (d.top - i.top - a.y) / n,
|
|
4268
|
-
...
|
|
4268
|
+
...Do(c)
|
|
4269
4269
|
};
|
|
4270
4270
|
});
|
|
4271
4271
|
};
|
|
@@ -4275,7 +4275,7 @@ function Vt(e, t, n) {
|
|
|
4275
4275
|
o && n(r, { ...o });
|
|
4276
4276
|
};
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function xo({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
|
4279
4279
|
const { addSelectedNodes: o, unselectNodesAndEdges: s, multiSelectionActive: i, nodeInternals: a, onError: c } = t.getState(), d = a.get(e);
|
|
4280
4280
|
if (!d) {
|
|
4281
4281
|
c?.("012", Ie.error012(e));
|
|
@@ -4347,7 +4347,7 @@ function vl({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
|
|
|
4347
4347
|
const { nodeInternals: _, multiSelectionActive: N, nodesDraggable: M, unselectNodesAndEdges: O, onNodeDragStart: F, onSelectionDragStart: v } = a.getState();
|
|
4348
4348
|
m.current = !0;
|
|
4349
4349
|
const A = o ? F : cr(v);
|
|
4350
|
-
(!i || !s) && !N && o && (_.get(o)?.selected || O()), o && s && i &&
|
|
4350
|
+
(!i || !s) && !N && o && (_.get(o)?.selected || O()), o && s && i && xo({
|
|
4351
4351
|
id: o,
|
|
4352
4352
|
store: a,
|
|
4353
4353
|
nodeRef: e
|
|
@@ -4437,7 +4437,7 @@ var Ht = (e) => {
|
|
|
4437
4437
|
const t = ({ id: n, type: r, data: o, xPos: s, yPos: i, xPosOrigin: a, yPosOrigin: c, selected: d, onClick: l, onMouseEnter: u, onMouseMove: f, onMouseLeave: h, onContextMenu: g, onDoubleClick: y, style: p, className: m, isDraggable: w, isSelectable: x, isConnectable: b, isFocusable: C, selectNodesOnDrag: S, sourcePosition: R, targetPosition: E, hidden: _, resizeObserver: N, dragHandle: M, zIndex: O, isParent: F, noDragClassName: v, noPanClassName: A, initialized: L, disableKeyboardA11y: z, ariaLabel: G, rfId: D, hasHandleBounds: H }) => {
|
|
4438
4438
|
const q = pe(), j = Q(null), k = Q(null), I = Q(R), P = Q(E), B = Q(r), V = x || w || l || u || f || h, Y = bl(), W = Vt(n, q.getState, u), Z = Vt(n, q.getState, f), ne = Vt(n, q.getState, h), K = Vt(n, q.getState, g), ee = Vt(n, q.getState, y), ce = (ie) => {
|
|
4439
4439
|
const { nodeDragThreshold: U } = q.getState();
|
|
4440
|
-
if (x && (!S || !w || U > 0) &&
|
|
4440
|
+
if (x && (!S || !w || U > 0) && xo({
|
|
4441
4441
|
id: n,
|
|
4442
4442
|
store: q,
|
|
4443
4443
|
nodeRef: j
|
|
@@ -4446,10 +4446,10 @@ var Ht = (e) => {
|
|
|
4446
4446
|
ve && l(ie, { ...ve });
|
|
4447
4447
|
}
|
|
4448
4448
|
}, se = (ie) => {
|
|
4449
|
-
if (!
|
|
4449
|
+
if (!mo(ie) && !z)
|
|
4450
4450
|
if (qa.includes(ie.key) && x) {
|
|
4451
4451
|
const U = ie.key === "Escape";
|
|
4452
|
-
|
|
4452
|
+
xo({
|
|
4453
4453
|
id: n,
|
|
4454
4454
|
store: q,
|
|
4455
4455
|
unselect: U,
|
|
@@ -4578,10 +4578,10 @@ function Rg(e) {
|
|
|
4578
4578
|
function Dg(e) {
|
|
4579
4579
|
const t = {
|
|
4580
4580
|
input: Ht(e.input || il),
|
|
4581
|
-
default: Ht(e.default ||
|
|
4581
|
+
default: Ht(e.default || bo),
|
|
4582
4582
|
output: Ht(e.output || al),
|
|
4583
|
-
group: Ht(e.group ||
|
|
4584
|
-
}, n = {}, r = Object.keys(e).filter((o) => !["input", "default", "output", "group"].includes(o)).reduce((o, s) => (o[s] = Ht(e[s] ||
|
|
4583
|
+
group: Ht(e.group || qo)
|
|
4584
|
+
}, n = {}, r = Object.keys(e).filter((o) => !["input", "default", "output", "group"].includes(o)).reduce((o, s) => (o[s] = Ht(e[s] || bo), o), n);
|
|
4585
4585
|
return {
|
|
4586
4586
|
...t,
|
|
4587
4587
|
...r
|
|
@@ -4613,10 +4613,10 @@ const Pg = ({ x: e, y: t, width: n, height: r, origin: o }) => !n || !r ? { x: e
|
|
|
4613
4613
|
}, []);
|
|
4614
4614
|
return oe(() => () => {
|
|
4615
4615
|
c?.current?.disconnect();
|
|
4616
|
-
}, []), $.createElement("div", { className: "react-flow__nodes", style:
|
|
4616
|
+
}, []), $.createElement("div", { className: "react-flow__nodes", style: Yo }, a.map((l) => {
|
|
4617
4617
|
let u = l.type || "default";
|
|
4618
4618
|
e.nodeTypes[u] || (i?.("003", Ie.error003(u)), u = "default");
|
|
4619
|
-
const f = e.nodeTypes[u] || e.nodeTypes.default, h = !!(l.draggable || t && typeof l.draggable > "u"), g = !!(l.selectable || o && typeof l.selectable > "u"), y = !!(l.connectable || n && typeof l.connectable > "u"), p = !!(l.focusable || r && typeof l.focusable > "u"), m = e.nodeExtent ?
|
|
4619
|
+
const f = e.nodeTypes[u] || e.nodeTypes.default, h = !!(l.draggable || t && typeof l.draggable > "u"), g = !!(l.selectable || o && typeof l.selectable > "u"), y = !!(l.connectable || n && typeof l.connectable > "u"), p = !!(l.focusable || r && typeof l.focusable > "u"), m = e.nodeExtent ? Po(l.positionAbsolute, e.nodeExtent) : l.positionAbsolute, w = m?.x ?? 0, x = m?.y ?? 0, b = Pg({
|
|
4620
4620
|
x: w,
|
|
4621
4621
|
y: x,
|
|
4622
4622
|
width: l.width ?? 0,
|
|
@@ -4631,7 +4631,7 @@ var Fg = ae(El);
|
|
|
4631
4631
|
const zg = (e, t, n) => n === X.Left ? e - t : n === X.Right ? e + t : e, Vg = (e, t, n) => n === X.Top ? e - t : n === X.Bottom ? e + t : e, Xi = "react-flow__edgeupdater", Zi = ({ position: e, centerX: t, centerY: n, radius: r = 10, onMouseDown: o, onMouseEnter: s, onMouseOut: i, type: a }) => $.createElement("circle", { onMouseDown: o, onMouseEnter: s, onMouseOut: i, className: me([Xi, `${Xi}-${a}`]), cx: zg(t, r, e), cy: Vg(n, r, e), r, stroke: "transparent", fill: "transparent" }), Hg = () => !0;
|
|
4632
4632
|
var St = (e) => {
|
|
4633
4633
|
const t = ({ id: n, className: r, type: o, data: s, onClick: i, onEdgeDoubleClick: a, selected: c, animated: d, label: l, labelStyle: u, labelShowBg: f, labelBgStyle: h, labelBgPadding: g, labelBgBorderRadius: y, style: p, source: m, target: w, sourceX: x, sourceY: b, targetX: C, targetY: S, sourcePosition: R, targetPosition: E, elementsSelectable: _, hidden: N, sourceHandleId: M, targetHandleId: O, onContextMenu: F, onMouseEnter: v, onMouseMove: A, onMouseLeave: L, reconnectRadius: z, onReconnect: G, onReconnectStart: D, onReconnectEnd: H, markerEnd: q, markerStart: j, rfId: k, ariaLabel: I, isFocusable: P, isReconnectable: B, pathOptions: V, interactionWidth: Y, disableKeyboardA11y: W }) => {
|
|
4634
|
-
const Z = Q(null), [ne, K] = re(!1), [ee, ce] = re(!1), se = pe(), ye = Ne(() => `url('#${
|
|
4634
|
+
const Z = Q(null), [ne, K] = re(!1), [ee, ce] = re(!1), se = pe(), ye = Ne(() => `url('#${wo(j, k)}')`, [j, k]), ie = Ne(() => `url('#${wo(q, k)}')`, [q, k]);
|
|
4635
4635
|
if (N)
|
|
4636
4636
|
return null;
|
|
4637
4637
|
const U = (we) => {
|
|
@@ -4685,10 +4685,10 @@ var St = (e) => {
|
|
|
4685
4685
|
function Bg(e) {
|
|
4686
4686
|
const t = {
|
|
4687
4687
|
default: St(e.default || On),
|
|
4688
|
-
straight: St(e.bezier ||
|
|
4689
|
-
step: St(e.step ||
|
|
4688
|
+
straight: St(e.bezier || zo),
|
|
4689
|
+
step: St(e.step || Fo),
|
|
4690
4690
|
smoothstep: St(e.step || qn),
|
|
4691
|
-
simplebezier: St(e.simplebezier ||
|
|
4691
|
+
simplebezier: St(e.simplebezier || $o)
|
|
4692
4692
|
}, n = {}, r = Object.keys(e).filter((o) => !["default", "bezier"].includes(o)).reduce((o, s) => (o[s] = St(e[s] || On), o), n);
|
|
4693
4693
|
return {
|
|
4694
4694
|
...t,
|
|
@@ -4825,7 +4825,7 @@ const Kg = ({ id: e, type: t, color: n, width: r = 12.5, height: o = 12.5, marke
|
|
|
4825
4825
|
const r = [];
|
|
4826
4826
|
return n.edges.reduce((o, s) => ([s.markerStart, s.markerEnd].forEach((i) => {
|
|
4827
4827
|
if (i && typeof i == "object") {
|
|
4828
|
-
const a =
|
|
4828
|
+
const a = wo(i, t);
|
|
4829
4829
|
r.includes(a) || (o.push({ id: a, color: i.color || e, ...i }), r.push(a));
|
|
4830
4830
|
}
|
|
4831
4831
|
}), o), []).sort((o, s) => o.id.localeCompare(s.id));
|
|
@@ -4882,7 +4882,7 @@ function rm({ children: e }) {
|
|
|
4882
4882
|
return $.createElement("div", { className: "react-flow__viewport react-flow__container", style: { transform: t } }, e);
|
|
4883
4883
|
}
|
|
4884
4884
|
function om(e) {
|
|
4885
|
-
const t =
|
|
4885
|
+
const t = Go(), n = Q(!1);
|
|
4886
4886
|
oe(() => {
|
|
4887
4887
|
!n.current && t.viewportInitialized && e && (setTimeout(() => e(t), 1), n.current = !0);
|
|
4888
4888
|
}, [e, t.viewportInitialized]);
|
|
@@ -4917,10 +4917,10 @@ const im = {
|
|
|
4917
4917
|
targetY: d,
|
|
4918
4918
|
targetPosition: x
|
|
4919
4919
|
};
|
|
4920
|
-
return r === Ze.Bezier ? [b] =
|
|
4920
|
+
return r === Ze.Bezier ? [b] = Vo(C) : r === Ze.Step ? [b] = yo({
|
|
4921
4921
|
...C,
|
|
4922
4922
|
borderRadius: 0
|
|
4923
|
-
}) : r === Ze.SmoothStep ? [b] =
|
|
4923
|
+
}) : r === Ze.SmoothStep ? [b] = yo(C) : r === Ze.SimpleBezier ? [b] = Xa(C) : b = `M${p},${m} ${c},${d}`, $.createElement("path", { d: b, fill: "none", className: "react-flow__connection-path", style: n });
|
|
4924
4924
|
};
|
|
4925
4925
|
Cl.displayName = "ConnectionLine";
|
|
4926
4926
|
const sm = (e) => ({
|
|
@@ -4973,7 +4973,7 @@ const Nl = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd:
|
|
|
4973
4973
|
};
|
|
4974
4974
|
Nl.displayName = "GraphView";
|
|
4975
4975
|
var lm = ae(Nl);
|
|
4976
|
-
const
|
|
4976
|
+
const Eo = [
|
|
4977
4977
|
[Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY],
|
|
4978
4978
|
[Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY]
|
|
4979
4979
|
], Ye = {
|
|
@@ -4992,8 +4992,8 @@ const xo = [
|
|
|
4992
4992
|
d3ZoomHandler: void 0,
|
|
4993
4993
|
minZoom: 0.5,
|
|
4994
4994
|
maxZoom: 2,
|
|
4995
|
-
translateExtent:
|
|
4996
|
-
nodeExtent:
|
|
4995
|
+
translateExtent: Eo,
|
|
4996
|
+
nodeExtent: Eo,
|
|
4997
4997
|
nodesSelectionActive: !1,
|
|
4998
4998
|
userSelectionActive: !1,
|
|
4999
4999
|
userSelectionRect: null,
|
|
@@ -5064,7 +5064,7 @@ const xo = [
|
|
|
5064
5064
|
}
|
|
5065
5065
|
});
|
|
5066
5066
|
else if (m) {
|
|
5067
|
-
const w =
|
|
5067
|
+
const w = Do(p.nodeElement);
|
|
5068
5068
|
w.width && w.height && (m.width !== w.width || m.height !== w.height || p.forceUpdate) && (o.set(m.id, {
|
|
5069
5069
|
...m,
|
|
5070
5070
|
[ue]: {
|
|
@@ -5160,7 +5160,7 @@ const xo = [
|
|
|
5160
5160
|
setNodeExtent: (n) => {
|
|
5161
5161
|
const { nodeInternals: r } = t();
|
|
5162
5162
|
r.forEach((o) => {
|
|
5163
|
-
o.positionAbsolute =
|
|
5163
|
+
o.positionAbsolute = Po(o.position, n);
|
|
5164
5164
|
}), e({
|
|
5165
5165
|
nodeExtent: n,
|
|
5166
5166
|
nodeInternals: new Map(r)
|
|
@@ -5194,35 +5194,35 @@ const Ml = ({ children: e }) => $n(Bn) ? $.createElement($.Fragment, null, e) :
|
|
|
5194
5194
|
Ml.displayName = "ReactFlowWrapper";
|
|
5195
5195
|
const um = {
|
|
5196
5196
|
input: il,
|
|
5197
|
-
default:
|
|
5197
|
+
default: bo,
|
|
5198
5198
|
output: al,
|
|
5199
|
-
group:
|
|
5199
|
+
group: qo
|
|
5200
5200
|
}, dm = {
|
|
5201
5201
|
default: On,
|
|
5202
|
-
straight:
|
|
5203
|
-
step:
|
|
5202
|
+
straight: zo,
|
|
5203
|
+
step: Fo,
|
|
5204
5204
|
smoothstep: qn,
|
|
5205
|
-
simplebezier:
|
|
5205
|
+
simplebezier: $o
|
|
5206
5206
|
}, fm = [0, 0], hm = [15, 15], pm = { x: 0, y: 0, zoom: 1 }, gm = {
|
|
5207
5207
|
width: "100%",
|
|
5208
5208
|
height: "100%",
|
|
5209
5209
|
overflow: "hidden",
|
|
5210
5210
|
position: "relative",
|
|
5211
5211
|
zIndex: 0
|
|
5212
|
-
}, Ll = oa(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: s = um, edgeTypes: i = dm, onNodeClick: a, onEdgeClick: c, onInit: d, onMove: l, onMoveStart: u, onMoveEnd: f, onConnect: h, onConnectStart: g, onConnectEnd: y, onClickConnectStart: p, onClickConnectEnd: m, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: C, onNodeDoubleClick: S, onNodeDragStart: R, onNodeDrag: E, onNodeDragStop: _, onNodesDelete: N, onEdgesDelete: M, onSelectionChange: O, onSelectionDragStart: F, onSelectionDrag: v, onSelectionDragStop: A, onSelectionContextMenu: L, onSelectionStart: z, onSelectionEnd: G, connectionMode: D = ht.Strict, connectionLineType: H = Ze.Bezier, connectionLineStyle: q, connectionLineComponent: j, connectionLineContainerStyle: k, deleteKeyCode: I = "Backspace", selectionKeyCode: P = "Shift", selectionOnDrag: B = !1, selectionMode: V = Kt.Full, panActivationKeyCode: Y = "Space", multiSelectionKeyCode: W = Ln() ? "Meta" : "Control", zoomActivationKeyCode: Z = Ln() ? "Meta" : "Control", snapToGrid: ne = !1, snapGrid: K = hm, onlyRenderVisibleElements: ee = !1, selectNodesOnDrag: ce = !0, nodesDraggable: se, nodesConnectable: ye, nodesFocusable: ie, nodeOrigin: U = fm, edgesFocusable: ve, edgesUpdatable: $e, elementsSelectable: Rt, defaultViewport: gt = pm, minZoom: mt = 0.5, maxZoom: Fe = 2, translateExtent: yt =
|
|
5213
|
-
const Zn =
|
|
5212
|
+
}, Ll = oa(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: s = um, edgeTypes: i = dm, onNodeClick: a, onEdgeClick: c, onInit: d, onMove: l, onMoveStart: u, onMoveEnd: f, onConnect: h, onConnectStart: g, onConnectEnd: y, onClickConnectStart: p, onClickConnectEnd: m, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: C, onNodeDoubleClick: S, onNodeDragStart: R, onNodeDrag: E, onNodeDragStop: _, onNodesDelete: N, onEdgesDelete: M, onSelectionChange: O, onSelectionDragStart: F, onSelectionDrag: v, onSelectionDragStop: A, onSelectionContextMenu: L, onSelectionStart: z, onSelectionEnd: G, connectionMode: D = ht.Strict, connectionLineType: H = Ze.Bezier, connectionLineStyle: q, connectionLineComponent: j, connectionLineContainerStyle: k, deleteKeyCode: I = "Backspace", selectionKeyCode: P = "Shift", selectionOnDrag: B = !1, selectionMode: V = Kt.Full, panActivationKeyCode: Y = "Space", multiSelectionKeyCode: W = Ln() ? "Meta" : "Control", zoomActivationKeyCode: Z = Ln() ? "Meta" : "Control", snapToGrid: ne = !1, snapGrid: K = hm, onlyRenderVisibleElements: ee = !1, selectNodesOnDrag: ce = !0, nodesDraggable: se, nodesConnectable: ye, nodesFocusable: ie, nodeOrigin: U = fm, edgesFocusable: ve, edgesUpdatable: $e, elementsSelectable: Rt, defaultViewport: gt = pm, minZoom: mt = 0.5, maxZoom: Fe = 2, translateExtent: yt = Eo, preventScrolling: et = !0, nodeExtent: tt, defaultMarkerColor: wt = "#b1b1b7", zoomOnScroll: vt = !0, zoomOnPinch: Dt = !0, panOnScroll: we = !1, panOnScrollSpeed: Te = 0.5, panOnScrollMode: nt = ct.Free, zoomOnDoubleClick: rt = !0, panOnDrag: bt = !0, onPaneClick: Re, onPaneMouseEnter: ot, onPaneMouseMove: jn, onPaneMouseLeave: Wn, onPaneScroll: Pt, onPaneContextMenu: Xn, children: Uo, onEdgeContextMenu: it, onEdgeDoubleClick: Yl, onEdgeMouseEnter: jl, onEdgeMouseMove: Wl, onEdgeMouseLeave: Xl, onEdgeUpdate: Zl, onEdgeUpdateStart: Ul, onEdgeUpdateEnd: Kl, onReconnect: Ql, onReconnectStart: Jl, onReconnectEnd: ec, reconnectRadius: tc = 10, edgeUpdaterRadius: nc = 10, onNodesChange: rc, onEdgesChange: oc, noDragClassName: ic = "nodrag", noWheelClassName: sc = "nowheel", noPanClassName: Ko = "nopan", fitView: ac = !1, fitViewOptions: lc, connectOnClick: cc = !0, attributionPosition: uc, proOptions: dc, defaultEdgeOptions: fc, elevateNodesOnSelect: hc = !0, elevateEdgesOnSelect: pc = !1, disableKeyboardA11y: Qo = !1, autoPanOnConnect: gc = !0, autoPanOnNodeDrag: mc = !0, connectionRadius: yc = 20, isValidConnection: wc, onError: vc, style: bc, id: Jo, nodeDragThreshold: xc, ...Ec }, _c) => {
|
|
5213
|
+
const Zn = Jo || "1";
|
|
5214
5214
|
return $.createElement(
|
|
5215
5215
|
"div",
|
|
5216
|
-
{ ...Ec, style: { ...bc, ...gm }, ref: _c, className: me(["react-flow", o]), "data-testid": "rf__wrapper", id:
|
|
5216
|
+
{ ...Ec, style: { ...bc, ...gm }, ref: _c, className: me(["react-flow", o]), "data-testid": "rf__wrapper", id: Jo },
|
|
5217
5217
|
$.createElement(
|
|
5218
5218
|
Ml,
|
|
5219
5219
|
null,
|
|
5220
|
-
$.createElement(lm, { onInit: d, onMove: l, onMoveStart: u, onMoveEnd: f, onNodeClick: a, onEdgeClick: c, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: C, onNodeDoubleClick: S, nodeTypes: s, edgeTypes: i, connectionLineType: H, connectionLineStyle: q, connectionLineComponent: j, connectionLineContainerStyle: k, selectionKeyCode: P, selectionOnDrag: B, selectionMode: V, deleteKeyCode: I, multiSelectionKeyCode: W, panActivationKeyCode: Y, zoomActivationKeyCode: Z, onlyRenderVisibleElements: ee, selectNodesOnDrag: ce, defaultViewport: gt, translateExtent: yt, minZoom: mt, maxZoom: Fe, preventScrolling: et, zoomOnScroll: vt, zoomOnPinch: Dt, zoomOnDoubleClick: rt, panOnScroll: we, panOnScrollSpeed: Te, panOnScrollMode: nt, panOnDrag: bt, onPaneClick: Re, onPaneMouseEnter: ot, onPaneMouseMove: jn, onPaneMouseLeave: Wn, onPaneScroll: Pt, onPaneContextMenu: Xn, onSelectionContextMenu: L, onSelectionStart: z, onSelectionEnd: G, onEdgeContextMenu: it, onEdgeDoubleClick: Yl, onEdgeMouseEnter: jl, onEdgeMouseMove: Wl, onEdgeMouseLeave: Xl, onReconnect: Ql ?? Zl, onReconnectStart: Jl ?? Ul, onReconnectEnd: ec ?? Kl, reconnectRadius: tc ?? nc, defaultMarkerColor: wt, noDragClassName: ic, noWheelClassName: sc, noPanClassName:
|
|
5221
|
-
$.createElement(ig, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: h, onConnectStart: g, onConnectEnd: y, onClickConnectStart: p, onClickConnectEnd: m, nodesDraggable: se, nodesConnectable: ye, nodesFocusable: ie, edgesFocusable: ve, edgesUpdatable: $e, elementsSelectable: Rt, elevateNodesOnSelect: hc, minZoom: mt, maxZoom: Fe, nodeExtent: tt, onNodesChange: rc, onEdgesChange: oc, snapToGrid: ne, snapGrid: K, connectionMode: D, translateExtent: yt, connectOnClick: cc, defaultEdgeOptions: fc, fitView: ac, fitViewOptions: lc, onNodesDelete: N, onEdgesDelete: M, onNodeDragStart: R, onNodeDrag: E, onNodeDragStop: _, onSelectionDrag: v, onSelectionDragStart: F, onSelectionDragStop: A, noPanClassName:
|
|
5220
|
+
$.createElement(lm, { onInit: d, onMove: l, onMoveStart: u, onMoveEnd: f, onNodeClick: a, onEdgeClick: c, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: C, onNodeDoubleClick: S, nodeTypes: s, edgeTypes: i, connectionLineType: H, connectionLineStyle: q, connectionLineComponent: j, connectionLineContainerStyle: k, selectionKeyCode: P, selectionOnDrag: B, selectionMode: V, deleteKeyCode: I, multiSelectionKeyCode: W, panActivationKeyCode: Y, zoomActivationKeyCode: Z, onlyRenderVisibleElements: ee, selectNodesOnDrag: ce, defaultViewport: gt, translateExtent: yt, minZoom: mt, maxZoom: Fe, preventScrolling: et, zoomOnScroll: vt, zoomOnPinch: Dt, zoomOnDoubleClick: rt, panOnScroll: we, panOnScrollSpeed: Te, panOnScrollMode: nt, panOnDrag: bt, onPaneClick: Re, onPaneMouseEnter: ot, onPaneMouseMove: jn, onPaneMouseLeave: Wn, onPaneScroll: Pt, onPaneContextMenu: Xn, onSelectionContextMenu: L, onSelectionStart: z, onSelectionEnd: G, onEdgeContextMenu: it, onEdgeDoubleClick: Yl, onEdgeMouseEnter: jl, onEdgeMouseMove: Wl, onEdgeMouseLeave: Xl, onReconnect: Ql ?? Zl, onReconnectStart: Jl ?? Ul, onReconnectEnd: ec ?? Kl, reconnectRadius: tc ?? nc, defaultMarkerColor: wt, noDragClassName: ic, noWheelClassName: sc, noPanClassName: Ko, elevateEdgesOnSelect: pc, rfId: Zn, disableKeyboardA11y: Qo, nodeOrigin: U, nodeExtent: tt }),
|
|
5221
|
+
$.createElement(ig, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: h, onConnectStart: g, onConnectEnd: y, onClickConnectStart: p, onClickConnectEnd: m, nodesDraggable: se, nodesConnectable: ye, nodesFocusable: ie, edgesFocusable: ve, edgesUpdatable: $e, elementsSelectable: Rt, elevateNodesOnSelect: hc, minZoom: mt, maxZoom: Fe, nodeExtent: tt, onNodesChange: rc, onEdgesChange: oc, snapToGrid: ne, snapGrid: K, connectionMode: D, translateExtent: yt, connectOnClick: cc, defaultEdgeOptions: fc, fitView: ac, fitViewOptions: lc, onNodesDelete: N, onEdgesDelete: M, onNodeDragStart: R, onNodeDrag: E, onNodeDragStop: _, onSelectionDrag: v, onSelectionDragStart: F, onSelectionDragStop: A, noPanClassName: Ko, nodeOrigin: U, rfId: Zn, autoPanOnConnect: gc, autoPanOnNodeDrag: mc, onError: vc, connectionRadius: yc, isValidConnection: wc, nodeDragThreshold: xc }),
|
|
5222
5222
|
$.createElement(rg, { onSelectionChange: O }),
|
|
5223
|
-
|
|
5223
|
+
Uo,
|
|
5224
5224
|
$.createElement(Op, { proOptions: dc, position: uc }),
|
|
5225
|
-
$.createElement(ug, { rfId: Zn, disableKeyboardA11y:
|
|
5225
|
+
$.createElement(ug, { rfId: Zn, disableKeyboardA11y: Qo })
|
|
5226
5226
|
)
|
|
5227
5227
|
);
|
|
5228
5228
|
});
|
|
@@ -5330,7 +5330,7 @@ function Al({
|
|
|
5330
5330
|
h(P, V);
|
|
5331
5331
|
} : void 0;
|
|
5332
5332
|
return $.createElement(
|
|
5333
|
-
|
|
5333
|
+
Ro,
|
|
5334
5334
|
{ position: u, style: e, className: me(["react-flow__minimap", t]), "data-testid": "rf__minimap" },
|
|
5335
5335
|
$.createElement(
|
|
5336
5336
|
"svg",
|
|
@@ -5386,7 +5386,7 @@ const Tm = (e) => ({
|
|
|
5386
5386
|
minZoomReached: e.transform[2] <= e.minZoom,
|
|
5387
5387
|
maxZoomReached: e.transform[2] >= e.maxZoom
|
|
5388
5388
|
}), Tl = ({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: r = !0, fitViewOptions: o, onZoomIn: s, onZoomOut: i, onFitView: a, onInteractiveChange: c, className: d, children: l, position: u = "bottom-left" }) => {
|
|
5389
|
-
const f = pe(), [h, g] = re(!1), { isInteractive: y, minZoomReached: p, maxZoomReached: m } = le(Tm, he), { zoomIn: w, zoomOut: x, fitView: b } =
|
|
5389
|
+
const f = pe(), [h, g] = re(!1), { isInteractive: y, minZoomReached: p, maxZoomReached: m } = le(Tm, he), { zoomIn: w, zoomOut: x, fitView: b } = Go();
|
|
5390
5390
|
if (oe(() => {
|
|
5391
5391
|
g(!0);
|
|
5392
5392
|
}, []), !h)
|
|
@@ -5405,7 +5405,7 @@ const Tm = (e) => ({
|
|
|
5405
5405
|
}), c?.(!y);
|
|
5406
5406
|
};
|
|
5407
5407
|
return $.createElement(
|
|
5408
|
-
|
|
5408
|
+
Ro,
|
|
5409
5409
|
{ className: me(["react-flow__controls", d]), position: u, style: e, "data-testid": "rf__controls" },
|
|
5410
5410
|
t && $.createElement(
|
|
5411
5411
|
$.Fragment,
|
|
@@ -5489,7 +5489,7 @@ function Hm(e, t) {
|
|
|
5489
5489
|
}, t);
|
|
5490
5490
|
}
|
|
5491
5491
|
var dr, ts;
|
|
5492
|
-
function
|
|
5492
|
+
function jo() {
|
|
5493
5493
|
if (ts) return dr;
|
|
5494
5494
|
ts = 1;
|
|
5495
5495
|
var e = "\0", t = "\0", n = "";
|
|
@@ -5920,7 +5920,7 @@ function Bm() {
|
|
|
5920
5920
|
var hr, rs;
|
|
5921
5921
|
function qm() {
|
|
5922
5922
|
return rs || (rs = 1, hr = {
|
|
5923
|
-
Graph:
|
|
5923
|
+
Graph: jo(),
|
|
5924
5924
|
version: Bm()
|
|
5925
5925
|
}), hr;
|
|
5926
5926
|
}
|
|
@@ -5928,7 +5928,7 @@ var pr, os;
|
|
|
5928
5928
|
function Gm() {
|
|
5929
5929
|
if (os) return pr;
|
|
5930
5930
|
os = 1;
|
|
5931
|
-
var e =
|
|
5931
|
+
var e = jo();
|
|
5932
5932
|
pr = {
|
|
5933
5933
|
write: t,
|
|
5934
5934
|
read: o
|
|
@@ -6302,7 +6302,7 @@ var kr, ys;
|
|
|
6302
6302
|
function Qm() {
|
|
6303
6303
|
if (ys) return kr;
|
|
6304
6304
|
ys = 1;
|
|
6305
|
-
var e =
|
|
6305
|
+
var e = jo(), t = Dl();
|
|
6306
6306
|
kr = n;
|
|
6307
6307
|
function n(r, o) {
|
|
6308
6308
|
var s = new e(), i = {}, a = new t(), c;
|
|
@@ -7777,8 +7777,8 @@ function S0() {
|
|
|
7777
7777
|
version: _0()
|
|
7778
7778
|
}), ro;
|
|
7779
7779
|
}
|
|
7780
|
-
var
|
|
7781
|
-
const Ue = new
|
|
7780
|
+
var Wo = S0();
|
|
7781
|
+
const Ue = new Wo.graphlib.Graph();
|
|
7782
7782
|
Ue.setDefaultEdgeLabel(() => ({}));
|
|
7783
7783
|
const Xs = 130, Zs = 40, C0 = 130, N0 = (e, t = "LR") => {
|
|
7784
7784
|
const n = t === "LR";
|
|
@@ -7788,7 +7788,7 @@ const Xs = 130, Zs = 40, C0 = 130, N0 = (e, t = "LR") => {
|
|
|
7788
7788
|
width: Xs,
|
|
7789
7789
|
height: s?.type === "conditional" ? C0 : Zs
|
|
7790
7790
|
});
|
|
7791
|
-
}),
|
|
7791
|
+
}), Wo.layout(Ue), e.map((r) => {
|
|
7792
7792
|
const o = Ue.node(r.id);
|
|
7793
7793
|
return r.targetPosition = n ? X.Left : X.Top, r.sourcePosition = n ? X.Right : X.Bottom, r.position = {
|
|
7794
7794
|
x: o.x - Xs / 2,
|
|
@@ -7797,7 +7797,7 @@ const Xs = 130, Zs = 40, C0 = 130, N0 = (e, t = "LR") => {
|
|
|
7797
7797
|
});
|
|
7798
7798
|
}, k0 = (e, t = "LR") => (Ue.setGraph({ rankdir: t }), e.forEach((n) => {
|
|
7799
7799
|
Ue.setEdge(n.source, n.target);
|
|
7800
|
-
}),
|
|
7800
|
+
}), Wo.layout(Ue), e), yn = 33, M0 = ({
|
|
7801
7801
|
id: e,
|
|
7802
7802
|
sourceX: t,
|
|
7803
7803
|
sourceY: n,
|
|
@@ -7812,7 +7812,7 @@ const Xs = 130, Zs = 40, C0 = 130, N0 = (e, t = "LR") => {
|
|
|
7812
7812
|
selected: u,
|
|
7813
7813
|
data: { onEdgeClick: f }
|
|
7814
7814
|
}) => {
|
|
7815
|
-
const [h, g, y] =
|
|
7815
|
+
const [h, g, y] = Vo({
|
|
7816
7816
|
sourceX: t,
|
|
7817
7817
|
sourceY: n,
|
|
7818
7818
|
sourcePosition: s,
|
|
@@ -7914,7 +7914,7 @@ const $0 = (e) => e.requirement === "ALTERNATIVE" || e.requirement === "CONDITIO
|
|
|
7914
7914
|
r.stopPropagation(), alert(`hello ${o}`);
|
|
7915
7915
|
}
|
|
7916
7916
|
}
|
|
7917
|
-
}),
|
|
7917
|
+
}), _o = (e, t) => ({
|
|
7918
7918
|
id: e.id,
|
|
7919
7919
|
type: t,
|
|
7920
7920
|
sourcePosition: t === "output" ? void 0 : X.Right,
|
|
@@ -7939,7 +7939,7 @@ const $0 = (e) => e.requirement === "ALTERNATIVE" || e.requirement === "CONDITIO
|
|
|
7939
7939
|
}), z0 = (e) => {
|
|
7940
7940
|
if (!e.executionList)
|
|
7941
7941
|
throw new Error("Execution list is required for subflow");
|
|
7942
|
-
const t = Bl(
|
|
7942
|
+
const t = Bl(Xo(e.executionList));
|
|
7943
7943
|
return t.nextLinkFns.push(
|
|
7944
7944
|
...e.executionList.filter((n) => Tn(n)).map((n) => (r) => Yn(n.id, r, "false"))
|
|
7945
7945
|
), t;
|
|
@@ -7957,17 +7957,17 @@ const $0 = (e) => e.requirement === "ALTERNATIVE" || e.requirement === "CONDITIO
|
|
|
7957
7957
|
})();
|
|
7958
7958
|
return {
|
|
7959
7959
|
startId: n.id,
|
|
7960
|
-
nodes: [
|
|
7960
|
+
nodes: [_o(n, r ? "conditional" : void 0)],
|
|
7961
7961
|
edges: [],
|
|
7962
7962
|
nextLinkFns: [(s) => Yn(n.id, s, o)]
|
|
7963
7963
|
};
|
|
7964
|
-
}),
|
|
7964
|
+
}), Xo = (e) => {
|
|
7965
7965
|
if (e.length === 0)
|
|
7966
7966
|
return [];
|
|
7967
7967
|
const t = H0(e);
|
|
7968
7968
|
return [
|
|
7969
7969
|
t,
|
|
7970
|
-
...
|
|
7970
|
+
...Xo(e.slice(t.length))
|
|
7971
7971
|
];
|
|
7972
7972
|
}, Bl = (e) => {
|
|
7973
7973
|
const t = [], n = [];
|
|
@@ -7994,11 +7994,11 @@ function Ks(e) {
|
|
|
7994
7994
|
const t = e.filter(
|
|
7995
7995
|
(s) => s.requirement !== "DISABLED"
|
|
7996
7996
|
), n = [
|
|
7997
|
-
[Us(
|
|
7998
|
-
...
|
|
7997
|
+
[Us(_o({ id: "start", displayName: "Start" }, "input"))],
|
|
7998
|
+
...Xo(t),
|
|
7999
7999
|
[
|
|
8000
8000
|
Us(
|
|
8001
|
-
|
|
8001
|
+
_o({ id: "end", displayName: "End" }, "output"),
|
|
8002
8002
|
!1
|
|
8003
8003
|
)
|
|
8004
8004
|
]
|
|
@@ -8111,7 +8111,7 @@ const q0 = ({
|
|
|
8111
8111
|
}
|
|
8112
8112
|
),
|
|
8113
8113
|
a && a !== "subFlow" && /* @__PURE__ */ T(
|
|
8114
|
-
|
|
8114
|
+
No,
|
|
8115
8115
|
{
|
|
8116
8116
|
name: e.displayName,
|
|
8117
8117
|
type: a,
|
|
@@ -8121,7 +8121,7 @@ const q0 = ({
|
|
|
8121
8121
|
}
|
|
8122
8122
|
),
|
|
8123
8123
|
a === "subFlow" && /* @__PURE__ */ T(
|
|
8124
|
-
|
|
8124
|
+
ko,
|
|
8125
8125
|
{
|
|
8126
8126
|
name: e.displayName,
|
|
8127
8127
|
onCancel: () => c(void 0),
|
|
@@ -8135,7 +8135,7 @@ const q0 = ({
|
|
|
8135
8135
|
const { t: n } = _e(), r = Rn({
|
|
8136
8136
|
mode: "onChange",
|
|
8137
8137
|
defaultValues: e
|
|
8138
|
-
}), [o, s] =
|
|
8138
|
+
}), [o, s] = io();
|
|
8139
8139
|
oe(() => r.reset(e), [e]);
|
|
8140
8140
|
const i = (a) => {
|
|
8141
8141
|
t({ ...e, ...a }), s();
|
|
@@ -8220,7 +8220,7 @@ const q0 = ({
|
|
|
8220
8220
|
}, W0 = ({
|
|
8221
8221
|
execution: e
|
|
8222
8222
|
}) => {
|
|
8223
|
-
const { adminClient: t } = pt(), { t: n } = _e(), { addAlert: r, addError: o } =
|
|
8223
|
+
const { adminClient: t } = pt(), { t: n } = _e(), { addAlert: r, addError: o } = Co(), [s, i] = re(!1), [a, c] = re(), [d, l] = re(), u = Rn(), { setValue: f, handleSubmit: h, reset: g } = u, y = e.authenticationFlow ? [] : [
|
|
8224
8224
|
{
|
|
8225
8225
|
helpText: n("authenticatorRefConfig.value.help"),
|
|
8226
8226
|
label: n("authenticatorRefConfig.value.label"),
|
|
@@ -8237,53 +8237,53 @@ const q0 = ({
|
|
|
8237
8237
|
secret: !1,
|
|
8238
8238
|
type: "String"
|
|
8239
8239
|
}
|
|
8240
|
-
],
|
|
8241
|
-
Xc(
|
|
8240
|
+
], p = (w) => {
|
|
8241
|
+
Xc(w || {}, f);
|
|
8242
8242
|
};
|
|
8243
8243
|
Tt(
|
|
8244
8244
|
async () => {
|
|
8245
|
-
let
|
|
8246
|
-
const
|
|
8245
|
+
let w;
|
|
8246
|
+
const x = e.configurable ? await t.authenticationManagement.getConfigDescription({
|
|
8247
8247
|
providerId: e.providerId
|
|
8248
8248
|
}) : {
|
|
8249
8249
|
name: e.displayName,
|
|
8250
8250
|
properties: []
|
|
8251
8251
|
};
|
|
8252
|
-
return e.authenticationConfig && (
|
|
8252
|
+
return e.authenticationConfig && (w = await t.authenticationManagement.getConfig({
|
|
8253
8253
|
id: e.authenticationConfig
|
|
8254
|
-
})),
|
|
8255
|
-
...
|
|
8256
|
-
...
|
|
8257
|
-
], { configDescription:
|
|
8254
|
+
})), x.properties = [
|
|
8255
|
+
...y,
|
|
8256
|
+
...x.properties
|
|
8257
|
+
], { configDescription: x, config: w };
|
|
8258
8258
|
},
|
|
8259
|
-
({ configDescription:
|
|
8260
|
-
l(
|
|
8259
|
+
({ configDescription: w, config: x }) => {
|
|
8260
|
+
l(w), c(x);
|
|
8261
8261
|
},
|
|
8262
8262
|
[]
|
|
8263
8263
|
), oe(() => {
|
|
8264
|
-
a &&
|
|
8264
|
+
a && p(a);
|
|
8265
8265
|
}, [a]);
|
|
8266
|
-
const
|
|
8267
|
-
const
|
|
8266
|
+
const m = async (w) => {
|
|
8267
|
+
const x = Zc(w);
|
|
8268
8268
|
try {
|
|
8269
8269
|
if (a) {
|
|
8270
|
-
const
|
|
8270
|
+
const b = {
|
|
8271
8271
|
id: a.id,
|
|
8272
8272
|
alias: a.alias,
|
|
8273
|
-
config:
|
|
8273
|
+
config: x.config
|
|
8274
8274
|
};
|
|
8275
|
-
await t.authenticationManagement.updateConfig(
|
|
8275
|
+
await t.authenticationManagement.updateConfig(b), c({ ...b });
|
|
8276
8276
|
} else {
|
|
8277
|
-
const
|
|
8277
|
+
const b = {
|
|
8278
8278
|
id: e.id,
|
|
8279
|
-
alias:
|
|
8280
|
-
config:
|
|
8281
|
-
}, { id:
|
|
8282
|
-
c({ ...
|
|
8279
|
+
alias: x.alias,
|
|
8280
|
+
config: x.config
|
|
8281
|
+
}, { id: C } = await t.authenticationManagement.createConfig(b);
|
|
8282
|
+
c({ ...b.config, id: C, alias: b.alias });
|
|
8283
8283
|
}
|
|
8284
8284
|
r(n("configSaveSuccess"), je.success), i(!1);
|
|
8285
|
-
} catch (
|
|
8286
|
-
o("configSaveError",
|
|
8285
|
+
} catch (b) {
|
|
8286
|
+
o("configSaveError", b);
|
|
8287
8287
|
}
|
|
8288
8288
|
};
|
|
8289
8289
|
return /* @__PURE__ */ te(be, { children: [
|
|
@@ -8303,7 +8303,7 @@ const q0 = ({
|
|
|
8303
8303
|
isOpen: s,
|
|
8304
8304
|
title: n("executionConfig", { name: d.name }),
|
|
8305
8305
|
onClose: () => i(!1),
|
|
8306
|
-
children: /* @__PURE__ */ te(tn, { id: "execution-config-form", onSubmit: h(
|
|
8306
|
+
children: /* @__PURE__ */ te(tn, { id: "execution-config-form", onSubmit: h(m), children: [
|
|
8307
8307
|
/* @__PURE__ */ te(Dn, { ...u, children: [
|
|
8308
8308
|
/* @__PURE__ */ T(
|
|
8309
8309
|
En,
|
|
@@ -8323,38 +8323,55 @@ const q0 = ({
|
|
|
8323
8323
|
}
|
|
8324
8324
|
)
|
|
8325
8325
|
] }),
|
|
8326
|
-
/* @__PURE__ */
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
{
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
]
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8326
|
+
/* @__PURE__ */ T(Wc, { children: /* @__PURE__ */ te(
|
|
8327
|
+
oo,
|
|
8328
|
+
{
|
|
8329
|
+
className: "pf-v5-u-flex-grow-1",
|
|
8330
|
+
justifyContent: { default: "justifyContentSpaceBetween" },
|
|
8331
|
+
children: [
|
|
8332
|
+
/* @__PURE__ */ te("div", { children: [
|
|
8333
|
+
/* @__PURE__ */ T(
|
|
8334
|
+
ge,
|
|
8335
|
+
{
|
|
8336
|
+
className: "pf-v5-u-mr-md",
|
|
8337
|
+
"data-testid": "save",
|
|
8338
|
+
variant: "primary",
|
|
8339
|
+
type: "submit",
|
|
8340
|
+
children: n("save")
|
|
8341
|
+
}
|
|
8342
|
+
),
|
|
8343
|
+
/* @__PURE__ */ T(
|
|
8344
|
+
ge,
|
|
8345
|
+
{
|
|
8346
|
+
"data-testid": "cancel",
|
|
8347
|
+
variant: Qe.link,
|
|
8348
|
+
onClick: () => {
|
|
8349
|
+
i(!1);
|
|
8350
|
+
},
|
|
8351
|
+
children: n("cancel")
|
|
8352
|
+
}
|
|
8353
|
+
)
|
|
8354
|
+
] }),
|
|
8355
|
+
a && /* @__PURE__ */ te(
|
|
8356
|
+
ge,
|
|
8357
|
+
{
|
|
8358
|
+
"data-testid": "clear",
|
|
8359
|
+
variant: Qe.link,
|
|
8360
|
+
onClick: async () => {
|
|
8361
|
+
await t.authenticationManagement.delConfig({
|
|
8362
|
+
id: a.id
|
|
8363
|
+
}), c(void 0), g(), i(!1);
|
|
8364
|
+
},
|
|
8365
|
+
children: [
|
|
8366
|
+
n("clear"),
|
|
8367
|
+
" ",
|
|
8368
|
+
/* @__PURE__ */ T(ra, {})
|
|
8369
|
+
]
|
|
8370
|
+
}
|
|
8371
|
+
)
|
|
8372
|
+
]
|
|
8373
|
+
}
|
|
8374
|
+
) })
|
|
8358
8375
|
] })
|
|
8359
8376
|
}
|
|
8360
8377
|
)
|
|
@@ -8426,7 +8443,7 @@ const K0 = ({
|
|
|
8426
8443
|
}) => {
|
|
8427
8444
|
const { t: s } = _e(), { providers: i } = $u(), a = i?.find((c) => c.id === o)?.description || r;
|
|
8428
8445
|
return /* @__PURE__ */ T("div", { "data-testid": n, children: /* @__PURE__ */ te("span", { "data-id": e, id: `title-id-${e}`, children: [
|
|
8429
|
-
/* @__PURE__ */ T(
|
|
8446
|
+
/* @__PURE__ */ T(So, { icon: /* @__PURE__ */ T(Z0, { type: t }), color: U0(t), children: s(t) }),
|
|
8430
8447
|
" ",
|
|
8431
8448
|
n,
|
|
8432
8449
|
" ",
|
|
@@ -8535,7 +8552,7 @@ class Qs extends Gl {
|
|
|
8535
8552
|
super(t, n), this.parent = r;
|
|
8536
8553
|
}
|
|
8537
8554
|
}
|
|
8538
|
-
class
|
|
8555
|
+
class Zo {
|
|
8539
8556
|
#e;
|
|
8540
8557
|
expandableList;
|
|
8541
8558
|
constructor(t) {
|
|
@@ -8596,13 +8613,13 @@ class Xo {
|
|
|
8596
8613
|
) : new Qs(this.expandableList.length, a.index) : new Gl(i.index, a.index);
|
|
8597
8614
|
}
|
|
8598
8615
|
clone() {
|
|
8599
|
-
const t = new
|
|
8616
|
+
const t = new Zo([]);
|
|
8600
8617
|
return t.#e = this.#e, t.expandableList = this.expandableList, t;
|
|
8601
8618
|
}
|
|
8602
8619
|
}
|
|
8603
8620
|
const Tn = (e) => e.displayName?.startsWith("Condition ");
|
|
8604
8621
|
function iy() {
|
|
8605
|
-
const { adminClient: e } = pt(), { t } = _e(), { realm: n } = tu(), { addAlert: r, addError: o } =
|
|
8622
|
+
const { adminClient: e } = pt(), { t } = _e(), { realm: n } = tu(), { addAlert: r, addError: o } = Co(), { id: s, usedBy: i, builtIn: a } = gu(), c = mu(), [d, l] = re(0), u = () => l((/* @__PURE__ */ new Date()).getTime()), [f, h] = re(!0), [g, y] = re(), [p, m] = re(), [w, x] = re(""), [b, C] = re(), [S, R] = re(), [E, _] = re(), [N, M, O] = io(), [F, v] = re(!1), [A, L] = io();
|
|
8606
8623
|
Tt(
|
|
8607
8624
|
async () => {
|
|
8608
8625
|
const Y = (await e.authenticationManagement.getFlows()).find((Z) => Z.id === s);
|
|
@@ -8614,7 +8631,7 @@ function iy() {
|
|
|
8614
8631
|
return { flow: Y, executions: W };
|
|
8615
8632
|
},
|
|
8616
8633
|
({ flow: V, executions: Y }) => {
|
|
8617
|
-
y(V), m(new
|
|
8634
|
+
y(V), m(new Zo(Y));
|
|
8618
8635
|
},
|
|
8619
8636
|
[d]
|
|
8620
8637
|
);
|
|
@@ -8820,7 +8837,7 @@ function iy() {
|
|
|
8820
8837
|
{
|
|
8821
8838
|
titleKey: g?.alias || "",
|
|
8822
8839
|
badges: [
|
|
8823
|
-
{ text: /* @__PURE__ */ T(
|
|
8840
|
+
{ text: /* @__PURE__ */ T(So, { children: t(`used.${i}`) }) },
|
|
8824
8841
|
a ? {
|
|
8825
8842
|
text: /* @__PURE__ */ T(Ou, {}),
|
|
8826
8843
|
id: "builtIn"
|
|
@@ -8923,7 +8940,7 @@ function iy() {
|
|
|
8923
8940
|
),
|
|
8924
8941
|
g && /* @__PURE__ */ te(be, { children: [
|
|
8925
8942
|
b && /* @__PURE__ */ T(
|
|
8926
|
-
|
|
8943
|
+
No,
|
|
8927
8944
|
{
|
|
8928
8945
|
name: g.alias,
|
|
8929
8946
|
type: g.providerId === "client-flow" ? "client" : "basic",
|
|
@@ -8933,7 +8950,7 @@ function iy() {
|
|
|
8933
8950
|
}
|
|
8934
8951
|
),
|
|
8935
8952
|
S && /* @__PURE__ */ T(
|
|
8936
|
-
|
|
8953
|
+
ko,
|
|
8937
8954
|
{
|
|
8938
8955
|
name: g.alias,
|
|
8939
8956
|
onCancel: () => R(!1),
|
|
@@ -8961,4 +8978,4 @@ export {
|
|
|
8961
8978
|
iy as default,
|
|
8962
8979
|
Tn as providerConditionFilter
|
|
8963
8980
|
};
|
|
8964
|
-
//# sourceMappingURL=FlowDetails-
|
|
8981
|
+
//# sourceMappingURL=FlowDetails-CFTkvTDA.js.map
|