@oomol-lab/open-flow 0.1.0-alpha.13 → 0.1.0-alpha.14

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,5 +1,5 @@
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, In as c, It as l, Jn as u, Ln as d, N as f, O as p, Qn as m, Rt as h, S as g, T as _, V as v, Y as y, _t as b, a as x, dt as S, er as C, gt as w, hr as T, ht as E, i as ee, ir as D, k as te, lr as O, lt as k, mt as A, nr as j, o as M, or as N, p as P, r as F, t as I, tr as ne, vr as L, w as re, wr as ie, yt as R } from "./useOpenInteractionType-CRgOHg5M.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";
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";
@@ -21,13 +21,13 @@ function W(e) {
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
23
  ...S,
24
- ...h
24
+ ...R
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 O("div", e, {
30
+ return I("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, b(R, e.nativeEvent));
51
+ l && c.setOpen(!1, y(ie, e.nativeEvent));
52
52
  }
53
- let { getButtonProps: d, buttonRef: f } = T({
53
+ let { getButtonProps: d, buttonRef: f } = w({
54
54
  disabled: i,
55
55
  native: a
56
56
  });
57
- return O("button", e, {
57
+ return I("button", e, {
58
58
  state: { disabled: i },
59
59
  ref: [t, f],
60
60
  props: [
@@ -69,26 +69,26 @@ process.env.NODE_ENV !== "production" && (K.displayName = "DialogClose");
69
69
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
70
70
  var ue = /*#__PURE__*/ function(e) {
71
71
  return e.nestedDialogs = "--nested-dialogs", e;
72
- }({}), q = function(e) {
73
- return e[e.open = k.open] = "open", e[e.closed = k.closed] = "closed", e[e.startingStyle = k.startingStyle] = "startingStyle", e[e.endingStyle = k.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
74
- }({}), J = /*#__PURE__*/ z.createContext(void 0);
75
- process.env.NODE_ENV !== "production" && (J.displayName = "DialogPortalContext");
76
- function de() {
77
- let e = z.useContext(J);
72
+ }({}), de = function(e) {
73
+ return e[e.open = D.open] = "open", e[e.closed = D.closed] = "closed", e[e.startingStyle = D.startingStyle] = "startingStyle", e[e.endingStyle = D.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
74
+ }({}), q = /*#__PURE__*/ z.createContext(void 0);
75
+ process.env.NODE_ENV !== "production" && (q.displayName = "DialogPortalContext");
76
+ function fe() {
77
+ let e = z.useContext(q);
78
78
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? L(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
- var fe = {
83
+ var pe = {
84
84
  ...S,
85
- ...h,
85
+ ...R,
86
86
  nestedDialogOpen(e) {
87
- return e ? { [q.nestedDialogOpen]: "" } : null;
87
+ return e ? { [de.nestedDialogOpen]: "" } : null;
88
88
  }
89
- }, Y = /*#__PURE__*/ z.forwardRef(function(e, t) {
90
- let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...c } = 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
- de(), l({
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
92
  open: y,
93
93
  ref: u.context.popupRef,
94
94
  onComplete() {
@@ -98,7 +98,7 @@ var fe = {
98
98
  function w(e) {
99
99
  return e !== "touch" || u.context.popupRef.current;
100
100
  }
101
- let T = i === void 0 ? w : i, E = O("div", e, {
101
+ let T = i === void 0 ? w : i, E = I("div", e, {
102
102
  state: {
103
103
  open: y,
104
104
  nested: _,
@@ -114,18 +114,18 @@ var fe = {
114
114
  tabIndex: -1,
115
115
  hidden: !g,
116
116
  onKeyDown(e) {
117
- P.has(e.key) && e.stopPropagation();
117
+ j.has(e.key) && e.stopPropagation();
118
118
  },
119
119
  style: { [ue.nestedDialogs]: v }
120
120
  },
121
- c
121
+ l
122
122
  ],
123
123
  ref: [
124
124
  t,
125
125
  u.context.popupRef,
126
126
  u.useStateSetter("popupElement")
127
127
  ],
128
- stateAttributesMapping: fe
128
+ stateAttributesMapping: pe
129
129
  });
130
130
  return /*#__PURE__*/ V(s, {
131
131
  context: p,
@@ -139,41 +139,41 @@ var fe = {
139
139
  children: E
140
140
  });
141
141
  });
142
- process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPopup");
142
+ process.env.NODE_ENV !== "production" && (J.displayName = "DialogPopup");
143
143
  //#endregion
144
144
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
145
- var X = /*#__PURE__*/ z.forwardRef(function(e, t) {
145
+ 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
- return a || n ? /*#__PURE__*/ V(J.Provider, {
147
+ return a || n ? /*#__PURE__*/ V(q.Provider, {
148
148
  value: n,
149
- children: /*#__PURE__*/ H(y, {
149
+ children: /*#__PURE__*/ H(_, {
150
150
  ref: t,
151
151
  ...r,
152
- children: [a && o === !0 && /*#__PURE__*/ V(x, {
152
+ children: [a && o === !0 && /*#__PURE__*/ V(b, {
153
153
  ref: i.context.internalBackdropRef,
154
- inert: M(!s)
154
+ inert: A(!s)
155
155
  }), e.children]
156
156
  })
157
157
  }) : null;
158
158
  });
159
- process.env.NODE_ENV !== "production" && (X.displayName = "DialogPortal");
159
+ 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
- function pe(e) {
163
- let { store: t, parentContext: n, actionsRef: a, isDrawer: o } = e, s = t.useState("open"), l = t.useState("disablePointerDismissal"), u = t.useState("modal"), f = t.useState("popupElement"), { openMethod: m, triggerProps: h } = I(s);
164
- p(t);
165
- let { forceUnmount: _ } = te(s, t), y = z.useCallback(() => {
166
- t.setOpen(!1, b(i));
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));
167
167
  }, [t]);
168
168
  z.useImperativeHandle(a, () => ({
169
- unmount: _,
170
- close: y
171
- }), [_, y]);
169
+ unmount: v,
170
+ close: b
171
+ }), [v, b]);
172
172
  let x = 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 = g(x), O = v(x, {
176
+ }), [S, C] = z.useState(0), [w, T] = z.useState(0), E = S === 0, D = p(x), O = g(x, {
177
177
  outsidePressEvent() {
178
178
  return t.context.internalBackdropRef.current || t.context.backdropRef.current ? "intentional" : {
179
179
  mouse: u === "trap-focus" ? "sloppy" : "intentional",
@@ -182,16 +182,16 @@ function pe(e) {
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 = d(e);
186
- if (E && !l) {
185
+ let n = f(e);
186
+ if (E && !c) {
187
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 || c(e, f) && !e?.hasAttribute("data-base-ui-portal") : !0;
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;
189
189
  }
190
190
  return !1;
191
191
  },
192
192
  escapeKey: E
193
193
  });
194
- ee(s && u === !0, f);
194
+ ee(s && u === !0, m);
195
195
  let { getReferenceProps: k, getFloatingProps: A, getTriggerProps: j } = r([D, O]);
196
196
  t.useContextCallback("onNestedDialogOpen", (e, t) => {
197
197
  C(e), T(t);
@@ -206,9 +206,9 @@ function pe(e) {
206
206
  w,
207
207
  n
208
208
  ]);
209
- let M = z.useMemo(() => k(h), [k, h]), N = z.useMemo(() => j(h), [j, h]), P = z.useMemo(() => A(), [A]);
209
+ let M = z.useMemo(() => k(_), [k, _]), N = z.useMemo(() => j(_), [j, _]), P = z.useMemo(() => A(), [A]);
210
210
  t.useSyncedValues({
211
- openMethod: m,
211
+ openMethod: h,
212
212
  activeTriggerProps: M,
213
213
  inactiveTriggerProps: N,
214
214
  popupProps: P,
@@ -219,7 +219,7 @@ function pe(e) {
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
- var me = {
222
+ var he = {
223
223
  ...o,
224
224
  modal: n((e) => e.modal),
225
225
  nested: n((e) => e.nested),
@@ -231,9 +231,9 @@ var me = {
231
231
  titleElementId: n((e) => e.titleElementId),
232
232
  viewportElement: n((e) => e.viewportElement),
233
233
  role: n((e) => e.role)
234
- }, he = class e extends f {
234
+ }, ge = class e extends u {
235
235
  constructor(e) {
236
- super(ge(e), {
236
+ super(_e(e), {
237
237
  popupRef: /*#__PURE__*/ z.createRef(),
238
238
  backdropRef: /*#__PURE__*/ z.createRef(),
239
239
  internalBackdropRef: /*#__PURE__*/ z.createRef(),
@@ -241,7 +241,7 @@ var me = {
241
241
  triggerElements: new a(),
242
242
  onOpenChange: void 0,
243
243
  onOpenChangeComplete: void 0
244
- }, me);
244
+ }, he);
245
245
  }
246
246
  setOpen = (e, t) => {
247
247
  if (t.preventUnmountOnClose = () => {
@@ -252,13 +252,13 @@ var me = {
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 = ie(() => new e(n)).current;
255
+ let r = h(() => new e(n)).current;
256
256
  return t ?? r;
257
257
  }
258
258
  };
259
- function ge(e = {}) {
259
+ function _e(e = {}) {
260
260
  return {
261
- ..._(),
261
+ ...m(),
262
262
  modal: !0,
263
263
  disablePointerDismissal: !1,
264
264
  popupElement: null,
@@ -275,10 +275,10 @@ function ge(e = {}) {
275
275
  }
276
276
  //#endregion
277
277
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
278
- var Z = /*#__PURE__*/ z.createContext(!1);
279
- process.env.NODE_ENV !== "production" && (Z.displayName = "IsDrawerContext");
280
- function _e(e) {
281
- let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: u, defaultTriggerId: d = null } = e, f = W(!0), p = z.useContext(Z), m = !!f, h = he.useStore(l?.store, {
278
+ var X = /*#__PURE__*/ z.createContext(!1);
279
+ process.env.NODE_ENV !== "production" && (X.displayName = "IsDrawerContext");
280
+ function ve(e) {
281
+ let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: u, defaultTriggerId: d = null } = e, f = W(!0), p = z.useContext(X), m = !!f, h = ge.useStore(l?.store, {
282
282
  open: r,
283
283
  openProp: n,
284
284
  activeTriggerId: d,
@@ -287,7 +287,7 @@ function _e(e) {
287
287
  disablePointerDismissal: o,
288
288
  nested: m
289
289
  });
290
- F(() => {
290
+ M(() => {
291
291
  n === void 0 && h.state.open === !1 && r === !0 && h.update({
292
292
  open: !0,
293
293
  activeTriggerId: d
@@ -298,7 +298,7 @@ function _e(e) {
298
298
  modal: s
299
299
  }), h.useContextCallback("onOpenChange", i), h.useContextCallback("onOpenChangeComplete", a);
300
300
  let g = h.useState("payload");
301
- pe({
301
+ me({
302
302
  store: h,
303
303
  actionsRef: c,
304
304
  parentContext: f?.store.context,
@@ -307,7 +307,7 @@ function _e(e) {
307
307
  triggerIdProp: u
308
308
  });
309
309
  let _ = z.useMemo(() => ({ store: h }), [h]);
310
- return /*#__PURE__*/ V(Z.Provider, {
310
+ return /*#__PURE__*/ V(X.Provider, {
311
311
  value: !1,
312
312
  children: /*#__PURE__*/ V(U.Provider, {
313
313
  value: _,
@@ -317,51 +317,51 @@ function _e(e) {
317
317
  }
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
- var Q = /*#__PURE__*/ z.forwardRef(function(e, t) {
321
- let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = W(), c = u(a);
322
- return s.useSyncedValueWithCleanup("titleElementId", c), O("h2", e, {
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, {
323
323
  ref: t,
324
324
  props: [{ id: c }, o]
325
325
  });
326
326
  });
327
- process.env.NODE_ENV !== "production" && (Q.displayName = "DialogTitle");
327
+ process.env.NODE_ENV !== "production" && (Z.displayName = "DialogTitle");
328
328
  //#endregion
329
329
  //#region src/ui/browser/dialog.tsx
330
- function ve(e) {
331
- return /* @__PURE__ */ V(_e, {
330
+ function ye(e) {
331
+ return /* @__PURE__ */ V(ve, {
332
332
  "data-slot": "dialog",
333
333
  ...e
334
334
  });
335
335
  }
336
- function ye(e) {
337
- return /* @__PURE__ */ V(X, {
336
+ function be(e) {
337
+ return /* @__PURE__ */ V(Y, {
338
338
  "data-slot": "dialog-portal",
339
339
  ...e
340
340
  });
341
341
  }
342
- function $(e) {
342
+ function Q(e) {
343
343
  return /* @__PURE__ */ V(K, {
344
344
  "data-slot": "dialog-close",
345
345
  ...e
346
346
  });
347
347
  }
348
- function be({ className: e, ...t }) {
348
+ function xe({ className: e, ...t }) {
349
349
  return /* @__PURE__ */ V(G, {
350
350
  "data-slot": "dialog-overlay",
351
- className: N("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: 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),
352
352
  ...t
353
353
  });
354
354
  }
355
- function xe({ children: e, className: t, closeLabel: n = "Close", container: r, showCloseButton: i = !0, ...a }) {
356
- return /* @__PURE__ */ H(ye, {
355
+ function Se({ children: e, className: t, closeLabel: n = "Close", container: r, showCloseButton: i = !0, ...a }) {
356
+ return /* @__PURE__ */ H(be, {
357
357
  container: r,
358
- children: [/* @__PURE__ */ V(be, {}), /* @__PURE__ */ H(Y, {
358
+ children: [/* @__PURE__ */ V(xe, {}), /* @__PURE__ */ H(J, {
359
359
  "data-slot": "dialog-content",
360
- className: N("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: 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),
361
361
  ...a,
362
362
  children: [e, i && /* @__PURE__ */ H(K, {
363
363
  "data-slot": "dialog-close",
364
- render: /* @__PURE__ */ V(D, {
364
+ render: /* @__PURE__ */ V(x, {
365
365
  className: "absolute top-2 right-2",
366
366
  size: "icon-sm",
367
367
  variant: "ghost"
@@ -374,38 +374,38 @@ function xe({ children: e, className: t, closeLabel: n = "Close", container: r,
374
374
  })]
375
375
  });
376
376
  }
377
- function Se({ className: e, ...t }) {
377
+ function Ce({ className: e, ...t }) {
378
378
  return /* @__PURE__ */ V("div", {
379
379
  "data-slot": "dialog-header",
380
- className: N("flex flex-col gap-2", e),
380
+ className: P("flex flex-col gap-2", e),
381
381
  ...t
382
382
  });
383
383
  }
384
- function Ce({ className: e, ...t }) {
384
+ function $({ className: e, ...t }) {
385
385
  return /* @__PURE__ */ V("div", {
386
386
  "data-slot": "dialog-footer",
387
- className: N("-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: 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),
388
388
  ...t
389
389
  });
390
390
  }
391
391
  function we({ className: e, ...t }) {
392
- return /* @__PURE__ */ V(Q, {
392
+ return /* @__PURE__ */ V(Z, {
393
393
  "data-slot": "dialog-title",
394
- className: N("text-base leading-none font-medium", e),
394
+ className: P("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
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), [h, g] = oe(!1), _ = a.length > 0 && r != null, v = d(_ ? `resource.nameIssue.${r}` : "resource.nameHint", { max: 80 }), y = `${n}-message`;
402
- return ae(() => g(!0), []), /* @__PURE__ */ H(se, { children: [/* @__PURE__ */ V("div", { ref: p }), /* @__PURE__ */ V(ve, {
403
- onOpenChange: g,
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,
404
404
  onOpenChangeComplete: (e) => {
405
405
  e || s(!1);
406
406
  },
407
- open: h,
408
- children: /* @__PURE__ */ V(xe, {
407
+ open: m,
408
+ children: /* @__PURE__ */ V(Se, {
409
409
  container: p.current,
410
410
  initialFocus: () => f.current,
411
411
  showCloseButton: !1,
@@ -413,29 +413,29 @@ function Te({ id: n, issue: r, label: i, name: a, onNameChange: o, onOpenChange:
413
413
  className: "flex flex-col gap-4",
414
414
  onSubmit: c,
415
415
  children: [
416
- /* @__PURE__ */ H(Se, {
416
+ /* @__PURE__ */ H(Ce, {
417
417
  className: "flex-row items-center justify-between",
418
- children: [/* @__PURE__ */ V(we, { children: u }), /* @__PURE__ */ V($, {
418
+ children: [/* @__PURE__ */ V(we, { children: u }), /* @__PURE__ */ V(Q, {
419
419
  "aria-label": d("common.cancel"),
420
- render: /* @__PURE__ */ V(D, {
420
+ render: /* @__PURE__ */ V(x, {
421
421
  size: "icon-sm",
422
422
  variant: "ghost"
423
423
  }),
424
424
  type: "button",
425
- children: /* @__PURE__ */ V(A, { name: "close" })
425
+ children: /* @__PURE__ */ V(O, { name: "close" })
426
426
  })]
427
427
  }),
428
- /* @__PURE__ */ V(ne, { children: /* @__PURE__ */ H(m, {
429
- "data-invalid": _,
428
+ /* @__PURE__ */ V(k, { children: /* @__PURE__ */ H(t, {
429
+ "data-invalid": g,
430
430
  children: [
431
- /* @__PURE__ */ V(j, {
431
+ /* @__PURE__ */ V(N, {
432
432
  htmlFor: n,
433
433
  children: i
434
434
  }),
435
- /* @__PURE__ */ V(w, {
435
+ /* @__PURE__ */ V(T, {
436
436
  autoComplete: "off",
437
- "aria-describedby": y,
438
- "aria-invalid": _,
437
+ "aria-describedby": v,
438
+ "aria-invalid": g,
439
439
  id: n,
440
440
  name: "resource-name",
441
441
  onChange: (e) => o(e.target.value),
@@ -443,17 +443,17 @@ function Te({ id: n, issue: r, label: i, name: a, onNameChange: o, onOpenChange:
443
443
  required: !0,
444
444
  value: a
445
445
  }),
446
- V(_ ? C : t, {
447
- id: y,
448
- children: v
446
+ V(g ? ne : C, {
447
+ id: v,
448
+ children: _
449
449
  })
450
450
  ]
451
451
  }) }),
452
- /* @__PURE__ */ H(Ce, { children: [/* @__PURE__ */ V($, {
453
- render: /* @__PURE__ */ V(D, { variant: "outline" }),
452
+ /* @__PURE__ */ H($, { children: [/* @__PURE__ */ V(Q, {
453
+ render: /* @__PURE__ */ V(x, { variant: "outline" }),
454
454
  type: "button",
455
455
  children: d("common.cancel")
456
- }), /* @__PURE__ */ V(D, {
456
+ }), /* @__PURE__ */ V(x, {
457
457
  disabled: l || r != null,
458
458
  type: "submit",
459
459
  children: d(l ? "common.creating" : "common.create")
@@ -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-_qaqIyDi.js";
4
+ import { n as i } from "./flowWorkspace-bWrxAxMV.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 = {};