@pstdio/ui 0.20.1 → 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.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
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";
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
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
10
  import { L as nt, H as Ln, R as Xt } from "./list-row-9oxy-F0v.js";
11
- import { c as $l, b as Ol } from "./list-row-9oxy-F0v.js";
11
+ import { c as Ol, b as $l } from "./list-row-9oxy-F0v.js";
12
12
  import { T as zn } from "./tree-list-uV4UFj0x.js";
13
13
  import { R as Ll } from "./tree-list-uV4UFj0x.js";
14
14
  import { A as ft } from "./radio-cLMEBBZk.js";
@@ -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 $s, a as Os, t as Ds } from "./theme-BH4fSst9.js";
37
+ import { c as Os, a as $s, t as Ds } from "./theme-BH4fSst9.js";
38
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
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,
@@ -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,16 +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
357
  }, St = (o) => o != null, vo = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", Kt = (o) => {
358
- const e = P(49), {
358
+ const e = R(49), {
359
359
  children: t,
360
360
  searchValue: n,
361
361
  searchPlaceholder: r,
@@ -363,59 +363,59 @@ const st = (o) => {
363
363
  searchIcon: l,
364
364
  searchInputRef: a,
365
365
  searchAutoFocus: c,
366
- showCloseButton: u,
367
- closeButtonLabel: d,
366
+ showCloseButton: d,
367
+ closeButtonLabel: u,
368
368
  bodyBefore: f,
369
369
  footerStart: h,
370
370
  footerEnd: p,
371
371
  scrollAreaProps: m,
372
372
  onSearchChange: g,
373
- onSearchKeyDown: v
374
- } = o, C = i === void 0 ? r : i, R = u === void 0 ? !1 : u, E = d === void 0 ? "Close" : d;
375
- let O;
376
- if (e[0] !== f || e[1] !== t || e[2] !== E || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== v || e[7] !== m || e[8] !== C || e[9] !== c || e[10] !== l || e[11] !== a || e[12] !== r || e[13] !== n || e[14] !== R) {
377
- const S = St(h), k = St(p);
378
- let w;
379
- e[16] !== m ? (w = m ?? {}, e[16] = m, e[17] = w) : w = e[17];
380
- let $, T, A;
381
- e[18] !== w ? ({
382
- maxH: T,
383
- showHorizontalScrollbar: A,
384
- ...$
385
- } = w, e[18] = w, e[19] = $, e[20] = T, e[21] = A) : ($ = e[19], T = e[20], A = e[21]);
386
- const L = T === void 0 ? "24rem" : T, N = A === void 0 ? !1 : A;
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;
387
387
  let D;
388
- e[22] !== g ? (D = (M) => g(M.target.value), e[22] = g, e[23] = D) : D = e[23];
389
- let I;
390
- e[24] !== v || e[25] !== C || e[26] !== c || e[27] !== a || e[28] !== r || e[29] !== n || e[30] !== D ? (I = /* @__PURE__ */ s(Mt, { ref: a, value: n, placeholder: r, "aria-label": C, autoComplete: "off", autoFocus: c, mx: "xs", h: "3rem", variant: "borderless", onChange: D, onKeyDown: v }), e[24] = v, e[25] = C, e[26] = c, e[27] = a, e[28] = r, e[29] = n, e[30] = D, e[31] = I) : I = e[31];
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];
391
393
  let y;
392
- e[32] !== l || e[33] !== I ? (y = /* @__PURE__ */ s(Vt, { startElement: l, width: "full", children: I }), e[32] = l, e[33] = I, e[34] = y) : y = e[34];
393
- let b;
394
- e[35] !== E || e[36] !== R ? (b = R ? /* @__PURE__ */ s(X.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ht, { "aria-label": E, size: "sm", mr: "2" }) }) : null, e[35] = E, e[36] = R, e[37] = b) : b = e[37];
395
- let _;
396
- e[38] !== b || e[39] !== y ? (_ = /* @__PURE__ */ x(X.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
397
- y,
398
- b
399
- ] }), e[38] = b, e[39] = y, e[40] = _) : _ = e[40];
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];
400
400
  let B;
401
- e[41] !== t || e[42] !== L || e[43] !== $ || e[44] !== N ? (B = /* @__PURE__ */ s(tt, { maxH: L, showHorizontalScrollbar: N, ...$, children: t }), e[41] = t, e[42] = L, e[43] = $, e[44] = N, e[45] = B) : B = e[45];
402
- let H;
403
- 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: [
404
404
  f,
405
405
  B
406
- ] }), e[46] = f, e[47] = B, e[48] = H) : H = e[48], O = /* @__PURE__ */ x(Fe, { children: [
407
- _,
408
- H,
409
- S || k ? /* @__PURE__ */ x(X.Footer, { justifyContent: vo(S, k), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
410
- S ? /* @__PURE__ */ s(V, { minW: "0", children: h }) : null,
411
- k ? /* @__PURE__ */ s(V, { flexShrink: 0, children: p }) : null
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
412
412
  ] }) : null
413
- ] }), e[0] = f, e[1] = t, e[2] = E, e[3] = p, e[4] = h, e[5] = g, e[6] = v, e[7] = m, e[8] = C, e[9] = c, e[10] = l, e[11] = a, e[12] = r, e[13] = n, e[14] = R, e[15] = O;
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;
414
414
  } else
415
- O = e[15];
416
- return O;
415
+ k = e[15];
416
+ return k;
417
417
  }, vt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, Yi = (o) => {
418
- const e = P(71), {
418
+ const e = R(71), {
419
419
  open: t,
420
420
  entries: n,
421
421
  initialQuery: r,
@@ -423,65 +423,65 @@ const st = (o) => {
423
423
  mode: l,
424
424
  modes: a,
425
425
  resetKey: c,
426
- inputIcon: u,
427
- placeholder: d,
426
+ inputIcon: d,
427
+ placeholder: u,
428
428
  emptyLabel: f,
429
429
  footerStart: h,
430
430
  footerEnd: p,
431
431
  filterEntries: m,
432
432
  onActiveEntryChange: g,
433
- onQueryChange: v,
433
+ onQueryChange: b,
434
434
  onClose: C,
435
- onEscape: R
436
- } = o, E = r === void 0 ? "" : r, O = i === void 0 ? 0 : i, S = c === void 0 ? "default" : c, k = f === void 0 ? "No results." : f, [w, $] = ue(E), [T, A] = ue(O), L = je(null), N = je(null);
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);
437
437
  let D;
438
- e[0] !== S ? (D = {
438
+ e[0] !== v ? (D = {
439
439
  open: !1,
440
- resetKey: S
441
- }, e[0] = S, e[1] = D) : D = e[1];
442
- const I = je(D);
443
- let y, b, _, B, H;
444
- if (e[2] !== T || e[3] !== n || e[4] !== m || e[5] !== u || e[6] !== l || e[7] !== a || e[8] !== d || e[9] !== w) {
445
- const F = l ?? ao(w, a);
446
- b = m ? m(n, w, F) : fo(n, {
447
- query: w,
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,
448
448
  mode: F,
449
449
  getEffectiveQuery: (me) => co(me, a, F)
450
- }), y = b[T] ?? null, B = {
451
- query: w,
450
+ }), S = y[I] ?? null, B = {
451
+ query: A,
452
452
  mode: F,
453
- activeIndex: T,
454
- entries: b
455
- }, _ = vt(u, B, null), H = vt(d, B, "Search"), e[2] = T, e[3] = n, e[4] = m, e[5] = u, e[6] = l, e[7] = a, e[8] = d, e[9] = w, e[10] = y, e[11] = b, e[12] = _, e[13] = B, e[14] = H;
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;
456
456
  } else
457
- y = e[10], b = e[11], _ = e[12], B = e[13], H = e[14];
458
- const M = H;
457
+ S = e[10], y = e[11], w = e[12], B = e[13], V = e[14];
458
+ const H = V;
459
459
  let G;
460
- e[15] !== v ? (G = (F) => {
461
- $(F), v?.(F);
462
- }, e[15] = v, e[16] = G) : G = e[16];
463
- const z = G;
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;
464
464
  let Y;
465
- e[17] !== y ? (Y = () => {
466
- y?.onActivate();
467
- }, e[17] = y, e[18] = Y) : Y = e[18];
468
- const q = Y;
469
- let U;
470
- e[19] !== C ? (U = () => {
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 = () => {
471
471
  C();
472
- }, e[19] = C, e[20] = U) : U = e[20];
473
- const Q = U;
474
- let K, ae;
475
- e[21] !== O || e[22] !== E || e[23] !== t || e[24] !== S ? (ae = () => {
476
- const F = I.current;
477
- if (I.current = {
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 = {
478
478
  open: t,
479
- resetKey: S
480
- }, !t || !(!F.open || F.resetKey !== S))
479
+ resetKey: v
480
+ }, !t || !(!F.open || F.resetKey !== v))
481
481
  return;
482
- $(E), A(O);
482
+ T(E), P(k);
483
483
  const ye = setTimeout(() => {
484
- const Ce = L.current;
484
+ const Ce = _.current;
485
485
  if (!Ce)
486
486
  return;
487
487
  Ce.focus();
@@ -489,53 +489,53 @@ const st = (o) => {
489
489
  Ce.setSelectionRange(pe, pe);
490
490
  }, 0);
491
491
  return () => clearTimeout(ye);
492
- }, K = [O, E, t, S], e[21] = O, e[22] = E, e[23] = t, e[24] = S, e[25] = K, e[26] = ae) : (K = e[25], ae = e[26]), he(ae, K);
493
- let J, Z;
494
- e[27] !== b.length ? (J = () => {
495
- A((F) => Math.min(F, Math.max(b.length - 1, 0)));
496
- }, Z = [b.length], e[27] = b.length, e[28] = J, e[29] = Z) : (J = e[28], Z = e[29]), he(J, Z);
497
- let ee, ne;
498
- e[30] !== y || e[31] !== T || e[32] !== g ? (ee = () => {
499
- g?.(y, T);
500
- }, ne = [y, T, g], e[30] = y, e[31] = T, e[32] = g, e[33] = ee, e[34] = ne) : (ee = e[33], ne = e[34]), he(ee, ne);
501
- let te;
502
- e[35] !== y || e[36] !== Q || e[37] !== b.length || e[38] !== R || e[39] !== w || e[40] !== q || e[41] !== z || e[42] !== B ? (te = () => {
503
- if (!R?.({
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?.({
504
504
  ...B,
505
- activeEntry: y,
506
- entryCount: b.length,
507
- setQuery: z,
508
- setActiveIndex: A,
509
- runActiveEntry: q,
510
- closePalette: Q
505
+ activeEntry: S,
506
+ entryCount: y.length,
507
+ setQuery: L,
508
+ setActiveIndex: P,
509
+ runActiveEntry: J,
510
+ closePalette: j
511
511
  })) {
512
- if (w.length > 0) {
513
- z(""), A(0);
512
+ if (A.length > 0) {
513
+ L(""), P(0);
514
514
  return;
515
515
  }
516
- Q();
516
+ j();
517
517
  }
518
- }, e[35] = y, e[36] = Q, e[37] = b.length, e[38] = R, e[39] = w, e[40] = q, e[41] = z, e[42] = B, e[43] = te) : te = e[43];
519
- const le = te;
520
- let ie;
521
- e[44] !== b.length || e[45] !== le || e[46] !== q ? (ie = (F) => {
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) => {
522
522
  if (F.key === "ArrowDown") {
523
- 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)));
524
524
  return;
525
525
  }
526
526
  if (F.key === "ArrowUp") {
527
- F.preventDefault(), A(yo);
527
+ F.preventDefault(), P(yo);
528
528
  return;
529
529
  }
530
530
  if (F.key === "Enter") {
531
- F.preventDefault(), q();
531
+ F.preventDefault(), J();
532
532
  return;
533
533
  }
534
- F.key === "Escape" && (F.preventDefault(), F.stopPropagation(), le());
535
- }, e[44] = b.length, e[45] = le, e[46] = q, e[47] = ie) : ie = e[47];
536
- const ce = ie;
537
- let oe;
538
- 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];
539
539
  let be;
540
540
  e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ s(X.Backdrop, {}), e[50] = be) : be = e[50];
541
541
  let Te;
@@ -550,18 +550,18 @@ const st = (o) => {
550
550
  }
551
551
  }, e[51] = Te) : Te = e[51];
552
552
  let xe;
553
- e[52] !== z ? (xe = (F) => {
554
- z(F), A(0);
555
- }, 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];
556
556
  let Se;
