@republicroad/seal-editor 1.36.0 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{i18n-DI2s8YGH.js → i18n-D5rBCDlU.js} +3 -1
- package/dist/i18n-D5rBCDlU.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +665 -618
- package/dist/index.js.map +1 -1
- package/dist/{simulate-run-detail-qZE4KheI.js → simulate-run-detail-B3f93RKl.js} +2 -2
- package/dist/{simulate-run-detail-qZE4KheI.js.map → simulate-run-detail-B3f93RKl.js.map} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/i18n-DI2s8YGH.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
2
|
import { t as r } from "./utils-CX-Pz5p6.js";
|
|
3
|
-
import { i, n as a, r as o, t as s } from "./i18n-
|
|
4
|
-
import { $ as c, A as l, B as u, C as d, D as f, E as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, N as S, O as C, P as w, Q as T, R as E, S as D, T as
|
|
3
|
+
import { i, n as a, r as o, t as s } from "./i18n-D5rBCDlU.js";
|
|
4
|
+
import { $ as c, A as l, B as u, C as d, D as f, E as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, N as S, O as C, P as w, Q as T, R as E, S as D, T as ee, U as O, V as te, W as k, X as ne, Y as A, Z as re, _ as j, a as M, b as ie, c as N, d as ae, et as oe, f as se, g as ce, h as le, i as ue, j as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, q as ve, r as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee, z as De } from "./schema-BDvVbmiV.js";
|
|
5
5
|
import * as Oe from "react";
|
|
6
6
|
import P, { Children as ke, Fragment as Ae, Suspense as je, cloneElement as Me, createContext as Ne, createRef as Pe, forwardRef as Fe, isValidElement as Ie, lazy as Le, memo as Re, useCallback as F, useContext as ze, useEffect as I, useId as Be, useImperativeHandle as Ve, useLayoutEffect as He, useMemo as L, useRef as R, useState as z, useSyncExternalStore as Ue } from "react";
|
|
7
7
|
import { Toaster as We, toast as B } from "sonner";
|
|
@@ -669,6 +669,7 @@ var $a = Oe.forwardRef(({ className: e, side: t, sideOffset: n = 0, align: i, al
|
|
|
669
669
|
return /* @__PURE__ */ U(En.Portal, {
|
|
670
670
|
container: c,
|
|
671
671
|
children: /* @__PURE__ */ U(En.Positioner, {
|
|
672
|
+
className: "z-50",
|
|
672
673
|
side: t,
|
|
673
674
|
sideOffset: n,
|
|
674
675
|
align: i,
|
|
@@ -718,6 +719,7 @@ var io = Oe.forwardRef(({ className: e, side: t = "right", sideOffset: n = 0, al
|
|
|
718
719
|
return /* @__PURE__ */ U(En.Portal, {
|
|
719
720
|
container: c,
|
|
720
721
|
children: /* @__PURE__ */ U(En.Positioner, {
|
|
722
|
+
className: "z-50",
|
|
721
723
|
side: t,
|
|
722
724
|
sideOffset: n,
|
|
723
725
|
align: i,
|
|
@@ -751,6 +753,7 @@ function so({ className: e, side: t, sideOffset: n = 4, align: i, alignOffset: a
|
|
|
751
753
|
return /* @__PURE__ */ U(Dn.Portal, {
|
|
752
754
|
container: s,
|
|
753
755
|
children: /* @__PURE__ */ U(Dn.Positioner, {
|
|
756
|
+
className: "z-50",
|
|
754
757
|
side: t,
|
|
755
758
|
sideOffset: n,
|
|
756
759
|
align: i,
|
|
@@ -825,6 +828,7 @@ function go({ className: e, side: t, sideOffset: n = 0, align: i, alignOffset: a
|
|
|
825
828
|
return /* @__PURE__ */ U(Dn.Portal, {
|
|
826
829
|
container: s,
|
|
827
830
|
children: /* @__PURE__ */ U(Dn.Positioner, {
|
|
831
|
+
className: "z-50",
|
|
828
832
|
side: t,
|
|
829
833
|
sideOffset: n,
|
|
830
834
|
align: i,
|
|
@@ -1066,7 +1070,7 @@ var Io = ({ open: e = !1, title: t, width: n = 520, okText: a = "OK", cancelText
|
|
|
1066
1070
|
children: m
|
|
1067
1071
|
}) : null,
|
|
1068
1072
|
l === null ? null : /* @__PURE__ */ U(Po, {
|
|
1069
|
-
className: "mt-
|
|
1073
|
+
className: "mt-2 border-t border-[var(--border)] pt-3",
|
|
1070
1074
|
children: l ?? /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(i, {
|
|
1071
1075
|
variant: "outline",
|
|
1072
1076
|
onClick: () => c?.(),
|
|
@@ -1117,19 +1121,20 @@ function zo({ ...e }) {
|
|
|
1117
1121
|
...e
|
|
1118
1122
|
});
|
|
1119
1123
|
}
|
|
1120
|
-
function Bo({ className: e,
|
|
1121
|
-
let
|
|
1124
|
+
function Bo({ className: e, positionerClassName: t, align: n = "center", alignOffset: i, side: a = "bottom", sideOffset: o = 4, ...s }) {
|
|
1125
|
+
let c = Ca();
|
|
1122
1126
|
return /* @__PURE__ */ U(kn.Portal, {
|
|
1123
|
-
container:
|
|
1127
|
+
container: c,
|
|
1124
1128
|
children: /* @__PURE__ */ U(kn.Positioner, {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
+
className: r("z-50", t),
|
|
1130
|
+
side: a,
|
|
1131
|
+
sideOffset: o,
|
|
1132
|
+
align: n,
|
|
1133
|
+
alignOffset: i,
|
|
1129
1134
|
children: /* @__PURE__ */ U(kn.Popup, {
|
|
1130
1135
|
"data-slot": "popover-content",
|
|
1131
1136
|
className: r("box-border z-50 w-fit min-w-[18rem] origin-(--transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden transition-[opacity,transform] duration-150 data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0", e),
|
|
1132
|
-
...
|
|
1137
|
+
...s
|
|
1133
1138
|
})
|
|
1134
1139
|
})
|
|
1135
1140
|
});
|
|
@@ -1143,7 +1148,7 @@ var Vo = ({ open: e, onOpenChange: t, content: n, overlayClassName: r, children:
|
|
|
1143
1148
|
className: "inline-flex",
|
|
1144
1149
|
children: i
|
|
1145
1150
|
}) }), /* @__PURE__ */ U(Bo, {
|
|
1146
|
-
|
|
1151
|
+
positionerClassName: r,
|
|
1147
1152
|
children: n
|
|
1148
1153
|
})]
|
|
1149
1154
|
}), Ho = Oe.createContext({ setValue: () => {} }), Uo = Object.assign(({ value: e, disabled: t, className: n, style: i, children: a }) => {
|
|
@@ -1216,25 +1221,26 @@ function Ko({ className: e, size: t = "default", children: n, ...i }) {
|
|
|
1216
1221
|
children: [n, /* @__PURE__ */ U(An.Icon, { render: /* @__PURE__ */ U(vt, { className: "size-4 opacity-50" }) })]
|
|
1217
1222
|
});
|
|
1218
1223
|
}
|
|
1219
|
-
function qo({ className: e,
|
|
1220
|
-
let
|
|
1224
|
+
function qo({ className: e, positionerClassName: t, children: n, alignItemWithTrigger: i = !0, align: a = "center", side: o = "bottom", sideOffset: s = 0, alignOffset: c, ...l }) {
|
|
1225
|
+
let u = Ca();
|
|
1221
1226
|
return /* @__PURE__ */ U(An.Portal, {
|
|
1222
|
-
container:
|
|
1227
|
+
container: u,
|
|
1223
1228
|
children: /* @__PURE__ */ U(An.Positioner, {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
+
className: r("z-50", t),
|
|
1230
|
+
alignItemWithTrigger: i,
|
|
1231
|
+
side: o,
|
|
1232
|
+
sideOffset: s,
|
|
1233
|
+
align: a,
|
|
1234
|
+
alignOffset: c,
|
|
1229
1235
|
children: /* @__PURE__ */ W(An.Popup, {
|
|
1230
1236
|
"data-slot": "select-content",
|
|
1231
1237
|
className: r("box-border relative z-50 max-h-(--available-height) min-w-[8rem] origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md transition-[opacity,transform] duration-150 data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0", e),
|
|
1232
|
-
...
|
|
1238
|
+
...l,
|
|
1233
1239
|
children: [
|
|
1234
1240
|
/* @__PURE__ */ U(Yo, {}),
|
|
1235
1241
|
/* @__PURE__ */ U(An.List, {
|
|
1236
|
-
className: r("p-1",
|
|
1237
|
-
children:
|
|
1242
|
+
className: r("p-1", i && "h-(--anchor-height) w-full min-w-(--anchor-width) scroll-my-1"),
|
|
1243
|
+
children: n
|
|
1238
1244
|
}),
|
|
1239
1245
|
/* @__PURE__ */ U(Xo, {})
|
|
1240
1246
|
]
|
|
@@ -1272,17 +1278,17 @@ function Xo({ className: e, ...t }) {
|
|
|
1272
1278
|
}
|
|
1273
1279
|
//#endregion
|
|
1274
1280
|
//#region src/components/primitives/select.tsx
|
|
1275
|
-
var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onClear: o, dropdownRender: s, optionRender: c, placeholder: l, disabled: u, size: d, allowClear: f, loading: p, mode: m, tokenSeparators: h, suffixIcon: g, popupMatchSelectWidth: _, variant: v, showSearch: y, filterOption: b, optionLabelProp: x, maxCount: S,
|
|
1276
|
-
let
|
|
1281
|
+
var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onClear: o, dropdownRender: s, optionRender: c, placeholder: l, disabled: u, size: d, allowClear: f, loading: p, mode: m, tokenSeparators: h, suffixIcon: g, popupMatchSelectWidth: _, variant: v, showSearch: y, filterOption: b, optionLabelProp: x, maxCount: S, overlayClassName: C, className: w, style: T }) => {
|
|
1282
|
+
let E = e ?? [], D = t == null ? void 0 : String(t), ee = E.find((e) => String(e.value) === D);
|
|
1277
1283
|
if (m === "multiple" || m === "tags") return /* @__PURE__ */ U("input", {
|
|
1278
1284
|
value: (Array.isArray(t) ? t : []).join(", "),
|
|
1279
1285
|
placeholder: l,
|
|
1280
1286
|
disabled: u || p,
|
|
1281
1287
|
onChange: (e) => i?.(e.target.value.split(",").map((e) => e.trim()).filter(Boolean)),
|
|
1282
|
-
className: r(Ka, "w-full rounded-md border border-input shadow-xs",
|
|
1283
|
-
style:
|
|
1288
|
+
className: r(Ka, "w-full rounded-md border border-input shadow-xs", w),
|
|
1289
|
+
style: T
|
|
1284
1290
|
});
|
|
1285
|
-
let O = /* @__PURE__ */ U(H, { children:
|
|
1291
|
+
let O = /* @__PURE__ */ U(H, { children: E.map((e) => /* @__PURE__ */ U(Jo, {
|
|
1286
1292
|
value: String(e.value),
|
|
1287
1293
|
disabled: e.disabled,
|
|
1288
1294
|
children: c ? c({ data: e }) : e.label ?? String(e.value)
|
|
@@ -1290,23 +1296,24 @@ var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onC
|
|
|
1290
1296
|
return /* @__PURE__ */ W("div", {
|
|
1291
1297
|
className: "relative inline-flex w-full items-center",
|
|
1292
1298
|
children: [/* @__PURE__ */ W(Wo, {
|
|
1293
|
-
value:
|
|
1299
|
+
value: D,
|
|
1294
1300
|
defaultValue: n === void 0 ? void 0 : String(n),
|
|
1295
1301
|
onValueChange: (e) => {
|
|
1296
|
-
if (f && e ===
|
|
1297
|
-
let t =
|
|
1302
|
+
if (f && e === D) return;
|
|
1303
|
+
let t = E.find((t) => String(t.value) === e) ?? {}, n = t.value ?? e;
|
|
1298
1304
|
a?.(n, t), i?.(n, t);
|
|
1299
1305
|
},
|
|
1300
1306
|
disabled: u || p,
|
|
1301
1307
|
children: [/* @__PURE__ */ U(Ko, {
|
|
1302
|
-
className: r("w-full justify-between", d === "large" ? "h-10 text-base" : d === "small" ? "h-8 text-xs" : void 0, f && !!
|
|
1303
|
-
style:
|
|
1304
|
-
children: /* @__PURE__ */ U(Go, { children:
|
|
1308
|
+
className: r("w-full justify-between", d === "large" ? "h-10 text-base" : d === "small" ? "h-8 text-xs" : void 0, f && !!D && "[&>svg:last-child]:hidden", g === null && "[&>svg:last-child]:hidden", w),
|
|
1309
|
+
style: T,
|
|
1310
|
+
children: /* @__PURE__ */ U(Go, { children: ee?.label })
|
|
1305
1311
|
}), /* @__PURE__ */ U(qo, {
|
|
1306
1312
|
alignItemWithTrigger: !1,
|
|
1313
|
+
positionerClassName: C,
|
|
1307
1314
|
children: s ? s(O) : O
|
|
1308
1315
|
})]
|
|
1309
|
-
}), f &&
|
|
1316
|
+
}), f && D ? /* @__PURE__ */ W("button", {
|
|
1310
1317
|
type: "button",
|
|
1311
1318
|
"aria-label": "Clear",
|
|
1312
1319
|
onClick: () => {
|
|
@@ -1647,6 +1654,7 @@ function Cs({ className: e, sideOffset: t = 0, side: n, align: i, alignOffset: a
|
|
|
1647
1654
|
return /* @__PURE__ */ U(Fn.Portal, {
|
|
1648
1655
|
container: c,
|
|
1649
1656
|
children: /* @__PURE__ */ U(Fn.Positioner, {
|
|
1657
|
+
className: "z-50",
|
|
1650
1658
|
side: n,
|
|
1651
1659
|
sideOffset: t,
|
|
1652
1660
|
align: i,
|
|
@@ -3490,23 +3498,23 @@ function Ll(e, t, n, r = !1) {
|
|
|
3490
3498
|
})), o.body.style.cursor = c, o.documentElement.style.cursor = l);
|
|
3491
3499
|
}, D = (e) => {
|
|
3492
3500
|
T(e.clientX);
|
|
3493
|
-
},
|
|
3501
|
+
}, ee = (e) => {
|
|
3494
3502
|
E(e.clientX);
|
|
3495
|
-
},
|
|
3503
|
+
}, O = (e) => {
|
|
3496
3504
|
e.cancelable && (e.preventDefault(), e.stopPropagation()), T(Il(e, d));
|
|
3497
|
-
},
|
|
3505
|
+
}, te = (e) => {
|
|
3498
3506
|
let t = typeof d == "number" ? Fl(e.changedTouches, d) : Il(e);
|
|
3499
3507
|
typeof t == "number" && (e.cancelable && (e.preventDefault(), e.stopPropagation()), E(t));
|
|
3500
|
-
},
|
|
3508
|
+
}, k = () => {
|
|
3501
3509
|
E(S);
|
|
3502
|
-
},
|
|
3510
|
+
}, ne = () => {
|
|
3503
3511
|
E(S);
|
|
3504
|
-
},
|
|
3505
|
-
return a ? (o.addEventListener("touchmove",
|
|
3506
|
-
o.removeEventListener("touchmove",
|
|
3507
|
-
})) : (o.addEventListener("mousemove", D,
|
|
3508
|
-
o.removeEventListener("mousemove", D), o.removeEventListener("mouseup",
|
|
3509
|
-
})), s && (s.addEventListener("blur",
|
|
3512
|
+
}, A = { passive: !1 };
|
|
3513
|
+
return a ? (o.addEventListener("touchmove", O, A), o.addEventListener("touchend", te, A), o.addEventListener("touchcancel", k), w.push(() => {
|
|
3514
|
+
o.removeEventListener("touchmove", O), o.removeEventListener("touchend", te), o.removeEventListener("touchcancel", k);
|
|
3515
|
+
})) : (o.addEventListener("mousemove", D, A), o.addEventListener("mouseup", ee, A), w.push(() => {
|
|
3516
|
+
o.removeEventListener("mousemove", D), o.removeEventListener("mouseup", ee);
|
|
3517
|
+
})), s && (s.addEventListener("blur", ne), w.push(() => s.removeEventListener("blur", ne))), n.setColumnResizing((e) => ({
|
|
3510
3518
|
...e,
|
|
3511
3519
|
startOffset: _,
|
|
3512
3520
|
startSize: u,
|
|
@@ -4041,7 +4049,7 @@ function _u({ footerContent: e, renderHeader: t = !0 }) {
|
|
|
4041
4049
|
r.tableLayout?.columnsResizable && !a ? /* @__PURE__ */ U(Kl, {}) : null
|
|
4042
4050
|
]
|
|
4043
4051
|
}, e.id)) }),
|
|
4044
|
-
t && (r.tableLayout?.stripped || !r.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4052
|
+
t && (r.tableLayout?.stripped || !r.tableLayout?.rowBorder) && !r.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4045
4053
|
/* @__PURE__ */ W(au, { children: [
|
|
4046
4054
|
/* @__PURE__ */ U(gu, { table: n }),
|
|
4047
4055
|
r.appendRow,
|
|
@@ -4240,29 +4248,29 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4240
4248
|
};
|
|
4241
4249
|
};
|
|
4242
4250
|
return [...i ?? [Xr], e];
|
|
4243
|
-
}, [i]), { estimateSize: D = 38, overscan:
|
|
4251
|
+
}, [i]), { estimateSize: D = 38, overscan: ee = 8, minRows: O = 1, scrollElementRef: te } = f ?? {}, k = m.getRowModel().rows.length, ne = f != null && k >= O, [A, re] = z(null);
|
|
4244
4252
|
I(() => {
|
|
4245
|
-
f && re(
|
|
4253
|
+
f && re(te?.current ?? yu(g.current));
|
|
4246
4254
|
}, [
|
|
4247
4255
|
f,
|
|
4248
|
-
|
|
4249
|
-
|
|
4256
|
+
te,
|
|
4257
|
+
ne
|
|
4250
4258
|
]);
|
|
4251
4259
|
let [j, M] = z(0);
|
|
4252
4260
|
I(() => {
|
|
4253
|
-
if (!
|
|
4261
|
+
if (!ne || !A || A.offsetHeight > 0) return;
|
|
4254
4262
|
let e, t = 0, n = () => {
|
|
4255
|
-
if (
|
|
4263
|
+
if (A.offsetHeight > 0) {
|
|
4256
4264
|
M((e) => e + 1);
|
|
4257
4265
|
return;
|
|
4258
4266
|
}
|
|
4259
4267
|
++t > 100 || (e = setTimeout(n, 120));
|
|
4260
4268
|
};
|
|
4261
4269
|
return e = setTimeout(n, 120), () => clearTimeout(e);
|
|
4262
|
-
}, [
|
|
4263
|
-
if (j > 0 &&
|
|
4270
|
+
}, [ne, A]), I(() => {
|
|
4271
|
+
if (j > 0 && A) {
|
|
4264
4272
|
re(null);
|
|
4265
|
-
let e = setTimeout(() => re(
|
|
4273
|
+
let e = setTimeout(() => re(A), 0);
|
|
4266
4274
|
return () => clearTimeout(e);
|
|
4267
4275
|
}
|
|
4268
4276
|
}, [j]);
|
|
@@ -4275,20 +4283,20 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4275
4283
|
}, []), [N, ae] = z(null), oe = R(null);
|
|
4276
4284
|
oe.current = N;
|
|
4277
4285
|
let se = $r({
|
|
4278
|
-
count:
|
|
4279
|
-
getScrollElement: () =>
|
|
4286
|
+
count: ne ? k : 0,
|
|
4287
|
+
getScrollElement: () => A,
|
|
4280
4288
|
getItemKey: (e) => String(t[e] ?? e),
|
|
4281
4289
|
estimateSize: () => D,
|
|
4282
|
-
overscan:
|
|
4290
|
+
overscan: ee,
|
|
4283
4291
|
measureElement: ie,
|
|
4284
4292
|
rangeExtractor: F((e) => bu(e, Zr, oe.current), [])
|
|
4285
4293
|
});
|
|
4286
4294
|
return I(() => {
|
|
4287
|
-
if (p) return p.current =
|
|
4295
|
+
if (p) return p.current = ne ? se : null, () => {
|
|
4288
4296
|
p.current = null;
|
|
4289
4297
|
};
|
|
4290
4298
|
}, [
|
|
4291
|
-
|
|
4299
|
+
ne,
|
|
4292
4300
|
se,
|
|
4293
4301
|
p
|
|
4294
4302
|
]), /* @__PURE__ */ W(Jn, {
|
|
@@ -4323,14 +4331,14 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4323
4331
|
}, t);
|
|
4324
4332
|
}), /* @__PURE__ */ U(Kl, {})]
|
|
4325
4333
|
}, t)) }),
|
|
4326
|
-
(h.tableLayout?.stripped || !h.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4334
|
+
(h.tableLayout?.stripped || !h.tableLayout?.rowBorder) && !h.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4327
4335
|
/* @__PURE__ */ U(au, { children: /* @__PURE__ */ U(Tu, {
|
|
4328
4336
|
table: m,
|
|
4329
4337
|
dataIds: t,
|
|
4330
4338
|
renderRowDecoration: o,
|
|
4331
4339
|
dropIndicator: s,
|
|
4332
4340
|
sortingStrategy: a,
|
|
4333
|
-
virtualWindow:
|
|
4341
|
+
virtualWindow: ne ? {
|
|
4334
4342
|
items: se.getVirtualItems(),
|
|
4335
4343
|
totalSize: se.getTotalSize(),
|
|
4336
4344
|
measureRowRef: (e) => se.measureElement(e)
|
|
@@ -4486,9 +4494,9 @@ function Iu({ children: e, className: t, orientation: n = "both", ...i }) {
|
|
|
4486
4494
|
if (a === 0 || o === 0) return;
|
|
4487
4495
|
let s = e.clientY - n.startY;
|
|
4488
4496
|
t.scrollTop = Mu(n.startScrollTop + s / a * o, 0, o);
|
|
4489
|
-
},
|
|
4497
|
+
}, ee = (e) => {
|
|
4490
4498
|
u.current?.pointerId === e.pointerId && x();
|
|
4491
|
-
},
|
|
4499
|
+
}, O = (e) => {
|
|
4492
4500
|
let { thumbHeight: t } = d.current;
|
|
4493
4501
|
if (e.target !== e.currentTarget) return;
|
|
4494
4502
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -4544,14 +4552,14 @@ function Iu({ children: e, className: t, orientation: n = "both", ...i }) {
|
|
|
4544
4552
|
className: "pointer-events-none absolute inset-e-0 top-(--data-grid-scrollbar-header-height) z-20 h-(--data-grid-scrollbar-track-height)",
|
|
4545
4553
|
children: /* @__PURE__ */ U("div", {
|
|
4546
4554
|
className: "pointer-events-auto relative h-full w-1.5 touch-none p-px",
|
|
4547
|
-
onPointerDown:
|
|
4555
|
+
onPointerDown: O,
|
|
4548
4556
|
children: /* @__PURE__ */ U("div", {
|
|
4549
4557
|
className: r("bg-border absolute end-px w-1.5", "top-(--data-grid-scrollbar-thumb-top) h-(--data-grid-scrollbar-thumb-height)", "rounded-full"),
|
|
4550
4558
|
onLostPointerCapture: x,
|
|
4551
|
-
onPointerCancel:
|
|
4559
|
+
onPointerCancel: ee,
|
|
4552
4560
|
onPointerDown: E,
|
|
4553
4561
|
onPointerMove: D,
|
|
4554
|
-
onPointerUp:
|
|
4562
|
+
onPointerUp: ee
|
|
4555
4563
|
})
|
|
4556
4564
|
})
|
|
4557
4565
|
})]
|
|
@@ -4723,31 +4731,31 @@ function Ju({ table: e, topRows: t, centerRows: n, bottomRows: r, virtualItems:
|
|
|
4723
4731
|
}
|
|
4724
4732
|
var Yu = Re(Ju, (e, t) => !!t.table.state.columnResizing.isResizingColumn || t.table._isSelectingCells === !0);
|
|
4725
4733
|
function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior: r = "auto", scrollToRowAlign: i = "auto", scrollToRowIndex: a, columnVirtualizerOptions: o, scrollToColumnAlign: s = "auto", scrollToColumnIndex: c, footerContent: l, renderHeader: u = !0, onFetchMore: d, isFetchingMore: f = !1, hasMore: p, fetchMoreOffset: m = 0, virtualizerOptions: h }) {
|
|
4726
|
-
let { i18n: g, table: _, props: v } = xl(), y = Hl(_), b = Ul(_), x = _.getCenterVisibleLeafColumns(), S = o?.enabled === !0 && v.tableLayout?.width !== "auto" && y.length === 1 && (y[0]?.headers.every((e) => e.colSpan <= 1) ?? !1), { topRows: C, centerRows: w, bottomRows: T } = Rl(_, v.tableLayout?.rowsPinnable), E = typeof d == "function", [D,
|
|
4734
|
+
let { i18n: g, table: _, props: v } = xl(), y = Hl(_), b = Ul(_), x = _.getCenterVisibleLeafColumns(), S = o?.enabled === !0 && v.tableLayout?.width !== "auto" && y.length === 1 && (y[0]?.headers.every((e) => e.colSpan <= 1) ?? !1), { topRows: C, centerRows: w, bottomRows: T } = Rl(_, v.tableLayout?.rowsPinnable), E = typeof d == "function", [D, ee] = z({
|
|
4727
4735
|
containerElement: null,
|
|
4728
4736
|
scrollElement: null
|
|
4729
|
-
}), { estimateSize:
|
|
4730
|
-
|
|
4737
|
+
}), { estimateSize: O, getItemKey: te, getScrollElement: k, measureElement: ne, overscan: A, ...re } = h ?? {}, j = h?.enabled !== !1, M = v.fetchingMoreMessage || v.loadingMessage || g.labels.loading, ie = v.allRowsLoadedMessage || g.labels.allRowsLoaded, N = F((e) => {
|
|
4738
|
+
ee({
|
|
4731
4739
|
containerElement: e,
|
|
4732
4740
|
scrollElement: e ? Nl(e) ?? e : null
|
|
4733
4741
|
});
|
|
4734
|
-
}, []), ae = D.scrollElement !== null && D.scrollElement !== D.containerElement, oe = F(() =>
|
|
4742
|
+
}, []), ae = D.scrollElement !== null && D.scrollElement !== D.containerElement, oe = F(() => k ? k(D) : D.scrollElement, [k, D]), se = F((e) => {
|
|
4735
4743
|
let t = w[e];
|
|
4736
|
-
return t ?
|
|
4737
|
-
}, [w,
|
|
4744
|
+
return t ? te?.(e, t) ?? t.id ?? e : e;
|
|
4745
|
+
}, [w, te]), ce = F((e) => {
|
|
4738
4746
|
let n = w[e];
|
|
4739
|
-
return n ?
|
|
4747
|
+
return n ? O?.(e, n) ?? t : t;
|
|
4740
4748
|
}, [
|
|
4741
4749
|
w,
|
|
4742
|
-
|
|
4750
|
+
O,
|
|
4743
4751
|
t
|
|
4744
4752
|
]), le = $r({
|
|
4745
4753
|
count: w.length,
|
|
4746
4754
|
getScrollElement: oe,
|
|
4747
4755
|
getItemKey: se,
|
|
4748
4756
|
estimateSize: ce,
|
|
4749
|
-
overscan:
|
|
4750
|
-
measureElement:
|
|
4757
|
+
overscan: A ?? n,
|
|
4758
|
+
measureElement: ne,
|
|
4751
4759
|
...re
|
|
4752
4760
|
}), ue = L(() => D.containerElement ? getComputedStyle(D.containerElement).direction === "rtl" : !1, [D.containerElement]), de = F((e) => x[e]?.id ?? e, [x]), fe = F((e) => x[e]?.getSize() ?? 0, [x]), pe = $r({
|
|
4753
4761
|
horizontal: !0,
|
|
@@ -4771,7 +4779,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4771
4779
|
let me = S ? pe.getVirtualItems() : [], he = S && me.length > 0 ? {
|
|
4772
4780
|
start: me[0].index,
|
|
4773
4781
|
end: me[me.length - 1].index
|
|
4774
|
-
} : void 0, ge = j ? le.getVirtualItems() : [], _e = j ? le.getTotalSize() : 0, ve = j &&
|
|
4782
|
+
} : void 0, ge = j ? le.getVirtualItems() : [], _e = j ? le.getTotalSize() : 0, ve = j && ne ? le.measureElement : void 0, ye = Math.max(0, m), be = a === void 0 ? void 0 : w[a]?.id, xe = j && a !== void 0 ? ge.find((e) => e.index === a) : void 0, Se = R(null), Ce = R(null), we = R(null), Te = R(null);
|
|
4775
4783
|
I(() => {
|
|
4776
4784
|
if (!S || c === void 0 || c < 0 || c >= x.length || !D.scrollElement) return;
|
|
4777
4785
|
let e = {
|
|
@@ -4931,7 +4939,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4931
4939
|
},
|
|
4932
4940
|
children: /* @__PURE__ */ W(Yl, { children: [
|
|
4933
4941
|
Ee,
|
|
4934
|
-
u && (v.tableLayout?.stripped || !v.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4942
|
+
u && (v.tableLayout?.stripped || !v.tableLayout?.rowBorder) && !v.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4935
4943
|
/* @__PURE__ */ W(au, { children: [
|
|
4936
4944
|
/* @__PURE__ */ U(Yu, {
|
|
4937
4945
|
table: _,
|
|
@@ -6821,7 +6829,7 @@ var Xd = (e, t) => {
|
|
|
6821
6829
|
operator: { type: t },
|
|
6822
6830
|
value: yf(t, e)
|
|
6823
6831
|
});
|
|
6824
|
-
}, [_]),
|
|
6832
|
+
}, [_]), ee = F((e) => {
|
|
6825
6833
|
let t = g.kind === "simple" ? g.value : null, n = (e) => t?.type === e, r = q(e).with(K.when((e) => mf.includes(e)), () => null).with("between", () => n("interval") ? t : yf(e, T)).with("in", "notIn", () => n("stringArray") || n("numberArray") ? t : yf(e, T)).with("dateAfter", "dateBefore", "dateSame", "dateSameOrAfter", "dateSameOrBefore", () => n("date") ? t : yf(e, T)).with("timeGt", "timeGte", "timeLt", "timeLte", () => n("time") ? t : yf(e, T)).with("dayOfWeekIn", "quarterIn", () => n("intArray") ? t : yf(e, T)).with("startsWith", "endsWith", "contains", () => n("string") ? t : yf(e, T)).otherwise(() => n(T === "number" ? "number" : T === "boolean" ? "boolean" : "string") ? t : yf(e, T));
|
|
6826
6834
|
_({
|
|
6827
6835
|
kind: "simple",
|
|
@@ -6832,12 +6840,12 @@ var Xd = (e, t) => {
|
|
|
6832
6840
|
g,
|
|
6833
6841
|
T,
|
|
6834
6842
|
_
|
|
6835
|
-
]),
|
|
6836
|
-
b(!1),
|
|
6837
|
-
}, [
|
|
6843
|
+
]), O = F((e) => {
|
|
6844
|
+
b(!1), ee(e);
|
|
6845
|
+
}, [ee, b]), te = {
|
|
6838
6846
|
kind: T,
|
|
6839
6847
|
operator: g.kind === "simple" ? g.operator.type : "eq",
|
|
6840
|
-
onSelect:
|
|
6848
|
+
onSelect: O,
|
|
6841
6849
|
onKindChange: h ? D : void 0,
|
|
6842
6850
|
onCustomToggle: x,
|
|
6843
6851
|
disabled: n
|
|
@@ -6847,7 +6855,7 @@ var Xd = (e, t) => {
|
|
|
6847
6855
|
className: "flex items-start gap-1 min-h-[var(--b-height)] text-[var(--b-font-size)] leading-[var(--b-line-height)]",
|
|
6848
6856
|
style: l,
|
|
6849
6857
|
children: [/* @__PURE__ */ U(xf, {
|
|
6850
|
-
...
|
|
6858
|
+
...te,
|
|
6851
6859
|
isCustom: !0
|
|
6852
6860
|
}), /* @__PURE__ */ U(qd, {
|
|
6853
6861
|
className: "min-w-[40px] flex-1 max-h-[var(--b-max-height)] overflow-y-auto",
|
|
@@ -6865,28 +6873,28 @@ var Xd = (e, t) => {
|
|
|
6865
6873
|
placeholder: w("expression.placeholder")
|
|
6866
6874
|
})]
|
|
6867
6875
|
});
|
|
6868
|
-
let
|
|
6876
|
+
let k = g.operator.type;
|
|
6869
6877
|
return /* @__PURE__ */ W("div", {
|
|
6870
6878
|
ref: s,
|
|
6871
6879
|
className: "flex items-start gap-1 min-h-[var(--b-height)] text-[var(--b-font-size)] leading-[var(--b-line-height)]",
|
|
6872
6880
|
style: l,
|
|
6873
6881
|
children: [/* @__PURE__ */ U(xf, {
|
|
6874
|
-
...
|
|
6875
|
-
operator:
|
|
6876
|
-
}), mf.includes(
|
|
6882
|
+
...te,
|
|
6883
|
+
operator: k
|
|
6884
|
+
}), mf.includes(k) ? k !== "any" && /* @__PURE__ */ U("span", {
|
|
6877
6885
|
className: "text-xs leading-[var(--b-height)] text-[var(--muted-foreground)]",
|
|
6878
|
-
children: df(
|
|
6886
|
+
children: df(k).label
|
|
6879
6887
|
}) : m ? /* @__PURE__ */ U(If, {
|
|
6880
6888
|
value: g.value,
|
|
6881
6889
|
onChange: v,
|
|
6882
|
-
operator:
|
|
6890
|
+
operator: k,
|
|
6883
6891
|
options: d,
|
|
6884
6892
|
loose: f,
|
|
6885
6893
|
disabled: n
|
|
6886
6894
|
}) : /* @__PURE__ */ U(Tf, {
|
|
6887
6895
|
value: g.value,
|
|
6888
6896
|
onChange: v,
|
|
6889
|
-
operator:
|
|
6897
|
+
operator: k,
|
|
6890
6898
|
kind: T,
|
|
6891
6899
|
disabled: n
|
|
6892
6900
|
})]
|
|
@@ -7344,7 +7352,6 @@ var Xd = (e, t) => {
|
|
|
7344
7352
|
});
|
|
7345
7353
|
}, lp = ({ value: e, onSubmit: t, onRemove: n, disabled: r, open: i, onOpenChange: a, triggerClassName: o, children: s, mode: c = "edit", trigger: l }) => /* @__PURE__ */ U(Vo, {
|
|
7346
7354
|
placement: "bottomLeft",
|
|
7347
|
-
overlayClassName: "z-[60]",
|
|
7348
7355
|
trigger: ["click"],
|
|
7349
7356
|
destroyTooltipOnHide: !0,
|
|
7350
7357
|
arrow: !1,
|
|
@@ -7412,16 +7419,16 @@ var Xd = (e, t) => {
|
|
|
7412
7419
|
className: "mb-1.5 block text-xs font-medium text-muted-foreground",
|
|
7413
7420
|
children: e
|
|
7414
7421
|
}), pp = ({ value: e, onChange: t, onRemove: n, disabled: r, variableType: i, inputData: a, referenceData: s, fieldType: c, mode: l = "edit", trigger: u, onCreate: d }) => {
|
|
7415
|
-
let f = Ac((e) => e.dictionaries) ?? {}, p = Ac((e) => e.mode) === "business", m = Ac((e) => e.inputVariableType), h = L(() => ed(m), [m]), g = L(() => ep(h), [h]), [_, v] = z(!1), [y, b] = z(!1), x = o(), [S, C] = z(""), [w, T] = z(e), [E, D] = z(c?.type ?? "any"),
|
|
7422
|
+
let f = Ac((e) => e.dictionaries) ?? {}, p = Ac((e) => e.mode) === "business", m = Ac((e) => e.inputVariableType), h = L(() => ed(m), [m]), g = L(() => ep(h), [h]), [_, v] = z(!1), [y, b] = z(!1), x = o(), [S, C] = z(""), [w, T] = z(e), [E, D] = z(c?.type ?? "any"), ee = c?.type === "string" ? c.enum : void 0, [O, te] = z(ap(ee)), [k, ne] = z(ee?.type === "inline" ? sp(ee.values) : ""), [A, re] = z(ee?.type === "ref" ? ee.ref : ""), [j, M] = z(ee?.loose ?? !1), ie = R(null), N = R(null);
|
|
7416
7423
|
I(() => {
|
|
7417
7424
|
if (y) {
|
|
7418
|
-
if (l === "create") C(""), T(""), D("any"),
|
|
7425
|
+
if (l === "create") C(""), T(""), D("any"), te("none"), ne(""), re(""), M(!1), setTimeout(() => {
|
|
7419
7426
|
ie.current?.codeMirror?.focus();
|
|
7420
7427
|
});
|
|
7421
7428
|
else {
|
|
7422
7429
|
T(e), D(c?.type ?? "any");
|
|
7423
7430
|
let t = c?.type === "string" ? c.enum : void 0;
|
|
7424
|
-
if (
|
|
7431
|
+
if (te(ap(t)), ne(t?.type === "inline" ? sp(t.values) : ""), re(t?.type === "ref" ? t.ref : ""), M(t?.loose ?? !1), !ie.current) return;
|
|
7425
7432
|
setTimeout(() => {
|
|
7426
7433
|
ie.current.codeMirror?.focus();
|
|
7427
7434
|
let e = ie.current.querySelector(".cm-content"), t = window.getSelection();
|
|
@@ -7435,16 +7442,16 @@ var Xd = (e, t) => {
|
|
|
7435
7442
|
if (E !== "any") {
|
|
7436
7443
|
if (E === "string") {
|
|
7437
7444
|
let e;
|
|
7438
|
-
if (
|
|
7439
|
-
let t = op(
|
|
7445
|
+
if (O === "inline") {
|
|
7446
|
+
let t = op(k);
|
|
7440
7447
|
t.length && (e = {
|
|
7441
7448
|
type: "inline",
|
|
7442
7449
|
values: t,
|
|
7443
7450
|
...j ? { loose: !0 } : {}
|
|
7444
7451
|
});
|
|
7445
|
-
} else
|
|
7452
|
+
} else O === "ref" && A && (e = {
|
|
7446
7453
|
type: "ref",
|
|
7447
|
-
ref:
|
|
7454
|
+
ref: A,
|
|
7448
7455
|
...j ? { loose: !0 } : {}
|
|
7449
7456
|
});
|
|
7450
7457
|
return {
|
|
@@ -7541,15 +7548,15 @@ var Xd = (e, t) => {
|
|
|
7541
7548
|
/* @__PURE__ */ U(fp, { children: "Enum" }),
|
|
7542
7549
|
/* @__PURE__ */ U(up, {
|
|
7543
7550
|
options: Object.keys(f).length ? ip : ip.filter((e) => e.value !== "ref"),
|
|
7544
|
-
value:
|
|
7545
|
-
onChange:
|
|
7551
|
+
value: O,
|
|
7552
|
+
onChange: te,
|
|
7546
7553
|
disabled: r
|
|
7547
7554
|
}),
|
|
7548
|
-
|
|
7555
|
+
O === "inline" && /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U(od, {
|
|
7549
7556
|
maxRows: 6,
|
|
7550
7557
|
placeholder: "United States;us\nCanada;ca\nMexico",
|
|
7551
|
-
value:
|
|
7552
|
-
onChange: (e) =>
|
|
7558
|
+
value: k,
|
|
7559
|
+
onChange: (e) => ne(e.target.value),
|
|
7553
7560
|
disabled: r,
|
|
7554
7561
|
className: "text-xs"
|
|
7555
7562
|
}), /* @__PURE__ */ W("span", {
|
|
@@ -7560,8 +7567,8 @@ var Xd = (e, t) => {
|
|
|
7560
7567
|
" format."
|
|
7561
7568
|
]
|
|
7562
7569
|
})] }),
|
|
7563
|
-
|
|
7564
|
-
value:
|
|
7570
|
+
O === "ref" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Zo, {
|
|
7571
|
+
value: A || void 0,
|
|
7565
7572
|
onChange: re,
|
|
7566
7573
|
placeholder: x("dt.field.selectDictionary"),
|
|
7567
7574
|
disabled: r,
|
|
@@ -7572,7 +7579,7 @@ var Xd = (e, t) => {
|
|
|
7572
7579
|
value: e
|
|
7573
7580
|
}))
|
|
7574
7581
|
}) }),
|
|
7575
|
-
|
|
7582
|
+
O !== "none" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Wa, {
|
|
7576
7583
|
checked: j,
|
|
7577
7584
|
onChange: (e) => M(e.target.checked),
|
|
7578
7585
|
disabled: r,
|
|
@@ -7591,21 +7598,21 @@ var Xd = (e, t) => {
|
|
|
7591
7598
|
}), hp = (e) => {
|
|
7592
7599
|
if (e && (e.type === "string" || e.type === "string-array")) return e.enum;
|
|
7593
7600
|
}, gp = ({ disabled: e, value: t, onChange: n, onRemove: r, fieldType: i, mode: a = "edit", trigger: s, onCreate: c }) => {
|
|
7594
|
-
let l = Ac((e) => e.dictionaries) ?? {}, u = Ac((e) => e.mode) === "business", [d, f] = z(!1), p = o(), [m, h] = z(""), [g, _] = z(t), [v, y] = z(i?.type ?? "auto"), b = hp(i), [x, S] = z(ap(b)), [C, w] = z(b?.type === "inline" ? sp(b.values) : ""), [T, E] = z(b?.type === "ref" ? b.ref : ""), [D,
|
|
7601
|
+
let l = Ac((e) => e.dictionaries) ?? {}, u = Ac((e) => e.mode) === "business", [d, f] = z(!1), p = o(), [m, h] = z(""), [g, _] = z(t), [v, y] = z(i?.type ?? "auto"), b = hp(i), [x, S] = z(ap(b)), [C, w] = z(b?.type === "inline" ? sp(b.values) : ""), [T, E] = z(b?.type === "ref" ? b.ref : ""), [D, ee] = z(b?.loose ?? !1), O = R(null), te = R(null);
|
|
7595
7602
|
I(() => {
|
|
7596
7603
|
if (d) {
|
|
7597
|
-
if (a === "create") h(""), _(""), y("auto"), S("none"), w(""), E(""),
|
|
7598
|
-
|
|
7604
|
+
if (a === "create") h(""), _(""), y("auto"), S("none"), w(""), E(""), ee(!1), setTimeout(() => {
|
|
7605
|
+
O.current?.focus();
|
|
7599
7606
|
});
|
|
7600
7607
|
else {
|
|
7601
7608
|
_(t), y(i?.type ?? "auto");
|
|
7602
7609
|
let e = hp(i);
|
|
7603
|
-
if (S(ap(e)), w(e?.type === "inline" ? sp(e.values) : ""), E(e?.type === "ref" ? e.ref : ""),
|
|
7604
|
-
|
|
7610
|
+
if (S(ap(e)), w(e?.type === "inline" ? sp(e.values) : ""), E(e?.type === "ref" ? e.ref : ""), ee(e?.loose ?? !1), !O.current) return;
|
|
7611
|
+
O.current.focus(), O.current.select();
|
|
7605
7612
|
}
|
|
7606
7613
|
}
|
|
7607
7614
|
}, [d]);
|
|
7608
|
-
let
|
|
7615
|
+
let k = v === "string" || v === "string-array", ne = () => {
|
|
7609
7616
|
if (!u) return i?.type === "auto" ? void 0 : i;
|
|
7610
7617
|
if (v !== "auto") {
|
|
7611
7618
|
if (v === "string" || v === "string-array") {
|
|
@@ -7633,7 +7640,7 @@ var Xd = (e, t) => {
|
|
|
7633
7640
|
return /* @__PURE__ */ W(lp, {
|
|
7634
7641
|
value: t,
|
|
7635
7642
|
onSubmit: () => {
|
|
7636
|
-
a === "create" ? c?.(m || "Output", g ?? "output",
|
|
7643
|
+
a === "create" ? c?.(m || "Output", g ?? "output", ne()) : n?.(g ?? "", ne()), f(!1);
|
|
7637
7644
|
},
|
|
7638
7645
|
onRemove: r,
|
|
7639
7646
|
disabled: e,
|
|
@@ -7646,7 +7653,7 @@ var Xd = (e, t) => {
|
|
|
7646
7653
|
/* @__PURE__ */ W("div", {
|
|
7647
7654
|
className: "space-y-1.5",
|
|
7648
7655
|
children: [/* @__PURE__ */ U(mp, { children: p("dt.field.output.label") }), /* @__PURE__ */ U(Do, {
|
|
7649
|
-
ref:
|
|
7656
|
+
ref: O,
|
|
7650
7657
|
value: g,
|
|
7651
7658
|
onChange: (e) => _(e.target.value),
|
|
7652
7659
|
readOnly: e,
|
|
@@ -7656,7 +7663,7 @@ var Xd = (e, t) => {
|
|
|
7656
7663
|
a === "create" && /* @__PURE__ */ W("div", {
|
|
7657
7664
|
className: "space-y-1.5",
|
|
7658
7665
|
children: [/* @__PURE__ */ U(mp, { children: "Label" }), /* @__PURE__ */ U(Do, {
|
|
7659
|
-
ref:
|
|
7666
|
+
ref: te,
|
|
7660
7667
|
value: m,
|
|
7661
7668
|
onChange: (e) => h(e.target.value),
|
|
7662
7669
|
placeholder: p("dt.field.label"),
|
|
@@ -7673,7 +7680,7 @@ var Xd = (e, t) => {
|
|
|
7673
7680
|
disabled: e
|
|
7674
7681
|
})]
|
|
7675
7682
|
}),
|
|
7676
|
-
u &&
|
|
7683
|
+
u && k && /* @__PURE__ */ W("div", {
|
|
7677
7684
|
className: "space-y-2",
|
|
7678
7685
|
children: [
|
|
7679
7686
|
/* @__PURE__ */ U(mp, { children: "Enum" }),
|
|
@@ -7712,7 +7719,7 @@ var Xd = (e, t) => {
|
|
|
7712
7719
|
}) }),
|
|
7713
7720
|
x !== "none" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Wa, {
|
|
7714
7721
|
checked: D,
|
|
7715
|
-
onChange: (e) =>
|
|
7722
|
+
onChange: (e) => ee(e.target.checked),
|
|
7716
7723
|
disabled: e,
|
|
7717
7724
|
children: /* @__PURE__ */ U("span", {
|
|
7718
7725
|
className: "text-xs",
|
|
@@ -7998,7 +8005,7 @@ var Xd = (e, t) => {
|
|
|
7998
8005
|
return r === e.toLowerCase() || r === t.toLowerCase();
|
|
7999
8006
|
});
|
|
8000
8007
|
a && (r.excelHeaderId = a.id), l((e) => [...e, r]);
|
|
8001
|
-
}, [c, v]),
|
|
8008
|
+
}, [c, v]), ee = F((e, t, n) => {
|
|
8002
8009
|
let r = {
|
|
8003
8010
|
id: crypto.randomUUID(),
|
|
8004
8011
|
name: e,
|
|
@@ -8011,7 +8018,7 @@ var Xd = (e, t) => {
|
|
|
8011
8018
|
return r === e.toLowerCase() || r === t.toLowerCase();
|
|
8012
8019
|
});
|
|
8013
8020
|
a && (r.excelHeaderId = a.id), l((e) => [...e, r]);
|
|
8014
|
-
}, [c, v]),
|
|
8021
|
+
}, [c, v]), O = F(() => {
|
|
8015
8022
|
i && t(yp({
|
|
8016
8023
|
spreadSheetData: i,
|
|
8017
8024
|
columns: c,
|
|
@@ -8028,12 +8035,12 @@ var Xd = (e, t) => {
|
|
|
8028
8035
|
g,
|
|
8029
8036
|
m,
|
|
8030
8037
|
t
|
|
8031
|
-
]),
|
|
8038
|
+
]), te = /* @__PURE__ */ U(Y, {
|
|
8032
8039
|
type: "text",
|
|
8033
8040
|
size: "small",
|
|
8034
8041
|
icon: /* @__PURE__ */ U(sn, {}),
|
|
8035
8042
|
children: "Add Input"
|
|
8036
|
-
}),
|
|
8043
|
+
}), k = /* @__PURE__ */ U(Y, {
|
|
8037
8044
|
type: "text",
|
|
8038
8045
|
size: "small",
|
|
8039
8046
|
icon: /* @__PURE__ */ U(sn, {}),
|
|
@@ -8045,11 +8052,12 @@ var Xd = (e, t) => {
|
|
|
8045
8052
|
centered: !0,
|
|
8046
8053
|
open: !!i,
|
|
8047
8054
|
okButtonProps: { disabled: C },
|
|
8048
|
-
onOk:
|
|
8055
|
+
onOk: O,
|
|
8049
8056
|
onCancel: n,
|
|
8050
8057
|
destroyOnClose: !0,
|
|
8051
8058
|
width: 900,
|
|
8052
8059
|
getContainer: a,
|
|
8060
|
+
className: "gap-2 p-3",
|
|
8053
8061
|
children: /* @__PURE__ */ W("div", {
|
|
8054
8062
|
style: { padding: "8px 0" },
|
|
8055
8063
|
children: [
|
|
@@ -8068,7 +8076,7 @@ var Xd = (e, t) => {
|
|
|
8068
8076
|
mode: "create",
|
|
8069
8077
|
variableType: s,
|
|
8070
8078
|
onCreate: D,
|
|
8071
|
-
trigger:
|
|
8079
|
+
trigger: te
|
|
8072
8080
|
})]
|
|
8073
8081
|
}),
|
|
8074
8082
|
/* @__PURE__ */ U("div", {
|
|
@@ -8116,8 +8124,8 @@ var Xd = (e, t) => {
|
|
|
8116
8124
|
children: "Outputs"
|
|
8117
8125
|
}), /* @__PURE__ */ U(gp, {
|
|
8118
8126
|
mode: "create",
|
|
8119
|
-
onCreate:
|
|
8120
|
-
trigger:
|
|
8127
|
+
onCreate: ee,
|
|
8128
|
+
trigger: k
|
|
8121
8129
|
})]
|
|
8122
8130
|
}),
|
|
8123
8131
|
/* @__PURE__ */ U("div", {
|
|
@@ -8216,7 +8224,10 @@ var Xd = (e, t) => {
|
|
|
8216
8224
|
style: { fontSize: 13 },
|
|
8217
8225
|
children: "Preview"
|
|
8218
8226
|
})
|
|
8219
|
-
}), /* @__PURE__ */ U(Qu, {
|
|
8227
|
+
}), /* @__PURE__ */ U(Qu, {
|
|
8228
|
+
sheet: i,
|
|
8229
|
+
height: 180
|
|
8230
|
+
})] })
|
|
8220
8231
|
]
|
|
8221
8232
|
})
|
|
8222
8233
|
});
|
|
@@ -9075,7 +9086,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9075
9086
|
if ((e.metaKey || e.ctrlKey) && !e.altKey && t) {
|
|
9076
9087
|
let t = e.key === "c" || e.key === "C" || e.code === "KeyC", n = e.key === "x" || e.key === "X" || e.code === "KeyX";
|
|
9077
9088
|
if (t || n) {
|
|
9078
|
-
e.preventDefault(),
|
|
9089
|
+
e.preventDefault(), ee().then((e) => {
|
|
9079
9090
|
if (!e || (r.props.onCellsCopy?.({
|
|
9080
9091
|
...e,
|
|
9081
9092
|
cut: n
|
|
@@ -9179,7 +9190,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9179
9190
|
return;
|
|
9180
9191
|
}
|
|
9181
9192
|
e.key === " " && i.getFocusedCell() && e.preventDefault();
|
|
9182
|
-
},
|
|
9193
|
+
}, ee = async () => {
|
|
9183
9194
|
let e = Lp(p(), f);
|
|
9184
9195
|
if (!e) return null;
|
|
9185
9196
|
let t = Tp(e);
|
|
@@ -9208,7 +9219,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9208
9219
|
text: t,
|
|
9209
9220
|
grid: e
|
|
9210
9221
|
} : null;
|
|
9211
|
-
},
|
|
9222
|
+
}, O = (e, t) => {
|
|
9212
9223
|
let n = Lp(p(), f);
|
|
9213
9224
|
if (!n || !e.clipboardData) return !1;
|
|
9214
9225
|
e.preventDefault();
|
|
@@ -9218,15 +9229,15 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9218
9229
|
grid: n,
|
|
9219
9230
|
cut: t
|
|
9220
9231
|
}), !0;
|
|
9221
|
-
},
|
|
9222
|
-
Up(e.target) ||
|
|
9223
|
-
},
|
|
9224
|
-
if (Up(e.target) || !
|
|
9232
|
+
}, te = (e) => {
|
|
9233
|
+
Up(e.target) || O(e, !1);
|
|
9234
|
+
}, k = (e) => {
|
|
9235
|
+
if (Up(e.target) || !O(e, !0)) return;
|
|
9225
9236
|
let t = m();
|
|
9226
9237
|
if (!t) return;
|
|
9227
9238
|
let n = Rp(p(), "cut", !0, f);
|
|
9228
9239
|
n && t(n);
|
|
9229
|
-
},
|
|
9240
|
+
}, ne = (e) => {
|
|
9230
9241
|
if (Up(e.target)) return;
|
|
9231
9242
|
let t = m();
|
|
9232
9243
|
if (!t) return;
|
|
@@ -9235,16 +9246,16 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9235
9246
|
e.preventDefault();
|
|
9236
9247
|
let r = p(), i = zp(r, Ep(n), f);
|
|
9237
9248
|
i && (t(i.details), h() && Bp(r, i.target));
|
|
9238
|
-
},
|
|
9239
|
-
if (
|
|
9249
|
+
}, A = !1, re = (e) => !(e instanceof Element) || e.closest("[data-cell-interactive]") || e.closest("[role=\"checkbox\"], input[type=\"checkbox\"]") ? null : e.closest("[data-cell-control]") || e.closest("button, a, select, input, textarea, [contenteditable], [role=\"combobox\"]"), j = (e) => {
|
|
9250
|
+
if (A = !1, e.button !== 0 || e.shiftKey || e.ctrlKey || e.metaKey || r.props.tableLayout?.cellEditMode === "click") return;
|
|
9240
9251
|
let t = re(e.target), n = t?.closest("td[data-col-id]");
|
|
9241
9252
|
if (!t || !n || !f.contains(n) || n.hasAttribute("data-cell-focused")) return;
|
|
9242
9253
|
let i = p().getColumn(n.getAttribute("data-col-id") ?? "");
|
|
9243
|
-
i && i.columnDef.enableCellSelection !== !1 && (
|
|
9254
|
+
i && i.columnDef.enableCellSelection !== !1 && (A = !0, e.stopPropagation());
|
|
9244
9255
|
}, M = (e) => {
|
|
9245
|
-
|
|
9256
|
+
A && (A = !1, e.preventDefault(), e.stopPropagation());
|
|
9246
9257
|
}, ie = (e) => {
|
|
9247
|
-
if (!
|
|
9258
|
+
if (!A) return;
|
|
9248
9259
|
e.stopPropagation(), e.preventDefault();
|
|
9249
9260
|
let t = e.target?.closest?.("td[data-col-id]"), n = t?.closest("tr[data-row-id]")?.getAttribute("data-row-id"), r = t?.getAttribute("data-col-id");
|
|
9250
9261
|
if (!n || !r) return;
|
|
@@ -9274,7 +9285,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9274
9285
|
}, ue = (e) => {
|
|
9275
9286
|
Wp(e.target) || (e.target?.closest?.("td"))?.hasAttribute("data-cell-focused") && b();
|
|
9276
9287
|
}, de = g.getAttribute("tabindex"), fe = g.style.outline;
|
|
9277
|
-
n && (g.tabIndex = 0, g.style.outline = "none", f.addEventListener("keydown", D)), t && (f.addEventListener("copy",
|
|
9288
|
+
n && (g.tabIndex = 0, g.style.outline = "none", f.addEventListener("keydown", D)), t && (f.addEventListener("copy", te), f.addEventListener("cut", k), f.addEventListener("paste", ne)), f.addEventListener("pointerdown", j), f.addEventListener("mousedown", ie), f.addEventListener("click", M), f.addEventListener("mousedown", ce), f.addEventListener("click", le), f.addEventListener("dblclick", ue), f.ownerDocument.addEventListener("mouseup", se);
|
|
9278
9289
|
let pe = (e) => ({
|
|
9279
9290
|
minRowIndex: e.minRowIndex,
|
|
9280
9291
|
maxRowIndex: e.maxRowIndex,
|
|
@@ -9295,7 +9306,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9295
9306
|
});
|
|
9296
9307
|
});
|
|
9297
9308
|
return o(f), () => {
|
|
9298
|
-
n && (de === null ? g.removeAttribute("tabindex") : g.setAttribute("tabindex", de), g.style.outline = fe, g.removeAttribute("aria-activedescendant"), f.removeEventListener("keydown", D)), t && (f.removeEventListener("copy",
|
|
9309
|
+
n && (de === null ? g.removeAttribute("tabindex") : g.setAttribute("tabindex", de), g.style.outline = fe, g.removeAttribute("aria-activedescendant"), f.removeEventListener("keydown", D)), t && (f.removeEventListener("copy", te), f.removeEventListener("cut", k), f.removeEventListener("paste", ne)), f.removeEventListener("pointerdown", j), f.removeEventListener("mousedown", ie), f.removeEventListener("click", M), f.removeEventListener("mousedown", ce), f.removeEventListener("click", le), f.removeEventListener("dblclick", ue), f.ownerDocument.removeEventListener("mouseup", se), f.removeAttribute("data-cell-selecting"), me?.unsubscribe(), clearTimeout(x), e && (e.current = null), o(null), c(null);
|
|
9299
9310
|
};
|
|
9300
9311
|
}, [
|
|
9301
9312
|
u,
|
|
@@ -10213,7 +10224,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10213
10224
|
})), { cellUndoLen: x, cellRedoLen: S } = Ac(({ cellUndoStack: e, cellRedoStack: t }) => ({
|
|
10214
10225
|
cellUndoLen: e.length,
|
|
10215
10226
|
cellRedoLen: t.length
|
|
10216
|
-
})), [C, w] = z(0), T = R(null), { rules: E } = Ac(({ decisionTable: e }) => ({ rules: e.rules }), (e, t) => (0, Sc.default)(e.rules.map((e) => e?._id), t.rules.map((e) => e?._id))), D = q(y?.trace.traceData).with(K.array(), (e) => e?.[b]?.rule?._id).otherwise((e) => e?.rule?._id),
|
|
10227
|
+
})), [C, w] = z(0), T = R(null), { rules: E } = Ac(({ decisionTable: e }) => ({ rules: e.rules }), (e, t) => (0, Sc.default)(e.rules.map((e) => e?._id), t.rules.map((e) => e?._id))), D = q(y?.trace.traceData).with(K.array(), (e) => e?.[b]?.rule?._id).otherwise((e) => e?.rule?._id), ee = P.useMemo(() => [
|
|
10217
10228
|
{
|
|
10218
10229
|
id: "__index",
|
|
10219
10230
|
header: () => null,
|
|
@@ -10295,26 +10306,26 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10295
10306
|
h,
|
|
10296
10307
|
_,
|
|
10297
10308
|
g
|
|
10298
|
-
]), [
|
|
10309
|
+
]), [O, te] = z([]), k = Yr({
|
|
10299
10310
|
data: E,
|
|
10300
10311
|
features: bm,
|
|
10301
10312
|
columnResizeMode: "onChange",
|
|
10302
10313
|
getRowId: (e) => e._id,
|
|
10303
|
-
columns:
|
|
10314
|
+
columns: ee,
|
|
10304
10315
|
defaultColumn: { cell: (e) => /* @__PURE__ */ U(am, { context: e }) },
|
|
10305
10316
|
meta: { getCell: l },
|
|
10306
10317
|
state: {
|
|
10307
|
-
cellSelection:
|
|
10318
|
+
cellSelection: O,
|
|
10308
10319
|
...e ? { columnSizing: u } : {}
|
|
10309
10320
|
},
|
|
10310
|
-
onCellSelectionChange:
|
|
10321
|
+
onCellSelectionChange: te,
|
|
10311
10322
|
initialState: { columnVisibility: ym(e) },
|
|
10312
10323
|
...e ? { onColumnSizingChange: d } : {}
|
|
10313
10324
|
});
|
|
10314
10325
|
I(() => {
|
|
10315
|
-
let e =
|
|
10326
|
+
let e = O[O.length - 1];
|
|
10316
10327
|
if (!e) return;
|
|
10317
|
-
let t =
|
|
10328
|
+
let t = k.getRow(e.focusRowId);
|
|
10318
10329
|
if (!t) return;
|
|
10319
10330
|
let n = e.focusColumnId === "__index" ? "id" : e.focusColumnId;
|
|
10320
10331
|
(v?.y !== t.index || v?.x !== n) && a.setCursor({
|
|
@@ -10322,19 +10333,19 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10322
10333
|
y: t.index
|
|
10323
10334
|
});
|
|
10324
10335
|
}, [
|
|
10336
|
+
O,
|
|
10325
10337
|
k,
|
|
10326
|
-
A,
|
|
10327
10338
|
v?.x,
|
|
10328
10339
|
v?.y,
|
|
10329
10340
|
a
|
|
10330
10341
|
]);
|
|
10331
|
-
let
|
|
10342
|
+
let ne = L(() => E.map((e) => e._id), [E]), A = F((e) => {
|
|
10332
10343
|
let { active: t, over: n } = e;
|
|
10333
10344
|
if (t && n && t.id !== n.id) {
|
|
10334
|
-
let e =
|
|
10345
|
+
let e = ne.indexOf(String(t.id)), r = ne.indexOf(String(n.id));
|
|
10335
10346
|
e >= 0 && r >= 0 && a.swapRows(e, r);
|
|
10336
10347
|
}
|
|
10337
|
-
}, [
|
|
10348
|
+
}, [ne, a]), re = F((e) => e?._diff?.status === "added" ? "new" : e?._diff?.status === "removed" ? "deleted" : e?._diff?.status === "modified" ? "dirty" : void 0, []), j = F((e, t) => V(!p && v?.y === t && "bg-[var(--seal-color-primary-bg-fade)]!", !e?._diff?.status && D && e?._id === D && "bg-[var(--seal-color-success-bg)]!", !e?._diff?.status && p && "bg-black/[0.02]"), [
|
|
10338
10349
|
v?.y,
|
|
10339
10350
|
D,
|
|
10340
10351
|
p
|
|
@@ -10438,7 +10449,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10438
10449
|
},
|
|
10439
10450
|
onKeyDown: oe,
|
|
10440
10451
|
children: /* @__PURE__ */ W(Cl, {
|
|
10441
|
-
table:
|
|
10452
|
+
table: k,
|
|
10442
10453
|
recordCount: E.length,
|
|
10443
10454
|
i18n: c,
|
|
10444
10455
|
getRowStatus: re,
|
|
@@ -10470,8 +10481,8 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10470
10481
|
},
|
|
10471
10482
|
children: [
|
|
10472
10483
|
/* @__PURE__ */ U(Xp, { children: /* @__PURE__ */ U(Eu, {
|
|
10473
|
-
handleDragEnd:
|
|
10474
|
-
dataIds:
|
|
10484
|
+
handleDragEnd: A,
|
|
10485
|
+
dataIds: ne,
|
|
10475
10486
|
virtual: ae,
|
|
10476
10487
|
virtualizerRef: N
|
|
10477
10488
|
}) }),
|
|
@@ -10509,7 +10520,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10509
10520
|
children: s("dt.cellsSkipped", { count: C })
|
|
10510
10521
|
}),
|
|
10511
10522
|
/* @__PURE__ */ U(Jp, {
|
|
10512
|
-
table:
|
|
10523
|
+
table: k,
|
|
10513
10524
|
onColumnVisibilityChange: (t) => {
|
|
10514
10525
|
e && localStorage.setItem(vm(e), JSON.stringify(t));
|
|
10515
10526
|
},
|
|
@@ -10681,7 +10692,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10681
10692
|
if (r.examples.length === 0) return null;
|
|
10682
10693
|
let i = d(n.content);
|
|
10683
10694
|
return r.examples.map((e, t) => {
|
|
10684
|
-
let n =
|
|
10695
|
+
let n = k(O(e.data, i), i);
|
|
10685
10696
|
return {
|
|
10686
10697
|
name: e.name.trim() || `#${t + 1}`,
|
|
10687
10698
|
input: n
|
|
@@ -11801,9 +11812,9 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11801
11812
|
nodeTrace: q(t).with({ result: K._ }, ({ result: t }) => t?.trace?.[e]).otherwise(() => null),
|
|
11802
11813
|
nodeError: t?.error?.data?.nodeId === e ? t.error : null,
|
|
11803
11814
|
compactMode: r
|
|
11804
|
-
})), { diff: E } = ih(e), D = i.renderSettings,
|
|
11815
|
+
})), { diff: E } = ih(e), D = i.renderSettings, ee = () => {
|
|
11805
11816
|
y(g !== 0 || !v), _(0);
|
|
11806
|
-
},
|
|
11817
|
+
}, O = () => x.confirm({
|
|
11807
11818
|
icon: null,
|
|
11808
11819
|
title: p("dg.node.deleteNode"),
|
|
11809
11820
|
content: /* @__PURE__ */ W(Z.Text, { children: [
|
|
@@ -11816,7 +11827,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11816
11827
|
] }),
|
|
11817
11828
|
okButtonProps: { danger: !0 },
|
|
11818
11829
|
onOk: () => b.removeNodes([e])
|
|
11819
|
-
}),
|
|
11830
|
+
}), te = [
|
|
11820
11831
|
i.documentationUrl ? {
|
|
11821
11832
|
key: "documentation",
|
|
11822
11833
|
label: /* @__PURE__ */ U(Yp, {
|
|
@@ -11858,7 +11869,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11858
11869
|
right: Ih.shortcut("Backspace")
|
|
11859
11870
|
}),
|
|
11860
11871
|
disabled: w,
|
|
11861
|
-
onClick:
|
|
11872
|
+
onClick: O
|
|
11862
11873
|
}
|
|
11863
11874
|
].filter((e) => e !== null && e !== !1);
|
|
11864
11875
|
return /* @__PURE__ */ W("div", {
|
|
@@ -11888,7 +11899,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11888
11899
|
className: "h-6 w-6 p-0",
|
|
11889
11900
|
"aria-label": p("spec.common.settings"),
|
|
11890
11901
|
icon: /* @__PURE__ */ U(el, {}),
|
|
11891
|
-
onClick:
|
|
11902
|
+
onClick: ee
|
|
11892
11903
|
}),
|
|
11893
11904
|
/* @__PURE__ */ U(Y, {
|
|
11894
11905
|
type: "text",
|
|
@@ -11914,7 +11925,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11914
11925
|
"aria-label": p("node.delete"),
|
|
11915
11926
|
disabled: w,
|
|
11916
11927
|
icon: /* @__PURE__ */ U(rl, {}),
|
|
11917
|
-
onClick:
|
|
11928
|
+
onClick: O
|
|
11918
11929
|
})
|
|
11919
11930
|
]
|
|
11920
11931
|
})
|
|
@@ -11926,7 +11937,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11926
11937
|
...typeof t == "boolean" ? {} : t
|
|
11927
11938
|
}),
|
|
11928
11939
|
/* @__PURE__ */ U(Gh, {
|
|
11929
|
-
menuItems:
|
|
11940
|
+
menuItems: te,
|
|
11930
11941
|
...d,
|
|
11931
11942
|
disabled: w,
|
|
11932
11943
|
icon: i.icon,
|
|
@@ -11941,7 +11952,7 @@ var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11941
11952
|
actions: D ? [...u ?? [], /* @__PURE__ */ U(Y, {
|
|
11942
11953
|
type: "text",
|
|
11943
11954
|
style: { marginLeft: "auto" },
|
|
11944
|
-
onClick:
|
|
11955
|
+
onClick: ee,
|
|
11945
11956
|
children: "Settings"
|
|
11946
11957
|
}, "settings")] : u,
|
|
11947
11958
|
status: q([
|
|
@@ -13044,7 +13055,7 @@ var fg = () => P.useContext(cg), pg = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13044
13055
|
]
|
|
13045
13056
|
});
|
|
13046
13057
|
}
|
|
13047
|
-
}, Ag = P.lazy(async () => ({ default: (await Promise.resolve().then(() =>
|
|
13058
|
+
}, Ag = P.lazy(async () => ({ default: (await Promise.resolve().then(() => Eb)).Function })), jg = ({ id: e }) => {
|
|
13048
13059
|
let t = Pg(e), n = nh(), r = eh((e) => e.onFunctionReady), [i, a] = z(), o = R(null), s = R(null);
|
|
13049
13060
|
dh(e, "monaco", {
|
|
13050
13061
|
serialize: () => o.current?.saveViewState() ?? s.current ?? null,
|
|
@@ -14064,7 +14075,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14064
14075
|
type: "object",
|
|
14065
14076
|
properties: {}
|
|
14066
14077
|
} : null;
|
|
14067
|
-
i(t ?
|
|
14078
|
+
i(t ? A(t) : "");
|
|
14068
14079
|
return;
|
|
14069
14080
|
}
|
|
14070
14081
|
i(D(r, t));
|
|
@@ -14102,7 +14113,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14102
14113
|
updateDefinitionName: (e, t) => {
|
|
14103
14114
|
let n = o[e];
|
|
14104
14115
|
if (!n) return;
|
|
14105
|
-
let r =
|
|
14116
|
+
let r = ne(t);
|
|
14106
14117
|
if (o.some((e) => e.parentPath === n.path) && !r) return;
|
|
14107
14118
|
let i = r ? t_(n.parentPath, r) : n_(n.parentPath, n.id), a = o.map((e) => {
|
|
14108
14119
|
if (e.path !== n.path && !e.path.startsWith(`${n.path}.`)) return e;
|
|
@@ -14148,18 +14159,18 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14148
14159
|
getDefinitionTypeLabel: (e) => _.find((t) => t.value === e)?.label ?? e
|
|
14149
14160
|
};
|
|
14150
14161
|
}, s_ = ({ id: e, content: t, t: n, graphActions: r, panels: i, activeGraphTabId: a, simulatorExampleBinding: o, nodeName: s, definitionDrafts: c }) => {
|
|
14151
|
-
let l = R(null), d = R(null), [f, p] = z(0), [h, g] = z(null), [v, y] = z({}), [S, D] = z({}), [
|
|
14162
|
+
let l = R(null), d = R(null), [f, p] = z(0), [h, g] = z(null), [v, y] = z({}), [S, D] = z({}), [ne, A] = z({}), re = L(() => w(t).contract, [
|
|
14152
14163
|
t?.schema,
|
|
14153
14164
|
t?.schemaUI,
|
|
14154
14165
|
t?.inputs,
|
|
14155
14166
|
t?.inputContract
|
|
14156
|
-
]), j = L(() => m(re.schema), [re.schema]), M = L(() => fe(re, { dataLabel: n("request.dataLabel") }), [re, n]), ie = (e) => u(e, n("request.dataLabel")), N = M[f] ?? null, ae = F((e, t = c) =>
|
|
14167
|
+
]), j = L(() => m(re.schema), [re.schema]), M = L(() => fe(re, { dataLabel: n("request.dataLabel") }), [re, n]), ie = (e) => u(e, n("request.dataLabel")), N = M[f] ?? null, ae = F((e, t = c) => k(oe(e) ? e : {}, t), [c]), se = F((e) => k(O(oe(e) ? e : {}, c), c), [c]), ce = L(() => N ? O(N.data, c) : null, [N, c]), le = L(() => N ? v[N.id] ?? De(ce) : "", [
|
|
14157
14168
|
N,
|
|
14158
14169
|
v,
|
|
14159
14170
|
ce
|
|
14160
|
-
]), ue = L(() => N ?
|
|
14171
|
+
]), ue = L(() => N ? ne[N.id] ?? N.description ?? "" : "", [N, ne]), pe = L(() => {
|
|
14161
14172
|
if (!N || !ce) return null;
|
|
14162
|
-
let e = c.filter((e) => e.name.trim() && e.path.trim()), t =
|
|
14173
|
+
let e = c.filter((e) => e.name.trim() && e.path.trim()), t = te(ce, e), n = e.filter((e) => T(ce, e.path.trim()) === void 0), r = E(ce), i = e.map((e) => e.path.trim());
|
|
14163
14174
|
return {
|
|
14164
14175
|
definitions: e,
|
|
14165
14176
|
conflicts: t,
|
|
@@ -14173,7 +14184,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14173
14184
|
]), [me, he] = z({});
|
|
14174
14185
|
I(() => {
|
|
14175
14186
|
let e = !1;
|
|
14176
|
-
return
|
|
14187
|
+
return ee(re.examples.map((e) => e.data), re.schema).then((t) => {
|
|
14177
14188
|
if (e) return;
|
|
14178
14189
|
let n = {};
|
|
14179
14190
|
re.examples.forEach((e, r) => {
|
|
@@ -14301,7 +14312,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14301
14312
|
M.forEach((e) => {
|
|
14302
14313
|
y((t) => {
|
|
14303
14314
|
if (S[e.id] === !0) return t;
|
|
14304
|
-
let n = De(
|
|
14315
|
+
let n = De(O(e.data, c));
|
|
14305
14316
|
return t[e.id] === n ? t : {
|
|
14306
14317
|
...t,
|
|
14307
14318
|
[e.id]: n
|
|
@@ -14443,14 +14454,14 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14443
14454
|
}));
|
|
14444
14455
|
}, Pe = (e) => {
|
|
14445
14456
|
let t = d.current ?? N?.id;
|
|
14446
|
-
t &&
|
|
14457
|
+
t && A((n) => ({
|
|
14447
14458
|
...n,
|
|
14448
14459
|
[t]: e
|
|
14449
14460
|
}));
|
|
14450
14461
|
}, Fe = () => {
|
|
14451
14462
|
let e = d.current ?? N?.id;
|
|
14452
14463
|
if (!e) return;
|
|
14453
|
-
let t = M.find((t) => t.id === e), n =
|
|
14464
|
+
let t = M.find((t) => t.id === e), n = ne[e] ?? t?.description ?? "";
|
|
14454
14465
|
if (n === (t?.description ?? "")) return;
|
|
14455
14466
|
let r = M.findIndex((t) => t.id === e), i = M.map((t) => t.id === e ? {
|
|
14456
14467
|
...t,
|
|
@@ -14461,7 +14472,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14461
14472
|
let e = M, t = [...e, {
|
|
14462
14473
|
id: crypto.randomUUID(),
|
|
14463
14474
|
name: ie(e.length),
|
|
14464
|
-
data:
|
|
14475
|
+
data: k(b(c), c),
|
|
14465
14476
|
source: "schema.examples"
|
|
14466
14477
|
}];
|
|
14467
14478
|
P(t, t.length - 1);
|
|
@@ -14552,7 +14563,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14552
14563
|
n?.inputs,
|
|
14553
14564
|
n?.inputContract
|
|
14554
14565
|
]), s = o.schema, l = L(() => {
|
|
14555
|
-
let e =
|
|
14566
|
+
let e = A(o.schema);
|
|
14556
14567
|
return e === "{}" ? "" : e;
|
|
14557
14568
|
}, [o.schema]), u = l, [d, p] = z(u), [m, h] = z(!1), g = R(d), v = R(u), y = R(null), b = R(/* @__PURE__ */ new Set()), x = R(s), S = R(e), C = R(null), T = (e, t) => {
|
|
14558
14569
|
y.current = e, g.current = e, p(e), t?.dirty !== void 0 && h(t.dirty);
|
|
@@ -14614,7 +14625,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14614
14625
|
let e = g.current;
|
|
14615
14626
|
if (!e.trim()) {
|
|
14616
14627
|
C.current = null;
|
|
14617
|
-
let e =
|
|
14628
|
+
let e = A(x.current);
|
|
14618
14629
|
e.trim() && e !== "{}" && (C.current = "", E("")), T("", { dirty: !1 });
|
|
14619
14630
|
return;
|
|
14620
14631
|
}
|
|
@@ -14641,7 +14652,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14641
14652
|
simulatorExampleBinding: s,
|
|
14642
14653
|
fixturesRunner: c,
|
|
14643
14654
|
fixturesRun: l
|
|
14644
|
-
})), E = h ?? !1, { contract: D, sourceSchemaValue:
|
|
14655
|
+
})), E = h ?? !1, { contract: D, sourceSchemaValue: ee, schemaDraft: O, jsonToJsonSchemaOpen: te, setJsonToJsonSchemaOpen: k, updateNodeSchema: ne, handleSchemaDraftChange: A, commitSchemaDraft: re, handleConvertToJsonSchemaSuccess: j } = c_({
|
|
14645
14656
|
id: e,
|
|
14646
14657
|
type: t,
|
|
14647
14658
|
content: g,
|
|
@@ -14650,8 +14661,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14650
14661
|
id: e,
|
|
14651
14662
|
content: g,
|
|
14652
14663
|
t: n,
|
|
14653
|
-
sourceSchemaValue:
|
|
14654
|
-
updateNodeSchema:
|
|
14664
|
+
sourceSchemaValue: ee,
|
|
14665
|
+
updateNodeSchema: ne
|
|
14655
14666
|
}), { exampleSources: he, exampleDriftStates: ge, activeSourceIndex: _e, setActiveSourceIndex: ve, activeSource: ye, activeExampleJsonDraft: be, activeDescriptionDraft: xe, exampleFieldSummary: Se, fileInputRef: Ce, addExampleSource: we, removeExampleSource: Te, persistExamples: Ee, migrateExample: De, migrateAllExamples: Oe, confirmExampleValid: ke, handleExampleJsonChange: Ae, commitExampleJson: je, handleDescriptionChange: Me, commitDescription: Ne, handleUploadJson: Pe, handleDownloadJson: Fe, openSimulatorPanel: Ie, syncExampleToSimulator: Le } = s_({
|
|
14656
14667
|
id: e,
|
|
14657
14668
|
content: g,
|
|
@@ -14665,13 +14676,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14665
14676
|
});
|
|
14666
14677
|
Vg(e, {
|
|
14667
14678
|
activeTab: i,
|
|
14668
|
-
schemaDraft:
|
|
14679
|
+
schemaDraft: O,
|
|
14669
14680
|
activeSourceIndex: _e,
|
|
14670
14681
|
activeExampleJsonDraft: be,
|
|
14671
14682
|
activeDescriptionDraft: xe
|
|
14672
14683
|
}, {
|
|
14673
14684
|
setActiveTab: (e) => a(l_(e)),
|
|
14674
|
-
setSchemaDraft:
|
|
14685
|
+
setSchemaDraft: A,
|
|
14675
14686
|
setActiveExampleJsonDraft: Ae,
|
|
14676
14687
|
setActiveDescriptionDraft: Me,
|
|
14677
14688
|
setActiveSourceIndex: ve
|
|
@@ -14833,7 +14844,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14833
14844
|
onFormat: () => {
|
|
14834
14845
|
(f.current?.getAction?.("editor.action.formatDocument"))?.run();
|
|
14835
14846
|
},
|
|
14836
|
-
onConvertFromJson: () =>
|
|
14847
|
+
onConvertFromJson: () => k(!0)
|
|
14837
14848
|
}) : /* @__PURE__ */ U($g, {
|
|
14838
14849
|
tab: "examples",
|
|
14839
14850
|
disabled: E,
|
|
@@ -14854,13 +14865,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14854
14865
|
/* @__PURE__ */ U("div", {
|
|
14855
14866
|
className: "flex min-h-0 flex-1 flex-col overflow-hidden p-3",
|
|
14856
14867
|
children: i === "code" ? /* @__PURE__ */ U(Rg, {
|
|
14857
|
-
schemaDraft:
|
|
14868
|
+
schemaDraft: O,
|
|
14858
14869
|
disabled: E,
|
|
14859
|
-
onSchemaChange:
|
|
14870
|
+
onSchemaChange: A,
|
|
14860
14871
|
onSchemaCommit: re,
|
|
14861
|
-
jsonToJsonSchemaOpen:
|
|
14872
|
+
jsonToJsonSchemaOpen: te,
|
|
14862
14873
|
onConvertSuccess: j,
|
|
14863
|
-
onDismissConvert: () =>
|
|
14874
|
+
onDismissConvert: () => k(!1),
|
|
14864
14875
|
onEditorMount: (e) => {
|
|
14865
14876
|
f.current = e;
|
|
14866
14877
|
},
|
|
@@ -15531,7 +15542,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15531
15542
|
});
|
|
15532
15543
|
}), Array.from(n.values());
|
|
15533
15544
|
}, E_ = ({ id: e, defaultValue: t, value: n, name: r, disabled: i = !1, diffBaseline: a, onChange: o, components: s, customNodes: c, functionLibraries: l, allowedNamespaces: u, extraCommands: d, defaultActivePanel: f, hideLeftToolbar: p, panels: m, simulate: h, dictionaries: g, mode: _, viewConfigCta: v, viewConfig: y, onViewConfigCta: b, onPanelsChange: x, onReactFlowInit: S, onCodeExtension: C, onFunctionReady: w, fixturesRunner: T, onContractEvent: E }) => {
|
|
15534
|
-
let D = R(!1),
|
|
15545
|
+
let D = R(!1), ee = nh(), { stateStore: O, listenerStore: te } = rh(), { decisionGraph: k, openTabs: ne, activeTab: A } = $(({ decisionGraph: e, openTabs: t, activeTab: n }) => ({
|
|
15535
15546
|
decisionGraph: e,
|
|
15536
15547
|
openTabs: t,
|
|
15537
15548
|
activeTab: n
|
|
@@ -15540,10 +15551,10 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15540
15551
|
}, 100);
|
|
15541
15552
|
I(() => {
|
|
15542
15553
|
if (y?.enabled) {
|
|
15543
|
-
let e =
|
|
15544
|
-
|
|
15554
|
+
let e = ne.filter((e) => !!y?.permissions?.[e]);
|
|
15555
|
+
O.setState({
|
|
15545
15556
|
openTabs: e,
|
|
15546
|
-
activeTab: y?.permissions?.[
|
|
15557
|
+
activeTab: y?.permissions?.[A] ? A : "graph"
|
|
15547
15558
|
});
|
|
15548
15559
|
}
|
|
15549
15560
|
}, [y]);
|
|
@@ -15552,7 +15563,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15552
15563
|
return !u || u.size === 0 ? e : e.filter((e) => u.has(e.kind));
|
|
15553
15564
|
}, [c, u]);
|
|
15554
15565
|
return I(() => {
|
|
15555
|
-
|
|
15566
|
+
O.setState({
|
|
15556
15567
|
id: e,
|
|
15557
15568
|
disabled: i,
|
|
15558
15569
|
components: Array.isArray(s) ? s : [],
|
|
@@ -15581,13 +15592,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15581
15592
|
g,
|
|
15582
15593
|
_
|
|
15583
15594
|
]), I(() => {
|
|
15584
|
-
|
|
15595
|
+
O.setState({ name: r ?? "graph.json" });
|
|
15585
15596
|
}, [r]), I(() => {
|
|
15586
|
-
|
|
15597
|
+
O.setState({ simulate: h });
|
|
15587
15598
|
}, [h]), I(() => {
|
|
15588
|
-
|
|
15599
|
+
O.setState({ fixturesRunner: T ?? null });
|
|
15589
15600
|
}, [T]), I(() => {
|
|
15590
|
-
|
|
15601
|
+
te.setState({
|
|
15591
15602
|
onReactFlowInit: S,
|
|
15592
15603
|
onPanelsChange: x,
|
|
15593
15604
|
onCodeExtension: C,
|
|
@@ -15603,22 +15614,22 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15603
15614
|
b,
|
|
15604
15615
|
E
|
|
15605
15616
|
]), I(() => {
|
|
15606
|
-
|
|
15617
|
+
te.setState({ onChange: re });
|
|
15607
15618
|
}, [re]), I(() => {
|
|
15608
|
-
n === void 0 || a || D.current && !(0, Sc.default)(n,
|
|
15619
|
+
n === void 0 || a || D.current && !(0, Sc.default)(n, k) && ee.setDecisionGraph(n);
|
|
15609
15620
|
}, [n, a]), I(() => {
|
|
15610
|
-
n === void 0 ? t !== void 0 &&
|
|
15621
|
+
n === void 0 ? t !== void 0 && ee.setDecisionGraph(t) : ee.setDecisionGraph(a ? C_(n, a, {
|
|
15611
15622
|
customNodes: c ?? [],
|
|
15612
15623
|
components: s ?? []
|
|
15613
|
-
}) : n),
|
|
15624
|
+
}) : n), O.setState({
|
|
15614
15625
|
activePanel: f,
|
|
15615
15626
|
hideLeftToolbar: p
|
|
15616
15627
|
}), D.current = !0;
|
|
15617
15628
|
}, []), I(() => {
|
|
15618
|
-
n !== void 0 && (a ?
|
|
15629
|
+
n !== void 0 && (a ? ee.setDecisionGraph(C_(n, a, {
|
|
15619
15630
|
customNodes: c ?? [],
|
|
15620
15631
|
components: s ?? []
|
|
15621
|
-
})) : D.current &&
|
|
15632
|
+
})) : D.current && ee.setDecisionGraph(n));
|
|
15622
15633
|
}, [a]), null;
|
|
15623
15634
|
}, D_ = () => {
|
|
15624
15635
|
let e = null;
|
|
@@ -15925,7 +15936,7 @@ var N_ = M_({
|
|
|
15925
15936
|
className: "whitespace-nowrap rounded-sm border border-[var(--border)] bg-[var(--seal-color-bg-container)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]",
|
|
15926
15937
|
children: h
|
|
15927
15938
|
})
|
|
15928
|
-
}) : null,
|
|
15939
|
+
}) : null, ee = async (e) => {
|
|
15929
15940
|
S(!1);
|
|
15930
15941
|
let s = (v?.nodes ?? []).filter((t) => e.type === "customNode" ? t.content?.kind === e.component : t.type === e.type).length, c = [...Object.values(N_), ...y], l = e.type === "customNode" ? c.find((t) => t.kind === e.component) : c.find((t) => t.type === e.type);
|
|
15931
15942
|
if (!l?.generateNode) return;
|
|
@@ -15981,7 +15992,7 @@ var N_ = M_({
|
|
|
15981
15992
|
children: C.map((e) => /* @__PURE__ */ W("button", {
|
|
15982
15993
|
type: "button",
|
|
15983
15994
|
className: "flex w-full items-center gap-2 rounded-sm px-2 py-1 text-left text-xs hover:bg-[var(--accent)]",
|
|
15984
|
-
onClick: () => void
|
|
15995
|
+
onClick: () => void ee(e),
|
|
15985
15996
|
children: [/* @__PURE__ */ U("span", {
|
|
15986
15997
|
className: "flex h-4 w-4 items-center justify-center",
|
|
15987
15998
|
children: e.icon
|
|
@@ -16199,24 +16210,24 @@ var N_ = M_({
|
|
|
16199
16210
|
let u = j.safeParse(l);
|
|
16200
16211
|
if (u.success) return i([j.parse(l)]);
|
|
16201
16212
|
B.error(u.error?.message);
|
|
16202
|
-
}, Z_ = ({ addNode: e, specifications: t }) => {
|
|
16203
|
-
let n = o(), r = nh(), { commandMenuOpen:
|
|
16213
|
+
}, Z_ = "seal.dg.command.recent", Q_ = ({ addNode: e, specifications: t }) => {
|
|
16214
|
+
let n = o(), r = Ca(), i = nh(), { commandMenuOpen: a, panels: s, activePanelId: c, nodes: l, extraCommands: u } = $(({ commandMenuOpen: e, panels: t, activePanel: n, decisionGraph: r, extraCommands: i }) => ({
|
|
16204
16215
|
commandMenuOpen: e,
|
|
16205
16216
|
panels: t ?? [],
|
|
16206
16217
|
extraCommands: i ?? [],
|
|
16207
16218
|
activePanelId: n,
|
|
16208
16219
|
nodes: (r.nodes ?? []).filter((e) => e.type !== "inputNode")
|
|
16209
|
-
})), [
|
|
16220
|
+
})), [d, f] = z("");
|
|
16210
16221
|
I(() => {
|
|
16211
16222
|
let e = (e) => {
|
|
16212
16223
|
if ((e.ctrlKey || e.metaKey) && e.code === "KeyK") {
|
|
16213
16224
|
if (e.target?.closest?.("input, textarea, select, [contenteditable], .cm-editor")) return;
|
|
16214
|
-
e.preventDefault(),
|
|
16225
|
+
e.preventDefault(), i.setCommandMenuOpen(!a);
|
|
16215
16226
|
}
|
|
16216
16227
|
};
|
|
16217
16228
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
16218
|
-
}, [
|
|
16219
|
-
let
|
|
16229
|
+
}, [a, i]);
|
|
16230
|
+
let p = L(() => {
|
|
16220
16231
|
let n = t.map((t) => {
|
|
16221
16232
|
let n = !("type" in t), r = n ? "customNode" : t.type, i = n ? t.kind : void 0;
|
|
16222
16233
|
return {
|
|
@@ -16229,25 +16240,25 @@ var N_ = M_({
|
|
|
16229
16240
|
e(r, void 0, i);
|
|
16230
16241
|
}
|
|
16231
16242
|
};
|
|
16232
|
-
}),
|
|
16243
|
+
}), r = s.map((e) => ({
|
|
16233
16244
|
id: `panel:${e.id}`,
|
|
16234
16245
|
group: "panel",
|
|
16235
16246
|
label: e.title,
|
|
16236
16247
|
icon: e.icon,
|
|
16237
16248
|
keywords: `panel ${e.title}`,
|
|
16238
|
-
run: () =>
|
|
16239
|
-
})),
|
|
16249
|
+
run: () => i.setActivePanel(c === e.id ? void 0 : e.id)
|
|
16250
|
+
})), a = l.map((e) => ({
|
|
16240
16251
|
id: `goto:${e.id}`,
|
|
16241
16252
|
group: "goto",
|
|
16242
16253
|
label: e.name ?? e.id,
|
|
16243
16254
|
icon: null,
|
|
16244
16255
|
keywords: `goto ${e.type ?? ""} ${e.name ?? ""}`,
|
|
16245
16256
|
run: () => {
|
|
16246
|
-
|
|
16257
|
+
i.goToNode(e.id), i.openTab(e.id);
|
|
16247
16258
|
}
|
|
16248
16259
|
}));
|
|
16249
16260
|
return [
|
|
16250
|
-
...
|
|
16261
|
+
...u.map((e) => ({
|
|
16251
16262
|
id: e.id,
|
|
16252
16263
|
group: e.group,
|
|
16253
16264
|
label: e.label,
|
|
@@ -16255,93 +16266,118 @@ var N_ = M_({
|
|
|
16255
16266
|
keywords: e.keywords,
|
|
16256
16267
|
run: e.run
|
|
16257
16268
|
})),
|
|
16258
|
-
...
|
|
16259
|
-
...
|
|
16269
|
+
...r,
|
|
16270
|
+
...a,
|
|
16260
16271
|
...n
|
|
16261
16272
|
];
|
|
16262
16273
|
}, [
|
|
16263
|
-
a,
|
|
16264
16274
|
s,
|
|
16265
16275
|
c,
|
|
16266
|
-
t,
|
|
16267
16276
|
l,
|
|
16277
|
+
t,
|
|
16278
|
+
u,
|
|
16268
16279
|
e,
|
|
16269
|
-
|
|
16270
|
-
]),
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
-
|
|
16280
|
+
i
|
|
16281
|
+
]), m = L(() => {
|
|
16282
|
+
if (!a) return [];
|
|
16283
|
+
try {
|
|
16284
|
+
return JSON.parse(window.localStorage.getItem(Z_) ?? "[]");
|
|
16285
|
+
} catch {
|
|
16286
|
+
return [];
|
|
16287
|
+
}
|
|
16288
|
+
}, [a]), h = L(() => {
|
|
16289
|
+
let e = d.trim().toLowerCase(), t = e || m.length === 0 ? p : [...m.map((e) => p.find((t) => t.id === e)).filter((e) => !!e), ...p.filter((e) => !m.includes(e.id))];
|
|
16290
|
+
return e ? t.filter((t) => `${t.label} ${t.keywords}`.toLowerCase().includes(e)) : t;
|
|
16291
|
+
}, [
|
|
16292
|
+
p,
|
|
16293
|
+
d,
|
|
16294
|
+
m
|
|
16295
|
+
]), [g, _] = z(0);
|
|
16296
|
+
I(() => {
|
|
16297
|
+
_(0);
|
|
16298
|
+
}, [d, a]);
|
|
16299
|
+
let v = R(null);
|
|
16300
|
+
I(() => {
|
|
16301
|
+
a && v.current?.querySelector("[data-command-active]")?.scrollIntoView?.({ block: "nearest" });
|
|
16302
|
+
}, [g, a]);
|
|
16303
|
+
let y = (e) => {
|
|
16304
|
+
i.setCommandMenuOpen(!1), f("");
|
|
16305
|
+
try {
|
|
16306
|
+
let t = JSON.parse(window.localStorage.getItem(Z_) ?? "[]"), n = [e.id, ...t.filter((t) => t !== e.id)].slice(0, 3);
|
|
16307
|
+
window.localStorage.setItem(Z_, JSON.stringify(n));
|
|
16308
|
+
} catch {}
|
|
16309
|
+
queueMicrotask(() => e.run());
|
|
16310
|
+
}, b = {
|
|
16274
16311
|
add: n("dg.command.groupAdd"),
|
|
16275
16312
|
panel: n("dg.command.groupPanels"),
|
|
16276
16313
|
goto: n("dg.command.groupNodes")
|
|
16277
16314
|
};
|
|
16278
|
-
return /* @__PURE__ */
|
|
16279
|
-
items:
|
|
16280
|
-
filteredItems:
|
|
16315
|
+
return /* @__PURE__ */ U(da.Root, {
|
|
16316
|
+
items: h,
|
|
16317
|
+
filteredItems: h,
|
|
16281
16318
|
filter: null,
|
|
16282
|
-
open:
|
|
16283
|
-
onOpenChange: (e) =>
|
|
16284
|
-
inputValue:
|
|
16285
|
-
onInputValueChange: (e) =>
|
|
16319
|
+
open: a,
|
|
16320
|
+
onOpenChange: (e) => i.setCommandMenuOpen(e),
|
|
16321
|
+
inputValue: d,
|
|
16322
|
+
onInputValueChange: (e) => f(e),
|
|
16286
16323
|
multiple: !1,
|
|
16287
16324
|
onValueChange: (e) => {
|
|
16288
|
-
let t = (Array.isArray(
|
|
16289
|
-
t && (
|
|
16325
|
+
let t = (Array.isArray(h) ? h : []).find((t) => t === e);
|
|
16326
|
+
t && y(t);
|
|
16290
16327
|
},
|
|
16291
|
-
children:
|
|
16292
|
-
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16326
|
-
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
children: n("dg.command.empty")
|
|
16328
|
+
children: /* @__PURE__ */ U(da.Portal, {
|
|
16329
|
+
container: r,
|
|
16330
|
+
children: /* @__PURE__ */ U(da.Positioner, {
|
|
16331
|
+
anchor: { getBoundingClientRect: () => new DOMRect(window.innerWidth / 2, 10, 0, 0) },
|
|
16332
|
+
side: "bottom",
|
|
16333
|
+
align: "center",
|
|
16334
|
+
sideOffset: 6,
|
|
16335
|
+
className: "z-50",
|
|
16336
|
+
children: /* @__PURE__ */ W(da.Popup, {
|
|
16337
|
+
"data-testid": "graph-command-menu",
|
|
16338
|
+
className: "z-50 w-[460px] max-w-[90vw] overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--card)] shadow-[0_16px_40px_rgba(0,0,0,0.18)]",
|
|
16339
|
+
children: [/* @__PURE__ */ U(da.Input, {
|
|
16340
|
+
"data-testid": "graph-command-input",
|
|
16341
|
+
onKeyDown: (e) => {
|
|
16342
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
16343
|
+
if (h.length === 0) return;
|
|
16344
|
+
e.preventDefault(), _((t) => e.key === "ArrowDown" ? (t + 1) % h.length : (t - 1 + h.length) % h.length);
|
|
16345
|
+
return;
|
|
16346
|
+
}
|
|
16347
|
+
e.key === "Enter" && h.length > 0 && (e.preventDefault(), y(h[Math.min(g, h.length - 1)]));
|
|
16348
|
+
},
|
|
16349
|
+
placeholder: n("dg.command.placeholder"),
|
|
16350
|
+
className: "h-10 w-full border-b border-[var(--border)] bg-transparent px-3 text-sm outline-none"
|
|
16351
|
+
}), /* @__PURE__ */ W(da.List, {
|
|
16352
|
+
ref: v,
|
|
16353
|
+
className: "max-h-[320px] overflow-y-auto p-1",
|
|
16354
|
+
children: [h.map((e, t) => /* @__PURE__ */ W(da.Item, {
|
|
16355
|
+
value: e,
|
|
16356
|
+
"data-testid": "graph-command-item",
|
|
16357
|
+
"data-command-active": t === g || void 0,
|
|
16358
|
+
onMouseMove: () => _(t),
|
|
16359
|
+
className: V("flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-xs outline-none", t === g && "bg-accent text-accent-foreground"),
|
|
16360
|
+
children: [
|
|
16361
|
+
e.icon,
|
|
16362
|
+
/* @__PURE__ */ U("span", {
|
|
16363
|
+
className: "min-w-0 flex-1 truncate",
|
|
16364
|
+
children: e.label
|
|
16365
|
+
}),
|
|
16366
|
+
/* @__PURE__ */ U("span", {
|
|
16367
|
+
className: "shrink-0 text-[10px] opacity-50",
|
|
16368
|
+
children: b[e.group]
|
|
16369
|
+
})
|
|
16370
|
+
]
|
|
16371
|
+
}, e.id)), h.length === 0 && /* @__PURE__ */ U("div", {
|
|
16372
|
+
className: "px-3 py-6 text-center text-xs opacity-50",
|
|
16373
|
+
children: n("dg.command.empty")
|
|
16374
|
+
})]
|
|
16339
16375
|
})]
|
|
16340
|
-
})
|
|
16376
|
+
})
|
|
16341
16377
|
})
|
|
16342
|
-
})
|
|
16378
|
+
})
|
|
16343
16379
|
});
|
|
16344
|
-
},
|
|
16380
|
+
}, $_ = (e, t) => {
|
|
16345
16381
|
let n = t.trim().toLowerCase();
|
|
16346
16382
|
if (!n) return null;
|
|
16347
16383
|
if ([
|
|
@@ -16352,7 +16388,7 @@ var N_ = M_({
|
|
|
16352
16388
|
].filter(Boolean).some((e) => String(e).toLowerCase().includes(n))) return [];
|
|
16353
16389
|
let r = (e.searchKeywords ?? []).filter((e) => e.toLowerCase().includes(n));
|
|
16354
16390
|
return r.length > 0 ? r : null;
|
|
16355
|
-
},
|
|
16391
|
+
}, ev = P.memo(({ inputDisabled: e, disabled: t, collapsed: n }) => {
|
|
16356
16392
|
let r = $((e) => e.components || []), i = $((e) => e.customNodes || []), [a, o] = z(""), s = F((e, t, n) => {
|
|
16357
16393
|
let r = e.target;
|
|
16358
16394
|
if (!r) return;
|
|
@@ -16383,9 +16419,9 @@ var N_ = M_({
|
|
|
16383
16419
|
}), e;
|
|
16384
16420
|
}, [r, i]), l = L(() => Object.keys(c).reduce((e, t) => ({
|
|
16385
16421
|
...e,
|
|
16386
|
-
[t]: (c[t] || []).filter((e) => !(a?.trim?.().length > 0) ||
|
|
16387
|
-
}), {}), [c, a]), u = r.length + i.length;
|
|
16388
|
-
return /* @__PURE__ */ W("div", { children: [
|
|
16422
|
+
[t]: (c[t] || []).filter((e) => !(a?.trim?.().length > 0) || $_(e, a) !== null)
|
|
16423
|
+
}), {}), [c, a]), u = r.length + i.length, d = (c.core?.length ?? 0) + u;
|
|
16424
|
+
return /* @__PURE__ */ W("div", { children: [d > 5 && /* @__PURE__ */ U(Do, {
|
|
16389
16425
|
placeholder: "Search components...",
|
|
16390
16426
|
value: a,
|
|
16391
16427
|
onChange: (e) => o(e.target.value || ""),
|
|
@@ -16394,8 +16430,8 @@ var N_ = M_({
|
|
|
16394
16430
|
}), /* @__PURE__ */ U("div", {
|
|
16395
16431
|
className: "flex grow flex-col",
|
|
16396
16432
|
children: Object.keys(l).map((r) => q(r).with("core", () => l.core?.length > 0 && /* @__PURE__ */ U(P.Fragment, { children: (l.core || []).map((r) => {
|
|
16397
|
-
let i = a?.trim?.() ?
|
|
16398
|
-
return /* @__PURE__ */ U(P.Fragment, { children: /* @__PURE__ */ U(
|
|
16433
|
+
let i = a?.trim?.() ? $_(r, a) : null;
|
|
16434
|
+
return /* @__PURE__ */ U(P.Fragment, { children: /* @__PURE__ */ U(nv, {
|
|
16399
16435
|
collapsed: n,
|
|
16400
16436
|
disabled: q(r.type).with(Q.Input, () => t || e).otherwise(() => t),
|
|
16401
16437
|
specification: r,
|
|
@@ -16403,8 +16439,8 @@ var N_ = M_({
|
|
|
16403
16439
|
onDragStart: (e) => N_[r.type] === void 0 ? s(e, "customNode", "kind" in r ? r.kind : "") : s(e, r.type)
|
|
16404
16440
|
}) }, "kind" in r ? r.kind : r.type);
|
|
16405
16441
|
}) }, r)).otherwise((e) => l[e]?.length > 0 && /* @__PURE__ */ U(P.Fragment, { children: (l?.[e] || []).map((r) => {
|
|
16406
|
-
let i = a?.trim?.() ?
|
|
16407
|
-
return /* @__PURE__ */ U(
|
|
16442
|
+
let i = a?.trim?.() ? $_(r, a) : null;
|
|
16443
|
+
return /* @__PURE__ */ U(nv, {
|
|
16408
16444
|
collapsed: n,
|
|
16409
16445
|
disabled: t,
|
|
16410
16446
|
specification: r,
|
|
@@ -16413,7 +16449,7 @@ var N_ = M_({
|
|
|
16413
16449
|
}, "kind" in r ? r.kind : r.type);
|
|
16414
16450
|
}) }, e)))
|
|
16415
16451
|
})] });
|
|
16416
|
-
}),
|
|
16452
|
+
}), tv = {
|
|
16417
16453
|
reference: {
|
|
16418
16454
|
label: "REF",
|
|
16419
16455
|
title: "Reference domain — ships with zen-udf"
|
|
@@ -16426,8 +16462,8 @@ var N_ = M_({
|
|
|
16426
16462
|
label: "IND",
|
|
16427
16463
|
title: "Industry pack (proprietary)"
|
|
16428
16464
|
}
|
|
16429
|
-
},
|
|
16430
|
-
let a = e.meta ?
|
|
16465
|
+
}, nv = ({ specification: e, matchedKeywords: t, disabled: n = !1, collapsed: r, ...i }) => {
|
|
16466
|
+
let a = e.meta ? tv[e.meta.origin] : void 0;
|
|
16431
16467
|
return /* @__PURE__ */ W("div", {
|
|
16432
16468
|
className: V("draggable-component relative cursor-grab [transform:translate(0)]"),
|
|
16433
16469
|
draggable: !n,
|
|
@@ -16448,7 +16484,7 @@ var N_ = M_({
|
|
|
16448
16484
|
})
|
|
16449
16485
|
})]
|
|
16450
16486
|
});
|
|
16451
|
-
},
|
|
16487
|
+
}, rv = () => {
|
|
16452
16488
|
let e = o(), [t, n] = P.useState(null), [r, i] = P.useState(!1), a = $(({ customNodes: e }) => e);
|
|
16453
16489
|
if ($i({ onChange: ({ nodes: e }) => {
|
|
16454
16490
|
let t = e[e.length - 1];
|
|
@@ -16513,7 +16549,7 @@ var N_ = M_({
|
|
|
16513
16549
|
})]
|
|
16514
16550
|
})
|
|
16515
16551
|
}) : null;
|
|
16516
|
-
},
|
|
16552
|
+
}, iv = [
|
|
16517
16553
|
"[--xy-background-color:transparent]",
|
|
16518
16554
|
"[--xy-background-pattern-color:var(--border)]",
|
|
16519
16555
|
"[--xy-edge-stroke:color-mix(in_oklab,var(--muted-foreground)_45%,transparent)]",
|
|
@@ -16537,13 +16573,13 @@ var N_ = M_({
|
|
|
16537
16573
|
"[--xy-selection-background-color:color-mix(in_oklab,var(--primary)_8%,transparent)]",
|
|
16538
16574
|
"[--xy-selection-border:1px_dashed_var(--primary)]",
|
|
16539
16575
|
"[--xy-attribution-background-color:transparent]"
|
|
16540
|
-
].join(" "),
|
|
16576
|
+
].join(" "), av = null, ov = () => av ??= Object.entries(N_).reduce((e, [t, n]) => ({
|
|
16541
16577
|
...e,
|
|
16542
16578
|
[t]: P.memo((e) => n.renderNode({
|
|
16543
16579
|
specification: n,
|
|
16544
16580
|
...e
|
|
16545
16581
|
}), (e, t) => e.id === t.id && e.selected === t.selected && ua(e.data, t.data))
|
|
16546
|
-
}), {}),
|
|
16582
|
+
}), {}), sv = { edge: P.memo(W_(null)) }, cv = Fe(function({ reactFlowProOptions: e, className: t }, n) {
|
|
16547
16583
|
let r = R(null), i = R(null), a = Qi([]), s = Zi([]), [c, l] = z(() => localStorage.getItem("jdm-components-opened") ? localStorage.getItem(J_) === "true" : (localStorage.setItem(J_, "true"), !0)), u = R(void 0), d = rh(), f = ch(), p = nh(), m = th((e) => e), { onReactFlowInit: h } = eh(({ onReactFlowInit: e }) => ({ onReactFlowInit: e })), { modal: g } = Va.useApp(), { disabled: _, hasInputNode: v, components: y, customNodes: b, id: x } = $(({ id: e, disabled: t, components: n, customNodes: r, decisionGraph: i }) => ({
|
|
16548
16584
|
id: e,
|
|
16549
16585
|
disabled: t,
|
|
@@ -16588,7 +16624,7 @@ var N_ = M_({
|
|
|
16588
16624
|
...e
|
|
16589
16625
|
}), (e, t) => e.id === t.id && e.selected === t.selected && ua(e.data, t.data))
|
|
16590
16626
|
}), {
|
|
16591
|
-
...
|
|
16627
|
+
...ov(),
|
|
16592
16628
|
customNode: S
|
|
16593
16629
|
}), [y, S]), w = X_({
|
|
16594
16630
|
reactFlowWrapper: r,
|
|
@@ -16678,7 +16714,7 @@ var N_ = M_({
|
|
|
16678
16714
|
}
|
|
16679
16715
|
},
|
|
16680
16716
|
children: /* @__PURE__ */ U("div", {
|
|
16681
|
-
className: V(["react-flow"],
|
|
16717
|
+
className: V(["react-flow"], iv),
|
|
16682
16718
|
ref: r,
|
|
16683
16719
|
children: /* @__PURE__ */ W(Gi, {
|
|
16684
16720
|
deleteKeyCode: null,
|
|
@@ -16699,7 +16735,7 @@ var N_ = M_({
|
|
|
16699
16735
|
minZoom: .25,
|
|
16700
16736
|
selectionMode: qi.Partial,
|
|
16701
16737
|
nodeTypes: C,
|
|
16702
|
-
edgeTypes:
|
|
16738
|
+
edgeTypes: sv,
|
|
16703
16739
|
onDrop: E,
|
|
16704
16740
|
onDragOver: D,
|
|
16705
16741
|
onConnect: (e) => {
|
|
@@ -16742,7 +16778,7 @@ var N_ = M_({
|
|
|
16742
16778
|
color: "var(--border)",
|
|
16743
16779
|
gap: 20
|
|
16744
16780
|
}),
|
|
16745
|
-
/* @__PURE__ */ U(
|
|
16781
|
+
/* @__PURE__ */ U(rv, {})
|
|
16746
16782
|
]
|
|
16747
16783
|
})
|
|
16748
16784
|
})
|
|
@@ -16779,7 +16815,7 @@ var N_ = M_({
|
|
|
16779
16815
|
}
|
|
16780
16816
|
})]
|
|
16781
16817
|
}),
|
|
16782
|
-
/* @__PURE__ */ U(
|
|
16818
|
+
/* @__PURE__ */ U(Q_, {
|
|
16783
16819
|
addNode: w,
|
|
16784
16820
|
specifications: [
|
|
16785
16821
|
...Object.values(N_),
|
|
@@ -16789,7 +16825,7 @@ var N_ = M_({
|
|
|
16789
16825
|
}),
|
|
16790
16826
|
/* @__PURE__ */ U("div", {
|
|
16791
16827
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
16792
|
-
children: /* @__PURE__ */ U(
|
|
16828
|
+
children: /* @__PURE__ */ U(ev, {
|
|
16793
16829
|
inputDisabled: v,
|
|
16794
16830
|
collapsed: !c,
|
|
16795
16831
|
disabled: _
|
|
@@ -16799,7 +16835,7 @@ var N_ = M_({
|
|
|
16799
16835
|
})]
|
|
16800
16836
|
})
|
|
16801
16837
|
});
|
|
16802
|
-
}), { Title:
|
|
16838
|
+
}), { Title: lv, Text: uv } = Z, dv = P.memo(({ className: e }) => {
|
|
16803
16839
|
let t = o(), { decisionGraph: n, customComponents: r, viewConfig: i, viewConfigCta: a } = $((e) => ({
|
|
16804
16840
|
decisionGraph: e.decisionGraph || [],
|
|
16805
16841
|
customComponents: e.components,
|
|
@@ -16838,14 +16874,14 @@ var N_ = M_({
|
|
|
16838
16874
|
icon: t?.icon
|
|
16839
16875
|
}), /* @__PURE__ */ W("div", {
|
|
16840
16876
|
style: { flex: 1 },
|
|
16841
|
-
children: [/* @__PURE__ */ U(
|
|
16877
|
+
children: [/* @__PURE__ */ U(uv, {
|
|
16842
16878
|
style: {
|
|
16843
16879
|
margin: 0,
|
|
16844
16880
|
fontSize: 14,
|
|
16845
16881
|
marginBottom: e?.description ? "4px" : 0
|
|
16846
16882
|
},
|
|
16847
16883
|
children: e.name
|
|
16848
|
-
}), e?.description && /* @__PURE__ */ U(
|
|
16884
|
+
}), e?.description && /* @__PURE__ */ U(uv, {
|
|
16849
16885
|
type: "secondary",
|
|
16850
16886
|
style: { fontSize: "14px" },
|
|
16851
16887
|
children: e?.description
|
|
@@ -16880,7 +16916,7 @@ var N_ = M_({
|
|
|
16880
16916
|
className: "mb-8",
|
|
16881
16917
|
children: [/* @__PURE__ */ W("div", {
|
|
16882
16918
|
className: "flex justify-between",
|
|
16883
|
-
children: [/* @__PURE__ */ U(
|
|
16919
|
+
children: [/* @__PURE__ */ U(lv, {
|
|
16884
16920
|
level: 4,
|
|
16885
16921
|
style: {
|
|
16886
16922
|
margin: 0,
|
|
@@ -16894,13 +16930,13 @@ var N_ = M_({
|
|
|
16894
16930
|
},
|
|
16895
16931
|
children: a
|
|
16896
16932
|
})]
|
|
16897
|
-
}), m ? /* @__PURE__ */ U(H, { children: n?.nodes?.length > 0 ? /* @__PURE__ */ U(
|
|
16933
|
+
}), m ? /* @__PURE__ */ U(H, { children: n?.nodes?.length > 0 ? /* @__PURE__ */ U(uv, {
|
|
16898
16934
|
type: "secondary",
|
|
16899
16935
|
children: "This decision model contains multiple components, but no view has been configured yet."
|
|
16900
|
-
}) : /* @__PURE__ */ U(
|
|
16936
|
+
}) : /* @__PURE__ */ U(uv, {
|
|
16901
16937
|
type: "secondary",
|
|
16902
16938
|
children: "This decision model doesn't contain any component."
|
|
16903
|
-
}) }) : /* @__PURE__ */ U(
|
|
16939
|
+
}) }) : /* @__PURE__ */ U(uv, {
|
|
16904
16940
|
type: "secondary",
|
|
16905
16941
|
children: i?.description || "Configure business rules for your decision model"
|
|
16906
16942
|
})]
|
|
@@ -16919,7 +16955,7 @@ var N_ = M_({
|
|
|
16919
16955
|
icon: /* @__PURE__ */ U($c, {}),
|
|
16920
16956
|
onClick: () => d(""),
|
|
16921
16957
|
children: "Clear"
|
|
16922
|
-
})] }), /* @__PURE__ */ W(
|
|
16958
|
+
})] }), /* @__PURE__ */ W(uv, {
|
|
16923
16959
|
type: "secondary",
|
|
16924
16960
|
style: { whiteSpace: "nowrap" },
|
|
16925
16961
|
children: [l?.length || 0, " configurable items"]
|
|
@@ -16927,7 +16963,7 @@ var N_ = M_({
|
|
|
16927
16963
|
}),
|
|
16928
16964
|
p.filter((e) => e?.nodes?.length > 0).map((e) => /* @__PURE__ */ W("div", {
|
|
16929
16965
|
className: "mb-8",
|
|
16930
|
-
children: [/* @__PURE__ */ U(
|
|
16966
|
+
children: [/* @__PURE__ */ U(lv, {
|
|
16931
16967
|
level: 5,
|
|
16932
16968
|
style: { marginBottom: "16px" },
|
|
16933
16969
|
children: e.title
|
|
@@ -16939,7 +16975,7 @@ var N_ = M_({
|
|
|
16939
16975
|
]
|
|
16940
16976
|
})
|
|
16941
16977
|
});
|
|
16942
|
-
}),
|
|
16978
|
+
}), fv = (e, t) => e.id === t.id || e.value?.toLowerCase() === t.value?.toLowerCase() || e.label?.toLowerCase() === t.label?.toLowerCase(), pv = (e, t) => t ? {
|
|
16943
16979
|
id: e.id,
|
|
16944
16980
|
label: e.label || t.label,
|
|
16945
16981
|
value: e.value || t.value,
|
|
@@ -16947,14 +16983,14 @@ var N_ = M_({
|
|
|
16947
16983
|
} : {
|
|
16948
16984
|
...e,
|
|
16949
16985
|
value: e.value || e.label
|
|
16950
|
-
},
|
|
16951
|
-
let n = [...t.map((t) =>
|
|
16986
|
+
}, mv = (e, t) => {
|
|
16987
|
+
let n = [...t.map((t) => pv(t, e.find((e) => fv(e, t)))), ...e.filter((e) => !t.some((t) => fv(t, e)))];
|
|
16952
16988
|
return n.some((e) => e.id === "_description") || n.push({
|
|
16953
16989
|
id: "_description",
|
|
16954
16990
|
label: "DESCRIPTION",
|
|
16955
16991
|
value: "description"
|
|
16956
16992
|
}), n;
|
|
16957
|
-
},
|
|
16993
|
+
}, hv = (e) => e.reduce((t, n, r) => {
|
|
16958
16994
|
let i = e.some((e) => e.value === "description"), a = e.slice(0, r).some((e) => e.type === "output"), o;
|
|
16959
16995
|
return o = i ? r === e.length - 2 && !a : r === e.length - 1 && n.value !== "description" && !a, {
|
|
16960
16996
|
...t,
|
|
@@ -16965,7 +17001,7 @@ var N_ = M_({
|
|
|
16965
17001
|
type: o ? "output" : n.type
|
|
16966
17002
|
}
|
|
16967
17003
|
};
|
|
16968
|
-
}, {}),
|
|
17004
|
+
}, {}), gv = (e, t, n) => Object.keys(t).map((r, i) => {
|
|
16969
17005
|
let a = t[r], o = n[r] || {}, s = Object.keys(a).map((e) => ({
|
|
16970
17006
|
...a[e],
|
|
16971
17007
|
wrapInQuotes: o[e] || !1,
|
|
@@ -16987,7 +17023,7 @@ var N_ = M_({
|
|
|
16987
17023
|
passThrough: e[i].existingTableData.passThrough,
|
|
16988
17024
|
executionMode: e[i].existingTableData.executionMode
|
|
16989
17025
|
};
|
|
16990
|
-
}),
|
|
17026
|
+
}), _v = {
|
|
16991
17027
|
input: {
|
|
16992
17028
|
label: "Input",
|
|
16993
17029
|
color: "var(--seal-color-field-input)"
|
|
@@ -16996,7 +17032,7 @@ var N_ = M_({
|
|
|
16996
17032
|
label: "Output",
|
|
16997
17033
|
color: "var(--seal-color-field-output)"
|
|
16998
17034
|
}
|
|
16999
|
-
},
|
|
17035
|
+
}, vv = (e) => `step${e}`, yv = ({ excelData: e, handleSuccess: t, handleCancel: n }) => {
|
|
17000
17036
|
let r = o(), i = Zu(), [a, s] = z(0), c = L(() => e?.map((e) => ({
|
|
17001
17037
|
key: e.id,
|
|
17002
17038
|
title: e.name
|
|
@@ -17016,13 +17052,13 @@ var N_ = M_({
|
|
|
17016
17052
|
value: e.id === "_description" ? "description" : e.value,
|
|
17017
17053
|
label: e.name,
|
|
17018
17054
|
...e.id !== "_description" && { type: e._type }
|
|
17019
|
-
})), r =
|
|
17055
|
+
})), r = mv(t, n);
|
|
17020
17056
|
u(r);
|
|
17021
17057
|
let i = r.filter((e) => n.some((t) => t.id === e.id));
|
|
17022
17058
|
if (i.length) {
|
|
17023
|
-
let e =
|
|
17059
|
+
let e = hv(i);
|
|
17024
17060
|
g((t) => {
|
|
17025
|
-
let n =
|
|
17061
|
+
let n = vv(a);
|
|
17026
17062
|
return (t || {})[n] ? t : {
|
|
17027
17063
|
...t || {},
|
|
17028
17064
|
[n]: e
|
|
@@ -17030,7 +17066,7 @@ var N_ = M_({
|
|
|
17030
17066
|
});
|
|
17031
17067
|
}
|
|
17032
17068
|
}, [e, a]);
|
|
17033
|
-
let _ = e?.[a]?.headers ?? [], v = h?.[
|
|
17069
|
+
let _ = e?.[a]?.headers ?? [], v = h?.[vv(a)], y = P.useMemo(() => [
|
|
17034
17070
|
{
|
|
17035
17071
|
id: "excel",
|
|
17036
17072
|
header: "Excel columns",
|
|
@@ -17058,7 +17094,7 @@ var N_ = M_({
|
|
|
17058
17094
|
value: v?.[t.id]?.value,
|
|
17059
17095
|
allowClear: !0,
|
|
17060
17096
|
onClear: () => {
|
|
17061
|
-
let e =
|
|
17097
|
+
let e = vv(a);
|
|
17062
17098
|
g((n) => {
|
|
17063
17099
|
let r = { ...(n || {})[e] };
|
|
17064
17100
|
return delete r[t.id], {
|
|
@@ -17066,7 +17102,7 @@ var N_ = M_({
|
|
|
17066
17102
|
[e]: r
|
|
17067
17103
|
};
|
|
17068
17104
|
}), m((e) => {
|
|
17069
|
-
let n =
|
|
17105
|
+
let n = vv(a), r = { ...e[n] };
|
|
17070
17106
|
return delete r[t.id], {
|
|
17071
17107
|
...e,
|
|
17072
17108
|
[n]: r
|
|
@@ -17076,7 +17112,7 @@ var N_ = M_({
|
|
|
17076
17112
|
onSelect: (e, n) => {
|
|
17077
17113
|
let { id: r, label: i, value: o, type: s, wrapInQuotes: c } = n;
|
|
17078
17114
|
g((e) => {
|
|
17079
|
-
let n =
|
|
17115
|
+
let n = vv(a), l = { ...(e || {})[n] }, u = [];
|
|
17080
17116
|
return Object.keys(l).forEach((e) => {
|
|
17081
17117
|
e !== t.id && (l[e].value === o || l[e].label === i) && (u.push(e), delete l[e]);
|
|
17082
17118
|
}), u.length > 0 && m((e) => {
|
|
@@ -17154,8 +17190,8 @@ var N_ = M_({
|
|
|
17154
17190
|
alignItems: "center"
|
|
17155
17191
|
},
|
|
17156
17192
|
children: [/* @__PURE__ */ U("span", { children: e.data.label }), t && /* @__PURE__ */ U(ys, {
|
|
17157
|
-
style: { background:
|
|
17158
|
-
children:
|
|
17193
|
+
style: { background: _v[t].color },
|
|
17194
|
+
children: _v[t].label
|
|
17159
17195
|
})]
|
|
17160
17196
|
});
|
|
17161
17197
|
},
|
|
@@ -17189,7 +17225,7 @@ var N_ = M_({
|
|
|
17189
17225
|
value: v?.[t.id]?.type ?? "input",
|
|
17190
17226
|
onChange: (e) => {
|
|
17191
17227
|
g((n) => {
|
|
17192
|
-
let r =
|
|
17228
|
+
let r = vv(a), i = (n || {})[r];
|
|
17193
17229
|
return {
|
|
17194
17230
|
...n || {},
|
|
17195
17231
|
[r]: {
|
|
@@ -17244,10 +17280,10 @@ var N_ = M_({
|
|
|
17244
17280
|
},
|
|
17245
17281
|
children: /* @__PURE__ */ U(Wa, {
|
|
17246
17282
|
disabled: !v?.[t.id],
|
|
17247
|
-
checked: p[
|
|
17283
|
+
checked: p[vv(a)]?.[t.id] || !1,
|
|
17248
17284
|
onChange: (e) => {
|
|
17249
17285
|
m((n) => {
|
|
17250
|
-
let r =
|
|
17286
|
+
let r = vv(a);
|
|
17251
17287
|
return {
|
|
17252
17288
|
...n,
|
|
17253
17289
|
[r]: {
|
|
@@ -17319,7 +17355,7 @@ var N_ = M_({
|
|
|
17319
17355
|
children: [
|
|
17320
17356
|
a < (e || []).length - 1 && /* @__PURE__ */ U(Y, {
|
|
17321
17357
|
type: "primary",
|
|
17322
|
-
disabled: !h?.[
|
|
17358
|
+
disabled: !h?.[vv(a)] || yi(h[vv(a)]),
|
|
17323
17359
|
onClick: () => {
|
|
17324
17360
|
s(a + 1);
|
|
17325
17361
|
},
|
|
@@ -17327,9 +17363,9 @@ var N_ = M_({
|
|
|
17327
17363
|
}),
|
|
17328
17364
|
a === (e || []).length - 1 && /* @__PURE__ */ U(Y, {
|
|
17329
17365
|
type: "primary",
|
|
17330
|
-
disabled: !h?.[
|
|
17366
|
+
disabled: !h?.[vv(a)] || yi(h[vv(a)]),
|
|
17331
17367
|
onClick: () => {
|
|
17332
|
-
h && e && t(
|
|
17368
|
+
h && e && t(gv(e, h, p));
|
|
17333
17369
|
},
|
|
17334
17370
|
children: "Done"
|
|
17335
17371
|
}),
|
|
@@ -17344,7 +17380,7 @@ var N_ = M_({
|
|
|
17344
17380
|
})
|
|
17345
17381
|
]
|
|
17346
17382
|
});
|
|
17347
|
-
},
|
|
17383
|
+
}, bv = "application/vnd.gorules.decision", xv = () => {
|
|
17348
17384
|
let e = o(), t = rh(), n = R(null), r = R(null), [i, a] = z(), { setDecisionGraph: s, setActivePanel: c, setCommandMenuOpen: l, autoLayout: u } = nh(), { disabled: d, panels: f, activePanel: p, viewConfig: m, commandMenuOpen: h } = $(({ disabled: e, panels: t, activePanel: n, viewConfig: r, commandMenuOpen: i }) => ({
|
|
17349
17385
|
disabled: e,
|
|
17350
17386
|
panels: t,
|
|
@@ -17356,7 +17392,7 @@ var N_ = M_({
|
|
|
17356
17392
|
n.onload = function(e) {
|
|
17357
17393
|
try {
|
|
17358
17394
|
let t = JSON.parse(e?.target?.result);
|
|
17359
|
-
if (t?.contentType !==
|
|
17395
|
+
if (t?.contentType !== bv) throw Error("Invalid content type");
|
|
17360
17396
|
let n = Array.isArray(t?.nodes) ? t.nodes : [], r = n.map((e) => e.id), i = t.edges.filter((e) => r.includes(e?.targetId) && r.includes(e?.sourceId)), a = Se.safeParse({
|
|
17361
17397
|
nodes: n,
|
|
17362
17398
|
edges: i,
|
|
@@ -17448,7 +17484,7 @@ var N_ = M_({
|
|
|
17448
17484
|
}, y = async () => {
|
|
17449
17485
|
try {
|
|
17450
17486
|
let { name: e, decisionGraph: n } = t.stateStore.getState(), r = `${e.replaceAll(".json", "")}.json`, i = JSON.stringify({
|
|
17451
|
-
contentType:
|
|
17487
|
+
contentType: bv,
|
|
17452
17488
|
nodes: n.nodes,
|
|
17453
17489
|
edges: n.edges
|
|
17454
17490
|
}, null, 2), a = new Blob([i], { type: "application/json" }), o = URL.createObjectURL(a), s = window.document.createElement("a");
|
|
@@ -17581,14 +17617,14 @@ var N_ = M_({
|
|
|
17581
17617
|
})]
|
|
17582
17618
|
})
|
|
17583
17619
|
]
|
|
17584
|
-
}), /* @__PURE__ */ U(
|
|
17620
|
+
}), /* @__PURE__ */ U(yv, {
|
|
17585
17621
|
excelData: i,
|
|
17586
17622
|
handleSuccess: v,
|
|
17587
17623
|
handleCancel: () => {
|
|
17588
17624
|
a(null);
|
|
17589
17625
|
}
|
|
17590
17626
|
})] });
|
|
17591
|
-
},
|
|
17627
|
+
}, Sv = ({ disabled: e, tabBarExtraContent: t }) => {
|
|
17592
17628
|
let n = nh(), { openNodes: r, activeNodeId: i, viewConfig: a } = $(({ decisionGraph: e, activeTab: t, openTabs: n, viewConfig: r }) => ({
|
|
17593
17629
|
activeNodeId: (e?.nodes ?? []).find((e) => e.id === t)?.id,
|
|
17594
17630
|
openNodes: (n || []).map((t) => {
|
|
@@ -17603,7 +17639,7 @@ var N_ = M_({
|
|
|
17603
17639
|
viewConfig: r
|
|
17604
17640
|
})), o = L(() => [{
|
|
17605
17641
|
key: "graph",
|
|
17606
|
-
label: /* @__PURE__ */ U(
|
|
17642
|
+
label: /* @__PURE__ */ U(Cv, {
|
|
17607
17643
|
total: r?.length,
|
|
17608
17644
|
icon: a?.enabled ? /* @__PURE__ */ U(Jt, {}) : /* @__PURE__ */ U(Ht, {}),
|
|
17609
17645
|
name: a?.enabled ? "Nodes" : "Graph",
|
|
@@ -17626,7 +17662,7 @@ var N_ = M_({
|
|
|
17626
17662
|
return {
|
|
17627
17663
|
disabled: e,
|
|
17628
17664
|
key: t.id,
|
|
17629
|
-
label: /* @__PURE__ */ U(
|
|
17665
|
+
label: /* @__PURE__ */ U(Cv, {
|
|
17630
17666
|
onContextClick: (e) => {
|
|
17631
17667
|
n.closeTab(t.id, e);
|
|
17632
17668
|
},
|
|
@@ -17642,7 +17678,7 @@ var N_ = M_({
|
|
|
17642
17678
|
};
|
|
17643
17679
|
})]
|
|
17644
17680
|
}) });
|
|
17645
|
-
},
|
|
17681
|
+
}, Cv = ({ total: e = 0, index: t = -1, icon: n, name: r, active: i, diffStatus: a, color: s = Wh.Blue, onClose: c, onContextClick: l }) => {
|
|
17646
17682
|
let u = o(), d = [
|
|
17647
17683
|
e > 0 && t !== -1 && {
|
|
17648
17684
|
key: "close",
|
|
@@ -17714,7 +17750,7 @@ var N_ = M_({
|
|
|
17714
17750
|
trigger: ["contextMenu"],
|
|
17715
17751
|
children: f
|
|
17716
17752
|
});
|
|
17717
|
-
},
|
|
17753
|
+
}, wv = Ge([
|
|
17718
17754
|
"relative w-full text-sm border has-[>svg]:grid-cols-[calc(var(--spacing)*3)_1fr] grid-cols-[0_1fr] grid gap-y-0.5 items-center [&>svg:not([class*=size-])]:size-4",
|
|
17719
17755
|
"has-[>[data-slot=alert-title]+[data-slot=alert-description]]:items-start",
|
|
17720
17756
|
"has-[>[data-slot=alert-title]+[data-slot=alert-description]]:[&_svg]:translate-y-0.5",
|
|
@@ -17727,22 +17763,22 @@ var N_ = M_({
|
|
|
17727
17763
|
} },
|
|
17728
17764
|
defaultVariants: { variant: "default" }
|
|
17729
17765
|
});
|
|
17730
|
-
function
|
|
17766
|
+
function Tv({ className: e, variant: t, ...n }) {
|
|
17731
17767
|
return /* @__PURE__ */ U("div", {
|
|
17732
17768
|
"data-slot": "alert",
|
|
17733
17769
|
role: "alert",
|
|
17734
|
-
className: r(
|
|
17770
|
+
className: r(wv({ variant: t }), e),
|
|
17735
17771
|
...n
|
|
17736
17772
|
});
|
|
17737
17773
|
}
|
|
17738
|
-
function
|
|
17774
|
+
function Ev({ className: e, ...t }) {
|
|
17739
17775
|
return /* @__PURE__ */ U("div", {
|
|
17740
17776
|
"data-slot": "alert-title",
|
|
17741
17777
|
className: r("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
|
|
17742
17778
|
...t
|
|
17743
17779
|
});
|
|
17744
17780
|
}
|
|
17745
|
-
function
|
|
17781
|
+
function Dv({ className: e, ...t }) {
|
|
17746
17782
|
return /* @__PURE__ */ U("div", {
|
|
17747
17783
|
"data-slot": "alert-action",
|
|
17748
17784
|
className: r("flex gap-1.5 max-sm:col-start-2 max-sm:mt-2 max-sm:justify-start sm:col-start-3 sm:row-start-1 sm:justify-end sm:self-center", e),
|
|
@@ -17751,28 +17787,28 @@ function Ev({ className: e, ...t }) {
|
|
|
17751
17787
|
}
|
|
17752
17788
|
//#endregion
|
|
17753
17789
|
//#region src/helpers/custom-function-schema.ts
|
|
17754
|
-
var
|
|
17790
|
+
var Ov = (e) => typeof e == "object" && !!e && !Array.isArray(e), kv = {}, Av = (e) => !e || typeof e != "object" || Array.isArray(e) ? kv : e, jv = (e, t) => ({
|
|
17755
17791
|
...e,
|
|
17756
17792
|
namespace: e?.namespace ?? t,
|
|
17757
|
-
returns:
|
|
17758
|
-
}),
|
|
17793
|
+
returns: Av(e?.returns)
|
|
17794
|
+
}), Mv = (e) => Array.isArray(e) ? e.flatMap((e) => Array.isArray(e?.tools) ? e.tools.map((t) => jv(t, e?.name)) : e?.name ? [jv(e)] : []) : [], Nv = (e) => Array.isArray(e) || typeof e == "string" && e.includes(";;"), Pv = (e) => e?.type === "function" || Nv(e?.value), Fv = (e) => {
|
|
17759
17795
|
if (Array.isArray(e)) return e[0]?.trim() || null;
|
|
17760
17796
|
if (typeof e != "string" || !e.trim()) return null;
|
|
17761
17797
|
let [t] = Nm(e);
|
|
17762
17798
|
return t?.trim() || null;
|
|
17763
|
-
},
|
|
17764
|
-
if (
|
|
17765
|
-
let n =
|
|
17799
|
+
}, Iv = (e, t) => {
|
|
17800
|
+
if (Ov(e)) return null;
|
|
17801
|
+
let n = Fv(e);
|
|
17766
17802
|
if (!n) return null;
|
|
17767
|
-
let r = Array.isArray(e) ? e.slice(1) : typeof e == "string" && e.includes(";;") ? Nm(e).slice(1) : [], i = t &&
|
|
17803
|
+
let r = Array.isArray(e) ? e.slice(1) : typeof e == "string" && e.includes(";;") ? Nm(e).slice(1) : [], i = t && Ov(t.parameters) && Ov(t.parameters.properties) ? t.parameters.properties : {}, a = Object.keys(i), o = {};
|
|
17768
17804
|
return r.forEach((e, t) => {
|
|
17769
17805
|
o[a[t] ?? `arg${t + 1}`] = e;
|
|
17770
17806
|
}), {
|
|
17771
17807
|
$call: n,
|
|
17772
17808
|
kwargs: o
|
|
17773
17809
|
};
|
|
17774
|
-
},
|
|
17775
|
-
let n = Array.isArray(t) ? t.filter(Boolean) : [], r =
|
|
17810
|
+
}, Lv = (e, t) => {
|
|
17811
|
+
let n = Array.isArray(t) ? t.filter(Boolean) : [], r = Mv(n);
|
|
17776
17812
|
if (!e) return {
|
|
17777
17813
|
mode: "free",
|
|
17778
17814
|
functions: r
|
|
@@ -17784,40 +17820,40 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17784
17820
|
let i = n.find((t) => t?.name === e);
|
|
17785
17821
|
return i ? {
|
|
17786
17822
|
mode: "scoped",
|
|
17787
|
-
functions:
|
|
17823
|
+
functions: Mv([i])
|
|
17788
17824
|
} : {
|
|
17789
17825
|
mode: "free",
|
|
17790
17826
|
functions: r,
|
|
17791
17827
|
orphanKind: e
|
|
17792
17828
|
};
|
|
17793
|
-
},
|
|
17794
|
-
if (
|
|
17829
|
+
}, Rv = (e) => {
|
|
17830
|
+
if (Ov(e)) return e.mode === "literal" ? typeof e.value == "string" ? "string" : typeof e.value : null;
|
|
17795
17831
|
if (typeof e != "string") return null;
|
|
17796
17832
|
let t = e.trim();
|
|
17797
17833
|
return /^-?\d+(\.\d+)?$/.test(t) ? "number" : t === "true" || t === "false" ? "boolean" : /^".*"$/.test(t) || /^'.*'$/.test(t) ? "string" : t.startsWith("{") || t.startsWith("[") ? "object" : null;
|
|
17798
|
-
},
|
|
17834
|
+
}, zv = (e, t) => e === t || e === "integer" && t === "number" || e === "number" && t === "integer", Bv = (e, t) => {
|
|
17799
17835
|
if (e && e.mode === "scoped" && t) return e.functions.find((e) => e?.name === t);
|
|
17800
|
-
},
|
|
17836
|
+
}, Vv = (e, t) => {
|
|
17801
17837
|
if (!t || t.mode !== "scoped" || !Array.isArray(e)) return [];
|
|
17802
17838
|
let n = [];
|
|
17803
17839
|
return e.forEach((r) => {
|
|
17804
|
-
if (
|
|
17805
|
-
let i =
|
|
17840
|
+
if (Ov(r.value) && typeof r.value.$call == "string") {
|
|
17841
|
+
let i = Bv(t, r.value.$call);
|
|
17806
17842
|
if (!i) return;
|
|
17807
|
-
let a =
|
|
17843
|
+
let a = Ov(i.parameters) ? i.parameters.properties ?? {} : {}, o = Object.keys(a), s = Ov(r.value.kwargs) ? r.value.kwargs : {}, c = o.filter((e) => !(e in s)).map((e) => ({
|
|
17808
17844
|
name: e,
|
|
17809
17845
|
default: a[e]?.default
|
|
17810
17846
|
})), l = Object.keys(s).filter((e) => !o.includes(e) && e !== "$positional"), u = "kwargs" in a, d = [];
|
|
17811
17847
|
o.forEach((e) => {
|
|
17812
|
-
let t = String(a[e]?.type ?? ""), n =
|
|
17813
|
-
n === null || t === "" ||
|
|
17848
|
+
let t = String(a[e]?.type ?? ""), n = Rv(s[e]);
|
|
17849
|
+
n === null || t === "" || zv(t, n) || d.push({
|
|
17814
17850
|
name: e,
|
|
17815
17851
|
declaredType: t,
|
|
17816
17852
|
actual: n
|
|
17817
17853
|
});
|
|
17818
17854
|
});
|
|
17819
17855
|
let f = /* @__PURE__ */ new Set();
|
|
17820
|
-
|
|
17856
|
+
$v(r.value, f);
|
|
17821
17857
|
let p = new Set(e.map((e) => e?.key).filter(Boolean)), m = [...f].filter((e) => !p.has(e)).sort();
|
|
17822
17858
|
(c.length > 0 || l.length > 0 || d.length > 0 || u || m.length > 0) && n.push({
|
|
17823
17859
|
rowId: r.id,
|
|
@@ -17831,12 +17867,12 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17831
17867
|
});
|
|
17832
17868
|
return;
|
|
17833
17869
|
}
|
|
17834
|
-
if (!
|
|
17835
|
-
let i =
|
|
17870
|
+
if (!Pv(r)) return;
|
|
17871
|
+
let i = Fv(r.value);
|
|
17836
17872
|
if (!i) return;
|
|
17837
|
-
let a =
|
|
17873
|
+
let a = Bv(t, i);
|
|
17838
17874
|
if (!a) return;
|
|
17839
|
-
let o =
|
|
17875
|
+
let o = Ov(a.parameters) ? a.parameters.properties ?? {} : {}, s = Object.keys(o), c = Ov(r.arg_exprs) ? r.arg_exprs : null, l = Array.isArray(r.value) ? r.value.slice(1) : [];
|
|
17840
17876
|
if (c) {
|
|
17841
17877
|
let e = Object.keys(c), t = s.filter((t) => !e.includes(t)).map((e) => ({
|
|
17842
17878
|
name: e,
|
|
@@ -17863,12 +17899,12 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17863
17899
|
unrecognized: []
|
|
17864
17900
|
});
|
|
17865
17901
|
}), n;
|
|
17866
|
-
},
|
|
17902
|
+
}, Hv = (e) => typeof e == "string" ? e.trim().startsWith("$.") : Ov(e) && typeof e.value == "string" ? (e.mode === "expression" || e.mode === "reference") && e.value.trim().startsWith("$.") : !1, Uv = (e) => {
|
|
17867
17903
|
if (!Array.isArray(e)) return [];
|
|
17868
17904
|
let t = [];
|
|
17869
17905
|
for (let n of e) {
|
|
17870
|
-
if (!
|
|
17871
|
-
let e =
|
|
17906
|
+
if (!Ov(n) || !Ov(n.value) || n.value.$call === void 0) continue;
|
|
17907
|
+
let e = Ov(n.value.kwargs) ? n.value.kwargs : {}, r = Object.entries(e).filter(([, e]) => Hv(e)).map(([e]) => e);
|
|
17872
17908
|
r.length > 0 && t.push({
|
|
17873
17909
|
rowId: String(n.id ?? ""),
|
|
17874
17910
|
rowKey: String(n.key ?? ""),
|
|
@@ -17876,16 +17912,16 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17876
17912
|
});
|
|
17877
17913
|
}
|
|
17878
17914
|
return t;
|
|
17879
|
-
},
|
|
17880
|
-
let n = new Set((t ??
|
|
17915
|
+
}, Wv = (e, t) => {
|
|
17916
|
+
let n = new Set((t ?? Uv(e)).map((e) => e.rowId));
|
|
17881
17917
|
if (n.size === 0) return null;
|
|
17882
|
-
let r = (e) => typeof e == "string" && e.trim().startsWith("$.") ? e.replace(/^\$\./, "") :
|
|
17918
|
+
let r = (e) => typeof e == "string" && e.trim().startsWith("$.") ? e.replace(/^\$\./, "") : Ov(e) && typeof e.value == "string" && (e.mode === "expression" || e.mode === "reference") && e.value.trim().startsWith("$.") ? {
|
|
17883
17919
|
...e,
|
|
17884
17920
|
value: String(e.value).replace(/^\$\./, "")
|
|
17885
17921
|
} : e, i = !1, a = e.map((e) => {
|
|
17886
|
-
if (!
|
|
17922
|
+
if (!Ov(e) || !n.has(String(e?.id ?? ""))) return e;
|
|
17887
17923
|
let t = e?.value;
|
|
17888
|
-
return !
|
|
17924
|
+
return !Ov(t) || !Ov(t.kwargs) ? e : (i = !0, {
|
|
17889
17925
|
...e,
|
|
17890
17926
|
value: {
|
|
17891
17927
|
...t,
|
|
@@ -17894,30 +17930,30 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17894
17930
|
});
|
|
17895
17931
|
});
|
|
17896
17932
|
return i ? a : null;
|
|
17897
|
-
},
|
|
17933
|
+
}, Gv = (e, t, n) => {
|
|
17898
17934
|
if (!n || n.mode !== "scoped" || !Array.isArray(e) || !Array.isArray(t) || t.length === 0) return null;
|
|
17899
17935
|
let r = new Map(t.filter((e) => e.missing.length > 0).map((e) => [e.rowId, e]));
|
|
17900
17936
|
if (r.size === 0) return null;
|
|
17901
17937
|
let i = !1, a = e.map((e) => {
|
|
17902
17938
|
let t = r.get(e?.id);
|
|
17903
17939
|
if (!t) return e;
|
|
17904
|
-
let a =
|
|
17940
|
+
let a = Bv(n, t.functionName), o = a && Ov(a.parameters) ? a.parameters.properties ?? {} : {}, s = a ? Object.keys(o) : [];
|
|
17905
17941
|
if (s.length === 0) return e;
|
|
17906
|
-
let c =
|
|
17942
|
+
let c = Ov(e.arg_exprs) ? { ...e.arg_exprs } : {}, l = Array.isArray(e.value) ? e.value.slice(1) : [];
|
|
17907
17943
|
return s.forEach((e, t) => {
|
|
17908
17944
|
if (e in c) return;
|
|
17909
17945
|
let n = l[t];
|
|
17910
17946
|
c[e] = n === void 0 ? o[e]?.default ?? "" : n, i = !0;
|
|
17911
|
-
}), i ||= s.some((t) => !Object.keys(
|
|
17947
|
+
}), i ||= s.some((t) => !Object.keys(Ov(e.arg_exprs) ? e.arg_exprs : {}).includes(t)), {
|
|
17912
17948
|
...e,
|
|
17913
17949
|
arg_exprs: c,
|
|
17914
17950
|
value: [t.functionName, ...s.map((e) => c[e] ?? "")]
|
|
17915
17951
|
};
|
|
17916
17952
|
});
|
|
17917
17953
|
return i ? a : null;
|
|
17918
|
-
},
|
|
17954
|
+
}, Kv = (e) => e && Ov(e.parameters) && Ov(e.parameters.properties) ? Object.keys(e.parameters.properties) : [], qv = (e, t, n) => {
|
|
17919
17955
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
17920
|
-
let r =
|
|
17956
|
+
let r = Kv(t), i = String(e[0] ?? "").trim();
|
|
17921
17957
|
if (!i) return null;
|
|
17922
17958
|
let a = { ...n ?? {} };
|
|
17923
17959
|
r.forEach((t, n) => {
|
|
@@ -17928,15 +17964,15 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17928
17964
|
$call: i,
|
|
17929
17965
|
kwargs: a
|
|
17930
17966
|
};
|
|
17931
|
-
},
|
|
17967
|
+
}, Jv = (e, t) => {
|
|
17932
17968
|
let n = (e.fn ?? "").localeCompare(t.fn ?? "");
|
|
17933
17969
|
return n === 0 ? e.key.localeCompare(t.key) : n;
|
|
17934
|
-
},
|
|
17970
|
+
}, Yv = (e, t) => {
|
|
17935
17971
|
if (!Array.isArray(e)) return [];
|
|
17936
17972
|
let n = /* @__PURE__ */ new Map();
|
|
17937
17973
|
return e.map((e) => {
|
|
17938
17974
|
let t = null;
|
|
17939
|
-
|
|
17975
|
+
Ov(e?.value) ? (t = typeof e.value.$call == "string" ? e.value.$call : null, Ov(e.value.kwargs) && e.value.kwargs) : Pv(e) && (t = Fv(e.value));
|
|
17940
17976
|
let r = 1;
|
|
17941
17977
|
t && (r = (n.get(t) ?? 0) + 1, n.set(t, r));
|
|
17942
17978
|
let i = {
|
|
@@ -17945,16 +17981,16 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17945
17981
|
key: String(e?.key ?? ""),
|
|
17946
17982
|
seq: t ? r : 1
|
|
17947
17983
|
};
|
|
17948
|
-
return
|
|
17949
|
-
}).sort(
|
|
17950
|
-
},
|
|
17984
|
+
return Ov(e) && Array.isArray(e.dependsOn) && (i.dependsOn = e.dependsOn.map(String)), i;
|
|
17985
|
+
}).sort(Jv);
|
|
17986
|
+
}, Xv = (e) => {
|
|
17951
17987
|
if (!Array.isArray(e)) return [];
|
|
17952
17988
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
17953
17989
|
return e.forEach((e) => {
|
|
17954
17990
|
let r = String(e?.key ?? "").trim();
|
|
17955
17991
|
r && (t.has(r) && n.add(r), t.add(r));
|
|
17956
17992
|
}), [...n];
|
|
17957
|
-
},
|
|
17993
|
+
}, Zv = (e) => {
|
|
17958
17994
|
let t = {};
|
|
17959
17995
|
return e.forEach((e) => {
|
|
17960
17996
|
let n = t[e.rowId] ?? {
|
|
@@ -17966,20 +18002,20 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
17966
18002
|
unrecognized: n.unrecognized + e.unrecognized.length
|
|
17967
18003
|
};
|
|
17968
18004
|
}), t;
|
|
17969
|
-
},
|
|
18005
|
+
}, Qv = (e, t) => {
|
|
17970
18006
|
let n = /\$\.([A-Za-z_][A-Za-z0-9_.]*)/g, r;
|
|
17971
18007
|
for (; (r = n.exec(e)) !== null;) t.add(r[1].split(".")[0]);
|
|
17972
|
-
},
|
|
18008
|
+
}, $v = (e, t) => {
|
|
17973
18009
|
if (typeof e == "string") {
|
|
17974
|
-
|
|
18010
|
+
Qv(e, t);
|
|
17975
18011
|
return;
|
|
17976
18012
|
}
|
|
17977
18013
|
if (Array.isArray(e)) {
|
|
17978
|
-
for (let n of e)
|
|
18014
|
+
for (let n of e) $v(n, t);
|
|
17979
18015
|
return;
|
|
17980
18016
|
}
|
|
17981
|
-
if (
|
|
17982
|
-
},
|
|
18017
|
+
if (Ov(e)) for (let n of Object.values(e)) $v(n, t);
|
|
18018
|
+
}, ey = (e) => {
|
|
17983
18019
|
if (!Array.isArray(e)) return {
|
|
17984
18020
|
ok: !0,
|
|
17985
18021
|
layers: [],
|
|
@@ -18004,8 +18040,8 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
18004
18040
|
let i = /* @__PURE__ */ new Map(), a = !1;
|
|
18005
18041
|
for (let [e, t] of r) {
|
|
18006
18042
|
let n = /* @__PURE__ */ new Set(), o = t?.value;
|
|
18007
|
-
if (
|
|
18008
|
-
else
|
|
18043
|
+
if (Ov(o) && Ov(o.kwargs)) for (let e of Object.values(o.kwargs)) $v(e, n);
|
|
18044
|
+
else $v(o, n);
|
|
18009
18045
|
for (let e of t?.dependsOn ?? []) n.add(e);
|
|
18010
18046
|
let s = new Set([...n].filter((e) => r.has(e)));
|
|
18011
18047
|
i.set(e, s), s.size > 0 && (a = !0);
|
|
@@ -18029,7 +18065,7 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
18029
18065
|
hasEdges: a,
|
|
18030
18066
|
depsByItem: l
|
|
18031
18067
|
};
|
|
18032
|
-
},
|
|
18068
|
+
}, ty = (e) => {
|
|
18033
18069
|
let t = {
|
|
18034
18070
|
danglingDependsOn: [],
|
|
18035
18071
|
declaredUnused: []
|
|
@@ -18040,8 +18076,8 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
18040
18076
|
let e = String(r?.key ?? ""), i = String(r?.id ?? ""), a = r?.dependsOn ?? [];
|
|
18041
18077
|
if (a.length === 0) continue;
|
|
18042
18078
|
let o = /* @__PURE__ */ new Set(), s = r?.value;
|
|
18043
|
-
if (
|
|
18044
|
-
else
|
|
18079
|
+
if (Ov(s) && Ov(s.kwargs)) for (let e of Object.values(s.kwargs)) $v(e, o);
|
|
18080
|
+
else $v(s, o);
|
|
18045
18081
|
for (let r of a) {
|
|
18046
18082
|
let a = String(r);
|
|
18047
18083
|
n.has(a) ? o.has(a) || t.declaredUnused.push({
|
|
@@ -18059,39 +18095,39 @@ var Dv = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ov = {}, kv =
|
|
|
18059
18095
|
};
|
|
18060
18096
|
//#endregion
|
|
18061
18097
|
//#region src/reui/empty.tsx
|
|
18062
|
-
function
|
|
18098
|
+
function ny({ className: e, ...t }) {
|
|
18063
18099
|
return /* @__PURE__ */ U("div", {
|
|
18064
18100
|
"data-slot": "empty",
|
|
18065
18101
|
className: r("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12", e),
|
|
18066
18102
|
...t
|
|
18067
18103
|
});
|
|
18068
18104
|
}
|
|
18069
|
-
var
|
|
18105
|
+
var ry = Ge("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
18070
18106
|
variants: { variant: {
|
|
18071
18107
|
default: "bg-transparent",
|
|
18072
18108
|
icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*=\"size-\"])]:size-6"
|
|
18073
18109
|
} },
|
|
18074
18110
|
defaultVariants: { variant: "default" }
|
|
18075
18111
|
});
|
|
18076
|
-
function
|
|
18112
|
+
function iy({ className: e, variant: t = "default", ...n }) {
|
|
18077
18113
|
return /* @__PURE__ */ U("div", {
|
|
18078
18114
|
"data-slot": "empty-icon",
|
|
18079
18115
|
"data-variant": t,
|
|
18080
|
-
className: r(
|
|
18116
|
+
className: r(ry({
|
|
18081
18117
|
variant: t,
|
|
18082
18118
|
className: e
|
|
18083
18119
|
})),
|
|
18084
18120
|
...n
|
|
18085
18121
|
});
|
|
18086
18122
|
}
|
|
18087
|
-
function
|
|
18123
|
+
function ay({ className: e, ...t }) {
|
|
18088
18124
|
return /* @__PURE__ */ U("div", {
|
|
18089
18125
|
"data-slot": "empty-title",
|
|
18090
18126
|
className: r("text-lg font-medium tracking-tight", e),
|
|
18091
18127
|
...t
|
|
18092
18128
|
});
|
|
18093
18129
|
}
|
|
18094
|
-
function
|
|
18130
|
+
function oy({ className: e, ...t }) {
|
|
18095
18131
|
return /* @__PURE__ */ U("div", {
|
|
18096
18132
|
"data-slot": "empty-content",
|
|
18097
18133
|
className: r("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance", e),
|
|
@@ -18100,7 +18136,7 @@ function ay({ className: e, ...t }) {
|
|
|
18100
18136
|
}
|
|
18101
18137
|
//#endregion
|
|
18102
18138
|
//#region src/components/decision-graph/graph/instance-editor.tsx
|
|
18103
|
-
var
|
|
18139
|
+
var sy = (e, t = 42) => {
|
|
18104
18140
|
let n;
|
|
18105
18141
|
try {
|
|
18106
18142
|
n = typeof e == "string" ? e : JSON.stringify(e) ?? "null";
|
|
@@ -18108,7 +18144,7 @@ var oy = (e, t = 42) => {
|
|
|
18108
18144
|
n = String(e);
|
|
18109
18145
|
}
|
|
18110
18146
|
return n.length > t ? `${n.slice(0, t)}…` : n;
|
|
18111
|
-
},
|
|
18147
|
+
}, cy = (e) => typeof e == "object" && !!e && !Array.isArray(e) && "error" in e, ly = ({ instances: e, functionScope: t, disabled: n, fieldPaths: r, driftByInstance: i, duplicateKeys: a, outputsByKey: s, schedule: c, onChange: l }) => {
|
|
18112
18148
|
let u = o(), [d, f] = z(null), p = t.functions, m = L(() => e.find((e) => e.id === d) ?? e[0] ?? null, [e, d]), h = L(() => p.map((e) => ({
|
|
18113
18149
|
value: e.name,
|
|
18114
18150
|
label: e.name
|
|
@@ -18133,17 +18169,17 @@ var oy = (e, t = 42) => {
|
|
|
18133
18169
|
}, y = m ? p.find((e) => e.name === m.call.$call) : void 0, b = t.orphanKind, x = !!m && !y, S = L(() => !m || !m.call.$call || h.some((e) => e.value === m.call.$call) ? h : [{
|
|
18134
18170
|
value: m.call.$call,
|
|
18135
18171
|
label: m.call.$call
|
|
18136
|
-
}, ...h], [h, m]), C = L(() => y ? Object.keys(y.parameters?.properties ?? {}) : [], [y]), w = L(() => new Set(y?.parameters?.required ?? []), [y]), T = m ? i?.[m.id] : void 0, E = m ? a?.includes(m.key) ?? !1 : !1, D = L(() =>
|
|
18172
|
+
}, ...h], [h, m]), C = L(() => y ? Object.keys(y.parameters?.properties ?? {}) : [], [y]), w = L(() => new Set(y?.parameters?.required ?? []), [y]), T = m ? i?.[m.id] : void 0, E = m ? a?.includes(m.key) ?? !1 : !1, D = L(() => ty(e), [e]), ee = L(() => m ? D.danglingDependsOn.filter((e) => e.instanceId === m.id) : [], [D, m]), O = L(() => m ? D.declaredUnused.filter((e) => e.instanceId === m.id) : [], [D, m]), te = L(() => {
|
|
18137
18173
|
if (!m) return [];
|
|
18138
18174
|
let t = new Set(m.dependsOn ?? []);
|
|
18139
18175
|
return e.filter((e) => e.id !== m.id && e.key && !t.has(e.key)).map((e) => ({
|
|
18140
18176
|
value: e.key,
|
|
18141
18177
|
label: e.key
|
|
18142
18178
|
}));
|
|
18143
|
-
}, [e, m]), [
|
|
18144
|
-
navigator.clipboard?.writeText(e).catch(() => {}),
|
|
18179
|
+
}, [e, m]), [k, ne] = z(null), [A, re] = z(null), j = (e) => {
|
|
18180
|
+
navigator.clipboard?.writeText(e).catch(() => {}), ne(e), window.setTimeout(() => ne((t) => t === e ? null : t), 1200);
|
|
18145
18181
|
}, M = (e) => {
|
|
18146
|
-
if (!m || !
|
|
18182
|
+
if (!m || !A) {
|
|
18147
18183
|
j(e);
|
|
18148
18184
|
return;
|
|
18149
18185
|
}
|
|
@@ -18151,7 +18187,7 @@ var oy = (e, t = 42) => {
|
|
|
18151
18187
|
...m.call,
|
|
18152
18188
|
kwargs: {
|
|
18153
18189
|
...m.call.kwargs,
|
|
18154
|
-
[
|
|
18190
|
+
[A]: {
|
|
18155
18191
|
mode: "expression",
|
|
18156
18192
|
value: e
|
|
18157
18193
|
}
|
|
@@ -18197,11 +18233,11 @@ var oy = (e, t = 42) => {
|
|
|
18197
18233
|
children: ["+ ", u("cf.addInstance")]
|
|
18198
18234
|
})]
|
|
18199
18235
|
}),
|
|
18200
|
-
c && !c.ok && c.error === "CYCLE_DETECTED" && /* @__PURE__ */ U(
|
|
18236
|
+
c && !c.ok && c.error === "CYCLE_DETECTED" && /* @__PURE__ */ U(Tv, {
|
|
18201
18237
|
variant: "destructive",
|
|
18202
18238
|
"data-testid": "instance-cycle-error",
|
|
18203
18239
|
className: "shrink-0 gap-x-2 rounded-none border-x-0 border-b-0 border-t px-2.5 py-1.5 text-[11px]",
|
|
18204
|
-
children: /* @__PURE__ */ U(
|
|
18240
|
+
children: /* @__PURE__ */ U(Ev, {
|
|
18205
18241
|
className: "font-normal leading-snug",
|
|
18206
18242
|
children: u("cf.scheduleCycleError", { keys: c.keys.join(" → ") })
|
|
18207
18243
|
})
|
|
@@ -18259,8 +18295,8 @@ var oy = (e, t = 42) => {
|
|
|
18259
18295
|
title: u("cf.lastRunHint"),
|
|
18260
18296
|
children: /* @__PURE__ */ W("span", {
|
|
18261
18297
|
"data-testid": "instance-result-chip",
|
|
18262
|
-
className: `max-w-24 truncate rounded px-1 font-mono text-[10px] ${
|
|
18263
|
-
children: [
|
|
18298
|
+
className: `max-w-24 truncate rounded px-1 font-mono text-[10px] ${cy(s[e.key]) ? "bg-destructive/10 text-destructive" : "bg-muted/70 text-muted-foreground"}`,
|
|
18299
|
+
children: [cy(s[e.key]) ? "⚠ " : "", sy(s[e.key], 24)]
|
|
18264
18300
|
})
|
|
18265
18301
|
}),
|
|
18266
18302
|
!n && /* @__PURE__ */ U("button", {
|
|
@@ -18276,13 +18312,13 @@ var oy = (e, t = 42) => {
|
|
|
18276
18312
|
]
|
|
18277
18313
|
})]
|
|
18278
18314
|
}, e.id);
|
|
18279
|
-
}), e.length === 0 && /* @__PURE__ */ W(
|
|
18315
|
+
}), e.length === 0 && /* @__PURE__ */ W(ny, {
|
|
18280
18316
|
className: "gap-1 border-0 p-3",
|
|
18281
|
-
children: [/* @__PURE__ */ U(
|
|
18317
|
+
children: [/* @__PURE__ */ U(iy, {
|
|
18282
18318
|
variant: "icon",
|
|
18283
18319
|
className: "size-7 rounded-md [&_svg:not([class*=size-])]:size-3.5",
|
|
18284
18320
|
children: /* @__PURE__ */ U(Jt, {})
|
|
18285
|
-
}), /* @__PURE__ */ U(
|
|
18321
|
+
}), /* @__PURE__ */ U(ay, {
|
|
18286
18322
|
className: "text-xs font-normal opacity-60",
|
|
18287
18323
|
children: u("cf.instanceEmpty")
|
|
18288
18324
|
})]
|
|
@@ -18327,6 +18363,17 @@ var oy = (e, t = 42) => {
|
|
|
18327
18363
|
className: "pl-[122px] text-[11px] leading-relaxed opacity-50",
|
|
18328
18364
|
children: y.description
|
|
18329
18365
|
}),
|
|
18366
|
+
y && typeof y.documentationUrl == "string" && y.documentationUrl && /* @__PURE__ */ U("div", {
|
|
18367
|
+
className: "pl-[122px]",
|
|
18368
|
+
children: /* @__PURE__ */ W("a", {
|
|
18369
|
+
href: y.documentationUrl,
|
|
18370
|
+
target: "_blank",
|
|
18371
|
+
rel: "noreferrer",
|
|
18372
|
+
"data-testid": "instance-documentation-link",
|
|
18373
|
+
className: "text-[11px] text-primary underline-offset-2 hover:underline",
|
|
18374
|
+
children: [u("cf.documentation"), " ↗"]
|
|
18375
|
+
})
|
|
18376
|
+
}),
|
|
18330
18377
|
/* @__PURE__ */ W("div", {
|
|
18331
18378
|
className: "grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2",
|
|
18332
18379
|
children: [/* @__PURE__ */ U(Z.Text, {
|
|
@@ -18358,7 +18405,7 @@ var oy = (e, t = 42) => {
|
|
|
18358
18405
|
className: "flex flex-wrap gap-1",
|
|
18359
18406
|
"data-testid": "instance-depends-on-tags",
|
|
18360
18407
|
children: m.dependsOn.map((e) => {
|
|
18361
|
-
let t =
|
|
18408
|
+
let t = ee.some((t) => t.dep === e);
|
|
18362
18409
|
return /* @__PURE__ */ W(ys, {
|
|
18363
18410
|
className: `border font-mono text-[10px] ${t ? "border-destructive/50 bg-destructive/10 text-destructive" : "border-border bg-muted/60"}`,
|
|
18364
18411
|
children: [e, !n && /* @__PURE__ */ U("button", {
|
|
@@ -18379,17 +18426,17 @@ var oy = (e, t = 42) => {
|
|
|
18379
18426
|
onChange: (e) => {
|
|
18380
18427
|
g(m.id, { dependsOn: [...m.dependsOn ?? [], e] });
|
|
18381
18428
|
},
|
|
18382
|
-
options:
|
|
18429
|
+
options: te
|
|
18383
18430
|
}),
|
|
18384
|
-
|
|
18431
|
+
ee.map((e) => /* @__PURE__ */ U(Z.Text, {
|
|
18385
18432
|
"data-testid": `instance-depends-on-dangling-${e.dep}`,
|
|
18386
18433
|
className: "text-[11px] text-destructive",
|
|
18387
18434
|
children: u("cf.dependsOnDangling", { dep: e.dep })
|
|
18388
18435
|
}, e.dep)),
|
|
18389
|
-
|
|
18436
|
+
O.length > 0 && /* @__PURE__ */ U(Z.Text, {
|
|
18390
18437
|
"data-testid": "instance-depends-on-unused",
|
|
18391
18438
|
className: "text-[11px] opacity-60",
|
|
18392
|
-
children: u("cf.dependsOnUnused", { deps:
|
|
18439
|
+
children: u("cf.dependsOnUnused", { deps: O.map((e) => e.dep).join(", ") })
|
|
18393
18440
|
})
|
|
18394
18441
|
]
|
|
18395
18442
|
})]
|
|
@@ -18412,11 +18459,11 @@ var oy = (e, t = 42) => {
|
|
|
18412
18459
|
className: "flex flex-wrap gap-1",
|
|
18413
18460
|
children: ie.map((e) => /* @__PURE__ */ W("button", {
|
|
18414
18461
|
type: "button",
|
|
18415
|
-
title:
|
|
18462
|
+
title: A ? u("cf.referenceInsert", { param: A }) : u("cf.referenceCopy"),
|
|
18416
18463
|
"data-testid": `reference-chip-${e.ref}`,
|
|
18417
18464
|
className: "cursor-pointer rounded-sm border border-border bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] hover:bg-muted/80",
|
|
18418
18465
|
onClick: () => M(e.ref),
|
|
18419
|
-
children: [e.ref,
|
|
18466
|
+
children: [e.ref, k === e.ref && /* @__PURE__ */ U("span", {
|
|
18420
18467
|
className: "ml-1 opacity-60",
|
|
18421
18468
|
children: u("cf.referenceCopied")
|
|
18422
18469
|
})]
|
|
@@ -18436,8 +18483,8 @@ var oy = (e, t = 42) => {
|
|
|
18436
18483
|
children: u("cf.lastRunHint")
|
|
18437
18484
|
})]
|
|
18438
18485
|
}), /* @__PURE__ */ U("pre", {
|
|
18439
|
-
className: `max-h-40 overflow-auto rounded-md border px-2.5 py-2 font-mono text-[11px] leading-relaxed ${
|
|
18440
|
-
children:
|
|
18486
|
+
className: `max-h-40 overflow-auto rounded-md border px-2.5 py-2 font-mono text-[11px] leading-relaxed ${cy(s[m.key]) ? "border-destructive/40 bg-destructive/10 text-destructive" : "border-border bg-muted/40"}`,
|
|
18487
|
+
children: sy(s[m.key], 2e3)
|
|
18441
18488
|
})]
|
|
18442
18489
|
}),
|
|
18443
18490
|
C.length > 0 && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U("div", {
|
|
@@ -18452,7 +18499,7 @@ var oy = (e, t = 42) => {
|
|
|
18452
18499
|
let t = y.parameters?.properties?.[e], i = typeof t?.type == "string" ? t.type : "string", a = Qf(m.call.kwargs[e]);
|
|
18453
18500
|
return /* @__PURE__ */ W("div", {
|
|
18454
18501
|
"data-testid": `param-row-${e}`,
|
|
18455
|
-
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md",
|
|
18502
|
+
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md", A === e && "bg-[var(--seal-color-warning-bg)]"),
|
|
18456
18503
|
onClick: () => re(e),
|
|
18457
18504
|
children: [/* @__PURE__ */ W("div", {
|
|
18458
18505
|
className: "flex min-w-0 items-center gap-1",
|
|
@@ -18509,18 +18556,18 @@ var oy = (e, t = 42) => {
|
|
|
18509
18556
|
]
|
|
18510
18557
|
})
|
|
18511
18558
|
]
|
|
18512
|
-
}) : /* @__PURE__ */ W(
|
|
18559
|
+
}) : /* @__PURE__ */ W(ny, {
|
|
18513
18560
|
className: "gap-2 border-0 p-6",
|
|
18514
18561
|
children: [
|
|
18515
|
-
/* @__PURE__ */ U(
|
|
18562
|
+
/* @__PURE__ */ U(iy, {
|
|
18516
18563
|
variant: "icon",
|
|
18517
18564
|
children: /* @__PURE__ */ U(hn, {})
|
|
18518
18565
|
}),
|
|
18519
|
-
/* @__PURE__ */ U(
|
|
18566
|
+
/* @__PURE__ */ U(ay, {
|
|
18520
18567
|
className: "text-sm font-normal opacity-70",
|
|
18521
18568
|
children: u("cf.selectInstance")
|
|
18522
18569
|
}),
|
|
18523
|
-
!n && /* @__PURE__ */ U(
|
|
18570
|
+
!n && /* @__PURE__ */ U(oy, { children: /* @__PURE__ */ W(Y, {
|
|
18524
18571
|
size: "small",
|
|
18525
18572
|
type: "link",
|
|
18526
18573
|
onClick: _,
|
|
@@ -18530,7 +18577,7 @@ var oy = (e, t = 42) => {
|
|
|
18530
18577
|
})
|
|
18531
18578
|
})]
|
|
18532
18579
|
});
|
|
18533
|
-
},
|
|
18580
|
+
}, uy = ({ id: e, user: t, customFunctions: n }) => {
|
|
18534
18581
|
let r = nh(), { disabled: i, content: a, inputContent: s, instanceOutputs: c } = $(({ simulate: t, disabled: n, decisionGraph: r }) => ({
|
|
18535
18582
|
disabled: n,
|
|
18536
18583
|
content: (r?.nodes ?? []).find((t) => t.id === e)?.content,
|
|
@@ -18539,9 +18586,9 @@ var oy = (e, t = 42) => {
|
|
|
18539
18586
|
let n = t.trace?.[e]?.output;
|
|
18540
18587
|
return n && typeof n == "object" ? n : void 0;
|
|
18541
18588
|
}).otherwise(() => void 0)
|
|
18542
|
-
})), l = L(() =>
|
|
18589
|
+
})), l = L(() => Lv(a?.kind, n), [a?.kind, n]), u = o(), f = a?.config?.expressions, p = L(() => Vv(f, l), [f, l]), m = p.length, h = p.reduce((e, t) => e + t.missing.length, 0), g = p.reduce((e, t) => e + t.unrecognized.length, 0), _ = p.filter((e) => e.kwargsKeyCollision).length, v = p.reduce((e, t) => e + (t.danglingRefs?.length ?? 0), 0), y = L(() => Xv(f), [f]), b = L(() => Yv(f, l), [f, l]), x = L(() => Zv(p), [p]), S = L(() => d(s).map((e) => e.path), [s]), C = L(() => Uv(f), [f]), w = L(() => C.reduce((e, t) => e + t.params.length, 0), [C]), T = L(() => ey(f), [f]), E = (n) => {
|
|
18543
18590
|
let i = new Map((f ?? []).map((e) => [e?.id, e])), a = (n ?? []).map((e) => {
|
|
18544
|
-
let t = Array.isArray(e?.value) ? e.value[0] : typeof e?.value?.$call == "string" ? e.value.$call : void 0, n = l.functions.find((e) => e?.name === t), r = i.get(e?.id)?.value, a = r && typeof r == "object" && !Array.isArray(r) ? r.kwargs ?? null : null, o =
|
|
18591
|
+
let t = Array.isArray(e?.value) ? e.value[0] : typeof e?.value?.$call == "string" ? e.value.$call : void 0, n = l.functions.find((e) => e?.name === t), r = i.get(e?.id)?.value, a = r && typeof r == "object" && !Array.isArray(r) ? r.kwargs ?? null : null, o = qv(e?.value, n, a);
|
|
18545
18592
|
return o ? {
|
|
18546
18593
|
...e,
|
|
18547
18594
|
value: o
|
|
@@ -18552,7 +18599,7 @@ var oy = (e, t = 42) => {
|
|
|
18552
18599
|
proj: t ?? ""
|
|
18553
18600
|
}, e));
|
|
18554
18601
|
}, D = L(() => (f ?? []).map((e) => {
|
|
18555
|
-
let t =
|
|
18602
|
+
let t = Fv(e?.value), n = l.functions.find((e) => e?.name === t), r = Iv(e?.value, n);
|
|
18556
18603
|
return {
|
|
18557
18604
|
id: e?.id ?? "",
|
|
18558
18605
|
key: e?.key ?? "",
|
|
@@ -18562,7 +18609,7 @@ var oy = (e, t = 42) => {
|
|
|
18562
18609
|
}),
|
|
18563
18610
|
...e?.dependsOn ? { dependsOn: e.dependsOn } : {}
|
|
18564
18611
|
};
|
|
18565
|
-
}), [f, l]),
|
|
18612
|
+
}), [f, l]), ee = (n) => {
|
|
18566
18613
|
r.updateNode(e, (e) => (e.content.config.expressions = n.map((e) => ({
|
|
18567
18614
|
id: e.id,
|
|
18568
18615
|
key: e.key,
|
|
@@ -18573,21 +18620,21 @@ var oy = (e, t = 42) => {
|
|
|
18573
18620
|
user: t ?? "",
|
|
18574
18621
|
proj: t ?? ""
|
|
18575
18622
|
}, e));
|
|
18576
|
-
}, [
|
|
18577
|
-
|
|
18623
|
+
}, [O, te] = z("table"), [k, ne] = z(null), [A, re] = z(null), j = () => {
|
|
18624
|
+
ne(JSON.stringify(f ?? [], null, 2)), re(null), te("code");
|
|
18578
18625
|
}, M = () => {
|
|
18579
|
-
if (
|
|
18580
|
-
let e = JSON.parse(
|
|
18626
|
+
if (k !== null) try {
|
|
18627
|
+
let e = JSON.parse(k);
|
|
18581
18628
|
if (!Array.isArray(e)) {
|
|
18582
18629
|
re("Expected an array");
|
|
18583
18630
|
return;
|
|
18584
18631
|
}
|
|
18585
|
-
|
|
18632
|
+
te("table"), re(null), E(e);
|
|
18586
18633
|
} catch {
|
|
18587
18634
|
re("Invalid JSON");
|
|
18588
18635
|
}
|
|
18589
18636
|
}, ie = () => {
|
|
18590
|
-
|
|
18637
|
+
te("table"), ne(null), re(null);
|
|
18591
18638
|
};
|
|
18592
18639
|
return /* @__PURE__ */ W("div", {
|
|
18593
18640
|
className: "flex h-full flex-col overflow-hidden",
|
|
@@ -18657,42 +18704,42 @@ var oy = (e, t = 42) => {
|
|
|
18657
18704
|
className: "flex items-center gap-1",
|
|
18658
18705
|
children: [/* @__PURE__ */ U(Y, {
|
|
18659
18706
|
size: "small",
|
|
18660
|
-
type:
|
|
18707
|
+
type: O === "table" ? "primary" : "default",
|
|
18661
18708
|
className: "!px-2",
|
|
18662
18709
|
onClick: () => ie(),
|
|
18663
18710
|
children: u("cf.modeTable")
|
|
18664
18711
|
}), /* @__PURE__ */ U(Y, {
|
|
18665
18712
|
size: "small",
|
|
18666
|
-
type:
|
|
18713
|
+
type: O === "code" ? "primary" : "default",
|
|
18667
18714
|
className: "!px-2",
|
|
18668
18715
|
onClick: j,
|
|
18669
18716
|
children: u("cf.modeCode")
|
|
18670
18717
|
})]
|
|
18671
18718
|
})
|
|
18672
18719
|
}),
|
|
18673
|
-
|
|
18720
|
+
O === "code" && /* @__PURE__ */ W("div", {
|
|
18674
18721
|
className: "mx-3 mt-2 flex min-h-[320px] flex-1 flex-col overflow-hidden rounded-md border border-border",
|
|
18675
18722
|
children: [/* @__PURE__ */ U("textarea", {
|
|
18676
18723
|
"data-testid": "function-code-editor",
|
|
18677
18724
|
className: "min-h-0 flex-1 resize-none bg-[var(--card)] p-3 font-mono text-xs text-foreground",
|
|
18678
|
-
value:
|
|
18679
|
-
onChange: (e) =>
|
|
18725
|
+
value: k ?? JSON.stringify(f ?? [], null, 2),
|
|
18726
|
+
onChange: (e) => ne(e.target.value),
|
|
18680
18727
|
onBlur: M,
|
|
18681
18728
|
disabled: i,
|
|
18682
18729
|
spellCheck: !1
|
|
18683
|
-
}),
|
|
18730
|
+
}), A && /* @__PURE__ */ U("div", {
|
|
18684
18731
|
className: "border-t border-destructive/40 bg-destructive/10 px-3 py-1 text-xs text-destructive",
|
|
18685
|
-
children:
|
|
18732
|
+
children: A
|
|
18686
18733
|
})]
|
|
18687
18734
|
}),
|
|
18688
|
-
|
|
18689
|
-
C.length > 0 && /* @__PURE__ */ W(
|
|
18735
|
+
O === "table" && /* @__PURE__ */ W(H, { children: [
|
|
18736
|
+
C.length > 0 && /* @__PURE__ */ W(Tv, {
|
|
18690
18737
|
variant: "warning",
|
|
18691
18738
|
"data-testid": "dollar-form-band",
|
|
18692
18739
|
className: "mx-3 mt-3 gap-x-2 px-3 py-1.5 text-xs",
|
|
18693
18740
|
children: [
|
|
18694
18741
|
/* @__PURE__ */ U(bn, {}),
|
|
18695
|
-
/* @__PURE__ */ W(
|
|
18742
|
+
/* @__PURE__ */ W(Ev, {
|
|
18696
18743
|
className: "font-normal leading-5",
|
|
18697
18744
|
children: [
|
|
18698
18745
|
u("cf.dollarFormBand"),
|
|
@@ -18706,27 +18753,27 @@ var oy = (e, t = 42) => {
|
|
|
18706
18753
|
u("cf.argsDriftUnrecognized")
|
|
18707
18754
|
]
|
|
18708
18755
|
}),
|
|
18709
|
-
/* @__PURE__ */ U(
|
|
18756
|
+
/* @__PURE__ */ U(Dv, { children: /* @__PURE__ */ U(Y, {
|
|
18710
18757
|
size: "small",
|
|
18711
18758
|
type: "link",
|
|
18712
18759
|
className: "!px-1",
|
|
18713
18760
|
disabled: i,
|
|
18714
18761
|
"data-testid": "dollar-form-migrate",
|
|
18715
18762
|
onClick: () => {
|
|
18716
|
-
let e =
|
|
18763
|
+
let e = Wv(f, C);
|
|
18717
18764
|
e && E(e);
|
|
18718
18765
|
},
|
|
18719
18766
|
children: u("cf.dollarFormMigrate")
|
|
18720
18767
|
}) })
|
|
18721
18768
|
]
|
|
18722
18769
|
}),
|
|
18723
|
-
m > 0 && /* @__PURE__ */ W(
|
|
18770
|
+
m > 0 && /* @__PURE__ */ W(Tv, {
|
|
18724
18771
|
variant: "warning",
|
|
18725
18772
|
"data-testid": "args-drift-band",
|
|
18726
18773
|
className: "mx-3 mt-3 gap-x-2 px-3 py-1.5 text-xs",
|
|
18727
18774
|
children: [
|
|
18728
18775
|
/* @__PURE__ */ U(bn, {}),
|
|
18729
|
-
/* @__PURE__ */ W(
|
|
18776
|
+
/* @__PURE__ */ W(Ev, {
|
|
18730
18777
|
className: "font-normal leading-5",
|
|
18731
18778
|
children: [
|
|
18732
18779
|
u("cf.argsDriftTitle"),
|
|
@@ -18758,13 +18805,13 @@ var oy = (e, t = 42) => {
|
|
|
18758
18805
|
] })
|
|
18759
18806
|
]
|
|
18760
18807
|
}),
|
|
18761
|
-
h > 0 && /* @__PURE__ */ U(
|
|
18808
|
+
h > 0 && /* @__PURE__ */ U(Dv, { children: /* @__PURE__ */ U(Y, {
|
|
18762
18809
|
size: "small",
|
|
18763
18810
|
type: "link",
|
|
18764
18811
|
className: "!px-1",
|
|
18765
18812
|
disabled: i,
|
|
18766
18813
|
onClick: () => {
|
|
18767
|
-
let e =
|
|
18814
|
+
let e = Gv(f, p, l);
|
|
18768
18815
|
e && E(e);
|
|
18769
18816
|
},
|
|
18770
18817
|
children: u("cf.argsFillMissing")
|
|
@@ -18774,7 +18821,7 @@ var oy = (e, t = 42) => {
|
|
|
18774
18821
|
/* @__PURE__ */ U("div", {
|
|
18775
18822
|
className: "flex min-h-0 flex-1 flex-col",
|
|
18776
18823
|
style: { paddingTop: m > 0 ? 8 : 0 },
|
|
18777
|
-
children: /* @__PURE__ */ U(
|
|
18824
|
+
children: /* @__PURE__ */ U(ly, {
|
|
18778
18825
|
instances: D,
|
|
18779
18826
|
functionScope: l,
|
|
18780
18827
|
disabled: i,
|
|
@@ -18783,13 +18830,13 @@ var oy = (e, t = 42) => {
|
|
|
18783
18830
|
duplicateKeys: y,
|
|
18784
18831
|
outputsByKey: c,
|
|
18785
18832
|
schedule: T,
|
|
18786
|
-
onChange:
|
|
18833
|
+
onChange: ee
|
|
18787
18834
|
})
|
|
18788
18835
|
})
|
|
18789
18836
|
] })
|
|
18790
18837
|
]
|
|
18791
18838
|
});
|
|
18792
|
-
},
|
|
18839
|
+
}, dy = (e) => {
|
|
18793
18840
|
let t = [];
|
|
18794
18841
|
for (let n of e) {
|
|
18795
18842
|
let e = n.group ?? "", r = t.find((t) => t.group === e);
|
|
@@ -18802,10 +18849,10 @@ var oy = (e, t = 42) => {
|
|
|
18802
18849
|
item: e,
|
|
18803
18850
|
index: t
|
|
18804
18851
|
})).sort((e, t) => (e.item.order ?? 0) - (t.item.order ?? 0) || e.index - t.index).map(({ item: e }) => e));
|
|
18805
|
-
},
|
|
18852
|
+
}, fy = ({ item: e, disabled: t }) => /* @__PURE__ */ U(H, { children: e.render({ disabled: t }) }), py = ({ items: e }) => {
|
|
18806
18853
|
let { disabled: t = !1 } = $(({ disabled: e }) => ({ disabled: e }));
|
|
18807
18854
|
if (!e || e.length === 0) return null;
|
|
18808
|
-
let n =
|
|
18855
|
+
let n = dy(e), r = [];
|
|
18809
18856
|
for (let e of n) r.includes(e.group ?? "") || r.push(e.group ?? "");
|
|
18810
18857
|
return /* @__PURE__ */ U("div", {
|
|
18811
18858
|
"aria-label": "toolbar-items",
|
|
@@ -18816,13 +18863,13 @@ var oy = (e, t = 42) => {
|
|
|
18816
18863
|
}), n.filter((t) => (t.group ?? "") === e).map((e) => /* @__PURE__ */ U(vc, {
|
|
18817
18864
|
fallback: null,
|
|
18818
18865
|
onError: (t) => console.error(`[seal-editor] toolbar item "${e.id}" crashed:`, t),
|
|
18819
|
-
children: /* @__PURE__ */ U(
|
|
18866
|
+
children: /* @__PURE__ */ U(fy, {
|
|
18820
18867
|
item: e,
|
|
18821
18868
|
disabled: t
|
|
18822
18869
|
})
|
|
18823
18870
|
}, e.id))] }, e || `__anonymous_${r}`))
|
|
18824
18871
|
});
|
|
18825
|
-
},
|
|
18872
|
+
}, my = ({ userResolver: e }) => {
|
|
18826
18873
|
let { stateStore: t } = rh();
|
|
18827
18874
|
return I(() => {
|
|
18828
18875
|
if (!e) return;
|
|
@@ -18838,35 +18885,35 @@ var oy = (e, t = 42) => {
|
|
|
18838
18885
|
n = !0;
|
|
18839
18886
|
};
|
|
18840
18887
|
}, [e]), null;
|
|
18841
|
-
},
|
|
18888
|
+
}, hy = P.memo(Fe(function({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, customFunctions: i }, a) {
|
|
18842
18889
|
let [o, s] = z(!1), { hasActiveNode: c, viewConfig: l, hideLeftToolbar: u } = $(({ decisionGraph: e, activeTab: t, viewConfig: n, hideLeftToolbar: r }) => ({
|
|
18843
18890
|
hasActiveNode: (e?.nodes ?? []).some((e) => e.id === t),
|
|
18844
18891
|
viewConfig: n,
|
|
18845
18892
|
hideLeftToolbar: r
|
|
18846
|
-
})), d = n && n.length > 0 ? /* @__PURE__ */ W(H, { children: [t, /* @__PURE__ */ U(
|
|
18893
|
+
})), d = n && n.length > 0 ? /* @__PURE__ */ W(H, { children: [t, /* @__PURE__ */ U(py, { items: n })] }) : t;
|
|
18847
18894
|
return /* @__PURE__ */ W(H, { children: [
|
|
18848
|
-
/* @__PURE__ */ U(
|
|
18849
|
-
!u && /* @__PURE__ */ U(
|
|
18895
|
+
/* @__PURE__ */ U(my, { userResolver: r }),
|
|
18896
|
+
!u && /* @__PURE__ */ U(xv, {}),
|
|
18850
18897
|
/* @__PURE__ */ W("div", {
|
|
18851
18898
|
className: "[grid-area:graph] flex flex-1 flex-col gap-1 overflow-hidden bg-white",
|
|
18852
18899
|
children: [
|
|
18853
|
-
/* @__PURE__ */ U(
|
|
18900
|
+
/* @__PURE__ */ U(Sv, {
|
|
18854
18901
|
disabled: o,
|
|
18855
18902
|
tabBarExtraContent: d
|
|
18856
18903
|
}),
|
|
18857
|
-
/* @__PURE__ */ U(
|
|
18904
|
+
/* @__PURE__ */ U(cv, {
|
|
18858
18905
|
ref: a,
|
|
18859
18906
|
className: V([!c && !l?.enabled && "flex flex-col", c && "hidden"]),
|
|
18860
18907
|
reactFlowProOptions: e,
|
|
18861
18908
|
onDisableTabs: s
|
|
18862
18909
|
}),
|
|
18863
|
-
/* @__PURE__ */ U(
|
|
18864
|
-
/* @__PURE__ */ U(
|
|
18910
|
+
/* @__PURE__ */ U(dv, { className: V([!c && l?.enabled && "flex flex-col"]) }),
|
|
18911
|
+
/* @__PURE__ */ U(gy, { customFunctions: i })
|
|
18865
18912
|
]
|
|
18866
18913
|
}),
|
|
18867
18914
|
/* @__PURE__ */ U(V_, {})
|
|
18868
18915
|
] });
|
|
18869
|
-
})),
|
|
18916
|
+
})), gy = P.memo(({ customFunctions: e }) => {
|
|
18870
18917
|
let { openNodes: t, activeNodeId: n, components: r, user: i, disabled: a, customNodes: o } = $(({ decisionGraph: e, openTabs: t, activeTab: n, components: r, user: i, disabled: a, customNodes: o }) => {
|
|
18871
18918
|
let s = (e?.nodes ?? []).find((e) => e.id === n)?.id;
|
|
18872
18919
|
return {
|
|
@@ -18938,7 +18985,7 @@ var oy = (e, t = 42) => {
|
|
|
18938
18985
|
kind: t.kind,
|
|
18939
18986
|
config: t.config
|
|
18940
18987
|
}
|
|
18941
|
-
}) : /* @__PURE__ */ U(
|
|
18988
|
+
}) : /* @__PURE__ */ U(uy, {
|
|
18942
18989
|
id: t.id,
|
|
18943
18990
|
user: i,
|
|
18944
18991
|
customFunctions: e
|
|
@@ -18949,10 +18996,10 @@ var oy = (e, t = 42) => {
|
|
|
18949
18996
|
})
|
|
18950
18997
|
}, t?.id))
|
|
18951
18998
|
});
|
|
18952
|
-
}),
|
|
18999
|
+
}), _y = Fe(({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, ...i }, a) => /* @__PURE__ */ U(vc, { children: /* @__PURE__ */ U("div", {
|
|
18953
19000
|
className: V(["seal-dg", i?.hideLeftToolbar && "hidden-left-toolbar"]),
|
|
18954
19001
|
children: /* @__PURE__ */ U(Ki, { children: /* @__PURE__ */ U($m, { children: /* @__PURE__ */ W(sh, { children: [
|
|
18955
|
-
/* @__PURE__ */ U(
|
|
19002
|
+
/* @__PURE__ */ U(hy, {
|
|
18956
19003
|
ref: a,
|
|
18957
19004
|
reactFlowProOptions: e,
|
|
18958
19005
|
tabBarExtraContent: t,
|
|
@@ -18963,7 +19010,7 @@ var oy = (e, t = 42) => {
|
|
|
18963
19010
|
/* @__PURE__ */ U(P_, {}),
|
|
18964
19011
|
/* @__PURE__ */ U(E_, { ...i })
|
|
18965
19012
|
] }) }) })
|
|
18966
|
-
}) })),
|
|
19013
|
+
}) })), vy = (e) => ({
|
|
18967
19014
|
kind: e.kind,
|
|
18968
19015
|
icon: e.icon,
|
|
18969
19016
|
color: e.color,
|
|
@@ -19030,7 +19077,7 @@ var oy = (e, t = 42) => {
|
|
|
19030
19077
|
});
|
|
19031
19078
|
//#endregion
|
|
19032
19079
|
//#region src/reui/skeleton.tsx
|
|
19033
|
-
function
|
|
19080
|
+
function yy({ className: e, ...t }) {
|
|
19034
19081
|
return /* @__PURE__ */ U("div", {
|
|
19035
19082
|
"data-slot": "skeleton",
|
|
19036
19083
|
className: r("animate-pulse rounded-md bg-muted", e),
|
|
@@ -19039,12 +19086,12 @@ function vy({ className: e, ...t }) {
|
|
|
19039
19086
|
}
|
|
19040
19087
|
//#endregion
|
|
19041
19088
|
//#region src/reui/timeline.tsx
|
|
19042
|
-
var
|
|
19043
|
-
let e = ze(
|
|
19089
|
+
var by = Ne(void 0), xy = () => {
|
|
19090
|
+
let e = ze(by);
|
|
19044
19091
|
if (!e) throw Error("useTimeline must be used within a Timeline");
|
|
19045
19092
|
return e;
|
|
19046
19093
|
};
|
|
19047
|
-
function
|
|
19094
|
+
function Sy({ defaultValue: e = 1, value: t, onValueChange: n, orientation: i = "vertical", className: a, render: o, children: s, ...c }) {
|
|
19048
19095
|
let [l, u] = z(e), d = F((e) => {
|
|
19049
19096
|
t === void 0 && u(e), n?.(e);
|
|
19050
19097
|
}, [t, n]), f = t ?? l, p = {
|
|
@@ -19053,7 +19100,7 @@ function xy({ defaultValue: e = 1, value: t, onValueChange: n, orientation: i =
|
|
|
19053
19100
|
"data-slot": "timeline",
|
|
19054
19101
|
children: s
|
|
19055
19102
|
};
|
|
19056
|
-
return /* @__PURE__ */ U(
|
|
19103
|
+
return /* @__PURE__ */ U(by.Provider, {
|
|
19057
19104
|
value: {
|
|
19058
19105
|
activeStep: f,
|
|
19059
19106
|
setActiveStep: d
|
|
@@ -19065,7 +19112,7 @@ function xy({ defaultValue: e = 1, value: t, onValueChange: n, orientation: i =
|
|
|
19065
19112
|
})
|
|
19066
19113
|
});
|
|
19067
19114
|
}
|
|
19068
|
-
function
|
|
19115
|
+
function Cy({ className: e, render: t, children: n, ...i }) {
|
|
19069
19116
|
let a = {
|
|
19070
19117
|
className: r("text-muted-foreground text-sm", e),
|
|
19071
19118
|
"data-slot": "timeline-content",
|
|
@@ -19077,7 +19124,7 @@ function Sy({ className: e, render: t, children: n, ...i }) {
|
|
|
19077
19124
|
props: jn(a, i)
|
|
19078
19125
|
});
|
|
19079
19126
|
}
|
|
19080
|
-
function
|
|
19127
|
+
function wy({ className: e, render: t, children: n, ...i }) {
|
|
19081
19128
|
let a = {
|
|
19082
19129
|
className: r(e),
|
|
19083
19130
|
"data-slot": "timeline-header",
|
|
@@ -19089,7 +19136,7 @@ function Cy({ className: e, render: t, children: n, ...i }) {
|
|
|
19089
19136
|
props: jn(a, i)
|
|
19090
19137
|
});
|
|
19091
19138
|
}
|
|
19092
|
-
function
|
|
19139
|
+
function Ty({ className: e, children: t, render: n, ...i }) {
|
|
19093
19140
|
let a = {
|
|
19094
19141
|
"aria-hidden": !0,
|
|
19095
19142
|
className: r("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute size-4 rounded-full border-2 border-primary/20 group-data-[orientation=vertical]/timeline:top-0 group-data-[orientation=horizontal]/timeline:left-0 group-data-completed/timeline-item:border-primary", e),
|
|
@@ -19102,8 +19149,8 @@ function wy({ className: e, children: t, render: n, ...i }) {
|
|
|
19102
19149
|
props: jn(a, i)
|
|
19103
19150
|
});
|
|
19104
19151
|
}
|
|
19105
|
-
function
|
|
19106
|
-
let { activeStep: o } =
|
|
19152
|
+
function Ey({ step: e, className: t, render: n, children: i, ...a }) {
|
|
19153
|
+
let { activeStep: o } = xy(), s = {
|
|
19107
19154
|
className: r("group/timeline-item relative flex flex-1 flex-col gap-0.5 group-data-[orientation=vertical]/timeline:ms-8 group-data-[orientation=horizontal]/timeline:mt-8 group-data-[orientation=horizontal]/timeline:not-last:pe-8 group-data-[orientation=vertical]/timeline:not-last:pb-6 has-[+[data-completed]]:**:data-[slot=timeline-separator]:bg-primary", t),
|
|
19108
19155
|
"data-completed": e <= o || void 0,
|
|
19109
19156
|
"data-slot": "timeline-item",
|
|
@@ -19115,7 +19162,7 @@ function Ty({ step: e, className: t, render: n, children: i, ...a }) {
|
|
|
19115
19162
|
props: jn(s, a)
|
|
19116
19163
|
});
|
|
19117
19164
|
}
|
|
19118
|
-
function
|
|
19165
|
+
function Dy({ className: e, render: t, children: n, ...i }) {
|
|
19119
19166
|
let a = {
|
|
19120
19167
|
"aria-hidden": !0,
|
|
19121
19168
|
className: r("group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2 absolute self-start bg-primary/10 group-last/timeline-item:hidden group-data-[orientation=horizontal]/timeline:h-0.5 group-data-[orientation=vertical]/timeline:h-[calc(100%-1rem-0.25rem)] group-data-[orientation=horizontal]/timeline:w-[calc(100%-1rem-0.25rem)] group-data-[orientation=vertical]/timeline:w-0.5 group-data-[orientation=horizontal]/timeline:translate-x-4.5 group-data-[orientation=vertical]/timeline:translate-y-4.5", e),
|
|
@@ -19128,7 +19175,7 @@ function Ey({ className: e, render: t, children: n, ...i }) {
|
|
|
19128
19175
|
props: jn(a, i)
|
|
19129
19176
|
});
|
|
19130
19177
|
}
|
|
19131
|
-
function
|
|
19178
|
+
function Oy({ className: e, render: t, children: n, ...i }) {
|
|
19132
19179
|
let a = {
|
|
19133
19180
|
className: r("font-medium text-sm", e),
|
|
19134
19181
|
"data-slot": "timeline-title",
|
|
@@ -19142,21 +19189,21 @@ function Dy({ className: e, render: t, children: n, ...i }) {
|
|
|
19142
19189
|
}
|
|
19143
19190
|
//#endregion
|
|
19144
19191
|
//#region src/components/decision-graph/simulator/simulate-runs-panel.tsx
|
|
19145
|
-
var
|
|
19192
|
+
var ky = Le(() => import("./simulate-run-detail-B3f93RKl.js").then((e) => ({ default: e.SimulateRunDetail }))), Ay = ({ runs: e, emptyHint: t }) => {
|
|
19146
19193
|
let n = o(), r = nh(), [i, a] = z(null);
|
|
19147
19194
|
return e.length === 0 ? /* @__PURE__ */ U("div", {
|
|
19148
19195
|
className: "p-6 text-center text-xs opacity-50",
|
|
19149
19196
|
children: t ?? n("dg.simulation.runsEmpty")
|
|
19150
|
-
}) : /* @__PURE__ */ U(
|
|
19197
|
+
}) : /* @__PURE__ */ U(Sy, {
|
|
19151
19198
|
className: "p-3",
|
|
19152
19199
|
children: e.map((t, o) => {
|
|
19153
19200
|
let s = i === t.id, c = !t.snapshot, l = c ? null : t.ok ? t.snapshot?.result?.result : t.snapshot?.error ?? "unknown error";
|
|
19154
|
-
return /* @__PURE__ */ W(
|
|
19201
|
+
return /* @__PURE__ */ W(Ey, {
|
|
19155
19202
|
step: e.length - o,
|
|
19156
19203
|
children: [
|
|
19157
|
-
/* @__PURE__ */ U(
|
|
19158
|
-
/* @__PURE__ */ U(
|
|
19159
|
-
/* @__PURE__ */ U(
|
|
19204
|
+
/* @__PURE__ */ U(Dy, {}),
|
|
19205
|
+
/* @__PURE__ */ U(Ty, { className: t.ok ? "bg-[var(--color-success)] text-white" : "bg-[var(--destructive)] text-white" }),
|
|
19206
|
+
/* @__PURE__ */ U(wy, { children: /* @__PURE__ */ U(Oy, {
|
|
19160
19207
|
className: "text-xs font-normal",
|
|
19161
19208
|
children: /* @__PURE__ */ W("button", {
|
|
19162
19209
|
type: "button",
|
|
@@ -19195,7 +19242,7 @@ var Oy = Le(() => import("./simulate-run-detail-qZE4KheI.js").then((e) => ({ def
|
|
|
19195
19242
|
]
|
|
19196
19243
|
})
|
|
19197
19244
|
}) }),
|
|
19198
|
-
s && /* @__PURE__ */ W(
|
|
19245
|
+
s && /* @__PURE__ */ W(Cy, {
|
|
19199
19246
|
className: "mt-1",
|
|
19200
19247
|
children: [c && /* @__PURE__ */ U("div", {
|
|
19201
19248
|
className: "rounded-md bg-muted/60 p-2 text-[10px] opacity-70",
|
|
@@ -19206,34 +19253,34 @@ var Oy = Le(() => import("./simulate-run-detail-qZE4KheI.js").then((e) => ({ def
|
|
|
19206
19253
|
className: "max-h-64 overflow-auto rounded-md bg-muted/60 p-2 pr-8 font-mono text-[10px] leading-relaxed",
|
|
19207
19254
|
children: ti.stringify(l, void 0, 2)
|
|
19208
19255
|
}),
|
|
19209
|
-
children: /* @__PURE__ */ U(
|
|
19256
|
+
children: /* @__PURE__ */ U(ky, { detail: l })
|
|
19210
19257
|
})]
|
|
19211
19258
|
})
|
|
19212
19259
|
]
|
|
19213
19260
|
}, t.id);
|
|
19214
19261
|
})
|
|
19215
19262
|
});
|
|
19216
|
-
},
|
|
19263
|
+
}, jy = (e) => JSON.stringify(e.map((e) => {
|
|
19217
19264
|
let { snapshot: t, ...n } = e;
|
|
19218
19265
|
return e.pinned ? e : {
|
|
19219
19266
|
...n,
|
|
19220
19267
|
snapshot: void 0
|
|
19221
19268
|
};
|
|
19222
|
-
})),
|
|
19269
|
+
})), My = (e) => {
|
|
19223
19270
|
try {
|
|
19224
19271
|
let t = JSON.parse(e);
|
|
19225
19272
|
return Array.isArray(t) ? t : [];
|
|
19226
19273
|
} catch {
|
|
19227
19274
|
return [];
|
|
19228
19275
|
}
|
|
19229
|
-
},
|
|
19276
|
+
}, Ny = (e) => {
|
|
19230
19277
|
let t = typeof localStorage < "u" ? localStorage.getItem(e) : null;
|
|
19231
|
-
return t ?
|
|
19232
|
-
},
|
|
19278
|
+
return t ? My(t) : [];
|
|
19279
|
+
}, Py = (e, t) => {
|
|
19233
19280
|
try {
|
|
19234
|
-
localStorage.setItem(e,
|
|
19281
|
+
localStorage.setItem(e, jy(t));
|
|
19235
19282
|
} catch {}
|
|
19236
|
-
},
|
|
19283
|
+
}, Fy = ({ value: e, onChange: t, readOnly: n }) => {
|
|
19237
19284
|
let r = fc(), i = o();
|
|
19238
19285
|
return /* @__PURE__ */ U(ta, {
|
|
19239
19286
|
loading: /* @__PURE__ */ U($o, { size: "large" }),
|
|
@@ -19292,7 +19339,7 @@ var Oy = Le(() => import("./simulate-run-detail-qZE4KheI.js").then((e) => ({ def
|
|
|
19292
19339
|
};
|
|
19293
19340
|
//#endregion
|
|
19294
19341
|
//#region src/reui/icons/animated/outline/cross-circle.tsx
|
|
19295
|
-
function
|
|
19342
|
+
function Iy({ className: e }) {
|
|
19296
19343
|
return /* @__PURE__ */ U("svg", {
|
|
19297
19344
|
width: "24",
|
|
19298
19345
|
height: "24",
|
|
@@ -19308,7 +19355,7 @@ function Fy({ className: e }) {
|
|
|
19308
19355
|
}
|
|
19309
19356
|
//#endregion
|
|
19310
19357
|
//#region src/components/decision-graph/simulator/simulator-nodes-panel.tsx
|
|
19311
|
-
var
|
|
19358
|
+
var Ly = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeTypes: i, viewConfig: a, selectedNode: s, onSelectNode: c, onClear: l, onGoToNode: u }) => {
|
|
19312
19359
|
let d = o(), f = L(() => !r || !("result" in r) ? [] : Object.entries(r.result?.trace ?? {}).filter(([e]) => !a?.enabled || !!a?.permissions?.[e]).map(([e, t]) => ({
|
|
19313
19360
|
...t,
|
|
19314
19361
|
nodeId: e
|
|
@@ -19384,7 +19431,7 @@ var Iy = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
19384
19431
|
children: [/* @__PURE__ */ W(Z.Text, {
|
|
19385
19432
|
"data-role": "name",
|
|
19386
19433
|
className: "flex min-w-0 items-center [&>svg]:align-[-3px]",
|
|
19387
|
-
children: [/* @__PURE__ */ U(
|
|
19434
|
+
children: [/* @__PURE__ */ U(Ry, { status: q(r).with({ error: K.nonNullable }, () => "error").with({ result: K.nonNullable }, () => "success").otherwise(() => "not-run") }), /* @__PURE__ */ U("span", {
|
|
19388
19435
|
className: "truncate",
|
|
19389
19436
|
children: "Graph"
|
|
19390
19437
|
})]
|
|
@@ -19402,7 +19449,7 @@ var Iy = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
19402
19449
|
"data-role": "name",
|
|
19403
19450
|
className: "flex min-w-0 items-center gap-1.5 [&>svg]:align-[-3px]",
|
|
19404
19451
|
title: e.name,
|
|
19405
|
-
children: [/* @__PURE__ */ U(
|
|
19452
|
+
children: [/* @__PURE__ */ U(Ry, { status: e.nodeId === r?.error?.data?.nodeId ? "error" : "success" }), /* @__PURE__ */ U("span", {
|
|
19406
19453
|
className: "truncate",
|
|
19407
19454
|
children: e.name
|
|
19408
19455
|
})]
|
|
@@ -19417,10 +19464,10 @@ var Iy = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
|
|
|
19417
19464
|
})
|
|
19418
19465
|
})
|
|
19419
19466
|
})] });
|
|
19420
|
-
},
|
|
19467
|
+
}, Ry = ({ status: e }) => e === "not-run" ? null : e === "success" ? /* @__PURE__ */ U(Qc, { className: "mr-1.5 size-3 shrink-0 text-[var(--seal-color-success)] opacity-60" }) : /* @__PURE__ */ U(Iy, { className: "mr-1 size-3 shrink-0 text-[var(--seal-color-error)]" });
|
|
19421
19468
|
//#endregion
|
|
19422
19469
|
//#region src/reui/icons/animated/outline/link.tsx
|
|
19423
|
-
function
|
|
19470
|
+
function zy({ className: e, style: t }) {
|
|
19424
19471
|
return /* @__PURE__ */ W("svg", {
|
|
19425
19472
|
width: "24",
|
|
19426
19473
|
height: "24",
|
|
@@ -19442,7 +19489,7 @@ function Ry({ className: e, style: t }) {
|
|
|
19442
19489
|
}
|
|
19443
19490
|
//#endregion
|
|
19444
19491
|
//#region src/components/decision-graph/simulator/simulator-request-toolbar.tsx
|
|
19445
|
-
var
|
|
19492
|
+
var By = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n, sourceOptions: r, bindingName: i, hasInputNode: a, loading: o, onSourceChange: s, onFormat: c, onCopy: l, onRun: u }) => /* @__PURE__ */ W("div", {
|
|
19446
19493
|
className: "flex items-center justify-between gap-2 border-b border-border px-3 py-2",
|
|
19447
19494
|
children: [
|
|
19448
19495
|
/* @__PURE__ */ U(X, {
|
|
@@ -19460,7 +19507,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19460
19507
|
title: e("simulator.currentBinding"),
|
|
19461
19508
|
children: /* @__PURE__ */ W("div", {
|
|
19462
19509
|
className: "flex min-w-0 items-center gap-1",
|
|
19463
|
-
children: [/* @__PURE__ */ U(
|
|
19510
|
+
children: [/* @__PURE__ */ U(zy, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" }), /* @__PURE__ */ U(Zo, {
|
|
19464
19511
|
size: "small",
|
|
19465
19512
|
value: n,
|
|
19466
19513
|
options: r,
|
|
@@ -19474,7 +19521,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19474
19521
|
className: "flex min-w-0 items-center gap-1 text-xs",
|
|
19475
19522
|
children: [/* @__PURE__ */ U(X, {
|
|
19476
19523
|
title: e("simulator.currentBinding"),
|
|
19477
|
-
children: /* @__PURE__ */ U(
|
|
19524
|
+
children: /* @__PURE__ */ U(zy, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" })
|
|
19478
19525
|
}), /* @__PURE__ */ U("span", {
|
|
19479
19526
|
className: "truncate",
|
|
19480
19527
|
children: i
|
|
@@ -19522,7 +19569,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19522
19569
|
] })
|
|
19523
19570
|
})
|
|
19524
19571
|
]
|
|
19525
|
-
}),
|
|
19572
|
+
}), Vy = ({ t: e, requestValue: t, resolvedSimulatorExampleBinding: n, onRequestValueChange: r, onMarkEdited: i, onExternalChange: a }) => {
|
|
19526
19573
|
let { stateStore: o, actions: s } = rh(), c = ({ activeExampleBinding: t, preparedParsed: n, triggeredBy: c, showSuccessMessage: l = !0 }) => {
|
|
19527
19574
|
let { decisionGraph: d } = o.getState(), f = d.nodes.find((e) => e.id === t.nodeId);
|
|
19528
19575
|
if (!f) return B.error(e("simulator.boundRequestNodeNotFound")), null;
|
|
@@ -19580,8 +19627,8 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19580
19627
|
let { decisionGraph: i } = o.getState(), m = i.nodes.find((e) => e.id === p.nodeId);
|
|
19581
19628
|
if (!m) return l || B.error(e("simulator.boundRequestNodeNotFound")), null;
|
|
19582
19629
|
let h = d(m.content), g = r;
|
|
19583
|
-
if ((u ?
|
|
19584
|
-
let _ =
|
|
19630
|
+
if ((u ? te(g, h) : []).length > 0) return l || B.warning(e("request.dataTypeMismatchWarning")), null;
|
|
19631
|
+
let _ = k(g, h);
|
|
19585
19632
|
return c({
|
|
19586
19633
|
activeExampleBinding: p,
|
|
19587
19634
|
preparedParsed: _,
|
|
@@ -19592,7 +19639,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19592
19639
|
return l || B.error(e("request.saveDataSourceFailed")), null;
|
|
19593
19640
|
}
|
|
19594
19641
|
} };
|
|
19595
|
-
},
|
|
19642
|
+
}, Hy = 700, Uy = ({ enabled: e, requestValue: t, requestSourcesSignature: n, boundRequestSourceIndex: r, onSyncToSchema: i, onPushToEditor: a, debounceMs: o = 700 }) => {
|
|
19596
19643
|
let s = R(null), c = R(void 0), l = R(t);
|
|
19597
19644
|
l.current = t;
|
|
19598
19645
|
let u = R(void 0), d = R({
|
|
@@ -19621,7 +19668,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19621
19668
|
]), { flush: () => {
|
|
19622
19669
|
s.current !== null && (window.clearTimeout(s.current), s.current = null, c.current = l.current, d.current.onSyncToSchema());
|
|
19623
19670
|
} };
|
|
19624
|
-
},
|
|
19671
|
+
}, Wy = ({ inputNodeContent: e, inputNodeId: t, simulatorExampleBinding: n, dataLabel: r = "Data" }) => {
|
|
19625
19672
|
let i = e, a = L(() => g(i, { dataLabel: r }), [i, r]), o = L(() => !n || n.nodeId !== t ? -1 : a[n.sourceIndex] ? n.sourceIndex : -1, [
|
|
19626
19673
|
t,
|
|
19627
19674
|
a,
|
|
@@ -19650,7 +19697,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19650
19697
|
bindingName: m,
|
|
19651
19698
|
shouldShowSimulatorSourceSelect: !!m && !!t && a.length > 1
|
|
19652
19699
|
};
|
|
19653
|
-
},
|
|
19700
|
+
}, Gy = ({ defaultRequest: e, simulatorRequest: t, currentBindingIdentity: n, onExternalChange: r }) => {
|
|
19654
19701
|
let [i, a] = z(e), [o, s] = z(!1), [c, l] = z(!1), u = R(null), d = R(null), f = R(void 0);
|
|
19655
19702
|
return I(() => () => {
|
|
19656
19703
|
u.current !== null && window.clearTimeout(u.current);
|
|
@@ -19670,7 +19717,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19670
19717
|
setUserHasEdited: s,
|
|
19671
19718
|
isApplyingExternalRequest: c
|
|
19672
19719
|
};
|
|
19673
|
-
},
|
|
19720
|
+
}, Ky = ({ onChange: e, hasInputNode: t, loading: n, onRun: r, defaultRequest: i }) => {
|
|
19674
19721
|
let a = o(), { stateStore: s, actions: c } = rh(), { simulatorRequest: l, simulatorExampleBinding: u, inputNodeContent: f, inputNodeId: p } = $(({ simulatorRequest: e, simulatorExampleBinding: t, decisionGraph: n }) => {
|
|
19675
19722
|
let r = n?.nodes?.find((e) => e.type === "inputNode");
|
|
19676
19723
|
return {
|
|
@@ -19679,21 +19726,21 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19679
19726
|
inputNodeContent: r?.content,
|
|
19680
19727
|
inputNodeId: r?.id
|
|
19681
19728
|
};
|
|
19682
|
-
}), { requestSources: m, boundRequestSourceIndex: h, defaultRequestSourceIndex: g, defaultRequestSource: _, resolvedSimulatorExampleBinding: y, currentBindingIdentity: b, requestDefinitions: x, sourceOptions: S, bindingName: C, shouldShowSimulatorSourceSelect: w } =
|
|
19729
|
+
}), { requestSources: m, boundRequestSourceIndex: h, defaultRequestSourceIndex: g, defaultRequestSource: _, resolvedSimulatorExampleBinding: y, currentBindingIdentity: b, requestDefinitions: x, sourceOptions: S, bindingName: C, shouldShowSimulatorSourceSelect: w } = Wy({
|
|
19683
19730
|
inputNodeContent: f,
|
|
19684
19731
|
inputNodeId: p,
|
|
19685
19732
|
simulatorExampleBinding: u,
|
|
19686
19733
|
dataLabel: a("request.dataLabel")
|
|
19687
|
-
}), { requestValue: T, setRequestValue: E, userHasEdited: D, setUserHasEdited:
|
|
19734
|
+
}), { requestValue: T, setRequestValue: E, userHasEdited: D, setUserHasEdited: ee, isApplyingExternalRequest: te } = Gy({
|
|
19688
19735
|
defaultRequest: i,
|
|
19689
19736
|
simulatorRequest: l,
|
|
19690
19737
|
currentBindingIdentity: b,
|
|
19691
19738
|
onExternalChange: e
|
|
19692
|
-
}),
|
|
19739
|
+
}), ne = (e) => {
|
|
19693
19740
|
let t = m[e];
|
|
19694
19741
|
if (!p || !t) return;
|
|
19695
19742
|
M();
|
|
19696
|
-
let n =
|
|
19743
|
+
let n = O(t.data, x), r = k(n, x), i = JSON.stringify(r, null, 2);
|
|
19697
19744
|
c.setSimulatorRequest(i), c.setSimulatorExampleBinding({
|
|
19698
19745
|
nodeId: p,
|
|
19699
19746
|
sourceIndex: e,
|
|
@@ -19702,7 +19749,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19702
19749
|
};
|
|
19703
19750
|
I(() => {
|
|
19704
19751
|
if (!_ || (p && g >= 0 && y && (u?.nodeId !== p || u.sourceIndex !== g || u.sourceName !== _.name) && c.setSimulatorExampleBinding(y), D)) return;
|
|
19705
|
-
let t =
|
|
19752
|
+
let t = O(_.data, x), n = JSON.stringify(k(t, x), null, 2);
|
|
19706
19753
|
n && n !== T && (E(n), c.setSimulatorRequest(n), e?.(n));
|
|
19707
19754
|
}, [
|
|
19708
19755
|
c,
|
|
@@ -19723,20 +19770,20 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19723
19770
|
c.setNodeType(t.id, Zm.InferredOutput, new zn(e));
|
|
19724
19771
|
} catch {}
|
|
19725
19772
|
}, [T]);
|
|
19726
|
-
let { persistRequestToExampleSource:
|
|
19773
|
+
let { persistRequestToExampleSource: A } = Vy({
|
|
19727
19774
|
t: a,
|
|
19728
19775
|
requestValue: T,
|
|
19729
19776
|
resolvedSimulatorExampleBinding: y,
|
|
19730
19777
|
onRequestValueChange: E,
|
|
19731
|
-
onMarkEdited: () =>
|
|
19778
|
+
onMarkEdited: () => ee(!0),
|
|
19732
19779
|
onExternalChange: e
|
|
19733
|
-
}), j = JSON.stringify(m.map((e) => e.data)), { flush: M } =
|
|
19780
|
+
}), j = JSON.stringify(m.map((e) => e.data)), { flush: M } = Uy({
|
|
19734
19781
|
enabled: !!(t && y),
|
|
19735
19782
|
requestValue: T,
|
|
19736
19783
|
requestSourcesSignature: j,
|
|
19737
19784
|
boundRequestSourceIndex: h,
|
|
19738
19785
|
onSyncToSchema: () => {
|
|
19739
|
-
|
|
19786
|
+
A({
|
|
19740
19787
|
validateDefinitionTypes: !1,
|
|
19741
19788
|
silentWhenUnbound: !0,
|
|
19742
19789
|
showSuccessMessage: !1,
|
|
@@ -19746,11 +19793,11 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19746
19793
|
},
|
|
19747
19794
|
onPushToEditor: () => {
|
|
19748
19795
|
if (h < 0 || !m[h]) return;
|
|
19749
|
-
let e =
|
|
19796
|
+
let e = O(m[h].data, x), t = k(e, x);
|
|
19750
19797
|
c.setSimulatorRequest(JSON.stringify(t, null, 2));
|
|
19751
19798
|
}
|
|
19752
19799
|
});
|
|
19753
|
-
return /* @__PURE__ */ W(P.Fragment, { children: [/* @__PURE__ */ U(
|
|
19800
|
+
return /* @__PURE__ */ W(P.Fragment, { children: [/* @__PURE__ */ U(By, {
|
|
19754
19801
|
t: a,
|
|
19755
19802
|
shouldShowSimulatorSourceSelect: w,
|
|
19756
19803
|
boundRequestSourceIndex: h,
|
|
@@ -19758,11 +19805,11 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19758
19805
|
bindingName: C,
|
|
19759
19806
|
hasInputNode: t,
|
|
19760
19807
|
loading: n,
|
|
19761
|
-
onSourceChange:
|
|
19808
|
+
onSourceChange: ne,
|
|
19762
19809
|
onFormat: () => {
|
|
19763
19810
|
try {
|
|
19764
19811
|
let t = ti.parse(T || ""), n = re(t), r = JSON.stringify(n, null, 2);
|
|
19765
|
-
E(r),
|
|
19812
|
+
E(r), ee(!0), c.setSimulatorRequest(r), e?.(r), B.success(a("simulator.formatSuccess"));
|
|
19766
19813
|
} catch {
|
|
19767
19814
|
B.error(a("simulator.formatFailed"));
|
|
19768
19815
|
}
|
|
@@ -19798,20 +19845,20 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19798
19845
|
className: "relative min-h-0 flex-1 overflow-hidden",
|
|
19799
19846
|
children: [/* @__PURE__ */ U("div", {
|
|
19800
19847
|
className: "absolute inset-0",
|
|
19801
|
-
children: /* @__PURE__ */ U(
|
|
19848
|
+
children: /* @__PURE__ */ U(Fy, {
|
|
19802
19849
|
value: T,
|
|
19803
19850
|
onChange: (t) => {
|
|
19804
|
-
E(t),
|
|
19851
|
+
E(t), ee(!0), c.setSimulatorRequest(t ?? ""), e?.(t ?? "");
|
|
19805
19852
|
}
|
|
19806
19853
|
})
|
|
19807
|
-
}),
|
|
19854
|
+
}), te && /* @__PURE__ */ U("div", {
|
|
19808
19855
|
className: "absolute inset-0 z-10 flex items-center justify-center bg-background/40",
|
|
19809
19856
|
children: /* @__PURE__ */ U($o, { size: "small" })
|
|
19810
19857
|
})]
|
|
19811
19858
|
})] });
|
|
19812
|
-
},
|
|
19859
|
+
}, qy = /* @__PURE__ */ function(e) {
|
|
19813
19860
|
return e.Output = "Output", e.Input = "Input", e.Trace = "Trace", e.Runs = "Runs", e;
|
|
19814
|
-
}(
|
|
19861
|
+
}(qy || {}), Jy = ({ defaultRequest: e, onChange: t, onRun: n, onClear: r, loading: i = !1, simulationFooter: a, runsPersistenceKey: s, leftPanel: c = Ky }) => {
|
|
19815
19862
|
let l = o(), [u, d] = Rh("simulation.search", ""), [f, p] = Rh("simulation.segment", "Output"), { viewConfig: m } = $((e) => ({ viewConfig: e.viewConfig })), { actions: h } = rh(), { nodeTypes: g, simulate: _, hasInputNode: v } = $(({ decisionGraph: e, simulate: t }) => ({
|
|
19816
19863
|
simulate: t,
|
|
19817
19864
|
hasInputNode: e.nodes.some((e) => e.type === Q.Input),
|
|
@@ -19822,10 +19869,10 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19822
19869
|
})), [y, b] = z("graph"), x = $((e) => e.simulateRuns);
|
|
19823
19870
|
I(() => {
|
|
19824
19871
|
if (!s) return;
|
|
19825
|
-
let e =
|
|
19872
|
+
let e = Ny(s);
|
|
19826
19873
|
e.length > 0 && h.hydrateSimulateRuns(e);
|
|
19827
19874
|
}, [s]), I(() => {
|
|
19828
|
-
s && x.length > 0 &&
|
|
19875
|
+
s && x.length > 0 && Py(s, x);
|
|
19829
19876
|
}, [s, x]);
|
|
19830
19877
|
let S = R(void 0);
|
|
19831
19878
|
return I(() => {
|
|
@@ -19867,7 +19914,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19867
19914
|
minSize: 20,
|
|
19868
19915
|
maxSize: 20,
|
|
19869
19916
|
className: "flex w-[260px] flex-col",
|
|
19870
|
-
children: /* @__PURE__ */ U(
|
|
19917
|
+
children: /* @__PURE__ */ U(Ly, {
|
|
19871
19918
|
search: u,
|
|
19872
19919
|
onSearchChange: d,
|
|
19873
19920
|
loading: i,
|
|
@@ -19893,7 +19940,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19893
19940
|
size: "small",
|
|
19894
19941
|
style: { width: "100%" },
|
|
19895
19942
|
onChange: (e) => p(e),
|
|
19896
|
-
items: Object.values(
|
|
19943
|
+
items: Object.values(qy).map((e) => ({
|
|
19897
19944
|
key: e,
|
|
19898
19945
|
label: e
|
|
19899
19946
|
})),
|
|
@@ -19913,19 +19960,19 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19913
19960
|
className: "absolute inset-0 z-10 flex flex-col gap-2.5 bg-[var(--card)]/80 p-4",
|
|
19914
19961
|
"data-testid": "simulator-loading-skeleton",
|
|
19915
19962
|
children: [
|
|
19916
|
-
/* @__PURE__ */ U(
|
|
19917
|
-
/* @__PURE__ */ U(
|
|
19918
|
-
/* @__PURE__ */ U(
|
|
19919
|
-
/* @__PURE__ */ U(
|
|
19920
|
-
/* @__PURE__ */ U(
|
|
19921
|
-
/* @__PURE__ */ U(
|
|
19963
|
+
/* @__PURE__ */ U(yy, { className: "h-3 w-2/3" }),
|
|
19964
|
+
/* @__PURE__ */ U(yy, { className: "h-3 w-1/2" }),
|
|
19965
|
+
/* @__PURE__ */ U(yy, { className: "h-3 w-3/4" }),
|
|
19966
|
+
/* @__PURE__ */ U(yy, { className: "h-24 w-full" }),
|
|
19967
|
+
/* @__PURE__ */ U(yy, { className: "h-3 w-2/3" }),
|
|
19968
|
+
/* @__PURE__ */ U(yy, { className: "h-3 w-1/2" })
|
|
19922
19969
|
]
|
|
19923
|
-
}), f === "Runs" ? /* @__PURE__ */ U(
|
|
19970
|
+
}), f === "Runs" ? /* @__PURE__ */ U(Ay, { runs: x }) : /* @__PURE__ */ U(Fy, {
|
|
19924
19971
|
readOnly: !0,
|
|
19925
|
-
value: q(_).with({ result: K._ }, ({ result: e }) => q(y).with("graph", () =>
|
|
19972
|
+
value: q(_).with({ result: K._ }, ({ result: e }) => q(y).with("graph", () => Yy({
|
|
19926
19973
|
traceData: e?.trace,
|
|
19927
19974
|
output: e?.result
|
|
19928
|
-
}, f ?? "Output")).otherwise(() =>
|
|
19975
|
+
}, f ?? "Output")).otherwise(() => Yy(e?.trace[y], f ?? "Output"))).otherwise(() => "")
|
|
19929
19976
|
})]
|
|
19930
19977
|
})]
|
|
19931
19978
|
})
|
|
@@ -19935,10 +19982,10 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19935
19982
|
children: a
|
|
19936
19983
|
})]
|
|
19937
19984
|
});
|
|
19938
|
-
},
|
|
19985
|
+
}, Yy = (e, t) => {
|
|
19939
19986
|
let n = q([t, e]).with(["Output", { output: K._ }], ([, { output: e }]) => e).with(["Input", { input: K._ }], ([, { input: e }]) => e).with(["Trace", { trace: K._ }], ([, { trace: e }]) => e).with(["Trace", { traceData: K._ }], ([, { traceData: e }]) => e).otherwise(() => ({}));
|
|
19940
19987
|
return ti.stringify(n, void 0, 2);
|
|
19941
|
-
},
|
|
19988
|
+
}, Xy = /* @__PURE__ */ new Set(["position", "_diff"]), Zy = /* @__PURE__ */ new Set(["_diff"]), Qy = (e) => typeof e != "object" || !e ? JSON.stringify(e) ?? "undefined" : Array.isArray(e) ? `[${e.map(Qy).join(",")}]` : `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${Qy(t)}`).join(",")}}`, $y = (e, t) => Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e))), eb = (e, t, n) => [.../* @__PURE__ */ new Set([...Object.keys($y(e, n)), ...Object.keys($y(t, n))])].filter((n) => Qy(e[n]) !== Qy(t[n])), tb = (e, t, n) => {
|
|
19942
19989
|
let r = new Map(e.map((e) => [e.id, e])), i = new Map(t.map((e) => [e.id, e])), a = [], o = [], s = [];
|
|
19943
19990
|
for (let [e, t] of i) r.has(e) || a.push({
|
|
19944
19991
|
id: e,
|
|
@@ -19955,7 +20002,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19955
20002
|
});
|
|
19956
20003
|
continue;
|
|
19957
20004
|
}
|
|
19958
|
-
let a =
|
|
20005
|
+
let a = eb(t, r, n);
|
|
19959
20006
|
a.length > 0 && s.push({
|
|
19960
20007
|
id: e,
|
|
19961
20008
|
name: r.name ?? t.name,
|
|
@@ -19968,8 +20015,8 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19968
20015
|
removed: o,
|
|
19969
20016
|
modified: s
|
|
19970
20017
|
};
|
|
19971
|
-
},
|
|
19972
|
-
let n =
|
|
20018
|
+
}, nb = (e, t) => {
|
|
20019
|
+
let n = tb(e.nodes ?? [], t.nodes ?? [], Xy), r = tb(e.edges ?? [], t.edges ?? [], Zy);
|
|
19973
20020
|
return {
|
|
19974
20021
|
addedNodes: n.added,
|
|
19975
20022
|
removedNodes: n.removed,
|
|
@@ -19979,7 +20026,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19979
20026
|
modifiedEdges: r.modified,
|
|
19980
20027
|
unchanged: n.added.length + n.removed.length + n.modified.length + r.added.length + r.removed.length + r.modified.length === 0
|
|
19981
20028
|
};
|
|
19982
|
-
},
|
|
20029
|
+
}, rb = ({ report: e, onDebug: t }) => {
|
|
19983
20030
|
let n = o(), r = L(() => e.results.reduce((e, t) => e + (t.durationMs ?? 0), 0), [e]);
|
|
19984
20031
|
return /* @__PURE__ */ W("div", {
|
|
19985
20032
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
@@ -20025,7 +20072,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20025
20072
|
}) })
|
|
20026
20073
|
})]
|
|
20027
20074
|
});
|
|
20028
|
-
},
|
|
20075
|
+
}, ib = () => {
|
|
20029
20076
|
let e = o(), t = nh(), { decisionGraph: n, panels: r, fixturesRunner: i, fixturesRun: a } = $(({ decisionGraph: e, panels: t, fixturesRunner: n, fixturesRun: r }) => ({
|
|
20030
20077
|
decisionGraph: e,
|
|
20031
20078
|
panels: t,
|
|
@@ -20073,7 +20120,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20073
20120
|
className: "mx-3 mt-2 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-1.5 text-xs text-destructive",
|
|
20074
20121
|
children: a.error === "no-examples" ? e("request.fixturesNoExamples") : a.error === "no-input-node" ? e("request.fixturesNoInputNode") : a.error ?? e("request.runAllFailed")
|
|
20075
20122
|
}),
|
|
20076
|
-
a?.status === "done" && a.report && /* @__PURE__ */ U(
|
|
20123
|
+
a?.status === "done" && a.report && /* @__PURE__ */ U(rb, {
|
|
20077
20124
|
report: a.report,
|
|
20078
20125
|
onDebug: (e) => {
|
|
20079
20126
|
if (!s) return;
|
|
@@ -20090,33 +20137,33 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20090
20137
|
})
|
|
20091
20138
|
]
|
|
20092
20139
|
});
|
|
20093
|
-
},
|
|
20140
|
+
}, ab = (e) => Array.isArray(e.type) ? e.type.find((e) => e !== "null") ?? e.type[0] : e.type, ob = (e) => {
|
|
20094
20141
|
if (!e || typeof e != "object") return zn.fromJson("Any");
|
|
20095
|
-
if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return
|
|
20096
|
-
if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return
|
|
20097
|
-
if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(
|
|
20098
|
-
switch (
|
|
20142
|
+
if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return ob(e.oneOf[0]);
|
|
20143
|
+
if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return ob(e.anyOf[0]);
|
|
20144
|
+
if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(ob(t)), zn.fromJson({ Object: {} }));
|
|
20145
|
+
switch (ab(e)) {
|
|
20099
20146
|
case "object": {
|
|
20100
20147
|
let t = zn.fromJson({ Object: {} });
|
|
20101
20148
|
return Object.entries(e.properties ?? {}).forEach(([e, n]) => {
|
|
20102
|
-
t.set(e,
|
|
20149
|
+
t.set(e, ob(n));
|
|
20103
20150
|
}), t;
|
|
20104
20151
|
}
|
|
20105
|
-
case "array": return
|
|
20152
|
+
case "array": return ob(Array.isArray(e.items) ? e.items[0] : e.items).toArray();
|
|
20106
20153
|
case "string": return zn.fromJson("String");
|
|
20107
20154
|
case "boolean": return zn.fromJson("Bool");
|
|
20108
20155
|
case "number":
|
|
20109
20156
|
case "integer": return zn.fromJson("Number");
|
|
20110
20157
|
case "null": return zn.fromJson("Null");
|
|
20111
|
-
default: return e.properties ?
|
|
20158
|
+
default: return e.properties ? ob({
|
|
20112
20159
|
...e,
|
|
20113
20160
|
type: "object"
|
|
20114
|
-
}) : e.items ?
|
|
20161
|
+
}) : e.items ? ob({
|
|
20115
20162
|
...e,
|
|
20116
20163
|
type: "array"
|
|
20117
20164
|
}) : e.nullable ? zn.fromJson("Null") : zn.fromJson("Any");
|
|
20118
20165
|
}
|
|
20119
|
-
},
|
|
20166
|
+
}, sb = "data:image/svg+xml,%3csvg%20id='fi_5968381'%20enable-background='new%200%200%20512%20512'%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20clip-rule='evenodd'%20d='m316.939%20407.424v50.061c8.138%204.172%2017.763%207.3%2028.875%209.386s22.823%203.129%2035.135%203.129c21.219%200%2044.448-3.035%2062.602-14.784%2018.064-11.691%2026.449-31.14%2026.449-52.172%200-15.637-4.851-30.684-15.807-42.081-16.429-17.091-39.516-24.022-60.255-34.183-10.389-5.09-24.727-12.992-24.727-26.361%200-3.441.887-6.543%202.661-9.307%207.132-11.113%2022.973-13.376%2035.057-13.376%2013.717%200%2028.189%203.071%2040.926%208.76%204.434%201.982%208.529%204.276%2012.285%206.884v-46.776c-7.616-2.92-15.937-5.084-24.962-6.492s-19.381-2.112-31.066-2.112c-11.895%200-23.163%201.278-33.805%203.833s-20.006%206.544-28.093%2011.967c-8.086%205.424-14.476%2012.333-19.171%2020.729-4.695%208.395-7.043%2018.433-7.043%2030.114%200%2014.914%204.304%2027.638%2012.912%2038.172%208.607%2010.533%2021.675%2019.45%2039.204%2026.751%2011.792%204.822%2024.053%209.581%2034.665%2016.739%207.355%204.96%2014.007%2011.877%2014.007%2021.275%200%206.821-3.856%2012.604-9.468%2016.192-8.303%205.308-18.936%206.492-28.563%206.492-10.851%200-21.597-1.903-32.24-5.71-10.641-3.806-20.501-9.516-29.578-17.13zm-84.159-123.342h64.22v-41.082h-179v41.082h63.906v182.918h50.874z'%20fill='%23fff'%20fill-rule='evenodd'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", cb = {
|
|
20120
20167
|
dark: {
|
|
20121
20168
|
string: "#CE9178",
|
|
20122
20169
|
number: "#B5CEA8",
|
|
@@ -20133,8 +20180,8 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20133
20180
|
error: "#E51400",
|
|
20134
20181
|
info: "rgba(0, 0, 0, 0.65)"
|
|
20135
20182
|
}
|
|
20136
|
-
},
|
|
20137
|
-
let r = fc(), i = o(), a =
|
|
20183
|
+
}, lb = ({ lines: e, msSinceRun: t, filter: n }) => {
|
|
20184
|
+
let r = fc(), i = o(), a = cb[r ?? "light"], s = P.useMemo(() => {
|
|
20138
20185
|
let t = (n ?? "").trim().toLowerCase();
|
|
20139
20186
|
return t ? e.filter((e) => e.toLowerCase().includes(t)) : e;
|
|
20140
20187
|
}, [e, n]), c = s.length > 0;
|
|
@@ -20168,7 +20215,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20168
20215
|
children: /* @__PURE__ */ U("div", {
|
|
20169
20216
|
className: "seal-function__debugger__log__values",
|
|
20170
20217
|
children: s.map((e, t) => {
|
|
20171
|
-
let n =
|
|
20218
|
+
let n = mb(e);
|
|
20172
20219
|
return /* @__PURE__ */ U(fa, {
|
|
20173
20220
|
data: n,
|
|
20174
20221
|
shouldExpandNodeInitially: () => !1,
|
|
@@ -20179,11 +20226,11 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20179
20226
|
children: i
|
|
20180
20227
|
}), ": "] })), e.length >= 1) {
|
|
20181
20228
|
let i = [...e];
|
|
20182
|
-
i.pop(), i = i.reverse(), r.push(
|
|
20229
|
+
i.pop(), i = i.reverse(), r.push(ub(a)(pb(n, i), t));
|
|
20183
20230
|
}
|
|
20184
20231
|
return /* @__PURE__ */ U(H, { children: r });
|
|
20185
20232
|
},
|
|
20186
|
-
valueRenderer:
|
|
20233
|
+
valueRenderer: fb(a),
|
|
20187
20234
|
theme: {
|
|
20188
20235
|
base00: "var(--card)",
|
|
20189
20236
|
base03: "var(--seal-color-text-base)",
|
|
@@ -20216,12 +20263,12 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20216
20263
|
})
|
|
20217
20264
|
]
|
|
20218
20265
|
});
|
|
20219
|
-
},
|
|
20266
|
+
}, ub = (e) => (t, n) => {
|
|
20220
20267
|
if (n === "Object") {
|
|
20221
20268
|
let n = Object.entries(t), r = n.reduce((t, [r, i], a) => [...t, /* @__PURE__ */ W("span", { children: [
|
|
20222
20269
|
r,
|
|
20223
20270
|
": ",
|
|
20224
|
-
|
|
20271
|
+
fb(e)(db(i), i),
|
|
20225
20272
|
a !== n.length - 1 && /* @__PURE__ */ U(H, { children: ", " })
|
|
20226
20273
|
] }, r)], []);
|
|
20227
20274
|
return /* @__PURE__ */ W(H, { children: [
|
|
@@ -20231,7 +20278,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20231
20278
|
] });
|
|
20232
20279
|
}
|
|
20233
20280
|
if (n === "Array") {
|
|
20234
|
-
let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ W("span", { children: [
|
|
20281
|
+
let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ W("span", { children: [fb(e)(db(r), r), i !== n.length - 1 && /* @__PURE__ */ U(H, { children: ", " })] }, i)], []);
|
|
20235
20282
|
return /* @__PURE__ */ W(H, { children: [
|
|
20236
20283
|
n.length > 2 ? `(${n.length})` : "",
|
|
20237
20284
|
" [",
|
|
@@ -20240,13 +20287,13 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20240
20287
|
] });
|
|
20241
20288
|
}
|
|
20242
20289
|
return null;
|
|
20243
|
-
},
|
|
20290
|
+
}, db = (e) => {
|
|
20244
20291
|
switch (!0) {
|
|
20245
20292
|
case Array.isArray(e): return `Array(${e.length})`;
|
|
20246
20293
|
case typeof e == "object": return "{...}";
|
|
20247
20294
|
default: return JSON.stringify(e);
|
|
20248
20295
|
}
|
|
20249
|
-
},
|
|
20296
|
+
}, fb = (e) => (t, n) => {
|
|
20250
20297
|
let r = t;
|
|
20251
20298
|
return typeof n == "string" ? r.startsWith("\"Error:") ? /* @__PURE__ */ U("span", {
|
|
20252
20299
|
style: { color: e.error },
|
|
@@ -20264,13 +20311,13 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20264
20311
|
style: { color: e.number },
|
|
20265
20312
|
children: r
|
|
20266
20313
|
}) : r;
|
|
20267
|
-
},
|
|
20314
|
+
}, pb = (e, t) => t.reduce((e, t) => e && e[t] ? e[t] : null, e), mb = (e) => {
|
|
20268
20315
|
if (typeof e == "string" && (e = e.trim(), e)) try {
|
|
20269
20316
|
return JSON.parse(e);
|
|
20270
20317
|
} catch {
|
|
20271
20318
|
return `[UNSERIALIZED]: ${e}`;
|
|
20272
20319
|
}
|
|
20273
|
-
},
|
|
20320
|
+
}, hb = {
|
|
20274
20321
|
dark: {
|
|
20275
20322
|
base00: "var(--card)",
|
|
20276
20323
|
base03: "var(--seal-color-text-base)",
|
|
@@ -20283,15 +20330,15 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20283
20330
|
base0B: "var(--seal-color-text-base)",
|
|
20284
20331
|
base0D: "var(--seal-color-text-base)"
|
|
20285
20332
|
}
|
|
20286
|
-
},
|
|
20287
|
-
...
|
|
20333
|
+
}, gb = (e) => ({
|
|
20334
|
+
...hb[e],
|
|
20288
20335
|
base00: "var(--card)",
|
|
20289
20336
|
base03: "var(--seal-color-text-base)",
|
|
20290
20337
|
base0B: "var(--seal-color-text-base)",
|
|
20291
20338
|
base0D: "var(--seal-color-text-base)",
|
|
20292
20339
|
tree: { display: "inline-block" }
|
|
20293
|
-
}),
|
|
20294
|
-
let n =
|
|
20340
|
+
}), _b = ({ input: e, output: t }) => {
|
|
20341
|
+
let n = gb(fc() ?? "light"), [r, i] = P.useState(null);
|
|
20295
20342
|
return e == null && t == null ? null : /* @__PURE__ */ U("div", {
|
|
20296
20343
|
className: "border-b border-[var(--seal-color-border-fade)] text-xs [font-family:var(--mono-font-family)]",
|
|
20297
20344
|
children: [{
|
|
@@ -20328,9 +20375,9 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20328
20375
|
}, e);
|
|
20329
20376
|
})
|
|
20330
20377
|
});
|
|
20331
|
-
},
|
|
20378
|
+
}, vb = /* @__PURE__ */ function(e) {
|
|
20332
20379
|
return e.Console = "Console", e.Libraries = "Libraries", e;
|
|
20333
|
-
}(
|
|
20380
|
+
}(vb || {}), yb = ({ trace: e, editor: t, libraries: n = [], editorValue: r, disabled: i }) => {
|
|
20334
20381
|
let a = e?.traceData?.log || [], [s, c] = z("Console"), [l, u] = z(""), d = o();
|
|
20335
20382
|
return /* @__PURE__ */ U("div", {
|
|
20336
20383
|
className: "h-full border-l border-[var(--border)]",
|
|
@@ -20342,7 +20389,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20342
20389
|
rootClassName: "seal-inline-tabs",
|
|
20343
20390
|
size: "small",
|
|
20344
20391
|
style: { width: "100%" },
|
|
20345
|
-
items: Object.values(
|
|
20392
|
+
items: Object.values(vb).map((e) => ({
|
|
20346
20393
|
key: e,
|
|
20347
20394
|
label: e
|
|
20348
20395
|
})),
|
|
@@ -20365,7 +20412,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20365
20412
|
}), /* @__PURE__ */ U("div", {
|
|
20366
20413
|
className: "grow overflow-y-auto",
|
|
20367
20414
|
children: q(s).with("Console", () => /* @__PURE__ */ W(H, { children: [
|
|
20368
|
-
e && /* @__PURE__ */ U(
|
|
20415
|
+
e && /* @__PURE__ */ U(_b, {
|
|
20369
20416
|
input: e.input,
|
|
20370
20417
|
output: e.output
|
|
20371
20418
|
}),
|
|
@@ -20379,18 +20426,18 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20379
20426
|
className: "h-7 w-full min-w-0 rounded-md border border-border bg-muted/40 px-2 text-xs outline-none focus:border-primary/50"
|
|
20380
20427
|
})
|
|
20381
20428
|
}),
|
|
20382
|
-
a.length === 0 && /* @__PURE__ */ U(
|
|
20429
|
+
a.length === 0 && /* @__PURE__ */ U(lb, {
|
|
20383
20430
|
lines: ["\"Info: Use console.log and run simulation to debug your code.\""],
|
|
20384
20431
|
msSinceRun: null
|
|
20385
20432
|
}),
|
|
20386
|
-
a.map((e, t) => /* @__PURE__ */ U(
|
|
20433
|
+
a.map((e, t) => /* @__PURE__ */ U(lb, {
|
|
20387
20434
|
lines: e.lines,
|
|
20388
20435
|
msSinceRun: e.msSinceRun,
|
|
20389
20436
|
filter: l
|
|
20390
20437
|
}, t))
|
|
20391
20438
|
] })).with("Libraries", () => /* @__PURE__ */ U("div", {
|
|
20392
20439
|
className: "flex flex-col",
|
|
20393
|
-
children: n.map((e) => /* @__PURE__ */ U(
|
|
20440
|
+
children: n.map((e) => /* @__PURE__ */ U(bb, {
|
|
20394
20441
|
lib: e,
|
|
20395
20442
|
disabled: i,
|
|
20396
20443
|
editorValue: r,
|
|
@@ -20404,14 +20451,14 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20404
20451
|
})]
|
|
20405
20452
|
})
|
|
20406
20453
|
});
|
|
20407
|
-
},
|
|
20454
|
+
}, bb = ({ lib: e, onImport: t, editorValue: n, disabled: r }) => {
|
|
20408
20455
|
let i = o(), a = L(() => !n || !n.includes(`from "${e.name}"`) && !n.includes(`from '${e.name}'`), [e.name, n]);
|
|
20409
20456
|
return /* @__PURE__ */ W("div", {
|
|
20410
20457
|
className: "flex items-center gap-2 border-b border-[var(--seal-color-border-fade)] p-2 no-underline",
|
|
20411
20458
|
children: [
|
|
20412
20459
|
/* @__PURE__ */ U("img", {
|
|
20413
20460
|
alt: "TypeScript Library",
|
|
20414
|
-
src:
|
|
20461
|
+
src: sb,
|
|
20415
20462
|
height: 18
|
|
20416
20463
|
}),
|
|
20417
20464
|
/* @__PURE__ */ U(Z.Text, {
|
|
@@ -20453,12 +20500,12 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20453
20500
|
})
|
|
20454
20501
|
]
|
|
20455
20502
|
}, e.name);
|
|
20456
|
-
},
|
|
20503
|
+
}, xb = (e) => Sb(e.toJson()), Sb = (e) => q(e).with("String", () => "string").with("Bool", () => "boolean").with("Number", () => "number").with("Null", () => "null").with("Any", () => "any").with({ Object: K.select() }, (e) => `{${Object.entries(e).map(([e, t]) => [e, Sb(t)].join(":")).join(",")}}`).with({ Array: K.select() }, (e) => `${Sb(e)}[]`).with({ Const: K.select() }, (e) => `"${e}"`).with({ Enum: [K._, K.select()] }, (e) => e.map((e) => `"${e}"`).join(" | ")).exhaustive(), Cb = {
|
|
20457
20504
|
Hint: 1,
|
|
20458
20505
|
Info: 2,
|
|
20459
20506
|
Warning: 4,
|
|
20460
20507
|
Error: 8
|
|
20461
|
-
},
|
|
20508
|
+
}, wb = ({ disabled: e = !1, disableDebug: t, language: n = "javascript", defaultValue: r, value: i, onChange: a, trace: o, onMonacoReady: s, onEditorMount: c, error: l, inputData: u, previousValue: d, permission: f = "edit:full", libraries: p = gh }) => {
|
|
20462
20509
|
let m = ra(), h = R(!1), g = fc(), [_, v] = z(), [y, b] = z(), x = Mi((e) => {
|
|
20463
20510
|
a?.(e);
|
|
20464
20511
|
}, 100), [S, C] = z(), [w, T] = z(), E = Ni(() => S?.layout(), 100, { trailing: !0 }), D = Ni(() => w?.layout(), 100, { trailing: !0 });
|
|
@@ -20490,7 +20537,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20490
20537
|
}, []), I(() => {
|
|
20491
20538
|
if (!m) return;
|
|
20492
20539
|
let e = "any";
|
|
20493
|
-
Ms() && (e =
|
|
20540
|
+
Ms() && (e = xb(Bn(u))), m.languages.typescript.javascriptDefaults.addExtraLib(`
|
|
20494
20541
|
type Input = ${e};
|
|
20495
20542
|
type Output = Promise<any>;
|
|
20496
20543
|
|
|
@@ -20513,7 +20560,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20513
20560
|
if (!r) return;
|
|
20514
20561
|
let i = new m.Range(t, r.getLineFirstNonWhitespaceColumn(t), t, r.getLineLastNonWhitespaceColumn(t));
|
|
20515
20562
|
m.editor.setModelMarkers(r, "gorules", [{
|
|
20516
|
-
severity:
|
|
20563
|
+
severity: Cb.Error,
|
|
20517
20564
|
message: n,
|
|
20518
20565
|
startLineNumber: i.startLineNumber,
|
|
20519
20566
|
endLineNumber: i.endLineNumber,
|
|
@@ -20557,7 +20604,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20557
20604
|
theme: g === "dark" ? "vs-dark" : "light",
|
|
20558
20605
|
height: "100%",
|
|
20559
20606
|
options: {
|
|
20560
|
-
...
|
|
20607
|
+
...Tb,
|
|
20561
20608
|
readOnly: !0
|
|
20562
20609
|
}
|
|
20563
20610
|
}) : /* @__PURE__ */ U(ta, {
|
|
@@ -20573,13 +20620,13 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20573
20620
|
theme: g === "dark" ? "vs-dark" : "light",
|
|
20574
20621
|
height: "100%",
|
|
20575
20622
|
options: {
|
|
20576
|
-
...
|
|
20623
|
+
...Tb,
|
|
20577
20624
|
readOnly: e || f !== "edit:full"
|
|
20578
20625
|
}
|
|
20579
20626
|
})
|
|
20580
20627
|
}), !t && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(sa, {}), /* @__PURE__ */ U(aa, {
|
|
20581
20628
|
minSize: 25,
|
|
20582
|
-
children: !t && /* @__PURE__ */ U(
|
|
20629
|
+
children: !t && /* @__PURE__ */ U(yb, {
|
|
20583
20630
|
libraries: p,
|
|
20584
20631
|
trace: o,
|
|
20585
20632
|
editor: S,
|
|
@@ -20589,7 +20636,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20589
20636
|
})] })]
|
|
20590
20637
|
})
|
|
20591
20638
|
}) });
|
|
20592
|
-
},
|
|
20639
|
+
}, Tb = {
|
|
20593
20640
|
automaticLayout: !0,
|
|
20594
20641
|
contextmenu: !1,
|
|
20595
20642
|
fontSize: 13,
|
|
@@ -20603,11 +20650,11 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20603
20650
|
horizontalScrollbarSize: 4,
|
|
20604
20651
|
horizontalSliderSize: 4
|
|
20605
20652
|
}
|
|
20606
|
-
},
|
|
20653
|
+
}, Eb = /* @__PURE__ */ e({ Function: () => wb });
|
|
20607
20654
|
//#endregion
|
|
20608
20655
|
//#region src/index.ts
|
|
20609
20656
|
typeof document < "u" && !document.querySelector(".seal-root") && console.warn("[seal-editor] LEGACY token injection is active (no .seal-root wrapper found) — wrap your app in .seal-root before v2.0. See ADR-023.");
|
|
20610
20657
|
//#endregion
|
|
20611
|
-
export {
|
|
20658
|
+
export { Hy as AUTO_SYNC_DEBOUNCE_MS, xe as COLUMN_FIELD_TYPE_OPTIONS, nf as CodeEditor, uy as CustomFunctionTable, he as CustomKind, ye as DECISION_GRAPH_CONTENT_TYPE, _y as DecisionGraph, Cm as DecisionTable, hc as DictionaryProvider, rm as DiffAutosizeTextArea, nm as DiffCodeEditor, cm as DiffIcon, em as DiffInput, Zp as DiffRadio, tm as DiffSelect, $p as DiffSwitch, Cg as Expression, Lf as ExpressionBuilder, ib as FixturesPanel, wb as Function, Gh as GraphDecisionNode, Jh as GraphNode, Jy as GraphSimulator, s as I18nProvider, p as INPUT_CONTRACT_VERSION, ly as InstanceEditor, gc as JdmConfigProvider, qs as MODE_EXTRAS, Wh as NodeColor, ue as NodeKind, Zm as NodeTypeKind, M as OUTPUT_FIELD_TYPE_OPTIONS, Fy as SimulatorEditor, u_ as TabRequest, py as ToolbarAnchor, $f as TypedInput, Dh as addStrikethrough, ge as anyNodeSchema, f as applySchemaTextToInputContract, Oh as buildDiffString, b as buildRequestExampleTemplateFromDefinitions, D as buildRequestSchemaFromDefinitions, C_ as calculateDiffGraph, dy as clusterToolbarItems, pd as codemirror, Qf as coerceToTypedValue, be as columnEnumSchema, N as columnFieldTypeSchema, Ah as compareAndUnifyLists, kh as compareStringFields, C as computeExampleDrift, nb as computeGraphDiff, fe as contractExamplesToSources, vy as createJdmNode, a as createT, pe as customNodeSchema, Ys as darkTokens, Se as decisionModelSchema, ae as decisionNodeSchema, se as decisionTableSchema, wh as definePack, _e as edgeSchema, Ns as ensureWasmLoaded, me as expressionNodeSchema, le as functionNodeSchema, d as getRequestDefinitions, g as getRequestExampleSources, y as getRequestSchemaSourceValue, de as hasExampleDrift, ce as inputNodeSchema, ob as jsonSchemaToVariableType, Js as lightTokens, x as migrateRequestExampleDataByDefinitions, j as nodeSchema, N_ as nodeSpecification, we as normalizeRequestDefinitionOrders, ne as normalizeRequestFieldKey, re as normalizeRequestJsonKeys, Ce as outputFieldTypeSchema, Ee as outputNodeSchema, T_ as processEdges, w_ as processNodes, w as readRequestInputContract, m as requestSchemaFingerprint, Ch as resolveCustomNode, v as resolveRequestSchemaValue, ld as setUdfCompletions, A as stringifyRequestSchemaValue, ie as switchNodeSchema, h as updateRequestSchemaExamples, nh as useDecisionGraphActions, eh as useDecisionGraphListeners, rh as useDecisionGraphRaw, th as useDecisionGraphReferences, $ as useDecisionGraphState, mc as useDictionaries, ah as useEdgeDiff, uh as useGraphSerializer, ih as useNodeDiff, Eh as useNodeType, Rh as usePersistentState, Uy as useSimulatorAutoSync, o as useT, dh as useTabSerializer, fc as useThemeMode, Ps as useWasmReady, Te as validationSchema, _ as writeRequestInputContract };
|
|
20612
20659
|
|
|
20613
20660
|
//# sourceMappingURL=index.js.map
|