@oomol-lab/open-flow 0.1.0-alpha.14 → 0.1.0-alpha.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.
@@ -1,10 +1,10 @@
1
1
  import { a as e } from "./main-DmjVyuWr.js";
2
- import { $n as t, B as n, C as r, Ct as i, D as a, E as o, H as s, It as c, Ln as l, N as u, O as d, Rn as f, S as p, T as m, Tr as h, V as g, Y as _, Yn as v, _t as y, a as b, ar as x, dt as S, er as C, gr as w, gt as T, ht as E, i as ee, k as te, lt as D, mt as O, nr as k, o as A, p as j, r as M, rr as N, sr as P, t as F, tr as ne, ur as I, w as re, yr as L, yt as ie, zt as R } from "./useOpenInteractionType-BtV5cRut.js";
2
+ import { B as t, Bn as n, C as r, D as i, E as a, Et as o, H as s, Ht as c, N as l, O as u, Or as d, Qn as f, S as p, Sr as m, St as h, T as g, V as _, Vn as v, Y as y, a as b, ar as x, bt as S, cr as C, dt as w, i as T, ir as E, k as ee, lt as D, mt as O, nr as k, o as A, or as j, p as M, pr as N, r as P, rr as F, t as te, ur as I, vt as ne, w as re, yr as L, yt as R, zt as ie } from "./useOpenInteractionType-BmBaSEl4.js";
3
3
  import * as z from "react";
4
4
  import { useEffect as ae, useRef as B, useState as oe } from "react";
5
5
  import { Fragment as se, jsx as V, jsxs as H } from "react/jsx-runtime";
6
6
  //#region ../../node_modules/.bun/lucide-react@0.468.0+f4eacebf2041cd4f/node_modules/lucide-react/dist/esm/icons/x.js