557
- e[54] !== T || e[55] !== k || e[56] !== b ? (Se = /* @__PURE__ */ s(So, { entries: b, activeIndex: T, emptyLabel: k, onHover: A, scrollRef: N }), e[54] = T, e[55] = k, e[56] = b, e[57] = Se) : Se = e[57];
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];
558
558
  let ve;
559
- e[58] !== p || e[59] !== h || e[60] !== ce || e[61] !== w || e[62] !== _ || e[63] !== M || e[64] !== xe || e[65] !== Se ? (ve = /* @__PURE__ */ s(X.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(X.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Kt, { searchValue: w, searchPlaceholder: M, searchIcon: _, searchInputRef: L, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Te, onSearchChange: xe, onSearchKeyDown: ce, children: Se }) }) }), e[58] = p, e[59] = h, e[60] = ce, e[61] = w, e[62] = _, e[63] = M, e[64] = xe, e[65] = Se, e[66] = ve) : ve = e[66];
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];
560
560
  let Pe;
561
- 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: [
562
562
  be,
563
563
  ve
564
- ] }), 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;
565
565
  };
566
566
  function yo(o) {
567
567
  return Math.max(o - 1, 0);
@@ -629,17 +629,17 @@ const Co = {
629
629
  label: o
630
630
  };
631
631
  }, yt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Ao = (o) => (Array.isArray(o) ? o.map(yt) : [yt(o)]).map((t) => t.map((n) => Po(n))), Ki = (o) => {
632
- const e = P(4), {
632
+ const e = R(4), {
633
633
  binding: t
634
634
  } = o;
635
635
  let n;
636
636
  if (e[0] !== t) {
637
637
  const i = Ao(t);
638
638
  n = i.map((l, a) => /* @__PURE__ */ x(bt, { children: [
639
- l.map((c, u) => /* @__PURE__ */ x(bt, { children: [
639
+ l.map((c, d) => /* @__PURE__ */ x(bt, { children: [
640
640
  /* @__PURE__ */ s(ln, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": c.label, children: c.Icon ? /* @__PURE__ */ s(c.Icon, { size: 12, "aria-hidden": "true" }) : c.label }),
641
- u < l.length - 1 ? " " : null
642
- ] }, `${c.label}-${u}`)),
641
+ d < l.length - 1 ? " " : null
642
+ ] }, `${c.label}-${d}`)),
643
643
  a < i.length - 1 ? " then " : null
644
644
  ] }, `${l.map(Ro).join("+")}-${a}`)), e[0] = t, e[1] = n;
645
645
  } else
@@ -651,7 +651,7 @@ function Ro(o) {
651
651
  return o.label;
652
652
  }
653
653
  function Zi(o) {
654
- const e = P(14);
654
+ const e = R(14);
655
655
  let t, n, r, i, l, a;
656
656
  e[0] !== o ? ({
657
657
  children: t,
@@ -661,12 +661,12 @@ function Zi(o) {
661
661
  borderBottomWidth: a,
662
662
  ...n
663
663
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6]);
664
- const c = r === void 0 ? "41px" : r, u = i === void 0 ? "xs" : i, d = l === void 0 ? "xs" : l, f = a === void 0 ? "1px" : a;
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;
665
665
  let h;
666
- return e[7] !== f || e[8] !== t || e[9] !== c || e[10] !== u || e[11] !== d || e[12] !== n ? (h = /* @__PURE__ */ s(re, { ...n, h: c, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: u, py: d, children: t }), e[7] = f, e[8] = t, e[9] = c, e[10] = u, e[11] = d, e[12] = n, e[13] = h) : h = e[13], h;
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;
667
667
  }
668
668
  const Ji = (o) => {
669
- const e = P(17), {
669
+ const e = R(17), {
670
670
  children: t,
671
671
  title: n,
672
672
  defaultOpen: r,
@@ -678,22 +678,22 @@ const Ji = (o) => {
678
678
  }, e[0] = a) : a = e[0];
679
679
  let c;
680
680
  e[1] !== n ? (c = n && /* @__PURE__ */ s(W, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = c) : c = e[2];
681
- let u;
682
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(Xe.Indicator, { transition: "transform 0.2s", _open: {
683
- transform: "rotate(90deg)"
684
- }, children: /* @__PURE__ */ s(yn, { size: 16 }) }), e[3] = u) : u = e[3];
685
681
  let d;
686
- e[4] !== c ? (d = /* @__PURE__ */ x(Xe.Trigger, { _hover: a, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
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: [
687
687
  c,
688
- u
689
- ] }), e[4] = c, e[5] = d) : d = e[5];
688
+ d
689
+ ] }), e[4] = c, e[5] = u) : u = e[5];
690
690
  let f;
691
- e[6] !== i ? (f = i && /* @__PURE__ */ s(V, { marginLeft: "auto", onClick: Eo, children: i }), e[6] = i, e[7] = f) : f = e[7];
691
+ e[6] !== i ? (f = i && /* @__PURE__ */ s(M, { marginLeft: "auto", onClick: Eo, children: i }), e[6] = i, e[7] = f) : f = e[7];
692
692
  let h;
693
- e[8] !== d || e[9] !== f ? (h = /* @__PURE__ */ x(ge, { children: [
694
- d,
693
+ e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ x(ge, { children: [
694
+ u,
695
695
  f
696
- ] }), 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];
697
697
  let p;
698
698
  e[11] !== t ? (p = /* @__PURE__ */ s(Xe.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
699
699
  let m;
@@ -705,9 +705,9 @@ const Ji = (o) => {
705
705
  function Eo(o) {
706
706
  return o.stopPropagation();
707
707
  }
708
- const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", _o = (o) => o !== "normal", $o = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), Oo = (o, e) => {
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) => {
709
709
  const t = e.trim().toLowerCase();
710
- return t ? o.filter((n) => $o(n).includes(t)) : o;
710
+ return t ? o.filter((n) => Oo(n).includes(t)) : o;
711
711
  }, Jt = (o) => {
712
712
  const e = o.filter((r) => r.kind === "blocked"), t = o.filter((r) => r.kind !== "blocked" && (r.priority === "urgent" || r.priority === "high")), n = o.filter((r) => r.kind !== "blocked" && (r.priority === "normal" || r.priority === "low"));
713
713
  return [{
@@ -733,7 +733,7 @@ const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" :
733
733
  onAction: () => e.onDismiss?.(o)
734
734
  }), t;
735
735
  }, No = (o) => {
736
- const e = P(15), {
736
+ const e = R(15), {
737
737
  actions: t,
738
738
  item: n,
739
739
  onRunAction: r
@@ -744,14 +744,14 @@ const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" :
744
744
  e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Ne, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
745
745
  let a;
746
746
  if (e[4] !== t || e[5] !== n || e[6] !== r) {
747
- let u;
748
- e[8] !== n || e[9] !== r ? (u = (d) => /* @__PURE__ */ s(de, { size: "2xs", variant: "outline", colorPalette: d.destructive ? "red" : "gray", maxW: "9rem", onClick: (f) => {
749
- f.stopPropagation(), r?.(n, d);
750
- }, children: /* @__PURE__ */ s(W, { truncate: !0, children: d.label }) }, d.id), e[8] = n, e[9] = r, e[10] = u) : u = e[10], a = t.map(u), e[4] = t, e[5] = n, e[6] = r, e[7] = a;
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;
751
751
  } else
752
752
  a = e[7];
753
753
  let c;
754
- return e[11] !== i || e[12] !== l || e[13] !== a ? (c = /* @__PURE__ */ x(re, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
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: [
755
755
  i,
756
756
  l,
757
757
  a
@@ -765,19 +765,19 @@ const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" :
765
765
  onRunAction: i
766
766
  } = o, l = Jt(t);
767
767
  let a = 0;
768
- 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: [
769
769
  /* @__PURE__ */ s(W, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: c.label }),
770
- c.items.map((u) => {
771
- const d = a;
772
- return a += 1, /* @__PURE__ */ s(nt, { id: u.id, label: u.title, description: Lo(u), icon: /* @__PURE__ */ s(se, { as: Cn, boxSize: "14px" }), iconColor: `${Zt(u.priority)}.500`, variant: "compact", isSelected: d === e, endContent: /* @__PURE__ */ s(No, { item: u, actions: u.actions ?? [], onRunAction: i }), actions: zo(u, o), tabIndex: -1, onActivate: () => n?.(u), onPointerMove: () => r(d) }, u.id);
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);
773
773
  })
774
774
  ] }, c.id)) });
775
775
  }, Wo = () => {
776
- const o = P(1);
776
+ const o = R(1);
777
777
  let e;
778
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Fo) }), o[0] = e) : e = o[0], e;
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
779
  }, tl = (o) => {
780
- const e = P(37), {
780
+ const e = R(37), {
781
781
  autoFocus: t,
782
782
  emptyLabel: n,
783
783
  error: r,
@@ -785,67 +785,67 @@ const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" :
785
785
  footerStart: l,
786
786
  items: a,
787
787
  loading: c,
788
- onActivateItem: u,
789
- onEscape: d,
788
+ onActivateItem: d,
789
+ onEscape: u,
790
790
  onQueryChange: f,
791
791
  query: h
792
- } = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = c === void 0 ? !1 : c, [v, C] = ue(""), [R, E] = ue(0), O = je(null), S = h ?? v;
793
- let k, w;
794
- e[0] !== S || e[1] !== a ? (k = Oo(a, S), w = Do(k), e[0] = S, e[1] = a, e[2] = k, e[3] = w) : (k = e[2], w = e[3]);
795
- const $ = w, T = $[R] ?? null;
796
- let A, L;
797
- e[4] !== p ? (A = () => {
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 = () => {
798
798
  if (!p)
799
799
  return;
800
- const z = setTimeout(() => O.current?.focus(), 0);
801
- return () => clearTimeout(z);
802
- }, L = [p], e[4] = p, e[5] = A, e[6] = L) : (A = e[5], L = e[6]), he(A, L);
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, _);
803
803
  let N, D;
804
- e[7] !== $.length ? (N = () => {
805
- E((z) => Math.min(z, Math.max($.length - 1, 0)));
806
- }, D = [$.length], e[7] = $.length, e[8] = N, e[9] = D) : (N = e[8], D = e[9]), he(N, D);
807
- let I;
808
- e[10] !== f || e[11] !== h ? (I = (z) => {
809
- h === void 0 && C(z), f?.(z), E(0);
810
- }, e[10] = f, e[11] = h, e[12] = I) : I = e[12];
811
- const y = I;
812
- let b;
813
- e[13] !== T || e[14] !== S || e[15] !== $.length || e[16] !== u || e[17] !== d || e[18] !== y ? (b = (z) => {
814
- if (z.key === "ArrowDown") {
815
- z.preventDefault(), E((Y) => Math.min(Y + 1, Math.max($.length - 1, 0)));
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)));
816
816
  return;
817
817
  }
818
- if (z.key === "ArrowUp") {
819
- z.preventDefault(), E(Ho);
818
+ if (L.key === "ArrowUp") {
819
+ L.preventDefault(), E(Ho);
820
820
  return;
821
821
  }
822
- if (z.key === "Enter") {
823
- z.preventDefault(), T && u?.(T);
822
+ if (L.key === "Enter") {
823
+ L.preventDefault(), I && d?.(I);
824
824
  return;
825
825
  }
826
- if (z.key === "Escape") {
827
- if (z.preventDefault(), S.length > 0) {
828
- y("");
826
+ if (L.key === "Escape") {
827
+ if (L.preventDefault(), v.length > 0) {
828
+ S("");
829
829
  return;
830
830
  }
831
- d?.();
831
+ u?.();
832
832
  }
833
- }, e[13] = T, e[14] = S, e[15] = $.length, e[16] = u, e[17] = d, e[18] = y, e[19] = b) : b = e[19];
834
- const _ = b;
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;
835
835
  let B;
836
836
  e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(Ut, { size: 14 }), e[20] = B) : B = e[20];
837
- let H;
838
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
837
+ let V;
838
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = {
839
839
  maxH: "24rem",
840
840
  showHorizontalScrollbar: !1
841
- }, e[21] = H) : H = e[21];
842
- let M;
843
- e[22] !== R || e[23] !== m || e[24] !== r || e[25] !== k || e[26] !== g || e[27] !== o ? (M = r ? /* @__PURE__ */ s(V, { p: "sm", children: /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Wo, {}) : k.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(Bo, { ...o, items: k, activeIndex: R, onActiveIndexChange: E }), e[22] = R, e[23] = m, e[24] = r, e[25] = k, e[26] = g, e[27] = o, e[28] = M) : M = e[28];
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];
844
844
  let G;
845
- return e[29] !== S || e[30] !== p || e[31] !== i || e[32] !== l || e[33] !== _ || e[34] !== M || e[35] !== y ? (G = /* @__PURE__ */ s(Kt, { searchValue: S, searchPlaceholder: "Search notifications", searchIcon: B, searchInputRef: O, searchAutoFocus: p, footerStart: l, footerEnd: i, scrollAreaProps: H, onSearchChange: y, onSearchKeyDown: _, children: M }), e[29] = S, e[30] = p, e[31] = i, e[32] = l, e[33] = _, e[34] = M, e[35] = y, e[36] = G) : G = e[36], G;
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;
846
846
  };
