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

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.
@@ -4532,18 +4532,18 @@ var Ac = B(H([V({
4532
4532
  subflows: U(K, tl.extend({ graph: nl })),
4533
4533
  tasks: U(K, Wc)
4534
4534
  }), ol = V({
4535
- modelVersion: G(2),
4535
+ modelVersion: H([G(2), G(3)]),
4536
4536
  document: al,
4537
4537
  modules: U(K, il)
4538
- });
4538
+ }), sl = ol.extend({ modelVersion: G(3) });
4539
4539
  ol.extend({
4540
4540
  kind: G("open-flow-flow-revision"),
4541
4541
  version: G(1)
4542
4542
  });
4543
- function sl(e) {
4544
- return kc(e), ol.parse(e);
4543
+ function cl(e) {
4544
+ return kc(e), sl.parse(e);
4545
4545
  }
4546
- var cl = {
4546
+ var ll = {
4547
4547
  "binding.create": {
4548
4548
  bindingId: K,
4549
4549
  binding: rl
@@ -4706,13 +4706,13 @@ var cl = {
4706
4706
  value: K
4707
4707
  }
4708
4708
  };
4709
- B(H([...new Map(Object.entries(cl).map(([e, t]) => [e, t instanceof I ? t : V({
4709
+ B(H([...new Map(Object.entries(ll).map(([e, t]) => [e, t instanceof I ? t : V({
4710
4710
  kind: G(e),
4711
4711
  ...t
4712
4712
  })])).values()])).min(1);
4713
4713
  //#endregion
4714
4714
  //#region src/flow/common/change.ts
4715
- var ll = /* @__PURE__ */ new Set([
4715
+ var ul = /* @__PURE__ */ new Set([
4716
4716
  "const",
4717
4717
  "enum",
4718
4718
  "exclusiveMaximum",
@@ -4730,10 +4730,10 @@ var ll = /* @__PURE__ */ new Set([
4730
4730
  "required",
4731
4731
  "type"
4732
4732
  ]);
4733
- function ul(e) {
4734
- return ll.has(e);
4735
- }
4736
4733
  function dl(e) {
4734
+ return ul.has(e);
4735
+ }
4736
+ function fl(e) {
4737
4737
  let t = e.trim();
4738
4738
  if (t.length == 0) return "empty";
4739
4739
  if (t.length > 80) return "tooLong";
@@ -4743,10 +4743,10 @@ function dl(e) {
4743
4743
  }
4744
4744
  if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
4745
4745
  }
4746
- function fl(e) {
4746
+ function pl(e) {
4747
4747
  return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
4748
4748
  }
4749
- function pl(e) {
4749
+ function ml(e) {
4750
4750
  if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
4751
4751
  let t = /* @__PURE__ */ new Set();
4752
4752
  return e.map((e) => {
@@ -4782,27 +4782,27 @@ function pl(e) {
4782
4782
  };
4783
4783
  });
4784
4784
  }
4785
- function ml(e) {
4785
+ function hl(e) {
4786
4786
  return e.trim().normalize("NFC");
4787
4787
  }
4788
- function hl(e, t) {
4789
- let n = ml(e), r = new Set([...t].map(ml));
4788
+ function gl(e, t) {
4789
+ let n = hl(e), r = new Set([...t].map(hl));
4790
4790
  if (!r.has(n)) return n;
4791
4791
  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
4792
  for (; r.has(`${s} (${c})`);) c += 1;
4793
4793
  return `${s} (${c})`;
4794
4794
  }
4795
- function gl(e, t, n) {
4796
- let r = ml(n);
4797
- return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && ml(n.name) == r) ? "duplicate" : void 0;
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;
4798
4798
  }
4799
- var _l = class extends Error {
4799
+ var vl = class extends Error {
4800
4800
  constructor(e) {
4801
4801
  super(e), this.name = "FlowChangeError";
4802
4802
  }
4803
4803
  };
4804
4804
  function X(e) {
4805
- throw new _l(e);
4805
+ throw new vl(e);
4806
4806
  }
4807
4807
  function Z(e, t) {
4808
4808
  if (t.kind == "flow") return e.graph;
@@ -4826,7 +4826,7 @@ function Q(e, t, n) {
4826
4826
  }
4827
4827
  };
4828
4828
  }
4829
- function vl(e, t) {
4829
+ function yl(e, t) {
4830
4830
  let n = { ...e.document }, r = { ...e.modules };
4831
4831
  for (let e of t) switch (e.kind) {
4832
4832
  case "binding.create":
@@ -4907,8 +4907,8 @@ function vl(e, t) {
4907
4907
  }
4908
4908
  case "graph.node.create": {
4909
4909
  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 && pl(e.node.task.capabilities), e.node.name ?? X("A Node name cannot be empty.");
4911
- let r = ml(e.node.name), i = gl(t, e.nodeId, r);
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);
4912
4912
  i == "empty" && X("A Node name cannot be empty."), i == "duplicate" && X("A Node with this name already exists in the target graph.");
4913
4913
  let a = r == e.node.name ? e.node : {
4914
4914
  ...e.node,
@@ -4940,7 +4940,7 @@ function vl(e, t) {
4940
4940
  let i = { ...r };
4941
4941
  if (e.field == "name") {
4942
4942
  typeof e.value != "string" && X("A Node name cannot be empty.");
4943
- let n = ml(e.value), r = gl(t, e.nodeId, n);
4943
+ let n = hl(e.value), r = _l(t, e.nodeId, n);
4944
4944
  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
4945
  } else e.value == null ? Reflect.deleteProperty(i, e.field) : Object.assign(i, { [e.field]: e.value });
4946
4946
  Object.assign(n, Q(n, e.target, {
@@ -4972,7 +4972,7 @@ function vl(e, t) {
4972
4972
  let t = Z(n, e.target), r = t.nodes[e.nodeId];
4973
4973
  (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
4974
  let i = { ...r.task };
4975
- e.value === void 0 ? delete i.capabilities : i.capabilities = pl(e.value), Object.assign(n, Q(n, e.target, {
4975
+ e.value === void 0 ? delete i.capabilities : i.capabilities = ml(e.value), Object.assign(n, Q(n, e.target, {
4976
4976
  ...t,
4977
4977
  nodes: {
4978
4978
  ...t.nodes,
@@ -5137,7 +5137,7 @@ function vl(e, t) {
5137
5137
  }
5138
5138
  case "subflow.create":
5139
5139
  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 && pl(t.task.capabilities);
5140
+ for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && ml(t.task.capabilities);
5141
5141
  n.subflows = {
5142
5142
  ...n.subflows,
5143
5143
  [e.subflowId]: e.subflow
@@ -5228,20 +5228,20 @@ function vl(e, t) {
5228
5228
  }
5229
5229
  return {
5230
5230
  document: n,
5231
- modelVersion: e.modelVersion,
5231
+ modelVersion: 3,
5232
5232
  modules: r
5233
5233
  };
5234
5234
  }
5235
5235
  //#endregion
5236
5236
  //#region src/ui/browser/field.tsx
5237
- function yl({ className: e, ...t }) {
5237
+ function bl({ className: e, ...t }) {
5238
5238
  return /* @__PURE__ */ b("div", {
5239
5239
  "data-slot": "field-group",
5240
5240
  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
5241
  ...t
5242
5242
  });
5243
5243
  }
5244
- var bl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5244
+ var xl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5245
5245
  variants: { orientation: {
5246
5246
  vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
5247
5247
  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 +5249,30 @@ var bl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
5249
5249
  } },
5250
5250
  defaultVariants: { orientation: "vertical" }
5251
5251
  });
5252
- function xl({ className: e, orientation: t = "vertical", ...n }) {
5252
+ function Sl({ className: e, orientation: t = "vertical", ...n }) {
5253
5253
  return /* @__PURE__ */ b("div", {
5254
5254
  role: "group",
5255
5255
  "data-slot": "field",
5256
5256
  "data-orientation": t,
5257
- className: a(bl({ orientation: t }), e),
5257
+ className: a(xl({ orientation: t }), e),
5258
5258
  ...n
5259
5259
  });
5260
5260
  }
5261
- function Sl({ className: e, ...t }) {
5261
+ function Cl({ className: e, ...t }) {
5262
5262
  return /* @__PURE__ */ b(Ne, {
5263
5263
  "data-slot": "field-label",
5264
5264
  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
5265
  ...t
5266
5266
  });
5267
5267
  }
5268
- function Cl({ className: e, ...t }) {
5268
+ function wl({ className: e, ...t }) {
5269
5269
  return /* @__PURE__ */ b("p", {
5270
5270
  "data-slot": "field-description",
5271
5271
  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
5272
  ...t
5273
5273
  });
5274
5274
  }
5275
- function wl({ className: e, children: t, errors: n, ...r }) {
5275
+ function Tl({ className: e, children: t, errors: n, ...r }) {
5276
5276
  let i = ke(() => {
5277
5277
  if (t) return t;
5278
5278
  if (!n?.length) return null;
@@ -5292,7 +5292,7 @@ function wl({ className: e, children: t, errors: n, ...r }) {
5292
5292
  }
5293
5293
  //#endregion
5294
5294
  //#region src/ui/browser/spinner.tsx
5295
- function Tl({ className: e, ...t }) {
5295
+ function El({ className: e, ...t }) {
5296
5296
  return /* @__PURE__ */ b(Ae, {
5297
5297
  "data-slot": "spinner",
5298
5298
  role: "status",
@@ -5303,19 +5303,19 @@ function Tl({ className: e, ...t }) {
5303
5303
  }
5304
5304
  //#endregion
5305
5305
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
5306
- var El = /*#__PURE__*/ S.createContext(void 0);
5307
- process.env.NODE_ENV !== "production" && (El.displayName = "DialogRootContext");
5306
+ var Dl = /*#__PURE__*/ S.createContext(void 0);
5307
+ process.env.NODE_ENV !== "production" && (Dl.displayName = "DialogRootContext");
5308
5308
  function $(e) {
5309
- let t = S.useContext(El);
5309
+ let t = S.useContext(Dl);
5310
5310
  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
5311
  return t;
5312
5312
  }
5313
5313
  //#endregion
5314
5314
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
5315
- var Dl = {
5315
+ var Ol = {
5316
5316
  ...h,
5317
5317
  ...ue
5318
- }, Ol = /*#__PURE__*/ S.forwardRef(function(e, t) {
5318
+ }, kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5319
5319
  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
5320
  open: l,
5321
5321
  transitionStatus: c.useState("transitionStatus")
@@ -5323,7 +5323,7 @@ var Dl = {
5323
5323
  return i("div", e, {
5324
5324
  state: f,
5325
5325
  ref: [c.context.backdropRef, t],
5326
- stateAttributesMapping: Dl,
5326
+ stateAttributesMapping: Ol,
5327
5327
  props: [{
5328
5328
  role: "presentation",
5329
5329
  hidden: !d,
@@ -5335,10 +5335,10 @@ var Dl = {
5335
5335
  enabled: o || !u
5336
5336
  });
5337
5337
  });
5338
- process.env.NODE_ENV !== "production" && (Ol.displayName = "DialogBackdrop");
5338
+ process.env.NODE_ENV !== "production" && (kl.displayName = "DialogBackdrop");
5339
5339
  //#endregion
5340
5340
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
5341
- var kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5341
+ var Al = /*#__PURE__*/ S.forwardRef(function(e, t) {
5342
5342
  let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = $(), u = l.useState("open");
5343
5343
  function d(e) {
5344
5344
  u && l.setOpen(!1, fe(re, e.nativeEvent));
@@ -5357,41 +5357,41 @@ var kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5357
5357
  ]
5358
5358
  });
5359
5359
  });
5360
- process.env.NODE_ENV !== "production" && (kl.displayName = "DialogClose");
5360
+ process.env.NODE_ENV !== "production" && (Al.displayName = "DialogClose");
5361
5361
  //#endregion
5362
5362
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
5363
- var Al = /*#__PURE__*/ S.forwardRef(function(e, t) {
5363
+ var jl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5364
5364
  let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
5365
5365
  return c.useSyncedValueWithCleanup("descriptionElementId", l), i("p", e, {
5366
5366
  ref: t,
5367
5367
  props: [{ id: l }, s]
5368
5368
  });
5369
5369
  });
5370
- process.env.NODE_ENV !== "production" && (Al.displayName = "DialogDescription");
5370
+ process.env.NODE_ENV !== "production" && (jl.displayName = "DialogDescription");
5371
5371
  //#endregion
5372
5372
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
5373
- var jl = /*#__PURE__*/ function(e) {
5373
+ var Ml = /*#__PURE__*/ function(e) {
5374
5374
  return e.nestedDialogs = "--nested-dialogs", e;
5375
- }({}), Ml = function(e) {
5375
+ }({}), Nl = function(e) {
5376
5376
  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
- }({}), Nl = /*#__PURE__*/ S.createContext(void 0);
5378
- process.env.NODE_ENV !== "production" && (Nl.displayName = "DialogPortalContext");
5379
- function Pl() {
5380
- let e = S.useContext(Nl);
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
5381
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(26) : "Base UI: <Dialog.Portal> is missing.");
5382
5382
  return e;
5383
5383
  }
5384
5384
  //#endregion
5385
5385
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
5386
- var Fl = {
5386
+ var Il = {
5387
5387
  ...h,
5388
5388
  ...ue,
5389
5389
  nestedDialogOpen(e) {
5390
- return e ? { [Ml.nestedDialogOpen]: "" } : null;
5390
+ return e ? { [Nl.nestedDialogOpen]: "" } : null;
5391
5391
  }
5392
- }, Il = /*#__PURE__*/ S.forwardRef(function(e, t) {
5392
+ }, Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5393
5393
  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
- Pl(), _e({
5394
+ Fl(), _e({
5395
5395
  open: ee,
5396
5396
  ref: l.context.popupRef,
5397
5397
  onComplete() {
@@ -5419,7 +5419,7 @@ var Fl = {
5419
5419
  onKeyDown(e) {
5420
5420
  Te.has(e.key) && e.stopPropagation();
5421
5421
  },
5422
- style: { [jl.nestedDialogs]: _ }
5422
+ style: { [Ml.nestedDialogs]: _ }
5423
5423
  },
5424
5424
  c
5425
5425
  ],
@@ -5428,7 +5428,7 @@ var Fl = {
5428
5428
  l.context.popupRef,
5429
5429
  l.useStateSetter("popupElement")
5430
5430
  ],
5431
- stateAttributesMapping: Fl
5431
+ stateAttributesMapping: Il
5432
5432
  });
5433
5433
  return /*#__PURE__*/ b(ae, {
5434
5434
  context: f,
@@ -5442,12 +5442,12 @@ var Fl = {
5442
5442
  children: ce
5443
5443
  });
5444
5444
  });
5445
- process.env.NODE_ENV !== "production" && (Il.displayName = "DialogPopup");
5445
+ process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogPopup");
5446
5446
  //#endregion
5447
5447
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
5448
- var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5448
+ var Rl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5449
5449
  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(Nl.Provider, {
5450
+ return a || n ? /*#__PURE__*/ b(Pl.Provider, {
5451
5451
  value: n,
5452
5452
  children: /*#__PURE__*/ x(de, {
5453
5453
  ref: t,
@@ -5459,10 +5459,10 @@ var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5459
5459
  })
5460
5460
  }) : null;
5461
5461
  });
5462
- process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogPortal");
5462
+ process.env.NODE_ENV !== "production" && (Rl.displayName = "DialogPortal");
5463
5463
  //#endregion
5464
5464
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
5465
- function Rl(n) {
5465
+ function zl(n) {
5466
5466
  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
5467
  e(r);
5468
5468
  let { forceUnmount: h } = le(l, r), _ = S.useCallback(() => {
@@ -5522,7 +5522,7 @@ function Rl(n) {
5522
5522
  }
5523
5523
  //#endregion
5524
5524
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
5525
- var zl = {
5525
+ var Bl = {
5526
5526
  ...te,
5527
5527
  modal: r((e) => e.modal),
5528
5528
  nested: r((e) => e.nested),
@@ -5534,9 +5534,9 @@ var zl = {
5534
5534
  titleElementId: r((e) => e.titleElementId),
5535
5535
  viewportElement: r((e) => e.viewportElement),
5536
5536
  role: r((e) => e.role)
5537
- }, Bl = class e extends De {
5537
+ }, Vl = class e extends De {
5538
5538
  constructor(e) {
5539
- super(Vl(e), {
5539
+ super(Hl(e), {
5540
5540
  popupRef: /*#__PURE__*/ S.createRef(),
5541
5541
  backdropRef: /*#__PURE__*/ S.createRef(),
5542
5542
  internalBackdropRef: /*#__PURE__*/ S.createRef(),
@@ -5544,7 +5544,7 @@ var zl = {
5544
5544
  triggerElements: new f(),
5545
5545
  onOpenChange: void 0,
5546
5546
  onOpenChangeComplete: void 0
5547
- }, zl);
5547
+ }, Bl);
5548
5548
  }
5549
5549
  setOpen = (e, t) => {
5550
5550
  if (t.preventUnmountOnClose = () => {
@@ -5559,7 +5559,7 @@ var zl = {
5559
5559
  return t ?? r;
5560
5560
  }
5561
5561
  };
5562
- function Vl(e = {}) {
5562
+ function Hl(e = {}) {
5563
5563
  return {
5564
5564
  ..._(),
5565
5565
  modal: !0,
@@ -5578,10 +5578,10 @@ function Vl(e = {}) {
5578
5578
  }
5579
5579
  //#endregion
5580
5580
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
5581
- var Hl = /*#__PURE__*/ S.createContext(!1);
5582
- process.env.NODE_ENV !== "production" && (Hl.displayName = "IsDrawerContext");
5583
- function Ul(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(Hl), h = !!p, g = Bl.useStore(l?.store, {
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
5585
  open: r,
5586
5586
  openProp: n,
5587
5587
  activeTriggerId: f,
@@ -5601,7 +5601,7 @@ function Ul(e) {
5601
5601
  modal: s
5602
5602
  }), g.useContextCallback("onOpenChange", i), g.useContextCallback("onOpenChangeComplete", a);
5603
5603
  let _ = g.useState("payload");
5604
- Rl({
5604
+ zl({
5605
5605
  store: g,
5606
5606
  actionsRef: c,
5607
5607
  parentContext: p?.store.context,
@@ -5610,9 +5610,9 @@ function Ul(e) {
5610
5610
  triggerIdProp: d
5611
5611
  });
5612
5612
  let ee = S.useMemo(() => ({ store: g }), [g]);
5613
- return /*#__PURE__*/ b(Hl.Provider, {
5613
+ return /*#__PURE__*/ b(Ul.Provider, {
5614
5614
  value: !1,
5615
- children: /*#__PURE__*/ b(El.Provider, {
5615
+ children: /*#__PURE__*/ b(Dl.Provider, {
5616
5616
  value: ee,
5617
5617
  children: typeof t == "function" ? t({ payload: _ }) : t
5618
5618
  })
@@ -5620,17 +5620,17 @@ function Ul(e) {
5620
5620
  }
5621
5621
  //#endregion
5622
5622
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
5623
- var Wl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5623
+ var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5624
5624
  let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
5625
5625
  return c.useSyncedValueWithCleanup("titleElementId", l), i("h2", e, {
5626
5626
  ref: t,
5627
5627
  props: [{ id: l }, s]
5628
5628
  });
5629
5629
  });
5630
- process.env.NODE_ENV !== "production" && (Wl.displayName = "DialogTitle");
5630
+ process.env.NODE_ENV !== "production" && (Gl.displayName = "DialogTitle");
5631
5631
  //#endregion
5632
5632
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js
5633
- var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5633
+ var Kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5634
5634
  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
5635
  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
5636
  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 +5661,48 @@ var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5661
5661
  stateAttributesMapping: p
5662
5662
  });
5663
5663
  });
5664
- process.env.NODE_ENV !== "production" && (Gl.displayName = "DialogTrigger");
5664
+ process.env.NODE_ENV !== "production" && (Kl.displayName = "DialogTrigger");
5665
5665
  //#endregion
5666
5666
  //#region src/ui/browser/dialog.tsx
5667
- function Kl(e) {
5668
- return /* @__PURE__ */ b(Ul, {
5667
+ function ql(e) {
5668
+ return /* @__PURE__ */ b(Wl, {
5669
5669
  "data-slot": "dialog",
5670
5670
  ...e
5671
5671
  });
5672
5672
  }
5673
- function ql(e) {
5674
- return /* @__PURE__ */ b(Gl, {
5673
+ function Jl(e) {
5674
+ return /* @__PURE__ */ b(Kl, {
5675
5675
  "data-slot": "dialog-trigger",
5676
5676
  ...e
5677
5677
  });
5678
5678
  }
5679
- function Jl(e) {
5680
- return /* @__PURE__ */ b(Ll, {
5679
+ function Yl(e) {
5680
+ return /* @__PURE__ */ b(Rl, {
5681
5681
  "data-slot": "dialog-portal",
5682
5682
  ...e
5683
5683
  });
5684
5684
  }
5685
- function Yl(e) {
5686
- return /* @__PURE__ */ b(kl, {
5685
+ function Xl(e) {
5686
+ return /* @__PURE__ */ b(Al, {
5687
5687
  "data-slot": "dialog-close",
5688
5688
  ...e
5689
5689
  });
5690
5690
  }
5691
- function Xl({ className: e, ...t }) {
5692
- return /* @__PURE__ */ b(Ol, {
5691
+ function Zl({ className: e, ...t }) {
5692
+ return /* @__PURE__ */ b(kl, {
5693
5693
  "data-slot": "dialog-overlay",
5694
5694
  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
5695
  ...t
5696
5696
  });
5697
5697
  }
5698
- function Zl({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5699
- return /* @__PURE__ */ x(Jl, {
5698
+ function Ql({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5699
+ return /* @__PURE__ */ x(Yl, {
5700
5700
  container: i,
5701
- children: [/* @__PURE__ */ b(Xl, {}), /* @__PURE__ */ x(Il, {
5701
+ children: [/* @__PURE__ */ b(Zl, {}), /* @__PURE__ */ x(Ll, {
5702
5702
  "data-slot": "dialog-content",
5703
5703
  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
5704
  ...s,
5705
- children: [e, o && /* @__PURE__ */ x(kl, {
5705
+ children: [e, o && /* @__PURE__ */ x(Al, {
5706
5706
  "data-slot": "dialog-close",
5707
5707
  render: /* @__PURE__ */ b(n, {
5708
5708
  className: "absolute top-2 right-2",
@@ -5717,29 +5717,29 @@ function Zl({ children: e, className: t, closeLabel: r = "Close", container: i,
5717
5717
  })]
5718
5718
  });
5719
5719
  }
5720
- function Ql({ className: e, ...t }) {
5720
+ function $l({ className: e, ...t }) {
5721
5721
  return /* @__PURE__ */ b("div", {
5722
5722
  "data-slot": "dialog-header",
5723
5723
  className: a("flex flex-col gap-2", e),
5724
5724
  ...t
5725
5725
  });
5726
5726
  }
5727
- function $l({ className: e, ...t }) {
5727
+ function eu({ className: e, ...t }) {
5728
5728
  return /* @__PURE__ */ b("div", {
5729
5729
  "data-slot": "dialog-footer",
5730
5730
  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
5731
  ...t
5732
5732
  });
5733
5733
  }
5734
- function eu({ className: e, ...t }) {
5735
- return /* @__PURE__ */ b(Wl, {
5734
+ function tu({ className: e, ...t }) {
5735
+ return /* @__PURE__ */ b(Gl, {
5736
5736
  "data-slot": "dialog-title",
5737
5737
  className: a("text-base leading-none font-medium", e),
5738
5738
  ...t
5739
5739
  });
5740
5740
  }
5741
- function tu({ className: e, ...t }) {
5742
- return /* @__PURE__ */ b(Al, {
5741
+ function nu({ className: e, ...t }) {
5742
+ return /* @__PURE__ */ b(jl, {
5743
5743
  "data-slot": "dialog-description",
5744
5744
  className: a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
5745
5745
  ...t
@@ -5747,7 +5747,7 @@ function tu({ className: e, ...t }) {
5747
5747
  }
5748
5748
  //#endregion
5749
5749
  //#region src/workbench/browser/runtime/icons.tsx
5750
- function nu(e) {
5750
+ function ru(e) {
5751
5751
  switch (e) {
5752
5752
  case "alert": return /* @__PURE__ */ x(y, { children: [
5753
5753
  /* @__PURE__ */ b("circle", {
@@ -5913,7 +5913,7 @@ function nu(e) {
5913
5913
  ] });
5914
5914
  }
5915
5915
  }
5916
- function ru({ name: e, size: t = 18, ...n }) {
5916
+ function iu({ name: e, size: t = 18, ...n }) {
5917
5917
  return e === "flow" ? /* @__PURE__ */ b(je, {
5918
5918
  "aria-hidden": "true",
5919
5919
  size: t,
@@ -5931,13 +5931,13 @@ function ru({ name: e, size: t = 18, ...n }) {
5931
5931
  strokeLinecap: "round",
5932
5932
  strokeLinejoin: "round",
5933
5933
  strokeWidth: "1.7",
5934
- children: nu(e)
5934
+ children: ru(e)
5935
5935
  })
5936
5936
  });
5937
5937
  }
5938
5938
  //#endregion
5939
5939
  //#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
5940
- function iu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
5940
+ function au({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
5941
5941
  return /* @__PURE__ */ x(ye, {
5942
5942
  disabled: n,
5943
5943
  onValueChange: (e) => {
@@ -5964,4 +5964,4 @@ function iu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
5964
5964
  });
5965
5965
  }
5966
5966
  //#endregion
5967
- 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 };
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 };