@oomol-lab/open-flow 0.1.0-beta.44 → 0.1.0-beta.46
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/browser/{createResourceDialog-Du9N-nez.js → createResourceDialog-BBssbW9p.js} +1 -1
- package/dist/browser/{flowChanges-DEJ7lAXE.js → flowChanges-BD_4ayXV.js} +1 -1
- package/dist/browser/{flowWorkspace-C0rpC2TZ.js → flowWorkspace-DxDnW4cl.js} +626 -619
- package/dist/browser/preview.js +11884 -11155
- package/dist/browser/workbench.js +4 -4
- package/dist/browser/{workbenchSelect-DVaCHnaa.js → workbenchSelect-B-53xKUm.js} +2702 -2691
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as e, o as t, r as n, t as r } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
|
-
import { $ as i, $t as a, A as o, B as s, Bn as c, Bt as l, C as u, Cn as d, D as f, Dn as p, E as m, En as h, Ft as g, G as _, Gt as v, Ht as y, I as b, It as x, J as S, Jt as C, K as w, Kt as T, L as E, Lt as D, M as O, Mt as k, N as A, Nt as j, O as M, On as N, Pt as P, Q as F, Qt as I, R as L, Rn as R, Rt as z, S as ee, Sn as B, T as V, Tn as te, U as ne, Ut as re, Vt as ie, W as ae, Wt as oe, X as se, Xt as ce, Y as le, Yt as ue, Z as de, Zt as fe, an as pe, bn as me, cn as he, ct as ge, dn as _e, et as ve, fn as ye, ft as be, gn as xe, hn as Se, in as Ce, it as we, j as Te, jn as Ee, jt as De, k as Oe, ln as ke, lt as Ae, mn as je, n as Me, nn as Ne, nt as Pe, on as Fe, pn as Ie, q as Le, qt as Re, rn as ze, rt as Be, sn as Ve, tn as He, un as Ue, ut as We, w as Ge, wn as Ke, x as qe, zn as Je, zt as Ye } from "./flowChanges-
|
|
2
|
+
import { $ as i, $t as a, A as o, B as s, Bn as c, Bt as l, C as u, Cn as d, D as f, Dn as p, E as m, En as h, Ft as g, G as _, Gt as v, Ht as y, I as b, It as x, J as S, Jt as C, K as w, Kt as T, L as E, Lt as D, M as O, Mt as k, N as A, Nt as j, O as M, On as N, Pt as P, Q as F, Qt as I, R as L, Rn as R, Rt as z, S as ee, Sn as B, T as V, Tn as te, U as ne, Ut as re, Vt as ie, W as ae, Wt as oe, X as se, Xt as ce, Y as le, Yt as ue, Z as de, Zt as fe, an as pe, bn as me, cn as he, ct as ge, dn as _e, et as ve, fn as ye, ft as be, gn as xe, hn as Se, in as Ce, it as we, j as Te, jn as Ee, jt as De, k as Oe, ln as ke, lt as Ae, mn as je, n as Me, nn as Ne, nt as Pe, on as Fe, pn as Ie, q as Le, qt as Re, rn as ze, rt as Be, sn as Ve, tn as He, un as Ue, ut as We, w as Ge, wn as Ke, x as qe, zn as Je, zt as Ye } from "./flowChanges-BD_4ayXV.js";
|
|
3
3
|
import { a as Xe, c as Ze, i as Qe, l as $e, n as et, r as tt, s as nt } from "./dist-Dz6Nglsd.js";
|
|
4
4
|
import { a as H, i as U, n as rt, r as it, t as at } from "./main-BDnNHhkU.js";
|
|
5
|
-
import { $n as ot, $r as st, $t as ct, An as lt, Ar as ut, At as dt, B as ft, Bn as pt, Br as mt, Bt as ht, C as gt, Cn as _t, Ct as vt, Dn as yt, Dt as bt, E as xt, En as St, Et as Ct, F as wt, Fr as W, Ft as Tt, G as Et, Gn as Dt, Gr as Ot, Gt as kt, H as At, Hn as jt, Hr as Mt, Ht as Nt, Ir as Pt, It as Ft, Jn as It, Jr as Lt, Jt as Rt, K as zt, Kn as Bt, Kr as Vt, Kt as Ht, Lr as Ut, Lt as Wt, Mn as Gt, Mt as Kt, Nt as qt, On as Jt, Ot as Yt, Pn as Xt, Pr as Zt, Pt as Qt, Qn as $t, Qr as en, Qt as tn, R as nn, Rr as rn, Rt as an, S as on, Sn as sn, St as cn, T as ln, Tn as un, Tt as dn, U as fn, Un as pn, Ut as mn, Vn as hn, Vr as gn, Vt as _n, W as vn, Wn as yn, Wr as bn, Wt as xn, Xn as Sn, Xr as Cn, Xt as wn, Yn as Tn, Yr as En, Yt as Dn, Zn as On, Zr as kn, Zt as An, _ as jn, _n as Mn, _r as Nn, _t as Pn, a as Fn, an as In, ar as Ln, at as Rn, b as zn, bn as Bn, bt as Vn, cn as Hn, cr as Un, ct as Wn, d as Gn, dn as Kn, dr as qn, dt as Jn, ei as Yn, en as Xn, f as Zn, fn as Qn, fr as $n, ft as er, g as tr, gn as nr, gr as rr, gt as ir, h as ar, hn as or, ht as sr, in as cr, ir as lr, j as ur, jn as dr, jt as fr, kn as pr, kr as mr, kt as hr, l as gr, ln as _r, lt as vr, m as yr, mn as br, mt as xr, n as Sr, ni as Cr, nn as wr, nr as Tr, o as Er, on as Dr, or as Or, p as kr, pn as Ar, pt as jr, q as Mr, qn as Nr, qr as Pr, qt as Fr, r as Ir, ri as Lr, rn as Rr, rr as zr, sn as Br, sr as Vr, st as Hr, t as Ur, ti as Wr, tn as Gr, tr as Kr, u as qr, un as Jr, ut as Yr, v as Xr, vn as Zr, vt as Qr, w as $r, wn as ei, wr as ti, x as ni, xn as ri, xr as ii, xt as ai, y as oi, yr as si, yt as ci, z as li, zn as ui, zr as di, zt as fi } from "./workbenchSelect-
|
|
5
|
+
import { $n as ot, $r as st, $t as ct, An as lt, Ar as ut, At as dt, B as ft, Bn as pt, Br as mt, Bt as ht, C as gt, Cn as _t, Ct as vt, Dn as yt, Dt as bt, E as xt, En as St, Et as Ct, F as wt, Fr as W, Ft as Tt, G as Et, Gn as Dt, Gr as Ot, Gt as kt, H as At, Hn as jt, Hr as Mt, Ht as Nt, Ir as Pt, It as Ft, Jn as It, Jr as Lt, Jt as Rt, K as zt, Kn as Bt, Kr as Vt, Kt as Ht, Lr as Ut, Lt as Wt, Mn as Gt, Mt as Kt, Nt as qt, On as Jt, Ot as Yt, Pn as Xt, Pr as Zt, Pt as Qt, Qn as $t, Qr as en, Qt as tn, R as nn, Rr as rn, Rt as an, S as on, Sn as sn, St as cn, T as ln, Tn as un, Tt as dn, U as fn, Un as pn, Ut as mn, Vn as hn, Vr as gn, Vt as _n, W as vn, Wn as yn, Wr as bn, Wt as xn, Xn as Sn, Xr as Cn, Xt as wn, Yn as Tn, Yr as En, Yt as Dn, Zn as On, Zr as kn, Zt as An, _ as jn, _n as Mn, _r as Nn, _t as Pn, a as Fn, an as In, ar as Ln, at as Rn, b as zn, bn as Bn, bt as Vn, cn as Hn, cr as Un, ct as Wn, d as Gn, dn as Kn, dr as qn, dt as Jn, ei as Yn, en as Xn, f as Zn, fn as Qn, fr as $n, ft as er, g as tr, gn as nr, gr as rr, gt as ir, h as ar, hn as or, ht as sr, in as cr, ir as lr, j as ur, jn as dr, jt as fr, kn as pr, kr as mr, kt as hr, l as gr, ln as _r, lt as vr, m as yr, mn as br, mt as xr, n as Sr, ni as Cr, nn as wr, nr as Tr, o as Er, on as Dr, or as Or, p as kr, pn as Ar, pt as jr, q as Mr, qn as Nr, qr as Pr, qt as Fr, r as Ir, ri as Lr, rn as Rr, rr as zr, sn as Br, sr as Vr, st as Hr, t as Ur, ti as Wr, tn as Gr, tr as Kr, u as qr, un as Jr, ut as Yr, v as Xr, vn as Zr, vt as Qr, w as $r, wn as ei, wr as ti, x as ni, xn as ri, xr as ii, xt as ai, y as oi, yr as si, yt as ci, z as li, zn as ui, zr as di, zt as fi } from "./workbenchSelect-B-53xKUm.js";
|
|
6
6
|
import { i as pi, n as mi, r as hi, t as gi } from "./dist-CoszrK7m.js";
|
|
7
7
|
import { a as _i, i as vi, l as yi, n as bi, o as xi, r as Si, s as Ci, t as wi } from "./value-B_yE9ean.js";
|
|
8
8
|
import { n as Ti, r as Ei } from "./flowRunInputEditorStore-rVbwoTfN.js";
|
|
@@ -908,40 +908,41 @@ var $a = G.forwardRef(function({ className: e, ...t }, n) {
|
|
|
908
908
|
...t
|
|
909
909
|
});
|
|
910
910
|
}), eo = Ni(() => import("./markdownContent-DP6aYNZN.js"));
|
|
911
|
-
function to({ title: e, content: t, disabled: n,
|
|
912
|
-
let
|
|
913
|
-
return J(() =>
|
|
911
|
+
function to({ title: e, content: t, disabled: n = !1, readOnly: r, dark: i, onSave: a }) {
|
|
912
|
+
let o = U(), [s, c] = X(t), [l, u] = X(!1);
|
|
913
|
+
return J(() => c(t), [t]), /* @__PURE__ */ Q("section", {
|
|
914
914
|
className: "flex h-full min-h-0 min-w-0 flex-col p-3",
|
|
915
915
|
children: /* @__PURE__ */ $(Ja, {
|
|
916
916
|
className: "min-h-0 flex-1",
|
|
917
|
-
value:
|
|
918
|
-
onValueChange: (e) =>
|
|
917
|
+
value: l ? "source" : "markdown",
|
|
918
|
+
onValueChange: (e) => u(e === "source"),
|
|
919
919
|
children: [
|
|
920
920
|
/* @__PURE__ */ $(Xa, {
|
|
921
|
-
"aria-label":
|
|
921
|
+
"aria-label": o("inspector.title"),
|
|
922
922
|
variant: "flat",
|
|
923
923
|
className: "w-full shrink-0",
|
|
924
924
|
children: [/* @__PURE__ */ Q(Za, {
|
|
925
925
|
value: "source",
|
|
926
|
-
children:
|
|
926
|
+
children: o("inspector.comment.source")
|
|
927
927
|
}), /* @__PURE__ */ Q(Za, {
|
|
928
928
|
value: "markdown",
|
|
929
|
-
children:
|
|
929
|
+
children: o("inspector.comment.preview")
|
|
930
930
|
})]
|
|
931
931
|
}),
|
|
932
932
|
/* @__PURE__ */ Q(Qa, {
|
|
933
933
|
value: "source",
|
|
934
934
|
className: "flex min-h-0 flex-1 flex-col",
|
|
935
935
|
children: /* @__PURE__ */ Q($a, {
|
|
936
|
-
"aria-label":
|
|
936
|
+
"aria-label": o("inspector.comment.source"),
|
|
937
937
|
className: "min-h-0 flex-1 resize-none field-sizing-fixed",
|
|
938
938
|
disabled: n,
|
|
939
|
-
|
|
940
|
-
|
|
939
|
+
readOnly: r,
|
|
940
|
+
value: s,
|
|
941
|
+
onChange: (e) => c(e.target.value),
|
|
941
942
|
onBlur: () => {
|
|
942
|
-
!n &&
|
|
943
|
+
!r && !n && s !== t && a({
|
|
943
944
|
title: e,
|
|
944
|
-
content:
|
|
945
|
+
content: s
|
|
945
946
|
});
|
|
946
947
|
}
|
|
947
948
|
})
|
|
@@ -951,12 +952,12 @@ function to({ title: e, content: t, disabled: n, dark: r, onSave: i }) {
|
|
|
951
952
|
className: "min-h-0 flex-1 overflow-auto rounded-xl border border-[color-mix(in_srgb,var(--open-flow-comment-border)_45%,transparent)] bg-[var(--open-flow-comment-content)] p-3",
|
|
952
953
|
children: /* @__PURE__ */ Q("div", {
|
|
953
954
|
className: "markdown-body min-w-0",
|
|
954
|
-
onDoubleClick: () =>
|
|
955
|
+
onDoubleClick: () => u(!0),
|
|
955
956
|
children: /* @__PURE__ */ Q(ki, {
|
|
956
957
|
fallback: null,
|
|
957
958
|
children: /* @__PURE__ */ Q(eo, {
|
|
958
|
-
dark:
|
|
959
|
-
text:
|
|
959
|
+
dark: i,
|
|
960
|
+
text: s,
|
|
960
961
|
mermaid: !0
|
|
961
962
|
})
|
|
962
963
|
})
|
|
@@ -36174,9 +36175,25 @@ var cB = 1, lB = new class {
|
|
|
36174
36175
|
});
|
|
36175
36176
|
sB("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
36176
36177
|
//#endregion
|
|
36178
|
+
//#region src/base/common/formatDuration.ts
|
|
36179
|
+
function pB(e) {
|
|
36180
|
+
let t = Math.max(0, e), n = [];
|
|
36181
|
+
for (let [e, r] of [
|
|
36182
|
+
["d", 864e5],
|
|
36183
|
+
["h", 36e5],
|
|
36184
|
+
["m", 6e4],
|
|
36185
|
+
["s", 1e3],
|
|
36186
|
+
["ms", 1]
|
|
36187
|
+
]) {
|
|
36188
|
+
let i = Math.floor(t / r);
|
|
36189
|
+
if (i > 0 && n.push(`${i}${e}`), t %= r, n.length === 2) break;
|
|
36190
|
+
}
|
|
36191
|
+
return n.join(" ") || "0ms";
|
|
36192
|
+
}
|
|
36193
|
+
//#endregion
|
|
36177
36194
|
//#region src/canvas/browser/graph/Nodes/components/RunChips.tsx
|
|
36178
|
-
function
|
|
36179
|
-
let a = U(), o = ro(), s = t.runId;
|
|
36195
|
+
function mB({ label: e, run: t, children: n, icon: r, status: i }) {
|
|
36196
|
+
let a = U(), o = ro()(), s = t.runId;
|
|
36180
36197
|
return /* @__PURE__ */ $(P, { children: [/* @__PURE__ */ $(Ye, {
|
|
36181
36198
|
render: /* @__PURE__ */ Q("button", {
|
|
36182
36199
|
type: "button",
|
|
@@ -36189,7 +36206,7 @@ function pB({ label: e, run: t, children: n, icon: r, status: i }) {
|
|
|
36189
36206
|
"aria-hidden": "true"
|
|
36190
36207
|
}), /* @__PURE__ */ Q("span", { children: e })]
|
|
36191
36208
|
}), /* @__PURE__ */ $(g, {
|
|
36192
|
-
container: o
|
|
36209
|
+
container: o,
|
|
36193
36210
|
side: "bottom",
|
|
36194
36211
|
align: "start",
|
|
36195
36212
|
className: `${oB.popup} ${i ? oB.statusPopup : ""} nokey`,
|
|
@@ -36211,20 +36228,23 @@ function pB({ label: e, run: t, children: n, icon: r, status: i }) {
|
|
|
36211
36228
|
dateTime: t.finishedAt,
|
|
36212
36229
|
children: new Date(t.finishedAt).toLocaleString()
|
|
36213
36230
|
}) })] }),
|
|
36214
|
-
s != null && /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: a("canvasCard.runId") }), /* @__PURE__ */ Q("dd", { children: /* @__PURE__ */ Q(
|
|
36215
|
-
|
|
36216
|
-
|
|
36217
|
-
|
|
36218
|
-
|
|
36219
|
-
|
|
36220
|
-
|
|
36221
|
-
|
|
36222
|
-
|
|
36223
|
-
|
|
36224
|
-
|
|
36225
|
-
|
|
36226
|
-
|
|
36227
|
-
|
|
36231
|
+
s != null && /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: a("canvasCard.runId") }), /* @__PURE__ */ Q("dd", { children: /* @__PURE__ */ Q(ao, {
|
|
36232
|
+
getPopupContainer: () => o,
|
|
36233
|
+
title: a("copy"),
|
|
36234
|
+
children: /* @__PURE__ */ Q("button", {
|
|
36235
|
+
"aria-label": `${a("copy")} ${s}`,
|
|
36236
|
+
className: oB.runId,
|
|
36237
|
+
onClick: async () => {
|
|
36238
|
+
try {
|
|
36239
|
+
await navigator.clipboard.writeText(s);
|
|
36240
|
+
} catch {
|
|
36241
|
+
return;
|
|
36242
|
+
}
|
|
36243
|
+
fB.success(a("copied"));
|
|
36244
|
+
},
|
|
36245
|
+
type: "button",
|
|
36246
|
+
children: /* @__PURE__ */ Q("code", { children: s })
|
|
36247
|
+
})
|
|
36228
36248
|
}) })] })
|
|
36229
36249
|
]
|
|
36230
36250
|
}),
|
|
@@ -36235,7 +36255,7 @@ function pB({ label: e, run: t, children: n, icon: r, status: i }) {
|
|
|
36235
36255
|
]
|
|
36236
36256
|
})] });
|
|
36237
36257
|
}
|
|
36238
|
-
function
|
|
36258
|
+
function hB({ images: e, run: t, title: n }) {
|
|
36239
36259
|
let r = U(), [i, a] = X(), o = e[0];
|
|
36240
36260
|
return o == null ? null : /* @__PURE__ */ $("div", {
|
|
36241
36261
|
className: oB.preview,
|
|
@@ -36247,7 +36267,7 @@ function mB({ images: e, run: t, title: n }) {
|
|
|
36247
36267
|
onError: () => a(o)
|
|
36248
36268
|
}), /* @__PURE__ */ Q("div", {
|
|
36249
36269
|
className: oB.previewAction,
|
|
36250
|
-
children: /* @__PURE__ */ Q(
|
|
36270
|
+
children: /* @__PURE__ */ Q(mB, {
|
|
36251
36271
|
label: r("canvasCard.images", { count: e.length }),
|
|
36252
36272
|
run: t,
|
|
36253
36273
|
children: /* @__PURE__ */ Q("div", {
|
|
@@ -36268,11 +36288,11 @@ function mB({ images: e, run: t, title: n }) {
|
|
|
36268
36288
|
})]
|
|
36269
36289
|
});
|
|
36270
36290
|
}
|
|
36271
|
-
function
|
|
36272
|
-
let t = U(), n = e.startedAt != null && e.finishedAt != null ? Date.parse(e.finishedAt) - Date.parse(e.startedAt) : void 0, r = `${t(`canvasCard.status.${e.status}`)}${e.status == "running" && e.progress != null && Number.isFinite(e.progress) ? ` · ${Math.round(Math.min(100, Math.max(0, e.progress)))}%` : ""}${n != null && Number.isFinite(n) && n >= 0 ? ` · ${(n
|
|
36291
|
+
function gB({ run: e }) {
|
|
36292
|
+
let t = U(), n = e.startedAt != null && e.finishedAt != null ? Date.parse(e.finishedAt) - Date.parse(e.startedAt) : void 0, r = `${t(`canvasCard.status.${e.status}`)}${e.status == "running" && e.progress != null && Number.isFinite(e.progress) ? ` · ${Math.round(Math.min(100, Math.max(0, e.progress)))}%` : ""}${n != null && Number.isFinite(n) && n >= 0 ? ` · ${pB(n)}` : ""}`, i = e.status, a = i == "running" ? "i-codicon:loading" : i == "success" ? "i-codicon:check" : i == "error" ? "i-codicon:error" : i == "waiting" ? "i-carbon:time" : "i-codicon:circle-outline";
|
|
36273
36293
|
return /* @__PURE__ */ $("div", {
|
|
36274
36294
|
className: oB.row,
|
|
36275
|
-
children: [/* @__PURE__ */ Q(
|
|
36295
|
+
children: [/* @__PURE__ */ Q(mB, {
|
|
36276
36296
|
label: r,
|
|
36277
36297
|
run: e,
|
|
36278
36298
|
icon: a,
|
|
@@ -36284,7 +36304,7 @@ function hB({ run: e }) {
|
|
|
36284
36304
|
}), /* @__PURE__ */ $("div", {
|
|
36285
36305
|
className: oB.links,
|
|
36286
36306
|
children: [
|
|
36287
|
-
e.outputs !== void 0 && /* @__PURE__ */ Q(
|
|
36307
|
+
e.outputs !== void 0 && /* @__PURE__ */ Q(mB, {
|
|
36288
36308
|
label: t("canvasCard.result"),
|
|
36289
36309
|
run: e,
|
|
36290
36310
|
icon: "i-codicon:output",
|
|
@@ -36293,7 +36313,7 @@ function hB({ run: e }) {
|
|
|
36293
36313
|
shouldExpandNode: Pv
|
|
36294
36314
|
})
|
|
36295
36315
|
}),
|
|
36296
|
-
(e.logs?.length ?? 0) > 0 && /* @__PURE__ */ Q(
|
|
36316
|
+
(e.logs?.length ?? 0) > 0 && /* @__PURE__ */ Q(mB, {
|
|
36297
36317
|
label: t("canvasCard.logs", { count: e.logs?.length ?? 0 }),
|
|
36298
36318
|
run: e,
|
|
36299
36319
|
icon: "i-codicon:list-unordered",
|
|
@@ -36306,7 +36326,7 @@ function hB({ run: e }) {
|
|
|
36306
36326
|
] }), /* @__PURE__ */ Q("pre", { children: e.message })]
|
|
36307
36327
|
}, `${e.time}-${t}`))
|
|
36308
36328
|
}),
|
|
36309
|
-
(e.artifacts?.length ?? 0) > 0 && /* @__PURE__ */ $(
|
|
36329
|
+
(e.artifacts?.length ?? 0) > 0 && /* @__PURE__ */ $(mB, {
|
|
36310
36330
|
label: t("canvasCard.files", { count: e.artifacts?.length ?? 0 }),
|
|
36311
36331
|
run: e,
|
|
36312
36332
|
icon: "i-codicon:files",
|
|
@@ -36319,7 +36339,7 @@ function hB({ run: e }) {
|
|
|
36319
36339
|
})]
|
|
36320
36340
|
});
|
|
36321
36341
|
}
|
|
36322
|
-
var
|
|
36342
|
+
var _B = {
|
|
36323
36343
|
trigger: "ValuePreview_trigger_4d5e2",
|
|
36324
36344
|
popup: "ValuePreview_popup_4d5e2",
|
|
36325
36345
|
content: "ValuePreview_content_4d5e2",
|
|
@@ -36327,7 +36347,7 @@ var gB = {
|
|
|
36327
36347
|
};
|
|
36328
36348
|
//#endregion
|
|
36329
36349
|
//#region src/canvas/browser/graph/Nodes/components/ValuePreview.tsx
|
|
36330
|
-
function
|
|
36350
|
+
function vB({ name: e, value: t }) {
|
|
36331
36351
|
let n = ro();
|
|
36332
36352
|
return /* @__PURE__ */ $(P, { children: [/* @__PURE__ */ Q(Ye, {
|
|
36333
36353
|
openOnHover: !0,
|
|
@@ -36335,7 +36355,7 @@ function _B({ name: e, value: t }) {
|
|
|
36335
36355
|
closeDelay: 150,
|
|
36336
36356
|
render: /* @__PURE__ */ Q("button", {
|
|
36337
36357
|
type: "button",
|
|
36338
|
-
className: `${
|
|
36358
|
+
className: `${_B.trigger} nodrag nopan nokey`,
|
|
36339
36359
|
onClick: (e) => e.stopPropagation()
|
|
36340
36360
|
}),
|
|
36341
36361
|
children: JSON.stringify(t)
|
|
@@ -36344,14 +36364,14 @@ function _B({ name: e, value: t }) {
|
|
|
36344
36364
|
side: "top",
|
|
36345
36365
|
align: "center",
|
|
36346
36366
|
sideOffset: 8,
|
|
36347
|
-
className: `${
|
|
36367
|
+
className: `${_B.popup} nodrag nopan nowheel nokey`,
|
|
36348
36368
|
"aria-label": e,
|
|
36349
36369
|
"data-canvas-control-scope": !0,
|
|
36350
36370
|
onClick: (e) => e.stopPropagation(),
|
|
36351
36371
|
children: /* @__PURE__ */ Q(ie, {
|
|
36352
|
-
className:
|
|
36372
|
+
className: _B.content,
|
|
36353
36373
|
children: /* @__PURE__ */ Q(Iv, {
|
|
36354
|
-
className:
|
|
36374
|
+
className: _B.json,
|
|
36355
36375
|
data: t,
|
|
36356
36376
|
shouldExpandNode: Pv
|
|
36357
36377
|
})
|
|
@@ -36360,11 +36380,11 @@ function _B({ name: e, value: t }) {
|
|
|
36360
36380
|
}
|
|
36361
36381
|
//#endregion
|
|
36362
36382
|
//#region src/canvas/browser/graph/Nodes/components/CanvasNode.tsx
|
|
36363
|
-
function
|
|
36383
|
+
function yB({ nodeStore: e, problem: t, branches: n, compact: r = !1, compactContent: i = !1 }) {
|
|
36364
36384
|
let a = U(), o = it(), s = H(e.$.selected), c = H(e.content$), l = c.kind === "task" ? c.actionSummary : void 0, u = l == null ? void 0 : a("canvasCard.actionSummary", {
|
|
36365
36385
|
actions: l.count,
|
|
36366
36386
|
providers: l.providers.length
|
|
36367
|
-
}), d = c.title, { values: f, summary: p, schedules: m, images: h, inline: g, hidden: _ } = Wz(c), v = c?.kind ?? "task", y = c.kind == "trigger" ? c.presentation?.kind == "manual" || c.presentation?.kind == "cron" || c.presentation?.kind == "webhook" ? a(`canvasCard.triggerSource.${c.presentation.kind}`) : c.presentation?.source : void 0, b = g ? p : c.kind == "task" ? c.executorName || a("canvasCard.kind.task") : c.kind == "trigger" && y ? `${a("canvasCard.kind.trigger")} · ${y}` : a(`canvasCard.kind.${v}`), x = c?.run == null || c.run.status == "idle" ? void 0 : /* @__PURE__ */ Q(
|
|
36387
|
+
}), d = c.title, { values: f, summary: p, schedules: m, images: h, inline: g, hidden: _ } = Wz(c), v = c?.kind ?? "task", y = c.kind == "trigger" ? c.presentation?.kind == "manual" || c.presentation?.kind == "cron" || c.presentation?.kind == "webhook" ? a(`canvasCard.triggerSource.${c.presentation.kind}`) : c.presentation?.source : void 0, b = g ? p : c.kind == "task" ? c.executorName || a("canvasCard.kind.task") : c.kind == "trigger" && y ? `${a("canvasCard.kind.trigger")} · ${y}` : a(`canvasCard.kind.${v}`), x = c?.run == null || c.run.status == "idle" ? void 0 : /* @__PURE__ */ Q(gB, { run: c.run });
|
|
36368
36388
|
return /* @__PURE__ */ Q("div", {
|
|
36369
36389
|
className: Px,
|
|
36370
36390
|
children: /* @__PURE__ */ Q(Yz, {
|
|
@@ -36449,11 +36469,11 @@ function vB({ nodeStore: e, problem: t, branches: n, compact: r = !1, compactCon
|
|
|
36449
36469
|
tabIndex: 0,
|
|
36450
36470
|
children: e.handle
|
|
36451
36471
|
})
|
|
36452
|
-
}), /* @__PURE__ */ Q(
|
|
36472
|
+
}), /* @__PURE__ */ Q(vB, {
|
|
36453
36473
|
name: e.handle,
|
|
36454
36474
|
value: e.value
|
|
36455
36475
|
})] }, e.handle)) }),
|
|
36456
|
-
c?.run && h.length > 0 && /* @__PURE__ */ Q(
|
|
36476
|
+
c?.run && h.length > 0 && /* @__PURE__ */ Q(hB, {
|
|
36457
36477
|
images: h,
|
|
36458
36478
|
run: c.run,
|
|
36459
36479
|
title: d
|
|
@@ -36469,7 +36489,7 @@ function vB({ nodeStore: e, problem: t, branches: n, compact: r = !1, compactCon
|
|
|
36469
36489
|
}
|
|
36470
36490
|
//#endregion
|
|
36471
36491
|
//#region src/canvas/browser/graph/Nodes/components/CommentNodeActions.tsx
|
|
36472
|
-
function
|
|
36492
|
+
function bB({ canvasStore: e, nodeStore: t }) {
|
|
36473
36493
|
let n = U(), r = H(e.$.editable), i = H(t.$.sourceCode), a = H(t.$.empty);
|
|
36474
36494
|
return !r || a ? null : /* @__PURE__ */ Q(ao, {
|
|
36475
36495
|
placement: "top",
|
|
@@ -36489,30 +36509,30 @@ function yB({ canvasStore: e, nodeStore: t }) {
|
|
|
36489
36509
|
})
|
|
36490
36510
|
});
|
|
36491
36511
|
}
|
|
36492
|
-
var
|
|
36512
|
+
var xB = {
|
|
36493
36513
|
body: "CommentNodeContent_body_01471",
|
|
36494
36514
|
container: "CommentNodeContent_container_01471",
|
|
36495
36515
|
resizeButton: "CommentNodeContent_resizeButton_01471",
|
|
36496
36516
|
sourceCode: "CommentNodeContent_sourceCode_01471",
|
|
36497
36517
|
markdown: "CommentNodeContent_markdown_01471",
|
|
36498
36518
|
taskCheckbox: "CommentNodeContent_taskCheckbox_01471"
|
|
36499
|
-
},
|
|
36519
|
+
}, SB = {
|
|
36500
36520
|
container: "markdownPreview_container_c03ca",
|
|
36501
36521
|
body: "markdownPreview_body_c03ca",
|
|
36502
36522
|
draggable: "markdownPreview_draggable_c03ca"
|
|
36503
|
-
},
|
|
36523
|
+
}, CB = Ni(() => import("./markdownContent-DP6aYNZN.js")), wB = /* @__PURE__ */ Pi(({ dark: e, unstyled: t, components: n, contentClassName: r, content: i, draggable: a, onDoubleClick: o }) => {
|
|
36504
36524
|
let [s, c] = X(!1);
|
|
36505
36525
|
return /* @__PURE__ */ Q("div", {
|
|
36506
36526
|
tabIndex: -1,
|
|
36507
|
-
className: di(
|
|
36527
|
+
className: di(SB.container, a ? SB.draggable : "nodrag", s && "nowheel"),
|
|
36508
36528
|
onFocus: () => c(!0),
|
|
36509
36529
|
onBlur: () => c(!1),
|
|
36510
36530
|
onDoubleClick: o,
|
|
36511
36531
|
children: /* @__PURE__ */ Q("div", {
|
|
36512
|
-
className: `${
|
|
36532
|
+
className: `${SB.body} markdown-body`,
|
|
36513
36533
|
children: /* @__PURE__ */ Q(ki, {
|
|
36514
36534
|
fallback: null,
|
|
36515
|
-
children: /* @__PURE__ */ Q(
|
|
36535
|
+
children: /* @__PURE__ */ Q(CB, {
|
|
36516
36536
|
components: n,
|
|
36517
36537
|
dark: e,
|
|
36518
36538
|
unstyled: t,
|
|
@@ -36523,13 +36543,13 @@ var bB = {
|
|
|
36523
36543
|
})
|
|
36524
36544
|
})
|
|
36525
36545
|
});
|
|
36526
|
-
}),
|
|
36527
|
-
className:
|
|
36546
|
+
}), TB = { input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ Q(Je, {
|
|
36547
|
+
className: xB.taskCheckbox,
|
|
36528
36548
|
checked: t ?? !1,
|
|
36529
36549
|
readOnly: !0,
|
|
36530
36550
|
tabIndex: -1
|
|
36531
36551
|
}) : null };
|
|
36532
|
-
function
|
|
36552
|
+
function EB({ store: e }) {
|
|
36533
36553
|
let t = U(), n = Fi(TE), r = H(e.$.sourceCode), i = H(e.$.empty), a = H(e.$$.content), o = H(OE().$.editable), s = H(e.$.selected), c = o && (r || i && s), l = Y(s), u = Y(!1), d = Y(null), [f, p] = X(!1), [m, h] = X(!1);
|
|
36534
36554
|
return J(() => {
|
|
36535
36555
|
l.current && !s && (u.current = !0), l.current = s, s && (u.current = !1), !(!u.current || f) && (u.current = !1, e.$.sourceCode.value && (o && e.saveContent(d.current?.value ?? e.$.content.value ?? ""), e.$$.sourceCode.set(!1)));
|
|
@@ -36539,9 +36559,9 @@ function TB({ store: e }) {
|
|
|
36539
36559
|
o,
|
|
36540
36560
|
e
|
|
36541
36561
|
]), /* @__PURE__ */ $("div", {
|
|
36542
|
-
className: `${
|
|
36562
|
+
className: `${xB.body} nopan nowheel`,
|
|
36543
36563
|
children: [/* @__PURE__ */ Q("div", {
|
|
36544
|
-
className: di(
|
|
36564
|
+
className: di(xB.container, c && xB.sourceCode, !c && "open-flow-canvas-node-handle"),
|
|
36545
36565
|
children: c ? /* @__PURE__ */ Q($a, {
|
|
36546
36566
|
ref: d,
|
|
36547
36567
|
"aria-label": t("comment.source"),
|
|
@@ -36560,22 +36580,22 @@ function TB({ store: e }) {
|
|
|
36560
36580
|
onBlur: (t) => {
|
|
36561
36581
|
h(!1), o && !f && e.saveContent(t.target.value);
|
|
36562
36582
|
}
|
|
36563
|
-
}) : /* @__PURE__ */ Q(
|
|
36564
|
-
components:
|
|
36583
|
+
}) : /* @__PURE__ */ Q(wB, {
|
|
36584
|
+
components: TB,
|
|
36565
36585
|
unstyled: !0,
|
|
36566
|
-
contentClassName:
|
|
36586
|
+
contentClassName: xB.markdown,
|
|
36567
36587
|
content: a ?? "",
|
|
36568
36588
|
dark: n,
|
|
36569
36589
|
draggable: !0
|
|
36570
36590
|
})
|
|
36571
|
-
}), o && /* @__PURE__ */ Q(
|
|
36591
|
+
}), o && /* @__PURE__ */ Q(DB, { store: e })]
|
|
36572
36592
|
});
|
|
36573
36593
|
}
|
|
36574
|
-
function
|
|
36594
|
+
function DB({ store: e }) {
|
|
36575
36595
|
let t = U(), n = _F(), r = Y(null);
|
|
36576
36596
|
return /* @__PURE__ */ Q("button", {
|
|
36577
36597
|
type: "button",
|
|
36578
|
-
className: `${
|
|
36598
|
+
className: `${xB.resizeButton} nodrag nopan`,
|
|
36579
36599
|
"aria-label": t("comment.resize"),
|
|
36580
36600
|
title: t("comment.resize"),
|
|
36581
36601
|
onDoubleClick: (e) => e.stopPropagation(),
|
|
@@ -36618,7 +36638,7 @@ function EB({ store: e }) {
|
|
|
36618
36638
|
})
|
|
36619
36639
|
});
|
|
36620
36640
|
}
|
|
36621
|
-
var
|
|
36641
|
+
var OB = {
|
|
36622
36642
|
container: "NodeHead_container_56ebb",
|
|
36623
36643
|
title: "NodeHead_title_56ebb",
|
|
36624
36644
|
connection: "NodeHead_connection_56ebb",
|
|
@@ -36631,7 +36651,7 @@ var DB = {
|
|
|
36631
36651
|
floatBarButton: "NodeHead_floatBarButton_56ebb",
|
|
36632
36652
|
nodeIcon: "NodeHead_nodeIcon_56ebb",
|
|
36633
36653
|
action: "NodeHead_action_56ebb"
|
|
36634
|
-
},
|
|
36654
|
+
}, kB = {
|
|
36635
36655
|
input: "input_input_b8701",
|
|
36636
36656
|
wrapper: "input_wrapper_b8701",
|
|
36637
36657
|
multiline: "input_multiline_b8701",
|
|
@@ -36649,20 +36669,20 @@ var DB = {
|
|
|
36649
36669
|
};
|
|
36650
36670
|
//#endregion
|
|
36651
36671
|
//#region src/canvas/browser/components/input.tsx
|
|
36652
|
-
function
|
|
36672
|
+
function AB(e) {
|
|
36653
36673
|
let t = e.currentTarget;
|
|
36654
36674
|
t && document.activeElement !== t && (t.setPointerCapture(e.pointerId), document.addEventListener("pointerup", function e() {
|
|
36655
36675
|
t.selectionStart === t.selectionEnd && t.select(), document.removeEventListener("pointerup", e);
|
|
36656
36676
|
}));
|
|
36657
36677
|
}
|
|
36658
|
-
var
|
|
36678
|
+
var jB = /*#__PURE__*/ Os(function(e, t) {
|
|
36659
36679
|
let [n, r] = X(e.value ?? ""), [i, a] = X(!1), o = Y(!1), s = Y(null), c = Y(!1);
|
|
36660
36680
|
Ri(() => {
|
|
36661
36681
|
o.current ? e.value === n && (o.current = !1) : r(e.value ?? "");
|
|
36662
36682
|
}, [e.value]);
|
|
36663
36683
|
let l = {
|
|
36664
36684
|
id: e.id,
|
|
36665
|
-
className: di(
|
|
36685
|
+
className: di(kB.input, i && "nowheel nodrag", e.monospace && kB.monospace, e.multiline && kB.multiline, e.height !== !1 && kB.resize, e.warning && kB.warning),
|
|
36666
36686
|
style: {
|
|
36667
36687
|
height: e.height || void 0,
|
|
36668
36688
|
maxHeight: e.height ? void 0 : e.maxHeight,
|
|
@@ -36682,7 +36702,7 @@ var AB = /*#__PURE__*/ Os(function(e, t) {
|
|
|
36682
36702
|
onChange: (t) => {
|
|
36683
36703
|
o.current = !0, r(t.target.value), e.onChange?.(t.target.value, r);
|
|
36684
36704
|
},
|
|
36685
|
-
onPointerDown: e.selectOnFocus ?
|
|
36705
|
+
onPointerDown: e.selectOnFocus ? AB : void 0,
|
|
36686
36706
|
onCompositionStart: () => {
|
|
36687
36707
|
c.current = !0;
|
|
36688
36708
|
},
|
|
@@ -36734,11 +36754,11 @@ var AB = /*#__PURE__*/ Os(function(e, t) {
|
|
|
36734
36754
|
}, [e.onRealChange]);
|
|
36735
36755
|
let d = +!!e.suffix + +!!e.isClearable, f = /* @__PURE__ */ $("div", {
|
|
36736
36756
|
ref: s,
|
|
36737
|
-
className: di(
|
|
36757
|
+
className: di(kB.wrapper, d === 2 && kB.twoSuffix, d === 1 && kB.oneSuffix, e.isSuffix && kB.isSuffix, e.className),
|
|
36738
36758
|
children: [
|
|
36739
36759
|
u,
|
|
36740
36760
|
e.doubleClickToSelect && /* @__PURE__ */ Q("div", {
|
|
36741
|
-
className:
|
|
36761
|
+
className: kB.mask,
|
|
36742
36762
|
title: e.title,
|
|
36743
36763
|
onDoubleClick: () => {
|
|
36744
36764
|
if (e.readOnly) return;
|
|
@@ -36747,14 +36767,14 @@ var AB = /*#__PURE__*/ Os(function(e, t) {
|
|
|
36747
36767
|
}
|
|
36748
36768
|
}),
|
|
36749
36769
|
e.prefix && /* @__PURE__ */ Q("div", {
|
|
36750
|
-
className:
|
|
36770
|
+
className: kB.prefix,
|
|
36751
36771
|
children: e.prefix
|
|
36752
36772
|
}),
|
|
36753
36773
|
(e.suffix || e.isClearable) && /* @__PURE__ */ $("div", {
|
|
36754
|
-
className:
|
|
36774
|
+
className: kB.suffix,
|
|
36755
36775
|
children: [
|
|
36756
36776
|
e.isClearable && /* @__PURE__ */ Q(W, {
|
|
36757
|
-
className:
|
|
36777
|
+
className: kB.clear,
|
|
36758
36778
|
onClick: () => e.onChange?.(null, r),
|
|
36759
36779
|
onMouseDown: wa,
|
|
36760
36780
|
size: "icon-xs",
|
|
@@ -36762,7 +36782,7 @@ var AB = /*#__PURE__*/ Os(function(e, t) {
|
|
|
36762
36782
|
variant: "ghost",
|
|
36763
36783
|
children: /* @__PURE__ */ Q("i", { className: "i-codicon:close" })
|
|
36764
36784
|
}),
|
|
36765
|
-
e.isClearable && e.suffix && /* @__PURE__ */ Q("div", { className:
|
|
36785
|
+
e.isClearable && e.suffix && /* @__PURE__ */ Q("div", { className: kB.clearIndicator }),
|
|
36766
36786
|
e.suffix
|
|
36767
36787
|
]
|
|
36768
36788
|
})
|
|
@@ -36776,12 +36796,12 @@ var AB = /*#__PURE__*/ Os(function(e, t) {
|
|
|
36776
36796
|
});
|
|
36777
36797
|
//#endregion
|
|
36778
36798
|
//#region src/canvas/browser/graph/Nodes/components/NodeHead.tsx
|
|
36779
|
-
function
|
|
36799
|
+
function MB({ store: e }) {
|
|
36780
36800
|
let t = U(), n = H(e.$.title), [r, i] = X(!1);
|
|
36781
|
-
return /* @__PURE__ */ Q(
|
|
36801
|
+
return /* @__PURE__ */ Q(jB, {
|
|
36782
36802
|
returnToCommit: !0,
|
|
36783
36803
|
doubleClickToSelect: !0,
|
|
36784
|
-
className: `${
|
|
36804
|
+
className: `${OB.title}${r ? " nodrag" : ""}`,
|
|
36785
36805
|
value: n,
|
|
36786
36806
|
title: n,
|
|
36787
36807
|
placeholder: t("blockEditor.nodeTitlePlaceholder"),
|
|
@@ -36792,7 +36812,7 @@ function jB({ store: e }) {
|
|
|
36792
36812
|
}
|
|
36793
36813
|
//#endregion
|
|
36794
36814
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/context-menu/root/ContextMenuRoot.js
|
|
36795
|
-
function
|
|
36815
|
+
function NB(e) {
|
|
36796
36816
|
let [t, n] = G.useState({ getBoundingClientRect() {
|
|
36797
36817
|
return DOMRect.fromRect({
|
|
36798
36818
|
width: 0,
|
|
@@ -36821,7 +36841,7 @@ function MB(e) {
|
|
|
36821
36841
|
}
|
|
36822
36842
|
//#endregion
|
|
36823
36843
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/context-menu/trigger/ContextMenuTrigger.js
|
|
36824
|
-
var
|
|
36844
|
+
var PB = 500, FB = /*#__PURE__*/ G.forwardRef(function(e, t) {
|
|
36825
36845
|
let { render: n, className: r, style: i, ...a } = e, { setAnchor: o, actionsRef: s, internalBackdropRef: c, backdropRef: l, positionerRef: u, allowMouseUpTriggerRef: d, initialCursorPointRef: f, rootId: p } = fo(!1), { store: m } = lo(!1), h = m.useState("open"), g = m.useState("disabled"), _ = G.useRef(null), v = G.useRef(null), y = Xt(), b = Xt(), x = G.useRef(!1);
|
|
36826
36846
|
function S(e, t, n) {
|
|
36827
36847
|
let r = n.type.startsWith("touch");
|
|
@@ -36835,7 +36855,7 @@ var NB = 500, PB = /*#__PURE__*/ G.forwardRef(function(e, t) {
|
|
|
36835
36855
|
x: e,
|
|
36836
36856
|
y: t
|
|
36837
36857
|
});
|
|
36838
|
-
} }), x.current = !1, s.current?.setOpen(!0, qn(ti, n)), b.start(
|
|
36858
|
+
} }), x.current = !1, s.current?.setOpen(!0, qn(ti, n)), b.start(PB, () => {
|
|
36839
36859
|
x.current = !0;
|
|
36840
36860
|
});
|
|
36841
36861
|
}
|
|
@@ -36857,7 +36877,7 @@ var NB = 500, PB = /*#__PURE__*/ G.forwardRef(function(e, t) {
|
|
|
36857
36877
|
v.current = {
|
|
36858
36878
|
x: t.clientX,
|
|
36859
36879
|
y: t.clientY
|
|
36860
|
-
}, y.start(
|
|
36880
|
+
}, y.start(PB, () => {
|
|
36861
36881
|
v.current && S(v.current.x, v.current.y, e.nativeEvent);
|
|
36862
36882
|
});
|
|
36863
36883
|
}
|
|
@@ -36897,22 +36917,22 @@ var NB = 500, PB = /*#__PURE__*/ G.forwardRef(function(e, t) {
|
|
|
36897
36917
|
stateAttributesMapping: xn
|
|
36898
36918
|
});
|
|
36899
36919
|
});
|
|
36900
|
-
process.env.NODE_ENV !== "production" && (
|
|
36920
|
+
process.env.NODE_ENV !== "production" && (FB.displayName = "ContextMenuTrigger");
|
|
36901
36921
|
//#endregion
|
|
36902
36922
|
//#region src/ui/browser/context-menu.tsx
|
|
36903
|
-
function
|
|
36904
|
-
return /* @__PURE__ */ Q(
|
|
36923
|
+
function IB(e) {
|
|
36924
|
+
return /* @__PURE__ */ Q(NB, {
|
|
36905
36925
|
"data-slot": "context-menu",
|
|
36906
36926
|
...e
|
|
36907
36927
|
});
|
|
36908
36928
|
}
|
|
36909
|
-
function
|
|
36910
|
-
return /* @__PURE__ */ Q(
|
|
36929
|
+
function LB(e) {
|
|
36930
|
+
return /* @__PURE__ */ Q(FB, {
|
|
36911
36931
|
"data-slot": "context-menu-trigger",
|
|
36912
36932
|
...e
|
|
36913
36933
|
});
|
|
36914
36934
|
}
|
|
36915
|
-
function
|
|
36935
|
+
function RB({ align: e = "start", alignOffset: t = 0, className: n, container: r, side: i = "bottom", sideOffset: a = 0, ...o }) {
|
|
36916
36936
|
return /* @__PURE__ */ Q(jo, {
|
|
36917
36937
|
container: r,
|
|
36918
36938
|
children: /* @__PURE__ */ Q(Mo, {
|
|
@@ -36929,13 +36949,13 @@ function LB({ align: e = "start", alignOffset: t = 0, className: n, container: r
|
|
|
36929
36949
|
})
|
|
36930
36950
|
});
|
|
36931
36951
|
}
|
|
36932
|
-
function
|
|
36952
|
+
function zB(e) {
|
|
36933
36953
|
return /* @__PURE__ */ Q(wo, {
|
|
36934
36954
|
"data-slot": "context-menu-group",
|
|
36935
36955
|
...e
|
|
36936
36956
|
});
|
|
36937
36957
|
}
|
|
36938
|
-
function
|
|
36958
|
+
function BB({ className: e, variant: t = "default", ...n }) {
|
|
36939
36959
|
return /* @__PURE__ */ Q(Eo, {
|
|
36940
36960
|
className: Ut("relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
36941
36961
|
"data-slot": "context-menu-item",
|
|
@@ -36945,9 +36965,9 @@ function zB({ className: e, variant: t = "default", ...n }) {
|
|
|
36945
36965
|
}
|
|
36946
36966
|
//#endregion
|
|
36947
36967
|
//#region src/canvas/browser/graph/inspectSelection.tsx
|
|
36948
|
-
var
|
|
36949
|
-
function
|
|
36950
|
-
let { onInspect: n, expanded: r } = Fi(
|
|
36968
|
+
var VB = Ai({ expanded: !1 });
|
|
36969
|
+
function HB({ className: e, danger: t = !1 }) {
|
|
36970
|
+
let { onInspect: n, expanded: r } = Fi(VB), i = U();
|
|
36951
36971
|
if (n == null) return null;
|
|
36952
36972
|
let a = i("nodeActions.inspect");
|
|
36953
36973
|
return /* @__PURE__ */ Q(ao, {
|
|
@@ -36969,26 +36989,26 @@ function VB({ className: e, danger: t = !1 }) {
|
|
|
36969
36989
|
}
|
|
36970
36990
|
//#endregion
|
|
36971
36991
|
//#region src/canvas/browser/graph/Nodes/components/useShowNodeError.ts
|
|
36972
|
-
function
|
|
36992
|
+
function UB(e) {
|
|
36973
36993
|
return !!H(ZT.to(e)?.$.hasError);
|
|
36974
36994
|
}
|
|
36975
36995
|
//#endregion
|
|
36976
36996
|
//#region src/canvas/browser/graph/Nodes/components/NodeHeadMoreMenu.tsx
|
|
36977
|
-
function
|
|
36978
|
-
let n = U(), r = ro(), i = Kz(), a = H(e.$.editable), o =
|
|
36997
|
+
function WB({ canvasStore: e, children: t }) {
|
|
36998
|
+
let n = U(), r = ro(), i = Kz(), a = H(e.$.editable), o = GB({
|
|
36979
36999
|
t: n,
|
|
36980
37000
|
nodeStore: i,
|
|
36981
37001
|
editable: a,
|
|
36982
37002
|
onDelete: ba(a && e.canDeleteNodes) && (() => e.deleteNodes([i]))
|
|
36983
37003
|
});
|
|
36984
|
-
return /* @__PURE__ */ $(
|
|
37004
|
+
return /* @__PURE__ */ $(IB, { children: [/* @__PURE__ */ Q(LB, {
|
|
36985
37005
|
className: "flex-1",
|
|
36986
37006
|
children: t
|
|
36987
|
-
}), /* @__PURE__ */ Q(
|
|
37007
|
+
}), /* @__PURE__ */ Q(RB, {
|
|
36988
37008
|
align: "start",
|
|
36989
|
-
className:
|
|
37009
|
+
className: OB.menu,
|
|
36990
37010
|
container: r(),
|
|
36991
|
-
children: /* @__PURE__ */ Q(
|
|
37011
|
+
children: /* @__PURE__ */ Q(zB, { children: o.map((e) => e && /* @__PURE__ */ $(BB, {
|
|
36992
37012
|
disabled: e.disabled,
|
|
36993
37013
|
onClick: e.onClick,
|
|
36994
37014
|
variant: e.danger ? "destructive" : "default",
|
|
@@ -36996,7 +37016,7 @@ function UB({ canvasStore: e, children: t }) {
|
|
|
36996
37016
|
}, e.key)) })
|
|
36997
37017
|
})] });
|
|
36998
37018
|
}
|
|
36999
|
-
function
|
|
37019
|
+
function GB({ t: e, nodeStore: t, onDelete: n, editable: r }) {
|
|
37000
37020
|
let i = H(ZT.to(t)?.ignore), { duplicateNode: a } = t;
|
|
37001
37021
|
return ya([
|
|
37002
37022
|
r && a && {
|
|
@@ -37020,13 +37040,13 @@ function WB({ t: e, nodeStore: t, onDelete: n, editable: r }) {
|
|
|
37020
37040
|
}
|
|
37021
37041
|
]);
|
|
37022
37042
|
}
|
|
37023
|
-
var
|
|
37024
|
-
let n = U(), { zoom: r } = AR(), i = gF((e) => e.userSelectionActive), a = ro(), o = H(e.$.editable), s =
|
|
37043
|
+
var KB = /* @__PURE__ */ Pi(function({ canvasStore: e, nodeStore: t }) {
|
|
37044
|
+
let n = U(), { zoom: r } = AR(), i = gF((e) => e.userSelectionActive), a = ro(), o = H(e.$.editable), s = GB({
|
|
37025
37045
|
t: n,
|
|
37026
37046
|
nodeStore: t,
|
|
37027
37047
|
editable: o,
|
|
37028
37048
|
onDelete: o && e.canDeleteNodes ? () => e.deleteNodes([t]) : void 0
|
|
37029
|
-
}), { onInspect: c } = Fi(
|
|
37049
|
+
}), { onInspect: c } = Fi(VB), l = o && c != null, u = UB(t), d = H(ZT.to(t)?.content$), f = YT.is(t) ? t : void 0, p = H(f?.$.content), m = H(f?.$.contentHidden), h = H(f?.$.sourceCode), g = d == null ? !!p?.trim() : Wz(d).collapsible, _ = d?.contentHidden ?? m ?? !1;
|
|
37030
37050
|
if (i) return null;
|
|
37031
37051
|
let v = s.filter((e) => !!e);
|
|
37032
37052
|
if (g && o && !h && e.canChangeNodeContentHidden) {
|
|
@@ -37044,10 +37064,10 @@ var GB = /* @__PURE__ */ Pi(function({ canvasStore: e, nodeStore: t }) {
|
|
|
37044
37064
|
}
|
|
37045
37065
|
return !l && v.length === 0 ? null : /* @__PURE__ */ $(xz, {
|
|
37046
37066
|
"data-tooltip-toolbar": !0,
|
|
37047
|
-
className:
|
|
37067
|
+
className: OB.floatBar,
|
|
37048
37068
|
offset: 12 - 8 * r,
|
|
37049
|
-
children: [l && /* @__PURE__ */ Q(
|
|
37050
|
-
className:
|
|
37069
|
+
children: [l && /* @__PURE__ */ Q(HB, {
|
|
37070
|
+
className: OB.floatBarButton,
|
|
37051
37071
|
danger: u
|
|
37052
37072
|
}), v.map((e) => /* @__PURE__ */ Q(ao, {
|
|
37053
37073
|
getPopupContainer: a,
|
|
@@ -37056,7 +37076,7 @@ var GB = /* @__PURE__ */ Pi(function({ canvasStore: e, nodeStore: t }) {
|
|
|
37056
37076
|
children: /* @__PURE__ */ Q(W, {
|
|
37057
37077
|
"aria-label": e.label,
|
|
37058
37078
|
"aria-expanded": e.expanded,
|
|
37059
|
-
className:
|
|
37079
|
+
className: OB.floatBarButton,
|
|
37060
37080
|
"data-danger": e.danger || void 0,
|
|
37061
37081
|
disabled: e.disabled,
|
|
37062
37082
|
onClick: e.onClick,
|
|
@@ -37069,7 +37089,7 @@ var GB = /* @__PURE__ */ Pi(function({ canvasStore: e, nodeStore: t }) {
|
|
|
37069
37089
|
});
|
|
37070
37090
|
//#endregion
|
|
37071
37091
|
//#region src/canvas/browser/graph/Nodes/components/CommentCard.tsx
|
|
37072
|
-
function
|
|
37092
|
+
function qB({ store: e }) {
|
|
37073
37093
|
let t = U(), n = OE(), r = H(e.$.title) ?? "", i = H(e.$.selected), a = H(e.$.contentHidden), o = H(e.$.sourceCode), s = H(e.$.size), c = a && !o, l = H(n.$.editable);
|
|
37074
37094
|
return /* @__PURE__ */ Q("div", {
|
|
37075
37095
|
className: Px,
|
|
@@ -37084,36 +37104,36 @@ function KB({ store: e }) {
|
|
|
37084
37104
|
tone: "comment",
|
|
37085
37105
|
fill: !c,
|
|
37086
37106
|
title: r,
|
|
37087
|
-
titleContent: /* @__PURE__ */ Q(
|
|
37107
|
+
titleContent: /* @__PURE__ */ Q(WB, {
|
|
37088
37108
|
canvasStore: n,
|
|
37089
|
-
children: l ? /* @__PURE__ */ Q(
|
|
37109
|
+
children: l ? /* @__PURE__ */ Q(MB, { store: e }) : /* @__PURE__ */ Q("span", { children: r })
|
|
37090
37110
|
}),
|
|
37091
37111
|
subtitle: t("addNode.comment"),
|
|
37092
37112
|
icon: /* @__PURE__ */ Q("i", { className: "i-codicon:note" }),
|
|
37093
37113
|
selected: i,
|
|
37094
|
-
actions: /* @__PURE__ */ Q(
|
|
37114
|
+
actions: /* @__PURE__ */ Q(bB, {
|
|
37095
37115
|
canvasStore: n,
|
|
37096
37116
|
nodeStore: e
|
|
37097
37117
|
}),
|
|
37098
37118
|
contentHidden: c,
|
|
37099
|
-
preview: /* @__PURE__ */ Q(
|
|
37119
|
+
preview: /* @__PURE__ */ Q(EB, { store: e })
|
|
37100
37120
|
})
|
|
37101
37121
|
});
|
|
37102
37122
|
}
|
|
37103
|
-
var
|
|
37104
|
-
return wE() === fE.None ? null : /* @__PURE__ */ Q(
|
|
37123
|
+
var JB = { wrapper: "NodeMinimap_wrapper_e79d7" }, YB = /* @__PURE__ */ Pi(function() {
|
|
37124
|
+
return wE() === fE.None ? null : /* @__PURE__ */ Q(XB, {});
|
|
37105
37125
|
});
|
|
37106
|
-
function
|
|
37126
|
+
function XB() {
|
|
37107
37127
|
let e = OE(), t = H(e.$.scale);
|
|
37108
37128
|
return /* @__PURE__ */ Q("div", {
|
|
37109
37129
|
style: { "--open-flow-canvas-scale": t },
|
|
37110
|
-
className: `${
|
|
37130
|
+
className: `${JB.wrapper} ${Px}`
|
|
37111
37131
|
});
|
|
37112
37132
|
}
|
|
37113
37133
|
//#endregion
|
|
37114
37134
|
//#region src/canvas/browser/graph/Nodes/components/NodeLayout.tsx
|
|
37115
|
-
var
|
|
37116
|
-
function
|
|
37135
|
+
var ZB = 320;
|
|
37136
|
+
function QB({ operand: e }) {
|
|
37117
37137
|
return typeof e == "string" ? e : e.kind == "environment" ? /* @__PURE__ */ Q("i", {
|
|
37118
37138
|
"aria-label": e.label,
|
|
37119
37139
|
className: "i-lucide-light:sliders-horizontal",
|
|
@@ -37131,14 +37151,14 @@ function ZB({ operand: e }) {
|
|
|
37131
37151
|
})
|
|
37132
37152
|
});
|
|
37133
37153
|
}
|
|
37134
|
-
function
|
|
37154
|
+
function $B({ item: e, t }) {
|
|
37135
37155
|
return e.groups.map((n, r) => {
|
|
37136
37156
|
let i = zz(e, n.expressions.length), a = n.expressions.map((e, r) => /* @__PURE__ */ $("span", {
|
|
37137
37157
|
className: kz.branchExpression,
|
|
37138
37158
|
children: [
|
|
37139
|
-
/* @__PURE__ */ Q(
|
|
37159
|
+
/* @__PURE__ */ Q(QB, { operand: e.left }),
|
|
37140
37160
|
/* @__PURE__ */ Q("span", { children: Lz(e.operator, t) }),
|
|
37141
|
-
e.right !== void 0 && /* @__PURE__ */ Q(
|
|
37161
|
+
e.right !== void 0 && /* @__PURE__ */ Q(QB, { operand: e.right }),
|
|
37142
37162
|
r < n.expressions.length - 1 && /* @__PURE__ */ Q("span", { children: "∧" })
|
|
37143
37163
|
]
|
|
37144
37164
|
}, r));
|
|
@@ -37153,8 +37173,8 @@ function QB({ item: e, t }) {
|
|
|
37153
37173
|
}, r);
|
|
37154
37174
|
});
|
|
37155
37175
|
}
|
|
37156
|
-
var
|
|
37157
|
-
let r = U(), i = H(ZT.to(t)?.content$), a = i?.kind == "condition" || i?.kind == "approval" || i?.kind == "wait" ? i.outputs.flatMap((e) => "handle" in e ? [e.handle] : []) : void 0, o = i != null && i.kind != "trigger" && i.kind != "value", s = H(e.$.editable), c = H(t.$.selected), l =
|
|
37176
|
+
var eV = /* @__PURE__ */ Pi(({ canvasStore: e, nodeStore: t, visible: n }) => {
|
|
37177
|
+
let r = U(), i = H(ZT.to(t)?.content$), a = i?.kind == "condition" || i?.kind == "approval" || i?.kind == "wait" ? i.outputs.flatMap((e) => "handle" in e ? [e.handle] : []) : void 0, o = i != null && i.kind != "trigger" && i.kind != "value", s = H(e.$.editable), c = H(t.$.selected), l = UB(t), u = l ? r("nodeStatus.hasError") : i?.run?.status == "error" ? r("canvasCard.status.error") : void 0, [d, f] = X(!1), [p, m] = X(!1), h = !l && p && (d || c === !0) && n;
|
|
37158
37178
|
J(() => {
|
|
37159
37179
|
if (!d || l) return;
|
|
37160
37180
|
let e = window.setTimeout(() => m(!0), 2e3);
|
|
@@ -37167,13 +37187,13 @@ var $B = /* @__PURE__ */ Pi(({ canvasStore: e, nodeStore: t, visible: n }) => {
|
|
|
37167
37187
|
l
|
|
37168
37188
|
]);
|
|
37169
37189
|
let g = H(ZT.to(t)?.ignore), _ = ZT.is(t) ? t : void 0, v = wE(), y = gF((e) => e.transform[2] <= .25), b = _ ? fE.None : n ? v : c ? fE.None : fE.Phase2, x = H(e.$.initialized), S = Y(x).current, C = H(_?.$.executionPortColor), w = u ? "var(--accent-red-1)" : void 0, T = i?.kind == "condition" ? i : void 0, E = {
|
|
37170
|
-
width: _ ?
|
|
37190
|
+
width: _ ? ZB : void 0,
|
|
37171
37191
|
"--node-selected-border-color": w,
|
|
37172
37192
|
"--execution-port-color": C,
|
|
37173
37193
|
"--execution-port-active-color": w,
|
|
37174
37194
|
"--execution-port-overlap": u ? "1px" : void 0,
|
|
37175
37195
|
"--node-selected-shadow": l ? "var(--node-error-selected-shadow)" : void 0
|
|
37176
|
-
}, D = _ ? /* @__PURE__ */ Q(
|
|
37196
|
+
}, D = _ ? /* @__PURE__ */ Q(yB, {
|
|
37177
37197
|
nodeStore: _,
|
|
37178
37198
|
compact: v !== fE.None,
|
|
37179
37199
|
compactContent: y,
|
|
@@ -37192,7 +37212,7 @@ var $B = /* @__PURE__ */ Pi(({ canvasStore: e, nodeStore: t, visible: n }) => {
|
|
|
37192
37212
|
className: kz.branchRule,
|
|
37193
37213
|
style: T && e !== T.defaultOutput ? { color: w } : void 0,
|
|
37194
37214
|
title: T && !o ? a : void 0,
|
|
37195
|
-
children: t != null && n == null && Rz(t) && (T?.diagnostics ?? 0) === 0 && T?.run?.status !== "error" ? /* @__PURE__ */ Q(
|
|
37215
|
+
children: t != null && n == null && Rz(t) && (T?.diagnostics ?? 0) === 0 && T?.run?.status !== "error" ? /* @__PURE__ */ Q($B, {
|
|
37196
37216
|
item: t,
|
|
37197
37217
|
t: r
|
|
37198
37218
|
}) : a
|
|
@@ -37206,7 +37226,7 @@ var $B = /* @__PURE__ */ Pi(({ canvasStore: e, nodeStore: t, visible: n }) => {
|
|
|
37206
37226
|
className: kz.branchName,
|
|
37207
37227
|
children: T?.defaultOutput === e ? "default" : e
|
|
37208
37228
|
}),
|
|
37209
|
-
/* @__PURE__ */ Q(
|
|
37229
|
+
/* @__PURE__ */ Q(tV, {
|
|
37210
37230
|
id: Wx(`$branch:${e}`),
|
|
37211
37231
|
type: "output",
|
|
37212
37232
|
isConnectable: s,
|
|
@@ -37226,11 +37246,11 @@ var $B = /* @__PURE__ */ Pi(({ canvasStore: e, nodeStore: t, visible: n }) => {
|
|
|
37226
37246
|
children: /* @__PURE__ */ $("div", {
|
|
37227
37247
|
className: di(kz.offsetContainer, g && kz.skipOuter),
|
|
37228
37248
|
children: [
|
|
37229
|
-
/* @__PURE__ */ Q(
|
|
37249
|
+
/* @__PURE__ */ Q(KB, {
|
|
37230
37250
|
canvasStore: e,
|
|
37231
37251
|
nodeStore: t
|
|
37232
37252
|
}),
|
|
37233
|
-
/* @__PURE__ */ Q(
|
|
37253
|
+
/* @__PURE__ */ Q(YB, {}),
|
|
37234
37254
|
/* @__PURE__ */ $("main", {
|
|
37235
37255
|
onPointerEnter: (e) => {
|
|
37236
37256
|
e.pointerType !== "touch" && f(!0);
|
|
@@ -37245,17 +37265,17 @@ var $B = /* @__PURE__ */ Pi(({ canvasStore: e, nodeStore: t, visible: n }) => {
|
|
|
37245
37265
|
}), /* @__PURE__ */ $("div", {
|
|
37246
37266
|
className: kz.executionHead,
|
|
37247
37267
|
children: [
|
|
37248
|
-
D ? /* @__PURE__ */ Q(
|
|
37268
|
+
D ? /* @__PURE__ */ Q(WB, {
|
|
37249
37269
|
canvasStore: e,
|
|
37250
37270
|
children: D
|
|
37251
|
-
}) : YT.is(t) ? /* @__PURE__ */ Q(
|
|
37252
|
-
o && /* @__PURE__ */ Q(
|
|
37271
|
+
}) : YT.is(t) ? /* @__PURE__ */ Q(qB, { store: t }) : null,
|
|
37272
|
+
o && /* @__PURE__ */ Q(tV, {
|
|
37253
37273
|
id: Wx("$in"),
|
|
37254
37274
|
type: "input",
|
|
37255
37275
|
isConnectable: s,
|
|
37256
37276
|
hintRequested: h
|
|
37257
37277
|
}),
|
|
37258
|
-
t.nodeType != Mx.CommentNode && a == null && /* @__PURE__ */ Q(
|
|
37278
|
+
t.nodeType != Mx.CommentNode && a == null && /* @__PURE__ */ Q(tV, {
|
|
37259
37279
|
id: Wx("$out"),
|
|
37260
37280
|
type: "output",
|
|
37261
37281
|
isConnectable: s,
|
|
@@ -37270,7 +37290,7 @@ var $B = /* @__PURE__ */ Pi(({ canvasStore: e, nodeStore: t, visible: n }) => {
|
|
|
37270
37290
|
})
|
|
37271
37291
|
});
|
|
37272
37292
|
});
|
|
37273
|
-
function
|
|
37293
|
+
function tV({ id: e, type: t, isConnectable: n, hintRequested: r }) {
|
|
37274
37294
|
let i = t == "input" ? "target" : "source", a = MR({ handleType: i }), o = aR((e) => e.inProgress && e.fromHandle.type != i), s = aR((e) => e.inProgress), c = n && a.length === 0 && !s, l = r && c, [u, d] = X(!1), [f, p] = X(!1);
|
|
37275
37295
|
return J(() => {
|
|
37276
37296
|
if (!l) {
|
|
@@ -37296,15 +37316,15 @@ function eV({ id: e, type: t, isConnectable: n, hintRequested: r }) {
|
|
|
37296
37316
|
}
|
|
37297
37317
|
//#endregion
|
|
37298
37318
|
//#region src/canvas/browser/graph/Nodes/usePaneRect.ts
|
|
37299
|
-
var
|
|
37300
|
-
function
|
|
37301
|
-
return Fi(
|
|
37319
|
+
var nV = /*#__PURE__*/ Ai(null);
|
|
37320
|
+
function rV() {
|
|
37321
|
+
return Fi(nV);
|
|
37302
37322
|
}
|
|
37303
|
-
var
|
|
37304
|
-
function
|
|
37323
|
+
var iV = 200, aV = 100;
|
|
37324
|
+
function oV(e, t) {
|
|
37305
37325
|
return e ? {
|
|
37306
|
-
x: -e.x / e.zoom -
|
|
37307
|
-
y: -e.y / e.zoom -
|
|
37326
|
+
x: -e.x / e.zoom - iV,
|
|
37327
|
+
y: -e.y / e.zoom - aV,
|
|
37308
37328
|
width: t.width / e.zoom + 400,
|
|
37309
37329
|
height: t.height / e.zoom + 200
|
|
37310
37330
|
} : {
|
|
@@ -37316,7 +37336,7 @@ function aV(e, t) {
|
|
|
37316
37336
|
}
|
|
37317
37337
|
//#endregion
|
|
37318
37338
|
//#region src/canvas/browser/graph/Nodes/useNodePlaceholder.ts
|
|
37319
|
-
var
|
|
37339
|
+
var sV = class e {
|
|
37320
37340
|
constructor() {
|
|
37321
37341
|
this.queue = [], this.map = /* @__PURE__ */ new Map(), this.delayTimer = 0;
|
|
37322
37342
|
}
|
|
@@ -37346,9 +37366,9 @@ var oV = class e {
|
|
|
37346
37366
|
dispose() {
|
|
37347
37367
|
clearTimeout(this.delayTimer), this.map.clear();
|
|
37348
37368
|
}
|
|
37349
|
-
},
|
|
37350
|
-
function
|
|
37351
|
-
let n =
|
|
37369
|
+
}, cV = /*#__PURE__*/ Ai(null);
|
|
37370
|
+
function lV(e, t) {
|
|
37371
|
+
let n = rV(), r = Fi(cV), [i, a] = X();
|
|
37352
37372
|
return J(() => {
|
|
37353
37373
|
let i = t.$, o = Qe((e) => {
|
|
37354
37374
|
if (e(i.selected)) return;
|
|
@@ -37362,7 +37382,7 @@ function cV(e, t) {
|
|
|
37362
37382
|
height: a
|
|
37363
37383
|
}) ? void 0 : t;
|
|
37364
37384
|
}), s = e.reaction(() => {
|
|
37365
|
-
r.delay(
|
|
37385
|
+
r.delay(sV.debounce);
|
|
37366
37386
|
}), c = o.subscribe((e) => {
|
|
37367
37387
|
r.set(t.nodeId, () => a(e));
|
|
37368
37388
|
});
|
|
@@ -37377,29 +37397,29 @@ function cV(e, t) {
|
|
|
37377
37397
|
}
|
|
37378
37398
|
//#endregion
|
|
37379
37399
|
//#region src/canvas/browser/graph/Nodes/BasicNode.tsx
|
|
37380
|
-
function
|
|
37381
|
-
return e === "default" && console.warn("designer: should not use default node type"), t ? /* @__PURE__ */ Q(
|
|
37400
|
+
function uV({ type: e, data: { store: t } }) {
|
|
37401
|
+
return e === "default" && console.warn("designer: should not use default node type"), t ? /* @__PURE__ */ Q(dV, { nodeStore: t }) : null;
|
|
37382
37402
|
}
|
|
37383
|
-
var
|
|
37384
|
-
let t = OE(), n = !
|
|
37385
|
-
return /* @__PURE__ */ Q(
|
|
37403
|
+
var dV = /*#__PURE__*/ Pi(function({ nodeStore: e }) {
|
|
37404
|
+
let t = OE(), n = !lV(t.$.viewport, e);
|
|
37405
|
+
return /* @__PURE__ */ Q(eV, {
|
|
37386
37406
|
canvasStore: t,
|
|
37387
37407
|
nodeStore: e,
|
|
37388
37408
|
visible: n
|
|
37389
37409
|
});
|
|
37390
|
-
}),
|
|
37391
|
-
default:
|
|
37392
|
-
[Mx.TaskNode]:
|
|
37393
|
-
[Mx.ValueNode]:
|
|
37394
|
-
[Mx.SubflowNode]:
|
|
37395
|
-
[Mx.ConditionNode]:
|
|
37396
|
-
[Mx.CommentNode]:
|
|
37397
|
-
[Mx.TriggerNode]:
|
|
37398
|
-
},
|
|
37410
|
+
}), fV = {
|
|
37411
|
+
default: uV,
|
|
37412
|
+
[Mx.TaskNode]: uV,
|
|
37413
|
+
[Mx.ValueNode]: uV,
|
|
37414
|
+
[Mx.SubflowNode]: uV,
|
|
37415
|
+
[Mx.ConditionNode]: uV,
|
|
37416
|
+
[Mx.CommentNode]: uV,
|
|
37417
|
+
[Mx.TriggerNode]: uV
|
|
37418
|
+
}, pV = { default: Oz }, mV = {
|
|
37399
37419
|
duration: 0,
|
|
37400
37420
|
padding: .15,
|
|
37401
37421
|
maxZoom: 1
|
|
37402
|
-
},
|
|
37422
|
+
}, hV = {
|
|
37403
37423
|
container: "ReactFlowContainer_container_c4c2b",
|
|
37404
37424
|
flow: "ReactFlowContainer_flow_c4c2b",
|
|
37405
37425
|
contextMenu: "ReactFlowContainer_contextMenu_c4c2b",
|
|
@@ -37421,10 +37441,10 @@ var uV = /*#__PURE__*/ Pi(function({ nodeStore: e }) {
|
|
|
37421
37441
|
viewOptions: "ReactFlowContainer_viewOptions_c4c2b",
|
|
37422
37442
|
viewOptionsClip: "ReactFlowContainer_viewOptionsClip_c4c2b",
|
|
37423
37443
|
viewSeparator: "ReactFlowContainer_viewSeparator_c4c2b"
|
|
37424
|
-
},
|
|
37444
|
+
}, gV = "application/oomol-designer/sharedBlock", _V = "application/oomol-designer/scriptlet", vV = "application/oomol-designer/value", yV = "application/oomol-designer/condition", bV = "application/oomol-designer/comment", xV = "application/oomol-designer/trigger", SV = (e) => e.getData(gV), CV = (e) => e.getData(_V), wV = (e) => e.types.includes(vV), TV = (e) => e.types.includes(yV), EV = (e) => e.types.includes(bV), DV = (e) => e.getData(xV);
|
|
37425
37445
|
//#endregion
|
|
37426
37446
|
//#region src/canvas/browser/graph/ReactFlowContainer/CanvasMiniMap.tsx
|
|
37427
|
-
function
|
|
37447
|
+
function OV({ miniMapExpanded$: e }) {
|
|
37428
37448
|
let t = U(), n = H(e);
|
|
37429
37449
|
return /* @__PURE__ */ $(hs, {
|
|
37430
37450
|
checked: n === !0,
|
|
@@ -37435,17 +37455,17 @@ function DV({ miniMapExpanded$: e }) {
|
|
|
37435
37455
|
}), t("miniMap")]
|
|
37436
37456
|
});
|
|
37437
37457
|
}
|
|
37438
|
-
function
|
|
37458
|
+
function kV({ miniMapExpanded$: e }) {
|
|
37439
37459
|
let t = U();
|
|
37440
37460
|
return H(e) === !0 ? /* @__PURE__ */ Q(fz, {
|
|
37441
37461
|
ariaLabel: t("miniMap"),
|
|
37442
|
-
className:
|
|
37462
|
+
className: hV.miniMap,
|
|
37443
37463
|
pannable: !0,
|
|
37444
37464
|
position: "bottom-left",
|
|
37445
37465
|
zoomable: !0
|
|
37446
37466
|
}) : null;
|
|
37447
37467
|
}
|
|
37448
|
-
function
|
|
37468
|
+
function AV({ miniMapExpanded$: e }) {
|
|
37449
37469
|
let t = U(), n = H(e);
|
|
37450
37470
|
return /* @__PURE__ */ Q(ao, {
|
|
37451
37471
|
placement: "top",
|
|
@@ -37466,7 +37486,7 @@ function kV({ miniMapExpanded$: e }) {
|
|
|
37466
37486
|
}
|
|
37467
37487
|
//#endregion
|
|
37468
37488
|
//#region src/canvas/browser/graph/ReactFlowContainer/CanvasControls.tsx
|
|
37469
|
-
function
|
|
37489
|
+
function jV({ interactiveMode$: e, defaultOpen: t = !1 }) {
|
|
37470
37490
|
let n = U(), r = H(e), [i, a] = X(t), o = ro();
|
|
37471
37491
|
return /* @__PURE__ */ $(P, {
|
|
37472
37492
|
open: i,
|
|
@@ -37476,7 +37496,7 @@ function AV({ interactiveMode$: e, defaultOpen: t = !1 }) {
|
|
|
37476
37496
|
title: n("interactiveMode.title"),
|
|
37477
37497
|
children: /* @__PURE__ */ Q(Ye, { render: /* @__PURE__ */ Q(W, {
|
|
37478
37498
|
"aria-label": n("interactiveMode.title"),
|
|
37479
|
-
className:
|
|
37499
|
+
className: hV.interactiveModeTrigger,
|
|
37480
37500
|
size: "icon",
|
|
37481
37501
|
type: "button",
|
|
37482
37502
|
variant: "ghost",
|
|
@@ -37487,18 +37507,18 @@ function AV({ interactiveMode$: e, defaultOpen: t = !1 }) {
|
|
|
37487
37507
|
}) })
|
|
37488
37508
|
}), /* @__PURE__ */ Q(g, {
|
|
37489
37509
|
align: "start",
|
|
37490
|
-
className:
|
|
37510
|
+
className: hV.interactiveModePanel,
|
|
37491
37511
|
"data-canvas-control-scope": !0,
|
|
37492
37512
|
container: typeof document > "u" ? void 0 : o(),
|
|
37493
37513
|
side: "top",
|
|
37494
37514
|
sideOffset: 14,
|
|
37495
37515
|
children: /* @__PURE__ */ $("div", {
|
|
37496
37516
|
"aria-label": n("interactiveMode.title"),
|
|
37497
|
-
className:
|
|
37517
|
+
className: hV.interactiveModeChoices,
|
|
37498
37518
|
role: "radiogroup",
|
|
37499
37519
|
children: [/* @__PURE__ */ $(W, {
|
|
37500
37520
|
"aria-checked": r == "mouse",
|
|
37501
|
-
className:
|
|
37521
|
+
className: hV.interactiveModeChoice,
|
|
37502
37522
|
onClick: () => {
|
|
37503
37523
|
e.set("mouse"), a(!1);
|
|
37504
37524
|
},
|
|
@@ -37515,7 +37535,7 @@ function AV({ interactiveMode$: e, defaultOpen: t = !1 }) {
|
|
|
37515
37535
|
]
|
|
37516
37536
|
}), /* @__PURE__ */ $(W, {
|
|
37517
37537
|
"aria-checked": r == "touchpad",
|
|
37518
|
-
className:
|
|
37538
|
+
className: hV.interactiveModeChoice,
|
|
37519
37539
|
onClick: () => {
|
|
37520
37540
|
e.set("touchpad"), a(!1);
|
|
37521
37541
|
},
|
|
@@ -37535,7 +37555,7 @@ function AV({ interactiveMode$: e, defaultOpen: t = !1 }) {
|
|
|
37535
37555
|
})]
|
|
37536
37556
|
});
|
|
37537
37557
|
}
|
|
37538
|
-
function
|
|
37558
|
+
function MV({ interactiveMode$: e }) {
|
|
37539
37559
|
let t = U(), n = H(e);
|
|
37540
37560
|
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(vs, {}), /* @__PURE__ */ $(ls, { children: [/* @__PURE__ */ Q(us, { children: t("interactiveMode.title") }), /* @__PURE__ */ $(gs, {
|
|
37541
37561
|
value: n,
|
|
@@ -37555,7 +37575,7 @@ function jV({ interactiveMode$: e }) {
|
|
|
37555
37575
|
})]
|
|
37556
37576
|
})] })] });
|
|
37557
37577
|
}
|
|
37558
|
-
function
|
|
37578
|
+
function NV({ onRelayout: e, miniMapExpanded$: t, interactiveMode$: n }) {
|
|
37559
37579
|
let r = U();
|
|
37560
37580
|
return /* @__PURE__ */ $(Z, { children: [
|
|
37561
37581
|
e != null && /* @__PURE__ */ $(ds, {
|
|
@@ -37565,22 +37585,22 @@ function MV({ onRelayout: e, miniMapExpanded$: t, interactiveMode$: n }) {
|
|
|
37565
37585
|
className: "i-carbon:template"
|
|
37566
37586
|
}), r("optimize")]
|
|
37567
37587
|
}),
|
|
37568
|
-
t != null && /* @__PURE__ */ Q(
|
|
37569
|
-
n != null && /* @__PURE__ */ Q(
|
|
37588
|
+
t != null && /* @__PURE__ */ Q(OV, { miniMapExpanded$: t }),
|
|
37589
|
+
n != null && /* @__PURE__ */ Q(MV, { interactiveMode$: n })
|
|
37570
37590
|
] });
|
|
37571
37591
|
}
|
|
37572
|
-
function
|
|
37592
|
+
function PV({ readOnly: e = !1, interactiveMode$: t, miniMapExpanded$: n, maxZoomReached: r, minZoomReached: i, onFitView: a, onRelayout: o, onZoomIn: s, onZoomOut: c, onZoomReset: l, zoom: u }) {
|
|
37573
37593
|
let d = U(), [f, p] = X(!1), [m, h] = X(null);
|
|
37574
37594
|
return /* @__PURE__ */ $(DF, {
|
|
37575
37595
|
position: "bottom-left",
|
|
37576
|
-
className: Ut("open-flow-control-island open-flow-control-island-compact",
|
|
37596
|
+
className: Ut("open-flow-control-island open-flow-control-island-compact", hV.dock, hV.viewDock),
|
|
37577
37597
|
"data-readonly": e,
|
|
37578
37598
|
"data-canvas-control-scope": !0,
|
|
37579
37599
|
"data-tooltip-toolbar": !0,
|
|
37580
37600
|
ref: h,
|
|
37581
37601
|
children: [
|
|
37582
37602
|
/* @__PURE__ */ Q("div", {
|
|
37583
|
-
className:
|
|
37603
|
+
className: hV.compactViewControls,
|
|
37584
37604
|
children: /* @__PURE__ */ $(os, { children: [/* @__PURE__ */ Q(ao, {
|
|
37585
37605
|
placement: "top",
|
|
37586
37606
|
title: d("view"),
|
|
@@ -37636,7 +37656,7 @@ function NV({ readOnly: e = !1, interactiveMode$: t, miniMapExpanded$: n, maxZoo
|
|
|
37636
37656
|
}), d("fitView")]
|
|
37637
37657
|
}),
|
|
37638
37658
|
/* @__PURE__ */ Q(vs, {}),
|
|
37639
|
-
/* @__PURE__ */ Q(
|
|
37659
|
+
/* @__PURE__ */ Q(NV, {
|
|
37640
37660
|
onRelayout: o,
|
|
37641
37661
|
miniMapExpanded$: n,
|
|
37642
37662
|
interactiveMode$: t
|
|
@@ -37645,7 +37665,7 @@ function NV({ readOnly: e = !1, interactiveMode$: t, miniMapExpanded$: n, maxZoo
|
|
|
37645
37665
|
})] })
|
|
37646
37666
|
}),
|
|
37647
37667
|
/* @__PURE__ */ $("div", {
|
|
37648
|
-
className:
|
|
37668
|
+
className: hV.expandedViewControls,
|
|
37649
37669
|
children: [
|
|
37650
37670
|
/* @__PURE__ */ Q(ao, {
|
|
37651
37671
|
placement: "top",
|
|
@@ -37665,7 +37685,7 @@ function NV({ readOnly: e = !1, interactiveMode$: t, miniMapExpanded$: n, maxZoo
|
|
|
37665
37685
|
title: d("zoomReset"),
|
|
37666
37686
|
children: /* @__PURE__ */ $(W, {
|
|
37667
37687
|
"aria-label": d("zoomReset"),
|
|
37668
|
-
className:
|
|
37688
|
+
className: hV.zoomValue,
|
|
37669
37689
|
onClick: l,
|
|
37670
37690
|
size: "default",
|
|
37671
37691
|
type: "button",
|
|
@@ -37699,17 +37719,17 @@ function NV({ readOnly: e = !1, interactiveMode$: t, miniMapExpanded$: n, maxZoo
|
|
|
37699
37719
|
})
|
|
37700
37720
|
}),
|
|
37701
37721
|
(o != null || n != null || t != null) && /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", {
|
|
37702
|
-
className:
|
|
37722
|
+
className: hV.viewOptions,
|
|
37703
37723
|
"data-expanded": f,
|
|
37704
37724
|
"aria-hidden": !f,
|
|
37705
37725
|
children: /* @__PURE__ */ Q("div", {
|
|
37706
|
-
className:
|
|
37726
|
+
className: hV.viewOptionsClip,
|
|
37707
37727
|
children: /* @__PURE__ */ $("div", {
|
|
37708
|
-
className:
|
|
37728
|
+
className: hV.viewOptionButtons,
|
|
37709
37729
|
children: [
|
|
37710
37730
|
/* @__PURE__ */ Q("span", {
|
|
37711
37731
|
"aria-hidden": "true",
|
|
37712
|
-
className:
|
|
37732
|
+
className: hV.viewSeparator
|
|
37713
37733
|
}),
|
|
37714
37734
|
o != null && /* @__PURE__ */ Q(ao, {
|
|
37715
37735
|
placement: "top",
|
|
@@ -37726,8 +37746,8 @@ function NV({ readOnly: e = !1, interactiveMode$: t, miniMapExpanded$: n, maxZoo
|
|
|
37726
37746
|
})
|
|
37727
37747
|
})
|
|
37728
37748
|
}),
|
|
37729
|
-
n != null && /* @__PURE__ */ Q(
|
|
37730
|
-
t != null && /* @__PURE__ */ Q(
|
|
37749
|
+
n != null && /* @__PURE__ */ Q(AV, { miniMapExpanded$: n }),
|
|
37750
|
+
t != null && /* @__PURE__ */ Q(jV, { interactiveMode$: t })
|
|
37731
37751
|
]
|
|
37732
37752
|
})
|
|
37733
37753
|
})
|
|
@@ -37749,32 +37769,32 @@ function NV({ readOnly: e = !1, interactiveMode$: t, miniMapExpanded$: n, maxZoo
|
|
|
37749
37769
|
})] })
|
|
37750
37770
|
]
|
|
37751
37771
|
}),
|
|
37752
|
-
n != null && /* @__PURE__ */ Q(
|
|
37772
|
+
n != null && /* @__PURE__ */ Q(kV, { miniMapExpanded$: n })
|
|
37753
37773
|
]
|
|
37754
37774
|
});
|
|
37755
37775
|
}
|
|
37756
|
-
function
|
|
37776
|
+
function FV({ children: e }) {
|
|
37757
37777
|
return /* @__PURE__ */ Q(DF, {
|
|
37758
37778
|
position: "bottom-center",
|
|
37759
|
-
className: Ut("open-flow-control-island",
|
|
37779
|
+
className: Ut("open-flow-control-island", hV.dock, hV.createDock),
|
|
37760
37780
|
"data-canvas-control-scope": !0,
|
|
37761
37781
|
"data-tooltip-toolbar": !0,
|
|
37762
37782
|
children: /* @__PURE__ */ Q("div", {
|
|
37763
|
-
className:
|
|
37783
|
+
className: hV.dockActions,
|
|
37764
37784
|
children: e
|
|
37765
37785
|
})
|
|
37766
37786
|
});
|
|
37767
37787
|
}
|
|
37768
|
-
function
|
|
37788
|
+
function IV({ children: e }) {
|
|
37769
37789
|
return /* @__PURE__ */ Q(DF, {
|
|
37770
37790
|
position: "bottom-right",
|
|
37771
|
-
className: Ut("open-flow-control-island open-flow-control-island-compact",
|
|
37791
|
+
className: Ut("open-flow-control-island open-flow-control-island-compact", hV.dock),
|
|
37772
37792
|
"data-canvas-control-scope": !0,
|
|
37773
37793
|
"data-tooltip-toolbar": !0,
|
|
37774
37794
|
children: e
|
|
37775
37795
|
});
|
|
37776
37796
|
}
|
|
37777
|
-
function
|
|
37797
|
+
function LV({ children: e }) {
|
|
37778
37798
|
return /* @__PURE__ */ Q(DF, {
|
|
37779
37799
|
position: "top-left",
|
|
37780
37800
|
"data-canvas-control-scope": !0,
|
|
@@ -37783,7 +37803,7 @@ function IV({ children: e }) {
|
|
|
37783
37803
|
}
|
|
37784
37804
|
//#endregion
|
|
37785
37805
|
//#region src/canvas/browser/graph/ReactFlowContainer/ConnectingLine.tsx
|
|
37786
|
-
var
|
|
37806
|
+
var RV = ({ fromHandle: e, toHandle: t, fromX: n, fromY: r, fromPosition: i, fromNode: a, toX: o, toY: s, toPosition: c, toNode: l, connectionLineStyle: u }) => {
|
|
37787
37807
|
let d = OE(), [f] = Ez({
|
|
37788
37808
|
sourceBounds: wz(a),
|
|
37789
37809
|
sourcePortIndex: Tz(a, e.id),
|
|
@@ -37812,16 +37832,16 @@ var LV = ({ fromHandle: e, toHandle: t, fromX: n, fromY: r, fromPosition: i, fro
|
|
|
37812
37832
|
strokeWidth: 2,
|
|
37813
37833
|
d: f
|
|
37814
37834
|
})] });
|
|
37815
|
-
},
|
|
37835
|
+
}, zV = {
|
|
37816
37836
|
group: "CornerControls_group_3d2c6",
|
|
37817
37837
|
corner: "CornerControls_corner_3d2c6"
|
|
37818
|
-
},
|
|
37838
|
+
}, BV = /* @__PURE__ */ Pi(function(e) {
|
|
37819
37839
|
return e.before == null && e.children == null ? null : /* @__PURE__ */ Q(Z, { children: /* @__PURE__ */ $(DF, {
|
|
37820
|
-
className:
|
|
37840
|
+
className: zV.group,
|
|
37821
37841
|
"data-canvas-control-scope": !0,
|
|
37822
37842
|
position: "top-right",
|
|
37823
37843
|
children: [e.before, e.children != null && /* @__PURE__ */ Q(YR, {
|
|
37824
|
-
className: Ut("open-flow-control-island open-flow-control-island-compact open-flow-control-island-soft-shadow",
|
|
37844
|
+
className: Ut("open-flow-control-island open-flow-control-island-compact open-flow-control-island-soft-shadow", zV.corner),
|
|
37825
37845
|
orientation: "horizontal",
|
|
37826
37846
|
position: "top-right",
|
|
37827
37847
|
showFitView: !1,
|
|
@@ -37830,20 +37850,20 @@ var LV = ({ fromHandle: e, toHandle: t, fromX: n, fromY: r, fromPosition: i, fro
|
|
|
37830
37850
|
children: e.children
|
|
37831
37851
|
})]
|
|
37832
37852
|
}) });
|
|
37833
|
-
}),
|
|
37853
|
+
}), VV = () => {
|
|
37834
37854
|
let [e, t] = X(), [n, r] = X();
|
|
37835
37855
|
return [
|
|
37836
37856
|
e,
|
|
37837
37857
|
n,
|
|
37838
37858
|
q((e, n) => {
|
|
37839
37859
|
if (t(void 0), r(void 0), e.length === 1 && e[0].type === "position" && e[0].dragging && e[0].position) {
|
|
37840
|
-
let i =
|
|
37860
|
+
let i = HV(e[0], n);
|
|
37841
37861
|
e[0].position.x = i.snapPosition.x ?? e[0].position.x, e[0].position.y = i.snapPosition.y ?? e[0].position.y, t(i.horizontal), r(i.vertical);
|
|
37842
37862
|
}
|
|
37843
37863
|
}, [])
|
|
37844
37864
|
];
|
|
37845
37865
|
};
|
|
37846
|
-
function
|
|
37866
|
+
function HV(e, t, n = 8) {
|
|
37847
37867
|
let r = {
|
|
37848
37868
|
horizontal: void 0,
|
|
37849
37869
|
vertical: void 0,
|
|
@@ -37890,19 +37910,19 @@ function VV(e, t, n = 8) {
|
|
|
37890
37910
|
}
|
|
37891
37911
|
//#endregion
|
|
37892
37912
|
//#region src/canvas/browser/graph/ReactFlowContainer/HelperLines/HelperLines.tsx
|
|
37893
|
-
var
|
|
37913
|
+
var UV = {
|
|
37894
37914
|
width: "100%",
|
|
37895
37915
|
height: "100%",
|
|
37896
37916
|
position: "absolute",
|
|
37897
37917
|
zIndex: 10,
|
|
37898
37918
|
pointerEvents: "none"
|
|
37899
|
-
},
|
|
37919
|
+
}, WV = (e) => ({
|
|
37900
37920
|
width: e.width,
|
|
37901
37921
|
height: e.height,
|
|
37902
37922
|
transform: e.transform
|
|
37903
37923
|
});
|
|
37904
|
-
function
|
|
37905
|
-
let { width: r, height: i, transform: a } = gF(
|
|
37924
|
+
function GV({ horizontal: e, vertical: t, strokeStyle: n = "#b7654d" }) {
|
|
37925
|
+
let { width: r, height: i, transform: a } = gF(WV), o = Y(null);
|
|
37906
37926
|
return J(() => {
|
|
37907
37927
|
let s = o.current;
|
|
37908
37928
|
if (!s) return;
|
|
@@ -37918,23 +37938,23 @@ function WV({ horizontal: e, vertical: t, strokeStyle: n = "#b7654d" }) {
|
|
|
37918
37938
|
t
|
|
37919
37939
|
]), /* @__PURE__ */ Q("canvas", {
|
|
37920
37940
|
ref: o,
|
|
37921
|
-
style:
|
|
37941
|
+
style: UV
|
|
37922
37942
|
});
|
|
37923
37943
|
}
|
|
37924
37944
|
//#endregion
|
|
37925
37945
|
//#region src/canvas/browser/graph/ReactFlowContainer/ReactFlowContainer.tsx
|
|
37926
|
-
var
|
|
37927
|
-
function
|
|
37946
|
+
var KV = [0], qV = [1], JV = [20, 20];
|
|
37947
|
+
function YV() {
|
|
37928
37948
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches ? 0 : 200;
|
|
37929
37949
|
}
|
|
37930
|
-
var
|
|
37931
|
-
function
|
|
37950
|
+
var XV = { hideAttribution: !0 }, ZV = 200, QV = 300;
|
|
37951
|
+
function $V(e) {
|
|
37932
37952
|
return e instanceof Element && e.closest("button, input, textarea, a, [contenteditable=\"true\"]") != null;
|
|
37933
37953
|
}
|
|
37934
|
-
var
|
|
37954
|
+
var eH = (e) => ({
|
|
37935
37955
|
width: e.width,
|
|
37936
37956
|
height: e.height
|
|
37937
|
-
}),
|
|
37957
|
+
}), tH = (e, t) => e.width === t.width && e.height === t.height, nH = (e, t) => tH(e, t) && e.x === t.x && e.y === t.y, rH = (e) => {
|
|
37938
37958
|
let t = Y(null), n = zi(() => ({
|
|
37939
37959
|
default: () => t.current?.querySelector(".react-flow__viewport") || t.current || document.body,
|
|
37940
37960
|
static: () => t.current || document.body
|
|
@@ -37942,7 +37962,7 @@ var $V = (e) => ({
|
|
|
37942
37962
|
return /* @__PURE__ */ Q(c.Provider, {
|
|
37943
37963
|
value: e.dark ? "dark" : "light",
|
|
37944
37964
|
children: /* @__PURE__ */ Q("div", {
|
|
37945
|
-
className: di(e.className, "open-flow-canvas-root",
|
|
37965
|
+
className: di(e.className, "open-flow-canvas-root", hV.container, "open-flow-theme"),
|
|
37946
37966
|
"data-surface": "canvas",
|
|
37947
37967
|
"data-theme": e.dark ? "dark" : "light",
|
|
37948
37968
|
ref: t,
|
|
@@ -37954,19 +37974,19 @@ var $V = (e) => ({
|
|
|
37954
37974
|
delay: 300,
|
|
37955
37975
|
children: /* @__PURE__ */ Q(_R, { children: /* @__PURE__ */ Q(Pz, {
|
|
37956
37976
|
Handle: HI,
|
|
37957
|
-
children: /* @__PURE__ */ Q(
|
|
37977
|
+
children: /* @__PURE__ */ Q(oH, { ...e })
|
|
37958
37978
|
}) })
|
|
37959
37979
|
})
|
|
37960
37980
|
})
|
|
37961
37981
|
})
|
|
37962
37982
|
})
|
|
37963
37983
|
});
|
|
37964
|
-
},
|
|
37984
|
+
}, iH = (e) => ({
|
|
37965
37985
|
minZoomReached: e.transform[2] <= e.minZoom,
|
|
37966
37986
|
maxZoomReached: e.transform[2] >= e.maxZoom,
|
|
37967
37987
|
zoom: e.transform[2]
|
|
37968
|
-
}),
|
|
37969
|
-
let t = hI(), { minZoomReached: n, maxZoomReached: r, zoom: i } = gF(
|
|
37988
|
+
}), aH = /*#__PURE__*/ Pi((e) => {
|
|
37989
|
+
let t = hI(), { minZoomReached: n, maxZoomReached: r, zoom: i } = gF(iH, oE), a = OR(), o = Ii().replaceAll(":", ""), s = a.filter((e) => e.selected), c = {
|
|
37970
37990
|
padding: .15,
|
|
37971
37991
|
duration: e.layoutMotion === !1 ? 0 : 150,
|
|
37972
37992
|
maxZoom: 1
|
|
@@ -37977,11 +37997,11 @@ var $V = (e) => ({
|
|
|
37977
37997
|
e.dottedBackground && /* @__PURE__ */ Q(BR, {
|
|
37978
37998
|
id: o,
|
|
37979
37999
|
color: "var(--canvas-grid)",
|
|
37980
|
-
gap:
|
|
38000
|
+
gap: JV,
|
|
37981
38001
|
size: 2,
|
|
37982
38002
|
variant: IR.Dots
|
|
37983
38003
|
}),
|
|
37984
|
-
/* @__PURE__ */ Q(
|
|
38004
|
+
/* @__PURE__ */ Q(PV, {
|
|
37985
38005
|
readOnly: !e.editable,
|
|
37986
38006
|
interactiveMode$: e.interactiveMode$,
|
|
37987
38007
|
miniMapExpanded$: e.miniMapExpanded$,
|
|
@@ -37991,26 +38011,26 @@ var $V = (e) => ({
|
|
|
37991
38011
|
e.onBeforeFitView?.(), setTimeout(() => {
|
|
37992
38012
|
t.fitView({
|
|
37993
38013
|
...c,
|
|
37994
|
-
duration:
|
|
38014
|
+
duration: YV(),
|
|
37995
38015
|
nodes: s.length === 0 ? void 0 : s
|
|
37996
38016
|
}), e.onFitView?.();
|
|
37997
38017
|
}, 100);
|
|
37998
38018
|
},
|
|
37999
38019
|
onRelayout: l,
|
|
38000
|
-
onZoomIn: () => t.zoomIn({ duration:
|
|
38001
|
-
onZoomOut: () => t.zoomOut({ duration:
|
|
38002
|
-
onZoomReset: () => t.zoomTo(1, { duration:
|
|
38020
|
+
onZoomIn: () => t.zoomIn({ duration: YV() }),
|
|
38021
|
+
onZoomOut: () => t.zoomOut({ duration: YV() }),
|
|
38022
|
+
onZoomReset: () => t.zoomTo(1, { duration: YV() }),
|
|
38003
38023
|
zoom: i
|
|
38004
38024
|
}),
|
|
38005
|
-
e.toolbar != null && /* @__PURE__ */ Q(
|
|
38006
|
-
e.topLeftTools != null && /* @__PURE__ */ Q(
|
|
38007
|
-
e.bottomRightTools != null && /* @__PURE__ */ Q(
|
|
38008
|
-
/* @__PURE__ */ Q(
|
|
38025
|
+
e.toolbar != null && /* @__PURE__ */ Q(FV, { children: e.toolbar }),
|
|
38026
|
+
e.topLeftTools != null && /* @__PURE__ */ Q(LV, { children: e.topLeftTools }),
|
|
38027
|
+
e.bottomRightTools != null && /* @__PURE__ */ Q(IV, { children: e.bottomRightTools }),
|
|
38028
|
+
/* @__PURE__ */ Q(BV, {
|
|
38009
38029
|
before: e.cornerLeading,
|
|
38010
38030
|
children: e.cornerTools
|
|
38011
38031
|
})
|
|
38012
38032
|
] });
|
|
38013
|
-
}),
|
|
38033
|
+
}), oH = (e) => {
|
|
38014
38034
|
let t = _F(), n = Y(!1), r = Y(e.onSelectionEnd);
|
|
38015
38035
|
r.current = e.onSelectionEnd;
|
|
38016
38036
|
let i = q(() => {
|
|
@@ -38033,7 +38053,7 @@ var $V = (e) => ({
|
|
|
38033
38053
|
Ri(() => e.onInstance?.(a), [a, e.onInstance]), J(() => (s.current = !0, () => {
|
|
38034
38054
|
s.current = !1;
|
|
38035
38055
|
}), []);
|
|
38036
|
-
let [l, u, d] =
|
|
38056
|
+
let [l, u, d] = VV(), [f, p] = X(null), m = zi(() => f && a.screenToFlowPosition({
|
|
38037
38057
|
x: f.event.clientX,
|
|
38038
38058
|
y: f.event.clientY
|
|
38039
38059
|
}), [f, a]), [h, g] = X(null), [_, v] = X(null), y = zi(() => _ && a.screenToFlowPosition({
|
|
@@ -38078,7 +38098,7 @@ var $V = (e) => ({
|
|
|
38078
38098
|
x: r.clientX,
|
|
38079
38099
|
y: r.clientY
|
|
38080
38100
|
}, o = a.screenToFlowPosition(i);
|
|
38081
|
-
if (
|
|
38101
|
+
if (hH(n.from, o)) return;
|
|
38082
38102
|
let s = Ux(n.fromNode.id), c = Gx(n.fromHandle.id), l = n.fromHandle.type == "target" ? "left" : "right";
|
|
38083
38103
|
cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => e.onRequestAddNode?.({
|
|
38084
38104
|
position: l == "left" ? {
|
|
@@ -38129,11 +38149,11 @@ var $V = (e) => ({
|
|
|
38129
38149
|
duration: e.layoutMotion === !1 ? 0 : 150,
|
|
38130
38150
|
maxZoom: 1
|
|
38131
38151
|
}), t && (r = requestAnimationFrame(() => L(!0)));
|
|
38132
|
-
}, e.layoutMotion === !1 ? 0 :
|
|
38152
|
+
}, e.layoutMotion === !1 ? 0 : QV)) : L(!0);
|
|
38133
38153
|
}, l = requestAnimationFrame(() => {
|
|
38134
38154
|
o(A.current), n = requestAnimationFrame(c);
|
|
38135
38155
|
}), u, d = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
38136
|
-
return j.current && e.layoutMotion !== !1 && !d ? (N(!0), u = setTimeout(() => N(!1),
|
|
38156
|
+
return j.current && e.layoutMotion !== !1 && !d ? (N(!0), u = setTimeout(() => N(!1), ZV)) : j.current = !0, p(null), () => {
|
|
38137
38157
|
t = !1, cancelAnimationFrame(l), cancelAnimationFrame(n), cancelAnimationFrame(r), i && clearTimeout(i), u && clearTimeout(u);
|
|
38138
38158
|
};
|
|
38139
38159
|
}, [
|
|
@@ -38150,7 +38170,7 @@ var $V = (e) => ({
|
|
|
38150
38170
|
(n == null || n.x != t.x || n.y != t.y || n.zoom != t.zoom) && e.viewport$.set(t);
|
|
38151
38171
|
}, [e.viewport$]), te = q((t) => {
|
|
38152
38172
|
s.current && e.onInit?.(t);
|
|
38153
|
-
}, [e.onInit]), ne = gF(
|
|
38173
|
+
}, [e.onInit]), ne = gF(eH, tH), re = zi(() => Xe(e.viewport$, (e) => oV(e || ee.current, ne), { equal: nH }), [e.viewport$, ne]), ie = H(e.focused$);
|
|
38154
38174
|
J(() => {
|
|
38155
38175
|
if (P) {
|
|
38156
38176
|
let e = setTimeout(() => F(!1), 200);
|
|
@@ -38171,17 +38191,17 @@ var $V = (e) => ({
|
|
|
38171
38191
|
x: t.clientX,
|
|
38172
38192
|
y: t.clientY
|
|
38173
38193
|
};
|
|
38174
|
-
c(() => e.onDropAddItem?.(n, a.screenToFlowPosition(r))),
|
|
38194
|
+
c(() => e.onDropAddItem?.(n, a.screenToFlowPosition(r))), cH(t);
|
|
38175
38195
|
return;
|
|
38176
38196
|
}
|
|
38177
38197
|
if (!e.onAddNode) return;
|
|
38178
38198
|
let r, i;
|
|
38179
|
-
if (i =
|
|
38180
|
-
else if (i =
|
|
38181
|
-
else if (
|
|
38182
|
-
else if (
|
|
38183
|
-
else if (
|
|
38184
|
-
else if (i =
|
|
38199
|
+
if (i = SV(t.dataTransfer)) r = "block";
|
|
38200
|
+
else if (i = CV(t.dataTransfer)) r = "scriptlet";
|
|
38201
|
+
else if (wV(t.dataTransfer)) r = "value";
|
|
38202
|
+
else if (TV(t.dataTransfer)) r = "condition";
|
|
38203
|
+
else if (EV(t.dataTransfer)) r = "comment";
|
|
38204
|
+
else if (i = DV(t.dataTransfer)) r = "trigger";
|
|
38185
38205
|
else return;
|
|
38186
38206
|
t.preventDefault();
|
|
38187
38207
|
let o = {
|
|
@@ -38194,16 +38214,16 @@ var $V = (e) => ({
|
|
|
38194
38214
|
y: o.y - 10 * t
|
|
38195
38215
|
});
|
|
38196
38216
|
e.onAddNode?.(r, i, n);
|
|
38197
|
-
}),
|
|
38217
|
+
}), cH(t);
|
|
38198
38218
|
}, [
|
|
38199
38219
|
c,
|
|
38200
38220
|
a,
|
|
38201
38221
|
e.onAddNode,
|
|
38202
38222
|
e.onDropAddItem
|
|
38203
|
-
]), se = zi(() => new
|
|
38204
|
-
return J(() => () => se.dispose(), [se]), /* @__PURE__ */ Q(
|
|
38223
|
+
]), se = zi(() => new sV(), []);
|
|
38224
|
+
return J(() => () => se.dispose(), [se]), /* @__PURE__ */ Q(cV.Provider, {
|
|
38205
38225
|
value: se,
|
|
38206
|
-
children: /* @__PURE__ */ Q(
|
|
38226
|
+
children: /* @__PURE__ */ Q(nV.Provider, {
|
|
38207
38227
|
value: re,
|
|
38208
38228
|
children: /* @__PURE__ */ $(xR, {
|
|
38209
38229
|
onKeyDown: (n) => {
|
|
@@ -38222,11 +38242,11 @@ var $V = (e) => ({
|
|
|
38222
38242
|
let r = O.flatMap((e) => e.data.store ? [e.data.store.nodeId] : []), i = n.key.toLowerCase(), o = i === "c" && r.length > 0 && e.onCopy ? () => e.onCopy(r) : i === "v" && e.onPaste ? () => e.onPaste() : i === "d" && r.length > 0 && e.duplicateNodes ? () => e.duplicateNodes(r) : void 0;
|
|
38223
38243
|
o && (n.preventDefault(), n.stopPropagation(), o());
|
|
38224
38244
|
},
|
|
38225
|
-
className: di(
|
|
38226
|
-
style: { "--layout-transition-duration": `${e.layoutMotion === !1 ? 0 :
|
|
38245
|
+
className: di(hV.flow, Nx, C, P && "open-flow-canvas-fitting-view", !I && hV.layoutPending, M && hV.movingLayout),
|
|
38246
|
+
style: { "--layout-transition-duration": `${e.layoutMotion === !1 ? 0 : ZV}ms` },
|
|
38227
38247
|
colorMode: e.dark ? "dark" : "light",
|
|
38228
38248
|
tabIndex: -1,
|
|
38229
|
-
proOptions:
|
|
38249
|
+
proOptions: XV,
|
|
38230
38250
|
nodeTypes: e.nodeTypes,
|
|
38231
38251
|
edgeTypes: e.edgeTypes,
|
|
38232
38252
|
nodes: T,
|
|
@@ -38264,7 +38284,7 @@ var $V = (e) => ({
|
|
|
38264
38284
|
onConnectEnd: x,
|
|
38265
38285
|
isValidConnection: e.isValidConnection,
|
|
38266
38286
|
onConnect: S ? e.onConnect : void 0,
|
|
38267
|
-
onDragOver: S && (e.onAddNode != null || e.onDropAddItem != null) ?
|
|
38287
|
+
onDragOver: S && (e.onAddNode != null || e.onDropAddItem != null) ? sH : void 0,
|
|
38268
38288
|
onDrop: S && (e.onAddNode != null || e.onDropAddItem != null) ? oe : void 0,
|
|
38269
38289
|
onMoveEnd: e.onMoveEnd,
|
|
38270
38290
|
onNodeDragStop: e.onNodeDragStop,
|
|
@@ -38274,33 +38294,33 @@ var $V = (e) => ({
|
|
|
38274
38294
|
},
|
|
38275
38295
|
onSelectionEnd: i,
|
|
38276
38296
|
onNodeClick: (t) => {
|
|
38277
|
-
|
|
38297
|
+
$V(t.target) || e.onActivateSelection?.();
|
|
38278
38298
|
},
|
|
38279
38299
|
onNodeDoubleClick: (t) => {
|
|
38280
|
-
|
|
38300
|
+
$V(t.target) || e.onInspectSelection?.();
|
|
38281
38301
|
},
|
|
38282
38302
|
deleteKeyCode: null,
|
|
38283
38303
|
zoomActivationKeyCode: null,
|
|
38284
38304
|
zoomOnDoubleClick: !1,
|
|
38285
38305
|
nodeClickDistance: 1,
|
|
38286
38306
|
selectionMode: yM.Partial,
|
|
38287
|
-
panOnDrag: w ?
|
|
38307
|
+
panOnDrag: w ? KV : qV,
|
|
38288
38308
|
panOnScroll: !w,
|
|
38289
38309
|
zoomOnScroll: w,
|
|
38290
38310
|
selectionKeyCode: ba(w) && "Shift",
|
|
38291
38311
|
selectionOnDrag: !w,
|
|
38292
38312
|
connectOnClick: !1,
|
|
38293
38313
|
onInit: te,
|
|
38294
|
-
connectionLineComponent:
|
|
38314
|
+
connectionLineComponent: RV,
|
|
38295
38315
|
"aria-readonly": !S,
|
|
38296
38316
|
children: [
|
|
38297
|
-
(e.canDeleteNodes ?? !0) && !D && /* @__PURE__ */ Q(
|
|
38317
|
+
(e.canDeleteNodes ?? !0) && !D && /* @__PURE__ */ Q(pH, {
|
|
38298
38318
|
editable: !!S,
|
|
38299
38319
|
nodes: O,
|
|
38300
38320
|
onDelete: k,
|
|
38301
38321
|
duplicateNodes: e.duplicateNodes
|
|
38302
38322
|
}),
|
|
38303
|
-
/* @__PURE__ */ Q(
|
|
38323
|
+
/* @__PURE__ */ Q(aH, {
|
|
38304
38324
|
editable: e.editable,
|
|
38305
38325
|
cornerTools: e.cornerTools,
|
|
38306
38326
|
cornerLeading: e.cornerLeading,
|
|
@@ -38315,13 +38335,13 @@ var $V = (e) => ({
|
|
|
38315
38335
|
onFitView: e.onFitView,
|
|
38316
38336
|
dottedBackground: e.dottedBackground
|
|
38317
38337
|
}),
|
|
38318
|
-
/* @__PURE__ */ Q(
|
|
38338
|
+
/* @__PURE__ */ Q(GV, {
|
|
38319
38339
|
horizontal: l,
|
|
38320
38340
|
vertical: u
|
|
38321
38341
|
}),
|
|
38322
38342
|
e.children,
|
|
38323
38343
|
/* @__PURE__ */ $(TR, { children: [
|
|
38324
|
-
h && (e.onPaste || e.onRequestAddNode) && /* @__PURE__ */ Q(
|
|
38344
|
+
h && (e.onPaste || e.onRequestAddNode) && /* @__PURE__ */ Q(lH, {
|
|
38325
38345
|
position: h.position,
|
|
38326
38346
|
onClose: () => g(null),
|
|
38327
38347
|
onPaste: S ? e.onPaste : void 0,
|
|
@@ -38330,7 +38350,7 @@ var $V = (e) => ({
|
|
|
38330
38350
|
cancelAnimationFrame(b.current), b.current = requestAnimationFrame(() => c(() => e.onRequestAddNode?.(t)));
|
|
38331
38351
|
} : void 0
|
|
38332
38352
|
}),
|
|
38333
|
-
f && m && /* @__PURE__ */ Q(
|
|
38353
|
+
f && m && /* @__PURE__ */ Q(dH, {
|
|
38334
38354
|
position: m,
|
|
38335
38355
|
edge: f.edge,
|
|
38336
38356
|
onClose: () => p(null),
|
|
@@ -38339,7 +38359,7 @@ var $V = (e) => ({
|
|
|
38339
38359
|
id: f.edge.id
|
|
38340
38360
|
}])
|
|
38341
38361
|
}),
|
|
38342
|
-
S && (e.canDeleteNodes ?? !0) && _ && y && /* @__PURE__ */ Q(
|
|
38362
|
+
S && (e.canDeleteNodes ?? !0) && _ && y && /* @__PURE__ */ Q(fH, {
|
|
38343
38363
|
position: y,
|
|
38344
38364
|
nodes: _.nodes,
|
|
38345
38365
|
onClose: () => v(null),
|
|
@@ -38359,17 +38379,17 @@ var $V = (e) => ({
|
|
|
38359
38379
|
})
|
|
38360
38380
|
})
|
|
38361
38381
|
});
|
|
38362
|
-
},
|
|
38382
|
+
}, sH = (e) => {
|
|
38363
38383
|
e.preventDefault();
|
|
38364
38384
|
};
|
|
38365
|
-
function
|
|
38385
|
+
function cH(e) {
|
|
38366
38386
|
let t = e.target;
|
|
38367
|
-
for (; t && !t.classList?.contains(
|
|
38387
|
+
for (; t && !t.classList?.contains(hV.flow);) t = t.parentElement;
|
|
38368
38388
|
t?.focus?.();
|
|
38369
38389
|
}
|
|
38370
|
-
function
|
|
38390
|
+
function lH(e) {
|
|
38371
38391
|
let t = U();
|
|
38372
|
-
return /* @__PURE__ */ Q(
|
|
38392
|
+
return /* @__PURE__ */ Q(uH, {
|
|
38373
38393
|
items: [{
|
|
38374
38394
|
label: t("contextMenu.addNode"),
|
|
38375
38395
|
key: "$addNode",
|
|
@@ -38387,7 +38407,7 @@ function cH(e) {
|
|
|
38387
38407
|
position: e.position
|
|
38388
38408
|
});
|
|
38389
38409
|
}
|
|
38390
|
-
function
|
|
38410
|
+
function uH({ items: e, onClose: t, position: n }) {
|
|
38391
38411
|
let r = ro();
|
|
38392
38412
|
return /* @__PURE__ */ $(os, {
|
|
38393
38413
|
open: !0,
|
|
@@ -38401,7 +38421,7 @@ function lH({ items: e, onClose: t, position: n }) {
|
|
|
38401
38421
|
} })
|
|
38402
38422
|
}), /* @__PURE__ */ Q(cs, {
|
|
38403
38423
|
align: "start",
|
|
38404
|
-
className:
|
|
38424
|
+
className: hV.contextMenu,
|
|
38405
38425
|
container: r(),
|
|
38406
38426
|
side: "bottom",
|
|
38407
38427
|
sideOffset: 0,
|
|
@@ -38416,9 +38436,9 @@ function lH({ items: e, onClose: t, position: n }) {
|
|
|
38416
38436
|
})]
|
|
38417
38437
|
});
|
|
38418
38438
|
}
|
|
38419
|
-
function
|
|
38439
|
+
function dH(e) {
|
|
38420
38440
|
let t = U();
|
|
38421
|
-
return /* @__PURE__ */ Q(
|
|
38441
|
+
return /* @__PURE__ */ Q(uH, {
|
|
38422
38442
|
items: [{
|
|
38423
38443
|
label: t("nodeActions.delete"),
|
|
38424
38444
|
key: "$delete",
|
|
@@ -38429,28 +38449,28 @@ function uH(e) {
|
|
|
38429
38449
|
position: e.position
|
|
38430
38450
|
});
|
|
38431
38451
|
}
|
|
38432
|
-
function
|
|
38433
|
-
let t =
|
|
38434
|
-
return /* @__PURE__ */ Q(
|
|
38452
|
+
function fH(e) {
|
|
38453
|
+
let t = mH(e);
|
|
38454
|
+
return /* @__PURE__ */ Q(uH, {
|
|
38435
38455
|
items: t,
|
|
38436
38456
|
onClose: e.onClose,
|
|
38437
38457
|
position: e.position
|
|
38438
38458
|
});
|
|
38439
38459
|
}
|
|
38440
|
-
function
|
|
38441
|
-
let t =
|
|
38460
|
+
function pH(e) {
|
|
38461
|
+
let t = mH(e), { zoom: n } = AR();
|
|
38442
38462
|
return !e.editable || e.nodes.length < 2 ? null : /* @__PURE__ */ $(xz, {
|
|
38443
38463
|
"data-tooltip-toolbar": !0,
|
|
38444
|
-
className:
|
|
38464
|
+
className: OB.floatBar,
|
|
38445
38465
|
isVisible: !0,
|
|
38446
38466
|
nodeId: e.nodes.map((e) => e.id),
|
|
38447
38467
|
offset: 12 - 8 * n,
|
|
38448
|
-
children: [/* @__PURE__ */ Q(
|
|
38468
|
+
children: [/* @__PURE__ */ Q(HB, { className: OB.floatBarButton }), t.map((e) => /* @__PURE__ */ Q(ao, {
|
|
38449
38469
|
placement: "top",
|
|
38450
38470
|
title: e.key === "$delete" ? `${e.label} (Backspace / Delete)` : e.label,
|
|
38451
38471
|
children: /* @__PURE__ */ Q(W, {
|
|
38452
38472
|
"aria-label": e.label,
|
|
38453
|
-
className:
|
|
38473
|
+
className: OB.floatBarButton,
|
|
38454
38474
|
"data-danger": e.key === "$delete" || void 0,
|
|
38455
38475
|
disabled: e.disabled,
|
|
38456
38476
|
onClick: e.onClick,
|
|
@@ -38461,7 +38481,7 @@ function fH(e) {
|
|
|
38461
38481
|
}, e.key))]
|
|
38462
38482
|
});
|
|
38463
38483
|
}
|
|
38464
|
-
function
|
|
38484
|
+
function mH(e) {
|
|
38465
38485
|
let t = U(), n = zi(() => e.nodes.filter((e) => e.data.store), [e.nodes]), r = n.some((e) => e.data.store?.duplicateNode), i = zi(() => {
|
|
38466
38486
|
let e = n.flatMap((e) => ZT.is(e.data.store) ? [e.data.store.ignore] : []);
|
|
38467
38487
|
return tt(e, (e) => [e.length > 0, e.every(Boolean)]);
|
|
@@ -38496,16 +38516,16 @@ function pH(e) {
|
|
|
38496
38516
|
}
|
|
38497
38517
|
]);
|
|
38498
38518
|
}
|
|
38499
|
-
function
|
|
38519
|
+
function hH(e, t) {
|
|
38500
38520
|
if (!t) return !0;
|
|
38501
38521
|
let n = t.x - e.x, r = t.y - e.y;
|
|
38502
38522
|
return Math.hypot(n, r) < 50;
|
|
38503
38523
|
}
|
|
38504
38524
|
//#endregion
|
|
38505
38525
|
//#region src/canvas/browser/graph/FlowCanvas/FlowCanvas.tsx
|
|
38506
|
-
var
|
|
38526
|
+
var gH = ({ flowCanvasStore: e, onActivateSelection: t, onSelectionStart: n, onSelectionEnd: r, onInspectSelection: i, inspectorOpen: a = !1, onRequestAddNode: o, cornerTools: s, cornerLeading: c, topLeftTools: l, bottomRightTools: u, toolbar: d, dark: f, fitView: p, nodesDraggable: m, layoutMotion: h, className: g, addNodeRequest: _, addItemRequest: v, onMoveEnd: y, onNodeDragStop: b, onSelectionChange: x, isValidConnection: S, onDropAddItem: C }) => {
|
|
38507
38527
|
let w = H(e.$.editable), T = H(e.$.nodeMiniMapPhase);
|
|
38508
|
-
return J(e.setupForceDelete, []), /* @__PURE__ */ Q(
|
|
38528
|
+
return J(e.setupForceDelete, []), /* @__PURE__ */ Q(VB.Provider, {
|
|
38509
38529
|
value: {
|
|
38510
38530
|
onInspect: i,
|
|
38511
38531
|
expanded: a
|
|
@@ -38515,7 +38535,7 @@ var hH = ({ flowCanvasStore: e, onActivateSelection: t, onSelectionStart: n, onS
|
|
|
38515
38535
|
dark: f,
|
|
38516
38536
|
children: /* @__PURE__ */ Q(CE, {
|
|
38517
38537
|
value: T,
|
|
38518
|
-
children: /* @__PURE__ */ Q(
|
|
38538
|
+
children: /* @__PURE__ */ Q(rH, {
|
|
38519
38539
|
cornerTools: s,
|
|
38520
38540
|
cornerLeading: c,
|
|
38521
38541
|
topLeftTools: l,
|
|
@@ -38528,10 +38548,10 @@ var hH = ({ flowCanvasStore: e, onActivateSelection: t, onSelectionStart: n, onS
|
|
|
38528
38548
|
dark: f,
|
|
38529
38549
|
dottedBackground: w,
|
|
38530
38550
|
fitView: p ?? !w,
|
|
38531
|
-
fitViewOptions:
|
|
38551
|
+
fitViewOptions: mV,
|
|
38532
38552
|
layoutMotion: h,
|
|
38533
|
-
nodeTypes:
|
|
38534
|
-
edgeTypes:
|
|
38553
|
+
nodeTypes: fV,
|
|
38554
|
+
edgeTypes: pV,
|
|
38535
38555
|
miniMapExpanded$: e.$$.miniMapExpanded,
|
|
38536
38556
|
interactiveMode$: e.$$.interactiveMode,
|
|
38537
38557
|
nodes$: e.$.rfNodes,
|
|
@@ -38569,7 +38589,7 @@ var hH = ({ flowCanvasStore: e, onActivateSelection: t, onSelectionStart: n, onS
|
|
|
38569
38589
|
};
|
|
38570
38590
|
//#endregion
|
|
38571
38591
|
//#region src/canvas/browser/graph/FlowCanvas/FlowCanvasView.tsx
|
|
38572
|
-
function
|
|
38592
|
+
function _H(e) {
|
|
38573
38593
|
return {
|
|
38574
38594
|
onIgnoreNodes: e.onIgnoreNodes,
|
|
38575
38595
|
onAddNode: e.onAddNode,
|
|
@@ -38584,8 +38604,8 @@ function gH(e) {
|
|
|
38584
38604
|
onPaste: e.onPaste
|
|
38585
38605
|
};
|
|
38586
38606
|
}
|
|
38587
|
-
function
|
|
38588
|
-
let t = zi(() => new xE(e.model, e.editable, e.language ?? "en",
|
|
38607
|
+
function vH(e) {
|
|
38608
|
+
let t = zi(() => new xE(e.model, e.editable, e.language ?? "en", _H(e), e.autoLayout, e.interactiveMode$), [e.identity]), n = Y(t), r = Y(e), i = Y();
|
|
38589
38609
|
r.current = e;
|
|
38590
38610
|
let a = q((e, t) => r.current.onMoveViewport(t), [t]), o = q((e, t, n) => {
|
|
38591
38611
|
let i = n.length > 0 ? n : [t];
|
|
@@ -38610,7 +38630,7 @@ function _H(e) {
|
|
|
38610
38630
|
J(() => {
|
|
38611
38631
|
let e = n.current;
|
|
38612
38632
|
return n.current = t, e !== t && e.dispose(), t.cancelPendingDeletions;
|
|
38613
|
-
}, [t]), Ri(() => t.setCallbacks(
|
|
38633
|
+
}, [t]), Ri(() => t.setCallbacks(_H(e))), Ri(() => {
|
|
38614
38634
|
t.reconcile(e.model, e.editable, e.language ?? "en", e.selectedNodeIds, e.ignoredNodeIds);
|
|
38615
38635
|
}, [
|
|
38616
38636
|
t,
|
|
@@ -38626,7 +38646,7 @@ function _H(e) {
|
|
|
38626
38646
|
}
|
|
38627
38647
|
}, [t, e.focusNodeRequest]);
|
|
38628
38648
|
let u = () => t.$.rfNodes.value.flatMap((e) => e.selected && e.data?.store ? [e.data.store.nodeId] : []);
|
|
38629
|
-
return /* @__PURE__ */ Q(
|
|
38649
|
+
return /* @__PURE__ */ Q(gH, {
|
|
38630
38650
|
cornerTools: e.cornerTools,
|
|
38631
38651
|
cornerLeading: e.cornerLeading,
|
|
38632
38652
|
topLeftTools: e.topLeftTools,
|
|
@@ -38655,7 +38675,7 @@ function _H(e) {
|
|
|
38655
38675
|
}
|
|
38656
38676
|
//#endregion
|
|
38657
38677
|
//#region src/workbench/browser/runtime/editor/canvasHistoryControls.tsx
|
|
38658
|
-
function
|
|
38678
|
+
function yH({ state: e, onUndo: t, onRedo: n, onRetry: r, disabled: i }) {
|
|
38659
38679
|
let a = U();
|
|
38660
38680
|
return /* @__PURE__ */ $("div", {
|
|
38661
38681
|
className: "designer-actions",
|
|
@@ -38699,7 +38719,7 @@ function vH({ state: e, onUndo: t, onRedo: n, onRetry: r, disabled: i }) {
|
|
|
38699
38719
|
}
|
|
38700
38720
|
//#endregion
|
|
38701
38721
|
//#region src/workbench/browser/runtime/editor/nodePickerDrag.ts
|
|
38702
|
-
var
|
|
38722
|
+
var bH = class {
|
|
38703
38723
|
#e;
|
|
38704
38724
|
#t = 0;
|
|
38705
38725
|
register(e, t) {
|
|
@@ -38720,7 +38740,7 @@ var yH = class {
|
|
|
38720
38740
|
};
|
|
38721
38741
|
//#endregion
|
|
38722
38742
|
//#region src/workbench/browser/runtime/editor/workbenchInspectorToggle.tsx
|
|
38723
|
-
function
|
|
38743
|
+
function xH({ label: e, open: t, disabled: n = !1, onToggle: r }) {
|
|
38724
38744
|
return /* @__PURE__ */ Q(ao, {
|
|
38725
38745
|
placement: "bottom",
|
|
38726
38746
|
title: e,
|
|
@@ -38742,17 +38762,17 @@ function bH({ label: e, open: t, disabled: n = !1, onToggle: r }) {
|
|
|
38742
38762
|
}
|
|
38743
38763
|
//#endregion
|
|
38744
38764
|
//#region src/workbench/browser/runtime/editor/workbenchCanvas.tsx
|
|
38745
|
-
var
|
|
38746
|
-
function
|
|
38765
|
+
var SH = 300;
|
|
38766
|
+
function CH(e) {
|
|
38747
38767
|
let t = e.target;
|
|
38748
38768
|
t instanceof Element && t.closest("a, button, input, label, select, textarea, [contenteditable=\"true\"]") || e.currentTarget.focus({ preventScroll: !0 });
|
|
38749
38769
|
}
|
|
38750
|
-
var
|
|
38770
|
+
var wH = ji(function({ nodePicker: e, addNodeControl: t, addNodeOptions: n, history: r, disabled: i, interactiveMode$: a, focusNodeRequest: o, inspectorOpen: s, model: c, onAddNode: l, onConnect: u, onChangeNodeContentHidden: d, onChangeComment: f, onCopy: p, onDeleteEdge: m, onDeleteNodes: h, onDuplicate: g, onMoveNodes: _, onMoveViewport: v, onPaste: y, provideAddNodeOptions: x, onSelectNodes: S, onActivateSelection: C, onSelectionStart: w, onSelectionEnd: T, onToggleInspector: E, ignoredNodeIds: D, onIgnoreNodes: O, runControl: k, cornerLeading: A, connectionControl: j, topLeftTools: M, bottomRightTools: N, selectedNodeIds: P, target: F, theme: I }, L) {
|
|
38751
38771
|
let [R, z] = X(), [ee, B] = X(!1);
|
|
38752
38772
|
J(() => {
|
|
38753
38773
|
i && (z(void 0), B(!1));
|
|
38754
38774
|
}, [i]);
|
|
38755
|
-
let V = it(), te = U(), [ne, re] = X(), [ie, ae] = X(), [oe, se] = X(o), ce = Y(null), le = Y(0), ue = Y(/* @__PURE__ */ new Map()), de = Y(new
|
|
38775
|
+
let V = it(), te = U(), [ne, re] = X(), [ie, ae] = X(), [oe, se] = X(o), ce = Y(null), le = Y(0), ue = Y(/* @__PURE__ */ new Map()), de = Y(new bH()), fe = Y(void 0), pe = zi(() => b(n), [n]);
|
|
38756
38776
|
Ri(() => {
|
|
38757
38777
|
le.current = s ? performance.now() : 0;
|
|
38758
38778
|
}, [s]), J(() => {
|
|
@@ -38760,7 +38780,7 @@ var CH = ji(function({ nodePicker: e, addNodeControl: t, addNodeOptions: n, hist
|
|
|
38760
38780
|
se(void 0);
|
|
38761
38781
|
return;
|
|
38762
38782
|
}
|
|
38763
|
-
let e = le.current == 0 ? 0 : performance.now() - le.current, t = Math.max(0,
|
|
38783
|
+
let e = le.current == 0 ? 0 : performance.now() - le.current, t = Math.max(0, SH - e);
|
|
38764
38784
|
if (t == 0) {
|
|
38765
38785
|
se(o);
|
|
38766
38786
|
return;
|
|
@@ -38835,11 +38855,11 @@ var CH = ji(function({ nodePicker: e, addNodeControl: t, addNodeOptions: n, hist
|
|
|
38835
38855
|
let t = e.metaKey || e.ctrlKey;
|
|
38836
38856
|
!t && e.key.toLocaleLowerCase() == "a" ? (e.preventDefault(), be()) : t && e.key.toLocaleLowerCase() == "c" && P.length > 0 ? (e.preventDefault(), p()) : t && e.key.toLocaleLowerCase() == "v" ? (e.preventDefault(), y()) : t && e.key.toLocaleLowerCase() == "d" && P.length > 0 && (e.preventDefault(), g());
|
|
38837
38857
|
},
|
|
38838
|
-
onPointerDown:
|
|
38858
|
+
onPointerDown: CH,
|
|
38839
38859
|
ref: ce,
|
|
38840
38860
|
tabIndex: 0,
|
|
38841
38861
|
children: [
|
|
38842
|
-
/* @__PURE__ */ Q(
|
|
38862
|
+
/* @__PURE__ */ Q(vH, {
|
|
38843
38863
|
onRequestAddNode: (e) => {
|
|
38844
38864
|
ne ?? B(!1), z(e);
|
|
38845
38865
|
},
|
|
@@ -38856,7 +38876,7 @@ var CH = ji(function({ nodePicker: e, addNodeControl: t, addNodeOptions: n, hist
|
|
|
38856
38876
|
isValidConnection: he,
|
|
38857
38877
|
language: V,
|
|
38858
38878
|
model: c,
|
|
38859
|
-
cornerTools: /* @__PURE__ */ $(Z, { children: [j, /* @__PURE__ */ Q(
|
|
38879
|
+
cornerTools: /* @__PURE__ */ $(Z, { children: [j, /* @__PURE__ */ Q(xH, {
|
|
38860
38880
|
label: te("designer.toggleInspector"),
|
|
38861
38881
|
open: s,
|
|
38862
38882
|
disabled: F == null,
|
|
@@ -38865,7 +38885,7 @@ var CH = ji(function({ nodePicker: e, addNodeControl: t, addNodeOptions: n, hist
|
|
|
38865
38885
|
cornerLeading: A,
|
|
38866
38886
|
topLeftTools: M,
|
|
38867
38887
|
bottomRightTools: N,
|
|
38868
|
-
toolbar: /* @__PURE__ */ Q(
|
|
38888
|
+
toolbar: /* @__PURE__ */ Q(TH, {
|
|
38869
38889
|
history: r == null ? void 0 : {
|
|
38870
38890
|
...r,
|
|
38871
38891
|
onUndo: () => {
|
|
@@ -38955,12 +38975,12 @@ var CH = ji(function({ nodePicker: e, addNodeControl: t, addNodeOptions: n, hist
|
|
|
38955
38975
|
]
|
|
38956
38976
|
});
|
|
38957
38977
|
});
|
|
38958
|
-
function
|
|
38978
|
+
function TH({ addNodeControl: e, history: t, pickerOpen: n, disabled: r, onOpenNodePicker: i, runControl: a, onAddTrigger: o }) {
|
|
38959
38979
|
let s = U();
|
|
38960
38980
|
return /* @__PURE__ */ $("div", {
|
|
38961
38981
|
className: "designer-actions",
|
|
38962
38982
|
children: [
|
|
38963
|
-
t != null && /* @__PURE__ */ Q(
|
|
38983
|
+
t != null && /* @__PURE__ */ Q(yH, {
|
|
38964
38984
|
...t,
|
|
38965
38985
|
disabled: r
|
|
38966
38986
|
}),
|
|
@@ -39011,12 +39031,12 @@ function wH({ addNodeControl: e, history: t, pickerOpen: n, disabled: r, onOpenN
|
|
|
39011
39031
|
}
|
|
39012
39032
|
//#endregion
|
|
39013
39033
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/use-render/useRender.js
|
|
39014
|
-
function
|
|
39034
|
+
function EH(e) {
|
|
39015
39035
|
return mt(e.defaultTagName ?? "div", e, e);
|
|
39016
39036
|
}
|
|
39017
39037
|
//#endregion
|
|
39018
39038
|
//#region src/ui/browser/badge.tsx
|
|
39019
|
-
var
|
|
39039
|
+
var DH = rn("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,background-color,border-color,box-shadow,opacity] focus-visible:border-border focus-visible:outline-2 focus-visible:outline-solid focus-visible:ring-0 focus-visible:aria-invalid:ring-0 focus-visible:outline-offset-1 focus-visible:outline-ring has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
39020
39040
|
variants: { variant: {
|
|
39021
39041
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
39022
39042
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
@@ -39027,10 +39047,10 @@ var EH = rn("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-cen
|
|
|
39027
39047
|
} },
|
|
39028
39048
|
defaultVariants: { variant: "default" }
|
|
39029
39049
|
});
|
|
39030
|
-
function
|
|
39031
|
-
return
|
|
39050
|
+
function OH({ className: e, variant: t = "default", render: n, ...r }) {
|
|
39051
|
+
return EH({
|
|
39032
39052
|
defaultTagName: "span",
|
|
39033
|
-
props: Cn({ className: Ut(
|
|
39053
|
+
props: Cn({ className: Ut(DH({ variant: t }), e) }, r),
|
|
39034
39054
|
render: n,
|
|
39035
39055
|
state: {
|
|
39036
39056
|
slot: "badge",
|
|
@@ -39040,7 +39060,7 @@ function DH({ className: e, variant: t = "default", render: n, ...r }) {
|
|
|
39040
39060
|
}
|
|
39041
39061
|
//#endregion
|
|
39042
39062
|
//#region src/workbench/browser/runtime/publications/liveTriggers.tsx
|
|
39043
|
-
function
|
|
39063
|
+
function kH(e, t) {
|
|
39044
39064
|
if (e.currentPublicationId == null) return t("publication.retired");
|
|
39045
39065
|
if (e.operatorState == "paused") return t("publication.suspended");
|
|
39046
39066
|
if (e.listener?.health == "healthy" && (e.health == "failed" || e.health == "needs_reauth")) return t("publication.listenerDegraded");
|
|
@@ -39052,7 +39072,7 @@ function OH(e, t) {
|
|
|
39052
39072
|
case "suspended": return t("publication.suspended");
|
|
39053
39073
|
}
|
|
39054
39074
|
}
|
|
39055
|
-
function
|
|
39075
|
+
function AH(e, t) {
|
|
39056
39076
|
switch (e) {
|
|
39057
39077
|
case "delivery.failed": return t("publication.activityDeliveryFailed");
|
|
39058
39078
|
case "health.failed": return t("publication.activityHealthFailed");
|
|
@@ -39063,10 +39083,10 @@ function kH(e, t) {
|
|
|
39063
39083
|
case "operator.resumed": return t("publication.activityOperatorResumed");
|
|
39064
39084
|
}
|
|
39065
39085
|
}
|
|
39066
|
-
function
|
|
39086
|
+
function jH(e, t) {
|
|
39067
39087
|
return t == null || e.currentRevisionId != t.revision.revisionId ? e.triggerNodeId : t.trigger(e.triggerNodeId)?.name ?? e.triggerNodeId;
|
|
39068
39088
|
}
|
|
39069
|
-
function
|
|
39089
|
+
function MH(e) {
|
|
39070
39090
|
if (e.currentPublicationId == null || e.operatorState == "paused") return "neutral";
|
|
39071
39091
|
if (e.listener?.health == "healthy" && (e.health == "failed" || e.health == "needs_reauth")) return "running";
|
|
39072
39092
|
switch (e.listener?.health == "failed" || e.listener?.health == "needs_reauth" ? e.listener.health : e.health) {
|
|
@@ -39077,21 +39097,21 @@ function jH(e) {
|
|
|
39077
39097
|
case "suspended": return "neutral";
|
|
39078
39098
|
}
|
|
39079
39099
|
}
|
|
39080
|
-
function
|
|
39100
|
+
function NH({ binding: e }) {
|
|
39081
39101
|
let t = U();
|
|
39082
39102
|
return /* @__PURE__ */ Q("span", {
|
|
39083
|
-
className: "trigger-binding-state " +
|
|
39084
|
-
children:
|
|
39103
|
+
className: "trigger-binding-state " + MH(e),
|
|
39104
|
+
children: kH(e, t)
|
|
39085
39105
|
});
|
|
39086
39106
|
}
|
|
39087
|
-
function
|
|
39107
|
+
function PH({ binding: e }) {
|
|
39088
39108
|
let t = U();
|
|
39089
39109
|
return e.listener == null || e.currentPublicationId == null || e.operatorState == "paused" ? null : /* @__PURE__ */ $("p", {
|
|
39090
39110
|
className: "trigger-recovery",
|
|
39091
39111
|
children: [t(e.listener.health == "healthy" ? "publication.listenerScanning" : e.listener.health == "needs_reauth" ? "publication.needsReauthDescription" : "publication.listenerScanFailed"), e.listener.lastErrorCode == null ? "" : ` (${e.listener.lastErrorCode})`]
|
|
39092
39112
|
});
|
|
39093
39113
|
}
|
|
39094
|
-
function
|
|
39114
|
+
function FH({ store: e }) {
|
|
39095
39115
|
let t = it(), n = U(), r = H(e.publications.$.activities), i = H(e.publications.$.activitiesLoadFailed), a = H(e.publications.$.activitiesLoading), o = H(e.publications.$.activitiesLoadingMore), s = H(e.publications.$.activitiesNextCursor), c = H(e.publications.$.bindings), l = H(e.publications.$.detail), u = H(e.publications.$.detailLoading), d = H(e.publications.$.selectedTriggerId), f = H(e.publications.$.testingTriggerId), p = H(e.publications.$.testResult), m = H(e.$.busy), h = H(e.publications.$.changingTriggerId), g = H(e.workspace.$.revision), [_, v] = X();
|
|
39096
39116
|
J(() => v(void 0), [l?.binding.endpointUrl]);
|
|
39097
39117
|
let [y, b] = X(null), x = Y(null), S = q((e) => b(e?.closest(".open-flow-workbench") ?? null), []);
|
|
@@ -39124,19 +39144,19 @@ function PH({ store: e }) {
|
|
|
39124
39144
|
},
|
|
39125
39145
|
variant: "ghost",
|
|
39126
39146
|
size: "sm",
|
|
39127
|
-
children: [/* @__PURE__ */ Q("span", { className: `status-dot mr-1 ${
|
|
39147
|
+
children: [/* @__PURE__ */ Q("span", { className: `status-dot mr-1 ${MH(t)}` }), /* @__PURE__ */ $("span", {
|
|
39128
39148
|
className: "trigger-binding-label",
|
|
39129
39149
|
children: [/* @__PURE__ */ Q("span", {
|
|
39130
39150
|
className: "trigger-binding-name",
|
|
39131
39151
|
title: t.triggerNodeId,
|
|
39132
|
-
children:
|
|
39152
|
+
children: jH(t, g)
|
|
39133
39153
|
}), /* @__PURE__ */ Q("span", {
|
|
39134
39154
|
className: "trigger-binding-kind",
|
|
39135
39155
|
children: t.kind
|
|
39136
39156
|
})]
|
|
39137
39157
|
})]
|
|
39138
39158
|
}),
|
|
39139
|
-
/* @__PURE__ */ Q(
|
|
39159
|
+
/* @__PURE__ */ Q(NH, { binding: t }),
|
|
39140
39160
|
t.currentPublicationId != null && /* @__PURE__ */ Q(W, {
|
|
39141
39161
|
disabled: m != null,
|
|
39142
39162
|
onClick: () => void e.publications.toggleTrigger(t),
|
|
@@ -39160,7 +39180,7 @@ function PH({ store: e }) {
|
|
|
39160
39180
|
className: "flex max-h-[85dvh] flex-col overflow-hidden sm:max-w-[min(42rem,calc(100%-2rem))]",
|
|
39161
39181
|
children: [/* @__PURE__ */ Q(gr, {
|
|
39162
39182
|
className: "pr-8 break-words",
|
|
39163
|
-
children: C == null ? d :
|
|
39183
|
+
children: C == null ? d : jH(C, g)
|
|
39164
39184
|
}), /* @__PURE__ */ Q("div", {
|
|
39165
39185
|
className: "trigger-binding-detail",
|
|
39166
39186
|
children: u ? /* @__PURE__ */ Q("p", {
|
|
@@ -39177,12 +39197,12 @@ function PH({ store: e }) {
|
|
|
39177
39197
|
/* @__PURE__ */ $("dl", { children: [
|
|
39178
39198
|
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: n("publication.triggerKind") }), /* @__PURE__ */ Q("dd", { children: l.binding.kind })] }),
|
|
39179
39199
|
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: n("publication.runtimeVersion") }), /* @__PURE__ */ Q("dd", { children: l.binding.runtimeVersion })] }),
|
|
39180
|
-
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: n("publication.triggerHealth") }), /* @__PURE__ */ Q("dd", { children:
|
|
39200
|
+
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: n("publication.triggerHealth") }), /* @__PURE__ */ Q("dd", { children: kH(l.binding, n) })] }),
|
|
39181
39201
|
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: n("publication.operatorState") }), /* @__PURE__ */ Q("dd", { children: n(l.binding.operatorState == "paused" ? "publication.suspended" : "publication.active") })] }),
|
|
39182
39202
|
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: n("publication.updatedAt") }), /* @__PURE__ */ Q("dd", { children: new Date(l.binding.updatedAt).toLocaleString(t) })] }),
|
|
39183
39203
|
l.binding.lastErrorCode != null && /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: n("publication.lastError") }), /* @__PURE__ */ Q("dd", { children: l.binding.lastErrorCode })] })
|
|
39184
39204
|
] }),
|
|
39185
|
-
/* @__PURE__ */ Q(
|
|
39205
|
+
/* @__PURE__ */ Q(PH, { binding: l.binding }),
|
|
39186
39206
|
l.binding.health == "needs_reauth" && /* @__PURE__ */ Q("p", {
|
|
39187
39207
|
className: "trigger-recovery",
|
|
39188
39208
|
children: n("publication.needsReauthDescription")
|
|
@@ -39249,7 +39269,7 @@ function PH({ store: e }) {
|
|
|
39249
39269
|
children: [
|
|
39250
39270
|
/* @__PURE__ */ Q("span", { className: "status-dot neutral" }),
|
|
39251
39271
|
/* @__PURE__ */ $("div", { children: [
|
|
39252
|
-
/* @__PURE__ */ Q("strong", { children:
|
|
39272
|
+
/* @__PURE__ */ Q("strong", { children: AH(e.kind, n) }),
|
|
39253
39273
|
e.errorCode != null && /* @__PURE__ */ Q("code", { children: e.errorCode }),
|
|
39254
39274
|
e.errorMessage != null && /* @__PURE__ */ Q("p", {
|
|
39255
39275
|
className: "trigger-activity-message",
|
|
@@ -39283,7 +39303,7 @@ function PH({ store: e }) {
|
|
|
39283
39303
|
}
|
|
39284
39304
|
//#endregion
|
|
39285
39305
|
//#region src/workbench/browser/runtime/publications/publicationActor.tsx
|
|
39286
|
-
function
|
|
39306
|
+
function IH({ actorId: e, store: t }) {
|
|
39287
39307
|
let [n, r] = X(null), [i, a] = X(!1);
|
|
39288
39308
|
J(() => {
|
|
39289
39309
|
let n = !0;
|
|
@@ -39314,7 +39334,7 @@ function FH({ actorId: e, store: t }) {
|
|
|
39314
39334
|
}
|
|
39315
39335
|
//#endregion
|
|
39316
39336
|
//#region src/workbench/browser/runtime/editor/revisionCanvasSession.ts
|
|
39317
|
-
function
|
|
39337
|
+
function LH(e, t, n) {
|
|
39318
39338
|
let r = e[t], i = n.kind === "move" ? {
|
|
39319
39339
|
...r,
|
|
39320
39340
|
positions: {
|
|
@@ -39335,7 +39355,7 @@ function IH(e, t, n) {
|
|
|
39335
39355
|
}
|
|
39336
39356
|
//#endregion
|
|
39337
39357
|
//#region src/workbench/browser/runtime/editor/revisionCanvas.tsx
|
|
39338
|
-
function
|
|
39358
|
+
function RH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i, striped: a = !0, showHeader: o = !0 }) {
|
|
39339
39359
|
let s = Y(null), c = U(), l = it(), u = zi(() => we(e), [e]), [d, f] = X({ kind: "flow" }), p = d.kind === "flow" ? "flow" : `subflow:${d.id}`, [m, h] = X({}), [g, _] = X([]), [v, y] = X(!1), [b, x] = X(), S = zi(() => w(e, d, t?.value, [], {}, {}, c), [
|
|
39340
39360
|
e,
|
|
39341
39361
|
d,
|
|
@@ -39373,8 +39393,8 @@ function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i
|
|
|
39373
39393
|
E && /* @__PURE__ */ $(W, {
|
|
39374
39394
|
className: "ml-auto",
|
|
39375
39395
|
size: "xs",
|
|
39376
|
-
variant: "
|
|
39377
|
-
onClick: () => h((e) =>
|
|
39396
|
+
variant: "ghost",
|
|
39397
|
+
onClick: () => h((e) => LH(e, p, { kind: "restore" })),
|
|
39378
39398
|
children: [/* @__PURE__ */ Q("i", {
|
|
39379
39399
|
"aria-hidden": "true",
|
|
39380
39400
|
className: "i-lucide-light:rotate-ccw"
|
|
@@ -39398,7 +39418,7 @@ function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i
|
|
|
39398
39418
|
className: "revision-viewer-body",
|
|
39399
39419
|
children: [/* @__PURE__ */ $("div", {
|
|
39400
39420
|
className: "revision-viewer-canvas",
|
|
39401
|
-
children: [/* @__PURE__ */ Q(
|
|
39421
|
+
children: [/* @__PURE__ */ Q(vH, {
|
|
39402
39422
|
identity: p,
|
|
39403
39423
|
model: T,
|
|
39404
39424
|
editable: !1,
|
|
@@ -39411,11 +39431,11 @@ function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i
|
|
|
39411
39431
|
selectedNodeIds: g,
|
|
39412
39432
|
ignoredNodeIds: [],
|
|
39413
39433
|
focusNodeRequest: b,
|
|
39414
|
-
onMoveNodes: (e) => h((t) =>
|
|
39434
|
+
onMoveNodes: (e) => h((t) => LH(t, p, {
|
|
39415
39435
|
kind: "move",
|
|
39416
39436
|
positions: e
|
|
39417
39437
|
})),
|
|
39418
|
-
onMoveViewport: (e) => h((t) =>
|
|
39438
|
+
onMoveViewport: (e) => h((t) => LH(t, p, {
|
|
39419
39439
|
kind: "viewport",
|
|
39420
39440
|
viewport: e
|
|
39421
39441
|
})),
|
|
@@ -39424,7 +39444,7 @@ function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i
|
|
|
39424
39444
|
onInspectSelection: () => y(!0),
|
|
39425
39445
|
inspectorOpen: v,
|
|
39426
39446
|
toolbar: o ? void 0 : j,
|
|
39427
|
-
cornerTools: /* @__PURE__ */ Q(
|
|
39447
|
+
cornerTools: /* @__PURE__ */ Q(xH, {
|
|
39428
39448
|
label: c("designer.toggleInspector"),
|
|
39429
39449
|
open: v,
|
|
39430
39450
|
disabled: !1,
|
|
@@ -39439,16 +39459,15 @@ function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i
|
|
|
39439
39459
|
className: "open-flow-property-panel",
|
|
39440
39460
|
theme: n,
|
|
39441
39461
|
title: O?.node.name ?? k?.title ?? c("inspector.title"),
|
|
39442
|
-
icon: Cx(O, d),
|
|
39462
|
+
icon: k?.kind === "comment" ? "comment" : Cx(O, d),
|
|
39443
39463
|
focusOnOpen: !0,
|
|
39444
39464
|
onClose: () => y(!1),
|
|
39445
|
-
children: O == null ? k?.kind === "comment" ? /* @__PURE__ */ Q(
|
|
39446
|
-
|
|
39447
|
-
|
|
39448
|
-
|
|
39449
|
-
|
|
39450
|
-
|
|
39451
|
-
}) : /* @__PURE__ */ Q(Vl, {
|
|
39465
|
+
children: O == null ? k?.kind === "comment" ? /* @__PURE__ */ Q(to, {
|
|
39466
|
+
title: k.title,
|
|
39467
|
+
content: k.content ?? "",
|
|
39468
|
+
dark: n === "dark",
|
|
39469
|
+
readOnly: !0
|
|
39470
|
+
}, k.id) : /* @__PURE__ */ Q(Vl, {
|
|
39452
39471
|
nodes: g.length > 1 ? T.nodes.filter((e) => g.includes(e.id)) : T.nodes,
|
|
39453
39472
|
onSelect: (e) => A([e]),
|
|
39454
39473
|
onFocusNode: (e) => {
|
|
@@ -39474,7 +39493,7 @@ function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i
|
|
|
39474
39493
|
}
|
|
39475
39494
|
//#endregion
|
|
39476
39495
|
//#region src/workbench/browser/runtime/publications/publicationSnapshot.tsx
|
|
39477
|
-
function
|
|
39496
|
+
function zH({ publication: e, store: t, theme: n }) {
|
|
39478
39497
|
let r = U(), [i, a] = X(0), [o, s] = X(), [c, l] = X(!1), { flowId: u, publicationId: d, revisionId: f } = e;
|
|
39479
39498
|
return J(() => {
|
|
39480
39499
|
let e = new AbortController();
|
|
@@ -39506,7 +39525,7 @@ function RH({ publication: e, store: t, theme: n }) {
|
|
|
39506
39525
|
className: "publication-empty",
|
|
39507
39526
|
role: "status",
|
|
39508
39527
|
children: r("snapshot.loading")
|
|
39509
|
-
}) : /* @__PURE__ */ Q(
|
|
39528
|
+
}) : /* @__PURE__ */ Q(RH, {
|
|
39510
39529
|
draft: o.draft,
|
|
39511
39530
|
presentation: o.presentation,
|
|
39512
39531
|
theme: n,
|
|
@@ -39515,24 +39534,24 @@ function RH({ publication: e, store: t, theme: n }) {
|
|
|
39515
39534
|
}
|
|
39516
39535
|
//#endregion
|
|
39517
39536
|
//#region src/workbench/browser/runtime/publications/publicationsView.tsx
|
|
39518
|
-
function
|
|
39537
|
+
function BH(e) {
|
|
39519
39538
|
return e.slice(-8);
|
|
39520
39539
|
}
|
|
39521
|
-
function
|
|
39540
|
+
function VH({ value: e }) {
|
|
39522
39541
|
return /* @__PURE__ */ $("code", {
|
|
39523
39542
|
title: e,
|
|
39524
39543
|
children: [/* @__PURE__ */ Q("span", {
|
|
39525
39544
|
"aria-hidden": "true",
|
|
39526
|
-
children:
|
|
39545
|
+
children: BH(e)
|
|
39527
39546
|
}), /* @__PURE__ */ Q("span", {
|
|
39528
39547
|
className: "sr-only",
|
|
39529
39548
|
children: e
|
|
39530
39549
|
})]
|
|
39531
39550
|
});
|
|
39532
39551
|
}
|
|
39533
|
-
function
|
|
39552
|
+
function HH({ enabled: e }) {
|
|
39534
39553
|
let t = U();
|
|
39535
|
-
return /* @__PURE__ */ $(
|
|
39554
|
+
return /* @__PURE__ */ $(OH, {
|
|
39536
39555
|
variant: "secondary",
|
|
39537
39556
|
title: t(e ? "publication.enabled" : "publication.disabled"),
|
|
39538
39557
|
children: [/* @__PURE__ */ Q("span", {
|
|
@@ -39541,7 +39560,7 @@ function VH({ enabled: e }) {
|
|
|
39541
39560
|
}), t("publication.current")]
|
|
39542
39561
|
});
|
|
39543
39562
|
}
|
|
39544
|
-
function
|
|
39563
|
+
function UH({ store: e, onClose: t, theme: n = "light" }) {
|
|
39545
39564
|
let r = it(), i = U(), o = H(e.$.busy), s = H(e.workspace.$.targetFlow), c = H(e.publications.$.live), l = H(e.publications.$.loadFailed), u = H(e.publications.$.loading) || !l && c == null, d = H(e.publications.$.loadMoreFailed), f = H(e.publications.$.loadingMore), p = H(e.publications.$.nextCursor), m = H(e.publications.$.publications), h = H(e.workspace.$.flowId), g = H(e.publications.$.refreshing), _ = H(e.publications.$.rollingBackPublicationId), [v, y] = X(), [b, x] = X(), S = m.find((e) => e.publicationId === b?.publicationId) ?? b ?? m[0], [w, T] = X(!1), [E, D] = X(!1), O = Y(null), k = Y(null), A = Y(null), M = Y(), N = Y(null), P = Y(null), F = Ii();
|
|
39546
39565
|
J(() => {
|
|
39547
39566
|
v != null && P.current?.focus();
|
|
@@ -39576,7 +39595,7 @@ function HH({ store: e, onClose: t, theme: n = "light" }) {
|
|
|
39576
39595
|
children: i("empty.retry")
|
|
39577
39596
|
}), B = (e) => /* @__PURE__ */ Q(De, {
|
|
39578
39597
|
value: e,
|
|
39579
|
-
label:
|
|
39598
|
+
label: BH(e),
|
|
39580
39599
|
trigger: /* @__PURE__ */ Q("span", {
|
|
39581
39600
|
tabIndex: 0,
|
|
39582
39601
|
className: "font-mono cursor-help"
|
|
@@ -39681,7 +39700,7 @@ function HH({ store: e, onClose: t, theme: n = "light" }) {
|
|
|
39681
39700
|
}),
|
|
39682
39701
|
/* @__PURE__ */ Q("span", {
|
|
39683
39702
|
className: "publication-list-meta col-start-2 font-normal",
|
|
39684
|
-
children: /* @__PURE__ */ Q(
|
|
39703
|
+
children: /* @__PURE__ */ Q(VH, { value: e.publicationId })
|
|
39685
39704
|
})
|
|
39686
39705
|
]
|
|
39687
39706
|
}, e.publicationId))]
|
|
@@ -39720,7 +39739,7 @@ function HH({ store: e, onClose: t, theme: n = "light" }) {
|
|
|
39720
39739
|
" ",
|
|
39721
39740
|
B(S.publicationId)
|
|
39722
39741
|
]
|
|
39723
|
-
}), S.publicationId == R && /* @__PURE__ */ Q(
|
|
39742
|
+
}), S.publicationId == R && /* @__PURE__ */ Q(HH, { enabled: c?.status == "runnable" })]
|
|
39724
39743
|
}),
|
|
39725
39744
|
/* @__PURE__ */ $("div", {
|
|
39726
39745
|
className: "publication-detail-actions",
|
|
@@ -39768,7 +39787,7 @@ function HH({ store: e, onClose: t, theme: n = "light" }) {
|
|
|
39768
39787
|
}),
|
|
39769
39788
|
/* @__PURE__ */ $("span", {
|
|
39770
39789
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
39771
|
-
children: [/* @__PURE__ */ $("span", { children: [i(S.operation === "rollback" ? "publication.restoredBy" : "publication.actor"), ":"] }), /* @__PURE__ */ Q(
|
|
39790
|
+
children: [/* @__PURE__ */ $("span", { children: [i(S.operation === "rollback" ? "publication.restoredBy" : "publication.actor"), ":"] }), /* @__PURE__ */ Q(IH, {
|
|
39772
39791
|
actorId: S.actorId,
|
|
39773
39792
|
store: e.actors
|
|
39774
39793
|
}, S.actorId)]
|
|
@@ -39787,8 +39806,8 @@ function HH({ store: e, onClose: t, theme: n = "light" }) {
|
|
|
39787
39806
|
role: "group",
|
|
39788
39807
|
"aria-label": i("publication.rollback"),
|
|
39789
39808
|
children: [/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("strong", { children: i("publication.rollbackConfirm") }), /* @__PURE__ */ Q("p", { children: i("publication.rollbackTarget", {
|
|
39790
|
-
publication:
|
|
39791
|
-
revision:
|
|
39809
|
+
publication: BH(S.publicationId),
|
|
39810
|
+
revision: BH(S.revisionId)
|
|
39792
39811
|
}) })] }), /* @__PURE__ */ $("div", {
|
|
39793
39812
|
className: "flex shrink-0 gap-2",
|
|
39794
39813
|
children: [/* @__PURE__ */ Q(W, {
|
|
@@ -39813,9 +39832,9 @@ function HH({ store: e, onClose: t, theme: n = "light" }) {
|
|
|
39813
39832
|
}),
|
|
39814
39833
|
S.publicationId === R && c != null && /* @__PURE__ */ Q("section", {
|
|
39815
39834
|
className: "publication-live-triggers",
|
|
39816
|
-
children: /* @__PURE__ */ Q(
|
|
39835
|
+
children: /* @__PURE__ */ Q(FH, { store: e })
|
|
39817
39836
|
}),
|
|
39818
|
-
/* @__PURE__ */ Q(
|
|
39837
|
+
/* @__PURE__ */ Q(zH, {
|
|
39819
39838
|
publication: S,
|
|
39820
39839
|
store: e,
|
|
39821
39840
|
theme: n
|
|
@@ -39830,7 +39849,7 @@ function HH({ store: e, onClose: t, theme: n = "light" }) {
|
|
|
39830
39849
|
}
|
|
39831
39850
|
//#endregion
|
|
39832
39851
|
//#region src/workbench/browser/runtime/runs/runControl.tsx
|
|
39833
|
-
function
|
|
39852
|
+
function WH({ disabled: e, inputContent: t, inputOpen: n, inputStatus: r, onInputOpenChange: i, onRun: a, onSelectTrigger: o, selectedTriggerId: s, starting: c, title: l, triggers: u }) {
|
|
39834
39853
|
let d = U(), f = Ii(), p = Y(null), [m, h] = X(), [_, v] = X(null), y = u.find((e) => e.id == s) ?? u[0], b = d(r == "ready" ? "runInput.editReady" : "runInput.editMissing"), x = d("runInput.testTrigger", { name: y.title }), S = c ? d("workspace.starting") : x;
|
|
39835
39854
|
return Ri(() => {
|
|
39836
39855
|
let e = p.current;
|
|
@@ -39978,7 +39997,7 @@ function UH({ disabled: e, inputContent: t, inputOpen: n, inputStatus: r, onInpu
|
|
|
39978
39997
|
}
|
|
39979
39998
|
//#endregion
|
|
39980
39999
|
//#region src/execution/common/wait.ts
|
|
39981
|
-
var
|
|
40000
|
+
var GH = Rn().trim().refine((e) => [...e].length <= 2e3, "Wait comment must contain at most 2,000 Unicode code points.").nullable().optional(), KH = rn("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
39982
40001
|
variants: { variant: {
|
|
39983
40002
|
default: "bg-card text-card-foreground",
|
|
39984
40003
|
error: "border-border bg-card text-card-foreground *:[svg]:text-destructive",
|
|
@@ -39986,22 +40005,22 @@ var WH = Rn().trim().refine((e) => [...e].length <= 2e3, "Wait comment must cont
|
|
|
39986
40005
|
} },
|
|
39987
40006
|
defaultVariants: { variant: "default" }
|
|
39988
40007
|
});
|
|
39989
|
-
function
|
|
40008
|
+
function qH({ className: e, variant: t, ...n }) {
|
|
39990
40009
|
return /* @__PURE__ */ Q("div", {
|
|
39991
40010
|
"data-slot": "alert",
|
|
39992
40011
|
role: "alert",
|
|
39993
|
-
className: Ut(
|
|
40012
|
+
className: Ut(KH({ variant: t }), e),
|
|
39994
40013
|
...n
|
|
39995
40014
|
});
|
|
39996
40015
|
}
|
|
39997
|
-
function
|
|
40016
|
+
function JH({ className: e, ...t }) {
|
|
39998
40017
|
return /* @__PURE__ */ Q("div", {
|
|
39999
40018
|
"data-slot": "alert-title",
|
|
40000
40019
|
className: Ut("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", e),
|
|
40001
40020
|
...t
|
|
40002
40021
|
});
|
|
40003
40022
|
}
|
|
40004
|
-
function
|
|
40023
|
+
function YH({ className: e, ...t }) {
|
|
40005
40024
|
return /* @__PURE__ */ Q("div", {
|
|
40006
40025
|
"data-slot": "alert-description",
|
|
40007
40026
|
className: Ut("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", e),
|
|
@@ -40010,10 +40029,10 @@ function JH({ className: e, ...t }) {
|
|
|
40010
40029
|
}
|
|
40011
40030
|
//#endregion
|
|
40012
40031
|
//#region src/workbench/browser/runtime/runs/runGroups.ts
|
|
40013
|
-
function
|
|
40032
|
+
function XH(e) {
|
|
40014
40033
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
40015
40034
|
for (let r of e) {
|
|
40016
|
-
let e =
|
|
40035
|
+
let e = eU(r);
|
|
40017
40036
|
if (e == null) {
|
|
40018
40037
|
t.push({
|
|
40019
40038
|
key: `event:${r.sequence}`,
|
|
@@ -40031,7 +40050,7 @@ function YH(e) {
|
|
|
40031
40050
|
}
|
|
40032
40051
|
return t;
|
|
40033
40052
|
}
|
|
40034
|
-
function
|
|
40053
|
+
function ZH(e) {
|
|
40035
40054
|
if (e.kind == "node.log") try {
|
|
40036
40055
|
let t = JSON.parse(e.payload.message);
|
|
40037
40056
|
if (typeof t != "object" || !t || Array.isArray(t)) return;
|
|
@@ -40048,9 +40067,9 @@ function XH(e) {
|
|
|
40048
40067
|
return;
|
|
40049
40068
|
}
|
|
40050
40069
|
}
|
|
40051
|
-
function
|
|
40070
|
+
function QH(e, t) {
|
|
40052
40071
|
if (e.kind == "node.started" && e.payload.nodeKind == "agent") return t("run.agentStarted");
|
|
40053
|
-
let n =
|
|
40072
|
+
let n = ZH(e);
|
|
40054
40073
|
if (n == null) return;
|
|
40055
40074
|
if (n.kind == "model") return t("run.agentRound", { round: Number(n.round) });
|
|
40056
40075
|
if (n.kind == "model-tool") return t(n.status == "requested" ? "run.agentToolRequested" : "run.agentToolRequestFailed", { action: String(n.toolName) });
|
|
@@ -40075,7 +40094,7 @@ function ZH(e, t) {
|
|
|
40075
40094
|
case "rejected": return t("run.agentToolRejected", { action: i });
|
|
40076
40095
|
}
|
|
40077
40096
|
}
|
|
40078
|
-
function
|
|
40097
|
+
function $H(e, t, n) {
|
|
40079
40098
|
let r = e.kind == "node.started" ? e.payload.nodeTitle : void 0;
|
|
40080
40099
|
if (typeof r == "string") return r;
|
|
40081
40100
|
let i = "executionId" in e.payload ? e.payload.executionId : void 0;
|
|
@@ -40086,22 +40105,22 @@ function QH(e, t, n) {
|
|
|
40086
40105
|
let a = e.payload.nodeId;
|
|
40087
40106
|
return typeof a == "string" ? n?.get(JSON.stringify([e.payload.scopeId, a])) ?? (e.payload.scopeId == null ? n?.get(a) : void 0) ?? a : e.kind.startsWith("run.") ? t?.("run.flowSubject") ?? "Flow run" : t?.("run.nodeSubject") ?? "Node";
|
|
40088
40107
|
}
|
|
40089
|
-
function
|
|
40108
|
+
function eU(e) {
|
|
40090
40109
|
if (!(!e.kind.startsWith("node.") || !("executionId" in e.payload))) return JSON.stringify([
|
|
40091
40110
|
e.payload.scopeId,
|
|
40092
40111
|
e.payload.nodeId,
|
|
40093
40112
|
e.payload.executionId
|
|
40094
40113
|
]);
|
|
40095
40114
|
}
|
|
40096
|
-
function
|
|
40115
|
+
function tU(e, t) {
|
|
40097
40116
|
let n = /* @__PURE__ */ new Map();
|
|
40098
|
-
return
|
|
40117
|
+
return XH(e).filter((e) => e.node).map((e) => {
|
|
40099
40118
|
let r = e.events[0], i = JSON.stringify([r.payload.scopeId, r.payload.nodeId]), a = (n.get(i) ?? 0) + 1;
|
|
40100
40119
|
n.set(i, a);
|
|
40101
40120
|
let o = e.events.find((e) => e.kind == "node.started"), s = e.events.findLast((e) => e.kind == "node.completed" || e.kind == "node.failed"), c = e.events.findLast((e) => e.kind == "node.log" || e.kind == "node.progress"), l = e.events.findLast((e) => e.kind == "node.log"), u = o?.payload.nodeKind == "agent", d = new Set(e.events.flatMap((e) => {
|
|
40102
|
-
let t =
|
|
40121
|
+
let t = ZH(e);
|
|
40103
40122
|
return t?.kind == "tool" && t.status == "completed" ? [t.callId] : [];
|
|
40104
|
-
})).size, f = s?.kind == "node.completed" ? "completed" : s?.kind == "node.failed" ? "failed" : o == null || !["running", "waiting"].includes(t ?? "") ? "unknown" : l != null &&
|
|
40123
|
+
})).size, f = s?.kind == "node.completed" ? "completed" : s?.kind == "node.failed" ? "failed" : o == null || !["running", "waiting"].includes(t ?? "") ? "unknown" : l != null && ZH(l)?.status == "approval" ? "waiting" : t == "waiting" || o.payload.nodeKind == "wait" || o.payload.nodeKind == "approval" ? "unknown" : "running";
|
|
40105
40124
|
return {
|
|
40106
40125
|
key: e.key,
|
|
40107
40126
|
events: e.events,
|
|
@@ -40112,17 +40131,17 @@ function eU(e, t) {
|
|
|
40112
40131
|
agent: u,
|
|
40113
40132
|
completedCalls: d,
|
|
40114
40133
|
status: f,
|
|
40115
|
-
toolResults:
|
|
40134
|
+
toolResults: rU(e.events)
|
|
40116
40135
|
};
|
|
40117
40136
|
});
|
|
40118
40137
|
}
|
|
40119
|
-
function
|
|
40120
|
-
return e.kind == "node.log" && t?.kind == "node.log" &&
|
|
40138
|
+
function nU(e, t) {
|
|
40139
|
+
return e.kind == "node.log" && t?.kind == "node.log" && ZH(e) == null && ZH(t) == null && eU(e) == eU(t) && e.payload.level == t.payload.level;
|
|
40121
40140
|
}
|
|
40122
|
-
function
|
|
40141
|
+
function rU(e) {
|
|
40123
40142
|
let t = /* @__PURE__ */ new Map();
|
|
40124
40143
|
for (let n of e) {
|
|
40125
|
-
let e =
|
|
40144
|
+
let e = ZH(n);
|
|
40126
40145
|
if (e?.kind != "tool" || e.status != "completed") continue;
|
|
40127
40146
|
let r = e.output;
|
|
40128
40147
|
if (typeof r != "object" || !r || Array.isArray(r)) continue;
|
|
@@ -40140,7 +40159,7 @@ function nU(e) {
|
|
|
40140
40159
|
}
|
|
40141
40160
|
//#endregion
|
|
40142
40161
|
//#region src/workbench/browser/runtime/runs/runLogExport.ts
|
|
40143
|
-
function
|
|
40162
|
+
function iU(e, t, n, r) {
|
|
40144
40163
|
return `${[
|
|
40145
40164
|
{
|
|
40146
40165
|
record: "run",
|
|
@@ -40159,29 +40178,29 @@ function rU(e, t, n, r) {
|
|
|
40159
40178
|
}
|
|
40160
40179
|
].map((e) => JSON.stringify(e)).join("\n")}\n`;
|
|
40161
40180
|
}
|
|
40162
|
-
function
|
|
40163
|
-
let i =
|
|
40181
|
+
function aU(e, t, n, r) {
|
|
40182
|
+
let i = iU(e, t, n, r), a = URL.createObjectURL(new Blob([i], { type: "application/x-ndjson;charset=utf-8" })), o = document.createElement("a");
|
|
40164
40183
|
o.download = `run-log-${e.runId.replace(/[^a-zA-Z0-9_-]/g, "_")}.jsonl`, o.href = a, document.body.append(o), o.click(), o.remove(), setTimeout(() => URL.revokeObjectURL(a), 0);
|
|
40165
40184
|
}
|
|
40166
40185
|
//#endregion
|
|
40167
40186
|
//#region src/workbench/browser/runtime/runs/runOutput.tsx
|
|
40168
|
-
function
|
|
40187
|
+
function oU(e) {
|
|
40169
40188
|
if (!(typeof e != "object" || !e || Array.isArray(e))) return e;
|
|
40170
40189
|
}
|
|
40171
|
-
function
|
|
40172
|
-
let t =
|
|
40173
|
-
if (t?.kind == "function-outputs") return
|
|
40190
|
+
function sU(e) {
|
|
40191
|
+
let t = oU(e);
|
|
40192
|
+
if (t?.kind == "function-outputs") return oU(t.outputs) ?? e;
|
|
40174
40193
|
if (t?.kind != "node-results" || !Array.isArray(t.nodes)) return e;
|
|
40175
40194
|
let n = [];
|
|
40176
40195
|
for (let e of t.nodes) {
|
|
40177
|
-
let t =
|
|
40196
|
+
let t = oU(e);
|
|
40178
40197
|
if (t?.status != "completed") continue;
|
|
40179
|
-
let r =
|
|
40198
|
+
let r = oU(t.outputs);
|
|
40180
40199
|
r != null && n.push(r);
|
|
40181
40200
|
}
|
|
40182
40201
|
return n.length == 1 ? n[0] : n;
|
|
40183
40202
|
}
|
|
40184
|
-
function
|
|
40203
|
+
function cU({ text: e }) {
|
|
40185
40204
|
let t = U(), [n, r] = X("idle"), [i, a] = X(!1), o = Ii(), s = e.length > 160 || e.split("\n").length > 3, c = e.split("\n").slice(0, 3).join("\n").slice(0, 160).trimEnd();
|
|
40186
40205
|
return /* @__PURE__ */ $("div", {
|
|
40187
40206
|
className: "run-text",
|
|
@@ -40230,11 +40249,11 @@ function sU({ text: e }) {
|
|
|
40230
40249
|
]
|
|
40231
40250
|
});
|
|
40232
40251
|
}
|
|
40233
|
-
function
|
|
40252
|
+
function lU({ code: e, message: t, children: n }) {
|
|
40234
40253
|
return /* @__PURE__ */ $("div", {
|
|
40235
40254
|
className: "run-error",
|
|
40236
40255
|
children: [
|
|
40237
|
-
/* @__PURE__ */ Q(
|
|
40256
|
+
/* @__PURE__ */ Q(cU, { text: t }),
|
|
40238
40257
|
/* @__PURE__ */ Q("code", {
|
|
40239
40258
|
className: "run-source",
|
|
40240
40259
|
translate: "no",
|
|
@@ -40244,7 +40263,7 @@ function cU({ code: e, message: t, children: n }) {
|
|
|
40244
40263
|
]
|
|
40245
40264
|
});
|
|
40246
40265
|
}
|
|
40247
|
-
function
|
|
40266
|
+
function uU({ label: e, value: t }) {
|
|
40248
40267
|
return /* @__PURE__ */ Q("div", {
|
|
40249
40268
|
"aria-label": e,
|
|
40250
40269
|
className: "run-json",
|
|
@@ -40254,40 +40273,40 @@ function lU({ label: e, value: t }) {
|
|
|
40254
40273
|
})
|
|
40255
40274
|
});
|
|
40256
40275
|
}
|
|
40257
|
-
function
|
|
40276
|
+
function dU({ children: e, label: t }) {
|
|
40258
40277
|
return /* @__PURE__ */ Q("div", {
|
|
40259
40278
|
className: "event-detail",
|
|
40260
40279
|
children: /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("strong", { children: t }), e] })
|
|
40261
40280
|
});
|
|
40262
40281
|
}
|
|
40263
|
-
function
|
|
40282
|
+
function fU(e) {
|
|
40264
40283
|
return e.kind == "run.completed" || e.kind == "node.artifact" || e.kind == "node.failed" || e.kind == "node.log" || e.kind == "node.completed" && Object.keys(e.payload.outputs).length > 0;
|
|
40265
40284
|
}
|
|
40266
|
-
function
|
|
40285
|
+
function pU({ event: e, onConfigureConnector: t }) {
|
|
40267
40286
|
let n = U();
|
|
40268
40287
|
switch (e.kind) {
|
|
40269
|
-
case "run.completed": return /* @__PURE__ */ Q(
|
|
40288
|
+
case "run.completed": return /* @__PURE__ */ Q(dU, {
|
|
40270
40289
|
label: n("run.terminalResult"),
|
|
40271
|
-
children: /* @__PURE__ */ Q(
|
|
40290
|
+
children: /* @__PURE__ */ Q(uU, {
|
|
40272
40291
|
label: n("run.terminalResult"),
|
|
40273
|
-
value:
|
|
40292
|
+
value: sU(e.payload.result)
|
|
40274
40293
|
})
|
|
40275
40294
|
});
|
|
40276
40295
|
case "node.completed": {
|
|
40277
40296
|
let t = e.payload.outputs;
|
|
40278
|
-
return Object.keys(t).length == 0 ? null : /* @__PURE__ */ Q(
|
|
40297
|
+
return Object.keys(t).length == 0 ? null : /* @__PURE__ */ Q(dU, {
|
|
40279
40298
|
label: n("run.nodeOutput"),
|
|
40280
|
-
children: /* @__PURE__ */ Q(
|
|
40299
|
+
children: /* @__PURE__ */ Q(uU, {
|
|
40281
40300
|
label: n("run.nodeOutput"),
|
|
40282
40301
|
value: t
|
|
40283
40302
|
})
|
|
40284
40303
|
});
|
|
40285
40304
|
}
|
|
40286
40305
|
case "node.log": {
|
|
40287
|
-
let t =
|
|
40306
|
+
let t = ZH(e);
|
|
40288
40307
|
if (t?.kind == "model-tool" || t?.kind == "model-step") return /* @__PURE__ */ $("details", {
|
|
40289
40308
|
className: "run-payload",
|
|
40290
|
-
children: [/* @__PURE__ */ Q("summary", { children: n("run.eventDetails") }), /* @__PURE__ */ Q(
|
|
40309
|
+
children: [/* @__PURE__ */ Q("summary", { children: n("run.eventDetails") }), /* @__PURE__ */ Q(uU, {
|
|
40291
40310
|
label: n("run.eventDetails"),
|
|
40292
40311
|
value: t
|
|
40293
40312
|
})]
|
|
@@ -40295,39 +40314,39 @@ function fU({ event: e, onConfigureConnector: t }) {
|
|
|
40295
40314
|
let r = t?.source;
|
|
40296
40315
|
if (typeof r == "object" && r && "kind" in r && r.kind == "code") {
|
|
40297
40316
|
let e = t?.input;
|
|
40298
|
-
if (typeof e == "object" && e && "code" in e && typeof e.code == "string") return /* @__PURE__ */ $(
|
|
40317
|
+
if (typeof e == "object" && e && "code" in e && typeof e.code == "string") return /* @__PURE__ */ $(dU, {
|
|
40299
40318
|
label: n("agent.code"),
|
|
40300
|
-
children: [/* @__PURE__ */ Q(
|
|
40319
|
+
children: [/* @__PURE__ */ Q(cU, { text: e.code }), "inputs" in e && /* @__PURE__ */ Q(uU, {
|
|
40301
40320
|
label: n("agent.source"),
|
|
40302
40321
|
value: e.inputs
|
|
40303
40322
|
})]
|
|
40304
40323
|
});
|
|
40305
|
-
if (t?.status == "completed" && t.output != null) return /* @__PURE__ */ Q(
|
|
40324
|
+
if (t?.status == "completed" && t.output != null) return /* @__PURE__ */ Q(dU, {
|
|
40306
40325
|
label: n("run.nodeOutput"),
|
|
40307
|
-
children: /* @__PURE__ */ Q(
|
|
40326
|
+
children: /* @__PURE__ */ Q(uU, {
|
|
40308
40327
|
label: n("run.nodeOutput"),
|
|
40309
40328
|
value: t.output
|
|
40310
40329
|
})
|
|
40311
40330
|
});
|
|
40312
|
-
if (t?.status == "failed" && typeof t.message == "string") return /* @__PURE__ */ Q(
|
|
40331
|
+
if (t?.status == "failed" && typeof t.message == "string") return /* @__PURE__ */ Q(dU, {
|
|
40313
40332
|
label: n("agent.code"),
|
|
40314
|
-
children: /* @__PURE__ */ Q(
|
|
40333
|
+
children: /* @__PURE__ */ Q(lU, {
|
|
40315
40334
|
code: String(t.code),
|
|
40316
40335
|
message: t.message
|
|
40317
40336
|
})
|
|
40318
40337
|
});
|
|
40319
40338
|
}
|
|
40320
|
-
return t == null ? /* @__PURE__ */ Q(
|
|
40339
|
+
return t == null ? /* @__PURE__ */ Q(cU, { text: e.payload.message }) : /* @__PURE__ */ $("details", {
|
|
40321
40340
|
className: "run-payload",
|
|
40322
|
-
children: [/* @__PURE__ */ Q("summary", { children: n("run.eventDetails") }), /* @__PURE__ */ Q(
|
|
40341
|
+
children: [/* @__PURE__ */ Q("summary", { children: n("run.eventDetails") }), /* @__PURE__ */ Q(uU, {
|
|
40323
40342
|
label: n("run.eventDetails"),
|
|
40324
40343
|
value: t
|
|
40325
40344
|
})]
|
|
40326
40345
|
});
|
|
40327
40346
|
}
|
|
40328
|
-
case "node.artifact": return /* @__PURE__ */ $(
|
|
40347
|
+
case "node.artifact": return /* @__PURE__ */ $(dU, {
|
|
40329
40348
|
label: n("run.artifactMetadata"),
|
|
40330
|
-
children: [/* @__PURE__ */ Q(
|
|
40349
|
+
children: [/* @__PURE__ */ Q(uU, {
|
|
40331
40350
|
label: n("run.artifactMetadata"),
|
|
40332
40351
|
value: e.payload.artifact
|
|
40333
40352
|
}), /* @__PURE__ */ Q("p", {
|
|
@@ -40337,9 +40356,9 @@ function fU({ event: e, onConfigureConnector: t }) {
|
|
|
40337
40356
|
});
|
|
40338
40357
|
case "node.failed": {
|
|
40339
40358
|
let { code: r, message: i } = e.payload.error, a = r == "connector.connection-required" ? n("run.connectionRequired") : r == R.connectorUnconfigured ? n("run.connectorUnconfigured") : r == "connector.unavailable" && i == "The Connector request could not be completed." ? n("run.connectorUnavailable") : i;
|
|
40340
|
-
return /* @__PURE__ */ Q(
|
|
40359
|
+
return /* @__PURE__ */ Q(dU, {
|
|
40341
40360
|
label: n("run.nodeError"),
|
|
40342
|
-
children: /* @__PURE__ */ Q(
|
|
40361
|
+
children: /* @__PURE__ */ Q(lU, {
|
|
40343
40362
|
code: r,
|
|
40344
40363
|
message: a,
|
|
40345
40364
|
children: r == R.connectorUnconfigured && t != null && /* @__PURE__ */ Q(W, {
|
|
@@ -40355,36 +40374,36 @@ function fU({ event: e, onConfigureConnector: t }) {
|
|
|
40355
40374
|
default: return null;
|
|
40356
40375
|
}
|
|
40357
40376
|
}
|
|
40358
|
-
function
|
|
40377
|
+
function mU({ result: e }) {
|
|
40359
40378
|
let t = it(), n = U();
|
|
40360
40379
|
return /* @__PURE__ */ $("section", {
|
|
40361
40380
|
className: "run-output-view",
|
|
40362
40381
|
children: [/* @__PURE__ */ $("header", { children: [/* @__PURE__ */ Q("strong", { children: n("run.terminalResult") }), /* @__PURE__ */ Q("time", {
|
|
40363
40382
|
dateTime: e.finishedAt,
|
|
40364
40383
|
children: new Date(e.finishedAt).toLocaleString(t)
|
|
40365
|
-
})] }), /* @__PURE__ */ Q(
|
|
40384
|
+
})] }), /* @__PURE__ */ Q(hU, { result: e })]
|
|
40366
40385
|
});
|
|
40367
40386
|
}
|
|
40368
|
-
function
|
|
40387
|
+
function hU({ result: e }) {
|
|
40369
40388
|
let t = U();
|
|
40370
|
-
return e.status == "completed" ? /* @__PURE__ */ Q(
|
|
40389
|
+
return e.status == "completed" ? /* @__PURE__ */ Q(uU, {
|
|
40371
40390
|
label: t("run.terminalResult"),
|
|
40372
|
-
value:
|
|
40391
|
+
value: sU(e.result)
|
|
40373
40392
|
}) : e.status == "canceled" ? /* @__PURE__ */ Q("div", {
|
|
40374
40393
|
className: "run-empty",
|
|
40375
40394
|
children: t("run.canceledWithoutOutput")
|
|
40376
|
-
}) : /* @__PURE__ */ $(
|
|
40395
|
+
}) : /* @__PURE__ */ $(qH, {
|
|
40377
40396
|
variant: "error",
|
|
40378
40397
|
children: [
|
|
40379
40398
|
/* @__PURE__ */ Q(Sr, { name: "alert" }),
|
|
40380
|
-
/* @__PURE__ */ Q(
|
|
40381
|
-
/* @__PURE__ */ Q(
|
|
40399
|
+
/* @__PURE__ */ Q(JH, { children: /* @__PURE__ */ Q(cU, { text: e.error.message }) }),
|
|
40400
|
+
/* @__PURE__ */ Q(YH, { children: /* @__PURE__ */ Q("code", { children: e.error.code }) })
|
|
40382
40401
|
]
|
|
40383
40402
|
});
|
|
40384
40403
|
}
|
|
40385
40404
|
//#endregion
|
|
40386
40405
|
//#region src/workbench/browser/runtime/runs/runPresentation.ts
|
|
40387
|
-
function
|
|
40406
|
+
function gU(e, t) {
|
|
40388
40407
|
if (e == null) return t("run.statusNone");
|
|
40389
40408
|
switch (e.status) {
|
|
40390
40409
|
case "queued": return t("run.statusQueued");
|
|
@@ -40397,27 +40416,15 @@ function hU(e, t) {
|
|
|
40397
40416
|
case "indeterminate": return t("run.statusIndeterminate");
|
|
40398
40417
|
}
|
|
40399
40418
|
}
|
|
40400
|
-
function
|
|
40419
|
+
function _U(e) {
|
|
40401
40420
|
return e == null ? "neutral" : e.status == "completed" ? "success" : e.status == "failed" || e.status == "indeterminate" ? "danger" : e.status == "canceled" ? "neutral" : "running";
|
|
40402
40421
|
}
|
|
40403
|
-
function
|
|
40404
|
-
|
|
40405
|
-
let t = e.finishedAt == null ? Date.now() : Date.parse(e.finishedAt), n = Math.max(0, t - Date.parse(e.startedAt)), r = [];
|
|
40406
|
-
for (let [e, t] of [
|
|
40407
|
-
["d", 864e5],
|
|
40408
|
-
["h", 36e5],
|
|
40409
|
-
["m", 6e4],
|
|
40410
|
-
["s", 1e3],
|
|
40411
|
-
["ms", 1]
|
|
40412
|
-
]) {
|
|
40413
|
-
let i = Math.floor(n / t);
|
|
40414
|
-
if (i > 0 && r.push(`${i}${e}`), n %= t, r.length === 2) break;
|
|
40415
|
-
}
|
|
40416
|
-
return r.join(" ") || "0ms";
|
|
40422
|
+
function vU(e) {
|
|
40423
|
+
return e?.startedAt == null ? "—" : pB((e.finishedAt == null ? Date.now() : Date.parse(e.finishedAt)) - Date.parse(e.startedAt));
|
|
40417
40424
|
}
|
|
40418
40425
|
//#endregion
|
|
40419
40426
|
//#region src/workbench/browser/runtime/runs/runResults.tsx
|
|
40420
|
-
function
|
|
40427
|
+
function yU({ client: e, runId: t, results: n }) {
|
|
40421
40428
|
let r = U(), i = Ii(), [a, o] = X(!1), [s, c] = X(null), l = q((e) => c(e?.closest(".open-flow-workbench") ?? null), []), u = Y(), [d, f] = X(), [p, m] = X(), [h, g] = X(!1);
|
|
40422
40429
|
J(() => () => u.current?.abort(), []);
|
|
40423
40430
|
async function _(e) {
|
|
@@ -40550,7 +40557,7 @@ function vU({ client: e, runId: t, results: n }) {
|
|
|
40550
40557
|
className: "text-xs text-muted-foreground",
|
|
40551
40558
|
children: r("run.resultPartial")
|
|
40552
40559
|
}),
|
|
40553
|
-
t.value !== void 0 && /* @__PURE__ */ Q(
|
|
40560
|
+
t.value !== void 0 && /* @__PURE__ */ Q(uU, {
|
|
40554
40561
|
label: a,
|
|
40555
40562
|
value: t.value
|
|
40556
40563
|
}),
|
|
@@ -40567,7 +40574,7 @@ function vU({ client: e, runId: t, results: n }) {
|
|
|
40567
40574
|
" · ",
|
|
40568
40575
|
t.type
|
|
40569
40576
|
]
|
|
40570
|
-
}), t.complete && t.value !== void 0 && /* @__PURE__ */ Q(
|
|
40577
|
+
}), t.complete && t.value !== void 0 && /* @__PURE__ */ Q(uU, {
|
|
40571
40578
|
label: t.pointer,
|
|
40572
40579
|
value: t.value
|
|
40573
40580
|
})]
|
|
@@ -40600,7 +40607,7 @@ function vU({ client: e, runId: t, results: n }) {
|
|
|
40600
40607
|
}
|
|
40601
40608
|
//#endregion
|
|
40602
40609
|
//#region src/workbench/browser/runtime/runs/runDrawer.tsx
|
|
40603
|
-
var
|
|
40610
|
+
var bU = ji(function({ index: e, ...t }, n) {
|
|
40604
40611
|
return /* @__PURE__ */ Q("div", {
|
|
40605
40612
|
...t,
|
|
40606
40613
|
role: "listitem",
|
|
@@ -40608,7 +40615,7 @@ var yU = ji(function({ index: e, ...t }, n) {
|
|
|
40608
40615
|
ref: n
|
|
40609
40616
|
});
|
|
40610
40617
|
});
|
|
40611
|
-
function
|
|
40618
|
+
function xU({ "aria-label": e, ...t }) {
|
|
40612
40619
|
let [n, r] = X(null);
|
|
40613
40620
|
return /* @__PURE__ */ $(Gn, { children: [/* @__PURE__ */ Q(yr, {
|
|
40614
40621
|
ref: r,
|
|
@@ -40621,35 +40628,35 @@ function bU({ "aria-label": e, ...t }) {
|
|
|
40621
40628
|
children: e
|
|
40622
40629
|
})] });
|
|
40623
40630
|
}
|
|
40624
|
-
function
|
|
40631
|
+
function SU(e, t) {
|
|
40625
40632
|
return new Intl.DateTimeFormat(t, {
|
|
40626
40633
|
hour: "2-digit",
|
|
40627
40634
|
minute: "2-digit",
|
|
40628
40635
|
second: "2-digit"
|
|
40629
40636
|
}).format(new Date(e));
|
|
40630
40637
|
}
|
|
40631
|
-
var
|
|
40638
|
+
var CU = 160, wU = 640, TU = 160, EU = 360, DU = 24, OU = 32, kU = [
|
|
40632
40639
|
"lifecycle",
|
|
40633
40640
|
"progress",
|
|
40634
40641
|
"log",
|
|
40635
40642
|
"output",
|
|
40636
40643
|
"artifact"
|
|
40637
40644
|
];
|
|
40638
|
-
function
|
|
40645
|
+
function AU(e, t) {
|
|
40639
40646
|
switch (e) {
|
|
40640
40647
|
case "approve": return t("run.actionApprove");
|
|
40641
40648
|
case "continue": return t("run.actionContinue");
|
|
40642
40649
|
case "reject": return t("run.actionReject");
|
|
40643
40650
|
}
|
|
40644
40651
|
}
|
|
40645
|
-
function
|
|
40646
|
-
let i = it(), a = U(), [o, s] = X(""), c = Ii(), l = r.has(e.waitId), u = !
|
|
40652
|
+
function jU({ waiting: e, onLocate: t, onResolve: n, resolvingActions: r }) {
|
|
40653
|
+
let i = it(), a = U(), [o, s] = X(""), c = Ii(), l = r.has(e.waitId), u = !GH.safeParse(o).success;
|
|
40647
40654
|
return /* @__PURE__ */ Q("div", {
|
|
40648
40655
|
className: "shrink-0 px-2 pt-2",
|
|
40649
|
-
children: /* @__PURE__ */ $(
|
|
40656
|
+
children: /* @__PURE__ */ $(qH, { children: [
|
|
40650
40657
|
/* @__PURE__ */ Q(Sr, { name: "wait" }),
|
|
40651
|
-
/* @__PURE__ */ Q(
|
|
40652
|
-
/* @__PURE__ */ $(
|
|
40658
|
+
/* @__PURE__ */ Q(JH, { children: e.prompt }),
|
|
40659
|
+
/* @__PURE__ */ $(YH, { children: [
|
|
40653
40660
|
/* @__PURE__ */ Q("div", { children: a("run.waitExpires", { date: new Date(e.expiresAt).toLocaleString(i) }) }),
|
|
40654
40661
|
/* @__PURE__ */ $(on, {
|
|
40655
40662
|
className: "mt-2",
|
|
@@ -40677,7 +40684,7 @@ function AU({ waiting: e, onLocate: t, onResolve: n, resolvingActions: r }) {
|
|
|
40677
40684
|
size: "sm",
|
|
40678
40685
|
type: "button",
|
|
40679
40686
|
variant: t == "reject" ? "destructive" : "default",
|
|
40680
|
-
children: r.get(e.waitId) == t ? a("run.resolving") :
|
|
40687
|
+
children: r.get(e.waitId) == t ? a("run.resolving") : AU(t, a)
|
|
40681
40688
|
}, t)), /* @__PURE__ */ $(W, {
|
|
40682
40689
|
onClick: () => t(e.nodeId),
|
|
40683
40690
|
size: "sm",
|
|
@@ -40694,17 +40701,17 @@ function AU({ waiting: e, onLocate: t, onResolve: n, resolvingActions: r }) {
|
|
|
40694
40701
|
] })
|
|
40695
40702
|
});
|
|
40696
40703
|
}
|
|
40697
|
-
function
|
|
40704
|
+
function MU({ run: e, ...t }) {
|
|
40698
40705
|
let n = "waits" in e ? e.waits : [];
|
|
40699
|
-
return /* @__PURE__ */ Q(Z, { children: n.map((n) => /* @__PURE__ */ Q(
|
|
40706
|
+
return /* @__PURE__ */ Q(Z, { children: n.map((n) => /* @__PURE__ */ Q(jU, {
|
|
40700
40707
|
waiting: n,
|
|
40701
40708
|
...t
|
|
40702
40709
|
}, `${e.runId}/${n.waitId}`)) });
|
|
40703
40710
|
}
|
|
40704
|
-
function
|
|
40711
|
+
function NU(e, t) {
|
|
40705
40712
|
return t ? e.some((e) => e.kind == "run.events-truncated") ? "truncated" : void 0 : "expired";
|
|
40706
40713
|
}
|
|
40707
|
-
function
|
|
40714
|
+
function PU(e) {
|
|
40708
40715
|
switch (e.kind) {
|
|
40709
40716
|
case "node.progress":
|
|
40710
40717
|
case "run.progress": return "progress";
|
|
@@ -40725,19 +40732,19 @@ function NU(e) {
|
|
|
40725
40732
|
case "run.waiting": return "lifecycle";
|
|
40726
40733
|
}
|
|
40727
40734
|
}
|
|
40728
|
-
function
|
|
40729
|
-
return e.filter((e) => t.includes(
|
|
40735
|
+
function FU(e, t) {
|
|
40736
|
+
return e.filter((e) => t.includes(PU(e)) || t.includes("output") && (e.kind == "node.completed" || e.kind == "run.completed") && fU(e));
|
|
40730
40737
|
}
|
|
40731
|
-
function
|
|
40732
|
-
return e == "all" ?
|
|
40738
|
+
function IU(e) {
|
|
40739
|
+
return e == "all" ? kU.filter((e) => e != "progress") : [e];
|
|
40733
40740
|
}
|
|
40734
|
-
function
|
|
40741
|
+
function LU({ container: e, events: t, presentation: n, onChange: r }) {
|
|
40735
40742
|
let i = U(), { view: a, filters: o, statusFilter: s, setStatusFilter: c } = n, l = i(a == "overview" ? "run.executionStatus" : "run.filterEvents");
|
|
40736
40743
|
if (t.length == 0) return null;
|
|
40737
40744
|
let u = /* @__PURE__ */ new Map();
|
|
40738
40745
|
for (let e of t) {
|
|
40739
|
-
let t =
|
|
40740
|
-
u.set(t, (u.get(t) ?? 0) + 1), (e.kind == "node.completed" || e.kind == "run.completed") &&
|
|
40746
|
+
let t = PU(e);
|
|
40747
|
+
u.set(t, (u.get(t) ?? 0) + 1), (e.kind == "node.completed" || e.kind == "run.completed") && fU(e) && u.set("output", (u.get("output") ?? 0) + 1);
|
|
40741
40748
|
}
|
|
40742
40749
|
return /* @__PURE__ */ $(os, { children: [/* @__PURE__ */ $(Gn, { children: [/* @__PURE__ */ Q(ss, { render: /* @__PURE__ */ Q(W, {
|
|
40743
40750
|
render: /* @__PURE__ */ Q(yr, {}),
|
|
@@ -40771,7 +40778,7 @@ function IU({ container: e, events: t, presentation: n, onChange: r }) {
|
|
|
40771
40778
|
value: e,
|
|
40772
40779
|
children: i(`run.executionStatusLabels.${e}`)
|
|
40773
40780
|
}, e))
|
|
40774
|
-
}) : /* @__PURE__ */ Q(ls, { children:
|
|
40781
|
+
}) : /* @__PURE__ */ Q(ls, { children: kU.map((e) => /* @__PURE__ */ $(hs, {
|
|
40775
40782
|
checked: o.includes(e),
|
|
40776
40783
|
onCheckedChange: (t) => r(t ? [...o, e] : o.filter((t) => t != e)),
|
|
40777
40784
|
children: [/* @__PURE__ */ Q("span", { children: i(`run.filter.${e}`) }), /* @__PURE__ */ Q("span", {
|
|
@@ -40781,18 +40788,18 @@ function IU({ container: e, events: t, presentation: n, onChange: r }) {
|
|
|
40781
40788
|
}, e)) })
|
|
40782
40789
|
})] });
|
|
40783
40790
|
}
|
|
40784
|
-
function
|
|
40791
|
+
function RU({ events: e, eventsExpiresAt: t, historyComplete: n, run: r }) {
|
|
40785
40792
|
let i = U();
|
|
40786
|
-
return /* @__PURE__ */ Q(
|
|
40793
|
+
return /* @__PURE__ */ Q(xU, {
|
|
40787
40794
|
"aria-label": i("run.exportLog"),
|
|
40788
|
-
onClick: () =>
|
|
40795
|
+
onClick: () => aU(r, e, n, t),
|
|
40789
40796
|
size: "icon-sm",
|
|
40790
40797
|
type: "button",
|
|
40791
40798
|
variant: "ghost",
|
|
40792
40799
|
children: /* @__PURE__ */ Q(Sr, { name: "download" })
|
|
40793
40800
|
});
|
|
40794
40801
|
}
|
|
40795
|
-
function
|
|
40802
|
+
function zU(e) {
|
|
40796
40803
|
switch (e.kind) {
|
|
40797
40804
|
case "node.started":
|
|
40798
40805
|
case "run.started":
|
|
@@ -40811,10 +40818,10 @@ function RU(e) {
|
|
|
40811
40818
|
default: return "i-lucide-light:text";
|
|
40812
40819
|
}
|
|
40813
40820
|
}
|
|
40814
|
-
function
|
|
40821
|
+
function BU(e) {
|
|
40815
40822
|
return e.kind.includes("failed") || e.kind == "run.indeterminate" ? "danger" : e.kind == "node.completed" || e.kind == "run.completed" ? "success" : "neutral";
|
|
40816
40823
|
}
|
|
40817
|
-
function
|
|
40824
|
+
function VU(e, t) {
|
|
40818
40825
|
switch (e.kind) {
|
|
40819
40826
|
case "run.queued": return t("run.eventEnqueued");
|
|
40820
40827
|
case "run.resolved": return t("run.eventWaitResolved");
|
|
@@ -40835,7 +40842,7 @@ function BU(e, t) {
|
|
|
40835
40842
|
case "run.events-truncated": return t("run.eventTruncated");
|
|
40836
40843
|
}
|
|
40837
40844
|
}
|
|
40838
|
-
function
|
|
40845
|
+
function HU(e) {
|
|
40839
40846
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
|
|
40840
40847
|
for (let r of e) {
|
|
40841
40848
|
if (r.kind != "node.started") continue;
|
|
@@ -40847,14 +40854,14 @@ function VU(e) {
|
|
|
40847
40854
|
for (let e of n) t.delete(e);
|
|
40848
40855
|
return t;
|
|
40849
40856
|
}
|
|
40850
|
-
function
|
|
40851
|
-
let n = Ii(), [r, i] = X("timeline"), [a, o] = X("all"), [s, c] = X(() =>
|
|
40857
|
+
function UU(e, t) {
|
|
40858
|
+
let n = Ii(), [r, i] = X("timeline"), [a, o] = X("all"), [s, c] = X(() => IU(e)), [l, u] = X(), d = l?.runId == t ? l : void 0;
|
|
40852
40859
|
J(() => u(void 0), [t]);
|
|
40853
40860
|
function f(e) {
|
|
40854
40861
|
let n = e[0];
|
|
40855
|
-
c([.../* @__PURE__ */ new Set([...
|
|
40862
|
+
c([.../* @__PURE__ */ new Set([...IU("all"), ...e.map(PU)])]), u({
|
|
40856
40863
|
runId: t,
|
|
40857
|
-
key:
|
|
40864
|
+
key: eU(n),
|
|
40858
40865
|
sequence: n.sequence
|
|
40859
40866
|
}), i("timeline");
|
|
40860
40867
|
}
|
|
@@ -40871,7 +40878,7 @@ function HU(e, t) {
|
|
|
40871
40878
|
clearFocus: () => u(void 0)
|
|
40872
40879
|
};
|
|
40873
40880
|
}
|
|
40874
|
-
function
|
|
40881
|
+
function WU({ presentation: e }) {
|
|
40875
40882
|
let t = U();
|
|
40876
40883
|
return e.view != "timeline" || e.focus == null ? null : /* @__PURE__ */ Q(W, {
|
|
40877
40884
|
size: "xs",
|
|
@@ -40880,7 +40887,7 @@ function UU({ presentation: e }) {
|
|
|
40880
40887
|
children: t("run.clearHighlight")
|
|
40881
40888
|
});
|
|
40882
40889
|
}
|
|
40883
|
-
function
|
|
40890
|
+
function GU({ presentation: e }) {
|
|
40884
40891
|
let t = U();
|
|
40885
40892
|
return /* @__PURE__ */ Q(Ja, {
|
|
40886
40893
|
value: e.view,
|
|
@@ -40903,8 +40910,8 @@ function WU({ presentation: e }) {
|
|
|
40903
40910
|
})
|
|
40904
40911
|
});
|
|
40905
40912
|
}
|
|
40906
|
-
function
|
|
40907
|
-
let m = it(), h = U(), g = Y(null), _ = Y(), v = Y(!0), b = Y(!1), x = zi(() =>
|
|
40913
|
+
function KU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, eventNodes: i, historyComplete: o, observationFailed: s, onConfigureConnector: c, onLocateEvent: l, onRetryObservation: u, result: d, run: f, submitting: p }) {
|
|
40914
|
+
let m = it(), h = U(), g = Y(null), _ = Y(), v = Y(!0), b = Y(!1), x = zi(() => HU(n), [n]), { view: S, filters: w, focus: T, statusFilter: E } = e, D = NU(n, o), O = zi(() => FU(n, w), [n, w]), k = zi(() => new Map(n.map((e, t) => [e.sequence, n[t - 1]])), [n]), A = zi(() => S == "overview" ? tU(n, f?.status) : [], [
|
|
40908
40915
|
n,
|
|
40909
40916
|
f?.status,
|
|
40910
40917
|
S
|
|
@@ -40964,7 +40971,7 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
40964
40971
|
}), /* @__PURE__ */ Q("span", { children: D == "expired" ? h("run.historyExpired") : r == null ? h("run.eventsTruncatedNotice") : h("run.eventsTruncatedUntil", { date: new Date(r).toLocaleString(m) }) })]
|
|
40965
40972
|
});
|
|
40966
40973
|
if (n.kind == "execution") {
|
|
40967
|
-
let r = n.group, a = r.events[0], o =
|
|
40974
|
+
let r = n.group, a = r.events[0], o = $H(r.started ?? a, h, x), s = P.get(String(a.payload.scopeId));
|
|
40968
40975
|
return /* @__PURE__ */ $("div", {
|
|
40969
40976
|
className: `run-log-event run-execution ${r.status == "failed" ? "danger" : r.status == "completed" ? "success" : "neutral"}`,
|
|
40970
40977
|
children: [/* @__PURE__ */ Q("span", {
|
|
@@ -40985,20 +40992,20 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
40985
40992
|
/* @__PURE__ */ Q("span", {
|
|
40986
40993
|
className: "run-execution-time",
|
|
40987
40994
|
title: `${r.started?.createdAt ?? "?"} → ${r.terminal?.createdAt ?? "?"}`,
|
|
40988
|
-
children:
|
|
40995
|
+
children: vU(r.started == null || r.terminal == null && r.status == "unknown" ? void 0 : {
|
|
40989
40996
|
startedAt: r.started.createdAt,
|
|
40990
40997
|
finishedAt: r.terminal?.createdAt
|
|
40991
40998
|
})
|
|
40992
40999
|
}),
|
|
40993
41000
|
/* @__PURE__ */ $("div", {
|
|
40994
41001
|
className: "run-log-actions",
|
|
40995
|
-
children: [i.has(a.sequence) && /* @__PURE__ */ Q(
|
|
41002
|
+
children: [i.has(a.sequence) && /* @__PURE__ */ Q(xU, {
|
|
40996
41003
|
"aria-label": h("run.locateNode", { name: o }),
|
|
40997
41004
|
onClick: () => l(a.sequence),
|
|
40998
41005
|
size: "icon-xs",
|
|
40999
41006
|
variant: "ghost",
|
|
41000
41007
|
children: /* @__PURE__ */ Q(Sr, { name: "fit" })
|
|
41001
|
-
}), /* @__PURE__ */ Q(
|
|
41008
|
+
}), /* @__PURE__ */ Q(xU, {
|
|
41002
41009
|
size: "icon-xs",
|
|
41003
41010
|
variant: "ghost",
|
|
41004
41011
|
"aria-label": h("run.inspectExecution"),
|
|
@@ -41020,7 +41027,7 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41020
41027
|
String(a.payload.scopeId).slice(-8)
|
|
41021
41028
|
]
|
|
41022
41029
|
}),
|
|
41023
|
-
r.terminal == null ? r.latest != null && /* @__PURE__ */ Q(
|
|
41030
|
+
r.terminal == null ? r.latest != null && /* @__PURE__ */ Q(cU, { text: QH(r.latest, h) ?? (r.latest.kind == "node.log" ? r.latest.payload.message : VU(r.latest, h)) }) : /* @__PURE__ */ Q(pU, {
|
|
41024
41031
|
event: r.terminal,
|
|
41025
41032
|
onConfigureConnector: c
|
|
41026
41033
|
}),
|
|
@@ -41029,7 +41036,7 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41029
41036
|
children: [r.agent && r.completedCalls > 0 && /* @__PURE__ */ Q("span", {
|
|
41030
41037
|
className: "run-source",
|
|
41031
41038
|
children: h("run.agentCompletedCalls", { count: r.completedCalls })
|
|
41032
|
-
}), t != null && f != null && /* @__PURE__ */ Q(
|
|
41039
|
+
}), t != null && f != null && /* @__PURE__ */ Q(yU, {
|
|
41033
41040
|
client: t,
|
|
41034
41041
|
runId: f.runId,
|
|
41035
41042
|
results: r.toolResults
|
|
@@ -41040,23 +41047,23 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41040
41047
|
}, r.key);
|
|
41041
41048
|
}
|
|
41042
41049
|
if (n.kind == "event") {
|
|
41043
|
-
let { event: e, index: r } = n, a =
|
|
41050
|
+
let { event: e, index: r } = n, a = $H(e, h, x), o = nU(e, O[r - 1]) && k.get(e.sequence) == O[r - 1], s = T != null && eU(e) == T.key;
|
|
41044
41051
|
return /* @__PURE__ */ $("div", {
|
|
41045
|
-
className: `run-log-event ${
|
|
41052
|
+
className: `run-log-event ${BU(e)}${o ? " is-continuation" : ""}${s ? " is-highlighted" : ""}`,
|
|
41046
41053
|
ref: T?.sequence == e.sequence ? M : void 0,
|
|
41047
41054
|
tabIndex: -1,
|
|
41048
41055
|
children: [
|
|
41049
41056
|
/* @__PURE__ */ Q("time", {
|
|
41050
41057
|
dateTime: e.createdAt,
|
|
41051
41058
|
title: new Date(e.createdAt).toLocaleString(m),
|
|
41052
|
-
children:
|
|
41059
|
+
children: SU(e.createdAt, m)
|
|
41053
41060
|
}),
|
|
41054
41061
|
/* @__PURE__ */ Q("span", {
|
|
41055
41062
|
className: "run-log-icon",
|
|
41056
41063
|
title: e.kind,
|
|
41057
41064
|
children: /* @__PURE__ */ Q("i", {
|
|
41058
41065
|
"aria-hidden": "true",
|
|
41059
|
-
className:
|
|
41066
|
+
className: zU(e)
|
|
41060
41067
|
})
|
|
41061
41068
|
}),
|
|
41062
41069
|
/* @__PURE__ */ $("div", {
|
|
@@ -41065,14 +41072,14 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41065
41072
|
className: "run-log-title",
|
|
41066
41073
|
children: [
|
|
41067
41074
|
/* @__PURE__ */ Q("strong", { children: a }),
|
|
41068
|
-
/* @__PURE__ */ Q("span", { children:
|
|
41075
|
+
/* @__PURE__ */ Q("span", { children: QH(e, h) ?? VU(e, h) }),
|
|
41069
41076
|
/* @__PURE__ */ $("div", {
|
|
41070
41077
|
className: "run-log-actions",
|
|
41071
|
-
children: [t != null && f != null && /* @__PURE__ */ Q(
|
|
41078
|
+
children: [t != null && f != null && /* @__PURE__ */ Q(yU, {
|
|
41072
41079
|
client: t,
|
|
41073
41080
|
runId: f.runId,
|
|
41074
|
-
results:
|
|
41075
|
-
}, f.runId), i.has(e.sequence) && /* @__PURE__ */ Q(
|
|
41081
|
+
results: rU([e])
|
|
41082
|
+
}, f.runId), i.has(e.sequence) && /* @__PURE__ */ Q(xU, {
|
|
41076
41083
|
"aria-label": h("run.locateNode", { name: a }),
|
|
41077
41084
|
onClick: () => l(e.sequence),
|
|
41078
41085
|
size: "icon-xs",
|
|
@@ -41081,7 +41088,7 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41081
41088
|
})]
|
|
41082
41089
|
})
|
|
41083
41090
|
]
|
|
41084
|
-
}), /* @__PURE__ */ Q(
|
|
41091
|
+
}), /* @__PURE__ */ Q(pU, {
|
|
41085
41092
|
event: e,
|
|
41086
41093
|
onConfigureConnector: c
|
|
41087
41094
|
})]
|
|
@@ -41095,7 +41102,7 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41095
41102
|
S == "timeline" && d != null && /* @__PURE__ */ Q("time", {
|
|
41096
41103
|
dateTime: d.finishedAt,
|
|
41097
41104
|
title: new Date(d.finishedAt).toLocaleString(m),
|
|
41098
|
-
children:
|
|
41105
|
+
children: SU(d.finishedAt, m)
|
|
41099
41106
|
}),
|
|
41100
41107
|
/* @__PURE__ */ Q("span", {
|
|
41101
41108
|
className: "run-log-icon",
|
|
@@ -41114,7 +41121,7 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41114
41121
|
S == "overview" && /* @__PURE__ */ Q("span", {
|
|
41115
41122
|
className: "run-execution-time",
|
|
41116
41123
|
title: `${f?.startedAt ?? "?"} → ${L?.createdAt ?? d?.finishedAt ?? "?"}`,
|
|
41117
|
-
children:
|
|
41124
|
+
children: vU({
|
|
41118
41125
|
startedAt: f?.startedAt,
|
|
41119
41126
|
finishedAt: L?.createdAt ?? d?.finishedAt
|
|
41120
41127
|
})
|
|
@@ -41122,8 +41129,8 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41122
41129
|
]
|
|
41123
41130
|
}), L == null ? d == null ? null : /* @__PURE__ */ $("div", {
|
|
41124
41131
|
className: "event-detail",
|
|
41125
|
-
children: [/* @__PURE__ */ Q("strong", { children: h("run.terminalResult") }), /* @__PURE__ */ Q(
|
|
41126
|
-
}) : /* @__PURE__ */ Q(
|
|
41132
|
+
children: [/* @__PURE__ */ Q("strong", { children: h("run.terminalResult") }), /* @__PURE__ */ Q(hU, { result: d })]
|
|
41133
|
+
}) : /* @__PURE__ */ Q(pU, { event: L })]
|
|
41127
41134
|
})
|
|
41128
41135
|
]
|
|
41129
41136
|
}) : /* @__PURE__ */ Q("div", {
|
|
@@ -41173,7 +41180,7 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41173
41180
|
role: "list",
|
|
41174
41181
|
tabIndex: -1,
|
|
41175
41182
|
data: B,
|
|
41176
|
-
item:
|
|
41183
|
+
item: bU,
|
|
41177
41184
|
ssrCount: Math.min(20, B.length),
|
|
41178
41185
|
keepMounted: V >= 0 ? [V] : [],
|
|
41179
41186
|
onScrollIntent: te,
|
|
@@ -41182,20 +41189,20 @@ function GU({ presentation: e, resultClient: t, events: n, eventsExpiresAt: r, e
|
|
|
41182
41189
|
},
|
|
41183
41190
|
onScrollEnd: () => {
|
|
41184
41191
|
let e = g.current;
|
|
41185
|
-
e != null && b.current && (v.current = e.scrollSize - e.scrollOffset - e.viewportSize <=
|
|
41192
|
+
e != null && b.current && (v.current = e.scrollSize - e.scrollOffset - e.viewportSize <= OU, b.current = !1);
|
|
41186
41193
|
},
|
|
41187
41194
|
children: ne
|
|
41188
41195
|
}, `${f?.runId ?? "empty"}:${S}:${S == "timeline" ? w.join(",") : E}`)]
|
|
41189
41196
|
});
|
|
41190
41197
|
}
|
|
41191
|
-
function
|
|
41192
|
-
let w = U(), T =
|
|
41198
|
+
function qU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, eventsExpiresAt: i, eventFilter: a, eventNodes: o, historyComplete: s, onCancel: c, onClose: l, onOpenRuns: u, onConfigureConnector: d, onEventFilterChange: f, onLocateEvent: p, onLocateWait: m, onResolve: h, onRetryObservation: g, panelId: _, observationFailed: v, open: y, result: b, resolvingActions: x, run: S, submitting: C }) {
|
|
41199
|
+
let w = U(), T = UU(a, S?.runId), E = Y(null), D = Y(), [O, k] = X(), A = (O != null && O.runId == S?.runId ? O.height : void 0) ?? EU;
|
|
41193
41200
|
function j() {
|
|
41194
|
-
return Math.max(
|
|
41201
|
+
return Math.max(CU, Math.min(wU, E.current.parentElement.clientHeight - TU));
|
|
41195
41202
|
}
|
|
41196
41203
|
function M(e) {
|
|
41197
41204
|
k({
|
|
41198
|
-
height: Math.max(
|
|
41205
|
+
height: Math.max(CU, Math.min(j(), e)),
|
|
41199
41206
|
runId: S?.runId
|
|
41200
41207
|
});
|
|
41201
41208
|
}
|
|
@@ -41217,13 +41224,13 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41217
41224
|
let t;
|
|
41218
41225
|
switch (e.key) {
|
|
41219
41226
|
case "ArrowUp":
|
|
41220
|
-
t = A +
|
|
41227
|
+
t = A + DU;
|
|
41221
41228
|
break;
|
|
41222
41229
|
case "ArrowDown":
|
|
41223
|
-
t = A -
|
|
41230
|
+
t = A - DU;
|
|
41224
41231
|
break;
|
|
41225
41232
|
case "Home":
|
|
41226
|
-
t =
|
|
41233
|
+
t = CU;
|
|
41227
41234
|
break;
|
|
41228
41235
|
case "End":
|
|
41229
41236
|
t = j();
|
|
@@ -41241,8 +41248,8 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41241
41248
|
/* @__PURE__ */ Q("div", {
|
|
41242
41249
|
"aria-label": w("run.resize"),
|
|
41243
41250
|
"aria-orientation": "horizontal",
|
|
41244
|
-
"aria-valuemax":
|
|
41245
|
-
"aria-valuemin":
|
|
41251
|
+
"aria-valuemax": wU,
|
|
41252
|
+
"aria-valuemin": CU,
|
|
41246
41253
|
"aria-valuenow": A,
|
|
41247
41254
|
className: "run-resize-handle",
|
|
41248
41255
|
onKeyDown: I,
|
|
@@ -41257,9 +41264,9 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41257
41264
|
/* @__PURE__ */ $("header", {
|
|
41258
41265
|
className: "run-header",
|
|
41259
41266
|
children: [
|
|
41260
|
-
/* @__PURE__ */ Q(
|
|
41267
|
+
/* @__PURE__ */ Q(GU, { presentation: T }),
|
|
41261
41268
|
/* @__PURE__ */ Q("span", { className: "run-header-spacer" }),
|
|
41262
|
-
/* @__PURE__ */ Q(
|
|
41269
|
+
/* @__PURE__ */ Q(xU, {
|
|
41263
41270
|
"aria-label": w("run.history"),
|
|
41264
41271
|
onClick: u,
|
|
41265
41272
|
size: "icon-sm",
|
|
@@ -41269,8 +41276,8 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41269
41276
|
className: "i-lucide-light:history size-4"
|
|
41270
41277
|
})
|
|
41271
41278
|
}),
|
|
41272
|
-
/* @__PURE__ */ Q(
|
|
41273
|
-
/* @__PURE__ */ Q(
|
|
41279
|
+
/* @__PURE__ */ Q(WU, { presentation: T }),
|
|
41280
|
+
/* @__PURE__ */ Q(LU, {
|
|
41274
41281
|
container: E.current,
|
|
41275
41282
|
events: r,
|
|
41276
41283
|
presentation: T,
|
|
@@ -41278,7 +41285,7 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41278
41285
|
T.setFilters(e), f(e.length == 1 ? e[0] : "all");
|
|
41279
41286
|
}
|
|
41280
41287
|
}),
|
|
41281
|
-
S != null && /* @__PURE__ */ Q(
|
|
41288
|
+
S != null && /* @__PURE__ */ Q(RU, {
|
|
41282
41289
|
events: r,
|
|
41283
41290
|
eventsExpiresAt: i,
|
|
41284
41291
|
historyComplete: s,
|
|
@@ -41291,7 +41298,7 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41291
41298
|
variant: "destructive",
|
|
41292
41299
|
children: w(n ? "run.canceling" : "run.cancel")
|
|
41293
41300
|
}),
|
|
41294
|
-
/* @__PURE__ */ Q(
|
|
41301
|
+
/* @__PURE__ */ Q(xU, {
|
|
41295
41302
|
"aria-label": w("run.collapse"),
|
|
41296
41303
|
onClick: l,
|
|
41297
41304
|
size: "icon-sm",
|
|
@@ -41302,12 +41309,12 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41302
41309
|
}),
|
|
41303
41310
|
/* @__PURE__ */ $("div", {
|
|
41304
41311
|
className: "run-content",
|
|
41305
|
-
children: [S != null && /* @__PURE__ */ Q(
|
|
41312
|
+
children: [S != null && /* @__PURE__ */ Q(MU, {
|
|
41306
41313
|
onLocate: m,
|
|
41307
41314
|
onResolve: h,
|
|
41308
41315
|
resolvingActions: x,
|
|
41309
41316
|
run: S
|
|
41310
|
-
}), /* @__PURE__ */ Q(
|
|
41317
|
+
}), /* @__PURE__ */ Q(KU, {
|
|
41311
41318
|
presentation: T,
|
|
41312
41319
|
resultClient: e,
|
|
41313
41320
|
events: r,
|
|
@@ -41328,28 +41335,28 @@ function KU({ resultClient: e, cancelDisabled: t, canceling: n, events: r, event
|
|
|
41328
41335
|
}
|
|
41329
41336
|
//#endregion
|
|
41330
41337
|
//#region src/workbench/browser/runtime/runs/runDrawerPreference.ts
|
|
41331
|
-
var
|
|
41332
|
-
function
|
|
41338
|
+
var JU = "open-flow:run-drawer-open";
|
|
41339
|
+
function YU(e) {
|
|
41333
41340
|
try {
|
|
41334
|
-
let t = e.getItem(
|
|
41341
|
+
let t = e.getItem(JU);
|
|
41335
41342
|
return t == "true" || t != "false" && void 0;
|
|
41336
41343
|
} catch {
|
|
41337
41344
|
return;
|
|
41338
41345
|
}
|
|
41339
41346
|
}
|
|
41340
|
-
function
|
|
41347
|
+
function XU(e, t) {
|
|
41341
41348
|
try {
|
|
41342
|
-
e.setItem(
|
|
41349
|
+
e.setItem(JU, String(t));
|
|
41343
41350
|
} catch {}
|
|
41344
41351
|
}
|
|
41345
|
-
var
|
|
41352
|
+
var ZU = {
|
|
41346
41353
|
root: "flowRunInputEditor_root_55439",
|
|
41347
41354
|
field: "flowRunInputEditor_field_55439",
|
|
41348
41355
|
error: "flowRunInputEditor_error_55439"
|
|
41349
41356
|
};
|
|
41350
41357
|
//#endregion
|
|
41351
41358
|
//#region src/form/browser/valueField.tsx
|
|
41352
|
-
function
|
|
41359
|
+
function QU(e) {
|
|
41353
41360
|
let t = U(), n = qe(e.schema), r = t(`valueEditor.components.${n}`);
|
|
41354
41361
|
return /* @__PURE__ */ Q(G_, {
|
|
41355
41362
|
...e,
|
|
@@ -41378,14 +41385,14 @@ function ZU(e) {
|
|
|
41378
41385
|
}
|
|
41379
41386
|
//#endregion
|
|
41380
41387
|
//#region src/workbench/browser/flowRunInputEditor.tsx
|
|
41381
|
-
function
|
|
41388
|
+
function $U({ labelledBy: e, showErrors: t = !1, store: n, theme: r }) {
|
|
41382
41389
|
let i = H(n.language), a = zi(() => ze(i), [i]);
|
|
41383
41390
|
return J(() => () => a.dispose(), [a]), /* @__PURE__ */ Q(at, {
|
|
41384
41391
|
i18n: a,
|
|
41385
41392
|
children: /* @__PURE__ */ Q("div", {
|
|
41386
|
-
className: `open-flow-theme open-flow-property-panel ${
|
|
41393
|
+
className: `open-flow-theme open-flow-property-panel ${ZU.root}`,
|
|
41387
41394
|
"data-theme": r,
|
|
41388
|
-
children: /* @__PURE__ */ Q(
|
|
41395
|
+
children: /* @__PURE__ */ Q(eW, {
|
|
41389
41396
|
store: n,
|
|
41390
41397
|
showErrors: t,
|
|
41391
41398
|
labelledBy: e
|
|
@@ -41393,8 +41400,8 @@ function QU({ labelledBy: e, showErrors: t = !1, store: n, theme: r }) {
|
|
|
41393
41400
|
})
|
|
41394
41401
|
});
|
|
41395
41402
|
}
|
|
41396
|
-
function
|
|
41397
|
-
let r = U(), i = H(e.values$), a = H(e.issues$), o = n == null ?
|
|
41403
|
+
function eW({ store: e, showErrors: t, labelledBy: n }) {
|
|
41404
|
+
let r = U(), i = H(e.values$), a = H(e.issues$), o = n == null ? QU : G_, s = (n) => /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(o, {
|
|
41398
41405
|
description: n.description,
|
|
41399
41406
|
label: n.handle,
|
|
41400
41407
|
path: `/${n.handle.replaceAll("~", "~0").replaceAll("/", "~1")}`,
|
|
@@ -41405,7 +41412,7 @@ function $U({ store: e, showErrors: t, labelledBy: n }) {
|
|
|
41405
41412
|
onChange: (t) => e.setValue(n.handle, t),
|
|
41406
41413
|
onDraftIssue: e.setDraftIssue
|
|
41407
41414
|
}), t && a[n.handle] && /* @__PURE__ */ Q("p", {
|
|
41408
|
-
className:
|
|
41415
|
+
className: ZU.error,
|
|
41409
41416
|
role: "alert",
|
|
41410
41417
|
children: a[n.handle].message ?? r(`valueEditor.${a[n.handle].kind}`)
|
|
41411
41418
|
})] });
|
|
@@ -41416,24 +41423,24 @@ function $U({ store: e, showErrors: t, labelledBy: n }) {
|
|
|
41416
41423
|
empty: e.definitions.length === 0,
|
|
41417
41424
|
children: e.definitions.map((e) => /* @__PURE__ */ Q(By, { children: s(e) }, e.handle))
|
|
41418
41425
|
}) : e.definitions.map((e) => /* @__PURE__ */ Q("fieldset", {
|
|
41419
|
-
className:
|
|
41426
|
+
className: ZU.field,
|
|
41420
41427
|
"aria-labelledby": n,
|
|
41421
41428
|
children: s(e)
|
|
41422
41429
|
}, e.handle));
|
|
41423
41430
|
}
|
|
41424
41431
|
//#endregion
|
|
41425
41432
|
//#region src/workbench/browser/runtime/runs/runInputPanel.tsx
|
|
41426
|
-
function
|
|
41433
|
+
function tW({ attempted: e, group: t, title: n, theme: r }) {
|
|
41427
41434
|
return /* @__PURE__ */ $("section", {
|
|
41428
41435
|
className: "run-input-group",
|
|
41429
|
-
children: [/* @__PURE__ */ Q("header", { children: /* @__PURE__ */ Q("strong", { children: n }) }), /* @__PURE__ */ Q(
|
|
41436
|
+
children: [/* @__PURE__ */ Q("header", { children: /* @__PURE__ */ Q("strong", { children: n }) }), /* @__PURE__ */ Q($U, {
|
|
41430
41437
|
store: t.editor,
|
|
41431
41438
|
theme: r,
|
|
41432
41439
|
showErrors: e
|
|
41433
41440
|
})]
|
|
41434
41441
|
});
|
|
41435
41442
|
}
|
|
41436
|
-
function
|
|
41443
|
+
function nW({ onStarted: e, request: t, store: n, theme: r }) {
|
|
41437
41444
|
let i = U(), a = H(t.valid), o = H(n.$.starting);
|
|
41438
41445
|
function s() {
|
|
41439
41446
|
o || n.dismissInputs();
|
|
@@ -41459,11 +41466,11 @@ function tW({ onStarted: e, request: t, store: n, theme: r }) {
|
|
|
41459
41466
|
className: "run-input-content",
|
|
41460
41467
|
children: [
|
|
41461
41468
|
/* @__PURE__ */ Q("p", { children: i("runInput.remembered") }),
|
|
41462
|
-
t.attempted && !a && /* @__PURE__ */ $(
|
|
41469
|
+
t.attempted && !a && /* @__PURE__ */ $(qH, {
|
|
41463
41470
|
variant: "destructive",
|
|
41464
|
-
children: [/* @__PURE__ */ Q(Sr, { name: "alert" }), /* @__PURE__ */ Q(
|
|
41471
|
+
children: [/* @__PURE__ */ Q(Sr, { name: "alert" }), /* @__PURE__ */ Q(YH, { children: i("runInput.invalid") })]
|
|
41465
41472
|
}),
|
|
41466
|
-
t.groups.map((e) => /* @__PURE__ */ Q(
|
|
41473
|
+
t.groups.map((e) => /* @__PURE__ */ Q(tW, {
|
|
41467
41474
|
attempted: t.attempted,
|
|
41468
41475
|
group: e,
|
|
41469
41476
|
title: e.nodeId == t.triggerId ? i("inspector.ports.outputsTitle") : e.title,
|
|
@@ -41489,9 +41496,9 @@ function tW({ onStarted: e, request: t, store: n, theme: r }) {
|
|
|
41489
41496
|
]
|
|
41490
41497
|
});
|
|
41491
41498
|
}
|
|
41492
|
-
function
|
|
41499
|
+
function rW({ onStarted: e, store: t, theme: n }) {
|
|
41493
41500
|
let r = H(t.$.inputRequest);
|
|
41494
|
-
return r == null ? null : /* @__PURE__ */ Q(
|
|
41501
|
+
return r == null ? null : /* @__PURE__ */ Q(nW, {
|
|
41495
41502
|
onStarted: e,
|
|
41496
41503
|
request: r,
|
|
41497
41504
|
store: t,
|
|
@@ -41500,9 +41507,9 @@ function nW({ onStarted: e, store: t, theme: n }) {
|
|
|
41500
41507
|
}
|
|
41501
41508
|
//#endregion
|
|
41502
41509
|
//#region src/workbench/browser/runtime/runs/runStatusIsland.tsx
|
|
41503
|
-
function
|
|
41510
|
+
function iW({ onToggle: e, open: t, panelId: n, store: r }) {
|
|
41504
41511
|
let i = H(r.runs.$.run), a = H(r.runRequests.$.submitting) != null;
|
|
41505
|
-
return /* @__PURE__ */ Q(
|
|
41512
|
+
return /* @__PURE__ */ Q(aW, {
|
|
41506
41513
|
onToggle: e,
|
|
41507
41514
|
open: t,
|
|
41508
41515
|
panelId: n,
|
|
@@ -41510,8 +41517,8 @@ function rW({ onToggle: e, open: t, panelId: n, store: r }) {
|
|
|
41510
41517
|
submitting: a
|
|
41511
41518
|
});
|
|
41512
41519
|
}
|
|
41513
|
-
function
|
|
41514
|
-
let a = U(), o = i || r != null, s = i ? a("run.statusSubmitting") :
|
|
41520
|
+
function aW({ onToggle: e, open: t, panelId: n, run: r, submitting: i }) {
|
|
41521
|
+
let a = U(), o = i || r != null, s = i ? a("run.statusSubmitting") : gU(r, a), c = i ? "running" : _U(r), l = a(t ? "run.collapse" : "run.expand");
|
|
41515
41522
|
return /* @__PURE__ */ Q(ao, {
|
|
41516
41523
|
placement: "top",
|
|
41517
41524
|
title: l,
|
|
@@ -41540,7 +41547,7 @@ function iW({ onToggle: e, open: t, panelId: n, run: r, submitting: i }) {
|
|
|
41540
41547
|
}
|
|
41541
41548
|
//#endregion
|
|
41542
41549
|
//#region src/workbench/browser/runtime/runs/runsView.tsx
|
|
41543
|
-
var
|
|
41550
|
+
var oW = {
|
|
41544
41551
|
createdBefore: "",
|
|
41545
41552
|
createdFrom: "",
|
|
41546
41553
|
pendingWait: !1,
|
|
@@ -41548,52 +41555,52 @@ var aW = {
|
|
|
41548
41555
|
source: "",
|
|
41549
41556
|
status: ""
|
|
41550
41557
|
};
|
|
41551
|
-
function
|
|
41558
|
+
function sW(e) {
|
|
41552
41559
|
if (e == null) return "";
|
|
41553
41560
|
let t = new Date(e);
|
|
41554
41561
|
return (/* @__PURE__ */ new Date(t.getTime() - t.getTimezoneOffset() * 6e4)).toISOString().slice(0, 16);
|
|
41555
41562
|
}
|
|
41556
|
-
function
|
|
41563
|
+
function cW(e) {
|
|
41557
41564
|
return {
|
|
41558
|
-
createdBefore:
|
|
41559
|
-
createdFrom:
|
|
41565
|
+
createdBefore: sW(e.createdBefore),
|
|
41566
|
+
createdFrom: sW(e.createdFrom),
|
|
41560
41567
|
pendingWait: e.pendingWait === !0,
|
|
41561
41568
|
runId: e.runId ?? "",
|
|
41562
41569
|
source: e.source ?? "",
|
|
41563
41570
|
status: e.status ?? ""
|
|
41564
41571
|
};
|
|
41565
41572
|
}
|
|
41566
|
-
function
|
|
41573
|
+
function lW(e) {
|
|
41567
41574
|
return e.createdFrom !== "" && e.createdBefore !== "" && Date.parse(e.createdFrom) >= Date.parse(e.createdBefore);
|
|
41568
41575
|
}
|
|
41569
|
-
function
|
|
41576
|
+
function uW(e, t) {
|
|
41570
41577
|
switch (e.source) {
|
|
41571
41578
|
case "draft": return t("run.sourceDraft");
|
|
41572
41579
|
case "live": return t("run.sourceLive");
|
|
41573
41580
|
}
|
|
41574
41581
|
}
|
|
41575
|
-
function
|
|
41582
|
+
function dW(e) {
|
|
41576
41583
|
return e.slice(-8);
|
|
41577
41584
|
}
|
|
41578
|
-
function
|
|
41585
|
+
function fW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r, onLocateWait: i, onSourceChange: o, store: s }) {
|
|
41579
41586
|
let c = it(), l = U(), u = H(s.runs.$.eventFilter), d = H(s.$.runEventNodes), f = H(s.runs.$.cancelingRunId), p = H(s.runs.$.events), m = H(s.runs.$.eventsExpiresAt), h = H(s.runs.$.filter), g = H(s.runs.$.historyComplete), _ = H(s.runs.$.loadFailed), v = H(s.runs.$.loading), y = H(s.runs.$.loadMoreFailed), b = H(s.runs.$.loadingMore), x = H(s.runs.$.nextCursor), S = H(s.runs.$.result), w = H(s.runs.$.refreshing), T = H(s.runs.$.run), E = H(s.runs.$.resolvingActions), O = H(s.runs.$.runs), k = /* @__PURE__ */ new Map();
|
|
41580
41587
|
for (let e of O) {
|
|
41581
41588
|
let t = new Date(e.createdAt).toDateString(), n = k.get(t);
|
|
41582
41589
|
n == null ? k.set(t, [e]) : n.push(e);
|
|
41583
41590
|
}
|
|
41584
|
-
let A = H(s.runs.$.observationFailed), j = H(s.workspace.$.revision), M = Y(null), N = Ii(), F = `${N}-error`, L = Y(null), [R, z] = X(!1), [ee, B] = X(!1), [V, te] = X("output"), ne =
|
|
41591
|
+
let A = H(s.runs.$.observationFailed), j = H(s.workspace.$.revision), M = Y(null), N = Ii(), F = `${N}-error`, L = Y(null), [R, z] = X(!1), [ee, B] = X(!1), [V, te] = X("output"), ne = UU(u, T?.runId), [re, ae] = X(!1), [oe, se] = X(null), [le, ue] = X(() => cW(h)), de = Y(void 0);
|
|
41585
41592
|
J(() => {
|
|
41586
41593
|
clearTimeout(de.current), de.current = void 0, ue((e) => ({
|
|
41587
41594
|
...e,
|
|
41588
41595
|
source: h.source ?? ""
|
|
41589
41596
|
}));
|
|
41590
41597
|
}, [h.source]);
|
|
41591
|
-
let pe = Be(h), me = Object.values(h).filter((e) => e != null).length, he = pe ? l("run.filterRunsActive", { count: me }) : l("run.filterRuns"), ge =
|
|
41598
|
+
let pe = Be(h), me = Object.values(h).filter((e) => e != null).length, he = pe ? l("run.filterRunsActive", { count: me }) : l("run.filterRuns"), ge = lW(le), _e = (e, t) => {
|
|
41592
41599
|
let n = {
|
|
41593
41600
|
...le,
|
|
41594
41601
|
[e]: t
|
|
41595
41602
|
};
|
|
41596
|
-
if (ue(n), clearTimeout(de.current), de.current = void 0, n.createdFrom !== "" && !Number.isFinite(Date.parse(n.createdFrom)) || n.createdBefore !== "" && !Number.isFinite(Date.parse(n.createdBefore)) ||
|
|
41603
|
+
if (ue(n), clearTimeout(de.current), de.current = void 0, n.createdFrom !== "" && !Number.isFinite(Date.parse(n.createdFrom)) || n.createdBefore !== "" && !Number.isFinite(Date.parse(n.createdBefore)) || lW(n)) return;
|
|
41597
41604
|
let r = () => {
|
|
41598
41605
|
de.current = void 0;
|
|
41599
41606
|
let t = n.runId.trim();
|
|
@@ -41608,7 +41615,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
41608
41615
|
};
|
|
41609
41616
|
e === "runId" ? de.current = setTimeout(r, 300) : r();
|
|
41610
41617
|
}, ve = () => {
|
|
41611
|
-
clearTimeout(de.current), de.current = void 0, ue(
|
|
41618
|
+
clearTimeout(de.current), de.current = void 0, ue(oW), s.runs.applyFilter({}), o?.(void 0);
|
|
41612
41619
|
};
|
|
41613
41620
|
J(() => () => clearTimeout(de.current), []);
|
|
41614
41621
|
let ye = [
|
|
@@ -41677,7 +41684,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
41677
41684
|
role: "region",
|
|
41678
41685
|
tabIndex: 0,
|
|
41679
41686
|
children: [
|
|
41680
|
-
/* @__PURE__ */ Q(
|
|
41687
|
+
/* @__PURE__ */ Q(xU, {
|
|
41681
41688
|
className: "absolute right-3 top-3",
|
|
41682
41689
|
"aria-label": l("common.close"),
|
|
41683
41690
|
onClick: t,
|
|
@@ -41711,7 +41718,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
41711
41718
|
className: "col-start-2 row-start-1 flex items-center gap-1",
|
|
41712
41719
|
children: /* @__PURE__ */ $(P, {
|
|
41713
41720
|
onOpenChange: (e) => {
|
|
41714
|
-
e && de.current == null && ue(
|
|
41721
|
+
e && de.current == null && ue(cW(h)), ae(e);
|
|
41715
41722
|
},
|
|
41716
41723
|
open: re,
|
|
41717
41724
|
children: [/* @__PURE__ */ $(Gn, { children: [/* @__PURE__ */ $(Ye, {
|
|
@@ -41907,22 +41914,22 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
41907
41914
|
type: "button",
|
|
41908
41915
|
variant: "ghost",
|
|
41909
41916
|
children: [
|
|
41910
|
-
/* @__PURE__ */ Q("span", { className: `status-dot ${
|
|
41917
|
+
/* @__PURE__ */ Q("span", { className: `status-dot ${_U(e)}` }),
|
|
41911
41918
|
/* @__PURE__ */ $("span", {
|
|
41912
41919
|
className: "flex min-w-0 items-center justify-between gap-2",
|
|
41913
41920
|
children: [/* @__PURE__ */ Q("span", {
|
|
41914
41921
|
className: "truncate text-xs font-medium",
|
|
41915
|
-
children:
|
|
41922
|
+
children: gU(e, l)
|
|
41916
41923
|
}), /* @__PURE__ */ Q("span", {
|
|
41917
41924
|
className: "run-list-meta shrink-0",
|
|
41918
|
-
children:
|
|
41925
|
+
children: vU(e)
|
|
41919
41926
|
})]
|
|
41920
41927
|
}),
|
|
41921
41928
|
/* @__PURE__ */ $("span", {
|
|
41922
41929
|
className: "run-list-meta col-start-2 flex min-w-0 items-center justify-between gap-2",
|
|
41923
41930
|
children: [/* @__PURE__ */ $("span", {
|
|
41924
41931
|
className: "truncate",
|
|
41925
|
-
title: `${new Date(e.createdAt).toLocaleString(c)} · ${
|
|
41932
|
+
title: `${new Date(e.createdAt).toLocaleString(c)} · ${uW(e, l)}`,
|
|
41926
41933
|
children: [
|
|
41927
41934
|
/* @__PURE__ */ Q("time", {
|
|
41928
41935
|
dateTime: e.createdAt,
|
|
@@ -41932,14 +41939,14 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
41932
41939
|
})
|
|
41933
41940
|
}),
|
|
41934
41941
|
" · ",
|
|
41935
|
-
|
|
41942
|
+
uW(e, l)
|
|
41936
41943
|
]
|
|
41937
41944
|
}), /* @__PURE__ */ $("code", {
|
|
41938
41945
|
className: "shrink-0",
|
|
41939
41946
|
title: e.runId,
|
|
41940
41947
|
children: [/* @__PURE__ */ Q("span", {
|
|
41941
41948
|
"aria-hidden": "true",
|
|
41942
|
-
children:
|
|
41949
|
+
children: dW(e.runId)
|
|
41943
41950
|
}), /* @__PURE__ */ Q("span", {
|
|
41944
41951
|
className: "sr-only",
|
|
41945
41952
|
children: e.runId
|
|
@@ -41984,7 +41991,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
41984
41991
|
className: "run-detail-summary",
|
|
41985
41992
|
children: [R && /* @__PURE__ */ $("div", {
|
|
41986
41993
|
className: "flex min-w-0 items-center gap-2",
|
|
41987
|
-
children: [/* @__PURE__ */ Q(
|
|
41994
|
+
children: [/* @__PURE__ */ Q(xU, {
|
|
41988
41995
|
"aria-label": l("run.history"),
|
|
41989
41996
|
onClick: () => {
|
|
41990
41997
|
B(!1), requestAnimationFrame(() => L.current?.focus({ preventScroll: !0 }));
|
|
@@ -42003,18 +42010,18 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
42003
42010
|
}), /* @__PURE__ */ $("div", {
|
|
42004
42011
|
className: "flex min-h-7 flex-wrap items-center gap-2",
|
|
42005
42012
|
children: [
|
|
42006
|
-
/* @__PURE__ */ Q("span", { className: `status-dot ${
|
|
42007
|
-
/* @__PURE__ */ Q("strong", { children:
|
|
42008
|
-
/* @__PURE__ */ Q(
|
|
42013
|
+
/* @__PURE__ */ Q("span", { className: `status-dot ${_U(T)}` }),
|
|
42014
|
+
/* @__PURE__ */ Q("strong", { children: gU(T, l) }),
|
|
42015
|
+
/* @__PURE__ */ Q(OH, {
|
|
42009
42016
|
variant: "secondary",
|
|
42010
|
-
children:
|
|
42017
|
+
children: uW(T, l)
|
|
42011
42018
|
})
|
|
42012
42019
|
]
|
|
42013
42020
|
})]
|
|
42014
42021
|
}),
|
|
42015
42022
|
/* @__PURE__ */ $("div", {
|
|
42016
42023
|
className: "run-detail-actions pr-9",
|
|
42017
|
-
children: [/* @__PURE__ */ Q(
|
|
42024
|
+
children: [/* @__PURE__ */ Q(RU, {
|
|
42018
42025
|
events: p,
|
|
42019
42026
|
eventsExpiresAt: m,
|
|
42020
42027
|
historyComplete: g,
|
|
@@ -42043,11 +42050,11 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
42043
42050
|
/* @__PURE__ */ $("span", { children: [
|
|
42044
42051
|
l("run.duration"),
|
|
42045
42052
|
": ",
|
|
42046
|
-
|
|
42053
|
+
vU(T)
|
|
42047
42054
|
] }),
|
|
42048
42055
|
/* @__PURE__ */ Q(De, {
|
|
42049
42056
|
value: T.runId,
|
|
42050
|
-
label: l("run.runId", { id:
|
|
42057
|
+
label: l("run.runId", { id: dW(T.runId) }),
|
|
42051
42058
|
trigger: /* @__PURE__ */ Q("span", {
|
|
42052
42059
|
className: "cursor-help text-xs",
|
|
42053
42060
|
tabIndex: 0
|
|
@@ -42083,7 +42090,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
42083
42090
|
]
|
|
42084
42091
|
})
|
|
42085
42092
|
]
|
|
42086
|
-
}), /* @__PURE__ */ Q(
|
|
42093
|
+
}), /* @__PURE__ */ Q(MU, {
|
|
42087
42094
|
onLocate: i,
|
|
42088
42095
|
onResolve: (e, t, n) => void s.runs.resolve(e, t, n),
|
|
42089
42096
|
resolvingActions: E,
|
|
@@ -42114,9 +42121,9 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
42114
42121
|
}), V == "timeline" && /* @__PURE__ */ $("div", {
|
|
42115
42122
|
className: "run-toolbar-actions",
|
|
42116
42123
|
children: [
|
|
42124
|
+
/* @__PURE__ */ Q(GU, { presentation: ne }),
|
|
42117
42125
|
/* @__PURE__ */ Q(WU, { presentation: ne }),
|
|
42118
|
-
/* @__PURE__ */ Q(
|
|
42119
|
-
/* @__PURE__ */ Q(IU, {
|
|
42126
|
+
/* @__PURE__ */ Q(LU, {
|
|
42120
42127
|
container: M.current,
|
|
42121
42128
|
events: p,
|
|
42122
42129
|
presentation: ne,
|
|
@@ -42132,7 +42139,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
42132
42139
|
id: "run-history-timeline-panel",
|
|
42133
42140
|
role: "tabpanel",
|
|
42134
42141
|
tabIndex: 0,
|
|
42135
|
-
children: /* @__PURE__ */ Q(
|
|
42142
|
+
children: /* @__PURE__ */ Q(KU, {
|
|
42136
42143
|
resultClient: s.results,
|
|
42137
42144
|
presentation: ne,
|
|
42138
42145
|
events: p,
|
|
@@ -42174,7 +42181,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
42174
42181
|
className: "run-output-scroll run-content-scroll",
|
|
42175
42182
|
defer: !1,
|
|
42176
42183
|
tabIndex: -1,
|
|
42177
|
-
children: /* @__PURE__ */ Q(
|
|
42184
|
+
children: /* @__PURE__ */ Q(mU, { result: S })
|
|
42178
42185
|
})]
|
|
42179
42186
|
})]
|
|
42180
42187
|
})] })
|
|
@@ -42184,7 +42191,7 @@ function dW({ flowName: e, onClose: t, onConfigureConnector: n, onLocateEvent: r
|
|
|
42184
42191
|
}
|
|
42185
42192
|
//#endregion
|
|
42186
42193
|
//#region src/workbench/browser/runtime/shell/diagnosticsPanel.tsx
|
|
42187
|
-
function
|
|
42194
|
+
function pW({ checking: e, items: t, nodes: n, onClose: r, onRefresh: i, onSelect: a, onSelectNode: o }) {
|
|
42188
42195
|
let s = U(), c = /* @__PURE__ */ new Map(), l = [];
|
|
42189
42196
|
for (let e of t) {
|
|
42190
42197
|
let t = e.location?.nodeId;
|
|
@@ -42297,7 +42304,7 @@ function fW({ checking: e, items: t, nodes: n, onClose: r, onRefresh: i, onSelec
|
|
|
42297
42304
|
}
|
|
42298
42305
|
//#endregion
|
|
42299
42306
|
//#region src/workbench/browser/runtime/shell/workspaceDiagnosticsIsland.tsx
|
|
42300
|
-
function
|
|
42307
|
+
function mW({ checking: e, items: t, nodes: n, onOpenChange: r, onRefresh: i, onSelect: a, onSelectNode: o, open: s }) {
|
|
42301
42308
|
let c = U(), [l, u] = X(null), d = q((e) => u(e?.closest(".canvas-panel") ?? e), []);
|
|
42302
42309
|
return t.length == 0 ? null : /* @__PURE__ */ Q("div", {
|
|
42303
42310
|
className: "open-flow-control-island open-flow-control-island-compact open-flow-control-island-soft-shadow workspace-diagnostics-island",
|
|
@@ -42331,7 +42338,7 @@ function pW({ checking: e, items: t, nodes: n, onOpenChange: r, onRefresh: i, on
|
|
|
42331
42338
|
children: [/* @__PURE__ */ Q(z, {
|
|
42332
42339
|
className: "sr-only",
|
|
42333
42340
|
children: c("diagnostics.title")
|
|
42334
|
-
}), /* @__PURE__ */ Q(
|
|
42341
|
+
}), /* @__PURE__ */ Q(pW, {
|
|
42335
42342
|
checking: e,
|
|
42336
42343
|
items: t,
|
|
42337
42344
|
nodes: n,
|
|
@@ -42346,7 +42353,7 @@ function pW({ checking: e, items: t, nodes: n, onOpenChange: r, onRefresh: i, on
|
|
|
42346
42353
|
}
|
|
42347
42354
|
//#endregion
|
|
42348
42355
|
//#region src/workbench/browser/runtime/shell/workspaceNavigationIsland.tsx
|
|
42349
|
-
function
|
|
42356
|
+
function hW({ flowName: e, flowsHref: t, ghost: n = !1, onOpenFlows: r, saveStatus: i }) {
|
|
42350
42357
|
let a = U(), [o, s] = X(null), c = i == "saved" || i == "saving" || i == "failed" ? i : void 0, l = c == null ? void 0 : a(c == "saved" ? "designer.draftSaved" : `workspace.status.${c}`);
|
|
42351
42358
|
return /* @__PURE__ */ Q("nav", {
|
|
42352
42359
|
"aria-label": a("resource.workflows"),
|
|
@@ -42402,14 +42409,14 @@ function mW({ flowName: e, flowsHref: t, ghost: n = !1, onOpenFlows: r, saveStat
|
|
|
42402
42409
|
}
|
|
42403
42410
|
//#endregion
|
|
42404
42411
|
//#region src/workbench/browser/runtime/shell/workspacePublishIsland.tsx
|
|
42405
|
-
var
|
|
42412
|
+
var gW = {
|
|
42406
42413
|
issues: "workspace.publishIssuesReason",
|
|
42407
42414
|
subflow: "workspace.subflowPublishHelp",
|
|
42408
42415
|
busy: "workspace.publishActionInProgress",
|
|
42409
42416
|
publishing: "workspace.publishInProgress"
|
|
42410
42417
|
};
|
|
42411
|
-
function
|
|
42412
|
-
let a = U(), [o, s] = X(null), [c, l] = X(!1), u = Y(null), d = a(i == "publishing" ? "workspace.publishing" : "publication.publishDraft"), f = a("workspace.publications"), p = e === !0 ? void 0 : a(e === !1 ? "publication.historyEmpty" : "publication.loading"), m = a("workspace.runs"), h = a("sidebar.moreActions"), _ = i == "ready" ? a("workspace.publishReady") : i == "current" ? a("workspace.publishCurrent") : a("workspace.publishBlocked", { reason: a(
|
|
42418
|
+
function _W({ hasPublications: e, onOpenPublications: t, onOpenRuns: n, onPublish: r, state: i }) {
|
|
42419
|
+
let a = U(), [o, s] = X(null), [c, l] = X(!1), u = Y(null), d = a(i == "publishing" ? "workspace.publishing" : "publication.publishDraft"), f = a("workspace.publications"), p = e === !0 ? void 0 : a(e === !1 ? "publication.historyEmpty" : "publication.loading"), m = a("workspace.runs"), h = a("sidebar.moreActions"), _ = i == "ready" ? a("workspace.publishReady") : i == "current" ? a("workspace.publishCurrent") : a("workspace.publishBlocked", { reason: a(gW[i]) }), v = i == "ready" || i == "current" ? i : "unavailable";
|
|
42413
42420
|
return /* @__PURE__ */ $("div", {
|
|
42414
42421
|
"aria-label": d,
|
|
42415
42422
|
className: "open-flow-control-island open-flow-control-island-compact open-flow-control-island-soft-shadow workspace-publish-island",
|
|
@@ -42523,7 +42530,7 @@ function gW({ hasPublications: e, onOpenPublications: t, onOpenRuns: n, onPublis
|
|
|
42523
42530
|
}
|
|
42524
42531
|
//#endregion
|
|
42525
42532
|
//#region src/workbench/browser/runtime/shell/workspaceRecovery.tsx
|
|
42526
|
-
function
|
|
42533
|
+
function vW({ kind: e, message: t, repairing: n = !1, onRepair: r, onRetry: i }) {
|
|
42527
42534
|
let o = U(), s = e != "failed";
|
|
42528
42535
|
return /* @__PURE__ */ $(C, {
|
|
42529
42536
|
"aria-busy": n,
|
|
@@ -42568,11 +42575,11 @@ function _W({ kind: e, message: t, repairing: n = !1, onRepair: r, onRetry: i })
|
|
|
42568
42575
|
}
|
|
42569
42576
|
//#endregion
|
|
42570
42577
|
//#region src/workbench/browser/runtime/flowWorkspace.tsx
|
|
42571
|
-
var
|
|
42572
|
-
function
|
|
42578
|
+
var yW = "run-logs-panel";
|
|
42579
|
+
function bW({ onOpenRuns: e, onClose: t, onConfigureConnector: n, open: r, store: i }) {
|
|
42573
42580
|
let a = H(i.runs.$.cancelingRunId), o = H(i.runs.$.eventFilter), s = H(i.runs.$.events), c = H(i.runs.$.eventsExpiresAt), l = H(i.$.runEventNodes), u = H(i.runs.$.historyComplete), d = H(i.runs.$.observationFailed), f = H(i.runs.$.result), p = H(i.runs.$.resolvingActions), m = H(i.runs.$.run), h = H(i.runRequests.$.submitting);
|
|
42574
|
-
return /* @__PURE__ */ Q(
|
|
42575
|
-
panelId:
|
|
42581
|
+
return /* @__PURE__ */ Q(qU, {
|
|
42582
|
+
panelId: yW,
|
|
42576
42583
|
resultClient: i.results,
|
|
42577
42584
|
cancelDisabled: a != null,
|
|
42578
42585
|
canceling: a == m?.runId,
|
|
@@ -42600,7 +42607,7 @@ function yW({ onOpenRuns: e, onClose: t, onConfigureConnector: n, open: r, store
|
|
|
42600
42607
|
submitting: h != null
|
|
42601
42608
|
});
|
|
42602
42609
|
}
|
|
42603
|
-
var
|
|
42610
|
+
var xW = Pi(function({ store: e, focus: t, disabled: n, revision: r, selection: i, target: a, theme: o }) {
|
|
42604
42611
|
let s = U(), c = it(), l = H(e.$.variableNames), u = H(e.$.variableNamesLoaded), d = H(e.$.variableNamesLoading), f = H(e.$.connectorSetupPending), p = H(e.connectors.$.selectedAction), m = H(e.connectorAccess.$), h = m.access, g = p?.authenticated ? p.serviceId : void 0, _ = i?.kind == "trigger" && (i.trigger.kind == "poll" || i.trigger.kind == "integration") ? i.trigger.definition.provider : void 0;
|
|
42605
42612
|
J(() => {
|
|
42606
42613
|
if (h?.mode == "selectable") {
|
|
@@ -42662,7 +42669,7 @@ var bW = Pi(function({ store: e, focus: t, disabled: n, revision: r, selection:
|
|
|
42662
42669
|
triggers: e.triggers
|
|
42663
42670
|
});
|
|
42664
42671
|
});
|
|
42665
|
-
function
|
|
42672
|
+
function SW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, onConfigureConnector: i, onOpenPublications: a, onOpenRuns: o, onManageConnectorAccess: s, connectionHref: c, onToggleRuns: l, runDrawerOpen: u, store: d, theme: f }) {
|
|
42666
42673
|
let p = U(), m = H(d.workspace.$.addNodeOptions), h = H(d.connectors.$.pickerConnections), g = H(d.triggers.catalog.state), [_, v] = X(), y = H(d.runRequests.$.inputRequest), b = H(d.$.busy), x = H(d.$.diagnostics), S = H(d.$.diagnosticItems), C = H(d.$.designerNodeById), w = H(d.workspace.$.checkLoading), T = H(d.workspace.history$), E = H(d.$.designer), D = E.nodes.filter((e) => e.kind == "trigger"), O = D.find((e) => e.id == _) ?? D[0], k = H(d.workspace.$.diagnosticFocus), A = H(d.workspace.$.draft), j = H(d.workspace.$.live), M = H(d.workspace.$.nodeFocus), N = H(d.workspace.$.flowId), P = H(d.workspace.$.revision), F = H(d.$.selectedDesignerNode), I = H(d.workspace.$.selection), L = H(d.workspace.$.selectedNodeIds), R = H(d.workspace.$.target), z = R?.kind == "flow" && D.length == 0 ? "triggers" : "nodes", { ignoredNodeIds: ee, onIgnoreNodes: B } = pa(`${N}:${R?.kind}:${R?.kind == "subflow" ? R.id : ""}`), V = jx({
|
|
42667
42674
|
identity: JSON.stringify([N, R]),
|
|
42668
42675
|
preferences: d.preferences,
|
|
@@ -42734,7 +42741,7 @@ function xW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, on
|
|
|
42734
42741
|
role: "region",
|
|
42735
42742
|
tabIndex: 0,
|
|
42736
42743
|
children: [
|
|
42737
|
-
/* @__PURE__ */ Q(
|
|
42744
|
+
/* @__PURE__ */ Q(wH, {
|
|
42738
42745
|
interactiveMode$: d.interactiveMode$,
|
|
42739
42746
|
connectionControl: /* @__PURE__ */ Q(ic, {
|
|
42740
42747
|
connectionHref: c,
|
|
@@ -42743,15 +42750,15 @@ function xW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, on
|
|
|
42743
42750
|
store: d
|
|
42744
42751
|
}, N),
|
|
42745
42752
|
topLeftTools: e,
|
|
42746
|
-
bottomRightTools: /* @__PURE__ */ Q(
|
|
42753
|
+
bottomRightTools: /* @__PURE__ */ Q(iW, {
|
|
42747
42754
|
onToggle: l,
|
|
42748
42755
|
open: u,
|
|
42749
|
-
panelId:
|
|
42756
|
+
panelId: yW,
|
|
42750
42757
|
store: d
|
|
42751
42758
|
}),
|
|
42752
42759
|
cornerLeading: /* @__PURE__ */ $("div", {
|
|
42753
42760
|
className: "workspace-corner-leading",
|
|
42754
|
-
children: [x?.valid == 0 && S.length > 0 && /* @__PURE__ */ Q(
|
|
42761
|
+
children: [x?.valid == 0 && S.length > 0 && /* @__PURE__ */ Q(mW, {
|
|
42755
42762
|
checking: w,
|
|
42756
42763
|
items: S,
|
|
42757
42764
|
nodes: C,
|
|
@@ -42766,7 +42773,7 @@ function xW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, on
|
|
|
42766
42773
|
d.workspace.locateNode(e) && (fe(), ne(!1));
|
|
42767
42774
|
},
|
|
42768
42775
|
open: te
|
|
42769
|
-
}), /* @__PURE__ */ Q(
|
|
42776
|
+
}), /* @__PURE__ */ Q(_W, {
|
|
42770
42777
|
hasPublications: j == null ? void 0 : j.publication != null,
|
|
42771
42778
|
onOpenPublications: a,
|
|
42772
42779
|
onOpenRuns: o,
|
|
@@ -42777,9 +42784,9 @@ function xW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, on
|
|
|
42777
42784
|
history: Ce,
|
|
42778
42785
|
ignoredNodeIds: ee,
|
|
42779
42786
|
onIgnoreNodes: B,
|
|
42780
|
-
runControl: R?.kind == "flow" && A != null && O != null ? /* @__PURE__ */ Q(
|
|
42787
|
+
runControl: R?.kind == "flow" && A != null && O != null ? /* @__PURE__ */ Q(WH, {
|
|
42781
42788
|
disabled: b != null && b != "run" && b != "designer",
|
|
42782
|
-
inputContent: /* @__PURE__ */ Q(
|
|
42789
|
+
inputContent: /* @__PURE__ */ Q(rW, {
|
|
42783
42790
|
onStarted: n,
|
|
42784
42791
|
store: d.runRequests,
|
|
42785
42792
|
theme: f
|
|
@@ -42919,7 +42926,7 @@ function xW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, on
|
|
|
42919
42926
|
disabled: le,
|
|
42920
42927
|
dark: f == "dark",
|
|
42921
42928
|
onSave: (e) => void d.workspace.saveComment(F.id, e)
|
|
42922
|
-
}, F.id) : P != null && /* @__PURE__ */ Q(
|
|
42929
|
+
}, F.id) : P != null && /* @__PURE__ */ Q(xW, {
|
|
42923
42930
|
store: d,
|
|
42924
42931
|
focus: k,
|
|
42925
42932
|
disabled: le,
|
|
@@ -42929,7 +42936,7 @@ function xW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, on
|
|
|
42929
42936
|
theme: f
|
|
42930
42937
|
})]
|
|
42931
42938
|
}),
|
|
42932
|
-
/* @__PURE__ */ Q(
|
|
42939
|
+
/* @__PURE__ */ Q(bW, {
|
|
42933
42940
|
onOpenRuns: o,
|
|
42934
42941
|
onClose: r,
|
|
42935
42942
|
onConfigureConnector: i,
|
|
@@ -42939,9 +42946,9 @@ function xW({ navigationIsland: e, onRun: t, onRunStarted: n, onCloseRuns: r, on
|
|
|
42939
42946
|
]
|
|
42940
42947
|
});
|
|
42941
42948
|
}
|
|
42942
|
-
function
|
|
42943
|
-
let c = U(), [l, u] = X(() =>
|
|
42944
|
-
d.current = e, u(e),
|
|
42949
|
+
function CW({ hrefFor: e, navigation: t, onConfigureConnector: n, onManageConnectorAccess: r, connectionHref: i, store: o, theme: s }) {
|
|
42950
|
+
let c = U(), [l, u] = X(() => YU(o.preferences) ?? !1), d = Y(YU(o.preferences)), f = (e) => {
|
|
42951
|
+
d.current = e, u(e), XU(o.preferences, e);
|
|
42945
42952
|
}, p = Y(), m = H(t.$.view), h = H(o.workspace.$.draft), g = H(o.workspace.$.status), _ = H(o.workspace.$.flow), v = H(o.workspace.$.flowId), y = H(o.workspace.$.workspaceLoadFailed), b = H(o.workspace.$.workspaceLoadProblem), x = H(o.workspace.$.workspaceLoading), S = H(o.workspace.$.workspaceRepairing), w = H(o.runRequests.$.submitting), T = H(o.runs.$.externalRunId), E = h != null, D = E && !x;
|
|
42946
42953
|
J(() => {
|
|
42947
42954
|
m == "runs" && v != null && o.runs.load(v, { source: t.runSource });
|
|
@@ -42975,7 +42982,7 @@ function SW({ hrefFor: e, navigation: t, onConfigureConnector: n, onManageConnec
|
|
|
42975
42982
|
t.open("design"), await o.requestDraftRun(e) == "started" && O();
|
|
42976
42983
|
}, A = (e) => {
|
|
42977
42984
|
o.locateRunEvent(e) && O();
|
|
42978
|
-
}, j = /* @__PURE__ */ Q(
|
|
42985
|
+
}, j = /* @__PURE__ */ Q(hW, {
|
|
42979
42986
|
ghost: m == "design" && !D,
|
|
42980
42987
|
saveStatus: m == "design" && D ? g : void 0,
|
|
42981
42988
|
flowName: _?.name ?? _?.flowId ?? "",
|
|
@@ -42996,7 +43003,7 @@ function SW({ hrefFor: e, navigation: t, onConfigureConnector: n, onManageConnec
|
|
|
42996
43003
|
children: /* @__PURE__ */ Q("section", {
|
|
42997
43004
|
"aria-busy": !y,
|
|
42998
43005
|
className: "canvas-panel workbench-canvas",
|
|
42999
|
-
children: y ? /* @__PURE__ */ Q(
|
|
43006
|
+
children: y ? /* @__PURE__ */ Q(vW, {
|
|
43000
43007
|
kind: b?.kind ?? "failed",
|
|
43001
43008
|
message: b?.message,
|
|
43002
43009
|
repairing: S,
|
|
@@ -43007,7 +43014,7 @@ function SW({ hrefFor: e, navigation: t, onConfigureConnector: n, onManageConnec
|
|
|
43007
43014
|
children: /* @__PURE__ */ Q(fe, { children: /* @__PURE__ */ Q(a, { children: c("workspace.status.loading") }) })
|
|
43008
43015
|
})
|
|
43009
43016
|
})
|
|
43010
|
-
}) : m == "design" ? /* @__PURE__ */ Q(
|
|
43017
|
+
}) : m == "design" ? /* @__PURE__ */ Q(SW, {
|
|
43011
43018
|
navigationIsland: j,
|
|
43012
43019
|
onRun: (e) => void k(e),
|
|
43013
43020
|
onRunStarted: O,
|
|
@@ -43025,7 +43032,7 @@ function SW({ hrefFor: e, navigation: t, onConfigureConnector: n, onManageConnec
|
|
|
43025
43032
|
runDrawerOpen: l,
|
|
43026
43033
|
store: o,
|
|
43027
43034
|
theme: s
|
|
43028
|
-
}) : m == "runs" ? /* @__PURE__ */ Q(
|
|
43035
|
+
}) : m == "runs" ? /* @__PURE__ */ Q(fW, {
|
|
43029
43036
|
onSourceChange: (e) => t.open("runs", e),
|
|
43030
43037
|
flowName: _?.name ?? _?.flowId ?? "",
|
|
43031
43038
|
onClose: () => t.open("design"),
|
|
@@ -43035,7 +43042,7 @@ function SW({ hrefFor: e, navigation: t, onConfigureConnector: n, onManageConnec
|
|
|
43035
43042
|
o.locateRunWait(e) && t.open("design");
|
|
43036
43043
|
},
|
|
43037
43044
|
store: o
|
|
43038
|
-
}) : /* @__PURE__ */ Q(
|
|
43045
|
+
}) : /* @__PURE__ */ Q(UH, {
|
|
43039
43046
|
theme: s,
|
|
43040
43047
|
onClose: () => t.open("design"),
|
|
43041
43048
|
store: o
|
|
@@ -43043,4 +43050,4 @@ function SW({ hrefFor: e, navigation: t, onConfigureConnector: n, onManageConnec
|
|
|
43043
43050
|
}) });
|
|
43044
43051
|
}
|
|
43045
43052
|
//#endregion
|
|
43046
|
-
export {
|
|
43053
|
+
export { SW as FlowEditor, CW as default };
|