847
847
  function Fo(o) {
848
- return /* @__PURE__ */ x(j, { gap: "2xs", children: [
848
+ return /* @__PURE__ */ x(U, { gap: "2xs", children: [
849
849
  /* @__PURE__ */ s(mt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
850
850
  /* @__PURE__ */ s(mt, { h: "3", w: "88%", borderRadius: "xs" })
851
851
  ] }, o);
@@ -854,7 +854,7 @@ function Ho(o) {
854
854
  return Math.max(o - 1, 0);
855
855
  }
856
856
  const nl = (o) => {
857
- const e = P(6);
857
+ const e = R(6);
858
858
  let t, n;
859
859
  e[0] !== o ? ({
860
860
  children: t,
@@ -863,7 +863,7 @@ const nl = (o) => {
863
863
  let r;
864
864
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(ge, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
865
865
  }, Mo = "20rem", ol = (o) => {
866
- const e = P(15);
866
+ const e = R(15);
867
867
  let t, n, r, i, l, a;
868
868
  e[0] !== o ? ({
869
869
  children: t,
@@ -873,16 +873,16 @@ const nl = (o) => {
873
873
  resizable: a,
874
874
  ...i
875
875
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6]);
876
- const c = l === void 0 ? "28rem" : l, u = a === void 0 ? !1 : a, d = r ?? (u ? Mo : c), f = u ? "full" : c;
876
+ const c = l === void 0 ? "28rem" : l, d = a === void 0 ? !1 : a, u = r ?? (d ? Mo : c), f = d ? "full" : c;
877
877
  let h;
878
878
  e[7] !== t ? (h = /* @__PURE__ */ s(ge, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
879
879
  let p;
880
- return e[9] !== n || e[10] !== d || e[11] !== f || e[12] !== i || e[13] !== h ? (p = /* @__PURE__ */ x(ge, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: d, h: "100%", borderLeftWidth: "1px", bg: "bg", overflow: "hidden", ...i, children: [
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: [
881
881
  n,
882
882
  h
883
- ] }), e[9] = n, e[10] = d, e[11] = f, e[12] = i, e[13] = h, e[14] = p) : p = e[14], p;
883
+ ] }), e[9] = n, e[10] = u, e[11] = f, e[12] = i, e[13] = h, e[14] = p) : p = e[14], p;
884
884
  }, rl = jt(function(e, t) {
885
- const n = P(19);
885
+ const n = R(19);
886
886
  let r, i, l, a, c;
887
887
  n[0] !== e ? ({
888
888
  children: r,
@@ -891,7 +891,7 @@ const nl = (o) => {
891
891
  tooltip: c,
892
892
  ...l
893
893
  } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = a, n[5] = c) : (r = n[1], i = n[2], l = n[3], a = n[4], c = n[5]);
894
- const d = (a === void 0 ? !1 : a) ? "border.accent" : "border";
894
+ const u = (a === void 0 ? !1 : a) ? "border.accent" : "border";
895
895
  let f, h;
896
896
  n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
897
897
  borderColor: "border.accent"
@@ -899,59 +899,59 @@ const nl = (o) => {
899
899
  borderColor: "border.accent"
900
900
  }, n[6] = f, n[7] = h) : (f = n[6], h = n[7]);
901
901
  let p;
902
- n[8] !== r || n[9] !== t || n[10] !== l || n[11] !== d ? (p = /* @__PURE__ */ s(We, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: d, transition: "border-color 0.2s ease-in-out", _hover: f, _active: h, ...l, children: r }), n[8] = r, n[9] = t, n[10] = l, n[11] = d, n[12] = p) : p = n[12];
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];
903
903
  const m = p;
904
904
  let g;
905
905
  n[13] !== m || n[14] !== c ? (g = c ? /* @__PURE__ */ s(Ue, { content: c, children: m }) : m, n[13] = m, n[14] = c, n[15] = g) : g = n[15];
906
- let v;
907
- return n[16] !== i || n[17] !== g ? (v = /* @__PURE__ */ s(Ie.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = v) : v = n[18], v;
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
908
  }), il = jt(function(e, t) {
909
- const n = P(28), {
909
+ const n = R(28), {
910
910
  isOpen: r,
911
911
  title: i,
912
912
  menu: l,
913
913
  onClose: a,
914
914
  closeLabel: c,
915
- onPopOut: u,
916
- popOutLabel: d,
915
+ onPopOut: d,
916
+ popOutLabel: u,
917
917
  width: f,
918
918
  height: h,
919
919
  containerProps: p,
920
920
  testId: m,
921
921
  "aria-label": g,
922
- children: v
923
- } = e, C = r === void 0 ? !1 : r, R = f === void 0 ? "28rem" : f, E = h === void 0 ? "38rem" : h;
922
+ children: b
923
+ } = e, C = r === void 0 ? !1 : r, O = f === void 0 ? "28rem" : f, E = h === void 0 ? "38rem" : h;
924
924
  if (!C)
925
925
  return null;
926
- const O = g ?? i;
927
- let S;
928
- n[0] !== l ? (S = /* @__PURE__ */ s(re, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = S) : S = n[1];
929
- let k;
930
- n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ s(Ft, {}), n[2] = k) : k = n[2];
931
- let w;
932
- n[3] !== u || n[4] !== d ? (w = u ? /* @__PURE__ */ s(Ue, { content: d, children: /* @__PURE__ */ s(We, { size: Ct, variant: "ghost", "aria-label": d, onClick: u, children: /* @__PURE__ */ s(In, { size: 16 }) }) }) : null, n[3] = u, n[4] = d, n[5] = w) : w = n[5];
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];
933
929
  let $;
934
- n[6] !== c || n[7] !== a ? ($ = a ? /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(We, { size: Ct, variant: "ghost", "aria-label": c, onClick: a, children: /* @__PURE__ */ s(Tn, { size: 16 }) }) }) : null, n[6] = c, n[7] = a, n[8] = $) : $ = n[8];
935
- let T;
936
- n[9] !== w || n[10] !== $ ? (T = /* @__PURE__ */ x(re, { gap: "1", children: [
937
- w,
938
- $
939
- ] }), n[9] = w, n[10] = $, n[11] = T) : T = n[11];
930
+ n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(Ft, {}), n[2] = $) : $ = n[2];
940
931
  let A;
941
- n[12] !== S || n[13] !== T ? (A = /* @__PURE__ */ x(Ln, { variant: "main", gap: "sm", flexShrink: 0, children: [
942
- S,
943
- 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,
944
938
  T
945
- ] }), n[12] = S, n[13] = T, n[14] = A) : A = n[14];
946
- let L;
947
- n[15] !== v ? (L = /* @__PURE__ */ s(V, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: v }), n[15] = v, n[16] = L) : L = n[16];
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];
948
948
  let N;
949
- n[17] !== L || n[18] !== A ? (N = /* @__PURE__ */ x(ge, { direction: "column", h: "full", children: [
950
- A,
951
- L
952
- ] }), 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];
953
953
  let D;
954
- return n[20] !== p || n[21] !== E || n[22] !== t || n[23] !== N || n[24] !== O || n[25] !== m || n[26] !== R ? (D = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Ie.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": O, position: "fixed", bottom: "3", right: "3", w: R, maxW: "calc(100vw - 2rem)", h: E, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: N }) }), n[20] = p, n[21] = E, n[22] = t, n[23] = N, n[24] = O, n[25] = m, n[26] = R, n[27] = D) : D = n[27], D;
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
955
  }), Vo = (o) => {
956
956
  const [e, t] = ue(!1), {
957
957
  headline: n,
@@ -960,8 +960,8 @@ const nl = (o) => {
960
960
  onDelete: l,
961
961
  open: a,
962
962
  onClose: c,
963
- children: u
964
- } = o, d = async () => {
963
+ children: d
964
+ } = o, u = async () => {
965
965
  t(!0);
966
966
  try {
967
967
  await l(), c();
@@ -983,13 +983,13 @@ const nl = (o) => {
983
983
  /* @__PURE__ */ s(W, { textStyle: "heading/M", children: n }),
984
984
  /* @__PURE__ */ s(X.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ht, { size: "sm" }) })
985
985
  ] }),
986
- /* @__PURE__ */ s(X.Body, { children: /* @__PURE__ */ x(j, { gap: "3", children: [
986
+ /* @__PURE__ */ s(X.Body, { children: /* @__PURE__ */ x(U, { gap: "3", children: [
987
987
  i ? /* @__PURE__ */ s(W, { children: i }) : null,
988
- u
988
+ d
989
989
  ] }) }),
990
- /* @__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: [
991
991
  /* @__PURE__ */ s(de, { onClick: c, children: "Close" }),
992
- /* @__PURE__ */ s(de, { loading: e, variant: "destructive", onClick: d, children: r })
992
+ /* @__PURE__ */ s(de, { loading: e, variant: "destructive", onClick: u, children: r })
993
993
  ] }) })
994
994
  ] }) })
995
995
  ] }) })
