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

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, 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 { 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
- ...h
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 O("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, b(R, e.nativeEvent));
51
+ l && c.setOpen(!1, S(h, e.nativeEvent));
52
52
  }
53
- let { getButtonProps: d, buttonRef: f } = T({
53
+ let { getButtonProps: d, buttonRef: f } = L({
54
54
  disabled: i,
55
55
  native: a
56
56
  });
57
- return O("button", e, {
57
+ return N("button", e, {
58
58
  state: { disabled: i },
59
59
  ref: [t, f],
60
60
  props: [
@@ -69,179 +69,179 @@ 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);
78
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? L(26) : "Base UI: <Dialog.Portal> is missing.");
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
+ 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
- var fe = {
84
- ...S,
85
- ...h,
83
+ var pe = {
84
+ ...w,
85
+ ...c,
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({
92
- open: y,
93
- ref: u.context.popupRef,
89
+ }, J = /*#__PURE__*/ z.forwardRef(function(e, t) {
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 = O("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
- P.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
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
- stateAttributesMapping: fe
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
- 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
149
  children: /*#__PURE__*/ H(y, {
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: 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: _,
169
+ unmount: g,
170
170
  close: y
171
- }), [_, y]);
172
- let x = re({
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 = g(x), O = v(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 = d(e);
186
- if (E && !l) {
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;
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, f);
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(h), [k, h]), N = z.useMemo(() => j(h), [j, h]), 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
211
  openMethod: m,
212
- activeTriggerProps: M,
213
- inactiveTriggerProps: N,
214
- popupProps: P,
215
- floatingRootContext: x,
216
- nestedOpenDialogCount: S,
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
- var me = {
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
- }, he = class e extends f {
222
+ var he = {
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
- 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(),
240
240
  outsidePressEnabledRef: { current: !0 },
241
- triggerElements: new a(),
241
+ triggerElements: new i(),
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 = d(() => 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
+ ...g(),
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
+ P(() => {
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 = f(a);
322
+ return s.useSyncedValueWithCleanup("titleElementId", c), N("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: 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
  }
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: 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(D, {
364
+ render: /* @__PURE__ */ V(C, {
365
365
  className: "absolute top-2 right-2",
366
366
  size: "icon-sm",
367
367
  variant: "ghost"
@@ -374,89 +374,89 @@ 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: I("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: 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
- 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: 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), [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,
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: h,
408
- children: /* @__PURE__ */ V(xe, {
409
- container: p.current,
410
- initialFocus: () => f.current,
407
+ open: p,
408
+ children: /* @__PURE__ */ V(Se, {
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
- /* @__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($, {
419
- "aria-label": d("common.cancel"),
420
- render: /* @__PURE__ */ V(D, {
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
  }),
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(x, { children: /* @__PURE__ */ H(k, {
429
+ "data-invalid": h,
430
430
  children: [
431
431
  /* @__PURE__ */ V(j, {
432
- htmlFor: n,
433
- children: i
432
+ htmlFor: t,
433
+ children: r
434
434
  }),
435
- /* @__PURE__ */ V(w, {
435
+ /* @__PURE__ */ V(R, {
436
436
  autoComplete: "off",
437
- "aria-describedby": y,
438
- "aria-invalid": _,
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(_ ? C : t, {
447
- id: y,
448
- children: v
446
+ V(h ? E : F, {
447
+ id: _,
448
+ children: g
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(C, { variant: "outline" }),
454
454
  type: "button",
455
- children: d("common.cancel")
456
- }), /* @__PURE__ */ V(D, {
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-_qaqIyDi.js";
4
+ import { n as i } from "./flowWorkspace-nnM1b6Wz.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 = {};