@pstdio/ui 0.18.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 (72) hide show
  1. package/dist/chat-ui.js +941 -899
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/chat-ui/components/chat-message-list-items.d.ts +17 -0
  4. package/dist/components/chat-ui/components/message-types.d.ts +1 -0
  5. package/dist/components/chat-ui/components/timeline.d.ts +2 -0
  6. package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +1 -0
  7. package/dist/components/chat-ui/tool-rendering/shared.d.ts +3 -2
  8. package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +1 -0
  9. package/dist/components/data-table/data-table-skeleton.d.ts +13 -0
  10. package/dist/components/data-table/index.d.ts +2 -0
  11. package/dist/components/overlays/dialog-accept-shortcut.d.ts +12 -0
  12. package/dist/components/overlays/index.d.ts +1 -0
  13. package/dist/components/param-editor/index.d.ts +3 -1
  14. package/dist/components/param-editor/inputs/selection-input.d.ts +5 -0
  15. package/dist/components/param-editor/inputs/selection-menu.d.ts +6 -0
  16. package/dist/components/param-editor/param-editor-row.d.ts +17 -0
  17. package/dist/components/param-editor/param-editor.types.d.ts +18 -0
  18. package/dist/components/primitives/glyph-icon.d.ts +16 -0
  19. package/dist/components/primitives/icon-color-picker.d.ts +3 -13
  20. package/dist/components/primitives/icon-options.d.ts +301 -0
  21. package/dist/components/primitives/index.d.ts +10 -3
  22. package/dist/components/primitives/segmented-control.d.ts +20 -0
  23. package/dist/components/primitives/tag-swatch.d.ts +10 -0
  24. package/dist/components/tag-editor/index.d.ts +4 -0
  25. package/dist/components/tag-editor/tag-editor-heading.d.ts +11 -0
  26. package/dist/components/tag-editor/tag-editor-row.d.ts +1 -1
  27. package/dist/components/tag-editor/tag-editor-save-bar.d.ts +13 -0
  28. package/dist/components/tag-editor/tag-editor.types.d.ts +11 -11
  29. package/dist/components/tag-editor/tag-settings-panel.d.ts +3 -1
  30. package/dist/data-table.js +564 -522
  31. package/dist/data-table.js.map +1 -1
  32. package/dist/dialog-accept-shortcut-DAEBsoWW.js +7 -0
  33. package/dist/dialog-accept-shortcut-DAEBsoWW.js.map +1 -0
  34. package/dist/diff.js +2 -2
  35. package/dist/font/css/prompt-studio-icons.css +36 -6
  36. package/dist/font/prompt-studio-icons.eot +0 -0
  37. package/dist/font/prompt-studio-icons.svg +1 -1
  38. package/dist/font/prompt-studio-icons.ttf +0 -0
  39. package/dist/font/prompt-studio-icons.woff +0 -0
  40. package/dist/font/prompt-studio-icons.woff2 +0 -0
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +1978 -1712
  43. package/dist/index.js.map +1 -1
  44. package/dist/{kanban-renderer-toolbar-Db1mIWWd.js → kanban-renderer-toolbar-Bcj_N1qr.js} +66 -66
  45. package/dist/kanban-renderer-toolbar-Bcj_N1qr.js.map +1 -0
  46. package/dist/kanban-renderer.js +138 -135
  47. package/dist/kanban-renderer.js.map +1 -1
  48. package/dist/list-row-BtoVJpFs.js +821 -0
  49. package/dist/list-row-BtoVJpFs.js.map +1 -0
  50. package/dist/param-editor-XRjSu6MT.js +161 -0
  51. package/dist/param-editor-XRjSu6MT.js.map +1 -0
  52. package/dist/param-editor-field-B9lEPq8c.js +3028 -0
  53. package/dist/param-editor-field-B9lEPq8c.js.map +1 -0
  54. package/dist/style.css +1 -1
  55. package/dist/theme/primitives/sizes.d.ts +59 -0
  56. package/dist/theme/recipes/segmented-control.d.ts +22 -0
  57. package/dist/theme/recipes/switch.d.ts +1 -0
  58. package/dist/theme/recipes/tabs.d.ts +11 -0
  59. package/dist/{theme-poQlUgt0.js → theme-7PDdD9OD.js} +200 -120
  60. package/dist/theme-7PDdD9OD.js.map +1 -0
  61. package/dist/theme.js +1 -1
  62. package/dist/{tree-list-BAja2eXU.js → tree-list-B2L0cTj2.js} +2 -2
  63. package/dist/{tree-list-BAja2eXU.js.map → tree-list-B2L0cTj2.js.map} +1 -1
  64. package/package.json +2 -2
  65. package/dist/kanban-renderer-toolbar-Db1mIWWd.js.map +0 -1
  66. package/dist/list-row-BYWwcbGK.js +0 -823
  67. package/dist/list-row-BYWwcbGK.js.map +0 -1
  68. package/dist/param-editor-BCZOw5Gt.js +0 -140
  69. package/dist/param-editor-BCZOw5Gt.js.map +0 -1
  70. package/dist/param-editor-field-ZzZwgjZ_.js +0 -2094
  71. package/dist/param-editor-field-ZzZwgjZ_.js.map +0 -1
  72. package/dist/theme-poQlUgt0.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,32 +1,33 @@
1
- import { Avatar as it, Box as Q, Text as V, Stack as K, HStack as oe, chakra as dt, Textarea as ln, Spacer as Wt, IconButton as Ve, Icon as we, Timeline as Ie, Dialog as q, CloseButton as Ft, Input as ut, InputGroup as Ht, Kbd as sn, Collapsible as Qe, Flex as ge, Badge as Be, Button as ne, Skeleton as mt, Portal as Mt, Breadcrumb as fe, AbsoluteCenter as an, createToaster as cn, Toaster as dn, Toast as Le, Spinner as Vt, Table as X, Editable as lt, Menu as Fe } from "@chakra-ui/react";
2
- import { ChakraProvider as dl } from "@chakra-ui/react";
3
- import { jsx as l, jsxs as b, Fragment as Ue } from "react/jsx-runtime";
4
- import { c as T } from "react/compiler-runtime";
5
- import * as pt from "react";
6
- import { Children as un, useState as ce, useEffect as he, useRef as Me, Fragment as gt, forwardRef as Gt, Component as fn, createContext as hn, useContext as mn } from "react";
7
- import { Paperclip as pn, ArrowUp as gn, Check as Ye, ArrowRight as bn, ArrowLeft as xn, Option as bt, Command as Xe, ChevronRight as Sn, Bell as vn, X as Ut, Search as jt, SquareArrowOutUpRight as yn, Minus as Cn, FileText as wn, FolderOpen as In, Folder as Qt, Home as Tn, ChevronUp as Pn, ChevronDown as An, GripVertical as En, Trash2 as kn, Plus as Dn } from "lucide-react";
8
- import { T as Ge, S as Ze } from "./scroll-area-BMbg1WcD.js";
9
- import { useVirtualizer as Rn } from "@tanstack/react-virtual";
10
- import { L as Je, H as On, R as Xt } from "./list-row-BYWwcbGK.js";
11
- import { b as fl, c as hl } from "./list-row-BYWwcbGK.js";
12
- import { T as _n } from "./tree-list-BAja2eXU.js";
13
- import { R as pl } from "./tree-list-BAja2eXU.js";
1
+ import { Avatar as at, Box as V, Text as W, Stack as j, HStack as re, chakra as Ie, Textarea as rn, Spacer as Ft, IconButton as We, Icon as se, Timeline as we, Dialog as X, CloseButton as Ht, Input as Mt, InputGroup as Vt, Kbd as ln, Collapsible as Xe, Flex as ge, Badge as Ne, Button as de, Skeleton as mt, Portal as Je, Breadcrumb as fe, AbsoluteCenter as sn, Center as an, Popover as qe, Grid as pt, defineSlotRecipe as cn, createSlotRecipeContext as dn, createToaster as un, Toaster as fn, Toast as Le, Spinner as Gt, Editable as Be, Menu as Ve } from "@chakra-ui/react";
2
+ import { ChakraProvider as $l } from "@chakra-ui/react";
3
+ import { jsx as s, jsxs as x, Fragment as Fe } from "react/jsx-runtime";
4
+ import { c as P } from "react/compiler-runtime";
5
+ import * as gt from "react";
6
+ import { Children as hn, useState as ue, useEffect as he, useRef as je, Fragment as bt, forwardRef as jt, Component as mn, createContext as pn, useContext as gn } from "react";
7
+ import { Paperclip as bn, ArrowUp as xn, Check as et, ArrowRight as Sn, ArrowLeft as vn, Option as xt, Command as Ye, ChevronRight as yn, Bell as Cn, X as wn, Search as Ut, SquareArrowOutUpRight as In, Minus as Tn, FileText as Pn, FolderOpen as An, Folder as Qt, Home as Rn, ChevronUp as En, ChevronDown as kn, GripVertical as _n, Trash2 as $n, Plus as On } from "lucide-react";
8
+ import { T as Ue, S as tt } 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
14
  import { A as ft } from "./radio-cLMEBBZk.js";