@@ -998,7 +998,7 @@ const nl = (o) => {
998
998
  const t = e.trim().toLowerCase();
999
999
  return t ? o.filter((n) => `${n.name} ${n.path}`.toLowerCase().includes(t)) : o;
1000
1000
  }, Uo = (o) => {
1001
- const e = P(22), {
1001
+ const e = R(22), {
1002
1002
  entry: t,
1003
1003
  selectedPath: n,
1004
1004
  selectedPathSet: r,
@@ -1007,19 +1007,19 @@ const nl = (o) => {
1007
1007
  let l;
1008
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];
1009
1009
  const a = l, c = !t.isDirectory || a;
1010
- let u;
1011
- e[4] !== t || e[5] !== a || e[6] !== i ? (u = () => {
1010
+ let d;
1011
+ e[4] !== t || e[5] !== a || e[6] !== i ? (d = () => {
1012
1012
  a || i(t);
1013
- }, e[4] = t, e[5] = a, e[6] = i, e[7] = u) : u = e[7];
1014
- const d = u, f = n === t.path, h = t.path, p = t.name;
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;
1015
1015
  let m;
1016
1016
  e[8] !== t ? (m = Go(t), e[8] = t, e[9] = m) : m = e[9];
1017
1017
  let g;
1018
- e[10] !== m ? (g = /* @__PURE__ */ s(se, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
1019
- let v;
1020
- e[12] !== t.isGitRepo ? (v = t.isGitRepo ? /* @__PURE__ */ s(Ne, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = v) : v = e[13];
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];
1021
1021
  let C;
1022
- return e[14] !== t.name || e[15] !== t.path || e[16] !== d || e[17] !== c || e[18] !== f || e[19] !== g || e[20] !== v ? (C = /* @__PURE__ */ s(nt, { variant: "compact", isSelected: f, id: h, label: p, icon: g, endContent: v, disabled: c, onActivate: d }), e[14] = t.name, e[15] = t.path, e[16] = d, e[17] = c, e[18] = f, e[19] = g, e[20] = v, e[21] = C) : C = e[21], C;
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
1023
  }, Qo = (o) => {
1024
1024
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key))
1025
1025
  return;
@@ -1029,7 +1029,7 @@ const nl = (o) => {
1029
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;
1030
1030
  o.preventDefault(), e[n]?.focus();
1031
1031
  }, ll = (o) => {
1032
- const e = P(68), {
1032
+ const e = R(68), {
1033
1033
  open: t,
1034
1034
  title: n,
1035
1035
  description: r,
@@ -1037,102 +1037,102 @@ const nl = (o) => {
1037
1037
  entries: l,
1038
1038
  selectedPath: a,
1039
1039
  selectedPaths: c,
1040
- isLoading: u,
1041
- error: d,
1040
+ isLoading: d,
1041
+ error: u,
1042
1042
  isSelectDisabled: f,
1043
1043
  onClose: h,
1044
1044
  onSelect: p,
1045
1045
  onSelectHomeDirectory: m,
1046
1046
  onSelectParentDirectory: g,
1047
- onEntryClick: v
1048
- } = o, C = n === void 0 ? "Select folder" : n, R = i === void 0 ? "" : i, E = a === void 0 ? null : a;
1049
- let O;
1050
- e[0] !== c ? (O = c === void 0 ? [] : c, e[0] = c, e[1] = O) : O = e[1];
1051
- const S = O, k = u === void 0 ? !1 : u, w = d === void 0 ? "" : d, $ = f === void 0 ? !1 : f, [T, A] = ue("");
1052
- let L;
1053
- e[2] !== S ? (L = new Set(S), e[2] = S, e[3] = L) : L = e[3];
1054
- const N = L, D = jo(l, T), I = R || "Home";
1055
- let y, b;
1056
- e[4] !== t || e[5] !== I ? (b = () => {
1057
- !t || !I || A("");
1058
- }, y = [t, I], e[4] = t, e[5] = I, e[6] = y, e[7] = b) : (y = e[6], b = e[7]), he(b, y);
1059
- const _ = X, B = !0, H = !0, M = !1;
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;
1060
1060
  let G;
1061
1061
  e[8] !== h ? (G = (De) => !De.open && h(), e[8] = h, e[9] = G) : G = e[9];
1062
- let z;
1063
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ s(X.Backdrop, {}), e[10] = z) : z = e[10];
1064
- const Y = X, q = X;
1065
- let U;
1066
- e[11] !== C ? (U = /* @__PURE__ */ s(W, { textStyle: "heading/M", children: C }), e[11] = C, e[12] = U) : U = e[12];
1067
- let Q;
1068
- e[13] !== r ? (Q = r ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = Q) : Q = e[14];
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;
1069
1065
  let K;
1070
- e[15] !== U || e[16] !== Q ? (K = /* @__PURE__ */ s(X.Header, { children: /* @__PURE__ */ x(j, { gap: "xs", children: [
1071
- U,
1072
- Q
1073
- ] }) }), e[15] = U, e[16] = Q, e[17] = K) : K = e[17];
1074
- const ae = X, J = j, Z = "md";
1075
- let ee;
1076
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ s(Rn, { size: 16 }), e[18] = ee) : ee = e[18];
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";
1077
1075
  let ne;
1078
- e[19] !== m ? (ne = /* @__PURE__ */ s(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: ee }), e[19] = m, e[20] = ne) : ne = e[20];
1079
- const te = !R || R === "/";
1080
- let le;
1081
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ s(En, { size: 16 }), e[21] = le) : le = e[21];
1082
- let ie;
1083
- e[22] !== g || e[23] !== te ? (ie = /* @__PURE__ */ s(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: te, children: le }), e[22] = g, e[23] = te, e[24] = ie) : ie = e[24];
1084
- let ce;
1085
- e[25] !== I ? (ce = /* @__PURE__ */ s(W, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: I }), e[25] = I, e[26] = ce) : ce = e[26];
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];
1086
1082
  let oe;
1087
- e[27] !== ne || e[28] !== ie || e[29] !== ce ? (oe = /* @__PURE__ */ x(j, { direction: "row", gap: "sm", align: "center", children: [
1088
- ne,
1089
- ie,
1090
- ce
1091
- ] }), e[27] = ne, e[28] = ie, e[29] = ce, e[30] = oe) : oe = e[30];
1092
- const be = j, Te = "0", xe = "1px", Se = "md", ve = "border.subtle", Pe = "hidden";
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";
1093
1093
  let F;
1094
1094
  e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ s(Ut, { size: 14 }), e[31] = F) : F = e[31];
1095
1095
  let me;
1096
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = (De) => A(De.target.value), e[32] = me) : me = e[32];
1096
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = (De) => P(De.target.value), e[32] = me) : me = e[32];
1097
1097
  let ye;
1098
- e[33] !== T ? (ye = /* @__PURE__ */ s(Vt, { startElement: F, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Mt, { mx: "xs", value: T, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: me }) }), e[33] = T, e[34] = ye) : ye = e[34];
1099
- const Ce = k ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : w ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: w }) : D.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(tt, { maxHeight: "320px", contentProps: {
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: {
1100
1100
  padding: "sm"
1101
- }, children: /* @__PURE__ */ s(j, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Qo, children: D.map((De) => /* @__PURE__ */ s(Uo, { entry: De, selectedPath: E, selectedPathSet: N, onEntryClick: v }, De.path)) }) });
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)) }) });
1102
1102
  let pe;
1103
1103
  e[35] !== be || e[36] !== ye || e[37] !== Ce ? (pe = /* @__PURE__ */ x(be, { gap: Te, borderWidth: xe, borderRadius: Se, borderColor: ve, overflow: Pe, children: [
1104
1104
  ye,
1105
1105
  Ce
1106
1106
  ] }), e[35] = be, e[36] = ye, e[37] = Ce, e[38] = pe) : pe = e[38];
1107
1107
  let Ae;
1108
- e[39] !== J || e[40] !== oe || e[41] !== pe ? (Ae = /* @__PURE__ */ x(J, { gap: Z, children: [
1109
- oe,
1108
+ e[39] !== te || e[40] !== ie || e[41] !== pe ? (Ae = /* @__PURE__ */ x(te, { gap: se, children: [
1109
+ ie,
1110
1110
  pe
1111
- ] }), 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];
1112
1112
  let Re;
1113
- e[43] !== ae.Body || e[44] !== Ae ? (Re = /* @__PURE__ */ s(ae.Body, { children: Ae }), e[43] = ae.Body, e[44] = Ae, e[45] = Re) : Re = e[45];
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];
1114
1114
  let Ee;
1115
1115
  e[46] !== h ? (Ee = /* @__PURE__ */ s(de, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Ee) : Ee = e[47];
1116
1116
  let ke;
1117
- e[48] !== $ || e[49] !== p ? (ke = /* @__PURE__ */ s(de, { onClick: p, disabled: $, children: "Select repository" }), e[48] = $, e[49] = p, e[50] = ke) : ke = e[50];
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];
1118
1118
  let _e;
1119
- 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: [
1120
1120
  Ee,
1121
1121
  ke
1122
1122
  ] }) }), e[51] = Ee, e[52] = ke, e[53] = _e) : _e = e[53];
1123
- let $e;
1124
- e[54] !== q.Content || e[55] !== K || e[56] !== Re || e[57] !== _e ? ($e = /* @__PURE__ */ x(q.Content, { children: [
1125
- 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,
1126
1126
  Re,
1127
1127
  _e
1128
- ] }), e[54] = q.Content, e[55] = K, e[56] = Re, e[57] = _e, e[58] = $e) : $e = e[58];
1129
- let Oe;
1130
- e[59] !== Y.Positioner || e[60] !== $e ? (Oe = /* @__PURE__ */ s(Y.Positioner, { children: $e }), e[59] = Y.Positioner, e[60] = $e, e[61] = Oe) : Oe = e[61];
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];
1131
1131
  let Qe;
