@pstdio/ui 0.20.1 → 0.22.0

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.
Files changed (116) hide show
  1. package/dist/{MermaidComponent-BVMyKttu.js → MermaidComponent-D92GMhht.js} +3 -3
  2. package/dist/{MermaidComponent-BVMyKttu.js.map → MermaidComponent-D92GMhht.js.map} +1 -1
  3. package/dist/chat-ui.d.ts +2 -0
  4. package/dist/chat-ui.js +3 -7
  5. package/dist/chat-ui.js.map +1 -1
  6. package/dist/components/data-table/build-columns.d.ts +2 -0
  7. package/dist/components/data-table/data-table-column-menu.d.ts +2 -0
  8. package/dist/components/data-table/data-table-row-display.d.ts +11 -0
  9. package/dist/components/data-table/data-table-table-parts.d.ts +1 -0
  10. package/dist/components/data-table/edit-mode-data-table-body.d.ts +1 -0
  11. package/dist/components/data-table/edit-mode-data-table-cell.d.ts +1 -0
  12. package/dist/components/data-table/edit-mode-data-table-header.d.ts +1 -0
  13. package/dist/components/data-table/types.d.ts +1 -0
  14. package/dist/components/diff-viewer/code-editor.d.ts +8 -2
  15. package/dist/components/diff-viewer/index.d.ts +1 -0
  16. package/dist/components/kanban-renderer/collection-badge.d.ts +7 -0
  17. package/dist/components/kanban-renderer/index.d.ts +1 -1
  18. package/dist/components/kanban-renderer/kanban-renderer-helpers.d.ts +2 -1
  19. package/dist/components/kanban-renderer/types.d.ts +20 -1
  20. package/dist/components/list-row/list-row-content.d.ts +1 -0
  21. package/dist/components/param-editor/param-editor-presentation.d.ts +1 -1
  22. package/dist/components/param-editor/param-editor.types.d.ts +5 -193
  23. package/dist/components/rich-text/shared/markdown-ast.d.ts +1 -0
  24. package/dist/components/rich-text/shared/markdown-source-document.d.ts +7 -0
  25. package/dist/components/rich-text/shared/markdown-source-links.d.ts +11 -0
  26. package/dist/components/rich-text/shared/markdown-source-map.d.ts +10 -0
  27. package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
  28. package/dist/components/tag-editor/tag-editor-row.d.ts +2 -1
  29. package/dist/components/tag-editor/tag-editor.types.d.ts +13 -0
  30. package/dist/components/tag-editor/tag-settings-panel.d.ts +1 -1
  31. package/dist/components/tree-list/tree-list-drag-provider.d.ts +13 -0
  32. package/dist/components/tree-list/tree-list-order.store.d.ts +4 -1
  33. package/dist/components/tree-list/tree-list-reorder.d.ts +14 -3
  34. package/dist/components/tree-list/tree-list-sortable.d.ts +2 -0
  35. package/dist/components/tree-list/tree-list-visibility-filter.d.ts +2 -2
  36. package/dist/components/tree-list/tree-list.d.ts +3 -0
  37. package/dist/components/tree-list/tree-list.types.d.ts +4 -0
  38. package/dist/data-table.d.ts +2 -0
  39. package/dist/data-table.js +740 -704
  40. package/dist/data-table.js.map +1 -1
  41. package/dist/diff.d.ts +2 -0
  42. package/dist/diff.js +532 -533
  43. package/dist/diff.js.map +1 -1
  44. package/dist/edit-mode-data-table-DGgRuSW3.js +846 -0
  45. package/dist/edit-mode-data-table-DGgRuSW3.js.map +1 -0
  46. package/dist/index.d.ts +2 -0
  47. package/dist/index.js +1603 -1492
  48. package/dist/index.js.map +1 -1
  49. package/dist/{kanban-renderer-toolbar-CpegGbwq.js → kanban-renderer-toolbar-Bl8xXdwU.js} +527 -469
  50. package/dist/kanban-renderer-toolbar-Bl8xXdwU.js.map +1 -0
  51. package/dist/kanban-renderer.d.ts +2 -0
  52. package/dist/kanban-renderer.js +21 -21
  53. package/dist/kanban-renderer.js.map +1 -1
  54. package/dist/lazy-markdown-editor-CCOchoJX.js +235 -0
  55. package/dist/lazy-markdown-editor-CCOchoJX.js.map +1 -0
  56. package/dist/list-row-DCgdza1i.js +812 -0
  57. package/dist/list-row-DCgdza1i.js.map +1 -0
  58. package/dist/markdown-CASvn1Z2.js +1643 -0
  59. package/dist/markdown-CASvn1Z2.js.map +1 -0
  60. package/dist/markdown-editor-C4GCyebp.js +1019 -0
  61. package/dist/markdown-editor-C4GCyebp.js.map +1 -0
  62. package/dist/{mermaid-renderer-H3IhLqnQ.js → mermaid-renderer-CVnuKs-A.js} +2 -2
  63. package/dist/{mermaid-renderer-H3IhLqnQ.js.map → mermaid-renderer-CVnuKs-A.js.map} +1 -1
  64. package/dist/mermaid.d.ts +2 -0
  65. package/dist/mermaid.js +1 -1
  66. package/dist/monaco-browser-CgvlArN7.js +21 -0
  67. package/dist/monaco-browser-CgvlArN7.js.map +1 -0
  68. package/dist/{param-editor-B8Ff9Nm8.js → param-editor-CkDq623X.js} +2 -2
  69. package/dist/{param-editor-B8Ff9Nm8.js.map → param-editor-CkDq623X.js.map} +1 -1
  70. package/dist/param-editor-field-DRgbnL7-.js +2809 -0
  71. package/dist/param-editor-field-DRgbnL7-.js.map +1 -0
  72. package/dist/rich-message-DARuDVOX.js +628 -0
  73. package/dist/{rich-message-DdFYRzTo.js.map → rich-message-DARuDVOX.js.map} +1 -1
  74. package/dist/rich-text.d.ts +2 -0
  75. package/dist/rich-text.js +48 -47
  76. package/dist/rich-text.js.map +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/terminal.d.ts +2 -0
  79. package/dist/terminal.js +1 -1
  80. package/dist/terminal.js.map +1 -1
  81. package/dist/theme/primitives/sizes.d.ts +9 -0
  82. package/dist/{theme-BH4fSst9.js → theme-B-l5_a6F.js} +69 -50
  83. package/dist/theme-B-l5_a6F.js.map +1 -0
  84. package/dist/theme-preference-Bpobguh4.js +114 -0
  85. package/dist/theme-preference-Bpobguh4.js.map +1 -0
  86. package/dist/theme.d.ts +2 -0
  87. package/dist/theme.js +1 -1
  88. package/dist/tree-list-AlO5ZmxQ.js +1262 -0
  89. package/dist/tree-list-AlO5ZmxQ.js.map +1 -0
  90. package/dist/utils/theme-preference.d.ts +4 -1
  91. package/dist/workspace-badge-BR_GgsAG.js +175 -0
  92. package/dist/workspace-badge-BR_GgsAG.js.map +1 -0
  93. package/package.json +5 -42
  94. package/dist/dialog-accept-shortcut-DAEBsoWW.js +0 -7
  95. package/dist/dialog-accept-shortcut-DAEBsoWW.js.map +0 -1
  96. package/dist/edit-mode-data-table-D6NeiDJx.js +0 -775
  97. package/dist/edit-mode-data-table-D6NeiDJx.js.map +0 -1
  98. package/dist/editor-config-D9OksZ93.js +0 -2416
  99. package/dist/editor-config-D9OksZ93.js.map +0 -1
  100. package/dist/kanban-renderer-toolbar-CpegGbwq.js.map +0 -1
  101. package/dist/lazy-markdown-editor-B7uP2ALS.js +0 -26
  102. package/dist/lazy-markdown-editor-B7uP2ALS.js.map +0 -1
  103. package/dist/list-row-9oxy-F0v.js +0 -796
  104. package/dist/list-row-9oxy-F0v.js.map +0 -1
  105. package/dist/monaco-browser-CO0NxK_Z.js +0 -19
  106. package/dist/monaco-browser-CO0NxK_Z.js.map +0 -1
  107. package/dist/number-input-WUfejtNx.js +0 -343
  108. package/dist/number-input-WUfejtNx.js.map +0 -1
  109. package/dist/param-editor-field-Cu4pto_a.js +0 -2845
  110. package/dist/param-editor-field-Cu4pto_a.js.map +0 -1
  111. package/dist/rich-message-DdFYRzTo.js +0 -658
  112. package/dist/theme-BH4fSst9.js.map +0 -1
  113. package/dist/theme-preference-DyymrYpR.js +0 -123
  114. package/dist/theme-preference-DyymrYpR.js.map +0 -1
  115. package/dist/tree-list-uV4UFj0x.js +0 -1116
  116. package/dist/tree-list-uV4UFj0x.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
- import { Avatar as at, Box as V, Text as W, Stack as j, HStack as re, chakra as Ie, Textarea as rn, Spacer as Ft, IconButton as We, Icon as se, Timeline as we, Dialog as X, CloseButton as Ht, Input as Mt, InputGroup as Vt, Kbd as ln, Collapsible as Xe, Flex as ge, Badge as Ne, Button as de, Skeleton as mt, Portal as Je, Breadcrumb as fe, AbsoluteCenter as sn, Center as an, Popover as qe, Grid as pt, defineSlotRecipe as cn, createSlotRecipeContext as dn, createToaster as un, Toaster as fn, Toast as Le, Spinner as Gt, Editable as Be, Menu as Ve } from "@chakra-ui/react";
2
- import { ChakraProvider as kl } from "@chakra-ui/react";
3
- import { jsx as s, jsxs as x, Fragment as Fe } from "react/jsx-runtime";
4
- import { c as P } from "react/compiler-runtime";
5
- import * as gt from "react";
6
- import { Children as hn, useState as ue, useEffect as he, useRef as je, Fragment as bt, forwardRef as jt, Component as mn, createContext as pn, useContext as gn } from "react";
7
- import { Paperclip as bn, ArrowUp as xn, Check as et, ArrowRight as Sn, ArrowLeft as vn, Option as xt, Command as Ye, ChevronRight as yn, Bell as Cn, X as wn, Search as Ut, SquareArrowOutUpRight as In, Minus as Tn, FileText as Pn, FolderOpen as An, Folder as Qt, Home as Rn, ChevronUp as En, ChevronDown as kn, GripVertical as _n, Trash2 as $n, Plus as On } from "lucide-react";
8
- import { T as Ue, S as tt, c as He } from "./browser-storage-DPtOQJx0.js";
1
+ import { Avatar as st, Box as G, Text as F, Stack as Q, HStack as ae, chakra as Pe, Textarea as on, Spacer as Bt, IconButton as Fe, Icon as ce, Timeline as Ie, Dialog as Z, CloseButton as Wt, Input as Ft, InputGroup as Ht, Kbd as rn, Collapsible as qe, Flex as de, Badge as Te, Button as ue, Skeleton as ft, Portal as Je, Breadcrumb as me, AbsoluteCenter as ln, Center as sn, Popover as Ye, Grid as ht, defineSlotRecipe as an, createSlotRecipeContext as cn, createToaster as dn, Toaster as un, Toast as Ne, Spinner as Mt, Editable as We, Menu as pe } from "@chakra-ui/react";
2
+ import { ChakraProvider as Li } from "@chakra-ui/react";
3
+ import { jsx as s, jsxs as S, Fragment as He } from "react/jsx-runtime";
4
+ import { c as $ } from "react/compiler-runtime";
5
+ import * as mt from "react";
6
+ import { Children as fn, useState as fe, useEffect as ge, useRef as je, Fragment as pt, forwardRef as Vt, Component as hn, createContext as mn, useContext as pn } from "react";
7
+ import { Paperclip as gn, ArrowUp as bn, Check as et, ArrowRight as Sn, ArrowLeft as xn, Option as gt, Command as Ke, ChevronRight as vn, Bell as yn, X as Cn, Search as Gt, SquareArrowOutUpRight as wn, Minus as In, FileText as Tn, FolderOpen as Pn, Folder as jt, Home as An, ChevronUp as Rn, ChevronDown as Ut, GripVertical as En, Trash2 as kn, Plus as $n } from "lucide-react";
8
+ import { T as Ue, S as tt, c as Me } from "./browser-storage-DPtOQJx0.js";
9
9
  import { useVirtualizer as Dn } from "@tanstack/react-virtual";
10
- import { L as nt, H as Ln, R as Xt } from "./list-row-9oxy-F0v.js";
11
- import { c as $l, b as Ol } from "./list-row-9oxy-F0v.js";
12
- import { T as zn } from "./tree-list-uV4UFj0x.js";
13
- import { R as Ll } from "./tree-list-uV4UFj0x.js";
14
- import { A as ft } from "./radio-cLMEBBZk.js";
15
- import { R as Nl, a as Bl } from "./radio-cLMEBBZk.js";
16
- import { g as Nn, o as Bn, c as Wn } from "./param-editor-field-Cu4pto_a.js";
17
- import { d as Fl, e as Hl, f as Ml, A as Vl, B as Gl, C as jl, h as Ul, D as Ql, F as Xl, H as ql, M as Yl, N as Kl, j as Zl, P as Jl, k as es, l as ts, k as ns, m as os, n as rs, R as is, p as ls, q as ss, S as as, b as cs, T as ds, V as us, r as fs, s as hs, a as ms } from "./param-editor-field-Cu4pto_a.js";
18
- import { h as gs } from "./dialog-accept-shortcut-DAEBsoWW.js";
19
- import { P as xs, a as Ss, b as vs } from "./param-editor-B8Ff9Nm8.js";
20
- import { g as Fn } from "./number-input-WUfejtNx.js";
21
- import { C as Cs, R as ws, S as Is, W as Ts, r as Ps, b as As, s as Rs } from "./number-input-WUfejtNx.js";
22
- import { E as ks } from "./empty-state-Bo4HVrgr.js";
23
- import { useStore as ot } from "zustand";
24
- import { persist as rt, createJSONStorage as it } from "zustand/middleware";
10
+ import { L as Qe, H as On, R as Qt } from "./list-row-DCgdza1i.js";
11
+ import { c as zi, b as Ni } from "./list-row-DCgdza1i.js";
12
+ import { T as Ln } from "./tree-list-AlO5ZmxQ.js";
13
+ import { R as Wi, a as Fi } from "./tree-list-AlO5ZmxQ.js";
14
+ import { A as dt } from "./radio-cLMEBBZk.js";
15
+ import { R as Mi, a as Vi } from "./radio-cLMEBBZk.js";
16
+ import { g as _n, o as zn, b as Nn } from "./param-editor-field-DRgbnL7-.js";
17
+ import { c as ji, d as Ui, e as Qi, A as Xi, B as qi, C as Yi, f as Ki, D as Zi, F as Ji, H as es, M as ts, N as ns, h as os, P as rs, j as ls, k as is, j as ss, l as as, m as cs, R as ds, n as us, p as fs, S as hs, T as ms, V as ps, q as gs, r as bs, a as Ss } from "./param-editor-field-DRgbnL7-.js";
18
+ import { S as vs, W as ys, h as Cs, r as ws, a as Is, s as Ts } from "./workspace-badge-BR_GgsAG.js";
19
+ import { P as As, a as Rs, b as Es } from "./param-editor-CkDq623X.js";
20
+ import { g as Bn } from "./lazy-markdown-editor-CCOchoJX.js";
21
+ import { C as $s, R as Ds, S as Os, i as Ls } from "./lazy-markdown-editor-CCOchoJX.js";
22
+ import { E as zs } from "./empty-state-Bo4HVrgr.js";
23
+ import { useStore as nt } from "zustand";
24
+ import { persist as ot, createJSONStorage as rt } from "zustand/middleware";
25
25
  import { createStore as lt } from "zustand/vanilla";
26
- import { useSensors as Hn, useSensor as Mn, PointerSensor as Vn, DndContext as Gn, closestCenter as jn } from "@dnd-kit/core";
27
- import { useSortable as Un, SortableContext as Qn, verticalListSortingStrategy as Xn, arrayMove as qn } from "@dnd-kit/sortable";
28
- import { CSS as Yn } from "@dnd-kit/utilities";
26
+ import { useSensors as Wn, useSensor as Fn, PointerSensor as Hn, DndContext as Mn, closestCenter as Vn } from "@dnd-kit/core";
27
+ import { useSortable as Gn, SortableContext as jn, verticalListSortingStrategy as Un, arrayMove as Qn } from "@dnd-kit/sortable";
28
+ import { CSS as Xn } from "@dnd-kit/utilities";
29
29
  import "@fontsource/inter/400.css";
30
30
  import "@fontsource/inter/500.css";
31
31
  import "@fontsource/playfair-display/400.css";
@@ -34,61 +34,60 @@ import "@fontsource/playfair-display/700.css";
34
34
  import "@fontsource/onest/400.css";
35
35
  import "@fontsource/onest/500.css";
36
36
  import "@fontsource/onest/700.css";
37
- import { c as $s, a as Os, t as Ds } from "./theme-BH4fSst9.js";
38
- import { T as zs, a as Ns, d as Bs, b as Ws, c as Fs, e as Hs, g as Ms, i as Vs, u as Gs } from "./theme-preference-DyymrYpR.js";
39
- import { i as Us } from "./lazy-markdown-editor-B7uP2ALS.js";
40
- const st = (o) => {
41
- const e = P(14), {
37
+ import { c as Bs, a as Ws, t as Fs } from "./theme-B-l5_a6F.js";
38
+ import { T as Ms, a as Vs, d as Gs, b as js, c as Us, e as Qs, g as Xs, i as qs, u as Ys } from "./theme-preference-Bpobguh4.js";
39
+ const it = (o) => {
40
+ const e = $(14), {
42
41
  actor: t,
43
42
  icon: n,
44
43
  color: r,
45
44
  background: i
46
- } = o, l = r === void 0 ? "fg.muted" : r, a = i === void 0 ? "bg.muted" : i;
45
+ } = o, l = r === void 0 ? "fg.muted" : r, c = i === void 0 ? "bg.muted" : i;
47
46
  if (n) {
48
- let m;
49
- return e[0] !== a || e[1] !== l || e[2] !== n ? (m = /* @__PURE__ */ s(V, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: l, background: a, children: n }), e[0] = a, e[1] = l, e[2] = n, e[3] = m) : m = e[3], m;
47
+ let p;
48
+ return e[0] !== c || e[1] !== l || e[2] !== n ? (p = /* @__PURE__ */ s(G, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: l, background: c, children: n }), e[0] = c, e[1] = l, e[2] = n, e[3] = p) : p = e[3], p;
50
49
  }
51
- const c = t?.avatarSrc, u = t?.avatarAlt ?? t?.name;
52
- let d;
53
- e[4] !== c || e[5] !== u ? (d = /* @__PURE__ */ s(at.Image, { src: c, alt: u }), e[4] = c, e[5] = u, e[6] = d) : d = e[6];
50
+ const a = t?.avatarSrc, d = t?.avatarAlt ?? t?.name;
51
+ let u;
52
+ e[4] !== a || e[5] !== d ? (u = /* @__PURE__ */ s(st.Image, { src: a, alt: d }), e[4] = a, e[5] = d, e[6] = u) : u = e[6];
54
53
  const f = t?.name;
55
54
  let h;
56
- e[7] !== a || e[8] !== l || e[9] !== f ? (h = /* @__PURE__ */ s(at.Fallback, { name: f, background: a, color: l }), e[7] = a, e[8] = l, e[9] = f, e[10] = h) : h = e[10];
57
- let p;
58
- return e[11] !== d || e[12] !== h ? (p = /* @__PURE__ */ x(at.Root, { size: "2xs", flexShrink: 0, children: [
59
- d,
55
+ e[7] !== c || e[8] !== l || e[9] !== f ? (h = /* @__PURE__ */ s(st.Fallback, { name: f, background: c, color: l }), e[7] = c, e[8] = l, e[9] = f, e[10] = h) : h = e[10];
56
+ let m;
57
+ return e[11] !== u || e[12] !== h ? (m = /* @__PURE__ */ S(st.Root, { size: "2xs", flexShrink: 0, children: [
58
+ u,
60
59
  h
61
- ] }), e[11] = d, e[12] = h, e[13] = p) : p = e[13], p;
62
- }, Kn = () => {
63
- const o = P(1);
60
+ ] }), e[11] = u, e[12] = h, e[13] = m) : m = e[13], m;
61
+ }, qn = () => {
62
+ const o = $(1);
64
63
  let e;
65
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(V, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
66
- }, qt = (o) => {
67
- const e = P(13), {
64
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
65
+ }, Xt = (o) => {
66
+ const e = $(13), {
68
67
  actor: t,
69
68
  timestamp: n,
70
69
  actions: r
71
70
  } = o;
72
71
  let i;
73
- e[0] !== t ? (i = /* @__PURE__ */ s(st, { actor: t }), e[0] = t, e[1] = i) : i = e[1];
72
+ e[0] !== t ? (i = /* @__PURE__ */ s(it, { actor: t }), e[0] = t, e[1] = i) : i = e[1];
74
73
  let l;
75
- e[2] !== t.name ? (l = /* @__PURE__ */ s(W, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[2] = t.name, e[3] = l) : l = e[3];
76
- let a;
77
- e[4] !== n ? (a = n ? /* @__PURE__ */ x(Fe, { children: [
78
- /* @__PURE__ */ s(Kn, {}),
79
- /* @__PURE__ */ s(W, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: n })
80
- ] }) : null, e[4] = n, e[5] = a) : a = e[5];
74
+ e[2] !== t.name ? (l = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[2] = t.name, e[3] = l) : l = e[3];
81
75
  let c;
82
- e[6] !== r ? (c = /* @__PURE__ */ s(V, { marginLeft: "auto", flexShrink: 0, children: r }), e[6] = r, e[7] = c) : c = e[7];
83
- let u;
84
- return e[8] !== i || e[9] !== l || e[10] !== a || e[11] !== c ? (u = /* @__PURE__ */ x(re, { gap: "xs", alignItems: "center", minW: "0", children: [
76
+ e[4] !== n ? (c = n ? /* @__PURE__ */ S(He, { children: [
77
+ /* @__PURE__ */ s(qn, {}),
78
+ /* @__PURE__ */ s(F, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: n })
79
+ ] }) : null, e[4] = n, e[5] = c) : c = e[5];
80
+ let a;
81
+ e[6] !== r ? (a = /* @__PURE__ */ s(G, { marginLeft: "auto", flexShrink: 0, children: r }), e[6] = r, e[7] = a) : a = e[7];
82
+ let d;
83
+ return e[8] !== i || e[9] !== l || e[10] !== c || e[11] !== a ? (d = /* @__PURE__ */ S(ae, { gap: "xs", alignItems: "center", minW: "0", children: [
85
84
  i,
86
85
  l,
87
- a,
88
- c
89
- ] }), e[8] = i, e[9] = l, e[10] = a, e[11] = c, e[12] = u) : u = e[12], u;
90
- }, Zn = (o) => {
91
- const e = P(18);
86
+ c,
87
+ a
88
+ ] }), e[8] = i, e[9] = l, e[10] = c, e[11] = a, e[12] = d) : d = e[12], d;
89
+ }, Yn = (o) => {
90
+ const e = $(18);
92
91
  let t, n, r, i, l;
93
92
  e[0] !== o ? ({
94
93
  actor: n,
@@ -97,50 +96,50 @@ const st = (o) => {
97
96
  children: r,
98
97
  ...i
99
98
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
100
- let a;
101
- e[6] !== t || e[7] !== n || e[8] !== l ? (a = /* @__PURE__ */ s(qt, { actor: n, timestamp: l, actions: t }), e[6] = t, e[7] = n, e[8] = l, e[9] = a) : a = e[9];
102
99
  let c;
103
- e[10] !== r ? (c = /* @__PURE__ */ s(V, { paddingLeft: "32px", children: /* @__PURE__ */ s(W, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: r }) }), e[10] = r, e[11] = c) : c = e[11];
104
- let u;
105
- e[12] !== a || e[13] !== c ? (u = /* @__PURE__ */ x(j, { gap: "xs", children: [
106
- a,
107
- c
108
- ] }), e[12] = a, e[13] = c, e[14] = u) : u = e[14];
100
+ e[6] !== t || e[7] !== n || e[8] !== l ? (c = /* @__PURE__ */ s(Xt, { actor: n, timestamp: l, actions: t }), e[6] = t, e[7] = n, e[8] = l, e[9] = c) : c = e[9];
101
+ let a;
102
+ e[10] !== r ? (a = /* @__PURE__ */ s(G, { paddingLeft: "32px", children: /* @__PURE__ */ s(F, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: r }) }), e[10] = r, e[11] = a) : a = e[11];
109
103
  let d;
110
- return e[15] !== i || e[16] !== u ? (d = /* @__PURE__ */ s(V, { paddingX: "md", paddingY: "sm", ...i, children: u }), e[15] = i, e[16] = u, e[17] = d) : d = e[17], d;
111
- }, Jn = (o) => {
112
- const e = P(27);
113
- let t, n, r, i, l, a, c;
104
+ e[12] !== c || e[13] !== a ? (d = /* @__PURE__ */ S(Q, { gap: "xs", children: [
105
+ c,
106
+ a
107
+ ] }), e[12] = c, e[13] = a, e[14] = d) : d = e[14];
108
+ let u;
109
+ return e[15] !== i || e[16] !== d ? (u = /* @__PURE__ */ s(G, { paddingX: "md", paddingY: "sm", ...i, children: d }), e[15] = i, e[16] = d, e[17] = u) : u = e[17], u;
110
+ }, Kn = (o) => {
111
+ const e = $(27);
112
+ let t, n, r, i, l, c, a;
114
113
  e[0] !== o ? ({
115
114
  actor: n,
116
- timestamp: c,
115
+ timestamp: a,
117
116
  actions: t,
118
117
  replies: l,
119
118
  composer: i,
120
119
  children: r,
121
- ...a
122
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a, e[7] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6], c = e[7]);
123
- const u = hn.count(l) > 0;
124
- let d;
125
- e[8] !== t || e[9] !== n || e[10] !== c ? (d = /* @__PURE__ */ s(qt, { actor: n, timestamp: c, actions: t }), e[8] = t, e[9] = n, e[10] = c, e[11] = d) : d = e[11];
120
+ ...c
121
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
122
+ const d = fn.count(l) > 0;
123
+ let u;
124
+ e[8] !== t || e[9] !== n || e[10] !== a ? (u = /* @__PURE__ */ s(Xt, { actor: n, timestamp: a, actions: t }), e[8] = t, e[9] = n, e[10] = a, e[11] = u) : u = e[11];
126
125
  let f;
127
- e[12] !== r ? (f = /* @__PURE__ */ s(W, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", whiteSpace: "pre-wrap", children: r }), e[12] = r, e[13] = f) : f = e[13];
126
+ e[12] !== r ? (f = /* @__PURE__ */ s(F, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", whiteSpace: "pre-wrap", children: r }), e[12] = r, e[13] = f) : f = e[13];
128
127
  let h;
129
- e[14] !== d || e[15] !== f ? (h = /* @__PURE__ */ x(j, { gap: "sm", padding: "md", children: [
130
- d,
128
+ e[14] !== u || e[15] !== f ? (h = /* @__PURE__ */ S(Q, { gap: "sm", padding: "md", children: [
129
+ u,
131
130
  f
132
- ] }), e[14] = d, e[15] = f, e[16] = h) : h = e[16];
133
- let p;
134
- e[17] !== u || e[18] !== l ? (p = u ? /* @__PURE__ */ s(V, { borderTopWidth: "1px", borderColor: "border.subtle", children: l }) : null, e[17] = u, e[18] = l, e[19] = p) : p = e[19];
131
+ ] }), e[14] = u, e[15] = f, e[16] = h) : h = e[16];
135
132
  let m;
136
- e[20] !== i ? (m = i ? /* @__PURE__ */ s(V, { borderTopWidth: "1px", borderColor: "border.subtle", children: i }) : null, e[20] = i, e[21] = m) : m = e[21];
133
+ e[17] !== d || e[18] !== l ? (m = d ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: l }) : null, e[17] = d, e[18] = l, e[19] = m) : m = e[19];
134
+ let p;
135
+ e[20] !== i ? (p = i ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: i }) : null, e[20] = i, e[21] = p) : p = e[21];
137
136
  let g;
138
- return e[22] !== a || e[23] !== h || e[24] !== p || e[25] !== m ? (g = /* @__PURE__ */ x(V, { as: "article", width: "full", borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", background: "bg", overflow: "hidden", ...a, children: [
137
+ return e[22] !== c || e[23] !== h || e[24] !== m || e[25] !== p ? (g = /* @__PURE__ */ S(G, { as: "article", width: "full", borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", background: "bg", overflow: "hidden", ...c, children: [
139
138
  h,
140
- p,
141
- m
142
- ] }), e[22] = a, e[23] = h, e[24] = p, e[25] = m, e[26] = g) : g = e[26], g;
143
- }, eo = (o) => {
139
+ m,
140
+ p
141
+ ] }), e[22] = c, e[23] = h, e[24] = m, e[25] = p, e[26] = g) : g = e[26], g;
142
+ }, Zn = (o) => {
144
143
  const {
145
144
  actor: e,
146
145
  value: t,
@@ -148,91 +147,91 @@ const st = (o) => {
148
147
  placeholder: r = "Leave a comment...",
149
148
  variant: i = "standalone",
150
149
  minRows: l = i === "standalone" ? 3 : 1,
151
- attachLabel: a = "Attach file",
152
- submitLabel: c = "Submit comment",
153
- actions: u,
154
- onAttach: d,
150
+ attachLabel: c = "Attach file",
151
+ submitLabel: a = "Submit comment",
152
+ actions: d,
153
+ onAttach: u,
155
154
  onChange: f,
156
155
  onSubmit: h,
157
- ...p
158
- } = o, [m, g] = ue(n), v = t ?? m, C = i === "inline", R = v.trim().length > 0, E = (S) => {
159
- t === void 0 && g(S), f?.(S);
160
- }, O = (S) => {
161
- S.preventDefault(), R && (h?.(v.trim()), t === void 0 && g(""));
156
+ ...m
157
+ } = o, [p, g] = fe(n), x = t ?? p, b = i === "inline", E = x.trim().length > 0, P = (v) => {
158
+ t === void 0 && g(v), f?.(v);
159
+ }, k = (v) => {
160
+ v.preventDefault(), E && (h?.(x.trim()), t === void 0 && g(""));
162
161
  };
163
- return /* @__PURE__ */ s(Ie.form, { width: "full", background: "bg", borderWidth: C ? "0" : "1px", borderColor: "border", borderRadius: C ? "0" : "sm", transition: "border-color 0.12s ease", _hover: C ? void 0 : {
162
+ return /* @__PURE__ */ s(Pe.form, { width: "full", background: "bg", borderWidth: b ? "0" : "1px", borderColor: "border", borderRadius: b ? "0" : "sm", transition: "border-color 0.12s ease", _hover: b ? void 0 : {
164
163
  borderColor: "border"
165
- }, _focusWithin: C ? void 0 : {
164
+ }, _focusWithin: b ? void 0 : {
166
165
  borderColor: "border.accent"
167
- }, onSubmit: O, ...p, children: /* @__PURE__ */ x(re, { alignItems: "flex-start", gap: "xs", padding: C ? "sm" : "md", children: [
168
- e ? /* @__PURE__ */ s(st, { actor: e }) : null,
169
- /* @__PURE__ */ x(V, { flex: "1", minW: "0", children: [
170
- /* @__PURE__ */ s(rn, { value: v, rows: l, resize: "none", border: "0", padding: "0", minH: C ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
166
+ }, onSubmit: k, ...m, children: /* @__PURE__ */ S(ae, { alignItems: "flex-start", gap: "xs", padding: b ? "sm" : "md", children: [
167
+ e ? /* @__PURE__ */ s(it, { actor: e }) : null,
168
+ /* @__PURE__ */ S(G, { flex: "1", minW: "0", children: [
169
+ /* @__PURE__ */ s(on, { value: x, rows: l, resize: "none", border: "0", padding: "0", minH: b ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
171
170
  color: "fg.subtle"
172
- }, onChange: (S) => E(S.currentTarget.value) }),
173
- /* @__PURE__ */ x(re, { gap: "2xs", marginTop: C ? "0" : "sm", children: [
174
- u,
175
- /* @__PURE__ */ s(Ft, {}),
176
- /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(We, { size: "2xs", variant: "ghost", "aria-label": a, type: "button", onClick: d, children: /* @__PURE__ */ s(se, { as: bn, boxSize: "14px" }) }) }),
177
- /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(We, { size: "2xs", variant: "subtle", "aria-label": c, type: "submit", disabled: !R, children: /* @__PURE__ */ s(se, { as: xn, boxSize: "14px" }) }) })
171
+ }, onChange: (v) => P(v.currentTarget.value) }),
172
+ /* @__PURE__ */ S(ae, { gap: "2xs", marginTop: b ? "0" : "sm", children: [
173
+ d,
174
+ /* @__PURE__ */ s(Bt, {}),
175
+ /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: u, children: /* @__PURE__ */ s(ce, { as: gn, boxSize: "14px" }) }) }),
176
+ /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !E, children: /* @__PURE__ */ s(ce, { as: bn, boxSize: "14px" }) }) })
178
177
  ] })
179
178
  ] })
180
179
  ] }) });