7
- var ce = E("X", [["path", {
7
+ var ce = ne("X", [["path", {
8
8
  d: "M18 6 6 18",
9
9
  key: "1bl5f8"
10
10
  }], ["path", {
@@ -14,20 +14,20 @@ var ce = E("X", [["path", {
14
14
  process.env.NODE_ENV !== "production" && (U.displayName = "DialogRootContext");
15
15
  function W(e) {
16
16
  let t = z.useContext(U);
17
- if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? L(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
17
+ if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? m(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
18
18
  return t;
19
19
  }
20
20
  //#endregion
21
21
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
22
22
  var le = {
23
- ...S,
24
- ...R
23
+ ...w,
24
+ ...c
25
25
  }, G = /*#__PURE__*/ z.forwardRef(function(e, t) {
26
26
  let { render: n, className: r, style: i, forceRender: a = !1, ...o } = e, { store: s } = W(), c = s.useState("open"), l = s.useState("nested"), u = s.useState("mounted"), d = {
27
27
  open: c,
28
28
  transitionStatus: s.useState("transitionStatus")
29
29
  };
30
- return I("div", e, {
30
+ return N("div", e, {
31
31
  state: d,
32
32
  ref: [s.context.backdropRef, t],
33
33
  stateAttributesMapping: le,
@@ -48,13 +48,13 @@ process.env.NODE_ENV !== "production" && (G.displayName = "DialogBackdrop");
48
48
  var K = /*#__PURE__*/ z.forwardRef(function(e, t) {
49
49
  let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { store: c } = W(), l = c.useState("open");
50
50
  function u(e) {
51
- l && c.setOpen(!1, y(ie, e.nativeEvent));
51
+ l && c.setOpen(!1, S(h, e.nativeEvent));
52
52
  }
53
- let { getButtonProps: d, buttonRef: f } = w({
53
+ let { getButtonProps: d, buttonRef: f } = L({
54
54
  disabled: i,
55
55
  native: a
56
56
  });
57
- return I("button", e, {
57
+ return N("button", e, {
58
58
  state: { disabled: i },
59
59
  ref: [t, f],
60
60
  props: [
@@ -75,68 +75,68 @@ var ue = /*#__PURE__*/ function(e) {
75
75
  process.env.NODE_ENV !== "production" && (q.displayName = "DialogPortalContext");
76
76
  function fe() {
77
77
  let e = z.useContext(q);
78
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? L(26) : "Base UI: <Dialog.Portal> is missing.");
78
+ if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? m(26) : "Base UI: <Dialog.Portal> is missing.");
79
79
  return e;
80
80
  }
81
81
  //#endregion
82
82
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
83
83
  var pe = {
84
- ...S,
85
- ...R,
84
+ ...w,
85
+ ...c,
86
86
  nestedDialogOpen(e) {
87
87
  return e ? { [de.nestedDialogOpen]: "" } : null;
88
88
  }
89
89
  }, J = /*#__PURE__*/ z.forwardRef(function(e, t) {
90
- let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...l } = e, { store: u } = W(), d = u.useState("descriptionElementId"), f = u.useState("disablePointerDismissal"), p = u.useState("floatingRootContext"), m = u.useState("popupProps"), h = u.useState("modal"), g = u.useState("mounted"), _ = u.useState("nested"), v = u.useState("nestedOpenDialogCount"), y = u.useState("open"), b = u.useState("openMethod"), x = u.useState("titleElementId"), S = u.useState("transitionStatus"), C = u.useState("role");
91
- fe(), c({
92
- open: y,
93
- ref: u.context.popupRef,
90
+ let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...c } = e, { store: l } = W(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), v = l.useState("open"), y = l.useState("openMethod"), b = l.useState("titleElementId"), x = l.useState("transitionStatus"), S = l.useState("role");
91
+ fe(), ie({
92
+ open: v,
93
+ ref: l.context.popupRef,
94
94
  onComplete() {
95
- y && u.context.onOpenChangeComplete?.(!0);
95
+ v && l.context.onOpenChangeComplete?.(!0);
96
96
  }
97
97
  });
98
- function w(e) {
99
- return e !== "touch" || u.context.popupRef.current;
98
+ function C(e) {
99
+ return e !== "touch" || l.context.popupRef.current;
100
100
  }
101
- let T = i === void 0 ? w : i, E = I("div", e, {
101
+ let w = i === void 0 ? C : i, T = N("div", e, {
102
102
  state: {
103
- open: y,
104
- nested: _,
105
- transitionStatus: S,
106
- nestedDialogOpen: v > 0
103
+ open: v,
104
+ nested: g,
105
+ transitionStatus: x,
106
+ nestedDialogOpen: _ > 0
107
107
  },
108
108
  props: [
109
- m,
109
+ p,
110
110
  {
111
- "aria-labelledby": x ?? void 0,
112
- "aria-describedby": d ?? void 0,
113
- role: C,
111
+ "aria-labelledby": b ?? void 0,
112
+ "aria-describedby": u ?? void 0,
113
+ role: S,
114
114
  tabIndex: -1,
115
- hidden: !g,
115
+ hidden: !h,
116
116
  onKeyDown(e) {
117
- j.has(e.key) && e.stopPropagation();
117
+ M.has(e.key) && e.stopPropagation();
118
118
  },
119
- style: { [ue.nestedDialogs]: v }
119
+ style: { [ue.nestedDialogs]: _ }
120
120
  },
121
- l
121
+ c
122
122
  ],
123
123
  ref: [
124
124
  t,
125
- u.context.popupRef,
126
- u.useStateSetter("popupElement")
125
+ l.context.popupRef,
126
+ l.useStateSetter("popupElement")
127
127
  ],
128
128
  stateAttributesMapping: pe
129
129
  });
130
130
  return /*#__PURE__*/ V(s, {
131
- context: p,
132
- openInteractionType: b,
133
- disabled: !g,
134
- closeOnFocusOut: !f,
135
- initialFocus: T,
131
+ context: f,
132
+ openInteractionType: y,
133
+ disabled: !h,
134
+ closeOnFocusOut: !d,
135
+ initialFocus: w,
136
136
  returnFocus: r,
137
- modal: h !== !1,
137
+ modal: m !== !1,
138
138
  restoreFocus: "popup",
139
- children: E
139
+ children: T
140
140
  });
141
141
  });
142
142
  process.env.NODE_ENV !== "production" && (J.displayName = "DialogPopup");
@@ -146,7 +146,7 @@ var Y = /*#__PURE__*/ z.forwardRef(function(e, t) {
146
146
  let { keepMounted: n = !1, ...r } = e, { store: i } = W(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
147
147
  return a || n ? /*#__PURE__*/ V(q.Provider, {
148
148
  value: n,
149
- children: /*#__PURE__*/ H(_, {
149
+ children: /*#__PURE__*/ H(y, {
150
150
  ref: t,
151
151
  ...r,
152
152
  children: [a && o === !0 && /*#__PURE__*/ V(b, {
@@ -160,85 +160,85 @@ process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPortal");
160
160
  //#endregion
161
161
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
162
162
  function me(e) {
163
- let { store: t, parentContext: n, actionsRef: a, isDrawer: o } = e, s = t.useState("open"), c = t.useState("disablePointerDismissal"), u = t.useState("modal"), m = t.useState("popupElement"), { openMethod: h, triggerProps: _ } = F(s);
164
- d(t);
165
- let { forceUnmount: v } = te(s, t), b = z.useCallback(() => {
166
- t.setOpen(!1, y(i));
163
+ let { store: t, parentContext: i, actionsRef: a, isDrawer: s } = e, c = t.useState("open"), l = t.useState("disablePointerDismissal"), d = t.useState("modal"), f = t.useState("popupElement"), { openMethod: m, triggerProps: h } = te(c);
164
+ u(t);
165
+ let { forceUnmount: g } = ee(c, t), y = z.useCallback(() => {
166
+ t.setOpen(!1, S(o));
167
167
  }, [t]);
168
168
  z.useImperativeHandle(a, () => ({
169
- unmount: v,
170
- close: b
171
- }), [v, b]);
172
- let x = re({
169
+ unmount: g,
170
+ close: y
171
+ }), [g, y]);
172
+ let b = re({
173
173
  popupStore: t,
174
174
  onOpenChange: t.setOpen,
175
175
  treatPopupAsFloatingElement: !0
176
- }), [S, C] = z.useState(0), [w, T] = z.useState(0), E = S === 0, D = p(x), O = g(x, {
176
+ }), [x, C] = z.useState(0), [w, E] = z.useState(0), D = x === 0, O = p(b), k = _(b, {
177
177
  outsidePressEvent() {
178
178
  return t.context.internalBackdropRef.current || t.context.backdropRef.current ? "intentional" : {
179
- mouse: u === "trap-focus" ? "sloppy" : "intentional",
179
+ mouse: d === "trap-focus" ? "sloppy" : "intentional",
180
180
  touch: "sloppy"
181
181
  };
182
182
  },
183
183
  outsidePress(e) {
184
184
  if (!t.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
185
- let n = f(e);
186
- if (E && !c) {
187
- let e = n;
188
- return u && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === e || t.context.backdropRef.current === e || l(e, m) && !e?.hasAttribute("data-base-ui-portal") : !0;
185
+ let r = v(e);
186
+ if (D && !l) {
187
+ let e = r;
188
+ return d && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === e || t.context.backdropRef.current === e || n(e, f) && !e?.hasAttribute("data-base-ui-portal") : !0;
189
189
  }
190
190
  return !1;
191
191
  },
192
- escapeKey: E
192
+ escapeKey: D
193
193
  });
194
- ee(s && u === !0, m);
195
- let { getReferenceProps: k, getFloatingProps: A, getTriggerProps: j } = r([D, O]);
194
+ T(c && d === !0, f);
195
+ let { getReferenceProps: A, getFloatingProps: j, getTriggerProps: M } = r([O, k]);
196
196
  t.useContextCallback("onNestedDialogOpen", (e, t) => {
197
- C(e), T(t);
197
+ C(e), E(t);
198
198
  }), t.useContextCallback("onNestedDialogClose", () => {
199
- C(0), T(0);
200
- }), z.useEffect(() => (n?.onNestedDialogOpen && s && n.onNestedDialogOpen(S + 1, w + +!!o), n?.onNestedDialogClose && !s && n.onNestedDialogClose(), () => {
201
- n?.onNestedDialogClose && s && n.onNestedDialogClose();
199
+ C(0), E(0);
200
+ }), z.useEffect(() => (i?.onNestedDialogOpen && c && i.onNestedDialogOpen(x + 1, w + +!!s), i?.onNestedDialogClose && !c && i.onNestedDialogClose(), () => {
201
+ i?.onNestedDialogClose && c && i.onNestedDialogClose();
202
202
  }), [
203
- o,
204
203
  s,
205
- S,
204
+ c,
205
+ x,
206
206
  w,
207
- n
207
+ i
208
208
  ]);
209
- let M = z.useMemo(() => k(_), [k, _]), N = z.useMemo(() => j(_), [j, _]), P = z.useMemo(() => A(), [A]);
209
+ let N = z.useMemo(() => A(h), [A, h]), P = z.useMemo(() => M(h), [M, h]), F = z.useMemo(() => j(), [j]);
210
210
  t.useSyncedValues({
211
- openMethod: h,
212
- activeTriggerProps: M,
213
- inactiveTriggerProps: N,
214
- popupProps: P,
215
- floatingRootContext: x,
216
- nestedOpenDialogCount: S,
211
+ openMethod: m,
212
+ activeTriggerProps: N,
213
+ inactiveTriggerProps: P,
214
+ popupProps: F,
215
+ floatingRootContext: b,
216
+ nestedOpenDialogCount: x,
217
217
  nestedOpenDrawerCount: w
218
218
  });
219
219
  }
220
220
  //#endregion
221
221
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
222
222
  var he = {
223
- ...o,
224
- modal: n((e) => e.modal),
225
- nested: n((e) => e.nested),
226
- nestedOpenDialogCount: n((e) => e.nestedOpenDialogCount),
227
- nestedOpenDrawerCount: n((e) => e.nestedOpenDrawerCount),
228
- disablePointerDismissal: n((e) => e.disablePointerDismissal),
229
- openMethod: n((e) => e.openMethod),
230
- descriptionElementId: n((e) => e.descriptionElementId),
231
- titleElementId: n((e) => e.titleElementId),
232
- viewportElement: n((e) => e.viewportElement),
233
- role: n((e) => e.role)
234
- }, ge = class e extends u {
223
+ ...a,
224
+ modal: t((e) => e.modal),
225
+ nested: t((e) => e.nested),
226
+ nestedOpenDialogCount: t((e) => e.nestedOpenDialogCount),
227
+ nestedOpenDrawerCount: t((e) => e.nestedOpenDrawerCount),
228
+ disablePointerDismissal: t((e) => e.disablePointerDismissal),
229
+ openMethod: t((e) => e.openMethod),
230
+ descriptionElementId: t((e) => e.descriptionElementId),
231
+ titleElementId: t((e) => e.titleElementId),
232
+ viewportElement: t((e) => e.viewportElement),
233
+ role: t((e) => e.role)
234
+ }, ge = class e extends l {
235
235
  constructor(e) {
236
236
  super(_e(e), {
237
237
  popupRef: /*#__PURE__*/ z.createRef(),
238
238
  backdropRef: /*#__PURE__*/ z.createRef(),
239
239
  internalBackdropRef: /*#__PURE__*/ z.createRef(),
240
240
  outsidePressEnabledRef: { current: !0 },
241
- triggerElements: new a(),
241
+ triggerElements: new i(),
242
242
  onOpenChange: void 0,
243
243
  onOpenChangeComplete: void 0
244
244
  }, he);
@@ -252,13 +252,13 @@ var he = {
252
252
  (r || e) && (n.activeTriggerId = r, n.activeTriggerElement = t.trigger ?? null), this.update(n);
253
253
  };
254
254
  static useStore(t, n) {
255
- let r = h(() => new e(n)).current;
255
+ let r = d(() => new e(n)).current;
256
256
  return t ?? r;
257
257
  }
258
258
  };
259
259
  function _e(e = {}) {
260
260
  return {
261
- ...m(),
261
+ ...g(),
262
262
  modal: !0,
263
263
  disablePointerDismissal: !1,
264
264
  popupElement: null,
@@ -287,7 +287,7 @@ function ve(e) {
287
287
  disablePointerDismissal: o,
288
288
  nested: m
289
289
  });
290
- M(() => {
290
+ P(() => {
291
291
  n === void 0 && h.state.open === !1 && r === !0 && h.update({
292
292
  open: !0,
293
293
  activeTriggerId: d
@@ -318,8 +318,8 @@ function ve(e) {
318
318
  //#endregion
319
319
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
320
320
  var Z = /*#__PURE__*/ z.forwardRef(function(e, t) {
321
- let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = W(), c = v(a);
322
- return s.useSyncedValueWithCleanup("titleElementId", c), I("h2", e, {
321
+ let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = W(), c = f(a);
322
+ return s.useSyncedValueWithCleanup("titleElementId", c), N("h2", e, {
323
323
  ref: t,
324
324
  props: [{ id: c }, o]
325
325
  });
@@ -348,7 +348,7 @@ function Q(e) {
348
348
  function xe({ className: e, ...t }) {
349
349
  return /* @__PURE__ */ V(G, {
350
350
  "data-slot": "dialog-overlay",
351
- className: P("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
351
+ className: I("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
352
352
  ...t
353
353
  });
354
354
  }
@@ -357,11 +357,11 @@ function Se({ children: e, className: t, closeLabel: n = "Close", container: r,
357
357
  container: r,
358
358
  children: [/* @__PURE__ */ V(xe, {}), /* @__PURE__ */ H(J, {
359
359
  "data-slot": "dialog-content",
360
- className: P("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
360
+ className: I("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
361
361
  ...a,
362
362
  children: [e, i && /* @__PURE__ */ H(K, {
363
363
  "data-slot": "dialog-close",
364
- render: /* @__PURE__ */ V(x, {
364
+ render: /* @__PURE__ */ V(C, {
365
365
  className: "absolute top-2 right-2",
366
366
  size: "icon-sm",
367
367
  variant: "ghost"
@@ -377,47 +377,47 @@ function Se({ children: e, className: t, closeLabel: n = "Close", container: r,
377
377
  function Ce({ className: e, ...t }) {
378
378
  return /* @__PURE__ */ V("div", {
379
379
  "data-slot": "dialog-header",
380
- className: P("flex flex-col gap-2", e),
380
+ className: I("flex flex-col gap-2", e),
381
381
  ...t
382
382
  });
383
383
  }
384
384
  function $({ className: e, ...t }) {
385
385
  return /* @__PURE__ */ V("div", {
386
386
  "data-slot": "dialog-footer",
387
- className: P("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
387
+ className: I("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
388
388
  ...t
389
389
  });
390
390
  }
391
391
  function we({ className: e, ...t }) {
392
392
  return /* @__PURE__ */ V(Z, {
393
393
  "data-slot": "dialog-title",
394
- className: P("text-base leading-none font-medium", e),
394
+ className: I("text-base leading-none font-medium", e),
395
395
  ...t
396
396
  });
397
397
  }
398
398
  //#endregion
399
399
  //#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
400
- function Te({ id: n, issue: r, label: i, name: a, onNameChange: o, onOpenChange: s, onSubmit: c, pending: l, title: u }) {
401
- let d = e(), f = B(null), p = B(null), [m, h] = oe(!1), g = a.length > 0 && r != null, _ = d(g ? `resource.nameIssue.${r}` : "resource.nameHint", { max: 80 }), v = `${n}-message`;
402
- return ae(() => h(!0), []), /* @__PURE__ */ H(se, { children: [/* @__PURE__ */ V("div", { ref: p }), /* @__PURE__ */ V(ye, {
403
- onOpenChange: h,
400
+ function Te({ id: t, issue: n, label: r, name: i, onNameChange: a, onOpenChange: o, onSubmit: s, pending: c, title: l }) {
401
+ let u = e(), d = B(null), f = B(null), [p, m] = oe(!1), h = i.length > 0 && n != null, g = u(h ? `resource.nameIssue.${n}` : "resource.nameHint", { max: 80 }), _ = `${t}-message`;
402
+ return ae(() => m(!0), []), /* @__PURE__ */ H(se, { children: [/* @__PURE__ */ V("div", { ref: f }), /* @__PURE__ */ V(ye, {
403
+ onOpenChange: m,
404
404
  onOpenChangeComplete: (e) => {
405
- e || s(!1);
405
+ e || o(!1);
406
406
  },
407
- open: m,
407
+ open: p,
408
408
  children: /* @__PURE__ */ V(Se, {
409
- container: p.current,
410
- initialFocus: () => f.current,
409
+ container: f.current,
410
+ initialFocus: () => d.current,
411
411
  showCloseButton: !1,
412
412
  children: /* @__PURE__ */ H("form", {
413
413
  className: "flex flex-col gap-4",
414
- onSubmit: c,
414
+ onSubmit: s,
415
415
  children: [
416
416
  /* @__PURE__ */ H(Ce, {
417
417
  className: "flex-row items-center justify-between",
418
- children: [/* @__PURE__ */ V(we, { children: u }), /* @__PURE__ */ V(Q, {
419
- "aria-label": d("common.cancel"),
420
- render: /* @__PURE__ */ V(x, {
418
+ children: [/* @__PURE__ */ V(we, { children: l }), /* @__PURE__ */ V(Q, {
419
+ "aria-label": u("common.cancel"),
420
+ render: /* @__PURE__ */ V(C, {
421
421
  size: "icon-sm",
422
422
  variant: "ghost"
423
423
  }),
@@ -425,38 +425,38 @@ function Te({ id: n, issue: r, label: i, name: a, onNameChange: o, onOpenChange:
425
425
  children: /* @__PURE__ */ V(O, { name: "close" })
426
426
  })]
427
427
  }),
428
- /* @__PURE__ */ V(k, { children: /* @__PURE__ */ H(t, {
429
- "data-invalid": g,
428
+ /* @__PURE__ */ V(x, { children: /* @__PURE__ */ H(k, {
429
+ "data-invalid": h,
430
430
  children: [
431
- /* @__PURE__ */ V(N, {
432
- htmlFor: n,
433
- children: i
431
+ /* @__PURE__ */ V(j, {
432
+ htmlFor: t,
433
+ children: r
434
434
  }),
435
- /* @__PURE__ */ V(T, {
435
+ /* @__PURE__ */ V(R, {
436
436
  autoComplete: "off",
437
- "aria-describedby": v,
438
- "aria-invalid": g,
439
- id: n,
437
+ "aria-describedby": _,
438
+ "aria-invalid": h,
439
+ id: t,
440
440
  name: "resource-name",
441
- onChange: (e) => o(e.target.value),
442
- ref: f,
441
+ onChange: (e) => a(e.target.value),
442
+ ref: d,
443
443
  required: !0,
444
- value: a
444
+ value: i
445
445
  }),
446
- V(g ? ne : C, {
447
- id: v,
448
- children: _
446
+ V(h ? E : F, {
447
+ id: _,
448
+ children: g
449
449
  })
450
450
  ]
451
451
  }) }),
452
452
  /* @__PURE__ */ H($, { children: [/* @__PURE__ */ V(Q, {
453
- render: /* @__PURE__ */ V(x, { variant: "outline" }),
453
+ render: /* @__PURE__ */ V(C, { variant: "outline" }),
454
454
  type: "button",
455
- children: d("common.cancel")
456
- }), /* @__PURE__ */ V(x, {
457
- disabled: l || r != null,
455
+ children: u("common.cancel")
456
+ }), /* @__PURE__ */ V(C, {
457
+ disabled: c || n != null,
458
458
  type: "submit",
459
- children: d(l ? "common.creating" : "common.create")
459
+ children: u(c ? "common.creating" : "common.create")
460
460
  })] })
461
461
  ]
462
462
  })
@@ -1,7 +1,7 @@
1
1
  import { s as e } from "./dist-BpopSHwP.js";
2
2
  import { r as t } from "./dist-BKuSVKCC.js";
3
3
  import { M as n, t as r } from "./dist-CUSrALSX.js";
4
- import { n as i } from "./flowWorkspace-bWrxAxMV.js";
4
+ import { n as i } from "./flowWorkspace-CxlXcTKb.js";
5
5
  //#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
6
6
  var a = (e) => {
7
7
  var i = e.theme, a = e.settings, o = a === void 0 ? {} : a, s = e.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};