@oomol-lab/open-flow 0.1.0-beta.14 → 0.1.0-beta.16

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.
Files changed (44) hide show
  1. package/dist/browser/{createResourceDialog-Cdixb0WC.js → createResourceDialog-DRUIXBbz.js} +24 -25
  2. package/dist/browser/dist-B_T-OpQp.js +4 -0
  3. package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
  4. package/dist/browser/{esm-3CD4_kEl.js → esm-B7A42FzW.js} +11 -1
  5. package/dist/browser/flow-authoring.js +1 -1
  6. package/dist/browser/flow-change.js +1 -1
  7. package/dist/browser/flowChanges-iuoam3Bx.js +10753 -0
  8. package/dist/browser/{flowRunInputEditorStore-NPGePkvP.js → flowRunInputEditorStore-BBqQIOCR.js} +1017 -4100
  9. package/dist/browser/{flowWorkspace-DvitOPqI.js → flowWorkspace-B0UAQ-s7.js} +76839 -91049
  10. package/dist/browser/i18n-JtW9O5x3.js +6881 -0
  11. package/dist/browser/inputValues-DICmJoN-.js +43 -0
  12. package/dist/browser/{languages-i3Xmpt6S.js → languages-C0zQ4GSo.js} +2 -13
  13. package/dist/browser/licenses.md +46 -729
  14. package/dist/browser/main-BDnNHhkU.js +50 -0
  15. package/dist/browser/{markdownContent-BawLYUjh.js → markdownContent-tWc7bRAs.js} +6 -6
  16. package/dist/browser/theme.css +427 -0
  17. package/dist/browser/ui-input.d.ts +3 -0
  18. package/dist/browser/ui-label.d.ts +3 -0
  19. package/dist/browser/ui-textarea.d.ts +3 -0
  20. package/dist/browser/ui.css +2 -0
  21. package/dist/browser/ui.css.d.ts +1 -0
  22. package/dist/browser/ui.d.ts +3 -0
  23. package/dist/browser/ui.js +2401 -0
  24. package/dist/browser/useValueChanged-DSookOEC.js +2944 -0
  25. package/dist/browser/workbench.css +1 -1
  26. package/dist/browser/workbench.js +337 -338
  27. package/dist/browser/workbenchSelect-DgxXqCAa.js +11665 -0
  28. package/dist/common/control-api-conformance.js +7 -6
  29. package/dist/common/control-api.js +16 -16
  30. package/dist/common/control-requests.js +1 -1
  31. package/dist/common/flow-encoding.js +1 -1
  32. package/dist/common/flow-semantics.js +1 -1
  33. package/dist/common/mcp.d.ts +220 -0
  34. package/dist/common/mcp.js +2941 -1495
  35. package/dist/common/scheduler.js +1 -1
  36. package/package.json +9 -1
  37. package/dist/browser/DesignerIcon-Bzpx8BtG.js +0 -2272
  38. package/dist/browser/dist-CP0883sY.js +0 -4
  39. package/dist/browser/flowChanges-CNSahvWH.js +0 -14094
  40. package/dist/browser/getPseudoElementBounds-Dfqo78k7.js +0 -7151
  41. package/dist/browser/inputValues-CczmpMHr.js +0 -30
  42. package/dist/browser/main-DmjVyuWr.js +0 -76
  43. package/dist/browser/select-DCGY8Lom.js +0 -7428
  44. package/dist/browser/workbenchSelect-DdXtOYD1.js +0 -30
@@ -1,11 +1,10 @@
1
- import { a as e, f as t, i as n } from "./dist-C46JByB-.js";
2
- import { a as r, i, s as a, t as o } from "./main-DmjVyuWr.js";
3
- import { $ as s, B as c, C as l, D as u, F as d, G as f, H as p, I as m, J as h, L as g, M as _, N as v, O as y, P as b, Q as x, S, T as C, U as w, V as T, W as E, X as D, Y as ee, Z as O, _ as k, _t as A, a as j, at as te, b as ne, c as re, ct as ie, d as ae, dt as oe, et as se, f as ce, ft as le, g as ue, gt as de, h as fe, ht as M, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, nt as N, o as be, ot as xe, p as Se, pt as P, q as Ce, r as F, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, w as Me, x as Ne, y as Pe, z as I } from "./flowChanges-CNSahvWH.js";
4
- import { Ot as Fe, Un as Ie, Vn as L, jt as R } from "./getPseudoElementBounds-Dfqo78k7.js";
5
- import { B as Le, C as z, G as Re, H as ze, L as Be, S as Ve, U as He, W as Ue, _ as We, c as B, d as Ge, f as Ke, h as qe, l as Je, m as Ye, p as Xe, u as Ze } from "./select-DCGY8Lom.js";
6
- import { _ as Qe, c as $e, f as et, s as tt, u as nt } from "./DesignerIcon-Bzpx8BtG.js";
7
- import { i as rt, n as it, r as V, t as at } from "./languages-i3Xmpt6S.js";
8
- import { t as ot } from "./workbenchSelect-DdXtOYD1.js";
1
+ import { a as e, i as t, l as n } from "./dist-Dz6Nglsd.js";
2
+ import { a as r, i, r as a, t as o } from "./main-BDnNHhkU.js";
3
+ import { C as s, D as c, Et as l, F as u, G as d, H as f, I as p, Jt as m, Kt as h, M as g, N as _, O as v, P as y, Q as b, S as x, St as S, T as C, W as w, X as T, Xt as E, Y as D, Yt as O, Z as k, _ as A, _t as j, a as M, at as N, b as ee, bt as te, c as ne, ct as re, d as ie, dt as ae, et as oe, f as se, ft as ce, g as le, gt as ue, h as de, ht as fe, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, mt as ye, nt as be, o as xe, ot as Se, p as Ce, pt as we, q as Te, qt as Ee, r as P, rt as De, s as Oe, st as ke, t as Ae, tt as je, u as Me, ut as F, v as Ne, vt as Pe, w as Fe, wt as Ie, x as Le, y as Re, yt as ze } from "./flowChanges-iuoam3Bx.js";
4
+ import { Y as Be, c as I, i as Ve, q as L } from "./useValueChanged-DSookOEC.js";
5
+ import { $t as He, An as Ue, C as We, Dn as Ge, E as Ke, Nt as qe, On as Je, Rt as Ye, S as Xe, T as Ze, Tn as Qe, b as $e, kn as R, l as z, t as et, w as tt, x as nt, zt as B } from "./workbenchSelect-DgxXqCAa.js";
6
+ import { t as V } from "./i18n-JtW9O5x3.js";
7
+ import { i as rt, n as it, r as at, t as ot } from "./languages-C0zQ4GSo.js";
9
8
  import { Suspense as st, lazy as ct, useEffect as H, useRef as U, useState as W } from "react";
10
9
  import { Fragment as lt, jsx as G, jsxs as K } from "react/jsx-runtime";
11
10
  import * as ut from "effect/Cause";
@@ -23,10 +22,10 @@ var pt = class {
23
22
  #o;
24
23
  #s;
25
24
  #c;
26
- constructor(e, n, r) {
27
- this.#r = t("design"), this.#i = 0, this.#a = !1, this.#o = !1, this.#s = !1, this.#c = [], this.$ = { view: this.#r }, this.#l = () => {
25
+ constructor(e, t, r) {
26
+ this.#r = n("design"), this.#i = 0, this.#a = !1, this.#o = !1, this.#s = !1, this.#c = [], this.$ = { view: this.#r }, this.#l = () => {
28
27
  this.#o && !this.#s && this.#u(this.#r.value, !0);
29
- }, this.#t = n, this.#e = r, this.#n = e, this.#r.set(n.view);
28
+ }, this.#t = t, this.#e = r, this.#n = e, this.#r.set(t.view);
30
29
  }