181
- }, to = () => {
182
- const o = P(1);
180
+ }, Jn = () => {
181
+ const o = $(1);
183
182
  let e;
184
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(V, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
185
- }, no = (o) => {
186
- const e = P(28);
187
- let t, n, r, i, l, a, c;
183
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
184
+ }, eo = (o) => {
185
+ const e = $(28);
186
+ let t, n, r, i, l, c, a;
188
187
  e[0] !== o ? ({
189
188
  actor: t,
190
189
  icon: r,
191
190
  iconColor: l,
192
- iconBackground: a,
193
- timestamp: c,
191
+ iconBackground: c,
192
+ timestamp: a,
194
193
  children: n,
195
194
  ...i
196
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a, e[7] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6], c = e[7]);
197
- const u = l === void 0 ? "fg" : l, d = a === void 0 ? "transparent" : a;
195
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
196
+ const d = l === void 0 ? "fg" : l, u = c === void 0 ? "transparent" : c;
198
197
  let f;
199
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(we.Separator, { borderColor: "border" }), e[8] = f) : f = e[8];
198
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(Ie.Separator, { borderColor: "border" }), e[8] = f) : f = e[8];
200
199
  let h;
201
- e[9] !== t || e[10] !== r || e[11] !== d || e[12] !== u ? (h = /* @__PURE__ */ x(we.Connector, { children: [
200
+ e[9] !== t || e[10] !== r || e[11] !== u || e[12] !== d ? (h = /* @__PURE__ */ S(Ie.Connector, { children: [
202
201
  f,
203
- /* @__PURE__ */ s(we.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(st, { actor: t, icon: r, color: u, background: d }) })
204
- ] }), e[9] = t, e[10] = r, e[11] = d, e[12] = u, e[13] = h) : h = e[13];
205
- let p;
206
- e[14] !== t ? (p = t ? /* @__PURE__ */ s(W, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = p) : p = e[15];
202
+ /* @__PURE__ */ s(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(it, { actor: t, icon: r, color: d, background: u }) })
203
+ ] }), e[9] = t, e[10] = r, e[11] = u, e[12] = d, e[13] = h) : h = e[13];
207
204
  let m;