1132
- return e[62] !== t || e[63] !== _.Root || e[64] !== G || e[65] !== z || e[66] !== Oe ? (Qe = /* @__PURE__ */ x(_.Root, { lazyMount: B, unmountOnExit: H, closeOnInteractOutside: M, open: t, onOpenChange: G, children: [
1133
- z,
1134
- Oe
1135
- ] }), 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;
1136
1136
  }, Ze = {
1137
1137
  alignItems: "center",
1138
1138
  display: "inline-flex",
@@ -1161,7 +1161,7 @@ const nl = (o) => {
1161
1161
  textDecoration: "none"
1162
1162
  }
1163
1163
  }, Xo = (o) => !!(o.url || o.onClick), qo = (o) => {
1164
- const e = P(14), {
1164
+ const e = R(14), {
1165
1165
  item: t,
1166
1166
  isCurrent: n,
1167
1167
  linkComponent: r
@@ -1185,7 +1185,7 @@ const nl = (o) => {
1185
1185
  let i;
1186
1186
  return e[12] !== t.title ? (i = /* @__PURE__ */ s(fe.Link, { as: "span", ...wt, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1187
1187
  }, Yo = (o) => {
1188
- const e = P(6), {
1188
+ const e = R(6), {
1189
1189
  item: t
1190
1190
  } = o;
1191
1191
  let n;
@@ -1200,7 +1200,7 @@ const nl = (o) => {
1200
1200
  let l;
1201
1201
  return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Xt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1202
1202
  }, Ko = (o) => {
1203
- const e = P(3), {
1203
+ const e = R(3), {
1204
1204
  separator: t
1205
1205
  } = o;
1206
1206
  if (t === void 0) {
@@ -1210,7 +1210,7 @@ const nl = (o) => {
1210
1210
  let n;
1211
1211
  return e[1] !== t ? (n = /* @__PURE__ */ s(fe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
1212
1212
  }, sl = gt.forwardRef(function(e, t) {
1213
- const n = P(21);
1213
+ const n = R(21);
1214
1214
  let r, i, l, a, c;
1215
1215
  n[0] !== e ? ({
1216
1216
  separator: a,
@@ -1219,7 +1219,7 @@ const nl = (o) => {
1219
1219
  linkComponent: r,
1220
1220
  ...l
1221
1221
  } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = a, n[5] = c) : (r = n[1], i = n[2], l = n[3], a = n[4], c = n[5]);
1222
- let u;
1222
+ let d;
1223
1223
  if (n[6] !== r || n[7] !== i || n[8] !== a) {
1224
1224
  let h;
1225
1225
  n[10] !== r || n[11] !== i.length || n[12] !== a ? (h = (p, m) => {
@@ -1228,15 +1228,15 @@ const nl = (o) => {
1228
1228
  /* @__PURE__ */ s(fe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Yo, { item: p, isCurrent: g, linkComponent: r }) }),
1229
1229
  g ? null : /* @__PURE__ */ s(Ko, { separator: a })
1230
1230
  ] }, m);
1231
- }, n[10] = r, n[11] = i.length, n[12] = a, n[13] = h) : h = n[13], u = i.map(h), n[6] = r, n[7] = i, n[8] = a, n[9] = u;
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;
1232
1232
  } else
1233
- u = n[9];
1234
- let d;
1235
- n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ s(fe.List, { gap: c, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: u }), n[14] = c, n[15] = u, n[16] = d) : d = n[16];
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];
1236
1236
  let f;
1237
- return n[17] !== t || n[18] !== l || n[19] !== d ? (f = /* @__PURE__ */ s(fe.Root, { ref: t, ...l, children: d }), n[17] = t, n[18] = l, n[19] = d, n[20] = f) : f = n[20], f;
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
1238
  }), Zo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, Jo = (o) => {
1239
- const e = P(3);
1239
+ const e = R(3);
1240
1240
  let t;
1241
1241
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
1242
1242
  backgroundClip: "padding-box",
@@ -1245,11 +1245,11 @@ const nl = (o) => {
1245
1245
  width: "100%"
1246
1246
  }, e[0] = t) : t = e[0];
1247
1247
  let n;
1248
- return e[1] !== o ? (n = /* @__PURE__ */ s(V, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1248
+ return e[1] !== o ? (n = /* @__PURE__ */ s(M, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1249
1249
  }, al = (o) => {
1250
- const e = P(2);
1250
+ const e = R(2);
1251
1251
  let t;
1252
- return e[0] !== o ? (t = /* @__PURE__ */ s(V, { p: "2", children: /* @__PURE__ */ s(W, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
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;
1253
1253
  };
1254
1254
  class cl extends mn {
1255
1255
  state = {
@@ -1280,7 +1280,7 @@ class cl extends mn {
1280
1280
  }
1281
1281
  }
1282
1282
  const er = (o) => {
1283
- const e = P(12), {
1283
+ const e = R(12), {
1284
1284
  error: t,
1285
1285
  label: n,
1286
1286
  onReset: r
@@ -1290,17 +1290,17 @@ const er = (o) => {
1290
1290
  const a = t.message || "An unexpected error occurred while rendering this section.";
1291
1291
  let c;
1292
1292
  e[2] !== a ? (c = /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
1293
- let u;
1294
- e[4] !== r ? (u = r ? /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = u) : u = e[5];
1295
1293
  let d;
1296
- 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: [
1297
1297
  c,
1298
- u
1299
- ] }), 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];
1300
1300
  let f;
1301
- return e[9] !== l || e[10] !== d ? (f = /* @__PURE__ */ s(Jo, { height: "100%", width: "100%", children: /* @__PURE__ */ s(sn, { children: /* @__PURE__ */ s(ft, { status: "error", title: l, children: d }) }) }), e[9] = l, e[10] = d, e[11] = f) : f = e[11], f;
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
1302
  }, tr = (o) => !!o && o !== "circle", nr = (o) => {
1303
- const e = P(18);
1303
+ const e = R(18);
1304
1304
  let t, n, r, i, l;
1305
1305
  e[0] !== o ? ({
1306
1306
  color: t,
@@ -1312,11 +1312,11 @@ const er = (o) => {
1312
1312
  const a = l === void 0 ? !0 : l;
1313
1313
  let c;
1314
1314
  e[6] !== n || e[7] !== r ? (c = Nn(n, r), e[6] = n, e[7] = r, e[8] = c) : c = e[8];
1315
- const u = c, d = `${t}.500/15`;
1315
+ const d = c, u = `${t}.500/15`;
1316
1316
  let f;
1317
- e[9] !== u || e[10] !== t || e[11] !== n || e[12] !== a ? (f = a && tr(n) ? /* @__PURE__ */ s(se, { as: u, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(V, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = u, e[10] = t, e[11] = n, e[12] = a, e[13] = f) : f = e[13];
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];
1318
1318
  let h;
1319
- return e[14] !== i || e[15] !== d || e[16] !== f ? (h = /* @__PURE__ */ s(an, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: d, ...i, children: f }), e[14] = i, e[15] = d, e[16] = f, e[17] = h) : h = e[17], h;
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
1320
  }, or = Ie("button", {
1321
1321
  base: {
1322
1322
  display: "inline-flex",
@@ -1355,7 +1355,7 @@ const er = (o) => {
1355
1355
  }
1356
1356
  }
1357
1357
  }), lr = (o) => {
1358
- const e = P(39), {
1358
+ const e = R(39), {
1359
1359
  color: t,
1360
1360
  colorOptions: n,
1361
1361
  icon: r,
@@ -1363,75 +1363,75 @@ const er = (o) => {
1363
1363
  onColorChange: l,
1364
1364
  onIconChange: a,
1365
1365
  disabled: c,
1366
- showIcons: u,
1367
- colorLabel: d,
1366
+ showIcons: d,
1367
+ colorLabel: u,
1368
1368
  iconLabel: f,
1369
1369
  "aria-label": h
1370
- } = o, p = n === void 0 ? Wn : n, m = i === void 0 ? Bn : i, g = u === void 0 ? !0 : u, v = d === void 0 ? "Color" : d, C = f === void 0 ? "Icon" : f, R = h === void 0 ? "Pick color and icon" : h, E = r === "circle" ? null : r ?? null;
1371
- let O;
1372
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
1373
- placement: "bottom-start"
1374
- }, e[0] = O) : O = e[0];
1375
- let S;
1376
- e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (S = /* @__PURE__ */ s(nr, { color: t, icon: r, iconOptions: m, showIcon: g }), e[1] = t, e[2] = r, e[3] = m, e[4] = g, e[5] = S) : S = e[5];
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;
1377
1371
  let k;
1378
- e[6] !== R || e[7] !== c || e[8] !== S ? (k = /* @__PURE__ */ s(qe.Trigger, { asChild: !0, children: /* @__PURE__ */ s(or, { type: "button", disabled: c, "aria-label": R, children: S }) }), e[6] = R, e[7] = c, e[8] = S, e[9] = k) : k = e[9];
1379
- const w = g ? "tag-picker" : "tag-picker-color-only";
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];
1380
1377
  let $;
1381
- e[10] !== v ? ($ = /* @__PURE__ */ s(W, { textStyle: "label/S/medium", color: "fg.muted", children: v }), e[10] = v, e[11] = $) : $ = e[11];
1382
- const T = `repeat(${g ? 10 : 5}, 1fr)`;
1383
- 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;
1384
1384
  if (e[12] !== t || e[13] !== p || e[14] !== l) {
1385
- let b;
1386
- e[16] !== t || e[17] !== l ? (b = (_) => /* @__PURE__ */ s(rr, { type: "button", bg: `${_}.500`, "aria-label": _, "aria-pressed": _ === t, "data-selected": _ === t ? "" : void 0, onClick: () => l(_) }, _), e[16] = t, e[17] = l, e[18] = b) : b = e[18], A = p.map(b), e[12] = t, e[13] = p, e[14] = l, e[15] = A;
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;
1387
1387
  } else
1388
- A = e[15];
1389
- let L;
1390
- e[19] !== T || e[20] !== A ? (L = /* @__PURE__ */ s(pt, { templateColumns: T, gap: "2xs", justifyItems: "center", children: A }), e[19] = T, e[20] = A, e[21] = L) : L = e[21];
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];
1391
1391
  let N;
1392
1392
  e[22] !== t || e[23] !== C || e[24] !== m || e[25] !== a || e[26] !== E || e[27] !== g ? (N = g ? /* @__PURE__ */ x(Fe, { children: [
1393
- /* @__PURE__ */ s(V, { borderTop: "subtle" }),
1393
+ /* @__PURE__ */ s(M, { borderTop: "subtle" }),
1394
1394
  /* @__PURE__ */ s(W, { textStyle: "label/S/medium", color: "fg.muted", children: C }),
1395
- /* @__PURE__ */ s(pt, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((b) => {
1396
- const _ = b.value === E;
1397
- return /* @__PURE__ */ s(ir, { type: "button", color: _ ? `${t}.500` : void 0, bg: _ ? `${t}.500/15` : void 0, _hover: _ ? {
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 ? {
1398
1398
  bg: `${t}.500/15`
1399
- } : void 0, "aria-label": b.label, "aria-pressed": _, onClick: () => a?.(b.value), children: /* @__PURE__ */ s(se, { as: b.icon, boxSize: "icon-xs" }) }, b.value ?? "none");
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");
1400
1400
  }) })
1401
1401
  ] }) : null, e[22] = t, e[23] = C, e[24] = m, e[25] = a, e[26] = E, e[27] = g, e[28] = N) : N = e[28];
1402
1402
  let D;
1403
- e[29] !== $ || e[30] !== L || e[31] !== N ? (D = /* @__PURE__ */ x(j, { gap: "compact", p: "sm", children: [
1404
- $,
1405
- L,
1403
+ e[29] !== T || e[30] !== _ || e[31] !== N ? (D = /* @__PURE__ */ x(U, { gap: "compact", p: "sm", children: [
1404
+ T,
1405
+ _,
1406
1406
  N
1407
- ] }), e[29] = $, e[30] = L, e[31] = N, e[32] = D) : D = e[32];
1408
- let I;
1409
- e[33] !== D || e[34] !== w ? (I = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(qe.Positioner, { children: /* @__PURE__ */ s(qe.Content, { width: w, bg: "bg.elevated", children: D }) }) }), e[33] = D, e[34] = w, e[35] = I) : I = e[35];
1410
- let y;
1411
- return e[36] !== I || e[37] !== k ? (y = /* @__PURE__ */ x(qe.Root, { positioning: O, children: [
1412
- k,
1413
- I
1414
- ] }), e[36] = I, e[37] = k, e[38] = y) : y = e[38], y;
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
1415
  }, sr = (o) => {
1416
- const e = P(6);
1416
+ const e = R(6);
1417
1417
  let t, n;
1418
1418
  e[0] !== o ? ({
1419
1419
  children: t,
1420
1420
  ...n
1421
1421
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1422
1422
  let r;
1423
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(V, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
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
1424
  }, ar = (o) => {
1425
- const e = P(6);
1425
+ const e = R(6);
1426
1426
  let t, n;
1427
1427
  e[0] !== o ? ({
1428
1428
  children: t,
1429
1429
  ...n
1430
1430
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1431
1431
  let r;
1432
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(V, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
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
1433
  }, dl = (o) => {
1434
- const e = P(30), {
1434
+ const e = R(30), {
1435
1435
  icon: t,
1436
1436
  name: n,
1437
1437
  description: r,
@@ -1439,10 +1439,10 @@ const er = (o) => {
1439
1439
  version: l,
1440
1440
  category: a,
1441
1441
  active: c,
1442
- actionLabel: u
1443
- } = o, d = c === void 0 ? !1 : c;
1442
+ actionLabel: d
1443
+ } = o, u = c === void 0 ? !1 : c;
1444
1444
  let f;
1445
- e[0] !== t ? (f = /* @__PURE__ */ s(se, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = f) : f = e[1];
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];
1446
1446
  let h;
1447
1447
  e[2] !== n ? (h = /* @__PURE__ */ s(W, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1448
1448
  let p;
@@ -1454,34 +1454,34 @@ const er = (o) => {
1454
1454
  ] }), e[6] = l, e[7] = m) : m = e[7];
1455
1455
  let g;
1456
1456
  e[8] !== a ? (g = a && /* @__PURE__ */ s(Ne, { size: "sm", variant: "outline", children: a }), e[8] = a, e[9] = g) : g = e[9];
1457
- let v;
1458
- e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (v = /* @__PURE__ */ x(re, { gap: "2", flexWrap: "wrap", children: [
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: [
1459
1459
  h,
1460
1460
  p,
1461
1461
  m,
1462
1462
  g
1463
- ] }), 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];
1464
1464
  let C;
1465
1465
  e[15] !== r ? (C = /* @__PURE__ */ s(W, { color: "fg.muted", children: r }), e[15] = r, e[16] = C) : C = e[16];
1466
- let R;
1467
- e[17] !== v || e[18] !== C ? (R = /* @__PURE__ */ s(V, { flex: "1", minW: "0", children: /* @__PURE__ */ x(j, { gap: "1", children: [
1468
- v,
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,
1469
1469
  C
1470
- ] }) }), 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];
1471
1471
  let E;
1472
- e[20] !== d ? (E = d && /* @__PURE__ */ s(se, { color: "fg.success", children: /* @__PURE__ */ s(et, {}) }), e[20] = d, e[21] = E) : E = e[21];
1473
- const O = u ?? (d ? "Active" : "Connect");
1474
- let S;
1475
- e[22] !== d || e[23] !== O || e[24] !== E ? (S = /* @__PURE__ */ x(de, { type: "button", disabled: d, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
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: [
1476
1476
  E,
1477
- O
1478
- ] }), e[22] = d, e[23] = O, e[24] = E, e[25] = S) : S = e[25];
1479
- let k;
1480
- return e[26] !== f || e[27] !== S || e[28] !== R ? (k = /* @__PURE__ */ s(sr, { children: /* @__PURE__ */ s(ar, { children: /* @__PURE__ */ x(re, { gap: "4", alignItems: "flex-start", children: [
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: [
1481
1481
  f,
1482
- R,
1483
- S
1484
- ] }) }) }), e[26] = f, e[27] = S, e[28] = R, e[29] = k) : k = e[29], k;
1482
+ O,
1483
+ v
1484
+ ] }) }) }), e[26] = f, e[27] = v, e[28] = O, e[29] = $) : $ = e[29], $;
1485
1485
  }, cr = cn({
1486
1486
  className: "ps-segmented-control",
1487
1487
  slots: ["root", "item"],
@@ -1556,7 +1556,7 @@ const er = (o) => {
1556
1556
  } = dn({
1557
1557
  recipe: cr
1558
1558
  }), fr = dr("div", "root"), hr = ur("button", "item"), ul = (o) => {
1559
- const e = P(20);
1559
+ const e = R(20);
1560
1560
  let t, n, r, i, l, a;
1561
1561
  e[0] !== o ? ({
1562
1562
  options: i,
@@ -1568,21 +1568,21 @@ const er = (o) => {
1568
1568
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6]);
1569
1569
  let c;
1570
1570
  if (e[7] !== n || e[8] !== r || e[9] !== i || e[10] !== a) {
1571
- let d;
1572
- e[12] !== n || e[13] !== r || e[14] !== a ? (d = (f) => {
1571
+ let u;
1572
+ e[12] !== n || e[13] !== r || e[14] !== a ? (u = (f) => {
1573
1573
  const h = f.value === a;
1574
1574
  return /* @__PURE__ */ s(hr, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1575
- }, e[12] = n, e[13] = r, e[14] = a, e[15] = d) : d = e[15], c = i.map(d), e[7] = n, e[8] = r, e[9] = i, e[10] = a, e[11] = c;
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;
1576
1576
  } else
1577
1577
  c = e[11];
1578
- let u;
1579
- return e[16] !== t || e[17] !== l || e[18] !== c ? (u = /* @__PURE__ */ s(fr, { role: "group", "aria-label": t, ...l, children: c }), e[16] = t, e[17] = l, e[18] = c, e[19] = u) : u = e[19], u;
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
1580
  }, mr = un({
1581
1581
  placement: "top",
1582
1582
  pauseOnPageIdle: !0,
1583
1583
  duration: 1e4
1584
1584
  }), fl = () => {
1585
- const o = P(1);
1585
+ const o = R(1);
1586
1586
  let e;
1587
1587
  return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(fn, { toaster: mr, insetInline: {
1588
1588
  mdDown: "4"
@@ -1593,7 +1593,7 @@ function pr(o) {
1593
1593
  md: "sm"
1594
1594
  }, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
1595
1595
  o.type === "loading" ? /* @__PURE__ */ s(Gt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Le.Indicator, {}),
1596
- /* @__PURE__ */ x(j, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1596
+ /* @__PURE__ */ x(U, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1597
1597
  o.title && /* @__PURE__ */ s(Le.Title, { textStyle: "label/S/medium", children: o.title }),
1598
1598
  o.description && /* @__PURE__ */ s(tt, { maxHeight: "12rem", contentProps: {
1599
1599
  paddingEnd: "1"
@@ -1604,14 +1604,14 @@ function pr(o) {
1604
1604
  ] });
1605
1605
  }
1606
1606
  const hl = (o) => {
1607
- const e = P(6);
1607
+ const e = R(6);
1608
1608
  let t, n;
1609
1609
  e[0] !== o ? ({
1610
1610
  children: t,
1611
1611
  ...n
1612
1612
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1613
1613
  let r;
1614
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(j, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
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;
1615
1615
  }, It = {
1616
1616
  open: !0,
1617
1617
  expandedSections: [],
@@ -1680,23 +1680,23 @@ const hl = (o) => {
1680
1680
  });
1681
1681
  return At.set(o, n), n;
1682
1682
  }, ze = (o, e, t) => {
1683
- const n = P(3);
1683
+ const n = R(3);
1684
1684
  let r;
1685
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
1686
  }, yr = (o) => {
1687
- const e = P(2), {
1687
+ const e = R(2), {
1688
1688
  children: t
1689
1689
  } = o;
1690
1690
  if (!t)
1691
1691
  return null;
1692
1692
  let n;
1693
- return e[0] !== t ? (n = /* @__PURE__ */ s(V, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
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
1694
  }, Cr = (o) => {
1695
- const e = P(2), {
1695
+ const e = R(2), {
1696
1696
  children: t
1697
1697
  } = o;
1698
1698
  let n;
1699
- return e[0] !== t ? (n = /* @__PURE__ */ s(re, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: ko, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(re, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
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
1700
  }, wr = 240, Ir = 200, Tr = 480, Pr = (o, e, t) => Math.min(Math.max(o, e), t), Ar = (o, e = wr) => {
1701
1701
  if (typeof o == "number") return o;
1702
1702
  if (typeof o == "string") {
@@ -1705,7 +1705,7 @@ const hl = (o) => {
1705
1705
  }
1706
1706
  return e;
1707
1707
  }, ml = (o) => {
1708
- const e = P(43), {
1708
+ const e = R(43), {
1709
1709
  storageKey: t,
1710
1710
  sections: n,
1711
1711
  activeNodeId: r,
@@ -1713,54 +1713,54 @@ const hl = (o) => {
1713
1713
  header: l,
1714
1714
  footer: a,
1715
1715
  width: c,
1716
- closable: u,
1717
- emptyLabel: d,
1716
+ closable: d,
1717
+ emptyLabel: u,
1718
1718
  defaultExpandedSections: f,
1719
1719
  linkComponent: h,
1720
1720
  onNavigate: p,
1721
1721
  onOpenChange: m,
1722
1722
  resizable: g,
1723
- defaultWidth: v,
1723
+ defaultWidth: b,
1724
1724
  minWidth: C,
1725
- maxWidth: R,
1725
+ maxWidth: O,
1726
1726
  virtualize: E
1727
1727
  } = o;
1728
- let O;
1729
- e[0] !== i ? (O = i === void 0 ? [] : i, e[0] = i, e[1] = O) : O = e[1];
1730
- const S = O, k = u === void 0 ? !0 : u, w = d === void 0 ? "No items available." : d, $ = g === void 0 ? !0 : g, T = C === void 0 ? Ir : C, A = R === void 0 ? Tr : R, L = E === void 0 ? !1 : E, N = je(null);
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);
1731
1731
  let D;
1732
- e[2] !== v || e[3] !== c ? (D = Ar(c, v), e[2] = v, e[3] = c, e[4] = D) : D = e[4];
1733
- const I = D;
1734
- let y;
1735
- e[5] !== f ? (y = f ? {
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 ? {
1736
1736
  expandedSections: f
1737
- } : {}, e[5] = f, e[6] = y) : y = e[6];
1738
- let b;
1739
- e[7] !== I || e[8] !== y ? (b = {
1740
- ...y,
1741
- width: I
1742
- }, e[7] = I, e[8] = y, e[9] = b) : b = e[9];
1743
- const _ = b, B = ze(t, Rr, _), H = ze(t, Er, _), M = ze(t, kr, _), G = ze(t, _r, _), z = ze(t, $r, _), Y = ze(t, Or, _);
1744
- let q, U;
1745
- e[10] !== m || e[11] !== B ? (q = () => {
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 = () => {
1746
1746
  m?.(B);
1747
- }, U = [m, B], e[10] = m, e[11] = B, e[12] = q, e[13] = U) : (q = e[12], U = e[13]), he(q, U);
1748
- const Q = H ?? I;
1749
- let K;
1750
- e[14] !== A || e[15] !== T || e[16] !== Q ? (K = Pr(Q, T, A), e[14] = A, e[15] = T, e[16] = Q, e[17] = K) : K = e[17];
1751
- const ae = K;
1752
- if (!B && k)
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 && $)
1753
1753
  return null;
1754
- const J = $ ? `${ae}px` : c ?? `${I}px`;
1755
- let Z;
1756
- e[18] !== l ? (Z = /* @__PURE__ */ s(Cr, { children: l }), e[18] = l, e[19] = Z) : Z = e[19];
1757
- let ee, ne;
1758
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = {
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 = {
1759
1759
  display: "block",
1760
1760
  style: {
1761
1761
  overflowX: "hidden"
1762
1762
  }
1763
- }, ne = {
1763
+ }, Z = {
1764
1764
  style: {
1765
1765
  minWidth: "100%",
1766
1766
  width: "100%",
@@ -1768,20 +1768,20 @@ const hl = (o) => {
1768
1768
  display: "flex",
1769
1769
  flexDirection: "column"
1770
1770
  }
1771
- }, e[20] = ee, e[21] = ne) : (ee = e[20], ne = e[21]);
1772
- let te;
1773
- e[22] !== r || e[23] !== w || e[24] !== G || e[25] !== M || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== Y || e[30] !== z || e[31] !== L ? (te = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: N, viewportProps: ee, contentProps: ne, children: /* @__PURE__ */ s(V, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: w }) : /* @__PURE__ */ s(zn, { sections: n, expandedSectionIds: M, expandedNodeIds: G, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: z, onToggleNode: Y, virtualize: L, scrollRef: N }) }) }), e[22] = r, e[23] = w, e[24] = G, e[25] = M, e[26] = h, e[27] = p, e[28] = n, e[29] = Y, e[30] = z, e[31] = L, e[32] = te) : te = e[32];
1774
- let le;
1775
- e[33] !== a ? (le = /* @__PURE__ */ s(yr, { children: a }), e[33] = a, e[34] = le) : le = e[34];
1776
- let ie;
1777
- e[35] !== Z || e[36] !== te || e[37] !== le || e[38] !== J ? (ie = /* @__PURE__ */ x(ge, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1778
- Z,
1779
- te,
1780
- le
1781
- ] }), e[35] = Z, e[36] = te, e[37] = le, e[38] = J, e[39] = ie) : ie = e[39];
1782
- const ce = ie;
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];
1783
1776
  let oe;
1784
- return e[40] !== ce || e[41] !== S ? (oe = /* @__PURE__ */ s(Xt, { actions: S, closeOnSelect: !1, children: ce }), e[40] = ce, e[41] = S, e[42] = oe) : oe = e[42], oe;
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;
1785
1785
  };
1786
1786
  function Rr(o) {
1787
1787
  return o.open;
@@ -1795,10 +1795,10 @@ function kr(o) {
1795
1795
  function _r(o) {
1796
1796
  return o.expandedNodes;
1797
1797
  }
1798
- function $r(o) {
1798
+ function Or(o) {
1799
1799
  return o.toggleSection;
1800
1800
  }
1801
- function Or(o) {
1801
+ function $r(o) {
1802
1802
  return o.toggleNode;
1803
1803
  }
1804
1804
  const Rt = {
@@ -1848,7 +1848,7 @@ const Rt = {
1848
1848
  });
1849
1849
  return Et.set(o, t), t;
1850
1850
  }, pl = (o, e) => {
1851
- const t = P(2);
1851
+ const t = R(2);
1852
1852
  let n;
1853
1853
  return t[0] !== o ? (n = Fr(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
1854
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) => {
@@ -1919,8 +1919,8 @@ const Rt = {
1919
1919
  const a = [];
1920
1920
  for (const c of o.sections) {
1921
1921
  Ke(c) && a.push(Vr(c, e, n, r));
1922
- for (const u of c.nodes)
1923
- Ke(u) && a.push(ct(u, t, n, r));
1922
+ for (const d of c.nodes)
1923
+ Ke(d) && a.push(ct(d, t, n, r));
1924
1924
  }
1925
1925
  return l(a), l((o.footerNodes ?? []).filter(Ke).map((c) => ct(c, t, n, r))), i.length === 0 || i.push({
1926
1926
  key: "__reset-visibility",
@@ -1954,12 +1954,12 @@ const Rt = {
1954
1954
  for (const c of o) {
1955
1955
  if (c.pinned === !0 || c.closable === !0) continue;
1956
1956
  a += 1;
1957
- 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);
1958
1958
  l.push({
1959
- key: `tab:${u}`,
1959
+ key: `tab:${d}`,
1960
1960
  label: c.title ?? c.contributionId,
1961
1961
  icon: i?.(c),
1962
- onClick: () => t.onToggleTab(u, d),
1962
+ onClick: () => t.onToggleTab(d, u),
1963
1963
  endContent: f === "shown" ? r.visibleIcon : r.hiddenIcon
1964
1964
  });
1965
1965
  }
@@ -1971,7 +1971,7 @@ const Rt = {
1971
1971
  onClick: t.onResetAll
1972
1972
  }), l;
1973
1973
  }, Gr = (o) => {
1974
- const e = P(7), {
1974
+ const e = R(7), {
1975
1975
  children: t,
1976
1976
  hasChanges: n
1977
1977
  } = o;
@@ -1980,12 +1980,12 @@ const Rt = {
1980
1980
  let i;
1981
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];
1982
1982
  let l;
1983
- 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: [
1984
1984
  r,
1985
1985
  i
1986
1986
  ] }), e[4] = r, e[5] = i, e[6] = l) : l = e[6], l;
1987
1987
  }, jr = (o) => {
1988
- const e = P(20), {
1988
+ const e = R(20), {
1989
1989
  actions: t,
1990
1990
  disabled: n,
1991
1991
  options: r,
@@ -1996,138 +1996,141 @@ const Rt = {
1996
1996
  i(t.includes(m) ? t.filter((g) => g !== m) : [...t, m]);
1997
1997
  }, e[0] = t, e[1] = i, e[2] = l) : l = e[2];
1998
1998
  const a = l, c = t.length !== 1 ? "s" : "";
1999
- let u;
2000
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(se, { as: kn, boxSize: "icon-2xs" }), e[3] = u) : u = e[3];
2001
1999
  let d;
2002
- e[4] !== t.length || e[5] !== n || e[6] !== c ? (d = /* @__PURE__ */ s(Ve.Trigger, { asChild: !0, children: /* @__PURE__ */ x(de, { size: "2xs", variant: "ghost", gap: "xs", color: "fg.muted", disabled: n, children: [
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: [
2003
2003
  t.length,
2004
2004
  " action",
2005
2005
  c,
2006
- u
2007
- ] }) }), 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];
2008
2008
  let f;
2009
2009
  if (e[8] !== t || e[9] !== r || e[10] !== a) {
2010
2010
  let m;
2011
- e[12] !== t || e[13] !== a ? (m = (g) => /* @__PURE__ */ s(Ve.Item, { value: g.value, asChild: !0, children: /* @__PURE__ */ s(nt, { asChild: !0, variant: "full-width", id: g.value, label: g.label, isSelected: t.includes(g.value), endContent: t.includes(g.value) ? /* @__PURE__ */ s(se, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => a(g.value) }) }, g.value), e[12] = t, e[13] = a, e[14] = m) : m = e[14], f = r.map(m), e[8] = t, e[9] = r, e[10] = a, e[11] = f;
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;
2012
2012
  } else
2013
2013
  f = e[11];
2014
2014
  let h;
2015
2015
  e[15] !== f ? (h = /* @__PURE__ */ s(Ve.Positioner, { children: /* @__PURE__ */ s(Ve.Content, { minW: "tag-action-menu", bg: "bg", children: f }) }), e[15] = f, e[16] = h) : h = e[16];
2016
2016
  let p;
2017
- return e[17] !== d || e[18] !== h ? (p = /* @__PURE__ */ x(Ve.Root, { closeOnSelect: !1, children: [
2018
- d,
2017
+ return e[17] !== u || e[18] !== h ? (p = /* @__PURE__ */ x(Ve.Root, { closeOnSelect: !1, children: [
2018
+ u,
2019
2019
  h
2020
- ] }), e[17] = d, e[18] = h, e[19] = p) : p = e[19], p;
2020
+ ] }), e[17] = u, e[18] = h, e[19] = p) : p = e[19], p;
2021
2021
  }, Ur = (o) => {
2022
- const e = P(65), {
2022
+ const e = R(68), {
2023
2023
  actionOptions: t,
2024
2024
  colorOptions: n,
2025
2025
  iconOptions: r,
2026
2026
  value: i,
2027
2027
  isSaving: l,
2028
- showDefault: a,
2029
- showIcons: c,
2028
+ readOnly: a,
2029
+ showDefault: c,
2030
+ showIcons: d,
2030
2031
  onActionsChange: u,
2031
- onColorChange: d,
2032
- onDelete: f,
2033
- onIconChange: h,
2034
- onNameChange: p,
2035
- onSetDefault: m
2036
- } = o;
2037
- let g;
2038
- e[0] !== i.id ? (g = {
2039
- id: i.id
2040
- }, e[0] = i.id, e[1] = g) : g = e[1];
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];
2041
2043
  const {
2042
- attributes: v,
2043
- listeners: C,
2044
- setNodeRef: R,
2045
- transform: E,
2046
- transition: O,
2047
- isDragging: S
2048
- } = Un(g);
2049
- let k;
2050
- e[2] !== E ? (k = Yn.Transform.toString(E), e[2] = E, e[3] = k) : k = e[3];
2051
- let w;
2052
- e[4] !== k || e[5] !== O ? (w = {
2053
- transform: k,
2054
- transition: O
2055
- }, e[4] = k, e[5] = O, e[6] = w) : w = e[6];
2056
- const $ = S ? "bg.elevated" : "transparent", T = S ? "compact" : "none", A = S ? "1px" : void 0, L = S ? "lg" : void 0, N = S ? "bg.elevated" : "bg.muted";
2057
- let D;
2058
- e[7] !== N ? (D = {
2059
- bg: N
2060
- }, e[7] = N, e[8] = D) : D = e[8];
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];
2061
2053
  let I;
2062
- 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 = {
2063
2066
  color: "fg.muted"
2064
- }, e[9] = I) : I = e[9];
2065
- const y = `Reorder ${i.name}`;
2066
- let b;
2067
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ s(se, { as: _n, boxSize: "icon-xs" }), e[10] = b) : b = e[10];
2068
- let _;
2069
- e[11] !== v || e[12] !== C || e[13] !== y ? (_ = /* @__PURE__ */ s(ge, { cursor: "grab", color: "fg.subtle", _groupHover: I, "aria-label": y, ...v, ...C, children: b }), e[11] = v, e[12] = C, e[13] = y, e[14] = _) : _ = e[14];
2070
- const B = `Change ${i.name} appearance`;
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];
2071
2071
  let H;
2072
- e[15] !== n || e[16] !== r || e[17] !== l || e[18] !== d || e[19] !== h || e[20] !== c || e[21] !== B || e[22] !== i.color || e[23] !== i.icon ? (H = /* @__PURE__ */ s(lr, { color: i.color, colorOptions: n, icon: i.icon, iconOptions: r, showIcons: c, onColorChange: d, onIconChange: h, disabled: l, "aria-label": B }), e[15] = n, e[16] = r, e[17] = l, e[18] = d, e[19] = h, e[20] = c, e[21] = B, e[22] = i.color, e[23] = i.icon, e[24] = H) : H = e[24];
2073
- let M;
2074
- e[25] !== p || e[26] !== i.name ? (M = (ne) => {
2075
- const te = ne.value.trim();
2076
- te && te !== i.name && p(te);
2077
- }, e[25] = p, e[26] = i.name, e[27] = M) : M = e[27];
2078
- let G, z;
2079
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ s(Be.Preview, { textStyle: "paragraph/S/regular" }), z = /* @__PURE__ */ s(Be.Input, { textStyle: "paragraph/S/regular" }), e[28] = G, e[29] = z) : (G = e[28], z = e[29]);
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];
2080
2076
  let Y;
2081
- e[30] !== M || e[31] !== i.isNew || e[32] !== i.name ? (Y = /* @__PURE__ */ x(Be.Root, { flex: "1", minWidth: "0", defaultValue: i.name, defaultEdit: i.isNew, selectOnFocus: !0, onValueCommit: M, children: [
2082
- G,
2083
- z
2084
- ] }, i.name), e[30] = M, e[31] = i.isNew, e[32] = i.name, e[33] = Y) : Y = e[33];
2085
- let q;
2086
- e[34] !== l || e[35] !== m || e[36] !== a || e[37] !== i.isDefault || e[38] !== i.name ? (q = a ? /* @__PURE__ */ s(de, { size: "2xs", variant: i.isDefault ? "primary" : "ghost", onClick: m, disabled: l || i.isDefault, "aria-label": `Set ${i.name} as default`, children: /* @__PURE__ */ s(se, { as: et, boxSize: "icon-xs" }) }) : null, e[34] = l, e[35] = m, e[36] = a, e[37] = i.isDefault, e[38] = i.name, e[39] = q) : q = e[39];
2087
- let U;
2088
- e[40] !== t || e[41] !== l || e[42] !== u || e[43] !== i.actions ? (U = t ? /* @__PURE__ */ s(jr, { actions: i.actions ?? [], disabled: l, options: t, onChange: u }) : null, e[40] = t, e[41] = l, e[42] = u, e[43] = i.actions, e[44] = U) : U = e[44];
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];
2089
2088
  let Q;
2090
- 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 = {
2091
2094
  color: "fg.error",
2092
2095
  bg: "bg.error"
2093
- }, e[45] = Q) : Q = e[45];
2094
- const K = l || i.isDefault, ae = `Delete ${i.name}`;
2095
- let J;
2096
- e[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ s(se, { as: $n, boxSize: "icon-xs" }), e[46] = J) : J = e[46];
2096
+ }, e[48] = te) : te = e[48];
2097
+ const se = b || i.isDefault, ne = `Delete ${i.name}`;
2097
2098
  let Z;
2098
- e[47] !== f || e[48] !== K || e[49] !== ae ? (Z = /* @__PURE__ */ s(We, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: Q, onClick: f, disabled: K, "aria-label": ae, children: J }), e[47] = f, e[48] = K, e[49] = ae, e[50] = Z) : Z = e[50];
2099
+ 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];
2099
2102
  let ee;
2100
- return e[51] !== R || e[52] !== _ || e[53] !== H || e[54] !== Y || e[55] !== q || e[56] !== w || e[57] !== U || e[58] !== Z || e[59] !== $ || e[60] !== T || e[61] !== A || e[62] !== L || e[63] !== D ? (ee = /* @__PURE__ */ x(ge, { ref: R, style: w, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: $, borderRadius: T, borderWidth: A, boxShadow: L, _hover: D, children: [
2101
- _,
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: [
2102
2104
  H,
2103
- Y,
2104
- q,
2105
- U,
2106
- Z
2107
- ] }), e[51] = R, e[52] = _, e[53] = H, e[54] = Y, e[55] = q, e[56] = w, e[57] = U, e[58] = Z, e[59] = $, e[60] = T, e[61] = A, e[62] = L, e[63] = D, e[64] = ee) : ee = e[64], ee;
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;
2108
2111
  }, Qr = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, Xr = (o) => {
2109
- const e = P(12), {
2112
+ const e = R(12), {
2110
2113
  title: t,
2111
2114
  hasChanges: n,
2112
2115
  isSaving: r,
2113
2116
  onTitleChange: i
2114
2117
  } = o;
2115
2118
  if (!i) {
2116
- let d;
2117
- return e[0] !== n || e[1] !== t ? (d = /* @__PURE__ */ s(Gr, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = d) : d = e[2], d;
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;
2118
2121
  }
2119
2122
  let l;
2120
- e[3] !== i || e[4] !== t ? (l = (d) => {
2121
- const f = d.value.trim();
2123
+ e[3] !== i || e[4] !== t ? (l = (u) => {
2124
+ const f = u.value.trim();
2122
2125
  f && f !== t && i(f);
2123
2126
  }, e[3] = i, e[4] = t, e[5] = l) : l = e[5];
2124
2127
  let a, c;
2125
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]);
2126
- let u;
2127
- return e[8] !== r || e[9] !== l || e[10] !== t ? (u = /* @__PURE__ */ x(Be.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: l, children: [
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: [
2128
2131
  a,
2129
2132
  c
2130
- ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = u) : u = e[11], u;
2133
+ ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = d) : d = e[11], d;
2131
2134
  }, qr = Ie("button", {
2132
2135
  base: {
2133
2136
  display: "flex",
@@ -2161,99 +2164,100 @@ const Rt = {
2161
2164
  onDeleteValue: l,
2162
2165
  onSetDefault: a,
2163
2166
  onTitleChange: c,
2164
- hasChanges: u,
2165
- isSaving: d,
2166
- addLabel: f = "Add option",
2167
- addName: h = "New option",
2168
- actionOptions: p,
2169
- colorOptions: m,
2170
- defaultAddColor: g = "blue",
2171
- defaultAddIcon: v = null,
2172
- deleteButtonText: C = "Delete tag",
2173
- deleteHeadline: R = "Delete tag?",
2174
- deleteNotificationText: E = (I) => `This will delete "${I.name}".`,
2175
- iconOptions: O,
2176
- showDefault: S,
2177
- showIcons: k = !0
2178
- } = o, [w, $] = ue(null), T = Hn(Mn(Vn, {
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, {
2179
2183
  activationConstraint: {
2180
2184
  distance: 5
2181
2185
  }
2182
- })), A = (I, y) => {
2183
- const b = [...r];
2184
- b[I] = {
2185
- ...b[I],
2186
+ })), _ = (S, y) => {
2187
+ const w = [...r];
2188
+ w[S] = {
2189
+ ...w[S],
2186
2190
  ...y
2187
- }, i(b);
2188
- }, L = () => {
2191
+ }, i(w);
2192
+ }, N = () => {
2189
2193
  i([...r, {
2190
2194
  id: `new-${crypto.randomUUID()}`,
2191
- name: h,
2192
- color: g,
2193
- icon: v,
2195
+ name: p,
2196
+ color: b,
2197
+ icon: C,
2194
2198
  sortOrder: Qr(r),
2195
2199
  isNew: !0
2196
2200
  }]);
2197
- }, N = () => {
2198
- 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));
2199
2203
  };
2200
2204
  return /* @__PURE__ */ x(Fe, { children: [
2201
- /* @__PURE__ */ x(j, { gap: "2xs", children: [
2205
+ /* @__PURE__ */ x(U, { gap: "2xs", children: [
2202
2206
  e || n ? /* @__PURE__ */ x(ge, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2203
- /* @__PURE__ */ x(j, { gap: "3xs", minWidth: "0", children: [
2204
- e ? /* @__PURE__ */ s(Xr, { title: e, hasChanges: u, isSaving: d, onTitleChange: c }) : null,
2207
+ /* @__PURE__ */ x(U, { gap: "3xs", minWidth: "0", children: [
2208
+ e ? /* @__PURE__ */ s(Xr, { title: e, hasChanges: d, isSaving: u, onTitleChange: c }) : null,
2205
2209
  t ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2206
2210
  ] }),
2207
2211
  n
2208
2212
  ] }) : null,
2209
- /* @__PURE__ */ x(j, { gap: "none", children: [
2210
- /* @__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) => {
2211
2215
  const {
2212
2216
  active: y,
2213
- over: b
2214
- } = I;
2215
- if (!b || y.id === b.id) return;
2216
- const _ = r.findIndex((H) => H.id === y.id), B = r.findIndex((H) => H.id === b.id);
2217
- _ < 0 || B < 0 || i(qn(r, _, B).map((H, M) => ({
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) => ({
2218
2222
  ...H,
2219
- sortOrder: M
2223
+ sortOrder: G
2220
2224
  })));
2221
- }, children: /* @__PURE__ */ s(Qn, { items: r.map((I) => I.id), strategy: Xn, children: r.map((I, y) => /* @__PURE__ */ s(Ur, { value: I, isSaving: d, showDefault: S, showIcons: k, actionOptions: p, colorOptions: m, iconOptions: O, onNameChange: (b) => A(y, {
2222
- name: b
2223
- }), onColorChange: (b) => A(y, {
2224
- color: b
2225
- }), onIconChange: (b) => A(y, {
2226
- icon: b
2227
- }), onActionsChange: (b) => A(y, {
2228
- actions: b
2229
- }), onSetDefault: () => a?.(I), onDelete: () => $(I) }, I.id)) }) }),
2230
- /* @__PURE__ */ x(qr, { type: "button", disabled: d, onClick: L, children: [
2231
- /* @__PURE__ */ s(se, { as: On, boxSize: "icon-xs" }),
2232
- /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: f })
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 })
2233
2237
  ] })
2234
2238
  ] })
2235
2239
  ] }),
2236
- /* @__PURE__ */ s(Vo, { 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 })
2237
2241
  ] });
2238
2242
  }, Kr = (o) => {
2239
- const e = P(13), {
2243
+ const e = R(13), {
2240
2244
  onSave: t,
2241
2245
  onReset: n,
2242
2246
  hasChanges: r,
2243
2247
  isSaving: i,
2244
2248
  resetLabel: l,
2245
2249
  saveLabel: a
2246
- } = o, c = l === void 0 ? "Reset" : l, u = a === void 0 ? "Save" : a;
2247
- let d;
2248
- e[0] !== r || e[1] !== i || e[2] !== n || e[3] !== c ? (d = r ? /* @__PURE__ */ s(de, { size: "sm", variant: "ghost", onClick: n, disabled: i, children: c }) : null, e[0] = r, e[1] = i, e[2] = n, e[3] = c, e[4] = d) : d = e[4];
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];
2249
2253
  const f = !r;
2250
2254
  let h;
2251
- e[5] !== i || e[6] !== t || e[7] !== u || e[8] !== f ? (h = /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: t, loading: i, disabled: f, children: u }), e[5] = i, e[6] = t, e[7] = u, e[8] = f, e[9] = h) : h = e[9];
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];
2252
2256
  let p;
2253
- return e[10] !== d || e[11] !== h ? (p = /* @__PURE__ */ x(re, { gap: "xs", children: [
2254
- d,
2257
+ return e[10] !== u || e[11] !== h ? (p = /* @__PURE__ */ x(ae, { gap: "xs", children: [
2258
+ u,
2255
2259
  h
2256
- ] }), e[10] = d, e[11] = h, e[12] = p) : p = e[12], p;
2260
+ ] }), e[10] = u, e[11] = h, e[12] = p) : p = e[12], p;
2257
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) => {
2258
2262
  if (r.isNew) return !0;
2259
2263
  const i = Jr(o, r);
@@ -2267,44 +2271,48 @@ const Rt = {
2267
2271
  values: i,
2268
2272
  loadError: l,
2269
2273
  onSave: a,
2270
- toEditorValue: c,
2274
+ readOnly: c,
2275
+ toEditorValue: d,
2271
2276
  valueNeedsUpdate: u,
2272
- ...d
2273
- } = o, [f, h] = ue([]), [p, m] = ue(/* @__PURE__ */ new Set()), [g, v] = ue(!1), [C, R] = ue(null), E = i ?? [];
2277
+ ...f
2278
+ } = o, [h, p] = ue([]), [m, g] = ue(/* @__PURE__ */ new Set()), [b, C] = ue(!1), [O, E] = ue(null), k = i ?? [];
2274
2279
  he(() => {
2275
- i && h(kt(i, c));
2276
- }, [i, c]);
2277
- const O = async () => {
2278
- v(!0), R(null);
2280
+ i && p(kt(i, d));
2281
+ }, [i, d]);
2282
+ const v = async () => {
2283
+ C(!0), E(null);
2279
2284
  try {
2280
2285
  await a({
2281
- deletedIds: p,
2282
- drafts: f,
2283
- values: E
2284
- }), m(/* @__PURE__ */ new Set());
2285
- } catch (T) {
2286
- R(T);
2286
+ deletedIds: m,
2287
+ drafts: h,
2288
+ values: k
2289
+ }), g(/* @__PURE__ */ new Set());
2290
+ } catch (P) {
2291
+ E(P);
2287
2292
  } finally {
2288
- v(!1);
2293
+ C(!1);
2289
2294
  }
2290
- }, S = ei(E, f, p, u), k = _t(l) ?? _t(C);
2291
- return /* @__PURE__ */ x(j, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2292
- k ? /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: e, size: "sm", children: k }) : null,
2293
- i === void 0 ? /* @__PURE__ */ x(re, { gap: "sm", color: "fg.muted", children: [
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: [
2294
2303
  /* @__PURE__ */ s(Gt, { size: "sm" }),
2295
2304
  /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: t })
2296
- ] }) : /* @__PURE__ */ s(Yr, { ...d, values: f, onValuesChange: h, onDeleteValue: (T) => {
2297
- T.isNew || m(/* @__PURE__ */ new Set([...p, T.id])), h(f.filter((A) => A.id !== T.id));
2298
- }, hasChanges: S, isSaving: g, headerActions: /* @__PURE__ */ s(Kr, { hasChanges: S, isSaving: g, resetLabel: n, saveLabel: r, onSave: () => {
2299
- O();
2300
- }, onReset: () => {
2301
- h(kt(E, c)), m(/* @__PURE__ */ new Set()), R(null);
2302
- } }) })
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 }) })
2303
2311
  ] });
2304
- }, $t = {
2312
+ }, Ot = {
2305
2313
  sectionOrder: [],
2306
2314
  nodeOrderBySection: {}
2307
- }, ti = "pstdio/ui/tree-list-order", ni = (o) => `${ti}/${o}`, Ot = (o) => {
2315
+ }, ti = "pstdio/ui/tree-list-order", ni = (o) => `${ti}/${o}`, $t = (o) => {
2308
2316
  const e = /* @__PURE__ */ new Set(), t = [];
2309
2317
  for (const n of o)
2310
2318
  e.has(n) || (e.add(n), t.push(n));
@@ -2313,16 +2321,16 @@ const Rt = {
2313
2321
  sectionOrder: o.sectionOrder,
2314
2322
  nodeOrderBySection: o.nodeOrderBySection
2315
2323
  }), ri = (o) => lt()(rt((e) => ({
2316
- ...$t,
2324
+ ...Ot,
2317
2325
  setSectionOrder: (t) => e((n) => ({
2318
2326
  ...n,
2319
- sectionOrder: Ot(t)
2327
+ sectionOrder: $t(t)
2320
2328
  })),
2321
2329
  setNodeOrder: (t, n) => e((r) => ({
2322
2330
  ...r,
2323
2331
  nodeOrderBySection: {
2324
2332
  ...r.nodeOrderBySection,
2325
- [t]: Ot(n)
2333
+ [t]: $t(n)
2326
2334
  }
2327
2335
  })),
2328
2336
  resetSectionOrder: () => e((t) => ({
@@ -2340,7 +2348,7 @@ const Rt = {
2340
2348
  nodeOrderBySection: i
2341
2349
  };
2342
2350
  }),
2343
- reset: () => e($t)
2351
+ reset: () => e(Ot)
2344
2352
  }), {
2345
2353
  name: ni(o.storageKey),
2346
2354
  storage: it(He),
@@ -2353,7 +2361,7 @@ const Rt = {
2353
2361
  });
2354
2362
  return Dt.set(o, t), t;
2355
2363
  }, Cl = (o, e) => {
2356
- const t = P(2);
2364
+ const t = R(2);
2357
2365
  let n;
2358
2366
  return t[0] !== o ? (n = ii(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2359
2367
  }, Lt = (o, e) => {
@@ -2453,7 +2461,7 @@ const Rt = {
2453
2461
  });
2454
2462
  return Bt.set(o, t), t;
2455
2463
  }, Il = (o, e) => {
2456
- const t = P(2);
2464
+ const t = R(2);
2457
2465
  let n;
2458
2466
  return t[0] !== o ? (n = fi(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2459
2467
  }, hi = [], tn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), mi = (o) => {
@@ -2508,14 +2516,14 @@ const Rt = {
2508
2516
  const e = He().getItem(nn);
2509
2517
  return tn(e, o) ? e : ut(o);
2510
2518
  }, Tl = (o) => {
2511
- const e = P(18), {
2519
+ const e = R(18), {
2512
2520
  children: t,
2513
2521
  themePreferences: n
2514
2522
  } = o, r = n === void 0 ? hi : n;
2515
2523
  let i;
2516
2524
  e[0] !== r ? (i = () => yi(r), e[0] = r, e[1] = i) : i = e[1];
2517
2525
  const [l, a] = ue(i);
2518
- let c, u;
2526
+ let c, d;
2519
2527
  e[2] !== l || e[3] !== r ? (c = () => {
2520
2528
  const m = tn(l, r) ? l : ut(r);
2521
2529
  if (m !== l) {
@@ -2523,14 +2531,14 @@ const Rt = {
2523
2531
  return;
2524
2532
  }
2525
2533
  vi(m, r), typeof window < "u" && m && He().setItem(nn, m);
2526
- }, u = [l, r], e[2] = l, e[3] = r, e[4] = c, e[5] = u) : (c = e[4], u = e[5]), he(c, u);
2527
- let d;
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;
2528
2536
  if (e[6] !== l || e[7] !== r) {
2529
2537
  let m;
2530
- e[9] !== l ? (m = (g) => g.id === l, e[9] = l, e[10] = m) : m = e[10], d = r.find(m), e[6] = l, e[7] = r, e[8] = d;
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;
2531
2539
  } else
2532
- d = e[8];
2533
- const f = d;
2540
+ u = e[8];
2541
+ const f = u;
2534
2542
  let h;
2535
2543
  e[11] !== f || e[12] !== l || e[13] !== r ? (h = {
2536
2544
  fileIconThemePreference: l,
@@ -2631,13 +2639,13 @@ export {
2631
2639
  is as RangeInput,
2632
2640
  ll as RepoPickerDialog,
2633
2641
  Ll as ResizableSplitLayout,
2634
- $l as ResourceActionMenu,
2642
+ Ol as ResourceActionMenu,
2635
2643
  ws as ResourceBadge,
2636
2644
  Xt as ResourceContextMenu,
2637
2645
  ls as ResourceInput,
2638
2646
  tt as ScrollArea,
2639
2647
  Kt as SearchModalContent,
2640
- Ol as SearchableMenu,
2648
+ $l as SearchableMenu,
2641
2649
  ul as SegmentedControl,
2642
2650
  ss as SegmentedInput,
2643
2651
  as as SelectionInput,
@@ -2664,8 +2672,8 @@ export {
2664
2672
  vl as buildTabVisibilityMenuActions,
2665
2673
  xl as buildTreeVisibilityMenuActions,
2666
2674
  fs as createGlyphIcon,
2667
- $s as createMonacoThemeFromVsCodeTheme,
2668
- Os as createThemePreferenceFromVsCodeTheme,
2675
+ Os as createMonacoThemeFromVsCodeTheme,
2676
+ $s as createThemePreferenceFromVsCodeTheme,
2669
2677
  hi as defaultFileIconThemePreferences,
2670
2678
  Bs as defaultThemePreferences,
2671
2679
  fo as filterPaletteEntries,