@oomol-lab/open-flow 0.1.0-beta.30 → 0.1.0-beta.31

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.
@@ -4375,7 +4375,10 @@ var Ac = B(H([V({
4375
4375
  }))
4376
4376
  })),
4377
4377
  defaultOutput: K.optional()
4378
- }, Kc = { prompt: K }, qc = {
4378
+ }, Kc = {
4379
+ inputDefinitions: B(J),
4380
+ prompt: K
4381
+ }, qc = {
4379
4382
  bodyFields: B(J),
4380
4383
  options: V({
4381
4384
  allowedMethods: jc.optional(),
@@ -4457,13 +4460,11 @@ var Ac = B(H([V({
4457
4460
  Js({
4458
4461
  ...Zc,
4459
4462
  kind: G("approval"),
4460
- input: J,
4461
4463
  ...Kc
4462
4464
  }).omit({ timeoutMs: !0 }),
4463
4465
  Js({
4464
4466
  ...Zc,
4465
4467
  kind: G("wait"),
4466
- input: J,
4467
4468
  ...Kc
4468
4469
  }).omit({ timeoutMs: !0 }),
4469
4470
  V({
@@ -4535,15 +4536,15 @@ var Ac = B(H([V({
4535
4536
  modelVersion: H([G(2), G(3)]),
4536
4537
  document: al,
4537
4538
  modules: U(K, il)
4538
- }), sl = ol.extend({ modelVersion: G(3) });
4539
+ });
4539
4540
  ol.extend({
4540
4541
  kind: G("open-flow-flow-revision"),
4541
4542
  version: G(1)
4542
4543
  });
4543
- function cl(e) {
4544
- return kc(e), sl.parse(e);
4544
+ function sl(e) {
4545
+ return kc(e), ol.parse(e);
4545
4546
  }
4546
- var ll = {
4547
+ var cl = {
4547
4548
  "binding.create": {
4548
4549
  bindingId: K,
4549
4550
  binding: rl
@@ -4706,13 +4707,13 @@ var ll = {
4706
4707
  value: K
4707
4708
  }
4708
4709
  };
4709
- B(H([...new Map(Object.entries(ll).map(([e, t]) => [e, t instanceof I ? t : V({
4710
+ B(H([...new Map(Object.entries(cl).map(([e, t]) => [e, t instanceof I ? t : V({
4710
4711
  kind: G(e),
4711
4712
  ...t
4712
4713
  })])).values()])).min(1);
4713
4714
  //#endregion
4714
4715
  //#region src/flow/common/change.ts
4715
- var ul = /* @__PURE__ */ new Set([
4716
+ var ll = /* @__PURE__ */ new Set([
4716
4717
  "const",
4717
4718
  "enum",
4718
4719
  "exclusiveMaximum",
@@ -4730,10 +4731,10 @@ var ul = /* @__PURE__ */ new Set([
4730
4731
  "required",
4731
4732
  "type"
4732
4733
  ]);
4733
- function dl(e) {
4734
- return ul.has(e);
4734
+ function ul(e) {
4735
+ return ll.has(e);
4735
4736
  }
4736
- function fl(e) {
4737
+ function dl(e) {
4737
4738
  let t = e.trim();
4738
4739
  if (t.length == 0) return "empty";
4739
4740
  if (t.length > 80) return "tooLong";
@@ -4743,10 +4744,10 @@ function fl(e) {
4743
4744
  }
4744
4745
  if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
4745
4746
  }
4746
- function pl(e) {
4747
+ function fl(e) {
4747
4748
  return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
4748
4749
  }
4749
- function ml(e) {
4750
+ function pl(e) {
4750
4751
  if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
4751
4752
  let t = /* @__PURE__ */ new Set();
4752
4753
  return e.map((e) => {
@@ -4782,27 +4783,27 @@ function ml(e) {
4782
4783
  };
4783
4784
  });
4784
4785
  }
4785
- function hl(e) {
4786
+ function ml(e) {
4786
4787
  return e.trim().normalize("NFC");
4787
4788
  }
4788
- function gl(e, t) {
4789
- let n = hl(e), r = new Set([...t].map(hl));
4789
+ function hl(e, t) {
4790
+ let n = ml(e), r = new Set([...t].map(ml));
4790
4791
  if (!r.has(n)) return n;
4791
4792
  let i = /^(.*) \((\d+)\)$/.exec(n), a = i?.[2], o = a != null && Number(a) >= 2 ? Number(a) : void 0, s = o == null ? n : i?.[1] ?? n, c = o == null ? 2 : o + 1;
4792
4793
  for (; r.has(`${s} (${c})`);) c += 1;
4793
4794
  return `${s} (${c})`;
4794
4795
  }
4795
- function _l(e, t, n) {
4796
- let r = hl(n);
4797
- return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && hl(n.name) == r) ? "duplicate" : void 0;
4796
+ function gl(e, t, n) {
4797
+ let r = ml(n);
4798
+ return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && ml(n.name) == r) ? "duplicate" : void 0;
4798
4799
  }
4799
- var vl = class extends Error {
4800
+ var _l = class extends Error {
4800
4801
  constructor(e) {
4801
4802
  super(e), this.name = "FlowChangeError";
4802
4803
  }
4803
4804
  };
4804
4805
  function X(e) {
4805
- throw new vl(e);
4806
+ throw new _l(e);
4806
4807
  }
4807
4808
  function Z(e, t) {
4808
4809
  if (t.kind == "flow") return e.graph;
@@ -4826,7 +4827,7 @@ function Q(e, t, n) {
4826
4827
  }
4827
4828
  };
4828
4829
  }
4829
- function yl(e, t) {
4830
+ function vl(e, t) {
4830
4831
  let n = { ...e.document }, r = { ...e.modules };
4831
4832
  for (let e of t) switch (e.kind) {
4832
4833
  case "binding.create":
@@ -4907,8 +4908,8 @@ function yl(e, t) {
4907
4908
  }
4908
4909
  case "graph.node.create": {
4909
4910
  let t = Z(n, e.target);
4910
- t.nodes[e.nodeId] != null && X("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && X("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && X("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && ml(e.node.task.capabilities), e.node.name ?? X("A Node name cannot be empty.");
4911
- let r = hl(e.node.name), i = _l(t, e.nodeId, r);
4911
+ t.nodes[e.nodeId] != null && X("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && X("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && X("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && pl(e.node.task.capabilities), e.node.name ?? X("A Node name cannot be empty.");
4912
+ let r = ml(e.node.name), i = gl(t, e.nodeId, r);
4912
4913
  i == "empty" && X("A Node name cannot be empty."), i == "duplicate" && X("A Node with this name already exists in the target graph.");
4913
4914
  let a = r == e.node.name ? e.node : {
4914
4915
  ...e.node,
@@ -4940,7 +4941,7 @@ function yl(e, t) {
4940
4941
  let i = { ...r };
4941
4942
  if (e.field == "name") {
4942
4943
  typeof e.value != "string" && X("A Node name cannot be empty.");
4943
- let n = hl(e.value), r = _l(t, e.nodeId, n);
4944
+ let n = ml(e.value), r = gl(t, e.nodeId, n);
4944
4945
  r == "empty" && X("A Node name cannot be empty."), r == "duplicate" && X("A Node with this name already exists in the target graph."), Object.assign(i, { name: n });
4945
4946
  } else e.value == null ? Reflect.deleteProperty(i, e.field) : Object.assign(i, { [e.field]: e.value });
4946
4947
  Object.assign(n, Q(n, e.target, {
@@ -4972,7 +4973,7 @@ function yl(e, t) {
4972
4973
  let t = Z(n, e.target), r = t.nodes[e.nodeId];
4973
4974
  (r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), v(r.task.capabilities, e.before) || X("The inline Task capabilities changed before this operation was applied.");
4974
4975
  let i = { ...r.task };
4975
- e.value === void 0 ? delete i.capabilities : i.capabilities = ml(e.value), Object.assign(n, Q(n, e.target, {
4976
+ e.value === void 0 ? delete i.capabilities : i.capabilities = pl(e.value), Object.assign(n, Q(n, e.target, {
4976
4977
  ...t,
4977
4978
  nodes: {
4978
4979
  ...t.nodes,
@@ -5042,7 +5043,10 @@ function yl(e, t) {
5042
5043
  }
5043
5044
  case "graph.node.resolution.set": {
5044
5045
  let t = n.graph, r = t.nodes[e.nodeId];
5045
- (r?.kind != "wait" && r?.kind != "approval" || !v({ prompt: r.prompt }, e.before)) && X("The resolution node changed before this operation was applied.");
5046
+ (r?.kind != "wait" && r?.kind != "approval" || !v({
5047
+ inputDefinitions: r.inputDefinitions,
5048
+ prompt: r.prompt
5049
+ }, e.before)) && X("The resolution node changed before this operation was applied.");
5046
5050
  let i = {
5047
5051
  ...r,
5048
5052
  ...e.value
@@ -5137,7 +5141,7 @@ function yl(e, t) {
5137
5141
  }
5138
5142
  case "subflow.create":
5139
5143
  n.subflows[e.subflowId] != null && X("A Subflow with this ID already exists.");
5140
- for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && ml(t.task.capabilities);
5144
+ for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && pl(t.task.capabilities);
5141
5145
  n.subflows = {
5142
5146
  ...n.subflows,
5143
5147
  [e.subflowId]: e.subflow
@@ -5234,14 +5238,14 @@ function yl(e, t) {
5234
5238
  }
5235
5239
  //#endregion
5236
5240
  //#region src/ui/browser/field.tsx
5237
- function bl({ className: e, ...t }) {
5241
+ function yl({ className: e, ...t }) {
5238
5242
  return /* @__PURE__ */ b("div", {
5239
5243
  "data-slot": "field-group",
5240
5244
  className: a("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
5241
5245
  ...t
5242
5246
  });
5243
5247
  }
5244
- var xl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5248
+ var bl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5245
5249
  variants: { orientation: {
5246
5250
  vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
5247
5251
  horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
@@ -5249,30 +5253,30 @@ var xl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
5249
5253
  } },
5250
5254
  defaultVariants: { orientation: "vertical" }
5251
5255
  });
5252
- function Sl({ className: e, orientation: t = "vertical", ...n }) {
5256
+ function xl({ className: e, orientation: t = "vertical", ...n }) {
5253
5257
  return /* @__PURE__ */ b("div", {
5254
5258
  role: "group",
5255
5259
  "data-slot": "field",
5256
5260
  "data-orientation": t,
5257
- className: a(xl({ orientation: t }), e),
5261
+ className: a(bl({ orientation: t }), e),
5258
5262
  ...n
5259
5263
  });
5260
5264
  }
5261
- function Cl({ className: e, ...t }) {
5265
+ function Sl({ className: e, ...t }) {
5262
5266
  return /* @__PURE__ */ b(Ne, {
5263
5267
  "data-slot": "field-label",
5264
5268
  className: a("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:outline-2 has-[>[data-slot=field]]:has-[:focus-visible]:outline-solid has-[>[data-slot=field]]:has-[:focus-visible]:ring-0 has-[>[data-slot=field]]:has-[:focus-visible]:outline-offset-1 has-[>[data-slot=field]]:has-[:focus-visible]:outline-ring *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
5265
5269
  ...t
5266
5270
  });
5267
5271
  }
5268
- function wl({ className: e, ...t }) {
5272
+ function Cl({ className: e, ...t }) {
5269
5273
  return /* @__PURE__ */ b("p", {
5270
5274
  "data-slot": "field-description",
5271
5275
  className: a("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
5272
5276
  ...t
5273
5277
  });
5274
5278
  }
5275
- function Tl({ className: e, children: t, errors: n, ...r }) {
5279
+ function wl({ className: e, children: t, errors: n, ...r }) {
5276
5280
  let i = ke(() => {
5277
5281
  if (t) return t;
5278
5282
  if (!n?.length) return null;
@@ -5292,7 +5296,7 @@ function Tl({ className: e, children: t, errors: n, ...r }) {
5292
5296
  }
5293
5297
  //#endregion
5294
5298
  //#region src/ui/browser/spinner.tsx
5295
- function El({ className: e, ...t }) {
5299
+ function Tl({ className: e, ...t }) {
5296
5300
  return /* @__PURE__ */ b(Ae, {
5297
5301
  "data-slot": "spinner",
5298
5302
  role: "status",
@@ -5303,19 +5307,19 @@ function El({ className: e, ...t }) {
5303
5307
  }
5304
5308
  //#endregion
5305
5309
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
5306
- var Dl = /*#__PURE__*/ S.createContext(void 0);
5307
- process.env.NODE_ENV !== "production" && (Dl.displayName = "DialogRootContext");
5310
+ var El = /*#__PURE__*/ S.createContext(void 0);
5311
+ process.env.NODE_ENV !== "production" && (El.displayName = "DialogRootContext");
5308
5312
  function $(e) {
5309
- let t = S.useContext(Dl);
5313
+ let t = S.useContext(El);
5310
5314
  if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
5311
5315
  return t;
5312
5316
  }
5313
5317
  //#endregion
5314
5318
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
5315
- var Ol = {
5319
+ var Dl = {
5316
5320
  ...h,
5317
5321
  ...ue
5318
- }, kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5322
+ }, Ol = /*#__PURE__*/ S.forwardRef(function(e, t) {
5319
5323
  let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } = $(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
5320
5324
  open: l,
5321
5325
  transitionStatus: c.useState("transitionStatus")
@@ -5323,7 +5327,7 @@ var Ol = {
5323
5327
  return i("div", e, {
5324
5328
  state: f,
5325
5329
  ref: [c.context.backdropRef, t],
5326
- stateAttributesMapping: Ol,
5330
+ stateAttributesMapping: Dl,
5327
5331
  props: [{
5328
5332
  role: "presentation",
5329
5333
  hidden: !d,
@@ -5335,10 +5339,10 @@ var Ol = {
5335
5339
  enabled: o || !u
5336
5340
  });
5337
5341
  });
5338
- process.env.NODE_ENV !== "production" && (kl.displayName = "DialogBackdrop");
5342
+ process.env.NODE_ENV !== "production" && (Ol.displayName = "DialogBackdrop");
5339
5343
  //#endregion
5340
5344
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
5341
- var Al = /*#__PURE__*/ S.forwardRef(function(e, t) {
5345
+ var kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5342
5346
  let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = $(), u = l.useState("open");
5343
5347
  function d(e) {
5344
5348
  u && l.setOpen(!1, fe(re, e.nativeEvent));
@@ -5357,41 +5361,41 @@ var Al = /*#__PURE__*/ S.forwardRef(function(e, t) {
5357
5361
  ]
5358
5362
  });
5359
5363
  });
5360
- process.env.NODE_ENV !== "production" && (Al.displayName = "DialogClose");
5364
+ process.env.NODE_ENV !== "production" && (kl.displayName = "DialogClose");
5361
5365
  //#endregion
5362
5366
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
5363
- var jl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5367
+ var Al = /*#__PURE__*/ S.forwardRef(function(e, t) {
5364
5368
  let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
5365
5369
  return c.useSyncedValueWithCleanup("descriptionElementId", l), i("p", e, {
5366
5370
  ref: t,
5367
5371
  props: [{ id: l }, s]
5368
5372
  });
5369
5373
  });
5370
- process.env.NODE_ENV !== "production" && (jl.displayName = "DialogDescription");
5374
+ process.env.NODE_ENV !== "production" && (Al.displayName = "DialogDescription");
5371
5375
  //#endregion
5372
5376
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
5373
- var Ml = /*#__PURE__*/ function(e) {
5377
+ var jl = /*#__PURE__*/ function(e) {
5374
5378
  return e.nestedDialogs = "--nested-dialogs", e;
5375
- }({}), Nl = function(e) {
5379
+ }({}), Ml = function(e) {
5376
5380
  return e[e.open = Oe.open] = "open", e[e.closed = Oe.closed] = "closed", e[e.startingStyle = Oe.startingStyle] = "startingStyle", e[e.endingStyle = Oe.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
5377
- }({}), Pl = /*#__PURE__*/ S.createContext(void 0);
5378
- process.env.NODE_ENV !== "production" && (Pl.displayName = "DialogPortalContext");
5379
- function Fl() {
5380
- let e = S.useContext(Pl);
5381
+ }({}), Nl = /*#__PURE__*/ S.createContext(void 0);
5382
+ process.env.NODE_ENV !== "production" && (Nl.displayName = "DialogPortalContext");
5383
+ function Pl() {
5384
+ let e = S.useContext(Nl);
5381
5385
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(26) : "Base UI: <Dialog.Portal> is missing.");
5382
5386
  return e;
5383
5387
  }
5384
5388
  //#endregion
5385
5389
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
5386
- var Il = {
5390
+ var Fl = {
5387
5391
  ...h,
5388
5392
  ...ue,
5389
5393
  nestedDialogOpen(e) {
5390
- return e ? { [Nl.nestedDialogOpen]: "" } : null;
5394
+ return e ? { [Ml.nestedDialogOpen]: "" } : null;
5391
5395
  }
5392
- }, Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5396
+ }, Il = /*#__PURE__*/ S.forwardRef(function(e, t) {
5393
5397
  let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } = $(), 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"), ee = l.useState("open"), te = l.useState("openMethod"), ne = l.useState("titleElementId"), re = l.useState("transitionStatus"), ie = l.useState("role");
5394
- Fl(), _e({
5398
+ Pl(), _e({
5395
5399
  open: ee,
5396
5400
  ref: l.context.popupRef,
5397
5401
  onComplete() {
@@ -5419,7 +5423,7 @@ var Il = {
5419
5423
  onKeyDown(e) {
5420
5424
  Te.has(e.key) && e.stopPropagation();
5421
5425
  },
5422
- style: { [Ml.nestedDialogs]: _ }
5426
+ style: { [jl.nestedDialogs]: _ }
5423
5427
  },
5424
5428
  c
5425
5429
  ],
@@ -5428,7 +5432,7 @@ var Il = {
5428
5432
  l.context.popupRef,
5429
5433
  l.useStateSetter("popupElement")
5430
5434
  ],
5431
- stateAttributesMapping: Il
5435
+ stateAttributesMapping: Fl
5432
5436
  });
5433
5437
  return /*#__PURE__*/ b(ae, {
5434
5438
  context: f,
@@ -5442,12 +5446,12 @@ var Il = {
5442
5446
  children: ce
5443
5447
  });
5444
5448
  });
5445
- process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogPopup");
5449
+ process.env.NODE_ENV !== "production" && (Il.displayName = "DialogPopup");
5446
5450
  //#endregion
5447
5451
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
5448
- var Rl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5452
+ var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5449
5453
  let { keepMounted: n = !1, ...r } = e, { store: i } = $(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
5450
- return a || n ? /*#__PURE__*/ b(Pl.Provider, {
5454
+ return a || n ? /*#__PURE__*/ b(Nl.Provider, {
5451
5455
  value: n,
5452
5456
  children: /*#__PURE__*/ x(de, {
5453
5457
  ref: t,
@@ -5459,10 +5463,10 @@ var Rl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5459
5463
  })
5460
5464
  }) : null;
5461
5465
  });
5462
- process.env.NODE_ENV !== "production" && (Rl.displayName = "DialogPortal");
5466
+ process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogPortal");
5463
5467
  //#endregion
5464
5468
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
5465
- function zl(n) {
5469
+ function Rl(n) {
5466
5470
  let { store: r, parentContext: i, actionsRef: a, isDrawer: c } = n, l = r.useState("open"), u = r.useState("disablePointerDismissal"), d = r.useState("modal"), f = r.useState("popupElement"), { openMethod: p, triggerProps: m } = g(l);
5467
5471
  e(r);
5468
5472
  let { forceUnmount: h } = le(l, r), _ = S.useCallback(() => {
@@ -5522,7 +5526,7 @@ function zl(n) {
5522
5526
  }
5523
5527
  //#endregion
5524
5528
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
5525
- var Bl = {
5529
+ var zl = {
5526
5530
  ...te,
5527
5531
  modal: r((e) => e.modal),
5528
5532
  nested: r((e) => e.nested),
@@ -5534,9 +5538,9 @@ var Bl = {
5534
5538
  titleElementId: r((e) => e.titleElementId),
5535
5539
  viewportElement: r((e) => e.viewportElement),
5536
5540
  role: r((e) => e.role)
5537
- }, Vl = class e extends De {
5541
+ }, Bl = class e extends De {
5538
5542
  constructor(e) {
5539
- super(Hl(e), {
5543
+ super(Vl(e), {
5540
5544
  popupRef: /*#__PURE__*/ S.createRef(),
5541
5545
  backdropRef: /*#__PURE__*/ S.createRef(),
5542
5546
  internalBackdropRef: /*#__PURE__*/ S.createRef(),
@@ -5544,7 +5548,7 @@ var Bl = {
5544
5548
  triggerElements: new f(),
5545
5549
  onOpenChange: void 0,
5546
5550
  onOpenChangeComplete: void 0
5547
- }, Bl);
5551
+ }, zl);
5548
5552
  }
5549
5553
  setOpen = (e, t) => {
5550
5554
  if (t.preventUnmountOnClose = () => {
@@ -5559,7 +5563,7 @@ var Bl = {
5559
5563
  return t ?? r;
5560
5564
  }
5561
5565
  };
5562
- function Hl(e = {}) {
5566
+ function Vl(e = {}) {
5563
5567
  return {
5564
5568
  ..._(),
5565
5569
  modal: !0,
@@ -5578,10 +5582,10 @@ function Hl(e = {}) {
5578
5582
  }
5579
5583
  //#endregion
5580
5584
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
5581
- var Ul = /*#__PURE__*/ S.createContext(!1);
5582
- process.env.NODE_ENV !== "production" && (Ul.displayName = "IsDrawerContext");
5583
- function Wl(e) {
5584
- let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = $(!0), m = S.useContext(Ul), h = !!p, g = Vl.useStore(l?.store, {
5585
+ var Hl = /*#__PURE__*/ S.createContext(!1);
5586
+ process.env.NODE_ENV !== "production" && (Hl.displayName = "IsDrawerContext");
5587
+ function Ul(e) {
5588
+ let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = $(!0), m = S.useContext(Hl), h = !!p, g = Bl.useStore(l?.store, {
5585
5589
  open: r,
5586
5590
  openProp: n,
5587
5591
  activeTriggerId: f,
@@ -5601,7 +5605,7 @@ function Wl(e) {
5601
5605
  modal: s
5602
5606
  }), g.useContextCallback("onOpenChange", i), g.useContextCallback("onOpenChangeComplete", a);
5603
5607
  let _ = g.useState("payload");
5604
- zl({
5608
+ Rl({
5605
5609
  store: g,
5606
5610
  actionsRef: c,
5607
5611
  parentContext: p?.store.context,
@@ -5610,9 +5614,9 @@ function Wl(e) {
5610
5614
  triggerIdProp: d
5611
5615
  });
5612
5616
  let ee = S.useMemo(() => ({ store: g }), [g]);
5613
- return /*#__PURE__*/ b(Ul.Provider, {
5617
+ return /*#__PURE__*/ b(Hl.Provider, {
5614
5618
  value: !1,
5615
- children: /*#__PURE__*/ b(Dl.Provider, {
5619
+ children: /*#__PURE__*/ b(El.Provider, {
5616
5620
  value: ee,
5617
5621
  children: typeof t == "function" ? t({ payload: _ }) : t
5618
5622
  })
@@ -5620,17 +5624,17 @@ function Wl(e) {
5620
5624
  }
5621
5625
  //#endregion
5622
5626
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
5623
- var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5627
+ var Wl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5624
5628
  let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
5625
5629
  return c.useSyncedValueWithCleanup("titleElementId", l), i("h2", e, {
5626
5630
  ref: t,
5627
5631
  props: [{ id: l }, s]
5628
5632
  });
5629
5633
  });
5630
- process.env.NODE_ENV !== "production" && (Gl.displayName = "DialogTitle");
5634
+ process.env.NODE_ENV !== "production" && (Wl.displayName = "DialogTitle");
5631
5635
  //#endregion
5632
5636
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js
5633
- var Kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5637
+ var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5634
5638
  let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h = $(!0), g = u?.store ?? h?.store;
5635
5639
  if (!g) throw Error(process.env.NODE_ENV === "production" ? ce(79) : "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");
5636
5640
  let _ = d(c), ee = g.useState("floatingRootContext"), te = g.useState("isOpenedByTrigger", _), re = S.useRef(null), { registerTrigger: ie, isMountedByThisTrigger: ae } = we(_, re, g, { payload: l }), { getButtonProps: oe, buttonRef: se } = ne({
@@ -5661,48 +5665,48 @@ var Kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5661
5665
  stateAttributesMapping: p
5662
5666
  });
5663
5667
  });
5664
- process.env.NODE_ENV !== "production" && (Kl.displayName = "DialogTrigger");
5668
+ process.env.NODE_ENV !== "production" && (Gl.displayName = "DialogTrigger");
5665
5669
  //#endregion
5666
5670
  //#region src/ui/browser/dialog.tsx
5667
- function ql(e) {
5668
- return /* @__PURE__ */ b(Wl, {
5671
+ function Kl(e) {
5672
+ return /* @__PURE__ */ b(Ul, {
5669
5673
  "data-slot": "dialog",
5670
5674
  ...e
5671
5675
  });
5672
5676
  }
5673
- function Jl(e) {
5674
- return /* @__PURE__ */ b(Kl, {
5677
+ function ql(e) {
5678
+ return /* @__PURE__ */ b(Gl, {
5675
5679
  "data-slot": "dialog-trigger",
5676
5680
  ...e
5677
5681
  });
5678
5682
  }
5679
- function Yl(e) {
5680
- return /* @__PURE__ */ b(Rl, {
5683
+ function Jl(e) {
5684
+ return /* @__PURE__ */ b(Ll, {
5681
5685
  "data-slot": "dialog-portal",
5682
5686
  ...e
5683
5687
  });
5684
5688
  }
5685
- function Xl(e) {
5686
- return /* @__PURE__ */ b(Al, {
5689
+ function Yl(e) {
5690
+ return /* @__PURE__ */ b(kl, {
5687
5691
  "data-slot": "dialog-close",
5688
5692
  ...e
5689
5693
  });
5690
5694
  }
5691
- function Zl({ className: e, ...t }) {
5692
- return /* @__PURE__ */ b(kl, {
5695
+ function Xl({ className: e, ...t }) {
5696
+ return /* @__PURE__ */ b(Ol, {
5693
5697
  "data-slot": "dialog-overlay",
5694
5698
  className: a("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),
5695
5699
  ...t
5696
5700
  });
5697
5701
  }
5698
- function Ql({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5699
- return /* @__PURE__ */ x(Yl, {
5702
+ function Zl({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5703
+ return /* @__PURE__ */ x(Jl, {
5700
5704
  container: i,
5701
- children: [/* @__PURE__ */ b(Zl, {}), /* @__PURE__ */ x(Ll, {
5705
+ children: [/* @__PURE__ */ b(Xl, {}), /* @__PURE__ */ x(Il, {
5702
5706
  "data-slot": "dialog-content",
5703
5707
  className: a("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),
5704
5708
  ...s,
5705
- children: [e, o && /* @__PURE__ */ x(Al, {
5709
+ children: [e, o && /* @__PURE__ */ x(kl, {
5706
5710
  "data-slot": "dialog-close",
5707
5711
  render: /* @__PURE__ */ b(n, {
5708
5712
  className: "absolute top-2 right-2",
@@ -5717,29 +5721,29 @@ function Ql({ children: e, className: t, closeLabel: r = "Close", container: i,
5717
5721
  })]
5718
5722
  });
5719
5723
  }
5720
- function $l({ className: e, ...t }) {
5724
+ function Ql({ className: e, ...t }) {
5721
5725
  return /* @__PURE__ */ b("div", {
5722
5726
  "data-slot": "dialog-header",
5723
5727
  className: a("flex flex-col gap-2", e),
5724
5728
  ...t
5725
5729
  });
5726
5730
  }
5727
- function eu({ className: e, ...t }) {
5731
+ function $l({ className: e, ...t }) {
5728
5732
  return /* @__PURE__ */ b("div", {
5729
5733
  "data-slot": "dialog-footer",
5730
5734
  className: a("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
5731
5735
  ...t
5732
5736
  });
5733
5737
  }
5734
- function tu({ className: e, ...t }) {
5735
- return /* @__PURE__ */ b(Gl, {
5738
+ function eu({ className: e, ...t }) {
5739
+ return /* @__PURE__ */ b(Wl, {
5736
5740
  "data-slot": "dialog-title",
5737
5741
  className: a("text-base leading-none font-medium", e),
5738
5742
  ...t
5739
5743
  });
5740
5744
  }
5741
- function nu({ className: e, ...t }) {
5742
- return /* @__PURE__ */ b(jl, {
5745
+ function tu({ className: e, ...t }) {
5746
+ return /* @__PURE__ */ b(Al, {
5743
5747
  "data-slot": "dialog-description",
5744
5748
  className: a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
5745
5749
  ...t
@@ -5747,7 +5751,7 @@ function nu({ className: e, ...t }) {
5747
5751
  }
5748
5752
  //#endregion
5749
5753
  //#region src/workbench/browser/runtime/icons.tsx
5750
- function ru(e) {
5754
+ function nu(e) {
5751
5755
  switch (e) {
5752
5756
  case "alert": return /* @__PURE__ */ x(y, { children: [
5753
5757
  /* @__PURE__ */ b("circle", {
@@ -5913,7 +5917,7 @@ function ru(e) {
5913
5917
  ] });
5914
5918
  }
5915
5919
  }
5916
- function iu({ name: e, size: t = 18, ...n }) {
5920
+ function ru({ name: e, size: t = 18, ...n }) {
5917
5921
  return e === "flow" ? /* @__PURE__ */ b(je, {
5918
5922
  "aria-hidden": "true",
5919
5923
  size: t,
@@ -5931,13 +5935,13 @@ function iu({ name: e, size: t = 18, ...n }) {
5931
5935
  strokeLinecap: "round",
5932
5936
  strokeLinejoin: "round",
5933
5937
  strokeWidth: "1.7",
5934
- children: ru(e)
5938
+ children: nu(e)
5935
5939
  })
5936
5940
  });
5937
5941
  }
5938
5942
  //#endregion
5939
5943
  //#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
5940
- function au({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
5944
+ function iu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
5941
5945
  return /* @__PURE__ */ x(ye, {
5942
5946
  disabled: n,
5943
5947
  onValueChange: (e) => {
@@ -5964,4 +5968,4 @@ function au({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
5964
5968
  });
5965
5969
  }
5966
5970
  //#endregion
5967
- export { Rs as A, Us as B, pl as C, B as D, W as E, V as F, Me as H, U as I, Js as L, wc as M, G as N, z as O, R as P, fs as R, hl as S, cl as T, Ne as V, vl as _, Ql as a, gl as b, $l as c, El as d, Sl as f, Cl as g, bl as h, Xl as i, Oc as j, Zs as k, tu as l, Tl as m, iu as n, nu as o, wl as p, ql as r, eu as s, au as t, Jl as u, yl as v, fl as w, _l as x, dl as y, H as z };
5971
+ export { Rs as A, Us as B, fl as C, B as D, W as E, V as F, Me as H, U as I, Js as L, wc as M, G as N, z as O, R as P, fs as R, ml as S, sl as T, Ne as V, _l as _, Zl as a, hl as b, Ql as c, Tl as d, xl as f, Sl as g, yl as h, Yl as i, Oc as j, Zs as k, eu as l, wl as m, ru as n, tu as o, Cl as p, Kl as r, $l as s, iu as t, ql as u, vl as v, dl as w, gl as x, ul as y, H as z };