15
- import { R as bl, a as xl } from "./radio-cLMEBBZk.js";
16
- import { I as qt } from "./param-editor-field-ZzZwgjZ_.js";
17
- import { d as vl, e as yl, f as Cl, A as wl, B as Il, C as Tl, h as Pl, D as Al, F as El, H as kl, M as Dl, j as Rl, k as Ol, P as _l, l as $l, m as Ll, l as zl, n as Bl, o as Nl, R as Wl, p as Fl, q as Hl, S as Ml, r as Vl, b as Gl, T as Ul, V as jl, W as Ql, g as Xl, s as ql, a as Kl, t as Yl, u as Zl, v as Jl, w as es } from "./param-editor-field-ZzZwgjZ_.js";
18
- import { P as ns, a as os } from "./param-editor-BCZOw5Gt.js";
19
- import { C as is } from "./checkbox-B2zYVemL.js";
20
- import { E as ss } from "./empty-state-Bo4HVrgr.js";
21
- import { g as $n } from "./resource-badge-CuItchgL.js";
22
- import { R as cs } from "./resource-badge-CuItchgL.js";
23
- import { useStore as et } from "zustand";
24
- import { persist as tt, createJSONStorage as nt } from "zustand/middleware";
25
- import { createStore as ot } from "zustand/vanilla";
26
- import { c as Ne } from "./browser-storage-BinyFNJX.js";
27
- import { useSensors as Ln, useSensor as zn, PointerSensor as Bn, DndContext as Nn, closestCenter as Wn } from "@dnd-kit/core";
28
- import { useSortable as Fn, SortableContext as Hn, verticalListSortingStrategy as Mn, arrayMove as Vn } from "@dnd-kit/sortable";
29
- import { CSS as Gn } from "@dnd-kit/utilities";
15
+ import { R as 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";
30
31
  import "@fontsource/inter/400.css";
31
32
  import "@fontsource/inter/500.css";
32
33
  import "@fontsource/playfair-display/400.css";
@@ -35,310 +36,310 @@ import "@fontsource/playfair-display/700.css";
35
36
  import "@fontsource/onest/400.css";
36
37
  import "@fontsource/onest/500.css";
37
38
  import "@fontsource/onest/700.css";
38
- import { c as us, a as fs, t as hs } from "./theme-poQlUgt0.js";
39
- import { T as ps, a as gs, d as bs, b as xs, c as Ss, e as vs, g as ys, i as Cs, u as ws } from "./theme-preference-DOzHx64J.js";
40
- import { i as Ts } from "./lazy-markdown-editor-DwhqQ-NN.js";
41
- const rt = (n) => {
42
- const e = T(14), {
43
- actor: o,
44
- icon: t,
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(it.Image, { src: c, alt: d }), e[4] = c, e[5] = d, e[6] = u) : u = e[6];
55
- const h = o?.name;
56
- let f;
57
- e[7] !== a || e[8] !== s || e[9] !== h ? (f = /* @__PURE__ */ l(it.Fallback, { name: h, background: a, color: s }), e[7] = a, e[8] = s, e[9] = h, e[10] = f) : f = e[10];
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(it.Root, { size: "2xs", flexShrink: 0, children: [
60
- u,
61
- f
62
- ] }), e[11] = u, e[12] = f, e[13] = p) : p = e[13], p;
63
- }, Un = () => {
64
- const n = T(1);
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
- }, Kt = (n) => {
68
- const e = T(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(rt, { actor: o }), e[0] = o, e[1] = i) : i = e[1];
75
- let s;
76
- e[2] !== o.name ? (s = /* @__PURE__ */ l(V, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: o.name }), e[2] = o.name, e[3] = s) : s = e[3];
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(Ue, { children: [
79
- /* @__PURE__ */ l(Un, {}),
80
- /* @__PURE__ */ l(V, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: t })
81
- ] }) : null, e[4] = t, e[5] = a) : a = e[5];
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
- }, jn = (n) => {
92
- const e = T(18);
93
- let o, t, r, i, s;
94
- e[0] !== n ? ({
95
- actor: t,
96
- timestamp: s,
97
- actions: o,
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(Kt, { 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
- }, Qn = (n) => {
113
- const e = T(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 = un.count(s) > 0;
125
- let u;
126
- e[8] !== o || e[9] !== t || e[10] !== c ? (u = /* @__PURE__ */ l(Kt, { actor: t, timestamp: c, actions: o }), e[8] = o, e[9] = t, e[10] = c, e[11] = u) : u = e[11];
127
- let h;
128
- e[12] !== r ? (h = /* @__PURE__ */ l(V, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", whiteSpace: "pre-wrap", children: r }), e[12] = r, e[13] = h) : h = e[13];
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
- }, Xn = (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, S = i === "inline", A = x.trim().length > 0, E = (v) => {
160
- o === void 0 && g(v), h?.(v);
161
- }, R = (v) => {
162
- v.preventDefault(), A && (f?.(x.trim()), o === void 0 && g(""));
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(dt.form, { width: "full", background: "bg", borderWidth: S ? "0" : "1px", borderColor: "border", borderRadius: S ? "0" : "sm", transition: "border-color 0.12s ease", _hover: S ? void 0 : {
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: S ? void 0 : {
167
+ }, _focusWithin: C ? void 0 : {
167
168
  borderColor: "border.accent"
168
- }, onSubmit: R, ...p, children: /* @__PURE__ */ b(oe, { alignItems: "flex-start", gap: "xs", padding: S ? "sm" : "md", children: [
169
- e ? /* @__PURE__ */ l(rt, { actor: e }) : null,
170
- /* @__PURE__ */ b(Q, { flex: "1", minW: "0", children: [
171
- /* @__PURE__ */ l(ln, { value: x, rows: s, resize: "none", border: "0", padding: "0", minH: S ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
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: (v) => E(v.currentTarget.value) }),
174
- /* @__PURE__ */ b(oe, { gap: "2xs", marginTop: S ? "0" : "sm", children: [
175
- d,
176
- /* @__PURE__ */ l(Wt, {}),
177
- /* @__PURE__ */ l(Ge, { content: a, children: /* @__PURE__ */ l(Ve, { size: "2xs", variant: "ghost", "aria-label": a, type: "button", onClick: u, children: /* @__PURE__ */ l(we, { as: pn, boxSize: "14px" }) }) }),
178
- /* @__PURE__ */ l(Ge, { content: c, children: /* @__PURE__ */ l(Ve, { size: "2xs", variant: "subtle", "aria-label": c, type: "submit", disabled: !A, children: /* @__PURE__ */ l(we, { as: gn, boxSize: "14px" }) }) })
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
- }, qn = () => {
183
- const n = T(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
- }, Kn = (n) => {
187
- const e = T(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(Ie.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(Ie.Connector, { children: [
203
- h,
204
- /* @__PURE__ */ l(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ l(rt, { actor: o, icon: r, color: d, background: u }) })
205
- ] }), e[9] = o, e[10] = r, e[11] = u, e[12] = d, e[13] = f) : f = e[13];
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(Ue, { children: [
212
- /* @__PURE__ */ l(qn, {}),
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(Ie.Content, { gap: "0", paddingBottom: "xs", minW: "0", children: /* @__PURE__ */ b(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
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 S;
222
- return e[24] !== i || e[25] !== f || e[26] !== x ? (S = /* @__PURE__ */ b(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...i, children: [
223
- f,
224
- x
225
- ] }), e[24] = i, e[25] = f, e[26] = x, e[27] = S) : S = e[27], S;
226
- }, Yn = (n) => {
227
- const e = T(6);
228
- let o, t;
229
- e[0] !== n ? ({
230
- children: o,
231
- ...t
232
- } = n, e[0] = n, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
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
- }, Zn = (n) => {
236
- const e = T(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
- }, Jn = (n) => {
254
- const e = T(6);
255
- let o, t;
256
- e[0] !== n ? ({
257
- children: o,
258
- ...t
259
- } = n, e[0] = n, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
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
- }, eo = (n) => {
263
- const e = T(7);
264
- let o, t;
265
- e[0] !== n ? ({
266
- children: o,
267
- ...t
268
- } = n, e[0] = n, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
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(Ie.Root, { size: "sm", variant: "plain", width: "full", css: r, ...t, children: o }), e[4] = o, e[5] = t, e[6] = i) : i = e[6], i;
275
- }, ki = {
276
- Root: Yn,
277
- Header: Zn,
278
- Feed: Jn,
279
- Timeline: eo,
280
- Event: Kn,
281
- Comment: Qn,
282
- Reply: jn,
283
- Composer: Xn,
284
- Avatar: rt
285
- }, Di = 48, to = (n) => {
286
- const e = typeof n.label == "string" ? n.label : "", o = typeof n.secondaryLabel == "string" ? n.secondaryLabel : "";
287
- return `${e} ${n.searchText ?? ""} ${o}`;
288
- }, Yt = (n, e) => n.trimStart().startsWith(e), no = (n, e = [], o) => e.find((r) => r.inputPrefix && Yt(n, r.inputPrefix))?.id ?? o ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, oo = (n, e = [], o) => {
289
- const t = e.find((r) => r.id === o && r.inputPrefix && Yt(n, r.inputPrefix));
290
- return t?.inputPrefix ? n.trimStart().slice(t.inputPrefix.length).trim() : n.trim();
291
- }, ro = (n, e) => {
292
- const o = {};
293
- return n.filter((t) => {
294
- const r = t.assetType;
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
- }, io = (n, e) => {
300
- const o = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), t = n.filter((r) => e.mode && r.mode !== e.mode ? !1 : o ? to(r).toLowerCase().includes(o) : !0);
301
- return o || e.defaultAssetLimit === void 0 ? t : ro(t, e.defaultAssetLimit);
302
- }, lo = 24, so = 40, ao = 384, co = (n) => ({
303
- id: n.id,
304
- label: n.label,
305
- description: n.description ?? n.secondaryLabel,
306
- icon: n.icon,
307
- endContent: n.endContent ?? (n.shortcut || n.isSelected ? /* @__PURE__ */ b(oe, { gap: "2", children: [
308
- n.shortcut,
309
- n.isSelected ? /* @__PURE__ */ l(we, { as: Ye, boxSize: "14px", color: "fg.muted" }) : null
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
- }), uo = (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
- }, fo = (n, e) => n.findIndex((o) => o.type === "entry" && o.entryIndex === e), ho = (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 = uo(e), a = fo(s, o), c = Rn({
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" ? lo : so,
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: ao
342
+ height: po
342
343
  },
343
344
  overscan: 6
344
345
  });
@@ -347,15 +348,15 @@ const rt = (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(Je, { variant: "full-width", ...co(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
- }, xt = (n) => n != null, mo = (n, e) => n && e ? "space-between" : e ? "flex-end" : "flex-start", po = {
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 rt = (n) => {
380
381
  outline: "none",
381
382
  boxShadow: "none"
382
383
  }
383
- }, Zt = (n) => {
384
- const e = T(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, S = i === void 0 ? r : i, A = d === void 0 ? !1 : d, E = u === void 0 ? "Close" : u;
401
- let R;
402
- if (e[0] !== h || e[1] !== o || e[2] !== E || e[3] !== p || e[4] !== f || e[5] !== g || e[6] !== x || e[7] !== m || e[8] !== S || e[9] !== c || e[10] !== s || e[11] !== a || e[12] !== r || e[13] !== t || e[14] !== A) {
403
- const v = xt(f), _ = xt(p);
404
- let C;
405
- e[16] !== m ? (C = m ?? {}, e[16] = m, e[17] = C) : C = e[17];
406
- let $, P, O;
407
- e[18] !== C ? ({
408
- maxH: P,
409
- showHorizontalScrollbar: O,
410
- ...$
411
- } = C, e[18] = C, e[19] = $, e[20] = P, e[21] = O) : ($ = e[19], P = e[20], O = e[21]);
412
- const N = P === void 0 ? "24rem" : P, W = O === void 0 ? !1 : O;
413
- let L;
414
- e[22] !== g ? (L = (U) => g(U.target.value), e[22] = g, e[23] = L) : L = e[23];
415
- let k;
416
- e[24] !== x || e[25] !== S || e[26] !== c || e[27] !== a || e[28] !== r || e[29] !== t || e[30] !== L ? (k = /* @__PURE__ */ l(ut, { ref: a, value: t, placeholder: r, "aria-label": S, autoComplete: "off", autoFocus: c, mx: "xs", h: "3rem", ...po, onChange: L, onKeyDown: x }), e[24] = x, e[25] = S, e[26] = c, e[27] = a, e[28] = r, e[29] = t, e[30] = L, e[31] = k) : k = e[31];
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);
417
405
  let w;
418
- e[32] !== s || e[33] !== k ? (w = /* @__PURE__ */ l(Ht, { startElement: s, width: "full", children: k }), e[32] = s, e[33] = k, e[34] = w) : w = e[34];
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,
411
+ ...$
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;
414
+ let D;
415
+ e[22] !== g ? (D = (M) => g(M.target.value), e[22] = g, e[23] = D) : D = e[23];
416
+ let I;
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];
419
418
  let y;
420
- e[35] !== E || e[36] !== A ? (y = A ? /* @__PURE__ */ l(q.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ l(Ft, { "aria-label": E, size: "sm", mr: "2" }) }) : null, e[35] = E, e[36] = A, e[37] = y) : y = e[37];
421
- let z;
422
- e[38] !== y || e[39] !== w ? (z = /* @__PURE__ */ b(q.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
423
- w,
424
- y
425
- ] }), e[38] = y, e[39] = w, e[40] = z) : z = e[40];
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(Ze, { maxH: N, showHorizontalScrollbar: W, ...$, children: o }), e[41] = o, e[42] = N, e[43] = $, e[44] = W, e[45] = B) : B = e[45];
428
- let j;
429
- e[46] !== h || e[47] !== B ? (j = /* @__PURE__ */ b(q.Body, { p: "0", children: [
430
- h,
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], R = /* @__PURE__ */ b(Ue, { children: [
433
- z,
434
- j,
435
- v || _ ? /* @__PURE__ */ b(q.Footer, { justifyContent: mo(v, _), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
436
- v ? /* @__PURE__ */ l(Q, { minW: "0", children: f }) : null,
437
- _ ? /* @__PURE__ */ l(Q, { flexShrink: 0, children: p }) : null
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] = E, e[3] = p, e[4] = f, e[5] = g, e[6] = x, e[7] = m, e[8] = S, e[9] = c, e[10] = s, e[11] = a, e[12] = r, e[13] = t, e[14] = A, e[15] = R;
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
- R = e[15];
442
- return R;
443
- }, St = (n, e, o) => typeof n == "function" ? n(e) : n ?? o, Ri = (n) => {
444
- const e = T(71), {
445
- open: o,
446
- entries: t,
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: S,
461
- onEscape: A
462
- } = n, E = r === void 0 ? "" : r, R = i === void 0 ? 0 : i, v = c === void 0 ? "default" : c, _ = h === void 0 ? "No results." : h, [C, $] = ce(E), [P, O] = ce(R), N = Me(null), W = Me(null);
463
- let L;
464
- e[0] !== v ? (L = {
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
- resetKey: v
467
- }, e[0] = v, e[1] = L) : L = e[1];
468
- const k = Me(L);
469
- let w, y, z, B, j;
470
- if (e[2] !== P || e[3] !== t || e[4] !== m || e[5] !== d || e[6] !== s || e[7] !== a || e[8] !== u || e[9] !== C) {
471
- const H = s ?? no(C, a);
472
- y = m ? m(t, C, H) : io(t, {
473
- query: C,
474
- mode: H,
475
- getEffectiveQuery: (me) => oo(me, a, H)
476
- }), w = y[P] ?? null, B = {
477
- query: C,
478
- mode: H,
479
- activeIndex: P,
480
- entries: y
481
- }, z = St(d, B, null), j = St(u, B, "Search"), e[2] = P, e[3] = t, e[4] = m, e[5] = d, e[6] = s, e[7] = a, e[8] = u, e[9] = C, e[10] = w, e[11] = y, e[12] = z, e[13] = B, e[14] = j;
467
+ resetKey: S
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,
475
+ mode: F,
476
+ getEffectiveQuery: (me) => co(me, a, F)
477
+ }), y = b[T] ?? null, B = {
478
+ query: w,
479
+ mode: F,
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
- w = e[10], y = 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 = (H) => {
487
- $(H), x?.(H);
488
- }, e[15] = x, e[16] = G) : G = e[16];
489
- const D = 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] !== w ? (Y = () => {
492
- w?.onActivate();
493
- }, e[17] = w, e[18] = Y) : Y = e[18];
494
- const Z = Y;
495
- let I;
496
- e[19] !== S ? (I = () => {
497
- S();
498
- }, e[19] = S, e[20] = I) : I = e[20];
499
- const M = I;
500
- let F, ue;
501
- e[21] !== R || e[22] !== E || e[23] !== o || e[24] !== v ? (ue = () => {
502
- const H = k.current;
503
- if (k.current = {
504
- open: o,
505
- resetKey: v
506
- }, !o || !(!H.open || H.resetKey !== v))
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,
506
+ resetKey: S
507
+ }, !t || !(!F.open || F.resetKey !== S))
507
508
  return;
508
- $(E), O(R);
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,60 +516,60 @@ const rt = (n) => {
515
516
  Ce.setSelectionRange(pe, pe);
516
517
  }, 0);
517
518
  return () => clearTimeout(ye);
518
- }, F = [R, E, o, v], e[21] = R, e[22] = E, e[23] = o, e[24] = v, e[25] = F, e[26] = ue) : (F = e[25], ue = e[26]), he(ue, F);
519
- let te, J;
520
- e[27] !== y.length ? (te = () => {
521
- O((H) => Math.min(H, Math.max(y.length - 1, 0)));
522
- }, J = [y.length], e[27] = y.length, e[28] = te, e[29] = J) : (te = e[28], J = e[29]), he(te, J);
523
- let re, ie;
524
- e[30] !== w || e[31] !== P || e[32] !== g ? (re = () => {
525
- g?.(w, P);
526
- }, ie = [w, P, g], e[30] = w, e[31] = P, e[32] = g, e[33] = re, e[34] = ie) : (re = e[33], ie = e[34]), he(re, ie);
527
- let se;
528
- e[35] !== w || e[36] !== M || e[37] !== y.length || e[38] !== A || e[39] !== C || e[40] !== Z || e[41] !== D || e[42] !== B ? (se = () => {
529
- if (!A?.({
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: w,
532
- entryCount: y.length,
533
- setQuery: D,
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 (C.length > 0) {
539
- D(""), 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] = w, e[36] = M, e[37] = y.length, e[38] = A, e[39] = C, e[40] = Z, e[41] = D, e[42] = B, e[43] = se) : se = e[43];
545
- const ae = se;
546
- let le;
547
- e[44] !== y.length || e[45] !== ae || e[46] !== Z ? (le = (H) => {
548
- if (H.key === "ArrowDown") {
549
- H.preventDefault(), O((me) => Math.min(me + 1, Math.max(y.length - 1, 0)));
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) => {
549
+ if (F.key === "ArrowDown") {
550
+ F.preventDefault(), A((me) => Math.min(me + 1, Math.max(b.length - 1, 0)));
550
551
  return;
551
552
  }
552
- if (H.key === "ArrowUp") {
553
- H.preventDefault(), O(go);
553
+ if (F.key === "ArrowUp") {
554
+ F.preventDefault(), A(Co);
554
555
  return;
555
556
  }
556
- if (H.key === "Enter") {
557
- H.preventDefault(), Z();
557
+ if (F.key === "Enter") {
558
+ F.preventDefault(), q();
558
559
  return;
559
560
  }
560
- H.key === "Escape" && (H.preventDefault(), H.stopPropagation(), ae());
561
- }, e[44] = y.length, e[45] = ae, e[46] = Z, e[47] = le) : le = e[47];
562
- const de = le;
563
- let ee;
564
- e[48] !== M ? (ee = (H) => !H.open && M(), e[48] = M, e[49] = ee) : ee = e[49];
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
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ s(X.Backdrop, {}), e[50] = be) : be = e[50];
567
568
  let Te;
568
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"
@@ -576,23 +577,23 @@ const rt = (n) => {
576
577
  }
577
578
  }, e[51] = Te) : Te = e[51];
578
579
  let xe;
579
- e[52] !== D ? (xe = (H) => {
580
- D(H), O(0);
581
- }, e[52] = D, 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] !== P || e[55] !== _ || e[56] !== y ? (Se = /* @__PURE__ */ l(ho, { entries: y, activeIndex: P, emptyLabel: _, onHover: O, scrollRef: W }), e[54] = P, e[55] = _, e[56] = y, e[57] = Se) : Se = e[57];
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] !== C || e[62] !== z || e[63] !== U || e[64] !== xe || e[65] !== Se ? (ve = /* @__PURE__ */ l(q.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ l(q.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ l(Zt, { searchValue: C, searchPlaceholder: U, searchIcon: z, searchInputRef: N, showCloseButton: !0, footerStart: f, footerEnd: p, scrollAreaProps: Te, onSearchChange: xe, onSearchKeyDown: de, children: Se }) }) }), e[58] = p, e[59] = f, e[60] = de, e[61] = C, e[62] = z, e[63] = U, e[64] = xe, e[65] = Se, e[66] = ve) : ve = e[66];
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];
586
587
  let Pe;
587
- return e[67] !== o || e[68] !== ee || e[69] !== ve ? (Pe = /* @__PURE__ */ b(q.Root, { open: o, onOpenChange: ee, children: [
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] = Pe) : Pe = e[70], Pe;
591
+ ] }), e[67] = t, e[68] = oe, e[69] = ve, e[70] = Pe) : Pe = e[70], Pe;
591
592
  };
592
- function go(n) {
593
- return Math.max(n - 1, 0);
593
+ function Co(o) {
594
+ return Math.max(o - 1, 0);
594
595
  }
595
- const bo = {
596
+ const wo = {
596
597
  alt: {
597
598
  label: "Alt"
598
599
  },
@@ -608,134 +609,134 @@ const bo = {
608
609
  shift: {
609
610
  label: "Shift"
610
611
  }
611
- }, xo = {
612
+ }, Io = {
612
613
  alt: {
613
614
  label: "Option",
614
- Icon: bt
615
+ Icon: xt
615
616
  },
616
617
  cmd: {
617
618
  label: "Command",
618
- Icon: Xe
619
+ Icon: Ye
619
620
  },
620
621
  command: {
621
622
  label: "Command",
622
- Icon: Xe
623
+ Icon: Ye
623
624
  },
624
625
  meta: {
625
626
  label: "Command",
626
- Icon: Xe
627
+ Icon: Ye
627
628
  },
628
629
  mod: {
629
630
  label: "Command",
630
- Icon: Xe
631
+ Icon: Ye
631
632
  },
632
633
  option: {
633
634
  label: "Option",
634
- Icon: bt
635
+ Icon: xt
635
636
  },
636
637
  shift: {
637
638
  label: "Shift"
638
639
  }
639
- }, So = {
640
+ }, To = {
640
641
  arrowleft: {
641
642
  label: "Arrow Left",
642
- Icon: xn
643
+ Icon: vn
643
644
  },
644
645
  arrowright: {
645
646
  label: "Arrow Right",
646
- Icon: bn
647
+ Icon: Sn
647
648
  }
648
- }, vo = () => {
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
- }, yo = (n, e = vo()) => {
653
- const o = n.toLowerCase(), t = e === "mac" ? xo : bo;
654
- return So[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
- }, vt = (n) => n.split("+").map((e) => e.trim()).filter(Boolean), Co = (n) => (Array.isArray(n) ? n.map(vt) : [vt(n)]).map((o) => o.map((t) => yo(t))), Oi = (n) => {
658
- const e = T(4), {
659
- binding: o
660
- } = n;
661
- let t;
662
- if (e[0] !== o) {
663
- const i = Co(o);
664
- t = i.map((s, a) => /* @__PURE__ */ b(gt, { children: [
665
- s.map((c, d) => /* @__PURE__ */ b(gt, { children: [
666
- /* @__PURE__ */ l(sn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": c.label, children: c.Icon ? /* @__PURE__ */ l(c.Icon, { size: 12, "aria-hidden": "true" }) : c.label }),
667
- d < s.length - 1 ? " " : null
668
- ] }, `${c.label}-${d}`)),
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(wo).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(Ue, { 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 wo(n) {
677
- return n.label;
677
+ function Eo(o) {
678
+ return o.label;
678
679
  }
679
- function _i(n) {
680
- const e = T(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 $i = (n) => {
695
- const e = T(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(Qe.Indicator, { transition: "transform 0.2s", _open: {
709
- transform: "rotate(90deg)"
710
- }, children: /* @__PURE__ */ l(Sn, { 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(Qe.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: Io, 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(Qe.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(Qe.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 Io(n) {
732
- return n.stopPropagation();
732
+ function ko(o) {
733
+ return o.stopPropagation();
733
734
  }
734
- const To = "2.5rem", yt = "2xs", Li = "sm", Jt = (n) => n === "urgent" ? "red" : n === "high" ? "orange" : n === "low" ? "gray" : "blue", Po = (n) => n !== "normal", Ao = (n) => [n.title, n.body, n.kind, n.priority, n.status, n.sourceLabel, n.targetLabel, n.searchText, ...(n.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), Eo = (n, e) => {
735
- const o = e.trim().toLowerCase();
736
- return o ? n.filter((t) => Ao(t).includes(o)) : n;
737
- }, en = (n) => {
738
- const e = n.filter((r) => r.kind === "blocked"), o = n.filter((r) => r.kind !== "blocked" && (r.priority === "urgent" || r.priority === "high")), t = n.filter((r) => r.kind !== "blocked" && (r.priority === "normal" || r.priority === "low"));
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 To = "2.5rem", yt = "2xs", Li = "sm", Jt = (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
- }, ko = (n) => en(n).flatMap((e) => e.items), Do = (n) => [n.body, n.targetLabel, n.sourceLabel, n.timeLabel].filter(Boolean).join(" · "), Ro = (n, e) => {
753
- const o = [];
754
- return e.onDismiss && o.push({
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(Ut, { 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 = T(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 = Po(t.priority) ? /* @__PURE__ */ l(Be, { size: "sm", colorPalette: Jt(t.priority), textTransform: "capitalize", flexShrink: 0, children: t.priority }) : null, e[0] = t.priority, e[1] = i) : i = e[1];
769
- let s;
770
- e[2] !== t.status ? (s = t.status === "open" ? /* @__PURE__ */ l(Be, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = t.status, e[3] = s) : s = e[3];
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 = en(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(Je, { id: d.id, label: d.title, description: Do(d), icon: /* @__PURE__ */ l(we, { as: vn, boxSize: "14px" }), iconColor: `${Jt(d.priority)}.500`, variant: "compact", isSelected: u === e, endContent: /* @__PURE__ */ l(Oo, { item: d, actions: d.actions ?? [], onRunAction: i }), actions: Ro(d, n), tabIndex: -1, onActivate: () => t?.(d), onPointerMove: () => r(u) }, d.id);
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
- }, $o = () => {
802
- const n = T(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(Lo) }), n[0] = e) : e = n[0], e;
805
- }, zi = (n) => {
806
- const e = T(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, S] = ce(""), [A, E] = ce(0), R = Me(null), v = f ?? x;
819
- let _, C;
820
- e[0] !== v || e[1] !== a ? (_ = Eo(a, v), C = ko(_), e[0] = v, e[1] = a, e[2] = _, e[3] = C) : (_ = e[2], C = e[3]);
821
- const $ = C, P = $[A] ?? null;
822
- let O, N;
823
- e[4] !== p ? (O = () => {
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 D = setTimeout(() => R.current?.focus(), 0);
827
- return () => clearTimeout(D);
828
- }, N = [p], e[4] = p, e[5] = O, e[6] = N) : (O = e[5], N = e[6]), he(O, N);
829
- let W, L;
830
- e[7] !== $.length ? (W = () => {
831
- E((D) => Math.min(D, Math.max($.length - 1, 0)));
832
- }, L = [$.length], e[7] = $.length, e[8] = W, e[9] = L) : (W = e[8], L = e[9]), he(W, L);
833
- let k;
834
- e[10] !== h || e[11] !== f ? (k = (D) => {
835
- f === void 0 && S(D), h?.(D), E(0);
836
- }, e[10] = h, e[11] = f, e[12] = k) : k = e[12];
837
- const w = k;
838
- let y;
839
- e[13] !== P || e[14] !== v || e[15] !== $.length || e[16] !== d || e[17] !== u || e[18] !== w ? (y = (D) => {
840
- if (D.key === "ArrowDown") {
841
- D.preventDefault(), E((Y) => Math.min(Y + 1, Math.max($.length - 1, 0)));
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 (D.key === "ArrowUp") {
845
- D.preventDefault(), E(zo);
845
+ if (z.key === "ArrowUp") {
846
+ z.preventDefault(), E(Mo);
846
847
  return;
847
848
  }
848
- if (D.key === "Enter") {
849
- D.preventDefault(), P && d?.(P);
849
+ if (z.key === "Enter") {
850
+ z.preventDefault(), T && u?.(T);
850
851
  return;
851
852
  }
852
- if (D.key === "Escape") {
853
- if (D.preventDefault(), v.length > 0) {
854
- w("");
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] = P, e[14] = v, e[15] = $.length, e[16] = d, e[17] = u, e[18] = w, e[19] = y) : y = e[19];
860
- const z = y;
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(jt, { 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] !== A || e[23] !== m || e[24] !== r || e[25] !== _ || e[26] !== g || e[27] !== n ? (U = r ? /* @__PURE__ */ l(Q, { p: "sm", children: /* @__PURE__ */ l(ft, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ l($o, {}) : _.length === 0 ? /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ l(_o, { ...n, items: _, activeIndex: A, onActiveIndexChange: E }), e[22] = A, e[23] = m, e[24] = r, e[25] = _, e[26] = g, e[27] = n, e[28] = U) : U = e[28];
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] !== v || e[30] !== p || e[31] !== i || e[32] !== s || e[33] !== z || e[34] !== U || e[35] !== w ? (G = /* @__PURE__ */ l(Zt, { searchValue: v, searchPlaceholder: "Search notifications", searchIcon: B, searchInputRef: R, searchAutoFocus: p, footerStart: s, footerEnd: i, scrollAreaProps: j, onSearchChange: w, onSearchKeyDown: z, children: U }), e[29] = v, e[30] = p, e[31] = i, e[32] = s, e[33] = z, e[34] = U, e[35] = w, e[36] = G) : G = e[36], G;
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 Lo(n) {
874
- return /* @__PURE__ */ b(K, { gap: "2xs", children: [
875
- /* @__PURE__ */ l(mt, { h: "4", w: n % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
876
- /* @__PURE__ */ l(mt, { h: "3", w: "88%", borderRadius: "xs" })
877
- ] }, n);
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 zo(n) {
880
- return Math.max(n - 1, 0);
880
+ function Mo(o) {
881
+ return Math.max(o - 1, 0);
881
882
  }
882
- const Bi = (n) => {
883
- const e = T(6);
884
- let o, t;
885
- e[0] !== n ? ({
886
- children: o,
887
- ...t
888
- } = n, e[0] = n, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
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
- }, Bo = "20rem", Ni = (n) => {
892
- const e = T(15);
893
- let o, t, r, i, s, a;
894
- e[0] !== n ? ({
895
- children: o,
896
- header: t,
897
- width: s,
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 ? Bo : c), h = d ? "full" : c;
903
- let f;
904
- e[7] !== o ? (f = /* @__PURE__ */ l(ge, { flex: "1", minH: 0, direction: "column", children: o }), e[7] = o, e[8] = f) : f = e[8];
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
- }, Wi = Gt(function(e, o) {
911
- const t = T(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(Ve, { ref: o, rounded: "full", size: "lg", borderWidth: "1px", borderColor: u, transition: "border-color 0.2s ease-in-out", _hover: h, _active: f, ...s, children: r }), t[8] = r, t[9] = o, t[10] = s, t[11] = u, t[12] = p) : p = t[12];
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(Ge, { content: c, children: m }) : m, t[13] = m, t[14] = c, t[15] = g) : g = t[15];
932
- let x;
933
- return t[16] !== i || t[17] !== g ? (x = /* @__PURE__ */ l(dt.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), t[16] = i, t[17] = g, t[18] = x) : x = t[18], x;
934
- }), Fi = Gt(function(e, o) {
935
- const t = T(28), {
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, S = r === void 0 ? !1 : r, A = h === void 0 ? "28rem" : h, E = f === void 0 ? "38rem" : f;
950
- if (!S)
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 R = g ?? i;
953
- let v;
954
- t[0] !== s ? (v = /* @__PURE__ */ l(oe, { gap: "1", minW: "0", children: s }), t[0] = s, t[1] = v) : v = t[1];
955
- let _;
956
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ l(Wt, {}), t[2] = _) : _ = t[2];
957
- let C;
958
- t[3] !== d || t[4] !== u ? (C = d ? /* @__PURE__ */ l(Ge, { content: u, children: /* @__PURE__ */ l(Ve, { size: yt, variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ l(yn, { size: 16 }) }) }) : null, t[3] = d, t[4] = u, t[5] = C) : C = t[5];
953
+ const O = g ?? i;
954
+ let S;
955
+ n[0] !== l ? (S = /* @__PURE__ */ s(re, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = S) : S = n[1];
956
+ let k;
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(Ge, { content: c, children: /* @__PURE__ */ l(Ve, { size: yt, variant: "ghost", "aria-label": c, onClick: a, children: /* @__PURE__ */ l(Cn, { size: 16 }) }) }) : null, t[6] = c, t[7] = a, t[8] = $) : $ = t[8];
961
- let P;
962
- t[9] !== C || t[10] !== $ ? (P = /* @__PURE__ */ b(oe, { gap: "1", children: [
963
- C,
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] = C, t[10] = $, t[11] = P) : P = t[11];
966
- let O;
967
- t[12] !== v || t[13] !== P ? (O = /* @__PURE__ */ b(On, { variant: "main", gap: "sm", flexShrink: 0, children: [
968
- v,
969
- _,
970
- P
971
- ] }), t[12] = v, t[13] = P, t[14] = O) : O = t[14];
972
- let N;
973
- t[15] !== x ? (N = /* @__PURE__ */ l(Q, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: x }), t[15] = x, t[16] = N) : N = t[16];
974
- let W;
975
- t[17] !== N || t[18] !== O ? (W = /* @__PURE__ */ b(ge, { direction: "column", h: "full", children: [
976
- O,
977
- N
978
- ] }), t[17] = N, t[18] = O, t[19] = W) : W = t[19];
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: [
969
+ S,
970
+ k,
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] !== E || t[22] !== o || t[23] !== W || t[24] !== R || t[25] !== m || t[26] !== A ? (L = /* @__PURE__ */ l(Mt, { children: /* @__PURE__ */ l(dt.section, { ref: o, role: "dialog", "data-testid": m, "aria-label": R, position: "fixed", bottom: "3", right: "3", w: A, maxW: "calc(100vw - 2rem)", h: E, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: W }) }), t[20] = p, t[21] = E, t[22] = o, t[23] = W, t[24] = R, t[25] = m, t[26] = A, t[27] = L) : L = t[27], L;
981
- }), No = (n) => {
982
- const [e, o] = ce(!1), {
983
- headline: t,
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
- }, Wo = (n) => n.isDirectory ? n.isGitRepo ? In : Qt : wn, Fo = (n, e) => {
1017
- const o = e.trim().toLowerCase();
1018
- return o ? n.filter((t) => `${t.name} ${t.path}`.toLowerCase().includes(o)) : n;
1019
- }, Ho = (n) => {
1020
- const e = T(22), {
1021
- entry: o,
1022
- selectedPath: t,
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 = Wo(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(Be, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = o.isGitRepo, e[13] = x) : x = e[13];
1040
- let S;
1041
- return e[14] !== o.name || e[15] !== o.path || e[16] !== u || e[17] !== c || e[18] !== h || e[19] !== g || e[20] !== x ? (S = /* @__PURE__ */ l(Je, { variant: "compact", isSelected: h, id: f, label: p, icon: g, endContent: x, disabled: c, onActivate: u }), e[14] = o.name, e[15] = o.path, e[16] = u, e[17] = c, e[18] = h, e[19] = g, e[20] = x, e[21] = S) : S = e[21], S;
1042
- }, Mo = (n) => {
1043
- if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(n.key))
1045
+ e[10] !== m ? (g = /* @__PURE__ */ s(se, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
1046
+ let v;
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
- }, Hi = (n) => {
1051
- const e = T(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, S = t === void 0 ? "Select folder" : t, A = i === void 0 ? "" : i, E = a === void 0 ? null : a;
1068
- let R;
1069
- e[0] !== c ? (R = c === void 0 ? [] : c, e[0] = c, e[1] = R) : R = e[1];
1070
- const v = R, _ = d === void 0 ? !1 : d, C = u === void 0 ? "" : u, $ = h === void 0 ? !1 : h, [P, O] = ce("");
1071
- let N;
1072
- e[2] !== v ? (N = new Set(v), e[2] = v, e[3] = N) : N = e[3];
1073
- const W = N, L = Fo(s, P), k = A || "Home";
1074
- let w, y;
1075
- e[4] !== o || e[5] !== k ? (y = () => {
1076
- !o || !k || O("");
1077
- }, w = [o, k], e[4] = o, e[5] = k, e[6] = w, e[7] = y) : (w = e[6], y = e[7]), he(y, w);
1078
- const z = q, B = !0, j = !0, U = !1;
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 = ($e) => !$e.open && f(), e[8] = f, e[9] = G) : G = e[9];
1081
- let D;
1082
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ l(q.Backdrop, {}), e[10] = D) : D = e[10];
1083
- const Y = q, Z = q;
1084
- let I;
1085
- e[11] !== S ? (I = /* @__PURE__ */ l(V, { textStyle: "heading/M", children: S }), e[11] = S, e[12] = I) : I = e[12];
1086
- let M;
1087
- e[13] !== r ? (M = r ? /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = M) : M = e[14];
1088
- let F;
1089
- e[15] !== I || e[16] !== M ? (F = /* @__PURE__ */ l(q.Header, { children: /* @__PURE__ */ b(K, { gap: "xs", children: [
1090
- I,
1091
- M
1092
- ] }) }), e[15] = I, e[16] = M, e[17] = F) : F = e[17];
1093
- const ue = q, te = K, J = "md";
1094
- let re;
1095
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ l(Tn, { size: 16 }), e[18] = re) : re = e[18];
1096
- let ie;
1097
- e[19] !== m ? (ie = /* @__PURE__ */ l(ne, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: re }), e[19] = m, e[20] = ie) : ie = e[20];
1098
- const se = !A || A === "/";
1099
- let ae;
1100
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ l(Pn, { size: 16 }), e[21] = ae) : ae = e[21];
1101
- let le;
1102
- e[22] !== g || e[23] !== se ? (le = /* @__PURE__ */ l(ne, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: se, children: ae }), e[22] = g, e[23] = se, e[24] = le) : le = e[24];
1103
- let de;
1104
- e[25] !== k ? (de = /* @__PURE__ */ l(V, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: k }), e[25] = k, e[26] = de) : de = e[26];
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, Te = "0", xe = "1px", Se = "md", ve = "border.subtle", Pe = "hidden";
1112
- let H;
1113
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ l(jt, { size: 14 }), e[31] = H) : H = e[31];
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";
1120
+ let F;
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 = ($e) => O($e.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] !== P ? (ye = /* @__PURE__ */ l(Ht, { startElement: H, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ l(ut, { mx: "xs", value: P, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: me }) }), e[33] = P, e[34] = ye) : ye = e[34];
1118
- const Ce = _ ? /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : C ? /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: C }) : L.length === 0 ? /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ l(Ze, { maxHeight: "320px", contentProps: {
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: Mo, children: L.map(($e) => /* @__PURE__ */ l(Ho, { entry: $e, selectedPath: E, selectedPathSet: W, onEntryClick: x }, $e.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: Te, borderWidth: xe, borderRadius: Se, borderColor: ve, overflow: Pe, 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
1134
  let Ae;
1127
- e[39] !== te || e[40] !== ee || e[41] !== pe ? (Ae = /* @__PURE__ */ b(te, { gap: J, children: [
1128
- ee,
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] = Ae) : Ae = e[42];
1138
+ ] }), e[39] = J, e[40] = oe, e[41] = pe, e[42] = Ae) : Ae = e[42];
1139
+ let Re;
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];
1131
1141
  let Ee;
1132
- e[43] !== ue.Body || e[44] !== Ae ? (Ee = /* @__PURE__ */ l(ue.Body, { children: Ae }), e[43] = ue.Body, e[44] = Ae, e[45] = Ee) : Ee = e[45];
1142
+ e[46] !== h ? (Ee = /* @__PURE__ */ s(de, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Ee) : Ee = e[47];
1133
1143
  let ke;
1134
- e[46] !== f ? (ke = /* @__PURE__ */ l(ne, { variant: "outline", onClick: f, children: "Cancel" }), e[46] = f, e[47] = ke) : ke = e[47];
1135
- let De;
1136
- e[48] !== $ || e[49] !== p ? (De = /* @__PURE__ */ l(ne, { onClick: p, disabled: $, children: "Select repository" }), e[48] = $, e[49] = p, e[50] = De) : De = e[50];
1137
- let Re;
1138
- e[51] !== ke || e[52] !== De ? (Re = /* @__PURE__ */ l(q.Footer, { children: /* @__PURE__ */ b(K, { direction: "row", gap: "sm", children: [
1139
- ke,
1140
- De
1141
- ] }) }), e[51] = ke, e[52] = De, e[53] = Re) : Re = e[53];
1142
- let Oe;
1143
- e[54] !== Z.Content || e[55] !== F || e[56] !== Ee || e[57] !== Re ? (Oe = /* @__PURE__ */ b(Z.Content, { children: [
1144
- F,
1145
- Ee,
1146
- Re
1147
- ] }), e[54] = Z.Content, e[55] = F, e[56] = Ee, e[57] = Re, e[58] = Oe) : Oe = e[58];
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];
1148
1145
  let _e;
1149
- e[59] !== Y.Positioner || e[60] !== Oe ? (_e = /* @__PURE__ */ l(Y.Positioner, { children: Oe }), e[59] = Y.Positioner, e[60] = Oe, e[61] = _e) : _e = e[61];
1150
- let je;
1151
- return e[62] !== o || e[63] !== z.Root || e[64] !== G || e[65] !== D || e[66] !== _e ? (je = /* @__PURE__ */ b(z.Root, { lazyMount: B, unmountOnExit: j, closeOnInteractOutside: U, open: o, onOpenChange: G, children: [
1152
- D,
1146
+ e[51] !== Ee || e[52] !== ke ? (_e = /* @__PURE__ */ s(X.Footer, { children: /* @__PURE__ */ x(j, { direction: "row", gap: "sm", children: [
1147
+ Ee,
1148
+ ke
1149
+ ] }) }), e[51] = Ee, e[52] = ke, e[53] = _e) : _e = e[53];
1150
+ let $e;
1151
+ e[54] !== q.Content || e[55] !== K || e[56] !== Re || e[57] !== _e ? ($e = /* @__PURE__ */ x(q.Content, { children: [
1152
+ K,
1153
+ Re,
1153
1154
  _e
1154
- ] }), e[62] = o, e[63] = z.Root, e[64] = G, e[65] = D, e[66] = _e, e[67] = je) : je = e[67], je;
1155
- }, Ke = {
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];
1158
+ let Qe;
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",
@@ -1171,106 +1179,106 @@ const Bi = (n) => {
1171
1179
  _focusVisible: {
1172
1180
  outline: "none"
1173
1181
  }
1174
- }, Ct = {
1175
- ...Ke,
1182
+ }, wt = {
1183
+ ...Ze,
1176
1184
  color: "fg",
1177
1185
  cursor: "default",
1178
1186
  textDecoration: "none",
1179
1187
  _hover: {
1180
1188
  textDecoration: "none"
1181
1189
  }
1182
- }, Vo = (n) => !!(n.url || n.onClick), Go = (n) => {
1183
- const e = T(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 && !Vo(o)) {
1189
- let s;
1190
- return e[0] !== o.title ? (s = /* @__PURE__ */ l(fe.CurrentLink, { ...Ct, children: o.title }), e[0] = o.title, e[1] = s) : s = e[1], s;
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, ...Ke, children: /* @__PURE__ */ l(r, { to: o.url, children: o.title }) }), e[2] = r, e[3] = o.title, e[4] = o.url, e[5] = s) : s = e[5], s;
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, ...Ke, 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, ...Ke, 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", ...Ct, children: o.title }), e[12] = o.title, e[13] = i) : i = e[13], i;
1206
- }, Uo = (n) => {
1207
- const e = T(6), {
1208
- item: o
1209
- } = n;
1210
- let t;
1211
- e[0] !== n ? (t = /* @__PURE__ */ l(Go, { ...n }), e[0] = n, e[1] = t) : t = e[1];
1212
- const r = t;
1213
- if (!o.contextMenuActions?.length)
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(Xt, { actions: o.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = o.contextMenuActions, e[5] = s) : s = e[5], s;
1221
- }, jo = (n) => {
1222
- const e = T(3), {
1223
- separator: o
1224
- } = n;
1225
- if (o === void 0) {
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
- }, Mi = pt.forwardRef(function(e, o) {
1232
- const t = T(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(pt.Fragment, { children: [
1247
- /* @__PURE__ */ l(fe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ l(Uo, { item: p, isCurrent: g, linkComponent: r }) }),
1248
- g ? null : /* @__PURE__ */ l(jo, { separator: a })
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
- }), Qo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, Xo = (n) => {
1258
- const e = T(3);
1259
- let o;
1260
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
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: Qo,
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
- }, Vi = (n) => {
1269
- const e = T(2);
1270
- let o;
1271
- return e[0] !== n ? (o = /* @__PURE__ */ l(Q, { p: "2", children: /* @__PURE__ */ l(V, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...n }) }), e[0] = n, e[1] = o) : o = e[1], o;
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 Gi extends fn {
1281
+ class ul extends mn {
1274
1282
  state = {
1275
1283
  error: null
1276
1284
  };
@@ -1279,8 +1287,8 @@ class Gi extends fn {
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,159 +1298,367 @@ class Gi extends fn {
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(qo, { 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 qo = (n) => {
1302
- const e = T(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(Xo, { height: "100%", width: "100%", children: /* @__PURE__ */ l(an, { children: /* @__PURE__ */ l(ft, { status: "error", title: s, children: u }) }) }), e[9] = s, e[10] = u, e[11] = h) : h = e[11], h;
1321
- }, Ko = (n) => {
1322
- const e = T(6);
1323
- let o, t;
1324
- e[0] !== n ? ({
1325
- children: o,
1326
- ...t
1327
- } = n, e[0] = n, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
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
- }, Yo = (n) => {
1331
- const e = T(6);
1332
- let o, t;
1333
- e[0] !== n ? ({
1334
- children: o,
1335
- ...t
1336
- } = n, e[0] = n, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
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
- }, Ui = (n) => {
1340
- const e = T(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(Be, { 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(Be, { 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(Be, { size: "sm", variant: "outline", children: a }), e[8] = a, e[9] = g) : g = e[9];
1363
- let x;
1364
- e[10] !== f || e[11] !== p || e[12] !== m || e[13] !== g ? (x = /* @__PURE__ */ b(oe, { gap: "2", flexWrap: "wrap", children: [
1365
- f,
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 S;
1371
- e[15] !== r ? (S = /* @__PURE__ */ l(V, { color: "fg.muted", children: r }), e[15] = r, e[16] = S) : S = e[16];
1372
- let A;
1373
- e[17] !== x || e[18] !== S ? (A = /* @__PURE__ */ l(Q, { flex: "1", minW: "0", children: /* @__PURE__ */ b(K, { gap: "1", children: [
1374
- x,
1375
- S
1376
- ] }) }), e[17] = x, e[18] = S, e[19] = A) : A = e[19];
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];
1377
1498
  let E;
1378
- e[20] !== u ? (E = u && /* @__PURE__ */ l(we, { color: "fg.success", children: /* @__PURE__ */ l(Ye, {}) }), e[20] = u, e[21] = E) : E = e[21];
1379
- const R = d ?? (u ? "Active" : "Connect");
1380
- let v;
1381
- e[22] !== u || e[23] !== R || e[24] !== E ? (v = /* @__PURE__ */ b(ne, { type: "button", disabled: u, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
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");
1501
+ let S;
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: [
1382
1503
  E,
1383
- R
1384
- ] }), e[22] = u, e[23] = R, e[24] = E, e[25] = v) : v = e[25];
1385
- let _;
1386
- return e[26] !== h || e[27] !== v || e[28] !== A ? (_ = /* @__PURE__ */ l(Ko, { children: /* @__PURE__ */ l(Yo, { children: /* @__PURE__ */ b(oe, { gap: "4", alignItems: "flex-start", children: [
1387
- h,
1388
- A,
1389
- v
1390
- ] }) }) }), e[26] = h, e[27] = v, e[28] = A, e[29] = _) : _ = e[29], _;
1391
- }, Zo = cn({
1504
+ O
1505
+ ] }), e[22] = d, e[23] = O, e[24] = E, e[25] = S) : S = e[25];
1506
+ let k;
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,
1510
+ S
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"
1525
+ },
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
+ }
1553
+ }
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({
1392
1608
  placement: "top",
1393
1609
  pauseOnPageIdle: !0,
1394
1610
  duration: 1e4
1395
- }), ji = () => {
1396
- const n = T(1);
1611
+ }), ml = () => {
1612
+ const o = P(1);
1397
1613
  let e;
1398
- return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ l(Mt, { children: /* @__PURE__ */ l(dn, { toaster: Zo, insetInline: {
1614
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(fn, { toaster: pr, insetInline: {
1399
1615
  mdDown: "4"
1400
- }, children: Jo }) }), n[0] = e) : e = n[0], e;
1616
+ }, children: gr }) }), o[0] = e) : e = o[0], e;
1401
1617
  };
1402
- function Jo(n) {
1403
- return /* @__PURE__ */ b(Le.Root, { width: {
1618
+ function gr(o) {
1619
+ return /* @__PURE__ */ x(Le.Root, { width: {
1404
1620
  md: "sm"
1405
1621
  }, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
1406
- n.type === "loading" ? /* @__PURE__ */ l(Vt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ l(Le.Indicator, {}),
1407
- /* @__PURE__ */ b(K, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1408
- n.title && /* @__PURE__ */ l(Le.Title, { textStyle: "label/S/medium", children: n.title }),
1409
- n.description && /* @__PURE__ */ l(Ze, { maxHeight: "12rem", contentProps: {
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: {
1410
1626
  paddingEnd: "1"
1411
- }, children: /* @__PURE__ */ l(Le.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 }) })
1412
1628
  ] }),
1413
- n.action && /* @__PURE__ */ l(Le.ActionTrigger, { children: n.action.label }),
1414
- /* @__PURE__ */ l(Le.CloseTrigger, {})
1629
+ o.action && /* @__PURE__ */ s(Le.ActionTrigger, { children: o.action.label }),
1630
+ /* @__PURE__ */ s(Le.CloseTrigger, {})
1415
1631
  ] });
1416
1632
  }
1417
- const Qi = (n) => {
1418
- const e = T(6);
1419
- let o, t;
1420
- e[0] !== n ? ({
1421
- children: o,
1422
- ...t
1423
- } = n, e[0] = n, e[1] = o, e[2] = t) : (o = e[1], t = e[2]);
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]);
1424
1640
  let r;
1425
- return e[3] !== o || e[4] !== t ? (r = /* @__PURE__ */ l(K, { gap: "sm", minW: "0", ...t, children: o }), e[3] = o, e[4] = t, e[5] = r) : r = e[5], r;
1426
- }, wt = {
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;
1642
+ }, It = {
1427
1643
  open: !0,
1428
1644
  expandedSections: [],
1429
1645
  expandedNodes: [],
1430
1646
  width: null
1431
- }, er = "pstdio/ui/sidenav", tr = (n) => `${er}/${n}`, It = (n, e) => n.includes(e) ? n.filter((o) => o !== e) : [...n, e], Tt = (n, e, o) => o ? n.includes(e) ? n : [...n, e] : n.filter((t) => t !== e), nr = (n) => ({
1432
- open: n.open,
1433
- expandedSections: n.expandedSections,
1434
- expandedNodes: n.expandedNodes,
1435
- width: n.width
1436
- }), or = (n) => {
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) => {
1437
1653
  const {
1438
1654
  storageKey: e,
1439
- initialState: o
1440
- } = n, t = {
1441
- ...wt,
1442
- ...o
1655
+ initialState: t
1656
+ } = o, n = {
1657
+ ...It,
1658
+ ...t
1443
1659
  };
1444
- return ot()(tt((r) => ({
1445
- ...t,
1660
+ return lt()(rt((r) => ({
1661
+ ...n,
1446
1662
  openSidenav: () => r((i) => ({
1447
1663
  ...i,
1448
1664
  open: !0
@@ -1455,123 +1671,123 @@ const Qi = (n) => {
1455
1671
  ...i,
1456
1672
  open: !i.open
1457
1673
  })),
1458
- toggleSection: (i) => r((s) => ({
1459
- ...s,
1460
- expandedSections: It(s.expandedSections, i)
1674
+ toggleSection: (i) => r((l) => ({
1675
+ ...l,
1676
+ expandedSections: Tt(l.expandedSections, i)
1461
1677
  })),
1462
- toggleNode: (i) => r((s) => ({
1463
- ...s,
1464
- expandedNodes: It(s.expandedNodes, i)
1678
+ toggleNode: (i) => r((l) => ({
1679
+ ...l,
1680
+ expandedNodes: Tt(l.expandedNodes, i)
1465
1681
  })),
1466
- setSectionExpanded: (i, s) => r((a) => ({
1682
+ setSectionExpanded: (i, l) => r((a) => ({
1467
1683
  ...a,
1468
- expandedSections: Tt(a.expandedSections, i, s)
1684
+ expandedSections: Pt(a.expandedSections, i, l)
1469
1685
  })),
1470
- setNodeExpanded: (i, s) => r((a) => ({
1686
+ setNodeExpanded: (i, l) => r((a) => ({
1471
1687
  ...a,
1472
- expandedNodes: Tt(a.expandedNodes, i, s)
1688
+ expandedNodes: Pt(a.expandedNodes, i, l)
1473
1689
  })),
1474
- setWidth: (i) => r((s) => ({
1475
- ...s,
1690
+ setWidth: (i) => r((l) => ({
1691
+ ...l,
1476
1692
  width: i
1477
1693
  })),
1478
- reset: () => r(wt)
1694
+ reset: () => r(It)
1479
1695
  }), {
1480
- name: tr(e),
1481
- storage: nt(Ne),
1482
- partialize: nr
1696
+ name: xr(e),
1697
+ storage: it(He),
1698
+ partialize: Sr
1483
1699
  }));
1484
- }, Pt = /* @__PURE__ */ new Map(), rr = (n, e) => {
1485
- const o = Pt.get(n);
1486
- if (o)
1487
- return o;
1488
- const t = or({
1489
- storageKey: n,
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,
1490
1706
  initialState: e
1491
1707
  });
1492
- return Pt.set(n, t), t;
1493
- }, ze = (n, e, o) => {
1494
- const t = T(3);
1708
+ return At.set(o, n), n;
1709
+ }, ze = (o, e, t) => {
1710
+ const n = P(3);
1495
1711
  let r;
1496
- return t[0] !== o || t[1] !== n ? (r = rr(n, o), t[0] = o, t[1] = n, t[2] = r) : r = t[2], et(r, e);
1497
- }, ir = (n) => {
1498
- const e = T(2), {
1499
- children: o
1500
- } = n;
1501
- if (!o)
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)
1502
1718
  return null;
1503
- let t;
1504
- return e[0] !== o ? (t = /* @__PURE__ */ l(Q, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: o }), e[0] = o, e[1] = t) : t = e[1], t;
1505
- }, lr = (n) => {
1506
- const e = T(2), {
1507
- children: o
1508
- } = n;
1509
- let t;
1510
- return e[0] !== o ? (t = /* @__PURE__ */ l(oe, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: To, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ l(oe, { minW: "0", flex: "1", children: o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1511
- }, sr = 240, ar = 200, cr = 480, dr = (n, e, o) => Math.min(Math.max(n, e), o), ur = (n, e = sr) => {
1512
- if (typeof n == "number") return n;
1513
- if (typeof n == "string") {
1514
- const o = parseInt(n, 10);
1515
- if (!Number.isNaN(o)) return o;
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;
1516
1732
  }
1517
1733
  return e;
1518
- }, Xi = (n) => {
1519
- const e = T(43), {
1520
- storageKey: o,
1521
- sections: t,
1734
+ }, gl = (o) => {
1735
+ const e = P(43), {
1736
+ storageKey: t,
1737
+ sections: n,
1522
1738
  activeNodeId: r,
1523
1739
  contextActions: i,
1524
- header: s,
1740
+ header: l,
1525
1741
  footer: a,
1526
1742
  width: c,
1527
- closable: d,
1528
- emptyLabel: u,
1529
- defaultExpandedSections: h,
1530
- linkComponent: f,
1743
+ closable: u,
1744
+ emptyLabel: d,
1745
+ defaultExpandedSections: f,
1746
+ linkComponent: h,
1531
1747
  onNavigate: p,
1532
1748
  onOpenChange: m,
1533
1749
  resizable: g,
1534
- defaultWidth: x,
1535
- minWidth: S,
1536
- maxWidth: A,
1750
+ defaultWidth: v,
1751
+ minWidth: C,
1752
+ maxWidth: R,
1537
1753
  virtualize: E
1538
- } = n;
1539
- let R;
1540
- e[0] !== i ? (R = i === void 0 ? [] : i, e[0] = i, e[1] = R) : R = e[1];
1541
- const v = R, _ = d === void 0 ? !0 : d, C = u === void 0 ? "No items available." : u, $ = g === void 0 ? !0 : g, P = S === void 0 ? ar : S, O = A === void 0 ? cr : A, N = E === void 0 ? !1 : E, W = Me(null);
1542
- let L;
1543
- e[2] !== x || e[3] !== c ? (L = ur(c, x), e[2] = x, e[3] = c, e[4] = L) : L = e[4];
1544
- const k = L;
1545
- let w;
1546
- e[5] !== h ? (w = h ? {
1547
- expandedSections: h
1548
- } : {}, e[5] = h, e[6] = w) : w = e[6];
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;
1549
1761
  let y;
1550
- e[7] !== k || e[8] !== w ? (y = {
1551
- ...w,
1552
- width: k
1553
- }, e[7] = k, e[8] = w, e[9] = y) : y = e[9];
1554
- const z = y, B = ze(o, fr, z), j = ze(o, hr, z), U = ze(o, mr, z), G = ze(o, pr, z), D = ze(o, gr, z), Y = ze(o, br, z);
1555
- let Z, I;
1556
- e[10] !== m || e[11] !== B ? (Z = () => {
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 = () => {
1557
1773
  m?.(B);
1558
- }, I = [m, B], e[10] = m, e[11] = B, e[12] = Z, e[13] = I) : (Z = e[12], I = e[13]), he(Z, I);
1559
- const M = j ?? k;
1560
- let F;
1561
- e[14] !== O || e[15] !== P || e[16] !== M ? (F = dr(M, P, O), e[14] = O, e[15] = P, e[16] = M, e[17] = F) : F = e[17];
1562
- const ue = F;
1563
- if (!B && _)
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;
1779
+ if (!B && k)
1564
1780
  return null;
1565
- const te = $ ? `${ue}px` : c ?? `${k}px`;
1566
- let J;
1567
- e[18] !== s ? (J = /* @__PURE__ */ l(lr, { children: s }), e[18] = s, e[19] = J) : J = e[19];
1568
- let re, ie;
1569
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
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 = {
1570
1786
  display: "block",
1571
1787
  style: {
1572
1788
  overflowX: "hidden"
1573
1789
  }
1574
- }, ie = {
1790
+ }, ne = {
1575
1791
  style: {
1576
1792
  minWidth: "100%",
1577
1793
  width: "100%",
@@ -1579,747 +1795,789 @@ const Qi = (n) => {
1579
1795
  display: "flex",
1580
1796
  flexDirection: "column"
1581
1797
  }
1582
- }, e[20] = re, e[21] = ie) : (re = e[20], ie = e[21]);
1583
- let se;
1584
- e[22] !== r || e[23] !== C || e[24] !== G || e[25] !== U || e[26] !== f || e[27] !== p || e[28] !== t || e[29] !== Y || e[30] !== D || e[31] !== N ? (se = /* @__PURE__ */ l(Ze, { flex: "1", mt: "lg", viewportRef: W, viewportProps: re, contentProps: ie, children: /* @__PURE__ */ l(Q, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: t.length === 0 ? /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: C }) : /* @__PURE__ */ l(_n, { sections: t, expandedSectionIds: U, expandedNodeIds: G, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: f, onNavigate: p, onToggleSection: D, onToggleNode: Y, virtualize: N, scrollRef: W }) }) }), e[22] = r, e[23] = C, e[24] = G, e[25] = U, e[26] = f, e[27] = p, e[28] = t, e[29] = Y, e[30] = D, e[31] = N, e[32] = se) : se = e[32];
1585
- let ae;
1586
- e[33] !== a ? (ae = /* @__PURE__ */ l(ir, { children: a }), e[33] = a, e[34] = ae) : ae = e[34];
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];
1587
1801
  let le;
1588
- e[35] !== J || e[36] !== se || e[37] !== ae || e[38] !== te ? (le = /* @__PURE__ */ b(ge, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: te, minW: te, maxW: te, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1589
- J,
1590
- se,
1591
- ae
1592
- ] }), e[35] = J, e[36] = se, e[37] = ae, e[38] = te, e[39] = le) : le = e[39];
1593
- const de = le;
1594
- let ee;
1595
- return e[40] !== de || e[41] !== v ? (ee = /* @__PURE__ */ l(Xt, { actions: v, closeOnSelect: !1, children: de }), e[40] = de, e[41] = v, e[42] = ee) : ee = e[42], ee;
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;
1596
1812
  };
1597
- function fr(n) {
1598
- return n.open;
1813
+ function Er(o) {
1814
+ return o.open;
1599
1815
  }
1600
- function hr(n) {
1601
- return n.width;
1816
+ function kr(o) {
1817
+ return o.width;
1602
1818
  }
1603
- function mr(n) {
1604
- return n.expandedSections;
1819
+ function _r(o) {
1820
+ return o.expandedSections;
1605
1821
  }
1606
- function pr(n) {
1607
- return n.expandedNodes;
1822
+ function $r(o) {
1823
+ return o.expandedNodes;
1608
1824
  }
1609
- function gr(n) {
1610
- return n.toggleSection;
1825
+ function Or(o) {
1826
+ return o.toggleSection;
1611
1827
  }
1612
- function br(n) {
1613
- return n.toggleNode;
1828
+ function Dr(o) {
1829
+ return o.toggleNode;
1614
1830
  }
1615
- const At = {
1831
+ const Rt = {
1616
1832
  tabOverrides: {}
1617
- }, xr = "pstdio/ui/tab-visibility", Sr = (n) => `${xr}/${n}`, vr = (n, e) => n ?? (e ? "hidden" : "shown"), at = (n, e, o) => {
1618
- if (o === void 0) {
1619
- if (!(e in n)) return n;
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;
1620
1836
  const {
1621
- [e]: t,
1837
+ [e]: n,
1622
1838
  ...r
1623
- } = n;
1839
+ } = o;
1624
1840
  return r;
1625
1841
  }
1626
- return n[e] === o ? n : {
1627
- ...n,
1628
- [e]: o
1842
+ return o[e] === t ? o : {
1843
+ ...o,
1844
+ [e]: t
1629
1845
  };
1630
- }, yr = (n, e, o) => {
1631
- const t = vr(n[e], o);
1632
- return at(n, e, t === "hidden" ? "shown" : "hidden");
1633
- }, Cr = (n) => ({
1634
- tabOverrides: n.tabOverrides
1635
- }), wr = (n) => ot()(tt((e) => ({
1636
- ...At,
1637
- setTab: (o, t) => e((r) => ({
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) => ({
1638
1854
  ...r,
1639
- tabOverrides: at(r.tabOverrides, o, t)
1855
+ tabOverrides: dt(r.tabOverrides, t, n)
1640
1856
  })),
1641
- toggleTab: (o, t) => e((r) => ({
1857
+ toggleTab: (t, n) => e((r) => ({
1642
1858
  ...r,
1643
- tabOverrides: yr(r.tabOverrides, o, t)
1859
+ tabOverrides: Br(r.tabOverrides, t, n)
1644
1860
  })),
1645
- clearTab: (o) => e((t) => ({
1646
- ...t,
1647
- tabOverrides: at(t.tabOverrides, o, void 0)
1861
+ clearTab: (t) => e((n) => ({
1862
+ ...n,
1863
+ tabOverrides: dt(n.tabOverrides, t, void 0)
1648
1864
  })),
1649
- reset: () => e(At)
1865
+ reset: () => e(Rt)
1650
1866
  }), {
1651
- name: Sr(n.storageKey),
1652
- storage: nt(Ne),
1653
- partialize: Cr
1654
- })), Et = /* @__PURE__ */ new Map(), Ir = (n) => {
1655
- const e = Et.get(n);
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);
1656
1872
  if (e) return e;
1657
- const o = wr({
1658
- storageKey: n
1873
+ const t = Fr({
1874
+ storageKey: o
1659
1875
  });
1660
- return Et.set(n, o), o;
1661
- }, qi = (n, e) => {
1662
- const o = T(2);
1663
- let t;
1664
- return o[0] !== n ? (t = Ir(n), o[0] = n, o[1] = t) : t = o[1], et(t, e);
1665
- }, Tr = (n, e) => typeof n == "string" ? n : e, We = (n, e) => n ?? (e ? "hidden" : "shown"), qe = (n) => n.canHide === !0 || n.hiddenByDefault === !0, Pr = (n, e) => We(e[n.id], n.hiddenByDefault) === "shown", ht = (n, e) => {
1666
- let o = !1;
1667
- const t = [];
1668
- for (const r of n) {
1669
- if (!Pr(r, e)) {
1670
- o = !0;
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;
1671
1887
  continue;
1672
1888
  }
1673
1889
  if (r.children && r.children.length > 0) {
1674
1890
  const i = ht(r.children, e);
1675
1891
  if (i !== r.children) {
1676
- o = !0, t.push({
1892
+ t = !0, n.push({
1677
1893
  ...r,
1678
1894
  children: i
1679
1895
  });
1680
1896
  continue;
1681
1897
  }
1682
1898
  }
1683
- t.push(r);
1899
+ n.push(r);
1684
1900
  }
1685
- return o ? t : n;
1686
- }, Ki = (n, e) => ht(n, e), Yi = (n, e, o) => {
1687
- let t = !1;
1901
+ return t ? n : o;
1902
+ }, xl = (o, e) => ht(o, e), Sl = (o, e, t) => {
1903
+ let n = !1;
1688
1904
  const r = [];
1689
- for (const i of n) {
1690
- if (We(e[i.id], i.hiddenByDefault) === "hidden") {
1691
- t = !0;
1905
+ for (const i of o) {
1906
+ if (Me(e[i.id], i.hiddenByDefault) === "hidden") {
1907
+ n = !0;
1692
1908
  continue;
1693
1909
  }
1694
- const s = ht(i.nodes, o);
1695
- if (s !== i.nodes) {
1696
- t = !0, r.push({
1910
+ const l = ht(i.nodes, t);
1911
+ if (l !== i.nodes) {
1912
+ n = !0, r.push({
1697
1913
  ...i,
1698
- nodes: s
1914
+ nodes: l
1699
1915
  });
1700
1916
  continue;
1701
1917
  }
1702
1918
  r.push(i);
1703
1919
  }
1704
- return t ? r : n;
1705
- }, tn = (n, e) => n === "shown" ? e.visibleIcon : e.hiddenIcon, Ar = (n, e, o, t) => {
1706
- const r = n.hiddenByDefault === !0, i = We(e[n.id], r);
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);
1707
1923
  return {
1708
- key: `section:${n.id}`,
1709
- label: n.label ?? n.id,
1710
- onClick: () => o.onToggleSection(n.id, r),
1711
- endContent: tn(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)
1712
1928
  };
1713
- }, st = (n, e, o, t) => {
1714
- const r = n.hiddenByDefault === !0, i = We(e[n.id], r);
1929
+ }, ct = (o, e, t, n) => {
1930
+ const r = o.hiddenByDefault === !0, i = Me(e[o.id], r);
1715
1931
  return {
1716
- key: `node:${n.id}`,
1717
- label: Tr(n.label, n.id),
1718
- icon: n.icon,
1719
- onClick: () => o.onToggleNode(n.id, r),
1720
- endContent: tn(i, t)
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)
1721
1937
  };
1722
- }, Zi = (n, e, o, t, r) => {
1723
- const i = [], s = (c) => {
1938
+ }, vl = (o, e, t, n, r) => {
1939
+ const i = [], l = (c) => {
1724
1940
  c.length !== 0 && (i.length > 0 && (c[0] = {
1725
1941
  ...c[0],
1726
1942
  separatorBefore: !0
1727
1943
  }), i.push(...c));
1728
1944
  };
1729
- s((n.headerNodes ?? []).filter(qe).map((c) => st(c, o, t, r)));
1945
+ l((o.headerNodes ?? []).filter(Ke).map((c) => ct(c, t, n, r)));
1730
1946
  const a = [];
1731
- for (const c of n.sections) {
1732
- qe(c) && a.push(Ar(c, e, t, r));
1733
- for (const d of c.nodes)
1734
- qe(d) && a.push(st(d, o, t, r));
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));
1735
1951
  }
1736
- return s(a), s((n.footerNodes ?? []).filter(qe).map((c) => st(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({
1737
1953
  key: "__reset-visibility",
1738
1954
  label: "Reset to default",
1739
1955
  icon: r.resetIcon,
1740
1956
  separatorBefore: !0,
1741
- onClick: t.onResetAll
1957
+ onClick: n.onResetAll
1742
1958
  }), i;
1743
- }, Ji = (n, e, o) => {
1744
- let t = !1;
1959
+ }, yl = (o, e, t) => {
1960
+ let n = !1;
1745
1961
  const r = [];
1746
- for (const i of n) {
1962
+ for (const i of o) {
1747
1963
  if (i.pinned === !0 && i.hiddenByDefault === !0) {
1748
- t = !0;
1964
+ n = !0;
1749
1965
  continue;
1750
1966
  }
1751
1967
  if (i.closable === !0) {
1752
1968
  r.push(i);
1753
1969
  continue;
1754
1970
  }
1755
- if (We(e[o(i)], i.hiddenByDefault) === "hidden") {
1756
- t = !0;
1971
+ if (Me(e[t(i)], i.hiddenByDefault) === "hidden") {
1972
+ n = !0;
1757
1973
  continue;
1758
1974
  }
1759
1975
  r.push(i);
1760
1976
  }
1761
- return t ? r : n;
1762
- }, el = (n, e, o, t, r, i) => {
1763
- const s = [];
1977
+ return n ? r : o;
1978
+ }, Cl = (o, e, t, n, r, i) => {
1979
+ const l = [];
1764
1980
  let a = 0;
1765
- for (const c of n) {
1981
+ for (const c of o) {
1766
1982
  if (c.pinned === !0 || c.closable === !0) continue;
1767
1983
  a += 1;
1768
- const d = t(c), u = c.hiddenByDefault === !0, h = We(e[d], u);
1769
- s.push({
1770
- key: `tab:${d}`,
1984
+ const u = n(c), d = c.hiddenByDefault === !0, f = Me(e[u], d);
1985
+ l.push({
1986
+ key: `tab:${u}`,
1771
1987
  label: c.title ?? c.contributionId,
1772
1988
  icon: i?.(c),
1773
- onClick: () => o.onToggleTab(d, u),
1774
- endContent: h === "shown" ? r.visibleIcon : r.hiddenIcon
1989
+ onClick: () => t.onToggleTab(u, d),
1990
+ endContent: f === "shown" ? r.visibleIcon : r.hiddenIcon
1775
1991
  });
1776
1992
  }
1777
- return a === 0 || s.push({
1993
+ return a === 0 || l.push({
1778
1994
  key: "__reset-tabs",
1779
1995
  label: "Reset to default",
1780
1996
  icon: r.resetIcon,
1781
1997
  separatorBefore: !0,
1782
- onClick: o.onResetAll
1783
- }), s;
1784
- }, Er = (n) => {
1785
- const e = T(20), {
1786
- actions: o,
1787
- 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,
1788
2018
  options: r,
1789
2019
  onChange: i
1790
- } = n;
1791
- let s;
1792
- e[0] !== o || e[1] !== i ? (s = (m) => {
1793
- i(o.includes(m) ? o.filter((g) => g !== m) : [...o, m]);
1794
- }, e[0] = o, e[1] = i, e[2] = s) : s = e[2];
1795
- const a = s, c = o.length !== 1 ? "s" : "";
1796
- let d;
1797
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ l(we, { as: An, boxSize: "12px" }), e[3] = d) : d = e[3];
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" : "";
1798
2026
  let u;
1799
- e[4] !== o.length || e[5] !== t || e[6] !== c ? (u = /* @__PURE__ */ l(Fe.Trigger, { asChild: !0, children: /* @__PURE__ */ b(ne, { size: "2xs", variant: "outline", gap: "xs", disabled: t, children: [
1800
- o.length,
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,
1801
2031
  " action",
1802
2032
  c,
1803
- d
1804
- ] }) }), e[4] = o.length, e[5] = t, e[6] = c, e[7] = u) : u = e[7];
1805
- let h;
1806
- if (e[8] !== o || e[9] !== r || e[10] !== a) {
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) {
1807
2037
  let m;
1808
- e[12] !== o || e[13] !== a ? (m = (g) => /* @__PURE__ */ l(Fe.Item, { value: g.value, asChild: !0, children: /* @__PURE__ */ l(Je, { asChild: !0, variant: "full-width", id: g.value, label: g.label, isSelected: o.includes(g.value), endContent: o.includes(g.value) ? /* @__PURE__ */ l(Ye, { size: 14 }) : void 0, onActivate: () => a(g.value) }) }, g.value), e[12] = o, e[13] = a, e[14] = m) : m = e[14], h = r.map(m), e[8] = o, e[9] = r, e[10] = a, e[11] = h;
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;
1809
2039
  } else
1810
- h = e[11];
1811
- let f;
1812
- e[15] !== h ? (f = /* @__PURE__ */ l(Fe.Positioner, { children: /* @__PURE__ */ l(Fe.Content, { minW: "160px", bg: "bg", children: h }) }), e[15] = h, e[16] = f) : f = e[16];
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];
1813
2043
  let p;
1814
- return e[17] !== u || e[18] !== f ? (p = /* @__PURE__ */ b(Fe.Root, { closeOnSelect: !1, children: [
1815
- u,
1816
- f
1817
- ] }), e[17] = u, e[18] = f, e[19] = p) : p = e[19], p;
1818
- }, kr = (n) => {
1819
- const e = T(54), {
1820
- actionOptions: o,
1821
- colorOptions: t,
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,
1822
2052
  iconOptions: r,
1823
2053
  value: i,
1824
- isSaving: s,
2054
+ isSaving: l,
1825
2055
  showDefault: a,
1826
2056
  showIcons: c,
1827
- onActionsChange: d,
1828
- onColorChange: u,
1829
- onDelete: h,
1830
- onIconChange: f,
2057
+ onActionsChange: u,
2058
+ onColorChange: d,
2059
+ onDelete: f,
2060
+ onIconChange: h,
1831
2061
  onNameChange: p,
1832
2062
  onSetDefault: m
1833
- } = n;
2063
+ } = o;
1834
2064
  let g;
1835
2065
  e[0] !== i.id ? (g = {
1836
2066
  id: i.id
1837
2067
  }, e[0] = i.id, e[1] = g) : g = e[1];
1838
2068
  const {
1839
- attributes: x,
1840
- listeners: S,
1841
- setNodeRef: A,
2069
+ attributes: v,
2070
+ listeners: C,
2071
+ setNodeRef: R,
1842
2072
  transform: E,
1843
- transition: R,
1844
- isDragging: v
1845
- } = Fn(g);
1846
- let _;
1847
- e[2] !== E ? (_ = Gn.Transform.toString(E), e[2] = E, e[3] = _) : _ = e[3];
1848
- const C = v ? 0.5 : 1;
1849
- let $;
1850
- e[4] !== _ || e[5] !== C || e[6] !== R ? ($ = {
1851
- transform: _,
1852
- transition: R,
1853
- opacity: C
1854
- }, e[4] = _, e[5] = C, e[6] = R, e[7] = $) : $ = e[7];
1855
- const P = $;
1856
- let O;
1857
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ l(En, { size: 14, color: "var(--chakra-colors-fg-muted)" }), e[8] = O) : O = e[8];
1858
- let N;
1859
- e[9] !== x || e[10] !== S ? (N = /* @__PURE__ */ l(X.Cell, { width: "40px", children: /* @__PURE__ */ l(ge, { cursor: "grab", ...x, ...S, children: O }) }), e[9] = x, e[10] = S, e[11] = N) : N = e[11];
1860
- let W;
1861
- e[12] !== p || e[13] !== i.name ? (W = (Z) => {
1862
- const I = Z.value.trim();
1863
- I && I !== i.name && p(I);
1864
- }, e[12] = p, e[13] = i.name, e[14] = W) : W = e[14];
1865
- let L, k;
1866
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ l(lt.Preview, {}), k = /* @__PURE__ */ l(lt.Input, {}), e[15] = L, e[16] = k) : (L = e[15], k = e[16]);
2073
+ transition: O,
2074
+ isDragging: S
2075
+ } = Un(g);
2076
+ let k;
2077
+ e[2] !== E ? (k = Yn.Transform.toString(E), e[2] = E, e[3] = k) : k = e[3];
1867
2078
  let w;
1868
- e[17] !== W || e[18] !== i.name ? (w = /* @__PURE__ */ l(X.Cell, { children: /* @__PURE__ */ b(lt.Root, { defaultValue: i.name, onValueCommit: W, children: [
1869
- L,
1870
- k
1871
- ] }) }), e[17] = W, e[18] = i.name, e[19] = w) : w = e[19];
1872
- let y;
1873
- e[20] !== t || e[21] !== r || e[22] !== s || e[23] !== u || e[24] !== f || e[25] !== c || e[26] !== i.color || e[27] !== i.icon ? (y = /* @__PURE__ */ l(X.Cell, { width: "54px", children: /* @__PURE__ */ l(qt, { color: i.color, colorOptions: t, icon: i.icon, iconOptions: r, showIcons: c, onColorChange: u, onIconChange: f, disabled: s }) }), e[20] = t, e[21] = r, e[22] = s, e[23] = u, e[24] = f, e[25] = c, e[26] = i.color, e[27] = i.icon, e[28] = y) : y = e[28];
1874
- let z;
1875
- e[29] !== s || e[30] !== m || e[31] !== a || e[32] !== i.isDefault || e[33] !== i.name ? (z = a ? /* @__PURE__ */ l(X.Cell, { width: "80px", children: /* @__PURE__ */ l(ne, { size: "2xs", variant: i.isDefault ? "primary" : "ghost", onClick: m, disabled: s || i.isDefault, "aria-label": `Set ${i.name} as default`, children: /* @__PURE__ */ l(Ye, { size: 14 }) }) }) : null, e[29] = s, e[30] = m, e[31] = a, e[32] = i.isDefault, e[33] = i.name, e[34] = z) : z = e[34];
1876
- let B;
1877
- e[35] !== o || e[36] !== s || e[37] !== d || e[38] !== i.actions ? (B = o ? /* @__PURE__ */ l(X.Cell, { width: "140px", children: /* @__PURE__ */ l(Er, { actions: i.actions ?? [], disabled: s, options: o, onChange: d }) }) : null, e[35] = o, e[36] = s, e[37] = d, e[38] = i.actions, e[39] = B) : B = e[39];
1878
- const j = s || i.isDefault, U = `Delete ${i.name}`;
1879
- let G;
1880
- e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ l(kn, { size: 14 }), e[40] = G) : G = e[40];
2079
+ e[4] !== k || e[5] !== O ? (w = {
2080
+ transform: k,
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";
1881
2084
  let D;
1882
- e[41] !== h || e[42] !== j || e[43] !== U ? (D = /* @__PURE__ */ l(X.Cell, { width: "40px", children: /* @__PURE__ */ l(ne, { size: "2xs", variant: "destructive", onClick: h, disabled: j, "aria-label": U, children: G }) }), e[41] = h, e[42] = j, e[43] = U, e[44] = D) : D = e[44];
2085
+ e[7] !== N ? (D = {
2086
+ bg: N
2087
+ }, e[7] = N, e[8] = D) : D = e[8];
2088
+ let I;
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];
2095
+ let _;
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]);
1883
2107
  let Y;
1884
- return e[45] !== A || e[46] !== P || e[47] !== y || e[48] !== z || e[49] !== B || e[50] !== D || e[51] !== N || e[52] !== w ? (Y = /* @__PURE__ */ b(X.Row, { ref: A, style: P, children: [
1885
- N,
1886
- w,
1887
- y,
1888
- z,
1889
- B,
1890
- D
1891
- ] }), e[45] = A, e[46] = P, e[47] = y, e[48] = z, e[49] = B, e[50] = D, e[51] = N, e[52] = w, e[53] = Y) : Y = e[53], Y;
1892
- }, Dr = (n, e) => ({
1893
- id: `new-${crypto.randomUUID()}`,
1894
- name: n.name.trim(),
1895
- color: n.color,
1896
- icon: n.icon,
1897
- sortOrder: e,
1898
- isNew: !0
1899
- }), Rr = (n) => {
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) => {
1900
2182
  const {
1901
2183
  title: e,
1902
- description: o,
1903
- values: t,
1904
- onValuesChange: r,
1905
- onSave: i,
1906
- onCancel: s,
1907
- onDeleteValue: a,
1908
- onSetDefault: c,
1909
- hasChanges: d,
1910
- isSaving: u,
1911
- addLabel: h = "Add tag",
1912
- addPlaceholder: f = "Tag name",
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",
1913
2195
  actionOptions: p,
1914
- actionsColumnLabel: m = "Actions",
1915
- cancelLabel: g = "Cancel",
1916
- colorOptions: x,
1917
- defaultAddColor: S = "blue",
1918
- defaultAddIcon: A = null,
1919
- defaultColumnLabel: E = "Default",
1920
- deleteButtonText: R = "Delete tag",
1921
- deleteHeadline: v = "Delete tag?",
1922
- deleteNotificationText: _ = (I) => `This will delete "${I.name}".`,
1923
- iconOptions: C,
1924
- saveLabel: $ = "Save",
1925
- showDefault: P,
1926
- showIcons: O = !0,
1927
- valueColumnLabel: N = "Name"
1928
- } = n, [W, L] = ce(!1), [k, w] = ce({
1929
- name: "",
1930
- color: S,
1931
- icon: A
1932
- }), [y, z] = ce(null), B = Ln(zn(Bn, {
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, {
1933
2206
  activationConstraint: {
1934
2207
  distance: 5
1935
2208
  }
1936
- })), j = () => {
1937
- L(!1), w({
1938
- name: "",
1939
- color: S,
1940
- icon: A
1941
- });
1942
- }, U = (I, M) => {
1943
- const F = [...t];
1944
- F[I] = {
1945
- ...F[I],
1946
- ...M
1947
- }, r(F);
1948
- }, G = () => {
1949
- if (!k.name.trim()) return;
1950
- const I = t.length > 0 ? Math.max(...t.map((M) => M.sortOrder)) : 0;
1951
- r([...t, Dr(k, I + 1)]), j();
1952
- }, D = () => {
1953
- y && (a ? a(y) : r(t.filter((I) => I.id !== y.id)), z(null));
1954
- }, Y = (I) => {
1955
- const {
1956
- active: M,
1957
- over: F
1958
- } = I;
1959
- if (!F || M.id === F.id) return;
1960
- const ue = t.findIndex((J) => J.id === M.id), te = t.findIndex((J) => J.id === F.id);
1961
- ue < 0 || te < 0 || r(Vn(t, ue, te).map((J, re) => ({
1962
- ...J,
1963
- sortOrder: re
1964
- })));
1965
- }, Z = (I) => {
1966
- I.key === "Enter" && G(), I.key === "Escape" && j();
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));
1967
2226
  };
1968
- return /* @__PURE__ */ b(Ue, { children: [
1969
- /* @__PURE__ */ b(K, { gap: "md", height: "100%", children: [
1970
- /* @__PURE__ */ b(ge, { justifyContent: "space-between", alignItems: "center", gap: "sm", flexWrap: "wrap", children: [
1971
- /* @__PURE__ */ b(K, { gap: "2xs", children: [
1972
- /* @__PURE__ */ l(V, { textStyle: "heading/S", children: e }),
1973
- o ? /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", color: "fg.muted", children: o }) : null
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
1974
2233
  ] }),
1975
- /* @__PURE__ */ b(ne, { size: "sm", variant: "outline", onClick: () => L(!0), disabled: W || u, children: [
1976
- /* @__PURE__ */ l(Dn, { size: 16 }),
1977
- h
1978
- ] })
1979
- ] }),
1980
- /* @__PURE__ */ l(Nn, { sensors: B, collisionDetection: Wn, onDragEnd: Y, children: /* @__PURE__ */ l(Hn, { items: t.map((I) => I.id), strategy: Mn, children: /* @__PURE__ */ b(X.Root, { size: "sm", variant: "outline", children: [
1981
- /* @__PURE__ */ l(X.Header, { children: /* @__PURE__ */ b(X.Row, { children: [
1982
- /* @__PURE__ */ l(X.ColumnHeader, { width: "40px" }),
1983
- /* @__PURE__ */ l(X.ColumnHeader, { children: N }),
1984
- /* @__PURE__ */ l(X.ColumnHeader, { width: "54px" }),
1985
- P ? /* @__PURE__ */ l(X.ColumnHeader, { width: "80px", children: E }) : null,
1986
- p ? /* @__PURE__ */ l(X.ColumnHeader, { width: "140px", children: m }) : null,
1987
- /* @__PURE__ */ l(X.ColumnHeader, { width: "40px" })
1988
- ] }) }),
1989
- /* @__PURE__ */ b(X.Body, { children: [
1990
- t.map((I, M) => /* @__PURE__ */ l(kr, { value: I, isSaving: u, showDefault: P, showIcons: O, actionOptions: p, colorOptions: x, iconOptions: C, onNameChange: (F) => U(M, {
1991
- name: F
1992
- }), onColorChange: (F) => U(M, {
1993
- color: F
1994
- }), onIconChange: (F) => U(M, {
1995
- icon: F
1996
- }), onActionsChange: (F) => U(M, {
1997
- actions: F
1998
- }), onSetDefault: () => c?.(I), onDelete: () => z(I) }, I.id)),
1999
- W ? /* @__PURE__ */ b(X.Row, { children: [
2000
- /* @__PURE__ */ l(X.Cell, {}),
2001
- /* @__PURE__ */ l(X.Cell, { children: /* @__PURE__ */ l(ut, { size: "xs", placeholder: f, value: k.name, onChange: (I) => w({
2002
- ...k,
2003
- name: I.target.value
2004
- }), onKeyDown: Z, autoFocus: !0 }) }),
2005
- /* @__PURE__ */ l(X.Cell, { children: /* @__PURE__ */ l(qt, { color: k.color, icon: k.icon, showIcons: O, colorOptions: x, iconOptions: C, onColorChange: (I) => w({
2006
- ...k,
2007
- color: I
2008
- }), onIconChange: (I) => w({
2009
- ...k,
2010
- icon: I
2011
- }) }) }),
2012
- P ? /* @__PURE__ */ l(X.Cell, {}) : null,
2013
- p ? /* @__PURE__ */ l(X.Cell, {}) : null,
2014
- /* @__PURE__ */ l(X.Cell, { children: /* @__PURE__ */ b(oe, { gap: "2xs", children: [
2015
- /* @__PURE__ */ l(ne, { size: "2xs", variant: "primary", onClick: G, disabled: !k.name.trim(), children: "Add" }),
2016
- /* @__PURE__ */ l(ne, { size: "2xs", variant: "ghost", onClick: j, "aria-label": "Cancel add value", children: /* @__PURE__ */ l(Ut, { size: 14 }) })
2017
- ] }) })
2018
- ] }) : null
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 })
2019
2260
  ] })
2020
- ] }) }) }),
2021
- /* @__PURE__ */ l(ge, { justifyContent: "flex-end", children: /* @__PURE__ */ b(oe, { gap: "xs", children: [
2022
- /* @__PURE__ */ l(ne, { size: "sm", variant: "outline", onClick: s, disabled: !d || u, children: g }),
2023
- /* @__PURE__ */ l(ne, { size: "sm", variant: "primary", onClick: i, loading: u, disabled: !d, children: $ })
2024
- ] }) })
2261
+ ] })
2025
2262
  ] }),
2026
- /* @__PURE__ */ l(No, { open: !!y, onClose: () => z(null), onDelete: D, headline: v, notificationText: y ? _(y) : "", buttonText: R })
2263
+ /* @__PURE__ */ s(Go, { open: !!w, onClose: () => $(null), onDelete: N, headline: R, notificationText: w ? E(w) : "", buttonText: C })
2027
2264
  ] });
2028
- }, Or = (n, e) => n.sortOrder - e.sortOrder || n.name.localeCompare(e.name), kt = (n, e) => n.map(e).sort(Or), _r = (n, e) => n.find((o) => o.id === e.id), $r = (n, e, o, t) => o.size > 0 ? !0 : e.some((r) => {
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) => {
2029
2285
  if (r.isNew) return !0;
2030
- const i = _r(n, r);
2031
- return i ? t(i, r) || r.sortOrder !== i.sortOrder : !0;
2032
- }), Dt = (n) => n instanceof Error ? n.message : n ? String(n) : null, tl = (n) => {
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) => {
2033
2289
  const {
2034
2290
  errorTitle: e,
2035
- loadingText: o = "Loading...",
2036
- values: t,
2037
- loadError: r,
2038
- onSave: i,
2039
- toEditorValue: s,
2040
- valueNeedsUpdate: a,
2041
- ...c
2042
- } = n, [d, u] = ce([]), [h, f] = ce(/* @__PURE__ */ new Set()), [p, m] = ce(!1), [g, x] = ce(null), S = t ?? [];
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 ?? [];
2043
2301
  he(() => {
2044
- t && u(kt(t, s));
2045
- }, [t, s]);
2046
- const A = async () => {
2047
- m(!0), x(null);
2302
+ i && h(kt(i, c));
2303
+ }, [i, c]);
2304
+ const O = async () => {
2305
+ v(!0), R(null);
2048
2306
  try {
2049
- await i({
2050
- deletedIds: h,
2051
- drafts: d,
2052
- values: S
2053
- }), f(/* @__PURE__ */ new Set());
2054
- } catch (C) {
2055
- x(C);
2307
+ await a({
2308
+ deletedIds: p,
2309
+ drafts: f,
2310
+ values: E
2311
+ }), m(/* @__PURE__ */ new Set());
2312
+ } catch (T) {
2313
+ R(T);
2056
2314
  } finally {
2057
- m(!1);
2315
+ v(!1);
2058
2316
  }
2059
- }, E = $r(S, d, h, a), R = Dt(r) ?? Dt(g);
2060
- return /* @__PURE__ */ b(K, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2061
- R ? /* @__PURE__ */ l(ft, { status: "error", colorPalette: "red", title: e, size: "sm", children: R }) : null,
2062
- t === void 0 ? /* @__PURE__ */ b(oe, { gap: "sm", color: "fg.muted", children: [
2063
- /* @__PURE__ */ l(Vt, { size: "sm" }),
2064
- /* @__PURE__ */ l(V, { textStyle: "paragraph/S/regular", children: o })
2065
- ] }) : /* @__PURE__ */ l(Rr, { ...c, values: d, onValuesChange: u, onDeleteValue: (C) => {
2066
- C.isNew || f(/* @__PURE__ */ new Set([...h, C.id])), u(d.filter(($) => $.id !== C.id));
2067
- }, hasChanges: E, isSaving: p, onSave: () => {
2068
- A();
2069
- }, onCancel: () => {
2070
- u(kt(S, s)), f(/* @__PURE__ */ new Set()), x(null);
2071
- } })
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
+ } }) })
2072
2330
  ] });
2073
- }, Rt = {
2331
+ }, $t = {
2074
2332
  sectionOrder: [],
2075
2333
  nodeOrderBySection: {}
2076
- }, Lr = "pstdio/ui/tree-list-order", zr = (n) => `${Lr}/${n}`, Ot = (n) => {
2077
- const e = /* @__PURE__ */ new Set(), o = [];
2078
- for (const t of n)
2079
- e.has(t) || (e.add(t), o.push(t));
2080
- return o;
2081
- }, Br = (n) => ({
2082
- sectionOrder: n.sectionOrder,
2083
- nodeOrderBySection: n.nodeOrderBySection
2084
- }), Nr = (n) => ot()(tt((e) => ({
2085
- ...Rt,
2086
- setSectionOrder: (o) => e((t) => ({
2087
- ...t,
2088
- sectionOrder: Ot(o)
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)
2089
2347
  })),
2090
- setNodeOrder: (o, t) => e((r) => ({
2348
+ setNodeOrder: (t, n) => e((r) => ({
2091
2349
  ...r,
2092
2350
  nodeOrderBySection: {
2093
2351
  ...r.nodeOrderBySection,
2094
- [o]: Ot(t)
2352
+ [t]: Ot(n)
2095
2353
  }
2096
2354
  })),
2097
- resetSectionOrder: () => e((o) => ({
2098
- ...o,
2355
+ resetSectionOrder: () => e((t) => ({
2356
+ ...t,
2099
2357
  sectionOrder: []
2100
2358
  })),
2101
- resetNodeOrder: (o) => e((t) => {
2102
- if (!(o in t.nodeOrderBySection)) return t;
2359
+ resetNodeOrder: (t) => e((n) => {
2360
+ if (!(t in n.nodeOrderBySection)) return n;
2103
2361
  const {
2104
- [o]: r,
2362
+ [t]: r,
2105
2363
  ...i
2106
- } = t.nodeOrderBySection;
2364
+ } = n.nodeOrderBySection;
2107
2365
  return {
2108
- ...t,
2366
+ ...n,
2109
2367
  nodeOrderBySection: i
2110
2368
  };
2111
2369
  }),
2112
- reset: () => e(Rt)
2370
+ reset: () => e($t)
2113
2371
  }), {
2114
- name: zr(n.storageKey),
2115
- storage: nt(Ne),
2116
- partialize: Br
2117
- })), _t = /* @__PURE__ */ new Map(), Wr = (n) => {
2118
- const e = _t.get(n);
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);
2119
2377
  if (e) return e;
2120
- const o = Nr({
2121
- storageKey: n
2378
+ const t = ii({
2379
+ storageKey: o
2122
2380
  });
2123
- return _t.set(n, o), o;
2124
- }, nl = (n, e) => {
2125
- const o = T(2);
2126
- let t;
2127
- return o[0] !== n ? (t = Wr(n), o[0] = n, o[1] = t) : t = o[1], et(t, e);
2128
- }, $t = (n, e) => {
2129
- if (e.length === 0) return n;
2130
- const o = new Map(n.map((s, a) => [s.id, a])), t = /* @__PURE__ */ new Set(), r = [];
2131
- for (const s of e) {
2132
- const a = o.get(s);
2133
- a === void 0 || t.has(a) || (t.add(a), r.push(n[a]));
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]));
2134
2392
  }
2135
- let i = r.length > 0 && r.length !== n.length;
2136
- for (let s = 0; s < n.length; s += 1)
2137
- t.has(s) || (r.length !== s && !i && (i = !0), r.push(n[s]));
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]));
2138
2396
  if (!i) {
2139
- for (let s = 0; s < n.length; s += 1)
2140
- if (n[s] !== r[s]) {
2397
+ for (let l = 0; l < o.length; l += 1)
2398
+ if (o[l] !== r[l]) {
2141
2399
  i = !0;
2142
2400
  break;
2143
2401
  }
2144
2402
  }
2145
- return i ? r : n;
2146
- }, ol = (n, e, o) => {
2147
- let t = !1;
2148
- const r = $t(n, e);
2149
- r !== n && (t = !0);
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);
2150
2408
  const i = [];
2151
- for (const s of r) {
2152
- const a = o[s.id];
2409
+ for (const l of r) {
2410
+ const a = t[l.id];
2153
2411
  if (!a || a.length === 0) {
2154
- i.push(s);
2412
+ i.push(l);
2155
2413
  continue;
2156
2414
  }
2157
- const c = $t(s.nodes, a);
2158
- c !== s.nodes ? (t = !0, i.push({
2159
- ...s,
2415
+ const c = Lt(l.nodes, a);
2416
+ c !== l.nodes ? (n = !0, i.push({
2417
+ ...l,
2160
2418
  nodes: c
2161
- })) : i.push(s);
2419
+ })) : i.push(l);
2162
2420
  }
2163
- return t ? i : n;
2164
- }, Lt = {
2421
+ return n ? i : o;
2422
+ }, zt = {
2165
2423
  sectionOverrides: {},
2166
2424
  nodeOverrides: {}
2167
- }, Fr = "pstdio/ui/tree-list-visibility", Hr = (n) => `${Fr}/${n}`, Mr = (n, e) => n ?? (e ? "hidden" : "shown"), Vr = (n) => n === "hidden" ? "shown" : "hidden", He = (n, e, o) => {
2168
- if (o === void 0) {
2169
- if (!(e in n)) return n;
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;
2170
2428
  const {
2171
- [e]: t,
2429
+ [e]: n,
2172
2430
  ...r
2173
- } = n;
2431
+ } = o;
2174
2432
  return r;
2175
2433
  }
2176
- return n[e] === o ? n : {
2177
- ...n,
2178
- [e]: o
2434
+ return o[e] === t ? o : {
2435
+ ...o,
2436
+ [e]: t
2179
2437
  };
2180
- }, zt = (n, e, o) => {
2181
- const t = Vr(Mr(n[e], o));
2182
- return He(n, e, t);
2183
- }, Gr = (n) => ({
2184
- sectionOverrides: n.sectionOverrides,
2185
- nodeOverrides: n.nodeOverrides
2186
- }), Ur = (n) => ot()(tt((e) => ({
2187
- ...Lt,
2188
- setSection: (o, t) => e((r) => ({
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) => ({
2445
+ ...zt,
2446
+ setSection: (t, n) => e((r) => ({
2189
2447
  ...r,
2190
- sectionOverrides: He(r.sectionOverrides, o, t)
2448
+ sectionOverrides: Ge(r.sectionOverrides, t, n)
2191
2449
  })),
2192
- setNode: (o, t) => e((r) => ({
2450
+ setNode: (t, n) => e((r) => ({
2193
2451
  ...r,
2194
- nodeOverrides: He(r.nodeOverrides, o, t)
2452
+ nodeOverrides: Ge(r.nodeOverrides, t, n)
2195
2453
  })),
2196
- toggleSection: (o, t) => e((r) => ({
2454
+ toggleSection: (t, n) => e((r) => ({
2197
2455
  ...r,
2198
- sectionOverrides: zt(r.sectionOverrides, o, t)
2456
+ sectionOverrides: Nt(r.sectionOverrides, t, n)
2199
2457
  })),
2200
- toggleNode: (o, t) => e((r) => ({
2458
+ toggleNode: (t, n) => e((r) => ({
2201
2459
  ...r,
2202
- nodeOverrides: zt(r.nodeOverrides, o, t)
2460
+ nodeOverrides: Nt(r.nodeOverrides, t, n)
2203
2461
  })),
2204
- clearSection: (o) => e((t) => ({
2205
- ...t,
2206
- sectionOverrides: He(t.sectionOverrides, o, void 0)
2462
+ clearSection: (t) => e((n) => ({
2463
+ ...n,
2464
+ sectionOverrides: Ge(n.sectionOverrides, t, void 0)
2207
2465
  })),
2208
- clearNode: (o) => e((t) => ({
2209
- ...t,
2210
- nodeOverrides: He(t.nodeOverrides, o, void 0)
2466
+ clearNode: (t) => e((n) => ({
2467
+ ...n,
2468
+ nodeOverrides: Ge(n.nodeOverrides, t, void 0)
2211
2469
  })),
2212
- reset: () => e(Lt)
2470
+ reset: () => e(zt)
2213
2471
  }), {
2214
- name: Hr(n.storageKey),
2215
- storage: nt(Ne),
2216
- partialize: Gr
2217
- })), Bt = /* @__PURE__ */ new Map(), jr = (n) => {
2218
- const e = Bt.get(n);
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);
2219
2477
  if (e) return e;
2220
- const o = Ur({
2221
- storageKey: n
2478
+ const t = fi({
2479
+ storageKey: o
2222
2480
  });
2223
- return Bt.set(n, o), o;
2224
- }, rl = (n, e) => {
2225
- const o = T(2);
2226
- let t;
2227
- return o[0] !== n ? (t = jr(n), o[0] = n, o[1] = t) : t = o[1], et(t, e);
2228
- }, Qr = [], nn = (n, e) => typeof n == "string" && e.some((o) => o.id === n), Xr = (n) => {
2229
- const e = n.toLowerCase().split("."), o = [];
2230
- for (let t = 1; t < e.length; t += 1) o.push(e.slice(t).join("."));
2231
- return o;
2232
- }, qr = (n, e, o) => {
2233
- if (o) return n.defaults.folder;
2234
- const t = n.fileNames[e.toLowerCase()];
2235
- if (t) return t;
2236
- for (const r of Xr(e)) {
2237
- const i = n.fileExtensions[r];
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];
2238
2496
  if (i) return i;
2239
2497
  }
2240
- return n.defaults.file;
2241
- }, Kr = (n, e) => {
2498
+ return o.defaults.file;
2499
+ }, bi = (o, e) => {
2242
2500
  if (e.fontId) {
2243
- const o = n.fonts.find((t) => t.fontFamily === `${n.id}-${e.fontId}`);
2244
- if (o) return o.fontFamily;
2501
+ const t = o.fonts.find((n) => n.fontFamily === `${o.id}-${e.fontId}`);
2502
+ if (t) return t.fontFamily;
2245
2503
  }
2246
- return n.fonts[0]?.fontFamily;
2247
- }, Yr = (n) => {
2248
- const e = /^\\([0-9a-fA-F]+)$/.exec(n);
2249
- return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : n;
2250
- }, Zr = (n, e, o = !1) => {
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);
2251
2511
  if (!n) return;
2252
- const t = qr(n, e, o);
2253
- if (!t) return;
2254
- const r = n.definitions[t];
2512
+ const r = o.definitions[n];
2255
2513
  if (!r?.fontCharacter) return;
2256
- const i = Kr(n, r);
2514
+ const i = bi(o, r);
2257
2515
  if (i)
2258
2516
  return {
2259
2517
  fontFamily: i,
2260
- fontCharacter: Yr(r.fontCharacter),
2518
+ fontCharacter: xi(r.fontCharacter),
2261
2519
  fontColor: r.fontColor
2262
2520
  };
2263
- }, Nt = "data-pstdio-file-icon-fonts", Jr = (n) => {
2264
- const e = n.src.map((o) => `url("${o.url}")${o.format ? ` format("${o.format}")` : ""}`).join(", ");
2265
- return ["@font-face {", ` font-family: "${n.fontFamily}";`, ` src: ${e};`, ` font-weight: ${n.weight ?? "normal"};`, ` font-style: ${n.style ?? "normal"};`, "}"].join(`
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(`
2266
2524
  `);
2267
- }, ei = (n, e) => {
2525
+ }, yi = (o, e) => {
2268
2526
  if (typeof document > "u") return;
2269
- let o = document.querySelector(`style[${Nt}]`);
2270
- o || (o = document.createElement("style"), o.setAttribute(Nt, ""), document.head.appendChild(o));
2271
- const t = e.find((r) => r.id === n);
2272
- o.textContent = (t?.fonts ?? []).map(Jr).join(`
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(`
2273
2531
 
2274
2532
  `);
2275
- }, on = "file-icon-theme-preference", ct = (n) => n.find((e) => e.id.endsWith(".seti"))?.id ?? n[0]?.id ?? null, rn = hn(null), ti = (n) => {
2276
- if (typeof window > "u") return ct(n);
2277
- const e = Ne().getItem(on);
2278
- return nn(e, n) ? e : ct(n);
2279
- }, il = (n) => {
2280
- const e = T(18), {
2281
- children: o,
2282
- themePreferences: t
2283
- } = n, r = t === void 0 ? Qr : t;
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;
2284
2542
  let i;
2285
- e[0] !== r ? (i = () => ti(r), e[0] = r, e[1] = i) : i = e[1];
2286
- const [s, a] = ce(i);
2287
- let c, d;
2288
- e[2] !== s || e[3] !== r ? (c = () => {
2289
- const m = nn(s, r) ? s : ct(r);
2290
- if (m !== s) {
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) {
2291
2549
  a(m);
2292
2550
  return;
2293
2551
  }
2294
- ei(m, r), typeof window < "u" && m && Ne().setItem(on, m);
2295
- }, d = [s, r], e[2] = s, e[3] = r, e[4] = c, e[5] = d) : (c = e[4], d = e[5]), he(c, d);
2296
- let u;
2297
- if (e[6] !== s || e[7] !== r) {
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) {
2298
2556
  let m;
2299
- e[9] !== s ? (m = (g) => g.id === s, e[9] = s, e[10] = m) : m = e[10], u = r.find(m), e[6] = s, e[7] = r, e[8] = u;
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;
2300
2558
  } else
2301
- u = e[8];
2302
- const h = u;
2303
- let f;
2304
- e[11] !== h || e[12] !== s || e[13] !== r ? (f = {
2305
- fileIconThemePreference: s,
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,
2306
2564
  fileIconThemePreferences: r,
2307
- activeFileIconTheme: h,
2565
+ activeFileIconTheme: f,
2308
2566
  setFileIconThemePreference: a
2309
- }, 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];
2310
2568
  let p;
2311
- return e[15] !== o || e[16] !== f ? (p = /* @__PURE__ */ l(rn, { value: f, children: o }), e[15] = o, e[16] = f, e[17] = p) : p = e[17], p;
2312
- }, ll = () => {
2313
- const n = mn(rn);
2314
- if (!n)
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)
2315
2573
  throw new Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
2316
- return n;
2317
- }, sl = (n, e = {}) => {
2574
+ return o;
2575
+ }, El = (o, e = {}) => {
2318
2576
  const {
2319
- isDirectory: o = !1,
2320
- theme: t,
2577
+ isDirectory: t = !1,
2578
+ theme: n,
2321
2579
  size: r = 16
2322
- } = e, i = Zr(t, n, o);
2580
+ } = e, i = Si(n, o, t);
2323
2581
  if (i) {
2324
2582
  const a = {
2325
2583
  fontFamily: `"${i.fontFamily}"`,
@@ -2328,141 +2586,149 @@ const At = {
2328
2586
  lineHeight: 1,
2329
2587
  display: "inline-flex"
2330
2588
  };
2331
- 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 });
2332
2590
  }
2333
- if (o) return /* @__PURE__ */ l(Qt, { size: r });
2334
- const s = $n(n);
2335
- 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 });
2336
2594
  };
2337
2595
  export {
2338
- vl as ANCHOR_GRID_VALUES,
2339
- yl as ActionInput,
2340
- ki as Activity,
2341
- rt as ActivityAvatar,
2342
- Qn as ActivityComment,
2343
- Xn as ActivityComposer,
2344
- Kn as ActivityEvent,
2345
- Jn as ActivityFeed,
2346
- Zn as ActivityHeader,
2347
- jn as ActivityReply,
2348
- Yn as ActivityRoot,
2349
- eo as ActivityTimeline,
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,
2350
2608
  ft as AlertMessage,
2351
- Cl as AnchorGridInput,
2352
- Bi as AttachedMenu,
2353
- Ni as AttachedPanel,
2354
- wl as AttachmentChip,
2355
- Il as BooleanInput,
2356
- Mi as Breadcrumb,
2357
- Wi as BubbleButton,
2358
- Fi as BubblePanel,
2359
- dl as ChakraProvider,
2360
- is as Checkbox,
2361
- Tl as Chip,
2362
- Pl as ColorInput,
2363
- Xo as ContentPlaceholder,
2364
- Vi as ContentPlaceholderLabel,
2365
- Di as DEFAULT_PALETTE_ASSET_LIMIT,
2366
- Al as DateInput,
2367
- No as DeleteConfirmationModal,
2368
- ss as EmptyState,
2369
- Gi as ErrorBoundary,
2370
- il as FileIconThemePreferenceProvider,
2371
- El as FileUploadInput,
2372
- On as Header,
2373
- _i as HorizontalMenuStack,
2374
- kl as HorizontalTextInput,
2375
- qt as IconColorPicker,
2376
- Ui as IntegrationCard,
2377
- $i as ItemSection,
2378
- Je as ListRow,
2379
- Dl as MarkdownInput,
2380
- zi as NotificationCenter,
2381
- Rl as NumberInput,
2382
- yt as PANEL_HEADER_CONTROL_SIZE,
2383
- To as PANEL_HEADER_HEIGHT,
2384
- Li as PANEL_HEADER_TAB_SIZE,
2385
- Ri as Palette,
2386
- Oi as PaletteShortcut,
2387
- ns as ParamEditor,
2388
- Ol as ParamEditorControlItem,
2389
- Qi as ParamEditorControlList,
2390
- _l as ParamEditorField,
2391
- $l as ParamEditorFieldLabel,
2392
- Ll as ParamEditorInlineGroup,
2393
- zl as ParamEditorLabel,
2394
- Bl as ParamEditorReadOnlyField,
2395
- Nl as ParamEditorReadOnlyValue,
2396
- os as ParamEditorSection,
2397
- bl as Radio,
2398
- xl as RadioGroup,
2399
- Wl as RangeInput,
2400
- Hi as RepoPickerDialog,
2401
- pl as ResizableSplitLayout,
2402
- fl as ResourceActionMenu,
2403
- cs as ResourceBadge,
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,
2640
+ Ct as PANEL_HEADER_CONTROL_SIZE,
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,
2404
2663
  Xt as ResourceContextMenu,
2405
- Fl as ResourceInput,
2406
- Ze as ScrollArea,
2407
- Zt as SearchModalContent,
2408
- hl as SearchableMenu,
2409
- Hl as SegmentedInput,
2410
- Ml as SelectionInput,
2411
- Vl as SessionIndicator,
2412
- Xi as Sidenav,
2413
- Ko as SimpleCard,
2414
- Yo as SimpleCardBody,
2415
- Gl as Switch,
2416
- Rr as TagEditor,
2417
- tl as TagSettingsPanel,
2418
- Ul as TextInput,
2419
- ps as ThemePreferenceProvider,
2420
- ji as Toaster,
2421
- Ge as Tooltip,
2422
- _n as TreeList,
2423
- jl as VectorInput,
2424
- Ql as WorkspaceBadge,
2425
- ei as applyFileIconThemePreference,
2426
- gs as applyThemePreference,
2427
- ol as applyTreeListOrder,
2428
- el as buildTabVisibilityMenuActions,
2429
- Zi as buildTreeVisibilityMenuActions,
2430
- us as createMonacoThemeFromVsCodeTheme,
2431
- fs as createThemePreferenceFromVsCodeTheme,
2432
- Qr as defaultFileIconThemePreferences,
2433
- bs as defaultThemePreferences,
2434
- io as filterPaletteEntries,
2435
- Ki as filterVisibleNodes,
2436
- Yi as filterVisibleSections,
2437
- Ji as filterVisibleTabs,
2438
- $n as getFileTypeIcon,
2439
- Xl as getIconComponent,
2440
- xs as getInitialThemePreference,
2441
- Ir as getTabVisibilityStore,
2442
- Ss as getThemePreferenceClassName,
2443
- vs as getThemePreferenceClassNames,
2444
- ys as getThemePreferenceMode,
2445
- Wr as getTreeListOrderStore,
2446
- jr as getTreeListVisibilityStore,
2447
- Ts as installPrismGlobal,
2448
- ql as isAnchorGridValue,
2449
- nn as isFileIconThemePreference,
2450
- Kl as isParamEditorRichControl,
2451
- Cs as isThemePreference,
2452
- Yl as optionColors,
2453
- Zl as optionIcons,
2454
- hs as psTheme,
2455
- sl as resolveFileIconElement,
2456
- Zr as resolveFileIconGlyph,
2457
- Jl as resolveSessionIndicatorColor,
2458
- es as resolveSessionIndicatorIcon,
2459
- We as resolveVisibility,
2460
- Zo as toaster,
2461
- ll as useFileIconThemePreference,
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,
2684
+ Ue as Tooltip,
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,
2462
2728
  ze as useSidenavStore,
2463
- qi as useTabVisibilityStore,
2464
- ws as useThemePreference,
2465
- nl as useTreeListOrderStore,
2466
- rl as useTreeListVisibilityStore
2729
+ bl as useTabVisibilityStore,
2730
+ Qs as useThemePreference,
2731
+ Il as useTreeListOrderStore,
2732
+ Pl as useTreeListVisibilityStore
2467
2733
  };
2468
2734
  //# sourceMappingURL=index.js.map