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