@oomol-lab/open-flow 0.1.0-beta.41 → 0.1.0-beta.43
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/{flowChanges-Rb1Nz-ph.js → flowChanges-CYcfbZLP.js} +14 -0
- package/dist/browser/{flowWorkspace-B04ZIbVq.js → flowWorkspace-DFPIGl5u.js} +158 -148
- package/dist/browser/preview.css +1 -1
- package/dist/browser/preview.js +2836 -2811
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +345 -314
- package/package.json +1 -1
|
@@ -6127,6 +6127,8 @@ var tl = (e, t = {}, n = "") => {
|
|
|
6127
6127
|
files: "Files ({{count}})",
|
|
6128
6128
|
images: "Images ({{count}})",
|
|
6129
6129
|
started: "Started",
|
|
6130
|
+
finished: "Finished",
|
|
6131
|
+
runId: "Run ID",
|
|
6130
6132
|
previewUnavailable: "Preview unavailable",
|
|
6131
6133
|
artifactMetadata: "File metadata is available. A download address has not been provided.",
|
|
6132
6134
|
description: "Purpose",
|
|
@@ -6762,6 +6764,8 @@ var tl = (e, t = {}, n = "") => {
|
|
|
6762
6764
|
files: "Fichiers ({{count}})",
|
|
6763
6765
|
images: "Images ({{count}})",
|
|
6764
6766
|
started: "Début",
|
|
6767
|
+
finished: "Fin",
|
|
6768
|
+
runId: "ID d’exécution",
|
|
6765
6769
|
previewUnavailable: "Aperçu indisponible",
|
|
6766
6770
|
artifactMetadata: "Seules les métadonnées sont disponibles. Aucune adresse de téléchargement n’a été fournie.",
|
|
6767
6771
|
description: "Objectif",
|
|
@@ -7397,6 +7401,8 @@ var tl = (e, t = {}, n = "") => {
|
|
|
7397
7401
|
files: "ファイル {{count}}",
|
|
7398
7402
|
images: "画像 {{count}}",
|
|
7399
7403
|
started: "開始時刻",
|
|
7404
|
+
finished: "終了日時",
|
|
7405
|
+
runId: "実行 ID",
|
|
7400
7406
|
previewUnavailable: "プレビューできません",
|
|
7401
7407
|
artifactMetadata: "ファイルのメタデータのみです。ダウンロード先は提供されていません。",
|
|
7402
7408
|
description: "目的",
|
|
@@ -8032,6 +8038,8 @@ var tl = (e, t = {}, n = "") => {
|
|
|
8032
8038
|
files: "파일 {{count}}",
|
|
8033
8039
|
images: "이미지 {{count}}",
|
|
8034
8040
|
started: "시작 시간",
|
|
8041
|
+
finished: "종료 시간",
|
|
8042
|
+
runId: "실행 ID",
|
|
8035
8043
|
previewUnavailable: "미리 보기 불가",
|
|
8036
8044
|
artifactMetadata: "파일 메타데이터만 있습니다. 다운로드 주소가 제공되지 않았습니다.",
|
|
8037
8045
|
description: "목적",
|
|
@@ -8667,6 +8675,8 @@ var tl = (e, t = {}, n = "") => {
|
|
|
8667
8675
|
files: "Файлы ({{count}})",
|
|
8668
8676
|
images: "Изображения ({{count}})",
|
|
8669
8677
|
started: "Начало",
|
|
8678
|
+
finished: "Завершено",
|
|
8679
|
+
runId: "ID запуска",
|
|
8670
8680
|
previewUnavailable: "Предпросмотр недоступен",
|
|
8671
8681
|
artifactMetadata: "Доступны метаданные файла. Адрес загрузки не предоставлен.",
|
|
8672
8682
|
description: "Назначение",
|
|
@@ -9302,6 +9312,8 @@ var tl = (e, t = {}, n = "") => {
|
|
|
9302
9312
|
files: "文件 {{count}}",
|
|
9303
9313
|
images: "图片 {{count}}",
|
|
9304
9314
|
started: "开始时间",
|
|
9315
|
+
finished: "结束时间",
|
|
9316
|
+
runId: "运行 ID",
|
|
9305
9317
|
previewUnavailable: "预览不可用",
|
|
9306
9318
|
artifactMetadata: "当前记录包含文件元数据,未提供下载地址。",
|
|
9307
9319
|
description: "用途说明",
|
|
@@ -9937,6 +9949,8 @@ var tl = (e, t = {}, n = "") => {
|
|
|
9937
9949
|
files: "檔案 {{count}}",
|
|
9938
9950
|
images: "圖片 {{count}}",
|
|
9939
9951
|
started: "開始時間",
|
|
9952
|
+
finished: "結束時間",
|
|
9953
|
+
runId: "執行 ID",
|
|
9940
9954
|
previewUnavailable: "無法預覽",
|
|
9941
9955
|
artifactMetadata: "目前記錄包含檔案中繼資料,未提供下載位址。",
|
|
9942
9956
|
description: "用途說明",
|
|
@@ -1,5 +1,5 @@
|
|
|
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-CYcfbZLP.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
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-Bq6KHpKx.js";
|
|
@@ -35999,20 +35999,22 @@ function aB({ children: e }) {
|
|
|
35999
35999
|
});
|
|
36000
36000
|
}
|
|
36001
36001
|
var oB = {
|
|
36002
|
-
chip: "
|
|
36003
|
-
popup: "
|
|
36004
|
-
statusPopup: "
|
|
36005
|
-
|
|
36006
|
-
|
|
36007
|
-
|
|
36008
|
-
|
|
36009
|
-
|
|
36010
|
-
|
|
36011
|
-
|
|
36012
|
-
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36002
|
+
chip: "RunChips_chip_3ebbe",
|
|
36003
|
+
popup: "RunChips_popup_3ebbe",
|
|
36004
|
+
statusPopup: "RunChips_statusPopup_3ebbe",
|
|
36005
|
+
heading: "RunChips_heading_3ebbe",
|
|
36006
|
+
metadata: "RunChips_metadata_3ebbe",
|
|
36007
|
+
runId: "RunChips_runId_3ebbe",
|
|
36008
|
+
separator: "RunChips_separator_3ebbe",
|
|
36009
|
+
record: "RunChips_record_3ebbe",
|
|
36010
|
+
log: "RunChips_log_3ebbe",
|
|
36011
|
+
preview: "RunChips_preview_3ebbe",
|
|
36012
|
+
previewAction: "RunChips_previewAction_3ebbe",
|
|
36013
|
+
gallery: "RunChips_gallery_3ebbe",
|
|
36014
|
+
row: "RunChips_row_3ebbe",
|
|
36015
|
+
links: "RunChips_links_3ebbe",
|
|
36016
|
+
status: "RunChips_status_3ebbe",
|
|
36017
|
+
"run-spin": "RunChips_run-spin_3ebbe"
|
|
36016
36018
|
};
|
|
36017
36019
|
//#endregion
|
|
36018
36020
|
//#region ../../node_modules/.bun/sonner@2.0.7+6dbf9a050bc9aadb/node_modules/sonner/dist/index.mjs
|
|
@@ -36173,8 +36175,8 @@ var cB = 1, lB = new class {
|
|
|
36173
36175
|
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%)}");
|
|
36174
36176
|
//#endregion
|
|
36175
36177
|
//#region src/canvas/browser/graph/Nodes/components/RunChips.tsx
|
|
36176
|
-
function pB({ label: e, run: t, children: n, icon: r, status: i
|
|
36177
|
-
let
|
|
36178
|
+
function pB({ label: e, run: t, children: n, icon: r, status: i }) {
|
|
36179
|
+
let a = U(), o = ro(), s = t.runId;
|
|
36178
36180
|
return /* @__PURE__ */ $(P, { children: [/* @__PURE__ */ $(Ye, {
|
|
36179
36181
|
render: /* @__PURE__ */ Q("button", {
|
|
36180
36182
|
type: "button",
|
|
@@ -36187,36 +36189,49 @@ function pB({ label: e, run: t, children: n, icon: r, status: i, compactHeader:
|
|
|
36187
36189
|
"aria-hidden": "true"
|
|
36188
36190
|
}), /* @__PURE__ */ Q("span", { children: e })]
|
|
36189
36191
|
}), /* @__PURE__ */ $(g, {
|
|
36190
|
-
container:
|
|
36192
|
+
container: o(),
|
|
36191
36193
|
side: "bottom",
|
|
36192
36194
|
align: "start",
|
|
36193
36195
|
className: `${oB.popup} ${i ? oB.statusPopup : ""} nokey`,
|
|
36194
36196
|
"data-canvas-control-scope": !0,
|
|
36195
36197
|
onClick: (e) => e.stopPropagation(),
|
|
36196
36198
|
children: [
|
|
36197
|
-
|
|
36198
|
-
|
|
36199
|
-
|
|
36200
|
-
children: [t.finishedAt && /* @__PURE__ */ Q("time", { children: new Date(t.finishedAt).toLocaleString() }), c != null && /* @__PURE__ */ Q("button", {
|
|
36201
|
-
"aria-label": `${o("copy")} ${c}`,
|
|
36202
|
-
className: oB.runId,
|
|
36203
|
-
onClick: async () => {
|
|
36204
|
-
try {
|
|
36205
|
-
await navigator.clipboard.writeText(c);
|
|
36206
|
-
} catch {
|
|
36207
|
-
return;
|
|
36208
|
-
}
|
|
36209
|
-
fB.success(o("copied"));
|
|
36210
|
-
},
|
|
36211
|
-
title: c,
|
|
36212
|
-
type: "button",
|
|
36213
|
-
children: /* @__PURE__ */ Q("code", { children: c })
|
|
36214
|
-
})]
|
|
36199
|
+
/* @__PURE__ */ Q(z, {
|
|
36200
|
+
className: oB.heading,
|
|
36201
|
+
children: e
|
|
36215
36202
|
}),
|
|
36216
|
-
/* @__PURE__ */
|
|
36203
|
+
(t.startedAt || t.finishedAt || s != null) && /* @__PURE__ */ $("dl", {
|
|
36204
|
+
className: oB.metadata,
|
|
36205
|
+
children: [
|
|
36206
|
+
t.startedAt && /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: a("canvasCard.started") }), /* @__PURE__ */ Q("dd", { children: /* @__PURE__ */ Q("time", {
|
|
36207
|
+
dateTime: t.startedAt,
|
|
36208
|
+
children: new Date(t.startedAt).toLocaleString()
|
|
36209
|
+
}) })] }),
|
|
36210
|
+
t.finishedAt && /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: a("canvasCard.finished") }), /* @__PURE__ */ Q("dd", { children: /* @__PURE__ */ Q("time", {
|
|
36211
|
+
dateTime: t.finishedAt,
|
|
36212
|
+
children: new Date(t.finishedAt).toLocaleString()
|
|
36213
|
+
}) })] }),
|
|
36214
|
+
s != null && /* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("dt", { children: a("canvasCard.runId") }), /* @__PURE__ */ Q("dd", { children: /* @__PURE__ */ Q("button", {
|
|
36215
|
+
"aria-label": `${a("copy")} ${s}`,
|
|
36216
|
+
className: oB.runId,
|
|
36217
|
+
onClick: async () => {
|
|
36218
|
+
try {
|
|
36219
|
+
await navigator.clipboard.writeText(s);
|
|
36220
|
+
} catch {
|
|
36221
|
+
return;
|
|
36222
|
+
}
|
|
36223
|
+
fB.success(a("copied"));
|
|
36224
|
+
},
|
|
36225
|
+
title: `${a("copy")} ${s}`,
|
|
36226
|
+
type: "button",
|
|
36227
|
+
children: /* @__PURE__ */ Q("code", { children: s })
|
|
36228
|
+
}) })] })
|
|
36229
|
+
]
|
|
36230
|
+
}),
|
|
36231
|
+
n && /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", { className: oB.separator }), /* @__PURE__ */ Q(l, {
|
|
36217
36232
|
className: `${oB.record} nowheel nodrag nopan`,
|
|
36218
36233
|
children: n
|
|
36219
|
-
})
|
|
36234
|
+
})] })
|
|
36220
36235
|
]
|
|
36221
36236
|
})] });
|
|
36222
36237
|
}
|
|
@@ -36257,24 +36272,19 @@ function hB({ run: e }) {
|
|
|
36257
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 / 1e3).toFixed(1)} s` : ""}`, 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";
|
|
36258
36273
|
return /* @__PURE__ */ $("div", {
|
|
36259
36274
|
className: oB.row,
|
|
36260
|
-
children: [/* @__PURE__ */
|
|
36275
|
+
children: [/* @__PURE__ */ Q(pB, {
|
|
36261
36276
|
label: r,
|
|
36262
36277
|
run: e,
|
|
36263
36278
|
icon: a,
|
|
36264
36279
|
status: i,
|
|
36265
|
-
children:
|
|
36280
|
+
children: e.error != null && /* @__PURE__ */ Q(Iv, {
|
|
36266
36281
|
data: e.error,
|
|
36267
36282
|
shouldExpandNode: Pv
|
|
36268
|
-
})
|
|
36269
|
-
t("canvasCard.started"),
|
|
36270
|
-
" · ",
|
|
36271
|
-
new Date(e.startedAt).toLocaleString()
|
|
36272
|
-
] })]
|
|
36283
|
+
})
|
|
36273
36284
|
}), /* @__PURE__ */ $("div", {
|
|
36274
36285
|
className: oB.links,
|
|
36275
36286
|
children: [
|
|
36276
36287
|
e.outputs !== void 0 && /* @__PURE__ */ Q(pB, {
|
|
36277
|
-
compactHeader: !0,
|
|
36278
36288
|
label: t("canvasCard.result"),
|
|
36279
36289
|
run: e,
|
|
36280
36290
|
icon: "i-codicon:output",
|
|
@@ -37016,30 +37026,30 @@ var GB = /* @__PURE__ */ Pi(function({ canvasStore: e, nodeStore: t }) {
|
|
|
37016
37026
|
nodeStore: t,
|
|
37017
37027
|
editable: o,
|
|
37018
37028
|
onDelete: o && e.canDeleteNodes ? () => e.deleteNodes([t]) : void 0
|
|
37019
|
-
}), c = HB(t),
|
|
37029
|
+
}), { onInspect: c } = Fi(BB), l = o && c != null, u = HB(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;
|
|
37020
37030
|
if (i) return null;
|
|
37021
|
-
let
|
|
37022
|
-
if (
|
|
37023
|
-
let r =
|
|
37024
|
-
|
|
37031
|
+
let v = s.filter((e) => !!e);
|
|
37032
|
+
if (g && o && !h && e.canChangeNodeContentHidden) {
|
|
37033
|
+
let r = v.findIndex((e) => e.key == "$delete");
|
|
37034
|
+
v.splice(r < 0 ? v.length : r, 0, {
|
|
37025
37035
|
key: "$content",
|
|
37026
|
-
label: n(
|
|
37027
|
-
expanded: !
|
|
37036
|
+
label: n(_ ? "nodeContent.show" : "nodeContent.hide"),
|
|
37037
|
+
expanded: !_,
|
|
37028
37038
|
icon: /* @__PURE__ */ Q("i", {
|
|
37029
37039
|
"aria-hidden": "true",
|
|
37030
|
-
className:
|
|
37040
|
+
className: _ ? "i-lucide-light:panel-top-open" : "i-lucide-light:panel-top-close"
|
|
37031
37041
|
}),
|
|
37032
|
-
onClick: () => e.changeNodeContentHidden(t.nodeId, !
|
|
37042
|
+
onClick: () => e.changeNodeContentHidden(t.nodeId, !_)
|
|
37033
37043
|
});
|
|
37034
37044
|
}
|
|
37035
|
-
return /* @__PURE__ */ $(xz, {
|
|
37045
|
+
return !l && v.length === 0 ? null : /* @__PURE__ */ $(xz, {
|
|
37036
37046
|
"data-tooltip-toolbar": !0,
|
|
37037
37047
|
className: DB.floatBar,
|
|
37038
37048
|
offset: 12 - 8 * r,
|
|
37039
|
-
children: [/* @__PURE__ */ Q(VB, {
|
|
37049
|
+
children: [l && /* @__PURE__ */ Q(VB, {
|
|
37040
37050
|
className: DB.floatBarButton,
|
|
37041
|
-
danger:
|
|
37042
|
-
}),
|
|
37051
|
+
danger: u
|
|
37052
|
+
}), v.map((e) => /* @__PURE__ */ Q(ao, {
|
|
37043
37053
|
getPopupContainer: a,
|
|
37044
37054
|
placement: "top",
|
|
37045
37055
|
title: e.danger ? `${e.label} (Backspace / Delete)` : e.label,
|
|
@@ -38429,13 +38439,13 @@ function dH(e) {
|
|
|
38429
38439
|
}
|
|
38430
38440
|
function fH(e) {
|
|
38431
38441
|
let t = pH(e), { zoom: n } = AR();
|
|
38432
|
-
return e.nodes.length < 2 ? null : /* @__PURE__ */ $(xz, {
|
|
38442
|
+
return !e.editable || e.nodes.length < 2 ? null : /* @__PURE__ */ $(xz, {
|
|
38433
38443
|
"data-tooltip-toolbar": !0,
|
|
38434
38444
|
className: DB.floatBar,
|
|
38435
38445
|
isVisible: !0,
|
|
38436
38446
|
nodeId: e.nodes.map((e) => e.id),
|
|
38437
38447
|
offset: 12 - 8 * n,
|
|
38438
|
-
children: [/* @__PURE__ */ Q(VB, { className: DB.floatBarButton }), t.
|
|
38448
|
+
children: [/* @__PURE__ */ Q(VB, { className: DB.floatBarButton }), t.map((e) => /* @__PURE__ */ Q(ao, {
|
|
38439
38449
|
placement: "top",
|
|
38440
38450
|
title: e.key === "$delete" ? `${e.label} (Backspace / Delete)` : e.label,
|
|
38441
38451
|
children: /* @__PURE__ */ Q(W, {
|
|
@@ -39325,139 +39335,139 @@ function IH(e, t, n) {
|
|
|
39325
39335
|
}
|
|
39326
39336
|
//#endregion
|
|
39327
39337
|
//#region src/workbench/browser/runtime/editor/revisionCanvas.tsx
|
|
39328
|
-
function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i, striped: a = !0 }) {
|
|
39329
|
-
let
|
|
39338
|
+
function LH({ draft: e, presentation: t, theme: n, interactiveMode$: r, label: i, striped: a = !0, showHeader: o = !0 }) {
|
|
39339
|
+
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), [
|
|
39330
39340
|
e,
|
|
39331
|
-
|
|
39341
|
+
d,
|
|
39332
39342
|
t,
|
|
39333
|
-
|
|
39334
|
-
]),
|
|
39335
|
-
...
|
|
39336
|
-
viewport:
|
|
39337
|
-
nodes:
|
|
39343
|
+
c
|
|
39344
|
+
]), C = m[p], T = zi(() => ({
|
|
39345
|
+
...S,
|
|
39346
|
+
viewport: C?.viewport ?? S.viewport,
|
|
39347
|
+
nodes: S.nodes.map((e) => ({
|
|
39338
39348
|
...e,
|
|
39339
|
-
position:
|
|
39349
|
+
position: C?.positions?.[e.id] ?? e.position
|
|
39340
39350
|
}))
|
|
39341
|
-
}), [
|
|
39342
|
-
let t =
|
|
39351
|
+
}), [S, C]), E = S.nodes.some((e) => {
|
|
39352
|
+
let t = C?.positions?.[e.id];
|
|
39343
39353
|
return t != null && (t.x !== e.position.x || t.y !== e.position.y);
|
|
39344
|
-
}),
|
|
39345
|
-
|
|
39346
|
-
},
|
|
39347
|
-
|
|
39348
|
-
}
|
|
39354
|
+
}), D = (e) => {
|
|
39355
|
+
f(e), _([]), x(void 0);
|
|
39356
|
+
}, O = g.length === 1 ? u.node(d, g[0]) : void 0, k = g.length === 1 ? T.nodes.find((e) => e.id === g[0] && e.kind === "comment") : void 0, A = (e) => {
|
|
39357
|
+
_(e), y(!0);
|
|
39358
|
+
}, j = d.kind === "subflow" || t == null || E ? /* @__PURE__ */ $(Z, { children: [
|
|
39359
|
+
d.kind === "subflow" && /* @__PURE__ */ Q(W, {
|
|
39360
|
+
size: "xs",
|
|
39361
|
+
variant: "ghost",
|
|
39362
|
+
onClick: () => D({ kind: "flow" }),
|
|
39363
|
+
children: c("snapshot.root")
|
|
39364
|
+
}),
|
|
39365
|
+
d.kind === "subflow" && /* @__PURE__ */ Q("span", {
|
|
39366
|
+
className: "truncate",
|
|
39367
|
+
children: u.subflow(d.id)?.name ?? d.id
|
|
39368
|
+
}),
|
|
39369
|
+
t == null && /* @__PURE__ */ Q("span", {
|
|
39370
|
+
className: "revision-viewer-hint",
|
|
39371
|
+
children: c("snapshot.missingLayout")
|
|
39372
|
+
}),
|
|
39373
|
+
E && /* @__PURE__ */ $(W, {
|
|
39374
|
+
className: "ml-auto",
|
|
39375
|
+
size: "xs",
|
|
39376
|
+
variant: "outline",
|
|
39377
|
+
onClick: () => h((e) => IH(e, p, { kind: "restore" })),
|
|
39378
|
+
children: [/* @__PURE__ */ Q("i", {
|
|
39379
|
+
"aria-hidden": "true",
|
|
39380
|
+
className: "i-lucide-light:rotate-ccw"
|
|
39381
|
+
}), c("snapshot.restore")]
|
|
39382
|
+
})
|
|
39383
|
+
] }) : void 0;
|
|
39349
39384
|
return /* @__PURE__ */ $("section", {
|
|
39350
|
-
ref:
|
|
39351
|
-
className: `revision-viewer${
|
|
39352
|
-
"aria-label": i ??
|
|
39353
|
-
children: [/* @__PURE__ */ $("header", {
|
|
39385
|
+
ref: s,
|
|
39386
|
+
className: `revision-viewer${v ? " inspector-open" : ""}`,
|
|
39387
|
+
"aria-label": i ?? c("snapshot.title"),
|
|
39388
|
+
children: [o && /* @__PURE__ */ $("header", {
|
|
39354
39389
|
className: "revision-viewer-toolbar",
|
|
39355
|
-
children: [
|
|
39356
|
-
|
|
39357
|
-
|
|
39358
|
-
|
|
39359
|
-
|
|
39360
|
-
|
|
39361
|
-
|
|
39362
|
-
}),
|
|
39363
|
-
u.kind === "subflow" && /* @__PURE__ */ Q(W, {
|
|
39364
|
-
size: "xs",
|
|
39365
|
-
variant: "ghost",
|
|
39366
|
-
onClick: () => E({ kind: "flow" }),
|
|
39367
|
-
children: s("snapshot.root")
|
|
39368
|
-
}),
|
|
39369
|
-
u.kind === "subflow" && /* @__PURE__ */ Q("span", {
|
|
39370
|
-
className: "truncate",
|
|
39371
|
-
children: l.subflow(u.id)?.name ?? u.id
|
|
39372
|
-
}),
|
|
39373
|
-
t == null && /* @__PURE__ */ Q("span", {
|
|
39374
|
-
className: "revision-viewer-hint",
|
|
39375
|
-
children: s("snapshot.missingLayout")
|
|
39376
|
-
}),
|
|
39377
|
-
T && /* @__PURE__ */ $(W, {
|
|
39378
|
-
className: "ml-auto",
|
|
39379
|
-
size: "xs",
|
|
39380
|
-
variant: "outline",
|
|
39381
|
-
onClick: () => m((e) => IH(e, f, { kind: "restore" })),
|
|
39382
|
-
children: [/* @__PURE__ */ Q("i", {
|
|
39383
|
-
"aria-hidden": "true",
|
|
39384
|
-
className: "i-lucide-light:rotate-ccw"
|
|
39385
|
-
}), s("snapshot.restore")]
|
|
39386
|
-
})
|
|
39387
|
-
]
|
|
39390
|
+
children: [/* @__PURE__ */ $("span", {
|
|
39391
|
+
className: "inline-flex items-center gap-1.5 font-medium",
|
|
39392
|
+
children: [/* @__PURE__ */ Q("i", {
|
|
39393
|
+
"aria-hidden": "true",
|
|
39394
|
+
className: "i-lucide-light:lock-keyhole"
|
|
39395
|
+
}), i ?? c("snapshot.title")]
|
|
39396
|
+
}), j]
|
|
39388
39397
|
}), /* @__PURE__ */ $("div", {
|
|
39389
39398
|
className: "revision-viewer-body",
|
|
39390
39399
|
children: [/* @__PURE__ */ $("div", {
|
|
39391
39400
|
className: "revision-viewer-canvas",
|
|
39392
39401
|
children: [/* @__PURE__ */ Q(_H, {
|
|
39393
|
-
identity:
|
|
39394
|
-
model:
|
|
39402
|
+
identity: p,
|
|
39403
|
+
model: T,
|
|
39395
39404
|
editable: !1,
|
|
39396
39405
|
nodesDraggable: !0,
|
|
39397
|
-
fitView:
|
|
39406
|
+
fitView: C?.viewport == null,
|
|
39398
39407
|
className: a ? "open-flow-canvas-locked" : void 0,
|
|
39399
39408
|
dark: n === "dark",
|
|
39400
|
-
language:
|
|
39409
|
+
language: l,
|
|
39401
39410
|
interactiveMode$: r,
|
|
39402
|
-
selectedNodeIds:
|
|
39411
|
+
selectedNodeIds: g,
|
|
39403
39412
|
ignoredNodeIds: [],
|
|
39404
|
-
focusNodeRequest:
|
|
39405
|
-
onMoveNodes: (e) =>
|
|
39413
|
+
focusNodeRequest: b,
|
|
39414
|
+
onMoveNodes: (e) => h((t) => IH(t, p, {
|
|
39406
39415
|
kind: "move",
|
|
39407
39416
|
positions: e
|
|
39408
39417
|
})),
|
|
39409
|
-
onMoveViewport: (e) =>
|
|
39418
|
+
onMoveViewport: (e) => h((t) => IH(t, p, {
|
|
39410
39419
|
kind: "viewport",
|
|
39411
39420
|
viewport: e
|
|
39412
39421
|
})),
|
|
39413
|
-
onSelectionChange:
|
|
39414
|
-
onActivateSelection:
|
|
39415
|
-
onInspectSelection: () =>
|
|
39416
|
-
inspectorOpen:
|
|
39422
|
+
onSelectionChange: _,
|
|
39423
|
+
onActivateSelection: A,
|
|
39424
|
+
onInspectSelection: () => y(!0),
|
|
39425
|
+
inspectorOpen: v,
|
|
39426
|
+
toolbar: o ? void 0 : j,
|
|
39417
39427
|
cornerTools: /* @__PURE__ */ Q(bH, {
|
|
39418
|
-
label:
|
|
39419
|
-
open:
|
|
39428
|
+
label: c("designer.toggleInspector"),
|
|
39429
|
+
open: v,
|
|
39420
39430
|
disabled: !1,
|
|
39421
|
-
onToggle: () =>
|
|
39431
|
+
onToggle: () => y((e) => !e)
|
|
39422
39432
|
})
|
|
39423
|
-
},
|
|
39433
|
+
}, p), T.nodes.length === 0 && /* @__PURE__ */ Q("p", {
|
|
39424
39434
|
className: "revision-viewer-empty",
|
|
39425
|
-
children:
|
|
39435
|
+
children: c("inspector.emptyOutline")
|
|
39426
39436
|
})]
|
|
39427
|
-
}),
|
|
39428
|
-
layoutRoot:
|
|
39437
|
+
}), v && /* @__PURE__ */ Q(mc, {
|
|
39438
|
+
layoutRoot: s,
|
|
39429
39439
|
className: "open-flow-property-panel",
|
|
39430
39440
|
theme: n,
|
|
39431
|
-
title:
|
|
39432
|
-
icon: Cx(
|
|
39441
|
+
title: O?.node.name ?? k?.title ?? c("inspector.title"),
|
|
39442
|
+
icon: Cx(O, d),
|
|
39433
39443
|
focusOnOpen: !0,
|
|
39434
|
-
onClose: () =>
|
|
39435
|
-
children:
|
|
39444
|
+
onClose: () => y(!1),
|
|
39445
|
+
children: O == null ? k?.kind === "comment" ? /* @__PURE__ */ Q("div", {
|
|
39436
39446
|
className: "inspector-content",
|
|
39437
39447
|
children: /* @__PURE__ */ Q(Iv, { data: {
|
|
39438
|
-
title:
|
|
39439
|
-
content:
|
|
39448
|
+
title: k.title,
|
|
39449
|
+
content: k.content
|
|
39440
39450
|
} })
|
|
39441
39451
|
}) : /* @__PURE__ */ Q(Vl, {
|
|
39442
|
-
nodes:
|
|
39443
|
-
onSelect: (e) =>
|
|
39452
|
+
nodes: g.length > 1 ? T.nodes.filter((e) => g.includes(e.id)) : T.nodes,
|
|
39453
|
+
onSelect: (e) => A([e]),
|
|
39444
39454
|
onFocusNode: (e) => {
|
|
39445
|
-
|
|
39455
|
+
_([e]), x({
|
|
39446
39456
|
nodeId: e,
|
|
39447
|
-
requestId: (
|
|
39457
|
+
requestId: (b?.requestId ?? 0) + 1
|
|
39448
39458
|
});
|
|
39449
39459
|
}
|
|
39450
39460
|
}) : /* @__PURE__ */ Q(Tx, {
|
|
39451
39461
|
readOnly: !0,
|
|
39452
|
-
revision:
|
|
39453
|
-
selection:
|
|
39454
|
-
target:
|
|
39462
|
+
revision: u,
|
|
39463
|
+
selection: O,
|
|
39464
|
+
target: d,
|
|
39455
39465
|
theme: n,
|
|
39456
|
-
onOpenSubflow: (e) =>
|
|
39466
|
+
onOpenSubflow: (e) => D({
|
|
39457
39467
|
kind: "subflow",
|
|
39458
39468
|
id: e
|
|
39459
39469
|
})
|
|
39460
|
-
}, `${
|
|
39470
|
+
}, `${p}:${O.id}`)
|
|
39461
39471
|
})]
|
|
39462
39472
|
})]
|
|
39463
39473
|
});
|