208
- e[16] !== n ? (m = /* @__PURE__ */ s(V, { as: "span", display: "inline-flex", alignItems: "center", gap: "2xs", minW: "0", flexWrap: "wrap", children: n }), e[16] = n, e[17] = m) : m = e[17];
205
+ e[14] !== t ? (m = t ? /* @__PURE__ */ s(F, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = m) : m = e[15];
206
+ let p;
207
+ e[16] !== n ? (p = /* @__PURE__ */ s(G, { as: "span", display: "inline-flex", alignItems: "center", gap: "2xs", minW: "0", flexWrap: "wrap", children: n }), e[16] = n, e[17] = p) : p = e[17];
209
208
  let g;
210
- e[18] !== c ? (g = c ? /* @__PURE__ */ x(Fe, { children: [
211
- /* @__PURE__ */ s(to, {}),
212
- /* @__PURE__ */ s(W, { as: "span", color: "fg.muted", flexShrink: 0, children: c })
213
- ] }) : null, e[18] = c, e[19] = g) : g = e[19];
214
- let v;
215
- e[20] !== p || e[21] !== m || e[22] !== g ? (v = /* @__PURE__ */ s(we.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ x(we.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
216
- p,
209
+ e[18] !== a ? (g = a ? /* @__PURE__ */ S(He, { children: [
210
+ /* @__PURE__ */ s(Jn, {}),
211
+ /* @__PURE__ */ s(F, { as: "span", color: "fg.muted", flexShrink: 0, children: a })
212
+ ] }) : null, e[18] = a, e[19] = g) : g = e[19];
213
+ let x;
214
+ e[20] !== m || e[21] !== p || e[22] !== g ? (x = /* @__PURE__ */ s(Ie.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ S(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
217
215
  m,
216
+ p,
218
217
  g
219
- ] }) }), e[20] = p, e[21] = m, e[22] = g, e[23] = v) : v = e[23];
220
- let C;
221
- return e[24] !== i || e[25] !== h || e[26] !== v ? (C = /* @__PURE__ */ x(we.Item, { gap: "xs", minH: "24px", paddingX: "md", ...i, children: [
218
+ ] }) }), e[20] = m, e[21] = p, e[22] = g, e[23] = x) : x = e[23];
219
+ let b;
220
+ return e[24] !== i || e[25] !== h || e[26] !== x ? (b = /* @__PURE__ */ S(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...i, children: [
222
221
  h,
223
- v
224
- ] }), e[24] = i, e[25] = h, e[26] = v, e[27] = C) : C = e[27], C;
225
- }, oo = (o) => {
226
- const e = P(6);
222
+ x
223
+ ] }), e[24] = i, e[25] = h, e[26] = x, e[27] = b) : b = e[27], b;
224
+ }, to = (o) => {
225
+ const e = $(6);
227
226
  let t, n;
228
227
  e[0] !== o ? ({
229
228
  children: t,
230
229
  ...n
231
230
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
232
231
  let r;
233
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(j, { width: "full", gap: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
234
- }, ro = (o) => {
235
- const e = P(12);
232
+ return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { width: "full", gap: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
233
+ }, no = (o) => {
234
+ const e = $(12);
236
235
  let t, n, r;
237
236
  e[0] !== o ? ({
238
237
  title: r,
@@ -241,25 +240,25 @@ const st = (o) => {
241
240
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r) : (t = e[1], n = e[2], r = e[3]);
242
241
  const i = r === void 0 ? "Activity" : r;
243
242
  let l;
244
- e[4] !== i ? (l = /* @__PURE__ */ s(W, { textStyle: "label/M/medium", color: "fg", children: i }), e[4] = i, e[5] = l) : l = e[5];
245
- let a;
246
- e[6] !== t ? (a = t ? /* @__PURE__ */ s(re, { gap: "xs", children: t }) : null, e[6] = t, e[7] = a) : a = e[7];
243
+ e[4] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "label/M/medium", color: "fg", children: i }), e[4] = i, e[5] = l) : l = e[5];
247
244
  let c;
248
- return e[8] !== n || e[9] !== l || e[10] !== a ? (c = /* @__PURE__ */ x(re, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
245
+ e[6] !== t ? (c = t ? /* @__PURE__ */ s(ae, { gap: "xs", children: t }) : null, e[6] = t, e[7] = c) : c = e[7];
246
+ let a;
247
+ return e[8] !== n || e[9] !== l || e[10] !== c ? (a = /* @__PURE__ */ S(ae, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
249
248
  l,
250
- a
251
- ] }), e[8] = n, e[9] = l, e[10] = a, e[11] = c) : c = e[11], c;
252
- }, io = (o) => {
253
- const e = P(6);
249
+ c
250
+ ] }), e[8] = n, e[9] = l, e[10] = c, e[11] = a) : a = e[11], a;
251
+ }, oo = (o) => {
252
+ const e = $(6);
254
253
  let t, n;
255
254
  e[0] !== o ? ({
256
255
  children: t,
257
256
  ...n
258
257
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
259
258
  let r;
260
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(j, { gap: "md", width: "full", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
261
- }, lo = (o) => {
262
- const e = P(7);
259
+ return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "md", width: "full", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
260
+ }, ro = (o) => {
261
+ const e = $(7);
263
262
  let t, n;
264
263
  e[0] !== o ? ({
265
264
  children: t,
@@ -270,24 +269,24 @@ const st = (o) => {
270
269
  "--timeline-indicator-size": "18px"
271
270
  }, e[3] = r) : r = e[3];
272
271
  let i;
273
- return e[4] !== t || e[5] !== n ? (i = /* @__PURE__ */ s(we.Root, { size: "sm", variant: "plain", width: "full", css: r, ...n, children: t }), e[4] = t, e[5] = n, e[6] = i) : i = e[6], i;
274
- }, Xi = {
275
- Root: oo,
276
- Header: ro,
277
- Feed: io,
278
- Timeline: lo,
279
- Event: no,
280
- Comment: Jn,
281
- Reply: Zn,
282
- Composer: eo,
283
- Avatar: st
284
- }, qi = 48, so = (o) => {
272
+ return e[4] !== t || e[5] !== n ? (i = /* @__PURE__ */ s(Ie.Root, { size: "sm", variant: "plain", width: "full", css: r, ...n, children: t }), e[4] = t, e[5] = n, e[6] = i) : i = e[6], i;
273
+ }, Zl = {
274
+ Root: to,
275
+ Header: no,
276
+ Feed: oo,
277
+ Timeline: ro,
278
+ Event: eo,
279
+ Comment: Kn,
280
+ Reply: Yn,
281
+ Composer: Zn,
282
+ Avatar: it
283
+ }, Jl = 48, lo = (o) => {
285
284
  const e = typeof o.label == "string" ? o.label : "", t = typeof o.secondaryLabel == "string" ? o.secondaryLabel : "";
286
285
  return `${e} ${o.searchText ?? ""} ${t}`;
287
- }, Yt = (o, e) => o.trimStart().startsWith(e), ao = (o, e = [], t) => e.find((r) => r.inputPrefix && Yt(o, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, co = (o, e = [], t) => {
288
- const n = e.find((r) => r.id === t && r.inputPrefix && Yt(o, r.inputPrefix));
286
+ }, qt = (o, e) => o.trimStart().startsWith(e), io = (o, e = [], t) => e.find((r) => r.inputPrefix && qt(o, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, so = (o, e = [], t) => {
287
+ const n = e.find((r) => r.id === t && r.inputPrefix && qt(o, r.inputPrefix));
289
288
  return n?.inputPrefix ? o.trimStart().slice(n.inputPrefix.length).trim() : o.trim();
290
- }, uo = (o, e) => {
289
+ }, ao = (o, e) => {
291
290
  const t = {};
292
291
  return o.filter((n) => {
293
292
  const r = n.assetType;
@@ -295,20 +294,20 @@ const st = (o) => {
295
294
  const i = t[r] ?? 0;
296
295
  return i >= e ? !1 : (t[r] = i + 1, !0);
297
296
  });
298
- }, fo = (o, e) => {
299
- const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((r) => e.mode && r.mode !== e.mode ? !1 : t ? so(r).toLowerCase().includes(t) : !0);
300
- return t || e.defaultAssetLimit === void 0 ? n : uo(n, e.defaultAssetLimit);
301
- }, ho = 24, mo = 40, po = 384, go = (o) => ({
297
+ }, co = (o, e) => {
298
+ const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((r) => e.mode && r.mode !== e.mode ? !1 : t ? lo(r).toLowerCase().includes(t) : !0);
299
+ return t || e.defaultAssetLimit === void 0 ? n : ao(n, e.defaultAssetLimit);
300
+ }, uo = 24, fo = 40, ho = 384, mo = (o) => ({
302
301
  id: o.id,
303
302
  label: o.label,
304
303
  description: o.description ?? o.secondaryLabel,
305
304
  icon: o.icon,
306
- endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */ x(re, { gap: "2", children: [
305
+ endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */ S(ae, { gap: "2", children: [
307
306
  o.shortcut,
308
- o.isSelected ? /* @__PURE__ */ s(se, { as: et, boxSize: "14px", color: "fg.muted" }) : null
307
+ o.isSelected ? /* @__PURE__ */ s(ce, { as: et, boxSize: "14px", color: "fg.muted" }) : null
309
308
  ] }) : void 0),
310
309
  onActivate: o.onActivate
311
- }), bo = (o) => {
310
+ }), po = (o) => {
312
311
  const e = [];
313
312
  return o.forEach((t, n) => {
314
313
  const r = o[n - 1];
@@ -323,250 +322,250 @@ const st = (o) => {
323
322
  entryIndex: n
324
323
  });
325
324
  }), e;
326
- }, xo = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), So = (o) => {
325
+ }, go = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), bo = (o) => {
327
326
  const {
328
327
  entries: e,
329
328
  activeIndex: t,
330
329
  emptyLabel: n,
331
330
  onHover: r,
332
331
  scrollRef: i
333
- } = o, l = bo(e), a = xo(l, t), c = Dn({
332
+ } = o, l = po(e), c = go(l, t), a = Dn({
334
333
  count: l.length,
335
334
  getScrollElement: () => i.current,
336
- estimateSize: (u) => l[u]?.type === "group" ? ho : mo,
337
- getItemKey: (u) => l[u]?.id ?? u,
335
+ estimateSize: (d) => l[d]?.type === "group" ? uo : fo,
336
+ getItemKey: (d) => l[d]?.id ?? d,
338
337
  initialRect: {
339
338
  width: 0,
340
- height: po
339
+ height: ho
341
340
  },
342
341
  overscan: 6
343
342
  });
344
- return he(() => {
345
- a < 0 || c.scrollToIndex(a, {
343
+ return ge(() => {
344
+ c < 0 || a.scrollToIndex(c, {
346
345
  align: "auto",
347
346
  behavior: "auto"
348
347
  });
349
- }, [a, c]), e.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(V, { role: "listbox", position: "relative", width: "100%", style: {
350
- height: c.getTotalSize()
351
- }, children: c.getVirtualItems().map((u) => {
352
- const d = l[u.index];
353
- return d ? /* @__PURE__ */ s(V, { "data-index": u.index, ref: c.measureElement, position: "absolute", left: "0", width: "100%", style: {
354
- top: u.start
355
- }, children: d.type === "group" ? /* @__PURE__ */ s(W, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: d.label }) : /* @__PURE__ */ s(nt, { variant: "full-width", ...go(d.entry), isSelected: d.entryIndex === t, tabIndex: -1, onPointerMove: () => r(d.entryIndex) }) }, u.key) : null;
348
+ }, [c, a]), e.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(G, { role: "listbox", position: "relative", width: "100%", style: {
349
+ height: a.getTotalSize()
350
+ }, children: a.getVirtualItems().map((d) => {
351
+ const u = l[d.index];
352
+ return u ? /* @__PURE__ */ s(G, { "data-index": d.index, ref: a.measureElement, position: "absolute", left: "0", width: "100%", style: {
353
+ top: d.start
354
+ }, children: u.type === "group" ? /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: u.label }) : /* @__PURE__ */ s(Qe, { variant: "full-width", ...mo(u.entry), isSelected: u.entryIndex === t, tabIndex: -1, onPointerMove: () => r(u.entryIndex) }) }, d.key) : null;
356
355
  }) });
357
- }, St = (o) => o != null, vo = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", Kt = (o) => {
358
- const e = P(49), {
356
+ }, bt = (o) => o != null, So = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", Yt = (o) => {
357
+ const e = $(49), {
359
358
  children: t,
360
359
  searchValue: n,
361
360
  searchPlaceholder: r,
362
361
  searchAriaLabel: i,
363
362
  searchIcon: l,
364
- searchInputRef: a,
365
- searchAutoFocus: c,
366
- showCloseButton: u,
367
- closeButtonLabel: d,
363
+ searchInputRef: c,
364
+ searchAutoFocus: a,
365
+ showCloseButton: d,
366
+ closeButtonLabel: u,
368
367
  bodyBefore: f,
369
368
  footerStart: h,
370
- footerEnd: p,
371
- scrollAreaProps: m,
369
+ footerEnd: m,
370
+ scrollAreaProps: p,
372
371
  onSearchChange: g,
373
- onSearchKeyDown: v
374
- } = o, C = i === void 0 ? r : i, R = u === void 0 ? !1 : u, E = d === void 0 ? "Close" : d;
375
- let O;
376
- if (e[0] !== f || e[1] !== t || e[2] !== E || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== v || e[7] !== m || e[8] !== C || e[9] !== c || e[10] !== l || e[11] !== a || e[12] !== r || e[13] !== n || e[14] !== R) {
377
- const S = St(h), k = St(p);
378
- let w;
379
- e[16] !== m ? (w = m ?? {}, e[16] = m, e[17] = w) : w = e[17];
380
- let $, T, A;
381
- e[18] !== w ? ({
382
- maxH: T,
383
- showHorizontalScrollbar: A,
384
- ...$
385
- } = w, e[18] = w, e[19] = $, e[20] = T, e[21] = A) : ($ = e[19], T = e[20], A = e[21]);
386
- const L = T === void 0 ? "24rem" : T, N = A === void 0 ? !1 : A;
387
- let D;
388
- e[22] !== g ? (D = (M) => g(M.target.value), e[22] = g, e[23] = D) : D = e[23];
372
+ onSearchKeyDown: x
373
+ } = o, b = i === void 0 ? r : i, E = d === void 0 ? !1 : d, P = u === void 0 ? "Close" : u;
374
+ let k;
375
+ if (e[0] !== f || e[1] !== t || e[2] !== P || e[3] !== m || e[4] !== h || e[5] !== g || e[6] !== x || e[7] !== p || e[8] !== b || e[9] !== a || e[10] !== l || e[11] !== c || e[12] !== r || e[13] !== n || e[14] !== E) {
376
+ const v = bt(h), O = bt(m);
377
+ let T;
378
+ e[16] !== p ? (T = p ?? {}, e[16] = p, e[17] = T) : T = e[17];
379
+ let A, w, y;
380
+ e[18] !== T ? ({
381
+ maxH: w,
382
+ showHorizontalScrollbar: y,
383
+ ...A
384
+ } = T, e[18] = T, e[19] = A, e[20] = w, e[21] = y) : (A = e[19], w = e[20], y = e[21]);
385
+ const L = w === void 0 ? "24rem" : w, z = y === void 0 ? !1 : y;
389
386
  let I;
390
- e[24] !== v || e[25] !== C || e[26] !== c || e[27] !== a || e[28] !== r || e[29] !== n || e[30] !== D ? (I = /* @__PURE__ */ s(Mt, { ref: a, value: n, placeholder: r, "aria-label": C, autoComplete: "off", autoFocus: c, mx: "xs", h: "3rem", variant: "borderless", onChange: D, onKeyDown: v }), e[24] = v, e[25] = C, e[26] = c, e[27] = a, e[28] = r, e[29] = n, e[30] = D, e[31] = I) : I = e[31];
391
- let y;
392
- e[32] !== l || e[33] !== I ? (y = /* @__PURE__ */ s(Vt, { startElement: l, width: "full", children: I }), e[32] = l, e[33] = I, e[34] = y) : y = e[34];
393
- let b;
394
- e[35] !== E || e[36] !== R ? (b = R ? /* @__PURE__ */ s(X.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ht, { "aria-label": E, size: "sm", mr: "2" }) }) : null, e[35] = E, e[36] = R, e[37] = b) : b = e[37];
387
+ e[22] !== g ? (I = (B) => g(B.target.value), e[22] = g, e[23] = I) : I = e[23];
395
388
  let _;
396
- e[38] !== b || e[39] !== y ? (_ = /* @__PURE__ */ x(X.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
397
- y,
398
- b
399
- ] }), e[38] = b, e[39] = y, e[40] = _) : _ = e[40];
400
- let B;
401
- e[41] !== t || e[42] !== L || e[43] !== $ || e[44] !== N ? (B = /* @__PURE__ */ s(tt, { maxH: L, showHorizontalScrollbar: N, ...$, children: t }), e[41] = t, e[42] = L, e[43] = $, e[44] = N, e[45] = B) : B = e[45];
389
+ e[24] !== x || e[25] !== b || e[26] !== a || e[27] !== c || e[28] !== r || e[29] !== n || e[30] !== I ? (_ = /* @__PURE__ */ s(Ft, { ref: c, value: n, placeholder: r, "aria-label": b, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: I, onKeyDown: x }), e[24] = x, e[25] = b, e[26] = a, e[27] = c, e[28] = r, e[29] = n, e[30] = I, e[31] = _) : _ = e[31];
390
+ let R;
391
+ e[32] !== l || e[33] !== _ ? (R = /* @__PURE__ */ s(Ht, { startElement: l, width: "full", children: _ }), e[32] = l, e[33] = _, e[34] = R) : R = e[34];
392
+ let C;
393
+ e[35] !== P || e[36] !== E ? (C = E ? /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Wt, { "aria-label": P, size: "sm", mr: "2" }) }) : null, e[35] = P, e[36] = E, e[37] = C) : C = e[37];
394
+ let N;
395
+ e[38] !== C || e[39] !== R ? (N = /* @__PURE__ */ S(Z.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
396
+ R,
397
+ C
398
+ ] }), e[38] = C, e[39] = R, e[40] = N) : N = e[40];
402
399
  let H;
403
- e[46] !== f || e[47] !== B ? (H = /* @__PURE__ */ x(X.Body, { p: "0", children: [
400
+ e[41] !== t || e[42] !== L || e[43] !== A || e[44] !== z ? (H = /* @__PURE__ */ s(tt, { maxH: L, showHorizontalScrollbar: z, ...A, children: t }), e[41] = t, e[42] = L, e[43] = A, e[44] = z, e[45] = H) : H = e[45];
401
+ let q;
402
+ e[46] !== f || e[47] !== H ? (q = /* @__PURE__ */ S(Z.Body, { p: "0", children: [
404
403
  f,
405
- B
406
- ] }), e[46] = f, e[47] = B, e[48] = H) : H = e[48], O = /* @__PURE__ */ x(Fe, { children: [
407
- _,
408
- H,
409
- S || k ? /* @__PURE__ */ x(X.Footer, { justifyContent: vo(S, k), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
410
- S ? /* @__PURE__ */ s(V, { minW: "0", children: h }) : null,
411
- k ? /* @__PURE__ */ s(V, { flexShrink: 0, children: p }) : null
404
+ H
405
+ ] }), e[46] = f, e[47] = H, e[48] = q) : q = e[48], k = /* @__PURE__ */ S(He, { children: [
406
+ N,
407
+ q,
408
+ v || O ? /* @__PURE__ */ S(Z.Footer, { justifyContent: So(v, O), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
409
+ v ? /* @__PURE__ */ s(G, { minW: "0", children: h }) : null,
410
+ O ? /* @__PURE__ */ s(G, { flexShrink: 0, children: m }) : null
412
411
  ] }) : null
413
- ] }), e[0] = f, e[1] = t, e[2] = E, e[3] = p, e[4] = h, e[5] = g, e[6] = v, e[7] = m, e[8] = C, e[9] = c, e[10] = l, e[11] = a, e[12] = r, e[13] = n, e[14] = R, e[15] = O;
412
+ ] }), e[0] = f, e[1] = t, e[2] = P, e[3] = m, e[4] = h, e[5] = g, e[6] = x, e[7] = p, e[8] = b, e[9] = a, e[10] = l, e[11] = c, e[12] = r, e[13] = n, e[14] = E, e[15] = k;
414
413
  } else
415
- O = e[15];
416
- return O;
417
- }, vt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, Yi = (o) => {
418
- const e = P(71), {
414
+ k = e[15];
415
+ return k;
416
+ }, St = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, ei = (o) => {
417
+ const e = $(71), {
419
418
  open: t,
420
419
  entries: n,
421
420
  initialQuery: r,
422
421
  initialActiveIndex: i,
423
422
  mode: l,
424
- modes: a,
425
- resetKey: c,
426
- inputIcon: u,
427
- placeholder: d,
423
+ modes: c,
424
+ resetKey: a,
425
+ inputIcon: d,
426
+ placeholder: u,
428
427
  emptyLabel: f,
429
428
  footerStart: h,
430
- footerEnd: p,
431
- filterEntries: m,
429
+ footerEnd: m,
430
+ filterEntries: p,
432
431
  onActiveEntryChange: g,
433
- onQueryChange: v,
434
- onClose: C,
435
- onEscape: R
436
- } = o, E = r === void 0 ? "" : r, O = i === void 0 ? 0 : i, S = c === void 0 ? "default" : c, k = f === void 0 ? "No results." : f, [w, $] = ue(E), [T, A] = ue(O), L = je(null), N = je(null);
437
- let D;
438
- e[0] !== S ? (D = {
432
+ onQueryChange: x,
433
+ onClose: b,
434
+ onEscape: E
435
+ } = o, P = r === void 0 ? "" : r, k = i === void 0 ? 0 : i, v = a === void 0 ? "default" : a, O = f === void 0 ? "No results." : f, [T, A] = fe(P), [w, y] = fe(k), L = je(null), z = je(null);
436
+ let I;
437
+ e[0] !== v ? (I = {
439
438
  open: !1,
440
- resetKey: S
441
- }, e[0] = S, e[1] = D) : D = e[1];
442
- const I = je(D);
443
- let y, b, _, B, H;
444
- if (e[2] !== T || e[3] !== n || e[4] !== m || e[5] !== u || e[6] !== l || e[7] !== a || e[8] !== d || e[9] !== w) {
445
- const F = l ?? ao(w, a);
446
- b = m ? m(n, w, F) : fo(n, {
447
- query: w,
448
- mode: F,
449
- getEffectiveQuery: (me) => co(me, a, F)
450
- }), y = b[T] ?? null, B = {
451
- query: w,
452
- mode: F,
453
- activeIndex: T,
454
- entries: b
455
- }, _ = vt(u, B, null), H = vt(d, B, "Search"), e[2] = T, e[3] = n, e[4] = m, e[5] = u, e[6] = l, e[7] = a, e[8] = d, e[9] = w, e[10] = y, e[11] = b, e[12] = _, e[13] = B, e[14] = H;
439
+ resetKey: v
440
+ }, e[0] = v, e[1] = I) : I = e[1];
441
+ const _ = je(I);
442
+ let R, C, N, H, q;
443
+ if (e[2] !== w || e[3] !== n || e[4] !== p || e[5] !== d || e[6] !== l || e[7] !== c || e[8] !== u || e[9] !== T) {
444
+ const M = l ?? io(T, c);
445
+ C = p ? p(n, T, M) : co(n, {
446
+ query: T,
447
+ mode: M,
448
+ getEffectiveQuery: (be) => so(be, c, M)
449
+ }), R = C[w] ?? null, H = {
450
+ query: T,
451
+ mode: M,
452
+ activeIndex: w,
453
+ entries: C
454
+ }, N = St(d, H, null), q = St(u, H, "Search"), e[2] = w, e[3] = n, e[4] = p, e[5] = d, e[6] = l, e[7] = c, e[8] = u, e[9] = T, e[10] = R, e[11] = C, e[12] = N, e[13] = H, e[14] = q;
456
455
  } else
457
- y = e[10], b = e[11], _ = e[12], B = e[13], H = e[14];
458
- const M = H;
459
- let G;
460
- e[15] !== v ? (G = (F) => {
461
- $(F), v?.(F);
462
- }, e[15] = v, e[16] = G) : G = e[16];
463
- const z = G;
464
- let Y;
465
- e[17] !== y ? (Y = () => {
466
- y?.onActivate();
467
- }, e[17] = y, e[18] = Y) : Y = e[18];
468
- const q = Y;
469
- let U;
470
- e[19] !== C ? (U = () => {
471
- C();
472
- }, e[19] = C, e[20] = U) : U = e[20];
473
- const Q = U;
474
- let K, ae;
475
- e[21] !== O || e[22] !== E || e[23] !== t || e[24] !== S ? (ae = () => {
476
- const F = I.current;
477
- if (I.current = {
456
+ R = e[10], C = e[11], N = e[12], H = e[13], q = e[14];
457
+ const B = q;
458
+ let W;
459
+ e[15] !== x ? (W = (M) => {
460
+ A(M), x?.(M);
461
+ }, e[15] = x, e[16] = W) : W = e[16];
462
+ const D = W;
463
+ let X;
464
+ e[17] !== R ? (X = () => {
465
+ R?.onActivate();
466
+ }, e[17] = R, e[18] = X) : X = e[18];
467
+ const j = X;
468
+ let V;
469
+ e[19] !== b ? (V = () => {
470
+ b();
471
+ }, e[19] = b, e[20] = V) : V = e[20];
472
+ const U = V;
473
+ let Y, se;
474
+ e[21] !== k || e[22] !== P || e[23] !== t || e[24] !== v ? (se = () => {
475
+ const M = _.current;
476
+ if (_.current = {
478
477
  open: t,
479
- resetKey: S
480
- }, !t || !(!F.open || F.resetKey !== S))
478
+ resetKey: v
479
+ }, !t || !(!M.open || M.resetKey !== v))
481
480
  return;
482
- $(E), A(O);
483
- const ye = setTimeout(() => {
484
- const Ce = L.current;
485
- if (!Ce)
481
+ A(P), y(k);
482
+ const Ce = setTimeout(() => {
483
+ const we = L.current;
484
+ if (!we)
486
485
  return;
487
- Ce.focus();
488
- const pe = Ce.value.length;
489
- Ce.setSelectionRange(pe, pe);
486
+ we.focus();
487
+ const Se = we.value.length;
488
+ we.setSelectionRange(Se, Se);
490
489
  }, 0);
491
- return () => clearTimeout(ye);
492
- }, K = [O, E, t, S], e[21] = O, e[22] = E, e[23] = t, e[24] = S, e[25] = K, e[26] = ae) : (K = e[25], ae = e[26]), he(ae, K);
493
- let J, Z;
494
- e[27] !== b.length ? (J = () => {
495
- A((F) => Math.min(F, Math.max(b.length - 1, 0)));
496
- }, Z = [b.length], e[27] = b.length, e[28] = J, e[29] = Z) : (J = e[28], Z = e[29]), he(J, Z);
497
- let ee, ne;
498
- e[30] !== y || e[31] !== T || e[32] !== g ? (ee = () => {
499
- g?.(y, T);
500
- }, ne = [y, T, g], e[30] = y, e[31] = T, e[32] = g, e[33] = ee, e[34] = ne) : (ee = e[33], ne = e[34]), he(ee, ne);
501
- let te;
502
- e[35] !== y || e[36] !== Q || e[37] !== b.length || e[38] !== R || e[39] !== w || e[40] !== q || e[41] !== z || e[42] !== B ? (te = () => {
503
- if (!R?.({
504
- ...B,
505
- activeEntry: y,
506
- entryCount: b.length,
507
- setQuery: z,
508
- setActiveIndex: A,
509
- runActiveEntry: q,
510
- closePalette: Q
490
+ return () => clearTimeout(Ce);
491
+ }, Y = [k, P, t, v], e[21] = k, e[22] = P, e[23] = t, e[24] = v, e[25] = Y, e[26] = se) : (Y = e[25], se = e[26]), ge(se, Y);
492
+ let J, ee;
493
+ e[27] !== C.length ? (J = () => {
494
+ y((M) => Math.min(M, Math.max(C.length - 1, 0)));
495
+ }, ee = [C.length], e[27] = C.length, e[28] = J, e[29] = ee) : (J = e[28], ee = e[29]), ge(J, ee);
496
+ let re, te;
497
+ e[30] !== R || e[31] !== w || e[32] !== g ? (re = () => {
498
+ g?.(R, w);
499
+ }, te = [R, w, g], e[30] = R, e[31] = w, e[32] = g, e[33] = re, e[34] = te) : (re = e[33], te = e[34]), ge(re, te);
500
+ let le;
501
+ e[35] !== R || e[36] !== U || e[37] !== C.length || e[38] !== E || e[39] !== T || e[40] !== j || e[41] !== D || e[42] !== H ? (le = () => {
502
+ if (!E?.({
503
+ ...H,
504
+ activeEntry: R,
505
+ entryCount: C.length,
506
+ setQuery: D,
507
+ setActiveIndex: y,
508
+ runActiveEntry: j,
509
+ closePalette: U
511
510
  })) {
512
- if (w.length > 0) {
513
- z(""), A(0);
511
+ if (T.length > 0) {
512
+ D(""), y(0);
514
513
  return;
515
514
  }
516
- Q();
515
+ U();
517
516
  }
518
- }, e[35] = y, e[36] = Q, e[37] = b.length, e[38] = R, e[39] = w, e[40] = q, e[41] = z, e[42] = B, e[43] = te) : te = e[43];
519
- const le = te;
520
- let ie;
521
- e[44] !== b.length || e[45] !== le || e[46] !== q ? (ie = (F) => {
522
- if (F.key === "ArrowDown") {
523
- F.preventDefault(), A((me) => Math.min(me + 1, Math.max(b.length - 1, 0)));
517
+ }, e[35] = R, e[36] = U, e[37] = C.length, e[38] = E, e[39] = T, e[40] = j, e[41] = D, e[42] = H, e[43] = le) : le = e[43];
518
+ const ne = le;
519
+ let K;
520
+ e[44] !== C.length || e[45] !== ne || e[46] !== j ? (K = (M) => {
521
+ if (M.key === "ArrowDown") {
522
+ M.preventDefault(), y((be) => Math.min(be + 1, Math.max(C.length - 1, 0)));
524
523
  return;
525
524
  }
526
- if (F.key === "ArrowUp") {
527
- F.preventDefault(), A(yo);
525
+ if (M.key === "ArrowUp") {
526
+ M.preventDefault(), y(xo);
528
527
  return;
529
528
  }
530
- if (F.key === "Enter") {
531
- F.preventDefault(), q();
529
+ if (M.key === "Enter") {
530
+ M.preventDefault(), j();
532
531
  return;
533
532
  }
534
- F.key === "Escape" && (F.preventDefault(), F.stopPropagation(), le());
535
- }, e[44] = b.length, e[45] = le, e[46] = q, e[47] = ie) : ie = e[47];
536
- const ce = ie;
533
+ M.key === "Escape" && (M.preventDefault(), M.stopPropagation(), ne());
534
+ }, e[44] = C.length, e[45] = ne, e[46] = j, e[47] = K) : K = e[47];
535
+ const ie = K;
537
536
  let oe;
538
- e[48] !== Q ? (oe = (F) => !F.open && Q(), e[48] = Q, e[49] = oe) : oe = e[49];
539
- let be;
540
- e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ s(X.Backdrop, {}), e[50] = be) : be = e[50];
541
- let Te;
542
- e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = {
537
+ e[48] !== U ? (oe = (M) => !M.open && U(), e[48] = U, e[49] = oe) : oe = e[49];
538
+ let he;
539
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ s(Z.Backdrop, {}), e[50] = he) : he = e[50];
540
+ let Ae;
541
+ e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = {
543
542
  maxH: "24rem",
544
543
  showHorizontalScrollbar: !1,
545
- viewportRef: N,
544
+ viewportRef: z,
546
545
  viewportProps: {
547
546
  style: {
548
547
  overflowAnchor: "none"
549
548
  }
550
549
  }
551
- }, e[51] = Te) : Te = e[51];
550
+ }, e[51] = Ae) : Ae = e[51];
552
551
  let xe;
553
- e[52] !== z ? (xe = (F) => {
554
- z(F), A(0);
555
- }, e[52] = z, e[53] = xe) : xe = e[53];
556
- let Se;
557
- e[54] !== T || e[55] !== k || e[56] !== b ? (Se = /* @__PURE__ */ s(So, { entries: b, activeIndex: T, emptyLabel: k, onHover: A, scrollRef: N }), e[54] = T, e[55] = k, e[56] = b, e[57] = Se) : Se = e[57];
552
+ e[52] !== D ? (xe = (M) => {
553
+ D(M), y(0);
554
+ }, e[52] = D, e[53] = xe) : xe = e[53];
558
555
  let ve;
559
- e[58] !== p || e[59] !== h || e[60] !== ce || e[61] !== w || e[62] !== _ || e[63] !== M || e[64] !== xe || e[65] !== Se ? (ve = /* @__PURE__ */ s(X.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(X.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Kt, { searchValue: w, searchPlaceholder: M, searchIcon: _, searchInputRef: L, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Te, onSearchChange: xe, onSearchKeyDown: ce, children: Se }) }) }), e[58] = p, e[59] = h, e[60] = ce, e[61] = w, e[62] = _, e[63] = M, e[64] = xe, e[65] = Se, e[66] = ve) : ve = e[66];
560
- let Pe;
561
- return e[67] !== t || e[68] !== oe || e[69] !== ve ? (Pe = /* @__PURE__ */ x(X.Root, { open: t, onOpenChange: oe, children: [
562
- be,
563
- ve
564
- ] }), e[67] = t, e[68] = oe, e[69] = ve, e[70] = Pe) : Pe = e[70], Pe;
556
+ e[54] !== w || e[55] !== O || e[56] !== C ? (ve = /* @__PURE__ */ s(bo, { entries: C, activeIndex: w, emptyLabel: O, onHover: y, scrollRef: z }), e[54] = w, e[55] = O, e[56] = C, e[57] = ve) : ve = e[57];
557
+ let ye;
558
+ e[58] !== m || e[59] !== h || e[60] !== ie || e[61] !== T || e[62] !== N || e[63] !== B || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(Z.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(Z.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Yt, { searchValue: T, searchPlaceholder: B, searchIcon: N, searchInputRef: L, showCloseButton: !0, footerStart: h, footerEnd: m, scrollAreaProps: Ae, onSearchChange: xe, onSearchKeyDown: ie, children: ve }) }) }), e[58] = m, e[59] = h, e[60] = ie, e[61] = T, e[62] = N, e[63] = B, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
559
+ let Re;
560
+ return e[67] !== t || e[68] !== oe || e[69] !== ye ? (Re = /* @__PURE__ */ S(Z.Root, { open: t, onOpenChange: oe, children: [
561
+ he,
562
+ ye
563
+ ] }), e[67] = t, e[68] = oe, e[69] = ye, e[70] = Re) : Re = e[70], Re;
565
564
  };
566
- function yo(o) {
565
+ function xo(o) {
567
566
  return Math.max(o - 1, 0);
568
567
  }
569
- const Co = {
568
+ const vo = {
570
569
  alt: {
571
570
  label: "Alt"
572
571
  },
@@ -582,133 +581,133 @@ const Co = {
582
581
  shift: {
583
582
  label: "Shift"
584
583
  }
585
- }, wo = {
584
+ }, yo = {
586
585
  alt: {
587
586
  label: "Option",
588
- Icon: xt
587
+ Icon: gt
589
588
  },
590
589
  cmd: {
591
590
  label: "Command",
592
- Icon: Ye
591
+ Icon: Ke
593
592
  },
594
593
  command: {
595
594
  label: "Command",
596
- Icon: Ye
595
+ Icon: Ke
597
596
  },
598
597
  meta: {
599
598
  label: "Command",
600
- Icon: Ye
599
+ Icon: Ke
601
600
  },
602
601
  mod: {
603
602
  label: "Command",
604
- Icon: Ye
603
+ Icon: Ke
605
604
  },
606
605
  option: {
607
606
  label: "Option",
608
- Icon: xt
607
+ Icon: gt
609
608
  },
610
609
  shift: {
611
610
  label: "Shift"
612
611
  }
613
- }, Io = {
612
+ }, Co = {
614
613
  arrowleft: {
615
614
  label: "Arrow Left",
616
- Icon: vn
615
+ Icon: xn
617
616
  },
618
617
  arrowright: {
619
618
  label: "Arrow Right",
620
619
  Icon: Sn
621
620
  }
622
- }, To = () => {
621
+ }, wo = () => {
623
622
  if (typeof navigator > "u") return "linux";
624
623
  const o = navigator.platform?.toLowerCase() ?? "";
625
624
  return o.includes("mac") ? "mac" : o.includes("win") ? "win" : "linux";
626
- }, Po = (o, e = To()) => {
627
- const t = o.toLowerCase(), n = e === "mac" ? wo : Co;
628
- return Io[t] ?? n[t] ?? {
625
+ }, Io = (o, e = wo()) => {
626
+ const t = o.toLowerCase(), n = e === "mac" ? yo : vo;
627
+ return Co[t] ?? n[t] ?? {
629
628
  label: o
630
629
  };
631
- }, yt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Ao = (o) => (Array.isArray(o) ? o.map(yt) : [yt(o)]).map((t) => t.map((n) => Po(n))), Ki = (o) => {
632
- const e = P(4), {
630
+ }, xt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), To = (o) => (Array.isArray(o) ? o.map(xt) : [xt(o)]).map((t) => t.map((n) => Io(n))), ti = (o) => {
631
+ const e = $(4), {
633
632
  binding: t
634
633
  } = o;
635
634
  let n;
636
635
  if (e[0] !== t) {
637
- const i = Ao(t);
638
- n = i.map((l, a) => /* @__PURE__ */ x(bt, { children: [
639
- l.map((c, u) => /* @__PURE__ */ x(bt, { children: [
640
- /* @__PURE__ */ s(ln, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": c.label, children: c.Icon ? /* @__PURE__ */ s(c.Icon, { size: 12, "aria-hidden": "true" }) : c.label }),
641
- u < l.length - 1 ? " " : null
642
- ] }, `${c.label}-${u}`)),
643
- a < i.length - 1 ? " then " : null
644
- ] }, `${l.map(Ro).join("+")}-${a}`)), e[0] = t, e[1] = n;
636
+ const i = To(t);
637
+ n = i.map((l, c) => /* @__PURE__ */ S(pt, { children: [
638
+ l.map((a, d) => /* @__PURE__ */ S(pt, { children: [
639
+ /* @__PURE__ */ s(rn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
640
+ d < l.length - 1 ? " " : null
641
+ ] }, `${a.label}-${d}`)),
642
+ c < i.length - 1 ? " then " : null
643
+ ] }, `${l.map(Po).join("+")}-${c}`)), e[0] = t, e[1] = n;
645
644
  } else
646
645
  n = e[1];
647
646
  let r;
648
- return e[2] !== n ? (r = /* @__PURE__ */ s(Fe, { children: n }), e[2] = n, e[3] = r) : r = e[3], r;
647
+ return e[2] !== n ? (r = /* @__PURE__ */ s(He, { children: n }), e[2] = n, e[3] = r) : r = e[3], r;
649
648
  };
650
- function Ro(o) {
649
+ function Po(o) {
651
650
  return o.label;
652
651
  }
653
- function Zi(o) {
654
- const e = P(14);
655
- let t, n, r, i, l, a;
652
+ function ni(o) {
653
+ const e = $(14);
654
+ let t, n, r, i, l, c;
656
655
  e[0] !== o ? ({
657
656
  children: t,
658
657
  h: r,
659
658
  px: i,
660
659
  py: l,
661
- borderBottomWidth: a,
660
+ borderBottomWidth: c,
662
661
  ...n
663
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6]);
664
- const c = r === void 0 ? "41px" : r, u = i === void 0 ? "xs" : i, d = l === void 0 ? "xs" : l, f = a === void 0 ? "1px" : a;
662
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
663
+ const a = r === void 0 ? "41px" : r, d = i === void 0 ? "xs" : i, u = l === void 0 ? "xs" : l, f = c === void 0 ? "1px" : c;
665
664
  let h;
666
- return e[7] !== f || e[8] !== t || e[9] !== c || e[10] !== u || e[11] !== d || e[12] !== n ? (h = /* @__PURE__ */ s(re, { ...n, h: c, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: u, py: d, children: t }), e[7] = f, e[8] = t, e[9] = c, e[10] = u, e[11] = d, e[12] = n, e[13] = h) : h = e[13], h;
665
+ return e[7] !== f || e[8] !== t || e[9] !== a || e[10] !== d || e[11] !== u || e[12] !== n ? (h = /* @__PURE__ */ s(ae, { ...n, h: a, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: d, py: u, children: t }), e[7] = f, e[8] = t, e[9] = a, e[10] = d, e[11] = u, e[12] = n, e[13] = h) : h = e[13], h;
667
666
  }
668
- const Ji = (o) => {
669
- const e = P(17), {
667
+ const oi = (o) => {
668
+ const e = $(17), {
670
669
  children: t,
671
670
  title: n,
672
671
  defaultOpen: r,
673
672
  action: i
674
673
  } = o, l = r === void 0 ? !0 : r;
675
- let a;
676
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
677
- background: "bg.hover"
678
- }, e[0] = a) : a = e[0];
679
674
  let c;
680
- e[1] !== n ? (c = n && /* @__PURE__ */ s(W, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = c) : c = e[2];
681
- let u;
682
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(Xe.Indicator, { transition: "transform 0.2s", _open: {
683
- transform: "rotate(90deg)"
684
- }, children: /* @__PURE__ */ s(yn, { size: 16 }) }), e[3] = u) : u = e[3];
675
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
676
+ background: "bg.hover"
677
+ }, e[0] = c) : c = e[0];
678
+ let a;
679
+ e[1] !== n ? (a = n && /* @__PURE__ */ s(F, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = a) : a = e[2];
685
680
  let d;
686
- e[4] !== c ? (d = /* @__PURE__ */ x(Xe.Trigger, { _hover: a, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
687
- c,
688
- u
689
- ] }), e[4] = c, e[5] = d) : d = e[5];
681
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(qe.Indicator, { transition: "transform 0.2s", _open: {
682
+ transform: "rotate(90deg)"
683
+ }, children: /* @__PURE__ */ s(vn, { size: 16 }) }), e[3] = d) : d = e[3];
684
+ let u;
685
+ e[4] !== a ? (u = /* @__PURE__ */ S(qe.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
686
+ a,
687
+ d
688
+ ] }), e[4] = a, e[5] = u) : u = e[5];
690
689
  let f;
691
- e[6] !== i ? (f = i && /* @__PURE__ */ s(V, { marginLeft: "auto", onClick: Eo, children: i }), e[6] = i, e[7] = f) : f = e[7];
690
+ e[6] !== i ? (f = i && /* @__PURE__ */ s(G, { marginLeft: "auto", onClick: Ao, children: i }), e[6] = i, e[7] = f) : f = e[7];
692
691
  let h;
693
- e[8] !== d || e[9] !== f ? (h = /* @__PURE__ */ x(ge, { children: [
694
- d,
692
+ e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ S(de, { children: [
693
+ u,
695
694
  f
696
- ] }), e[8] = d, e[9] = f, e[10] = h) : h = e[10];
697
- let p;
698
- e[11] !== t ? (p = /* @__PURE__ */ s(Xe.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
695
+ ] }), e[8] = u, e[9] = f, e[10] = h) : h = e[10];
699
696
  let m;
700
- return e[13] !== l || e[14] !== h || e[15] !== p ? (m = /* @__PURE__ */ x(Xe.Root, { defaultOpen: l, width: "full", children: [
697
+ e[11] !== t ? (m = /* @__PURE__ */ s(qe.Content, { children: t }), e[11] = t, e[12] = m) : m = e[12];
698
+ let p;
699
+ return e[13] !== l || e[14] !== h || e[15] !== m ? (p = /* @__PURE__ */ S(qe.Root, { defaultOpen: l, width: "full", children: [
701
700
  h,
702
- p
703
- ] }), e[13] = l, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
701
+ m
702
+ ] }), e[13] = l, e[14] = h, e[15] = m, e[16] = p) : p = e[16], p;
704
703
  };
705
- function Eo(o) {
704
+ function Ao(o) {
706
705
  return o.stopPropagation();
707
706
  }
708
- const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", _o = (o) => o !== "normal", $o = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), Oo = (o, e) => {
707
+ const Ro = "2.5rem", vt = "2xs", ri = "sm", Kt = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", Eo = (o) => o !== "normal", ko = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), $o = (o, e) => {
709
708
  const t = e.trim().toLowerCase();
710
- return t ? o.filter((n) => $o(n).includes(t)) : o;
711
- }, Jt = (o) => {
709
+ return t ? o.filter((n) => ko(n).includes(t)) : o;
710
+ }, Zt = (o) => {
712
711
  const e = o.filter((r) => r.kind === "blocked"), t = o.filter((r) => r.kind !== "blocked" && (r.priority === "urgent" || r.priority === "high")), n = o.filter((r) => r.kind !== "blocked" && (r.priority === "normal" || r.priority === "low"));
713
712
  return [{
714
713
  id: "needs-input",
@@ -723,248 +722,248 @@ const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" :
723
722
  label: "Other",
724
723
  items: n
725
724
  }].filter((r) => r.items.length > 0);
726
- }, Do = (o) => Jt(o).flatMap((e) => e.items), Lo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), zo = (o, e) => {
725
+ }, Do = (o) => Zt(o).flatMap((e) => e.items), Oo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), Lo = (o, e) => {
727
726
  const t = [];
728
727
  return e.onDismiss && t.push({
729
728
  id: "dismiss",
730
729
  label: "Dismiss",
731
- icon: /* @__PURE__ */ s(wn, { size: 14 }),
730
+ icon: /* @__PURE__ */ s(Cn, { size: 14 }),
732
731
  tooltip: "Dismiss",
733
732
  onAction: () => e.onDismiss?.(o)
734
733
  }), t;
735
- }, No = (o) => {
736
- const e = P(15), {
734
+ }, _o = (o) => {
735
+ const e = $(15), {
737
736
  actions: t,
738
737
  item: n,
739
738
  onRunAction: r
740
739
  } = o;
741
740
  let i;
742
- e[0] !== n.priority ? (i = _o(n.priority) ? /* @__PURE__ */ s(Ne, { size: "sm", colorPalette: Zt(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
741
+ e[0] !== n.priority ? (i = Eo(n.priority) ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: Kt(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
743
742
  let l;
744
- e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Ne, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
745
- let a;
743
+ e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
744
+ let c;
746
745
  if (e[4] !== t || e[5] !== n || e[6] !== r) {
747
- let u;
748
- e[8] !== n || e[9] !== r ? (u = (d) => /* @__PURE__ */ s(de, { size: "2xs", variant: "outline", colorPalette: d.destructive ? "red" : "gray", maxW: "9rem", onClick: (f) => {
749
- f.stopPropagation(), r?.(n, d);
750
- }, children: /* @__PURE__ */ s(W, { truncate: !0, children: d.label }) }, d.id), e[8] = n, e[9] = r, e[10] = u) : u = e[10], a = t.map(u), e[4] = t, e[5] = n, e[6] = r, e[7] = a;
746
+ let d;
747
+ e[8] !== n || e[9] !== r ? (d = (u) => /* @__PURE__ */ s(ue, { size: "2xs", variant: "outline", colorPalette: u.destructive ? "red" : "gray", maxW: "9rem", onClick: (f) => {
748
+ f.stopPropagation(), r?.(n, u);
749
+ }, children: /* @__PURE__ */ s(F, { truncate: !0, children: u.label }) }, u.id), e[8] = n, e[9] = r, e[10] = d) : d = e[10], c = t.map(d), e[4] = t, e[5] = n, e[6] = r, e[7] = c;
751
750
  } else
752
- a = e[7];
753
- let c;
754
- return e[11] !== i || e[12] !== l || e[13] !== a ? (c = /* @__PURE__ */ x(re, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
751
+ c = e[7];
752
+ let a;
753
+ return e[11] !== i || e[12] !== l || e[13] !== c ? (a = /* @__PURE__ */ S(ae, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
755
754
  i,
756
755
  l,
757
- a
758
- ] }), e[11] = i, e[12] = l, e[13] = a, e[14] = c) : c = e[14], c;
759
- }, Bo = (o) => {
756
+ c
757
+ ] }), e[11] = i, e[12] = l, e[13] = c, e[14] = a) : a = e[14], a;
758
+ }, zo = (o) => {
760
759
  const {
761
760
  activeIndex: e,
762
761
  items: t,
763
762
  onActivateItem: n,
764
763
  onActiveIndexChange: r,
765
764
  onRunAction: i
766
- } = o, l = Jt(t);
767
- let a = 0;
768
- return /* @__PURE__ */ s(j, { gap: "2xs", py: "xs", children: l.map((c) => /* @__PURE__ */ x(j, { gap: "2xs", children: [
769
- /* @__PURE__ */ s(W, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: c.label }),
770
- c.items.map((u) => {
771
- const d = a;
772
- return a += 1, /* @__PURE__ */ s(nt, { id: u.id, label: u.title, description: Lo(u), icon: /* @__PURE__ */ s(se, { as: Cn, boxSize: "14px" }), iconColor: `${Zt(u.priority)}.500`, variant: "compact", isSelected: d === e, endContent: /* @__PURE__ */ s(No, { item: u, actions: u.actions ?? [], onRunAction: i }), actions: zo(u, o), tabIndex: -1, onActivate: () => n?.(u), onPointerMove: () => r(d) }, u.id);
765
+ } = o, l = Zt(t);
766
+ let c = 0;
767
+ return /* @__PURE__ */ s(Q, { gap: "2xs", py: "xs", children: l.map((a) => /* @__PURE__ */ S(Q, { gap: "2xs", children: [
768
+ /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: a.label }),
769
+ a.items.map((d) => {
770
+ const u = c;
771
+ return c += 1, /* @__PURE__ */ s(Qe, { id: d.id, label: d.title, description: Oo(d), icon: /* @__PURE__ */ s(ce, { as: yn, boxSize: "14px" }), iconColor: `${Kt(d.priority)}.500`, variant: "compact", isSelected: u === e, endContent: /* @__PURE__ */ s(_o, { item: d, actions: d.actions ?? [], onRunAction: i }), actions: Lo(d, o), tabIndex: -1, onActivate: () => n?.(d), onPointerMove: () => r(u) }, d.id);
773
772
  })
774
- ] }, c.id)) });
775
- }, Wo = () => {
776
- const o = P(1);
773
+ ] }, a.id)) });
774
+ }, No = () => {
775
+ const o = $(1);
777
776
  let e;
778
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Fo) }), o[0] = e) : e = o[0], e;
779
- }, tl = (o) => {
780
- const e = P(37), {
777
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Q, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Bo) }), o[0] = e) : e = o[0], e;
778
+ }, li = (o) => {
779
+ const e = $(37), {
781
780
  autoFocus: t,
782
781
  emptyLabel: n,
783
782
  error: r,
784
783
  footerEnd: i,
785
784
  footerStart: l,
786
- items: a,
787
- loading: c,
788
- onActivateItem: u,
789
- onEscape: d,
785
+ items: c,
786
+ loading: a,
787
+ onActivateItem: d,
788
+ onEscape: u,
790
789
  onQueryChange: f,
791
790
  query: h
792
- } = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = c === void 0 ? !1 : c, [v, C] = ue(""), [R, E] = ue(0), O = je(null), S = h ?? v;
793
- let k, w;
794
- e[0] !== S || e[1] !== a ? (k = Oo(a, S), w = Do(k), e[0] = S, e[1] = a, e[2] = k, e[3] = w) : (k = e[2], w = e[3]);
795
- const $ = w, T = $[R] ?? null;
796
- let A, L;
797
- e[4] !== p ? (A = () => {
798
- if (!p)
791
+ } = o, m = t === void 0 ? !1 : t, p = n === void 0 ? "No notifications." : n, g = a === void 0 ? !1 : a, [x, b] = fe(""), [E, P] = fe(0), k = je(null), v = h ?? x;
792
+ let O, T;
793
+ e[0] !== v || e[1] !== c ? (O = $o(c, v), T = Do(O), e[0] = v, e[1] = c, e[2] = O, e[3] = T) : (O = e[2], T = e[3]);
794
+ const A = T, w = A[E] ?? null;
795
+ let y, L;
796
+ e[4] !== m ? (y = () => {
797
+ if (!m)
799
798
  return;
800
- const z = setTimeout(() => O.current?.focus(), 0);
801
- return () => clearTimeout(z);
802
- }, L = [p], e[4] = p, e[5] = A, e[6] = L) : (A = e[5], L = e[6]), he(A, L);
803
- let N, D;
804
- e[7] !== $.length ? (N = () => {
805
- E((z) => Math.min(z, Math.max($.length - 1, 0)));
806
- }, D = [$.length], e[7] = $.length, e[8] = N, e[9] = D) : (N = e[8], D = e[9]), he(N, D);
807
- let I;
808
- e[10] !== f || e[11] !== h ? (I = (z) => {
809
- h === void 0 && C(z), f?.(z), E(0);
810
- }, e[10] = f, e[11] = h, e[12] = I) : I = e[12];
811
- const y = I;
812
- let b;
813
- e[13] !== T || e[14] !== S || e[15] !== $.length || e[16] !== u || e[17] !== d || e[18] !== y ? (b = (z) => {
814
- if (z.key === "ArrowDown") {
815
- z.preventDefault(), E((Y) => Math.min(Y + 1, Math.max($.length - 1, 0)));
799
+ const D = setTimeout(() => k.current?.focus(), 0);
800
+ return () => clearTimeout(D);
801
+ }, L = [m], e[4] = m, e[5] = y, e[6] = L) : (y = e[5], L = e[6]), ge(y, L);
802
+ let z, I;
803
+ e[7] !== A.length ? (z = () => {
804
+ P((D) => Math.min(D, Math.max(A.length - 1, 0)));
805
+ }, I = [A.length], e[7] = A.length, e[8] = z, e[9] = I) : (z = e[8], I = e[9]), ge(z, I);
806
+ let _;
807
+ e[10] !== f || e[11] !== h ? (_ = (D) => {
808
+ h === void 0 && b(D), f?.(D), P(0);
809
+ }, e[10] = f, e[11] = h, e[12] = _) : _ = e[12];
810
+ const R = _;
811
+ let C;
812
+ e[13] !== w || e[14] !== v || e[15] !== A.length || e[16] !== d || e[17] !== u || e[18] !== R ? (C = (D) => {
813
+ if (D.key === "ArrowDown") {
814
+ D.preventDefault(), P((X) => Math.min(X + 1, Math.max(A.length - 1, 0)));
816
815
  return;
817
816
  }
818
- if (z.key === "ArrowUp") {
819
- z.preventDefault(), E(Ho);
817
+ if (D.key === "ArrowUp") {
818
+ D.preventDefault(), P(Wo);
820
819
  return;
821
820
  }
822
- if (z.key === "Enter") {
823
- z.preventDefault(), T && u?.(T);
821
+ if (D.key === "Enter") {
822
+ D.preventDefault(), w && d?.(w);
824
823
  return;
825
824
  }
826
- if (z.key === "Escape") {
827
- if (z.preventDefault(), S.length > 0) {
828
- y("");
825
+ if (D.key === "Escape") {
826
+ if (D.preventDefault(), v.length > 0) {
827
+ R("");
829
828
  return;
830
829
  }
831
- d?.();
830
+ u?.();
832
831
  }
833
- }, e[13] = T, e[14] = S, e[15] = $.length, e[16] = u, e[17] = d, e[18] = y, e[19] = b) : b = e[19];
834
- const _ = b;
835
- let B;
836
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(Ut, { size: 14 }), e[20] = B) : B = e[20];
832
+ }, e[13] = w, e[14] = v, e[15] = A.length, e[16] = d, e[17] = u, e[18] = R, e[19] = C) : C = e[19];
833
+ const N = C;
837
834
  let H;
838
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
835
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ s(Gt, { size: 14 }), e[20] = H) : H = e[20];
836
+ let q;
837
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = {
839
838
  maxH: "24rem",
840
839
  showHorizontalScrollbar: !1
841
- }, e[21] = H) : H = e[21];
842
- let M;
843
- e[22] !== R || e[23] !== m || e[24] !== r || e[25] !== k || e[26] !== g || e[27] !== o ? (M = r ? /* @__PURE__ */ s(V, { p: "sm", children: /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Wo, {}) : k.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(Bo, { ...o, items: k, activeIndex: R, onActiveIndexChange: E }), e[22] = R, e[23] = m, e[24] = r, e[25] = k, e[26] = g, e[27] = o, e[28] = M) : M = e[28];
844
- let G;
845
- return e[29] !== S || e[30] !== p || e[31] !== i || e[32] !== l || e[33] !== _ || e[34] !== M || e[35] !== y ? (G = /* @__PURE__ */ s(Kt, { searchValue: S, searchPlaceholder: "Search notifications", searchIcon: B, searchInputRef: O, searchAutoFocus: p, footerStart: l, footerEnd: i, scrollAreaProps: H, onSearchChange: y, onSearchKeyDown: _, children: M }), e[29] = S, e[30] = p, e[31] = i, e[32] = l, e[33] = _, e[34] = M, e[35] = y, e[36] = G) : G = e[36], G;
840
+ }, e[21] = q) : q = e[21];
841
+ let B;
842
+ e[22] !== E || e[23] !== p || e[24] !== r || e[25] !== O || e[26] !== g || e[27] !== o ? (B = r ? /* @__PURE__ */ s(G, { p: "sm", children: /* @__PURE__ */ s(dt, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(No, {}) : O.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: p }) : /* @__PURE__ */ s(zo, { ...o, items: O, activeIndex: E, onActiveIndexChange: P }), e[22] = E, e[23] = p, e[24] = r, e[25] = O, e[26] = g, e[27] = o, e[28] = B) : B = e[28];
843
+ let W;
844
+ return e[29] !== v || e[30] !== m || e[31] !== i || e[32] !== l || e[33] !== N || e[34] !== B || e[35] !== R ? (W = /* @__PURE__ */ s(Yt, { searchValue: v, searchPlaceholder: "Search notifications", searchIcon: H, searchInputRef: k, searchAutoFocus: m, footerStart: l, footerEnd: i, scrollAreaProps: q, onSearchChange: R, onSearchKeyDown: N, children: B }), e[29] = v, e[30] = m, e[31] = i, e[32] = l, e[33] = N, e[34] = B, e[35] = R, e[36] = W) : W = e[36], W;
846
845
  };
847
- function Fo(o) {
848
- return /* @__PURE__ */ x(j, { gap: "2xs", children: [
849
- /* @__PURE__ */ s(mt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
850
- /* @__PURE__ */ s(mt, { h: "3", w: "88%", borderRadius: "xs" })
846
+ function Bo(o) {
847
+ return /* @__PURE__ */ S(Q, { gap: "2xs", children: [
848
+ /* @__PURE__ */ s(ft, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
849
+ /* @__PURE__ */ s(ft, { h: "3", w: "88%", borderRadius: "xs" })
851
850
  ] }, o);
852
851
  }
853
- function Ho(o) {
852
+ function Wo(o) {
854
853
  return Math.max(o - 1, 0);
855
854
  }
856
- const nl = (o) => {
857
- const e = P(6);
855
+ const ii = (o) => {
856
+ const e = $(6);
858
857
  let t, n;
859
858
  e[0] !== o ? ({
860
859
  children: t,
861
860
  ...n
862
861
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
863
862
  let r;
864
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(ge, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
865
- }, Mo = "20rem", ol = (o) => {
866
- const e = P(15);
867
- let t, n, r, i, l, a;
863
+ return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(de, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
864
+ }, Fo = "20rem", si = (o) => {
865
+ const e = $(15);
866
+ let t, n, r, i, l, c;
868
867
  e[0] !== o ? ({
869
868
  children: t,
870
869
  header: n,
871
870
  width: l,
872
871
  minWidth: r,
873
- resizable: a,
872
+ resizable: c,
874
873
  ...i
875
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6]);
876
- const c = l === void 0 ? "28rem" : l, u = a === void 0 ? !1 : a, d = r ?? (u ? Mo : c), f = u ? "full" : c;
874
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
875
+ const a = l === void 0 ? "28rem" : l, d = c === void 0 ? !1 : c, u = r ?? (d ? Fo : a), f = d ? "full" : a;
877
876
  let h;
878
- e[7] !== t ? (h = /* @__PURE__ */ s(ge, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
879
- let p;
880
- return e[9] !== n || e[10] !== d || e[11] !== f || e[12] !== i || e[13] !== h ? (p = /* @__PURE__ */ x(ge, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: d, h: "100%", borderLeftWidth: "1px", bg: "bg", overflow: "hidden", ...i, children: [
877
+ e[7] !== t ? (h = /* @__PURE__ */ s(de, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
878
+ let m;
879
+ return e[9] !== n || e[10] !== u || e[11] !== f || e[12] !== i || e[13] !== h ? (m = /* @__PURE__ */ S(de, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: u, h: "100%", borderLeftWidth: "1px", bg: "bg", overflow: "hidden", ...i, children: [
881
880
  n,
882
881
  h
883
- ] }), e[9] = n, e[10] = d, e[11] = f, e[12] = i, e[13] = h, e[14] = p) : p = e[14], p;
884
- }, rl = jt(function(e, t) {
885
- const n = P(19);
886
- let r, i, l, a, c;
882
+ ] }), e[9] = n, e[10] = u, e[11] = f, e[12] = i, e[13] = h, e[14] = m) : m = e[14], m;
883
+ }, ai = Vt(function(e, t) {
884
+ const n = $(19);
885
+ let r, i, l, c, a;
887
886
  n[0] !== e ? ({
888
887
  children: r,
889
888
  containerProps: i,
890
- isOpen: a,
891
- tooltip: c,
889
+ isOpen: c,
890
+ tooltip: a,
892
891
  ...l
893
- } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = a, n[5] = c) : (r = n[1], i = n[2], l = n[3], a = n[4], c = n[5]);
894
- const d = (a === void 0 ? !1 : a) ? "border.accent" : "border";
892
+ } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = c, n[5] = a) : (r = n[1], i = n[2], l = n[3], c = n[4], a = n[5]);
893
+ const u = (c === void 0 ? !1 : c) ? "border.accent" : "border";
895
894
  let f, h;
896
895
  n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
897
896
  borderColor: "border.accent"
898
897
  }, h = {
899
898
  borderColor: "border.accent"
900
899
  }, n[6] = f, n[7] = h) : (f = n[6], h = n[7]);
901
- let p;
902
- n[8] !== r || n[9] !== t || n[10] !== l || n[11] !== d ? (p = /* @__PURE__ */ s(We, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: d, transition: "border-color 0.2s ease-in-out", _hover: f, _active: h, ...l, children: r }), n[8] = r, n[9] = t, n[10] = l, n[11] = d, n[12] = p) : p = n[12];
903
- const m = p;
900
+ let m;
901
+ n[8] !== r || n[9] !== t || n[10] !== l || n[11] !== u ? (m = /* @__PURE__ */ s(Fe, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: u, transition: "border-color 0.2s ease-in-out", _hover: f, _active: h, ...l, children: r }), n[8] = r, n[9] = t, n[10] = l, n[11] = u, n[12] = m) : m = n[12];
902
+ const p = m;
904
903
  let g;
905
- n[13] !== m || n[14] !== c ? (g = c ? /* @__PURE__ */ s(Ue, { content: c, children: m }) : m, n[13] = m, n[14] = c, n[15] = g) : g = n[15];
906
- let v;
907
- return n[16] !== i || n[17] !== g ? (v = /* @__PURE__ */ s(Ie.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = v) : v = n[18], v;
908
- }), il = jt(function(e, t) {
909
- const n = P(28), {
904
+ n[13] !== p || n[14] !== a ? (g = a ? /* @__PURE__ */ s(Ue, { content: a, children: p }) : p, n[13] = p, n[14] = a, n[15] = g) : g = n[15];
905
+ let x;
906
+ return n[16] !== i || n[17] !== g ? (x = /* @__PURE__ */ s(Pe.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = x) : x = n[18], x;
907
+ }), ci = Vt(function(e, t) {
908
+ const n = $(28), {
910
909
  isOpen: r,
911
910
  title: i,
912
911
  menu: l,
913
- onClose: a,
914
- closeLabel: c,
915
- onPopOut: u,
916
- popOutLabel: d,
912
+ onClose: c,
913
+ closeLabel: a,
914
+ onPopOut: d,
915
+ popOutLabel: u,
917
916
  width: f,
918
917
  height: h,
919
- containerProps: p,
920
- testId: m,
918
+ containerProps: m,
919
+ testId: p,
921
920
  "aria-label": g,
922
- children: v
923
- } = e, C = r === void 0 ? !1 : r, R = f === void 0 ? "28rem" : f, E = h === void 0 ? "38rem" : h;
924
- if (!C)
921
+ children: x
922
+ } = e, b = r === void 0 ? !1 : r, E = f === void 0 ? "28rem" : f, P = h === void 0 ? "38rem" : h;
923
+ if (!b)
925
924
  return null;
926
- const O = g ?? i;
927
- let S;
928
- n[0] !== l ? (S = /* @__PURE__ */ s(re, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = S) : S = n[1];
929
- let k;
930
- n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ s(Ft, {}), n[2] = k) : k = n[2];
931
- let w;
932
- n[3] !== u || n[4] !== d ? (w = u ? /* @__PURE__ */ s(Ue, { content: d, children: /* @__PURE__ */ s(We, { size: Ct, variant: "ghost", "aria-label": d, onClick: u, children: /* @__PURE__ */ s(In, { size: 16 }) }) }) : null, n[3] = u, n[4] = d, n[5] = w) : w = n[5];
933
- let $;
934
- n[6] !== c || n[7] !== a ? ($ = a ? /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(We, { size: Ct, variant: "ghost", "aria-label": c, onClick: a, children: /* @__PURE__ */ s(Tn, { size: 16 }) }) }) : null, n[6] = c, n[7] = a, n[8] = $) : $ = n[8];
925
+ const k = g ?? i;
926
+ let v;
927
+ n[0] !== l ? (v = /* @__PURE__ */ s(ae, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = v) : v = n[1];
928
+ let O;
929
+ n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ s(Bt, {}), n[2] = O) : O = n[2];
935
930
  let T;
936
- n[9] !== w || n[10] !== $ ? (T = /* @__PURE__ */ x(re, { gap: "1", children: [
937
- w,
938
- $
939
- ] }), n[9] = w, n[10] = $, n[11] = T) : T = n[11];
931
+ n[3] !== d || n[4] !== u ? (T = d ? /* @__PURE__ */ s(Ue, { content: u, children: /* @__PURE__ */ s(Fe, { size: vt, variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ s(wn, { size: 16 }) }) }) : null, n[3] = d, n[4] = u, n[5] = T) : T = n[5];
940
932
  let A;
941
- n[12] !== S || n[13] !== T ? (A = /* @__PURE__ */ x(Ln, { variant: "main", gap: "sm", flexShrink: 0, children: [
942
- S,
943
- k,
944
- T
945
- ] }), n[12] = S, n[13] = T, n[14] = A) : A = n[14];
933
+ n[6] !== a || n[7] !== c ? (A = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: vt, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(In, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = A) : A = n[8];
934
+ let w;
935
+ n[9] !== T || n[10] !== A ? (w = /* @__PURE__ */ S(ae, { gap: "1", children: [
936
+ T,
937
+ A
938
+ ] }), n[9] = T, n[10] = A, n[11] = w) : w = n[11];
939
+ let y;
940
+ n[12] !== v || n[13] !== w ? (y = /* @__PURE__ */ S(On, { variant: "main", gap: "sm", flexShrink: 0, children: [
941
+ v,
942
+ O,
943
+ w
944
+ ] }), n[12] = v, n[13] = w, n[14] = y) : y = n[14];
946
945
  let L;
947
- n[15] !== v ? (L = /* @__PURE__ */ s(V, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: v }), n[15] = v, n[16] = L) : L = n[16];
948
- let N;
949
- n[17] !== L || n[18] !== A ? (N = /* @__PURE__ */ x(ge, { direction: "column", h: "full", children: [
950
- A,
946
+ n[15] !== x ? (L = /* @__PURE__ */ s(G, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: x }), n[15] = x, n[16] = L) : L = n[16];
947
+ let z;
948
+ n[17] !== L || n[18] !== y ? (z = /* @__PURE__ */ S(de, { direction: "column", h: "full", children: [
949
+ y,
951
950
  L
952
- ] }), n[17] = L, n[18] = A, n[19] = N) : N = n[19];
953
- let D;
954
- return n[20] !== p || n[21] !== E || n[22] !== t || n[23] !== N || n[24] !== O || n[25] !== m || n[26] !== R ? (D = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Ie.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": O, position: "fixed", bottom: "3", right: "3", w: R, maxW: "calc(100vw - 2rem)", h: E, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: N }) }), n[20] = p, n[21] = E, n[22] = t, n[23] = N, n[24] = O, n[25] = m, n[26] = R, n[27] = D) : D = n[27], D;
955
- }), Vo = (o) => {
956
- const [e, t] = ue(!1), {
951
+ ] }), n[17] = L, n[18] = y, n[19] = z) : z = n[19];
952
+ let I;
953
+ return n[20] !== m || n[21] !== P || n[22] !== t || n[23] !== z || n[24] !== k || n[25] !== p || n[26] !== E ? (I = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Pe.section, { ref: t, role: "dialog", "data-testid": p, "aria-label": k, position: "fixed", bottom: "3", right: "3", w: E, maxW: "calc(100vw - 2rem)", h: P, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...m, children: z }) }), n[20] = m, n[21] = P, n[22] = t, n[23] = z, n[24] = k, n[25] = p, n[26] = E, n[27] = I) : I = n[27], I;
954
+ }), Ho = (o) => {
955
+ const [e, t] = fe(!1), {
957
956
  headline: n,
958
957
  buttonText: r,
959
958
  notificationText: i,
960
959
  onDelete: l,
961
- open: a,
962
- onClose: c,
963
- children: u
964
- } = o, d = async () => {
960
+ open: c,
961
+ onClose: a,
962
+ children: d
963
+ } = o, u = async () => {
965
964
  t(!0);
966
965
  try {
967
- await l(), c();
966
+ await l(), a();
968
967
  } catch {
969
968
  } finally {
970
969
  t(!1);
@@ -974,31 +973,31 @@ const nl = (o) => {
974
973
  // Destructive confirmations dismiss only through their explicit controls —
975
974
  // outside interactions must never cancel them, and when nested inside another
976
975
  // overlay (e.g. the settings dialog) a portal keeps the layers cooperating.
977
- /* @__PURE__ */ s(X.Root, { open: a, onOpenChange: (f) => {
978
- f.open || c();
979
- }, closeOnInteractOutside: !1, children: /* @__PURE__ */ x(Je, { children: [
980
- /* @__PURE__ */ s(X.Backdrop, {}),
981
- /* @__PURE__ */ s(X.Positioner, { children: /* @__PURE__ */ x(X.Content, { children: [
982
- /* @__PURE__ */ x(X.Header, { children: [
983
- /* @__PURE__ */ s(W, { textStyle: "heading/M", children: n }),
984
- /* @__PURE__ */ s(X.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ht, { size: "sm" }) })
976
+ /* @__PURE__ */ s(Z.Root, { open: c, onOpenChange: (f) => {
977
+ f.open || a();
978
+ }, closeOnInteractOutside: !1, children: /* @__PURE__ */ S(Je, { children: [
979
+ /* @__PURE__ */ s(Z.Backdrop, {}),
980
+ /* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ S(Z.Content, { children: [
981
+ /* @__PURE__ */ S(Z.Header, { children: [
982
+ /* @__PURE__ */ s(F, { textStyle: "heading/M", children: n }),
983
+ /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Wt, { size: "sm" }) })
985
984
  ] }),
986
- /* @__PURE__ */ s(X.Body, { children: /* @__PURE__ */ x(j, { gap: "3", children: [
987
- i ? /* @__PURE__ */ s(W, { children: i }) : null,
988
- u
985
+ /* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */ S(Q, { gap: "3", children: [
986
+ i ? /* @__PURE__ */ s(F, { children: i }) : null,
987
+ d
989
988
  ] }) }),
990
- /* @__PURE__ */ s(X.Footer, { children: /* @__PURE__ */ x(j, { direction: "row", gap: "1", children: [
991
- /* @__PURE__ */ s(de, { onClick: c, children: "Close" }),
992
- /* @__PURE__ */ s(de, { loading: e, variant: "destructive", onClick: d, children: r })
989
+ /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ S(Q, { direction: "row", gap: "1", children: [
990
+ /* @__PURE__ */ s(ue, { onClick: a, children: "Close" }),
991
+ /* @__PURE__ */ s(ue, { loading: e, variant: "destructive", onClick: u, children: r })
993
992
  ] }) })
994
993
  ] }) })
995
994
  ] }) })
996
995
  );
997
- }, Go = (o) => o.isDirectory ? o.isGitRepo ? An : Qt : Pn, jo = (o, e) => {
996
+ }, Mo = (o) => o.isDirectory ? o.isGitRepo ? Pn : jt : Tn, Vo = (o, e) => {
998
997
  const t = e.trim().toLowerCase();
999
998
  return t ? o.filter((n) => `${n.name} ${n.path}`.toLowerCase().includes(t)) : o;
1000
- }, Uo = (o) => {
1001
- const e = P(22), {
999
+ }, Go = (o) => {
1000
+ const e = $(22), {
1002
1001
  entry: t,
1003
1002
  selectedPath: n,
1004
1003
  selectedPathSet: r,
@@ -1006,21 +1005,21 @@ const nl = (o) => {
1006
1005
  } = o;
1007
1006
  let l;
1008
1007
  e[0] !== t.isGitRepo || e[1] !== t.path || e[2] !== r ? (l = t.isGitRepo && r.has(t.path), e[0] = t.isGitRepo, e[1] = t.path, e[2] = r, e[3] = l) : l = e[3];
1009
- const a = l, c = !t.isDirectory || a;
1010
- let u;
1011
- e[4] !== t || e[5] !== a || e[6] !== i ? (u = () => {
1012
- a || i(t);
1013
- }, e[4] = t, e[5] = a, e[6] = i, e[7] = u) : u = e[7];
1014
- const d = u, f = n === t.path, h = t.path, p = t.name;
1015
- let m;
1016
- e[8] !== t ? (m = Go(t), e[8] = t, e[9] = m) : m = e[9];
1008
+ const c = l, a = !t.isDirectory || c;
1009
+ let d;
1010
+ e[4] !== t || e[5] !== c || e[6] !== i ? (d = () => {
1011
+ c || i(t);
1012
+ }, e[4] = t, e[5] = c, e[6] = i, e[7] = d) : d = e[7];
1013
+ const u = d, f = n === t.path, h = t.path, m = t.name;
1014
+ let p;
1015
+ e[8] !== t ? (p = Mo(t), e[8] = t, e[9] = p) : p = e[9];
1017
1016
  let g;
1018
- e[10] !== m ? (g = /* @__PURE__ */ s(se, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
1019
- let v;
1020
- e[12] !== t.isGitRepo ? (v = t.isGitRepo ? /* @__PURE__ */ s(Ne, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = v) : v = e[13];
1021
- let C;
1022
- return e[14] !== t.name || e[15] !== t.path || e[16] !== d || e[17] !== c || e[18] !== f || e[19] !== g || e[20] !== v ? (C = /* @__PURE__ */ s(nt, { variant: "compact", isSelected: f, id: h, label: p, icon: g, endContent: v, disabled: c, onActivate: d }), e[14] = t.name, e[15] = t.path, e[16] = d, e[17] = c, e[18] = f, e[19] = g, e[20] = v, e[21] = C) : C = e[21], C;
1023
- }, Qo = (o) => {
1017
+ e[10] !== p ? (g = /* @__PURE__ */ s(ce, { as: p, boxSize: "16px" }), e[10] = p, e[11] = g) : g = e[11];
1018
+ let x;
1019
+ e[12] !== t.isGitRepo ? (x = t.isGitRepo ? /* @__PURE__ */ s(Te, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = x) : x = e[13];
1020
+ let b;
1021
+ return e[14] !== t.name || e[15] !== t.path || e[16] !== u || e[17] !== a || e[18] !== f || e[19] !== g || e[20] !== x ? (b = /* @__PURE__ */ s(Qe, { variant: "compact", isSelected: f, id: h, label: m, icon: g, endContent: x, disabled: a, onActivate: u }), e[14] = t.name, e[15] = t.path, e[16] = u, e[17] = a, e[18] = f, e[19] = g, e[20] = x, e[21] = b) : b = e[21], b;
1022
+ }, jo = (o) => {
1024
1023
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key))
1025
1024
  return;
1026
1025
  const e = Array.from(o.currentTarget.querySelectorAll('button[role="option"]:not(:disabled)'));
@@ -1028,111 +1027,111 @@ const nl = (o) => {
1028
1027
  return;
1029
1028
  const t = e.indexOf(document.activeElement), n = o.key === "Home" ? 0 : o.key === "End" ? e.length - 1 : o.key === "ArrowUp" ? t <= 0 ? e.length - 1 : t - 1 : t < 0 || t === e.length - 1 ? 0 : t + 1;
1030
1029
  o.preventDefault(), e[n]?.focus();
1031
- }, ll = (o) => {
1032
- const e = P(68), {
1030
+ }, di = (o) => {
1031
+ const e = $(68), {
1033
1032
  open: t,
1034
1033
  title: n,
1035
1034
  description: r,
1036
1035
  currentPath: i,
1037
1036
  entries: l,
1038
- selectedPath: a,
1039
- selectedPaths: c,
1040
- isLoading: u,
1041
- error: d,
1037
+ selectedPath: c,
1038
+ selectedPaths: a,
1039
+ isLoading: d,
1040
+ error: u,
1042
1041
  isSelectDisabled: f,
1043
1042
  onClose: h,
1044
- onSelect: p,
1045
- onSelectHomeDirectory: m,
1043
+ onSelect: m,
1044
+ onSelectHomeDirectory: p,
1046
1045
  onSelectParentDirectory: g,
1047
- onEntryClick: v
1048
- } = o, C = n === void 0 ? "Select folder" : n, R = i === void 0 ? "" : i, E = a === void 0 ? null : a;
1049
- let O;
1050
- e[0] !== c ? (O = c === void 0 ? [] : c, e[0] = c, e[1] = O) : O = e[1];
1051
- const S = O, k = u === void 0 ? !1 : u, w = d === void 0 ? "" : d, $ = f === void 0 ? !1 : f, [T, A] = ue("");
1046
+ onEntryClick: x
1047
+ } = o, b = n === void 0 ? "Select folder" : n, E = i === void 0 ? "" : i, P = c === void 0 ? null : c;
1048
+ let k;
1049
+ e[0] !== a ? (k = a === void 0 ? [] : a, e[0] = a, e[1] = k) : k = e[1];
1050
+ const v = k, O = d === void 0 ? !1 : d, T = u === void 0 ? "" : u, A = f === void 0 ? !1 : f, [w, y] = fe("");
1052
1051
  let L;
1053
- e[2] !== S ? (L = new Set(S), e[2] = S, e[3] = L) : L = e[3];
1054
- const N = L, D = jo(l, T), I = R || "Home";
1055
- let y, b;
1056
- e[4] !== t || e[5] !== I ? (b = () => {
1057
- !t || !I || A("");
1058
- }, y = [t, I], e[4] = t, e[5] = I, e[6] = y, e[7] = b) : (y = e[6], b = e[7]), he(b, y);
1059
- const _ = X, B = !0, H = !0, M = !1;
1060
- let G;
1061
- e[8] !== h ? (G = (De) => !De.open && h(), e[8] = h, e[9] = G) : G = e[9];
1062
- let z;
1063
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ s(X.Backdrop, {}), e[10] = z) : z = e[10];
1064
- const Y = X, q = X;
1052
+ e[2] !== v ? (L = new Set(v), e[2] = v, e[3] = L) : L = e[3];
1053
+ const z = L, I = Vo(l, w), _ = E || "Home";
1054
+ let R, C;
1055
+ e[4] !== t || e[5] !== _ ? (C = () => {
1056
+ !t || !_ || y("");
1057
+ }, R = [t, _], e[4] = t, e[5] = _, e[6] = R, e[7] = C) : (R = e[6], C = e[7]), ge(C, R);
1058
+ const N = Z, H = !0, q = !0, B = !1;
1059
+ let W;
1060
+ e[8] !== h ? (W = (ze) => !ze.open && h(), e[8] = h, e[9] = W) : W = e[9];
1061
+ let D;
1062
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ s(Z.Backdrop, {}), e[10] = D) : D = e[10];
1063
+ const X = Z, j = Z;
1064
+ let V;
1065
+ e[11] !== b ? (V = /* @__PURE__ */ s(F, { textStyle: "heading/M", children: b }), e[11] = b, e[12] = V) : V = e[12];
1065
1066
  let U;
1066
- e[11] !== C ? (U = /* @__PURE__ */ s(W, { textStyle: "heading/M", children: C }), e[11] = C, e[12] = U) : U = e[12];
1067
- let Q;
1068
- e[13] !== r ? (Q = r ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = Q) : Q = e[14];
1069
- let K;
1070
- e[15] !== U || e[16] !== Q ? (K = /* @__PURE__ */ s(X.Header, { children: /* @__PURE__ */ x(j, { gap: "xs", children: [
1071
- U,
1072
- Q
1073
- ] }) }), e[15] = U, e[16] = Q, e[17] = K) : K = e[17];
1074
- const ae = X, J = j, Z = "md";
1075
- let ee;
1076
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ s(Rn, { size: 16 }), e[18] = ee) : ee = e[18];
1067
+ e[13] !== r ? (U = r ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = U) : U = e[14];
1068
+ let Y;
1069
+ e[15] !== V || e[16] !== U ? (Y = /* @__PURE__ */ s(Z.Header, { children: /* @__PURE__ */ S(Q, { gap: "xs", children: [
1070
+ V,
1071
+ U
1072
+ ] }) }), e[15] = V, e[16] = U, e[17] = Y) : Y = e[17];
1073
+ const se = Z, J = Q, ee = "md";
1074
+ let re;
1075
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ s(An, { size: 16 }), e[18] = re) : re = e[18];
1076
+ let te;
1077
+ e[19] !== p ? (te = /* @__PURE__ */ s(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: p, children: re }), e[19] = p, e[20] = te) : te = e[20];
1078
+ const le = !E || E === "/";
1077
1079
  let ne;
1078
- e[19] !== m ? (ne = /* @__PURE__ */ s(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: ee }), e[19] = m, e[20] = ne) : ne = e[20];
1079
- const te = !R || R === "/";
1080
- let le;
1081
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ s(En, { size: 16 }), e[21] = le) : le = e[21];
1080
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(Rn, { size: 16 }), e[21] = ne) : ne = e[21];
1081
+ let K;
1082
+ e[22] !== g || e[23] !== le ? (K = /* @__PURE__ */ s(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: le, children: ne }), e[22] = g, e[23] = le, e[24] = K) : K = e[24];
1082
1083
  let ie;
1083
- e[22] !== g || e[23] !== te ? (ie = /* @__PURE__ */ s(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: te, children: le }), e[22] = g, e[23] = te, e[24] = ie) : ie = e[24];
1084
- let ce;
1085
- e[25] !== I ? (ce = /* @__PURE__ */ s(W, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: I }), e[25] = I, e[26] = ce) : ce = e[26];
1084
+ e[25] !== _ ? (ie = /* @__PURE__ */ s(F, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: _ }), e[25] = _, e[26] = ie) : ie = e[26];
1086
1085
  let oe;
1087
- e[27] !== ne || e[28] !== ie || e[29] !== ce ? (oe = /* @__PURE__ */ x(j, { direction: "row", gap: "sm", align: "center", children: [
1088
- ne,
1089
- ie,
1090
- ce
1091
- ] }), e[27] = ne, e[28] = ie, e[29] = ce, e[30] = oe) : oe = e[30];
1092
- const be = j, Te = "0", xe = "1px", Se = "md", ve = "border.subtle", Pe = "hidden";
1093
- let F;
1094
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ s(Ut, { size: 14 }), e[31] = F) : F = e[31];
1095
- let me;
1096
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = (De) => A(De.target.value), e[32] = me) : me = e[32];
1097
- let ye;
1098
- e[33] !== T ? (ye = /* @__PURE__ */ s(Vt, { startElement: F, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Mt, { mx: "xs", value: T, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: me }) }), e[33] = T, e[34] = ye) : ye = e[34];
1099
- const Ce = k ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : w ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: w }) : D.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(tt, { maxHeight: "320px", contentProps: {
1086
+ e[27] !== te || e[28] !== K || e[29] !== ie ? (oe = /* @__PURE__ */ S(Q, { direction: "row", gap: "sm", align: "center", children: [
1087
+ te,
1088
+ K,
1089
+ ie
1090
+ ] }), e[27] = te, e[28] = K, e[29] = ie, e[30] = oe) : oe = e[30];
1091
+ const he = Q, Ae = "0", xe = "1px", ve = "md", ye = "border.subtle", Re = "hidden";
1092
+ let M;
1093
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s(Gt, { size: 14 }), e[31] = M) : M = e[31];
1094
+ let be;
1095
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (ze) => y(ze.target.value), e[32] = be) : be = e[32];
1096
+ let Ce;
1097
+ e[33] !== w ? (Ce = /* @__PURE__ */ s(Ht, { startElement: M, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Ft, { mx: "xs", value: w, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = w, e[34] = Ce) : Ce = e[34];
1098
+ const we = O ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : T ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: T }) : I.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(tt, { maxHeight: "320px", contentProps: {
1100
1099
  padding: "sm"
1101
- }, children: /* @__PURE__ */ s(j, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Qo, children: D.map((De) => /* @__PURE__ */ s(Uo, { entry: De, selectedPath: E, selectedPathSet: N, onEntryClick: v }, De.path)) }) });
1102
- let pe;
1103
- e[35] !== be || e[36] !== ye || e[37] !== Ce ? (pe = /* @__PURE__ */ x(be, { gap: Te, borderWidth: xe, borderRadius: Se, borderColor: ve, overflow: Pe, children: [
1104
- ye,
1105
- Ce
1106
- ] }), e[35] = be, e[36] = ye, e[37] = Ce, e[38] = pe) : pe = e[38];
1107
- let Ae;
1108
- e[39] !== J || e[40] !== oe || e[41] !== pe ? (Ae = /* @__PURE__ */ x(J, { gap: Z, children: [
1109
- oe,
1110
- pe
1111
- ] }), e[39] = J, e[40] = oe, e[41] = pe, e[42] = Ae) : Ae = e[42];
1112
- let Re;
1113
- e[43] !== ae.Body || e[44] !== Ae ? (Re = /* @__PURE__ */ s(ae.Body, { children: Ae }), e[43] = ae.Body, e[44] = Ae, e[45] = Re) : Re = e[45];
1100
+ }, children: /* @__PURE__ */ s(Q, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: jo, children: I.map((ze) => /* @__PURE__ */ s(Go, { entry: ze, selectedPath: P, selectedPathSet: z, onEntryClick: x }, ze.path)) }) });
1101
+ let Se;
1102
+ e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ S(he, { gap: Ae, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: Re, children: [
1103
+ Ce,
1104
+ we
1105
+ ] }), e[35] = he, e[36] = Ce, e[37] = we, e[38] = Se) : Se = e[38];
1114
1106
  let Ee;
1115
- e[46] !== h ? (Ee = /* @__PURE__ */ s(de, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Ee) : Ee = e[47];
1107
+ e[39] !== J || e[40] !== oe || e[41] !== Se ? (Ee = /* @__PURE__ */ S(J, { gap: ee, children: [
1108
+ oe,
1109
+ Se
1110
+ ] }), e[39] = J, e[40] = oe, e[41] = Se, e[42] = Ee) : Ee = e[42];
1116
1111
  let ke;
1117
- e[48] !== $ || e[49] !== p ? (ke = /* @__PURE__ */ s(de, { onClick: p, disabled: $, children: "Select repository" }), e[48] = $, e[49] = p, e[50] = ke) : ke = e[50];
1118
- let _e;
1119
- e[51] !== Ee || e[52] !== ke ? (_e = /* @__PURE__ */ s(X.Footer, { children: /* @__PURE__ */ x(j, { direction: "row", gap: "sm", children: [
1120
- Ee,
1121
- ke
1122
- ] }) }), e[51] = Ee, e[52] = ke, e[53] = _e) : _e = e[53];
1112
+ e[43] !== se.Body || e[44] !== Ee ? (ke = /* @__PURE__ */ s(se.Body, { children: Ee }), e[43] = se.Body, e[44] = Ee, e[45] = ke) : ke = e[45];
1123
1113
  let $e;
1124
- e[54] !== q.Content || e[55] !== K || e[56] !== Re || e[57] !== _e ? ($e = /* @__PURE__ */ x(q.Content, { children: [
1125
- K,
1126
- Re,
1127
- _e
1128
- ] }), e[54] = q.Content, e[55] = K, e[56] = Re, e[57] = _e, e[58] = $e) : $e = e[58];
1114
+ e[46] !== h ? ($e = /* @__PURE__ */ s(ue, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = $e) : $e = e[47];
1115
+ let De;
1116
+ e[48] !== A || e[49] !== m ? (De = /* @__PURE__ */ s(ue, { onClick: m, disabled: A, children: "Select repository" }), e[48] = A, e[49] = m, e[50] = De) : De = e[50];
1129
1117
  let Oe;
1130
- e[59] !== Y.Positioner || e[60] !== $e ? (Oe = /* @__PURE__ */ s(Y.Positioner, { children: $e }), e[59] = Y.Positioner, e[60] = $e, e[61] = Oe) : Oe = e[61];
1131
- let Qe;
1132
- return e[62] !== t || e[63] !== _.Root || e[64] !== G || e[65] !== z || e[66] !== Oe ? (Qe = /* @__PURE__ */ x(_.Root, { lazyMount: B, unmountOnExit: H, closeOnInteractOutside: M, open: t, onOpenChange: G, children: [
1133
- z,
1118
+ e[51] !== $e || e[52] !== De ? (Oe = /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ S(Q, { direction: "row", gap: "sm", children: [
1119
+ $e,
1120
+ De
1121
+ ] }) }), e[51] = $e, e[52] = De, e[53] = Oe) : Oe = e[53];
1122
+ let Le;
1123
+ e[54] !== j.Content || e[55] !== Y || e[56] !== ke || e[57] !== Oe ? (Le = /* @__PURE__ */ S(j.Content, { children: [
1124
+ Y,
1125
+ ke,
1134
1126
  Oe
1135
- ] }), e[62] = t, e[63] = _.Root, e[64] = G, e[65] = z, e[66] = Oe, e[67] = Qe) : Qe = e[67], Qe;
1127
+ ] }), e[54] = j.Content, e[55] = Y, e[56] = ke, e[57] = Oe, e[58] = Le) : Le = e[58];
1128
+ let _e;
1129
+ e[59] !== X.Positioner || e[60] !== Le ? (_e = /* @__PURE__ */ s(X.Positioner, { children: Le }), e[59] = X.Positioner, e[60] = Le, e[61] = _e) : _e = e[61];
1130
+ let Xe;
1131
+ return e[62] !== t || e[63] !== N.Root || e[64] !== W || e[65] !== D || e[66] !== _e ? (Xe = /* @__PURE__ */ S(N.Root, { lazyMount: H, unmountOnExit: q, closeOnInteractOutside: B, open: t, onOpenChange: W, children: [
1132
+ D,
1133
+ _e
1134
+ ] }), e[62] = t, e[63] = N.Root, e[64] = W, e[65] = D, e[66] = _e, e[67] = Xe) : Xe = e[67], Xe;
1136
1135
  }, Ze = {
1137
1136
  alignItems: "center",
1138
1137
  display: "inline-flex",
@@ -1152,7 +1151,7 @@ const nl = (o) => {
1152
1151
  _focusVisible: {
1153
1152
  outline: "none"
1154
1153
  }
1155
- }, wt = {
1154
+ }, yt = {
1156
1155
  ...Ze,
1157
1156
  color: "fg",
1158
1157
  cursor: "default",
@@ -1160,36 +1159,36 @@ const nl = (o) => {
1160
1159
  _hover: {
1161
1160
  textDecoration: "none"
1162
1161
  }
1163
- }, Xo = (o) => !!(o.url || o.onClick), qo = (o) => {
1164
- const e = P(14), {
1162
+ }, Uo = (o) => !!(o.url || o.onClick), Qo = (o) => {
1163
+ const e = $(14), {
1165
1164
  item: t,
1166
1165
  isCurrent: n,
1167
1166
  linkComponent: r
1168
1167
  } = o;
1169
- if (n && !Xo(t)) {
1168
+ if (n && !Uo(t)) {
1170
1169
  let l;
1171
- return e[0] !== t.title ? (l = /* @__PURE__ */ s(fe.CurrentLink, { ...wt, children: t.title }), e[0] = t.title, e[1] = l) : l = e[1], l;
1170
+ return e[0] !== t.title ? (l = /* @__PURE__ */ s(me.CurrentLink, { ...yt, children: t.title }), e[0] = t.title, e[1] = l) : l = e[1], l;
1172
1171
  }
1173
1172
  if (t.url && r) {
1174
1173
  let l;
1175
- return e[2] !== r || e[3] !== t.title || e[4] !== t.url ? (l = /* @__PURE__ */ s(fe.Link, { asChild: !0, ...Ze, children: /* @__PURE__ */ s(r, { to: t.url, children: t.title }) }), e[2] = r, e[3] = t.title, e[4] = t.url, e[5] = l) : l = e[5], l;
1174
+ return e[2] !== r || e[3] !== t.title || e[4] !== t.url ? (l = /* @__PURE__ */ s(me.Link, { asChild: !0, ...Ze, children: /* @__PURE__ */ s(r, { to: t.url, children: t.title }) }), e[2] = r, e[3] = t.title, e[4] = t.url, e[5] = l) : l = e[5], l;
1176
1175
  }
1177
1176
  if (t.url) {
1178
1177
  let l;
1179
- return e[6] !== t.title || e[7] !== t.url ? (l = /* @__PURE__ */ s(fe.Link, { href: t.url, ...Ze, children: t.title }), e[6] = t.title, e[7] = t.url, e[8] = l) : l = e[8], l;
1178
+ return e[6] !== t.title || e[7] !== t.url ? (l = /* @__PURE__ */ s(me.Link, { href: t.url, ...Ze, children: t.title }), e[6] = t.title, e[7] = t.url, e[8] = l) : l = e[8], l;
1180
1179
  }
1181
1180
  if (t.onClick) {
1182
1181
  let l;
1183
- return e[9] !== t.onClick || e[10] !== t.title ? (l = /* @__PURE__ */ s(fe.Link, { as: "button", type: "button", onClick: t.onClick, ...Ze, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = l) : l = e[11], l;
1182
+ return e[9] !== t.onClick || e[10] !== t.title ? (l = /* @__PURE__ */ s(me.Link, { as: "button", type: "button", onClick: t.onClick, ...Ze, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = l) : l = e[11], l;
1184
1183
  }
1185
1184
  let i;
1186
- return e[12] !== t.title ? (i = /* @__PURE__ */ s(fe.Link, { as: "span", ...wt, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1187
- }, Yo = (o) => {
1188
- const e = P(6), {
1185
+ return e[12] !== t.title ? (i = /* @__PURE__ */ s(me.Link, { as: "span", ...yt, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1186
+ }, Xo = (o) => {
1187
+ const e = $(6), {
1189
1188
  item: t
1190
1189
  } = o;
1191
1190
  let n;
1192
- e[0] !== o ? (n = /* @__PURE__ */ s(qo, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1191
+ e[0] !== o ? (n = /* @__PURE__ */ s(Qo, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1193
1192
  const r = n;
1194
1193
  if (!t.contextMenuActions?.length)
1195
1194
  return r;
@@ -1198,60 +1197,60 @@ const nl = (o) => {
1198
1197
  placement: "bottom-start"
1199
1198
  }, e[2] = i) : i = e[2];
1200
1199
  let l;
1201
- return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Xt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1202
- }, Ko = (o) => {
1203
- const e = P(3), {
1200
+ return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Qt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1201
+ }, qo = (o) => {
1202
+ const e = $(3), {
1204
1203
  separator: t
1205
1204
  } = o;
1206
1205
  if (t === void 0) {
1207
1206
  let r;
1208
- return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(fe.Separator, { flexShrink: 0 }), e[0] = r) : r = e[0], r;
1207
+ return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(me.Separator, { flexShrink: 0 }), e[0] = r) : r = e[0], r;
1209
1208
  }
1210
1209
  let n;
1211
- return e[1] !== t ? (n = /* @__PURE__ */ s(fe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
1212
- }, sl = gt.forwardRef(function(e, t) {
1213
- const n = P(21);
1214
- let r, i, l, a, c;
1210
+ return e[1] !== t ? (n = /* @__PURE__ */ s(me.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
1211
+ }, ui = mt.forwardRef(function(e, t) {
1212
+ const n = $(21);
1213
+ let r, i, l, c, a;
1215
1214
  n[0] !== e ? ({
1216
- separator: a,
1217
- separatorGap: c,
1215
+ separator: c,
1216
+ separatorGap: a,
1218
1217
  items: i,
1219
1218
  linkComponent: r,
1220
1219
  ...l
1221
- } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = a, n[5] = c) : (r = n[1], i = n[2], l = n[3], a = n[4], c = n[5]);
1222
- let u;
1223
- if (n[6] !== r || n[7] !== i || n[8] !== a) {
1220
+ } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = c, n[5] = a) : (r = n[1], i = n[2], l = n[3], c = n[4], a = n[5]);
1221
+ let d;
1222
+ if (n[6] !== r || n[7] !== i || n[8] !== c) {
1224
1223
  let h;
1225
- n[10] !== r || n[11] !== i.length || n[12] !== a ? (h = (p, m) => {
1226
- const g = m === i.length - 1;
1227
- return /* @__PURE__ */ x(gt.Fragment, { children: [
1228
- /* @__PURE__ */ s(fe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Yo, { item: p, isCurrent: g, linkComponent: r }) }),
1229
- g ? null : /* @__PURE__ */ s(Ko, { separator: a })
1230
- ] }, m);
1231
- }, n[10] = r, n[11] = i.length, n[12] = a, n[13] = h) : h = n[13], u = i.map(h), n[6] = r, n[7] = i, n[8] = a, n[9] = u;
1224
+ n[10] !== r || n[11] !== i.length || n[12] !== c ? (h = (m, p) => {
1225
+ const g = p === i.length - 1;
1226
+ return /* @__PURE__ */ S(mt.Fragment, { children: [
1227
+ /* @__PURE__ */ s(me.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Xo, { item: m, isCurrent: g, linkComponent: r }) }),
1228
+ g ? null : /* @__PURE__ */ s(qo, { separator: c })
1229
+ ] }, p);
1230
+ }, n[10] = r, n[11] = i.length, n[12] = c, n[13] = h) : h = n[13], d = i.map(h), n[6] = r, n[7] = i, n[8] = c, n[9] = d;
1232
1231
  } else
1233
- u = n[9];
1234
- let d;
1235
- n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ s(fe.List, { gap: c, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: u }), n[14] = c, n[15] = u, n[16] = d) : d = n[16];
1232
+ d = n[9];
1233
+ let u;
1234
+ n[14] !== a || n[15] !== d ? (u = /* @__PURE__ */ s(me.List, { gap: a, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: d }), n[14] = a, n[15] = d, n[16] = u) : u = n[16];
1236
1235
  let f;
1237
- return n[17] !== t || n[18] !== l || n[19] !== d ? (f = /* @__PURE__ */ s(fe.Root, { ref: t, ...l, children: d }), n[17] = t, n[18] = l, n[19] = d, n[20] = f) : f = n[20], f;
1238
- }), Zo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, Jo = (o) => {
1239
- const e = P(3);
1236
+ return n[17] !== t || n[18] !== l || n[19] !== u ? (f = /* @__PURE__ */ s(me.Root, { ref: t, ...l, children: u }), n[17] = t, n[18] = l, n[19] = u, n[20] = f) : f = n[20], f;
1237
+ }), Yo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, Ko = (o) => {
1238
+ const e = $(3);
1240
1239
  let t;
1241
1240
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
1242
1241
  backgroundClip: "padding-box",
1243
- backgroundImage: Zo,
1242
+ backgroundImage: Yo,
1244
1243
  display: "flex",
1245
1244
  width: "100%"
1246
1245
  }, e[0] = t) : t = e[0];
1247
1246
  let n;
1248
- return e[1] !== o ? (n = /* @__PURE__ */ s(V, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1249
- }, al = (o) => {
1250
- const e = P(2);
1247
+ return e[1] !== o ? (n = /* @__PURE__ */ s(G, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1248
+ }, fi = (o) => {
1249
+ const e = $(2);
1251
1250
  let t;
1252
- return e[0] !== o ? (t = /* @__PURE__ */ s(V, { p: "2", children: /* @__PURE__ */ s(W, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1251
+ return e[0] !== o ? (t = /* @__PURE__ */ s(G, { p: "2", children: /* @__PURE__ */ s(F, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1253
1252
  };
1254
- class cl extends mn {
1253
+ class hi extends hn {
1255
1254
  state = {
1256
1255
  error: null
1257
1256
  };
@@ -1276,31 +1275,31 @@ class cl extends mn {
1276
1275
  } = this.props, {
1277
1276
  error: r
1278
1277
  } = this.state;
1279
- return r ? t || /* @__PURE__ */ s(er, { error: r, label: n, onReset: this.handleReset }) : e;
1278
+ return r ? t || /* @__PURE__ */ s(Zo, { error: r, label: n, onReset: this.handleReset }) : e;
1280
1279
  }
1281
1280
  }
1282
- const er = (o) => {
1283
- const e = P(12), {
1281
+ const Zo = (o) => {
1282
+ const e = $(12), {
1284
1283
  error: t,
1285
1284
  label: n,
1286
1285
  onReset: r
1287
1286
  } = o, i = n ?? "Something went wrong";
1288
1287
  let l;
1289
- e[0] !== i ? (l = /* @__PURE__ */ s(W, { textStyle: "paragraph/M/medium", children: i }), e[0] = i, e[1] = l) : l = e[1];
1290
- const a = t.message || "An unexpected error occurred while rendering this section.";
1291
- let c;
1292
- e[2] !== a ? (c = /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
1293
- let u;
1294
- e[4] !== r ? (u = r ? /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = u) : u = e[5];
1288
+ e[0] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "paragraph/M/medium", children: i }), e[0] = i, e[1] = l) : l = e[1];
1289
+ const c = t.message || "An unexpected error occurred while rendering this section.";
1290
+ let a;
1291
+ e[2] !== c ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: c }), e[2] = c, e[3] = a) : a = e[3];
1295
1292
  let d;
1296
- e[6] !== c || e[7] !== u ? (d = /* @__PURE__ */ x(j, { gap: "sm", children: [
1297
- c,
1298
- u
1299
- ] }), e[6] = c, e[7] = u, e[8] = d) : d = e[8];
1293
+ e[4] !== r ? (d = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
1294
+ let u;
1295
+ e[6] !== a || e[7] !== d ? (u = /* @__PURE__ */ S(Q, { gap: "sm", children: [
1296
+ a,
1297
+ d
1298
+ ] }), e[6] = a, e[7] = d, e[8] = u) : u = e[8];
1300
1299
  let f;
1301
- return e[9] !== l || e[10] !== d ? (f = /* @__PURE__ */ s(Jo, { height: "100%", width: "100%", children: /* @__PURE__ */ s(sn, { children: /* @__PURE__ */ s(ft, { status: "error", title: l, children: d }) }) }), e[9] = l, e[10] = d, e[11] = f) : f = e[11], f;
1302
- }, tr = (o) => !!o && o !== "circle", nr = (o) => {
1303
- const e = P(18);
1300
+ return e[9] !== l || e[10] !== u ? (f = /* @__PURE__ */ s(Ko, { height: "100%", width: "100%", children: /* @__PURE__ */ s(ln, { children: /* @__PURE__ */ s(dt, { status: "error", title: l, children: u }) }) }), e[9] = l, e[10] = u, e[11] = f) : f = e[11], f;
1301
+ }, Jo = (o) => !!o && o !== "circle", er = (o) => {
1302
+ const e = $(18);
1304
1303
  let t, n, r, i, l;
1305
1304
  e[0] !== o ? ({
1306
1305
  color: t,
@@ -1309,15 +1308,15 @@ const er = (o) => {
1309
1308
  showIcon: l,
1310
1309
  ...i
1311
1310
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
1312
- const a = l === void 0 ? !0 : l;
1313
- let c;
1314
- e[6] !== n || e[7] !== r ? (c = Nn(n, r), e[6] = n, e[7] = r, e[8] = c) : c = e[8];
1315
- const u = c, d = `${t}.500/15`;
1311
+ const c = l === void 0 ? !0 : l;
1312
+ let a;
1313
+ e[6] !== n || e[7] !== r ? (a = _n(n, r), e[6] = n, e[7] = r, e[8] = a) : a = e[8];
1314
+ const d = a, u = `${t}.500/15`;
1316
1315
  let f;
1317
- e[9] !== u || e[10] !== t || e[11] !== n || e[12] !== a ? (f = a && tr(n) ? /* @__PURE__ */ s(se, { as: u, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(V, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = u, e[10] = t, e[11] = n, e[12] = a, e[13] = f) : f = e[13];
1316
+ e[9] !== d || e[10] !== t || e[11] !== n || e[12] !== c ? (f = c && Jo(n) ? /* @__PURE__ */ s(ce, { as: d, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(G, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = d, e[10] = t, e[11] = n, e[12] = c, e[13] = f) : f = e[13];
1318
1317
  let h;
1319
- return e[14] !== i || e[15] !== d || e[16] !== f ? (h = /* @__PURE__ */ s(an, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: d, ...i, children: f }), e[14] = i, e[15] = d, e[16] = f, e[17] = h) : h = e[17], h;
1320
- }, or = Ie("button", {
1318
+ return e[14] !== i || e[15] !== u || e[16] !== f ? (h = /* @__PURE__ */ s(sn, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: u, ...i, children: f }), e[14] = i, e[15] = u, e[16] = f, e[17] = h) : h = e[17], h;
1319
+ }, tr = Pe("button", {
1321
1320
  base: {
1322
1321
  display: "inline-flex",
1323
1322
  borderRadius: "compact",
@@ -1328,7 +1327,7 @@ const er = (o) => {
1328
1327
  opacity: 0.5
1329
1328
  }
1330
1329
  }
1331
- }), rr = Ie("button", {
1330
+ }), nr = Pe("button", {
1332
1331
  base: {
1333
1332
  boxSize: "tag-color-dot",
1334
1333
  borderRadius: "full",
@@ -1341,7 +1340,7 @@ const er = (o) => {
1341
1340
  outlineColor: "fg"
1342
1341
  }
1343
1342
  }
1344
- }), ir = Ie("button", {
1343
+ }), or = Pe("button", {
1345
1344
  base: {
1346
1345
  display: "inline-flex",
1347
1346
  alignItems: "center",
@@ -1354,135 +1353,135 @@ const er = (o) => {
1354
1353
  bg: "bg.hover"
1355
1354
  }
1356
1355
  }
1357
- }), lr = (o) => {
1358
- const e = P(39), {
1356
+ }), rr = (o) => {
1357
+ const e = $(39), {
1359
1358
  color: t,
1360
1359
  colorOptions: n,
1361
1360
  icon: r,
1362
1361
  iconOptions: i,
1363
1362
  onColorChange: l,
1364
- onIconChange: a,
1365
- disabled: c,
1366
- showIcons: u,
1367
- colorLabel: d,
1363
+ onIconChange: c,
1364
+ disabled: a,
1365
+ showIcons: d,
1366
+ colorLabel: u,
1368
1367
  iconLabel: f,
1369
1368
  "aria-label": h
1370
- } = o, p = n === void 0 ? Wn : n, m = i === void 0 ? Bn : i, g = u === void 0 ? !0 : u, v = d === void 0 ? "Color" : d, C = f === void 0 ? "Icon" : f, R = h === void 0 ? "Pick color and icon" : h, E = r === "circle" ? null : r ?? null;
1371
- let O;
1372
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
1373
- placement: "bottom-start"
1374
- }, e[0] = O) : O = e[0];
1375
- let S;
1376
- e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (S = /* @__PURE__ */ s(nr, { color: t, icon: r, iconOptions: m, showIcon: g }), e[1] = t, e[2] = r, e[3] = m, e[4] = g, e[5] = S) : S = e[5];
1369
+ } = o, m = n === void 0 ? Nn : n, p = i === void 0 ? zn : i, g = d === void 0 ? !0 : d, x = u === void 0 ? "Color" : u, b = f === void 0 ? "Icon" : f, E = h === void 0 ? "Pick color and icon" : h, P = r === "circle" ? null : r ?? null;
1377
1370
  let k;
1378
- e[6] !== R || e[7] !== c || e[8] !== S ? (k = /* @__PURE__ */ s(qe.Trigger, { asChild: !0, children: /* @__PURE__ */ s(or, { type: "button", disabled: c, "aria-label": R, children: S }) }), e[6] = R, e[7] = c, e[8] = S, e[9] = k) : k = e[9];
1379
- const w = g ? "tag-picker" : "tag-picker-color-only";
1380
- let $;
1381
- e[10] !== v ? ($ = /* @__PURE__ */ s(W, { textStyle: "label/S/medium", color: "fg.muted", children: v }), e[10] = v, e[11] = $) : $ = e[11];
1382
- const T = `repeat(${g ? 10 : 5}, 1fr)`;
1371
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
1372
+ placement: "bottom-start"
1373
+ }, e[0] = k) : k = e[0];
1374
+ let v;
1375
+ e[1] !== t || e[2] !== r || e[3] !== p || e[4] !== g ? (v = /* @__PURE__ */ s(er, { color: t, icon: r, iconOptions: p, showIcon: g }), e[1] = t, e[2] = r, e[3] = p, e[4] = g, e[5] = v) : v = e[5];
1376
+ let O;
1377
+ e[6] !== E || e[7] !== a || e[8] !== v ? (O = /* @__PURE__ */ s(Ye.Trigger, { asChild: !0, children: /* @__PURE__ */ s(tr, { type: "button", disabled: a, "aria-label": E, children: v }) }), e[6] = E, e[7] = a, e[8] = v, e[9] = O) : O = e[9];
1378
+ const T = g ? "tag-picker" : "tag-picker-color-only";
1383
1379
  let A;
1384
- if (e[12] !== t || e[13] !== p || e[14] !== l) {
1385
- let b;
1386
- e[16] !== t || e[17] !== l ? (b = (_) => /* @__PURE__ */ s(rr, { type: "button", bg: `${_}.500`, "aria-label": _, "aria-pressed": _ === t, "data-selected": _ === t ? "" : void 0, onClick: () => l(_) }, _), e[16] = t, e[17] = l, e[18] = b) : b = e[18], A = p.map(b), e[12] = t, e[13] = p, e[14] = l, e[15] = A;
1380
+ e[10] !== x ? (A = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: x }), e[10] = x, e[11] = A) : A = e[11];
1381
+ const w = `repeat(${g ? 10 : 5}, 1fr)`;
1382
+ let y;
1383
+ if (e[12] !== t || e[13] !== m || e[14] !== l) {
1384
+ let C;
1385
+ e[16] !== t || e[17] !== l ? (C = (N) => /* @__PURE__ */ s(nr, { type: "button", bg: `${N}.500`, "aria-label": N, "aria-pressed": N === t, "data-selected": N === t ? "" : void 0, onClick: () => l(N) }, N), e[16] = t, e[17] = l, e[18] = C) : C = e[18], y = m.map(C), e[12] = t, e[13] = m, e[14] = l, e[15] = y;
1387
1386
  } else
1388
- A = e[15];
1387
+ y = e[15];
1389
1388
  let L;
1390
- e[19] !== T || e[20] !== A ? (L = /* @__PURE__ */ s(pt, { templateColumns: T, gap: "2xs", justifyItems: "center", children: A }), e[19] = T, e[20] = A, e[21] = L) : L = e[21];
1391
- let N;
1392
- e[22] !== t || e[23] !== C || e[24] !== m || e[25] !== a || e[26] !== E || e[27] !== g ? (N = g ? /* @__PURE__ */ x(Fe, { children: [
1393
- /* @__PURE__ */ s(V, { borderTop: "subtle" }),
1394
- /* @__PURE__ */ s(W, { textStyle: "label/S/medium", color: "fg.muted", children: C }),
1395
- /* @__PURE__ */ s(pt, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((b) => {
1396
- const _ = b.value === E;
1397
- return /* @__PURE__ */ s(ir, { type: "button", color: _ ? `${t}.500` : void 0, bg: _ ? `${t}.500/15` : void 0, _hover: _ ? {
1389
+ e[19] !== w || e[20] !== y ? (L = /* @__PURE__ */ s(ht, { templateColumns: w, gap: "2xs", justifyItems: "center", children: y }), e[19] = w, e[20] = y, e[21] = L) : L = e[21];
1390
+ let z;
1391
+ e[22] !== t || e[23] !== b || e[24] !== p || e[25] !== c || e[26] !== P || e[27] !== g ? (z = g ? /* @__PURE__ */ S(He, { children: [
1392
+ /* @__PURE__ */ s(G, { borderTop: "subtle" }),
1393
+ /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: b }),
1394
+ /* @__PURE__ */ s(ht, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: p.map((C) => {
1395
+ const N = C.value === P;
1396
+ return /* @__PURE__ */ s(or, { type: "button", color: N ? `${t}.500` : void 0, bg: N ? `${t}.500/15` : void 0, _hover: N ? {
1398
1397
  bg: `${t}.500/15`
1399
- } : void 0, "aria-label": b.label, "aria-pressed": _, onClick: () => a?.(b.value), children: /* @__PURE__ */ s(se, { as: b.icon, boxSize: "icon-xs" }) }, b.value ?? "none");
1398
+ } : void 0, "aria-label": C.label, "aria-pressed": N, onClick: () => c?.(C.value), children: /* @__PURE__ */ s(ce, { as: C.icon, boxSize: "icon-xs" }) }, C.value ?? "none");
1400
1399
  }) })
1401
- ] }) : null, e[22] = t, e[23] = C, e[24] = m, e[25] = a, e[26] = E, e[27] = g, e[28] = N) : N = e[28];
1402
- let D;
1403
- e[29] !== $ || e[30] !== L || e[31] !== N ? (D = /* @__PURE__ */ x(j, { gap: "compact", p: "sm", children: [
1404
- $,
1405
- L,
1406
- N
1407
- ] }), e[29] = $, e[30] = L, e[31] = N, e[32] = D) : D = e[32];
1400
+ ] }) : null, e[22] = t, e[23] = b, e[24] = p, e[25] = c, e[26] = P, e[27] = g, e[28] = z) : z = e[28];
1408
1401
  let I;
1409
- e[33] !== D || e[34] !== w ? (I = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(qe.Positioner, { children: /* @__PURE__ */ s(qe.Content, { width: w, bg: "bg.elevated", children: D }) }) }), e[33] = D, e[34] = w, e[35] = I) : I = e[35];
1410
- let y;
1411
- return e[36] !== I || e[37] !== k ? (y = /* @__PURE__ */ x(qe.Root, { positioning: O, children: [
1412
- k,
1413
- I
1414
- ] }), e[36] = I, e[37] = k, e[38] = y) : y = e[38], y;
1415
- }, sr = (o) => {
1416
- const e = P(6);
1402
+ e[29] !== A || e[30] !== L || e[31] !== z ? (I = /* @__PURE__ */ S(Q, { gap: "compact", p: "sm", children: [
1403
+ A,
1404
+ L,
1405
+ z
1406
+ ] }), e[29] = A, e[30] = L, e[31] = z, e[32] = I) : I = e[32];
1407
+ let _;
1408
+ e[33] !== I || e[34] !== T ? (_ = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Ye.Positioner, { children: /* @__PURE__ */ s(Ye.Content, { width: T, bg: "bg.elevated", children: I }) }) }), e[33] = I, e[34] = T, e[35] = _) : _ = e[35];
1409
+ let R;
1410
+ return e[36] !== _ || e[37] !== O ? (R = /* @__PURE__ */ S(Ye.Root, { positioning: k, children: [
1411
+ O,
1412
+ _
1413
+ ] }), e[36] = _, e[37] = O, e[38] = R) : R = e[38], R;
1414
+ }, lr = (o) => {
1415
+ const e = $(6);
1417
1416
  let t, n;
1418
1417
  e[0] !== o ? ({
1419
1418
  children: t,
1420
1419
  ...n
1421
1420
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1422
1421
  let r;
1423
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(V, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1424
- }, ar = (o) => {
1425
- const e = P(6);
1422
+ return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1423
+ }, ir = (o) => {
1424
+ const e = $(6);
1426
1425
  let t, n;
1427
1426
  e[0] !== o ? ({
1428
1427
  children: t,
1429
1428
  ...n
1430
1429
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1431
1430
  let r;
1432
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(V, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1433
- }, dl = (o) => {
1434
- const e = P(30), {
1431
+ return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1432
+ }, mi = (o) => {
1433
+ const e = $(30), {
1435
1434
  icon: t,
1436
1435
  name: n,
1437
1436
  description: r,
1438
1437
  id: i,
1439
1438
  version: l,
1440
- category: a,
1441
- active: c,
1442
- actionLabel: u
1443
- } = o, d = c === void 0 ? !1 : c;
1439
+ category: c,
1440
+ active: a,
1441
+ actionLabel: d
1442
+ } = o, u = a === void 0 ? !1 : a;
1444
1443
  let f;
1445
- e[0] !== t ? (f = /* @__PURE__ */ s(se, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = f) : f = e[1];
1444
+ e[0] !== t ? (f = /* @__PURE__ */ s(ce, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = f) : f = e[1];
1446
1445
  let h;
1447
- e[2] !== n ? (h = /* @__PURE__ */ s(W, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1448
- let p;
1449
- e[4] !== i ? (p = /* @__PURE__ */ s(Ne, { size: "sm", variant: "outline", children: i }), e[4] = i, e[5] = p) : p = e[5];
1446
+ e[2] !== n ? (h = /* @__PURE__ */ s(F, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1450
1447
  let m;
1451
- e[6] !== l ? (m = l && /* @__PURE__ */ x(Ne, { size: "sm", variant: "outline", children: [
1448
+ e[4] !== i ? (m = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: i }), e[4] = i, e[5] = m) : m = e[5];
1449
+ let p;
1450
+ e[6] !== l ? (p = l && /* @__PURE__ */ S(Te, { size: "sm", variant: "outline", children: [
1452
1451
  "v",
1453
1452
  l
1454
- ] }), e[6] = l, e[7] = m) : m = e[7];
1453
+ ] }), e[6] = l, e[7] = p) : p = e[7];
1455
1454
  let g;
1456
- e[8] !== a ? (g = a && /* @__PURE__ */ s(Ne, { size: "sm", variant: "outline", children: a }), e[8] = a, e[9] = g) : g = e[9];
1457
- let v;
1458
- e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (v = /* @__PURE__ */ x(re, { gap: "2", flexWrap: "wrap", children: [
1455
+ e[8] !== c ? (g = c && /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: c }), e[8] = c, e[9] = g) : g = e[9];
1456
+ let x;
1457
+ e[10] !== h || e[11] !== m || e[12] !== p || e[13] !== g ? (x = /* @__PURE__ */ S(ae, { gap: "2", flexWrap: "wrap", children: [
1459
1458
  h,
1460
- p,
1461
1459
  m,
1460
+ p,
1462
1461
  g
1463
- ] }), e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = v) : v = e[14];
1464
- let C;
1465
- e[15] !== r ? (C = /* @__PURE__ */ s(W, { color: "fg.muted", children: r }), e[15] = r, e[16] = C) : C = e[16];
1466
- let R;
1467
- e[17] !== v || e[18] !== C ? (R = /* @__PURE__ */ s(V, { flex: "1", minW: "0", children: /* @__PURE__ */ x(j, { gap: "1", children: [
1468
- v,
1469
- C
1470
- ] }) }), e[17] = v, e[18] = C, e[19] = R) : R = e[19];
1462
+ ] }), e[10] = h, e[11] = m, e[12] = p, e[13] = g, e[14] = x) : x = e[14];
1463
+ let b;
1464
+ e[15] !== r ? (b = /* @__PURE__ */ s(F, { color: "fg.muted", children: r }), e[15] = r, e[16] = b) : b = e[16];
1471
1465
  let E;
1472
- e[20] !== d ? (E = d && /* @__PURE__ */ s(se, { color: "fg.success", children: /* @__PURE__ */ s(et, {}) }), e[20] = d, e[21] = E) : E = e[21];
1473
- const O = u ?? (d ? "Active" : "Connect");
1474
- let S;
1475
- e[22] !== d || e[23] !== O || e[24] !== E ? (S = /* @__PURE__ */ x(de, { type: "button", disabled: d, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1476
- E,
1477
- O
1478
- ] }), e[22] = d, e[23] = O, e[24] = E, e[25] = S) : S = e[25];
1479
- let k;
1480
- return e[26] !== f || e[27] !== S || e[28] !== R ? (k = /* @__PURE__ */ s(sr, { children: /* @__PURE__ */ s(ar, { children: /* @__PURE__ */ x(re, { gap: "4", alignItems: "flex-start", children: [
1466
+ e[17] !== x || e[18] !== b ? (E = /* @__PURE__ */ s(G, { flex: "1", minW: "0", children: /* @__PURE__ */ S(Q, { gap: "1", children: [
1467
+ x,
1468
+ b
1469
+ ] }) }), e[17] = x, e[18] = b, e[19] = E) : E = e[19];
1470
+ let P;
1471
+ e[20] !== u ? (P = u && /* @__PURE__ */ s(ce, { color: "fg.success", children: /* @__PURE__ */ s(et, {}) }), e[20] = u, e[21] = P) : P = e[21];
1472
+ const k = d ?? (u ? "Active" : "Connect");
1473
+ let v;
1474
+ e[22] !== u || e[23] !== k || e[24] !== P ? (v = /* @__PURE__ */ S(ue, { type: "button", disabled: u, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1475
+ P,
1476
+ k
1477
+ ] }), e[22] = u, e[23] = k, e[24] = P, e[25] = v) : v = e[25];
1478
+ let O;
1479
+ return e[26] !== f || e[27] !== v || e[28] !== E ? (O = /* @__PURE__ */ s(lr, { children: /* @__PURE__ */ s(ir, { children: /* @__PURE__ */ S(ae, { gap: "4", alignItems: "flex-start", children: [
1481
1480
  f,
1482
- R,
1483
- S
1484
- ] }) }) }), e[26] = f, e[27] = S, e[28] = R, e[29] = k) : k = e[29], k;
1485
- }, cr = cn({
1481
+ E,
1482
+ v
1483
+ ] }) }) }), e[26] = f, e[27] = v, e[28] = E, e[29] = O) : O = e[29], O;
1484
+ }, sr = an({
1486
1485
  className: "ps-segmented-control",
1487
1486
  slots: ["root", "item"],
1488
1487
  base: {
@@ -1551,86 +1550,86 @@ const er = (o) => {
1551
1550
  size: "sm"
1552
1551
  }
1553
1552
  }), {
1554
- withProvider: dr,
1555
- withContext: ur
1556
- } = dn({
1557
- recipe: cr
1558
- }), fr = dr("div", "root"), hr = ur("button", "item"), ul = (o) => {
1559
- const e = P(20);
1560
- let t, n, r, i, l, a;
1553
+ withProvider: ar,
1554
+ withContext: cr
1555
+ } = cn({
1556
+ recipe: sr
1557
+ }), dr = ar("div", "root"), ur = cr("button", "item"), pi = (o) => {
1558
+ const e = $(20);
1559
+ let t, n, r, i, l, c;
1561
1560
  e[0] !== o ? ({
1562
1561
  options: i,
1563
- value: a,
1562
+ value: c,
1564
1563
  onValueChange: r,
1565
1564
  disabled: n,
1566
1565
  "aria-label": t,
1567
1566
  ...l
1568
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6]);
1569
- let c;
1570
- if (e[7] !== n || e[8] !== r || e[9] !== i || e[10] !== a) {
1571
- let d;
1572
- e[12] !== n || e[13] !== r || e[14] !== a ? (d = (f) => {
1573
- const h = f.value === a;
1574
- return /* @__PURE__ */ s(hr, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1575
- }, e[12] = n, e[13] = r, e[14] = a, e[15] = d) : d = e[15], c = i.map(d), e[7] = n, e[8] = r, e[9] = i, e[10] = a, e[11] = c;
1567
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
1568
+ let a;
1569
+ if (e[7] !== n || e[8] !== r || e[9] !== i || e[10] !== c) {
1570
+ let u;
1571
+ e[12] !== n || e[13] !== r || e[14] !== c ? (u = (f) => {
1572
+ const h = f.value === c;
1573
+ return /* @__PURE__ */ s(ur, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1574
+ }, e[12] = n, e[13] = r, e[14] = c, e[15] = u) : u = e[15], a = i.map(u), e[7] = n, e[8] = r, e[9] = i, e[10] = c, e[11] = a;
1576
1575
  } else
1577
- c = e[11];
1578
- let u;
1579
- return e[16] !== t || e[17] !== l || e[18] !== c ? (u = /* @__PURE__ */ s(fr, { role: "group", "aria-label": t, ...l, children: c }), e[16] = t, e[17] = l, e[18] = c, e[19] = u) : u = e[19], u;
1580
- }, mr = un({
1576
+ a = e[11];
1577
+ let d;
1578
+ return e[16] !== t || e[17] !== l || e[18] !== a ? (d = /* @__PURE__ */ s(dr, { role: "group", "aria-label": t, ...l, children: a }), e[16] = t, e[17] = l, e[18] = a, e[19] = d) : d = e[19], d;
1579
+ }, fr = dn({
1581
1580
  placement: "top",
1582
1581
  pauseOnPageIdle: !0,
1583
1582
  duration: 1e4
1584
- }), fl = () => {
1585
- const o = P(1);
1583
+ }), gi = () => {
1584
+ const o = $(1);
1586
1585
  let e;
1587
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(fn, { toaster: mr, insetInline: {
1586
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(un, { toaster: fr, insetInline: {
1588
1587
  mdDown: "4"
1589
- }, children: pr }) }), o[0] = e) : e = o[0], e;
1588
+ }, children: hr }) }), o[0] = e) : e = o[0], e;
1590
1589
  };
1591
- function pr(o) {
1592
- return /* @__PURE__ */ x(Le.Root, { width: {
1590
+ function hr(o) {
1591
+ return /* @__PURE__ */ S(Ne.Root, { width: {
1593
1592
  md: "sm"
1594
1593
  }, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
1595
- o.type === "loading" ? /* @__PURE__ */ s(Gt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Le.Indicator, {}),
1596
- /* @__PURE__ */ x(j, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1597
- o.title && /* @__PURE__ */ s(Le.Title, { textStyle: "label/S/medium", children: o.title }),
1594
+ o.type === "loading" ? /* @__PURE__ */ s(Mt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Ne.Indicator, {}),
1595
+ /* @__PURE__ */ S(Q, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1596
+ o.title && /* @__PURE__ */ s(Ne.Title, { textStyle: "label/S/medium", children: o.title }),
1598
1597
  o.description && /* @__PURE__ */ s(tt, { maxHeight: "12rem", contentProps: {
1599
1598
  paddingEnd: "1"
1600
- }, children: /* @__PURE__ */ s(Le.Description, { textStyle: "paragraph/S/regular", whiteSpace: "pre-wrap", wordBreak: "break-word", children: o.description }) })
1599
+ }, children: /* @__PURE__ */ s(Ne.Description, { textStyle: "paragraph/S/regular", whiteSpace: "pre-wrap", wordBreak: "break-word", children: o.description }) })
1601
1600
  ] }),
1602
- o.action && /* @__PURE__ */ s(Le.ActionTrigger, { children: o.action.label }),
1603
- /* @__PURE__ */ s(Le.CloseTrigger, {})
1601
+ o.action && /* @__PURE__ */ s(Ne.ActionTrigger, { children: o.action.label }),
1602
+ /* @__PURE__ */ s(Ne.CloseTrigger, {})
1604
1603
  ] });
1605
1604
  }
1606
- const hl = (o) => {
1607
- const e = P(6);
1605
+ const bi = (o) => {
1606
+ const e = $(6);
1608
1607
  let t, n;
1609
1608
  e[0] !== o ? ({
1610
1609
  children: t,
1611
1610
  ...n
1612
1611
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1613
1612
  let r;
1614
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(j, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1615
- }, It = {
1613
+ return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1614
+ }, Ct = {
1616
1615
  open: !0,
1617
1616
  expandedSections: [],
1618
1617
  expandedNodes: [],
1619
1618
  width: null
1620
- }, gr = "pstdio/ui/sidenav", br = (o) => `${gr}/${o}`, Tt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], Pt = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), xr = (o) => ({
1619
+ }, mr = "pstdio/ui/sidenav", pr = (o) => `${mr}/${o}`, wt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], It = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), gr = (o) => ({
1621
1620
  open: o.open,
1622
1621
  expandedSections: o.expandedSections,
1623
1622
  expandedNodes: o.expandedNodes,
1624
1623
  width: o.width
1625
- }), Sr = (o) => {
1624
+ }), br = (o) => {
1626
1625
  const {
1627
1626
  storageKey: e,
1628
1627
  initialState: t
1629
1628
  } = o, n = {
1630
- ...It,
1629
+ ...Ct,
1631
1630
  ...t
1632
1631
  };
1633
- return lt()(rt((r) => ({
1632
+ return lt()(ot((r) => ({
1634
1633
  ...n,
1635
1634
  openSidenav: () => r((i) => ({
1636
1635
  ...i,
@@ -1646,121 +1645,121 @@ const hl = (o) => {
1646
1645
  })),
1647
1646
  toggleSection: (i) => r((l) => ({
1648
1647
  ...l,
1649
- expandedSections: Tt(l.expandedSections, i)
1648
+ expandedSections: wt(l.expandedSections, i)
1650
1649
  })),
1651
1650
  toggleNode: (i) => r((l) => ({
1652
1651
  ...l,
1653
- expandedNodes: Tt(l.expandedNodes, i)
1652
+ expandedNodes: wt(l.expandedNodes, i)
1654
1653
  })),
1655
- setSectionExpanded: (i, l) => r((a) => ({
1656
- ...a,
1657
- expandedSections: Pt(a.expandedSections, i, l)
1654
+ setSectionExpanded: (i, l) => r((c) => ({
1655
+ ...c,
1656
+ expandedSections: It(c.expandedSections, i, l)
1658
1657
  })),
1659
- setNodeExpanded: (i, l) => r((a) => ({
1660
- ...a,
1661
- expandedNodes: Pt(a.expandedNodes, i, l)
1658
+ setNodeExpanded: (i, l) => r((c) => ({
1659
+ ...c,
1660
+ expandedNodes: It(c.expandedNodes, i, l)
1662
1661
  })),
1663
1662
  setWidth: (i) => r((l) => ({
1664
1663
  ...l,
1665
1664
  width: i
1666
1665
  })),
1667
- reset: () => r(It)
1666
+ reset: () => r(Ct)
1668
1667
  }), {
1669
- name: br(e),
1670
- storage: it(He),
1671
- partialize: xr
1668
+ name: pr(e),
1669
+ storage: rt(Me),
1670
+ partialize: gr
1672
1671
  }));
1673
- }, At = /* @__PURE__ */ new Map(), vr = (o, e) => {
1674
- const t = At.get(o);
1672
+ }, Tt = /* @__PURE__ */ new Map(), Sr = (o, e) => {
1673
+ const t = Tt.get(o);
1675
1674
  if (t)
1676
1675
  return t;
1677
- const n = Sr({
1676
+ const n = br({
1678
1677
  storageKey: o,
1679
1678
  initialState: e
1680
1679
  });
1681
- return At.set(o, n), n;
1682
- }, ze = (o, e, t) => {
1683
- const n = P(3);
1680
+ return Tt.set(o, n), n;
1681
+ }, Be = (o, e, t) => {
1682
+ const n = $(3);
1684
1683
  let r;
1685
- return n[0] !== t || n[1] !== o ? (r = vr(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], ot(r, e);
1686
- }, yr = (o) => {
1687
- const e = P(2), {
1684
+ return n[0] !== t || n[1] !== o ? (r = Sr(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], nt(r, e);
1685
+ }, xr = (o) => {
1686
+ const e = $(2), {
1688
1687
  children: t
1689
1688
  } = o;
1690
1689
  if (!t)
1691
1690
  return null;
1692
1691
  let n;
1693
- return e[0] !== t ? (n = /* @__PURE__ */ s(V, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1694
- }, Cr = (o) => {
1695
- const e = P(2), {
1692
+ return e[0] !== t ? (n = /* @__PURE__ */ s(G, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1693
+ }, vr = (o) => {
1694
+ const e = $(2), {
1696
1695
  children: t
1697
1696
  } = o;
1698
1697
  let n;
1699
- return e[0] !== t ? (n = /* @__PURE__ */ s(re, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: ko, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(re, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
1700
- }, wr = 240, Ir = 200, Tr = 480, Pr = (o, e, t) => Math.min(Math.max(o, e), t), Ar = (o, e = wr) => {
1698
+ return e[0] !== t ? (n = /* @__PURE__ */ s(ae, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: Ro, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(ae, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
1699
+ }, yr = 240, Cr = 200, wr = 480, Ir = (o, e, t) => Math.min(Math.max(o, e), t), Tr = (o, e = yr) => {
1701
1700
  if (typeof o == "number") return o;
1702
1701
  if (typeof o == "string") {
1703
1702
  const t = parseInt(o, 10);
1704
1703
  if (!Number.isNaN(t)) return t;
1705
1704
  }
1706
1705
  return e;
1707
- }, ml = (o) => {
1708
- const e = P(43), {
1706
+ }, Si = (o) => {
1707
+ const e = $(43), {
1709
1708
  storageKey: t,
1710
1709
  sections: n,
1711
1710
  activeNodeId: r,
1712
1711
  contextActions: i,
1713
1712
  header: l,
1714
- footer: a,
1715
- width: c,
1716
- closable: u,
1717
- emptyLabel: d,
1713
+ footer: c,
1714
+ width: a,
1715
+ closable: d,
1716
+ emptyLabel: u,
1718
1717
  defaultExpandedSections: f,
1719
1718
  linkComponent: h,
1720
- onNavigate: p,
1721
- onOpenChange: m,
1719
+ onNavigate: m,
1720
+ onOpenChange: p,
1722
1721
  resizable: g,
1723
- defaultWidth: v,
1724
- minWidth: C,
1725
- maxWidth: R,
1726
- virtualize: E
1722
+ defaultWidth: x,
1723
+ minWidth: b,
1724
+ maxWidth: E,
1725
+ virtualize: P
1727
1726
  } = o;
1728
- let O;
1729
- e[0] !== i ? (O = i === void 0 ? [] : i, e[0] = i, e[1] = O) : O = e[1];
1730
- const S = O, k = u === void 0 ? !0 : u, w = d === void 0 ? "No items available." : d, $ = g === void 0 ? !0 : g, T = C === void 0 ? Ir : C, A = R === void 0 ? Tr : R, L = E === void 0 ? !1 : E, N = je(null);
1731
- let D;
1732
- e[2] !== v || e[3] !== c ? (D = Ar(c, v), e[2] = v, e[3] = c, e[4] = D) : D = e[4];
1733
- const I = D;
1734
- let y;
1735
- e[5] !== f ? (y = f ? {
1727
+ let k;
1728
+ e[0] !== i ? (k = i === void 0 ? [] : i, e[0] = i, e[1] = k) : k = e[1];
1729
+ const v = k, O = d === void 0 ? !0 : d, T = u === void 0 ? "No items available." : u, A = g === void 0 ? !0 : g, w = b === void 0 ? Cr : b, y = E === void 0 ? wr : E, L = P === void 0 ? !1 : P, z = je(null);
1730
+ let I;
1731
+ e[2] !== x || e[3] !== a ? (I = Tr(a, x), e[2] = x, e[3] = a, e[4] = I) : I = e[4];
1732
+ const _ = I;
1733
+ let R;
1734
+ e[5] !== f ? (R = f ? {
1736
1735
  expandedSections: f
1737
- } : {}, e[5] = f, e[6] = y) : y = e[6];
1738
- let b;
1739
- e[7] !== I || e[8] !== y ? (b = {
1740
- ...y,
1741
- width: I
1742
- }, e[7] = I, e[8] = y, e[9] = b) : b = e[9];
1743
- const _ = b, B = ze(t, Rr, _), H = ze(t, Er, _), M = ze(t, kr, _), G = ze(t, _r, _), z = ze(t, $r, _), Y = ze(t, Or, _);
1744
- let q, U;
1745
- e[10] !== m || e[11] !== B ? (q = () => {
1746
- m?.(B);
1747
- }, U = [m, B], e[10] = m, e[11] = B, e[12] = q, e[13] = U) : (q = e[12], U = e[13]), he(q, U);
1748
- const Q = H ?? I;
1749
- let K;
1750
- e[14] !== A || e[15] !== T || e[16] !== Q ? (K = Pr(Q, T, A), e[14] = A, e[15] = T, e[16] = Q, e[17] = K) : K = e[17];
1751
- const ae = K;
1752
- if (!B && k)
1736
+ } : {}, e[5] = f, e[6] = R) : R = e[6];
1737
+ let C;
1738
+ e[7] !== _ || e[8] !== R ? (C = {
1739
+ ...R,
1740
+ width: _
1741
+ }, e[7] = _, e[8] = R, e[9] = C) : C = e[9];
1742
+ const N = C, H = Be(t, Pr, N), q = Be(t, Ar, N), B = Be(t, Rr, N), W = Be(t, Er, N), D = Be(t, kr, N), X = Be(t, $r, N);
1743
+ let j, V;
1744
+ e[10] !== p || e[11] !== H ? (j = () => {
1745
+ p?.(H);
1746
+ }, V = [p, H], e[10] = p, e[11] = H, e[12] = j, e[13] = V) : (j = e[12], V = e[13]), ge(j, V);
1747
+ const U = q ?? _;
1748
+ let Y;
1749
+ e[14] !== y || e[15] !== w || e[16] !== U ? (Y = Ir(U, w, y), e[14] = y, e[15] = w, e[16] = U, e[17] = Y) : Y = e[17];
1750
+ const se = Y;
1751
+ if (!H && O)
1753
1752
  return null;
1754
- const J = $ ? `${ae}px` : c ?? `${I}px`;
1755
- let Z;
1756
- e[18] !== l ? (Z = /* @__PURE__ */ s(Cr, { children: l }), e[18] = l, e[19] = Z) : Z = e[19];
1757
- let ee, ne;
1758
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = {
1753
+ const J = A ? `${se}px` : a ?? `${_}px`;
1754
+ let ee;
1755
+ e[18] !== l ? (ee = /* @__PURE__ */ s(vr, { children: l }), e[18] = l, e[19] = ee) : ee = e[19];
1756
+ let re, te;
1757
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
1759
1758
  display: "block",
1760
1759
  style: {
1761
1760
  overflowX: "hidden"
1762
1761
  }
1763
- }, ne = {
1762
+ }, te = {
1764
1763
  style: {
1765
1764
  minWidth: "100%",
1766
1765
  width: "100%",
@@ -1768,42 +1767,42 @@ const hl = (o) => {
1768
1767
  display: "flex",
1769
1768
  flexDirection: "column"
1770
1769
  }
1771
- }, e[20] = ee, e[21] = ne) : (ee = e[20], ne = e[21]);
1772
- let te;
1773
- e[22] !== r || e[23] !== w || e[24] !== G || e[25] !== M || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== Y || e[30] !== z || e[31] !== L ? (te = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: N, viewportProps: ee, contentProps: ne, children: /* @__PURE__ */ s(V, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: w }) : /* @__PURE__ */ s(zn, { sections: n, expandedSectionIds: M, expandedNodeIds: G, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: z, onToggleNode: Y, virtualize: L, scrollRef: N }) }) }), e[22] = r, e[23] = w, e[24] = G, e[25] = M, e[26] = h, e[27] = p, e[28] = n, e[29] = Y, e[30] = z, e[31] = L, e[32] = te) : te = e[32];
1770
+ }, e[20] = re, e[21] = te) : (re = e[20], te = e[21]);
1774
1771
  let le;
1775
- e[33] !== a ? (le = /* @__PURE__ */ s(yr, { children: a }), e[33] = a, e[34] = le) : le = e[34];
1776
- let ie;
1777
- e[35] !== Z || e[36] !== te || e[37] !== le || e[38] !== J ? (ie = /* @__PURE__ */ x(ge, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1778
- Z,
1779
- te,
1780
- le
1781
- ] }), e[35] = Z, e[36] = te, e[37] = le, e[38] = J, e[39] = ie) : ie = e[39];
1782
- const ce = ie;
1772
+ e[22] !== r || e[23] !== T || e[24] !== W || e[25] !== B || e[26] !== h || e[27] !== m || e[28] !== n || e[29] !== X || e[30] !== D || e[31] !== L ? (le = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: z, viewportProps: re, contentProps: te, children: /* @__PURE__ */ s(G, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: T }) : /* @__PURE__ */ s(Ln, { sections: n, expandedSectionIds: B, expandedNodeIds: W, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: m, onToggleSection: D, onToggleNode: X, virtualize: L, scrollRef: z }) }) }), e[22] = r, e[23] = T, e[24] = W, e[25] = B, e[26] = h, e[27] = m, e[28] = n, e[29] = X, e[30] = D, e[31] = L, e[32] = le) : le = e[32];
1773
+ let ne;
1774
+ e[33] !== c ? (ne = /* @__PURE__ */ s(xr, { children: c }), e[33] = c, e[34] = ne) : ne = e[34];
1775
+ let K;
1776
+ e[35] !== ee || e[36] !== le || e[37] !== ne || e[38] !== J ? (K = /* @__PURE__ */ S(de, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1777
+ ee,
1778
+ le,
1779
+ ne
1780
+ ] }), e[35] = ee, e[36] = le, e[37] = ne, e[38] = J, e[39] = K) : K = e[39];
1781
+ const ie = K;
1783
1782
  let oe;
1784
- return e[40] !== ce || e[41] !== S ? (oe = /* @__PURE__ */ s(Xt, { actions: S, closeOnSelect: !1, children: ce }), e[40] = ce, e[41] = S, e[42] = oe) : oe = e[42], oe;
1783
+ return e[40] !== ie || e[41] !== v ? (oe = /* @__PURE__ */ s(Qt, { actions: v, closeOnSelect: !1, children: ie }), e[40] = ie, e[41] = v, e[42] = oe) : oe = e[42], oe;
1785
1784
  };
1786
- function Rr(o) {
1785
+ function Pr(o) {
1787
1786
  return o.open;
1788
1787
  }
1789
- function Er(o) {
1788
+ function Ar(o) {
1790
1789
  return o.width;
1791
1790
  }
1792
- function kr(o) {
1791
+ function Rr(o) {
1793
1792
  return o.expandedSections;
1794
1793
  }
1795
- function _r(o) {
1794
+ function Er(o) {
1796
1795
  return o.expandedNodes;
1797
1796
  }
1798
- function $r(o) {
1797
+ function kr(o) {
1799
1798
  return o.toggleSection;
1800
1799
  }
1801
- function Or(o) {
1800
+ function $r(o) {
1802
1801
  return o.toggleNode;
1803
1802
  }
1804
- const Rt = {
1803
+ const Pt = {
1805
1804
  tabOverrides: {}
1806
- }, Dr = "pstdio/ui/tab-visibility", Lr = (o) => `${Dr}/${o}`, zr = (o, e) => o ?? (e ? "hidden" : "shown"), dt = (o, e, t) => {
1805
+ }, Dr = "pstdio/ui/tab-visibility", Or = (o) => `${Dr}/${o}`, Lr = (o, e) => o ?? (e ? "hidden" : "shown"), at = (o, e, t) => {
1807
1806
  if (t === void 0) {
1808
1807
  if (!(e in o)) return o;
1809
1808
  const {
@@ -1816,51 +1815,51 @@ const Rt = {
1816
1815
  ...o,
1817
1816
  [e]: t
1818
1817
  };
1819
- }, Nr = (o, e, t) => {
1820
- const n = zr(o[e], t);
1821
- return dt(o, e, n === "hidden" ? "shown" : "hidden");
1822
- }, Br = (o) => ({
1818
+ }, _r = (o, e, t) => {
1819
+ const n = Lr(o[e], t);
1820
+ return at(o, e, n === "hidden" ? "shown" : "hidden");
1821
+ }, zr = (o) => ({
1823
1822
  tabOverrides: o.tabOverrides
1824
- }), Wr = (o) => lt()(rt((e) => ({
1825
- ...Rt,
1823
+ }), Nr = (o) => lt()(ot((e) => ({
1824
+ ...Pt,
1826
1825
  setTab: (t, n) => e((r) => ({
1827
1826
  ...r,
1828
- tabOverrides: dt(r.tabOverrides, t, n)
1827
+ tabOverrides: at(r.tabOverrides, t, n)
1829
1828
  })),
1830
1829
  toggleTab: (t, n) => e((r) => ({
1831
1830
  ...r,
1832
- tabOverrides: Nr(r.tabOverrides, t, n)
1831
+ tabOverrides: _r(r.tabOverrides, t, n)
1833
1832
  })),
1834
1833
  clearTab: (t) => e((n) => ({
1835
1834
  ...n,
1836
- tabOverrides: dt(n.tabOverrides, t, void 0)
1835
+ tabOverrides: at(n.tabOverrides, t, void 0)
1837
1836
  })),
1838
- reset: () => e(Rt)
1837
+ reset: () => e(Pt)
1839
1838
  }), {
1840
- name: Lr(o.storageKey),
1841
- storage: it(He),
1842
- partialize: Br
1843
- })), Et = /* @__PURE__ */ new Map(), Fr = (o) => {
1844
- const e = Et.get(o);
1839
+ name: Or(o.storageKey),
1840
+ storage: rt(Me),
1841
+ partialize: zr
1842
+ })), At = /* @__PURE__ */ new Map(), Br = (o) => {
1843
+ const e = At.get(o);
1845
1844
  if (e) return e;
1846
- const t = Wr({
1845
+ const t = Nr({
1847
1846
  storageKey: o
1848
1847
  });
1849
- return Et.set(o, t), t;
1850
- }, pl = (o, e) => {
1851
- const t = P(2);
1848
+ return At.set(o, t), t;
1849
+ }, xi = (o, e) => {
1850
+ const t = $(2);
1852
1851
  let n;
1853
- return t[0] !== o ? (n = Fr(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
1854
- }, Hr = (o, e) => typeof o == "string" ? o : e, Me = (o, e) => o ?? (e ? "hidden" : "shown"), Ke = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Mr = (o, e) => Me(e[o.id], o.hiddenByDefault) === "shown", ht = (o, e) => {
1852
+ return t[0] !== o ? (n = Br(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
1853
+ }, Wr = (o, e) => typeof o == "string" ? o : e, Ve = (o, e) => o ?? (e ? "hidden" : "shown"), Rt = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Fr = (o, e) => Ve(e[o.id], o.hiddenByDefault) === "shown", ut = (o, e) => {
1855
1854
  let t = !1;
1856
1855
  const n = [];
1857
1856
  for (const r of o) {
1858
- if (!Mr(r, e)) {
1857
+ if (!Fr(r, e)) {
1859
1858
  t = !0;
1860
1859
  continue;
1861
1860
  }
1862
1861
  if (r.children && r.children.length > 0) {
1863
- const i = ht(r.children, e);
1862
+ const i = ut(r.children, e);
1864
1863
  if (i !== r.children) {
1865
1864
  t = !0, n.push({
1866
1865
  ...r,
@@ -1872,15 +1871,19 @@ const Rt = {
1872
1871
  n.push(r);
1873
1872
  }
1874
1873
  return t ? n : o;
1875
- }, gl = (o, e) => ht(o, e), bl = (o, e, t) => {
1874
+ }, vi = (o, e) => ut(o, e), yi = (o, e, t) => {
1876
1875
  let n = !1;
1877
1876
  const r = [];
1878
1877
  for (const i of o) {
1879
- if (Me(e[i.id], i.hiddenByDefault) === "hidden") {
1878
+ if (Ve(e[i.id], i.hiddenByDefault) === "hidden") {
1879
+ n = !0;
1880
+ continue;
1881
+ }
1882
+ const l = ut(i.nodes, t);
1883
+ if (l.length === 0 && !i.emptyState) {
1880
1884
  n = !0;
1881
1885
  continue;
1882
1886
  }
1883
- const l = ht(i.nodes, t);
1884
1887
  if (l !== i.nodes) {
1885
1888
  n = !0, r.push({
1886
1889
  ...i,
@@ -1891,244 +1894,261 @@ const Rt = {
1891
1894
  r.push(i);
1892
1895
  }
1893
1896
  return n ? r : o;
1894
- }, en = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Vr = (o, e, t, n) => {
1895
- const r = o.hiddenByDefault === !0, i = Me(e[o.id], r);
1897
+ }, Jt = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Hr = (o, e, t, n) => {
1898
+ const r = o.hiddenByDefault === !0, i = Ve(e[o.id], r);
1896
1899
  return {
1897
1900
  key: `section:${o.id}`,
1898
1901
  label: o.label ?? o.id,
1899
1902
  onClick: () => t.onToggleSection(o.id, r),
1900
- endContent: en(i, n)
1903
+ endContent: Jt(i, n)
1901
1904
  };
1902
- }, ct = (o, e, t, n) => {
1903
- const r = o.hiddenByDefault === !0, i = Me(e[o.id], r);
1905
+ }, Mr = (o, e, t, n) => {
1906
+ const r = o.hiddenByDefault === !0, i = Ve(e[o.id], r);
1904
1907
  return {
1905
1908
  key: `node:${o.id}`,
1906
- label: Hr(o.label, o.id),
1909
+ label: Wr(o.label, o.id),
1907
1910
  icon: o.icon,
1908
1911
  onClick: () => t.onToggleNode(o.id, r),
1909
- endContent: en(i, n)
1912
+ endContent: Jt(i, n)
1910
1913
  };
1911
- }, xl = (o, e, t, n, r) => {
1912
- const i = [], l = (c) => {
1913
- c.length !== 0 && (i.length > 0 && (c[0] = {
1914
- ...c[0],
1914
+ }, Ci = (o, e, t, n, r) => {
1915
+ const i = [], l = (a) => {
1916
+ a.length !== 0 && (i.length > 0 && (a[0] = {
1917
+ ...a[0],
1915
1918
  separatorBefore: !0
1916
- }), i.push(...c));
1919
+ }), i.push(...a));
1920
+ }, c = (a) => {
1921
+ const d = [];
1922
+ for (const u of a) {
1923
+ Rt(u) && d.push(Hr(u, e, n, r));
1924
+ for (const f of u.nodes)
1925
+ Rt(f) && d.push(Mr(f, t, n, r));
1926
+ }
1927
+ return d;
1917
1928
  };
1918
- l((o.headerNodes ?? []).filter(Ke).map((c) => ct(c, t, n, r)));
1919
- const a = [];
1920
- for (const c of o.sections) {
1921
- Ke(c) && a.push(Vr(c, e, n, r));
1922
- for (const u of c.nodes)
1923
- Ke(u) && a.push(ct(u, t, n, r));
1924
- }
1925
- return l(a), l((o.footerNodes ?? []).filter(Ke).map((c) => ct(c, t, n, r))), i.length === 0 || i.push({
1929
+ return l(c(o.headerSections ?? [])), l(c(o.sections)), l(c(o.footerSections ?? [])), i.length === 0 || i.push({
1926
1930
  key: "__reset-visibility",
1927
1931
  label: "Reset to default",
1928
1932
  icon: r.resetIcon,
1929
1933
  separatorBefore: !0,
1930
1934
  onClick: n.onResetAll
1931
1935
  }), i;
1932
- }, Sl = (o, e, t) => {
1936
+ }, wi = (o, e, t) => {
1933
1937
  let n = !1;
1934
1938
  const r = [];
1935
1939
  for (const i of o) {
1936
- if (i.pinned === !0 && i.hiddenByDefault === !0) {
1937
- n = !0;
1938
- continue;
1939
- }
1940
1940
  if (i.closable === !0) {
1941
1941
  r.push(i);
1942
1942
  continue;
1943
1943
  }
1944
- if (Me(e[t(i)], i.hiddenByDefault) === "hidden") {
1944
+ if (i.pinned === !0 && i.hiddenByDefault === !0) {
1945
+ n = !0;
1946
+ continue;
1947
+ }
1948
+ if (Ve(e[t(i)], i.hiddenByDefault) === "hidden") {
1945
1949
  n = !0;
1946
1950
  continue;
1947
1951
  }
1948
1952
  r.push(i);
1949
1953
  }
1950
1954
  return n ? r : o;
1951
- }, vl = (o, e, t, n, r, i) => {
1955
+ }, Ii = (o, e, t, n, r, i) => {
1952
1956
  const l = [];
1953
- let a = 0;
1954
- for (const c of o) {
1955
- if (c.pinned === !0 || c.closable === !0) continue;
1956
- a += 1;
1957
- const u = n(c), d = c.hiddenByDefault === !0, f = Me(e[u], d);
1957
+ let c = 0;
1958
+ for (const a of o) {
1959
+ if (a.pinned === !0 || a.closable === !0) continue;
1960
+ c += 1;
1961
+ const d = n(a), u = a.hiddenByDefault === !0, f = Ve(e[d], u);
1958
1962
  l.push({
1959
- key: `tab:${u}`,
1960
- label: c.title ?? c.contributionId,
1961
- icon: i?.(c),
1962
- onClick: () => t.onToggleTab(u, d),
1963
+ key: `tab:${d}`,
1964
+ label: a.title ?? a.contributionId,
1965
+ icon: i?.(a),
1966
+ onClick: () => t.onToggleTab(d, u),
1963
1967
  endContent: f === "shown" ? r.visibleIcon : r.hiddenIcon
1964
1968
  });
1965
1969
  }
1966
- return a === 0 || l.push({
1970
+ return c === 0 || l.push({
1967
1971
  key: "__reset-tabs",
1968
1972
  label: "Reset to default",
1969
1973
  icon: r.resetIcon,
1970
1974
  separatorBefore: !0,
1971
1975
  onClick: t.onResetAll
1972
1976
  }), l;
1973
- }, Gr = (o) => {
1974
- const e = P(7), {
1977
+ }, Vr = (o) => {
1978
+ const e = $(7), {
1975
1979
  children: t,
1976
1980
  hasChanges: n
1977
1981
  } = o;
1978
1982
  let r;
1979
- e[0] !== t ? (r = /* @__PURE__ */ s(W, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = r) : r = e[1];
1983
+ e[0] !== t ? (r = /* @__PURE__ */ s(F, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = r) : r = e[1];
1980
1984
  let i;
1981
- e[2] !== n ? (i = n ? /* @__PURE__ */ s(W, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = i) : i = e[3];
1985
+ e[2] !== n ? (i = n ? /* @__PURE__ */ s(F, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = i) : i = e[3];
1982
1986
  let l;
1983
- return e[4] !== r || e[5] !== i ? (l = /* @__PURE__ */ x(re, { gap: "3xs", minWidth: "0", children: [
1987
+ return e[4] !== r || e[5] !== i ? (l = /* @__PURE__ */ S(ae, { gap: "3xs", minWidth: "0", children: [
1984
1988
  r,
1985
1989
  i
1986
1990
  ] }), e[4] = r, e[5] = i, e[6] = l) : l = e[6], l;
1987
- }, jr = (o) => {
1988
- const e = P(20), {
1991
+ }, Gr = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, jr = (o) => {
1992
+ const e = $(54), {
1989
1993
  actions: t,
1990
1994
  disabled: n,
1991
- options: r,
1992
- onChange: i
1995
+ label: r,
1996
+ options: i,
1997
+ optionName: l,
1998
+ onChange: c
1993
1999
  } = o;
1994
- let l;
1995
- e[0] !== t || e[1] !== i ? (l = (m) => {
1996
- i(t.includes(m) ? t.filter((g) => g !== m) : [...t, m]);
1997
- }, e[0] = t, e[1] = i, e[2] = l) : l = e[2];
1998
- const a = l, c = t.length !== 1 ? "s" : "";
1999
- let u;
2000
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(se, { as: kn, boxSize: "icon-2xs" }), e[3] = u) : u = e[3];
2001
- let d;
2002
- e[4] !== t.length || e[5] !== n || e[6] !== c ? (d = /* @__PURE__ */ s(Ve.Trigger, { asChild: !0, children: /* @__PURE__ */ x(de, { size: "2xs", variant: "ghost", gap: "xs", color: "fg.muted", disabled: n, children: [
2003
- t.length,
2004
- " action",
2005
- c,
2006
- u
2007
- ] }) }), e[4] = t.length, e[5] = n, e[6] = c, e[7] = d) : d = e[7];
2008
- let f;
2009
- if (e[8] !== t || e[9] !== r || e[10] !== a) {
2010
- let m;
2011
- e[12] !== t || e[13] !== a ? (m = (g) => /* @__PURE__ */ s(Ve.Item, { value: g.value, asChild: !0, children: /* @__PURE__ */ s(nt, { asChild: !0, variant: "full-width", id: g.value, label: g.label, isSelected: t.includes(g.value), endContent: t.includes(g.value) ? /* @__PURE__ */ s(se, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => a(g.value) }) }, g.value), e[12] = t, e[13] = a, e[14] = m) : m = e[14], f = r.map(m), e[8] = t, e[9] = r, e[10] = a, e[11] = f;
2000
+ let a, d, u, f, h, m, p, g, x, b, E, P, k, v;
2001
+ if (e[0] !== t || e[1] !== n || e[2] !== r || e[3] !== c || e[4] !== l || e[5] !== i) {
2002
+ let z;
2003
+ e[20] !== t ? (z = (R) => t.includes(R.value), e[20] = t, e[21] = z) : z = e[21];
2004
+ const I = i.filter(z);
2005
+ let _;
2006
+ e[22] !== t || e[23] !== c ? (_ = (R) => {
2007
+ c(t.includes(R) ? t.filter((C) => C !== R) : [...t, R]);
2008
+ }, e[22] = t, e[23] = c, e[24] = _) : _ = e[24], v = _, u = pe.Root, k = !1, d = pe.Trigger, P = !0, a = ue, f = "2xs", h = "ghost", m = "xs", p = I.length === 0 ? "fg.subtle" : "fg", g = n, x = `${r} for ${l}`, b = I[0]?.icon, E = Gr(I), e[0] = t, e[1] = n, e[2] = r, e[3] = c, e[4] = l, e[5] = i, e[6] = a, e[7] = d, e[8] = u, e[9] = f, e[10] = h, e[11] = m, e[12] = p, e[13] = g, e[14] = x, e[15] = b, e[16] = E, e[17] = P, e[18] = k, e[19] = v;
2012
2009
  } else
2013
- f = e[11];
2014
- let h;
2015
- e[15] !== f ? (h = /* @__PURE__ */ s(Ve.Positioner, { children: /* @__PURE__ */ s(Ve.Content, { minW: "tag-action-menu", bg: "bg", children: f }) }), e[15] = f, e[16] = h) : h = e[16];
2016
- let p;
2017
- return e[17] !== d || e[18] !== h ? (p = /* @__PURE__ */ x(Ve.Root, { closeOnSelect: !1, children: [
2018
- d,
2019
- h
2020
- ] }), e[17] = d, e[18] = h, e[19] = p) : p = e[19], p;
2010
+ a = e[6], d = e[7], u = e[8], f = e[9], h = e[10], m = e[11], p = e[12], g = e[13], x = e[14], b = e[15], E = e[16], P = e[17], k = e[18], v = e[19];
2011
+ let O;
2012
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ s(ce, { as: Ut, boxSize: "icon-2xs" }), e[25] = O) : O = e[25];
2013
+ let T;
2014
+ e[26] !== a || e[27] !== f || e[28] !== h || e[29] !== m || e[30] !== p || e[31] !== g || e[32] !== x || e[33] !== b || e[34] !== E ? (T = /* @__PURE__ */ S(a, { size: f, variant: h, gap: m, color: p, disabled: g, "aria-label": x, children: [
2015
+ b,
2016
+ E,
2017
+ O
2018
+ ] }), e[26] = a, e[27] = f, e[28] = h, e[29] = m, e[30] = p, e[31] = g, e[32] = x, e[33] = b, e[34] = E, e[35] = T) : T = e[35];
2019
+ let A;
2020
+ e[36] !== d || e[37] !== T || e[38] !== P ? (A = /* @__PURE__ */ s(d, { asChild: P, children: T }), e[36] = d, e[37] = T, e[38] = P, e[39] = A) : A = e[39];
2021
+ let w;
2022
+ if (e[40] !== t || e[41] !== i || e[42] !== v) {
2023
+ let z;
2024
+ e[44] !== t || e[45] !== v ? (z = (I) => /* @__PURE__ */ s(pe.Item, { value: I.value, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: I.value, label: I.label, icon: I.icon, isSelected: t.includes(I.value), endContent: t.includes(I.value) ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => v(I.value) }) }, I.value), e[44] = t, e[45] = v, e[46] = z) : z = e[46], w = i.map(z), e[40] = t, e[41] = i, e[42] = v, e[43] = w;
2025
+ } else
2026
+ w = e[43];
2027
+ let y;
2028
+ e[47] !== w ? (y = /* @__PURE__ */ s(pe.Positioner, { children: /* @__PURE__ */ s(pe.Content, { minW: "tag-action-menu", bg: "bg", children: w }) }), e[47] = w, e[48] = y) : y = e[48];
2029
+ let L;
2030
+ return e[49] !== u || e[50] !== A || e[51] !== y || e[52] !== k ? (L = /* @__PURE__ */ S(u, { closeOnSelect: k, children: [
2031
+ A,
2032
+ y
2033
+ ] }), e[49] = u, e[50] = A, e[51] = y, e[52] = k, e[53] = L) : L = e[53], L;
2021
2034
  }, Ur = (o) => {
2022
- const e = P(65), {
2035
+ const e = $(69), {
2023
2036
  actionOptions: t,
2024
- colorOptions: n,
2025
- iconOptions: r,
2026
- value: i,
2027
- isSaving: l,
2028
- showDefault: a,
2029
- showIcons: c,
2030
- onActionsChange: u,
2031
- onColorChange: d,
2032
- onDelete: f,
2033
- onIconChange: h,
2034
- onNameChange: p,
2035
- onSetDefault: m
2036
- } = o;
2037
- let g;
2038
- e[0] !== i.id ? (g = {
2039
- id: i.id
2040
- }, e[0] = i.id, e[1] = g) : g = e[1];
2037
+ actionsLabel: n,
2038
+ colorOptions: r,
2039
+ iconOptions: i,
2040
+ value: l,
2041
+ isSaving: c,
2042
+ readOnly: a,
2043
+ showDefault: d,
2044
+ showIcons: u,
2045
+ onActionsChange: f,
2046
+ onColorChange: h,
2047
+ onDelete: m,
2048
+ onIconChange: p,
2049
+ onNameChange: g
2050
+ } = o, x = n === void 0 ? "Actions" : n, b = c || a;
2051
+ let E;
2052
+ e[0] !== b || e[1] !== l.id ? (E = {
2053
+ id: l.id,
2054
+ disabled: b
2055
+ }, e[0] = b, e[1] = l.id, e[2] = E) : E = e[2];
2041
2056
  const {
2042
- attributes: v,
2043
- listeners: C,
2044
- setNodeRef: R,
2045
- transform: E,
2046
- transition: O,
2047
- isDragging: S
2048
- } = Un(g);
2049
- let k;
2050
- e[2] !== E ? (k = Yn.Transform.toString(E), e[2] = E, e[3] = k) : k = e[3];
2057
+ attributes: P,
2058
+ listeners: k,
2059
+ setNodeRef: v,
2060
+ transform: O,
2061
+ transition: T,
2062
+ isDragging: A
2063
+ } = Gn(E);
2051
2064
  let w;
2052
- e[4] !== k || e[5] !== O ? (w = {
2053
- transform: k,
2054
- transition: O
2055
- }, e[4] = k, e[5] = O, e[6] = w) : w = e[6];
2056
- const $ = S ? "bg.elevated" : "transparent", T = S ? "compact" : "none", A = S ? "1px" : void 0, L = S ? "lg" : void 0, N = S ? "bg.elevated" : "bg.muted";
2057
- let D;
2058
- e[7] !== N ? (D = {
2059
- bg: N
2060
- }, e[7] = N, e[8] = D) : D = e[8];
2061
- let I;
2062
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
2063
- color: "fg.muted"
2064
- }, e[9] = I) : I = e[9];
2065
- const y = `Reorder ${i.name}`;
2066
- let b;
2067
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ s(se, { as: _n, boxSize: "icon-xs" }), e[10] = b) : b = e[10];
2068
- let _;
2069
- e[11] !== v || e[12] !== C || e[13] !== y ? (_ = /* @__PURE__ */ s(ge, { cursor: "grab", color: "fg.subtle", _groupHover: I, "aria-label": y, ...v, ...C, children: b }), e[11] = v, e[12] = C, e[13] = y, e[14] = _) : _ = e[14];
2070
- const B = `Change ${i.name} appearance`;
2065
+ e[3] !== O ? (w = Xn.Transform.toString(O), e[3] = O, e[4] = w) : w = e[4];
2066
+ let y;
2067
+ e[5] !== w || e[6] !== T ? (y = {
2068
+ transform: w,
2069
+ transition: T
2070
+ }, e[5] = w, e[6] = T, e[7] = y) : y = e[7];
2071
+ const L = A ? "bg.elevated" : "transparent", z = A ? "compact" : "none", I = A ? "1px" : void 0, _ = A ? "lg" : void 0, R = A ? "bg.elevated" : "bg.muted";
2072
+ let C;
2073
+ e[8] !== R ? (C = {
2074
+ bg: R
2075
+ }, e[8] = R, e[9] = C) : C = e[9];
2076
+ const N = a ? "default" : "grab";
2071
2077
  let H;
2072
- e[15] !== n || e[16] !== r || e[17] !== l || e[18] !== d || e[19] !== h || e[20] !== c || e[21] !== B || e[22] !== i.color || e[23] !== i.icon ? (H = /* @__PURE__ */ s(lr, { color: i.color, colorOptions: n, icon: i.icon, iconOptions: r, showIcons: c, onColorChange: d, onIconChange: h, disabled: l, "aria-label": B }), e[15] = n, e[16] = r, e[17] = l, e[18] = d, e[19] = h, e[20] = c, e[21] = B, e[22] = i.color, e[23] = i.icon, e[24] = H) : H = e[24];
2073
- let M;
2074
- e[25] !== p || e[26] !== i.name ? (M = (ne) => {
2075
- const te = ne.value.trim();
2076
- te && te !== i.name && p(te);
2077
- }, e[25] = p, e[26] = i.name, e[27] = M) : M = e[27];
2078
- let G, z;
2079
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ s(Be.Preview, { textStyle: "paragraph/S/regular" }), z = /* @__PURE__ */ s(Be.Input, { textStyle: "paragraph/S/regular" }), e[28] = G, e[29] = z) : (G = e[28], z = e[29]);
2078
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
2079
+ color: "fg.muted"
2080
+ }, e[10] = H) : H = e[10];
2081
+ const q = `Reorder ${l.name}`;
2082
+ let B;
2083
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(ce, { as: En, boxSize: "icon-xs" }), e[11] = B) : B = e[11];
2084
+ let W;
2085
+ e[12] !== P || e[13] !== k || e[14] !== N || e[15] !== q ? (W = /* @__PURE__ */ s(de, { cursor: N, color: "fg.subtle", _groupHover: H, "aria-label": q, ...P, ...k, children: B }), e[12] = P, e[13] = k, e[14] = N, e[15] = q, e[16] = W) : W = e[16];
2086
+ const D = `Change ${l.name} appearance`;
2087
+ let X;
2088
+ e[17] !== r || e[18] !== b || e[19] !== i || e[20] !== h || e[21] !== p || e[22] !== u || e[23] !== D || e[24] !== l.color || e[25] !== l.icon ? (X = /* @__PURE__ */ s(rr, { color: l.color, colorOptions: r, icon: l.icon, iconOptions: i, showIcons: u, onColorChange: h, onIconChange: p, disabled: b, "aria-label": D }), e[17] = r, e[18] = b, e[19] = i, e[20] = h, e[21] = p, e[22] = u, e[23] = D, e[24] = l.color, e[25] = l.icon, e[26] = X) : X = e[26];
2089
+ let j;
2090
+ e[27] !== g || e[28] !== l.name ? (j = (oe) => {
2091
+ const he = oe.value.trim();
2092
+ he && he !== l.name && g(he);
2093
+ }, e[27] = g, e[28] = l.name, e[29] = j) : j = e[29];
2094
+ let V, U;
2095
+ e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ s(We.Preview, { textStyle: "paragraph/S/regular" }), U = /* @__PURE__ */ s(We.Input, { textStyle: "paragraph/S/regular" }), e[30] = V, e[31] = U) : (V = e[30], U = e[31]);
2080
2096
  let Y;
2081
- e[30] !== M || e[31] !== i.isNew || e[32] !== i.name ? (Y = /* @__PURE__ */ x(Be.Root, { flex: "1", minWidth: "0", defaultValue: i.name, defaultEdit: i.isNew, selectOnFocus: !0, onValueCommit: M, children: [
2082
- G,
2083
- z
2084
- ] }, i.name), e[30] = M, e[31] = i.isNew, e[32] = i.name, e[33] = Y) : Y = e[33];
2085
- let q;
2086
- e[34] !== l || e[35] !== m || e[36] !== a || e[37] !== i.isDefault || e[38] !== i.name ? (q = a ? /* @__PURE__ */ s(de, { size: "2xs", variant: i.isDefault ? "primary" : "ghost", onClick: m, disabled: l || i.isDefault, "aria-label": `Set ${i.name} as default`, children: /* @__PURE__ */ s(se, { as: et, boxSize: "icon-xs" }) }) : null, e[34] = l, e[35] = m, e[36] = a, e[37] = i.isDefault, e[38] = i.name, e[39] = q) : q = e[39];
2087
- let U;
2088
- e[40] !== t || e[41] !== l || e[42] !== u || e[43] !== i.actions ? (U = t ? /* @__PURE__ */ s(jr, { actions: i.actions ?? [], disabled: l, options: t, onChange: u }) : null, e[40] = t, e[41] = l, e[42] = u, e[43] = i.actions, e[44] = U) : U = e[44];
2089
- let Q;
2090
- e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
2091
- color: "fg.error",
2092
- bg: "bg.error"
2093
- }, e[45] = Q) : Q = e[45];
2094
- const K = l || i.isDefault, ae = `Delete ${i.name}`;
2097
+ e[32] !== b || e[33] !== j || e[34] !== l.isNew || e[35] !== l.name ? (Y = /* @__PURE__ */ S(We.Root, { minWidth: "0", defaultValue: l.name, defaultEdit: l.isNew, selectOnFocus: !0, disabled: b, onValueCommit: j, children: [
2098
+ V,
2099
+ U
2100
+ ] }, l.name), e[32] = b, e[33] = j, e[34] = l.isNew, e[35] = l.name, e[36] = Y) : Y = e[36];
2101
+ let se;
2102
+ e[37] !== d || e[38] !== l.isDefault ? (se = d && l.isDefault ? /* @__PURE__ */ s(Te, { size: "sm", variant: "subtle", colorPalette: "blue", children: "Default" }) : null, e[37] = d, e[38] = l.isDefault, e[39] = se) : se = e[39];
2095
2103
  let J;
2096
- e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ s(se, { as: $n, boxSize: "icon-xs" }), e[46] = J) : J = e[46];
2097
- let Z;
2098
- e[47] !== f || e[48] !== K || e[49] !== ae ? (Z = /* @__PURE__ */ s(We, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: Q, onClick: f, disabled: K, "aria-label": ae, children: J }), e[47] = f, e[48] = K, e[49] = ae, e[50] = Z) : Z = e[50];
2099
- let ee;
2100
- return e[51] !== R || e[52] !== _ || e[53] !== H || e[54] !== Y || e[55] !== q || e[56] !== w || e[57] !== U || e[58] !== Z || e[59] !== $ || e[60] !== T || e[61] !== A || e[62] !== L || e[63] !== D ? (ee = /* @__PURE__ */ x(ge, { ref: R, style: w, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: $, borderRadius: T, borderWidth: A, boxShadow: L, _hover: D, children: [
2101
- _,
2102
- H,
2104
+ e[40] !== Y || e[41] !== se ? (J = /* @__PURE__ */ S(de, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
2103
2105
  Y,
2104
- q,
2105
- U,
2106
- Z
2107
- ] }), e[51] = R, e[52] = _, e[53] = H, e[54] = Y, e[55] = q, e[56] = w, e[57] = U, e[58] = Z, e[59] = $, e[60] = T, e[61] = A, e[62] = L, e[63] = D, e[64] = ee) : ee = e[64], ee;
2106
+ se
2107
+ ] }), e[40] = Y, e[41] = se, e[42] = J) : J = e[42];
2108
+ let ee;
2109
+ e[43] !== t || e[44] !== x || e[45] !== b || e[46] !== f || e[47] !== l.actions || e[48] !== l.name ? (ee = t ? /* @__PURE__ */ s(de, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(jr, { actions: l.actions ?? [], disabled: b, label: x, optionName: l.name, options: t, onChange: f }) }) : null, e[43] = t, e[44] = x, e[45] = b, e[46] = f, e[47] = l.actions, e[48] = l.name, e[49] = ee) : ee = e[49];
2110
+ let re;
2111
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
2112
+ color: "fg.error",
2113
+ bg: "bg.error"
2114
+ }, e[50] = re) : re = e[50];
2115
+ const te = b || l.isDefault, le = `Delete ${l.name}`;
2116
+ let ne;
2117
+ e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as: kn, boxSize: "icon-xs" }), e[51] = ne) : ne = e[51];
2118
+ let K;
2119
+ e[52] !== m || e[53] !== te || e[54] !== le ? (K = /* @__PURE__ */ s(Fe, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: re, onClick: m, disabled: te, "aria-label": le, children: ne }), e[52] = m, e[53] = te, e[54] = le, e[55] = K) : K = e[55];
2120
+ let ie;
2121
+ return e[56] !== v || e[57] !== W || e[58] !== X || e[59] !== J || e[60] !== ee || e[61] !== K || e[62] !== y || e[63] !== L || e[64] !== z || e[65] !== I || e[66] !== _ || e[67] !== C ? (ie = /* @__PURE__ */ S(de, { ref: v, style: y, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: L, borderRadius: z, borderWidth: I, boxShadow: _, _hover: C, children: [
2122
+ W,
2123
+ X,
2124
+ J,
2125
+ ee,
2126
+ K
2127
+ ] }), e[56] = v, e[57] = W, e[58] = X, e[59] = J, e[60] = ee, e[61] = K, e[62] = y, e[63] = L, e[64] = z, e[65] = I, e[66] = _, e[67] = C, e[68] = ie) : ie = e[68], ie;
2108
2128
  }, Qr = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, Xr = (o) => {
2109
- const e = P(12), {
2129
+ const e = $(12), {
2110
2130
  title: t,
2111
2131
  hasChanges: n,
2112
2132
  isSaving: r,
2113
2133
  onTitleChange: i
2114
2134
  } = o;
2115
2135
  if (!i) {
2116
- let d;
2117
- return e[0] !== n || e[1] !== t ? (d = /* @__PURE__ */ s(Gr, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = d) : d = e[2], d;
2136
+ let u;
2137
+ return e[0] !== n || e[1] !== t ? (u = /* @__PURE__ */ s(Vr, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = u) : u = e[2], u;
2118
2138
  }
2119
2139
  let l;
2120
- e[3] !== i || e[4] !== t ? (l = (d) => {
2121
- const f = d.value.trim();
2140
+ e[3] !== i || e[4] !== t ? (l = (u) => {
2141
+ const f = u.value.trim();
2122
2142
  f && f !== t && i(f);
2123
2143
  }, e[3] = i, e[4] = t, e[5] = l) : l = e[5];
2124
- let a, c;
2125
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ s(Be.Preview, { textStyle: "label/L/medium" }), c = /* @__PURE__ */ s(Be.Input, { textStyle: "label/L/medium" }), e[6] = a, e[7] = c) : (a = e[6], c = e[7]);
2126
- let u;
2127
- return e[8] !== r || e[9] !== l || e[10] !== t ? (u = /* @__PURE__ */ x(Be.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: l, children: [
2128
- a,
2129
- c
2130
- ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = u) : u = e[11], u;
2131
- }, qr = Ie("button", {
2144
+ let c, a;
2145
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(We.Preview, { textStyle: "label/L/medium" }), a = /* @__PURE__ */ s(We.Input, { textStyle: "label/L/medium" }), e[6] = c, e[7] = a) : (c = e[6], a = e[7]);
2146
+ let d;
2147
+ return e[8] !== r || e[9] !== l || e[10] !== t ? (d = /* @__PURE__ */ S(We.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: l, children: [
2148
+ c,
2149
+ a
2150
+ ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = d) : d = e[11], d;
2151
+ }, qr = Pe("button", {
2132
2152
  base: {
2133
2153
  display: "flex",
2134
2154
  alignItems: "center",
@@ -2152,6 +2172,64 @@ const Rt = {
2152
2172
  }
2153
2173
  }
2154
2174
  }), Yr = (o) => {
2175
+ const e = $(9), {
2176
+ valueLabel: t,
2177
+ actionsLabel: n
2178
+ } = o;
2179
+ let r;
2180
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(de, { width: "tag-editor-lead", flexShrink: "0" }), e[0] = r) : r = e[0];
2181
+ let i;
2182
+ e[1] !== t ? (i = /* @__PURE__ */ s(F, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = i) : i = e[2];
2183
+ let l;
2184
+ e[3] !== n ? (l = n ? /* @__PURE__ */ s(F, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = l) : l = e[4];
2185
+ let c;
2186
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(de, { width: "tag-editor-trailing", flexShrink: "0" }), e[5] = c) : c = e[5];
2187
+ let a;
2188
+ return e[6] !== i || e[7] !== l ? (a = /* @__PURE__ */ S(de, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
2189
+ r,
2190
+ i,
2191
+ l,
2192
+ c
2193
+ ] }), e[6] = i, e[7] = l, e[8] = a) : a = e[8], a;
2194
+ }, Kr = (o) => {
2195
+ const e = $(22), {
2196
+ label: t,
2197
+ values: n,
2198
+ disabled: r,
2199
+ onSelect: i
2200
+ } = o;
2201
+ let l;
2202
+ e[0] !== n ? (l = n.find(Jr), e[0] = n, e[1] = l) : l = e[1];
2203
+ const c = l;
2204
+ let a;
2205
+ e[2] !== t ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }), e[2] = t, e[3] = a) : a = e[3];
2206
+ const d = c?.name ?? "None";
2207
+ let u;
2208
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(ce, { as: Ut, boxSize: "icon-2xs" }), e[4] = u) : u = e[4];
2209
+ let f;
2210
+ e[5] !== r || e[6] !== t || e[7] !== d ? (f = /* @__PURE__ */ s(pe.Trigger, { asChild: !0, children: /* @__PURE__ */ S(ue, { size: "2xs", variant: "ghost", gap: "xs", disabled: r, "aria-label": t, children: [
2211
+ d,
2212
+ u
2213
+ ] }) }), e[5] = r, e[6] = t, e[7] = d, e[8] = f) : f = e[8];
2214
+ let h;
2215
+ if (e[9] !== i || e[10] !== n) {
2216
+ let x;
2217
+ e[12] !== i ? (x = (b) => /* @__PURE__ */ s(pe.Item, { value: b.id, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: b.id, label: b.name, isSelected: b.isDefault, endContent: b.isDefault ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => i(b) }) }, b.id), e[12] = i, e[13] = x) : x = e[13], h = n.map(x), e[9] = i, e[10] = n, e[11] = h;
2218
+ } else
2219
+ h = e[11];
2220
+ let m;
2221
+ e[14] !== h ? (m = /* @__PURE__ */ s(pe.Positioner, { children: /* @__PURE__ */ s(pe.Content, { minW: "tag-action-menu", bg: "bg", children: h }) }), e[14] = h, e[15] = m) : m = e[15];
2222
+ let p;
2223
+ e[16] !== f || e[17] !== m ? (p = /* @__PURE__ */ S(pe.Root, { children: [
2224
+ f,
2225
+ m
2226
+ ] }), e[16] = f, e[17] = m, e[18] = p) : p = e[18];
2227
+ let g;
2228
+ return e[19] !== a || e[20] !== p ? (g = /* @__PURE__ */ S(de, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
2229
+ a,
2230
+ p
2231
+ ] }), e[19] = a, e[20] = p, e[21] = g) : g = e[21], g;
2232
+ }, Zr = (o) => {
2155
2233
  const {
2156
2234
  title: e,
2157
2235
  description: t,
@@ -2159,106 +2237,118 @@ const Rt = {
2159
2237
  values: r,
2160
2238
  onValuesChange: i,
2161
2239
  onDeleteValue: l,
2162
- onSetDefault: a,
2163
- onTitleChange: c,
2164
- hasChanges: u,
2165
- isSaving: d,
2166
- addLabel: f = "Add option",
2167
- addName: h = "New option",
2240
+ onSetDefault: c,
2241
+ onTitleChange: a,
2242
+ hasChanges: d,
2243
+ isSaving: u,
2244
+ readOnly: f,
2245
+ addLabel: h = "Add option",
2246
+ addName: m = "New option",
2168
2247
  actionOptions: p,
2169
- colorOptions: m,
2170
- defaultAddColor: g = "blue",
2171
- defaultAddIcon: v = null,
2172
- deleteButtonText: C = "Delete tag",
2173
- deleteHeadline: R = "Delete tag?",
2174
- deleteNotificationText: E = (I) => `This will delete "${I.name}".`,
2175
- iconOptions: O,
2176
- showDefault: S,
2177
- showIcons: k = !0
2178
- } = o, [w, $] = ue(null), T = Hn(Mn(Vn, {
2248
+ actionsLabel: g,
2249
+ defaultValueLabel: x = "Default value",
2250
+ colorOptions: b,
2251
+ defaultAddColor: E = "blue",
2252
+ defaultAddIcon: P = null,
2253
+ deleteButtonText: k = "Delete tag",
2254
+ deleteHeadline: v = "Delete tag?",
2255
+ deleteNotificationText: O = (B) => `This will delete "${B.name}".`,
2256
+ iconOptions: T,
2257
+ showDefault: A,
2258
+ showIcons: w = !0,
2259
+ framed: y,
2260
+ showColumnHeaders: L,
2261
+ valueColumnLabel: z = "Name"
2262
+ } = o, [I, _] = fe(null), R = Wn(Fn(Hn, {
2179
2263
  activationConstraint: {
2180
2264
  distance: 5
2181
2265
  }
2182
- })), A = (I, y) => {
2183
- const b = [...r];
2184
- b[I] = {
2185
- ...b[I],
2186
- ...y
2187
- }, i(b);
2188
- }, L = () => {
2266
+ })), C = (B, W) => {
2267
+ const D = [...r];
2268
+ D[B] = {
2269
+ ...D[B],
2270
+ ...W
2271
+ }, i(D);
2272
+ }, N = () => {
2189
2273
  i([...r, {
2190
2274
  id: `new-${crypto.randomUUID()}`,
2191
- name: h,
2192
- color: g,
2193
- icon: v,
2275
+ name: m,
2276
+ color: E,
2277
+ icon: P,
2194
2278
  sortOrder: Qr(r),
2195
2279
  isNew: !0
2196
2280
  }]);
2197
- }, N = () => {
2198
- w && (l ? l(w) : i(r.filter((I) => I.id !== w.id)), $(null));
2281
+ }, H = () => {
2282
+ I && (l ? l(I) : i(r.filter((B) => B.id !== I.id)), _(null));
2199
2283
  };
2200
- return /* @__PURE__ */ x(Fe, { children: [
2201
- /* @__PURE__ */ x(j, { gap: "2xs", children: [
2202
- e || n ? /* @__PURE__ */ x(ge, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2203
- /* @__PURE__ */ x(j, { gap: "3xs", minWidth: "0", children: [
2204
- e ? /* @__PURE__ */ s(Xr, { title: e, hasChanges: u, isSaving: d, onTitleChange: c }) : null,
2205
- t ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2284
+ return /* @__PURE__ */ S(He, { children: [
2285
+ /* @__PURE__ */ S(Q, { gap: "2xs", children: [
2286
+ e || n ? /* @__PURE__ */ S(de, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2287
+ /* @__PURE__ */ S(Q, { gap: "3xs", minWidth: "0", children: [
2288
+ e ? /* @__PURE__ */ s(Xr, { title: e, hasChanges: d, isSaving: u, onTitleChange: a }) : null,
2289
+ t ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2206
2290
  ] }),
2207
2291
  n
2208
2292
  ] }) : null,
2209
- /* @__PURE__ */ x(j, { gap: "none", children: [
2210
- /* @__PURE__ */ s(Gn, { sensors: T, collisionDetection: jn, onDragEnd: (I) => {
2293
+ /* @__PURE__ */ S(Q, { gap: "none", borderWidth: y ? "1px" : void 0, borderColor: y ? "border.subtle" : void 0, borderRadius: y ? "md" : void 0, overflow: y ? "hidden" : void 0, children: [
2294
+ L ? /* @__PURE__ */ s(Yr, { valueLabel: z, actionsLabel: p ? g : void 0 }) : null,
2295
+ /* @__PURE__ */ s(Mn, { sensors: R, collisionDetection: Vn, onDragEnd: f ? void 0 : (B) => {
2211
2296
  const {
2212
- active: y,
2213
- over: b
2214
- } = I;
2215
- if (!b || y.id === b.id) return;
2216
- const _ = r.findIndex((H) => H.id === y.id), B = r.findIndex((H) => H.id === b.id);
2217
- _ < 0 || B < 0 || i(qn(r, _, B).map((H, M) => ({
2218
- ...H,
2219
- sortOrder: M
2297
+ active: W,
2298
+ over: D
2299
+ } = B;
2300
+ if (!D || W.id === D.id) return;
2301
+ const X = r.findIndex((V) => V.id === W.id), j = r.findIndex((V) => V.id === D.id);
2302
+ X < 0 || j < 0 || i(Qn(r, X, j).map((V, U) => ({
2303
+ ...V,
2304
+ sortOrder: U
2220
2305
  })));
2221
- }, children: /* @__PURE__ */ s(Qn, { items: r.map((I) => I.id), strategy: Xn, children: r.map((I, y) => /* @__PURE__ */ s(Ur, { value: I, isSaving: d, showDefault: S, showIcons: k, actionOptions: p, colorOptions: m, iconOptions: O, onNameChange: (b) => A(y, {
2222
- name: b
2223
- }), onColorChange: (b) => A(y, {
2224
- color: b
2225
- }), onIconChange: (b) => A(y, {
2226
- icon: b
2227
- }), onActionsChange: (b) => A(y, {
2228
- actions: b
2229
- }), onSetDefault: () => a?.(I), onDelete: () => $(I) }, I.id)) }) }),
2230
- /* @__PURE__ */ x(qr, { type: "button", disabled: d, onClick: L, children: [
2231
- /* @__PURE__ */ s(se, { as: On, boxSize: "icon-xs" }),
2232
- /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: f })
2233
- ] })
2306
+ }, children: /* @__PURE__ */ s(jn, { items: r.map((B) => B.id), strategy: Un, children: r.map((B, W) => /* @__PURE__ */ s(Ur, { value: B, isSaving: u, readOnly: f, showDefault: A, showIcons: w, actionOptions: p, actionsLabel: g, colorOptions: b, iconOptions: T, onNameChange: (D) => C(W, {
2307
+ name: D
2308
+ }), onColorChange: (D) => C(W, {
2309
+ color: D
2310
+ }), onIconChange: (D) => C(W, {
2311
+ icon: D
2312
+ }), onActionsChange: (D) => C(W, {
2313
+ actions: D
2314
+ }), onDelete: () => _(B) }, B.id)) }) }),
2315
+ f ? null : /* @__PURE__ */ S(qr, { type: "button", disabled: u, onClick: N, children: [
2316
+ /* @__PURE__ */ s(ce, { as: $n, boxSize: "icon-xs" }),
2317
+ /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: h })
2318
+ ] }),
2319
+ A && r.length > 0 ? /* @__PURE__ */ s(Kr, { label: x, values: r, disabled: u || f, onSelect: (B) => c?.(B) }) : null
2234
2320
  ] })
2235
2321
  ] }),
2236
- /* @__PURE__ */ s(Vo, { open: !!w, onClose: () => $(null), onDelete: N, headline: R, notificationText: w ? E(w) : "", buttonText: C })
2322
+ /* @__PURE__ */ s(Ho, { open: !!I, onClose: () => _(null), onDelete: H, headline: v, notificationText: I ? O(I) : "", buttonText: k })
2237
2323
  ] });
2238
- }, Kr = (o) => {
2239
- const e = P(13), {
2324
+ };
2325
+ function Jr(o) {
2326
+ return o.isDefault;
2327
+ }
2328
+ const el = (o) => {
2329
+ const e = $(13), {
2240
2330
  onSave: t,
2241
2331
  onReset: n,
2242
2332
  hasChanges: r,
2243
2333
  isSaving: i,
2244
2334
  resetLabel: l,
2245
- saveLabel: a
2246
- } = o, c = l === void 0 ? "Reset" : l, u = a === void 0 ? "Save" : a;
2247
- let d;
2248
- e[0] !== r || e[1] !== i || e[2] !== n || e[3] !== c ? (d = r ? /* @__PURE__ */ s(de, { size: "sm", variant: "ghost", onClick: n, disabled: i, children: c }) : null, e[0] = r, e[1] = i, e[2] = n, e[3] = c, e[4] = d) : d = e[4];
2335
+ saveLabel: c
2336
+ } = o, a = l === void 0 ? "Reset" : l, d = c === void 0 ? "Save" : c;
2337
+ let u;
2338
+ e[0] !== r || e[1] !== i || e[2] !== n || e[3] !== a ? (u = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "ghost", onClick: n, disabled: i, children: a }) : null, e[0] = r, e[1] = i, e[2] = n, e[3] = a, e[4] = u) : u = e[4];
2249
2339
  const f = !r;
2250
2340
  let h;
2251
- e[5] !== i || e[6] !== t || e[7] !== u || e[8] !== f ? (h = /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: t, loading: i, disabled: f, children: u }), e[5] = i, e[6] = t, e[7] = u, e[8] = f, e[9] = h) : h = e[9];
2252
- let p;
2253
- return e[10] !== d || e[11] !== h ? (p = /* @__PURE__ */ x(re, { gap: "xs", children: [
2254
- d,
2341
+ e[5] !== i || e[6] !== t || e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: t, loading: i, disabled: f, children: d }), e[5] = i, e[6] = t, e[7] = d, e[8] = f, e[9] = h) : h = e[9];
2342
+ let m;
2343
+ return e[10] !== u || e[11] !== h ? (m = /* @__PURE__ */ S(ae, { gap: "xs", children: [
2344
+ u,
2255
2345
  h
2256
- ] }), e[10] = d, e[11] = h, e[12] = p) : p = e[12], p;
2257
- }, Zr = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), kt = (o, e) => o.map(e).sort(Zr), Jr = (o, e) => o.find((t) => t.id === e.id), ei = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2346
+ ] }), e[10] = u, e[11] = h, e[12] = m) : m = e[12], m;
2347
+ }, tl = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), Et = (o, e) => o.map(e).sort(tl), nl = (o, e) => o.find((t) => t.id === e.id), ol = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2258
2348
  if (r.isNew) return !0;
2259
- const i = Jr(o, r);
2349
+ const i = nl(o, r);
2260
2350
  return i ? n(i, r) || r.sortOrder !== i.sortOrder : !0;
2261
- }), _t = (o) => o instanceof Error ? o.message : o ? String(o) : null, yl = (o) => {
2351
+ }), kt = (o) => o instanceof Error ? o.message : o ? String(o) : null, Ti = (o) => {
2262
2352
  const {
2263
2353
  errorTitle: e,
2264
2354
  loadingText: t = "Loading...",
@@ -2266,63 +2356,76 @@ const Rt = {
2266
2356
  saveLabel: r,
2267
2357
  values: i,
2268
2358
  loadError: l,
2269
- onSave: a,
2270
- toEditorValue: c,
2359
+ onSave: c,
2360
+ readOnly: a,
2361
+ toEditorValue: d,
2271
2362
  valueNeedsUpdate: u,
2272
- ...d
2273
- } = o, [f, h] = ue([]), [p, m] = ue(/* @__PURE__ */ new Set()), [g, v] = ue(!1), [C, R] = ue(null), E = i ?? [];
2274
- he(() => {
2275
- i && h(kt(i, c));
2276
- }, [i, c]);
2277
- const O = async () => {
2278
- v(!0), R(null);
2363
+ ...f
2364
+ } = o, [h, m] = fe([]), [p, g] = fe(/* @__PURE__ */ new Set()), [x, b] = fe(!1), [E, P] = fe(null), k = i ?? [];
2365
+ ge(() => {
2366
+ i && m(Et(i, d));
2367
+ }, [i, d]);
2368
+ const v = async () => {
2369
+ b(!0), P(null);
2279
2370
  try {
2280
- await a({
2371
+ await c({
2281
2372
  deletedIds: p,
2282
- drafts: f,
2283
- values: E
2284
- }), m(/* @__PURE__ */ new Set());
2285
- } catch (T) {
2286
- R(T);
2373
+ drafts: h,
2374
+ values: k
2375
+ }), g(/* @__PURE__ */ new Set());
2376
+ } catch (y) {
2377
+ P(y);
2287
2378
  } finally {
2288
- v(!1);
2379
+ b(!1);
2289
2380
  }
2290
- }, S = ei(E, f, p, u), k = _t(l) ?? _t(C);
2291
- return /* @__PURE__ */ x(j, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2292
- k ? /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: e, size: "sm", children: k }) : null,
2293
- i === void 0 ? /* @__PURE__ */ x(re, { gap: "sm", color: "fg.muted", children: [
2294
- /* @__PURE__ */ s(Gt, { size: "sm" }),
2295
- /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: t })
2296
- ] }) : /* @__PURE__ */ s(Yr, { ...d, values: f, onValuesChange: h, onDeleteValue: (T) => {
2297
- T.isNew || m(/* @__PURE__ */ new Set([...p, T.id])), h(f.filter((A) => A.id !== T.id));
2298
- }, hasChanges: S, isSaving: g, headerActions: /* @__PURE__ */ s(Kr, { hasChanges: S, isSaving: g, resetLabel: n, saveLabel: r, onSave: () => {
2299
- O();
2300
- }, onReset: () => {
2301
- h(kt(E, c)), m(/* @__PURE__ */ new Set()), R(null);
2302
- } }) })
2381
+ }, O = ol(k, h, p, u), T = kt(l) ?? kt(E), A = (y) => {
2382
+ y.isNew || g(/* @__PURE__ */ new Set([...p, y.id])), m(h.filter((L) => L.id !== y.id));
2383
+ }, w = () => {
2384
+ m(Et(k, d)), g(/* @__PURE__ */ new Set()), P(null);
2385
+ };
2386
+ return /* @__PURE__ */ S(Q, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2387
+ T ? /* @__PURE__ */ s(dt, { status: "error", colorPalette: "red", title: e, size: "sm", children: T }) : null,
2388
+ i === void 0 ? /* @__PURE__ */ S(ae, { gap: "sm", color: "fg.muted", children: [
2389
+ /* @__PURE__ */ s(Mt, { size: "sm" }),
2390
+ /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: t })
2391
+ ] }) : /* @__PURE__ */ s(Zr, { ...f, readOnly: a, values: h, onValuesChange: m, onDeleteValue: A, onSetDefault: f.showDefault ? (y) => m(h.map((L) => ({
2392
+ ...L,
2393
+ isDefault: L.id === y.id
2394
+ }))) : f.onSetDefault, hasChanges: O, isSaving: x, headerActions: a ? void 0 : /* @__PURE__ */ s(el, { hasChanges: O, isSaving: x, resetLabel: n, saveLabel: r, onSave: () => {
2395
+ v();
2396
+ }, onReset: w }) })
2303
2397
  ] });
2304
2398
  }, $t = {
2305
2399
  sectionOrder: [],
2306
- nodeOrderBySection: {}
2307
- }, ti = "pstdio/ui/tree-list-order", ni = (o) => `${ti}/${o}`, Ot = (o) => {
2400
+ nodeOrderBySection: {},
2401
+ sectionSlotById: {}
2402
+ }, rl = "pstdio/ui/tree-list-order", ll = (o) => `${rl}/${o}`, Dt = (o) => {
2308
2403
  const e = /* @__PURE__ */ new Set(), t = [];
2309
2404
  for (const n of o)
2310
2405
  e.has(n) || (e.add(n), t.push(n));
2311
2406
  return t;
2312
- }, oi = (o) => ({
2407
+ }, il = (o) => ({
2313
2408
  sectionOrder: o.sectionOrder,
2314
- nodeOrderBySection: o.nodeOrderBySection
2315
- }), ri = (o) => lt()(rt((e) => ({
2409
+ nodeOrderBySection: o.nodeOrderBySection,
2410
+ sectionSlotById: o.sectionSlotById
2411
+ }), sl = (o) => lt()(ot((e) => ({
2316
2412
  ...$t,
2317
2413
  setSectionOrder: (t) => e((n) => ({
2318
2414
  ...n,
2319
- sectionOrder: Ot(t)
2415
+ sectionOrder: Dt(t)
2320
2416
  })),
2321
2417
  setNodeOrder: (t, n) => e((r) => ({
2322
2418
  ...r,
2323
2419
  nodeOrderBySection: {
2324
2420
  ...r.nodeOrderBySection,
2325
- [t]: Ot(n)
2421
+ [t]: Dt(n)
2422
+ }
2423
+ })),
2424
+ setSectionSlot: (t, n) => e((r) => ({
2425
+ ...r,
2426
+ sectionSlotById: {
2427
+ ...r.sectionSlotById,
2428
+ [t]: n
2326
2429
  }
2327
2430
  })),
2328
2431
  resetSectionOrder: () => e((t) => ({
@@ -2342,26 +2445,26 @@ const Rt = {
2342
2445
  }),
2343
2446
  reset: () => e($t)
2344
2447
  }), {
2345
- name: ni(o.storageKey),
2346
- storage: it(He),
2347
- partialize: oi
2348
- })), Dt = /* @__PURE__ */ new Map(), ii = (o) => {
2349
- const e = Dt.get(o);
2448
+ name: ll(o.storageKey),
2449
+ storage: rt(Me),
2450
+ partialize: il
2451
+ })), Ot = /* @__PURE__ */ new Map(), al = (o) => {
2452
+ const e = Ot.get(o);
2350
2453
  if (e) return e;
2351
- const t = ri({
2454
+ const t = sl({
2352
2455
  storageKey: o
2353
2456
  });
2354
- return Dt.set(o, t), t;
2355
- }, Cl = (o, e) => {
2356
- const t = P(2);
2457
+ return Ot.set(o, t), t;
2458
+ }, Pi = (o, e) => {
2459
+ const t = $(2);
2357
2460
  let n;
2358
- return t[0] !== o ? (n = ii(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2359
- }, Lt = (o, e) => {
2461
+ return t[0] !== o ? (n = al(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2462
+ }, cl = (o, e) => {
2360
2463
  if (e.length === 0) return o;
2361
- const t = new Map(o.map((l, a) => [l.id, a])), n = /* @__PURE__ */ new Set(), r = [];
2464
+ const t = new Map(o.map((l, c) => [l.id, c])), n = /* @__PURE__ */ new Set(), r = [];
2362
2465
  for (const l of e) {
2363
- const a = t.get(l);
2364
- a === void 0 || n.has(a) || (n.add(a), r.push(o[a]));
2466
+ const c = t.get(l);
2467
+ c === void 0 || n.has(c) || (n.add(c), r.push(o[c]));
2365
2468
  }
2366
2469
  let i = r.length > 0 && r.length !== o.length;
2367
2470
  for (let l = 0; l < o.length; l += 1)
@@ -2374,28 +2477,35 @@ const Rt = {
2374
2477
  }
2375
2478
  }
2376
2479
  return i ? r : o;
2377
- }, wl = (o, e, t) => {
2480
+ }, Ai = (o, e, t) => {
2378
2481
  let n = !1;
2379
- const r = Lt(o, e);
2482
+ const r = cl(o, e);
2380
2483
  r !== o && (n = !0);
2381
- const i = [];
2382
- for (const l of r) {
2383
- const a = t[l.id];
2384
- if (!a || a.length === 0) {
2385
- i.push(l);
2484
+ const i = new Map(o.flatMap((a) => a.nodes.map((d) => [d.id, d]))), l = new Set(Object.entries(t).filter(([a]) => o.some((d) => d.id === a)).flatMap(([, a]) => a.filter((d) => i.has(d)))), c = [];
2485
+ for (const a of r) {
2486
+ const d = t[a.id];
2487
+ if (!(a.id in t)) {
2488
+ const m = a.nodes.filter((p) => !l.has(p.id));
2489
+ m.length === a.nodes.length ? c.push(a) : (n = !0, c.push({
2490
+ ...a,
2491
+ nodes: m
2492
+ }));
2386
2493
  continue;
2387
2494
  }
2388
- const c = Lt(l.nodes, a);
2389
- c !== l.nodes ? (n = !0, i.push({
2390
- ...l,
2391
- nodes: c
2392
- })) : i.push(l);
2495
+ const u = (d ?? []).flatMap((m) => {
2496
+ const p = i.get(m);
2497
+ return p ? [p] : [];
2498
+ }), f = a.nodes.filter((m) => !l.has(m.id)), h = [...u, ...f];
2499
+ h.length !== a.nodes.length || h.some((m, p) => m !== a.nodes[p]) ? (n = !0, c.push({
2500
+ ...a,
2501
+ nodes: h
2502
+ })) : c.push(a);
2393
2503
  }
2394
- return n ? i : o;
2395
- }, zt = {
2504
+ return n ? c : o;
2505
+ }, Lt = {
2396
2506
  sectionOverrides: {},
2397
2507
  nodeOverrides: {}
2398
- }, li = "pstdio/ui/tree-list-visibility", si = (o) => `${li}/${o}`, ai = (o, e) => o ?? (e ? "hidden" : "shown"), ci = (o) => o === "hidden" ? "shown" : "hidden", Ge = (o, e, t) => {
2508
+ }, dl = "pstdio/ui/tree-list-visibility", ul = (o) => `${dl}/${o}`, fl = (o, e) => o ?? (e ? "hidden" : "shown"), hl = (o) => o === "hidden" ? "shown" : "hidden", Ge = (o, e, t) => {
2399
2509
  if (t === void 0) {
2400
2510
  if (!(e in o)) return o;
2401
2511
  const {
@@ -2408,14 +2518,14 @@ const Rt = {
2408
2518
  ...o,
2409
2519
  [e]: t
2410
2520
  };
2411
- }, Nt = (o, e, t) => {
2412
- const n = ci(ai(o[e], t));
2521
+ }, _t = (o, e, t) => {
2522
+ const n = hl(fl(o[e], t));
2413
2523
  return Ge(o, e, n);
2414
- }, di = (o) => ({
2524
+ }, ml = (o) => ({
2415
2525
  sectionOverrides: o.sectionOverrides,
2416
2526
  nodeOverrides: o.nodeOverrides
2417
- }), ui = (o) => lt()(rt((e) => ({
2418
- ...zt,
2527
+ }), pl = (o) => lt()(ot((e) => ({
2528
+ ...Lt,
2419
2529
  setSection: (t, n) => e((r) => ({
2420
2530
  ...r,
2421
2531
  sectionOverrides: Ge(r.sectionOverrides, t, n)
@@ -2426,11 +2536,11 @@ const Rt = {
2426
2536
  })),
2427
2537
  toggleSection: (t, n) => e((r) => ({
2428
2538
  ...r,
2429
- sectionOverrides: Nt(r.sectionOverrides, t, n)
2539
+ sectionOverrides: _t(r.sectionOverrides, t, n)
2430
2540
  })),
2431
2541
  toggleNode: (t, n) => e((r) => ({
2432
2542
  ...r,
2433
- nodeOverrides: Nt(r.nodeOverrides, t, n)
2543
+ nodeOverrides: _t(r.nodeOverrides, t, n)
2434
2544
  })),
2435
2545
  clearSection: (t) => e((n) => ({
2436
2546
  ...n,
@@ -2440,268 +2550,269 @@ const Rt = {
2440
2550
  ...n,
2441
2551
  nodeOverrides: Ge(n.nodeOverrides, t, void 0)
2442
2552
  })),
2443
- reset: () => e(zt)
2553
+ reset: () => e(Lt)
2444
2554
  }), {
2445
- name: si(o.storageKey),
2446
- storage: it(He),
2447
- partialize: di
2448
- })), Bt = /* @__PURE__ */ new Map(), fi = (o) => {
2449
- const e = Bt.get(o);
2555
+ name: ul(o.storageKey),
2556
+ storage: rt(Me),
2557
+ partialize: ml
2558
+ })), zt = /* @__PURE__ */ new Map(), gl = (o) => {
2559
+ const e = zt.get(o);
2450
2560
  if (e) return e;
2451
- const t = ui({
2561
+ const t = pl({
2452
2562
  storageKey: o
2453
2563
  });
2454
- return Bt.set(o, t), t;
2455
- }, Il = (o, e) => {
2456
- const t = P(2);
2564
+ return zt.set(o, t), t;
2565
+ }, Ri = (o, e) => {
2566
+ const t = $(2);
2457
2567
  let n;
2458
- return t[0] !== o ? (n = fi(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2459
- }, hi = [], tn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), mi = (o) => {
2568
+ return t[0] !== o ? (n = gl(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2569
+ }, bl = [], en = (o, e) => typeof o == "string" && e.some((t) => t.id === o), Sl = (o) => {
2460
2570
  const e = o.toLowerCase().split("."), t = [];
2461
2571
  for (let n = 1; n < e.length; n += 1) t.push(e.slice(n).join("."));
2462
2572
  return t;
2463
- }, pi = (o, e, t) => {
2573
+ }, xl = (o, e, t) => {
2464
2574
  if (t) return o.defaults.folder;
2465
2575
  const n = o.fileNames[e.toLowerCase()];
2466
2576
  if (n) return n;
2467
- for (const r of mi(e)) {
2577
+ for (const r of Sl(e)) {
2468
2578
  const i = o.fileExtensions[r];
2469
2579
  if (i) return i;
2470
2580
  }
2471
2581
  return o.defaults.file;
2472
- }, gi = (o, e) => {
2582
+ }, vl = (o, e) => {
2473
2583
  if (e.fontId) {
2474
2584
  const t = o.fonts.find((n) => n.fontFamily === `${o.id}-${e.fontId}`);
2475
2585
  if (t) return t.fontFamily;
2476
2586
  }
2477
2587
  return o.fonts[0]?.fontFamily;
2478
- }, bi = (o) => {
2588
+ }, yl = (o) => {
2479
2589
  const e = /^\\([0-9a-fA-F]+)$/.exec(o);
2480
2590
  return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : o;
2481
- }, xi = (o, e, t = !1) => {
2591
+ }, Cl = (o, e, t = !1) => {
2482
2592
  if (!o) return;
2483
- const n = pi(o, e, t);
2593
+ const n = xl(o, e, t);
2484
2594
  if (!n) return;
2485
2595
  const r = o.definitions[n];
2486
2596
  if (!r?.fontCharacter) return;
2487
- const i = gi(o, r);
2597
+ const i = vl(o, r);
2488
2598
  if (i)
2489
2599
  return {
2490
2600
  fontFamily: i,
2491
- fontCharacter: bi(r.fontCharacter),
2601
+ fontCharacter: yl(r.fontCharacter),
2492
2602
  fontColor: r.fontColor
2493
2603
  };
2494
- }, Wt = "data-pstdio-file-icon-fonts", Si = (o) => {
2604
+ }, Nt = "data-pstdio-file-icon-fonts", wl = (o) => {
2495
2605
  const e = o.src.map((t) => `url("${t.url}")${t.format ? ` format("${t.format}")` : ""}`).join(", ");
2496
2606
  return ["@font-face {", ` font-family: "${o.fontFamily}";`, ` src: ${e};`, ` font-weight: ${o.weight ?? "normal"};`, ` font-style: ${o.style ?? "normal"};`, "}"].join(`
2497
2607
  `);
2498
- }, vi = (o, e) => {
2608
+ }, Il = (o, e) => {
2499
2609
  if (typeof document > "u") return;
2500
- let t = document.querySelector(`style[${Wt}]`);
2501
- t || (t = document.createElement("style"), t.setAttribute(Wt, ""), document.head.appendChild(t));
2610
+ let t = document.querySelector(`style[${Nt}]`);
2611
+ t || (t = document.createElement("style"), t.setAttribute(Nt, ""), document.head.appendChild(t));
2502
2612
  const n = e.find((r) => r.id === o);
2503
- t.textContent = (n?.fonts ?? []).map(Si).join(`
2613
+ t.textContent = (n?.fonts ?? []).map(wl).join(`
2504
2614
 
2505
2615
  `);
2506
- }, nn = "file-icon-theme-preference", ut = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, on = pn(null), yi = (o) => {
2507
- if (typeof window > "u") return ut(o);
2508
- const e = He().getItem(nn);
2509
- return tn(e, o) ? e : ut(o);
2510
- }, Tl = (o) => {
2511
- const e = P(18), {
2616
+ }, tn = "file-icon-theme-preference", ct = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, nn = mn(null), Tl = (o) => {
2617
+ if (typeof window > "u") return ct(o);
2618
+ const e = Me().getItem(tn);
2619
+ return en(e, o) ? e : ct(o);
2620
+ }, Ei = (o) => {
2621
+ const e = $(18), {
2512
2622
  children: t,
2513
2623
  themePreferences: n
2514
- } = o, r = n === void 0 ? hi : n;
2624
+ } = o, r = n === void 0 ? bl : n;
2515
2625
  let i;
2516
- e[0] !== r ? (i = () => yi(r), e[0] = r, e[1] = i) : i = e[1];
2517
- const [l, a] = ue(i);
2518
- let c, u;
2519
- e[2] !== l || e[3] !== r ? (c = () => {
2520
- const m = tn(l, r) ? l : ut(r);
2521
- if (m !== l) {
2522
- a(m);
2626
+ e[0] !== r ? (i = () => Tl(r), e[0] = r, e[1] = i) : i = e[1];
2627
+ const [l, c] = fe(i);
2628
+ let a, d;
2629
+ e[2] !== l || e[3] !== r ? (a = () => {
2630
+ const p = en(l, r) ? l : ct(r);
2631
+ if (p !== l) {
2632
+ c(p);
2523
2633
  return;
2524
2634
  }
2525
- vi(m, r), typeof window < "u" && m && He().setItem(nn, m);
2526
- }, u = [l, r], e[2] = l, e[3] = r, e[4] = c, e[5] = u) : (c = e[4], u = e[5]), he(c, u);
2527
- let d;
2635
+ Il(p, r), typeof window < "u" && p && Me().setItem(tn, p);
2636
+ }, d = [l, r], e[2] = l, e[3] = r, e[4] = a, e[5] = d) : (a = e[4], d = e[5]), ge(a, d);
2637
+ let u;
2528
2638
  if (e[6] !== l || e[7] !== r) {
2529
- let m;
2530
- e[9] !== l ? (m = (g) => g.id === l, e[9] = l, e[10] = m) : m = e[10], d = r.find(m), e[6] = l, e[7] = r, e[8] = d;
2639
+ let p;
2640
+ e[9] !== l ? (p = (g) => g.id === l, e[9] = l, e[10] = p) : p = e[10], u = r.find(p), e[6] = l, e[7] = r, e[8] = u;
2531
2641
  } else
2532
- d = e[8];
2533
- const f = d;
2642
+ u = e[8];
2643
+ const f = u;
2534
2644
  let h;
2535
2645
  e[11] !== f || e[12] !== l || e[13] !== r ? (h = {
2536
2646
  fileIconThemePreference: l,
2537
2647
  fileIconThemePreferences: r,
2538
2648
  activeFileIconTheme: f,
2539
- setFileIconThemePreference: a
2649
+ setFileIconThemePreference: c
2540
2650
  }, e[11] = f, e[12] = l, e[13] = r, e[14] = h) : h = e[14];
2541
- let p;
2542
- return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(on, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
2543
- }, Pl = () => {
2544
- const o = gn(on);
2651
+ let m;
2652
+ return e[15] !== t || e[16] !== h ? (m = /* @__PURE__ */ s(nn, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = m) : m = e[17], m;
2653
+ }, ki = () => {
2654
+ const o = pn(nn);
2545
2655
  if (!o)
2546
2656
  throw new Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
2547
2657
  return o;
2548
- }, Al = (o, e = {}) => {
2658
+ }, $i = (o, e = {}) => {
2549
2659
  const {
2550
2660
  isDirectory: t = !1,
2551
2661
  theme: n,
2552
2662
  size: r = 16
2553
- } = e, i = xi(n, o, t);
2663
+ } = e, i = Cl(n, o, t);
2554
2664
  if (i) {
2555
- const a = {
2665
+ const c = {
2556
2666
  fontFamily: `"${i.fontFamily}"`,
2557
2667
  color: i.fontColor,
2558
2668
  fontSize: r,
2559
2669
  lineHeight: 1,
2560
2670
  display: "inline-flex"
2561
2671
  };
2562
- return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: a, children: i.fontCharacter });
2672
+ return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children: i.fontCharacter });
2563
2673
  }
2564
- if (t) return /* @__PURE__ */ s(Qt, { size: r });
2565
- const l = Fn(o);
2674
+ if (t) return /* @__PURE__ */ s(jt, { size: r });
2675
+ const l = Bn(o);
2566
2676
  return /* @__PURE__ */ s(l, { size: r });
2567
2677
  };
2568
2678
  export {
2569
- Fl as ANCHOR_GRID_VALUES,
2570
- Hl as ActionInput,
2571
- Xi as Activity,
2572
- st as ActivityAvatar,
2573
- Jn as ActivityComment,
2574
- eo as ActivityComposer,
2575
- no as ActivityEvent,
2576
- io as ActivityFeed,
2577
- ro as ActivityHeader,
2578
- Zn as ActivityReply,
2579
- oo as ActivityRoot,
2580
- lo as ActivityTimeline,
2581
- ft as AlertMessage,
2582
- Ml as AnchorGridInput,
2583
- nl as AttachedMenu,
2584
- ol as AttachedPanel,
2585
- Vl as AttachmentChip,
2586
- Gl as BooleanInput,
2587
- sl as Breadcrumb,
2588
- rl as BubbleButton,
2589
- il as BubblePanel,
2590
- kl as ChakraProvider,
2591
- Cs as Checkbox,
2592
- jl as Chip,
2593
- Ul as ColorInput,
2594
- Jo as ContentPlaceholder,
2595
- al as ContentPlaceholderLabel,
2596
- qi as DEFAULT_PALETTE_ASSET_LIMIT,
2597
- Ql as DateInput,
2598
- Vo as DeleteConfirmationModal,
2599
- ks as EmptyState,
2600
- cl as ErrorBoundary,
2601
- Tl as FileIconThemePreferenceProvider,
2602
- Xl as FileUploadInput,
2603
- Ln as Header,
2604
- Zi as HorizontalMenuStack,
2605
- ql as HorizontalTextInput,
2606
- lr as IconColorPicker,
2607
- dl as IntegrationCard,
2608
- Ji as ItemSection,
2609
- nt as ListRow,
2610
- Yl as MarkdownInput,
2611
- tl as NotificationCenter,
2612
- Kl as NumberInput,
2613
- Ct as PANEL_HEADER_CONTROL_SIZE,
2614
- ko as PANEL_HEADER_HEIGHT,
2615
- el as PANEL_HEADER_TAB_SIZE,
2616
- Yi as Palette,
2617
- Ki as PaletteShortcut,
2618
- xs as ParamEditor,
2619
- Zl as ParamEditorControlItem,
2620
- hl as ParamEditorControlList,
2621
- Jl as ParamEditorField,
2622
- es as ParamEditorFieldLabel,
2623
- ts as ParamEditorInlineGroup,
2624
- ns as ParamEditorLabel,
2625
- os as ParamEditorReadOnlyField,
2626
- rs as ParamEditorReadOnlyValue,
2627
- Ss as ParamEditorRow,
2628
- vs as ParamEditorSection,
2629
- Nl as Radio,
2630
- Bl as RadioGroup,
2631
- is as RangeInput,
2632
- ll as RepoPickerDialog,
2633
- Ll as ResizableSplitLayout,
2634
- $l as ResourceActionMenu,
2635
- ws as ResourceBadge,
2636
- Xt as ResourceContextMenu,
2637
- ls as ResourceInput,
2679
+ ji as ANCHOR_GRID_VALUES,
2680
+ Ui as ActionInput,
2681
+ Zl as Activity,
2682
+ it as ActivityAvatar,
2683
+ Kn as ActivityComment,
2684
+ Zn as ActivityComposer,
2685
+ eo as ActivityEvent,
2686
+ oo as ActivityFeed,
2687
+ no as ActivityHeader,
2688
+ Yn as ActivityReply,
2689
+ to as ActivityRoot,
2690
+ ro as ActivityTimeline,
2691
+ dt as AlertMessage,
2692
+ Qi as AnchorGridInput,
2693
+ ii as AttachedMenu,
2694
+ si as AttachedPanel,
2695
+ Xi as AttachmentChip,
2696
+ qi as BooleanInput,
2697
+ ui as Breadcrumb,
2698
+ ai as BubbleButton,
2699
+ ci as BubblePanel,
2700
+ Li as ChakraProvider,
2701
+ $s as Checkbox,
2702
+ Yi as Chip,
2703
+ Ki as ColorInput,
2704
+ Ko as ContentPlaceholder,
2705
+ fi as ContentPlaceholderLabel,
2706
+ Jl as DEFAULT_PALETTE_ASSET_LIMIT,
2707
+ Zi as DateInput,
2708
+ Ho as DeleteConfirmationModal,
2709
+ zs as EmptyState,
2710
+ hi as ErrorBoundary,
2711
+ Ei as FileIconThemePreferenceProvider,
2712
+ Ji as FileUploadInput,
2713
+ On as Header,
2714
+ ni as HorizontalMenuStack,
2715
+ es as HorizontalTextInput,
2716
+ rr as IconColorPicker,
2717
+ mi as IntegrationCard,
2718
+ oi as ItemSection,
2719
+ Qe as ListRow,
2720
+ ts as MarkdownInput,
2721
+ li as NotificationCenter,
2722
+ ns as NumberInput,
2723
+ vt as PANEL_HEADER_CONTROL_SIZE,
2724
+ Ro as PANEL_HEADER_HEIGHT,
2725
+ ri as PANEL_HEADER_TAB_SIZE,
2726
+ ei as Palette,
2727
+ ti as PaletteShortcut,
2728
+ As as ParamEditor,
2729
+ os as ParamEditorControlItem,
2730
+ bi as ParamEditorControlList,
2731
+ rs as ParamEditorField,
2732
+ ls as ParamEditorFieldLabel,
2733
+ is as ParamEditorInlineGroup,
2734
+ ss as ParamEditorLabel,
2735
+ as as ParamEditorReadOnlyField,
2736
+ cs as ParamEditorReadOnlyValue,
2737
+ Rs as ParamEditorRow,
2738
+ Es as ParamEditorSection,
2739
+ Mi as Radio,
2740
+ Vi as RadioGroup,
2741
+ ds as RangeInput,
2742
+ di as RepoPickerDialog,
2743
+ Wi as ResizableSplitLayout,
2744
+ zi as ResourceActionMenu,
2745
+ Ds as ResourceBadge,
2746
+ Qt as ResourceContextMenu,
2747
+ us as ResourceInput,
2638
2748
  tt as ScrollArea,
2639
- Kt as SearchModalContent,
2640
- Ol as SearchableMenu,
2641
- ul as SegmentedControl,
2642
- ss as SegmentedInput,
2643
- as as SelectionInput,
2644
- Is as SessionIndicator,
2645
- ml as Sidenav,
2646
- sr as SimpleCard,
2647
- ar as SimpleCardBody,
2648
- cs as Switch,
2649
- Yr as TagEditor,
2650
- Gr as TagEditorHeading,
2651
- Kr as TagEditorSaveBar,
2652
- yl as TagSettingsPanel,
2653
- nr as TagSwatch,
2654
- ds as TextInput,
2655
- zs as ThemePreferenceProvider,
2656
- fl as Toaster,
2749
+ Yt as SearchModalContent,
2750
+ Ni as SearchableMenu,
2751
+ pi as SegmentedControl,
2752
+ fs as SegmentedInput,
2753
+ hs as SelectionInput,
2754
+ vs as SessionIndicator,
2755
+ Si as Sidenav,
2756
+ lr as SimpleCard,
2757
+ ir as SimpleCardBody,
2758
+ Os as Switch,
2759
+ Zr as TagEditor,
2760
+ Vr as TagEditorHeading,
2761
+ el as TagEditorSaveBar,
2762
+ Ti as TagSettingsPanel,
2763
+ er as TagSwatch,
2764
+ ms as TextInput,
2765
+ Ms as ThemePreferenceProvider,
2766
+ gi as Toaster,
2657
2767
  Ue as Tooltip,
2658
- zn as TreeList,
2659
- us as VectorInput,
2660
- Ts as WorkspaceBadge,
2661
- vi as applyFileIconThemePreference,
2662
- Ns as applyThemePreference,
2663
- wl as applyTreeListOrder,
2664
- vl as buildTabVisibilityMenuActions,
2665
- xl as buildTreeVisibilityMenuActions,
2666
- fs as createGlyphIcon,
2667
- $s as createMonacoThemeFromVsCodeTheme,
2668
- Os as createThemePreferenceFromVsCodeTheme,
2669
- hi as defaultFileIconThemePreferences,
2670
- Bs as defaultThemePreferences,
2671
- fo as filterPaletteEntries,
2672
- gl as filterVisibleNodes,
2673
- bl as filterVisibleSections,
2674
- Sl as filterVisibleTabs,
2675
- Fn as getFileTypeIcon,
2676
- Nn as getIconComponent,
2677
- Ws as getInitialThemePreference,
2678
- Fr as getTabVisibilityStore,
2679
- Fs as getThemePreferenceClassName,
2680
- Hs as getThemePreferenceClassNames,
2681
- Ms as getThemePreferenceMode,
2682
- ii as getTreeListOrderStore,
2683
- fi as getTreeListVisibilityStore,
2684
- gs as handleDialogAcceptShortcut,
2685
- Us as installPrismGlobal,
2686
- hs as isAnchorGridValue,
2687
- tn as isFileIconThemePreference,
2688
- ms as isParamEditorRichControl,
2689
- Vs as isThemePreference,
2690
- Wn as optionColors,
2691
- Bn as optionIcons,
2692
- Ds as psTheme,
2693
- Al as resolveFileIconElement,
2694
- xi as resolveFileIconGlyph,
2695
- Ps as resolveSessionIndicatorColor,
2696
- As as resolveSessionIndicatorIcon,
2697
- Me as resolveVisibility,
2698
- Rs as sessionCompletionStatuses,
2699
- mr as toaster,
2700
- Pl as useFileIconThemePreference,
2701
- ze as useSidenavStore,
2702
- pl as useTabVisibilityStore,
2703
- Gs as useThemePreference,
2704
- Cl as useTreeListOrderStore,
2705
- Il as useTreeListVisibilityStore
2768
+ Ln as TreeList,
2769
+ Fi as TreeListDragProvider,
2770
+ ps as VectorInput,
2771
+ ys as WorkspaceBadge,
2772
+ Il as applyFileIconThemePreference,
2773
+ Vs as applyThemePreference,
2774
+ Ai as applyTreeListOrder,
2775
+ Ii as buildTabVisibilityMenuActions,
2776
+ Ci as buildTreeVisibilityMenuActions,
2777
+ gs as createGlyphIcon,
2778
+ Bs as createMonacoThemeFromVsCodeTheme,
2779
+ Ws as createThemePreferenceFromVsCodeTheme,
2780
+ bl as defaultFileIconThemePreferences,
2781
+ Gs as defaultThemePreferences,
2782
+ co as filterPaletteEntries,
2783
+ vi as filterVisibleNodes,
2784
+ yi as filterVisibleSections,
2785
+ wi as filterVisibleTabs,
2786
+ Bn as getFileTypeIcon,
2787
+ _n as getIconComponent,
2788
+ js as getInitialThemePreference,
2789
+ Br as getTabVisibilityStore,
2790
+ Us as getThemePreferenceClassName,
2791
+ Qs as getThemePreferenceClassNames,
2792
+ Xs as getThemePreferenceMode,
2793
+ al as getTreeListOrderStore,
2794
+ gl as getTreeListVisibilityStore,
2795
+ Cs as handleDialogAcceptShortcut,
2796
+ Ls as installPrismGlobal,
2797
+ bs as isAnchorGridValue,
2798
+ en as isFileIconThemePreference,
2799
+ Ss as isParamEditorRichControl,
2800
+ qs as isThemePreference,
2801
+ Nn as optionColors,
2802
+ zn as optionIcons,
2803
+ Fs as psTheme,
2804
+ $i as resolveFileIconElement,
2805
+ Cl as resolveFileIconGlyph,
2806
+ ws as resolveSessionIndicatorColor,
2807
+ Is as resolveSessionIndicatorIcon,
2808
+ Ve as resolveVisibility,
2809
+ Ts as sessionCompletionStatuses,
2810
+ fr as toaster,
2811
+ ki as useFileIconThemePreference,
2812
+ Be as useSidenavStore,
2813
+ xi as useTabVisibilityStore,
2814
+ Ys as useThemePreference,
2815
+ Pi as useTreeListOrderStore,
2816
+ Ri as useTreeListVisibilityStore
2706
2817
  };
2707
2818
  //# sourceMappingURL=index.js.map