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