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