@oomol-lab/open-flow 0.1.0-beta.5 → 0.1.0-beta.6

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.
@@ -3,12 +3,12 @@ import { a as r, i, s as a, t as o } from "./main-DmjVyuWr.js";
3
3
  import { Un as s, Vn as c, jt as l } from "./getPseudoElementBounds-5LArT6Xc.js";
4
4
  import { a as u, c as d, d as f, f as p, i as m, n as h, o as g, p as _, t as v, u as y } from "./icons-CRxvozBE.js";
5
5
  import { t as b } from "./workbenchSelect-Cf1zlVm9.js";
6
- import { $ as x, A as S, C as ee, D as C, E as w, F as T, G as E, H as D, I as O, J as k, M as A, N as j, O as M, P as N, Q as P, S as F, U as I, V as L, W as te, X as ne, Y as re, Z as ie, _ as ae, a as oe, at as se, b as ce, c as le, ct as ue, d as de, dt as fe, et as pe, f as me, ft as R, g as he, h as ge, i as _e, it as ve, j as z, l as ye, lt as be, m as xe, mt as B, n as V, nt as Se, o as Ce, ot as we, p as Te, pt as Ee, q as De, rt as Oe, s as ke, st as Ae, t as je, tt as H, u as Me, ut as U, v as Ne, w as Pe, x as Fe, y as Ie, z as Le } from "./flowChanges-CeMiiZIO.js";
7
- import { a as Re, i as ze, n as Be, r as Ve } from "./languages-DgJehE1g.js";
8
- import { Suspense as He, lazy as Ue, useEffect as W, useRef as We, useState as G } from "react";
9
- import { Fragment as Ge, jsx as K, jsxs as q } from "react/jsx-runtime";
6
+ import { $ as x, A as S, C as ee, D as C, E as w, F as T, G as E, H as D, I as O, J as te, M as k, N as A, O as j, P as M, Q as N, S as P, U as F, V as I, W as ne, X as re, Y as ie, Z as ae, _ as oe, a as se, at as ce, b as le, c as ue, ct as de, d as fe, dt as pe, et as me, f as he, ft as L, g as ge, h as _e, i as ve, it as ye, j as R, l as be, lt as xe, m as Se, mt as z, n as B, nt as Ce, o as we, ot as Te, p as Ee, pt as De, q as Oe, rt as ke, s as Ae, st as je, t as Me, tt as V, u as Ne, ut as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./flowChanges-BDqD_Q4G.js";
7
+ import { a as Be, i as Ve, n as He, r as Ue } from "./languages-DgJehE1g.js";
8
+ import { Suspense as We, lazy as H, useEffect as U, useRef as Ge, useState as W } from "react";
9
+ import { Fragment as Ke, jsx as G, jsxs as K } from "react/jsx-runtime";
10
10
  //#region src/workbench/browser/runtime/navigation.ts
11
- var Ke = class {
11
+ var qe = class {
12
12
  #e;
13
13
  #t;
14
14
  #n;
@@ -67,7 +67,7 @@ var Ke = class {
67
67
  this.#s = !0, await this.#n.selectFlow(void 0), e == this.#i && (this.#u("design", !1), this.#s = !1);
68
68
  }
69
69
  async apply(e) {
70
- if (qe(e, this.#t)) return;
70
+ if (Je(e, this.#t)) return;
71
71
  this.#t = e;
72
72
  let t = ++this.#i;
73
73
  this.#s = !0;
@@ -83,37 +83,37 @@ var Ke = class {
83
83
  flowId: this.#n.workspace.$.flowId.value,
84
84
  view: e
85
85
  };
86
- qe(n, this.#t) || (this.#t = n, this.#e(n, { replace: t })), this.#r.set(e);
86
+ Je(n, this.#t) || (this.#t = n, this.#e(n, { replace: t })), this.#r.set(e);
87
87
  }
88
88
  };
89
- function qe(e, t) {
89
+ function Je(e, t) {
90
90
  return e.flowId == t.flowId && e.view == t.view;
91
91
  }
92
92
  //#endregion
93
93
  //#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
94
- var Je = Ue(() => import("./createResourceDialog-Cf7QpXp6.js")), Ye = Re.map((e) => ({
95
- label: ze[e],
94
+ var Ye = H(() => import("./createResourceDialog-Cf7QpXp6.js")), Xe = Be.map((e) => ({
95
+ label: Ve[e],
96
96
  value: e
97
97
  }));
98
- function Xe({ language: e, onLanguageChange: t }) {
99
- let n = r(), [i, a] = G(null);
100
- return t == null ? null : /* @__PURE__ */ q("div", {
98
+ function Ze({ language: e, onLanguageChange: t }) {
99
+ let n = r(), [i, a] = W(null);
100
+ return t == null ? null : /* @__PURE__ */ K("div", {
101
101
  className: "resource-language",
102
102
  ref: a,
103
- children: [/* @__PURE__ */ K("span", {
103
+ children: [/* @__PURE__ */ G("span", {
104
104
  className: "sr-only",
105
105
  children: n("language.label")
106
- }), /* @__PURE__ */ K(b, {
106
+ }), /* @__PURE__ */ G(b, {
107
107
  ariaLabel: n("language.label"),
108
108
  onValueChange: (e) => t(e),
109
- options: Ye,
109
+ options: Xe,
110
110
  portalRoot: i,
111
111
  value: e
112
112
  })]
113
113
  });
114
114
  }
115
- function Ze({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
116
- let f = i(), p = r(), [m, h] = G("idle"), [g, y] = G(n.name), b = u(g);
115
+ function Qe({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
116
+ let f = i(), p = r(), [m, h] = W("idle"), [g, y] = W(n.name), b = u(g);
117
117
  async function x(e) {
118
118
  e.preventDefault();
119
119
  let t = g.trim();
@@ -122,10 +122,10 @@ function Ze({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
122
122
  async function S() {
123
123
  await d.workspace.deleteFlow(n.flowId) && h("idle");
124
124
  }
125
- return /* @__PURE__ */ q("div", {
125
+ return /* @__PURE__ */ K("div", {
126
126
  className: "resource-item-row",
127
127
  children: [
128
- /* @__PURE__ */ q(c, {
128
+ /* @__PURE__ */ K(c, {
129
129
  "aria-disabled": n.status == "retiring",
130
130
  className: "resource-list-row flow-columns",
131
131
  nativeButton: !1,
@@ -134,50 +134,50 @@ function Ze({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
134
134
  e.preventDefault();
135
135
  return;
136
136
  }
137
- pe(e, () => o(n));
137
+ me(e, () => o(n));
138
138
  },
139
- render: /* @__PURE__ */ K("a", { href: n.status == "retiring" ? void 0 : a }),
139
+ render: /* @__PURE__ */ G("a", { href: n.status == "retiring" ? void 0 : a }),
140
140
  tabIndex: n.status == "retiring" ? -1 : void 0,
141
141
  variant: "ghost",
142
142
  children: [
143
- /* @__PURE__ */ q("span", {
143
+ /* @__PURE__ */ K("span", {
144
144
  className: "resource-primary-cell",
145
- children: [/* @__PURE__ */ K("span", {
145
+ children: [/* @__PURE__ */ G("span", {
146
146
  className: "resource-icon",
147
- children: /* @__PURE__ */ K(v, { name: "flow" })
148
- }), /* @__PURE__ */ q("span", { children: [/* @__PURE__ */ q("span", {
147
+ children: /* @__PURE__ */ G(v, { name: "flow" })
148
+ }), /* @__PURE__ */ K("span", { children: [/* @__PURE__ */ K("span", {
149
149
  className: "flex min-w-0 items-center gap-2",
150
- children: [/* @__PURE__ */ K("strong", {
150
+ children: [/* @__PURE__ */ G("strong", {
151
151
  className: "min-w-0 truncate",
152
152
  children: n.name
153
- }), e != null && /* @__PURE__ */ K(fe, {
153
+ }), e != null && /* @__PURE__ */ G(pe, {
154
154
  className: "min-w-0 shrink",
155
155
  title: e,
156
156
  variant: "secondary",
157
- children: /* @__PURE__ */ K("span", {
157
+ children: /* @__PURE__ */ G("span", {
158
158
  className: "truncate",
159
159
  children: e
160
160
  })
161
161
  })]
162
- }), /* @__PURE__ */ K("code", {
162
+ }), /* @__PURE__ */ G("code", {
163
163
  translate: "no",
164
164
  children: n.flowId
165
165
  })] })]
166
166
  }),
167
- /* @__PURE__ */ K("time", {
167
+ /* @__PURE__ */ G("time", {
168
168
  dateTime: n.updatedAt,
169
169
  children: new Date(n.updatedAt).toLocaleString(f)
170
170
  }),
171
- /* @__PURE__ */ q("span", {
171
+ /* @__PURE__ */ K("span", {
172
172
  className: `resource-status ${n.status == "active" ? "active" : "warning"}`,
173
- children: [/* @__PURE__ */ K("span", {
173
+ children: [/* @__PURE__ */ G("span", {
174
174
  "aria-hidden": "true",
175
175
  className: `status-dot ${n.status == "active" ? "success" : "running"}`
176
176
  }), p(n.status == "active" ? "resource.active" : "resource.retiring")]
177
177
  })
178
178
  ]
179
179
  }),
180
- n.status == "active" && /* @__PURE__ */ K(c, {
180
+ n.status == "active" && /* @__PURE__ */ G(c, {
181
181
  "aria-expanded": m != "idle",
182
182
  "aria-label": p("sidebar.flowActions", { name: n.name }),
183
183
  className: s("resource-row-more", m != "idle" && "active"),
@@ -185,35 +185,35 @@ function Ze({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
185
185
  onClick: () => h(m == "idle" ? "actions" : "idle"),
186
186
  size: "icon-sm",
187
187
  variant: "ghost",
188
- children: /* @__PURE__ */ K(v, { name: "more" })
188
+ children: /* @__PURE__ */ G(v, { name: "more" })
189
189
  }),
190
- m == "actions" && /* @__PURE__ */ q("div", {
190
+ m == "actions" && /* @__PURE__ */ K("div", {
191
191
  className: "resource-row-actions",
192
- children: [/* @__PURE__ */ K(c, {
192
+ children: [/* @__PURE__ */ G(c, {
193
193
  onClick: () => {
194
194
  y(n.name), h("rename");
195
195
  },
196
196
  size: "sm",
197
197
  variant: "outline",
198
198
  children: p("common.rename")
199
- }), /* @__PURE__ */ K(c, {
199
+ }), /* @__PURE__ */ G(c, {
200
200
  onClick: () => h("delete"),
201
201
  size: "sm",
202
202
  variant: "destructive",
203
203
  children: p("common.delete")
204
204
  })]
205
205
  }),
206
- m == "rename" && /* @__PURE__ */ q("form", {
206
+ m == "rename" && /* @__PURE__ */ K("form", {
207
207
  className: "resource-row-form",
208
208
  onSubmit: (e) => void x(e),
209
209
  children: [
210
- /* @__PURE__ */ K(_, {
210
+ /* @__PURE__ */ G(_, {
211
211
  htmlFor: `rename-flow-${n.flowId}`,
212
212
  children: p("sidebar.renameFlow", { name: n.name })
213
213
  }),
214
- /* @__PURE__ */ q("span", {
214
+ /* @__PURE__ */ K("span", {
215
215
  className: "resource-row-field",
216
- children: [/* @__PURE__ */ K(l, {
216
+ children: [/* @__PURE__ */ G(l, {
217
217
  autoComplete: "off",
218
218
  "aria-invalid": g.length > 0 && b != null,
219
219
  autoFocus: !0,
@@ -222,17 +222,17 @@ function Ze({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
222
222
  onChange: (e) => y(e.target.value),
223
223
  required: !0,
224
224
  value: g
225
- }), g.length > 0 && b != null && /* @__PURE__ */ K("small", {
225
+ }), g.length > 0 && b != null && /* @__PURE__ */ G("small", {
226
226
  className: "resource-name-message error",
227
227
  children: p(`resource.nameIssue.${b}`, { max: 80 })
228
228
  })]
229
229
  }),
230
- /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(c, {
230
+ /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(c, {
231
231
  onClick: () => h("idle"),
232
232
  size: "sm",
233
233
  variant: "outline",
234
234
  children: p("common.cancel")
235
- }), /* @__PURE__ */ K(c, {
235
+ }), /* @__PURE__ */ G(c, {
236
236
  disabled: t != null || b != null,
237
237
  size: "sm",
238
238
  type: "submit",
@@ -240,16 +240,16 @@ function Ze({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
240
240
  })] })
241
241
  ]
242
242
  }),
243
- m == "delete" && /* @__PURE__ */ q("div", {
243
+ m == "delete" && /* @__PURE__ */ K("div", {
244
244
  className: "resource-row-confirm",
245
245
  role: "group",
246
246
  "aria-label": p("sidebar.deleteFlow", { name: n.name }),
247
- children: [/* @__PURE__ */ K("span", { children: /* @__PURE__ */ K("strong", { children: p("sidebar.deleteFlowConfirm", { name: n.name }) }) }), /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(c, {
247
+ children: [/* @__PURE__ */ G("span", { children: /* @__PURE__ */ G("strong", { children: p("sidebar.deleteFlowConfirm", { name: n.name }) }) }), /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(c, {
248
248
  onClick: () => h("idle"),
249
249
  size: "sm",
250
250
  variant: "outline",
251
251
  children: p("common.cancel")
252
- }), /* @__PURE__ */ K(c, {
252
+ }), /* @__PURE__ */ G(c, {
253
253
  disabled: t != null,
254
254
  onClick: () => void S(),
255
255
  size: "sm",
@@ -260,64 +260,64 @@ function Ze({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: d }) {
260
260
  ]
261
261
  });
262
262
  }
263
- function Qe() {
264
- return /* @__PURE__ */ q("div", {
263
+ function $e() {
264
+ return /* @__PURE__ */ K("div", {
265
265
  "aria-hidden": "true",
266
266
  className: "resource-list-row resource-skeleton-row flow-columns",
267
267
  children: [
268
- /* @__PURE__ */ q("span", {
268
+ /* @__PURE__ */ K("span", {
269
269
  className: "resource-primary-cell",
270
- children: [/* @__PURE__ */ K(H, { className: "size-8 shrink-0" }), /* @__PURE__ */ q("span", {
270
+ children: [/* @__PURE__ */ G(V, { className: "size-8 shrink-0" }), /* @__PURE__ */ K("span", {
271
271
  className: "resource-skeleton-copy",
272
- children: [/* @__PURE__ */ K(H, { className: "h-3.5 w-36" }), /* @__PURE__ */ K(H, { className: "h-2.5 w-48 max-w-full" })]
272
+ children: [/* @__PURE__ */ G(V, { className: "h-3.5 w-36" }), /* @__PURE__ */ G(V, { className: "h-2.5 w-48 max-w-full" })]
273
273
  })]
274
274
  }),
275
- /* @__PURE__ */ K(H, { className: "h-3 w-28" }),
276
- /* @__PURE__ */ K(H, { className: "h-3 w-16" })
275
+ /* @__PURE__ */ G(V, { className: "h-3 w-28" }),
276
+ /* @__PURE__ */ G(V, { className: "h-3 w-16" })
277
277
  ]
278
278
  });
279
279
  }
280
- function $e({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBadges: i, hrefForFlow: o, hostAction: l, hostTitle: d, language: f, onCreateFlow: p, onHostAction: m, onLanguageChange: h, onSelectFlow: g, store: _ }) {
281
- let y = r(), b = a(_.workspace.$.busy), S = a(_.workspace.$.flowLoadFailed), ee = a(_.workspace.$.flowLoadMoreFailed), C = a(_.workspace.$.flowLoading), w = a(_.workspace.$.flowLoadingMore), T = a(_.workspace.$.flowNextCursor), E = a(_.workspace.$.flows), D = a(_.workspace.$.flowTotal), [O, k] = G(!1), [A, j] = G(""), [M, N] = G(""), P = A.trim().toLocaleLowerCase(), F = E.filter((e) => e.name.toLocaleLowerCase().includes(P));
280
+ function et({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBadges: i, hrefForFlow: o, hostAction: l, hostTitle: d, language: f, onCreateFlow: p, onHostAction: m, onLanguageChange: h, onSelectFlow: g, store: _ }) {
281
+ let y = r(), b = a(_.workspace.$.busy), S = a(_.workspace.$.flowLoadFailed), ee = a(_.workspace.$.flowLoadMoreFailed), C = a(_.workspace.$.flowLoading), w = a(_.workspace.$.flowLoadingMore), T = a(_.workspace.$.flowNextCursor), E = a(_.workspace.$.flowRefreshing), D = a(_.workspace.$.flows), O = a(_.workspace.$.flowTotal), [te, k] = W(!1), [A, j] = W(""), [M, N] = W(""), P = A.trim().toLocaleLowerCase(), F = D.filter((e) => e.name.toLocaleLowerCase().includes(P));
282
282
  async function I(e) {
283
283
  e.preventDefault();
284
284
  let t = M.trim();
285
285
  u(t) != null || !await p(t) || (k(!1), N(""));
286
286
  }
287
- return /* @__PURE__ */ K("main", {
287
+ return /* @__PURE__ */ G("main", {
288
288
  className: "resource-browser",
289
- children: /* @__PURE__ */ q("div", {
289
+ children: /* @__PURE__ */ K("div", {
290
290
  className: s("resource-page", e != "default" && "resource-page-full"),
291
291
  children: [
292
- /* @__PURE__ */ K("h1", {
292
+ /* @__PURE__ */ G("h1", {
293
293
  className: "sr-only",
294
294
  children: y("resource.flows")
295
295
  }),
296
- /* @__PURE__ */ q("section", {
296
+ /* @__PURE__ */ K("section", {
297
297
  "aria-labelledby": "flow-list-title",
298
298
  className: "resource-list-section",
299
299
  children: [
300
- /* @__PURE__ */ q("div", {
300
+ /* @__PURE__ */ K("div", {
301
301
  className: "resource-list-title",
302
- children: [/* @__PURE__ */ q("div", {
302
+ children: [/* @__PURE__ */ K("div", {
303
303
  className: "resource-list-heading",
304
- children: [/* @__PURE__ */ K("h2", {
304
+ children: [/* @__PURE__ */ G("h2", {
305
305
  id: "flow-list-title",
306
306
  children: y("resource.allFlows")
307
- }), !C && /* @__PURE__ */ K("span", { children: y("resource.flowCount", { count: D ?? E.length }) })]
308
- }), /* @__PURE__ */ q("div", {
307
+ }), !C && /* @__PURE__ */ G("span", { children: y("resource.flowCount", { count: O ?? D.length }) })]
308
+ }), /* @__PURE__ */ K("div", {
309
309
  className: "resource-list-actions",
310
310
  children: [
311
- /* @__PURE__ */ K(Xe, {
311
+ /* @__PURE__ */ G(Ze, {
312
312
  language: f,
313
313
  onLanguageChange: h
314
314
  }),
315
- /* @__PURE__ */ q(Se, {
315
+ /* @__PURE__ */ K(Ce, {
316
316
  className: "w-full sm:w-56",
317
- children: [/* @__PURE__ */ K(Oe, { children: /* @__PURE__ */ K(v, {
317
+ children: [/* @__PURE__ */ G(ke, { children: /* @__PURE__ */ G(v, {
318
318
  name: "search",
319
319
  size: 17
320
- }) }), /* @__PURE__ */ K(ve, {
320
+ }) }), /* @__PURE__ */ G(ye, {
321
321
  autoComplete: "off",
322
322
  "aria-label": y("resource.searchFlows"),
323
323
  name: "flow-search",
@@ -326,25 +326,28 @@ function $e({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
326
326
  value: A
327
327
  })]
328
328
  }),
329
- /* @__PURE__ */ K(c, {
329
+ /* @__PURE__ */ G(c, {
330
330
  "aria-label": y("common.refresh"),
331
- disabled: C || b != null,
331
+ disabled: C || E || b != null,
332
332
  onClick: () => void _.workspace.reloadFlows(),
333
333
  size: "icon",
334
334
  title: y("common.refresh"),
335
335
  variant: "outline",
336
- children: /* @__PURE__ */ K(v, { name: "refresh" })
336
+ children: /* @__PURE__ */ G(v, {
337
+ className: E ? "animate-spin" : void 0,
338
+ name: "refresh"
339
+ })
337
340
  }),
338
- /* @__PURE__ */ q(c, {
341
+ /* @__PURE__ */ K(c, {
339
342
  className: "resource-page-primary-action",
340
343
  disabled: b != null,
341
344
  onClick: () => k(!0),
342
- children: [/* @__PURE__ */ K(v, {
345
+ children: [/* @__PURE__ */ G(v, {
343
346
  "data-icon": "inline-start",
344
347
  name: "plus"
345
348
  }), y("resource.newFlow")]
346
349
  }),
347
- l != null && d != null && m != null && /* @__PURE__ */ K(x, {
350
+ l != null && d != null && m != null && /* @__PURE__ */ G(x, {
348
351
  action: l,
349
352
  onAction: m,
350
353
  title: d
@@ -352,56 +355,56 @@ function $e({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
352
355
  ]
353
356
  })]
354
357
  }),
355
- /* @__PURE__ */ q("div", {
358
+ /* @__PURE__ */ K("div", {
356
359
  "aria-hidden": "true",
357
360
  className: "resource-list-columns flow-columns",
358
361
  children: [
359
- /* @__PURE__ */ K("span", { children: y("resource.name") }),
360
- /* @__PURE__ */ K("span", { children: y("resource.updated") }),
361
- /* @__PURE__ */ K("span", { children: y("resource.status") })
362
+ /* @__PURE__ */ G("span", { children: y("resource.name") }),
363
+ /* @__PURE__ */ G("span", { children: y("resource.updated") }),
364
+ /* @__PURE__ */ G("span", { children: y("resource.status") })
362
365
  ]
363
366
  }),
364
- /* @__PURE__ */ K("div", {
367
+ /* @__PURE__ */ G("div", {
365
368
  className: "resource-list",
366
- children: C ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ K(Qe, {}, t)) : S ? /* @__PURE__ */ q(se, {
369
+ children: C ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ G($e, {}, t)) : S ? /* @__PURE__ */ K(ce, {
367
370
  className: "min-h-64",
368
371
  role: "alert",
369
- children: [/* @__PURE__ */ q(ue, { children: [
370
- /* @__PURE__ */ K(be, {
372
+ children: [/* @__PURE__ */ K(de, { children: [
373
+ /* @__PURE__ */ G(xe, {
371
374
  variant: "icon",
372
- children: /* @__PURE__ */ K(v, {
375
+ children: /* @__PURE__ */ G(v, {
373
376
  name: "alert",
374
377
  size: 20
375
378
  })
376
379
  }),
377
- /* @__PURE__ */ K(U, { children: y("resource.flowsLoadFailed") }),
378
- /* @__PURE__ */ K(Ae, { children: y("resource.flowsLoadFailedDescription") })
379
- ] }), /* @__PURE__ */ K(we, { children: /* @__PURE__ */ K(c, {
380
+ /* @__PURE__ */ G(Pe, { children: y("resource.flowsLoadFailed") }),
381
+ /* @__PURE__ */ G(je, { children: y("resource.flowsLoadFailedDescription") })
382
+ ] }), /* @__PURE__ */ G(Te, { children: /* @__PURE__ */ G(c, {
380
383
  onClick: () => void _.retryFlows(),
381
384
  variant: "outline",
382
385
  children: y("empty.retry")
383
386
  }) })]
384
- }) : F.length == 0 ? /* @__PURE__ */ q(se, {
387
+ }) : F.length == 0 ? /* @__PURE__ */ K(ce, {
385
388
  className: "min-h-64",
386
- children: [/* @__PURE__ */ q(ue, { children: [
387
- /* @__PURE__ */ K(be, {
389
+ children: [/* @__PURE__ */ K(de, { children: [
390
+ /* @__PURE__ */ G(xe, {
388
391
  variant: "icon",
389
- children: /* @__PURE__ */ K(v, {
392
+ children: /* @__PURE__ */ G(v, {
390
393
  name: "flow",
391
394
  size: 20
392
395
  })
393
396
  }),
394
- /* @__PURE__ */ K(U, { children: y(P.length == 0 ? "resource.noFlows" : "resource.noMatchingFlows") }),
395
- /* @__PURE__ */ K(Ae, { children: y(P.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
396
- ] }), P.length == 0 && /* @__PURE__ */ K(we, { children: /* @__PURE__ */ q(c, {
397
+ /* @__PURE__ */ G(Pe, { children: y(P.length == 0 ? "resource.noFlows" : "resource.noMatchingFlows") }),
398
+ /* @__PURE__ */ G(je, { children: y(P.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
399
+ ] }), P.length == 0 && /* @__PURE__ */ G(Te, { children: /* @__PURE__ */ K(c, {
397
400
  onClick: () => k(!0),
398
401
  variant: "outline",
399
- children: [/* @__PURE__ */ K(v, {
402
+ children: [/* @__PURE__ */ G(v, {
400
403
  "data-icon": "inline-start",
401
404
  name: "plus"
402
405
  }), y("resource.newFlow")]
403
406
  }) })]
404
- }) : F.map((e) => /* @__PURE__ */ K(Ze, {
407
+ }) : F.map((e) => /* @__PURE__ */ G(Qe, {
405
408
  badge: i?.[e.flowId],
406
409
  busy: b,
407
410
  flow: e,
@@ -410,10 +413,10 @@ function $e({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
410
413
  store: _
411
414
  }, e.flowId))
412
415
  }),
413
- T != null && /* @__PURE__ */ K("div", {
416
+ T != null && /* @__PURE__ */ G("div", {
414
417
  className: "resource-list-footer",
415
- children: /* @__PURE__ */ K(c, {
416
- disabled: w,
418
+ children: /* @__PURE__ */ G(c, {
419
+ disabled: w || E,
417
420
  onClick: () => void _.workspace.loadMoreFlows(),
418
421
  variant: "outline",
419
422
  children: y(w ? "resource.loadingMore" : ee ? "resource.retryLoadMore" : "resource.loadMore")
@@ -421,9 +424,9 @@ function $e({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
421
424
  })
422
425
  ]
423
426
  }),
424
- O && /* @__PURE__ */ K(He, {
427
+ te && /* @__PURE__ */ G(We, {
425
428
  fallback: null,
426
- children: /* @__PURE__ */ K(Je, {
429
+ children: /* @__PURE__ */ G(Ye, {
427
430
  disabled: t,
428
431
  field: n,
429
432
  id: "flow-name",
@@ -443,7 +446,7 @@ function $e({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
443
446
  }
444
447
  //#endregion
445
448
  //#region ../../node_modules/.bun/nanoid@6.0.1/node_modules/nanoid/index.browser.js
446
- var et = (e) => crypto.getRandomValues(new Uint8Array(e)), tt = (e, t, n) => {
449
+ var tt = (e) => crypto.getRandomValues(new Uint8Array(e)), nt = (e, t, n) => {
447
450
  let r = 256 - 256 % e.length;
448
451
  if (r === 256) {
449
452
  let r = e.length - 1;
@@ -465,30 +468,30 @@ var et = (e) => crypto.getRandomValues(new Uint8Array(e)), tt = (e, t, n) => {
465
468
  for (; s--;) if (t[s] < r && (o += e[t[s] % e.length], o.length >= a)) return o;
466
469
  }
467
470
  };
468
- }, nt = (e, t = 21) => tt(e, t | 0, et);
471
+ }, rt = (e, t = 21) => nt(e, t | 0, tt);
469
472
  //#endregion
470
473
  //#region src/flow/common/edgeChanges.ts
471
- function rt(e, t, n) {
474
+ function it(e, t, n) {
472
475
  let r = {
473
476
  source: n.source,
474
477
  sourceHandle: n.sourceHandle,
475
478
  target: n.target,
476
479
  targetHandle: n.targetHandle
477
- }, i = at(e, t)?.nodes[n.target], a = i != null && "inputs" in i ? i.inputs[n.targetHandle] : void 0;
478
- return a?.kind == "sources" && a.sources.some((e) => e.kind == "node" && e.nodeId == n.source && e.output == n.sourceHandle) ? [] : De(e, [{
480
+ }, i = ot(e, t)?.nodes[n.target], a = i != null && "inputs" in i ? i.inputs[n.targetHandle] : void 0;
481
+ return a?.kind == "sources" && a.sources.some((e) => e.kind == "node" && e.nodeId == n.source && e.output == n.sourceHandle) ? [] : Oe(e, [{
479
482
  before: a,
480
483
  edge: r,
481
484
  kind: "graph.edge.connect",
482
485
  target: t
483
486
  }]);
484
487
  }
485
- function it(e, t, n) {
488
+ function at(e, t, n) {
486
489
  let r = {
487
490
  source: n.source,
488
491
  sourceHandle: n.sourceHandle,
489
492
  target: n.target,
490
493
  targetHandle: n.targetHandle
491
- }, i = at(e, t)?.nodes[n.target], a = i != null && "inputs" in i ? i.inputs[n.targetHandle] : void 0;
494
+ }, i = ot(e, t)?.nodes[n.target], a = i != null && "inputs" in i ? i.inputs[n.targetHandle] : void 0;
492
495
  return a?.kind != "sources" || !a.sources.some((e) => e.kind == "node" && e.nodeId == n.source && e.output == n.sourceHandle) ? [] : [{
493
496
  before: a,
494
497
  edge: r,
@@ -496,12 +499,12 @@ function it(e, t, n) {
496
499
  target: t
497
500
  }];
498
501
  }
499
- function at(e, t) {
502
+ function ot(e, t) {
500
503
  return t.kind == "flow" ? e.document.graph : e.document.subflows[t.id]?.graph;
501
504
  }
502
505
  //#endregion
503
506
  //#region src/flow/common/moduleChanges.ts
504
- async function ot(e) {
507
+ async function st(e) {
505
508
  try {
506
509
  let { parse: t } = await import("./lib-C5Ipyfps.js").then((e) => e.t), n = t(e, {
507
510
  errorRecovery: !0,
@@ -517,7 +520,7 @@ async function ot(e) {
517
520
  return [];
518
521
  }
519
522
  }
520
- function st(e, t, n, r, i) {
523
+ function ct(e, t, n, r, i) {
521
524
  return [{
522
525
  beforeImports: n,
523
526
  beforeSource: t,
@@ -527,7 +530,7 @@ function st(e, t, n, r, i) {
527
530
  source: r
528
531
  }];
529
532
  }
530
- var ct = nt("23456789abcdefghjkmnpqrstuvwxyz", 10), J = {
533
+ var lt = rt("23456789abcdefghjkmnpqrstuvwxyz", 10), q = {
531
534
  activities: [],
532
535
  activitiesLoadFailed: !1,
533
536
  activitiesLoading: !1,
@@ -540,24 +543,24 @@ var ct = nt("23456789abcdefghjkmnpqrstuvwxyz", 10), J = {
540
543
  loadingMore: !1,
541
544
  publications: [],
542
545
  publishing: !1
543
- }, lt = 20, ut = 50, dt = 750;
544
- function Y(e, t) {
546
+ }, ut = 20, dt = 50, ft = 750;
547
+ function J(e, t) {
545
548
  return e?.flowId == t.flowId;
546
549
  }
547
- var ft = class {
550
+ var pt = class {
548
551
  #e;
549
552
  #t;
550
553
  #n;
551
- #r = new I();
552
- #i = new I();
554
+ #r = new F();
555
+ #i = new F();
553
556
  #a;
554
- #o = new I();
555
- #s = new I();
557
+ #o = new F();
558
+ #s = new F();
556
559
  #c;
557
- #l = t(J);
560
+ #l = t(q);
558
561
  #u;
559
562
  #d;
560
- constructor(t, n, r, i, a = () => crypto.randomUUID(), o = R()) {
563
+ constructor(t, n, r, i, a = () => crypto.randomUUID(), o = L()) {
561
564
  this.#e = t, this.#t = a, this.#n = o, this.#a = i, this.#c = r, this.#u = n, this.$ = {
562
565
  activities: e(this.#l, (e) => e.activities),
563
566
  activitiesLoadFailed: e(this.#l, (e) => e.activitiesLoadFailed),
@@ -590,12 +593,12 @@ var ft = class {
590
593
  this.#l.dispose();
591
594
  }
592
595
  reset() {
593
- this.#r.invalidate(), this.#i.invalidate(), this.#o.invalidate(), this.#s.invalidate(), this.#d = void 0, this.#l.set(J);
596
+ this.#r.invalidate(), this.#i.invalidate(), this.#o.invalidate(), this.#s.invalidate(), this.#d = void 0, this.#l.set(q);
594
597
  }
595
598
  async load(e) {
596
599
  let t = { flowId: e }, n = this.#r.begin();
597
- Y(this.#l.value.target, t) || (this.#i.invalidate(), this.#d = void 0), this.#c(void 0), this.#l.set({
598
- ...J,
600
+ J(this.#l.value.target, t) || (this.#i.invalidate(), this.#d = void 0), this.#c(void 0), this.#l.set({
601
+ ...q,
599
602
  loading: !0,
600
603
  target: t
601
604
  });
@@ -634,7 +637,7 @@ var ft = class {
634
637
  try {
635
638
  let e = await this.#e.listPublications(n.flowId, {
636
639
  cursor: t,
637
- limit: ut
640
+ limit: dt
638
641
  });
639
642
  if (!r()) return;
640
643
  let i = new Set(this.#l.value.publications.map((e) => e.publicationId));
@@ -672,7 +675,7 @@ var ft = class {
672
675
  publishing: i.status == "pending"
673
676
  }), await this.#g(n, i, o, e.name)) : !1;
674
677
  } catch (e) {
675
- return o() ? (e instanceof B && e.code == "live.conflict" && await this.#p(n), this.#c(D(e, this.#n.t)), !1) : !1;
678
+ return o() ? (e instanceof z && e.code == "live.conflict" && await this.#p(n), this.#c(D(e, this.#n.t)), !1) : !1;
676
679
  } finally {
677
680
  o() && this.#y({ publishing: !1 });
678
681
  }
@@ -696,7 +699,7 @@ var ft = class {
696
699
  message: this.#n.t("notice.rolledBack", { revision: e.revisionId })
697
700
  }), !0);
698
701
  } catch (e) {
699
- return s() ? (e instanceof B && e.code == "live.conflict" && await this.#p(r), this.#c(D(e, this.#n.t)), !1) : !1;
702
+ return s() ? (e instanceof z && e.code == "live.conflict" && await this.#p(r), this.#c(D(e, this.#n.t)), !1) : !1;
700
703
  } finally {
701
704
  s() && this.#y({ rollingBackPublicationId: void 0 });
702
705
  }
@@ -731,7 +734,7 @@ var ft = class {
731
734
  testingTriggerId: void 0,
732
735
  testResult: void 0
733
736
  });
734
- let [r, i] = await Promise.allSettled([this.#e.getFlowTriggerBinding(t.flowId, e), this.#e.listFlowTriggerActivities(t.flowId, e, { limit: lt })]);
737
+ let [r, i] = await Promise.allSettled([this.#e.getFlowTriggerBinding(t.flowId, e), this.#e.listFlowTriggerActivities(t.flowId, e, { limit: ut })]);
735
738
  if (n()) {
736
739
  if (r.status == "rejected") {
737
740
  this.#y({
@@ -765,7 +768,7 @@ var ft = class {
765
768
  try {
766
769
  let e = await this.#e.listFlowTriggerActivities(r.flowId, n, {
767
770
  cursor: t,
768
- limit: lt
771
+ limit: ut
769
772
  });
770
773
  if (!i() || this.#l.value.selectedTriggerId != n) return;
771
774
  let a = new Set(this.#l.value.activities.map((e) => e.activityId));
@@ -820,7 +823,7 @@ var ft = class {
820
823
  }
821
824
  async #f(e) {
822
825
  let [t, n, r] = await this.#m(e);
823
- this.#u.updateLive(t), await this.#u.refreshFlows(), Y(this.#l.value.target, e) && this.#y({
826
+ this.#u.updateLive(t), await this.#u.refreshFlows(), J(this.#l.value.target, e) && this.#y({
824
827
  bindings: r,
825
828
  live: t,
826
829
  loadFailed: !1,
@@ -841,7 +844,7 @@ var ft = class {
841
844
  this.#e.getLive(e.flowId),
842
845
  this.#e.listPublications(e.flowId, {
843
846
  includeTotal: !0,
844
- limit: ut
847
+ limit: dt
845
848
  }),
846
849
  this.#e.listFlowTriggerBindings(e.flowId)
847
850
  ]);
@@ -851,7 +854,7 @@ var ft = class {
851
854
  if (t != null && t != "") try {
852
855
  return await this.#e.getPublishOperation(e.flowId, t);
853
856
  } catch (t) {
854
- if (t instanceof B && t.code == "publication.operation-not-found") {
857
+ if (t instanceof z && t.code == "publication.operation-not-found") {
855
858
  this.#a.setItem(this.#_(e.flowId), "");
856
859
  return;
857
860
  }
@@ -861,12 +864,12 @@ var ft = class {
861
864
  async #g(e, t, n, r) {
862
865
  let i = t;
863
866
  for (; i.status == "pending";) {
864
- if (await new Promise((e) => setTimeout(e, dt)), !n()) return !1;
867
+ if (await new Promise((e) => setTimeout(e, ft)), !n()) return !1;
865
868
  try {
866
869
  i = await this.#e.getPublishOperation(e.flowId, i.operationId);
867
870
  } catch (t) {
868
871
  if (!n()) return !1;
869
- if (t instanceof B && t.code == "publication.operation-not-found") return this.#a.setItem(this.#_(e.flowId), ""), this.#v(e, {
872
+ if (t instanceof z && t.code == "publication.operation-not-found") return this.#a.setItem(this.#_(e.flowId), ""), this.#v(e, {
870
873
  operation: void 0,
871
874
  publishing: !1
872
875
  }), this.#c(D(t, this.#n.t)), !1;
@@ -897,8 +900,8 @@ var ft = class {
897
900
  return `publish-operation:${e}`;
898
901
  }
899
902
  #v(e, t) {
900
- Y(this.#l.value.target, e) ? this.#y(t) : this.#l.set({
901
- ...J,
903
+ J(this.#l.value.target, e) ? this.#y(t) : this.#l.set({
904
+ ...q,
902
905
  ...t,
903
906
  target: e
904
907
  });
@@ -909,29 +912,25 @@ var ft = class {
909
912
  ...e
910
913
  });
911
914
  }
912
- }, pt = { starting: !1 };
913
- function mt(e) {
915
+ }, mt = { starting: !1 };
916
+ function ht(e) {
914
917
  switch (e.kind) {
915
918
  case "condition": return { [e.node.input.handle]: e.node.input };
916
919
  case "subflow": return m(e.definition?.inputs ?? []);
917
920
  case "task": return m(e.definition?.inputs ?? []);
918
921
  case "value": return {};
919
- case "wait": return { value: {
920
- jsonSchema: {},
921
- nullable: !0,
922
- value: null
923
- } };
922
+ case "wait": return { [e.node.input.handle]: e.node.input };
924
923
  }
925
924
  }
926
- function ht(e) {
925
+ function gt(e) {
927
926
  return e.node.name == null ? e.kind == "task" || e.kind == "subflow" ? e.definition?.name ?? e.id : e.id : e.node.name;
928
927
  }
929
- async function gt(e, t) {
930
- let { FlowRunInputEditorStore: n } = await import("./flowRunInputEditorStore-DDidwd8h.js").then((e) => e.r), r = L(e), i = r.graph({ kind: "flow" });
928
+ async function _t(e, t) {
929
+ let { FlowRunInputEditorStore: n } = await import("./flowRunInputEditorStore-DDidwd8h.js").then((e) => e.r), r = I(e), i = r.graph({ kind: "flow" });
931
930
  return i == null ? [] : Object.entries(i.nodes).toSorted(([e], [t]) => e.localeCompare(t)).flatMap(([e, i]) => {
932
931
  let a = r.resolveNode(e, i);
933
932
  if (a.kind == "trigger") return [];
934
- let o = Object.entries(mt(a)).filter(([e, t]) => a.node.inputs[e] == null && !Object.hasOwn(t, "value")).toSorted(([e], [t]) => e.localeCompare(t)).map(([e, t]) => Object.assign({
933
+ let o = Object.entries(ht(a)).filter(([e, t]) => a.node.inputs[e] == null && !Object.hasOwn(t, "value")).toSorted(([e], [t]) => e.localeCompare(t)).map(([e, t]) => Object.assign({
935
934
  handle: e,
936
935
  jsonSchema: t.jsonSchema,
937
936
  nullable: t.nullable
@@ -939,21 +938,21 @@ async function gt(e, t) {
939
938
  return o.length == 0 ? [] : [{
940
939
  editor: new n(o, t),
941
940
  nodeId: e,
942
- title: ht(a)
941
+ title: gt(a)
943
942
  }];
944
943
  });
945
944
  }
946
- var _t = class {
945
+ var vt = class {
947
946
  #e;
948
947
  #t;
949
948
  #n;
950
- #r = new I();
951
- #i = new I();
949
+ #r = new F();
950
+ #i = new F();
952
951
  #a;
953
952
  #o;
954
- #s = t(pt);
953
+ #s = t(mt);
955
954
  #c;
956
- constructor(t, n, r, i = R(), a = () => crypto.randomUUID()) {
955
+ constructor(t, n, r, i = L(), a = () => crypto.randomUUID()) {
957
956
  this.#e = t, this.#a = n, this.#o = r, this.#n = i, this.#t = a, this.$ = {
958
957
  inputRequest: e(this.#s, (e) => e.inputRequest),
959
958
  starting: e(this.#s, (e) => e.starting),
@@ -968,7 +967,7 @@ var _t = class {
968
967
  reset() {
969
968
  this.#r.invalidate(), this.#i.invalidate(), this.#c = void 0;
970
969
  let e = this.#s.value.inputRequest;
971
- this.#s.set(pt), this.#d(e);
970
+ this.#s.set(mt), this.#d(e);
972
971
  }
973
972
  async requestDraft(e, t) {
974
973
  let n = this.#i.begin();
@@ -1011,7 +1010,7 @@ var _t = class {
1011
1010
  }), this.#d(s);
1012
1011
  let c;
1013
1012
  try {
1014
- c = await gt(r, this.#n.lang$);
1013
+ c = await _t(r, this.#n.lang$);
1015
1014
  } catch (e) {
1016
1015
  throw a() && this.#f({
1017
1016
  starting: !1,
@@ -1087,7 +1086,7 @@ var _t = class {
1087
1086
  ...e
1088
1087
  });
1089
1088
  }
1090
- }, vt = {
1089
+ }, Y = {
1091
1090
  actions: {},
1092
1091
  catalogs: {}
1093
1092
  };
@@ -1206,8 +1205,8 @@ var wt = class {
1206
1205
  #p;
1207
1206
  #m;
1208
1207
  #h;
1209
- constructor(r, i, a, o, s = R()) {
1210
- this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Set(), this.#a = new I(), this.#o = new I(), this.#d = t(vt), this.#h = !1, this.browseAddNodeOptions = async (e) => {
1208
+ constructor(r, i, a, o, s = L()) {
1209
+ this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Set(), this.#a = new F(), this.#o = new F(), this.#d = t(Y), this.#h = !1, this.browseAddNodeOptions = async (e) => {
1211
1210
  if (this.#h) return;
1212
1211
  let t = this.#f.$.flowId.value;
1213
1212
  if (t == null) return;
@@ -1273,7 +1272,7 @@ var wt = class {
1273
1272
  this.#l.dispose(), this.#d.dispose();
1274
1273
  }
1275
1274
  reset() {
1276
- this.#h || (this.#a.invalidate(), this.#o.invalidate(), this.#p = void 0, this.#r.clear(), this.#m = void 0, this.#i.clear(), this.#d.set(vt));
1275
+ this.#h || (this.#a.invalidate(), this.#o.invalidate(), this.#p = void 0, this.#r.clear(), this.#m = void 0, this.#i.clear(), this.#d.set(Y));
1277
1276
  }
1278
1277
  async refresh(e = !1) {
1279
1278
  if (this.#h) return;
@@ -1459,8 +1458,8 @@ var Ot = class {
1459
1458
  #c;
1460
1459
  #l;
1461
1460
  #u;
1462
- constructor(r, i, a, o, s = R()) {
1463
- this.#t = new AbortController(), this.#a = new I(), this.#c = t(Tt), this.#u = !1, this.browseAddNodeOptions = async (e) => {
1461
+ constructor(r, i, a, o, s = L()) {
1462
+ this.#t = new AbortController(), this.#a = new F(), this.#c = t(Tt), this.#u = !1, this.browseAddNodeOptions = async (e) => {
1464
1463
  let t = this.#l.$.flowId.value;
1465
1464
  if (e.aborted || this.#u || t == null || this.#l.$.target.value?.kind != "flow") return [];
1466
1465
  let n = await this.#d();
@@ -1636,7 +1635,7 @@ var At = class {
1636
1635
  this.#a = e;
1637
1636
  let t = e, n = [];
1638
1637
  for (let e of this.#o) try {
1639
- t = V(t, e.changes), n.push(e);
1638
+ t = B(t, e.changes), n.push(e);
1640
1639
  } catch (t) {
1641
1640
  if (!(t instanceof h)) throw t;
1642
1641
  e.active = !1;
@@ -1644,7 +1643,7 @@ var At = class {
1644
1643
  return this.#o = n, t;
1645
1644
  }
1646
1645
  project(e) {
1647
- return this.#o.reduce((e, t) => V(e, t.changes), e);
1646
+ return this.#o.reduce((e, t) => B(e, t.changes), e);
1648
1647
  }
1649
1648
  enqueue(e) {
1650
1649
  let t = this.#s.then(e);
@@ -1682,14 +1681,14 @@ var At = class {
1682
1681
  let r = this.#l(e, n, t);
1683
1682
  return this.#o.length == 0 && this.#t.check(), r;
1684
1683
  } catch (n) {
1685
- if (n instanceof B && n.code == "flow.revision-conflict") {
1684
+ if (n instanceof z && n.code == "flow.revision-conflict") {
1686
1685
  if (!t && await this.#t.recover(e)) {
1687
1686
  t = !0, e.changeId = crypto.randomUUID();
1688
1687
  continue;
1689
1688
  }
1690
1689
  t && await this.#t.recover(e), this.#u(e);
1691
1690
  } else {
1692
- if (!(n instanceof B) && !t) {
1691
+ if (!(n instanceof z) && !t) {
1693
1692
  let n = this.#a?.revisionId;
1694
1693
  if (await this.#t.recover(e)) {
1695
1694
  t = !0, e.active && this.#a?.revisionId != n && (e.changeId = crypto.randomUUID());
@@ -1705,7 +1704,7 @@ var At = class {
1705
1704
  #l(e, t, n) {
1706
1705
  let r = {
1707
1706
  ...n.revision,
1708
- content: V(t, e.changes).content
1707
+ content: B(t, e.changes).content
1709
1708
  };
1710
1709
  this.#o = this.#o.filter((t) => t !== e), this.#a = r;
1711
1710
  let i = this.#t.diagnostics(), a = this.#o.length == 0 && i?.revisionId == r.revisionId;
@@ -1720,11 +1719,12 @@ var At = class {
1720
1719
  loading: !0,
1721
1720
  loadingMore: !1,
1722
1721
  loadMoreFailed: !1,
1722
+ refreshing: !1,
1723
1723
  flows: []
1724
1724
  }, Nt = class {
1725
1725
  #e;
1726
1726
  #t;
1727
- #n = new I();
1727
+ #n = new F();
1728
1728
  #r;
1729
1729
  #i = t(Mt);
1730
1730
  #a = !1;
@@ -1734,6 +1734,7 @@ var At = class {
1734
1734
  loading: e(this.#i, (e) => e.loading),
1735
1735
  loadingMore: e(this.#i, (e) => e.loadingMore),
1736
1736
  loadMoreFailed: e(this.#i, (e) => e.loadMoreFailed),
1737
+ refreshing: e(this.#i, (e) => e.refreshing),
1737
1738
  nextCursor: e(this.#i, (e) => e.nextCursor),
1738
1739
  flows: e(this.#i, (e) => e.flows),
1739
1740
  total: e(this.#i, (e) => e.total)
@@ -1754,13 +1755,18 @@ var At = class {
1754
1755
  return this.#i.value.flows.find((t) => t.flowId == e);
1755
1756
  }
1756
1757
  async reload() {
1757
- let e = this.#n.begin();
1758
- this.#o({
1758
+ let e = this.#n.begin(), t = this.#i.value.loaded;
1759
+ t ? this.#o({
1760
+ failed: !1,
1761
+ loadingMore: !1,
1762
+ loadMoreFailed: !1,
1763
+ refreshing: !0
1764
+ }) : this.#o({
1759
1765
  failed: !1,
1760
- loaded: !1,
1761
1766
  loading: !0,
1762
1767
  loadingMore: !1,
1763
1768
  loadMoreFailed: !1,
1769
+ refreshing: !1,
1764
1770
  nextCursor: void 0,
1765
1771
  flows: [],
1766
1772
  total: void 0
@@ -1774,22 +1780,24 @@ var At = class {
1774
1780
  this.#o({
1775
1781
  loaded: !0,
1776
1782
  loading: !1,
1783
+ refreshing: !1,
1777
1784
  nextCursor: t.nextCursor,
1778
1785
  flows: t.flows,
1779
1786
  total: t.total
1780
1787
  });
1781
- } catch (t) {
1788
+ } catch (n) {
1782
1789
  if (!e()) return;
1783
1790
  this.#o({
1784
- failed: !0,
1785
- loading: !1
1786
- }), this.#r(D(t, this.#t.t));
1791
+ failed: !t,
1792
+ loading: !1,
1793
+ refreshing: !1
1794
+ }), this.#r(D(n, this.#t.t));
1787
1795
  }
1788
1796
  }
1789
1797
  async loadMore() {
1790
- let { loadingMore: e, nextCursor: t } = this.#i.value;
1791
- if (e || t == null) return;
1792
- let n = this.#n.capture();
1798
+ let { loadingMore: e, nextCursor: t, refreshing: n } = this.#i.value;
1799
+ if (e || n || t == null) return;
1800
+ let r = this.#n.capture();
1793
1801
  this.#o({
1794
1802
  loadingMore: !0,
1795
1803
  loadMoreFailed: !1
@@ -1799,15 +1807,15 @@ var At = class {
1799
1807
  cursor: t,
1800
1808
  limit: jt
1801
1809
  });
1802
- if (!n()) return;
1803
- let r = new Set(this.#i.value.flows.map((e) => e.flowId));
1810
+ if (!r()) return;
1811
+ let n = new Set(this.#i.value.flows.map((e) => e.flowId));
1804
1812
  this.#o({
1805
1813
  loadingMore: !1,
1806
1814
  nextCursor: e.nextCursor,
1807
- flows: [...this.#i.value.flows, ...e.flows.filter((e) => !r.has(e.flowId))]
1815
+ flows: [...this.#i.value.flows, ...e.flows.filter((e) => !n.has(e.flowId))]
1808
1816
  });
1809
1817
  } catch (e) {
1810
- if (!n()) return;
1818
+ if (!r()) return;
1811
1819
  this.#o({
1812
1820
  loadingMore: !1,
1813
1821
  loadMoreFailed: !0
@@ -1896,7 +1904,7 @@ var At = class {
1896
1904
  this.#c(a, r);
1897
1905
  } catch (r) {
1898
1906
  if (this.#o || !n()) return;
1899
- if (r instanceof B && r.code == "flow.presentation-conflict") try {
1907
+ if (r instanceof z && r.code == "flow.presentation-conflict") try {
1900
1908
  let t = await this.#e.getPresentation(e);
1901
1909
  if (this.#o || !n()) return;
1902
1910
  this.#c(a, t), this.#n({
@@ -1952,23 +1960,23 @@ var Lt = class {
1952
1960
  ...n,
1953
1961
  status: Q(e.draft, e.moduleEditor)
1954
1962
  };
1955
- }), u = e(this.#t, (e) => e.nodeFocus), d = e(this.#t, (e) => e.presentation), f = e(this.#t, (e) => e.flowId), p = e(this.#t, (e) => e.live), m = e(this.#t, (e) => e.draft == null ? void 0 : L(e.draft)), h = e(this.#t, (e) => e.selectedNodeIds), g = e(this.#t, (e) => e.target), _ = e(this.#t, (e) => e.workspaceLoadFailed), v = e(this.#t, (e) => e.workspaceLoading);
1963
+ }), u = e(this.#t, (e) => e.nodeFocus), d = e(this.#t, (e) => e.presentation), f = e(this.#t, (e) => e.flowId), p = e(this.#t, (e) => e.live), m = e(this.#t, (e) => e.draft == null ? void 0 : I(e.draft)), h = e(this.#t, (e) => e.selectedNodeIds), g = e(this.#t, (e) => e.target), _ = e(this.#t, (e) => e.workspaceLoadFailed), v = e(this.#t, (e) => e.workspaceLoading);
1956
1964
  this.#e = e(this.#t, (e) => ({
1957
- revision: e.draft == null ? void 0 : L(e.draft),
1965
+ revision: e.draft == null ? void 0 : I(e.draft),
1958
1966
  target: e.target
1959
1967
  }), { equal: (e, t) => e.revision === t.revision && e.target === t.target });
1960
1968
  let y = e(this.#t, (e) => {
1961
- if (e.draft != null && e.target != null && e.selectedNodeIds.length == 1) return L(e.draft).selection(e.target, e.selectedNodeIds[0]);
1969
+ if (e.draft != null && e.target != null && e.selectedNodeIds.length == 1) return I(e.draft).selection(e.target, e.selectedNodeIds[0]);
1962
1970
  });
1963
1971
  this.$ = {
1964
1972
  addNodeOptions: n((e) => {
1965
1973
  let { revision: n, target: r } = e(this.#e);
1966
- return Pe(n?.revision, r, e(t.t$));
1974
+ return Ie(n?.revision, r, e(t.t$));
1967
1975
  }),
1968
1976
  busy: i,
1969
1977
  checkLoading: a,
1970
1978
  diagnosticFocus: o,
1971
- diagnosticItems: e(this.#t, (e) => E(e.draft == null ? void 0 : L(e.draft), e.target, e.diagnostics)),
1979
+ diagnosticItems: e(this.#t, (e) => E(e.draft == null ? void 0 : I(e.draft), e.target, e.diagnostics)),
1972
1980
  diagnostics: s,
1973
1981
  draft: c,
1974
1982
  flow: n((e) => {
@@ -1981,9 +1989,10 @@ var Lt = class {
1981
1989
  flowLoading: r.$.loading,
1982
1990
  flowLoadingMore: r.$.loadingMore,
1983
1991
  flowNextCursor: r.$.nextCursor,
1992
+ flowRefreshing: r.$.refreshing,
1984
1993
  flowTotal: r.$.total,
1985
1994
  flows: r.$.flows,
1986
- inspectorDiagnostics: e(this.#t, (e) => te(e.draft == null ? void 0 : L(e.draft), e.target, e.diagnostics, y.value)),
1995
+ inspectorDiagnostics: e(this.#t, (e) => ne(e.draft == null ? void 0 : I(e.draft), e.target, e.diagnostics, y.value)),
1987
1996
  live: p,
1988
1997
  moduleDiagnostics: e(this.#t, (e) => {
1989
1998
  let t = e.moduleEditor?.moduleId;
@@ -1999,7 +2008,7 @@ var Lt = class {
1999
2008
  target: g,
2000
2009
  targetFlow: n((e) => e(g)?.kind == "flow" ? e(r.$.flows).find((t) => t.flowId == e(f)) : void 0),
2001
2010
  targetName: e(this.#t, (e) => {
2002
- if (e.target != null) return e.target.kind == "flow" ? r.flow(e.flowId ?? "")?.name : e.draft == null ? e.target.id : L(e.draft).subflow(e.target.id)?.name ?? e.target.id;
2011
+ if (e.target != null) return e.target.kind == "flow" ? r.flow(e.flowId ?? "")?.name : e.draft == null ? e.target.id : I(e.draft).subflow(e.target.id)?.name ?? e.target.id;
2003
2012
  }),
2004
2013
  workspaceLoadFailed: _,
2005
2014
  workspaceLoading: v
@@ -2024,10 +2033,51 @@ var Lt = class {
2024
2033
  function Rt(e, t) {
2025
2034
  if (t != null) return t.kind == "flow" || e.subflow(t.id) != null ? t : { kind: "flow" };
2026
2035
  }
2027
- var zt = class {
2036
+ function zt(e, t, n, r) {
2037
+ let i = j(e, t).nodes;
2038
+ if (r.target == n) {
2039
+ let e = i.find((e) => e.id == r.source);
2040
+ if (e == null || e.kind == "comment") return;
2041
+ let t = e.outputs.find((e) => "handle" in e && e.handle == r.sourceHandle);
2042
+ return t == null || !("handle" in t) ? void 0 : {
2043
+ inputs: [{
2044
+ description: t.description,
2045
+ handle: r.targetHandle,
2046
+ jsonSchema: t.jsonSchema ?? {},
2047
+ nullable: t.nullable ?? !1,
2048
+ value: null
2049
+ }],
2050
+ outputs: [{
2051
+ handle: "result",
2052
+ jsonSchema: {},
2053
+ nullable: !0
2054
+ }]
2055
+ };
2056
+ }
2057
+ if (r.source == n) {
2058
+ let e = i.find((e) => e.id == r.target);
2059
+ if (e == null || e.kind == "comment") return;
2060
+ let t = e.inputs.find((e) => "handle" in e && e.handle == r.targetHandle);
2061
+ return t == null || !("handle" in t) ? void 0 : {
2062
+ inputs: [{
2063
+ handle: "value",
2064
+ jsonSchema: {},
2065
+ nullable: !0,
2066
+ value: null
2067
+ }],
2068
+ outputs: [{
2069
+ description: t.description,
2070
+ handle: r.sourceHandle,
2071
+ jsonSchema: t.jsonSchema ?? {},
2072
+ nullable: t.nullable ?? !1
2073
+ }]
2074
+ };
2075
+ }
2076
+ }
2077
+ var Bt = class {
2028
2078
  #e;
2029
2079
  #t;
2030
- #n = new I();
2080
+ #n = new F();
2031
2081
  #r;
2032
2082
  #i;
2033
2083
  #a;
@@ -2044,7 +2094,7 @@ var zt = class {
2044
2094
  #g = 0;
2045
2095
  #_;
2046
2096
  #v;
2047
- constructor(e, t, n = ct, r = R(), i = () => {}) {
2097
+ constructor(e, t, n = lt, r = L(), i = () => {}) {
2048
2098
  this.#e = e, this.#c = t, this.#i = n, this.#r = r, this.#s = i, this.#o = new Nt(e, t, r), this.#l = new Lt(r, this.#o), this.#t = new At(e, t, r, {
2049
2099
  apply: (e, t) => this.#x(e, t),
2050
2100
  beforeChange: (e) => {
@@ -2129,7 +2179,7 @@ var zt = class {
2129
2179
  selectNodes(e) {
2130
2180
  return e.length == this.#l.value.selectedNodeIds.length && e.every((e, t) => e == this.#l.value.selectedNodeIds[t]) ? !0 : this.#O() ? (this.#N({
2131
2181
  diagnosticFocus: void 0,
2132
- moduleEditor: $(this.#l.value.draft == null ? void 0 : L(this.#l.value.draft), this.#l.value.target, e),
2182
+ moduleEditor: $(this.#l.value.draft == null ? void 0 : I(this.#l.value.draft), this.#l.value.target, e),
2133
2183
  nodeFocus: void 0,
2134
2184
  selectedNodeIds: e
2135
2185
  }), !0) : !1;
@@ -2168,7 +2218,7 @@ var zt = class {
2168
2218
  if (!this.#O() || this.#l.value.draft == null) return !1;
2169
2219
  let t = this.#i();
2170
2220
  this.#N({ busy: "resource" }), this.#c(void 0);
2171
- let n = await this.#b(oe(t, e), !1);
2221
+ let n = await this.#b(se(t, e), !1);
2172
2222
  return this.#N({ busy: void 0 }), n != null && (this.selectTarget({
2173
2223
  id: t,
2174
2224
  kind: "subflow"
@@ -2199,14 +2249,23 @@ var zt = class {
2199
2249
  if (r == null || i == null) return;
2200
2250
  let a = this.#i();
2201
2251
  if (e.kind == "comment") return await this.#y(i, a, t);
2202
- let o = L(r), s = ee(e, o, i, this.#r.t);
2252
+ let o = I(r), s = ee(e, o, i, this.#r.t);
2203
2253
  if (s == null) return;
2204
- let c = je(o, i, a, s, this.#i);
2205
- if (c == null) return;
2206
- let l = n == null ? c : [...c, ...rt(V(r, c).content, i, n(a))], u = this.#b(l);
2254
+ let c = n?.(a);
2255
+ if (s.kind == "code" && c != null) {
2256
+ let e = zt(r, i, a, c);
2257
+ if (e == null) return;
2258
+ s = {
2259
+ ...s,
2260
+ ports: e
2261
+ };
2262
+ }
2263
+ let l = Me(o, i, a, s, this.#i);
2264
+ if (l == null) return;
2265
+ let u = c == null ? l : [...l, ...it(B(r, l).content, i, c)], d = this.#b(u);
2207
2266
  this.selectNodes([a]);
2208
- let d = this.moveNodes({ [a]: t });
2209
- if (await u != null && (await d, !this.#m)) return this.#N({ nodeFocus: {
2267
+ let f = this.moveNodes({ [a]: t });
2268
+ if (await d != null && (await f, !this.#m)) return this.#N({ nodeFocus: {
2210
2269
  nodeId: a,
2211
2270
  requestId: ++this.#g
2212
2271
  } }), a;
@@ -2214,20 +2273,20 @@ var zt = class {
2214
2273
  async connect(e) {
2215
2274
  let t = this.$.revision.value, n = this.#l.value.target;
2216
2275
  if (t == null || n == null) return;
2217
- let r = rt(t.revision.content, n, e);
2276
+ let r = it(t.revision.content, n, e);
2218
2277
  r.length > 0 && await this.#b(r);
2219
2278
  }
2220
2279
  async disconnect(e) {
2221
2280
  let t = this.$.revision.value, n = this.#l.value.target;
2222
2281
  if (t == null || n == null) return;
2223
- let r = it(t.revision.content, n, e);
2282
+ let r = at(t.revision.content, n, e);
2224
2283
  r.length > 0 && await this.#b(r);
2225
2284
  }
2226
2285
  async deleteSelectedNodes() {
2227
2286
  if (!this.#O()) return;
2228
2287
  let e = this.$.revision.value, t = this.#l.value.target;
2229
2288
  if (e == null || t == null || this.#l.value.selectedNodeIds.length == 0) return;
2230
- let n = w(this.#l.value.presentation?.value ?? {}, t), r = new Set(this.#l.value.selectedNodeIds.filter((e) => n.has(e))), i = Ce(e, t, this.#l.value.selectedNodeIds), a = i.length == 0 ? void 0 : this.#b(i), o = r.size == 0 ? void 0 : this.#S((e) => S(e, t, r));
2289
+ let n = w(this.#l.value.presentation?.value ?? {}, t), r = new Set(this.#l.value.selectedNodeIds.filter((e) => n.has(e))), i = we(e, t, this.#l.value.selectedNodeIds), a = i.length == 0 ? void 0 : this.#b(i), o = r.size == 0 ? void 0 : this.#S((e) => S(e, t, r));
2231
2290
  this.selectNodes([]), (a == null || await a != null) && await o;
2232
2291
  }
2233
2292
  copySelectedNodes() {
@@ -2241,14 +2300,14 @@ var zt = class {
2241
2300
  sourceId: e.id,
2242
2301
  title: e.title
2243
2302
  }] : []),
2244
- nodes: _e(e, t, this.#l.value.selectedNodeIds)
2303
+ nodes: ve(e, t, this.#l.value.selectedNodeIds)
2245
2304
  };
2246
2305
  }
2247
2306
  async pasteNodes(e) {
2248
2307
  if (!this.#O()) return;
2249
2308
  let t = this.$.revision.value, n = this.#l.value.target;
2250
2309
  if (t == null || n == null || this.#u == null) return;
2251
- let r = ke(t, n, this.#u.nodes, this.#i), i = r.changes.length == 0 ? void 0 : this.#b(r.changes), a = this.#u.comments.map((e) => ({
2310
+ let r = Ae(t, n, this.#u.nodes, this.#i), i = r.changes.length == 0 ? void 0 : this.#b(r.changes), a = this.#u.comments.map((e) => ({
2252
2311
  ...e,
2253
2312
  nodeId: this.#i()
2254
2313
  }));
@@ -2260,8 +2319,8 @@ var zt = class {
2260
2319
  y: (i?.y ?? 80) + 40
2261
2320
  }];
2262
2321
  })), c = this.#S((e) => {
2263
- let t = j(e, n, s);
2264
- for (let e of a) t = z(t, n, e.nodeId, {
2322
+ let t = A(e, n, s);
2323
+ for (let e of a) t = R(t, n, e.nodeId, {
2265
2324
  content: e.content,
2266
2325
  position: {
2267
2326
  x: e.position.x + 40,
@@ -2279,66 +2338,66 @@ var zt = class {
2279
2338
  async saveNodeSettings(e, t) {
2280
2339
  let n = this.$.revision.value, r = this.#l.value.target;
2281
2340
  if (n == null || r == null) return !1;
2282
- let i = he(n, r, e, t);
2341
+ let i = ge(n, r, e, t);
2283
2342
  return i != null && await this.#b(i) != null;
2284
2343
  }
2285
2344
  async saveNodeDescription(e, t) {
2286
2345
  let n = this.$.revision.value, r = this.#l.value.target;
2287
2346
  if (n == null || r == null) return !1;
2288
- let i = Te(n, r, e, t);
2347
+ let i = Ee(n, r, e, t);
2289
2348
  return i != null && await this.#b(i) != null;
2290
2349
  }
2291
2350
  async saveNodeIcon(e, t) {
2292
2351
  let n = this.$.revision.value, r = this.#l.value.target;
2293
2352
  if (n == null || r == null) return !1;
2294
- let i = xe(n, r, e, t);
2353
+ let i = Se(n, r, e, t);
2295
2354
  return i != null && await this.#b(i) != null;
2296
2355
  }
2297
2356
  async saveNodeTitle(e, t) {
2298
2357
  let n = this.$.revision.value, r = this.#l.value.target;
2299
2358
  if (n == null || r == null) return !1;
2300
- let i = ge(n, r, e, t);
2359
+ let i = _e(n, r, e, t);
2301
2360
  return i != null && await this.#b(i) != null;
2302
2361
  }
2303
2362
  async setInputValue(e, t, n) {
2304
2363
  let r = this.$.revision.value, i = this.#l.value.target;
2305
2364
  if (r == null || i == null) return !1;
2306
- let a = le(r, i, e, t, n);
2365
+ let a = ue(r, i, e, t, n);
2307
2366
  return a != null && await this.#b(a) != null;
2308
2367
  }
2309
2368
  async setInputVariable(e, t, n) {
2310
2369
  let r = this.$.revision.value, i = this.#l.value.target;
2311
2370
  if (r == null || i == null) return !1;
2312
- let a = n == null ? le(r, i, e, t, void 0) : ye(r, i, e, t, n, this.#i());
2371
+ let a = n == null ? ue(r, i, e, t, void 0) : be(r, i, e, t, n, this.#i());
2313
2372
  return a != null && await this.#b(a) != null;
2314
2373
  }
2315
2374
  async saveCondition(e, t) {
2316
2375
  let n = this.$.revision.value, r = this.#l.value.target;
2317
2376
  if (n == null || r == null) return !1;
2318
- let i = me(n, r, e, t);
2377
+ let i = he(n, r, e, t);
2319
2378
  return i != null && await this.#b(i) != null;
2320
2379
  }
2321
2380
  async saveValue(e, t) {
2322
2381
  let n = this.$.revision.value, r = this.#l.value.target;
2323
2382
  if (n == null || r == null) return !1;
2324
- let i = ce(n, r, e, t);
2383
+ let i = le(n, r, e, t);
2325
2384
  return i != null && await this.#b(i) != null;
2326
2385
  }
2327
2386
  async saveWait(e, t) {
2328
2387
  let n = this.$.revision.value, r = this.#l.value.target;
2329
2388
  if (n == null || r?.kind != "flow") return !1;
2330
- let i = Fe(n, r, e, t);
2389
+ let i = Le(n, r, e, t);
2331
2390
  return i != null && await this.#b(i) != null;
2332
2391
  }
2333
2392
  async setWaitNotification(e, t) {
2334
- let n = this.$.revision.value, r = n == null ? void 0 : Me(n, e, t, this.#i());
2393
+ let n = this.$.revision.value, r = n == null ? void 0 : Ne(n, e, t, this.#i());
2335
2394
  return r != null && await this.#b(r) != null;
2336
2395
  }
2337
2396
  async saveComment(e, t) {
2338
2397
  let n = this.#l.value.target;
2339
2398
  if (n == null) return;
2340
2399
  let r = this.#D().nodes.find((t) => t.id == e)?.position;
2341
- r != null && await this.#S((i) => z(i, n, e, {
2400
+ r != null && await this.#S((i) => R(i, n, e, {
2342
2401
  ...t,
2343
2402
  position: r
2344
2403
  }));
@@ -2346,61 +2405,61 @@ var zt = class {
2346
2405
  async saveTaskSettings(e, t) {
2347
2406
  let n = this.$.revision.value, r = this.#l.value.target;
2348
2407
  if (n == null || r == null) return !1;
2349
- let i = Ne(n, r, e, t);
2408
+ let i = Fe(n, r, e, t);
2350
2409
  return i != null && await this.#b(i) != null;
2351
2410
  }
2352
2411
  async saveCodeTaskPorts(e, t) {
2353
2412
  let n = this.$.revision.value, r = this.#l.value.target;
2354
2413
  if (n == null || r == null) return !1;
2355
- let i = de(n, r, e, t);
2414
+ let i = fe(n, r, e, t);
2356
2415
  return i != null && await this.#b(i) != null;
2357
2416
  }
2358
2417
  async saveTaskAdditionalInputs(e, t) {
2359
2418
  let n = this.$.revision.value, r = this.#l.value.target;
2360
2419
  if (n == null || r == null) return !1;
2361
- let i = Ie(n, r, e, t);
2420
+ let i = Re(n, r, e, t);
2362
2421
  return i != null && await this.#b(i) != null;
2363
2422
  }
2364
2423
  async setConnectorConnection(e, t) {
2365
2424
  let n = this.$.revision.value;
2366
2425
  if (n == null) return !1;
2367
- let r = k(n.revision.content, e, t);
2426
+ let r = te(n.revision.content, e, t);
2368
2427
  return r != null && await this.#b(r) != null;
2369
2428
  }
2370
2429
  async saveTriggerSettings(e, t) {
2371
2430
  let n = this.$.revision.value, r = this.#l.value.target;
2372
2431
  if (n == null || r?.kind != "flow") return !1;
2373
- let i = ne(n.revision.content, r, e, t);
2432
+ let i = re(n.revision.content, r, e, t);
2374
2433
  return i != null && await this.#b(i) != null;
2375
2434
  }
2376
2435
  async saveTriggerConfig(e, t, n) {
2377
2436
  let r = this.$.revision.value, i = this.#l.value.target;
2378
2437
  if (r == null || i?.kind != "flow") return !1;
2379
- let a = ie(r.revision.content, i, e, t, n);
2438
+ let a = ae(r.revision.content, i, e, t, n);
2380
2439
  return a != null && await this.#b(a) != null;
2381
2440
  }
2382
2441
  async saveTriggerSchedule(e, t) {
2383
2442
  let n = this.$.revision.value, r = this.#l.value.target;
2384
2443
  if (n == null || r?.kind != "flow") return !1;
2385
- let i = P(n.revision.content, r, e, t);
2444
+ let i = N(n.revision.content, r, e, t);
2386
2445
  return i != null && await this.#b(i) != null;
2387
2446
  }
2388
2447
  async saveWebhook(e, t) {
2389
2448
  let n = this.$.revision.value, r = this.#l.value.target;
2390
2449
  if (n == null || r?.kind != "flow") return !1;
2391
- let i = F(n, r, e, t);
2450
+ let i = P(n, r, e, t);
2392
2451
  return i != null && await this.#b(i) != null;
2393
2452
  }
2394
2453
  async setTriggerConnection(e, t) {
2395
2454
  let n = this.$.revision.value, r = this.#l.value.target;
2396
2455
  if (n == null || r?.kind != "flow") return !1;
2397
- let i = re(n.revision.content, r, e, t);
2456
+ let i = ie(n.revision.content, r, e, t);
2398
2457
  return i != null && await this.#b(i) != null;
2399
2458
  }
2400
2459
  async saveSubflowSettings(e, t) {
2401
2460
  let n = this.$.revision.value;
2402
2461
  if (n == null) return !1;
2403
- let r = ae(n, e, t);
2462
+ let r = oe(n, e, t);
2404
2463
  return r != null && await this.#b(r) != null;
2405
2464
  }
2406
2465
  updateModuleSource(e) {
@@ -2431,11 +2490,11 @@ var zt = class {
2431
2490
  ...e,
2432
2491
  phase: "saving"
2433
2492
  } });
2434
- let t = await ot(e.source);
2493
+ let t = await st(e.source);
2435
2494
  if (this.#m) return !1;
2436
2495
  let n = this.#l.value.draft?.content.modules[e.moduleId];
2437
2496
  if (n == null) return !1;
2438
- let r = await this.#b(st(e.moduleId, n.source, n.imports, e.source, t));
2497
+ let r = await this.#b(ct(e.moduleId, n.source, n.imports, e.source, t));
2439
2498
  return !this.#m && this.#l.value.moduleEditor?.moduleId == e.moduleId && this.#N({ moduleEditor: {
2440
2499
  ...this.#l.value.moduleEditor,
2441
2500
  phase: r == null ? "failed" : void 0
@@ -2443,11 +2502,11 @@ var zt = class {
2443
2502
  }
2444
2503
  async moveNodes(e, t = "detail") {
2445
2504
  let n = this.#l.value.target;
2446
- n != null && await this.#S((r) => j(r, n, e, t));
2505
+ n != null && await this.#S((r) => A(r, n, e, t));
2447
2506
  }
2448
2507
  async moveViewport(e, t = "detail") {
2449
2508
  let n = this.#l.value.target;
2450
- n != null && await this.#S((r) => A(r, n, e, t));
2509
+ n != null && await this.#S((r) => k(r, n, e, t));
2451
2510
  }
2452
2511
  async check() {
2453
2512
  await this.#C();
@@ -2477,7 +2536,7 @@ var zt = class {
2477
2536
  if (e.kind != "comment") return [];
2478
2537
  let t = /#(\d+)$/.exec(e.title);
2479
2538
  return t == null ? [] : [Number(t[1])];
2480
- })), i = this.#S((i) => z(i, e, t, {
2539
+ })), i = this.#S((i) => R(i, e, t, {
2481
2540
  content: "",
2482
2541
  position: n,
2483
2542
  title: this.#r.t("addNode.commentName", { number: r + 1 })
@@ -2578,7 +2637,7 @@ var zt = class {
2578
2637
  }
2579
2638
  #D() {
2580
2639
  let e = this.#l.value;
2581
- return M(e.draft, e.target, e.presentation?.value, e.diagnostics?.diagnostics, {}, {}, this.#r.t);
2640
+ return j(e.draft, e.target, e.presentation?.value, e.diagnostics?.diagnostics, {}, {}, this.#r.t);
2582
2641
  }
2583
2642
  #O() {
2584
2643
  let e = this.#l.value.moduleEditor;
@@ -2588,7 +2647,7 @@ var zt = class {
2588
2647
  }), !1);
2589
2648
  }
2590
2649
  #k(e) {
2591
- let t = L(e), n = Rt(t, this.#l.value.target);
2650
+ let t = I(e), n = Rt(t, this.#l.value.target);
2592
2651
  return {
2593
2652
  revision: t,
2594
2653
  selectedNodeIds: this.#l.value.selectedNodeIds.filter((e) => n != null && t.selection(n, e) != null),
@@ -2621,13 +2680,13 @@ var zt = class {
2621
2680
  };
2622
2681
  //#endregion
2623
2682
  //#region src/workbench/browser/runtime/stores/workbenchStore.ts
2624
- function Bt(e) {
2683
+ function Vt(e) {
2625
2684
  return new Map(e.nodes.map((e) => [e.id, e]));
2626
2685
  }
2627
- function Vt(e, t) {
2628
- return e == null || t == null ? [] : L(e).designerInputs(t);
2686
+ function Ht(e, t) {
2687
+ return e == null || t == null ? [] : I(e).designerInputs(t);
2629
2688
  }
2630
- function Ht(e, t, n, r, i) {
2689
+ function Ut(e, t, n, r, i) {
2631
2690
  if (e == null || t?.kind != "flow" || n?.revisionId != e.revisionId || n.flowId != e.flowId) return /* @__PURE__ */ new Map();
2632
2691
  let a = r.find((t) => t.kind == "run.started" && t.payload.flowId == e.flowId)?.payload.scopeId;
2633
2692
  return typeof a == "string" ? new Map(r.flatMap((t) => {
@@ -2635,7 +2694,7 @@ function Ht(e, t, n, r, i) {
2635
2694
  return t.payload.scopeId == a && t.payload.flowId == e.flowId && typeof n == "string" && i.has(n) ? [[t.sequence, n]] : [];
2636
2695
  })) : /* @__PURE__ */ new Map();
2637
2696
  }
2638
- var Ut = { openExternalPage: async () => !1 }, Wt = class {
2697
+ var Wt = { openExternalPage: async () => !1 }, Gt = class {
2639
2698
  #e;
2640
2699
  #t;
2641
2700
  #n;
@@ -2646,16 +2705,16 @@ var Ut = { openExternalPage: async () => !1 }, Wt = class {
2646
2705
  #s;
2647
2706
  #c;
2648
2707
  #l;
2649
- constructor(r, i, a = () => crypto.randomUUID(), o = R(), s = Ut, c = !0) {
2650
- this.#t = new I(), this.#r = t(), this.#a = t([]), this.#o = t(!1), this.#s = t(!1), this.#c = new I(), this.#l = !1, this.provideAddNodeOptions = async (e, t) => await this.#u([this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t)], t), this.browseAddNodeOptions = async (e) => await this.#u([this.triggers.browseAddNodeOptions(e), this.connectors.browseAddNodeOptions(e)], e), this.provideAddNodeOptionChoices = async (e, t) => {
2708
+ constructor(r, i, a = () => crypto.randomUUID(), o = L(), s = Wt, c = !0) {
2709
+ this.#t = new F(), this.#r = t(), this.#a = t([]), this.#o = t(!1), this.#s = t(!1), this.#c = new F(), this.#l = !1, this.provideAddNodeOptions = async (e, t) => await this.#u([this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t)], t), this.browseAddNodeOptions = async (e) => await this.#u([this.triggers.browseAddNodeOptions(e), this.connectors.browseAddNodeOptions(e)], e), this.provideAddNodeOptionChoices = async (e, t) => {
2651
2710
  if (!e.startsWith("trigger:")) return await this.connectors.provideAddNodeOptionChoices(e, t);
2652
2711
  }, this.#e = r, this.#n = o, this.#i = c;
2653
2712
  let l = (e) => {
2654
2713
  this.#l || this.#r.set(e);
2655
2714
  };
2656
- this.runs = new Le(r, l, o), this.workspace = new zt(r, l, ct, o, (e) => {
2715
+ this.runs = new ze(r, l, o), this.workspace = new Bt(r, l, lt, o, (e) => {
2657
2716
  e.kind == "run.created" ? this.#d(r, e) : this.runs.changed(e.runId);
2658
- }), this.connectors = new wt(r, this.workspace, l, s, o), this.triggers = new Ot(r, this.workspace, l, s, o), this.publications = new ft(r, this.workspace, l, i, a, o), this.runRequests = new _t(r, this.runs, l, o, a);
2717
+ }), this.connectors = new wt(r, this.workspace, l, s, o), this.triggers = new Ot(r, this.workspace, l, s, o), this.publications = new pt(r, this.workspace, l, i, a, o), this.runRequests = new vt(r, this.runs, l, o, a);
2659
2718
  let u = n((e) => {
2660
2719
  let t = e(this.workspace.$.diagnostics);
2661
2720
  if (t == null) return;
@@ -2669,8 +2728,8 @@ var Ut = { openExternalPage: async () => !1 }, Wt = class {
2669
2728
  let t = e(this.workspace.$.draft);
2670
2729
  f != t?.flowId && (d.clear(), f = t?.flowId);
2671
2730
  let n = e(this.workspace.$.target), r = e(this.workspace.$.presentation)?.value, i = e(u)?.diagnostics ?? e(this.connectors.$.diagnostics), a = e(this.connectors.$.actions), s = e(this.connectors.$.catalogs), c = e(o.t$), l = e(this.runs.$.run), p = e(this.runs.$.events), m = e(this.#a), h = e(this.#o), g = e(this.#s), _ = n == null ? "" : n.kind == "flow" ? "flow" : `subflow:${n.id}`, v = [
2672
- ...Vt(t, n),
2673
- r == null || n == null ? void 0 : N(r, n),
2731
+ ...Ht(t, n),
2732
+ r == null || n == null ? void 0 : M(r, n),
2674
2733
  i,
2675
2734
  a,
2676
2735
  s,
@@ -2683,12 +2742,12 @@ var Ut = { openExternalPage: async () => !1 }, Wt = class {
2683
2742
  ...l == null ? [] : [t?.revisionId]
2684
2743
  ], y = d.get(_);
2685
2744
  if (y != null && y.inputs.length == v.length && y.inputs.every((e, t) => e === v[t])) return y.graph;
2686
- let b = M(t, n, r, i, a, s, c, l, p, m, h, g, this.#i);
2745
+ let b = j(t, n, r, i, a, s, c, l, p, m, h, g, this.#i);
2687
2746
  return d.set(_, {
2688
2747
  graph: b,
2689
2748
  inputs: v
2690
2749
  }), b;
2691
- }), m = e(p, Bt);
2750
+ }), m = e(p, Vt);
2692
2751
  this.$ = {
2693
2752
  busy: n((e) => {
2694
2753
  let t = e(this.workspace.$.busy);
@@ -2704,7 +2763,7 @@ var Ut = { openExternalPage: async () => !1 }, Wt = class {
2704
2763
  designer: p,
2705
2764
  designerNodeById: m,
2706
2765
  notice: this.#r,
2707
- runEventNodes: n((e) => Ht(e(this.workspace.$.draft), e(this.workspace.$.target), e(this.runs.$.run), e(this.runs.$.events), e(m))),
2766
+ runEventNodes: n((e) => Ut(e(this.workspace.$.draft), e(this.workspace.$.target), e(this.runs.$.run), e(this.runs.$.events), e(m))),
2708
2767
  selectedDesignerNode: n((e) => {
2709
2768
  let t = e(this.workspace.$.selectedNodeIds);
2710
2769
  return t.length == 1 ? e(m).get(t[0]) : void 0;
@@ -2765,7 +2824,7 @@ var Ut = { openExternalPage: async () => !1 }, Wt = class {
2765
2824
  }
2766
2825
  locateRunWait() {
2767
2826
  let e = this.runs.$.run.value;
2768
- return e?.status == "waiting" && "waiting" in e && e.waiting != null && this.workspace.locateNode(e.waiting.nodeId);
2827
+ return e?.status != "waiting" || !("waiting" in e) || e.waiting == null || !this.workspace.selectTarget({ kind: "flow" }) ? !1 : this.workspace.locateNode(e.waiting.nodeId);
2769
2828
  }
2770
2829
  async addNode(e, t, n) {
2771
2830
  if (e.kind == "trigger" && "trigger" in e && e.trigger.kind == "connect") {
@@ -2805,13 +2864,13 @@ var Ut = { openExternalPage: async () => !1 }, Wt = class {
2805
2864
  return;
2806
2865
  }
2807
2866
  }
2808
- }, Gt = Ue(() => import("./flowWorkspace-VnS8nLMT.js").then((e) => e.t));
2809
- function Kt({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: u }) {
2810
- let m = s != null && u != null && i != null, h = s ?? "", _ = /* @__PURE__ */ q(Ge, { children: [
2811
- /* @__PURE__ */ K("div", {
2867
+ }, Kt = H(() => import("./flowWorkspace-CPBHm14t.js").then((e) => e.t));
2868
+ function qt({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: u }) {
2869
+ let m = s != null && u != null && i != null, h = s ?? "", _ = /* @__PURE__ */ K(Ke, { children: [
2870
+ /* @__PURE__ */ G("div", {
2812
2871
  "aria-hidden": "true",
2813
2872
  className: "flex size-10 items-center justify-center rounded-lg bg-muted text-muted-foreground",
2814
- children: /* @__PURE__ */ q("svg", {
2873
+ children: /* @__PURE__ */ K("svg", {
2815
2874
  className: "size-5",
2816
2875
  fill: "none",
2817
2876
  stroke: "currentColor",
@@ -2819,40 +2878,40 @@ function Kt({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
2819
2878
  strokeLinejoin: "round",
2820
2879
  strokeWidth: "1.8",
2821
2880
  viewBox: "0 0 24 24",
2822
- children: [/* @__PURE__ */ K("rect", {
2881
+ children: [/* @__PURE__ */ G("rect", {
2823
2882
  height: "9",
2824
2883
  rx: "2",
2825
2884
  width: "14",
2826
2885
  x: "5",
2827
2886
  y: "11"
2828
- }), /* @__PURE__ */ K("path", { d: "M8 11V8a4 4 0 0 1 8 0v3" })]
2887
+ }), /* @__PURE__ */ G("path", { d: "M8 11V8a4 4 0 0 1 8 0v3" })]
2829
2888
  })
2830
2889
  }),
2831
- /* @__PURE__ */ q("header", {
2890
+ /* @__PURE__ */ K("header", {
2832
2891
  className: "flex flex-col gap-2",
2833
- children: [/* @__PURE__ */ K("h1", {
2892
+ children: [/* @__PURE__ */ G("h1", {
2834
2893
  className: "text-xl font-semibold tracking-tight text-balance",
2835
2894
  children: o
2836
- }), /* @__PURE__ */ K("p", {
2895
+ }), /* @__PURE__ */ G("p", {
2837
2896
  className: "text-sm/relaxed text-muted-foreground text-pretty",
2838
2897
  children: t
2839
2898
  })]
2840
2899
  }),
2841
- m && /* @__PURE__ */ K(f, { children: /* @__PURE__ */ q(d, {
2900
+ m && /* @__PURE__ */ G(f, { children: /* @__PURE__ */ K(d, {
2842
2901
  "data-invalid": n != null,
2843
2902
  children: [
2844
- /* @__PURE__ */ K(p, {
2903
+ /* @__PURE__ */ G(p, {
2845
2904
  htmlFor: "session-token",
2846
2905
  children: u
2847
2906
  }),
2848
- /* @__PURE__ */ K(l, {
2907
+ /* @__PURE__ */ G(l, {
2849
2908
  autoComplete: "username",
2850
2909
  name: "username",
2851
2910
  type: "hidden",
2852
2911
  value: "open-flow",
2853
2912
  readOnly: !0
2854
2913
  }),
2855
- /* @__PURE__ */ K(l, {
2914
+ /* @__PURE__ */ G(l, {
2856
2915
  autoComplete: "current-password",
2857
2916
  "aria-invalid": n != null,
2858
2917
  autoFocus: !0,
@@ -2864,29 +2923,29 @@ function Kt({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
2864
2923
  type: "password",
2865
2924
  value: h
2866
2925
  }),
2867
- n != null && /* @__PURE__ */ K(y, { children: n })
2926
+ n != null && /* @__PURE__ */ G(y, { children: n })
2868
2927
  ]
2869
2928
  }) }),
2870
- e != null && r != null && /* @__PURE__ */ q(c, {
2929
+ e != null && r != null && /* @__PURE__ */ K(c, {
2871
2930
  disabled: a || m && h.length == 0,
2872
2931
  size: "lg",
2873
2932
  type: "submit",
2874
- children: [a && /* @__PURE__ */ K(g, {
2933
+ children: [a && /* @__PURE__ */ G(g, {
2875
2934
  "aria-label": e,
2876
2935
  "data-icon": "inline-start"
2877
2936
  }), e]
2878
2937
  }),
2879
- a && e == null && /* @__PURE__ */ K(g, { "aria-label": t })
2938
+ a && e == null && /* @__PURE__ */ G(g, { "aria-label": t })
2880
2939
  ] }), v = "m-auto flex w-full max-w-[420px] flex-col gap-5 rounded-xl bg-card p-6 shadow-lg shadow-black/10";
2881
- return /* @__PURE__ */ K("main", {
2940
+ return /* @__PURE__ */ G("main", {
2882
2941
  className: "open-flow-workbench",
2883
- children: /* @__PURE__ */ K("div", {
2942
+ children: /* @__PURE__ */ G("div", {
2884
2943
  className: "grid h-full overflow-auto bg-muted/20 p-4",
2885
- children: r == null ? /* @__PURE__ */ K("section", {
2944
+ children: r == null ? /* @__PURE__ */ G("section", {
2886
2945
  "aria-busy": a,
2887
2946
  className: v,
2888
2947
  children: _
2889
- }) : /* @__PURE__ */ K("form", {
2948
+ }) : /* @__PURE__ */ G("form", {
2890
2949
  "aria-busy": a,
2891
2950
  className: v,
2892
2951
  onSubmit: r,
@@ -2895,15 +2954,15 @@ function Kt({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
2895
2954
  })
2896
2955
  });
2897
2956
  }
2898
- function qt({ host: e, store: t }) {
2957
+ function Jt({ host: e, store: t }) {
2899
2958
  let n = a(t.$.notice);
2900
- return W(() => e.notify(n), [e, n]), W(() => () => e.notify(void 0), [e]), null;
2959
+ return U(() => e.notify(n), [e, n]), U(() => () => e.notify(void 0), [e]), null;
2901
2960
  }
2902
- function Jt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, hrefFor: o, hostAction: s, hostTitle: c, language: l, navigation: u, onConfigureConnector: d, onHostAction: f, onLanguageChange: p, store: m, theme: h }) {
2961
+ function Yt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, hrefFor: o, hostAction: s, hostTitle: c, language: l, navigation: u, onConfigureConnector: d, onHostAction: f, onLanguageChange: p, store: m, theme: h }) {
2903
2962
  let g = a(m.workspace.$.flowId);
2904
- return /* @__PURE__ */ K("div", {
2963
+ return /* @__PURE__ */ G("div", {
2905
2964
  className: "app-shell",
2906
- children: g == null ? /* @__PURE__ */ K($e, {
2965
+ children: g == null ? /* @__PURE__ */ G(et, {
2907
2966
  catalogWidth: e,
2908
2967
  createFlowDisabled: n,
2909
2968
  createFlowField: r,
@@ -2920,12 +2979,12 @@ function Jt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
2920
2979
  onLanguageChange: p,
2921
2980
  onSelectFlow: (e) => void u.selectFlow(e),
2922
2981
  store: m
2923
- }) : /* @__PURE__ */ K(He, {
2924
- fallback: /* @__PURE__ */ K("main", {
2982
+ }) : /* @__PURE__ */ G(We, {
2983
+ fallback: /* @__PURE__ */ G("main", {
2925
2984
  "aria-busy": "true",
2926
2985
  className: "workspace"
2927
2986
  }),
2928
- children: /* @__PURE__ */ K(Gt, {
2987
+ children: /* @__PURE__ */ G(Kt, {
2929
2988
  hostAction: s,
2930
2989
  hostTitle: c,
2931
2990
  hrefFor: o,
@@ -2938,18 +2997,18 @@ function Jt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
2938
2997
  })
2939
2998
  });
2940
2999
  }
2941
- function Yt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, host: a, hostAction: s, hostTitle: c, hrefFor: l, language: u, location: d, onConfigureConnector: f, onHostAction: p, onLanguageChange: m, onNavigate: h, preferences: g, theme: _, variables: v = !0 }) {
2942
- let y = We(h);
3000
+ function Xt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, host: a, hostAction: s, hostTitle: c, hrefFor: l, language: u, location: d, onConfigureConnector: f, onHostAction: p, onLanguageChange: m, onNavigate: h, preferences: g, theme: _, variables: v = !0 }) {
3001
+ let y = Ge(h);
2943
3002
  y.current = h;
2944
- let [{ i18n: b, navigation: x, store: S }] = G(() => {
2945
- let e = R(u), t = new Wt(new Ee((e, t) => a.request(e, t), (e, t) => a.subscribeFlow(e, t), (e) => a.subscribeFlowCatalog(e)), g, () => crypto.randomUUID(), e, a, v);
3003
+ let [{ i18n: b, navigation: x, store: S }] = W(() => {
3004
+ let e = L(u), t = new Gt(new De((e, t) => a.request(e, t), (e, t) => a.subscribeFlow(e, t), (e) => a.subscribeFlowCatalog(e)), g, () => crypto.randomUUID(), e, a, v);
2946
3005
  return {
2947
3006
  i18n: e,
2948
- navigation: new Ke(t, d, (e, t) => y.current(e, t)),
3007
+ navigation: new qe(t, d, (e, t) => y.current(e, t)),
2949
3008
  store: t
2950
3009
  };
2951
3010
  });
2952
- return W(() => {
3011
+ return U(() => {
2953
3012
  x.start();
2954
3013
  let e = () => {
2955
3014
  S.connectors.refreshAfterAuthorization(), S.triggers.refreshAfterAuthorization(), S.refreshVariableNames();
@@ -2961,17 +3020,17 @@ function Yt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
2961
3020
  b,
2962
3021
  x,
2963
3022
  S
2964
- ]), W(() => void x.apply(d), [d, x]), W(() => {
3023
+ ]), U(() => void x.apply(d), [d, x]), U(() => {
2965
3024
  b.lang != u && b.switchLang(u);
2966
- }, [b, u]), /* @__PURE__ */ K(o, {
3025
+ }, [b, u]), /* @__PURE__ */ G(o, {
2967
3026
  i18n: b,
2968
- children: /* @__PURE__ */ q("div", {
3027
+ children: /* @__PURE__ */ K("div", {
2969
3028
  className: "open-flow-theme open-flow-workbench",
2970
3029
  "data-theme": _,
2971
- children: [/* @__PURE__ */ K(qt, {
3030
+ children: [/* @__PURE__ */ G(Jt, {
2972
3031
  host: a,
2973
3032
  store: S
2974
- }), /* @__PURE__ */ K(Jt, {
3033
+ }), /* @__PURE__ */ G(Yt, {
2975
3034
  catalogWidth: e,
2976
3035
  createFlow: t,
2977
3036
  createFlowDisabled: n,
@@ -2991,8 +3050,8 @@ function Yt({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
2991
3050
  })
2992
3051
  });
2993
3052
  }
2994
- function Xt({ sessionKey: e, ...t }) {
2995
- return /* @__PURE__ */ K(Yt, { ...t }, e);
3053
+ function Zt({ sessionKey: e, ...t }) {
3054
+ return /* @__PURE__ */ G(Xt, { ...t }, e);
2996
3055
  }
2997
3056
  //#endregion
2998
- export { Kt as OpenFlowSessionGate, Xt as OpenFlowWorkbench, Be as isWorkbenchLanguage, Ve as resolveWorkbenchLanguage, ze as workbenchLanguageNames, Re as workbenchLanguages };
3057
+ export { qt as OpenFlowSessionGate, Zt as OpenFlowWorkbench, He as isWorkbenchLanguage, Ue as resolveWorkbenchLanguage, Ve as workbenchLanguageNames, Be as workbenchLanguages };