31
30
  async start() {
32
31
  let e = this.#t, t = ++this.#i;
@@ -96,49 +95,49 @@ function mt(e, t) {
96
95
  }
97
96
  //#endregion
98
97
  //#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
99
- var ht = ct(() => import("./createResourceDialog-Cdixb0WC.js")), gt = rt.map((e) => ({
100
- label: V[e],
98
+ var ht = ct(() => import("./createResourceDialog-DRUIXBbz.js")), gt = rt.map((e) => ({
99
+ label: at[e],
101
100
  value: e
102
101
  }));
103
102
  function _t({ language: e, onLanguageChange: t }) {
104
- let n = r(), [i, a] = W(null);
103
+ let n = i(), [r, a] = W(null);
105
104
  return t == null ? null : /* @__PURE__ */ K("div", {
106
105
  className: "resource-language",
107
106
  ref: a,
108
107
  children: [/* @__PURE__ */ G("span", {
109
108
  className: "sr-only",
110
109
  children: n("language.label")
111
- }), /* @__PURE__ */ G(ot, {
110
+ }), /* @__PURE__ */ G(et, {
112
111
  ariaLabel: n("language.label"),
113
112
  onValueChange: (e) => t(e),
114
113
  options: gt,
115
- portalRoot: i,
114
+ portalRoot: r,
116
115
  value: e
117
116
  })]
118
117
  });
119
118
  }
120
- function vt({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: s }) {
121
- let [c, l] = W(null), u = U(null), d = U(null), f = U(null), p = i(), m = r(), [h, g] = W("idle"), [_, v] = W(n.name), [y, b] = W(), x = n.live != null && n.live.revisionId != n.draftRevisionId;
122
- async function S(e) {
123
- b(e == "publish" ? "publish" : "enabled");
119
+ function vt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
120
+ let [c, u] = W(null), d = U(null), f = U(null), p = U(null), m = a(), g = i(), [_, v] = W("idle"), [y, b] = W(n.name), [x, C] = W(), w = n.live != null && n.live.revisionId != n.draftRevisionId;
121
+ async function T(e) {
122
+ C(e == "publish" ? "publish" : "enabled");
124
123
  try {
125
124
  e == "publish" ? await s.workspace.publishFlow(n) : await s.workspace.setFlowEnabled(n, e);
126
125
  } finally {
127
- b(void 0);
126
+ C(void 0);
128
127
  }
129
128
  }
130
- let C = z(_);
131
- async function w(e) {
129
+ let E = B(y);
130
+ async function D(e) {
132
131
  e.preventDefault();
133
- let t = _.trim();
134
- z(t) == null && await s.workspace.renameFlow(n.flowId, t) && g("idle");
132
+ let t = y.trim();
133
+ B(t) == null && await s.workspace.renameFlow(n.flowId, t) && v("idle");
135
134
  }
136
- async function T() {
137
- await s.workspace.deleteFlow(n.flowId) && g("idle");
135
+ async function O() {
136
+ await s.workspace.deleteFlow(n.flowId) && v("idle");
138
137
  }
139
138
  return /* @__PURE__ */ K("div", {
140
139
  className: "resource-item-row",
141
- ref: l,
140
+ ref: u,
142
141
  children: [
143
142
  /* @__PURE__ */ K(L, {
144
143
  "aria-disabled": n.status == "retiring",
@@ -149,9 +148,9 @@ function vt({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: s }) {
149
148
  e.preventDefault();
150
149
  return;
151
150
  }
152
- Oe(e, () => o(n));
151
+ re(e, () => o(n));
153
152
  },
154
- render: /* @__PURE__ */ G("a", { href: n.status == "retiring" ? void 0 : a }),
153
+ render: /* @__PURE__ */ G("a", { href: n.status == "retiring" ? void 0 : r }),
155
154
  tabIndex: n.status == "retiring" ? -1 : void 0,
156
155
  variant: "ghost",
157
156
  children: [
@@ -159,13 +158,13 @@ function vt({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: s }) {
159
158
  className: "resource-primary-cell",
160
159
  children: [/* @__PURE__ */ G("span", {
161
160
  className: "resource-icon",
162
- children: /* @__PURE__ */ G(B, { name: "flow" })
161
+ children: /* @__PURE__ */ G(z, { name: "flow" })
163
162
  }), /* @__PURE__ */ K("span", { children: [/* @__PURE__ */ K("span", {
164
163
  className: "flex min-w-0 items-center gap-2",
165
164
  children: [/* @__PURE__ */ G("strong", {
166
165
  className: "min-w-0 truncate",
167
166
  children: n.name
168
- }), e != null && /* @__PURE__ */ G(le, {
167
+ }), e != null && /* @__PURE__ */ G(h, {
169
168
  className: "min-w-0 shrink",
170
169
  title: e,
171
170
  variant: "secondary",
@@ -181,138 +180,138 @@ function vt({ badge: e, busy: t, flow: n, href: a, onSelect: o, store: s }) {
181
180
  }),
182
181
  /* @__PURE__ */ G("time", {
183
182
  dateTime: n.updatedAt,
184
- children: new Date(n.updatedAt).toLocaleString(p)
183
+ children: new Date(n.updatedAt).toLocaleString(m)
185
184
  }),
186
185
  /* @__PURE__ */ G("span", {
187
186
  className: "resource-status",
188
- children: m(n.status == "retiring" ? "resource.retiring" : n.live == null ? "resource.notPublished" : x ? "resource.unpublishedChanges" : "resource.isPublished")
187
+ children: g(n.status == "retiring" ? "resource.retiring" : n.live == null ? "resource.notPublished" : w ? "resource.unpublishedChanges" : "resource.isPublished")
189
188
  })
190
189
  ]
191
190
  }),
192
191
  /* @__PURE__ */ K("div", {
193
192
  className: "resource-live-controls",
194
- "aria-busy": y != null,
193
+ "aria-busy": x != null,
195
194
  children: [n.live == null ? /* @__PURE__ */ G("span", {
196
195
  className: "resource-status",
197
- title: m("resource.publishFirst"),
196
+ title: g("resource.publishFirst"),
198
197
  children: "—"
199
- }) : /* @__PURE__ */ K(Re, {
198
+ }) : /* @__PURE__ */ K(Ue, {
200
199
  className: "resource-enable",
201
- title: m("resource.enabledHint"),
202
- children: [/* @__PURE__ */ G(tt, {
203
- "aria-label": m("resource.enableFlow", { name: n.name }),
200
+ title: g("resource.enabledHint"),
201
+ children: [/* @__PURE__ */ G(_e, {
202
+ "aria-label": g("resource.enableFlow", { name: n.name }),
204
203
  checked: n.live?.enabled ?? !1,
205
- disabled: n.status != "active" || n.live == null || t != null || y != null,
206
- onCheckedChange: (e) => void S(e),
204
+ disabled: n.status != "active" || n.live == null || t != null || x != null,
205
+ onCheckedChange: (e) => void T(e),
207
206
  size: "sm"
208
- }), /* @__PURE__ */ G("span", { children: m(n.live?.enabled ? "resource.enabled" : "resource.disabled") })]
207
+ }), /* @__PURE__ */ G("span", { children: g(n.live?.enabled ? "resource.enabled" : "resource.disabled") })]
209
208
  }), /* @__PURE__ */ G(L, {
210
- disabled: n.status != "active" || t != null || y != null || n.live != null && !x,
211
- onClick: () => void S("publish"),
209
+ disabled: n.status != "active" || t != null || x != null || n.live != null && !w,
210
+ onClick: () => void T("publish"),
212
211
  size: "sm",
213
212
  variant: "outline",
214
- children: m(y == "publish" ? "workspace.publishing" : n.live == null ? "resource.publish" : "resource.publishUpdate")
213
+ children: g(x == "publish" ? "workspace.publishing" : n.live == null ? "resource.publish" : "resource.publishUpdate")
215
214
  })]
216
215
  }),
217
- n.status == "active" && /* @__PURE__ */ K($e, { children: [/* @__PURE__ */ G(Qe, {
218
- "aria-label": m("sidebar.flowActions", { name: n.name }),
219
- disabled: t != null || y != null,
216
+ n.status == "active" && /* @__PURE__ */ K(te, { children: [/* @__PURE__ */ G(l, {
217
+ "aria-label": g("sidebar.flowActions", { name: n.name }),
218
+ disabled: t != null || x != null,
220
219
  render: /* @__PURE__ */ G(L, {
221
220
  className: "resource-row-more",
222
- ref: u,
221
+ ref: d,
223
222
  size: "icon-sm",
224
223
  variant: "ghost",
225
- children: /* @__PURE__ */ G(B, { name: "more" })
224
+ children: /* @__PURE__ */ G(z, { name: "more" })
226
225
  })
227
- }), /* @__PURE__ */ K(nt, {
226
+ }), /* @__PURE__ */ K(S, {
228
227
  align: "end",
229
228
  className: "min-w-36",
230
229
  container: c,
231
- finalFocus: h == "idle",
232
- children: [/* @__PURE__ */ G(et, {
230
+ finalFocus: _ == "idle",
231
+ children: [/* @__PURE__ */ G(Ie, {
233
232
  onClick: () => {
234
- v(n.name), g("rename");
233
+ b(n.name), v("rename");
235
234
  },
236
- children: m("common.rename")
237
- }), /* @__PURE__ */ G(et, {
238
- onClick: () => g("delete"),
235
+ children: g("common.rename")
236
+ }), /* @__PURE__ */ G(Ie, {
237
+ onClick: () => v("delete"),
239
238
  variant: "destructive",
240
- children: m("common.delete")
239
+ children: g("common.delete")
241
240
  })]
242
241
  })] }),
243
- /* @__PURE__ */ G(Je, {
244
- open: h == "rename",
242
+ /* @__PURE__ */ G($e, {
243
+ open: _ == "rename",
245
244
  onOpenChange: (e) => {
246
- e || g("idle");
245
+ e || v("idle");
247
246
  },
248
- children: /* @__PURE__ */ G(Ge, {
247
+ children: /* @__PURE__ */ G(Xe, {
249
248
  container: c,
250
- initialFocus: d,
251
- finalFocus: u,
252
- closeLabel: m("common.cancel"),
249
+ initialFocus: f,
250
+ finalFocus: d,
251
+ closeLabel: g("common.cancel"),
253
252
  children: /* @__PURE__ */ K("form", {
254
253
  className: "flex flex-col gap-4",
255
- onSubmit: (e) => void w(e),
254
+ onSubmit: (e) => void D(e),
256
255
  children: [
257
- /* @__PURE__ */ G(Ye, { children: /* @__PURE__ */ G(qe, { children: m("sidebar.renameFlow", { name: n.name }) }) }),
258
- /* @__PURE__ */ K(Le, {
259
- "data-invalid": _.length > 0 && C != null,
256
+ /* @__PURE__ */ G(Ze, { children: /* @__PURE__ */ G(Ke, { children: g("sidebar.renameFlow", { name: n.name }) }) }),
257
+ /* @__PURE__ */ K(Qe, {
258
+ "data-invalid": y.length > 0 && E != null,
260
259
  children: [
261
- /* @__PURE__ */ G(Ue, {
260
+ /* @__PURE__ */ G(R, {
262
261
  htmlFor: `rename-flow-${n.flowId}`,
263
- children: m("resource.flowName")
262
+ children: g("resource.flowName")
264
263
  }),
265
- /* @__PURE__ */ G(R, {
264
+ /* @__PURE__ */ G(I, {
266
265
  autoComplete: "off",
267
- "aria-invalid": _.length > 0 && C != null,
268
- "aria-describedby": _.length > 0 && C != null ? `rename-error-${n.flowId}` : void 0,
266
+ "aria-invalid": y.length > 0 && E != null,
267
+ "aria-describedby": y.length > 0 && E != null ? `rename-error-${n.flowId}` : void 0,
269
268
  id: `rename-flow-${n.flowId}`,
270
269
  name: "flow-name",
271
- onChange: (e) => v(e.target.value),
272
- ref: d,
270
+ onChange: (e) => b(e.target.value),
271
+ ref: f,
273
272
  required: !0,
274
- value: _
273
+ value: y
275
274
  }),
276
- _.length > 0 && C != null && /* @__PURE__ */ G(ze, {
275
+ y.length > 0 && E != null && /* @__PURE__ */ G(Ge, {
277
276
  id: `rename-error-${n.flowId}`,
278
- children: m(`resource.nameIssue.${C}`, { max: 80 })
277
+ children: g(`resource.nameIssue.${E}`, { max: 80 })
279
278
  })
280
279
  ]
281
280
  }),
282
- /* @__PURE__ */ K(Xe, { children: [/* @__PURE__ */ G(Ze, {
281
+ /* @__PURE__ */ K(tt, { children: [/* @__PURE__ */ G(nt, {
283
282
  render: /* @__PURE__ */ G(L, { variant: "outline" }),
284
283
  type: "button",
285
- children: m("common.cancel")
284
+ children: g("common.cancel")
286
285
  }), /* @__PURE__ */ G(L, {
287
- disabled: t != null || C != null,
286
+ disabled: t != null || E != null,
288
287
  type: "submit",
289
- children: m("common.save")
288
+ children: g("common.save")
290
289
  })] })
291
290
  ]
292
291
  })
293
292
  })
294
293
  }),
295
- /* @__PURE__ */ G(Je, {
296
- open: h == "delete",
294
+ /* @__PURE__ */ G($e, {
295
+ open: _ == "delete",
297
296
  onOpenChange: (e) => {
298
- e || g("idle");
297
+ e || v("idle");
299
298
  },
300
- children: /* @__PURE__ */ K(Ge, {
299
+ children: /* @__PURE__ */ K(Xe, {
301
300
  container: c,
302
- initialFocus: f,
303
- finalFocus: u,
301
+ initialFocus: p,
302
+ finalFocus: d,
304
303
  showCloseButton: !1,
305
- children: [/* @__PURE__ */ K(Ye, { children: [/* @__PURE__ */ G(qe, { children: m("sidebar.deleteFlowConfirm", { name: n.name }) }), /* @__PURE__ */ G(Ke, { children: m("resource.deleteDescription") })] }), /* @__PURE__ */ K(Xe, { children: [/* @__PURE__ */ G(Ze, {
304
+ children: [/* @__PURE__ */ K(Ze, { children: [/* @__PURE__ */ G(Ke, { children: g("sidebar.deleteFlowConfirm", { name: n.name }) }), /* @__PURE__ */ G(We, { children: g("resource.deleteDescription") })] }), /* @__PURE__ */ K(tt, { children: [/* @__PURE__ */ G(nt, {
306
305
  render: /* @__PURE__ */ G(L, {
307
- ref: f,
306
+ ref: p,
308
307
  variant: "outline"
309
308
  }),
310
- children: m("common.cancel")
309
+ children: g("common.cancel")
311
310
  }), /* @__PURE__ */ G(L, {
312
311
  disabled: t != null,
313
- onClick: () => void T(),
312
+ onClick: () => void O(),
314
313
  variant: "destructive",
315
- children: m(t == "flow" ? "common.deleting" : "common.delete")
314
+ children: g(t == "flow" ? "common.deleting" : "common.delete")
316
315
  })] })]
317
316
  })
318
317
  })
@@ -326,27 +325,27 @@ function yt() {
326
325
  children: [
327
326
  /* @__PURE__ */ K("span", {
328
327
  className: "resource-primary-cell",
329
- children: [/* @__PURE__ */ G(N, { className: "size-8 shrink-0" }), /* @__PURE__ */ K("span", {
328
+ children: [/* @__PURE__ */ G(F, { className: "size-8 shrink-0" }), /* @__PURE__ */ K("span", {
330
329
  className: "resource-skeleton-copy",
331
- children: [/* @__PURE__ */ G(N, { className: "h-3.5 w-36" }), /* @__PURE__ */ G(N, { className: "h-2.5 w-48 max-w-full" })]
330
+ children: [/* @__PURE__ */ G(F, { className: "h-3.5 w-36" }), /* @__PURE__ */ G(F, { className: "h-2.5 w-48 max-w-full" })]
332
331
  })]
333
332
  }),
334
- /* @__PURE__ */ G(N, { className: "h-3 w-28" }),
335
- /* @__PURE__ */ G(N, { className: "h-3 w-16" })
333
+ /* @__PURE__ */ G(F, { className: "h-3 w-28" }),
334
+ /* @__PURE__ */ G(F, { className: "h-3 w-16" })
336
335
  ]
337
336
  });
338
337
  }
339
- function bt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBadges: i, hrefForFlow: o, hostAction: s, hostTitle: c, language: l, onCreateFlow: u, onHostAction: d, onLanguageChange: f, onSelectFlow: p, store: m }) {
340
- let h = r(), g = a(m.workspace.$.busy), _ = a(m.workspace.$.flowLoadFailed), v = a(m.workspace.$.flowLoadMoreFailed), y = a(m.workspace.$.flowLoading), b = a(m.workspace.$.flowLoadingMore), x = a(m.workspace.$.flowNextCursor), S = a(m.workspace.$.flowRefreshing), C = a(m.workspace.$.flows), w = a(m.workspace.$.flowTotal), [T, E] = W(!1), [D, ee] = W(""), [O, k] = W(""), A = D.trim().toLocaleLowerCase(), j = C.filter((e) => e.name.toLocaleLowerCase().includes(A));
341
- async function ne(e) {
338
+ function bt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBadges: a, hrefForFlow: o, hostAction: s, hostTitle: c, language: l, onCreateFlow: u, onHostAction: d, onLanguageChange: f, onSelectFlow: p, store: m }) {
339
+ let h = i(), g = r(m.workspace.$.busy), _ = r(m.workspace.$.flowLoadFailed), v = r(m.workspace.$.flowLoadMoreFailed), y = r(m.workspace.$.flowLoading), b = r(m.workspace.$.flowLoadingMore), x = r(m.workspace.$.flowNextCursor), S = r(m.workspace.$.flowRefreshing), C = r(m.workspace.$.flows), w = r(m.workspace.$.flowTotal), [T, E] = W(!1), [D, O] = W(""), [k, A] = W(""), M = D.trim().toLocaleLowerCase(), N = C.filter((e) => e.name.toLocaleLowerCase().includes(M));
340
+ async function ee(e) {
342
341
  e.preventDefault();
343
- let t = O.trim();
344
- z(t) != null || !await u(t) || (E(!1), k(""));
342
+ let t = k.trim();
343
+ B(t) != null || !await u(t) || (E(!1), A(""));
345
344
  }
346
345
  return /* @__PURE__ */ G("main", {
347
346
  className: "resource-browser",
348
347
  children: /* @__PURE__ */ K("div", {
349
- className: Ie("resource-page", e != "default" && "resource-page-full"),
348
+ className: Be("resource-page", e != "default" && "resource-page-full"),
350
349
  children: [
351
350
  /* @__PURE__ */ G("h1", {
352
351
  className: "sr-only",
@@ -371,16 +370,16 @@ function bt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
371
370
  language: l,
372
371
  onLanguageChange: f
373
372
  }),
374
- /* @__PURE__ */ K(we, {
373
+ /* @__PURE__ */ K(ae, {
375
374
  className: "w-full sm:w-56",
376
- children: [/* @__PURE__ */ G(pe, { children: /* @__PURE__ */ G(B, {
375
+ children: [/* @__PURE__ */ G(ce, { children: /* @__PURE__ */ G(z, {
377
376
  name: "search",
378
377
  size: 17
379
- }) }), /* @__PURE__ */ G(te, {
378
+ }) }), /* @__PURE__ */ G(we, {
380
379
  autoComplete: "off",
381
380
  "aria-label": h("resource.searchFlows"),
382
381
  name: "flow-search",
383
- onChange: (e) => ee(e.target.value),
382
+ onChange: (e) => O(e.target.value),
384
383
  placeholder: h("resource.searchFlows"),
385
384
  value: D
386
385
  })]
@@ -392,7 +391,7 @@ function bt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
392
391
  size: "icon",
393
392
  title: h("common.refresh"),
394
393
  variant: "outline",
395
- children: /* @__PURE__ */ G(B, {
394
+ children: /* @__PURE__ */ G(z, {
396
395
  className: S ? "animate-spin" : void 0,
397
396
  name: "refresh"
398
397
  })
@@ -401,12 +400,12 @@ function bt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
401
400
  className: "resource-page-primary-action",
402
401
  disabled: g != null,
403
402
  onClick: () => E(!0),
404
- children: [/* @__PURE__ */ G(B, {
403
+ children: [/* @__PURE__ */ G(z, {
405
404
  "data-icon": "inline-start",
406
405
  name: "plus"
407
406
  }), h("resource.newFlow")]
408
407
  }),
409
- s != null && c != null && d != null && /* @__PURE__ */ G(se, {
408
+ s != null && c != null && d != null && /* @__PURE__ */ G(ke, {
410
409
  action: s,
411
410
  onAction: d,
412
411
  title: c
@@ -426,46 +425,46 @@ function bt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
426
425
  }),
427
426
  /* @__PURE__ */ G("div", {
428
427
  className: "resource-list",
429
- children: y ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ G(yt, {}, t)) : _ ? /* @__PURE__ */ K(xe, {
428
+ children: y ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ G(yt, {}, t)) : _ ? /* @__PURE__ */ K(ye, {
430
429
  className: "min-h-64",
431
430
  role: "alert",
432
- children: [/* @__PURE__ */ K(_e, { children: [
433
- /* @__PURE__ */ G(Ae, {
431
+ children: [/* @__PURE__ */ K(j, { children: [
432
+ /* @__PURE__ */ G(Pe, {
434
433
  variant: "icon",
435
- children: /* @__PURE__ */ G(B, {
434
+ children: /* @__PURE__ */ G(z, {
436
435
  name: "alert",
437
436
  size: 20
438
437
  })
439
438
  }),
440
- /* @__PURE__ */ G(oe, { children: h("resource.flowsLoadFailed") }),
441
- /* @__PURE__ */ G(ie, { children: h("resource.flowsLoadFailedDescription") })
442
- ] }), /* @__PURE__ */ G(Ee, { children: /* @__PURE__ */ G(L, {
439
+ /* @__PURE__ */ G(ze, { children: h("resource.flowsLoadFailed") }),
440
+ /* @__PURE__ */ G(ue, { children: h("resource.flowsLoadFailedDescription") })
441
+ ] }), /* @__PURE__ */ G(fe, { children: /* @__PURE__ */ G(L, {
443
442
  onClick: () => void m.retryFlows(),
444
443
  variant: "outline",
445
444
  children: h("empty.retry")
446
445
  }) })]
447
- }) : j.length == 0 ? /* @__PURE__ */ K(xe, {
446
+ }) : N.length == 0 ? /* @__PURE__ */ K(ye, {
448
447
  className: "min-h-64",
449
- children: [/* @__PURE__ */ K(_e, { children: [
450
- /* @__PURE__ */ G(Ae, {
448
+ children: [/* @__PURE__ */ K(j, { children: [
449
+ /* @__PURE__ */ G(Pe, {
451
450
  variant: "icon",
452
- children: /* @__PURE__ */ G(B, {
451
+ children: /* @__PURE__ */ G(z, {
453
452
  name: "flow",
454
453
  size: 20
455
454
  })
456
455
  }),
457
- /* @__PURE__ */ G(oe, { children: h(A.length == 0 ? "resource.noFlows" : "resource.noMatchingFlows") }),
458
- /* @__PURE__ */ G(ie, { children: h(A.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
459
- ] }), A.length == 0 && /* @__PURE__ */ G(Ee, { children: /* @__PURE__ */ K(L, {
456
+ /* @__PURE__ */ G(ze, { children: h(M.length == 0 ? "resource.noFlows" : "resource.noMatchingFlows") }),
457
+ /* @__PURE__ */ G(ue, { children: h(M.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
458
+ ] }), M.length == 0 && /* @__PURE__ */ G(fe, { children: /* @__PURE__ */ K(L, {
460
459
  onClick: () => E(!0),
461
460
  variant: "outline",
462
- children: [/* @__PURE__ */ G(B, {
461
+ children: [/* @__PURE__ */ G(z, {
463
462
  "data-icon": "inline-start",
464
463
  name: "plus"
465
464
  }), h("resource.newFlow")]
466
465
  }) })]
467
- }) : j.map((e) => /* @__PURE__ */ G(vt, {
468
- badge: i?.[e.flowId],
466
+ }) : N.map((e) => /* @__PURE__ */ G(vt, {
467
+ badge: a?.[e.flowId],
469
468
  busy: g,
470
469
  flow: e,
471
470
  href: o(e),
@@ -490,12 +489,12 @@ function bt({ catalogWidth: e, createFlowDisabled: t, createFlowField: n, flowBa
490
489
  disabled: t,
491
490
  field: n,
492
491
  id: "flow-name",
493
- issue: z(O),
492
+ issue: B(k),
494
493
  label: h("resource.flowName"),
495
- name: O,
496
- onNameChange: k,
494
+ name: k,
495
+ onNameChange: A,
497
496
  onOpenChange: E,
498
- onSubmit: (e) => void ne(e),
497
+ onSubmit: (e) => void ee(e),
499
498
  pending: g == "flow",
500
499
  title: h("resource.newFlow")
501
500
  })
@@ -532,14 +531,14 @@ var xt = (e) => crypto.getRandomValues(new Uint8Array(e)), St = (e, t, n) => {
532
531
  //#endregion
533
532
  //#region src/flow/common/edgeChanges.ts
534
533
  function wt(e, t, n) {
535
- return Et(e, t)?.edges.some((e) => Fe(e, n)) ? [] : [{
534
+ return Et(e, t)?.edges.some((e) => Ve(e, n)) ? [] : [{
536
535
  edge: n,
537
536
  kind: "graph.edge.connect",
538
537
  target: t
539
538
  }];
540
539
  }
541
540
  function Tt(e, t, n) {
542
- return Et(e, t)?.edges.some((e) => Fe(e, n)) ? [{
541
+ return Et(e, t)?.edges.some((e) => Ve(e, n)) ? [{
543
542
  edge: n,
544
543
  kind: "graph.edge.disconnect",
545
544
  target: t
@@ -599,17 +598,17 @@ var Nt = class {
599
598
  #e;
600
599
  #t;
601
600
  #n;
602
- #r = new w();
603
- #i = new w();
601
+ #r = new T();
602
+ #i = new T();
604
603
  #a;
605
- #o = new w();
606
- #s = new w();
604
+ #o = new T();
605
+ #s = new T();
607
606
  #c;
608
- #l = t(J);
607
+ #l = n(J);
609
608
  #u;
610
609
  #d;
611
610
  #f;
612
- constructor(t, n, r, i, a = A, o = P()) {
611
+ constructor(t, n, r, i, a = E, o = V()) {
613
612
  this.#e = t, this.#t = a, this.#n = o, this.#a = i, this.#c = r, this.#u = n, this.$ = {
614
613
  activities: e(this.#l, (e) => e.activities),
615
614
  activitiesLoadFailed: e(this.#l, (e) => e.activitiesLoadFailed),
@@ -683,7 +682,7 @@ var Nt = class {
683
682
  loadFailed: !r,
684
683
  loading: !1,
685
684
  refreshing: !1
686
- }), this.#c(p(e, this.#n.t));
685
+ }), this.#c(D(e, this.#n.t));
687
686
  }
688
687
  }
689
688
  async loadMore() {
@@ -712,7 +711,7 @@ var Nt = class {
712
711
  this.#S({
713
712
  loadMoreFailed: !0,
714
713
  loadingMore: !1
715
- }), this.#c(p(e, this.#n.t));
714
+ }), this.#c(D(e, this.#n.t));
716
715
  }
717
716
  }
718
717
  async publish() {
@@ -739,7 +738,7 @@ var Nt = class {
739
738
  publishing: e.status == "pending"
740
739
  }), await this.#_(r, e, s, t.name)) : !1;
741
740
  } catch (e) {
742
- return s() ? (e instanceof M && e.code == "live.conflict" && await this.#m(r), this.#c(p(e, this.#n.t)), !1) : !1;
741
+ return s() ? (e instanceof m && e.code == "live.conflict" && await this.#m(r), this.#c(D(e, this.#n.t)), !1) : !1;
743
742
  } finally {
744
743
  s() && this.#S({ publishing: !1 });
745
744
  }
@@ -765,7 +764,7 @@ var Nt = class {
765
764
  message: this.#n.t("notice.rolledBack", { revision: e.revisionId })
766
765
  }), !0);
767
766
  } catch (e) {
768
- return s() ? (e instanceof M && e.code == "live.conflict" && await this.#m(r), this.#c(p(e, this.#n.t)), !1) : !1;
767
+ return s() ? (e instanceof m && e.code == "live.conflict" && await this.#m(r), this.#c(D(e, this.#n.t)), !1) : !1;
769
768
  } finally {
770
769
  s() && this.#S({ rollingBackPublicationId: void 0 });
771
770
  }
@@ -806,7 +805,7 @@ var Nt = class {
806
805
  this.#S({
807
806
  activitiesLoading: !1,
808
807
  detailLoading: !1
809
- }), this.#c(p(r.reason, this.#n.t));
808
+ }), this.#c(D(r.reason, this.#n.t));
810
809
  return;
811
810
  }
812
811
  this.#S({
@@ -820,7 +819,7 @@ var Nt = class {
820
819
  }) : (this.#S({
821
820
  activitiesLoadFailed: !0,
822
821
  activitiesLoading: !1
823
- }), this.#c(p(i.reason, this.#n.t)));
822
+ }), this.#c(D(i.reason, this.#n.t)));
824
823
  }
825
824
  }
826
825
  async loadMoreTriggerActivities() {
@@ -849,7 +848,7 @@ var Nt = class {
849
848
  this.#S({
850
849
  activitiesLoadFailed: !0,
851
850
  activitiesLoadingMore: !1
852
- }), this.#c(p(e, this.#n.t));
851
+ }), this.#c(D(e, this.#n.t));
853
852
  }
854
853
  }
855
854
  async testTrigger() {
@@ -864,7 +863,7 @@ var Nt = class {
864
863
  let e = await this.#e.testFlowPollTrigger(n.flowId, t);
865
864
  return !i() || this.#l.value.selectedTriggerId != t ? !1 : (this.#S({ testResult: e }), !0);
866
865
  } catch (e) {
867
- return i() && this.#l.value.selectedTriggerId == t && this.#c(p(e, this.#n.t)), !1;
866
+ return i() && this.#l.value.selectedTriggerId == t && this.#c(D(e, this.#n.t)), !1;
868
867
  } finally {
869
868
  i() && this.#l.value.selectedTriggerId == t && this.#S({ testingTriggerId: void 0 });
870
869
  }
@@ -883,7 +882,7 @@ var Nt = class {
883
882
  message: this.#n.t(e.operatorState == "active" ? "notice.triggerPaused" : "notice.triggerResumed")
884
883
  }), !0) : !1;
885
884
  } catch (e) {
886
- return n() && this.#c(p(e, this.#n.t)), !1;
885
+ return n() && this.#c(D(e, this.#n.t)), !1;
887
886
  } finally {
888
887
  n() && this.#S({ changingTriggerId: void 0 });
889
888
  }
@@ -926,7 +925,7 @@ var Nt = class {
926
925
  if (t != null && t != "") try {
927
926
  return await this.#e.getPublishOperation(e.flowId, t);
928
927
  } catch (t) {
929
- if (t instanceof M && t.code == "publication.operation-not-found") {
928
+ if (t instanceof m && t.code == "publication.operation-not-found") {
930
929
  this.#a.setItem(this.#b(e.flowId), "");
931
930
  return;
932
931
  }
@@ -949,7 +948,7 @@ var Nt = class {
949
948
  try: (t) => this.#p(e, t),
950
949
  catch: (e) => e
951
950
  }).pipe(q.match({
952
- onFailure: (e) => (n() && this.#c(p(e, this.#n.t)), !1),
951
+ onFailure: (e) => (n() && this.#c(D(e, this.#n.t)), !1),
953
952
  onSuccess: () => !0
954
953
  }));
955
954
  return n() ? (a && this.#c({
@@ -978,14 +977,14 @@ var Nt = class {
978
977
  if (!n()) return;
979
978
  if ("error" in t) {
980
979
  let n = t.error;
981
- if (n instanceof M && n.code == "publication.operation-not-found") {
980
+ if (n instanceof m && n.code == "publication.operation-not-found") {
982
981
  this.#a.setItem(this.#b(e.flowId), ""), this.#x(e, {
983
982
  operation: void 0,
984
983
  publishing: !1
985
- }), this.#c(p(n, this.#n.t));
984
+ }), this.#c(D(n, this.#n.t));
986
985
  return;
987
986
  }
988
- this.#c(p(n, this.#n.t));
987
+ this.#c(D(n, this.#n.t));
989
988
  continue;
990
989
  }
991
990
  r = t.value, this.#x(e, { operation: r });
@@ -1016,8 +1015,8 @@ var Nt = class {
1016
1015
  function Ft(e) {
1017
1016
  switch (e.kind) {
1018
1017
  case "condition": return { [e.node.input.handle]: e.node.input };
1019
- case "subflow": return Ve(e.definition?.inputs ?? []);
1020
- case "task": return Ve(e.definition?.inputs ?? []);
1018
+ case "subflow": return Ye(e.definition?.inputs ?? []);
1019
+ case "task": return Ye(e.definition?.inputs ?? []);
1021
1020
  case "value": return {};
1022
1021
  case "wait": return { [e.node.input.handle]: e.node.input };
1023
1022
  }
@@ -1026,7 +1025,7 @@ function It(e) {
1026
1025
  return e.node.name == null ? e.kind == "task" || e.kind == "subflow" ? e.definition?.name ?? e.id : e.id : e.node.name;
1027
1026
  }
1028
1027
  function X(e, t) {
1029
- let n = I(e), r = n.graph({ kind: "flow" });
1028
+ let n = w(e), r = n.graph({ kind: "flow" });
1030
1029
  if (r == null) return [];
1031
1030
  let i = /* @__PURE__ */ new Set([t]), a = [t];
1032
1031
  for (; a.length > 0;) {
@@ -1038,7 +1037,7 @@ function X(e, t) {
1038
1037
  if (r.kind == "trigger") return r.trigger.kind == "manual" || r.trigger.kind == "cron" ? [] : [{
1039
1038
  definitions: [{
1040
1039
  handle: "payload",
1041
- jsonSchema: T(r.trigger),
1040
+ jsonSchema: Te(r.trigger),
1042
1041
  nullable: !1
1043
1042
  }],
1044
1043
  nodeId: e,
@@ -1064,7 +1063,7 @@ function Z(e) {
1064
1063
  ])]));
1065
1064
  }
1066
1065
  async function Lt(e, t, n, r) {
1067
- let { FlowRunInputEditorStore: i } = await import("./flowRunInputEditorStore-NPGePkvP.js").then((e) => e.r);
1066
+ let { FlowRunInputEditorStore: i } = await import("./flowRunInputEditorStore-BBqQIOCR.js").then((e) => e.n);
1068
1067
  return e.map((e) => {
1069
1068
  let a = new i(e.definitions, t);
1070
1069
  return e.nodeId == n && a.replaceValues({ payload: {} }), r?.[e.nodeId] != null && a.replaceValues(r[e.nodeId]), {
@@ -1088,14 +1087,14 @@ var Bt = class {
1088
1087
  #t;
1089
1088
  #n;
1090
1089
  #r;
1091
- #i = new w();
1092
- #a = new w();
1090
+ #i = new T();
1091
+ #a = new T();
1093
1092
  #o;
1094
1093
  #s = /* @__PURE__ */ new Map();
1095
1094
  #c;
1096
- #l = t(Pt);
1095
+ #l = n(Pt);
1097
1096
  #u;
1098
- constructor(t, n, r, i, a = P(), o = A) {
1097
+ constructor(t, n, r, i, a = V(), o = E) {
1099
1098
  this.#e = i, this.#t = t, this.#o = n, this.#c = r, this.#r = a, this.#n = o, this.$ = {
1100
1099
  inputRequest: e(this.#l, (e) => e.inputRequest),
1101
1100
  starting: e(this.#l, (e) => e.starting),
@@ -1117,7 +1116,7 @@ var Bt = class {
1117
1116
  try {
1118
1117
  return await this.#d("draft", e, t, t.revisionId, r, void 0, n);
1119
1118
  } catch (e) {
1120
- return r() && this.#c(p(e, this.#r.t)), "unavailable";
1119
+ return r() && this.#c(D(e, this.#r.t)), "unavailable";
1121
1120
  } finally {
1122
1121
  r() && this.#g({ starting: !1 });
1123
1122
  }
@@ -1127,7 +1126,7 @@ var Bt = class {
1127
1126
  try {
1128
1127
  return await this.#d("draft", e, t, t.revisionId, r, void 0, n, !0);
1129
1128
  } catch (e) {
1130
- return r() && this.#c(p(e, this.#r.t)), "unavailable";
1129
+ return r() && this.#c(D(e, this.#r.t)), "unavailable";
1131
1130
  } finally {
1132
1131
  r() && this.#g({ starting: !1 });
1133
1132
  }
@@ -1147,7 +1146,7 @@ var Bt = class {
1147
1146
  let r = await this.#t.getRevision(e.flowId, n.revisionId);
1148
1147
  return t() ? await this.#d("live", e, r, n.revisionId, t, n.publicationId) : "unavailable";
1149
1148
  } catch (e) {
1150
- return t() && this.#c(p(e, this.#r.t)), "unavailable";
1149
+ return t() && this.#c(D(e, this.#r.t)), "unavailable";
1151
1150
  } finally {
1152
1151
  t() && this.#g({ starting: !1 });
1153
1152
  }
@@ -1171,38 +1170,38 @@ var Bt = class {
1171
1170
  return r && this.#l.value.inputRequest === e && this.dismissInputs(), r;
1172
1171
  }
1173
1172
  async selectTrigger(e) {
1174
- let t = this.#l.value.inputRequest;
1175
- if (t == null || !t.triggers.some((t) => t.nodeId == e)) return;
1173
+ let n = this.#l.value.inputRequest;
1174
+ if (n == null || !n.triggers.some((t) => t.nodeId == e)) return;
1176
1175
  let r = this.#a.begin();
1177
- this.#h(t), this.#g({ starting: !0 });
1176
+ this.#h(n), this.#g({ starting: !0 });
1178
1177
  try {
1179
- let i = X(t.revision, e), a = this.#s.get(this.#m(t.flow.flowId, e)), o = await Lt(i, this.#r.lang$, e, a?.values);
1180
- if (!r() || this.#l.value.inputRequest !== t) {
1178
+ let i = X(n.revision, e), a = this.#s.get(this.#m(n.flow.flowId, e)), o = await Lt(i, this.#r.lang$, e, a?.values);
1179
+ if (!r() || this.#l.value.inputRequest !== n) {
1181
1180
  for (let e of o) e.editor.dispose();
1182
1181
  return;
1183
1182
  }
1184
- let s = n((e) => o.every((t) => e(t.editor.valid$)));
1183
+ let s = t((e) => o.every((t) => e(t.editor.valid$)));
1185
1184
  this.#g({ inputRequest: {
1186
- ...t,
1185
+ ...n,
1187
1186
  attempted: !1,
1188
1187
  groups: o,
1189
1188
  triggerId: e,
1190
1189
  valid: s
1191
- } }), this.#p(t);
1190
+ } }), this.#p(n);
1192
1191
  } catch (e) {
1193
- r() && this.#c(p(e, this.#r.t));
1192
+ r() && this.#c(D(e, this.#r.t));
1194
1193
  } finally {
1195
1194
  r() && this.#g({ starting: !1 });
1196
1195
  }
1197
1196
  }
1198
- async #d(e, t, r, i, a, o, s, c = !1) {
1197
+ async #d(e, n, r, i, a, o, s, c = !1) {
1199
1198
  let l = this.#l.value.inputRequest;
1200
1199
  this.#h(l), this.#g({
1201
1200
  inputRequest: void 0,
1202
1201
  starting: !0,
1203
1202
  submitting: void 0
1204
1203
  }), this.#p(l);
1205
- let u = I(r).graph({ kind: "flow" }), d = Object.entries(u?.nodes ?? {}).flatMap(([e, t]) => "inputs" in t ? [] : [{
1204
+ let u = w(r).graph({ kind: "flow" }), d = Object.entries(u?.nodes ?? {}).flatMap(([e, t]) => "inputs" in t ? [] : [{
1206
1205
  nodeId: e,
1207
1206
  title: t.name
1208
1207
  }]);
@@ -1215,28 +1214,28 @@ var Bt = class {
1215
1214
  kind: "error",
1216
1215
  message: this.#r.t("runInput.selectTrigger")
1217
1216
  }), "unavailable";
1218
- let p = f == null ? [] : X(r, f.nodeId), m = Z(p), h = f == null ? void 0 : this.#s.get(this.#m(t.flowId, f.nodeId)), g = f == null ? [] : await Lt(p, this.#r.lang$, f.nodeId, h?.values);
1217
+ let p = f == null ? [] : X(r, f.nodeId), m = Z(p), h = f == null ? void 0 : this.#s.get(this.#m(n.flowId, f.nodeId)), g = f == null ? [] : await Lt(p, this.#r.lang$, f.nodeId, h?.values);
1219
1218
  if (!a()) {
1220
1219
  for (let e of g) e.editor.dispose();
1221
1220
  return "unavailable";
1222
1221
  }
1223
- if (!c && f != null && g.length == 0) return await this.#f(e, t, i, {
1222
+ if (!c && f != null && g.length == 0) return await this.#f(e, n, i, {
1224
1223
  nodeId: f.nodeId,
1225
1224
  payload: {}
1226
1225
  }, {}, o) ? "started" : "unavailable";
1227
1226
  if (!c && f != null && h?.valid == 1 && h.signature == m && g.every((e) => e.editor.valid$.value)) {
1228
- let n = zt(g, f.nodeId);
1227
+ let t = zt(g, f.nodeId);
1229
1228
  for (let e of g) e.editor.dispose();
1230
- return await this.#f(e, t, i, {
1229
+ return await this.#f(e, n, i, {
1231
1230
  nodeId: f.nodeId,
1232
- payload: n.payload
1233
- }, n.inputs, o) ? "started" : "unavailable";
1231
+ payload: t.payload
1232
+ }, t.inputs, o) ? "started" : "unavailable";
1234
1233
  }
1235
- let _ = n((e) => f != null && g.every((t) => e(t.editor.valid$)));
1234
+ let _ = t((e) => f != null && g.every((t) => e(t.editor.valid$)));
1236
1235
  return this.#g({
1237
1236
  inputRequest: {
1238
1237
  attempted: !1,
1239
- flow: t,
1238
+ flow: n,
1240
1239
  groups: g,
1241
1240
  revision: r,
1242
1241
  triggers: d,
@@ -1287,7 +1286,7 @@ var Bt = class {
1287
1286
  });
1288
1287
  return !o() || !s() ? !1 : (this.#u = void 0, this.#o.follow(d, s));
1289
1288
  } catch (e) {
1290
- return o() && s() && this.#c(p(e, this.#r.t)), !1;
1289
+ return o() && s() && this.#c(D(e, this.#r.t)), !1;
1291
1290
  } finally {
1292
1291
  o() && this.#g({
1293
1292
  starting: !1,
@@ -1336,7 +1335,7 @@ function Q(e, t) {
1336
1335
  service: e.serviceName
1337
1336
  }) : e.description,
1338
1337
  group: t("addNode.connectorActions"),
1339
- icon: m(e),
1338
+ icon: p(e),
1340
1339
  id: `connector:${e.actionId}`,
1341
1340
  inputs: Ht(e.inputs),
1342
1341
  kind: "connector",
@@ -1363,7 +1362,7 @@ function Ut(e, t) {
1363
1362
  choices: r,
1364
1363
  description: t(r.length == 1 ? "addNode.connectorActionCountOne" : "addNode.connectorActionCount", { count: r.length }),
1365
1364
  group: t("addNode.connectorActions"),
1366
- icon: m(n),
1365
+ icon: p(n),
1367
1366
  id: `connector-provider:${n.serviceId}`,
1368
1367
  inputs: [],
1369
1368
  kind: "connector-group",
@@ -1378,7 +1377,7 @@ function Wt(e, t) {
1378
1377
  choices: [],
1379
1378
  description: t("addNode.connectorBrowseActions"),
1380
1379
  group: t("addNode.connectorActions"),
1381
- icon: m(e),
1380
+ icon: p(e),
1382
1381
  id: `connector-provider:${e.serviceId}`,
1383
1382
  inputs: [],
1384
1383
  kind: "connector-group",
@@ -1402,7 +1401,7 @@ function Gt(e, t) {
1402
1401
  function Kt(e, t, n) {
1403
1402
  if (e == null) return [];
1404
1403
  let r = [];
1405
- for (let i of [...c(e.revision.content).tasks].toSorted()) {
1404
+ for (let i of [...d(e.revision.content).tasks].toSorted()) {
1406
1405
  let a = e.task(i);
1407
1406
  if (a?.executor.kind != "connector") continue;
1408
1407
  let o = t[a.executor.action];
@@ -1436,8 +1435,8 @@ var qt = class {
1436
1435
  #p;
1437
1436
  #m;
1438
1437
  #h;
1439
- constructor(r, i, a, o, s = P()) {
1440
- this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Set(), this.#a = new w(), this.#o = new w(), this.#d = t(Vt), this.#h = !1, this.browseAddNodeOptions = async (e) => {
1438
+ constructor(r, i, a, o, s = V()) {
1439
+ this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Set(), this.#a = new T(), this.#o = new T(), this.#d = n(Vt), this.#h = !1, this.browseAddNodeOptions = async (e) => {
1441
1440
  if (this.#h) return;
1442
1441
  let t = this.#f.$.flowId.value;
1443
1442
  if (t == null) return;
@@ -1471,7 +1470,7 @@ var qt = class {
1471
1470
  return Ut([...o.values()], this.#t.t);
1472
1471
  }, this.#e = r, this.#n = o, this.#f = i, this.#u = a, this.#t = s;
1473
1472
  let c = e(this.#d, (e) => e.actions), l = e(this.#d, (e) => e.catalogs);
1474
- this.#l = n((e) => {
1473
+ this.#l = t((e) => {
1475
1474
  let t = Gt(e(i.$.selection), e(i.$.revision)), n = e(this.#d);
1476
1475
  if (t == null) return { authorizationPending: !1 };
1477
1476
  let r = n.actions[t.actionId], a = r == null ? void 0 : n.catalogs[r.serviceId], o = t.connectionId == null ? void 0 : a?.byId.get(t.connectionId);
@@ -1488,7 +1487,7 @@ var qt = class {
1488
1487
  actions: c,
1489
1488
  catalogs: l,
1490
1489
  connectionLoading: e(this.#d, (e) => e.connectionLoading),
1491
- diagnostics: n((e) => Kt(e(i.$.revision), e(c), e(l))),
1490
+ diagnostics: t((e) => Kt(e(i.$.revision), e(c), e(l))),
1492
1491
  selectedAction: e(this.#l, (e) => e.action),
1493
1492
  selectedActionError: e(this.#l, (e) => e.actionError),
1494
1493
  selectedActiveConnections: e(this.#l, (e) => e.activeConnections),
@@ -1531,7 +1530,7 @@ var qt = class {
1531
1530
  } catch (e) {
1532
1531
  this.#x(t, n) && this.#b({ actionError: {
1533
1532
  actionId: r.actionId,
1534
- message: p(e, this.#t.t).message
1533
+ message: D(e, this.#t.t).message
1535
1534
  } });
1536
1535
  } finally {
1537
1536
  this.#x(t, n) && this.#d.value.actionLoading == r.actionId && this.#b({ actionLoading: void 0 });
@@ -1543,7 +1542,7 @@ var qt = class {
1543
1542
  let r = await this.#e.listConnectorConnections(e, t, n);
1544
1543
  t.aborted || this.#h || n != this.#f.$.flowId.value || this.#b({ catalogs: {
1545
1544
  ...this.#d.value.catalogs,
1546
- [e]: y(r)
1545
+ [e]: v(r)
1547
1546
  } });
1548
1547
  }
1549
1548
  async loadCodeAction(e, t) {
@@ -1574,7 +1573,7 @@ var qt = class {
1574
1573
  serviceId: e
1575
1574
  }, this.#b({ authorizationServiceId: e });
1576
1575
  } catch (e) {
1577
- this.#h || this.#u(p(e, this.#t.t));
1576
+ this.#h || this.#u(D(e, this.#t.t));
1578
1577
  }
1579
1578
  }
1580
1579
  async setConnection(e, t) {
@@ -1607,13 +1606,13 @@ var qt = class {
1607
1606
  a = await this.#e.listConnectorConnections(t, void 0, e);
1608
1607
  } catch (n) {
1609
1608
  this.#x(r, e) && this.#b({ connectionError: {
1610
- message: p(n, this.#t.t).message,
1609
+ message: D(n, this.#t.t).message,
1611
1610
  serviceId: t
1612
1611
  } });
1613
1612
  return;
1614
1613
  }
1615
1614
  if (!this.#x(r, e)) return;
1616
- let o = y(a);
1615
+ let o = v(a);
1617
1616
  return this.#b({ catalogs: {
1618
1617
  ...this.#d.value.catalogs,
1619
1618
  [t]: o
@@ -1653,7 +1652,7 @@ var qt = class {
1653
1652
  }
1654
1653
  if (!this.#x(e, t)) return;
1655
1654
  let i = /* @__PURE__ */ new Set();
1656
- for (let e of c(n.revision.content).tasks) {
1655
+ for (let e of d(n.revision.content).tasks) {
1657
1656
  let t = n.task(e);
1658
1657
  if (t?.executor.kind != "connector") continue;
1659
1658
  let r = this.#d.value.actions[t.executor.action];
@@ -1677,7 +1676,7 @@ function Xt(e, t) {
1677
1676
  return {
1678
1677
  description: t.t("addNode.triggerNeedsConnection", { provider: e.provider }),
1679
1678
  group: t.t("addNode.integrationTriggers"),
1680
- icon: m({
1679
+ icon: p({
1681
1680
  serviceId: e.provider,
1682
1681
  serviceName: e.provider
1683
1682
  }),
@@ -1708,8 +1707,8 @@ var Zt = class {
1708
1707
  #l;
1709
1708
  #u;
1710
1709
  #d;
1711
- constructor(r, i, a, o, s = P()) {
1712
- this.#t = new AbortController(), this.#a = new w(), this.#o = /* @__PURE__ */ new Set(), this.#l = t(Jt), this.#d = !1, this.browseAddNodeOptions = async (e) => {
1710
+ constructor(r, i, a, o, s = V()) {
1711
+ this.#t = new AbortController(), this.#a = new T(), this.#o = /* @__PURE__ */ new Set(), this.#l = n(Jt), this.#d = !1, this.browseAddNodeOptions = async (e) => {
1713
1712
  let t = this.#u.$.flowId.value;
1714
1713
  if (e.aborted || this.#d || t == null || this.#u.$.target.value?.kind != "flow") return [];
1715
1714
  let n = await this.#f();
@@ -1728,7 +1727,7 @@ var Zt = class {
1728
1727
  e.provider,
1729
1728
  e.type
1730
1729
  ].some((e) => e.toLowerCase().includes(r))).map((e) => Xt(e, this.#i));
1731
- }, this.#n = r, this.#r = o, this.#i = s, this.#c = a, this.#u = i, this.#s = n((e) => {
1730
+ }, this.#n = r, this.#r = o, this.#i = s, this.#c = a, this.#u = i, this.#s = t((e) => {
1732
1731
  let t = e(i.$.selection), n = $(t, i), r = e(this.#l);
1733
1732
  if (t?.kind != "trigger") return { authorizationPending: !1 };
1734
1733
  let a = t.trigger;
@@ -1774,7 +1773,7 @@ var Zt = class {
1774
1773
  connectionLoading: r.provider
1775
1774
  });
1776
1775
  try {
1777
- let e = y(await this.#n.listConnectorConnections(r.provider, void 0, n));
1776
+ let e = v(await this.#n.listConnectorConnections(r.provider, void 0, n));
1778
1777
  if (!this.#m(t, n)) return;
1779
1778
  this.#o.delete(r.provider), this.#p({ catalogs: {
1780
1779
  ...this.#l.value.catalogs,
@@ -1782,7 +1781,7 @@ var Zt = class {
1782
1781
  } });
1783
1782
  } catch (e) {
1784
1783
  this.#m(t, n) && this.#p({ connectionError: {
1785
- message: p(e, this.#i.t).message,
1784
+ message: D(e, this.#i.t).message,
1786
1785
  provider: r.provider
1787
1786
  } });
1788
1787
  } finally {
@@ -1801,7 +1800,7 @@ var Zt = class {
1801
1800
  }
1802
1801
  !this.#d && t == this.#u.$.flowId.value && this.#p({ authorizationProvider: e });
1803
1802
  } catch (e) {
1804
- this.#d || this.#c(p(e, this.#i.t));
1803
+ this.#d || this.#c(D(e, this.#i.t));
1805
1804
  }
1806
1805
  }
1807
1806
  async setConnection(e, t) {
@@ -1879,15 +1878,15 @@ var $t = class {
1879
1878
  this.#a = e;
1880
1879
  let t = e, n = [];
1881
1880
  for (let e of this.#o) try {
1882
- t = F(t, e.changes), n.push(e);
1881
+ t = P(t, e.changes), n.push(e);
1883
1882
  } catch (t) {
1884
- if (!(t instanceof We)) throw t;
1883
+ if (!(t instanceof qe)) throw t;
1885
1884
  e.active = !1;
1886
1885
  }
1887
1886
  return this.#o = n, t;
1888
1887
  }
1889
1888
  project(e) {
1890
- return this.#o.reduce((e, t) => F(e, t.changes), e);
1889
+ return this.#o.reduce((e, t) => P(e, t.changes), e);
1891
1890
  }
1892
1891
  enqueue(e) {
1893
1892
  let t = this.#s.then(e);
@@ -1900,7 +1899,7 @@ var $t = class {
1900
1899
  let o = {
1901
1900
  ...e,
1902
1901
  active: !0,
1903
- changeId: A(),
1902
+ changeId: E(),
1904
1903
  changes: n,
1905
1904
  started: !1
1906
1905
  };
@@ -1925,21 +1924,21 @@ var $t = class {
1925
1924
  let r = this.#l(e, n, t);
1926
1925
  return this.#o.length == 0 && this.#t.check(), r;
1927
1926
  } catch (n) {
1928
- if (n instanceof M && n.code == "flow.revision-conflict") {
1927
+ if (n instanceof m && n.code == "flow.revision-conflict") {
1929
1928
  if (!t && await this.#t.recover(e)) {
1930
- t = !0, e.changeId = A();
1929
+ t = !0, e.changeId = E();
1931
1930
  continue;
1932
1931
  }
1933
1932
  t && await this.#t.recover(e), this.#u(e);
1934
1933
  } else {
1935
- if (!(n instanceof M) && !t) {
1934
+ if (!(n instanceof m) && !t) {
1936
1935
  let n = this.#a?.revisionId;
1937
1936
  if (await this.#t.recover(e)) {
1938
- t = !0, e.active && this.#a?.revisionId != n && (e.changeId = A());
1937
+ t = !0, e.active && this.#a?.revisionId != n && (e.changeId = E());
1939
1938
  continue;
1940
1939
  }
1941
1940
  }
1942
- this.#u(e), this.#t.current(e) && this.#r(p(n, this.#n.t));
1941
+ this.#u(e), this.#t.current(e) && this.#r(D(n, this.#n.t));
1943
1942
  }
1944
1943
  return;
1945
1944
  }
@@ -1948,7 +1947,7 @@ var $t = class {
1948
1947
  #l(e, t, n) {
1949
1948
  let r = {
1950
1949
  ...n.revision,
1951
- content: F(t, e.changes).content
1950
+ content: P(t, e.changes).content
1952
1951
  };
1953
1952
  this.#o = this.#o.filter((t) => t !== e), this.#a = r;
1954
1953
  let i = this.#t.diagnostics(), a = this.#o.length == 0 && i?.revisionId == r.revisionId;
@@ -1968,9 +1967,9 @@ var $t = class {
1968
1967
  }, nn = class {
1969
1968
  #e;
1970
1969
  #t;
1971
- #n = new w();
1970
+ #n = new T();
1972
1971
  #r;
1973
- #i = t(tn);
1972
+ #i = n(tn);
1974
1973
  #a = new AbortController();
1975
1974
  #o = /* @__PURE__ */ new Set();
1976
1975
  #s = !1;
@@ -2034,7 +2033,7 @@ var $t = class {
2034
2033
  failed: !t,
2035
2034
  loading: !1,
2036
2035
  refreshing: !1
2037
- }), this.#r(p(n, this.#t.t));
2036
+ }), this.#r(D(n, this.#t.t));
2038
2037
  }
2039
2038
  }
2040
2039
  async loadMore() {
@@ -2062,7 +2061,7 @@ var $t = class {
2062
2061
  this.#c({
2063
2062
  loadingMore: !1,
2064
2063
  loadMoreFailed: !0
2065
- }), this.#r(p(e, this.#t.t));
2064
+ }), this.#r(D(e, this.#t.t));
2066
2065
  }
2067
2066
  }
2068
2067
  async setEnabled(e, t) {
@@ -2072,7 +2071,7 @@ var $t = class {
2072
2071
  let n = await this.#e.setFlowEnabled(e.flowId, e.live.publicationId, t);
2073
2072
  this.#s || this.include(n);
2074
2073
  } catch (e) {
2075
- this.#s || (this.#r(p(e, this.#t.t)), await this.reload());
2074
+ this.#s || (this.#r(D(e, this.#t.t)), await this.reload());
2076
2075
  } finally {
2077
2076
  this.#o.delete(e.flowId);
2078
2077
  }
@@ -2098,7 +2097,7 @@ var $t = class {
2098
2097
  message: this.#t.t("notice.published", { name: e.name })
2099
2098
  }), this.include(await this.#e.getFlow(e.flowId));
2100
2099
  } catch (e) {
2101
- this.#s || this.#r(p(e, this.#t.t));
2100
+ this.#s || this.#r(D(e, this.#t.t));
2102
2101
  } finally {
2103
2102
  this.#o.delete(e.flowId);
2104
2103
  }
@@ -2183,7 +2182,7 @@ var $t = class {
2183
2182
  this.#c(a, r);
2184
2183
  } catch (r) {
2185
2184
  if (this.#o || !n()) return;
2186
- if (r instanceof M && r.code == "flow.presentation-conflict") try {
2185
+ if (r instanceof m && r.code == "flow.presentation-conflict") try {
2187
2186
  let t = await this.#e.getPresentation(e);
2188
2187
  if (this.#o || !n()) return;
2189
2188
  this.#c(a, t), this.#n({
@@ -2191,9 +2190,9 @@ var $t = class {
2191
2190
  message: this.#t.t("notice.layoutConflict")
2192
2191
  });
2193
2192
  } catch (e) {
2194
- !this.#o && n() && this.#n(p(e, this.#t.t));
2193
+ !this.#o && n() && this.#n(D(e, this.#t.t));
2195
2194
  }
2196
- else this.#c(a, t), this.#n(p(r, this.#t.t));
2195
+ else this.#c(a, t), this.#n(D(r, this.#t.t));
2197
2196
  }
2198
2197
  }), await this.#i;
2199
2198
  }
@@ -2229,9 +2228,9 @@ function cn(e, t, n) {
2229
2228
  }
2230
2229
  var ln = class {
2231
2230
  #e;
2232
- #t = t(an);
2231
+ #t = n(an);
2233
2232
  #n;
2234
- constructor(t, r) {
2233
+ constructor(n, r) {
2235
2234
  let i = e(this.#t, (e) => e.busy), a = e(this.#t, (e) => e.checkLoading), o = e(this.#t, (e) => e.diagnosticFocus), s = e(this.#t, (e) => e.diagnostics), c = e(this.#t, (e) => e.draft), l = e(this.#t, (e) => {
2236
2235
  if (e.moduleEditor == null) return;
2237
2236
  let { phase: t, ...n } = e.moduleEditor;
@@ -2239,30 +2238,30 @@ var ln = class {
2239
2238
  ...n,
2240
2239
  status: sn(e.draft, e.moduleEditor)
2241
2240
  };
2242
- }), u = e(this.#t, (e) => e.nodeFocus), d = e(this.#t, (e) => e.presentation), p = e(this.#t, (e) => e.flowId), m = e(this.#t, (e) => e.live), h = e(this.#t, (e) => e.draft == null ? void 0 : I(e.draft)), g = e(this.#t, (e) => e.selectedNodeIds), _ = e(this.#t, (e) => e.target), v = e(this.#t, (e) => e.workspaceLoadFailed), y = e(this.#t, (e) => e.workspaceLoading);
2241
+ }), 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 : w(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);
2243
2242
  this.#e = e(this.#t, (e) => ({
2244
- revision: e.draft == null ? void 0 : I(e.draft),
2243
+ revision: e.draft == null ? void 0 : w(e.draft),
2245
2244
  target: e.target
2246
2245
  }), { equal: (e, t) => e.revision === t.revision && e.target === t.target });
2247
- let b = e(this.#t, (e) => {
2248
- if (e.draft != null && e.target != null && e.selectedNodeIds.length == 1) return I(e.draft).selection(e.target, e.selectedNodeIds[0]);
2246
+ let y = e(this.#t, (e) => {
2247
+ if (e.draft != null && e.target != null && e.selectedNodeIds.length == 1) return w(e.draft).selection(e.target, e.selectedNodeIds[0]);
2249
2248
  });
2250
2249
  this.$ = {
2251
- addNodeOptions: n((e) => {
2252
- let { revision: n, target: r } = e(this.#e);
2253
- return C(n?.revision, r, e(t.t$));
2250
+ addNodeOptions: t((e) => {
2251
+ let { revision: t, target: r } = e(this.#e);
2252
+ return C(t?.revision, r, e(n.t$));
2254
2253
  }),
2255
2254
  busy: i,
2256
2255
  checkLoading: a,
2257
2256
  diagnosticFocus: o,
2258
- diagnosticItems: e(this.#t, (e) => f(e.draft == null ? void 0 : I(e.draft), e.target, e.diagnostics)),
2257
+ diagnosticItems: e(this.#t, (e) => b(e.draft == null ? void 0 : w(e.draft), e.target, e.diagnostics)),
2259
2258
  diagnostics: s,
2260
2259
  draft: c,
2261
- flow: n((e) => {
2262
- let t = e(p);
2260
+ flow: t((e) => {
2261
+ let t = e(f);
2263
2262
  return t == null ? void 0 : e(r.$.flows).find((e) => e.flowId == t);
2264
2263
  }),
2265
- flowId: p,
2264
+ flowId: f,
2266
2265
  flowLoadFailed: r.$.failed,
2267
2266
  flowLoadMoreFailed: r.$.loadMoreFailed,
2268
2267
  flowLoading: r.$.loading,
@@ -2271,22 +2270,22 @@ var ln = class {
2271
2270
  flowRefreshing: r.$.refreshing,
2272
2271
  flowTotal: r.$.total,
2273
2272
  flows: r.$.flows,
2274
- inspectorDiagnostics: e(this.#t, (e) => E(e.draft == null ? void 0 : I(e.draft), e.target, e.diagnostics, b.value)),
2275
- live: m,
2273
+ inspectorDiagnostics: e(this.#t, (e) => k(e.draft == null ? void 0 : w(e.draft), e.target, e.diagnostics, y.value)),
2274
+ live: p,
2276
2275
  moduleEditor: l,
2277
2276
  nodeFocus: u,
2278
2277
  presentation: d,
2279
- revision: h,
2280
- selection: b,
2281
- selectedNodeIds: g,
2278
+ revision: m,
2279
+ selection: y,
2280
+ selectedNodeIds: h,
2282
2281
  status: e(this.#t, on),
2283
- target: _,
2284
- targetFlow: n((e) => e(_)?.kind == "flow" ? e(r.$.flows).find((t) => t.flowId == e(p)) : void 0),
2282
+ target: g,
2283
+ targetFlow: t((e) => e(g)?.kind == "flow" ? e(r.$.flows).find((t) => t.flowId == e(f)) : void 0),
2285
2284
  targetName: e(this.#t, (e) => {
2286
- 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;
2285
+ if (e.target != null) return e.target.kind == "flow" ? r.flow(e.flowId ?? "")?.name : e.draft == null ? e.target.id : w(e.draft).subflow(e.target.id)?.name ?? e.target.id;
2287
2286
  }),
2288
- workspaceLoadFailed: v,
2289
- workspaceLoading: y
2287
+ workspaceLoadFailed: _,
2288
+ workspaceLoading: v
2290
2289
  }, this.#n = new Set(Object.values(r.$));
2291
2290
  }
2292
2291
  get value() {
@@ -2312,7 +2311,7 @@ function dn(e, t) {
2312
2311
  var fn = class {
2313
2312
  #e;
2314
2313
  #t;
2315
- #n = new w();
2314
+ #n = new T();
2316
2315
  #r;
2317
2316
  #i;
2318
2317
  #a;
@@ -2331,7 +2330,7 @@ var fn = class {
2331
2330
  #v = 0;
2332
2331
  #y;
2333
2332
  #b;
2334
- constructor(e, t, n = kt, r = P(), i = () => {}) {
2333
+ constructor(e, t, n = kt, r = V(), i = () => {}) {
2335
2334
  this.#e = e, this.#c = t, this.#i = n, this.#r = r, this.#s = i, this.#o = new nn(e, t, r), this.#l = new ln(r, this.#o), this.#t = new $t(e, t, r, {
2336
2335
  apply: (e, t) => this.#E(e, "local", t),
2337
2336
  beforeChange: (e) => {
@@ -2407,7 +2406,7 @@ var fn = class {
2407
2406
  } catch (e) {
2408
2407
  if (!t()) return !1;
2409
2408
  this.#b?.(), this.#b = void 0;
2410
- let n = e instanceof M && e.code == de.flowNotFound;
2409
+ let n = e instanceof m && e.code == O.flowNotFound;
2411
2410
  return this.#I(n ? {
2412
2411
  flowId: void 0,
2413
2412
  target: void 0,
@@ -2419,7 +2418,7 @@ var fn = class {
2419
2418
  }), this.#c(n ? {
2420
2419
  kind: "error",
2421
2420
  message: this.#r.t("notice.flowMissing")
2422
- } : p(e, this.#r.t)), !1;
2421
+ } : D(e, this.#r.t)), !1;
2423
2422
  }
2424
2423
  return !0;
2425
2424
  }
@@ -2436,7 +2435,7 @@ var fn = class {
2436
2435
  selectNodes(e) {
2437
2436
  return e.length == this.#l.value.selectedNodeIds.length && e.every((e, t) => e == this.#l.value.selectedNodeIds[t]) ? !0 : (this.#x(), this.#I({
2438
2437
  diagnosticFocus: void 0,
2439
- moduleEditor: cn(this.#l.value.draft == null ? void 0 : I(this.#l.value.draft), this.#l.value.target, e),
2438
+ moduleEditor: cn(this.#l.value.draft == null ? void 0 : w(this.#l.value.draft), this.#l.value.target, e),
2440
2439
  nodeFocus: void 0,
2441
2440
  selectedNodeIds: e
2442
2441
  }), !0);
@@ -2449,7 +2448,7 @@ var fn = class {
2449
2448
  let n = await this.#e.getFlow(await t(e));
2450
2449
  return this.#o.insert(n), n;
2451
2450
  } catch (e) {
2452
- this.#g || this.#c(p(e, this.#r.t));
2451
+ this.#g || this.#c(D(e, this.#r.t));
2453
2452
  } finally {
2454
2453
  this.#I({ busy: void 0 });
2455
2454
  }
@@ -2466,7 +2465,7 @@ var fn = class {
2466
2465
  message: this.#r.t("notice.flowDeleteAccepted", { name: t.name })
2467
2466
  }), !0);
2468
2467
  } catch (e) {
2469
- return this.#g || this.#c(p(e, this.#r.t)), !1;
2468
+ return this.#g || this.#c(D(e, this.#r.t)), !1;
2470
2469
  } finally {
2471
2470
  this.#I({ busy: void 0 });
2472
2471
  }
@@ -2475,7 +2474,7 @@ var fn = class {
2475
2474
  if (!await this.saveModuleEditor() || this.#l.value.draft == null) return !1;
2476
2475
  let t = this.#i();
2477
2476
  this.#I({ busy: "resource" }), this.#c(void 0);
2478
- let n = await this.#w(be(t, e), !1);
2477
+ let n = await this.#w(xe(t, e), !1);
2479
2478
  return this.#I({ busy: void 0 }), n != null && (this.selectTarget({
2480
2479
  id: t,
2481
2480
  kind: "subflow"
@@ -2493,7 +2492,7 @@ var fn = class {
2493
2492
  try {
2494
2493
  i = await this.#e.renameFlow(e, r), i != null && this.#o.include(i);
2495
2494
  } catch (e) {
2496
- this.#g || this.#c(p(e, this.#r.t));
2495
+ this.#g || this.#c(D(e, this.#r.t));
2497
2496
  }
2498
2497
  return this.#I({ busy: void 0 }), i != null && (this.#c({
2499
2498
  kind: "success",
@@ -2506,11 +2505,11 @@ var fn = class {
2506
2505
  if (r == null || i == null) return;
2507
2506
  let a = this.#i();
2508
2507
  if (e.kind == "comment") return await this.#C(i, a, t);
2509
- let o = I(r), s = Me(e, o, i, this.#r.t);
2508
+ let o = w(r), s = Fe(e, o, i, this.#r.t);
2510
2509
  if (s == null) return;
2511
- let c = n?.(a), l = De(o, i, a, s, this.#i);
2510
+ let c = n?.(a), l = Ae(o, i, a, s, this.#i);
2512
2511
  if (l == null) return;
2513
- let u = c == null ? l : [...l, ...wt(F(r, l).content, i, {
2512
+ let u = c == null ? l : [...l, ...wt(P(r, l).content, i, {
2514
2513
  source: c.source,
2515
2514
  target: c.target,
2516
2515
  ...c.sourceHandle.startsWith("$branch:") ? { sourceHandle: c.sourceHandle.slice(8) } : {}
@@ -2546,7 +2545,7 @@ var fn = class {
2546
2545
  if (!await this.saveModuleEditor()) return;
2547
2546
  let e = this.$.revision.value, t = this.#l.value.target;
2548
2547
  if (e == null || t == null || this.#l.value.selectedNodeIds.length == 0) return;
2549
- let n = u(this.#l.value.presentation?.value ?? {}, t), r = new Set(this.#l.value.selectedNodeIds.filter((e) => n.has(e))), i = Te(e, t, this.#l.value.selectedNodeIds), a = i.length == 0 ? void 0 : this.#w(i), o = r.size == 0 ? void 0 : this.#D((e) => me(e, t, r));
2548
+ let n = c(this.#l.value.presentation?.value ?? {}, t), r = new Set(this.#l.value.selectedNodeIds.filter((e) => n.has(e))), i = Oe(e, t, this.#l.value.selectedNodeIds), a = i.length == 0 ? void 0 : this.#w(i), o = r.size == 0 ? void 0 : this.#D((e) => me(e, t, r));
2550
2549
  this.selectNodes([]), (a == null || await a != null) && await o;
2551
2550
  }
2552
2551
  copySelectedNodes() {
@@ -2560,14 +2559,14 @@ var fn = class {
2560
2559
  sourceId: e.id,
2561
2560
  title: e.title
2562
2561
  }] : []),
2563
- nodes: j(e, t, this.#l.value.selectedNodeIds)
2562
+ nodes: M(e, t, this.#l.value.selectedNodeIds)
2564
2563
  };
2565
2564
  }
2566
2565
  async pasteNodes(e, t = un) {
2567
2566
  if (!await this.saveModuleEditor()) return;
2568
2567
  let n = this.$.revision.value, r = this.#l.value.target;
2569
2568
  if (n == null || r == null || this.#f == null) return;
2570
- let i = re(n, r, this.#f.nodes, this.#i), a = i.changes.length == 0 ? void 0 : this.#w(i.changes), o = this.#f.comments.map((e) => ({
2569
+ let i = ne(n, r, this.#f.nodes, this.#i), a = i.changes.length == 0 ? void 0 : this.#w(i.changes), o = this.#f.comments.map((e) => ({
2571
2570
  ...e,
2572
2571
  nodeId: this.#i()
2573
2572
  }));
@@ -2584,8 +2583,8 @@ var fn = class {
2584
2583
  y: (a?.y ?? 80) + t.y * d
2585
2584
  }];
2586
2585
  })), p = this.#D((e) => {
2587
- let n = b(e, r, f);
2588
- for (let e of o) n = _(n, r, e.nodeId, {
2586
+ let n = y(e, r, f);
2587
+ for (let e of o) n = g(n, r, e.nodeId, {
2589
2588
  content: e.content,
2590
2589
  position: {
2591
2590
  x: e.position.x + t.x * d,
@@ -2603,13 +2602,13 @@ var fn = class {
2603
2602
  async saveNodeSettings(e, t) {
2604
2603
  let n = this.$.revision.value, r = this.#l.value.target;
2605
2604
  if (n == null || r == null) return !1;
2606
- let i = ue(n, r, e, t);
2605
+ let i = le(n, r, e, t);
2607
2606
  return i != null && await this.#w(i) != null;
2608
2607
  }
2609
2608
  async saveNodeDescription(e, t) {
2610
2609
  let n = this.$.revision.value, r = this.#l.value.target;
2611
2610
  if (n == null || r == null) return !1;
2612
- let i = Se(n, r, e, t);
2611
+ let i = Ce(n, r, e, t);
2613
2612
  return i != null && await this.#w(i) != null;
2614
2613
  }
2615
2614
  async saveNodeIcon(e, t) {
@@ -2621,7 +2620,7 @@ var fn = class {
2621
2620
  async saveNodeTitle(e, t) {
2622
2621
  let n = this.$.revision.value, r = this.#l.value.target;
2623
2622
  if (n == null || r == null) return !1;
2624
- let i = fe(n, r, e, t);
2623
+ let i = de(n, r, e, t);
2625
2624
  return i != null && await this.#w(i) != null;
2626
2625
  }
2627
2626
  async setInputValue(e, t, n) {
@@ -2632,7 +2631,7 @@ var fn = class {
2632
2631
  }
2633
2632
  async setInputSource(e, t, n) {
2634
2633
  let r = this.$.revision.value, i = this.#l.value.target;
2635
- return r == null || i == null ? !1 : await this.#w(D(r.revision.content, i, e, t, [{
2634
+ return r == null || i == null ? !1 : await this.#w(De(r.revision.content, i, e, t, [{
2636
2635
  kind: "node",
2637
2636
  ...n
2638
2637
  }])) != null;
@@ -2640,36 +2639,36 @@ var fn = class {
2640
2639
  async setInputVariable(e, t, n) {
2641
2640
  let r = this.$.revision.value, i = this.#l.value.target;
2642
2641
  if (r == null || i == null) return !1;
2643
- let a = n == null ? ge(r, i, e, t, void 0) : ke(r, i, e, t, n, this.#i());
2642
+ let a = n == null ? ge(r, i, e, t, void 0) : Me(r, i, e, t, n, this.#i());
2644
2643
  return a != null && await this.#w(a) != null;
2645
2644
  }
2646
2645
  async saveCondition(e, t) {
2647
2646
  let n = this.$.revision.value, r = this.#l.value.target;
2648
2647
  if (n == null || r == null) return !1;
2649
- let i = ce(n, r, e, t);
2648
+ let i = se(n, r, e, t);
2650
2649
  return i != null && await this.#w(i) != null;
2651
2650
  }
2652
2651
  async saveValue(e, t) {
2653
2652
  let n = this.$.revision.value, r = this.#l.value.target;
2654
2653
  if (n == null || r == null) return !1;
2655
- let i = Ne(n, r, e, t);
2654
+ let i = Le(n, r, e, t);
2656
2655
  return i != null && await this.#w(i) != null;
2657
2656
  }
2658
2657
  async saveWait(e, t) {
2659
2658
  let n = this.$.revision.value, r = this.#l.value.target;
2660
2659
  if (n == null || r?.kind != "flow") return !1;
2661
- let i = S(n, r, e, t);
2660
+ let i = x(n, r, e, t);
2662
2661
  return i != null && await this.#w(i) != null;
2663
2662
  }
2664
2663
  async setWaitNotification(e, t) {
2665
- let n = this.$.revision.value, r = n == null ? void 0 : ae(n, e, t, this.#i());
2664
+ let n = this.$.revision.value, r = n == null ? void 0 : ie(n, e, t, this.#i());
2666
2665
  return r != null && await this.#w(r) != null;
2667
2666
  }
2668
2667
  async saveComment(e, t) {
2669
2668
  let n = this.#l.value.target;
2670
2669
  if (n == null) return;
2671
2670
  let r = this.#j().nodes.find((t) => t.id == e)?.position;
2672
- r != null && await this.#D((i) => _(i, n, e, {
2671
+ r != null && await this.#D((i) => g(i, n, e, {
2673
2672
  ...t,
2674
2673
  position: r
2675
2674
  }));
@@ -2677,61 +2676,61 @@ var fn = class {
2677
2676
  async saveTaskSettings(e, t) {
2678
2677
  let n = this.$.revision.value, r = this.#l.value.target;
2679
2678
  if (n == null || r == null) return !1;
2680
- let i = je(n, r, e, t);
2679
+ let i = Ne(n, r, e, t);
2681
2680
  return i != null && await this.#w(i) != null;
2682
2681
  }
2683
2682
  async saveCodeActions(e, t) {
2684
2683
  let n = this.$.revision.value, r = this.#l.value.target;
2685
2684
  if (n == null || r == null) return !1;
2686
- let i = h(n.revision.content, r, e, t);
2685
+ let i = je(n.revision.content, r, e, t);
2687
2686
  return i == null || await this.#w(i) != null;
2688
2687
  }
2689
2688
  async saveTaskPorts(e, t) {
2690
2689
  let n = this.$.revision.value, r = this.#l.value.target;
2691
2690
  if (n == null || r == null) return !1;
2692
- let i = ne(n, r, e, t);
2691
+ let i = ee(n, r, e, t);
2693
2692
  return i != null && await this.#w(i) != null;
2694
2693
  }
2695
2694
  async saveTaskAdditionalInputs(e, t) {
2696
2695
  let n = this.$.revision.value, r = this.#l.value.target;
2697
2696
  if (n == null || r == null) return !1;
2698
- let i = Pe(n, r, e, t);
2697
+ let i = Re(n, r, e, t);
2699
2698
  return i != null && await this.#w(i) != null;
2700
2699
  }
2701
2700
  async setConnectorConnection(e, t) {
2702
2701
  let n = this.$.revision.value;
2703
2702
  if (n == null) return !1;
2704
- let r = ee(n.revision.content, e, t);
2703
+ let r = be(n.revision.content, e, t);
2705
2704
  return r != null && await this.#w(r) != null;
2706
2705
  }
2707
2706
  async saveTriggerConfig(e, t, n) {
2708
2707
  let r = this.$.revision.value, i = this.#l.value.target;
2709
2708
  if (r == null || i?.kind != "flow") return !1;
2710
- let a = x(r.revision.content, i, e, t, n);
2709
+ let a = N(r.revision.content, i, e, t, n);
2711
2710
  return a != null && await this.#w(a) != null;
2712
2711
  }
2713
2712
  async saveTriggerSchedule(e, t) {
2714
2713
  let n = this.$.revision.value, r = this.#l.value.target;
2715
2714
  if (n == null || r?.kind != "flow") return !1;
2716
- let i = s(n.revision.content, r, e, t);
2715
+ let i = Se(n.revision.content, r, e, t);
2717
2716
  return i != null && await this.#w(i) != null;
2718
2717
  }
2719
2718
  async saveWebhook(e, t) {
2720
2719
  let n = this.$.revision.value, r = this.#l.value.target;
2721
2720
  if (n == null || r?.kind != "flow") return !1;
2722
- let i = l(n, r, e, t);
2721
+ let i = s(n, r, e, t);
2723
2722
  return i != null && await this.#w(i) != null;
2724
2723
  }
2725
2724
  async setTriggerConnection(e, t) {
2726
2725
  let n = this.$.revision.value, r = this.#l.value.target;
2727
2726
  if (n == null || r?.kind != "flow") return !1;
2728
- let i = O(n.revision.content, r, e, t);
2727
+ let i = pe(n.revision.content, r, e, t);
2729
2728
  return i != null && await this.#w(i) != null;
2730
2729
  }
2731
2730
  async saveSubflowSettings(e, t) {
2732
2731
  let n = this.$.revision.value;
2733
2732
  if (n == null) return !1;
2734
- let r = k(n, e, t);
2733
+ let r = A(n, e, t);
2735
2734
  return r != null && await this.#w(r) != null;
2736
2735
  }
2737
2736
  updateModuleSource(e) {
@@ -2815,7 +2814,7 @@ var fn = class {
2815
2814
  r != null && (r.editor = {
2816
2815
  ...r.editor,
2817
2816
  phase: "failed"
2818
- }), this.#c(p(t, this.#r.t));
2817
+ }), this.#c(D(t, this.#r.t));
2819
2818
  }
2820
2819
  this.#F();
2821
2820
  }
@@ -2823,11 +2822,11 @@ var fn = class {
2823
2822
  }
2824
2823
  async moveNodes(e) {
2825
2824
  let t = this.#l.value.target;
2826
- t != null && await this.#D((n) => b(n, t, e));
2825
+ t != null && await this.#D((n) => y(n, t, e));
2827
2826
  }
2828
2827
  async moveViewport(e) {
2829
2828
  let t = this.#l.value.target;
2830
- t != null && await this.#D((n) => v(n, t, e));
2829
+ t != null && await this.#D((n) => _(n, t, e));
2831
2830
  }
2832
2831
  async check() {
2833
2832
  await this.#O();
@@ -2857,7 +2856,7 @@ var fn = class {
2857
2856
  if (e.kind != "comment") return [];
2858
2857
  let t = /#(\d+)$/.exec(e.title);
2859
2858
  return t == null ? [] : [Number(t[1])];
2860
- })), i = this.#D((i) => _(i, e, t, {
2859
+ })), i = this.#D((i) => g(i, e, t, {
2861
2860
  content: "",
2862
2861
  position: n,
2863
2862
  title: this.#r.t("addNode.commentName", { number: r + 1 })
@@ -2875,7 +2874,7 @@ var fn = class {
2875
2874
  for (let t = 0; t < 2 && e(); t += 1) {
2876
2875
  let t = this.#l.value.draft;
2877
2876
  if (t == null) return;
2878
- let n = Ce(t.content);
2877
+ let n = oe(t.content);
2879
2878
  if (n.length == 0) {
2880
2879
  this.#O();
2881
2880
  return;
@@ -2930,7 +2929,7 @@ var fn = class {
2930
2929
  });
2931
2930
  }
2932
2931
  } catch (n) {
2933
- !this.#g && e == this.#l.value.flowId && t.revisionId == this.#l.value.draft?.revisionId && this.#c(p(n, this.#r.t));
2932
+ !this.#g && e == this.#l.value.flowId && t.revisionId == this.#l.value.draft?.revisionId && this.#c(D(n, this.#r.t));
2934
2933
  } finally {
2935
2934
  !this.#g && e == this.#l.value.flowId && t.revisionId == this.#l.value.draft?.revisionId && this.#I({ checkLoading: !1 });
2936
2935
  }
@@ -2967,7 +2966,7 @@ var fn = class {
2967
2966
  message: this.#r.t(o ? "notice.moduleUpdated" : "notice.draftUpdated")
2968
2967
  }), this.#O(), !0;
2969
2968
  } catch (n) {
2970
- return t && this.#N(e) && this.#c(p(n, this.#r.t)), !1;
2969
+ return t && this.#N(e) && this.#c(D(n, this.#r.t)), !1;
2971
2970
  }
2972
2971
  }
2973
2972
  #j() {
@@ -2975,7 +2974,7 @@ var fn = class {
2975
2974
  return he(e.draft, e.target, e.presentation?.value, e.diagnostics?.diagnostics, {}, {}, this.#r.t);
2976
2975
  }
2977
2976
  #M(e) {
2978
- let t = I(e), n = dn(t, this.#l.value.target);
2977
+ let t = w(e), n = dn(t, this.#l.value.target);
2979
2978
  return {
2980
2979
  revision: t,
2981
2980
  selectedNodeIds: this.#l.value.selectedNodeIds.filter((e) => n != null && t.selection(n, e) != null),
@@ -3010,7 +3009,7 @@ function pn(e) {
3010
3009
  return new Map(e.nodes.map((e) => [e.id, e]));
3011
3010
  }
3012
3011
  function mn(e, t) {
3013
- return e == null || t == null ? [] : I(e).designerInputs(t);
3012
+ return e == null || t == null ? [] : w(e).designerInputs(t);
3014
3013
  }
3015
3014
  function hn(e, t, n, r, i) {
3016
3015
  if (e == null || t?.kind != "flow" || n?.revisionId != e.revisionId || n.flowId != e.flowId) return /* @__PURE__ */ new Map();
@@ -3025,6 +3024,9 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3025
3024
  #t;
3026
3025
  #n;
3027
3026
  #r;
3027
+ get variablesEnabled() {
3028
+ return this.#i;
3029
+ }
3028
3030
  #i;
3029
3031
  #a;
3030
3032
  #o;
@@ -3032,8 +3034,8 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3032
3034
  #c;
3033
3035
  #l;
3034
3036
  #u;
3035
- constructor(r, i, a = A, o = P(), s = gn, c = !0) {
3036
- this.#t = new w(), this.#r = t(), this.#a = t([]), this.#o = t(!1), this.#s = t(!1), this.#c = !0, this.#u = !1, this.provideAddNodeOptions = async (e, t) => await this.#d([this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t)], t), this.browseAddNodeOptions = async (e) => {
3037
+ constructor(r, i, a = E, o = V(), s = gn, c = !0) {
3038
+ this.#t = new T(), this.#r = n(), this.#a = n([]), this.#o = n(!1), this.#s = n(!1), this.#c = !0, this.#u = !1, this.provideAddNodeOptions = async (e, t) => await this.#d([this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t)], t), this.browseAddNodeOptions = async (e) => {
3037
3039
  let t = await Promise.all([this.triggers.browseAddNodeOptions(e), this.connectors.browseAddNodeOptions(e)]);
3038
3040
  if (!(e.aborted || this.#u)) return t.flatMap((e) => e ?? []);
3039
3041
  }, this.provideAddNodeOptionChoices = async (e, t) => {
@@ -3042,12 +3044,12 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3042
3044
  let l = (e) => {
3043
3045
  this.#u || this.#r.set(e);
3044
3046
  };
3045
- this.runs = new g(r, l, o), this.workspace = new fn(r, l, kt, o, (e) => {
3047
+ this.runs = new f(r, l, o), this.workspace = new fn(r, l, kt, o, (e) => {
3046
3048
  e.kind == "run.created" ? this.#f(r, e) : this.runs.changed(e.runId);
3047
3049
  }), this.connectors = new qt(r, this.workspace, l, s, o), this.triggers = new Zt(r, this.workspace, l, s, o), this.publications = new Nt(r, this.workspace, l, i, a, o), this.runRequests = new Bt(r, this.runs, l, async (e) => {
3048
3050
  if (!(e != this.workspace.$.flowId.value || !await this.workspace.saveModuleEditor() || this.#u || e != this.workspace.$.flowId.value)) return this.workspace.$.draft.value?.revisionId;
3049
3051
  }, o, a);
3050
- let u = n((e) => {
3052
+ let d = t((e) => {
3051
3053
  let t = e(this.workspace.$.diagnostics);
3052
3054
  if (t == null) return;
3053
3055
  let n = e(this.connectors.$.diagnostics);
@@ -3056,32 +3058,29 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3056
3058
  diagnostics: [...t.diagnostics, ...n],
3057
3059
  valid: !1
3058
3060
  };
3059
- }), p = /* @__PURE__ */ new Map(), m, h = n((e) => {
3061
+ }), p = /* @__PURE__ */ new Map(), m, h = t((e) => {
3060
3062
  let t = e(this.workspace.$.draft);
3061
3063
  m != t?.flowId && (p.clear(), m = t?.flowId);
3062
- 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), f = e(this.runs.$.events), h = e(this.#a), g = e(this.#o), _ = e(this.#s), v = n == null ? "" : n.kind == "flow" ? "flow" : `subflow:${n.id}`, y = [
3064
+ let n = e(this.workspace.$.target), r = e(this.workspace.$.presentation)?.value, i = e(d)?.diagnostics ?? e(this.connectors.$.diagnostics), a = e(this.connectors.$.actions), s = e(this.connectors.$.catalogs), c = e(o.t$), l = e(this.runs.$.run), f = e(this.runs.$.events), h = n == null ? "" : n.kind == "flow" ? "flow" : `subflow:${n.id}`, g = [
3063
3065
  ...mn(t, n),
3064
- r == null || n == null ? void 0 : d(r, n),
3066
+ r == null || n == null ? void 0 : u(r, n),
3065
3067
  i,
3066
3068
  a,
3067
3069
  s,
3068
3070
  c,
3069
3071
  l,
3070
3072
  f,
3071
- h,
3072
- g,
3073
- _,
3074
3073
  ...l == null ? [] : [t?.revisionId]
3075
- ], b = p.get(v);
3076
- if (b != null && b.inputs.length == y.length && b.inputs.every((e, t) => e === y[t])) return b.graph;
3077
- let x = he(t, n, r, i, a, s, c, l, f, h, g, _, this.#i);
3078
- return p.set(v, {
3079
- graph: x,
3080
- inputs: y
3081
- }), x;
3082
- }), _ = e(h, pn);
3074
+ ], _ = p.get(h);
3075
+ if (_ != null && _.inputs.length == g.length && _.inputs.every((e, t) => e === g[t])) return _.graph;
3076
+ let v = he(t, n, r, i, a, s, c, l, f);
3077
+ return p.set(h, {
3078
+ graph: v,
3079
+ inputs: g
3080
+ }), v;
3081
+ }), g = e(h, pn);
3083
3082
  this.$ = {
3084
- busy: n((e) => {
3083
+ busy: t((e) => {
3085
3084
  let t = e(this.workspace.$.busy);
3086
3085
  if (t != null) return t;
3087
3086
  if (e(this.runRequests.$.starting)) return "run";
@@ -3090,15 +3089,15 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3090
3089
  if (e(this.publications.$.rollingBackPublicationId) != null) return "rollback";
3091
3090
  if (e(this.publications.$.changingTriggerId) != null) return "trigger";
3092
3091
  }),
3093
- diagnosticItems: n((e) => f(e(this.workspace.$.revision), e(this.workspace.$.target), e(u))),
3094
- diagnostics: u,
3092
+ diagnosticItems: t((e) => b(e(this.workspace.$.revision), e(this.workspace.$.target), e(d))),
3093
+ diagnostics: d,
3095
3094
  designer: h,
3096
- designerNodeById: _,
3095
+ designerNodeById: g,
3097
3096
  notice: this.#r,
3098
- runEventNodes: n((e) => hn(e(this.workspace.$.draft), e(this.workspace.$.target), e(this.runs.$.run), e(this.runs.$.events), e(_))),
3099
- selectedDesignerNode: n((e) => {
3097
+ runEventNodes: t((e) => hn(e(this.workspace.$.draft), e(this.workspace.$.target), e(this.runs.$.run), e(this.runs.$.events), e(g))),
3098
+ selectedDesignerNode: t((e) => {
3100
3099
  let t = e(this.workspace.$.selectedNodeIds);
3101
- return t.length == 1 ? e(_).get(t[0]) : void 0;
3100
+ return t.length == 1 ? e(g).get(t[0]) : void 0;
3102
3101
  }),
3103
3102
  variableNames: this.#a,
3104
3103
  variableNamesLoaded: this.#o,
@@ -3131,7 +3130,7 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3131
3130
  if (this.#u) return;
3132
3131
  this.#a.set(e.map((e) => e.name)), this.#o.set(!0);
3133
3132
  } catch (e) {
3134
- this.#c = !0, this.#u || this.#r.set(p(e, this.#n.t));
3133
+ this.#c = !0, this.#u || this.#r.set(D(e, this.#n.t));
3135
3134
  } finally {
3136
3135
  this.#l = void 0, this.#u || this.#s.set(!1);
3137
3136
  }
@@ -3176,7 +3175,7 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3176
3175
  if (t.aborted || this.#u) return;
3177
3176
  let r = n.filter((e) => e.status == "rejected");
3178
3177
  if (r.length > 0 && r.length == n.length) throw r[0].reason;
3179
- return r.length > 0 && this.#r.set(p(r[0].reason, this.#n.t)), n.flatMap((e) => e.status == "fulfilled" ? e.value ?? [] : []);
3178
+ return r.length > 0 && this.#r.set(D(r[0].reason, this.#n.t)), n.flatMap((e) => e.status == "fulfilled" ? e.value ?? [] : []);
3180
3179
  }
3181
3180
  async refreshSelectedConnector(e = !1) {
3182
3181
  await this.connectors.refresh(e);
@@ -3209,7 +3208,7 @@ var gn = { openExternalPage: async () => !1 }, _n = class {
3209
3208
  return;
3210
3209
  }
3211
3210
  }
3212
- }, vn = ct(() => import("./flowWorkspace-DvitOPqI.js").then((e) => e.t));
3211
+ }, vn = ct(() => import("./flowWorkspace-B0UAQ-s7.js").then((e) => e.t));
3213
3212
  function yn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
3214
3213
  let l = s != null && c != null && i != null, u = s ?? "", d = /* @__PURE__ */ K(lt, { children: [
3215
3214
  /* @__PURE__ */ G("div", {
@@ -3242,21 +3241,21 @@ function yn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
3242
3241
  children: t
3243
3242
  })]
3244
3243
  }),
3245
- l && /* @__PURE__ */ G(He, { children: /* @__PURE__ */ K(Le, {
3244
+ l && /* @__PURE__ */ G(Je, { children: /* @__PURE__ */ K(Qe, {
3246
3245
  "data-invalid": n != null,
3247
3246
  children: [
3248
- /* @__PURE__ */ G(Ue, {
3247
+ /* @__PURE__ */ G(R, {
3249
3248
  htmlFor: "session-token",
3250
3249
  children: c
3251
3250
  }),
3252
- /* @__PURE__ */ G(R, {
3251
+ /* @__PURE__ */ G(I, {
3253
3252
  autoComplete: "username",
3254
3253
  name: "username",
3255
3254
  type: "hidden",
3256
3255
  value: "open-flow",
3257
3256
  readOnly: !0
3258
3257
  }),
3259
- /* @__PURE__ */ G(R, {
3258
+ /* @__PURE__ */ G(I, {
3260
3259
  autoComplete: "current-password",
3261
3260
  "aria-invalid": n != null,
3262
3261
  autoFocus: !0,
@@ -3268,19 +3267,19 @@ function yn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
3268
3267
  type: "password",
3269
3268
  value: u
3270
3269
  }),
3271
- n != null && /* @__PURE__ */ G(ze, { children: n })
3270
+ n != null && /* @__PURE__ */ G(Ge, { children: n })
3272
3271
  ]
3273
3272
  }) }),
3274
3273
  e != null && r != null && /* @__PURE__ */ K(L, {
3275
3274
  disabled: a || l && u.length == 0,
3276
3275
  size: "lg",
3277
3276
  type: "submit",
3278
- children: [a && /* @__PURE__ */ G(Be, {
3277
+ children: [a && /* @__PURE__ */ G(He, {
3279
3278
  "aria-label": e,
3280
3279
  "data-icon": "inline-start"
3281
3280
  }), e]
3282
3281
  }),
3283
- a && e == null && /* @__PURE__ */ G(Be, { "aria-label": t })
3282
+ a && e == null && /* @__PURE__ */ G(He, { "aria-label": t })
3284
3283
  ] }), f = "m-auto flex w-full max-w-[420px] flex-col gap-5 rounded-xl bg-card p-6 shadow-lg shadow-black/10";
3285
3284
  return /* @__PURE__ */ G("main", {
3286
3285
  className: "open-flow-workbench",
@@ -3300,18 +3299,18 @@ function yn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
3300
3299
  });
3301
3300
  }
3302
3301
  function bn({ host: e, store: t }) {
3303
- let n = a(t.$.notice);
3302
+ let n = r(t.$.notice);
3304
3303
  return H(() => e.notify(n), [e, n]), H(() => () => e.notify(void 0), [e]), null;
3305
3304
  }
3306
- function xn({ 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 }) {
3307
- let g = a(m.workspace.$.flowId);
3305
+ function xn({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: i, flowBadges: a, hrefFor: o, hostAction: s, hostTitle: c, language: l, navigation: u, onConfigureConnector: d, onHostAction: f, onLanguageChange: p, store: m, theme: h }) {
3306
+ let g = r(m.workspace.$.flowId);
3308
3307
  return /* @__PURE__ */ G("div", {
3309
3308
  className: "app-shell",
3310
3309
  children: g == null ? /* @__PURE__ */ G(bt, {
3311
3310
  catalogWidth: e,
3312
3311
  createFlowDisabled: n,
3313
- createFlowField: r,
3314
- flowBadges: i,
3312
+ createFlowField: i,
3313
+ flowBadges: a,
3315
3314
  hrefForFlow: (e) => o({
3316
3315
  flowId: e.flowId,
3317
3316
  view: "design"
@@ -3346,7 +3345,7 @@ function Sn({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
3346
3345
  let y = U(h);
3347
3346
  y.current = h;
3348
3347
  let [{ i18n: b, navigation: x, store: S }] = W(() => {
3349
- let e = P(u), t = new _n(new ye((e, t) => a.request(e, t), (e, t) => a.subscribeFlow(e, t), (e) => a.subscribeFlowCatalog(e)), g, A, e, a, v);
3348
+ let e = V(u), t = new _n(new Ee((e, t) => a.request(e, t), (e, t) => a.subscribeFlow(e, t), (e) => a.subscribeFlowCatalog(e)), g, E, e, a, v);
3350
3349
  return {
3351
3350
  i18n: e,
3352
3351
  navigation: new pt(t, d, (e, t) => y.current(e, t)),
@@ -3399,4 +3398,4 @@ function Cn({ sessionKey: e, ...t }) {
3399
3398
  return /* @__PURE__ */ G(Sn, { ...t }, e);
3400
3399
  }
3401
3400
  //#endregion
3402
- export { yn as OpenFlowSessionGate, Cn as OpenFlowWorkbench, at as isWorkbenchLanguage, it as resolveWorkbenchLanguage, V as workbenchLanguageNames, rt as workbenchLanguages };
3401
+ export { yn as OpenFlowSessionGate, Cn as OpenFlowWorkbench, ot as isWorkbenchLanguage, it as resolveWorkbenchLanguage, at as workbenchLanguageNames, rt as workbenchLanguages };